moonrockz/diagrams-svg/flowchart-layout

Types

Connection

pub struct Connection {
  connection : @moonrockz/diagrams/flowchart.Connection
  index : Int
  source : String
  target : String
  line : ReadOnlyArray[@moonrockz/diagrams-svg/swimlane-layout.Point]
  label : @moonrockz/diagrams-svg/swimlane-layout.Label?
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

Connection::equal

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

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

Geometry

pub struct Geometry {
  view : @moonrockz/diagrams/flowchart.Flowchart
  shapes : ReadOnlyArray[@moonrockz/diagrams-svg/swimlane-layout.Shape]
  connections : ReadOnlyArray[Connection]
  width : Int
  height : Int
  // private fields
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

Geometry::drawing

fn Geometry::drawing(self : Geometry) -> @moonrockz/diagrams-svg/swimlane-layout.Geometry

Shared low-level geometry for the vector painter, separate from the model.

Source

Geometry::drawing_result

fn Geometry::drawing_result(self : Geometry) -> @moonrockz/diagrams-svg/swimlane-layout.Result

Source

Geometry::equal

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

Source

Geometry::hidden_containers

fn Geometry::hidden_containers(self : Geometry) -> ReadOnlyArray[String]

Source

Geometry::intentional_containment

fn Geometry::intentional_containment(self : Geometry) -> ReadOnlyArray[(String, String)]

Source

Geometry::not_equal

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

Source

Geometry::prior_diagnostics

fn Geometry::prior_diagnostics(self : Geometry) -> ReadOnlyArray[@moonrockz/diagrams.Diagnostic]

Findings from geometry phases before the final shared drawing phase.

Source

Geometry::to_repr

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

Source

Limits

pub struct Limits {
  nodes : Int
  edges : Int
  depth : Int
  work : Int
  output_units : Int
  width : Int
  height : Int
  minimum_approach : Double
} derive(Eq, @moonbitlang/core/debug.Debug)

Flowcharts share vector geometry primitives with the swimlane layout engine. The adapter preserves ordinary groups and introduces no responsibility lanes.

Source

Limits::equal

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

Source

Limits::new

fn Limits::new(nodes? : Int, edges? : Int, depth? : Int, work? : Int, output_units? : Int, width? : Int, height? : Int, minimum_approach? : Double) -> Limits

Source

Limits::not_equal

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

Source

Limits::to_repr

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

Source

Limits::with_minimum_approach

fn Limits::with_minimum_approach(self : Limits, minimum_approach : Double) -> Limits

Retain resource limits while selecting the marked terminal reservation.

Source

Result

pub struct Result {
  geometry : Geometry?
  diagnostics : ReadOnlyArray[@moonrockz/diagrams.Diagnostic]
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

Result::equal

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

Source

Result::not_equal

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

Source

Result::to_repr

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

Source

Values

check

fn check(geometry : Geometry, palette : @moonrockz/diagrams-svg/theme.Palette, work_limit? : Int) -> ReadOnlyArray[@moonrockz/diagrams-svg/swimlane-layout.Finding]

Source

diagnostics

fn diagnostics(values : ArrayView[@moonrockz/diagrams.Diagnostic]) -> ReadOnlyArray[@moonrockz/diagrams.Diagnostic]

Source

layout

fn layout(view : @moonrockz/diagrams/flowchart.Flowchart, limits? : Limits, ordered_scopes? : ArrayView[(String, @moonrockz/diagrams/flowchart.Direction)], region_directions? : ArrayView[(String, @moonrockz/diagrams/flowchart.Direction)], scope_padding? : Double) -> Result

Source