@babylonjs/node-editor 5.9.1 → 5.12.0
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.
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["@babylonjs/node-editor"] = factory(require("@babylonjs/core"));
|
|
8
8
|
else
|
|
9
9
|
root["NODEEDITOR"] = factory(root["BABYLON"]);
|
|
10
|
-
})((typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this),
|
|
10
|
+
})((typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this), (__WEBPACK_EXTERNAL_MODULE_core_Misc_dataStorage__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -65213,7 +65213,7 @@ class GraphCanvasComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component
|
|
|
65213
65213
|
this._frameCandidate = null;
|
|
65214
65214
|
this._frames = [];
|
|
65215
65215
|
this._altKeyIsPressed = false;
|
|
65216
|
-
this.
|
|
65216
|
+
this._multiKeyIsPressed = false;
|
|
65217
65217
|
this._oldY = -1;
|
|
65218
65218
|
this._frameIsMoving = false;
|
|
65219
65219
|
this._isLoading = false;
|
|
@@ -65268,7 +65268,7 @@ class GraphCanvasComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component
|
|
|
65268
65268
|
}
|
|
65269
65269
|
else {
|
|
65270
65270
|
if (selection instanceof _graphFrame__WEBPACK_IMPORTED_MODULE_7__.GraphFrame) {
|
|
65271
|
-
if (this.
|
|
65271
|
+
if (this._multiKeyIsPressed || forceKeepSelection) {
|
|
65272
65272
|
if (!this._selectedFrameAndNodesConflict([selection], this._selectedNodes) && !this._selectedFrames.includes(selection)) {
|
|
65273
65273
|
this._selectedFrames.push(selection);
|
|
65274
65274
|
}
|
|
@@ -65281,7 +65281,7 @@ class GraphCanvasComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component
|
|
|
65281
65281
|
}
|
|
65282
65282
|
}
|
|
65283
65283
|
else if (selection instanceof _graphNode__WEBPACK_IMPORTED_MODULE_3__.GraphNode) {
|
|
65284
|
-
if (this.
|
|
65284
|
+
if (this._multiKeyIsPressed || forceKeepSelection) {
|
|
65285
65285
|
if (!this._selectedFrameAndNodesConflict(this._selectedFrames, [selection]) && !this._selectedNodes.includes(selection)) {
|
|
65286
65286
|
this._selectedNodes.push(selection);
|
|
65287
65287
|
}
|
|
@@ -65306,11 +65306,11 @@ class GraphCanvasComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component
|
|
|
65306
65306
|
this.props.globalState.hostDocument.addEventListener("keyup", () => this.onKeyUp(), false);
|
|
65307
65307
|
this.props.globalState.hostDocument.addEventListener("keydown", (evt) => {
|
|
65308
65308
|
this._altKeyIsPressed = evt.altKey;
|
|
65309
|
-
this.
|
|
65309
|
+
this._multiKeyIsPressed = evt.ctrlKey || evt.metaKey;
|
|
65310
65310
|
}, false);
|
|
65311
65311
|
this.props.globalState.hostDocument.defaultView.addEventListener("blur", () => {
|
|
65312
65312
|
this._altKeyIsPressed = false;
|
|
65313
|
-
this.
|
|
65313
|
+
this._multiKeyIsPressed = false;
|
|
65314
65314
|
}, false);
|
|
65315
65315
|
// Store additional data to serialization object
|
|
65316
65316
|
this.props.globalState.storeEditorData = (editorData, graphFrame) => {
|
|
@@ -65438,7 +65438,7 @@ class GraphCanvasComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component
|
|
|
65438
65438
|
}
|
|
65439
65439
|
onKeyUp() {
|
|
65440
65440
|
this._altKeyIsPressed = false;
|
|
65441
|
-
this.
|
|
65441
|
+
this._multiKeyIsPressed = false;
|
|
65442
65442
|
this._oldY = -1;
|
|
65443
65443
|
}
|
|
65444
65444
|
findNodeFromBlock(block) {
|
|
@@ -73124,6 +73124,11 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_core_Misc_dataStorage__;
|
|
|
73124
73124
|
/******/ };
|
|
73125
73125
|
/******/ })();
|
|
73126
73126
|
/******/
|
|
73127
|
+
/******/ /* webpack/runtime/nonce */
|
|
73128
|
+
/******/ (() => {
|
|
73129
|
+
/******/ __webpack_require__.nc = undefined;
|
|
73130
|
+
/******/ })();
|
|
73131
|
+
/******/
|
|
73127
73132
|
/************************************************************************/
|
|
73128
73133
|
var __webpack_exports__ = {};
|
|
73129
73134
|
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/node-editor",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.12.0",
|
|
4
4
|
"main": "dist/babylon.nodeEditor.max.js",
|
|
5
5
|
"module": "dist/babylon.nodeEditor.max.js",
|
|
6
6
|
"esnext": "dist/babylon.nodeEditor.max.js",
|
|
@@ -17,14 +17,13 @@
|
|
|
17
17
|
"build:declaration": "build-tools -c pud --config ./config.json",
|
|
18
18
|
"clean": "rimraf dist"
|
|
19
19
|
},
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"@babylonjs/core": "^5.9.1"
|
|
22
|
-
},
|
|
23
20
|
"peerDependencies": {
|
|
21
|
+
"@babylonjs/core": "^5.0.0",
|
|
24
22
|
"@types/react": ">=16.7.3",
|
|
25
23
|
"@types/react-dom": ">=16.0.9"
|
|
26
24
|
},
|
|
27
25
|
"devDependencies": {
|
|
26
|
+
"@babylonjs/core": "^5.12.0",
|
|
28
27
|
"react": "^17.0.2",
|
|
29
28
|
"react-dom": "^17.0.2",
|
|
30
29
|
"rimraf": "^3.0.2",
|