Skip to content

feat: add graph-layout package - #21

Merged
Mearman merged 2 commits into
mainfrom
feat/graph-layout
Oct 10, 2026
Merged

Mearman merged 2 commits into
mainfrom
feat/graph-layout

Conversation

@Mearman

@Mearman Mearman commented Oct 10, 2026

Copy link
Copy Markdown
Member

Adds @exadev/process-graph-layout, the layout layer of the plan: a pure async layout(view, options) over a flowchart, swimlane or state machine projection that returns positions in the model's views shape.

elkjs (layered, exact-pinned) sits behind a small LayoutEngine port and runs in the calling context from its bundled build, so the package runs in a browser, a Worker or Node. Swimlane lanes are groups containing their nodes, and LaneBounds are returned beside the positions. Direction, spacing and an abort signal are options; sizes and gaps derive from one grid unit.

The name @exadev/process-graph-layout still needs reserving on npm and its trusted publisher registering before the first release.

Layered layout of a projected flowchart, swimlane or state machine behind a pure async
`layout(view, options)`. Positions come back keyed by notation and element id in the model's
`views` shape, so layout stays apart from the semantic model and no projection reads a coordinate.

elkjs sits behind a small engine port, run in the calling context from its bundled build so the
package is isomorphic and testable without a Worker. Swimlane lanes are groups holding their
nodes; sizes and gaps derive from one grid unit.
@Mearman
Mearman marked this pull request as ready for review October 10, 2026 15:13
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-10-10T15:18:18.980484Z a694f84 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Mearman

Mearman commented Oct 10, 2026

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: a694f84ccc

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Mearman
Mearman merged commit f269c16 into main Oct 10, 2026
14 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant