moonrockz/diagrams/swimlane
Types
Connection
pub struct Connection {
id : String
source : String
target : String
label : String
label_kind : LabelKind
style : LineStyle
source_marker : Marker
target_marker : Marker
min_length : Int
direction : FlowDirection
} derive(Eq, @moonbitlang/core/debug.Debug)Connection::equal
fn Connection::equal(Connection, Connection) -> BoolConnection::new
fn Connection::new(id : String, source : String, target : String, label? : String, label_kind? : LabelKind, style? : LineStyle, source_marker? : Marker, target_marker? : Marker, min_length? : Int) -> ConnectionConnection::not_equal
fn Connection::not_equal(x : Connection, y : Connection) -> BoolConnection::to_repr
fn Connection::to_repr(Connection) -> @moonbitlang/core/debug.ReprDirection
pub(all) enum Direction {
TB
BT
LR
RL
} derive(Eq, @moonbitlang/core/debug.Debug)Direction::equal
fn Direction::equal(Direction, Direction) -> BoolDirection::not_equal
fn Direction::not_equal(x : Direction, y : Direction) -> BoolDirection::to_repr
fn Direction::to_repr(Direction) -> @moonbitlang/core/debug.ReprFlowDirection
pub(all) enum FlowDirection {
Forward
Backward
Both
Undirected
Invisible
} derive(Eq, @moonbitlang/core/debug.Debug)FlowDirection::equal
fn FlowDirection::equal(FlowDirection, FlowDirection) -> BoolFlowDirection::not_equal
fn FlowDirection::not_equal(x : FlowDirection, y : FlowDirection) -> BoolFlowDirection::to_repr
fn FlowDirection::to_repr(FlowDirection) -> @moonbitlang/core/debug.ReprGroup
pub struct Group {
id : String
label : String
parent : String?
lane : String?
direction : Direction?
expanded : Bool
} derive(Eq, @moonbitlang/core/debug.Debug)Group::equal
fn Group::equal(Group, Group) -> BoolGroup::new
fn Group::new(id : String, label? : String, parent? : String, lane? : String, direction? : Direction, expanded? : Bool) -> GroupGroup::not_equal
fn Group::not_equal(x : Group, y : Group) -> BoolGroup::to_repr
fn Group::to_repr(Group) -> @moonbitlang/core/debug.ReprLabelKind
pub(all) enum LabelKind {
Text
Markdown
Html
} derive(Eq, @moonbitlang/core/debug.Debug)LabelKind::equal
fn LabelKind::equal(LabelKind, LabelKind) -> BoolLabelKind::not_equal
fn LabelKind::not_equal(x : LabelKind, y : LabelKind) -> BoolLabelKind::to_repr
fn LabelKind::to_repr(LabelKind) -> @moonbitlang/core/debug.ReprLane
pub struct Lane {
id : String
label : String
direction : Direction?
expanded : Bool
} derive(Eq, @moonbitlang/core/debug.Debug)Lane::equal
fn Lane::equal(Lane, Lane) -> BoolLane::new
fn Lane::new(id : String, label? : String, direction? : Direction, expanded? : Bool) -> LaneLane::not_equal
fn Lane::not_equal(x : Lane, y : Lane) -> BoolLane::to_repr
fn Lane::to_repr(Lane) -> @moonbitlang/core/debug.ReprLineStyle
pub(all) enum LineStyle {
Solid
Dotted
Thick
Invisible
} derive(Eq, @moonbitlang/core/debug.Debug)LineStyle::equal
fn LineStyle::equal(LineStyle, LineStyle) -> BoolLineStyle::not_equal
fn LineStyle::not_equal(x : LineStyle, y : LineStyle) -> BoolLineStyle::to_repr
fn LineStyle::to_repr(LineStyle) -> @moonbitlang/core/debug.ReprMarker
pub(all) enum Marker {
None
Arrow
Circle
Cross
} derive(Eq, @moonbitlang/core/debug.Debug)Marker::equal
fn Marker::equal(Marker, Marker) -> BoolMarker::not_equal
fn Marker::not_equal(x : Marker, y : Marker) -> BoolMarker::to_repr
fn Marker::to_repr(Marker) -> @moonbitlang/core/debug.ReprNode
pub struct Node {
id : String
label : String
label_kind : LabelKind
shape : String
metadata : ReadOnlyArray[(String, String)]
lane : String?
groups : ReadOnlyArray[String]
properties : RenderProperties?
} derive(Eq, @moonbitlang/core/debug.Debug)Node::equal
fn Node::equal(Node, Node) -> BoolNode::new
fn Node::new(id : String, label? : String, label_kind? : LabelKind, shape? : String, metadata? : ArrayView[(String, String)], lane? : String, groups? : ArrayView[String], properties? : RenderProperties) -> NodeNode::not_equal
fn Node::not_equal(x : Node, y : Node) -> BoolNode::to_repr
fn Node::to_repr(Node) -> @moonbitlang/core/debug.ReprRenderProperties
pub struct RenderProperties {
link : String?
metadata : ReadOnlyArray[(String, String)]
} derive(Eq, @moonbitlang/core/debug.Debug)RenderProperties::equal
fn RenderProperties::equal(RenderProperties, RenderProperties) -> BoolRenderProperties::new
fn RenderProperties::new(link? : String, metadata? : ArrayView[(String, String)]) -> RenderPropertiesRenderProperties::not_equal
fn RenderProperties::not_equal(x : RenderProperties, y : RenderProperties) -> BoolRenderProperties::to_repr
fn RenderProperties::to_repr(RenderProperties) -> @moonbitlang/core/debug.ReprSwimlane
pub struct Swimlane {
id : String
direction : Direction
lanes : ReadOnlyArray[Lane]
groups : ReadOnlyArray[Group]
nodes : ReadOnlyArray[Node]
connections : ReadOnlyArray[Connection]
title : String?
accessibility_title : String?
accessibility_description : String?
} derive(Eq, @moonbitlang/core/debug.Debug)Swimlane::equal
fn Swimlane::equal(Swimlane, Swimlane) -> BoolSwimlane::new
fn Swimlane::new(id : String, nodes : ArrayView[Node], connections : ArrayView[Connection], direction? : Direction, lanes? : ArrayView[Lane], groups? : ArrayView[Group], title? : String, accessibility_title? : String, accessibility_description? : String) -> SwimlaneSwimlane::not_equal
fn Swimlane::not_equal(x : Swimlane, y : Swimlane) -> BoolSwimlane::to_repr
fn Swimlane::to_repr(Swimlane) -> @moonbitlang/core/debug.ReprValues
built_in_shapes
let built_in_shapes : ReadOnlyArray[String]canonical_shape
fn canonical_shape(value : String) -> Stringdiagnostic_codes
let diagnostic_codes : ReadOnlyArray[String]direction
fn direction(value : String) -> Direction?validate
fn validate(model : Swimlane, nodes_limit? : Int, edges_limit? : Int, depth_limit? : Int, work_limit? : Int) -> ReadOnlyArray[@moonrockz/diagrams.Diagnostic]