Skip to main content

Interface: MapCachedCanvasLayerTransform

Defined in: src/sdk/components/map/layers/MapCachedCanvasLayer.ts:78

A description of the transformation of a MapCachedCanvasLayer's canvas element.

Properties​

margin​

readonly margin: number

Defined in: src/sdk/components/map/layers/MapCachedCanvasLayer.ts:92

The total margin, in pixels, available for translation without invalidating the canvas with this transform's scale factor taken into account.


marginRemaining​

readonly marginRemaining: number

Defined in: src/sdk/components/map/layers/MapCachedCanvasLayer.ts:98

The remaining margin, in pixels, available for translation without invalidating the canvas given this transform's current translation and scale factor.


rotation​

readonly rotation: number

Defined in: src/sdk/components/map/layers/MapCachedCanvasLayer.ts:83

The rotation angle, in radians, of this transform.


scale​

readonly scale: number

Defined in: src/sdk/components/map/layers/MapCachedCanvasLayer.ts:80

The scaling factor of this transform.


translation​

readonly translation: Float64Array

Defined in: src/sdk/components/map/layers/MapCachedCanvasLayer.ts:86

The translation, in pixels, of this transform.