class Spline extends Curve
A node for drawing a smooth line through a number of points.
This node uses Bézier curves for drawing each segment of the spline.
Examples
Constructors
constructor
Parameters
props: SplineProps
Curve.constructorProperties
absolutePosition
readonly public absolutePosition: SimpleVector2SignalSpline
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.
Curve.absolutePositionabsoluteRotation
readonly public absoluteRotation: SimpleSignalnumberSpline
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 fromCurve.absoluteRotationabsoluteScale
readonly public absoluteScale: SimpleVector2SignalSpline
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.
Curve.absoluteScalealignContent
readonly public alignContent: SimpleSignalFlexContentSpline
Curve.alignContentalignItems
readonly public alignItems: SimpleSignalFlexItemsSpline
Curve.alignItemsalignSelf
readonly public alignSelf: SimpleSignalFlexItemsSpline
Curve.alignSelfantialiased
readonly public antialiased: SimpleSignalbooleanSpline
Curve.antialiasedarrowSize
readonly public arrowSize: SimpleSignalnumberSpline
Controls the size of the end and start arrows.
To make the arrows visible make sure to enable startArrow and/or
endArrow.
Curve.arrowSizebasis
readonly public basis: SimpleSignalFlexBasisSpline
Curve.basisbottom
readonly public bottom: SimpleVector2SignalSpline
The position of the bottom edge of this node.
When set, this shortcut property will modify the node's position so that the bottom edge ends up in the given place.
When retrieved, it will return the position of the bottom edge in the parent space.
Inherited fromCurve.bottombottomLeft
readonly public bottomLeft: SimpleVector2SignalSpline
The position of the bottom left corner of this node.
When set, this shortcut property will modify the node's position so that the bottom left corner ends up in the given place.
When retrieved, it will return the position of the bottom left corner in the parent space.
Inherited fromCurve.bottomLeftbottomRight
readonly public bottomRight: SimpleVector2SignalSpline
The position of the bottom right corner of this node.
When set, this shortcut property will modify the node's position so that the bottom right corner ends up in the given place.
When retrieved, it will return the position of the bottom right corner in the parent space.
Inherited fromCurve.bottomRightcache
readonly public cache: SimpleSignalbooleanSpline
Curve.cachecachePadding
readonly public cachePadding: SpacingSignalSpline
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.
Curve.cachePaddingchildren
readonly public children: SignalComponentChildrenNode[]SplineSignalContextComponentChildrenNode[]Spline
Curve.childrenclip
readonly public clip: SimpleSignalbooleanSpline
Curve.clipclosed
readonly public closed: SimpleSignalbooleanSpline
Whether the curve should be closed.
Closed curves have their start and end points connected.
Inherited fromCurve.closedcomposite
readonly public composite: SimpleSignalbooleanSpline
Curve.compositecompositeOperation
readonly public compositeOperation: SimpleSignalGlobalCompositeOperationSpline
Curve.compositeOperationcreationStack
readonly public creationStack?: string
Curve.creationStackdirection
readonly public direction: SimpleSignalFlexDirectionSpline
Curve.directionelement
public element: HTMLElement
Curve.elementend
readonly public end: SimpleSignalnumberSpline
A percentage from the start after which the curve should be clipped.
The portion of the curve that comes after the given percentage will be made invisible.
This property is usefully for animating the curve appearing on the screen.
The value of 0 means the very start of the curve (accounting for the
startOffset) while 1 means the very end (accounting for the
endOffset).
Curve.end