Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,73 @@
10-11-2025 (v4.2.0)

* add new ELK layout example

@joint/core
* dia.Paper - introduce layers API
* dia.Paper - rework `autoFreeze` option
* dia.Paper - add `measureNode()` callback option
* dia.Paper - add `findClosestMagnetToPoint()` method
* dia.Paper - add `viewManagement` option for advanced view lifecycle management
* dia.Paper - add `cellVisibility()` callback option
* dia.Paper - add `disposeHiddenCellViews()` method
* dia.Paper - add `prioritizeCellViewMount()` and `prioritizeCellViewUnmount()` methods
* dia.Paper - add `updateCellVisibility()` and `updateCellsVisibility()` methods
* dia.Paper - add `isCellVisible()` method
* dia.Paper - fix to only trigger `'render:idle'` event after all updates are completed
* dia.Paper - fix generic view detachment when `viewport()` callback returns `false`
* dia.Paper - fix to trigger `'render:*'` events when paper model is reset with no cells
* dia.Paper - fix rendering of first batch of updates in `async` mode to be asynchronous
* dia.LinkView - allow link-to-link snap
* dia.LinkView - fix to prevent link snap to a magnet when only the host cell is close enough
* dia.LinkView - fix missing arrowheads in WKWebView
* dia.CellView - make `getNodeBBox()` method work for nodes outside the render tree
* dia.CellView - optimize measurements of nodes referenced by `ref` attribute
* dia.Graph - add `syncCells()` method
* dia.Graph - add `removeCell()` method
* dia.Element - add `filter` option to `fitToChildren()` and `fitParent()` methods
* dia.Element - add `minRect` option to `fitToChildren()` and `fitParent()` methods
* dia.Element - support port position `args` inside `position` property
* dia.Element - add `getPortBBox()` and `getPortCenter()` methods
* dia.Element - support custom `portLayoutNamespace` and `portLabelLayoutNamespace`
* dia.Element - support passing custom port label layout functions to `label.position`
* dia.Element - optimize cloning in `getPort()` method
* dia.Element - optimize `hasPort()` and `hasPorts()` methods
* dia.Element - fix to parse numeric strings in port position args
* dia.Cell - add `getCenter()` method
* dia.Cell - add cell attributes merge strategy
* dia.Cell - support array paths in `transition()` and `stopTransition()` methods
* dia.Cell - expose `getAttributeDefinition()` method
* dia.Cell - fix to always create deep copy of arrays in constructor
* dia.attributes - add `useNoBreakSpace` which reinstates `V.sanitizeText()` functionality
* dia.attributes - fix `textWrap` attribute when Paper is not in render tree
* dia.HighlighterView - `z` option now supports highlighter positioning within SVG
* dia.HighlighterView - add static `has()` method to check if CellView has a highlighter attached
* dia.HighlighterView - fix to prevent highlighting nodes outside cell view
* dia.HighlighterView - fix to prevent removing not-yet-mounted HighlighterViews on unmount
* elementTools - fix tools position when attached directly to ElementView
* linkTools.Vertices - fix to call blur when `redundancyRemoval: false`
* anchors - add `useModelGeometry` option to all anchors
* anchors - add support for `calc()` expressions in `dx`, `dy` options
* anchors.midSide - add `mode` and `preferenceThreshold` options
* connectionPoints - add `useModelGeometry` option to `bbox` and `rectangle`
* mvc.View - allow providing custom `cid` in constructor
* mvc.Collection - use a Map to store references
* Vectorizer - add `safe` option to `getTransformToElement()` method
* Vectorizer - add static `getCommonAncestor()` method
* Vectorizer - add `useNoBreakSpace` option to `text()` method
* Vectorizer - deprecate static `sanitizeText()` method
* Vectorizer - fix to preserve camelCase in `attributeName`, `repeatCount` attribute names
* Vectorizer - fix to handle implicit line coordinates in `convertToPathData()` method
* Geometry - add `moveAroundPoint()` method to `Rect`
* fix to keep `'use strict'` for minified files

@joint/layout-directed-graph
* layout.DirectedGraph - support `clusterPadding: 'default'`
* layout.DirectedGraph - expose Dagre `disableOptimalOrderHeuristic` and `customOrder` options

@joint/layout-msagl
* layout.MSAGL - add new layout package utilizing the Microsoft Automatic Graph Layout

13-03-2025 (v4.1.4)

