moonrockz/diagrams-svg/architecture-layout
Types
Connection
pub(all) struct Connection {
connection : @moonrockz/diagrams/architecture.Connection
points : ReadOnlyArray[Point]
label_box : Rect?
} derive(Eq, @moonbitlang/core/debug.Debug)Connection::equal
fn Connection::equal(Connection, Connection) -> BoolConnection::not_equal
fn Connection::not_equal(x : Connection, y : Connection) -> BoolConnection::to_repr
fn Connection::to_repr(Connection) -> @moonbitlang/core/debug.ReprFinding
pub struct Finding {
code : String
message : String
element : String
} derive(Eq, @moonbitlang/core/debug.Debug)Finding::equal
fn Finding::equal(Finding, Finding) -> BoolFinding::not_equal
fn Finding::not_equal(x : Finding, y : Finding) -> BoolFinding::to_repr
fn Finding::to_repr(Finding) -> @moonbitlang/core/debug.ReprGeometry
pub(all) struct Geometry {
model : @moonrockz/diagrams/architecture.Architecture
shapes : ReadOnlyArray[Shape]
connections : ReadOnlyArray[Connection]
width : Int
height : Int
} derive(Eq, @moonbitlang/core/debug.Debug)Geometry::equal
fn Geometry::equal(Geometry, Geometry) -> BoolGeometry::not_equal
fn Geometry::not_equal(x : Geometry, y : Geometry) -> BoolGeometry::to_repr
fn Geometry::to_repr(Geometry) -> @moonbitlang/core/debug.ReprKind
pub(all) enum Kind {
Group
Service
Junction
} derive(Eq, @moonbitlang/core/debug.Debug)Kind::equal
fn Kind::equal(Kind, Kind) -> BoolKind::not_equal
fn Kind::not_equal(x : Kind, y : Kind) -> BoolKind::to_repr
fn Kind::to_repr(Kind) -> @moonbitlang/core/debug.ReprLayoutResult
pub(all) struct LayoutResult {
geometry : Geometry?
diagnostics : ReadOnlyArray[@moonrockz/diagrams.Diagnostic]
}Limits
pub struct Limits {
nodes : Int
edges : Int
depth : Int
work : Int
coordinate : Int
output_units : Int
minimum_approach : Double
} derive(Eq, @moonbitlang/core/debug.Debug)Limits::equal
fn Limits::equal(Limits, Limits) -> BoolLimits::new
fn Limits::new(nodes? : Int, edges? : Int, depth? : Int, work? : Int, coordinate? : Int, output_units? : Int, minimum_approach? : Double) -> LimitsLimits::not_equal
fn Limits::not_equal(x : Limits, y : Limits) -> BoolLimits::to_repr
fn Limits::to_repr(Limits) -> @moonbitlang/core/debug.ReprLimits::with_minimum_approach
fn Limits::with_minimum_approach(self : Limits, minimum_approach : Double) -> LimitsRetain resource limits while selecting the marked terminal reservation.
Point
pub(all) struct Point {
x : Int
y : Int
} derive(Eq, @moonbitlang/core/debug.Debug)Point::equal
fn Point::equal(Point, Point) -> BoolPoint::not_equal
fn Point::not_equal(x : Point, y : Point) -> BoolPoint::to_repr
fn Point::to_repr(Point) -> @moonbitlang/core/debug.ReprRect
pub(all) struct Rect {
x : Int
y : Int
width : Int
height : Int
} derive(Eq, @moonbitlang/core/debug.Debug)Rect::contains
fn Rect::contains(self : Rect, other : Rect) -> BoolRect::equal
fn Rect::equal(Rect, Rect) -> BoolRect::not_equal
fn Rect::not_equal(x : Rect, y : Rect) -> BoolRect::overlaps
fn Rect::overlaps(self : Rect, other : Rect) -> BoolRect::to_repr
fn Rect::to_repr(Rect) -> @moonbitlang/core/debug.ReprShape
pub(all) struct Shape {
id : String
kind : Kind
box : Rect
label : String
parent : String?
font_size : Int
header_height : Int
} derive(Eq, @moonbitlang/core/debug.Debug)Shape::equal
fn Shape::equal(Shape, Shape) -> BoolShape::not_equal
fn Shape::not_equal(x : Shape, y : Shape) -> BoolShape::to_repr
fn Shape::to_repr(Shape) -> @moonbitlang/core/debug.ReprValues
check
fn check(geometry : Geometry, palette? : @moonrockz/diagrams-svg/theme.Palette, work_limit? : Int) -> ReadOnlyArray[Finding]layout
fn layout(model : @moonrockz/diagrams/architecture.Architecture, limits? : Limits) -> LayoutResultmeasure
fn measure(text : String, size? : Int) -> Int