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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sunrize",
3
3
  "productName": "Sunrize X3D Editor",
4
- "version": "2.1.3",
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": "^42.3.0",
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.9",
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.1",
116
- "x_ite-off-parser": "^1.0.5",
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
- // Proceed with next case:
384
+ // falls through
385
385
  }
386
386
  case X3D .X3DConstants .X3DChildNode:
387
387
  {
@@ -3990,7 +3990,7 @@ module .exports = class OutlineView extends Interface
3990
3990
  case object instanceof X3D .SFNode:
3991
3991
  {
3992
3992
  object = object .getValue ();
3993
- // Proceed with next case:
3993
+ // falls through
3994
3994
  }
3995
3995
  default: // X3DBaseNode
3996
3996
  {
@@ -668,7 +668,7 @@ module .exports = new class Panel extends Interface
668
668
  {
669
669
  field = this .linearToSRGB (node, field);
670
670
 
671
- // Proceed with next case:
671
+ // falls through
672
672
  }
673
673
  case X3D .X3DConstants .SFVec2d:
674
674
  case X3D .X3DConstants .SFVec2f:
@@ -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
- toolPointingEnabled = true;
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 .toolPointingEnabled)
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
@@ -21,7 +21,7 @@ class X3DPrototypeInstanceTool extends X3DNodeTool
21
21
  {
22
22
  this .#tool = this .node .getInnerNode () .addTool ();
23
23
 
24
- this .#tool .toolPointingEnabled = false;
24
+ this .#tool .toolPointing = false;
25
25
  }
26
26
  catch
27
27
  {
@@ -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;
@@ -21,7 +21,7 @@ class InlineGeometryTool extends X3DGeometryNodeTool
21
21
  {
22
22
  this .#tool = this .node .getInnerNode () .addTool ();
23
23
 
24
- this .#tool .toolPointingEnabled = false;
24
+ this .#tool .toolPointing = false;
25
25
  }
26
26
  catch
27
27
  {
@@ -7,8 +7,8 @@ const
7
7
 
8
8
  class X3DSnapNodeTool extends X3DActiveLayerNodeTool
9
9
  {
10
- toolModifiers = ActionKeys .None;
11
- toolPointingEnabled = false;
10
+ toolModifiers = ActionKeys .None;
11
+ toolPointing = false;
12
12
 
13
13
  async initializeTool ()
14
14
  {