@joint/layout-directed-graph
Expand Down
2 changes: 1 addition & 1 deletion examples/anchors-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-anchors-ts",
"version": "4.1.3",
"version": "4.2.0",
"main": "src/index.ts",
"homepage": "https://jointjs.com",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion examples/connection-points-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-connection-points-ts",
"version": "4.1.3",
"version": "4.2.0",
"main": "src/index.ts",
"homepage": "https://jointjs.com",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion examples/container/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-container",
"version": "4.1.3",
"version": "4.2.0",
"main": "dist/bundle.js",
"author": {
"name": "client IO",
Expand Down
2 changes: 1 addition & 1 deletion examples/decorators/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-decorators",
"version": "4.1.3",
"version": "4.2.0",
"main": "src/index.ts",
"homepage": "https://jointjs.com",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion examples/dwdm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-dwdm",
"version": "4.1.3",
"version": "4.2.0",
"main": "src/index.ts",
"homepage": "https://jointjs.com",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion examples/fta-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-fta-js",
"version": "4.1.3",
"version": "4.2.0",
"main": "src/index.js",
"homepage": "https://jointjs.com",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion examples/isometric/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-isometric",
"version": "4.1.3",
"version": "4.2.0",
"main": "src/index.ts",
"homepage": "https://jointjs.com",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion examples/layout-directed-graph/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-layout-directed-graph",
"version": "4.1.3",
"version": "4.2.0",
"description": "JointJS - Directed Graph Layout Demo",
"main": "./index.js",
"homepage": "https://jointjs.com",
Expand Down
2 changes: 1 addition & 1 deletion examples/layout-elk-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-elk-ts",
"version": "4.1.3",
"version": "4.2.0",
"description": "JointJS - ELK Layout Demo",
"main": "dist/bundle.js",
"homepage": "https://jointjs.com",
Expand Down
2 changes: 1 addition & 1 deletion examples/layout-msagl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-layout-msagl",
"version": "4.1.3",
"version": "4.2.0",
"description": "JointJS - MSAGL Demo",
"main": "dist/bundle.js",
"homepage": "https://jointjs.com",
Expand Down
2 changes: 1 addition & 1 deletion examples/libavoid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-libavoid-js",
"version": "4.1.3",
"version": "4.2.0",
"main": "src/index.js",
"homepage": "https://jointjs.com",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion examples/link-labels-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-link-labels-ts",
"version": "4.1.3",
"version": "4.2.0",
"main": "src/index.ts",
"homepage": "https://jointjs.com",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion examples/list/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-list",
"version": "4.1.3",
"version": "4.2.0",
"main": "src/index.ts",
"homepage": "https://jointjs.com",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion examples/offscreen-rendering/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-offscreen-rendering-ts",
"version": "4.1.3",
"version": "4.2.0",
"main": "src/index.ts",
"homepage": "https://jointjs.com",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion examples/shapes-general/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-shapes-general",
"version": "4.1.3",
"version": "4.2.0",
"main": "src/index.ts",
"homepage": "https://jointjs.com",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion examples/tree-of-life/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-tree-of-life",
"version": "4.1.3",
"version": "4.2.0",
"main": "src/index.ts",
"author": {
"name": "client IO",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "joint",
"version": "4.1.3",
"version": "4.2.0",
"sideEffects": false,
"homepage": "https://jointjs.com",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion packages/joint-core/demo/custom-shapes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-custom-shapes",
"version": "4.1.3",
"version": "4.2.0",
"description": "JointJS - Custom Shapes Demo",
"main": "index.html",
"homepage": "https://jointjs.com",
Expand Down
2 changes: 1 addition & 1 deletion packages/joint-core/demo/elk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-elk-graph",
"version": "4.1.3",
"version": "4.2.0",
"description": "JointJS - Eclipse Layout Kernel Graph Demo",
"main": "index.html",
"homepage": "https://jointjs.com",
Expand Down
2 changes: 1 addition & 1 deletion packages/joint-core/demo/rough/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-rough",
"version": "4.1.3",
"version": "4.2.0",
"description": "JointJS - RoughJS Demo",
"main": "index.html",
"homepage": "https://jointjs.com",
Expand Down
2 changes: 1 addition & 1 deletion packages/joint-core/demo/tree-shake/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-tree-shake",
"version": "4.1.3",
"version": "4.2.0",
"description": "JointJS - Tree Shake Demo",
"main": "index.html",
"homepage": "https://jointjs.com",
Expand Down
2 changes: 1 addition & 1 deletion packages/joint-core/demo/ts-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-ts",
"version": "4.1.3",
"version": "4.2.0",
"description": "JointJS - TypeScript Demo",
"main": "index.html",
"homepage": "https://jointjs.com",
Expand Down
2 changes: 1 addition & 1 deletion packages/joint-core/demo/vuejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joint/demo-vuejs",
"version": "4.1.3",
"version": "4.2.0",
"description": "JointJS - VueJS Demo",
"main": "index.html",
"homepage": "https://jointjs.com",
Expand Down
5 changes: 3 additions & 2 deletions packages/joint-core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@joint/core",
"title": "JointJS",
"version": "4.1.3",
"version": "4.2.0",
"description": "JavaScript diagramming library",
"sideEffects": false,
"main": "./dist/joint.min.js",
Expand Down Expand Up @@ -34,7 +34,8 @@
"hoistingLimits": "workspaces"
},
"publishConfig": {
"access": "public"
"access": "public",
"module": "./dist/joint.js"
},
"scripts": {
"prepublishOnly": "echo \"Publishing via NPM is not allowed!\" && exit 1",
Expand Down
2 changes: 1 addition & 1 deletion packages/joint-decorators/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@joint/decorators",
"title": "JointJS Decorators",
"version": "4.1.3",
"version": "4.2.0",
"description": "Decorators module for JointJS",
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/joint-layout-directed-graph/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@joint/layout-directed-graph",
"title": "JointJS LayoutDirectedGraph",
"version": "4.1.4",
"version": "4.2.0",
"description": "LayoutDirectedGraph module for JointJS",
"main": "dist/DirectedGraph.js",
"module": "./DirectedGraph.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/joint-layout-msagl/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@joint/layout-msagl",
"title": "JointJS LayoutMSAGL",
"version": "4.1.3",
"version": "4.2.0",
"description": "LayoutMSAGL module for JointJS",
"sideEffects": false,
"main": "./dist/esm/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/joint-shapes-general-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@joint/shapes-general-tools",
"title": "JointJS General Shapes Tools",
"version": "4.1.3",
"version": "4.2.0",
"description": "General Shapes Tools module for JointJS",
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/joint-shapes-general/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@joint/shapes-general",
"title": "JointJS General Shapes",
"version": "4.1.3",
"version": "4.2.0",
"description": "General Shapes module for JointJS",
"main": "src/index.ts",
"homepage": "https://jointjs.com",
Expand Down
Loading