IconProps
interface IconProps extends ImgProps
Properties
alignContent
Inherited from ImgProps.alignContent
alignItems
Inherited from ImgProps.alignItems
alignSelf
Inherited from ImgProps.alignSelf
alpha
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.alpha
antialiased
antialiased?: SignalValueboolean
ImgProps.antialiased
arrowSize
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.arrowSize
basis
Inherited from ImgProps.basis
bottom
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.bottom
bottomLeft
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.bottomLeft
bottomRight
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.bottomRight
cache
cache?: SignalValueboolean
ImgProps.cache
cachePadding
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.cachePadding
cachePaddingBottom
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.cachePaddingBottom
cachePaddingLeft
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.cachePaddingLeft
cachePaddingRight
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.cachePaddingRight
cachePaddingTop
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.cachePaddingTop
children
Inherited from ImgProps.children
clip
clip?: SignalValueboolean
ImgProps.clip
closed
closed?: SignalValueboolean
Whether the curve should be closed.
Closed curves have their start and end points connected.
Inherited fromImgProps.closed
color
The color of the icon
Provide the color in one of the following formats:
- named color like
red
,darkgray
, … - hexadecimal string with # like
#bada55
,#141414
Value can be either RGB or RGBA:#bada55
,#bada55aa
(latter is partially transparent) The shorthand version (e.g.#abc
for#aabbcc
is also possible.)
columnGap
Inherited from ImgProps.columnGap
composite
composite?: SignalValueboolean
ImgProps.composite
compositeOperation
compositeOperation?: SignalValueGlobalCompositeOperation
ImgProps.compositeOperation
cornerSharpness
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.cornerSharpness
direction
Inherited from ImgProps.direction
end
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.end
endArrow
endArrow?: SignalValueboolean
Whether to display an arrow at the end of the visible curve.
Use arrowSize
to control the size of the arrow.
ImgProps.endArrow
endOffset
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.endOffset
fill
Inherited from ImgProps.fill
filters
Inherited from ImgProps.filters
fontFamily
fontFamily?: SignalValuestring
ImgProps.fontFamily
fontSize
fontSize?: SignalValuenumber
ImgProps.fontSize
fontStyle
fontStyle?: SignalValuestring
ImgProps.fontStyle
fontWeight
fontWeight?: SignalValuenumber
ImgProps.fontWeight
gap
Inherited from ImgProps.gap
grow
grow?: SignalValuenumber
ImgProps.grow
height
Inherited from ImgProps.height
icon
icon: SignalValuestring
The identifier of the icon.
You can find identifiers on Icônes. They can look like this:
mdi:language-typescript
ph:anchor-simple-bold
ph:activity-bold
justifyContent
Inherited from ImgProps.justifyContent
key
key?: string
ImgProps.key
layout
Inherited from ImgProps.layout
left
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.left
letterSpacing
letterSpacing?: SignalValuenumber
ImgProps.letterSpacing
lineCap
lineCap?: SignalValueCanvasLineCap
ImgProps.lineCap
lineDash
lineDash?: SignalValuenumber[]
ImgProps.lineDash
lineDashOffset
lineDashOffset?: SignalValuenumber
ImgProps.lineDashOffset
lineHeight
Inherited from ImgProps.lineHeight
lineJoin
lineJoin?: SignalValueCanvasLineJoin
ImgProps.lineJoin
lineWidth
lineWidth?: SignalValuenumber
ImgProps.lineWidth
margin
Inherited from ImgProps.margin
marginBottom
marginBottom?: SignalValuenumber
ImgProps.marginBottom
marginLeft
marginLeft?: SignalValuenumber
ImgProps.marginLeft
marginRight
marginRight?: SignalValuenumber
ImgProps.marginRight
marginTop
marginTop?: SignalValuenumber
ImgProps.marginTop
maxHeight
Inherited from ImgProps.maxHeight
maxWidth
Inherited from ImgProps.maxWidth
middle
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.middle
minHeight
Inherited from ImgProps.minHeight
minWidth
Inherited from ImgProps.minWidth
offset
offset?: SignalValuePossibleVector2number
ImgProps.offset
offsetX
offsetX?: SignalValuenumber
ImgProps.offsetX
offsetY
offsetY?: SignalValuenumber
ImgProps.offsetY
opacity
opacity?: SignalValuenumber
ImgProps.opacity
padding
Inherited from ImgProps.padding
paddingBottom
paddingBottom?: SignalValuenumber
ImgProps.paddingBottom
paddingLeft
paddingLeft?: SignalValuenumber
ImgProps.paddingLeft
paddingRight
paddingRight?: SignalValuenumber
ImgProps.paddingRight
paddingTop
paddingTop?: SignalValuenumber
ImgProps.paddingTop
position
position?: SignalValuePossibleVector2number
ImgProps.position
radius
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.radius
ratio
ratio?: SignalValuenumber
ImgProps.ratio
ref
ref?: ReferenceReceiverany
ImgProps.ref
right
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.right
rotation
rotation?: SignalValuenumber
ImgProps.rotation
rowGap
Inherited from ImgProps.rowGap
scale
scale?: SignalValuePossibleVector2number
ImgProps.scale
scaleX
scaleX?: SignalValuenumber
ImgProps.scaleX
scaleY
scaleY?: SignalValuenumber
ImgProps.scaleY
shaders
shaders?: PossibleShaderConfig
ImgProps.shaders
shadowBlur
shadowBlur?: SignalValuenumber
ImgProps.shadowBlur
shadowColor
Inherited from ImgProps.shadowColor
shadowOffset
Inherited from ImgProps.shadowOffset
shadowOffsetX
shadowOffsetX?: SignalValuenumber
ImgProps.shadowOffsetX
shadowOffsetY
shadowOffsetY?: SignalValuenumber
ImgProps.shadowOffsetY
shrink
shrink?: SignalValuenumber
ImgProps.shrink
size
Inherited from ImgProps.size
skew
skew?: SignalValuePossibleVector2number
ImgProps.skew
skewX
skewX?: SignalValuenumber
ImgProps.skewX
skewY
skewY?: SignalValuenumber
ImgProps.skewY
smoothCorners
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.smoothCorners
smoothing
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.smoothing
spawner
Deprecated
Use children
instead.
ImgProps.spawner
src
src?: SignalValuenullstring
The source of this image.
Inherited fromImgProps.src
start
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.start
startArrow
startArrow?: SignalValueboolean
Whether to display an arrow at the start of the visible curve.
Use arrowSize
to control the size of the arrow.
ImgProps.startArrow
startOffset
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.startOffset
stroke
Inherited from ImgProps.stroke
strokeFirst
strokeFirst?: SignalValueboolean
ImgProps.strokeFirst
tagName
tagName?: keyof HTMLElementTagNameMap
ImgProps.tagName
textAlign
textAlign?: SignalValueCanvasTextAlign
ImgProps.textAlign
textDirection
textDirection?: SignalValueCanvasDirection
ImgProps.textDirection
textWrap
Inherited from ImgProps.textWrap
top
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.top
topLeft
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.topLeft
topRight
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.topRight
width
Inherited from ImgProps.width
wrap
Inherited from ImgProps.wrap
x
x?: SignalValuenumber
ImgProps.x
y
y?: SignalValuenumber
ImgProps.y
zIndex
zIndex?: SignalValuenumber
ImgProps.zIndex