class Knot extends Node
Constructors
constructor
Parameters
props: KnotProps
Node.constructorProperties
absolutePosition
readonly public absolutePosition: SimpleVector2SignalKnot
A helper signal for operating on the position in world space.
Retrieving the position using this signal returns the position in world space. Similarly, setting the position using this signal transforms the new value to local space.
If the new value is a function, the position of this node will be continuously updated to always match the position returned by the function. This can be useful to "pin" the node in a specific place or to make it follow another node's position.
Unlike position, this signal is not compound - it doesn't contain
separate signals for the x and y components.
Node.absolutePositionabsoluteRotation
readonly public absoluteRotation: SimpleSignalnumberKnot
A helper signal for operating on the rotation in world space.
Retrieving the rotation using this signal returns the rotation in world space. Similarly, setting the rotation using this signal transforms the new value to local space.
If the new value is a function, the rotation of this node will be continuously updated to always match the rotation returned by the function.
Inherited fromNode.absoluteRotationabsoluteScale
readonly public absoluteScale: SimpleVector2SignalKnot
A helper signal for operating on the scale in world space.
Retrieving the scale using this signal returns the scale in world space. Similarly, setting the scale using this signal transforms the new value to local space.
If the new value is a function, the scale of this node will be continuously updated to always match the position returned by the function.
Unlike scale, this signal is not compound - it doesn't contain
separate signals for the x and y components.
Node.absoluteScaleauto
readonly public auto: KnotAutoSignalKnot
How much to blend between the user-provided handles and the auto-calculated handles.
This property has no effect if no explicit handles are provided for the knot.
Default Value:0cache
readonly public cache: SimpleSignalbooleanKnot
Node.cachecachePadding
readonly public cachePadding: SpacingSignalKnot
Controls the padding of the cached canvas used by this node.
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.
Node.cachePaddingchildren
readonly public children: SignalComponentChildrenNode[]KnotSignalContextComponentChildrenNode[]Knot
Node.childrencomposite
readonly public composite: SimpleSignalbooleanKnot
Node.compositecompositeOperation
readonly public compositeOperation: SimpleSignalGlobalCompositeOperationKnot
Node.compositeOperationcreationStack
readonly public creationStack?: string
Node.creationStackendHandle
readonly public endHandle: Vector2SignalKnot
The position of the knot's end handle. The position is provided relative to the knot's position.
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
smoothness property.
It is also possible to blend between a user-defined position and the
auto-calculated position by using the auto property.
Mirrored position of the startHandle.filters
readonly public filters: FiltersSignalKnot
Node.filtersisClass
public isClass: boolean
Node.isClasskey
readonly public key: string
Node.keyopacity
readonly public opacity: SimpleSignalnumberKnot
Represents the opacity of this node in the range 0-1.
The value is clamped to the range 0-1.
Inherited fromNode.opacityparent
readonly public parent: SimpleSignalnullNodevoid = ...
Node.parentposition
readonly public position: Vector2SignalKnot
Represents the position of this node in local space of its parent.
Examples
Inherited fromNode.positionproperties
readonly public properties: RecordstringPropertyMetadataany = ...
Node.propertiesrotation
readonly public rotation: SimpleSignalnumberKnot
Represents the rotation (in degrees) of this node relative to its parent.
Inherited fromNode.rotationscale
readonly public scale: Vector2SignalKnot
Represents the scale of this node in local space of its parent.
Examples
Inherited fromNode.scaleshaders
readonly public shaders: SignalPossibleShaderConfigShaderConfig[]KnotSignalContextPossibleShaderConfigShaderConfig[]Knot
Node.shadersshadowBlur
readonly public shadowBlur: SimpleSignalnumberKnot
Node.shadowBlurshadowColor
readonly public shadowColor: ColorSignalKnot
Node.shadowColorshadowOffset
readonly public shadowOffset: Vector2SignalKnot
Node.shadowOffsetskew
readonly public skew: Vector2SignalKnot
Represents the skew of this node in local space of its parent.
Examples
Inherited fromNode.skewstartHandle
readonly public startHandle: Vector2SignalKnot
The position of the knot's start handle. The position is provided relative to the knot's position.
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
smoothness property.
It is also possible to blend between a user-defined position and the
auto-calculated position by using the auto property.
Mirrored position of the endHandle.