SvgUseNode

class SvgUseNode(parent: XmlParentNode, val attributes: MutableMap<String, String>, val replacement: SvgGroupNode) : SvgChildNode<SvgUseNode> (source)

Constructors

Link copied to clipboard
constructor(parent: XmlParentNode, attributes: MutableMap<String, String>, replacement: SvgGroupNode)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val attributes: MutableMap<String, String>
Link copied to clipboard
open override val className: String?
Link copied to clipboard
protected open override val constructor: Nothing
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val id: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val style: String?
Link copied to clipboard
open override val tagName: String
Link copied to clipboard
open override val transform: SvgTransform?

The transform attribute of the node.

Link copied to clipboard
Link copied to clipboard
val x: Float
Link copied to clipboard
val y: Float

Functions

Link copied to clipboard
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
Link copied to clipboard
open override fun copy(parent: XmlParentNode?, attributes: Map<String, String>?): SvgUseNode
Link copied to clipboard

Normalizes an id by removing prefixes and suffixes commonly used in SVGs.

Link copied to clipboard
Link copied to clipboard
open fun resolveAttributesFromStyle(computedRules: List<ComputedRule>)
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
open override fun toJsString(extra: StringBuilder.() -> Unit?): String
Link copied to clipboard
open override fun toString(): String