This example shows how to use ELKJS with Foblex Flow and Angular to generate automatic graph layouts. ELKJS is useful when you need more layout flexibility than a basic tree arrangement and want to experiment with layered or more advanced graph placement strategies.
Foblex Flow remains responsible for rendering and interaction. ELKJS calculates positions; your Angular app decides when to run layout and how to merge the results back into graph state.
That split keeps layout logic replaceable while preserving the same editor surface and interaction model.
[component.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/advanced/elkjs-layout-example/elkjs-layout-example.component.html [component.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/advanced/elkjs-layout-example/elkjs-layout-example.component.ts [component.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/advanced/elkjs-layout-example/elkjs-layout-example.component.scss [common.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/_flow-common.scss
If layout quality matters more than minimal configuration, ELKJS is usually the better starting point than a simpler tree-only approach.