mirror of
https://github.com/jgraph/drawio-mcp.git
synced 2026-09-14 15:42:06 +08:00
a9f29635b6
The routing core now lives in vendor/libavoid/libavoid-routing.js (defines globalThis.AvoidRouting) — a verbatim copy of the canonical drawio-dev js/libavoid-js/libavoid-routing.js, the same artifact the draw.io editor bundles into extensions.min.js. Replaces shared/libavoid-routing.js, its copy-shared step and the Function.toString() inlining in buildHtml: the app server appends the file to the inlined libavoid glue, the tool server side-effect imports it and reads the global. The core (previously centre-to-centre only in this repo) now matches the editor: fixed connection points (exitX/entryX... -> directed ShapeConnectionPins) and per-end jettySize stubs, enforced by a plain Avoid.Checkpoint at the stub tip (with too-short, corner-anchor and tip-in-obstacle guards), plus embind temp-object hygiene. Both consumers feed constraints + jetty from the edge styles they already hold, and the write-back preserves an explicit jettySize instead of forcing auto. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>