Constructors

Properties

canvas: HTMLCanvasElement = ...
config: MagnifierConfig
containerDom?: Element
height: number
hooks: Subscribe<MagnifierEvent> = ...
state: {
    enabled: boolean;
} = ...
width: number

Methods

  • 把放大镜放到某一个容器中

    Parameters

    • element: Element

    Returns Magnifier

  • 清除放大镜渲染内容

    Returns Magnifier

  • Returns void

  • Returns void

  • 放大传入点位周围的内容

    Parameters

    • point: Vector3

    Returns void

  • 放大传入点位周围的内容

    Parameters

    • point: {
          x: number;
          y: number;
      }
      • x: number
      • y: number

    Returns void

  • Returns void