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)

Source

Connection::equal

fn Connection::equal(Connection, Connection) -> Bool

Source

Connection::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) -> Connection

Source

Connection::not_equal

fn Connection::not_equal(x : Connection, y : Connection) -> Bool

Source

Connection::to_repr

fn Connection::to_repr(Connection) -> @moonbitlang/core/debug.Repr

Source

Direction

pub(all) enum Direction {
  TB
  BT
  LR
  RL
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

Direction::equal

fn Direction::equal(Direction, Direction) -> Bool

Source

Direction::not_equal

fn Direction::not_equal(x : Direction, y : Direction) -> Bool

Source

Direction::to_repr

fn Direction::to_repr(Direction) -> @moonbitlang/core/debug.Repr

Source

FlowDirection

pub(all) enum FlowDirection {
  Forward
  Backward
  Both
  Undirected
  Invisible
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

FlowDirection::equal

fn FlowDirection::equal(FlowDirection, FlowDirection) -> Bool

Source

FlowDirection::not_equal

fn FlowDirection::not_equal(x : FlowDirection, y : FlowDirection) -> Bool

Source

FlowDirection::to_repr

fn FlowDirection::to_repr(FlowDirection) -> @moonbitlang/core/debug.Repr

Source

Group

pub struct Group {
  id : String
  label : String
  parent : String?
  lane : String?
  direction : Direction?
  expanded : Bool
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

Group::equal

fn Group::equal(Group, Group) -> Bool

Source

Group::new

fn Group::new(id : String, label? : String, parent? : String, lane? : String, direction? : Direction, expanded? : Bool) -> Group

Source

Group::not_equal

fn Group::not_equal(x : Group, y : Group) -> Bool

Source

Group::to_repr

fn Group::to_repr(Group) -> @moonbitlang/core/debug.Repr

Source

LabelKind

pub(all) enum LabelKind {
  Text
  Markdown
  Html
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

LabelKind::equal

fn LabelKind::equal(LabelKind, LabelKind) -> Bool

Source

LabelKind::not_equal

fn LabelKind::not_equal(x : LabelKind, y : LabelKind) -> Bool

Source

LabelKind::to_repr

fn LabelKind::to_repr(LabelKind) -> @moonbitlang/core/debug.Repr

Source

Lane

pub struct Lane {
  id : String
  label : String
  direction : Direction?
  expanded : Bool
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

Lane::equal

fn Lane::equal(Lane, Lane) -> Bool

Source

Lane::new

fn Lane::new(id : String, label? : String, direction? : Direction, expanded? : Bool) -> Lane

Source

Lane::not_equal

fn Lane::not_equal(x : Lane, y : Lane) -> Bool

Source

Lane::to_repr

fn Lane::to_repr(Lane) -> @moonbitlang/core/debug.Repr

Source

LineStyle

pub(all) enum LineStyle {
  Solid
  Dotted
  Thick
  Invisible
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

LineStyle::equal

fn LineStyle::equal(LineStyle, LineStyle) -> Bool

Source

LineStyle::not_equal

fn LineStyle::not_equal(x : LineStyle, y : LineStyle) -> Bool

Source

LineStyle::to_repr

fn LineStyle::to_repr(LineStyle) -> @moonbitlang/core/debug.Repr

Source

Marker

pub(all) enum Marker {
  None
  Arrow
  Circle
  Cross
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

Marker::equal

fn Marker::equal(Marker, Marker) -> Bool

Source

Marker::not_equal

fn Marker::not_equal(x : Marker, y : Marker) -> Bool

Source

Marker::to_repr

fn Marker::to_repr(Marker) -> @moonbitlang/core/debug.Repr

Source

Node

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)

Source

Node::equal

fn Node::equal(Node, Node) -> Bool

Source

Node::new

fn Node::new(id : String, label? : String, label_kind? : LabelKind, shape? : String, metadata? : ArrayView[(String, String)], lane? : String, groups? : ArrayView[String], properties? : RenderProperties) -> Node

Source

Node::not_equal

fn Node::not_equal(x : Node, y : Node) -> Bool

Source

Node::to_repr

fn Node::to_repr(Node) -> @moonbitlang/core/debug.Repr

Source

RenderProperties

pub struct RenderProperties {
  link : String?
  metadata : ReadOnlyArray[(String, String)]
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

RenderProperties::equal

fn RenderProperties::equal(RenderProperties, RenderProperties) -> Bool

Source

RenderProperties::new

fn RenderProperties::new(link? : String, metadata? : ArrayView[(String, String)]) -> RenderProperties

Source

RenderProperties::not_equal

fn RenderProperties::not_equal(x : RenderProperties, y : RenderProperties) -> Bool

Source

RenderProperties::to_repr

fn RenderProperties::to_repr(RenderProperties) -> @moonbitlang/core/debug.Repr

Source

Swimlane

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)

Source

Swimlane::equal

fn Swimlane::equal(Swimlane, Swimlane) -> Bool

Source

Swimlane::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) -> Swimlane

Source

Swimlane::not_equal

fn Swimlane::not_equal(x : Swimlane, y : Swimlane) -> Bool

Source

Swimlane::to_repr

fn Swimlane::to_repr(Swimlane) -> @moonbitlang/core/debug.Repr

Source

Values

built_in_shapes

let built_in_shapes : ReadOnlyArray[String]

Source

canonical_shape

fn canonical_shape(value : String) -> String

Source

diagnostic_codes

let diagnostic_codes : ReadOnlyArray[String]

Source

direction

fn direction(value : String) -> Direction?

Source

validate

fn validate(model : Swimlane, nodes_limit? : Int, edges_limit? : Int, depth_limit? : Int, work_limit? : Int) -> ReadOnlyArray[@moonrockz/diagrams.Diagnostic]

Source