Package-level declarations

Types

Link copied to clipboard
data class ComputedRule(val selector: String, val specificity: CssSpecificity, val declarations: List<Declaration>) : Comparable<ComputedRule>
Link copied to clipboard
Link copied to clipboard
typealias SvgChildNodeConstructorFn<T> = (parent: XmlParentNode, attributes: MutableMap<String, String>) -> T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
value class SvgColor
Link copied to clipboard
Link copied to clipboard
abstract class SvgElementNode<out T : SvgNode, XmlParentNode>(parent: XmlParentNode, val children: MutableSet<XmlNode>, val attributes: MutableMap<String, String>, val tagName: String) : XmlElementNode, SvgNode
Link copied to clipboard
typealias SvgElementNodeConstructorFn<T> = (parent: XmlParentNode, children: MutableSet<XmlNode>, attributes: MutableMap<String, String>) -> T
Link copied to clipboard
Link copied to clipboard

Represents an <stop> element of an SVG linearGradient or radialGradient element.

Link copied to clipboard
abstract class SvgGraphicNode<out T : SvgNode, XmlChildNode>(parent: XmlParentNode, val attributes: MutableMap<String, String>, val tagName: String) : SvgChildNode<T> , SvgNode
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed interface SvgNode : XmlNode

Represents a node in the SVG tree.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Represents the root node of an SVG document.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class SvgUseNode(parent: XmlParentNode, val attributes: MutableMap<String, String>, val replacement: SvgGroupNode) : SvgChildNode<SvgUseNode>

Functions

Link copied to clipboard
Link copied to clipboard
context(logger: Logger)
fun SvgCircleNode.asNode(minified: Boolean): ImageVectorNode
context(logger: Logger)
fun SvgRectNode.asNode(minified: Boolean): ImageVectorNode.Path
context(logger: Logger)
fun SvgPathNode.asNode(computedRules: List<ComputedRule> = emptyList(), minified: Boolean = false): ImageVectorNode
Link copied to clipboard
context(logger: Logger)
fun <T : SvgNode, XmlParentNode> SvgElementNode<T>.asNodes(computedRules: List<ComputedRule>, minified: Boolean): List<ImageVectorNode>

context(logger: Logger)
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
context(logger: Logger)
fun SvgClipPath.asNodeWrapper(computedRules: List<ComputedRule> = emptyList(), minified: Boolean = false): ImageVectorNode.NodeWrapper
Link copied to clipboard
context(logger: Logger)
fun SvgGroupNode.flatNode(masks: List<SvgMaskNode>, computedRules: List<ComputedRule> = emptyList(), minified: Boolean = false): List<ImageVectorNode>
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
Link copied to clipboard