✨ Added
invalidateMeasurements(options?)method onNgDiagramService- forces re-measurement of nodes, ports, and edge labels viaResizeObserver. Call with no arguments to re-measure the entire diagram, or pass{ nodes: [...], edges: [...] }to target specific elements. Invalidating a node also re-measures all its ports. Use this when CSS-only repositioning (class toggles, style bindings) changes port positions without changing sizes, whichResizeObservercannot detect (#698)initialConnectedEdgesMaponMiddlewareContext- aMap<string, string[]>from node ID to connected edge IDs (source or target) captured before any modifications. Allows middleware to find edges connected to specific nodes without scanning all edges (#697)- MCP server: inline code snippets -
search_docsandget_docnow resolve<CodeSnippet>and<CodeViewer>tags in documentation pages, inlining the referenced source files directly into tool results. AI assistants see complete, runnable examples without needing access to the source repository (#699)
🧩 Changed
- Updated z-index defaults -
selectedZIndexchanged from1000to10000to provide more headroom for explicitzOrdervalues;temporaryEdgeZIndexchanged from1000to2147483647(max 32-bit int) so the edge being drawn always renders on top (#697)
🐛 Fixed
- Z-ordering reworked - rewrote the z-index assignment middleware and
bringToFront/sendToBackcommands, fixing multiple issues: children are now always rendered above their parent group regardless ofzOrdervalues, and siblings within a group are correctly re-sorted whenzOrder, selection, or group membership changes.(#697) - Fixed ports and edge labels not being measured when a node or edge is removed and re-added with the same ID in the same tick (#701)