Roadmap¶
See PLAN.md in the repository for the full, maintained plan.
0.1 — rename and release¶
- ✅ New
wxdiagramrepo from theogl2standalone work - ✅ Rename package/modules, remove app-specific code and OGL vocabulary
- ✅ Stable ids, canvas attachment,
AddShapeordering,Clearsemantics - ✅ Spline/arrow/constraint accessors
- ✅ README, migration guide, docs skeleton
- ✅ Publish 0.1.0 (PyPI, 2026-11-16)
- ✅ Publish 0.2.1 with the pynsource integration hooks
- 🚧 Migrate pynsource and its CI
0.2 — interaction and pynsource integration¶
- ✅ 8-way resize handles (corners + edges)
- ✅ proportional resize (Shift = free aspect, Alt = from centre)
- ✅ marquee selection, Shift/Ctrl add, Esc clear, arrow-key nudge
- ✅ grid and alignment guides
- ✅ undo/redo, z-order, duplicate
- ✅ buffered painting (
bufferedPainting) - ✅ mouse drag tolerance (3 px)
- ✅ PNG export (
ShapeCanvas.ExportPng) - ✅
Shape.MoveTofor top-left layout coordinates - ✅ overridable
getContentBounds()for zoom-to-fit - ✅
getContentOrigin()so content at negative coordinates stays scrollable - ✅
autoVirtualSize/zoomInputEnabledopt-outs for apps that own scrolling - ✅ pynsource delegates its viewport (zoom, pinch, pan, virtual size) to this library
0.3 — edges¶
- ✅ hybrid curved connectors with obstacle avoidance (straight → curved → orthogonal,
route_edge) - ✅ orthogonal fallback; ✅ lane spreading for parallel edges; side selection still to do
- ✅ edge hit-testing and labels (middle/start/end)
- ✅ per-edge style switching (
SetRouteMode, demo/pynsource right-click with ticks);auto= straight-or-curved, no orth - markers on curves, label collision avoidance
0.4 — layout¶
- ✅ pluggable
Layoutprotocol (LayoutNode/LayoutEdge/LayoutResult, registry) - ✅ simple spring layout (
SpringLayout, deterministic seed) - ✅ experimental router injection (
RouteRequest/RouteResult/BaseRouter, per-edge + canvas default,route_manybatch hook) — UI deliberately not exposed - ✅ route mode persistence; experimental router-name persistence (backwards compatible)
- ✅
wxdiagram/layoutdemo.pyplayground +bin/run-layout(independent of pynsource) - ✅ crossing metrics + deterministic post-layout refinement (
reduce_crossings) - ✅
Add random boxesre-lays out so new nodes participate in the graph - layered layout (next)
- optional Rust bridge for advanced layout