x_ite 8.6.16 → 8.6.18

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.
Files changed (101) hide show
  1. package/dist/assets/components/Annotation.js +13 -13
  2. package/dist/assets/components/Annotation.min.js +1 -1
  3. package/dist/assets/components/CADGeometry.js +13 -13
  4. package/dist/assets/components/CADGeometry.min.js +1 -1
  5. package/dist/assets/components/CubeMapTexturing.js +28 -28
  6. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  7. package/dist/assets/components/DIS.js +13 -21
  8. package/dist/assets/components/DIS.min.js +1 -1
  9. package/dist/assets/components/EventUtilities.js +9 -9
  10. package/dist/assets/components/EventUtilities.min.js +1 -1
  11. package/dist/assets/components/Geometry2D.js +19 -19
  12. package/dist/assets/components/Geometry2D.min.js +1 -1
  13. package/dist/assets/components/Geospatial.js +33 -39
  14. package/dist/assets/components/Geospatial.min.js +1 -1
  15. package/dist/assets/components/HAnim.js +18 -18
  16. package/dist/assets/components/HAnim.min.js +1 -1
  17. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  18. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  19. package/dist/assets/components/Layout.js +27 -27
  20. package/dist/assets/components/Layout.min.js +1 -1
  21. package/dist/assets/components/NURBS.js +24 -24
  22. package/dist/assets/components/NURBS.min.js +1 -1
  23. package/dist/assets/components/ParticleSystems.js +22 -22
  24. package/dist/assets/components/ParticleSystems.min.js +1 -1
  25. package/dist/assets/components/Picking.js +24 -23
  26. package/dist/assets/components/Picking.min.js +1 -1
  27. package/dist/assets/components/RigidBodyPhysics.js +20 -20
  28. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  29. package/dist/assets/components/Scripting.js +121 -193
  30. package/dist/assets/components/Scripting.min.js +1 -1
  31. package/dist/assets/components/Text.js +30 -31
  32. package/dist/assets/components/Text.min.js +1 -1
  33. package/dist/assets/components/TextureProjector.js +14 -14
  34. package/dist/assets/components/TextureProjector.min.js +1 -1
  35. package/dist/assets/components/Texturing3D.js +174 -174
  36. package/dist/assets/components/Texturing3D.min.js +1 -1
  37. package/dist/assets/components/VolumeRendering.js +35 -33
  38. package/dist/assets/components/VolumeRendering.min.js +1 -1
  39. package/dist/assets/components/X_ITE.js +9 -9
  40. package/dist/assets/components/X_ITE.min.js +1 -1
  41. package/dist/x_ite.css +1 -1
  42. package/dist/x_ite.js +408 -405
  43. package/dist/x_ite.min.js +1 -1
  44. package/dist/x_ite.zip +0 -0
  45. package/docs/_config.yml +1 -1
  46. package/docs/_posts/reference/prototype-services.md +2 -2
  47. package/package.json +2 -2
  48. package/src/x_ite/Base/X3DBaseNode.js +8 -23
  49. package/src/x_ite/Base/X3DEventObject.js +1 -1
  50. package/src/x_ite/Base/X3DField.js +17 -18
  51. package/src/x_ite/Base/X3DObject.js +5 -1
  52. package/src/x_ite/Base/X3DObjectArrayField.js +12 -11
  53. package/src/x_ite/Base/X3DTypedArrayField.js +3 -3
  54. package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +8 -6
  55. package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +2 -2
  56. package/src/x_ite/Browser/VERSION.js +1 -1
  57. package/src/x_ite/Browser/VolumeRendering/X3DVolumeRenderingContext.js +2 -2
  58. package/src/x_ite/Browser/X3DBrowser.js +17 -39
  59. package/src/x_ite/Components/Core/X3DNode.js +2 -2
  60. package/src/x_ite/Components/Core/X3DPrototypeInstance.js +3 -8
  61. package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +3 -3
  62. package/src/x_ite/Components/DIS/DISEntityTypeMapping.js +0 -8
  63. package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +14 -12
  64. package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +3 -3
  65. package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +1 -1
  66. package/src/x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode.js +1 -1
  67. package/src/x_ite/Components/Geospatial/GeoMetadata.js +0 -6
  68. package/src/x_ite/Components/Networking/Anchor.js +36 -33
  69. package/src/x_ite/Components/Networking/Inline.js +3 -3
  70. package/src/x_ite/Components/Networking/X3DUrlObject.js +74 -23
  71. package/src/x_ite/Components/Picking/X3DPickSensorNode.js +6 -5
  72. package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +1 -1
  73. package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +2 -2
  74. package/src/x_ite/Components/Scripting/Script.js +93 -165
  75. package/src/x_ite/Components/Shaders/ComposedShader.js +3 -18
  76. package/src/x_ite/Components/Shaders/PackagedShader.js +0 -2
  77. package/src/x_ite/Components/Shaders/ShaderPart.js +4 -4
  78. package/src/x_ite/Components/Shaders/ShaderProgram.js +0 -2
  79. package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +3 -4
  80. package/src/x_ite/Components/Sound/AudioClip.js +3 -3
  81. package/src/x_ite/Components/Text/Text.js +2 -3
  82. package/src/x_ite/Components/Text/X3DFontStyleNode.js +4 -4
  83. package/src/x_ite/Components/Texturing/ImageTexture.js +3 -3
  84. package/src/x_ite/Components/Texturing/MovieTexture.js +3 -3
  85. package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +3 -3
  86. package/src/x_ite/Components/Texturing3D/ImageTextureAtlas.js +3 -3
  87. package/src/x_ite/Components/Time/X3DTimeDependentNode.js +31 -25
  88. package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +1 -1
  89. package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +1 -1
  90. package/src/x_ite/Components/VolumeRendering/VolumeData.js +1 -1
  91. package/src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js +11 -9
  92. package/src/x_ite/Execution/X3DExecutionContext.js +30 -32
  93. package/src/x_ite/Execution/X3DScene.js +6 -6
  94. package/src/x_ite/Fields/ArrayFields.js +2 -1
  95. package/src/x_ite/Fields/SFImage.js +0 -1
  96. package/src/x_ite/Fields/SFNode.js +4 -5
  97. package/src/x_ite/Parser/GLTF2Parser.js +45 -45
  98. package/src/x_ite/Parser/VRMLParser.js +2 -2
  99. package/src/x_ite/Parser/XMLParser.js +3 -3
  100. package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +2 -2
  101. package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +1 -1
