moonrockz/diagrams/architecture

Types

Alignment

pub struct Alignment {
  axis : Axis
  members : ReadOnlyArray[String]
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

Alignment::equal

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

Source

Alignment::new

fn Alignment::new(axis : Axis, members : ArrayView[String]) -> Alignment

Source

Alignment::not_equal

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

Source

Alignment::to_repr

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

Source

Architecture

pub struct Architecture {
  id : String
  groups : ReadOnlyArray[Group]
  services : ReadOnlyArray[Service]
  junctions : ReadOnlyArray[Junction]
  connections : ReadOnlyArray[Connection]
  alignments : ReadOnlyArray[Alignment]
  title : String?
  accessibility_title : String?
  accessibility_description : String?
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

Architecture::equal

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

Source

Architecture::new

fn Architecture::new(id : String, services : ArrayView[Service], connections : ArrayView[Connection], groups? : ArrayView[Group], junctions? : ArrayView[Junction], alignments? : ArrayView[Alignment], title? : String, accessibility_title? : String, accessibility_description? : String) -> Architecture

Source

Architecture::not_equal

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

Source

Architecture::to_repr

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

Source

Axis

pub(all) enum Axis {
  Row
  Column
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

Axis::equal

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

Source

Axis::not_equal

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

Source

Axis::to_repr

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

Source

Connection

pub struct Connection {
  id : String
  source : Endpoint
  target : Endpoint
  label : String?
  source_head : Bool
  target_head : Bool
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

Connection::equal

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

Source

Connection::new

fn Connection::new(id : String, source : Endpoint, target : Endpoint, label? : String, source_head? : Bool, target_head? : Bool) -> 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

Endpoint

pub struct Endpoint {
  id : String
  side : Side
  group : Bool
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

Endpoint::equal

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

Source

Endpoint::new

fn Endpoint::new(id : String, side : Side, group? : Bool) -> Endpoint

Source

Endpoint::not_equal

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

Source

Endpoint::to_repr

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

Source

Group

pub struct Group {
  id : String
  label : String
  parent : String?
  icon : @moonrockz/diagrams/icons.Reference?
} 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, icon? : @moonrockz/diagrams/icons.Reference) -> 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

Junction

pub struct Junction {
  id : String
  parent : String?
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

Junction::equal

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

Source

Junction::new

fn Junction::new(id : String, parent? : String) -> Junction

Source

Junction::not_equal

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

Source

Junction::to_repr

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

Source

Service

pub struct Service {
  id : String
  label : String
  parent : String?
  icon : @moonrockz/diagrams/icons.Reference?
  icon_text : String?
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

Service::equal

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

Source

Service::new

fn Service::new(id : String, label? : String, parent? : String, icon? : @moonrockz/diagrams/icons.Reference, icon_text? : String) -> Service

Source

Service::not_equal

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

Source

Service::to_repr

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

Source

Side

pub(all) enum Side {
  Left
  Right
  Top
  Bottom
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

Side::equal

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

Source

Side::not_equal

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

Source

Side::to_repr

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

Source

Side::to_string

fn Side::to_string(self : Side) -> String

Source

Values

validate

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

Source