Skip to content

API reference / Common / Engine types / ShapeTransform

Interface: ShapeTransform ​

A shape's transform (a:xfrm, CT_Transform2D): where it sits, how big it is, and its rotation/flip.

Properties ​

PropertyDescription
offset
ShapePoint | null
a:off — top-left offset in the parent coordinate space.
extents
ShapeExtents | null
a:ext — the shape's size.
rotation
number
@rot — clockwise rotation in degrees.
flipH
boolean
@flipH — mirror horizontally.
flipV
boolean
@flipV — mirror vertically.