sayoi7799/moon_vegalite/svg does not have a README file

    Geometry

    pub(all) enum Geometry {
    Box(Double, Double, Double, Double)
    Segment(Double, Double, Double, Double)
    Path(String)
    }

    The outline of a Shape.

    Shape

    pub(all) struct Shape {
    kind : ShapeKind
    item :
    Item

    geometry : Geometry
    transform : String?
    position : Array[Int]
    }

    A graphic element the renderer is about to write, offered to SvgOptions::shapes.

    ShapeKind

    pub(all) enum ShapeKind {
    Rect
    Rule
    Symbol
    Line
    Area
    Arc
    Background
    Foreground
    }

    What a Shape is, i.e. which part of the scenegraph it was made from.

    SvgOptions

    pub struct SvgOptions {
    width : Double
    height : Double
    origin : (Double, Double)
    background : String?
    scale : Double
    shapes : (Shape) -> String??
    }

    Output options for render_svg.

    SvgOptions::new

    fn SvgOptions::new(width : Double, height : Double, origin? : (Double, Double), background? : String, scale? : Double, shapes? : (Shape) -> String?) -> SvgOptions

    render_svg

    Render a scenegraph to an SVG document string.

    Source Files