Functions
Link copied to clipboard
Build from an already-parsed <svg> element (inline SVG in XHTML).
Build from an <svg> element that a host document includes, such as an inline SVG in XHTML, whose style sheets style its elements too (#509). hostStyle gives what the host's style sheets declare for an element, as a style attribute holds it, or null for nothing. Those declarations outrank presentation attributes and yield to the SVG's own <style> rules, which come later in the document, unless they are important.
fun fromElement(svg: KiteXmlNode.Element, hostStyle: (KiteXmlNode.Element) -> String??, images: (String) -> KiteImageData??): SvgImage?
fromElement whose <image> elements ask images for their picture first, by their href, so a host that holds an image decoded hands it over without a file.
Link copied to clipboard
The commands of an SVG path's d attribute, up to the first one in error (SVG 2, 9.5.4).
Link copied to clipboard