@joint/core 4.2.0-beta.1 → 4.2.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/geometry.js +1 -1
- package/dist/geometry.min.js +1 -1
- package/dist/joint.d.ts +2 -1
- package/dist/joint.js +18 -10
- package/dist/joint.min.js +2 -2
- package/dist/joint.nowrap.js +18 -10
- package/dist/joint.nowrap.min.js +2 -2
- package/dist/vectorizer.js +1 -1
- package/dist/vectorizer.min.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +6 -3
- package/src/dia/LayerView.mjs +2 -1
- package/types/joint.d.ts +1 -0
package/dist/joint.nowrap.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! JointJS v4.2.0-beta.
|
|
1
|
+
/*! JointJS v4.2.0-beta.3 (2025-11-04) - JavaScript diagramming library
|
|
2
2
|
|
|
3
3
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
4
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
@@ -21760,7 +21760,8 @@ var joint = (function (exports) {
|
|
|
21760
21760
|
},
|
|
21761
21761
|
// Define how to uniquely identify models in the collection.
|
|
21762
21762
|
modelId: function (attrs, idAttribute) {
|
|
21763
|
-
|
|
21763
|
+
var _this$model$prototype;
|
|
21764
|
+
return attrs[idAttribute || ((_this$model$prototype = this.model.prototype) === null || _this$model$prototype === void 0 ? void 0 : _this$model$prototype.idAttribute) || 'id'];
|
|
21764
21765
|
},
|
|
21765
21766
|
// Get an iterator of all models in this collection.
|
|
21766
21767
|
values: function () {
|
|
@@ -26843,10 +26844,11 @@ var joint = (function (exports) {
|
|
|
26843
26844
|
this.graph.trigger.apply(this.graph, arguments);
|
|
26844
26845
|
}
|
|
26845
26846
|
forwardCellEvent(eventName, cell) {
|
|
26847
|
+
var _arguments$;
|
|
26846
26848
|
// Moving a cell from one layer to another is an internal operation
|
|
26847
26849
|
// that should not be exposed at the graph level.
|
|
26848
26850
|
// The single `move` event is triggered instead.
|
|
26849
|
-
if ((eventName === 'remove' || eventName === 'add') && arguments[3]
|
|
26851
|
+
if ((eventName === 'remove' || eventName === 'add') && (_arguments$ = arguments[3]) !== null && _arguments$ !== void 0 && _arguments$.fromLayer) return;
|
|
26850
26852
|
this.graph.trigger.apply(this.graph, arguments);
|
|
26851
26853
|
}
|
|
26852
26854
|
forwardCellCollectionEvent(eventName) {
|
|
@@ -26987,10 +26989,12 @@ var joint = (function (exports) {
|
|
|
26987
26989
|
return this.models;
|
|
26988
26990
|
}
|
|
26989
26991
|
minZIndex() {
|
|
26990
|
-
|
|
26992
|
+
var _this$first;
|
|
26993
|
+
return ((_this$first = this.first()) === null || _this$first === void 0 ? void 0 : _this$first.get('z')) || 0;
|
|
26991
26994
|
}
|
|
26992
26995
|
maxZIndex() {
|
|
26993
|
-
|
|
26996
|
+
var _this$last;
|
|
26997
|
+
return ((_this$last = this.last()) === null || _this$last === void 0 ? void 0 : _this$last.get('z')) || 0;
|
|
26994
26998
|
}
|
|
26995
26999
|
}
|
|
26996
27000
|
|
|
@@ -27268,7 +27272,8 @@ var joint = (function (exports) {
|
|
|
27268
27272
|
* @description Removes a cell from its current layer.
|
|
27269
27273
|
*/
|
|
27270
27274
|
removeCell(cell, options = {}) {
|
|
27271
|
-
|
|
27275
|
+
var _cell$collection;
|
|
27276
|
+
const cellCollection = (_cell$collection = cell.collection) === null || _cell$collection === void 0 || (_cell$collection = _cell$collection.layer) === null || _cell$collection === void 0 ? void 0 : _cell$collection.cellCollection;
|
|
27272
27277
|
if (!cellCollection) return;
|
|
27273
27278
|
cellCollection.remove(cell, options);
|
|
27274
27279
|
},
|
|
@@ -27277,7 +27282,8 @@ var joint = (function (exports) {
|
|
|
27277
27282
|
* @description Move a cell from its current layer to a target layer.
|
|
27278
27283
|
*/
|
|
27279
27284
|
moveCellBetweenLayers(cell, targetLayerId, options = {}) {
|
|
27280
|
-
|
|
27285
|
+
var _cell$collection2;
|
|
27286
|
+
const sourceLayer = (_cell$collection2 = cell.collection) === null || _cell$collection2 === void 0 ? void 0 : _cell$collection2.layer;
|
|
27281
27287
|
if (!sourceLayer) {
|
|
27282
27288
|
throw new Error('dia.GraphLayerCollection: cannot move a cell that is not part of any layer.');
|
|
27283
27289
|
}
|
|
@@ -28044,6 +28050,7 @@ var joint = (function (exports) {
|
|
|
28044
28050
|
// If index is negative, move to the beginning.
|
|
28045
28051
|
computedBefore = layersArray[0].id;
|
|
28046
28052
|
} else {
|
|
28053
|
+
var _layersArray$index;
|
|
28047
28054
|
const originalIndex = layersArray.indexOf(layer);
|
|
28048
28055
|
if (originalIndex !== -1 && index > originalIndex) {
|
|
28049
28056
|
// If moving a layer upwards in the stack, we need to adjust the index
|
|
@@ -28051,7 +28058,7 @@ var joint = (function (exports) {
|
|
|
28051
28058
|
index += 1;
|
|
28052
28059
|
}
|
|
28053
28060
|
// Otherwise, get the layer ID at the specified index.
|
|
28054
|
-
computedBefore = layersArray[index]
|
|
28061
|
+
computedBefore = ((_layersArray$index = layersArray[index]) === null || _layersArray$index === void 0 ? void 0 : _layersArray$index.id) || null;
|
|
28055
28062
|
}
|
|
28056
28063
|
} else {
|
|
28057
28064
|
computedBefore = before;
|
|
@@ -32995,7 +33002,8 @@ var joint = (function (exports) {
|
|
|
32995
33002
|
this.afterPaperReferenceSet(paper);
|
|
32996
33003
|
},
|
|
32997
33004
|
unsetPaperReference: function () {
|
|
32998
|
-
this.
|
|
33005
|
+
if (!this.paper) return;
|
|
33006
|
+
this.beforePaperReferenceUnset(this.paper);
|
|
32999
33007
|
this.paper = null;
|
|
33000
33008
|
},
|
|
33001
33009
|
assertPaperReference() {
|
|
@@ -39625,7 +39633,7 @@ var joint = (function (exports) {
|
|
|
39625
39633
|
Remove: Remove
|
|
39626
39634
|
};
|
|
39627
39635
|
|
|
39628
|
-
var version = "4.2.0-beta.
|
|
39636
|
+
var version = "4.2.0-beta.3";
|
|
39629
39637
|
|
|
39630
39638
|
const Vectorizer = V;
|
|
39631
39639
|
const layout$1 = {
|