Skip to content

Documentation / @ripl/core / NavigatorTransform

Interface: NavigatorTransform ​

Defined in: packages/core/src/core/navigator.ts:19

A 2D affine view transform: uniform scale k plus translation [x, y], in logical pixels.

Properties ​

PropertyTypeDescriptionDefined in
knumberUniform scale (zoom) factor.packages/core/src/core/navigator.ts:21
xnumberHorizontal translation, in logical pixels (CSS pixels relative to the context's top-left, unaffected by the device pixel ratio).packages/core/src/core/navigator.ts:23
ynumberVertical translation, in logical pixels (CSS pixels relative to the context's top-left, unaffected by the device pixel ratio).packages/core/src/core/navigator.ts:25