@joint/core 4.1.0 → 4.1.1
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 +32 -30
- package/dist/joint.js +23 -13
- package/dist/joint.min.js +2 -2
- package/dist/joint.nowrap.js +23 -13
- 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/ToolsView.mjs +22 -11
- package/types/joint.d.ts +32 -29
package/dist/joint.nowrap.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! JointJS v4.1.
|
|
1
|
+
/*! JointJS v4.1.1 (2024-12-02) - JavaScript diagramming library
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -34466,15 +34466,7 @@ var joint = (function (exports) {
|
|
|
34466
34466
|
const tool = tools[i];
|
|
34467
34467
|
tool.updateVisibility();
|
|
34468
34468
|
if (!tool.isVisible()) continue;
|
|
34469
|
-
if (
|
|
34470
|
-
// There is at least one visible tool
|
|
34471
|
-
this.isRendered = Array(n).fill(false);
|
|
34472
|
-
}
|
|
34473
|
-
if (!this.isRendered[i]) {
|
|
34474
|
-
// First update executes render()
|
|
34475
|
-
tool.render();
|
|
34476
|
-
this.isRendered[i] = true;
|
|
34477
|
-
} else if (opt.tool !== tool.cid) {
|
|
34469
|
+
if (this.ensureToolRendered(tools, i) && opt.tool !== tool.cid) {
|
|
34478
34470
|
tool.update();
|
|
34479
34471
|
}
|
|
34480
34472
|
}
|
|
@@ -34492,6 +34484,19 @@ var joint = (function (exports) {
|
|
|
34492
34484
|
}
|
|
34493
34485
|
return this;
|
|
34494
34486
|
},
|
|
34487
|
+
ensureToolRendered(tools, i) {
|
|
34488
|
+
if (!this.isRendered) {
|
|
34489
|
+
// There is at least one visible tool
|
|
34490
|
+
this.isRendered = Array(tools.length).fill(false);
|
|
34491
|
+
}
|
|
34492
|
+
if (!this.isRendered[i]) {
|
|
34493
|
+
// First update executes render()
|
|
34494
|
+
tools[i].render();
|
|
34495
|
+
this.isRendered[i] = true;
|
|
34496
|
+
return false;
|
|
34497
|
+
}
|
|
34498
|
+
return true;
|
|
34499
|
+
},
|
|
34495
34500
|
focusTool: function (focusedTool) {
|
|
34496
34501
|
var tools = this.tools;
|
|
34497
34502
|
if (!tools) return this;
|
|
@@ -34514,7 +34519,7 @@ var joint = (function (exports) {
|
|
|
34514
34519
|
tool.show();
|
|
34515
34520
|
// Check if the tool is conditionally visible too
|
|
34516
34521
|
if (tool.isVisible()) {
|
|
34517
|
-
tool.update();
|
|
34522
|
+
this.ensureToolRendered(tools, i) && tool.update();
|
|
34518
34523
|
}
|
|
34519
34524
|
}
|
|
34520
34525
|
}
|
|
@@ -34524,7 +34529,12 @@ var joint = (function (exports) {
|
|
|
34524
34529
|
return this.focusTool(null);
|
|
34525
34530
|
},
|
|
34526
34531
|
show: function () {
|
|
34527
|
-
|
|
34532
|
+
this.blurTool(null);
|
|
34533
|
+
// If this the first time the tools are shown, make sure they are mounted
|
|
34534
|
+
if (!this.isMounted()) {
|
|
34535
|
+
this.mount();
|
|
34536
|
+
}
|
|
34537
|
+
return this;
|
|
34528
34538
|
},
|
|
34529
34539
|
onRemove: function () {
|
|
34530
34540
|
var tools = this.tools;
|
|
@@ -36483,7 +36493,7 @@ var joint = (function (exports) {
|
|
|
36483
36493
|
Control: Control
|
|
36484
36494
|
});
|
|
36485
36495
|
|
|
36486
|
-
var version = "4.1.
|
|
36496
|
+
var version = "4.1.1";
|
|
36487
36497
|
|
|
36488
36498
|
const Vectorizer = V;
|
|
36489
36499
|
const layout = {
|