sunrize 1.3.0 → 1.3.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sunrize",
3
3
  "productName": "Sunrize X3D Editor",
4
- "version": "1.3.0",
4
+ "version": "1.3.2",
5
5
  "description": "A Multi-Platform X3D Editor",
6
6
  "main": "src/main.js",
7
7
  "bin": {
@@ -21,6 +21,7 @@
21
21
  "make": "electron-forge make",
22
22
  "postmake": "npm i -P electron",
23
23
  "release": "node build/release.js",
24
+ "download": "node build/download.js",
24
25
  "docs": "cd docs && bundle exec jekyll serve --incremental --host=192.168.0.18",
25
26
  "make-x_ite-for-sunrize": "sh build/make-x_ite-for-sunrize.sh"
26
27
  },
@@ -90,7 +91,7 @@
90
91
  "qtip2": "^3.0.3",
91
92
  "spectrum-colorpicker2": "^2.0.10",
92
93
  "string-similarity": "^4.0.4",
93
- "x_ite": "^9.1.7"
94
+ "x_ite": "^9.1.8"
94
95
  },
95
96
  "config": {
96
97
  "forge": {
@@ -145,6 +145,11 @@ class X3DNodeTool extends X3DBaseTool
145
145
  {
146
146
  await this .initializeTool ();
147
147
 
148
+ // X3DLayerNodeTool and X3DPrototypeInstanceTool have no own tool.
149
+
150
+ if (!this .tool)
151
+ return;
152
+
148
153
  this .#innerNode = this .tool .getValue () .getInnerNode ();
149
154
  this .tool .selected = this .#selected;
150
155
  }
@@ -381,7 +386,7 @@ class X3DNodeTool extends X3DBaseTool
381
386
 
382
387
  // Traverse
383
388
 
384
- traverse (type, renderObject)
389
+ traverse (type, renderObject = this .node)
385
390
  {
386
391
  switch (type)
387
392
  {
@@ -10,13 +10,13 @@ class GeoViewpointTool extends X3DViewpointNodeTool
10
10
  {
11
11
  await super .initializeTool ();
12
12
 
13
- this .node ._position .addInterest ("set_node_position__", this);
14
- this .tool .getField ("position") .addInterest ("set_tool_position__", this);
13
+ this .node ._position .addInterest ("set_node_position", this);
14
+ this .tool .getField ("position") .addInterest ("set_tool_position", this);
15
15
 
16
- this .set_node_position__ ();
16
+ this .set_node_position ();
17
17
  }
18
18
 
19
- set_node_position__ ()
19
+ set_node_position ()
20
20
  {
21
21
  if (this .#changing)
22
22
  {
@@ -29,7 +29,7 @@ class GeoViewpointTool extends X3DViewpointNodeTool
29
29
  this .tool .position = this .node .getPosition ();
30
30
  }
31
31
 
32
- set_tool_position__ ()
32
+ set_tool_position ()
33
33
  {
34
34
  if (this .#changing)
35
35
  {
@@ -4,8 +4,9 @@ const
4
4
  X3DChildNodeTool = require ("../Core/X3DChildNodeTool"),
5
5
  X3D = require ("../../X3D"),
6
6
  Editor = require ("../../Undo/Editor"),
7
- ActionKeys = require ("../../Application/ActionKeys"),
8
- _ = require ("../../Application/GetText");
7
+ ActionKeys = require ("../../Application/ActionKeys");
8
+
9
+ console .info ("Double-click on the handles of the arrow, sphere and box axes to cycle through the translation, rotation and scaling tools.");
9
10
 
10
11
  class X3DTransformNodeTool extends X3DChildNodeTool
11
12
  {
@@ -19,7 +20,7 @@ class X3DTransformNodeTool extends X3DChildNodeTool
19
20
 
20
21
  this .getBrowser () .displayEvents () .addInterest ("reshapeTool", this);
21
22
 
22
- this .keys = new ActionKeys (`X3DTransformNodeTool${this .getId ()}`, this .set_keys__ .bind (this));
23
+ this .keys = new ActionKeys (`X3DTransformNodeTool${this .getId ()}`, this .set_keys .bind (this));
23
24
 
24
25
  this .node .addInterest ("transformGroups", this);
25
26
 
@@ -47,7 +48,7 @@ class X3DTransformNodeTool extends X3DChildNodeTool
47
48
  super .disposeTool ();
48
49
  }
49
50
 
50
- set_keys__ (keys)
51
+ set_keys (keys)
51
52
  {
52
53
  if ((keys & ActionKeys .Option) && !this .tool .keys .includes ("OPTION"))
53
54
  return;