@@ -217,7 +217,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
217
217
  const
218
218
  scene = this .getExecutionContext (),
219
219
  worldURL = scene .getWorldURL (),
220
- worldInfoNode = scene .createNode ("WorldInfo", { setup: false });
220
+ worldInfoNode = scene .createNode ("WorldInfo", false);
221
221
 
222
222
  for (const [key, value] of Object .entries (asset))
223
223
  {
@@ -347,7 +347,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
347
347
  {
348
348
  const
349
349
  scene = this .getExecutionContext (),
350
- lightNode = scene .createNode ("DirectionalLight", { setup: false });
350
+ lightNode = scene .createNode ("DirectionalLight", false);
351
351
 
352
352
  return lightNode;
353
353
  },
@@ -355,7 +355,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
355
355
  {
356
356
  const
357
357
  scene = this .getExecutionContext (),
358
- lightNode = scene .createNode ("SpotLight", { setup: false });
358
+ lightNode = scene .createNode ("SpotLight", false);
359
359
 
360
360
  lightNode ._radius = this .numberValue (light .range, 0) || 1_000_000_000;
361
361
  lightNode ._cutOffAngle = this .numberValue (light .outerConeAngle, Math .PI / 4);
@@ -368,7 +368,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
368
368
  {
369
369
  const
370
370
  scene = this .getExecutionContext (),
371
- lightNode = scene .createNode ("PointLight", { setup: false });
371
+ lightNode = scene .createNode ("PointLight", false);
372
372
 
373
373
  lightNode ._radius = this .numberValue (light .range, 0) || 1_000_000_000;
374
374
  lightNode ._attenuation = new Vector3 (0, 0, 1);
@@ -594,7 +594,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
594
594
  {
595
595
  const
596
596
  scene = this .getExecutionContext (),
597
- texturePropertiesNode = scene .createNode ("TextureProperties", { setup: false }),
597
+ texturePropertiesNode = scene .createNode ("TextureProperties", false),
598
598
  name = this .sanitizeName (sampler .name);
599
599
 
600
600
  if (name)
@@ -695,7 +695,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
695
695
 
696
696
  const
697
697
  scene = this .getExecutionContext (),
698
- textureNode = scene .createNode ("ImageTexture", { setup: false }),
698
+ textureNode = scene .createNode ("ImageTexture", false),
699
699
  name = this .sanitizeName (texture .name || image .name);
700
700
 
701
701
  if (name)
@@ -740,7 +740,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
740
740
 
741
741
  const
742
742
  scene = this .getExecutionContext (),
743
- appearanceNode = scene .createNode ("Appearance", { setup: false }),
743
+ appearanceNode = scene .createNode ("Appearance", false),
744
744
  materialNode = this .createMaterial (material),
745
745
  name = this .sanitizeName (material .name);
746
746
 
@@ -764,7 +764,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
764
764
 
765
765
  if (this .textureTransformNodes .length)
766
766
  {
767
- const textureTransformNode = scene .createNode ("TextureTransform", { setup: false });
767
+ const textureTransformNode = scene .createNode ("TextureTransform", false);
768
768
 
769
769
  textureTransformNode ._mapping = mapping;
770
770
  textureTransformNode ._translation .y = -1;
@@ -829,7 +829,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
829
829
 
830
830
  const
831
831
  scene = this .getExecutionContext (),
832
- materialNode = scene .createNode ("PhysicalMaterial", { setup: false });
832
+ materialNode = scene .createNode ("PhysicalMaterial", false);
833
833
 
834
834
  const
835
835
  baseColorFactor = new Color4 (0, 0, 0, 0),
@@ -858,7 +858,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
858
858
 
859
859
  const
860
860
  scene = this .getExecutionContext (),
861
- materialNode = scene .createNode ("Material", { setup: false });
861
+ materialNode = scene .createNode ("Material", false);
862
862
 
863
863
  const
864
864
  diffuseFactor = new Color4 (0, 0, 0, 0),
@@ -993,7 +993,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
993
993
 
994
994
  const
995
995
  scene = this .getExecutionContext (),
996
- textureTransformNode = scene .createNode ("TextureTransformMatrix3D", { setup: false }),
996
+ textureTransformNode = scene .createNode ("TextureTransformMatrix3D", false),
997
997
  mapping = `TEXCOORD_${this .texCoordIndex + this .textureTransformNodes .length + 1}`;
998
998
 
999
999
  const
@@ -1316,7 +1316,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1316
1316
  {
1317
1317
  const
1318
1318
  scene = this .getExecutionContext (),
1319
- viewpointNode = scene .createNode ("OrthoViewpoint", { setup: false });
1319
+ viewpointNode = scene .createNode ("OrthoViewpoint", false);
1320
1320
 
1321
1321
  if (typeof camera .xmag === "number")
1322
1322
  {
@@ -1344,7 +1344,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1344
1344
  {
1345
1345
  const
1346
1346
  scene = this .getExecutionContext (),
1347
- viewpointNode = scene .createNode ("Viewpoint", { setup: false });
1347
+ viewpointNode = scene .createNode ("Viewpoint", false);
1348
1348
 
1349
1349
  if (typeof camera .yfov === "number")
1350
1350
  viewpointNode ._fieldOfView = camera .yfov
@@ -1378,7 +1378,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1378
1378
 
1379
1379
  const
1380
1380
  scene = this .getExecutionContext (),
1381
- transformNode = scene .createNode ("Transform", { setup: false }),
1381
+ transformNode = scene .createNode ("Transform", false),
1382
1382
  name = this .sanitizeName (node .name);
1383
1383
 
1384
1384
  // Name
@@ -1516,7 +1516,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1516
1516
  if (this .usedLights)
1517
1517
  scene .getRootNodes () .push (this .createNavigationInfo ());
1518
1518
 
1519
- const switchNode = scene .createNode ("Switch", { setup: false });
1519
+ const switchNode = scene .createNode ("Switch", false);
1520
1520
 
1521
1521
  scene .addNamedNode (scene .getUniqueName ("Scenes"), switchNode);
1522
1522
  scene .addExportedNode (scene .getUniqueExportName ("Scenes"), switchNode);
@@ -1554,7 +1554,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1554
1554
  {
1555
1555
  const
1556
1556
  scene = this .getExecutionContext (),
1557
- groupNode = scene .createNode ("Group", { setup: false }),
1557
+ groupNode = scene .createNode ("Group", false),
1558
1558
  name = this .sanitizeName (sceneObject .name);
1559
1559
 
1560
1560
  if (name)
@@ -1589,7 +1589,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1589
1589
 
1590
1590
  const
1591
1591
  scene = this .getExecutionContext (),
1592
- groupNode = scene .createNode ("Group", { setup: false });
1592
+ groupNode = scene .createNode ("Group", false);
1593
1593
 
1594
1594
  scene .addNamedNode (scene .getUniqueName ("Animations"), groupNode);
1595
1595
  scene .addExportedNode (scene .getUniqueExportName ("Animations"), groupNode);
@@ -1607,14 +1607,14 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1607
1607
 
1608
1608
  const
1609
1609
  scene = this .getExecutionContext (),
1610
- timeSensorNode = scene .createNode ("TimeSensor", { setup: false }),
1610
+ timeSensorNode = scene .createNode ("TimeSensor", false),
1611
1611
  channelNodes = this .animationChannelsArray (animation .channels, animation .samplers, timeSensorNode);
1612
1612
 
1613
1613
  if (!channelNodes .length)
1614
1614
  return null;
1615
1615
 
1616
1616
  const
1617
- groupNode = scene .createNode ("Group", { setup: false }),
1617
+ groupNode = scene .createNode ("Group", false),
1618
1618
  name = this .sanitizeName (animation .name);
1619
1619
 
1620
1620
  ++ this .animations;
@@ -1709,7 +1709,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1709
1709
  {
1710
1710
  const
1711
1711
  scene = this .getExecutionContext (),
1712
- navigationInfoNode = scene .createNode ("NavigationInfo", { setup: false });
1712
+ navigationInfoNode = scene .createNode ("NavigationInfo", false);
1713
1713
 
1714
1714
  navigationInfoNode ._headlight = false;
1715
1715
 
@@ -1721,7 +1721,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1721
1721
  {
1722
1722
  const
1723
1723
  scene = this .getExecutionContext (),
1724
- shapeNode = scene .createNode ("Shape", { setup: false }),
1724
+ shapeNode = scene .createNode ("Shape", false),
1725
1725
  appearanceNode = this .materialObject (primitive .material),
1726
1726
  geometryNode = this .createGeometry (primitive);
1727
1727
 
@@ -1739,8 +1739,8 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1739
1739
 
1740
1740
  const
1741
1741
  scene = this .getExecutionContext (),
1742
- appearanceNode = scene .createNode ("Appearance", { setup: false }),
1743
- materialNode = scene .createNode ("PhysicalMaterial", { setup: false });
1742
+ appearanceNode = scene .createNode ("Appearance", false),
1743
+ materialNode = scene .createNode ("PhysicalMaterial", false);
1744
1744
 
1745
1745
  appearanceNode ._alphaMode = "OPAQUE";
1746
1746
  appearanceNode ._material = materialNode;
@@ -1769,7 +1769,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1769
1769
 
1770
1770
  const
1771
1771
  scene = this .getExecutionContext (),
1772
- textureTransformNode = scene .createNode ("TextureTransform", { setup: false });
1772
+ textureTransformNode = scene .createNode ("TextureTransform", false);
1773
1773
 
1774
1774
  textureTransformNode ._translation .y = -1;
1775
1775
  textureTransformNode ._scale .y = -1;
@@ -1786,7 +1786,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1786
1786
  {
1787
1787
  const
1788
1788
  scene = this .getExecutionContext (),
1789
- textureTransformNode = scene .createNode ("MultiTextureTransform", { setup: false });
1789
+ textureTransformNode = scene .createNode ("MultiTextureTransform", false);
1790
1790
 
1791
1791
  textureTransformNode ._textureTransform = textureTransformNodes;
1792
1792
 
@@ -1847,7 +1847,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1847
1847
  {
1848
1848
  const
1849
1849
  scene = this .getExecutionContext (),
1850
- geometryNode = scene .createNode ("PointSet", { setup: false });
1850
+ geometryNode = scene .createNode ("PointSet", false);
1851
1851
 
1852
1852
  geometryNode ._color = this .createColor (attributes .COLOR [0], material);
1853
1853
  geometryNode ._normal = this .createNormal (attributes .NORMAL);
@@ -1861,7 +1861,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1861
1861
  {
1862
1862
  const
1863
1863
  scene = this .getExecutionContext (),
1864
- geometryNode = scene .createNode ("IndexedLineSet", { setup: false });
1864
+ geometryNode = scene .createNode ("IndexedLineSet", false);
1865
1865
 
1866
1866
  geometryNode ._color = this .createColor (attributes .COLOR [0], material);
1867
1867
  geometryNode ._normal = this .createNormal (attributes .NORMAL);
@@ -1932,7 +1932,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1932
1932
  {
1933
1933
  const
1934
1934
  scene = this .getExecutionContext (),
1935
- geometryNode = scene .createNode ("LineSet", { setup: false });
1935
+ geometryNode = scene .createNode ("LineSet", false);
1936
1936
 
1937
1937
  geometryNode ._color = this .createColor (attributes .COLOR [0], material);
1938
1938
  geometryNode ._normal = this .createNormal (attributes .NORMAL);
@@ -1946,7 +1946,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1946
1946
  {
1947
1947
  const
1948
1948
  scene = this .getExecutionContext (),
1949
- geometryNode = scene .createNode ("IndexedTriangleSet", { setup: false });
1949
+ geometryNode = scene .createNode ("IndexedTriangleSet", false);
1950
1950
 
1951
1951
  geometryNode ._solid = material ? ! material .doubleSided : true;
1952
1952
  geometryNode ._index = indices .array;
@@ -1964,7 +1964,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1964
1964
  {
1965
1965
  const
1966
1966
  scene = this .getExecutionContext (),
1967
- geometryNode = scene .createNode ("TriangleSet", { setup: false });
1967
+ geometryNode = scene .createNode ("TriangleSet", false);
1968
1968
 
1969
1969
  geometryNode ._solid = material ? ! material .doubleSided : true;
1970
1970
  geometryNode ._color = this .createColor (attributes .COLOR [0], material);
@@ -1981,7 +1981,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1981
1981
  {
1982
1982
  const
1983
1983
  scene = this .getExecutionContext (),
1984
- geometryNode = scene .createNode ("IndexedTriangleStripSet", { setup: false });
1984
+ geometryNode = scene .createNode ("IndexedTriangleStripSet", false);
1985
1985
 
1986
1986
  geometryNode ._solid = material ? ! material .doubleSided : true;
1987
1987
  geometryNode ._index = indices .array;
@@ -1999,7 +1999,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
1999
1999
  {
2000
2000
  const
2001
2001
  scene = this .getExecutionContext (),
2002
- geometryNode = scene .createNode ("TriangleStripSet", { setup: false });
2002
+ geometryNode = scene .createNode ("TriangleStripSet", false);
2003
2003
 
2004
2004
  geometryNode ._solid = material ? ! material .doubleSided : true;
2005
2005
  geometryNode ._color = this .createColor (attributes .COLOR [0], material);
@@ -2024,7 +2024,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
2024
2024
  {
2025
2025
  const
2026
2026
  scene = this .getExecutionContext (),
2027
- geometryNode = scene .createNode ("IndexedTriangleFanSet", { setup: false });
2027
+ geometryNode = scene .createNode ("IndexedTriangleFanSet", false);
2028
2028
 
2029
2029
  geometryNode ._solid = material ? ! material .doubleSided : true;
2030
2030
  geometryNode ._index = indices .array;
@@ -2042,7 +2042,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
2042
2042
  {
2043
2043
  const
2044
2044
  scene = this .getExecutionContext (),
2045
- geometryNode = scene .createNode ("TriangleFanSet", { setup: false });
2045
+ geometryNode = scene .createNode ("TriangleFanSet", false);
2046
2046
 
2047
2047
  geometryNode ._solid = material ? ! material .doubleSided : true;
2048
2048
  geometryNode ._color = this .createColor (attributes .COLOR [0], material);
@@ -2087,7 +2087,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
2087
2087
  scene = this .getExecutionContext (),
2088
2088
  appearanceNode = this .materialObject (material),
2089
2089
  opaque = appearanceNode ._alphaMode .getValue () === "OPAQUE",
2090
- colorNode = scene .createNode (opaque ? "Color" : typeName, { setup: false });
2090
+ colorNode = scene .createNode (opaque ? "Color" : typeName, false);
2091
2091
 
2092
2092
  colorNode ._color = opaque && typeName !== "Color"
2093
2093
  ? color .array .filter ((_, i) => (i + 1) % 4)
@@ -2131,7 +2131,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
2131
2131
 
2132
2132
  const
2133
2133
  scene = this .getExecutionContext (),
2134
- textureCoordinateNode = scene .createNode ("MultiTextureCoordinate", { setup: false });
2134
+ textureCoordinateNode = scene .createNode ("MultiTextureCoordinate", false);
2135
2135
 
2136
2136
  textureCoordinateNode ._texCoord = textureCoordinateNodes;
2137
2137
 
@@ -2154,7 +2154,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
2154
2154
 
2155
2155
  const
2156
2156
  scene = this .getExecutionContext (),
2157
- textureCoordinateNode = scene .createNode ("TextureCoordinate", { setup: false });
2157
+ textureCoordinateNode = scene .createNode ("TextureCoordinate", false);
2158
2158
 
2159
2159
  textureCoordinateNode ._mapping = mapping;
2160
2160
  textureCoordinateNode ._point = texCoord .array;
@@ -2176,7 +2176,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
2176
2176
 
2177
2177
  const
2178
2178
  scene = this .getExecutionContext (),
2179
- normalNode = scene .createNode ("Normal", { setup: false });
2179
+ normalNode = scene .createNode ("Normal", false);
2180
2180
 
2181
2181
  normalNode ._vector = normal .array;
2182
2182
 
@@ -2197,7 +2197,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
2197
2197
 
2198
2198
  const
2199
2199
  scene = this .getExecutionContext (),
2200
- coordinateNode = scene .createNode ("Coordinate", { setup: false });
2200
+ coordinateNode = scene .createNode ("Coordinate", false);
2201
2201
 
2202
2202
  coordinateNode ._point = position .array;
2203
2203
 
@@ -2250,7 +2250,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
2250
2250
  {
2251
2251
  case "STEP":
2252
2252
  {
2253
- const interpolatorNode = scene .createNode ("PositionInterpolator", { setup: false });
2253
+ const interpolatorNode = scene .createNode ("PositionInterpolator", false);
2254
2254
 
2255
2255
  // Key
2256
2256
 
@@ -2278,7 +2278,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
2278
2278
  default:
2279
2279
  case "LINEAR":
2280
2280
  {
2281
- const interpolatorNode = scene .createNode ("PositionInterpolator", { setup: false });
2281
+ const interpolatorNode = scene .createNode ("PositionInterpolator", false);
2282
2282
 
2283
2283
  interpolatorNode ._key = times .map (t => t / cycleInterval);
2284
2284
  interpolatorNode ._keyValue = keyValues;
@@ -2290,7 +2290,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
2290
2290
  case "CUBICSPLINE":
2291
2291
  {
2292
2292
  const
2293
- interpolatorNode = scene .createNode ("PositionInterpolator", { setup: false }),
2293
+ interpolatorNode = scene .createNode ("PositionInterpolator", false),
2294
2294
  vectors = [ ];
2295
2295
 
2296
2296
  for (let i = 0, length = keyValues .length; i < length; i += 3)
@@ -2324,7 +2324,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
2324
2324
  {
2325
2325
  case "STEP":
2326
2326
  {
2327
- const interpolatorNode = scene .createNode ("OrientationInterpolator", { setup: false });
2327
+ const interpolatorNode = scene .createNode ("OrientationInterpolator", false);
2328
2328
 
2329
2329
  // Key
2330
2330
 
@@ -2361,7 +2361,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
2361
2361
  default:
2362
2362
  case "LINEAR":
2363
2363
  {
2364
- const interpolatorNode = scene .createNode ("OrientationInterpolator", { setup: false });
2364
+ const interpolatorNode = scene .createNode ("OrientationInterpolator", false);
2365
2365
 
2366
2366
  interpolatorNode ._key = times .map (t => t / cycleInterval);
2367
2367
 
@@ -2380,7 +2380,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
2380
2380
  case "CUBICSPLINE":
2381
2381
  {
2382
2382
  const
2383
- interpolatorNode = scene .createNode ("OrientationInterpolator", { setup: false }),
2383
+ interpolatorNode = scene .createNode ("OrientationInterpolator", false),
2384
2384
  quaternions = [ ];
2385
2385
 
2386
2386
  for (let i = 0, length = keyValues .length; i < length; i += 4)
@@ -1265,11 +1265,11 @@ VRMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
1265
1265
  {
1266
1266
  var
1267
1267
  nodeTypeId = this .result [1],
1268
- baseNode = this .getExecutionContext () .createNode (nodeTypeId, { setup: false });
1268
+ baseNode = this .getExecutionContext () .createNode (nodeTypeId, false);
1269
1269
 
1270
1270
  if (! baseNode)
1271
1271
  {
1272
- baseNode = this .getExecutionContext () .createProto (nodeTypeId, { setup: false });
1272
+ baseNode = this .getExecutionContext () .createProto (nodeTypeId, false);
1273
1273
 
1274
1274
  if (! baseNode)
1275
1275
  throw new Error ("Unknown node type or proto '" + nodeTypeId + "', you probably have insufficient component/profile statements, and/or an inappropriate specification version.");
@@ -706,7 +706,7 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
706
706
 
707
707
  if (this .id (name))
708
708
  {
709
- var node = this .getExecutionContext () .createProto (name, { setup: false });
709
+ var node = this .getExecutionContext () .createProto (name, false);
710
710
 
711
711
  if (! node)
712
712
  throw new Error ("Unknown proto or externproto type '" + name + "'.");
@@ -780,10 +780,10 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
780
780
  if (this .useAttribute (xmlElement))
781
781
  return;
782
782
 
783
- var node = this .getExecutionContext () .createNode (this .nodeNameToCamelCase (xmlElement .nodeName), { setup: false });
783
+ var node = this .getExecutionContext () .createNode (this .nodeNameToCamelCase (xmlElement .nodeName), false);
784
784
 
785
785
  if (!node)
786
- node = this .getExecutionContext () .createProto (this .protoNameToCamelCase (xmlElement .nodeName), { setup: false });
786
+ node = this .getExecutionContext () .createProto (this .protoNameToCamelCase (xmlElement .nodeName), false);
787
787
 
788
788
  if (!node)
789
789
  throw new Error (`Unknown node type '${xmlElement .nodeName}', you probably have insufficient component/profile statements and/or an inappropriate specification version.`);
@@ -108,7 +108,7 @@ X3DExternProtoDeclaration .prototype = Object .assign (Object .create (X3DProtoD
108
108
 
109
109
  if (proto)
110
110
  {
111
- for (const field of this .getUserDefinedFields ())
111
+ for (const field of [... this .getUserDefinedFields ()])
112
112
  this .removeUserDefinedField (field .getName ())
113
113
 
114
114
  for (const field of proto .getUserDefinedFields ())
@@ -121,7 +121,7 @@ X3DExternProtoDeclaration .prototype = Object .assign (Object .create (X3DProtoD
121
121
  {
122
122
  return this [_proto];
123
123
  },
124
- loadNow: function ()
124
+ loadData: function ()
125
125
  {
126
126
  // 7.73 — ExternProtoDeclaration function
127
127
 
@@ -70,7 +70,7 @@ X3DProtoDeclarationNode .prototype = Object .assign (Object .create (X3DBaseNode
70
70
  {
71
71
  return true;
72
72
  },
73
- createInstance: function (executionContext, { setup = true } = { })
73
+ createInstance: function (executionContext, setup = true /* non-public argument */)
74
74
  {
75
75
  if (setup === false)
76
76
  {