sunrize 1.7.36 → 1.7.37

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.36",
4
+ "version": "1.7.37",
5
5
  "description": "A Multi-Platform X3D Editor",
6
6
  "main": "src/main.js",
7
7
  "bin": {
@@ -108,8 +108,8 @@
108
108
  "spectrum-colorpicker2": "^2.0.10",
109
109
  "string-similarity": "^4.0.4",
110
110
  "tweakpane": "^3.1.10",
111
- "update-electron-app": "^3.0.0",
112
- "x_ite": "^11.0.0",
113
- "x3d-traverse": "^1.0.6"
111
+ "update-electron-app": "^3.1.0",
112
+ "x_ite": "^11.0.1",
113
+ "x3d-traverse": "^1.0.7"
114
114
  }
115
115
  }
@@ -26,6 +26,9 @@ module .exports = class Document extends Interface
26
26
  {
27
27
  super ("Sunrize.Document.");
28
28
 
29
+ // Add X3D to window to provide access in Script nodes.
30
+ window .X3D = X3D;
31
+
29
32
  // Globals
30
33
 
31
34
  this .config .global .setDefaultValues ({
@@ -98,9 +98,10 @@ module .exports = class Console extends Interface
98
98
  this .scriptNode .setup ();
99
99
  }
100
100
 
101
+ // Add strings to exclude here:
101
102
  excludes = new Set ([
102
103
  "The vm module of Node.js is deprecated in the renderer process and will be removed.",
103
- "Invalid asm.js: Invalid member of stdlib",
104
+ // "Invalid asm.js: Invalid member of stdlib",
104
105
  ]);
105
106
 
106
107
  addMessage (event, level, sourceId, line, message)
@@ -787,9 +787,6 @@ ${scene .toXMLString ({ html: true, indent: " " .repeat (6) }) .trimEnd () }
787
787
 
788
788
  const node = object .getValue ();
789
789
 
790
- if (node .getScene () !== scene)
791
- continue;
792
-
793
790
  components .add (node .getComponentInfo () .name);
794
791
  }
795
792
 
@@ -2,7 +2,7 @@
2
2
  <!-- X3D Unified Object Model (X3DUOM) X3dUnifiedObjectModel-4.0.xml -->
3
3
  <!-- Online at https://www.web3d.org/specifications/X3dUnifiedObjectModel-4.0.xml -->
4
4
  <!-- This file contains a listing of all abstract and concrete nodes in version 4.0 of X3D -->
5
- <!-- Generated 2024-04-28-07:00 13:15:28.386754-07:00 -->
5
+ <!-- Generated 2024-12-10-08:00 12:33:23.8336395-08:00 -->
6
6
  <X3dUnifiedObjectModel xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"
7
7
  version="4.0"
8
8
  xsd:noNamespaceSchemaLocation="X3dUnifiedObjectModel.xsd">
@@ -9301,6 +9301,10 @@
9301
9301
  accessType="inputOutput"
9302
9302
  default="NULL"
9303
9303
  acceptableNodeTypes="X3DTexture2DNode"/>
9304
+ <field name="upVector"
9305
+ type="SFVec3f"
9306
+ accessType="inputOutput"
9307
+ default="0 1 0"/>
9304
9308
  <field name="DEF"
9305
9309
  type="SFString"
9306
9310
  accessType="inputOutput"
@@ -10434,7 +10438,8 @@
10434
10438
  type="SFNode"
10435
10439
  accessType="inputOutput"
10436
10440
  default="NULL"
10437
- acceptableNodeTypes="X3DMaterialNode"/>
10441
+ acceptableNodeTypes="X3DMaterialNode"
10442
+ description="Single contained Material, PhysicalMaterial or UnlitMaterial node that can specify visual attributes for lighting response (color types, transparency, etc."/>
10438
10443
  <field name="fillProperties"
10439
10444
  type="SFNode"
10440
10445
  accessType="inputOutput"
@@ -10462,7 +10467,7 @@
10462
10467
  accessType="inputOutput"
10463
10468
  default="NULL"
10464
10469
  acceptableNodeTypes="X3DMaterialNode"
10465
- description="Single contained Material node that can specify visual attributes for lighting response (color types, transparency, etc."/>
10470
+ description="Single contained Material, PhysicalMaterial, TwoSidedMaterial (deprecated), or UnlitMaterial node that can specify visual attributes for lighting response (color types, transparency, etc."/>
10466
10471
  <field name="metadata"
10467
10472
  type="SFNode"
10468
10473
  accessType="inputOutput"
@@ -24795,7 +24800,7 @@
24795
24800
  type="MFInt32"
24796
24801
  accessType="initializeOnly"
24797
24802
  minInclusive="-1"
24798
- description="colorIndex values define the order in which Color|ColorRGBA values are applied to polygons (or vertices)."/>
24803
+ description="colorIndex values define the order in which Color|ColorRGBA values are applied to polygons (or vertices), interspersed by -1 if colorlPerVertex=true."/>
24799
24804
  <field name="colorPerVertex"
24800
24805
  type="SFBool"
24801
24806
  accessType="initializeOnly"
@@ -24860,7 +24865,7 @@
24860
24865
  type="MFInt32"
24861
24866
  accessType="initializeOnly"
24862
24867
  minInclusive="-1"
24863
- description="normalIndex values define the order in which normal vectors are applied to polygons (or vertices).">
24868
+ description="normalIndex values define the order in which normal vectors are applied to polygons (or vertices), interspersed by -1 if normalPerVertex=true.">
24864
24869
  <componentInfo name="Geometry3D" level="4"/>
24865
24870
  </field>
24866
24871
  <field name="normalPerVertex"
@@ -24873,7 +24878,7 @@
24873
24878
  type="MFInt32"
24874
24879
  accessType="inputOnly"
24875
24880
  minInclusive="-1"
24876
- description="colorIndex values define the order in which Color|ColorRGBA values are applied to polygons (or vertices).">
24881
+ description="colorIndex values define the order in which Color|ColorRGBA values are applied to polygons (or vertices), interspersed by -1 if colorlPerVertex=true.">
24877
24882
  <componentInfo name="Geometry3D" level="4"/>
24878
24883
  </field>
24879
24884
  <field name="set_coordIndex"
@@ -24885,7 +24890,7 @@
24885
24890
  type="MFInt32"
24886
24891
  accessType="inputOnly"
24887
24892
  minInclusive="-1"
24888
- description="normalIndex values define the order in which normal vectors are applied to polygons (or vertices).">
24893
+ description="normalIndex values define the order in which normal vectors are applied to polygons (or vertices), interspersed by -1 if normalPerVertex=true.">
24889
24894
  <componentInfo name="Geometry3D" level="4"/>
24890
24895
  </field>
24891
24896
  <field name="set_texCoordIndex"
@@ -24969,7 +24974,7 @@
24969
24974
  type="MFInt32"
24970
24975
  accessType="initializeOnly"
24971
24976
  minInclusive="-1"
24972
- description="colorIndex values define the order in which Color|ColorRGBA values are applied to polygons (or vertices)."/>
24977
+ description="colorIndex values define the order in which Color|ColorRGBA values are applied to polygons (or vertices), interspersed by -1 if colorlPerVertex=true."/>
24973
24978
  <field name="colorPerVertex"
24974
24979
  type="SFBool"
24975
24980
  accessType="initializeOnly"
@@ -25015,7 +25020,7 @@
25015
25020
  type="MFInt32"
25016
25021
  accessType="inputOnly"
25017
25022
  minInclusive="-1"
25018
- description="colorIndex values define the order in which Color|ColorRGBA values are applied to polygons (or vertices).">
25023
+ description="colorIndex values define the order in which Color|ColorRGBA values are applied to polygons (or vertices), interspersed by -1 if colorlPerVertex=true.">
25019
25024
  <componentInfo name="Rendering" level="3"/>
25020
25025
  </field>
25021
25026
  <field name="set_coordIndex"
@@ -38524,7 +38529,8 @@
38524
38529
  <field name="upVector"
38525
38530
  type="SFVec3f"
38526
38531
  accessType="inputOutput"
38527
- default="0 0 1"
38532
+ default="0 1 0"
38533
+ inheritedFrom="X3DTextureProjectorNode"
38528
38534
  description="upVector describes the roll of the camera by saying which direction is up for the camera's orientation."/>
38529
38535
  <field name="DEF"
38530
38536
  type="SFString"
@@ -38683,6 +38689,12 @@
38683
38689
  acceptableNodeTypes="X3DTexture2DNode"
38684
38690
  inheritedFrom="X3DTextureProjectorNode"
38685
38691
  description="Single contained texture node (ImageTexture, MovieTexture, PixelTexture, MultiTexture) that maps image(s) to surface geometry."/>
38692
+ <field name="upVector"
38693
+ type="SFVec3f"
38694
+ accessType="inputOutput"
38695
+ default="0 1 0"
38696
+ inheritedFrom="X3DTextureProjectorNode"
38697
+ description="upVector describes the roll of the camera by saying which direction is up for the camera's orientation."/>
38686
38698
  <field name="DEF"
38687
38699
  type="SFString"
38688
38700
  accessType="inputOutput"