sunrize 2.1.3 → 2.1.5
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/package.json +8 -5
- package/src/Editors/OutlineEditor.js +1 -1
- package/src/Editors/OutlineView.js +1 -1
- package/src/Editors/Panel.js +1 -1
- package/src/Tools/Core/X3DNodeTool.js +11 -4
- package/src/Tools/Core/X3DPrototypeInstanceTool.js +1 -1
- package/src/Tools/Layering/ViewportTool.js +13 -0
- package/src/Tools/Networking/InlineGeometryTool.js +1 -1
- package/src/Tools/SnapTool/X3DSnapNodeTool.js +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sunrize",
|
|
3
3
|
"productName": "Sunrize X3D Editor",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.5",
|
|
5
5
|
"description": "Sunrize — A Multi-Platform X3D Editor",
|
|
6
6
|
"main": "src/main.js",
|
|
7
7
|
"bin": {
|
|
@@ -87,13 +87,16 @@
|
|
|
87
87
|
"@electron-forge/maker-squirrel": "^7.11.2",
|
|
88
88
|
"@electron-forge/maker-zip": "^7.11.2",
|
|
89
89
|
"@electron-forge/publisher-github": "^7.11.2",
|
|
90
|
+
"@eslint/js": "^10.0.1",
|
|
91
|
+
"eslint": "^10.4.1",
|
|
92
|
+
"globals": "^17.6.0",
|
|
90
93
|
"shell-tools": "^1.1.9"
|
|
91
94
|
},
|
|
92
95
|
"dependencies": {
|
|
93
96
|
"@vscode/codicons": "^0.0.45",
|
|
94
97
|
"capitalize": "^2.0.4",
|
|
95
98
|
"console": "^0.7.2",
|
|
96
|
-
"electron": "
|
|
99
|
+
"electron": "42.3.3",
|
|
97
100
|
"electron-prompt": "^1.7.0",
|
|
98
101
|
"electron-squirrel-startup": "^1.0.1",
|
|
99
102
|
"electron-tabs": "^1.0.4",
|
|
@@ -102,7 +105,7 @@
|
|
|
102
105
|
"jquery-ui-dist": "^1.13.3",
|
|
103
106
|
"jstree": "^3.3.17",
|
|
104
107
|
"material-icons": "^1.13.14",
|
|
105
|
-
"material-symbols": "^0.44.
|
|
108
|
+
"material-symbols": "^0.44.12",
|
|
106
109
|
"md5": "^2.3.0",
|
|
107
110
|
"mime-types": "^3.0.2",
|
|
108
111
|
"monaco-editor": "^0.55.1",
|
|
@@ -112,8 +115,8 @@
|
|
|
112
115
|
"string-similarity": "^4.0.4",
|
|
113
116
|
"tweakpane": "^4.0.5",
|
|
114
117
|
"update-electron-app": "^3.2.0",
|
|
115
|
-
"x_ite": "^15.1.
|
|
116
|
-
"x_ite-off-parser": "^1.0.
|
|
118
|
+
"x_ite": "^15.1.2",
|
|
119
|
+
"x_ite-off-parser": "^1.0.6",
|
|
117
120
|
"x3d-traverse": "^2.0.1"
|
|
118
121
|
}
|
|
119
122
|
}
|
|
@@ -381,7 +381,7 @@ module .exports = class OutlineEditor extends OutlineRouteGraph
|
|
|
381
381
|
if (node .getInnerNode () .getType () .includes (X3D .X3DConstants .X3DChildNode))
|
|
382
382
|
continue;
|
|
383
383
|
|
|
384
|
-
//
|
|
384
|
+
// falls through
|
|
385
385
|
}
|
|
386
386
|
case X3D .X3DConstants .X3DChildNode:
|
|
387
387
|
{
|
package/src/Editors/Panel.js
CHANGED
|
@@ -397,7 +397,7 @@ class X3DNodeTool extends X3DBaseTool
|
|
|
397
397
|
}
|
|
398
398
|
catch
|
|
399
399
|
{
|
|
400
|
-
this .#initialValues .set (name, this .tool .getField (name) .copy ());
|
|
400
|
+
this .#initialValues .set (name, this .tool .getValue () .getField (name) .copy ());
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
}
|
|
@@ -429,7 +429,7 @@ class X3DNodeTool extends X3DBaseTool
|
|
|
429
429
|
}
|
|
430
430
|
catch
|
|
431
431
|
{
|
|
432
|
-
const value = this .tool .getField (name) .copy ();
|
|
432
|
+
const value = this .tool .getValue () .getField (name) .copy ();
|
|
433
433
|
|
|
434
434
|
switch (value .getType ())
|
|
435
435
|
{
|
|
@@ -470,7 +470,8 @@ class X3DNodeTool extends X3DBaseTool
|
|
|
470
470
|
return bbox;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
-
|
|
473
|
+
toolPointing = true;
|
|
474
|
+
nodePush = false;
|
|
474
475
|
|
|
475
476
|
isNodeTraversable (type)
|
|
476
477
|
{
|
|
@@ -486,13 +487,16 @@ class X3DNodeTool extends X3DBaseTool
|
|
|
486
487
|
{
|
|
487
488
|
case X3D .TraverseType .POINTER:
|
|
488
489
|
{
|
|
489
|
-
if (this .
|
|
490
|
+
if (this .toolPointing)
|
|
490
491
|
break;
|
|
491
492
|
|
|
492
493
|
return;
|
|
493
494
|
}
|
|
494
495
|
}
|
|
495
496
|
|
|
497
|
+
if (this .nodePush)
|
|
498
|
+
this .node .push (renderObject);
|
|
499
|
+
|
|
496
500
|
renderObject .getHAnimNode () .push (null);
|
|
497
501
|
renderObject .getSensors () .push (X3DNodeTool .#sensors);
|
|
498
502
|
|
|
@@ -501,6 +505,9 @@ class X3DNodeTool extends X3DBaseTool
|
|
|
501
505
|
|
|
502
506
|
renderObject .getSensors () .pop ();
|
|
503
507
|
renderObject .getHAnimNode () .pop ();
|
|
508
|
+
|
|
509
|
+
if (this .nodePush)
|
|
510
|
+
this .node .pop (renderObject);
|
|
504
511
|
}
|
|
505
512
|
|
|
506
513
|
// Destruction
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict"
|
|
2
|
+
|
|
3
|
+
const
|
|
4
|
+
X3DBoundedObjectTool = require ("../Grouping/X3DBoundedObjectTool"),
|
|
5
|
+
ToolColors = require ("../Core/ToolColors");
|
|
6
|
+
|
|
7
|
+
class ViewportTool extends X3DBoundedObjectTool
|
|
8
|
+
{
|
|
9
|
+
toolBBoxColor = ToolColors .DARK_GREEN;
|
|
10
|
+
nodePush = true;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
module .exports = ViewportTool;
|