放大镜配置参数

interface MagnifierParameter {
    autoFixPCPosition?: boolean;
    dragEnabled?: boolean;
    height?: number;
    initialPosition?: {
        left: string;
        top: string;
    };
    scale?: number;
    width?: number;
}

Hierarchy

  • Partial<MagnifierConfig>
    • MagnifierParameter

Properties

autoFixPCPosition?: boolean

renderWithPoint 时,是否应该自动更新放大镜的位置

dragEnabled?: boolean

允许拖动放大镜

height?: number
initialPosition?: {
    left: string;
    top: string;
}

放大镜初始位置应该设置在容器的哪个位置

scale?: number
width?: number