Sign in

    sayoi7799/moon_vegalite/vl does not have a README file

    CompileError

    pub suberror CompileError {
    CompileError(String)
    }

    CompileError::message

    fn CompileError::message(self : CompileError) -> String

    Axis

    pub(all) struct Axis {
    mark :
    Mark

    orient : String
    has_grid : Bool
    has_ticks : Bool
    has_labels : Bool
    has_domain : Bool
    has_title : Bool
    overlap : String?
    overlap_separation : Double
    }

    AxisPlan

    pub(all) struct AxisPlan {
    scale : RScale
    domain : Array[
    Value
    ]
    orient : String
    title : String?
    props : Map[String,
    Value
    ]
    grid_scale : RScale?
    tick_count : Double
    }

    What the compiler decided for one axis.

    Compiled

    pub(all) struct Compiled {
    scene :
    Mark

    width : Double
    height : Double
    origin : (Double, Double)
    padding : Double
    view_width : Double
    view_height : Double
    background : String?
    }

    LegendEntry

    pub(all) struct LegendEntry {
    label : String
    props : Map[String,
    Value
    ]
    }

    One legend entry: its label and the symbol properties that depend on the value (fill / stroke / size / shape / opacity ...).

    LegendPlan

    pub(all) struct LegendPlan {
    title : String?
    orient : String
    symbol : Map[String,
    Value
    ]
    entries : Array[LegendEntry]
    }

    Title

    pub struct Title {
    mark :
    Mark

    }

    build_gradient_legend

    fn build_gradient_legend(title : String?, seq :
    Sequential
    , length : Double, ramp_opacity : Double, label_format : String?) -> Legend raise CompileError

    A vertical gradient legend: a colour ramp with tick labels (vega-parser legend-gradient.js and legend-gradient-labels.js).

    build_legend

    fn build_legend(plan : LegendPlan) -> Legend raise CompileError

    build_title

    fn build_title(text : String) -> Title raise CompileError

    compile

    fn compile(text : String) -> Compiled raise CompileError

    validate

    fn validate(spec :
    Spec
    ) -> Unit raise CompileError

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io