Files
Gaudenz Alder a9f29635b6 feat(libavoid): vendor the shared routing core from drawio-dev; honour fixed points + jettySize
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>
2026-07-02 09:31:12 +02:00
..