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]
}impl Show for LayoutError#deprecated("`LayoutError::equal` is deprecated, use `Eq::equal` instead.")
fn LayoutError::equal(LayoutError, LayoutError) -> Bool#deprecated("`LayoutError::not_equal` is deprecated, use `Eq::not_equal` instead.")
fn LayoutError::not_equal(x : LayoutError, y : LayoutError) -> Bool#deprecated("`LayoutError::output` is deprecated, use `Show::output` instead.")
fn LayoutError::output(self : LayoutError, logger : &Logger) -> Unit#deprecated("`LayoutError::to_repr` is deprecated, use `@moonbitlang/core/debug.Debug::to_repr` instead.")
fn LayoutError::to_repr(LayoutError) -> Reprpub struct LayoutConfig {
horizontal_spacing : Double
vertical_spacing : Double
container_padding : Double
default_width : Double
default_height : Double
edge_padding : Double
} derive(Debug)#deprecated("`LayoutConfig::to_repr` is deprecated, use `@moonbitlang/core/debug.Debug::to_repr` instead.")
fn LayoutConfig::to_repr(LayoutConfig) -> Repr#deprecated("`LayoutFeature::equal` is deprecated, use `Eq::equal` instead.")
fn LayoutFeature::equal(LayoutFeature, LayoutFeature) -> Bool#deprecated("`LayoutFeature::not_equal` is deprecated, use `Eq::not_equal` instead.")
fn LayoutFeature::not_equal(x : LayoutFeature, y : LayoutFeature) -> Bool#deprecated("`LayoutFeature::to_repr` is deprecated, use `@moonbitlang/core/debug.Debug::to_repr` instead.")
fn LayoutFeature::to_repr(LayoutFeature) -> Reprfn 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 LayoutErrorInstall
Download zipA diagram toolkit for MoonBit with Dagre, ELK, and Railway layout engines, rendering SVG, ASCII, and Unicode outputs.
Dependencies