Type Parameters

  • S = {}

Hierarchy

Constructors

  • Type Parameters

    • S = {}

    Parameters

    • el: string | SVGElement
    • position: LatLngExpression
    • sizeX: number
    • sizeY: number
    • Optional options: ImageOverlayOptions

    Returns SVGOverlay<S>

Properties

$$isReactive: true
$$parent: IList<ReactiveLayer<any>>

container object

$$ref: any

data which will be mount on layer to render.

when you are too lazy to design a model (from Base), ref is the best alternative.

all reactive layer is with ref.

$$subSystems: ReactiveLayer<any>[]

systems which are all in this.

$$system: ReactiveLayer<any>

reactive layer in which this layer is.

__preSize: Point = null

the size before changed.

_bounds: LatLngBounds

world bounds.

_fromBoundsMark: Rectangle<any>
_headStateHasChanged: boolean

a signal indicating whether the head state has changed.

_image: HTMLElement
_immediatelyRenderOnce: boolean

render the state syncronize

_isRenderScheduled: boolean
_lastRenderedEffect: ReactiveLayerRenderEffect
_map: WikMap
_mapToAdd: WikMap
_size: Point = null
_uiStateChangeLogs: any[]

logs to record the state before calling onXX. It's data onXX returns.

angle: number

控制图形的旋转角度

anglePhase: number

the start angle.

disableMatrix: boolean

If you want to disable matrix transformation.

which means it is an object exsiting in the root system without any sub-system.

dragging: WikDraggable
ifRender: boolean

IF you want trigger render after this set call, set IfRender TRUE.

!Warn: ifRender will be reset to FALSE after rendered;

isClickEventFireCancelled: boolean
isMatrixNeedsUpdate: boolean

图形的顶点坐标

layerId: string
layerState: S
position: LatLng

控制图形的位置

renderingMode: ReactiveLayerRenderingMode = 'overlay'
scale: LatLngLiteral

控制图形的缩放

worldMatrix: mat3

Accessors

Methods

  • Returns void

  • svg 内可见物体(角度为 0 的时候)的位置

    Parameters

    • boxRadius: number

    Returns number[]

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

    • x: number
    • y: number
  • includes:viewbox/style/root G transform

    Returns

    Returns {
        r: number;
        size: number;
        transform: string;
        viewbox: string;
    }

    • r: number
    • size: number
    • transform: string
    • viewbox: string
  • find the root system of this element by $$system

    Type Parameters

    Returns W

  • Returns

    Parameters

    • _r: number = 0

      We use this to compute the translation offset and rotation origin. If _r not provided, we call computesSvgBoxRadius.

    • scale: number = 1

      We use this to scale

    • scaleY: number = 1

    Returns string

  • Returns boolean

  • Returns void

  • Parameters

    • latlng: LatLngExpression

    Returns LatLng

  • Returns void

  • state

    Parameters

    • previousState: unknown

    Returns void

  • angle changes

    Parameters

    • previousAngle: number

    Returns void

  • scale changes

    Parameters

    • previousScale: LatLngLiteral

    Returns void

  • any of position/angle/scale/shape/size changes

    Parameters

    • snapshot: any

    Returns void

  • position changes

    Parameters

    • previousPosition: LatLng

    Returns void

  • run the render function again, it's a sync call, no post render call.

    Returns void

  • Parameters

    • dDeg: number

    Returns void

  • Parameters

    • dLat: number

    Returns void

  • Parameters

    • dLat: number
    • dLng: number

    Returns void

  • Parameters

    • deg: number

    Returns void

  • Parameters

    • lat: number

    Returns void

  • Parameters

    • lng: number

    Returns void

  • Parameters

    • latlngBounds: LatLngBoundsExpression

    Returns void

  • Parameters

    • latlng: LatLngExpression

    Returns void

  • Parameters

    • lat: number
    • lng: number

    Returns void

  • Parameters

    • s: number

    Returns void

  • Parameters

    • sOnLat: number
    • sOnLng: number

    Returns void

  • 与属性 size 不同的是,它会触发渲染

    Parameters

    • x: number | Point
    • Optional y: number

    Returns void

  • Parameters

    • dLat: number
    • dLng: number

    Returns void

  • Parameters

    • dLat: number

    Returns void

  • Parameters

    • dLng: number

    Returns void

  • Type Parameters

    Parameters

    • every: ((item: T) => void)
        • (item: T): void
        • Parameters

          • item: T

          Returns void

    Returns void

  • Returns void

  • Returns void

  • Parameters

    • latlngExpr: LatLngExpression

    Returns LatLng

Generated using TypeDoc