MotionScript

@motion-script/core


@motion-script/core / WorldTransform

Interface: WorldTransform

Defined in: attributes/layout/world-transform.ts:14

Internal

Properties

bottomCenter

readonly bottomCenter: Vector2

Defined in: attributes/layout/world-transform.ts:24


bottomLeft

readonly bottomLeft: Vector2

Defined in: attributes/layout/world-transform.ts:21


bottomRight

readonly bottomRight: Vector2

Defined in: attributes/layout/world-transform.ts:22


center

readonly center: Vector2

Defined in: attributes/layout/world-transform.ts:18


centerLeft

readonly centerLeft: Vector2

Defined in: attributes/layout/world-transform.ts:25


centerRight

readonly centerRight: Vector2

Defined in: attributes/layout/world-transform.ts:26


opacity

readonly opacity: number

Defined in: attributes/layout/world-transform.ts:36

Product of this node's and all ancestors' opacities, in [0, 1] — the effective alpha the node renders at. Matches the renderer's pass-through fold: an ancestor at half opacity halves everything beneath it.


rotation

readonly rotation: number

Defined in: attributes/layout/world-transform.ts:28

Sum of this node's and all ancestors' rotations, in degrees clockwise.


scale

readonly scale: number

Defined in: attributes/layout/world-transform.ts:30

Product of this node's and all ancestors' scale factors.


topCenter

readonly topCenter: Vector2

Defined in: attributes/layout/world-transform.ts:23


topLeft

readonly topLeft: Vector2

Defined in: attributes/layout/world-transform.ts:19


topRight

readonly topRight: Vector2

Defined in: attributes/layout/world-transform.ts:20


x

readonly x: number

Defined in: attributes/layout/world-transform.ts:16

World position of the node's center (its x/y origin).


y

readonly y: number

Defined in: attributes/layout/world-transform.ts:17