Skip to main content
Represents a node in the hierarchy, providing transform properties and access to parent and child nodes.

Fields

position

The local position of the node.

rotation

The local rotation of the node in radians.

scale

The local scale of the node.

worldTransform

The read-only world transform of the node.

x

The x-coordinate of the local position.

y

The y-coordinate of the local position.

scaleX

The x component of the local scale.

scaleY

The y component of the local scale.

paint

The stroke or fill a path effect applies to, on the node its update receives, otherwise nil. The same as asPaint.

Methods

asPath

If node is a Path, returns the node as PathData.

asPaint

Returns the stroke or fill a path effect applies to, on the node its update receives, otherwise nil.

bounds

The node’s own box in its local space, as its minimum and maximum points: a layout’s box, a shape’s, path’s or image’s extent, a text’s layout box, the artboard a nested artboard shows. Both points are zero for a node with no size of its own, such as a group or a bone.

worldBounds

The node’s box in its artboard’s space: what bounds gives, through the world transform, as the minimum and maximum points of the area it covers. A node with no size of its own covers just its origin.