x_ite 8.8.2 → 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 +46 -56
  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 +9 -19
  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
@@ -103,7 +103,7 @@ Object .assign (Object .setPrototypeOf (LinePickSensor .prototype, X3DPickSensor
103
103
  catch
104
104
  { }
105
105
  },
106
- process: (function ()
106
+ process: (() =>
107
107
  {
108
108
  var
109
109
  pickingBBox = new Box3 (),
@@ -82,7 +82,7 @@ Object .assign (Object .setPrototypeOf (PickableGroup .prototype, X3DGroupingNod
82
82
  {
83
83
  this .setPickableObject (!!(this ._pickable .getValue () || this .getTransformSensors () .size));
84
84
  },
85
- traverse: (function ()
85
+ traverse: (() =>
86
86
  {
87
87
  const pickSensorNodes = new Set ();
88
88
 
@@ -91,7 +91,7 @@ Object .assign (Object .setPrototypeOf (PointPickSensor .prototype, X3DPickSenso
91
91
 
92
92
  this .set_geometry__ ();
93
93
  },
94
- set_geometry__: (function ()
94
+ set_geometry__: (() =>
95
95
  {
96
96
  var
97
97
  defaultScale = new Ammo .btVector3 (1, 1, 1),
@@ -152,7 +152,7 @@ Object .assign (Object .setPrototypeOf (PointPickSensor .prototype, X3DPickSenso
152
152
  }
153
153
  };
154
154
  })(),
155
- process: (function ()
155
+ process: (() =>
156
156
  {
157
157
  var
158
158
  pickingBBox = new Box3 (),
@@ -105,7 +105,7 @@ Object .assign (Object .setPrototypeOf (PrimitivePickSensor .prototype, X3DPickS
105
105
  catch
106
106
  { }
107
107
  },
108
- process: (function ()
108
+ process: (() =>
109
109
  {
110
110
  var
111
111
  pickingBBox = new Box3 (),
@@ -80,7 +80,7 @@ Object .assign (Object .setPrototypeOf (VolumePickSensor .prototype, X3DPickSens
80
80
  {
81
81
  this .pickingGeometryNode = X3DCast (X3DConstants .X3DGeometryNode, this ._pickingGeometry);
82
82
  },
83
- process: (function ()
83
+ process: (() =>
84
84
  {
85
85
  var
86
86
  pickingBBox = new Box3 (),
@@ -121,7 +121,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, X3DSensorN
121
121
  {
122
122
  return this .targets;
123
123
  },
124
- getPickShape: (function ()
124
+ getPickShape: (() =>
125
125
  {
126
126
  const pickShapes = new WeakMap ();
127
127
 
@@ -152,7 +152,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, X3DSensorN
152
152
  return collidableShapeNode;
153
153
  };
154
154
  })(),
155
- getPickedGeometries: (function ()
155
+ getPickedGeometries: (() =>
156
156
  {
157
157
  return function ()
158
158
  {
@@ -285,7 +285,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, X3DSensorN
285
285
 
286
286
  this .set_live__ ();
287
287
  },
288
- set_matchCriterion__: (function ()
288
+ set_matchCriterion__: (() =>
289
289
  {
290
290
  var matchCriterions = new Map ([
291
291
  ["MATCH_ANY", MatchCriterion .MATCH_ANY],
@@ -301,7 +301,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, X3DSensorN
301
301
  this .matchCriterion = MatchCriterionType .MATCH_ANY;
302
302
  };
303
303
  })(),
304
- set_intersectionType__: (function ()
304
+ set_intersectionType__: (() =>
305
305
  {
306
306
  var intersectionTypes = new Map ([
307
307
  ["BOUNDS", IntersectionType .BOUNDS],
@@ -316,7 +316,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, X3DSensorN
316
316
  this .intersectionType = IntersectionType .BOUNDS;
317
317
  };
318
318
  })(),
319
- set_sortOrder__: (function ()
319
+ set_sortOrder__: (() =>
320
320
  {
321
321
  var sortOrders = new Map ([
322
322
  ["ANY", SortOrder .ANY],
@@ -379,10 +379,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, X3DSensorN
379
379
  {
380
380
  var pickTargetNodes = this .pickTargetNodes;
381
381
 
382
- var haveTarget = pickingHierarchy .some (function (node)
383
- {
384
- return pickTargetNodes .has (node);
385
- });
382
+ var haveTarget = pickingHierarchy .some (node => pickTargetNodes .has (node));
386
383
 
387
384
  if (haveTarget)
388
385
  {
@@ -66,7 +66,7 @@ Object .assign (Object .setPrototypeOf (X3DTouchSensorNode .prototype, X3DPointi
66
66
  if (this ._enabled .getValue () && this ._isOver .getValue () && ! active)
67
67
  this ._touchTime = this .getBrowser () .getCurrentTime ();
68
68
  },
69
- set_over__: (function ()
69
+ set_over__: (() =>
70
70
  {
71
71
  const
72
72
  invModelViewMatrix = new Matrix4 (),
@@ -312,7 +312,7 @@ Object .assign (Object .setPrototypeOf (X3DComposedGeometryNode .prototype, X3DG
312
312
 
313
313
  return normals;
314
314
  },
315
- getPolygonNormal: (function ()
315
+ getPolygonNormal: (() =>
316
316
  {
317
317
  let
318
318
  current = new Vector3 (0, 0, 0),
@@ -124,7 +124,7 @@ Object .assign (Object .setPrototypeOf (X3DCoordinateNode .prototype, X3DGeometr
124
124
  for (var index = length, length = min * 3; index < length; index += 3)
125
125
  array .push (0, 0, 0, 1);
126
126
  },
127
- getNormal: (function ()
127
+ getNormal: (() =>
128
128
  {
129
129
  const
130
130
  point1 = new Vector3 (0, 0, 0),
@@ -148,7 +148,7 @@ Object .assign (Object .setPrototypeOf (X3DCoordinateNode .prototype, X3DGeometr
148
148
  return new Vector3 (0, 0, 0);
149
149
  };
150
150
  })(),
151
- getQuadNormal: (function ()
151
+ getQuadNormal: (() =>
152
152
  {
153
153
  const
154
154
  point1 = new Vector3 (0, 0, 0),
@@ -382,7 +382,7 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, X3DNode .pro
382
382
 
383
383
  this .getMultiTexCoords () .push (texCoords);
384
384
  },
385
- getTexCoordParams: (function ()
385
+ getTexCoordParams: (() =>
386
386
  {
387
387
  const texCoordParams = { min: new Vector3 (0, 0, 0), Ssize: 0, Sindex: 0, Tindex: 0 };
388
388
 
@@ -477,12 +477,9 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, X3DNode .pro
477
477
  },
478
478
  isClipped (point, clipPlanes)
479
479
  {
480
- return clipPlanes .some (function (clipPlane)
481
- {
482
- return clipPlane .isClipped (point);
483
- });
480
+ return clipPlanes .some (clipPlane => clipPlane .isClipped (point));
484
481
  },
485
- intersectsLine: (function ()
482
+ intersectsLine: (() =>
486
483
  {
487
484
  const
488
485
  modelViewMatrix = new Matrix4 (),
@@ -551,7 +548,7 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, X3DNode .pro
551
548
  return intersections .length;
552
549
  };
553
550
  })(),
554
- getPlanesWithOffset: (function ()
551
+ getPlanesWithOffset: (() =>
555
552
  {
556
553
  const
557
554
  min = new Vector3 (0, 0, 0),
@@ -572,7 +569,7 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, X3DNode .pro
572
569
  return planes;
573
570
  };
574
571
  })(),
575
- intersectsBBox: (function ()
572
+ intersectsBBox: (() =>
576
573
  {
577
574
  const intersection = new Vector3 (0, 0, 0);
578
575
 
@@ -648,7 +645,7 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, X3DNode .pro
648
645
  return false;
649
646
  };
650
647
  })(),
651
- intersectsBox: (function ()
648
+ intersectsBox: (() =>
652
649
  {
653
650
  const
654
651
  v0 = new Vector3 (0, 0, 0),
@@ -704,7 +701,7 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, X3DNode .pro
704
701
  else
705
702
  this .getBrowser () .getBrowserOptions () ._Shading .removeInterest ("set_shading__", this);
706
703
  },
707
- set_shading__: (function ()
704
+ set_shading__: (() =>
708
705
  {
709
706
  const
710
707
  v0 = new Vector3 (0, 0, 0),
@@ -773,7 +770,7 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, X3DNode .pro
773
770
  {
774
771
  this ._rebuild .addEvent ();
775
772
  },
776
- rebuild: (function ()
773
+ rebuild: (() =>
777
774
  {
778
775
  const point = new Vector3 (0, 0, 0);
779
776
 
@@ -106,7 +106,7 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, X3DGeome
106
106
  gl .bindBuffer (gl .ARRAY_BUFFER, this .trianglesBuffer);
107
107
  gl .bufferData (gl .ARRAY_BUFFER, new Float32Array (15 * 6 * numLines), gl .DYNAMIC_DRAW);
108
108
  },
109
- updateLengthSoFar: (function ()
109
+ updateLengthSoFar: (() =>
110
110
  {
111
111
  const
112
112
  modelViewProjectionMatrix = new Matrix4 (),
@@ -199,7 +199,7 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, X3DGeome
199
199
  gl .drawArrays (this .primitiveMode, 0, this .vertexCount);
200
200
  gl .lineWidth (1);
201
201
  },
202
- display: (function ()
202
+ display: (() =>
203
203
  {
204
204
  const
205
205
  matrix = new Matrix4 (),
@@ -149,7 +149,7 @@ Object .assign (Object .setPrototypeOf (BallJoint .prototype, X3DRigidJointNode
149
149
  this .joint .setPivotB (new Ammo .btVector3 (localAnchorPoint2 .x, localAnchorPoint2 .y, localAnchorPoint2 .z));
150
150
  }
151
151
  },
152
- update1: (function ()
152
+ update1: (() =>
153
153
  {
154
154
  var localAnchorPoint1 = new Vector3 (0, 0, 0);
155
155
 
@@ -159,7 +159,7 @@ Object .assign (Object .setPrototypeOf (BallJoint .prototype, X3DRigidJointNode
159
159
  this ._body1AnchorPoint = this .getBody1 () .getMatrix () .multVecMatrix (this .getInitialInverseMatrix1 () .multVecMatrix (localAnchorPoint1 .assign (this .localAnchorPoint1)));
160
160
  };
161
161
  })(),
162
- update2: (function ()
162
+ update2: (() =>
163
163
  {
164
164
  var localAnchorPoint2 = new Vector3 (0, 0, 0);
165
165
 
@@ -95,7 +95,7 @@ Object .assign (Object .setPrototypeOf (CollidableShape .prototype, X3DNBodyColl
95
95
  {
96
96
  return this .convex;
97
97
  },
98
- createConvexGeometry: (function ()
98
+ createConvexGeometry: (() =>
99
99
  {
100
100
  var p = new Ammo .btVector3 ();
101
101
 
@@ -119,7 +119,7 @@ Object .assign (Object .setPrototypeOf (CollidableShape .prototype, X3DNBodyColl
119
119
  return convexHull;
120
120
  };
121
121
  })(),
122
- createConcaveGeometry: (function ()
122
+ createConcaveGeometry: (() =>
123
123
  {
124
124
  var
125
125
  p1 = new Ammo .btVector3 (),
@@ -224,7 +224,7 @@ Object .assign (Object .setPrototypeOf (CollidableShape .prototype, X3DNBodyColl
224
224
 
225
225
  this .set_collidableGeometry__ ();
226
226
  },
227
- set_collidableGeometry__: (function ()
227
+ set_collidableGeometry__: (() =>
228
228
  {
229
229
  var
230
230
  localScaling = new Ammo .btVector3 (),
@@ -88,7 +88,7 @@ Object .assign (Object .setPrototypeOf (CollisionCollection .prototype, X3DChild
88
88
  {
89
89
  return this .collidableNodes;
90
90
  },
91
- set_appliedParameters__: (function ()
91
+ set_appliedParameters__: (() =>
92
92
  {
93
93
  var appliedParametersIndex = new Map ([
94
94
  ["BOUNCE", AppliedParametersType .BOUNCE],
@@ -92,7 +92,7 @@ Object .assign (Object .setPrototypeOf (CollisionSensor .prototype, X3DSensorNod
92
92
 
93
93
  this .set_live__ ();
94
94
  },
95
- update: (function ()
95
+ update: (() =>
96
96
  {
97
97
  var
98
98
  collidableNodesIndex = new Map (),
@@ -131,7 +131,7 @@ Object .assign (Object .setPrototypeOf (CollisionSensor .prototype, X3DSensorNod
131
131
  intersectionNodes .clear ();
132
132
  contactNodes .length = 0;
133
133
 
134
- collisionWorlds .forEach (function (collisionWorld)
134
+ collisionWorlds .forEach (collisionWorld =>
135
135
  {
136
136
  //collisionWorld .performDiscreteCollisionDetection ();
137
137
 
@@ -197,8 +197,7 @@ Object .assign (Object .setPrototypeOf (CollisionSensor .prototype, X3DSensorNod
197
197
  }
198
198
  }
199
199
  }
200
- },
201
- this);
200
+ });
202
201
 
203
202
  var active = !! contactNodes .length;
204
203
 
@@ -209,11 +208,7 @@ Object .assign (Object .setPrototypeOf (CollisionSensor .prototype, X3DSensorNod
209
208
  {
210
209
  var i = 0;
211
210
 
212
- intersectionNodes .forEach (function (intersectionNode)
213
- {
214
- this ._intersections [i ++] = intersectionNode;
215
- },
216
- this);
211
+ intersectionNodes .forEach (intersectionNode => this ._intersections [i ++] = intersectionNode);
217
212
 
218
213
  this ._intersections .length = i;
219
214
  }
@@ -222,11 +217,7 @@ Object .assign (Object .setPrototypeOf (CollisionSensor .prototype, X3DSensorNod
222
217
  {
223
218
  var i = 0;
224
219
 
225
- contactNodes .forEach (function (contactNode)
226
- {
227
- this ._contacts [i ++] = contactNode;
228
- },
229
- this);
220
+ contactNodes .forEach (contactNode => this ._contacts [i ++] = contactNode);
230
221
 
231
222
  this ._contacts .length = i;
232
223
  }
@@ -87,7 +87,7 @@ Object .assign (Object .setPrototypeOf (DoubleAxisHingeJoint .prototype, X3DRigi
87
87
  this ._axis1 .addInterest ("set_joint__", this);
88
88
  this ._axis2 .addInterest ("set_joint__", this);
89
89
  },
90
- addJoint: (function ()
90
+ addJoint: (() =>
91
91
  {
92
92
  var
93
93
  localAnchorPoint1 = new Vector3 (0, 0, 0),
@@ -172,7 +172,7 @@ Object .assign (Object .setPrototypeOf (DoubleAxisHingeJoint .prototype, X3DRigi
172
172
 
173
173
  this .setOutput (! $.isEmptyObject (this .outputs));
174
174
  },
175
- update1: (function ()
175
+ update1: (() =>
176
176
  {
177
177
  var
178
178
  localAnchorPoint1 = new Vector3 (0, 0, 0),
@@ -202,7 +202,7 @@ Object .assign (Object .setPrototypeOf (DoubleAxisHingeJoint .prototype, X3DRigi
202
202
  }
203
203
  };
204
204
  })(),
205
- update2: (function ()
205
+ update2: (() =>
206
206
  {
207
207
  var
208
208
  localAnchorPoint2 = new Vector3 (0, 0, 0),
@@ -145,7 +145,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
145
145
  for (var i = 0, length = this .geometryNodes .length; i < length; ++ i)
146
146
  this .geometryNodes [i] ._rotation = this ._orientation;
147
147
  },
148
- set_transform__: (function ()
148
+ set_transform__: (() =>
149
149
  {
150
150
  var
151
151
  o = new Ammo .btVector3 (0, 0, 0),
@@ -196,7 +196,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
196
196
  this .rigidBody .setMotionState (this .motionState);
197
197
  };
198
198
  })(),
199
- set_linearVelocity__: (function ()
199
+ set_linearVelocity__: (() =>
200
200
  {
201
201
  var lv = new Ammo .btVector3 (0, 0, 0);
202
202
 
@@ -211,7 +211,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
211
211
  this .rigidBody .activate ();
212
212
  };
213
213
  }) (),
214
- set_angularVelocity__: (function ()
214
+ set_angularVelocity__: (() =>
215
215
  {
216
216
  var av = new Ammo .btVector3 (0, 0, 0);
217
217
 
@@ -226,7 +226,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
226
226
  this .rigidBody .activate ();
227
227
  };
228
228
  })(),
229
- set_finiteRotationAxis__: (function ()
229
+ set_finiteRotationAxis__: (() =>
230
230
  {
231
231
  var angularFactor = new Ammo .btVector3 (1, 1, 1);
232
232
 
@@ -249,7 +249,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
249
249
 
250
250
  this .rigidBody .activate ();
251
251
  },
252
- set_centerOfMass__: (function ()
252
+ set_centerOfMass__: (() =>
253
253
  {
254
254
  var
255
255
  rotation = new Ammo .btQuaternion (0, 0, 0, 1),
@@ -264,7 +264,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
264
264
  this .rigidBody .setCenterOfMassTransform (centerOfMass);
265
265
  };
266
266
  })(),
267
- set_massProps__: (function ()
267
+ set_massProps__: (() =>
268
268
  {
269
269
  var localInertia = new Ammo .btVector3 (0, 0, 0);
270
270
 
@@ -370,7 +370,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
370
370
  {
371
371
  this ._otherGeometry .addEvent ();
372
372
  },
373
- set_compoundShape__: (function ()
373
+ set_compoundShape__: (() =>
374
374
  {
375
375
  var transform = new Ammo .btTransform ();
376
376
 
@@ -396,7 +396,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
396
396
  this .set_disable__ ();
397
397
  };
398
398
  })(),
399
- applyForces: (function ()
399
+ applyForces: (() =>
400
400
  {
401
401
  var
402
402
  g = new Ammo .btVector3 (0, 0, 0),
@@ -422,7 +422,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
422
422
  this .rigidBody .applyTorque (t);
423
423
  };
424
424
  })(),
425
- update: (function ()
425
+ update: (() =>
426
426
  {
427
427
  var
428
428
  transform = new Ammo .btTransform (),
@@ -130,7 +130,7 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, X3DChild
130
130
  set_contacts__ ()
131
131
  {
132
132
  },
133
- set_gravity__: (function ()
133
+ set_gravity__: (() =>
134
134
  {
135
135
  var gravity = new Ammo .btVector3 (0, 0, 0);
136
136
 
@@ -84,7 +84,7 @@ Object .assign (Object .setPrototypeOf (SingleAxisHingeJoint .prototype, X3DRigi
84
84
  this ._anchorPoint .addInterest ("set_joint__", this);
85
85
  this ._axis .addInterest ("set_joint__", this);
86
86
  },
87
- addJoint: (function ()
87
+ addJoint: (() =>
88
88
  {
89
89
  var
90
90
  localAxis1 = new Vector3 (0, 0, 0),
@@ -167,7 +167,7 @@ Object .assign (Object .setPrototypeOf (SingleAxisHingeJoint .prototype, X3DRigi
167
167
 
168
168
  this .setOutput (! $.isEmptyObject (this .outputs));
169
169
  },
170
- update1: (function ()
170
+ update1: (() =>
171
171
  {
172
172
  var localAnchorPoint1 = new Vector3 (0, 0, 0);
173
173
 
@@ -177,7 +177,7 @@ Object .assign (Object .setPrototypeOf (SingleAxisHingeJoint .prototype, X3DRigi
177
177
  this ._body1AnchorPoint = this .getBody1 () .getMatrix () .multVecMatrix (this .getInitialInverseMatrix1 () .multVecMatrix (localAnchorPoint1 .assign (this .localAnchorPoint1)));
178
178
  };
179
179
  })(),
180
- update2: (function ()
180
+ update2: (() =>
181
181
  {
182
182
  var
183
183
  localAnchorPoint2 = new Vector3 (0, 0, 0),
@@ -81,7 +81,7 @@ Object .assign (Object .setPrototypeOf (SliderJoint .prototype, X3DRigidJointNod
81
81
  this ._minSeparation .addInterest ("set_separation__", this);
82
82
  this ._maxSeparation .addInterest ("set_separation__", this);
83
83
  },
84
- addJoint: (function ()
84
+ addJoint: (() =>
85
85
  {
86
86
  var
87
87
  axisRotation = new Rotation4 (),
@@ -86,7 +86,7 @@ Object .assign (Object .setPrototypeOf (X3DNBodyCollidableNode .prototype, X3DCh
86
86
 
87
87
  this .eventsProcessed ();
88
88
  },
89
- getLocalTransform: (function ()
89
+ getLocalTransform: (() =>
90
90
  {
91
91
  var
92
92
  m = new Matrix4 (),
@@ -167,11 +167,7 @@ Object .assign (Object .setPrototypeOf (Script .prototype, X3DScriptNode .protot
167
167
  }
168
168
  }
169
169
 
170
- sourceText += "\n[" + callbacks .map (function (c)
171
- {
172
- return `typeof ${c} !== "undefined" ? ${c} : undefined`;
173
- })
174
- .join (",") + "];";
170
+ sourceText += "\n[" + callbacks .map (c => `typeof ${c} !== "undefined" ? ${c} : undefined`) .join (",") + "];";
175
171
 
176
172
  this .globalObject = this .getGlobalObject ();
177
173
 
@@ -208,26 +204,20 @@ Object .assign (Object .setPrototypeOf (Script .prototype, X3DScriptNode .protot
208
204
  },
209
205
  getGlobalObject ()
210
206
  {
211
- const
212
- browser = this .getBrowser (),
213
- specificationVersion = this .getExecutionContext () .specificationVersion;
207
+ const browser = this .getBrowser ();
214
208
 
215
- class SFNode extends Fields .SFNode
209
+ function SFNode (vrmlSyntax)
216
210
  {
217
- constructor (vrmlSyntax)
218
- {
219
- if (specificationVersion > 2.0)
220
- throw new Error ("SFNode cannot be instantiated directly.");
211
+ const nodes = browser .createVrmlFromString (vrmlSyntax);
221
212
 
222
- const nodes = browser .createVrmlFromString (vrmlSyntax);
213
+ if (nodes .length && nodes [0])
214
+ return nodes [0];
223
215
 
224
- if (nodes .length && nodes [0])
225
- return nodes [0];
226
-
227
- throw new Error ("SFNode.new: invalid argument.");
228
- }
216
+ throw new Error ("SFNode.new: invalid argument.");
229
217
  }
230
218
 
219
+ SFNode .prototype = Fields .SFNode .prototype;
220
+
231
221
  const globalObject =
232
222
  {
233
223
  NULL: { value: null },
@@ -87,7 +87,7 @@ Object .assign (Object .setPrototypeOf (ShaderPart .prototype, X3DNode .prototyp
87
87
  X3DNode .prototype .initialize .call (this);
88
88
  X3DUrlObject .prototype .initialize .call (this);
89
89
 
90
- if (! this .isPrivate ())
90
+ if (!this .isPrivate ())
91
91
  this .options = customOptions .slice ();
92
92
 
93
93
  this ._type .addInterest ("set_type__", this);
@@ -116,7 +116,7 @@ Object .assign (Object .setPrototypeOf (ShaderPart .prototype, X3DNode .prototyp
116
116
  {
117
117
  return this .shader;
118
118
  },
119
- getShaderType: (function ()
119
+ getShaderType: (() =>
120
120
  {
121
121
  const shaderTypes = new Map ([
122
122
  ["VERTEX", "VERTEX_SHADER"],