This version of the module is deprecated: Moved to moonbit-community/diago. Use moonbit-community/diago@0.4.0 or later and update import paths.
Milky2018/diago/engine_api does not have a README file
pub(open) trait LayoutEngine {
layout(Self, GraphInput, LayoutConfig, Direction) -> LayoutPatch raise LayoutError
}pub(all) suberror LayoutError {
InvalidGraph(String)
CycleDetected(String)
Unsupported(String)
}impl Eq for LayoutErrorimpl Show for LayoutErrorpub(all) enum Direction {
Down
Right
Up
Left
}pub struct LayoutConfig {
horizontal_spacing : Double
vertical_spacing : Double
container_padding : Double
default_width : Double
default_height : Double
edge_padding : Double
}fn[Engine : LayoutEngine] layout_with_engine(engine : Engine, graph : GraphInput, config : LayoutConfig, direction : Direction) -> GraphInput raise LayoutErrorInstall
Download zipA D2-compatible diagram toolkit for MoonBit with Dagre, ELK, and Railway layout engines, rendering SVG, ASCII, and Unicode outputs.