class Node implements PromisableNode
Extended by
CameraKnotLayout
Constructors
constructor
Parameters
{...}: NodeProps
Properties
absolutePosition
readonly public absolutePosition: SimpleVector2SignalNode
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.
absoluteRotation
readonly public absoluteRotation: SimpleSignalnumberNode
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.
absoluteScale
readonly public absoluteScale: SimpleVector2SignalNode
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.
cache
readonly public cache: SimpleSignalbooleanNode
cachePadding
readonly public cachePadding: SpacingSignalNode
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.
children
readonly public children: SignalComponentChildrenNode[]NodeSignalContextComponentChildrenNode[]Node
composite
readonly public composite: SimpleSignalbooleanNode
compositeOperation
readonly public compositeOperation: SimpleSignalGlobalCompositeOperationNode
creationStack
readonly public creationStack?: string
filters
readonly public filters: FiltersSignalNode
isClass
public isClass: boolean
key
readonly public key: string
opacity
readonly public opacity: SimpleSignalnumberNode
Represents the opacity of this node in the range 0-1.
The value is clamped to the range 0-1.
parent
readonly public parent: SimpleSignalnullNodevoid = ...
position
readonly public position: Vector2SignalNode
Represents the position of this node in local space of its parent.
Examples
properties
readonly public properties: RecordstringPropertyMetadataany = ...
rotation
readonly public rotation: SimpleSignalnumberNode
Represents the rotation (in degrees) of this node relative to its parent.
scale
readonly public scale: Vector2SignalNode
Represents the scale of this node in local space of its parent.
Examples
shaders
readonly public shaders: SignalPossibleShaderConfigShaderConfig[]NodeSignalContextPossibleShaderConfigShaderConfig[]Node
shadowBlur
readonly public shadowBlur: SimpleSignalnumberNode
shadowColor
readonly public shadowColor: ColorSignalNode
shadowOffset
readonly public shadowOffset: Vector2SignalNode
skew
readonly public skew: Vector2SignalNode
Represents the skew of this node in local space of its parent.
Examples
zIndex
readonly public zIndex: SimpleSignalnumberNode
Accessors
x
public get x(): SimpleSignalnumberthis
y
public get y(): SimpleSignalnumberthis
Methods
[iterator]
public [iterator](): Generatorkey: stringmeta: PropertyMetadataanysignal: SimpleSignalanyvoidunknown
absoluteOpacity
public absoluteOpacity(): number