moonrockz/diagrams-svg/railroad-layout does not have a README file
pub(all) enum Channel { Matched NotMatched Taken Failure} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Channel::equal(Channel, Channel) -> Bool
fn Channel::not_equal(x : Channel, y : Channel) -> Bool
fn Channel::to_repr(Channel) -> @moonbitlang/core/debug.ReprRepr
pub struct Finding { rule : Rule identities : ReadOnlyArray[String] message : String} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Finding::equal(Finding, Finding) -> Bool
fn Finding::not_equal(x : Finding, y : Finding) -> Bool
fn Finding::to_repr(Finding) -> @moonbitlang/core/debug.ReprRepr
pub struct Frame { owner : String role : FrameRole rect : Rect label : Label} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Frame::equal(Frame, Frame) -> Bool
fn Frame::not_equal(x : Frame, y : Frame) -> Bool
fn Frame::to_repr(Frame) -> @moonbitlang/core/debug.ReprRepr
pub(all) enum FrameRole { Group Except} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn FrameRole::equal(FrameRole, FrameRole) -> Bool
fn FrameRole::not_equal(x : FrameRole, y : FrameRole) -> Bool
fn FrameRole::to_repr(FrameRole) -> @moonbitlang/core/debug.ReprRepr
pub struct Geometry { topology : @moonrockz/diagrams/railroad-trace.TopologyTopology width : Double height : Double title : Label? tracks : ReadOnlyArray[TrackBox] terms : ReadOnlyArray[TermBox] frames : ReadOnlyArray[Frame] wires : ReadOnlyArray[Wire] notes : ReadOnlyArray[NoteBox] // private fields}
fn Geometry::new(topology : @moonrockz/diagrams/railroad-trace.TopologyTopology, width : Double, height : Double, tracks : ArrayView[TrackBox], terms : ArrayView[TermBox], frames : ArrayView[Frame], wires : ArrayView[Wire], notes : ArrayView[NoteBox], points : ArrayView[(String, Point)], title? : Label) -> Geometry
fn Geometry::point(self : Geometry, id : String) -> Point?
fn Geometry::points(self : Geometry) -> Array[(String, Point)]
pub struct Label { lines : ReadOnlyArray[String] x : Double size : Double weight : Int box : Rect owner : String} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Label::equal(Label, Label) -> Bool
fn Label::not_equal(x : Label, y : Label) -> Bool
fn Label::to_repr(Label) -> @moonbitlang/core/debug.ReprRepr
pub struct Limits { nodes : Int depth : Int work : Int width : Int output_units : Int minimum_approach : Double} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Limits::equal(Limits, Limits) -> Bool
fn Limits::new(nodes? : Int, depth? : Int, work? : Int, width? : Int, output_units? : Int, minimum_approach? : Double) -> Limits
fn Limits::not_equal(x : Limits, y : Limits) -> Bool
fn Limits::to_repr(Limits) -> @moonbitlang/core/debug.ReprRepr
fn Limits::with_minimum_approach(self : Limits, minimum_approach : Double) -> Limits
pub(all) enum Model { Regex(@moonrockz/diagrams/regex.RegexRegex) Ebnf(@moonrockz/diagrams/ebnf.GrammarGrammar)} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Model::equal(Model, Model) -> Bool
fn Model::not_equal(x : Model, y : Model) -> Bool
fn Model::to_repr(Model) -> @moonbitlang/core/debug.ReprRepr
pub struct NoteBox { id : String rect : Rect label : Label} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn NoteBox::equal(NoteBox, NoteBox) -> Bool
fn NoteBox::not_equal(x : NoteBox, y : NoteBox) -> Bool
fn NoteBox::to_repr(NoteBox) -> @moonbitlang/core/debug.ReprRepr
pub(all) struct Point { x : Double y : Double} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Point::equal(Point, Point) -> Bool
fn Point::not_equal(x : Point, y : Point) -> Bool
fn Point::to_repr(Point) -> @moonbitlang/core/debug.ReprRepr
pub(all) struct Rect { x : Double y : Double width : Double height : Double} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Rect::contains(self : Rect, other : Rect, tolerance? : Double) -> Bool
fn Rect::equal(Rect, Rect) -> Bool
fn Rect::not_equal(x : Rect, y : Rect) -> Bool
fn Rect::overlaps(self : Rect, other : Rect) -> Bool
fn Rect::to_repr(Rect) -> @moonbitlang/core/debug.ReprRepr
pub struct Result { geometry : Geometry? diagnostics : ReadOnlyArray[@moonrockz/diagrams.DiagnosticDiagnostic]}
pub(all) enum Rule { Overlap Fit Contrast Endpoint Length Limit} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Rule::equal(Rule, Rule) -> Bool
fn Rule::not_equal(x : Rule, y : Rule) -> Bool
fn Rule::to_repr(Rule) -> @moonbitlang/core/debug.ReprRepr
pub(all) enum Shape { Pill Square Class Special Anchor Lookaround Dot} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Shape::equal(Shape, Shape) -> Bool
fn Shape::not_equal(x : Shape, y : Shape) -> Bool
fn Shape::to_repr(Shape) -> @moonbitlang/core/debug.ReprRepr
pub struct TermBox { term : @moonrockz/diagrams/railroad-trace.TermTerm shape : Shape rect : Rect label : Label notes : ReadOnlyArray[Label]} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn TermBox::equal(TermBox, TermBox) -> Bool
fn TermBox::not_equal(x : TermBox, y : TermBox) -> Bool
fn TermBox::to_repr(TermBox) -> @moonbitlang/core/debug.ReprRepr
fn TermBox::with_rect(self : TermBox, rect : Rect) -> TermBox
pub struct TrackBox { track : @moonrockz/diagrams/railroad-trace.TrackTrack label : Label start : Point end : Point notes : ReadOnlyArray[Label]} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn TrackBox::equal(TrackBox, TrackBox) -> Bool
fn TrackBox::not_equal(x : TrackBox, y : TrackBox) -> Bool
fn TrackBox::to_repr(TrackBox) -> @moonbitlang/core/debug.ReprRepr
pub struct Wire { connector : @moonrockz/diagrams/railroad-trace.ConnectorConnector points : ReadOnlyArray[Point] label : Label?} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Wire::equal(Wire, Wire) -> Bool
fn Wire::length(self : Wire) -> Double
fn Wire::not_equal(x : Wire, y : Wire) -> Bool
fn Wire::path(self : Wire, radius? : Double) -> String
fn Wire::to_repr(Wire) -> @moonbitlang/core/debug.ReprRepr
fn Wire::with_points(self : Wire, points : ArrayView[Point]) -> Wire
fn channel_color(palette : @moonrockz/diagrams-svg/theme.PalettePalette, channel : Channel) -> @moonrockz/diagrams-svg/theme.ColorColor
fn check(geometry : Geometry, palette : @moonrockz/diagrams-svg/theme.PalettePalette, work_limit? : Int, highlight_colors? : ArrayView[@moonrockz/diagrams-svg/theme.ColorColor]) -> Array[Finding]
fn layout(model : Model, limits? : Limits) -> Result
fn svg_number(value : Double) -> String
fn term_colors(palette : @moonrockz/diagrams-svg/theme.PalettePalette, shape : Shape) -> (@moonrockz/diagrams-svg/theme.ColorColor, @moonrockz/diagrams-svg/theme.ColorColor, @moonrockz/diagrams-svg/theme.ColorColor)
Install
Standalone SVG rendering for diagrams.mbt models, in the visual style of archify
Published modules that use this version
Powered by MoonBit
© 2026 mooncakes.io