Hierarchy

  • PxPane

Implements

Constructors

  • Parameters

    • options: {
          element: HTMLCanvasElement;
          name: string;
          renderer: IRenderer<ICanvas>;
      }
      • element: HTMLCanvasElement
      • name: string
      • renderer: IRenderer<ICanvas>

    Returns PxPane

Properties

$el: HTMLCanvasElement

The dom element.

For leaflet it's a div which wrap a canvas, a svg, and many images,...

For Pixi, it's just a canvas.

configurable: boolean = false

If this pane is managed by manager.

the manager who manages this pane

name: string

the name of this pane, used as the key of dict for fast indexed read.

order: number = 0

the display order in DOM tree. it affects the z-index finally.

proxy: boolean = false

If the pane is a proxy.

renderer: IRenderer<ICanvas>

The renderer on this pane. one pane, one renderer, and cannot change after initialized.

For leaflet, it may be L.Canvas or L.SVG.

For Pixi, it has to be Canvas.

visible: boolean = true

If the pane is visible, we use display: none to hide it.

Accessors

Methods

Generated using TypeDoc