computeLayoutFromElkGraph abstract method

Future<SchematicLayoutResult> computeLayoutFromElkGraph(
  1. String elkGraphJson, {
  2. String? sessionId,
})

Compute layout from a pre-parsed ELK graph (Dart-first path).

This accepts an ELK-formatted graph (from SchematicGraph.toJsGraph()) and runs ELK layout. All netlist-to-ELK conversion and post-processing is done in Dart.

The elkGraphJson should be the result of NetlistSchematicAdapter.toJsGraph().

sessionId isolates JS bridge state per session.

Implementation

Future<SchematicLayoutResult> computeLayoutFromElkGraph(
  String elkGraphJson, {
  String? sessionId,
});