Skip to main content

Interface: PolygonProps

Defined in: nodes/geometry/polygon-node.ts:6

Extends

Properties

borderRadius

borderRadius: number

Defined in: nodes/geometry/polygon-node.ts:10

Corner rounding radius in pixels.


bottomCenter

bottomCenter: Vector2 | (() => Vector2)

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

Inherited from

ShapeProps.bottomCenter


bottomLeft

bottomLeft: Vector2 | (() => Vector2)

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

Inherited from

ShapeProps.bottomLeft


bottomRight

bottomRight: Vector2 | (() => Vector2)

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

Inherited from

ShapeProps.bottomRight


center

center: Vector2 | (() => Vector2)

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

Inherited from

ShapeProps.center


children

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

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

Inherited from

ShapeProps.children


clip?

optional clip?: boolean

Defined in: nodes/geometry/shape-node.ts:41

When true, content drawn outside this shape's outline is clipped away.

Inherited from

ShapeProps.clip


colSpan

colSpan: number

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

How many grid columns this child spans. Default 1.

Inherited from

ShapeProps.colSpan


column

column: number

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

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

Inherited from

ShapeProps.column


effects

effects: ChainableFx

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

Inherited from

ShapeProps.effects


end?

optional end?: number

Defined in: nodes/geometry/shape-node.ts:39

Inherited from

ShapeProps.end


fill?

optional fill?: ChainableFill

Defined in: nodes/geometry/shape-node.ts:27

Fill layer(s). Each item can be:

  • A plain CSS color string → treated as a solid fill
  • A fill prop object (SolidFillProp, LinearGradientFillProp, …)
  • An already-resolved fill object
  • A FillChain from the Fill builder (e.g. Fill.color('red'))

Inherited from

ShapeProps.fill


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'.

Inherited from

ShapeProps.flex


height

height: SizeInput

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

Inherited from

ShapeProps.height


leftCenter

leftCenter: Vector2 | (() => Vector2)

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

Inherited from

ShapeProps.leftCenter


opacity

opacity: number

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

Inherited from

ShapeProps.opacity


padding

padding: PaddingProps

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

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

Inherited from

ShapeProps.padding


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.

Inherited from

ShapeProps.pivot


rightCenter

rightCenter: Vector2 | (() => Vector2)

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

Inherited from

ShapeProps.rightCenter


rotation

rotation: number

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

Inherited from

ShapeProps.rotation


row

row: number

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

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

Inherited from

ShapeProps.row


rowSpan

rowSpan: number

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

How many grid rows this child spans. Default 1.

Inherited from

ShapeProps.rowSpan


scale

scale: number

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

Inherited from

ShapeProps.scale


shadow?

optional shadow?: ShadowProp | ShadowProp[]

Defined in: nodes/geometry/shape-node.ts:37

Shadow layer(s). fill inside each shadow accepts the same loose values as the top-level fill prop.

Inherited from

ShapeProps.shadow


sides

sides: number

Defined in: nodes/geometry/polygon-node.ts:8

Number of sides. Must be ≥ 3.


start?

optional start?: number

Defined in: nodes/geometry/shape-node.ts:38

Inherited from

ShapeProps.start


stroke?

optional stroke?: StrokeProp | StrokeProp[]

Defined in: nodes/geometry/shape-node.ts:32

Stroke layer(s). fill inside each stroke accepts the same loose values as the top-level fill prop.

Inherited from

ShapeProps.stroke


topCenter

topCenter: Vector2 | (() => Vector2)

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

Inherited from

ShapeProps.topCenter


topLeft

topLeft: Vector2 | (() => Vector2)

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

Inherited from

ShapeProps.topLeft


topRight

topRight: Vector2 | (() => Vector2)

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

Inherited from

ShapeProps.topRight


width

width: SizeInput

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

Inherited from

ShapeProps.width


x

x: number

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

Inherited from

ShapeProps.x


y

y: number

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

Inherited from

ShapeProps.y