sunrize 1.7.0 → 1.7.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sunrize",
3
3
  "productName": "Sunrize X3D Editor",
4
- "version": "1.7.0",
4
+ "version": "1.7.1",
5
5
  "description": "A Multi-Platform X3D Editor",
6
6
  "main": "src/main.js",
7
7
  "bin": {
@@ -85,7 +85,7 @@
85
85
  "dependencies": {
86
86
  "capitalize": "^2.0.4",
87
87
  "console": "^0.7.2",
88
- "electron": "^30.0.9",
88
+ "electron": "^30.1.2",
89
89
  "electron-prompt": "^1.7.0",
90
90
  "electron-squirrel-startup": "^1.0.1",
91
91
  "electron-tabs": "^1.0.4",
@@ -94,17 +94,17 @@
94
94
  "jquery-ui-dist": "^1.13.3",
95
95
  "jstree": "^3.3.16",
96
96
  "material-icons": "^1.13.12",
97
- "material-symbols": "^0.19.0",
97
+ "material-symbols": "^0.20.0",
98
98
  "md5": "^2.3.0",
99
99
  "mime-types": "^2.1.35",
100
- "monaco-editor": "^0.49.0",
100
+ "monaco-editor": "^0.50.0",
101
101
  "node-localstorage": "^3.0.5",
102
102
  "qtip2": "^3.0.3",
103
103
  "spectrum-colorpicker2": "^2.0.10",
104
104
  "string-similarity": "^4.0.4",
105
105
  "tweakpane": "^3.1.10",
106
106
  "update-electron-app": "^3.0.0",
107
- "x_ite": "^9.7.0"
107
+ "x_ite": "^10.0.1"
108
108
  },
109
109
  "config": {
110
110
  "forge": {
@@ -41,7 +41,7 @@ module .exports = class Application
41
41
 
42
42
  electron .app .commandLine .appendSwitch ("--enable-features", "OverlayScrollbar,ConversionMeasurement,AttributionReportingCrossAppWeb");
43
43
 
44
- new Application ();
44
+ return new Application ();
45
45
  }
46
46
 
47
47
  constructor ()
@@ -985,7 +985,7 @@ module .exports = class Application
985
985
  {
986
986
  if (fileURL .startsWith ("id:"))
987
987
  return;
988
-
988
+
989
989
  if (fileURL .startsWith ("file:"))
990
990
  return this .addRecentDocument (url .fileURLToPath (fileURL));
991
991
 
@@ -11,7 +11,7 @@ X3DUOM .find ("AbstractNodeType[name=X3DOneSidedMaterialNode]")
11
11
 
12
12
  // pointerEvents
13
13
  X3DUOM .find ("AbstractNodeType[name=X3DShapeNode]")
14
- .append ($("<field></field>")
14
+ .append ($(X3DUOM [0] .createElement ("field"))
15
15
  .attr ("name", "pointerEvents")
16
16
  .attr ("type", "SFBool")
17
17
  .attr ("accessType", "inputOutput")
@@ -28,17 +28,17 @@ X3DUOM .find ("ConcreteNode[name=ParticleSystem]")
28
28
  X3DUOM .find ("ConcreteNode[name=Shape]") .clone ()
29
29
  .appendTo (X3DUOM .find ("ConcreteNodes"))
30
30
  .attr ("name", "InstancedShape")
31
- .append ($("<field></field>")
31
+ .append ($(X3DUOM [0] .createElement ("field"))
32
32
  .attr ("name", "translations")
33
33
  .attr ("type", "MFVec3f")
34
34
  .attr ("accessType", "inputOutput")
35
35
  .attr ("description", "List of translations, one for each instance."))
36
- .append ($("<field></field>")
36
+ .append ($(X3DUOM [0] .createElement ("field"))
37
37
  .attr ("name", "rotations")
38
38
  .attr ("type", "MFRotation")
39
39
  .attr ("accessType", "inputOutput")
40
40
  .attr ("description", "List of rotations, one for each instance."))
41
- .append ($("<field></field>")
41
+ .append ($(X3DUOM [0] .createElement ("field"))
42
42
  .attr ("name", "scales")
43
43
  .attr ("type", "MFVec3f")
44
44
  .attr ("accessType", "inputOutput")
@@ -2776,15 +2776,15 @@ module .exports = class OutlineView extends Interface
2776
2776
  closeNode (element)
2777
2777
  {
2778
2778
  element
2779
- .find (".jstree-ocl") .text ("arrow_right")
2780
2779
  .data ("expanded", false)
2781
2780
  .data ("full-expanded", false);
2782
2781
 
2782
+ element.find (".jstree-ocl") .text ("arrow_right");
2783
+
2783
2784
  // Collapse children.
2784
2785
 
2785
- const child = element .find ("> .subtree");
2786
+ element .find ("> .subtree") .hide ();
2786
2787
 
2787
- child .hide ();
2788
2788
  this .afterClose (element);
2789
2789
  }
2790
2790
 
@@ -33,7 +33,13 @@ module .exports = new class Panel extends Interface
33
33
  this .setup ();
34
34
  }
35
35
 
36
- configure () { }
36
+ configure ()
37
+ {
38
+ this .container .css ({
39
+ "right": `${this .config .file .right}px`,
40
+ "bottom": `${this .config .file .bottom}px`,
41
+ });
42
+ }
37
43
 
38
44
  get visible ()
39
45
  {
@@ -74,10 +80,17 @@ module .exports = new class Panel extends Interface
74
80
 
75
81
  onmousemove (event)
76
82
  {
83
+ const
84
+ right = this .startX - event .pageX,
85
+ bottom = this .startY - event .pageY;
86
+
77
87
  this .container .css ({
78
- "right": `${this .startX - event .pageX}px`,
79
- "bottom": `${this .startY - event .pageY}px`,
88
+ "right": `${right}px`,
89
+ "bottom": `${bottom}px`,
80
90
  });
91
+
92
+ this .config .file .right = right;
93
+ this .config .file .bottom = bottom;
81
94
  }
82
95
 
83
96
  onselection ()
@@ -10,8 +10,8 @@
10
10
  <component name='TextureProjection' level='2'/>
11
11
  <meta name='created' content='Thu, 10 Jul 2014 17:28:33 GMT'/>
12
12
  <meta name='creator' content='Holger Seelig'/>
13
- <meta name='generator' content='Sunrize X3D Editor V1.6.15, https://create3000.github.io/sunrize/'/>
14
- <meta name='modified' content='Fri, 31 May 2024 08:25:20 GMT'/>
13
+ <meta name='generator' content='Sunrize X3D Editor V1.7.0, https://create3000.github.io/sunrize/'/>
14
+ <meta name='modified' content='Sat, 22 Jun 2024 07:32:16 GMT'/>
15
15
  </head>
16
16
  <Scene>
17
17
  <ExternProtoDeclare name='Volume' url='"Volume.x3d#Volume"'>
@@ -158,7 +158,7 @@ function set_translation (value)
158
158
  </IndexedFaceSet>
159
159
  </Shape>
160
160
  </Transform>
161
- <TextureProjector DEF='_5'/>
161
+ <TextureProjector DEF='_7'/>
162
162
  </Switch>
163
163
  <Script DEF='TextureScript'>
164
164
  <field accessType='inputOnly' type='SFFloat' name='set_aspectRatio'/>
@@ -234,7 +234,7 @@ function set_texture (value)
234
234
  }
235
235
  case X3DConstants .X3DEnvironmentTextureNode:
236
236
  {
237
- cubeMapTexture = true;
237
+ cubeMapTexture = true;
238
238
  whichChoice_changed = 2;
239
239
  return;
240
240
  }
@@ -257,12 +257,12 @@ function set_texture (value)
257
257
  <ROUTE fromNode='Appearance' fromField='texture_changed' toNode='TextureScript' toField='set_texture'/>
258
258
  <ROUTE fromNode='TextureScript' fromField='texture2D' toNode='Texture2DViewpoint' toField='set_bind'/>
259
259
  <ROUTE fromNode='TextureScript' fromField='texture3D' toNode='Texture3DViewpoint' toField='set_bind'/>
260
- <ROUTE fromNode='TextureScript' fromField='cubeMapTexture' toNode='CubeMapTextureNavigationInfo' toField='set_bind'/>
261
260
  <ROUTE fromNode='Appearance' fromField='texture_changed' toNode='_4' toField='set_voxels'/>
262
- <ROUTE fromNode='Appearance' fromField='texture_changed' toNode='_5' toField='set_texture'/>
263
- <ROUTE fromNode='_5' fromField='aspectRatio' toNode='TextureScript' toField='set_aspectRatio'/>
261
+ <ROUTE fromNode='Appearance' fromField='texture_changed' toNode='_7' toField='set_texture'/>
262
+ <ROUTE fromNode='_7' fromField='aspectRatio' toNode='TextureScript' toField='set_aspectRatio'/>
264
263
  <ROUTE fromNode='TextureScript' fromField='scale_changed' toNode='Texture2D' toField='set_scale'/>
265
264
  <ROUTE fromNode='_2' fromField='touchTime' toNode='TextureScript' toField='set_time'/>
265
+ <ROUTE fromNode='TextureScript' fromField='cubeMapTexture' toNode='CubeMapViewpoint' toField='set_bind'/>
266
266
  <EXPORT localDEF='Appearance'/>
267
267
  </Scene>
268
268
  </X3D>
package/src/main.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require ("./Application/Application") .run ();
3
+ const app = require ("./Application/Application") .run ();