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
@@ -381,17 +381,6 @@ Object .assign (Object .setPrototypeOf (ContextMenu .prototype, X3DBaseNode .pro
381
381
  $("<div></div>") .addClass ("x_ite-private-world-info-info") .text (line) .appendTo (div);
382
382
  }
383
383
 
384
- div .find ("a") .on ("click", function (event) { event .stopPropagation (); });
385
-
386
- // Open external link in new tab.
387
- div .find ("a[href^=http]") .each (function ()
388
- {
389
- if (this .href .indexOf (location .hostname) !== -1)
390
- return;
391
-
392
- $(this) .attr ("target", "_blank");
393
- });
394
-
395
384
  overlay .on ("click", function () { overlay .remove (); });
396
385
  },
397
386
  },
@@ -590,7 +579,7 @@ Object .assign (Object .setPrototypeOf (ContextMenu .prototype, X3DBaseNode .pro
590
579
  // Display submenus on the left or right side.
591
580
  // If the submenu is higher than vh, add scrollbars.
592
581
 
593
- ul .find ("ul") .each (function (i, e)
582
+ ul .find ("ul") .each ((i, e) =>
594
583
  {
595
584
  e = $(e);
596
585
 
@@ -276,7 +276,6 @@ Object .assign (X3DCoreContext .prototype,
276
276
 
277
277
  this [_privateScene] = new X3DScene (this);
278
278
 
279
- this [_privateScene] .setPrivate (true);
280
279
  this [_privateScene] .setLive (true);
281
280
  this [_privateScene] .setup ();
282
281
 
@@ -427,7 +426,7 @@ Object .assign (X3DCoreContext .prototype,
427
426
 
428
427
  return url;
429
428
  },
430
- callBrowserEventHandler: (function ()
429
+ callBrowserEventHandler: (() =>
431
430
  {
432
431
  const build_in = new Set (["error", "load"]);
433
432
 
@@ -87,7 +87,7 @@ Object .assign (Object .setPrototypeOf (Disk2DOptions .prototype, X3DBaseNode .p
87
87
  {
88
88
  return this .diskVertices;
89
89
  },
90
- build: (function ()
90
+ build: (() =>
91
91
  {
92
92
  const
93
93
  half = new Complex (0.5, 0.5),
@@ -56,7 +56,7 @@ function CatmullRomSplineInterpolator ()
56
56
 
57
57
  Object .assign (CatmullRomSplineInterpolator .prototype,
58
58
  {
59
- generate: (function ()
59
+ generate: (() =>
60
60
  {
61
61
  const
62
62
  T = [ ],
@@ -159,7 +159,7 @@ Object .assign (CatmullRomSplineInterpolator .prototype,
159
159
  }
160
160
  };
161
161
  })(),
162
- interpolate: (function ()
162
+ interpolate: (() =>
163
163
  {
164
164
  const S = new Vector4 (0, 0, 0, 0);
165
165
 
@@ -81,7 +81,7 @@ function CatmullRomSplineInterpolatorTemplate (Type)
81
81
  {
82
82
  return value .magnitude ();
83
83
  },
84
- dot: (function ()
84
+ dot: (() =>
85
85
  {
86
86
  const
87
87
  c0 = new Type (0, 0, 0, 0),
@@ -96,7 +96,7 @@ Object .assign (SquatInterpolator .prototype,
96
96
  s .push (keyValue [0] .getValue () .copy ());
97
97
  }
98
98
  },
99
- interpolate: (function ()
99
+ interpolate: (() =>
100
100
  {
101
101
  const result = new Rotation4 ();
102
102
 
@@ -81,7 +81,7 @@ Object .assign (Object .setPrototypeOf (ScreenText .prototype, X3DTextGeometry .
81
81
  {
82
82
  return this .matrix;
83
83
  },
84
- update: (function ()
84
+ update: (() =>
85
85
  {
86
86
  const
87
87
  min = new Vector3 (0, 0, 0),
@@ -144,7 +144,7 @@ Object .assign (Object .setPrototypeOf (ScreenText .prototype, X3DTextGeometry .
144
144
  this .getBBox () .setExtents (min, max);
145
145
  };
146
146
  })(),
147
- build: (function ()
147
+ build: (() =>
148
148
  {
149
149
  const
150
150
  min = new Vector3 (0, 0, 0),
@@ -371,7 +371,7 @@ Object .assign (Object .setPrototypeOf (ScreenText .prototype, X3DTextGeometry .
371
371
  min .set ((glyph .xMin || 0) / unitsPerEm, (glyph .yMin || 0) / unitsPerEm, 0);
372
372
  max .set ((glyph .xMax || 0) / unitsPerEm, (glyph .yMax || 0) / unitsPerEm, 0);
373
373
  },
374
- traverse: (function ()
374
+ traverse: (() =>
375
375
  {
376
376
  const bbox = new Box3 ();
377
377
 
@@ -392,7 +392,7 @@ Object .assign (Object .setPrototypeOf (ScreenText .prototype, X3DTextGeometry .
392
392
 
393
393
  renderContext .textureNode = this .textureNode;
394
394
  },
395
- transformLine: (function ()
395
+ transformLine: (() =>
396
396
  {
397
397
  const invMatrix = new Matrix4 ();
398
398
 
@@ -78,7 +78,7 @@ Object .assign (X3DLayoutContext .prototype,
78
78
 
79
79
  return this [_screenTextureProperties];
80
80
  },
81
- getScreenScaleMatrix: (function ()
81
+ getScreenScaleMatrix: (() =>
82
82
  {
83
83
  const
84
84
  screenScale = new Vector3 (0, 0, 0),
@@ -86,7 +86,7 @@ const NURBS = {
86
86
 
87
87
  return true;
88
88
  },
89
- getClosed: (function ()
89
+ getClosed: (() =>
90
90
  {
91
91
  const
92
92
  firstPoint = new Vector3 (0, 0, 0),
@@ -119,7 +119,7 @@ const NURBS = {
119
119
  return true;
120
120
  };
121
121
  })(),
122
- getUClosed: (function ()
122
+ getUClosed: (() =>
123
123
  {
124
124
  const
125
125
  firstPoint = new Vector3 (0, 0, 0),
@@ -157,7 +157,7 @@ const NURBS = {
157
157
  return true;
158
158
  };
159
159
  })(),
160
- getVClosed: (function ()
160
+ getVClosed: (() =>
161
161
  {
162
162
  const
163
163
  firstPoint = new Vector3 (0, 0, 0),
@@ -131,20 +131,16 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
131
131
  // Setup scroll chaser.
132
132
 
133
133
  this .positionChaser ._duration = MOVE_TIME;
134
- this .positionChaser .setPrivate (true);
135
134
  this .positionChaser .setup ();
136
135
 
137
136
  this .centerOfRotationChaser ._duration = MOVE_TIME;
138
- this .centerOfRotationChaser .setPrivate (true);
139
137
  this .centerOfRotationChaser .setup ();
140
138
 
141
139
  this .rotationChaser ._duration = ROTATE_TIME;
142
- this .rotationChaser .setPrivate (true);
143
140
  this .rotationChaser .setup ();
144
141
 
145
142
  this .timeSensor ._loop = true;
146
143
  this .timeSensor ._stopTime = browser .getCurrentTime ();
147
- this .timeSensor .setPrivate (true);
148
144
  this .timeSensor .setup ();
149
145
 
150
146
  this .timeSensor ._fraction_changed .addInterest ("spin", this);
@@ -283,7 +279,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
283
279
  this .disconnect ();
284
280
  this .lookAtBBox (x, y, this .getStraightenHorizon ());
285
281
  },
286
- mousemove: (function ()
282
+ mousemove: (() =>
287
283
  {
288
284
  const fromPoint = new Vector3 (0, 0, 0);
289
285
 
@@ -335,7 +331,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
335
331
  }
336
332
  };
337
333
  })(),
338
- mousewheel: (function ()
334
+ mousewheel: (() =>
339
335
  {
340
336
  const
341
337
  step = new Vector3 (0, 0, 0),
@@ -462,7 +458,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
462
458
  }
463
459
  }
464
460
  },
465
- touchmove: (function ()
461
+ touchmove: (() =>
466
462
  {
467
463
  const
468
464
  MOVE_ANGLE = 0.7,
@@ -564,7 +560,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
564
560
  viewpoint ._orientationOffset = this .getOrientationOffset (value .getValue (), this .initialOrientationOffset, false);
565
561
  viewpoint ._positionOffset = this .getPositionOffset (this .initialPositionOffset, this .initialOrientationOffset, viewpoint ._orientationOffset .getValue ());
566
562
  },
567
- addRotate: (function ()
563
+ addRotate: (() =>
568
564
  {
569
565
  const destination = new Rotation4 ();
570
566
 
@@ -655,7 +651,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
655
651
  this .rotation .assign (rotationChange);
656
652
  }
657
653
  },
658
- spin: (function ()
654
+ spin: (() =>
659
655
  {
660
656
  const
661
657
  direction = new Vector3 (0, 0, 0),
@@ -695,7 +691,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
695
691
  }
696
692
  };
697
693
  })(),
698
- addMove: (function ()
694
+ addMove: (() =>
699
695
  {
700
696
  const
701
697
  positionOffset = new Vector3 (0, 0, 0),
@@ -746,7 +742,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
746
742
  this .centerOfRotationChaser ._value_changed .addInterest ("set_centerOfRotationOffset__", this);
747
743
  };
748
744
  })(),
749
- getPositionOffset: (function ()
745
+ getPositionOffset: (() =>
750
746
  {
751
747
  const
752
748
  distance = new Vector3 (0, 0, 0),
@@ -766,7 +762,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
766
762
  .add (positionOffsetBefore));
767
763
  };
768
764
  })(),
769
- getOrientationOffset: (function ()
765
+ getOrientationOffset: (() =>
770
766
  {
771
767
  const
772
768
  userOrientation = new Rotation4 (),
@@ -810,7 +806,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
810
806
  }
811
807
  };
812
808
  })(),
813
- getHorizonRotation: (function ()
809
+ getHorizonRotation: (() =>
814
810
  {
815
811
  const zAxis = new Vector3 (0, 0, 0);
816
812
 
@@ -106,15 +106,12 @@ Object .assign (Object .setPrototypeOf (LookAtViewer .prototype, X3DViewer .prot
106
106
  // Setup chaser.
107
107
 
108
108
  this .positionChaser ._duration = MOVE_TIME;
109
- this .positionChaser .setPrivate (true);
110
109
  this .positionChaser .setup ();
111
110
 
112
111
  this .centerOfRotationChaser ._duration = MOVE_TIME;
113
- this .centerOfRotationChaser .setPrivate (true);
114
112
  this .centerOfRotationChaser .setup ();
115
113
 
116
114
  this .orientationChaser ._duration = ROTATE_TIME;
117
- this .orientationChaser .setPrivate (true);
118
115
  this .orientationChaser .setup ();
119
116
  },
120
117
  mousedown (event)
@@ -214,7 +211,7 @@ Object .assign (Object .setPrototypeOf (LookAtViewer .prototype, X3DViewer .prot
214
211
  }
215
212
  }
216
213
  },
217
- mousewheel: (function ()
214
+ mousewheel: (() =>
218
215
  {
219
216
  const
220
217
  step = new Vector3 (0, 0, 0),
@@ -313,7 +310,7 @@ Object .assign (Object .setPrototypeOf (LookAtViewer .prototype, X3DViewer .prot
313
310
 
314
311
  this .tapStart = this .getBrowser () .getCurrentTime ();
315
312
  },
316
- touchmove: (function ()
313
+ touchmove: (() =>
317
314
  {
318
315
  const
319
316
  MOVE_ANGLE = 0.7,
@@ -398,7 +395,7 @@ Object .assign (Object .setPrototypeOf (LookAtViewer .prototype, X3DViewer .prot
398
395
 
399
396
  viewpoint ._orientationOffset = value;
400
397
  },
401
- addMove: (function ()
398
+ addMove: (() =>
402
399
  {
403
400
  const
404
401
  positionOffset = new Vector3 (0, 0, 0),
@@ -449,7 +446,7 @@ Object .assign (Object .setPrototypeOf (LookAtViewer .prototype, X3DViewer .prot
449
446
  this .centerOfRotationChaser ._value_changed .addInterest ("set_centerOfRotationOffset__", this);
450
447
  };
451
448
  })(),
452
- addRotation: (function ()
449
+ addRotation: (() =>
453
450
  {
454
451
  const
455
452
  userOrientation = new Rotation4 (),
@@ -74,7 +74,7 @@ Object .assign (Object .setPrototypeOf (WalkViewer .prototype, X3DFlyViewer .pro
74
74
  {
75
75
  return direction .assign (toVector) .subtract (fromVector);
76
76
  },
77
- getTranslationOffset: (function ()
77
+ getTranslationOffset: (() =>
78
78
  {
79
79
  const
80
80
  localYAxis = new Vector3 (0, 0, 0),
@@ -119,7 +119,6 @@ Object .assign (Object .setPrototypeOf (X3DFlyViewer .prototype, X3DViewer .prot
119
119
  // Setup look around chaser.
120
120
 
121
121
  this .orientationChaser ._duration = ROTATE_TIME;
122
- this .orientationChaser .setPrivate (true);
123
122
  this .orientationChaser .setup ();
124
123
  },
125
124
  addCollision () { },
@@ -403,7 +402,7 @@ Object .assign (Object .setPrototypeOf (X3DFlyViewer .prototype, X3DViewer .prot
403
402
  }
404
403
  }
405
404
  },
406
- fly: (function ()
405
+ fly: (() =>
407
406
  {
408
407
  const
409
408
  upVector = new Vector3 (0, 0, 0),
@@ -477,7 +476,7 @@ Object .assign (Object .setPrototypeOf (X3DFlyViewer .prototype, X3DViewer .prot
477
476
  this .startTime = now;
478
477
  };
479
478
  })(),
480
- pan: (function ()
479
+ pan: (() =>
481
480
  {
482
481
  const
483
482
  direction = new Vector3 (0, 0, 0),
@@ -539,7 +538,7 @@ Object .assign (Object .setPrototypeOf (X3DFlyViewer .prototype, X3DViewer .prot
539
538
 
540
539
  this .startTime = Date .now ();
541
540
  },
542
- addRoll: (function ()
541
+ addRoll: (() =>
543
542
  {
544
543
  const
545
544
  orientationOffset = new Rotation4 (),
@@ -576,7 +575,7 @@ Object .assign (Object .setPrototypeOf (X3DFlyViewer .prototype, X3DViewer .prot
576
575
  this .orientationChaser ._value_changed .addInterest ("set_orientationOffset__", this);
577
576
  };
578
577
  })(),
579
- addRotation: (function ()
578
+ addRotation: (() =>
580
579
  {
581
580
  const
582
581
  userOrientation = new Rotation4 (),
@@ -619,7 +618,7 @@ Object .assign (Object .setPrototypeOf (X3DFlyViewer .prototype, X3DViewer .prot
619
618
  this .orientationChaser ._value_changed .addInterest ("set_orientationOffset__", this);
620
619
  };
621
620
  })(),
622
- display: (function ()
621
+ display: (() =>
623
622
  {
624
623
  const
625
624
  fromPoint = new Vector3 (0, 0, 0),
@@ -106,7 +106,7 @@ Object .assign (Object .setPrototypeOf (X3DViewer .prototype, X3DBaseNode .proto
106
106
 
107
107
  return [x, y];
108
108
  },
109
- isPointerInRectangle: (function ()
109
+ isPointerInRectangle: (() =>
110
110
  {
111
111
  const pointer = new Vector2 (0, 0);
112
112
 
@@ -119,7 +119,7 @@ Object .assign (Object .setPrototypeOf (X3DViewer .prototype, X3DBaseNode .proto
119
119
  return browser .isPointerInRectangle (rectangle, pointer .set (x, y));
120
120
  };
121
121
  })(),
122
- getPointOnCenterPlane: (function ()
122
+ getPointOnCenterPlane: (() =>
123
123
  {
124
124
  const
125
125
  axis = new Vector3 (0, 0, -1),
@@ -45,17 +45,25 @@
45
45
  *
46
46
  ******************************************************************************/
47
47
 
48
- import Features from "./Features.js";
48
+ import Features from "../../Features.js";
49
49
 
50
- const URLs = {
51
- getScriptUrl: (function ()
50
+ const URLs =
51
+ {
52
+ getScriptUrl: (() =>
52
53
  {
53
- if (Features .NODE_ENV)
54
- var src = global .require ("url") .pathToFileURL (__filename) .href;
55
- else if (document .currentScript)
56
- var src = document .currentScript .src;
57
- else
58
- var src = document .location .href;
54
+ switch (Features .ENVIRONMENT)
55
+ {
56
+ case "NODE":
57
+ {
58
+ var src = global .require ("url") .pathToFileURL (__filename) .href;
59
+ break;
60
+ }
61
+ case "BROWSER":
62
+ {
63
+ var src = document .currentScript ?.src ?? document .location .href;
64
+ break;
65
+ }
66
+ }
59
67
 
60
68
  return function ()
61
69
  {
@@ -107,8 +107,6 @@ Object .assign (X3DNetworkingContext .prototype,
107
107
  // Inline node's empty scene.
108
108
 
109
109
  this [_defaultScene] = this .createScene ();
110
-
111
- this [_defaultScene] .setPrivate (true);
112
110
  this [_defaultScene] .setLive (true);
113
111
 
114
112
  this .getDefaultScene = function () { return this [_defaultScene]; };
@@ -90,7 +90,7 @@ Object .assign (VolumePicker .prototype,
90
90
  {
91
91
  this .setChildShapeComponents (this .compoundShape2, transform, localScaling, childShape);
92
92
  },
93
- setChildShape: (function ()
93
+ setChildShape: (() =>
94
94
  {
95
95
  const
96
96
  translation = new Vector3 (0, 0, 0),
@@ -148,7 +148,7 @@ Object .assign (VolumePicker .prototype,
148
148
 
149
149
  return false;
150
150
  },
151
- getTransform: (function ()
151
+ getTransform: (() =>
152
152
  {
153
153
  const
154
154
  T = new Ammo .btTransform (),
@@ -72,7 +72,7 @@ Object .assign (Object .setPrototypeOf (PolygonText .prototype, X3DTextGeometry
72
72
  {
73
73
  return Matrix4 .Identity;
74
74
  },
75
- build: (function ()
75
+ build: (() =>
76
76
  {
77
77
  const
78
78
  min = new Vector3 (0, 0, 0),
@@ -309,7 +309,7 @@ Object .assign (Object .setPrototypeOf (PolygonText .prototype, X3DTextGeometry
309
309
  return 5;
310
310
  }
311
311
  },
312
- triangulatePolygon: (function ()
312
+ triangulatePolygon: (() =>
313
313
  {
314
314
  // Function called for each vertex of tessellator output.
315
315
 
@@ -141,7 +141,7 @@ Object .assign (DicomParser .prototype,
141
141
  bytes = new Uint8Array (byteLength),
142
142
  frames = this .getFrames (pixelElement);
143
143
 
144
- frames .forEach (function (frame, f)
144
+ frames .forEach ((frame, f) =>
145
145
  {
146
146
  // Handle transfer syntax.
147
147
 
@@ -709,7 +709,7 @@ Object .assign (DicomParser .prototype,
709
709
 
710
710
  return new Uint8Array (image .pixelData .buffer);
711
711
  },
712
- jpegLSDecode: (function ()
712
+ jpegLSDecode: (() =>
713
713
  {
714
714
  const charLS = CharLS ();
715
715
 
@@ -793,7 +793,7 @@ Object .assign (DicomParser .prototype,
793
793
 
794
794
  return new Uint8Array (image .pixelData .buffer);
795
795
  },
796
- decodeOpenJPEG: (function ()
796
+ decodeOpenJPEG: (() =>
797
797
  {
798
798
  const openJPEG = OpenJPEG ();
799
799
 
@@ -124,7 +124,7 @@ Object .assign (NRRDParser .prototype,
124
124
  ;
125
125
  }
126
126
  },
127
- getType: (function ()
127
+ getType: (() =>
128
128
  {
129
129
  const types = new Map ([
130
130
  ["signed char", ["signed char", 1]],
@@ -168,7 +168,7 @@ Object .assign (NRRDParser .prototype,
168
168
  this .bytes = type [1];
169
169
  };
170
170
  })(),
171
- getEncoding: (function ()
171
+ getEncoding: (() =>
172
172
  {
173
173
  const encodings = new Map ([
174
174
  ["ascii", "ascii"],
@@ -75,7 +75,7 @@ Object .assign (X3DTimeContext .prototype,
75
75
  {
76
76
  return this [_currentSpeed];
77
77
  },
78
- advanceTime: (function ()
78
+ advanceTime: (() =>
79
79
  {
80
80
  const lastPosition = new Vector3 (0, 0, 0);
81
81
 
@@ -45,4 +45,4 @@
45
45
  *
46
46
  ******************************************************************************/
47
47
 
48
- export default "8.8.2";
48
+ export default "8.8.4";