x_ite 8.8.3 → 8.8.4

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 (246) 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 +29 -29
  6. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  7. package/dist/assets/components/DIS.js +13 -13
  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 +22 -22
  12. package/dist/assets/components/Geometry2D.min.js +1 -1
  13. package/dist/assets/components/Geospatial.js +48 -48
  14. package/dist/assets/components/Geospatial.min.js +1 -1
  15. package/dist/assets/components/HAnim.js +19 -19
  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 +32 -32
  20. package/dist/assets/components/Layout.min.js +1 -1
  21. package/dist/assets/components/NURBS.js +35 -35
  22. package/dist/assets/components/NURBS.min.js +1 -1
  23. package/dist/assets/components/ParticleSystems.js +33 -33
  24. package/dist/assets/components/ParticleSystems.min.js +1 -1
  25. package/dist/assets/components/Picking.js +32 -35
  26. package/dist/assets/components/Picking.min.js +1 -1
  27. package/dist/assets/components/RigidBodyPhysics.js +47 -56
  28. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  29. package/dist/assets/components/Scripting.js +38 -45
  30. package/dist/assets/components/Scripting.min.js +1 -1
  31. package/dist/assets/components/Text.js +26 -26
  32. package/dist/assets/components/Text.min.js +1 -1
  33. package/dist/assets/components/TextureProjector.js +16 -16
  34. package/dist/assets/components/TextureProjector.min.js +1 -1
  35. package/dist/assets/components/Texturing3D.js +37 -37
  36. package/dist/assets/components/Texturing3D.min.js +1 -1
  37. package/dist/assets/components/VolumeRendering.js +18 -18
  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 +1762 -1827
  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/package.json +2 -2
  47. package/src/bookmarks.js +1 -1
  48. package/src/lib/jquery.js +8 -0
  49. package/src/lib/nurbs/src/utils/create-accessors.js +4 -4
  50. package/src/lib/nurbs/src/utils/variable.js +1 -1
  51. package/src/shim.js +1 -1
  52. package/src/standard/Math/Algorithms/Bezier.js +2 -2
  53. package/src/standard/Math/Geometry/Box2.js +4 -4
  54. package/src/standard/Math/Geometry/Box3.js +8 -8
  55. package/src/standard/Math/Geometry/Camera.js +1 -1
  56. package/src/standard/Math/Geometry/Line2.js +2 -2
  57. package/src/standard/Math/Geometry/Line3.js +4 -4
  58. package/src/standard/Math/Geometry/Sphere3.js +1 -1
  59. package/src/standard/Math/Geometry/Triangle3.js +2 -2
  60. package/src/standard/Math/Geometry/ViewVolume.js +10 -10
  61. package/src/standard/Math/Numbers/Matrix2.js +2 -2
  62. package/src/standard/Math/Numbers/Matrix3.js +10 -10
  63. package/src/standard/Math/Numbers/Matrix4.js +12 -12
  64. package/src/standard/Math/Numbers/Quaternion.js +2 -2
  65. package/src/standard/Math/Numbers/Rotation4.js +2 -2
  66. package/src/standard/Math/Numbers/Vector3.js +1 -1
  67. package/src/standard/Utility/MapUtilities.js +2 -2
  68. package/src/x_ite/Base/Events.js +6 -33
  69. package/src/x_ite/Base/FieldArray.js +1 -1
  70. package/src/x_ite/Base/FieldDefinitionArray.js +1 -1
  71. package/src/x_ite/Base/X3DArrayField.js +1 -1
  72. package/src/x_ite/Base/X3DBaseNode.js +58 -69
  73. package/src/x_ite/Base/X3DChildObject.js +46 -14
  74. package/src/x_ite/Base/X3DConstants.js +1 -1
  75. package/src/x_ite/Base/X3DField.js +4 -6
  76. package/src/x_ite/Base/X3DFieldDefinition.js +1 -1
  77. package/src/x_ite/Base/X3DInfoArray.js +1 -1
  78. package/src/x_ite/Base/X3DObject.js +5 -5
  79. package/src/x_ite/Base/X3DObjectArrayField.js +1 -1
  80. package/src/x_ite/Base/X3DTypedArrayField.js +1 -1
  81. package/src/x_ite/Browser/Core/BrowserOptions.js +7 -3
  82. package/src/x_ite/Browser/Core/BrowserTimings.js +1 -1
  83. package/src/x_ite/Browser/Core/ContextMenu.js +1 -12
  84. package/src/x_ite/Browser/Core/X3DCoreContext.js +1 -2
  85. package/src/x_ite/Browser/Geometry2D/Disk2DOptions.js +1 -1
  86. package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator.js +2 -2
  87. package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +1 -1
  88. package/src/x_ite/Browser/Interpolation/SquatInterpolator.js +1 -1
  89. package/src/x_ite/Browser/Layout/ScreenText.js +4 -4
  90. package/src/x_ite/Browser/Layout/X3DLayoutContext.js +1 -1
  91. package/src/x_ite/Browser/NURBS/NURBS.js +3 -3
  92. package/src/x_ite/Browser/Navigation/ExamineViewer.js +9 -13
  93. package/src/x_ite/Browser/Navigation/LookAtViewer.js +4 -7
  94. package/src/x_ite/Browser/Navigation/WalkViewer.js +1 -1
  95. package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +5 -6
  96. package/src/x_ite/Browser/Navigation/X3DViewer.js +2 -2
  97. package/src/x_ite/Browser/Networking/URLs.js +17 -9
  98. package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +0 -2
  99. package/src/x_ite/Browser/Picking/VolumePicker.js +2 -2
  100. package/src/x_ite/Browser/Text/PolygonText.js +2 -2
  101. package/src/x_ite/Browser/Texturing3D/DICOMParser.js +3 -3
  102. package/src/x_ite/Browser/Texturing3D/NRRDParser.js +2 -2
  103. package/src/x_ite/Browser/Time/X3DTimeContext.js +1 -1
  104. package/src/x_ite/Browser/VERSION.js +1 -1
  105. package/src/x_ite/Browser/X3DBrowser.js +148 -67
  106. package/src/x_ite/Browser/X3DBrowserContext.js +52 -16
  107. package/src/x_ite/Components/Core/X3DNode.js +21 -2
  108. package/src/x_ite/Components/Core/X3DPrototypeInstance.js +38 -42
  109. package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +2 -2
  110. package/src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js +1 -1
  111. package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +4 -4
  112. package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +1 -1
  113. package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +2 -2
  114. package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +2 -2
  115. package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +1 -1
  116. package/src/x_ite/Components/Followers/X3DFollowerNode.js +1 -1
  117. package/src/x_ite/Components/Geometry2D/ArcClose2D.js +1 -1
  118. package/src/x_ite/Components/Geometry2D/Rectangle2D.js +1 -1
  119. package/src/x_ite/Components/Geometry3D/Box.js +1 -1
  120. package/src/x_ite/Components/Geometry3D/Extrusion.js +3 -3
  121. package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +3 -3
  122. package/src/x_ite/Components/Geospatial/GeoCoordinate.js +6 -6
  123. package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +1 -1
  124. package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +1 -1
  125. package/src/x_ite/Components/Geospatial/GeoViewpoint.js +7 -7
  126. package/src/x_ite/Components/Grouping/StaticGroup.js +1 -1
  127. package/src/x_ite/Components/Grouping/X3DBoundedObject.js +2 -2
  128. package/src/x_ite/Components/HAnim/HAnimHumanoid.js +1 -1
  129. package/src/x_ite/Components/Interpolation/ColorInterpolator.js +1 -1
  130. package/src/x_ite/Components/Interpolation/NormalInterpolator.js +1 -1
  131. package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +1 -1
  132. package/src/x_ite/Components/Interpolation/PositionInterpolator.js +1 -1
  133. package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +1 -1
  134. package/src/x_ite/Components/Layering/X3DLayerNode.js +1 -1
  135. package/src/x_ite/Components/Lighting/X3DLightNode.js +1 -1
  136. package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +1 -1
  137. package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +2 -2
  138. package/src/x_ite/Components/Navigation/Billboard.js +1 -1
  139. package/src/x_ite/Components/Navigation/LOD.js +2 -2
  140. package/src/x_ite/Components/Navigation/OrthoViewpoint.js +1 -1
  141. package/src/x_ite/Components/Navigation/Viewpoint.js +1 -1
  142. package/src/x_ite/Components/Navigation/X3DViewpointNode.js +3 -3
  143. package/src/x_ite/Components/Networking/Inline.js +0 -4
  144. package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +1 -1
  145. package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +2 -2
  146. package/src/x_ite/Components/ParticleSystems/PointEmitter.js +1 -1
  147. package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +2 -2
  148. package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +1 -1
  149. package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +2 -2
  150. package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +1 -1
  151. package/src/x_ite/Components/Picking/LinePickSensor.js +1 -1
  152. package/src/x_ite/Components/Picking/PickableGroup.js +1 -1
  153. package/src/x_ite/Components/Picking/PointPickSensor.js +2 -2
  154. package/src/x_ite/Components/Picking/PrimitivePickSensor.js +1 -1
  155. package/src/x_ite/Components/Picking/VolumePickSensor.js +1 -1
  156. package/src/x_ite/Components/Picking/X3DPickSensorNode.js +6 -9
  157. package/src/x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode.js +1 -1
  158. package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +1 -1
  159. package/src/x_ite/Components/Rendering/X3DCoordinateNode.js +2 -2
  160. package/src/x_ite/Components/Rendering/X3DGeometryNode.js +8 -11
  161. package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +2 -2
  162. package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +2 -2
  163. package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +3 -3
  164. package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +1 -1
  165. package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +5 -14
  166. package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +3 -3
  167. package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +9 -9
  168. package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +1 -1
  169. package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +3 -3
  170. package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +1 -1
  171. package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js +1 -1
  172. package/src/x_ite/Components/Scripting/Script.js +1 -8
  173. package/src/x_ite/Components/Shaders/ShaderPart.js +2 -2
  174. package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +385 -382
  175. package/src/x_ite/Components/Shape/Appearance.js +1 -1
  176. package/src/x_ite/Components/Shape/Material.js +1 -1
  177. package/src/x_ite/Components/Shape/PhysicalMaterial.js +1 -1
  178. package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +1 -1
  179. package/src/x_ite/Components/Sound/Sound.js +2 -2
  180. package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +2 -2
  181. package/src/x_ite/Components/Texturing/MultiTexture.js +3 -3
  182. package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +1 -1
  183. package/src/x_ite/Components/Texturing/TextureProperties.js +4 -4
  184. package/src/x_ite/Components/Texturing/TextureTransform.js +1 -1
  185. package/src/x_ite/Components/Texturing/X3DSingleTextureNode.js +2 -2
  186. package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +1 -1
  187. package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +1 -1
  188. package/src/x_ite/Components.js +1 -20
  189. package/src/x_ite/Configuration/AbstractNodesArray.js +1 -1
  190. package/src/x_ite/Configuration/ComponentInfo.js +1 -1
  191. package/src/x_ite/Configuration/ComponentInfoArray.js +1 -1
  192. package/src/x_ite/Configuration/ConcreteNodesArray.js +1 -1
  193. package/src/x_ite/Configuration/ProfileInfo.js +1 -1
  194. package/src/x_ite/Configuration/ProfileInfoArray.js +1 -1
  195. package/src/x_ite/Configuration/UnitInfo.js +1 -1
  196. package/src/x_ite/Configuration/UnitInfoArray.js +1 -1
  197. package/src/x_ite/Execution/BindableList.js +1 -1
  198. package/src/x_ite/Execution/BindableStack.js +1 -1
  199. package/src/x_ite/Execution/ExportedNodesArray.js +1 -1
  200. package/src/x_ite/Execution/ImportedNodesArray.js +1 -1
  201. package/src/x_ite/Execution/NamedNodesArray.js +1 -1
  202. package/src/x_ite/Execution/X3DExecutionContext.js +9 -11
  203. package/src/x_ite/Execution/X3DExportedNode.js +1 -1
  204. package/src/x_ite/Execution/X3DImportedNode.js +1 -1
  205. package/src/x_ite/Execution/X3DScene.js +2 -6
  206. package/src/x_ite/Execution/X3DWorld.js +1 -2
  207. package/src/x_ite/{Browser/Networking/Features.js → Features.js} +9 -2
  208. package/src/x_ite/Fields/ArrayFields.js +9 -51
  209. package/src/x_ite/Fields/SFBool.js +1 -1
  210. package/src/x_ite/Fields/SFColor.js +2 -2
  211. package/src/x_ite/Fields/SFColorRGBA.js +2 -2
  212. package/src/x_ite/Fields/SFDouble.js +1 -1
  213. package/src/x_ite/Fields/SFFloat.js +1 -1
  214. package/src/x_ite/Fields/SFImage.js +2 -2
  215. package/src/x_ite/Fields/SFInt32.js +1 -1
  216. package/src/x_ite/Fields/SFMatrix3.js +1 -1
  217. package/src/x_ite/Fields/SFMatrix4.js +1 -1
  218. package/src/x_ite/Fields/SFNode.js +3 -25
  219. package/src/x_ite/Fields/SFNodeCache.js +24 -3
  220. package/src/x_ite/Fields/SFRotation.js +1 -1
  221. package/src/x_ite/Fields/SFString.js +1 -1
  222. package/src/x_ite/Fields/SFTime.js +1 -1
  223. package/src/x_ite/Fields/SFVec2.js +1 -1
  224. package/src/x_ite/Fields/SFVec3.js +1 -1
  225. package/src/x_ite/Fields/SFVec4.js +1 -1
  226. package/src/x_ite/InputOutput/FileLoader.js +1 -1
  227. package/src/x_ite/InputOutput/Generator.js +8 -8
  228. package/src/x_ite/Parser/GLTF2Parser.js +5 -5
  229. package/src/x_ite/Parser/HTMLSupport.js +3 -0
  230. package/src/x_ite/Parser/SVGParser.js +2 -2
  231. package/src/x_ite/Parser/VRMLParser.js +1 -1
  232. package/src/x_ite/Parser/XMLParser.js +1 -1
  233. package/src/x_ite/Prototype/ExternProtoDeclarationArray.js +1 -1
  234. package/src/x_ite/Prototype/ProtoDeclarationArray.js +1 -1
  235. package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +1 -3
  236. package/src/x_ite/Prototype/X3DProtoDeclaration.js +1 -2
  237. package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +1 -2
  238. package/src/x_ite/Rendering/DependentRenderer.js +1 -1
  239. package/src/x_ite/Rendering/TextureBuffer.js +2 -2
  240. package/src/x_ite/Rendering/X3DRenderObject.js +11 -11
  241. package/src/x_ite/Routing/RouteArray.js +1 -1
  242. package/src/x_ite/Routing/X3DRoute.js +1 -1
  243. package/src/x_ite/X3D.js +2 -2
  244. package/src/x_ite.html +3 -3
  245. package/x_ite.min.html +3 -3
  246. package/src/x_ite/Base/X3DEventObject.js +0 -115
