Skip to content

@modoki/engine / rendering / CanvasScale

Interface: CanvasScale ​

Rendering ​

compensateX ​

compensateX: number

Shape compensation: multiply object scaleX by this to undo non-uniform stretch


compensateY ​

compensateY: number

Shape compensation: multiply object scaleY by this to undo non-uniform stretch


offsetX ​

offsetX: number


offsetY ​

offsetY: number


scale ​

scale: number

Uniform scale (min of scaleX, scaleY) — used for object shapes


scaleX ​

scaleX: number


scaleY ​

scaleY: number

Built with Modoki.