Skip to content

@blooper.gg/toodle


@blooper.gg/toodle / scene/SceneNode / NodeOptions

Type Alias: NodeOptions

NodeOptions = object

Defined in: scene/SceneNode.ts:580

Properties

flipX?

optional flipX: boolean

Defined in: scene/SceneNode.ts:604

Flip the node horizontally.


flipY?

optional flipY: boolean

Defined in: scene/SceneNode.ts:606

Flip the node vertically.


id?

optional id: number

Defined in: scene/SceneNode.ts:582

The unique identifier for the node.


idealSize?

optional idealSize: Size

Defined in: scene/SceneNode.ts:596

The desired size for the node.


isActive?

optional isActive: boolean

Defined in: scene/SceneNode.ts:598

The active state for the node.


key?

optional key: string

Defined in: scene/SceneNode.ts:608

A string key for the node - can be used to reference the node from an external lookup system


kids?

optional kids: SceneNode[]

Defined in: scene/SceneNode.ts:600

The kids for the node.


label?

optional label: string

Defined in: scene/SceneNode.ts:584

The label for the node.


layer?

optional layer: number

Defined in: scene/SceneNode.ts:586

The layer for the node.


position?

optional position: Point

Defined in: scene/SceneNode.ts:592

The position for the node.


render?

optional render: RenderComponent

Defined in: scene/SceneNode.ts:602

The render component for the node.


rotation?

optional rotation: number

Defined in: scene/SceneNode.ts:588

The rotation for the node in degrees. Cannot be used with rotationRadians.


rotationRadians?

optional rotationRadians: number

Defined in: scene/SceneNode.ts:590

The rotation for the node in radians. Cannot be used with rotation.


scale?

optional scale: Vec2 | number

Defined in: scene/SceneNode.ts:594

The scale for the node.