Milky2018/diago/engine_api does not have a README file
pub(open) trait LayoutEngine {
fn layout(Self, GraphInput, LayoutConfig, Direction) -> LayoutPatch raise LayoutError
fn engine_name(Self) -> String
fn features(Self) -> Array[LayoutFeature]
}pub struct LayoutConfig {
horizontal_spacing : Double
vertical_spacing : Double
container_padding : Double
default_width : Double
default_height : Double
edge_padding : Double
} derive(Debug)fn estimate_nested_grid_layout_like_d2(parent : ObjectInput, child_ids : Array[String], child_size_by_id : Map[String, (Double, Double)], object_by_id : Map[String, ObjectInput]) -> (Double, Double, Map[String, Box])?fn estimate_root_grid_child_boxes(parent : ObjectInput, child_ids : Array[String], child_size_by_id : Map[String, (Double, Double)]) -> Map[String, Box]?fn[Engine : LayoutEngine] layout_with_engine(engine : Engine, graph : GraphInput, config : LayoutConfig, direction : Direction) -> GraphInput raise LayoutErrorA diagram toolkit for MoonBit with Dagre, ELK, and Railway layout engines, rendering SVG, ASCII, and Unicode outputs.
Dependencies