true if the image should be split into parts before delivery, false otherwise. Checks if either of tile.x
or tile.y
are > 1
.
Returns true
if icon has no layer elements.
Width component of overall image size.
Height component of overall image size.
Optional
init: Partial<DynamicIcon>Returns the number of element layers currently defined.
Returns element at index
, if any, or undefined
otherwise. Negative indexes count from the end, as in Array.prototype.at()
.
the icon name is also used for the corresponding TP State ID
Readonly
tileSpecifies an optional grid to split the final image into multiple parts before sending to TP.
true
if icon was explicitly created with a "New" action, will require a corresponding "Render" action to actually draw it.
Whether to use GPU for rendering (on supported hardware). Passed to skia-canvas's Canvas::gpu property.
Readonly
outputOptions for the 'sharp' lib image compression. These are passed to sharp.png()
when generating PNG results.
compressionLevel
of 0
disables compression step entirely (sharp
lib is never invoked, skia-canvas
PNG-24 output is used directly).
Default compressionLevel
and quality
are set in plugin settings and can be overridden in an icon "finalize" action.
Default effort
is set to 1
and palette
to true
.
See https://sharp.pixelplumbing.com/api-output#png for option descriptions.
Stores a collection of
ILayerElement
types as layers and produces a composite image from all the layers when rendered.