@@ -339,7 +339,7 @@ Object .assign (Object .setPrototypeOf (Appearance .prototype, X3DAppearanceNode
339
339
 
340
340
  this .set_shader__ ();
341
341
  },
342
- set_shader__: (function ()
342
+ set_shader__: (() =>
343
343
  {
344
344
  function getShader ()
345
345
  {
@@ -178,7 +178,7 @@ Object .assign (Object .setPrototypeOf (Material .prototype, X3DOneSidedMaterial
178
178
  {
179
179
  return this .diffuseTexture;
180
180
  },
181
- getTextureIndices: (function ()
181
+ getTextureIndices: (() =>
182
182
  {
183
183
  let i = 0;
184
184
 
@@ -142,7 +142,7 @@ Object .assign (Object .setPrototypeOf (PhysicalMaterial .prototype, X3DOneSided
142
142
  {
143
143
  return this .baseTextureNode;
144
144
  },
145
- getTextureIndices: (function ()
145
+ getTextureIndices: (() =>
146
146
  {
147
147
  let i = 0;
148
148
 
@@ -128,7 +128,7 @@ Object .assign (Object .setPrototypeOf (X3DOneSidedMaterialNode .prototype, X3DM
128
128
  {
129
129
  return this .transparency;
130
130
  },
131
- getTextureIndices: (function ()
131
+ getTextureIndices: (() =>
132
132
  {
133
133
  let i = 0;
134
134
 
@@ -137,7 +137,7 @@ Object .assign (Object .setPrototypeOf (Sound .prototype, X3DSoundNode .prototyp
137
137
 
138
138
  this .setTraversed (false);
139
139
  },
140
- traverse: (function ()
140
+ traverse: (() =>
141
141
  {
142
142
  const
143
143
  min = { distance: 0, intersection: new Vector3 (0, 0, 0) },
@@ -192,7 +192,7 @@ Object .assign (Object .setPrototypeOf (Sound .prototype, X3DSoundNode .prototyp
192
192
  }
193
193
  };
194
194
  })(),
195
- getEllipsoidParameter: (function ()
195
+ getEllipsoidParameter: (() =>
196
196
  {
197
197
  const
198
198
  location = new Vector3 (0, 0, 0),
@@ -98,7 +98,7 @@ Object .assign (Object .setPrototypeOf (X3DTextureProjectorNode .prototype, X3DC
98
98
  {
99
99
  return this .textureNode;
100
100
  },
101
- getBiasMatrix: (function ()
101
+ getBiasMatrix: (() =>
102
102
  {
103
103
  // Transforms normalized coords from range (-1, 1) to (0, 1).
104
104
  const biasMatrix = new Matrix4 (0.5, 0.0, 0.0, 0.0,
@@ -111,7 +111,7 @@ Object .assign (Object .setPrototypeOf (X3DTextureProjectorNode .prototype, X3DC
111
111
  return biasMatrix;
112
112
  };
113
113
  })(),
114
- straightenHorizon: (function ()
114
+ straightenHorizon: (() =>
115
115
  {
116
116
  const
117
117
  localXAxis = new Vector3 (0, 0, 0),
@@ -138,7 +138,7 @@ Object .assign (Object .setPrototypeOf (MultiTexture .prototype, X3DTextureNode
138
138
  {
139
139
  this .color [3] = this ._alpha;
140
140
  },
141
- set_mode__: (function ()
141
+ set_mode__: (() =>
142
142
  {
143
143
  const modeTypes = new Map ([
144
144
  ["REPLACE", ModeType .REPLACE],
@@ -201,7 +201,7 @@ Object .assign (Object .setPrototypeOf (MultiTexture .prototype, X3DTextureNode
201
201
  }
202
202
  };
203
203
  })(),
204
- set_source__: (function ()
204
+ set_source__: (() =>
205
205
  {
206
206
  const sourceTypes = new Map ([
207
207
  ["DIFFUSE", SourceType .DIFFUSE],
@@ -224,7 +224,7 @@ Object .assign (Object .setPrototypeOf (MultiTexture .prototype, X3DTextureNode
224
224
  }
225
225
  };
226
226
  })(),
227
- set_function__: (function ()
227
+ set_function__: (() =>
228
228
  {
229
229
  const functionsTypes = new Map ([
230
230
  ["COMPLEMENT", FunctionType .COMPLEMENT],
@@ -74,7 +74,7 @@ Object .assign (Object .setPrototypeOf (TextureCoordinateGenerator .prototype, X
74
74
  this .set_mode__ ();
75
75
  this .set_parameter__ ();
76
76
  },
77
- set_mode__: (function ()
77
+ set_mode__: (() =>
78
78
  {
79
79
  const modes = new Map ([
80
80
  ["SPHERE", ModeType .SPHERE],
@@ -73,7 +73,7 @@ Object .assign (Object .setPrototypeOf (TextureProperties .prototype, X3DNode .p
73
73
  // https://stackoverflow.com/questions/27760277/webgl-border-color-shader?lq=1
74
74
  return Algorithm .clamp (this ._borderWidth .getValue (), 0, 1);
75
75
  },
76
- getBoundaryMode: (function ()
76
+ getBoundaryMode: (() =>
77
77
  {
78
78
  const boundaryModes = new Map ([
79
79
  ["CLAMP", "CLAMP_TO_EDGE"], // "CLAMP"
@@ -105,7 +105,7 @@ Object .assign (Object .setPrototypeOf (TextureProperties .prototype, X3DNode .p
105
105
  {
106
106
  return this .getBoundaryMode (this ._boundaryModeR .getValue ());
107
107
  },
108
- getMinificationFilter: (function ()
108
+ getMinificationFilter: (() =>
109
109
  {
110
110
  const minificationFilters = new Map ([
111
111
  ["AVG_PIXEL_AVG_MIPMAP", "LINEAR_MIPMAP_LINEAR"],
@@ -133,7 +133,7 @@ Object .assign (Object .setPrototypeOf (TextureProperties .prototype, X3DNode .p
133
133
  return "LINEAR";
134
134
  };
135
135
  })(),
136
- getMagnificationFilter: (function ()
136
+ getMagnificationFilter: (() =>
137
137
  {
138
138
  const magnificationFilters = new Map ([
139
139
  ["AVG_PIXEL", "LINEAR"],
@@ -153,7 +153,7 @@ Object .assign (Object .setPrototypeOf (TextureProperties .prototype, X3DNode .p
153
153
  return this .getBrowser () .getDefaultTextureProperties () .getMagnificationFilter ();
154
154
  };
155
155
  })(),
156
- getTextureCompression: (function ()
156
+ getTextureCompression: (() =>
157
157
  {
158
158
  const textureCompressions = new Map ([
159
159
  ["DEFAULT", "RGBA"],
@@ -79,7 +79,7 @@ Object .assign (Object .setPrototypeOf (TextureTransform .prototype, X3DSingleTe
79
79
  {
80
80
  return this .matrix;
81
81
  },
82
- eventsProcessed: (function ()
82
+ eventsProcessed: (() =>
83
83
  {
84
84
  const
85
85
  vector = new Vector2 (0, 0),
@@ -93,7 +93,7 @@ Object .assign (Object .setPrototypeOf (X3DSingleTextureNode .prototype, X3DText
93
93
  {
94
94
  return this .texture;
95
95
  },
96
- updateTextureParameters: (function ()
96
+ updateTextureParameters: (() =>
97
97
  {
98
98
  // Anisotropic Filtering in WebGL is handled by an extension, use one of getExtension depending on browser:
99
99
 
@@ -163,7 +163,7 @@ Object .assign (Object .setPrototypeOf (X3DSingleTextureNode .prototype, X3DText
163
163
  textureBits .set (channel * 2 + 0, textureType & 0b01);
164
164
  textureBits .set (channel * 2 + 1, textureType & 0b10);
165
165
  },
166
- getShaderOptions: (function ()
166
+ getShaderOptions: (() =>
167
167
  {
168
168
  const textureTypes = {
169
169
  2: "2D",
@@ -74,7 +74,7 @@ Object .assign (Object .setPrototypeOf (PixelTexture3D .prototype, X3DTexture3DN
74
74
  {
75
75
  return this ._loadState .getValue ();
76
76
  },
77
- set_image__: (function ()
77
+ set_image__: (() =>
78
78
  {
79
79
  const
80
80
  OFFSET = 4,
@@ -77,7 +77,7 @@ Object .assign (Object .setPrototypeOf (TextureTransform3D .prototype, X3DSingle
77
77
  {
78
78
  return this .matrix;
79
79
  },
80
- eventsProcessed: (function ()
80
+ eventsProcessed: (() =>
81
81
  {
82
82
  const vector = new Vector3 (0, 0, 0);
83
83
 
@@ -63,10 +63,7 @@ import Shape from "./Components/Shape.js";
63
63
  import Sound from "./Components/Sound.js";
64
64
  import Texturing from "./Components/Texturing.js";
65
65
  import Time from "./Components/Time.js";
66
- import AbstractNodes from "./Configuration/AbstractNodes.js"
67
- import ConcreteNodes from "./Configuration/ConcreteNodes.js"
68
66
  import X3DBrowserContext from "./Browser/X3DBrowserContext.js";
69
- import DEVELOPMENT from "./DEVELOPMENT.js";
70
67
 
71
68
  let external = false;
72
69
 
@@ -74,23 +71,7 @@ const Components =
74
71
  {
75
72
  add ({ name, concreteNodes, abstractNodes, browserContext })
76
73
  {
77
- if (concreteNodes)
78
- {
79
- for (const ConcreteNode of concreteNodes)
80
- ConcreteNodes .add (ConcreteNode .typeName, ConcreteNode);
81
- }
82
-
83
- if (abstractNodes)
84
- {
85
- for (const AbstractNode of abstractNodes)
86
- AbstractNodes .add (AbstractNode .typeName, AbstractNode);
87
- }
88
-
89
- if (browserContext)
90
- X3DBrowserContext .addBrowserContext (browserContext);
91
-
92
- if (DEVELOPMENT && external)
93
- console .info (`Done loading external component '${name}'.`);
74
+ X3DBrowserContext .addComponent ({ name, concreteNodes, abstractNodes, browserContext, external });
94
75
  },
95
76
  };
96
77
 
@@ -63,7 +63,7 @@ Object .assign (Object .setPrototypeOf (AbstractNodesArray .prototype, X3DInfoAr
63
63
  },
64
64
  });
65
65
 
66
- for (const key of Reflect .ownKeys (AbstractNodesArray .prototype))
66
+ for (const key of Object .keys (AbstractNodesArray .prototype))
67
67
  Object .defineProperty (AbstractNodesArray .prototype, key, { enumerable: false });
68
68
 
69
69
  Object .defineProperties (AbstractNodesArray,
@@ -122,7 +122,7 @@ Object .assign (Object .setPrototypeOf (ComponentInfo .prototype, X3DObject .pro
122
122
  },
123
123
  });
124
124
 
125
- for (const key of Reflect .ownKeys (ComponentInfo .prototype))
125
+ for (const key of Object .keys (ComponentInfo .prototype))
126
126
  Object .defineProperty (ComponentInfo .prototype, key, { enumerable: false });
127
127
 
128
128
  Object .defineProperties (ComponentInfo,
@@ -61,7 +61,7 @@ Object .assign (Object .setPrototypeOf (ComponentInfoArray .prototype, X3DInfoAr
61
61
  },
62
62
  });
63
63
 
64
- for (const key of Reflect .ownKeys (ComponentInfoArray .prototype))
64
+ for (const key of Object .keys (ComponentInfoArray .prototype))
65
65
  Object .defineProperty (ComponentInfoArray .prototype, key, { enumerable: false });
66
66
 
67
67
  Object .defineProperties (ComponentInfoArray,
@@ -72,7 +72,7 @@ Object .assign (Object .setPrototypeOf (ConcreteNodesArray .prototype, X3DInfoAr
72
72
  },
73
73
  });
74
74
 
75
- for (const key of Reflect .ownKeys (ConcreteNodesArray .prototype))
75
+ for (const key of Object .keys (ConcreteNodesArray .prototype))
76
76
  Object .defineProperty (ConcreteNodesArray .prototype, key, { enumerable: false });
77
77
 
78
78
  Object .defineProperties (ConcreteNodesArray,
@@ -77,7 +77,7 @@ Object .assign (Object .setPrototypeOf (ProfileInfo .prototype, X3DObject .proto
77
77
  },
78
78
  });
79
79
 
80
- for (const key of Reflect .ownKeys (ProfileInfo .prototype))
80
+ for (const key of Object .keys (ProfileInfo .prototype))
81
81
  Object .defineProperty (ProfileInfo .prototype, key, { enumerable: false });
82
82
 
83
83
  Object .defineProperties (ProfileInfo,
@@ -62,7 +62,7 @@ Object .assign (Object .setPrototypeOf (ProfileInfoArray .prototype, X3DInfoArra
62
62
  },
63
63
  });
64
64
 
65
- for (const key of Reflect .ownKeys (ProfileInfoArray .prototype))
65
+ for (const key of Object .keys (ProfileInfoArray .prototype))
66
66
  Object .defineProperty (ProfileInfoArray .prototype, key, { enumerable: false });
67
67
 
68
68
  Object .defineProperties (ProfileInfoArray,
@@ -138,7 +138,7 @@ Object .assign (Object .setPrototypeOf (UnitInfo .prototype, X3DObject .prototyp
138
138
  },
139
139
  });
140
140
 
141
- for (const key of Reflect .ownKeys (UnitInfo .prototype))
141
+ for (const key of Object .keys (UnitInfo .prototype))
142
142
  Object .defineProperty (UnitInfo .prototype, key, { enumerable: false });
143
143
 
144
144
  Object .defineProperty (UnitInfo .prototype, "conversion_factor",
@@ -55,7 +55,7 @@ function UnitInfoArray (values = [ ])
55
55
 
56
56
  Object .setPrototypeOf (UnitInfoArray .prototype, X3DInfoArray .prototype);
57
57
 
58
- for (const key of Reflect .ownKeys (UnitInfoArray .prototype))
58
+ for (const key of Object .keys (UnitInfoArray .prototype))
59
59
  Object .defineProperty (UnitInfoArray .prototype, key, { enumerable: false });
60
60
 
61
61
  Object .defineProperties (UnitInfoArray,
@@ -175,7 +175,7 @@ Object .assign (Object .setPrototypeOf (BindableList .prototype, X3DBaseNode .pr
175
175
  },
176
176
  });
177
177
 
178
- for (const key of Reflect .ownKeys (BindableList .prototype))
178
+ for (const key of Object .keys (BindableList .prototype))
179
179
  Object .defineProperty (BindableList .prototype, key, { enumerable: false });
180
180
 
181
181
  // Compares two nodess.
@@ -150,7 +150,7 @@ Object .assign (Object .setPrototypeOf (BindableStack .prototype, X3DBaseNode .p
150
150
  },
151
151
  });
152
152
 
153
- for (const key of Reflect .ownKeys (BindableStack .prototype))
153
+ for (const key of Object .keys (BindableStack .prototype))
154
154
  Object .defineProperty (BindableStack .prototype, key, { enumerable: false });
155
155
 
156
156
  Object .defineProperties (BindableStack,
@@ -55,7 +55,7 @@ function ExportedNodesArray (values = [ ])
55
55
 
56
56
  Object .setPrototypeOf (ExportedNodesArray .prototype, X3DInfoArray .prototype);
57
57
 
58
- for (const key of Reflect .ownKeys (ExportedNodesArray .prototype))
58
+ for (const key of Object .keys (ExportedNodesArray .prototype))
59
59
  Object .defineProperty (ExportedNodesArray .prototype, key, { enumerable: false });
60
60
 
61
61
  Object .defineProperties (ExportedNodesArray,
@@ -55,7 +55,7 @@ function ImportedNodesArray (values = [ ])
55
55
 
56
56
  Object .setPrototypeOf (ImportedNodesArray .prototype, X3DInfoArray .prototype);
57
57
 
58
- for (const key of Reflect .ownKeys (ImportedNodesArray .prototype))
58
+ for (const key of Object .keys (ImportedNodesArray .prototype))
59
59
  Object .defineProperty (ImportedNodesArray .prototype, key, { enumerable: false });
60
60
 
61
61
  Object .defineProperties (ImportedNodesArray,
@@ -55,7 +55,7 @@ function NamedNodesArray (values = [ ])
55
55
 
56
56
  Object .setPrototypeOf (NamedNodesArray .prototype, X3DInfoArray .prototype);
57
57
 
58
- for (const key of Reflect .ownKeys (NamedNodesArray .prototype))
58
+ for (const key of Object .keys (NamedNodesArray .prototype))
59
59
  Object .defineProperty (NamedNodesArray .prototype, key, { enumerable: false });
60
60
 
61
61
  Object .defineProperties (NamedNodesArray,
@@ -45,7 +45,6 @@
45
45
  *
46
46
  ******************************************************************************/
47
47
 
48
- import AbstractNodes from "../Configuration/AbstractNodes.js";
49
48
  import Fields from "../Fields.js";
50
49
  import X3DBaseNode from "../Base/X3DBaseNode.js";
51
50
  import { getUniqueName } from "./NamedNodesHandling.js";
@@ -70,9 +69,9 @@ const
70
69
  _routes = Symbol (),
71
70
  _outerNode = Symbol ();
72
71
 
73
- function X3DExecutionContext (executionContext, outerNode = null)
72
+ function X3DExecutionContext (executionContext, outerNode = null, browser = executionContext .getBrowser ())
74
73
  {
75
- X3DBaseNode .call (this, executionContext);
74
+ X3DBaseNode .call (this, executionContext, browser);
76
75
 
77
76
  this .addType (X3DConstants .X3DExecutionContext)
78
77
 
@@ -81,7 +80,7 @@ function X3DExecutionContext (executionContext, outerNode = null)
81
80
  "sceneGraph_changed", new Fields .SFTime ())
82
81
 
83
82
  this ._rootNodes .setAccessType (X3DConstants .initializeOnly);
84
- this ._rootNodes .addCloneCount (1);
83
+ this ._rootNodes .collectCloneCount = () => 1;
85
84
 
86
85
  this [_outerNode] = outerNode;
87
86
  this [_namedNodes] = new NamedNodesArray ();
@@ -161,7 +160,7 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, X3DBaseN
161
160
 
162
161
  if (setup === false)
163
162
  {
164
- const ConcreteNode = this .getBrowser () .getConcreteNode (typeName);
163
+ const ConcreteNode = this .getBrowser () .getConcreteNodes () .get (typeName);
165
164
 
166
165
  if (!ConcreteNode)
167
166
  return null;
@@ -181,7 +180,7 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, X3DBaseN
181
180
  }
182
181
  else
183
182
  {
184
- const ConcreteNode = this .getBrowser () .getConcreteNode (typeName);
183
+ const ConcreteNode = this .getBrowser () .getConcreteNodes () .get (typeName);
185
184
 
186
185
  if (!ConcreteNode)
187
186
  throw new Error (`Unknown node type '${typeName}'.`);
@@ -208,11 +207,10 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, X3DBaseN
208
207
  {
209
208
  name = String (name);
210
209
 
211
- let executionContext = this;
212
-
213
- for (;;)
210
+ for (let executionContext = this;;)
214
211
  {
215
- const protoNode = executionContext .protos .get (name) ?? executionContext .externprotos .get (name);
212
+ const protoNode = executionContext .protos .get (name)
213
+ ?? executionContext .externprotos .get (name);
216
214
 
217
215
  if (protoNode)
218
216
  return protoNode .createInstance (this, setup);
@@ -945,7 +943,7 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, X3DBaseN
945
943
  },
946
944
  });
947
945
 
948
- for (const key of Reflect .ownKeys (X3DExecutionContext .prototype))
946
+ for (const key of Object .keys (X3DExecutionContext .prototype))
949
947
  Object .defineProperty (X3DExecutionContext .prototype, key, { enumerable: false });
950
948
 
951
949
  Object .defineProperties (X3DExecutionContext .prototype,
@@ -166,7 +166,7 @@ Object .assign (Object .setPrototypeOf (X3DExportedNode .prototype, X3DObject .p
166
166
  },
167
167
  });
168
168
 
169
- for (const key of Reflect .ownKeys (X3DExportedNode .prototype))
169
+ for (const key of Object .keys (X3DExportedNode .prototype))
170
170
  Object .defineProperty (X3DExportedNode .prototype, key, { enumerable: false });
171
171
 
172
172
  Object .defineProperties (X3DExportedNode .prototype,
@@ -514,7 +514,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, X3DNode .pro
514
514
  },
515
515
  });
516
516
 
517
- for (const key of Reflect .ownKeys (X3DImportedNode .prototype))
517
+ for (const key of Object .keys (X3DImportedNode .prototype))
518
518
  Object .defineProperty (X3DImportedNode .prototype, key, { enumerable: false });
519
519
 
520
520
  Object .defineProperties (X3DImportedNode .prototype,
@@ -45,7 +45,6 @@
45
45
  *
46
46
  ******************************************************************************/
47
47
 
48
- import AbstractNodes from "../Configuration/AbstractNodes.js";
49
48
  import Fields from "../Fields.js";
50
49
  import X3DExecutionContext from "./X3DExecutionContext.js";
51
50
  import { getUniqueName } from "./NamedNodesHandling.js";
@@ -59,7 +58,6 @@ import X3DConstants from "../Base/X3DConstants.js";
59
58
  import SFNodeCache from "../Fields/SFNodeCache.js";
60
59
 
61
60
  const
62
- _browser = Symbol .for ("X_ITE.X3DEventObject.browser"),
63
61
  _specificationVersion = Symbol (),
64
62
  _encoding = Symbol (),
65
63
  _profile = Symbol (),
@@ -74,9 +72,7 @@ const X3D_LATEST_VERSION = "4.0";
74
72
 
75
73
  function X3DScene (browser)
76
74
  {
77
- this [_browser] = browser;
78
-
79
- X3DExecutionContext .call (this, this);
75
+ X3DExecutionContext .call (this, this, null, browser);
80
76
 
81
77
  this .addType (X3DConstants .X3DScene)
82
78
 
@@ -1037,7 +1033,7 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, X3DExecutionContext
1037
1033
  },
1038
1034
  });
1039
1035
 
1040
- for (const key of Reflect .ownKeys (X3DScene .prototype))
1036
+ for (const key of Object .keys (X3DScene .prototype))
1041
1037
  Object .defineProperty (X3DScene .prototype, key, { enumerable: false });
1042
1038
 
1043
1039
  Object .defineProperties (X3DScene .prototype,
@@ -45,7 +45,6 @@
45
45
  *
46
46
  ******************************************************************************/
47
47
 
48
- import AbstractNodes from "../Configuration/AbstractNodes.js";
49
48
  import SFNode from "../Fields/SFNode.js";
50
49
  import X3DBaseNode from "../Base/X3DBaseNode.js";
51
50
  import LayerSet from "../Components/Layering/LayerSet.js";
@@ -144,7 +143,7 @@ Object .assign (Object .setPrototypeOf (X3DWorld .prototype, X3DBaseNode .protot
144
143
  },
145
144
  });
146
145
 
147
- for (const key of Reflect .ownKeys (X3DWorld .prototype))
146
+ for (const key of Object .keys (X3DWorld .prototype))
148
147
  Object .defineProperty (X3DWorld .prototype, key, { enumerable: false });
149
148
 
150
149
  Object .defineProperties (X3DWorld,
@@ -45,8 +45,15 @@
45
45
  *
46
46
  ******************************************************************************/
47
47
 
48
- const Features = {
49
- NODE_ENV: (typeof process === "object") && (process .release .name .search (/node|io.js/) !== -1),
48
+ const Features =
49
+ {
50
+ get ENVIRONMENT ()
51
+ {
52
+ if ((typeof process === "object") && (process .release .name .search (/node|io.js/) !== -1))
53
+ return "NODE";
54
+
55
+ return "BROWSER";
56
+ },
50
57
  };
51
58
 
52
59
  export default Features;
@@ -65,23 +65,16 @@ import X3DObjectArrayField from "../Base/X3DObjectArrayField.js";
65
65
  import X3DTypedArrayField from "../Base/X3DTypedArrayField.js";
66
66
 
67
67
  const
68
- SFMatrix3d = SFMatrix3 .SFMatrix3d,
69
- SFMatrix3f = SFMatrix3 .SFMatrix3f,
70
- SFMatrix4d = SFMatrix4 .SFMatrix4d,
71
- SFMatrix4f = SFMatrix4 .SFMatrix4f,
72
- SFVec2d = SFVec2 .SFVec2d,
73
- SFVec2f = SFVec2 .SFVec2f,
74
- SFVec3d = SFVec3 .SFVec3d,
75
- SFVec3f = SFVec3 .SFVec3f,
76
- SFVec4d = SFVec4 .SFVec4d,
77
- SFVec4f = SFVec4 .SFVec4f;
68
+ { SFMatrix3d, SFMatrix3f } = SFMatrix3,
69
+ { SFMatrix4d, SFMatrix4f } = SFMatrix4,
70
+ { SFVec2d, SFVec2f } = SFVec2,
71
+ { SFVec3d, SFVec3f } = SFVec3,
72
+ { SFVec4d, SFVec4f } = SFVec4;
78
73
 
79
74
  /*
80
75
  * MFNode
81
76
  */
82
77
 
83
- const _cloneCount = Symbol ();
84
-
85
78
  function MFNode (... args)
86
79
  {
87
80
  return X3DObjectArrayField .call (this, args);
@@ -89,7 +82,6 @@ function MFNode (... args)
89
82
 
90
83
  Object .assign (Object .setPrototypeOf (MFNode .prototype, X3DObjectArrayField .prototype),
91
84
  {
92
- [_cloneCount]: 0,
93
85
  getSingleType ()
94
86
  {
95
87
  return SFNode;
@@ -112,40 +104,6 @@ Object .assign (Object .setPrototypeOf (MFNode .prototype, X3DObjectArrayField .
112
104
  return X3DObjectArrayField .prototype .copy .call (this);
113
105
  }
114
106
  },
115
- addCloneCount (count)
116
- {
117
- const target = this .getTarget ();
118
-
119
- target [_cloneCount] += count;
120
-
121
- for (const element of target .getValue ())
122
- element .addCloneCount (count);
123
- },
124
- removeCloneCount (count)
125
- {
126
- const target = this .getTarget ();
127
-
128
- target [_cloneCount] -= count;
129
-
130
- for (const element of target .getValue ())
131
- element .removeCloneCount (count);
132
- },
133
- addChildObject (value)
134
- {
135
- const target = this .getTarget ();
136
-
137
- X3DObjectArrayField .prototype .addChildObject .call (target, value);
138
-
139
- value .addCloneCount (target [_cloneCount]);
140
- },
141
- removeChildObject (value)
142
- {
143
- const target = this .getTarget ();
144
-
145
- X3DObjectArrayField .prototype .removeChildObject .call (target, value);
146
-
147
- value .removeCloneCount (target [_cloneCount]);
148
- },
149
107
  toStream (generator)
150
108
  {
151
109
  const
@@ -370,7 +328,7 @@ Object .assign (Object .setPrototypeOf (MFNode .prototype, X3DObjectArrayField .
370
328
  },
371
329
  });
372
330
 
373
- for (const key of Reflect .ownKeys (MFNode .prototype))
331
+ for (const key of Object .keys (MFNode .prototype))
374
332
  Object .defineProperty (MFNode .prototype, key, { enumerable: false });
375
333
 
376
334
  Object .defineProperties (MFNode,
@@ -419,7 +377,7 @@ Object .assign (Object .setPrototypeOf (MFString .prototype, X3DObjectArrayField
419
377
  },
420
378
  });
421
379
 
422
- for (const key of Reflect .ownKeys (MFString .prototype))
380
+ for (const key of Object .keys (MFString .prototype))
423
381
  Object .defineProperty (MFString .prototype, key, { enumerable: false });
424
382
 
425
383
  Object .defineProperties (MFString,
@@ -448,7 +406,7 @@ Object .assign (Object .setPrototypeOf (MFImage .prototype, X3DObjectArrayField
448
406
  },
449
407
  });
450
408
 
451
- for (const key of Reflect .ownKeys (MFImage .prototype))
409
+ for (const key of Object .keys (MFImage .prototype))
452
410
  Object .defineProperty (MFImage .prototype, key, { enumerable: false });
453
411
 
454
412
  Object .defineProperties (MFImage,
@@ -487,7 +445,7 @@ function TypedArrayTemplate (TypeName, SingleType, ValueType, ArrayType, Compone
487
445
  },
488
446
  });
489
447
 
490
- for (const key of Reflect .ownKeys (ArrayField .prototype))
448
+ for (const key of Object .keys (ArrayField .prototype))
491
449
  Object .defineProperty (ArrayField .prototype, key, { enumerable: false });
492
450
 
493
451
  Object .defineProperties (ArrayField,
@@ -89,7 +89,7 @@ Object .assign (Object .setPrototypeOf (SFBool .prototype, X3DField .prototype),
89
89
  },
90
90
  });
91
91
 
92
- for (const key of Reflect .ownKeys (SFBool .prototype))
92
+ for (const key of Object .keys (SFBool .prototype))
93
93
  Object .defineProperty (SFBool .prototype, key, { enumerable: false });
94
94
 
95
95
  Object .defineProperties (SFBool,