Skip to content

Commit ddc6d90

Browse files
authored
Release v4.2.0 (#3072)
1 parent 74bf5cb commit ddc6d90

File tree

30 files changed

+101
-30
lines changed

30 files changed

+101
-30
lines changed

CHANGELOG

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,73 @@
1+
10-11-2025 (v4.2.0)
2+
3+
* add new ELK layout example
4+
5+
@joint/core
6+
* dia.Paper - introduce layers API
7+
* dia.Paper - rework `autoFreeze` option
8+
* dia.Paper - add `measureNode()` callback option
9+
* dia.Paper - add `findClosestMagnetToPoint()` method
10+
* dia.Paper - add `viewManagement` option for advanced view lifecycle management
11+
* dia.Paper - add `cellVisibility()` callback option
12+
* dia.Paper - add `disposeHiddenCellViews()` method
13+
* dia.Paper - add `prioritizeCellViewMount()` and `prioritizeCellViewUnmount()` methods
14+
* dia.Paper - add `updateCellVisibility()` and `updateCellsVisibility()` methods
15+
* dia.Paper - add `isCellVisible()` method
16+
* dia.Paper - fix to only trigger `'render:idle'` event after all updates are completed
17+
* dia.Paper - fix generic view detachment when `viewport()` callback returns `false`
18+
* dia.Paper - fix to trigger `'render:*'` events when paper model is reset with no cells
19+
* dia.Paper - fix rendering of first batch of updates in `async` mode to be asynchronous
20+
* dia.LinkView - allow link-to-link snap
21+
* dia.LinkView - fix to prevent link snap to a magnet when only the host cell is close enough
22+
* dia.LinkView - fix missing arrowheads in WKWebView
23+
* dia.CellView - make `getNodeBBox()` method work for nodes outside the render tree
24+
* dia.CellView - optimize measurements of nodes referenced by `ref` attribute
25+
* dia.Graph - add `syncCells()` method
26+
* dia.Graph - add `removeCell()` method
27+
* dia.Element - add `filter` option to `fitToChildren()` and `fitParent()` methods
28+
* dia.Element - add `minRect` option to `fitToChildren()` and `fitParent()` methods
29+
* dia.Element - support port position `args` inside `position` property
30+
* dia.Element - add `getPortBBox()` and `getPortCenter()` methods
31+
* dia.Element - support custom `portLayoutNamespace` and `portLabelLayoutNamespace`
32+
* dia.Element - support passing custom port label layout functions to `label.position`
33+
* dia.Element - optimize cloning in `getPort()` method
34+
* dia.Element - optimize `hasPort()` and `hasPorts()` methods
35+
* dia.Element - fix to parse numeric strings in port position args
36+
* dia.Cell - add `getCenter()` method
37+
* dia.Cell - add cell attributes merge strategy
38+
* dia.Cell - support array paths in `transition()` and `stopTransition()` methods
39+
* dia.Cell - expose `getAttributeDefinition()` method
40+
* dia.Cell - fix to always create deep copy of arrays in constructor
41+
* dia.attributes - add `useNoBreakSpace` which reinstates `V.sanitizeText()` functionality
42+
* dia.attributes - fix `textWrap` attribute when Paper is not in render tree
43+
* dia.HighlighterView - `z` option now supports highlighter positioning within SVG
44+
* dia.HighlighterView - add static `has()` method to check if CellView has a highlighter attached
45+
* dia.HighlighterView - fix to prevent highlighting nodes outside cell view
46+
* dia.HighlighterView - fix to prevent removing not-yet-mounted HighlighterViews on unmount
47+
* elementTools - fix tools position when attached directly to ElementView
48+
* linkTools.Vertices - fix to call blur when `redundancyRemoval: false`
49+
* anchors - add `useModelGeometry` option to all anchors
50+
* anchors - add support for `calc()` expressions in `dx`, `dy` options
51+
* anchors.midSide - add `mode` and `preferenceThreshold` options
52+
* connectionPoints - add `useModelGeometry` option to `bbox` and `rectangle`
53+
* mvc.View - allow providing custom `cid` in constructor
54+
* mvc.Collection - use a Map to store references
55+
* Vectorizer - add `safe` option to `getTransformToElement()` method
56+
* Vectorizer - add static `getCommonAncestor()` method
57+
* Vectorizer - add `useNoBreakSpace` option to `text()` method
58+
* Vectorizer - deprecate static `sanitizeText()` method
59+
* Vectorizer - fix to preserve camelCase in `attributeName`, `repeatCount` attribute names
60+
* Vectorizer - fix to handle implicit line coordinates in `convertToPathData()` method
61+
* Geometry - add `moveAroundPoint()` method to `Rect`
62+
* fix to keep `'use strict'` for minified files
63+
64+
@joint/layout-directed-graph
65+
* layout.DirectedGraph - support `clusterPadding: 'default'`
66+
* layout.DirectedGraph - expose Dagre `disableOptimalOrderHeuristic` and `customOrder` options
67+
68+
@joint/layout-msagl
69+
* layout.MSAGL - add new layout package utilizing the Microsoft Automatic Graph Layout
70+
171
13-03-2025 (v4.1.4)
272

373
@joint/layout-directed-graph

examples/anchors-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@joint/demo-anchors-ts",
3-
"version": "4.1.3",
3+
"version": "4.2.0",
44
"main": "src/index.ts",
55
"homepage": "https://jointjs.com",
66
"author": {

examples/connection-points-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@joint/demo-connection-points-ts",
3-
"version": "4.1.3",
3+
"version": "4.2.0",
44
"main": "src/index.ts",
55
"homepage": "https://jointjs.com",
66
"author": {

examples/container/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@joint/demo-container",
3-
"version": "4.1.3",
3+
"version": "4.2.0",
44
"main": "dist/bundle.js",
55
"author": {
66
"name": "client IO",

examples/decorators/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@joint/demo-decorators",
3-
"version": "4.1.3",
3+
"version": "4.2.0",
44
"main": "src/index.ts",
55
"homepage": "https://jointjs.com",
66
"author": {

examples/dwdm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@joint/demo-dwdm",
3-
"version": "4.1.3",
3+
"version": "4.2.0",
44
"main": "src/index.ts",
55
"homepage": "https://jointjs.com",
66
"author": {

examples/fta-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@joint/demo-fta-js",
3-
"version": "4.1.3",
3+
"version": "4.2.0",
44
"main": "src/index.js",
55
"homepage": "https://jointjs.com",
66
"author": {

examples/isometric/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@joint/demo-isometric",
3-
"version": "4.1.3",
3+
"version": "4.2.0",
44
"main": "src/index.ts",
55
"homepage": "https://jointjs.com",
66
"author": {

examples/layout-directed-graph/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@joint/demo-layout-directed-graph",
3-
"version": "4.1.3",
3+
"version": "4.2.0",
44
"description": "JointJS - Directed Graph Layout Demo",
55
"main": "./index.js",
66
"homepage": "https://jointjs.com",

examples/layout-elk-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@joint/demo-elk-ts",
3-
"version": "4.1.3",
3+
"version": "4.2.0",
44
"description": "JointJS - ELK Layout Demo",
55
"main": "dist/bundle.js",
66
"homepage": "https://jointjs.com",

0 commit comments

Comments
 (0)