Skip to main content

Interface: NodeProps

Defined in: nodes/base/node.ts:85

Extended by

Properties

bottomCenter

bottomCenter: Vector2 | (() => Vector2)

Defined in: nodes/base/node.ts:112


bottomLeft

bottomLeft: Vector2 | (() => Vector2)

Defined in: nodes/base/node.ts:109


bottomRight

bottomRight: Vector2 | (() => Vector2)

Defined in: nodes/base/node.ts:110


center

center: Vector2 | (() => Vector2)

Defined in: nodes/base/node.ts:106


children

children: Node<NodeProps> | Node<NodeProps>[]

Defined in: nodes/base/node.ts:96


colSpan

colSpan: number

Defined in: nodes/base/node.ts:132

How many grid columns this child spans. Default 1.


column

column: number

Defined in: nodes/base/node.ts:128

1-based column index for explicit grid placement. Undefined = auto-placed.


effects

effects: ChainableFx

Defined in: nodes/base/node.ts:93


flex

flex: number

Defined in: nodes/base/node.ts:124

Proportional share of the free space along the parent's main axis, relative to sibling fill children (like Flutter's Expanded(flex:)). Only meaningful when this node fills the main axis — in a row that's width:'fill', in a column height:'fill'. Two siblings with flex 2 and 1 split the free space 2:1. Defaults to 1. Specifying flex without an explicit width/height defaults both to 'fill'.


height

height: SizeInput

Defined in: nodes/base/node.ts:89


leftCenter

leftCenter: Vector2 | (() => Vector2)

Defined in: nodes/base/node.ts:113


opacity

opacity: number

Defined in: nodes/base/node.ts:92


padding

padding: PaddingProps

Defined in: nodes/base/node.ts:95

Inner spacing between this node's edges and its content/children.


pivot

pivot: Vector2

Defined in: nodes/base/node.ts:99

Pivot point for rotation and scale. (0,0)=center, (-1,1)=top-left, (1,-1)=bottom-right. Set automatically when an anchor prop is used.


rightCenter

rightCenter: Vector2 | (() => Vector2)

Defined in: nodes/base/node.ts:114


rotation

rotation: number

Defined in: nodes/base/node.ts:91


row

row: number

Defined in: nodes/base/node.ts:130

1-based row index for explicit grid placement. Undefined = auto-placed.


rowSpan

rowSpan: number

Defined in: nodes/base/node.ts:134

How many grid rows this child spans. Default 1.


scale

scale: number

Defined in: nodes/base/node.ts:90


topCenter

topCenter: Vector2 | (() => Vector2)

Defined in: nodes/base/node.ts:111


topLeft

topLeft: Vector2 | (() => Vector2)

Defined in: nodes/base/node.ts:107


topRight

topRight: Vector2 | (() => Vector2)

Defined in: nodes/base/node.ts:108


width

width: SizeInput

Defined in: nodes/base/node.ts:88


x

x: number

Defined in: nodes/base/node.ts:86


y

y: number

Defined in: nodes/base/node.ts:87