PerfectPan/svgo/xml does not have a README file
pub suberror ParseError { ParseError(String, Int)} derive(@moonbitlang/core/debug.DebugDebug)
impl Show for ParseError
fn output(self : ParseError, logger : &Logger) -> Unit
fn ParseError::output(self : ParseError, logger : &Logger) -> Unit
fn ParseError::to_repr(ParseError) -> @moonbitlang/core/debug.ReprRepr
fn ParseError::to_string(self : ParseError) -> String
pub(all) struct Document { children : Array[Node]} derive(@moonbitlang/core/debug.DebugDebug)
fn Document::each_element(self : Document, f : (Element, Element?) -> Unit) -> Unit
fn Document::each_element_post(self : Document, f : (Element, Element?) -> Unit) -> Unit
fn Document::root(self : Document) -> Element?
fn Document::to_repr(Document) -> @moonbitlang/core/debug.ReprRepr
fn Document::to_string(self : Document, options? : SerializeOptions) -> String
pub(all) struct Element { name : String attrs : Map[String, String] children : Array[Node]} derive(@moonbitlang/core/debug.DebugDebug)
fn Element::elements(self : Element) -> Array[Element]
fn Element::get(self : Element, name : String) -> String?
fn Element::has(self : Element, name : String) -> Bool
fn Element::new(name : String, attrs? : Map[String, String], children? : Array[Node]) -> Element
fn Element::remove(self : Element, name : String) -> Unit
fn Element::set(self : Element, name : String, value : String) -> Unit
fn Element::to_repr(Element) -> @moonbitlang/core/debug.ReprRepr
fn Element::to_string(self : Element, options? : SerializeOptions) -> String
pub(all) enum Node { Element(Element) Text(String) Comment(String) CData(String) Doctype(String) ProcInst(String, String)} derive(@moonbitlang/core/debug.DebugDebug)
fn Node::to_repr(Node) -> @moonbitlang/core/debug.ReprRepr
pub(all) struct SerializeOptions { pretty : Bool prolog : Bool} derive(@moonbitlang/core/debug.DebugDebug)
fn SerializeOptions::default() -> SerializeOptions
fn SerializeOptions::to_repr(SerializeOptions) -> @moonbitlang/core/debug.ReprRepr
fn parse(source : String) -> Document raise ParseError
Install
SVG optimizer in pure MoonBit: svgo-compatible plugin pipeline with path data optimization, colour and number cleanup, and render-diff verification
No dependencies
No dependents