@joint/core@4.3.3
- mvc.Collection - store cids in a map separate from ids, so a model id in the cid namespace (e.g.
'c12') is never shadowed by another model's auto-generated cid — previouslygraph.getCell()could return the wrong cell or a newly added cell could be silently merged away as a duplicate (f7455fd9)
@joint/router-avoid@4.3.3
- RouterService - a
routeAll()/routeSubgraph()pass still queued whenstart()is called now resolves ascancelledinstead of running afterstart()'s full sync and resetting the engine to the pass's subset under the live graph listener - a crash path, since the listener referencing an element the engine no longer held aborted the WASM module irrecoverably (f66524f5) - MainThreadProvider - fire
processed(and so the RouterServiceidleevent) after every incremental change, not only after a full sync, matching the Worker provider's behaviour (9651d0d4) - Updated dependencies (f7455fd9)
- @joint/core@4.3.3
@joint/core@4.3.2
- 0a2991b: alg.rightAnglePath: refactor to consolidate duplicate code into helpers
- 68a4758: dia.Paper - the
guardoption can now veto blank pointerdowns; itsviewargument isundefinedwhen the event did not hit a cell view - 54d9800: routers.rightAngle - refactor the path-finding algorithm into a separate utility
@joint/react@4.3.3
- 634fb9f: fix stale cell keys when a single commit swaps ids without changing the count (membership changes now notify key-list subscribers, and large-graph rendering no longer defers id updates)
- 68a4758: link routing - account for the arrowhead when a custom link anchor is used
- 68a4758: - support interactive controls (buttons, inputs) nested inside magnets without the press starting a link drag or an element move
- 68a4758: useCell - tolerate a cell removed from the graph mid-render
- 68a4758: useCombinedRef - assign the forwarded ref during the commit phase
- 68a4758: useMarkup - tolerate a cell view whose markup has not been rendered yet (synchronous rendering in development)
- Updated dependencies [0a2991b]
- Updated dependencies [68a4758]
- Updated dependencies [54d9800]
- @joint/core@4.3.2
Release v4.3.0
- new package - idiomatic React components and hooks for JointJS, built directly on the core engine (c87d3453)
- dia.Paper - add
originXandoriginYoptions togetFitToContentArea()(82f2e079) - dia.Paper - add typed
EventMapfor IDE autocomplete and type-checking onon()calls (bb2f01be) - dia.Paper -
resolveViewClassfactory now receives the resolved namespace view class as a second argument (88e5812a) - dia.Paper - add
getCellView()method for strict view lookup (42ecbe42) - dia.Paper - add
setDragging()andisDragging()methods for drag-state access (ec6eb331) - dia.Paper - auto-emit
resizeevent when the host container is resized via CSS (adc8f522) - dia.Paper - fix stale cell views when cells become hidden during a batch update (2eff4f32)
- dia.Paper -
elementView/linkViewfactory options now receive the namespace view class as a second argument (fdbf8491) - dia.GridLayerView - read built-in grid patterns from the paper constructor's static field (79827c66)
- dia.CellView -
getNodeBoundingRect()and newcomputeNodeBoundingRect()support HTML elements (8ef72b69, 4b4bb52e) - dia.Graph - add
getCellNamespace(),setCellNamespace(),getTypeConstructor(),getTypeDefaults(); deprecateCellCollection.cellNamespacesetter (fea4bf33) - dia.Graph - add typed
EventMapfor IDE autocomplete and type-checking onon()calls (bb2f01be) - dia.Graph - add
portandmagnetoptions togetConnectedLinks()(906ddd59) - dia.Cell - support predicate function for
ignoreEmptyAttributesoption oftoJSON()(6363f39a) - dia.Cell - add
Cell.JSONandCell.JSONInittypes; deprecateGenericAttributes(5cbc52f3) - anchors.midSide - add
'top-bottom','bottom-top','left-right','right-left'direction modes (67d83ba1) - highlighters - add HTML element support to the mask highlighter (dcd60ac2)
- routers.rightAngle - fix anchor point excluded from clearance bounding-box union (2a1fec50)
- routers.rightAngle - add
minPathMargin,sourceMargin, andtargetMarginoptions (858d0495) - mvc.View - add
classNamePrefixinstance property to override thejoint-CSS class prefix (0a399774) - config - add
storeEmbedsoption to suppress theembedsattribute (de2357e2) - Vectorizer - fix
getRelativeTransformation()when the screen CTM is non-invertible (66e68104)