View2DProps
interface View2DProps extends RectProps
Propertiesβ
alignContentβ
Inherited from RectProps.alignContentalignItemsβ
Inherited from RectProps.alignItemsalignSelfβ
Inherited from RectProps.alignSelfantialiasedβ
antialiased?: SignalValueboolean
RectProps.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.
RectProps.arrowSizeassetHashβ
assetHash: string
basisβ
Inherited from RectProps.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.
RectProps.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.
RectProps.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.
RectProps.bottomRightcacheβ
cache?: SignalValueboolean
RectProps.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.
RectProps.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.
RectProps.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.
RectProps.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.
RectProps.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.
RectProps.cachePaddingTopchildrenβ
Inherited from RectProps.childrenclipβ
clip?: SignalValueboolean
RectProps.clipclosedβ
closed?: SignalValueboolean
Whether the curve should be closed.
Closed curves have their start and end points connected.
Inherited fromRectProps.closedcolumnGapβ
Inherited from RectProps.columnGapcompositeβ
composite?: SignalValueboolean
RectProps.compositecompositeOperationβ
compositeOperation?: SignalValueGlobalCompositeOperation
RectProps.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.
RectProps.cornerSharpnessdirectionβ
Inherited from RectProps.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).
RectProps.endendArrowβ
endArrow?: SignalValueboolean
Whether to display an arrow at the end of the visible curve.
Use arrowSize to control the size of the arrow.
RectProps.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.
RectProps.endOffsetfillβ
Inherited from RectProps.fillfiltersβ
Inherited from RectProps.filtersfontFamilyβ
fontFamily?: SignalValuestring
RectProps.fontFamilyfontSizeβ
fontSize?: SignalValuenumber
RectProps.fontSizefontStyleβ
fontStyle?: SignalValuestring
RectProps.fontStylefontWeightβ
fontWeight?: SignalValuenumber
RectProps.fontWeightgapβ
Inherited from RectProps.gapgrowβ
grow?: SignalValuenumber
RectProps.growheightβ
Inherited from RectProps.heightjustifyContentβ
Inherited from RectProps.justifyContentkeyβ
key?: string
RectProps.keylayoutβ
Inherited from RectProps.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.
RectProps.leftletterSpacingβ
letterSpacing?: SignalValuenumber
RectProps.letterSpacinglineCapβ
lineCap?: SignalValueCanvasLineCap
RectProps.lineCaplineDashβ
lineDash?: SignalValuenumber[]
RectProps.lineDashlineDashOffsetβ
lineDashOffset?: SignalValuenumber
RectProps.lineDashOffsetlineHeightβ
Inherited from RectProps.lineHeightlineJoinβ
lineJoin?: SignalValueCanvasLineJoin
RectProps.lineJoinlineWidthβ
lineWidth?: SignalValuenumber
RectProps.lineWidthmarginβ
Inherited from RectProps.marginmarginBottomβ
marginBottom?: SignalValuenumber
RectProps.marginBottommarginLeftβ
marginLeft?: SignalValuenumber
RectProps.marginLeftmarginRightβ
marginRight?: SignalValuenumber
RectProps.marginRightmarginTopβ
marginTop?: SignalValuenumber
RectProps.marginTopmaxHeightβ
Inherited from RectProps.maxHeightmaxWidthβ
Inherited from RectProps.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.
RectProps.middleminHeightβ
Inherited from RectProps.minHeightminWidthβ
Inherited from RectProps.minWidthoffsetβ
offset?: SignalValuePossibleVector2number
RectProps.offsetoffsetXβ
offsetX?: SignalValuenumber
RectProps.offsetXoffsetYβ
offsetY?: SignalValuenumber
RectProps.offsetYopacityβ
opacity?: SignalValuenumber
RectProps.opacitypaddingβ
Inherited from RectProps.paddingpaddingBottomβ
paddingBottom?: SignalValuenumber
RectProps.paddingBottompaddingLeftβ
paddingLeft?: SignalValuenumber
RectProps.paddingLeftpaddingRightβ
paddingRight?: SignalValuenumber
RectProps.paddingRightpaddingTopβ
paddingTop?: SignalValuenumber
RectProps.paddingToppositionβ
position?: SignalValuePossibleVector2number
RectProps.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]
RectProps.radiusratioβ
ratio?: SignalValuenumber
RectProps.ratiorefβ
ref?: ReferenceReceiverany
RectProps.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.
RectProps.rightrotationβ
rotation?: SignalValuenumber
RectProps.rotationrowGapβ
Inherited from RectProps.rowGapscaleβ
scale?: SignalValuePossibleVector2number
RectProps.scalescaleXβ
scaleX?: SignalValuenumber
RectProps.scaleXscaleYβ
scaleY?: SignalValuenumber
RectProps.scaleYshadersβ
shaders?: PossibleShaderConfig
RectProps.shadersshadowBlurβ
shadowBlur?: SignalValuenumber
RectProps.shadowBlurshadowColorβ
Inherited from RectProps.shadowColorshadowOffsetβ
Inherited from RectProps.shadowOffsetshadowOffsetXβ
shadowOffsetX?: SignalValuenumber
RectProps.shadowOffsetXshadowOffsetYβ
shadowOffsetY?: SignalValuenumber
RectProps.shadowOffsetYshrinkβ
shrink?: SignalValuenumber
RectProps.shrinksizeβ
Inherited from RectProps.sizeskewβ
skew?: SignalValuePossibleVector2number
RectProps.skewskewXβ
skewX?: SignalValuenumber
RectProps.skewXskewYβ
skewY?: SignalValuenumber
RectProps.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.
Inherited fromRectProps.smoothCornersspawnerβ
Deprecated
Use children instead.
RectProps.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).
RectProps.startstartArrowβ
startArrow?: SignalValueboolean
Whether to display an arrow at the start of the visible curve.
Use arrowSize to control the size of the arrow.
RectProps.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.
RectProps.startOffsetstrokeβ
Inherited from RectProps.strokestrokeFirstβ
strokeFirst?: SignalValueboolean
RectProps.strokeFirsttagNameβ
tagName?: keyof HTMLElementTagNameMap
RectProps.tagNametextAlignβ
textAlign?: SignalValueCanvasTextAlign
RectProps.textAligntextDirectionβ
textDirection?: SignalValueCanvasDirection
RectProps.textDirectiontextWrapβ
Inherited from RectProps.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.
RectProps.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.
RectProps.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.
RectProps.topRightwidthβ
Inherited from RectProps.widthwrapβ
Inherited from RectProps.wrapxβ
x?: SignalValuenumber
RectProps.xyβ
y?: SignalValuenumber
RectProps.yzIndexβ
zIndex?: SignalValuenumber
RectProps.zIndex