All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.2.1 - 2026-04-21
- New Templates section — we're excited to introduce a dedicated space for production-grade starter kits curated and built by the ngDiagram team. Kicking it off with an interactive Org Chart starter kit featuring drag-and-drop reordering, expand/collapse subtrees, sidebar node editing, dynamic layouts, dark/light theme, minimap, and automatic tree layout powered by ELK.js. Clone it, explore the code, and use it as a launchpad for your own app! 🚀 (#667)
- Fixed linking state not being cleared when edge drawing fails before creating a temporary edge (e.g., starting from a target port), which permanently blocked all subsequent edge drawing (#666)
1.2.0 - 2026-04-20
deferNodeUpdatesinput onNgDiagramMinimapComponent— freezes minimap node positions during drag, resize, and rotation operations, updating only when the interaction ends. Use this to eliminate minimap overhead in large diagrams (#638)watermarkPositionproperty onFlowConfig— allows configuring the watermark corner position viaNgDiagramPanelPosition, with automatic collision avoidance when a panel occupies the same corner (#621, #652) — thanks @jimmeryn for the issue submission! 🙏setViewport(x, y, scale)method onNgDiagramViewportService— sets absolute viewport position and scale in a single call, enabling custom-anchorzoomToFitimplementations (#591, #653) — thanks @MeMeMax for the discussion that led to this! 🙏- Generic type parameters on
NgDiagramModelServicegetter methods (getNodeById,getEdgeById,getConnectedNodes,getConnectedEdges,getChildren,getChildrenNested,getParentHierarchy,getOverlappingNodes,getNodesInRange,getNearestNodeInRange,getNodeEnds) — eliminates the need forascasts when accessing typednode.dataoredge.data(#654) - Exported
DataObjecttype from public API (#654) edgeDrawEndedevent — fires on every linking gesture completion (success and cancel), with source, drop position, and cancel reason (noTarget,invalidConnection,invalidTarget) (#637, #655) — thanks @ninjapiratica for the inspiration! 🙏selectNodeOnPortPressoption onLinkingConfig— whenfalse, port press only initiates linking without selecting the parent node. Defaulttruepreserves existing behavior (#637, #655) — thanks @ninjapiratica for the issue submission! 🙏
- Minimap now caches
MinimapNodeDatabyNodeobject reference, reusing cached data for unchanged nodes and reducing per-frame computation during interactions (#638)
initializeModelcan now be safely called inside reactive contexts (computed,effect,linkedSignal) without throwing NG0602 (#608, #622)- Fixed palette drag preview not rendering when an ancestor element has
overflow: hidden(#624) - Fixed port position not updating when
sideororiginPointinput changes at runtime (#647) — thanks @ninjapiratica for the issue submission! 🙏 - Fixed
waitForMeasurementsincurring a 2-second timeout when a transaction includes no-op updates (#648) - Fixed node position not being snapped when node snapping is enabled and node is dropped from palette or pasted onto the canvas (#649)
- Fixed port hitbox (
::beforepseudo-element) not being centered on the port (#650) updateNodeDataandupdateEdgeDatanow accept interfaces and union types — relaxed generic constraint fromRecord<string, unknown> | undefinedtoDataObject(#654)
edgeDrawnevent — useedgeDrawEndedinstead, which fires for both successful and cancelled draws.edgeDrawncontinues to fire for backward compatibility (#655)
1.1.2 - 2026-03-17
- Updated MCP server README with ASCII diagrams, Windows setup instructions, and streamlined documentation (#610)
- Added MCP Server documentation page and updated roadmap status (#610)
- Fixed broken internal documentation URLs in Configuration, Edges, Changelog, and Policies pages (#610)
- Exported missing
PanningActionStateandSelectionActionStatetypes from public API (#610)
1.1.1 - 2026-03-12
- New MCP server for enhanced AI-assisted development with MiniSearch indexing and API symbol search (#590)
- Fixed documentation pages being difficult to read on mobile devices due to excessive margins (#605 - thanks @martinboue for reporting this 💪)
1.1.0 - 2026-02-27
- Zoom support in Shortcut Manager - configurable keyboard shortcuts (
keyboardZoomIn,keyboardZoomOut) and wheel-based zoom with modifier keys (zoom) via newWheelOnlyShortcutDefinition(#571) - Start and end lifecycle events for node interactions:
nodeDragStarted/nodeDragEnded,nodeResizeStarted/nodeResizeEnded,nodeRotateStarted/nodeRotateEnded(#572) selectionGestureEndedevent - fires on pointerup after a selection gesture completes (object click, box selection, or select-all), providing the currently selected nodes and edges. Use this for actions that should run after selection is done, such as showing toolbars or updating panels (#582)- Absolute edge label positioning -
positionOnEdgenow accepts pixel-based strings ('30px','-20px') in addition to relative numbers (0–1). Negative pixel values measure from the target end (#580) - Default edge now supports
positionOnEdgedata property to control label positioning (defaults to0.5) (#581) nodeIdsproperty onDraggingActionStatecontaining IDs of all nodes participating in the drag operation (#572)movementStartedproperty onDraggingActionStatethat indicates whether pointer movement exceeded the drag threshold before entering the dragging state (#569)initializeModelAdapterfunction for initializing customModelAdapterimplementations. Use this when providing a custom adapter (e.g., backed by localStorage, NgRx, or an external store). The function prepares the adapter for use with ng-diagram.initializeModelcontinues to create the defaultSignalModelAdapterfromPartial<Model>data. (#586)
- Custom Model example now uses
initializeModelAdapterand improvedLocalStorageModelAdapterwithPartial<Model>andModelChangestypes (#586)
- Added explicit
ModelAdapterreturn type toinitializeModel()to prevent TypeScript errors when building withdeclaration: true(#573) (thanks @MeMeMax for reporting this 💪) - Edge labels vanishing permanently after model reinitialization (#585)
- Edge labels not being measured when loading a model with pre-existing edge points (e.g., from localStorage) (#586)
selectionChangedevent now fires after paste action, ensuring selection state stays in sync (#584)- Fixed compatibility issue with Angular 18 in default edge and minimap components (#587)
1.0.0 - 2026-02-06
🎉 We've reached v1.0! This milestone marks a stable, feature-complete library for building interactive diagrams in Angular. We'd love to hear your feedback — share your thoughts in our GitHub Discussions or join us on Discord!
- Virtualization for performance optimization on large diagrams - renders only visible elements within the viewport (#513)
- Minimap component for bird's-eye view navigation of diagrams (#537)
- Touch Gestures documentation article explaining touch device support (#530)
nodeDraggingEnabledconfig option and per-nodedraggableproperty to disable node dragging via mouse and keyboard (#539 - thanks for raising this @advayumare 💪)stopLinkingmethod to cancel programmatic linking action on touch devices (#524)
- Improved diagram panning on Mac with Figma-like trackpad experience (#498)
- Fixed keyboard shortcuts not working when CapsLock is enabled. Letter key shortcuts (e.g., Ctrl+C, Ctrl+V, Ctrl+A) now match case-insensitively (#546)
- Fixed model reinitialization issues: viewport dimensions being undefined (causing
zoomToFitand linking failures) and missing_internalIdfor nodes (causing Angular tracking issues) (#523) toJSON()now strips readonly computed fields (measuredPorts,measuredBounds,computedZIndex) from serialized nodes and (measuredLabels,computedZIndex) from serialized edges. These are system-computed values that should be re-derived from the DOM on load, not persisted (#545)
0.9.1 - 2026-01-08
- Fixed resizing group with rotated child nodes (#504)
- Fixed error on drag&drop HTML object (not palette node) to the diagram (#510)
0.9.0 - 2025-12-12
- API stability and deprecation policy documentation with defined stability levels and Angular version support matrix (#462)
- API Extractor integration for automated breaking change detection with CI validation (#462)
- Landing page diagram example in documentation (#464)
- Floating edges for edges with no ports specified (#465)
- Ports with custom content - ports can now render custom Angular components instead of simple circles (#468)
hideWatermarkconfig option to hide the ngDiagram watermark via diagram configuration (#469)- Expose
computePartsBoundsmethod in API (#477) - Added overload to
getOverlappingNodesto acceptNodeobject in addition to node ID, supporting cases when the node object has newer data than the node in state (e.g., within middlewares) (#486) modelActionTypesproperty onMiddlewareContext- an array containing all action types that triggered the middleware execution. For transactions, this includes the transaction name followed by all action types from commands executed within the transaction. For single commands, this is a single-element array (#489)- Add grab cursor on background when panning (#479)
- Disable diagram panning by config
viewportPanningEnabled(#480) - Async transaction support - transactions now accept async callbacks, allowing asynchronous operations like data fetching before adding or modifying the diagram (#493)
waitForMeasurementstransaction option - ensures the transaction promise resolves only after all DOM measurements (node sizes, port positions, edge labels) are complete. Useful when performing viewport operations likezoomToFit()after adding or modifying elements (#493)
- Standardized error messages across the ng-diagram library (#463)
- Fixed misleading error when destroying
NgDiagramModelServiceafter engine is already destroyed. The error incorrectly reported "Library engine not initialized yet". Now the service checks if engine is available and skips listener cleanup if already destroyed. (#466 - thanks for finding this @Filipstrozik 💪) - Fixed keyboard movement of nodes with arrow keys when using large snap step values (#461)
- Fixed drag-snapping issues with different snapping configurations. The issue still occurred when dragging multiple nodes at the same hierarchy level (i.e., nodes without groups) (#470)
- Fixed incorrectly computed measuredBounds for nodes (#486)
- Fixed missing edge arrowheads in Safari. Safari doesn't support
context-strokein SVG markers, so a fallback using inline markers withcurrentColorsubstitution is now used for Safari compatibility (#487) - Fixed copy-paste retaining
groupIdwhen pasting nodes outside their group. NowgroupIdis only preserved when the group is also copied, with the reference updated to the new group's ID (#491) - Fixed zoom to fit not working correctly on diagram initialization (#492)
- Fixed bullet points styles in the documentation (#494)
modelActionTypeproperty onMiddlewareContextis now deprecated. UsemodelActionTypesinstead, which supports multiple actions from transactions. (#489)
0.8.1 - 2025-11-20
- Tailwind CSS example in documentation (#436)
- Fixed drag snapping with different snapping config issue (#451)
- Fixed ungrouping when dragging node selected with group (#446)
- Fixed shortcut capture, events, and collision with inputs (#447)
- Fixed zIndex assignment (#449)
- Fixed Layout in documentation (#438)
- Fixed Reactive config in background (#445)
- Fixed Example zomming in documentation (#448)
0.8.0 - 2025-11-07
🎉 This is our first stable release! We've graduated from beta and are proud to present a production-ready version.
- Zoom to fit feature with configurable padding and option to automatically apply on model initialization (#386)
- Environment layer for unified environment - related functionalities (#350)
- Helpers for node relationships and traversal (#395)
- Box selection for selecting multiple nodes at once (#374)
- Implemented multiple event hooks for ng-diagram (#387)
- Configurable built-in grid background (#397)
- Configurable Shortcut Manager (#398)
- Improved collision detection for rotated nodes and introduced
measuredBoundsproperty to Node interface (#407) - Improved diagram navigation experience - smooth panning (#417)
- Snapping documentation article explaining node snapping functionality (#414)
- Diagram configuration documentation article (#419)
- Microsnapping for angle adjustments (#404)
- Background guide documentation article (#400)
- Label support for default edges (#376)
- Default node exported for public use (#377)
- Center on node and center on rect command handlers for programmatic viewport control (#371)
- Renamed 'internal' folder to 'guides' in documentation and updated all related links (#358)
- Improved documentation examples structure for consistency (#360)
- Unified documentation styles (#357)
- Redirected documentation root to quick-start page and reordered Intro articles (#370)
- Changed default behavior for resizable and rotatable properties on diagram nodes (#374)
- Complete API documentation reorganization and improvements (#421)
- Better configuration for resizable and rotatable properties on diagram nodes (#374)
- Fixed
NgDiagramModelService.addEdgesnot redrawing diagram (#369) - Fixed download image example not working in Angular 18 (#375)
- Fixed model synchronization issues (#372)
- Fixed base edge label component name and maintained backward compatibility with deprecated
BaseEdgeLabelComponentalias (#368) - Fixed ESLint errors in Angular templates (#367)
- Fixed multiple documentation issues and broken API links (#356)
- Fixed post-release Angular 18 issues (#355)
- Resolved context menu example to enable copying multiple nodes
- Fixed diagram capturing all keyboard events on page (#444)
- Fixed zIndex assignment for added nodes and multiple selection of group and children (#449)
0.4.0-beta.5 - 2025-10-14
Initial tagged release.