@revideo/2d / components / KnotProps
Interface: KnotProps
Defined in: 2d/src/lib/components/Knot.ts:21
Extends
Properties
auto?
optionalauto?:SignalValue<PossibleKnotAuto>
Defined in: 2d/src/lib/components/Knot.ts:33
How much to blend between the user-provided handles and the auto-calculated handles.
Remarks
This property has no effect if no explicit handles are provided for the knot.
cache?
optionalcache?:SignalValue<boolean>
Defined in: 2d/src/lib/components/Node.ts:99
Inherited from
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.
Inherited from
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.
Inherited from
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.
Inherited from
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.
Inherited from
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.
Inherited from
children?
optionalchildren?:SignalValue<ComponentChildren>
Defined in: 2d/src/lib/components/Node.ts:71
Inherited from
composite?
optionalcomposite?:SignalValue<boolean>
Defined in: 2d/src/lib/components/Node.ts:121
Inherited from
compositeOperation?
optionalcompositeOperation?:SignalValue<GlobalCompositeOperation>
Defined in: 2d/src/lib/components/Node.ts:122
Inherited from
endHandle?
optionalendHandle?:SignalValue<PossibleVector2>
Defined in: 2d/src/lib/components/Knot.ts:29
The position of the knot’s end handle. The position is provided relative to the knot’s position.
Remarks
By default, the position of the end handle will be the mirrored position of the startHandle.
If neither an end handle nor a start handle is provided, the positions of the handles gets calculated automatically to create smooth curve through the knot. The smoothness of the resulting curve can be controlled via the Spline.smoothness property.
It is also possible to blend between a user-defined position and the auto-calculated position by using the auto property.
endHandleAuto?
optionalendHandleAuto?:SignalValue<number>
Defined in: 2d/src/lib/components/Knot.ts:35
filters?
optionalfilters?:SignalValue<Filter[]>
Defined in: 2d/src/lib/components/Node.ts:91
Inherited from
key?
optionalkey?:string
Defined in: 2d/src/lib/components/Node.ts:76
Inherited from
opacity?
optionalopacity?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:90
Inherited from
position?
optionalposition?:SignalValue<PossibleVector2>
Defined in: 2d/src/lib/components/Node.ts:80
Inherited from
ref?
optionalref?:ReferenceReceiver<any>
Defined in: 2d/src/lib/components/Node.ts:70
Inherited from
rotation?
optionalrotation?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:81
Inherited from
scale?
optionalscale?:SignalValue<PossibleVector2>
Defined in: 2d/src/lib/components/Node.ts:84
Inherited from
scaleX?
optionalscaleX?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:82
Inherited from
scaleY?
optionalscaleY?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:83
Inherited from
shaders?
optionalshaders?:PossibleShaderConfig
Defined in: 2d/src/lib/components/Node.ts:126
Experimental
Inherited from
shadowBlur?
optionalshadowBlur?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:94
Inherited from
shadowColor?
optionalshadowColor?:SignalValue<PossibleColor>
Defined in: 2d/src/lib/components/Node.ts:93
Inherited from
shadowOffset?
optionalshadowOffset?:SignalValue<PossibleVector2>
Defined in: 2d/src/lib/components/Node.ts:97
Inherited from
shadowOffsetX?
optionalshadowOffsetX?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:95
Inherited from
shadowOffsetY?
optionalshadowOffsetY?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:96
Inherited from
skew?
optionalskew?:SignalValue<PossibleVector2>
Defined in: 2d/src/lib/components/Node.ts:87
Inherited from
skewX?
optionalskewX?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:85
Inherited from
skewY?
optionalskewY?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:86
Inherited from
spawner?
optionalspawner?:SignalValue<ComponentChildren>
Defined in: 2d/src/lib/components/Node.ts:75
Deprecated
Use children instead.
Inherited from
startHandle?
optionalstartHandle?:SignalValue<PossibleVector2>
Defined in: 2d/src/lib/components/Knot.ts:25
The position of the knot’s start handle. The position is provided relative to the knot’s position.
Remarks
By default, the position of the start handle will be the mirrored position of the endHandle.
If neither an end handle nor a start handle is provided, the positions of the handles gets calculated automatically to create smooth curve through the knot. The smoothness of the resulting curve can be controlled via the Spline.smoothness property.
It is also possible to blend between a user-defined position and the auto-calculated position by using the auto property.
startHandleAuto?
optionalstartHandleAuto?:SignalValue<number>
Defined in: 2d/src/lib/components/Knot.ts:34
x?
optionalx?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:78
Inherited from
y?
optionaly?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:79
Inherited from
zIndex?
optionalzIndex?:SignalValue<number>
Defined in: 2d/src/lib/components/Node.ts:88