Creates an instance of SvgIcon from an SVG string.
The SVG string, optionally prefixed with "data:image/svg+xml,".
add a transformation to the current transformation
add a class
class name to add
handle SVG DOM event
Set the shape rendering attribute to control anti-aliasing for shapes.
When enabled, the attribute is set to "auto" to allow smoothing/anti-aliasing. When disabled, the attribute is set to "crispEdges" to favor pixel-aligned, non-anti-aliased rendering.
True to enable anti-aliasing ("auto"), false to disable ("crispEdges").
the current instance to allow chaining).
remove all transformations
change the fill color
return the given attribute if any
the svh element dom
return the attribute as number
the element is not filled
remove a class
class name to remove
Remove all attributes from the underlying DOM element.
The current instance (this) to allow method chaining.
rotation
scaling
define a new attribute
attibute name
attribute value
this
change one style value
change the stroke color
Optionalwidth: numberchange the stroke opacity attribute on the element.
Opacity value where 0 is fully transparent and 1 is fully opaque.
The current instance to allow method chaining.
change the stroke width
define the whole transformation
translation
Represents an SVG icon, which is essentially an SVG element embedded within another. It extends
SvgItemto inherit common SVG element functionalities.