class SVG extends Shape
A Node for drawing and animating SVG images.
If you're not interested in animating SVG, you can use Img instead.
Extended by
Latex
Constructors
constructor
Parameters
props: SVGProps
Shape.constructorProperties
absolutePosition
readonly public absolutePosition: SimpleVector2SignalSVG
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.
Shape.absolutePositionabsoluteRotation
readonly public absoluteRotation: SimpleSignalnumberSVG
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 fromShape.absoluteRotationabsoluteScale
readonly public absoluteScale: SimpleVector2SignalSVG
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.
Shape.absoluteScalealignContent
readonly public alignContent: SimpleSignalFlexContentSVG
Shape.alignContentalignItems
readonly public alignItems: SimpleSignalFlexItemsSVG
Shape.alignItemsalignSelf
readonly public alignSelf: SimpleSignalFlexItemsSVG
Shape.alignSelfantialiased
readonly public antialiased: SimpleSignalbooleanSVG
Shape.antialiasedbasis
readonly public basis: SimpleSignalFlexBasisSVG
Shape.basisbottom
readonly public bottom: SimpleVector2SignalSVG
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 fromShape.bottombottomLeft
readonly public bottomLeft: SimpleVector2SignalSVG
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 fromShape.bottomLeftbottomRight
readonly public bottomRight: SimpleVector2SignalSVG
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 fromShape.bottomRightcache
readonly public cache: SimpleSignalbooleanSVG
Shape.cachecachePadding
readonly public cachePadding: SpacingSignalSVG
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.
Shape.cachePaddingchildren
readonly public children: SignalComponentChildrenNode[]SVGSignalContextComponentChildrenNode[]SVG
Shape.childrenclip
readonly public clip: SimpleSignalbooleanSVG
Shape.clipcomposite
readonly public composite: SimpleSignalbooleanSVG
Shape.compositecompositeOperation
readonly public compositeOperation: SimpleSignalGlobalCompositeOperationSVG
Shape.compositeOperationcreationStack
readonly public creationStack?: string
Shape.creationStackdirection
readonly public direction: SimpleSignalFlexDirectionSVG
Shape.directionelement
public element: HTMLElement
Shape.elementfill
readonly public fill: CanvasStyleSignalSVG
Shape.fillfilters
readonly public filters: FiltersSignalSVG
Shape.filtersfontFamily
readonly public fontFamily: SimpleSignalstringSVG
Shape.fontFamilyfontSize
readonly public fontSize: SimpleSignalnumberSVG
Shape.fontSizefontStyle
readonly public fontStyle: SimpleSignalstringSVG
Shape.fontStylefontWeight
readonly public fontWeight: SimpleSignalnumberSVG
Shape.fontWeightgap
readonly public gap: Vector2LengthSignalSVG
Shape.gapgrow
readonly public grow: SimpleSignalnumberSVG
Shape.growisClass
public isClass: boolean
Shape.isClassjustifyContent
readonly public justifyContent: SimpleSignalFlexContentSVG
Shape.justifyContentkey
readonly public key: string
Shape.keylayout
readonly public layout: SimpleSignalLayoutModeSVG
Shape.layoutleft
readonly public left: SimpleVector2SignalSVG
The position of the left edge of this node.
When set, this shortcut property will modify the node's position so that the left edge ends up in the given place.
When retrieved, it will return the position of the left edge in the parent space.
Inherited fromShape.leftletterSpacing
readonly public letterSpacing: SimpleSignalnumberSVG
Shape.letterSpacinglineCap
readonly public lineCap: SimpleSignalCanvasLineCapSVG
Shape.lineCaplineDash
readonly public lineDash: SimpleSignalnumber[]SVG
Shape.lineDashlineDashOffset
readonly public lineDashOffset: SimpleSignalnumberSVG
Shape.lineDashOffsetlineHeight
readonly public lineHeight: SimpleSignalLengthSVG
Shape.lineHeightlineJoin
readonly public lineJoin: SimpleSignalCanvasLineJoinSVG
Shape.lineJoinlineWidth
readonly public lineWidth: SimpleSignalnumberSVG
Shape.lineWidthmargin
readonly public margin: SpacingSignalSVG
Shape.marginmaxHeight
readonly public maxHeight: SimpleSignalLengthLimitSVG
Shape.maxHeightmaxWidth
readonly public maxWidth: SimpleSignalLengthLimitSVG
Shape.maxWidthmiddle
readonly public middle: SimpleVector2SignalSVG
The position of the center of this node.
When set, this shortcut property will modify the node's position so that the center ends up in the given place.
If the offset has not been changed, this will be the same as the
position.
When retrieved, it will return the position of the center in the parent space.
Inherited fromShape.middleminHeight
readonly public minHeight: SimpleSignalLengthLimitSVG
Shape.minHeightminWidth
readonly public minWidth: SimpleSignalLengthLimitSVG
Shape.minWidthoffset
readonly public offset: Vector2SignalSVG
Represents the offset of this node's origin.
By default, the origin of a node is located at its center. The origin serves as the pivot point when rotating and scaling a node, but it doesn't affect the placement of its children.
The value is relative to the size of this node. A value of 1 means as far
to the right/bottom as possible. Here are a few examples of offsets:
[-1, -1]- top left corner[1, -1]- top right corner[0, 1]- bottom edge[-1, 1]- bottom left corner
Shape.offsetopacity
readonly public opacity: SimpleSignalnumberSVG
Represents the opacity of this node in the range 0-1.
The value is clamped to the range 0-1.
Inherited fromShape.opacitypadding
readonly public padding: SpacingSignalSVG
Shape.padding