SvgGradientStopNode
class SvgGradientStopNode(parent: XmlParentNode, val attributes: MutableMap<String, String>) : SvgChildNode<SvgGradientStopNode> , SvgNode(source)
Represents an <stop> element of an SVG linearGradient or radialGradient element.
The <stop> element defines a color stop along the gradient line.
see: SVG Gradient Stops
Properties
Link copied to clipboard
Link copied to clipboard
protected open override val constructor: (parent: XmlParentNode, attributes: MutableMap<String, String>) -> SvgGradientStopNode
Link copied to clipboard
Computes the color of the gradient stop, taking into account the stop-color and stop-opacity attributes.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The transform attribute of the node.
Functions
Link copied to clipboard
context(logger: Logger)
fun SvgNode.asNodes(computedRules: List<ComputedRule>, masks: List<SvgMaskNode>, minified: Boolean): List<ImageVectorNode>?
fun SvgNode.asNodes(computedRules: List<ComputedRule>, masks: List<SvgMaskNode>, minified: Boolean): List<ImageVectorNode>?
Converts the SVG node to a list of ImageVectorNode.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Normalizes an id by removing prefixes and suffixes commonly used in SVGs.
Link copied to clipboard
Link copied to clipboard
Calculates the stacked transform of the node by traversing up the tree and concatenating the transform attributes of the ancestors.
Link copied to clipboard