@revideo/2d / components / NodeProps
Interface: NodeProps
Defined in: 2d/src/lib/components/Node.ts:69
Extended by
Properties
cache?
optionalcache?:SignalValue<boolean>
Defined in: 2d/src/lib/components/Node.ts:99
cachePadding?
optionalcachePadding?:SignalValue<PossibleSpacing>
Defined in: 2d/src/lib/components/Node.ts:119
Controls the padding of the cached canvas used by this node.
Remarks
By default, the size of the cache is determined based on the bounding box of the node and its children. That includes effects such as stroke or shadow. This property can be used to expand the cache area further. Usually used to account for custom effects created by shaders.
cachePaddingBottom?
optionalcachePaddingBottom?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:107
Controls the padding of the cached canvas used by this node.
Remarks
By default, the size of the cache is determined based on the bounding box of the node and its children. That includes effects such as stroke or shadow. This property can be used to expand the cache area further. Usually used to account for custom effects created by shaders.
cachePaddingLeft?
optionalcachePaddingLeft?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:111
Controls the padding of the cached canvas used by this node.
Remarks
By default, the size of the cache is determined based on the bounding box of the node and its children. That includes effects such as stroke or shadow. This property can be used to expand the cache area further. Usually used to account for custom effects created by shaders.
cachePaddingRight?
optionalcachePaddingRight?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:115
Controls the padding of the cached canvas used by this node.
Remarks
By default, the size of the cache is determined based on the bounding box of the node and its children. That includes effects such as stroke or shadow. This property can be used to expand the cache area further. Usually used to account for custom effects created by shaders.
cachePaddingTop?
optionalcachePaddingTop?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:103
Controls the padding of the cached canvas used by this node.
Remarks
By default, the size of the cache is determined based on the bounding box of the node and its children. That includes effects such as stroke or shadow. This property can be used to expand the cache area further. Usually used to account for custom effects created by shaders.
children?
optionalchildren?:SignalValue<ComponentChildren>
Defined in: 2d/src/lib/components/Node.ts:71
composite?
optionalcomposite?:SignalValue<boolean>
Defined in: 2d/src/lib/components/Node.ts:121
compositeOperation?
optionalcompositeOperation?:SignalValue<GlobalCompositeOperation>
Defined in: 2d/src/lib/components/Node.ts:122
filters?
optionalfilters?:SignalValue<Filter[]>
Defined in: 2d/src/lib/components/Node.ts:91
key?
optionalkey?:string
Defined in: 2d/src/lib/components/Node.ts:76
opacity?
optionalopacity?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:90
position?
optionalposition?:SignalValue<PossibleVector2>
Defined in: 2d/src/lib/components/Node.ts:80
ref?
optionalref?:ReferenceReceiver<any>
Defined in: 2d/src/lib/components/Node.ts:70
rotation?
optionalrotation?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:81
scale?
optionalscale?:SignalValue<PossibleVector2>
Defined in: 2d/src/lib/components/Node.ts:84
scaleX?
optionalscaleX?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:82
scaleY?
optionalscaleY?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:83
shaders?
optionalshaders?:PossibleShaderConfig
Defined in: 2d/src/lib/components/Node.ts:126
Experimental
shadowBlur?
optionalshadowBlur?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:94
shadowColor?
optionalshadowColor?:SignalValue<PossibleColor>
Defined in: 2d/src/lib/components/Node.ts:93
shadowOffset?
optionalshadowOffset?:SignalValue<PossibleVector2>
Defined in: 2d/src/lib/components/Node.ts:97
shadowOffsetX?
optionalshadowOffsetX?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:95
shadowOffsetY?
optionalshadowOffsetY?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:96
skew?
optionalskew?:SignalValue<PossibleVector2>
Defined in: 2d/src/lib/components/Node.ts:87
skewX?
optionalskewX?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:85
skewY?
optionalskewY?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:86
spawner?
optionalspawner?:SignalValue<ComponentChildren>
Defined in: 2d/src/lib/components/Node.ts:75
Deprecated
Use children instead.
x?
optionalx?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:78
y?
optionaly?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:79
zIndex?
optionalzIndex?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:88