IconProps
interface IconProps extends ImgProps
Propertiesβ
alignContentβ
Inherited from ImgProps.alignContentalignItemsβ
Inherited from ImgProps.alignItemsalignSelfβ
Inherited from ImgProps.alignSelfalphaβ
alpha?: SignalValuenumber
The alpha value of this image.
Unlike opacity, the alpha value affects only the image itself, leaving the fill, stroke, and children intact.
Inherited fromImgProps.alphaantialiasedβ
antialiased?: SignalValueboolean
ImgProps.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.
ImgProps.arrowSizebasisβ
Inherited from ImgProps.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.
ImgProps.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.
ImgProps.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.
ImgProps.bottomRightcacheβ
cache?: SignalValueboolean
ImgProps.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.
ImgProps.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.
ImgProps.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.
ImgProps.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.
ImgProps.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.
ImgProps.cachePaddingTopchildrenβ
Inherited from ImgProps.childrenclipβ
clip?: SignalValueboolean
ImgProps.clipclosedβ
closed?: SignalValueboolean
Whether the curve should be closed.
Closed curves have their start and end points connected.
Inherited fromImgProps.closedcolorβ
The color of the icon
Provide the color in one of the following formats:
- named color like
red,darkgray, β¦ - hexadecimal string with # like
#bada55,#141414Value can be either RGB or RGBA:#bada55,#bada55aa(latter is partially transparent) The shorthand version (e.g.#abcfor#aabbccis also possible.)
columnGapβ
Inherited from ImgProps.columnGapcompositeβ
composite?: SignalValueboolean
ImgProps.compositecompositeOperationβ
compositeOperation?: SignalValueGlobalCompositeOperation
ImgProps.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.
ImgProps.cornerSharpnessdirectionβ
Inherited from ImgProps.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).
ImgProps.endendArrowβ
endArrow?: SignalValueboolean
Whether to display an arrow at the end of the visible curve.
Use arrowSize to control the size of the arrow.
ImgProps.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.
ImgProps.endOffsetfillβ
Inherited from ImgProps.fillfiltersβ
Inherited from ImgProps.filtersfontFamilyβ
fontFamily?: SignalValuestring
ImgProps.fontFamilyfontSizeβ
fontSize?: SignalValuenumber
ImgProps.fontSizefontStyleβ
fontStyle?: SignalValuestring
ImgProps.fontStylefontWeightβ
fontWeight?: SignalValuenumber
ImgProps.fontWeightgapβ
Inherited from ImgProps.gapgrowβ
grow?: SignalValuenumber
ImgProps.growheightβ
Inherited from ImgProps.heighticonβ
icon: SignalValuestring
The identifier of the icon.
You can find identifiers on IcΓ΄nes. They can look like this:
mdi:language-typescriptph:anchor-simple-boldph:activity-bold
justifyContentβ
Inherited from ImgProps.justifyContentkeyβ
key?: string
ImgProps.keylayoutβ
Inherited from ImgProps.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.
ImgProps.leftletterSpacingβ
letterSpacing?: SignalValuenumber
ImgProps.letterSpacinglineCapβ
lineCap?: SignalValueCanvasLineCap
ImgProps.lineCaplineDashβ
lineDash?: SignalValuenumber[]
ImgProps.lineDashlineDashOffsetβ
lineDashOffset?: SignalValuenumber
ImgProps.lineDashOffsetlineHeightβ
Inherited from ImgProps.lineHeightlineJoinβ
lineJoin?: SignalValueCanvasLineJoin
ImgProps.lineJoinlineWidthβ
lineWidth?: SignalValuenumber
ImgProps.lineWidthmarginβ
Inherited from ImgProps.marginmarginBottomβ
marginBottom?: SignalValuenumber
ImgProps.marginBottommarginLeftβ
marginLeft?: SignalValuenumber
ImgProps.marginLeftmarginRightβ
marginRight?: SignalValuenumber
ImgProps.marginRightmarginTopβ
marginTop?: SignalValuenumber
ImgProps.marginTopmaxHeightβ
Inherited from ImgProps.maxHeightmaxWidthβ
Inherited from ImgProps.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.
ImgProps.middleminHeightβ
Inherited from ImgProps.minHeightminWidthβ
Inherited from ImgProps.minWidthoffsetβ
offset?: SignalValuePossibleVector2number
ImgProps.offsetoffsetXβ
offsetX?: SignalValuenumber
ImgProps.offsetXoffsetYβ
offsetY?: SignalValuenumber
ImgProps.offsetYopacityβ
opacity?: SignalValuenumber
ImgProps.opacitypaddingβ
Inherited from ImgProps.paddingpaddingBottomβ
paddingBottom?: SignalValuenumber
ImgProps.paddingBottompaddingLeftβ
paddingLeft?: SignalValuenumber
ImgProps.paddingLeftpaddingRightβ
paddingRight?: SignalValuenumber
ImgProps.paddingRightpaddingTopβ
paddingTop?: SignalValuenumber
ImgProps.paddingToppositionβ
position?: SignalValuePossibleVector2number
ImgProps.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]
ImgProps.radiusratioβ
ratio?: SignalValuenumber
ImgProps.ratiorefβ
ref?: ReferenceReceiverany
ImgProps.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.
ImgProps.rightrotationβ
rotation?: SignalValuenumber
ImgProps.rotationrowGapβ
Inherited from ImgProps.rowGapscaleβ
scale?: SignalValuePossibleVector2number
ImgProps.scalescaleXβ
scaleX?: SignalValuenumber
ImgProps.scaleXscaleYβ
scaleY?: SignalValuenumber
ImgProps.scaleYshadersβ
shaders?: PossibleShaderConfig
ImgProps.shadersshadowBlurβ
shadowBlur?: SignalValuenumber
ImgProps.shadowBlurshadowColorβ
Inherited from ImgProps.shadowColorshadowOffsetβ
Inherited from ImgProps.shadowOffsetshadowOffsetXβ
shadowOffsetX?: SignalValuenumber
ImgProps.shadowOffsetXshadowOffsetYβ
shadowOffsetY?: SignalValuenumber
ImgProps.shadowOffsetYshrinkβ
shrink?: SignalValuenumber
ImgProps.shrinksizeβ
Inherited from ImgProps.sizeskewβ
skew?: SignalValuePossibleVector2number
ImgProps.skewskewXβ
skewX?: SignalValuenumber
ImgProps.skewXskewYβ
skewY?: SignalValuenumber
ImgProps.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 fromImgProps.smoothCornerssmoothingβ
smoothing?: SignalValueboolean
Whether the image should be smoothed.
When disabled, the image will be scaled using the nearest neighbor interpolation with no smoothing. The resulting image will appear pixelated.
Inherited fromImgProps.smoothingspawnerβ
Deprecated
Use children instead.
ImgProps.spawnersrcβ
src?: SignalValuenullstring
The source of this image.
Inherited fromImgProps.srcstartβ
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).
ImgProps.startstartArrowβ
startArrow?: SignalValueboolean
Whether to display an arrow at the start of the visible curve.
Use arrowSize to control the size of the arrow.
ImgProps.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.
ImgProps.startOffsetstrokeβ
Inherited from ImgProps.strokestrokeFirstβ
strokeFirst?: SignalValueboolean
ImgProps.strokeFirsttagNameβ
tagName?: keyof HTMLElementTagNameMap
ImgProps.tagNametextAlignβ
textAlign?: SignalValueCanvasTextAlign
ImgProps.textAligntextDirectionβ
textDirection?: SignalValueCanvasDirection
ImgProps.textDirectiontextWrapβ
Inherited from ImgProps.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.
ImgProps.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.
ImgProps.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.
ImgProps.topRightwidthβ
Inherited from ImgProps.widthwrapβ
Inherited from ImgProps.wrapxβ
x?: SignalValuenumber
ImgProps.xyβ
y?: SignalValuenumber
ImgProps.yzIndexβ
zIndex?: SignalValuenumber
ImgProps.zIndex