RectProps
interface RectProps extends CurveProps
Extended by
Propertiesβ
alignContentβ
Inherited from CurveProps.alignContentalignItemsβ
Inherited from CurveProps.alignItemsalignSelfβ
Inherited from CurveProps.alignSelfantialiasedβ
antialiased?: SignalValueboolean
CurveProps.antialiasedarrowSizeβ
arrowSize?: SignalValuenumber
Controls the size of the end and start arrows.
To make the arrows visible make sure to enable startArrow and/or
endArrow.
CurveProps.arrowSizebasisβ
Inherited from CurveProps.basisbottomβ
bottom?: SignalValuePossibleVector2number
The position of the bottom edge of this node.
This shortcut property will set the node's position so that the bottom edge
ends up in the given place.
If present, overrides the position property.
CurveProps.bottombottomLeftβ
bottomLeft?: SignalValuePossibleVector2number
The position of the bottom left corner of this node.
This shortcut property will set the node's position so that the bottom left
corner ends up in the given place.
If present, overrides the position property.
CurveProps.bottomLeftbottomRightβ
The position of the bottom right corner of this node.
This shortcut property will set the node's position so that the bottom
right corner ends up in the given place.
If present, overrides the position property.
CurveProps.bottomRightcacheβ
cache?: SignalValueboolean
CurveProps.cachecachePaddingβ
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.
CurveProps.cachePaddingcachePaddingBottomβ
cachePaddingBottom?: SignalValuenumber
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.
CurveProps.cachePaddingBottomcachePaddingLeftβ
cachePaddingLeft?: SignalValuenumber
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.
CurveProps.cachePaddingLeftcachePaddingRightβ
cachePaddingRight?: SignalValuenumber
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.
CurveProps.cachePaddingRightcachePaddingTopβ
cachePaddingTop?: SignalValuenumber
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.
CurveProps.cachePaddingTopchildrenβ
Inherited from CurveProps.childrenclipβ
clip?: SignalValueboolean
CurveProps.clipclosedβ
closed?: SignalValueboolean
Whether the curve should be closed.
Closed curves have their start and end points connected.
Inherited fromCurveProps.closedcolumnGapβ
Inherited from CurveProps.columnGapcompositeβ
composite?: SignalValueboolean
CurveProps.compositecompositeOperationβ
compositeOperation?: SignalValueGlobalCompositeOperation
CurveProps.compositeOperationcornerSharpnessβ
cornerSharpness?: SignalValuenumber
Controls the sharpness of smoothCorners.
This property only affects the way rounded corners are drawn. To control
the corner radius use the radius property.
Requires smoothCorners to be enabled to have any effect.
By default, corner sharpness is set to 0.6 which represents a smooth,
circle-like rounding. At 0 the edges are squared off.
directionβ
Inherited from CurveProps.directionendβ
end?: SignalValuenumber
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).
CurveProps.endendArrowβ
endArrow?: SignalValueboolean
Whether to display an arrow at the end of the visible curve.
Use arrowSize to control the size of the arrow.
CurveProps.endArrowendOffsetβ
endOffset?: SignalValuenumber
The offset in pixels from the end of the curve.
This property lets you specify where along the defined curve the actual
visible portion ends. For example, setting it to 20 will make the last
20 pixels of the curve invisible.
This property is useful for trimming the curve using a fixed distance.
If you want to animate the curve appearing on the screen, use end
instead.
CurveProps.endOffsetfillβ
Inherited from CurveProps.fillfiltersβ
Inherited from CurveProps.filtersfontFamilyβ
fontFamily?: SignalValuestring
CurveProps.fontFamilyfontSizeβ
fontSize?: SignalValuenumber
CurveProps.fontSizefontStyleβ
fontStyle?: SignalValuestring
CurveProps.fontStylefontWeightβ
fontWeight?: SignalValuenumber
CurveProps.fontWeightgapβ
Inherited from CurveProps.gapgrowβ
grow?: SignalValuenumber
CurveProps.growheightβ
Inherited from CurveProps.heightjustifyContentβ
Inherited from CurveProps.justifyContentkeyβ
key?: string
CurveProps.keylayoutβ
Inherited from CurveProps.layoutleftβ
left?: SignalValuePossibleVector2number
The position of the left edge of this node.
This shortcut property will set the node's position so that the left edge
ends up in the given place.
If present, overrides the position property.
CurveProps.leftletterSpacingβ
letterSpacing?: SignalValuenumber
CurveProps.letterSpacinglineCapβ
lineCap?: SignalValueCanvasLineCap
CurveProps.lineCaplineDashβ
lineDash?: SignalValuenumber[]
CurveProps.lineDashlineDashOffsetβ
lineDashOffset?: SignalValuenumber
CurveProps.lineDashOffsetlineHeightβ
Inherited from CurveProps.lineHeightlineJoinβ
lineJoin?: SignalValueCanvasLineJoin
CurveProps.lineJoinlineWidthβ
lineWidth?: SignalValuenumber
CurveProps.lineWidthmarginβ
Inherited from CurveProps.marginmarginBottomβ
marginBottom?: SignalValuenumber
CurveProps.marginBottommarginLeftβ
marginLeft?: SignalValuenumber
CurveProps.marginLeftmarginRightβ
marginRight?: SignalValuenumber
CurveProps.marginRightmarginTopβ
marginTop?: SignalValuenumber
CurveProps.marginTopmaxHeightβ
Inherited from CurveProps.maxHeightmaxWidthβ
Inherited from CurveProps.maxWidthmiddleβ
middle?: SignalValuePossibleVector2number
The position of the center of this node.
This shortcut property will set the node's position so that the center ends
up in the given place.
If present, overrides the position property.
When offset is not set, this will be the same as the
position.
CurveProps.middleminHeightβ
Inherited from CurveProps.minHeightminWidthβ
Inherited from CurveProps.minWidthoffsetβ
offset?: SignalValuePossibleVector2number
CurveProps.offsetoffsetXβ
offsetX?: SignalValuenumber
CurveProps.offsetXoffsetYβ
offsetY?: SignalValuenumber
CurveProps.offsetYopacityβ
opacity?: SignalValuenumber
CurveProps.opacitypaddingβ
Inherited from CurveProps.paddingpaddingBottomβ
paddingBottom?: SignalValuenumber
CurveProps.paddingBottompaddingLeftβ
paddingLeft?: SignalValuenumber
CurveProps.paddingLeftpaddingRightβ
paddingRight?: SignalValuenumber
CurveProps.paddingRightpaddingTopβ
paddingTop?: SignalValuenumber
CurveProps.paddingToppositionβ
position?: SignalValuePossibleVector2number
CurveProps.positionradiusβ
Rounds the corners of this rectangle.
The value represents the radius of the quarter circle that is used to round the corners. If the value is a number, the same radius is used for all corners. Passing an array of two to four numbers will set individual radii for each corner. Individual radii correspond to different corners depending on the number of values passed:
// top-left-and-bottom-right | top-right-and-bottom-left
[10, 30]
// top-left | top-right-and-bottom-left | bottom-right
[10, 20, 30]
// top-left | top-right | bottom-right | bottom-left
[10, 20, 30, 40]
ratioβ
ratio?: SignalValuenumber
CurveProps.ratiorefβ
ref?: ReferenceReceiverany
CurveProps.refrightβ
right?: SignalValuePossibleVector2number
The position of the right edge of this node.
This shortcut property will set the node's position so that the right edge
ends up in the given place.
If present, overrides the position property.
CurveProps.rightrotationβ
rotation?: SignalValuenumber
CurveProps.rotationrowGapβ
Inherited from CurveProps.rowGapscaleβ
scale?: SignalValuePossibleVector2number
CurveProps.scalescaleXβ
scaleX?: SignalValuenumber
CurveProps.scaleXscaleYβ
scaleY?: SignalValuenumber
CurveProps.scaleYshadersβ
shaders?: PossibleShaderConfig
CurveProps.shadersshadowBlurβ
shadowBlur?: SignalValuenumber
CurveProps.shadowBlurshadowColorβ
Inherited from CurveProps.shadowColorshadowOffsetβ
Inherited from CurveProps.shadowOffsetshadowOffsetXβ
shadowOffsetX?: SignalValuenumber
CurveProps.shadowOffsetXshadowOffsetYβ
shadowOffsetY?: SignalValuenumber
CurveProps.shadowOffsetYshrinkβ
shrink?: SignalValuenumber
CurveProps.shrinksizeβ
Inherited from CurveProps.sizeskewβ
skew?: SignalValuePossibleVector2number
CurveProps.skewskewXβ
skewX?: SignalValuenumber
CurveProps.skewXskewYβ
skewY?: SignalValuenumber
CurveProps.skewYsmoothCornersβ
smoothCorners?: SignalValueboolean
Enables corner smoothing.
This property only affects the way rounded corners are drawn. To control
the corner radius use the radius property.
When enabled, rounded corners are drawn continuously using BΓ©zier curves
rather than quarter circles. The sharpness of the curve can be controlled
with cornerSharpness.
You can read more about corner smoothing in this article by Nick Lawrence.
spawnerβ
Deprecated
Use children instead.
CurveProps.spawnerstartβ
start?: SignalValuenumber
A percentage from the start before which the curve should be clipped.
The portion of the curve that comes before 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).
CurveProps.startstartArrowβ
startArrow?: SignalValueboolean
Whether to display an arrow at the start of the visible curve.
Use arrowSize to control the size of the arrow.
CurveProps.startArrowstartOffsetβ
startOffset?: SignalValuenumber
The offset in pixels from the start of the curve.
This property lets you specify where along the defined curve the actual
visible portion starts. For example, setting it to 20 will make the first
20 pixels of the curve invisible.
This property is useful for trimming the curve using a fixed distance.
If you want to animate the curve appearing on the screen, use start
instead.
CurveProps.startOffsetstrokeβ
Inherited from CurveProps.strokestrokeFirstβ
strokeFirst?: SignalValueboolean
CurveProps.strokeFirsttagNameβ
tagName?: keyof HTMLElementTagNameMap
CurveProps.tagNametextAlignβ
textAlign?: SignalValueCanvasTextAlign
CurveProps.textAligntextDirectionβ
textDirection?: SignalValueCanvasDirection
CurveProps.textDirectiontextWrapβ
Inherited from CurveProps.textWraptopβ
top?: SignalValuePossibleVector2number
The position of the top edge of this node.
This shortcut property will set the node's position so that the top edge
ends up in the given place.
If present, overrides the position property.
CurveProps.toptopLeftβ
topLeft?: SignalValuePossibleVector2number
The position of the top left corner of this node.
This shortcut property will set the node's position so that the top left
corner ends up in the given place.
If present, overrides the position property.
CurveProps.topLefttopRightβ
topRight?: SignalValuePossibleVector2number
The position of the top right corner of this node.
This shortcut property will set the node's position so that the top right
corner ends up in the given place.
If present, overrides the position property.
CurveProps.topRightwidthβ
Inherited from CurveProps.widthwrapβ
Inherited from CurveProps.wrapxβ
x?: SignalValuenumber
CurveProps.xyβ
y?: SignalValuenumber
CurveProps.yzIndexβ
zIndex?: SignalValuenumber
CurveProps.zIndex