@joint/core 4.2.0 → 4.2.2
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 +94 -136
- package/dist/joint.js +18 -3
- package/dist/joint.min.js +2 -2
- package/dist/joint.nowrap.js +18 -3
- 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 +1 -1
- package/src/dia/Graph.mjs +17 -1
- package/types/joint.d.ts +93 -135
package/dist/joint.nowrap.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! JointJS v4.2.
|
|
1
|
+
/*! JointJS v4.2.2 (2025-12-16) - 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
|
|
@@ -27565,6 +27565,12 @@ var joint = (function (exports) {
|
|
|
27565
27565
|
* @description The ID of the default layer.
|
|
27566
27566
|
*/
|
|
27567
27567
|
defaultLayerId: DEFAULT_LAYER_ID,
|
|
27568
|
+
/**
|
|
27569
|
+
* @protected
|
|
27570
|
+
* @description If `true`, layer functionality is disabled
|
|
27571
|
+
* and all cells are assigned to the default layer.
|
|
27572
|
+
*/
|
|
27573
|
+
ignoreLayers: false,
|
|
27568
27574
|
initialize: function (attrs, options = {}) {
|
|
27569
27575
|
const layerCollection = this.layerCollection = new GraphLayerCollection([], {
|
|
27570
27576
|
layerNamespace: options.layerNamespace,
|
|
@@ -27593,6 +27599,11 @@ var joint = (function (exports) {
|
|
|
27593
27599
|
graph: this
|
|
27594
27600
|
});
|
|
27595
27601
|
|
|
27602
|
+
// Option to ignore layers altogether.
|
|
27603
|
+
if (options.ignoreLayers) {
|
|
27604
|
+
this.ignoreLayers = true;
|
|
27605
|
+
}
|
|
27606
|
+
|
|
27596
27607
|
// `Graph` keeps an internal data structure (an adjacency list)
|
|
27597
27608
|
// for fast graph queries. All changes that affect the structure of the graph
|
|
27598
27609
|
// must be reflected in the `al` object. This object provides fast answers to
|
|
@@ -27688,7 +27699,7 @@ var joint = (function (exports) {
|
|
|
27688
27699
|
// Backward compatibility: prior v4.2, z-index was not set during reset.
|
|
27689
27700
|
if (opt && opt.ensureZIndex) {
|
|
27690
27701
|
if (cellAttributes.z === undefined) {
|
|
27691
|
-
const layerId =
|
|
27702
|
+
const layerId = this.getCellLayerId(cellInit);
|
|
27692
27703
|
const zIndex = this.maxZIndex(layerId) + 1;
|
|
27693
27704
|
if (cellInit[CELL_MARKER]) {
|
|
27694
27705
|
// Set with event in case there is a listener
|
|
@@ -27793,6 +27804,10 @@ var joint = (function (exports) {
|
|
|
27793
27804
|
if (!cellInit) {
|
|
27794
27805
|
throw new Error('dia.Graph: No cell provided.');
|
|
27795
27806
|
}
|
|
27807
|
+
if (this.ignoreLayers) {
|
|
27808
|
+
// When layers are ignored, all cells belong to the default layer.
|
|
27809
|
+
return this.defaultLayerId;
|
|
27810
|
+
}
|
|
27796
27811
|
const cellAttributes = cellInit[CELL_MARKER] ? cellInit.attributes : cellInit;
|
|
27797
27812
|
return cellAttributes[config$3.layerAttribute] || this.defaultLayerId;
|
|
27798
27813
|
},
|
|
@@ -39642,7 +39657,7 @@ var joint = (function (exports) {
|
|
|
39642
39657
|
Remove: Remove
|
|
39643
39658
|
};
|
|
39644
39659
|
|
|
39645
|
-
var version = "4.2.
|
|
39660
|
+
var version = "4.2.2";
|
|
39646
39661
|
|
|
39647
39662
|
const Vectorizer = V;
|
|
39648
39663
|
const layout$1 = {
|