x_ite 8.7.4 → 8.7.6

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 (271) hide show
  1. package/.vscode/tasks.json +1 -1
  2. package/dist/assets/components/Annotation.js +13 -13
  3. package/dist/assets/components/Annotation.min.js +1 -1
  4. package/dist/assets/components/CADGeometry.js +13 -13
  5. package/dist/assets/components/CADGeometry.min.js +1 -1
  6. package/dist/assets/components/CubeMapTexturing.js +25 -25
  7. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  8. package/dist/assets/components/DIS.js +13 -13
  9. package/dist/assets/components/DIS.min.js +1 -1
  10. package/dist/assets/components/EventUtilities.js +9 -9
  11. package/dist/assets/components/EventUtilities.min.js +1 -1
  12. package/dist/assets/components/Geometry2D.js +21 -23
  13. package/dist/assets/components/Geometry2D.min.js +1 -1
  14. package/dist/assets/components/Geospatial.js +35 -36
  15. package/dist/assets/components/Geospatial.min.js +1 -1
  16. package/dist/assets/components/HAnim.js +18 -18
  17. package/dist/assets/components/HAnim.min.js +1 -1
  18. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  19. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  20. package/dist/assets/components/Layout.js +37 -32
  21. package/dist/assets/components/Layout.min.js +1 -1
  22. package/dist/assets/components/NURBS.js +24 -24
  23. package/dist/assets/components/NURBS.min.js +1 -1
  24. package/dist/assets/components/ParticleSystems.js +22 -22
  25. package/dist/assets/components/ParticleSystems.min.js +1 -1
  26. package/dist/assets/components/Picking.js +20 -20
  27. package/dist/assets/components/Picking.min.js +1 -1
  28. package/dist/assets/components/RigidBodyPhysics.js +25 -25
  29. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  30. package/dist/assets/components/Scripting.js +28 -28
  31. package/dist/assets/components/Scripting.min.js +1 -1
  32. package/dist/assets/components/Text.js +26 -27
  33. package/dist/assets/components/Text.min.js +1 -1
  34. package/dist/assets/components/TextureProjector.js +15 -15
  35. package/dist/assets/components/TextureProjector.min.js +1 -1
  36. package/dist/assets/components/Texturing3D.js +30 -30
  37. package/dist/assets/components/Texturing3D.min.js +1 -1
  38. package/dist/assets/components/VolumeRendering.js +19 -19
  39. package/dist/assets/components/VolumeRendering.min.js +1 -1
  40. package/dist/assets/components/X_ITE.js +9 -9
  41. package/dist/assets/components/X_ITE.min.js +1 -1
  42. package/dist/x_ite.css +1 -1
  43. package/dist/x_ite.js +1187 -1686
  44. package/dist/x_ite.min.js +1 -1
  45. package/dist/x_ite.zip +0 -0
  46. package/docs/_config.yml +1 -1
  47. package/docs/_includes/scripts.html +0 -1
  48. package/docs/_posts/components/CADGeometry/QuadSet.md +1 -1
  49. package/docs/_posts/components/CubeMapTexturing/ComposedCubeMapTexture.md +1 -1
  50. package/docs/_posts/components/CubeMapTexturing/GeneratedCubeMapTexture.md +1 -1
  51. package/docs/_posts/components/EnvironmentalEffects/Background.md +1 -1
  52. package/docs/_posts/components/EnvironmentalEffects/Fog.md +1 -1
  53. package/docs/_posts/components/EnvironmentalEffects/LocalFog.md +1 -1
  54. package/docs/_posts/components/EnvironmentalEffects/TextureBackground.md +1 -1
  55. package/docs/_posts/components/EnvironmentalSensor/ProximitySensor.md +1 -1
  56. package/docs/_posts/components/EnvironmentalSensor/TransformSensor.md +1 -1
  57. package/docs/_posts/components/EnvironmentalSensor/VisibilitySensor.md +1 -1
  58. package/docs/_posts/components/EventUtilities/IntegerSequencer.md +1 -1
  59. package/docs/_posts/components/Followers/ColorChaser.md +1 -1
  60. package/docs/_posts/components/Followers/ColorDamper.md +1 -1
  61. package/docs/_posts/components/Followers/CoordinateChaser.md +1 -1
  62. package/docs/_posts/components/Followers/ScalarChaser.md +1 -1
  63. package/docs/_posts/components/Geometry2D/Arc2D.md +1 -1
  64. package/docs/_posts/components/Geometry2D/ArcClose2D.md +1 -1
  65. package/docs/_posts/components/Geometry2D/Circle2D.md +1 -1
  66. package/docs/_posts/components/Geometry2D/Disk2D.md +1 -1
  67. package/docs/_posts/components/Geometry2D/Polyline2D.md +1 -1
  68. package/docs/_posts/components/Geometry2D/Polypoint2D.md +1 -1
  69. package/docs/_posts/components/Geometry2D/Rectangle2D.md +1 -1
  70. package/docs/_posts/components/Geometry2D/TriangleSet2D.md +1 -1
  71. package/docs/_posts/components/Geometry3D/Box.md +1 -1
  72. package/docs/_posts/components/Geometry3D/Cone.md +1 -1
  73. package/docs/_posts/components/Geometry3D/Cylinder.md +1 -1
  74. package/docs/_posts/components/Geometry3D/ElevationGrid.md +1 -1
  75. package/docs/_posts/components/Geometry3D/Extrusion.md +1 -1
  76. package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +1 -1
  77. package/docs/_posts/components/Geometry3D/Sphere.md +1 -1
  78. package/docs/_posts/components/Geospatial/GeoElevationGrid.md +1 -1
  79. package/docs/_posts/components/Geospatial/GeoLOD.md +1 -1
  80. package/docs/_posts/components/Geospatial/GeoViewpoint.md +1 -1
  81. package/docs/_posts/components/Grouping/Group.md +1 -1
  82. package/docs/_posts/components/Grouping/Switch.md +1 -1
  83. package/docs/_posts/components/Grouping/Transform.md +1 -1
  84. package/docs/_posts/components/HAnim/HAnimHumanoid.md +1 -1
  85. package/docs/_posts/components/Interpolation/ColorInterpolator.md +1 -1
  86. package/docs/_posts/components/Interpolation/CoordinateInterpolator.md +1 -1
  87. package/docs/_posts/components/Interpolation/OrientationInterpolator.md +1 -1
  88. package/docs/_posts/components/Interpolation/PositionInterpolator.md +1 -1
  89. package/docs/_posts/components/Interpolation/PositionInterpolator2D.md +1 -1
  90. package/docs/_posts/components/Interpolation/ScalarInterpolator.md +1 -1
  91. package/docs/_posts/components/Interpolation/SplineScalarInterpolator.md +1 -1
  92. package/docs/_posts/components/Interpolation/SquadOrientationInterpolator.md +1 -1
  93. package/docs/_posts/components/KeyDeviceSensor/KeySensor.md +1 -1
  94. package/docs/_posts/components/KeyDeviceSensor/StringSensor.md +1 -1
  95. package/docs/_posts/components/Layering/LayerSet.md +1 -1
  96. package/docs/_posts/components/Layering/Viewport.md +1 -1
  97. package/docs/_posts/components/Lighting/DirectionalLight.md +1 -1
  98. package/docs/_posts/components/Lighting/PointLight.md +1 -1
  99. package/docs/_posts/components/Lighting/SpotLight.md +1 -1
  100. package/docs/_posts/components/NURBS/NurbsCurve.md +1 -1
  101. package/docs/_posts/components/NURBS/NurbsPatchSurface.md +1 -1
  102. package/docs/_posts/components/NURBS/NurbsSweptSurface.md +1 -1
  103. package/docs/_posts/components/Navigation/Billboard.md +1 -1
  104. package/docs/_posts/components/Navigation/Collision.md +1 -1
  105. package/docs/_posts/components/Navigation/NavigationInfo.md +1 -1
  106. package/docs/_posts/components/Navigation/OrthoViewpoint.md +1 -1
  107. package/docs/_posts/components/Navigation/Viewpoint.md +1 -1
  108. package/docs/_posts/components/Networking/Anchor.md +1 -1
  109. package/docs/_posts/components/Networking/Inline.md +1 -1
  110. package/docs/_posts/components/Networking/LoadSensor.md +1 -1
  111. package/docs/_posts/components/ParticleSystems/ConeEmitter.md +1 -1
  112. package/docs/_posts/components/ParticleSystems/ExplosionEmitter.md +1 -1
  113. package/docs/_posts/components/ParticleSystems/ForcePhysicsModel.md +1 -1
  114. package/docs/_posts/components/ParticleSystems/ParticleSystem.md +1 -1
  115. package/docs/_posts/components/ParticleSystems/PointEmitter.md +1 -1
  116. package/docs/_posts/components/ParticleSystems/PolylineEmitter.md +1 -1
  117. package/docs/_posts/components/ParticleSystems/SurfaceEmitter.md +1 -1
  118. package/docs/_posts/components/ParticleSystems/VolumeEmitter.md +1 -1
  119. package/docs/_posts/components/ParticleSystems/WindPhysicsModel.md +1 -1
  120. package/docs/_posts/components/Picking/LinePickSensor.md +1 -1
  121. package/docs/_posts/components/Picking/PointPickSensor.md +1 -1
  122. package/docs/_posts/components/Picking/PrimitivePickSensor.md +1 -1
  123. package/docs/_posts/components/PointingDeviceSensor/CylinderSensor.md +1 -1
  124. package/docs/_posts/components/PointingDeviceSensor/PlaneSensor.md +1 -1
  125. package/docs/_posts/components/Rendering/ClipPlane.md +1 -1
  126. package/docs/_posts/components/Rendering/Color.md +1 -1
  127. package/docs/_posts/components/Rendering/ColorRGBA.md +1 -1
  128. package/docs/_posts/components/Rendering/Coordinate.md +1 -1
  129. package/docs/_posts/components/Rendering/IndexedLineSet.md +1 -1
  130. package/docs/_posts/components/Rendering/IndexedTriangleFanSet.md +1 -1
  131. package/docs/_posts/components/Rendering/IndexedTriangleSet.md +1 -1
  132. package/docs/_posts/components/Rendering/LineSet.md +1 -1
  133. package/docs/_posts/components/Rendering/PointSet.md +1 -1
  134. package/docs/_posts/components/RigidBodyPhysics/BallJoint.md +1 -1
  135. package/docs/_posts/components/RigidBodyPhysics/CollidableShape.md +1 -1
  136. package/docs/_posts/components/RigidBodyPhysics/CollisionCollection.md +1 -1
  137. package/docs/_posts/components/RigidBodyPhysics/RigidBody.md +1 -1
  138. package/docs/_posts/components/RigidBodyPhysics/RigidBodyCollection.md +1 -1
  139. package/docs/_posts/components/RigidBodyPhysics/SingleAxisHingeJoint.md +1 -1
  140. package/docs/_posts/components/RigidBodyPhysics/SliderJoint.md +1 -1
  141. package/docs/_posts/components/Shaders/ComposedShader.md +1 -1
  142. package/docs/_posts/components/Shaders/FloatVertexAttribute.md +1 -1
  143. package/docs/_posts/components/Shaders/ShaderPart.md +1 -1
  144. package/docs/_posts/components/Shape/Appearance.md +1 -1
  145. package/docs/_posts/components/Shape/FillProperties.md +1 -1
  146. package/docs/_posts/components/Shape/LineProperties.md +1 -1
  147. package/docs/_posts/components/Shape/Material.md +1 -1
  148. package/docs/_posts/components/Shape/TwoSidedMaterial.md +1 -1
  149. package/docs/_posts/components/Sound/AudioClip.md +1 -1
  150. package/docs/_posts/components/Text/FontStyle.md +1 -1
  151. package/docs/_posts/components/Text/Text.md +1 -1
  152. package/docs/_posts/components/Texturing/ImageTexture.md +1 -1
  153. package/docs/_posts/components/Texturing/MovieTexture.md +1 -1
  154. package/docs/_posts/components/Texturing/MultiTexture.md +1 -1
  155. package/docs/_posts/components/Texturing/PixelTexture.md +1 -1
  156. package/docs/_posts/components/Texturing3D/ImageTexture3D.md +1 -1
  157. package/docs/_posts/components/Texturing3D/ImageTextureAtlas.md +1 -1
  158. package/docs/_posts/components/Time/TimeSensor.md +1 -1
  159. package/docs/_posts/components/VolumeRendering/EdgeEnhancementVolumeStyle.md +1 -1
  160. package/docs/_posts/components/VolumeRendering/IsoSurfaceVolumeData.md +1 -1
  161. package/docs/_posts/components/VolumeRendering/SegmentedVolumeData.md +1 -1
  162. package/docs/_posts/components/VolumeRendering/ShadedVolumeStyle.md +1 -1
  163. package/docs/_posts/components/VolumeRendering/ToneMappedVolumeStyle.md +1 -1
  164. package/docs/_posts/components/VolumeRendering/VolumeData.md +1 -1
  165. package/docs/_posts/components/X_ITE/BlendMode.md +1 -1
  166. package/docs/_posts/custom-shaders.md +1 -1
  167. package/docs/_posts/getting-started.md +7 -2
  168. package/docs/_posts/reference/browser-services.md +6 -0
  169. package/docs/_posts/reference/field-services-and-objects.md +26 -6
  170. package/docs/_posts/tutorials/adding-backgrounds.md +2 -2
  171. package/docs/_posts/tutorials/adding-sound.md +1 -1
  172. package/docs/_posts/tutorials/building-a-x3d-world.md +1 -1
  173. package/docs/_posts/tutorials/building-elevation-grids.md +1 -1
  174. package/docs/_posts/tutorials/building-primitive-shapes.md +2 -2
  175. package/docs/_posts/tutorials/controlling-appearance-with-materials.md +1 -1
  176. package/docs/_posts/tutorials/controlling-detail.md +1 -1
  177. package/docs/_posts/tutorials/hello-world.md +1 -1
  178. package/docs/_posts/tutorials/naming-nodes.md +1 -1
  179. package/docs/_posts/tutorials/writing-program-scripts-with-ecmascript.md +1 -1
  180. package/package.json +3 -3
  181. package/src/lib/jquery.js +13 -0
  182. package/src/standard/Geospatial/UniversalTransverseMercator.js +0 -1
  183. package/src/standard/Math/Algorithms/eigen_decomposition.js +9 -9
  184. package/src/standard/Math/Geometry/Box2.js +37 -24
  185. package/src/standard/Math/Geometry/Box3.js +37 -24
  186. package/src/standard/Math/Geometry/Cylinder3.js +1 -1
  187. package/src/standard/Math/Geometry/Line2.js +1 -1
  188. package/src/standard/Math/Geometry/Line3.js +1 -1
  189. package/src/standard/Math/Geometry/Plane3.js +1 -1
  190. package/src/standard/Math/Geometry/Sphere3.js +14 -14
  191. package/src/standard/Math/Numbers/Color3.js +10 -18
  192. package/src/standard/Math/Numbers/Color4.js +12 -23
  193. package/src/standard/Math/Numbers/Complex.js +59 -58
  194. package/src/standard/Math/Numbers/Matrix2.js +31 -45
  195. package/src/standard/Math/Numbers/Matrix3.js +59 -94
  196. package/src/standard/Math/Numbers/Matrix4.js +73 -114
  197. package/src/standard/Math/Numbers/Quaternion.js +70 -132
  198. package/src/standard/Math/Numbers/Rotation4.js +15 -42
  199. package/src/standard/Math/Numbers/Vector2.js +12 -78
  200. package/src/standard/Math/Numbers/Vector3.js +17 -94
  201. package/src/standard/Math/Numbers/Vector4.js +22 -94
  202. package/src/x_ite/Base/X3DInfoArray.js +9 -7
  203. package/src/x_ite/Base/X3DObject.js +9 -32
  204. package/src/x_ite/Base/X3DObjectArrayField.js +35 -64
  205. package/src/x_ite/Browser/Core/BrowserOptions.js +37 -0
  206. package/src/x_ite/Browser/Core/X3DCoreContext.js +21 -3
  207. package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +4 -4
  208. package/src/x_ite/Browser/Interpolation/SquatInterpolator.js +12 -7
  209. package/src/x_ite/Browser/Layout/ScreenText.js +9 -4
  210. package/src/x_ite/Browser/Navigation/ExamineViewer.js +9 -9
  211. package/src/x_ite/Browser/Navigation/LookAtViewer.js +3 -3
  212. package/src/x_ite/Browser/Navigation/WalkViewer.js +2 -2
  213. package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +7 -7
  214. package/src/x_ite/Browser/Picking/VolumePicker.js +1 -1
  215. package/src/x_ite/Browser/Shaders/X3DShadersContext.js +0 -1
  216. package/src/x_ite/Browser/Text/X3DTextGeometry.js +2 -3
  217. package/src/x_ite/Browser/VERSION.js +1 -1
  218. package/src/x_ite/Browser/X3DBrowser.js +61 -68
  219. package/src/x_ite/Browser/X3DBrowserContext.js +8 -8
  220. package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +1 -1
  221. package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +1 -1
  222. package/src/x_ite/Components/Followers/OrientationChaser.js +3 -3
  223. package/src/x_ite/Components/Followers/OrientationDamper.js +3 -3
  224. package/src/x_ite/Components/Geometry2D/Rectangle2D.js +2 -3
  225. package/src/x_ite/Components/Geometry3D/Box.js +3 -10
  226. package/src/x_ite/Components/Geometry3D/Cone.js +1 -1
  227. package/src/x_ite/Components/Geometry3D/Cylinder.js +2 -2
  228. package/src/x_ite/Components/Geometry3D/Extrusion.js +3 -3
  229. package/src/x_ite/Components/Geospatial/GeoViewpoint.js +2 -2
  230. package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +2 -2
  231. package/src/x_ite/Components/Layering/X3DLayerNode.js +1 -1
  232. package/src/x_ite/Components/Layout/Layout.js +1 -1
  233. package/src/x_ite/Components/Navigation/Billboard.js +1 -1
  234. package/src/x_ite/Components/Navigation/X3DViewpointNode.js +12 -13
  235. package/src/x_ite/Components/Picking/PointPickSensor.js +1 -1
  236. package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +7 -7
  237. package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +1 -1
  238. package/src/x_ite/Components/PointingDeviceSensor/SphereSensor.js +9 -9
  239. package/src/x_ite/Components/Rendering/X3DGeometryNode.js +1 -1
  240. package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +2 -2
  241. package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +1 -1
  242. package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +1 -1
  243. package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +3 -3
  244. package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +1 -1
  245. package/src/x_ite/Execution/X3DExecutionContext.js +52 -58
  246. package/src/x_ite/Execution/X3DExportedNode.js +13 -11
  247. package/src/x_ite/Execution/X3DImportedNode.js +25 -25
  248. package/src/x_ite/Execution/X3DScene.js +129 -53
  249. package/src/x_ite/Fields/ArrayFields.js +1 -1
  250. package/src/x_ite/Fields/SFColor.js +10 -15
  251. package/src/x_ite/Fields/SFColorRGBA.js +11 -18
  252. package/src/x_ite/Fields/SFImage.js +38 -33
  253. package/src/x_ite/Fields/SFMatrix3.js +1 -3
  254. package/src/x_ite/Fields/SFMatrix4.js +1 -5
  255. package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +6 -5
  256. package/src/x_ite/Fields/SFNodeCache.js +2 -2
  257. package/src/x_ite/Fields/SFRotation.js +14 -21
  258. package/src/x_ite/Fields/SFString.js +0 -1
  259. package/src/x_ite/Fields/SFVec2.js +8 -15
  260. package/src/x_ite/Fields/SFVec3.js +11 -18
  261. package/src/x_ite/Fields/SFVec4.js +12 -23
  262. package/src/x_ite/Fields/SFVecPrototypeTemplate.js +17 -16
  263. package/src/x_ite/Parser/SVGParser.js +3 -3
  264. package/src/x_ite/Parser/X3DOptimizer.js +1 -1
  265. package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +26 -27
  266. package/src/x_ite/Prototype/X3DProtoDeclaration.js +16 -15
  267. package/src/x_ite/Rendering/X3DRenderObject.js +3 -3
  268. package/src/x_ite/Routing/X3DRoute.js +26 -25
  269. package/src/x_ite/X3DCanvasElement.js +1 -0
  270. package/docs/assets/js/autoupdate.js +0 -25
  271. package/src/x_ite/Execution/Scene.js +0 -145
@@ -174,7 +174,7 @@ Cone .prototype = Object .assign (Object .create (X3DGeometryNode .prototype),
174
174
  u = i / xDimension,
175
175
  theta = 2 * Math .PI * u,
176
176
  t = Complex .Polar (-1, theta),
177
- p = Complex .multiply (t, bottomRadius);
177
+ p = t .copy () .multiply (bottomRadius);
178
178
 
179
179
  texCoord .push (new Vector2 ((t .imag + 1) / 2, (t .real + 1) / 2));
180
180
  points .push (new Vector3 (p .imag, y2, p .real));
@@ -125,13 +125,13 @@ Cylinder .prototype = Object .assign (Object .create (X3DGeometryNode .prototype
125
125
  u1 = i / xDimension,
126
126
  theta1 = 2 * Math .PI * u1,
127
127
  n1 = Complex .Polar (-1, theta1),
128
- p1 = Complex .multiply (n1, radius);
128
+ p1 = n1 .copy () .multiply (radius);
129
129
 
130
130
  const
131
131
  u2 = (i + 1) / xDimension,
132
132
  theta2 = 2 * Math .PI * u2,
133
133
  n2 = Complex .Polar (-1, theta2),
134
- p2 = Complex .multiply (n2, radius);
134
+ p2 = n2 .copy () .multiply (radius);
135
135
 
136
136
  // p1 - p4
137
137
  // | \ |
@@ -184,7 +184,7 @@ Extrusion .prototype = Object .assign (Object .create (X3DGeometryNode .prototyp
184
184
 
185
185
  const
186
186
  vector3 = new Vector3 (0, 0, 0),
187
- rotation = new Rotation4 (0, 0, 1, 0);
187
+ rotation = new Rotation4 ();
188
188
 
189
189
  return function ()
190
190
  {
@@ -606,7 +606,7 @@ Extrusion .prototype = Object .assign (Object .create (X3DGeometryNode .prototyp
606
606
  point = points [index] .copy ();
607
607
 
608
608
  point .index = index;
609
- texCoord [index] = Vector2 .subtract (crossSection [numCapPoints - 1 - k] .getValue (), min) .divide (capMax);
609
+ texCoord [index] = crossSection [numCapPoints - 1 - k] .getValue () .copy () .subtract (min) .divide (capMax);
610
610
  polygon .push (convex ? index : point);
611
611
  }
612
612
 
@@ -646,7 +646,7 @@ Extrusion .prototype = Object .assign (Object .create (X3DGeometryNode .prototyp
646
646
  point = points [index] .copy ();
647
647
 
648
648
  point .index = index;
649
- texCoord [index] = Vector2 .subtract (crossSection [k] .getValue (), min) .divide (capMax);
649
+ texCoord [index] = crossSection [k] .getValue () .copy () .subtract (min) .divide (capMax);
650
650
  polygon .push (convex ? index : point);
651
651
  }
652
652
 
@@ -183,7 +183,7 @@ GeoViewpoint .prototype = Object .assign (Object .create (X3DViewpointNode .prot
183
183
  {
184
184
  const
185
185
  locationMatrix = new Matrix4 (),
186
- geoOrientation = new Rotation4 (0, 0, 1, 0);
186
+ geoOrientation = new Rotation4 ();
187
187
 
188
188
  return function (value)
189
189
  {
@@ -200,7 +200,7 @@ GeoViewpoint .prototype = Object .assign (Object .create (X3DViewpointNode .prot
200
200
  {
201
201
  const
202
202
  locationMatrix = new Matrix4 (),
203
- orientation = new Rotation4 (0, 0, 1, 0);
203
+ orientation = new Rotation4 ();
204
204
 
205
205
  return function ()
206
206
  {
@@ -106,8 +106,8 @@ OrientationInterpolator .prototype = Object .assign (Object .create (X3DInterpol
106
106
  interpolate: (function ()
107
107
  {
108
108
  const
109
- keyValue0 = new Rotation4 (0, 0, 1, 0),
110
- keyValue1 = new Rotation4 (0, 0, 1, 0);
109
+ keyValue0 = new Rotation4 (),
110
+ keyValue1 = new Rotation4 ();
111
111
 
112
112
  return function (index0, index1, weight)
113
113
  {
@@ -213,7 +213,7 @@ X3DLayerNode .prototype = Object .assign (Object .create (X3DNode .prototype),
213
213
  {
214
214
  const
215
215
  viewpointNode = this .getViewpoint (),
216
- bbox = this .getBBox (new Box3 ()) .multRight (Matrix4 .inverse (viewpointNode .getModelMatrix ()));
216
+ bbox = this .getBBox (new Box3 ()) .multRight (viewpointNode .getModelMatrix () .copy () .inverse ());
217
217
 
218
218
  viewpointNode .lookAt (this, bbox .center, viewpointNode .getLookAtDistance (bbox), factor, straighten);
219
219
  },
@@ -103,7 +103,7 @@ Layout .prototype = Object .assign (Object .create (X3DLayoutNode .prototype),
103
103
  offset: new Vector3 (0, 0, 0),
104
104
  scale: new Vector3 (1, 1, 1),
105
105
  currentTranslation: new Vector3 (0, 0, 0),
106
- currentRotation: new Rotation4 (0, 0, 1, 0),
106
+ currentRotation: new Rotation4 (),
107
107
  currentScale: new Vector3 (0, 0, 0),
108
108
  modelViewMatrix: new Matrix4 (),
109
109
  [Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new FieldDefinitionArray ([
@@ -110,7 +110,7 @@ Billboard .prototype = Object .assign (Object .create (X3DGroupingNode .prototyp
110
110
  y = new Vector3 (0, 0, 0),
111
111
  N1 = new Vector3 (0, 0, 0),
112
112
  N2 = new Vector3 (0, 0, 0),
113
- rotation = new Rotation4 (0, 0, 1, 0);
113
+ rotation = new Rotation4 ();
114
114
 
115
115
  return function (modelViewMatrix)
116
116
  {
@@ -75,7 +75,7 @@ function X3DViewpointNode (executionContext)
75
75
  "fieldOfViewScale", new Fields .SFFloat (1));
76
76
 
77
77
  this .userPosition = new Vector3 (0, 1, 0);
78
- this .userOrientation = new Rotation4 (0, 0, 1, 0);
78
+ this .userOrientation = new Rotation4 ();
79
79
  this .userCenterOfRotation = new Vector3 (0, 0, 0);
80
80
  this .modelMatrix = new Matrix4 ();
81
81
  this .cameraSpaceMatrix = new Matrix4 (1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 10, 1);
@@ -384,9 +384,9 @@ X3DViewpointNode .prototype = Object .assign (Object .create (X3DBindableNode .p
384
384
  {
385
385
  const
386
386
  position = new Vector3 (0, 0, 0),
387
- orientation = new Rotation4 (0, 0, 1, 0),
387
+ orientation = new Rotation4 (),
388
388
  scale = new Vector3 (0, 0, 0),
389
- scaleOrientation = new Rotation4 (0, 0, 1, 0);
389
+ scaleOrientation = new Rotation4 ();
390
390
 
391
391
  return function (fromViewpointNode)
392
392
  {
@@ -431,8 +431,7 @@ X3DViewpointNode .prototype = Object .assign (Object .create (X3DBindableNode .p
431
431
  lookAtPoint: function (layerNode, point, factor, straighten)
432
432
  {
433
433
  this .getCameraSpaceMatrix () .multVecMatrix (point);
434
-
435
- Matrix4 .inverse (this .getModelMatrix ()) .multVecMatrix (point);
434
+ this .getModelMatrix () .copy () .inverse () .multVecMatrix (point);
436
435
 
437
436
  const minDistance = layerNode .getNavigationInfo () .getNearValue () * 2;
438
437
 
@@ -440,7 +439,7 @@ X3DViewpointNode .prototype = Object .assign (Object .create (X3DBindableNode .p
440
439
  },
441
440
  lookAtBBox: function (layerNode, bbox, factor, straighten)
442
441
  {
443
- bbox = bbox .copy () .multRight (Matrix4 .inverse (this .getModelMatrix ()));
442
+ bbox = bbox .copy () .multRight (this .getModelMatrix () .copy () .inverse ());
444
443
 
445
444
  const minDistance = Math .max (layerNode .getNavigationInfo () .getNearValue () * 2, this .getLookAtDistance (bbox));
446
445
 
@@ -462,14 +461,14 @@ X3DViewpointNode .prototype = Object .assign (Object .create (X3DBindableNode .p
462
461
  this .easeInEaseOut ._easeInEaseOut = new Fields .MFVec2f (new Fields .SFVec2f (0, 1), new Fields .SFVec2f (1, 0));
463
462
 
464
463
  const
465
- translation = Vector3 .lerp (this ._positionOffset .getValue (), offset, factor),
466
- direction = Vector3 .add (this .getPosition (), translation) .subtract (point);
464
+ translation = this ._positionOffset .getValue () .copy () .lerp (offset, factor),
465
+ direction = this .getPosition () .copy () .add (translation) .subtract (point);
467
466
 
468
- let rotation = Rotation4 .multRight (this ._orientationOffset .getValue (), new Rotation4 (this .getUserOrientation () .multVecRot (new Vector3 (0, 0, 1)), direction));
467
+ let rotation = this ._orientationOffset .getValue () .copy () .multRight (new Rotation4 (this .getUserOrientation () .multVecRot (new Vector3 (0, 0, 1)), direction));
469
468
 
470
469
  if (straighten)
471
470
  {
472
- rotation = Rotation4 .inverse (this .getOrientation ()) .multRight (this .straightenHorizon (Rotation4 .multRight (this .getOrientation (), rotation)));
471
+ rotation = this .getOrientation () .copy () .inverse () .multRight (this .straightenHorizon (this .getOrientation () .copy () .multRight (rotation)));
473
472
  }
474
473
 
475
474
  this .positionInterpolator ._keyValue = new Fields .MFVec3f (this ._positionOffset, translation);
@@ -480,7 +479,7 @@ X3DViewpointNode .prototype = Object .assign (Object .create (X3DBindableNode .p
480
479
  const relative = this .getRelativeTransformation (this);
481
480
 
482
481
  this ._fieldOfViewScale = 1;
483
- this ._centerOfRotationOffset = Vector3 .subtract (point, this .getCenterOfRotation ());
482
+ this ._centerOfRotationOffset = point .copy () .subtract (this .getCenterOfRotation ());
484
483
  this .nearDistance = Math .min (distance / 2, 0.125);
485
484
  this .farDistance = this .nearDistance * this .getMaxFarValue () / 0.125;
486
485
 
@@ -498,7 +497,7 @@ X3DViewpointNode .prototype = Object .assign (Object .create (X3DBindableNode .p
498
497
 
499
498
  this .easeInEaseOut ._easeInEaseOut = new Fields .MFVec2f (new Fields .SFVec2f (0, 1), new Fields .SFVec2f (1, 0));
500
499
 
501
- const rotation = Rotation4 .multRight (Rotation4 .inverse (this .getOrientation ()), this .straightenHorizon (this .getUserOrientation ()));
500
+ const rotation = this .getOrientation () .copy () .inverse () .multRight (this .straightenHorizon (this .getUserOrientation ()));
502
501
 
503
502
  this .positionInterpolator ._keyValue = new Fields .MFVec3f (this ._positionOffset, this ._positionOffset);
504
503
  this .orientationInterpolator ._keyValue = new Fields .MFRotation (this ._orientationOffset, rotation);
@@ -516,7 +515,7 @@ X3DViewpointNode .prototype = Object .assign (Object .create (X3DBindableNode .p
516
515
  const
517
516
  localXAxis = new Vector3 (0, 0, 0),
518
517
  localZAxis = new Vector3 (0, 0, 0),
519
- rotation = new Rotation4 (0, 0, 1, 0);
518
+ rotation = new Rotation4 ();
520
519
 
521
520
  return function (orientation, upVector = this .getUpVector (true))
522
521
  {
@@ -192,7 +192,7 @@ PointPickSensor .prototype = Object .assign (Object .create (X3DPickSensorNode .
192
192
  transform = new Ammo .btTransform (),
193
193
  localScaling = new Ammo .btVector3 (),
194
194
  translation = new Vector3 (0, 0, 0),
195
- rotation = new Rotation4 (0, 0, 1, 0),
195
+ rotation = new Rotation4 (),
196
196
  scale = new Vector3 (1, 1, 1),
197
197
  pickedPoint = new Fields .MFVec3f ();
198
198
 
@@ -119,7 +119,7 @@ CylinderSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .p
119
119
  this .szNormal = null;
120
120
  this .behind = false;
121
121
  this .fromVector = new Vector3 (0, 0, 0);
122
- this .startOffset = new Rotation4 (0, 0, 1, 0);
122
+ this .startOffset = new Rotation4 ();
123
123
  },
124
124
  isBehind: function (hitRay, hitPoint)
125
125
  {
@@ -129,7 +129,7 @@ CylinderSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .p
129
129
 
130
130
  this .cylinder .intersectsLine (hitRay, enter, exit);
131
131
 
132
- return Vector3 .subtract (hitPoint, enter) .magnitude () > Vector3 .subtract (hitPoint, exit) .magnitude ();
132
+ return hitPoint .distance (enter) > hitPoint .distance (exit);
133
133
  },
134
134
  getTrackPoint: function (hitRay, trackPoint)
135
135
  {
@@ -138,7 +138,7 @@ CylinderSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .p
138
138
  this .zPlane .intersectsLine (hitRay, zPoint);
139
139
 
140
140
  const
141
- axisPoint = Vector3 .add (zPoint, this .cylinder .axis .getPerpendicularVectorToPoint (zPoint, new Vector3 (0, 0, 0))),
141
+ axisPoint = zPoint .copy () .add (this .cylinder .axis .getPerpendicularVectorToPoint (zPoint, new Vector3 (0, 0, 0))),
142
142
  distance = this .sxPlane .getDistanceToPoint (zPoint) / this .cylinder .radius,
143
143
  section = Math .floor ((distance + 1) / 2);
144
144
 
@@ -155,7 +155,7 @@ CylinderSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .p
155
155
  },
156
156
  getAngle: function (rotation)
157
157
  {
158
- if (Vector3 .dot (rotation .getAxis (new Vector3 (0, 0, 0)), this .cylinder .axis .direction) > 0)
158
+ if (rotation .getAxis (new Vector3 (0, 0, 0)) .dot (this .cylinder .axis .direction) > 0)
159
159
  return rotation .angle;
160
160
 
161
161
  else
@@ -183,7 +183,7 @@ CylinderSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .p
183
183
  radius = axis .getPerpendicularVectorToPoint (hitPoint, new Vector3 (0, 0, 0)) .magnitude ();
184
184
 
185
185
  this .cylinder = new Cylinder3 (axis, radius);
186
- this .disk = Math .abs (Vector3 .dot (cameraBack, yAxis)) > Math .cos (this ._diskAngle .getValue ());
186
+ this .disk = Math .abs (cameraBack .dot (yAxis)) > Math .cos (this ._diskAngle .getValue ());
187
187
  this .behind = this .isBehind (hitRay, hitPoint);
188
188
  this .yPlane = new Plane3 (hitPoint, yAxis); // Sensor aligned y-plane
189
189
  this .zPlane = new Plane3 (hitPoint, cameraBack); // Screen aligned z-plane
@@ -191,10 +191,10 @@ CylinderSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .p
191
191
  // Compute normal like in Billboard with yAxis as axis of rotation.
192
192
  const
193
193
  billboardToViewer = this .invModelViewMatrix .origin,
194
- sxNormal = Vector3 .cross (yAxis, billboardToViewer) .normalize ();
194
+ sxNormal = yAxis .copy () .cross (billboardToViewer) .normalize ();
195
195
 
196
196
  this .sxPlane = new Plane3 (new Vector3 (0, 0, 0), sxNormal); // Billboarded special x-plane made parallel to sensors axis.
197
- this .szNormal = Vector3 .cross (sxNormal, yAxis) .normalize (); // Billboarded special z-normal made parallel to sensors axis.
197
+ this .szNormal = sxNormal .copy () .cross (yAxis) .normalize (); // Billboarded special z-normal made parallel to sensors axis.
198
198
 
199
199
  const trackPoint = new Vector3 (0, 0, 0);
200
200
 
@@ -268,7 +268,7 @@ PlaneSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .prot
268
268
  {
269
269
  const
270
270
  axisRotation = this ._axisRotation .getValue (),
271
- translation = Rotation4 .inverse (axisRotation) .multVecRot (endPoint .add (this .startOffset) .subtract (this .startPoint));
271
+ translation = axisRotation .copy () .inverse () .multVecRot (endPoint .add (this .startOffset) .subtract (this .startPoint));
272
272
 
273
273
  // X component
274
274
 
@@ -107,7 +107,7 @@ SphereSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .pro
107
107
  this .behind = false;
108
108
  this .fromVector = new Vector3 (0, 0, 0);
109
109
  this .startPoint = new Vector3 (0, 0, 0);
110
- this .startOffset = new Rotation4 (0, 0, 1, 0);
110
+ this .startOffset = new Rotation4 ();
111
111
  },
112
112
  getTrackPoint: function (hitRay, trackPoint, behind)
113
113
  {
@@ -115,7 +115,7 @@ SphereSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .pro
115
115
 
116
116
  if (this .sphere .intersectsLine (hitRay, trackPoint, exit))
117
117
  {
118
- if ((Vector3 .subtract (hitRay .point, exit) .magnitude () < Vector3 .subtract (hitRay .point, trackPoint) .magnitude ()) - behind)
118
+ if ((hitRay .point .distance (exit) < hitRay .point .distance (trackPoint)) - behind)
119
119
  trackPoint .assign (exit);
120
120
 
121
121
  return true;
@@ -173,7 +173,7 @@ SphereSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .pro
173
173
 
174
174
  this .zPlane .intersectsLine (hitRay, tangentPoint);
175
175
 
176
- hitRay .set (tangentPoint, Vector3 .subtract (this .sphere .center, tangentPoint) .normalize ());
176
+ hitRay .set (tangentPoint, this .sphere .center .copy () .subtract (tangentPoint) .normalize ());
177
177
 
178
178
  //console .log (hitRay .toString ());
179
179
 
@@ -183,12 +183,12 @@ SphereSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .pro
183
183
 
184
184
  const
185
185
  triNormal = Triangle3 .normal (this .sphere .center, trackPoint, this .startPoint, new Vector3 (0, 0, 0)),
186
- dirFromCenter = Vector3 .subtract (trackPoint, this .sphere .center) .normalize (),
187
- normal = Vector3 .cross (triNormal, dirFromCenter) .normalize ();
186
+ dirFromCenter = trackPoint .copy () .subtract (this .sphere .center) .normalize (),
187
+ normal = triNormal .copy () .cross (dirFromCenter) .normalize ();
188
188
 
189
- const point1 = Vector3 .subtract (trackPoint, normal .multiply (Vector3 .subtract (tangentPoint, trackPoint) .magnitude ()));
189
+ const point1 = trackPoint .copy () .subtract (normal .multiply (tangentPoint .copy () .subtract (trackPoint) .magnitude ()));
190
190
 
191
- hitRay .set (point1, Vector3 .subtract (this .sphere .center, point1) .normalize ());
191
+ hitRay .set (point1, this .sphere .center .copy () .subtract (point1) .normalize ());
192
192
 
193
193
  this .getTrackPoint (hitRay, trackPoint, false);
194
194
  }
@@ -196,13 +196,13 @@ SphereSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .pro
196
196
  this ._trackPoint_changed = trackPoint;
197
197
 
198
198
  const
199
- toVector = Vector3 .subtract (trackPoint, this .sphere .center),
199
+ toVector = trackPoint .copy () .subtract (this .sphere .center),
200
200
  rotation = new Rotation4 (this .fromVector, toVector);
201
201
 
202
202
  if (this .behind)
203
203
  rotation .inverse ();
204
204
 
205
- this ._rotation_changed = Rotation4 .multRight (this .startOffset, rotation);
205
+ this ._rotation_changed = this .startOffset .copy () .multRight (rotation);
206
206
  },
207
207
  });
208
208
 
@@ -90,7 +90,7 @@ function X3DGeometryNode (executionContext)
90
90
 
91
91
  this .min = new Vector3 (0, 0, 0);
92
92
  this .max = new Vector3 (0, 0, 0);
93
- this .bbox = new Box3 (this .min, this .max, true);
93
+ this .bbox = Box3 .Extents (this .min, this .max);
94
94
  this .solid = true;
95
95
  this .primitiveMode = browser .getContext () .TRIANGLES;
96
96
  this .geometryType = 3;
@@ -223,7 +223,7 @@ DoubleAxisHingeJoint .prototype = Object .assign (Object .create (X3DRigidJointN
223
223
  localAnchorPoint1 = new Vector3 (0, 0, 0),
224
224
  localAxis1 = new Vector3 (0, 0, 0),
225
225
  difference = new Matrix4 (),
226
- rotation = new Rotation4 (0, 0, 1, 0);
226
+ rotation = new Rotation4 ();
227
227
 
228
228
  return function ()
229
229
  {
@@ -253,7 +253,7 @@ DoubleAxisHingeJoint .prototype = Object .assign (Object .create (X3DRigidJointN
253
253
  localAnchorPoint2 = new Vector3 (0, 0, 0),
254
254
  localAxis2 = new Vector3 (0, 0, 0),
255
255
  difference = new Matrix4 (),
256
- rotation = new Rotation4 (0, 0, 1, 0);
256
+ rotation = new Rotation4 ();
257
257
 
258
258
  return function ()
259
259
  {
@@ -471,7 +471,7 @@ RigidBody .prototype = Object .assign (Object .create (X3DNode .prototype),
471
471
  transform = new Ammo .btTransform (),
472
472
  position = new Vector3 (0, 0, 0),
473
473
  quaternion = new Quaternion (0, 0, 0, 1),
474
- orientation = new Rotation4 (0, 0, 1, 0),
474
+ orientation = new Rotation4 (),
475
475
  linearVelocity = new Vector3 (0, 0, 0),
476
476
  angularVelocity = new Vector3 (0, 0, 0);
477
477
 
@@ -216,7 +216,7 @@ SingleAxisHingeJoint .prototype = Object .assign (Object .create (X3DRigidJointN
216
216
  var
217
217
  localAnchorPoint2 = new Vector3 (0, 0, 0),
218
218
  difference = new Matrix4 (),
219
- rotation = new Rotation4 (0, 0, 1, 0);
219
+ rotation = new Rotation4 ();
220
220
 
221
221
  return function ()
222
222
  {
@@ -115,7 +115,7 @@ SliderJoint .prototype = Object .assign (Object .create (X3DRigidJointNode .prot
115
115
  addJoint: (function ()
116
116
  {
117
117
  var
118
- axisRotation = new Rotation4 (0, 0, 1, 0),
118
+ axisRotation = new Rotation4 (),
119
119
  matrixA = new Matrix4 (),
120
120
  matrixB = new Matrix4 (),
121
121
  origin = new Ammo .btVector3 (0, 0, 0),
@@ -141,8 +141,8 @@ SliderJoint .prototype = Object .assign (Object .create (X3DRigidJointNode .prot
141
141
 
142
142
  axisRotation .setFromToVec (Vector3 .xAxis, this ._axis .getValue ());
143
143
 
144
- matrixA .set (this .getBody1 () ._position .getValue (), Rotation4 .multRight (this .getBody1 () ._orientation .getValue (), axisRotation));
145
- matrixB .set (this .getBody1 () ._position .getValue (), Rotation4 .multRight (this .getBody1 () ._orientation .getValue (), axisRotation));
144
+ matrixA .set (this .getBody1 () ._position .getValue (), this .getBody1 () ._orientation .getValue () .copy () .multRight (axisRotation));
145
+ matrixB .set (this .getBody1 () ._position .getValue (), this .getBody1 () ._orientation .getValue () .copy () .multRight (axisRotation));
146
146
 
147
147
  origin .setValue (matrixA [12], matrixA [13], matrixA [14]);
148
148
 
@@ -118,7 +118,7 @@ X3DTextureProjectorNode .prototype = Object .assign (Object .create (X3DChildNod
118
118
  localXAxis = new Vector3 (0, 0, 0),
119
119
  localZAxis = new Vector3 (0, 0, 0),
120
120
  upVector = new Vector3 (0, 0, 0),
121
- rotation = new Rotation4 (0, 0, 1, 0);
121
+ rotation = new Rotation4 ();
122
122
 
123
123
  return function (orientation)
124
124
  {
@@ -940,65 +940,59 @@ X3DExecutionContext .prototype = Object .assign (Object .create (X3DBaseNode .pr
940
940
  for (const key of Reflect .ownKeys (X3DExecutionContext .prototype))
941
941
  Object .defineProperty (X3DExecutionContext .prototype, key, { enumerable: false });
942
942
 
943
- Object .defineProperty (X3DExecutionContext .prototype, "specificationVersion",
943
+ Object .defineProperties (X3DExecutionContext .prototype,
944
944
  {
945
- get: X3DExecutionContext .prototype .getSpecificationVersion,
946
- enumerable: true,
947
- });
948
-
949
- Object .defineProperty (X3DExecutionContext .prototype, "encoding",
950
- {
951
- get: X3DExecutionContext .prototype .getEncoding,
952
- enumerable: true,
953
- });
954
-
955
- Object .defineProperty (X3DExecutionContext .prototype, "profile",
956
- {
957
- get: X3DExecutionContext .prototype .getProfile,
958
- enumerable: true,
959
- });
960
-
961
- Object .defineProperty (X3DExecutionContext .prototype, "components",
962
- {
963
- get: X3DExecutionContext .prototype .getComponents,
964
- enumerable: true,
965
- });
966
-
967
- Object .defineProperty (X3DExecutionContext .prototype, "worldURL",
968
- {
969
- get: X3DExecutionContext .prototype .getWorldURL,
970
- enumerable: true,
971
- });
972
-
973
- Object .defineProperty (X3DExecutionContext .prototype, "units",
974
- {
975
- get: X3DExecutionContext .prototype .getUnits,
976
- enumerable: true,
977
- });
978
-
979
- Object .defineProperty (X3DExecutionContext .prototype, "rootNodes",
980
- {
981
- get: X3DExecutionContext .prototype .getRootNodes,
982
- set: X3DExecutionContext .prototype .setRootNodes,
983
- enumerable: true,
984
- });
985
-
986
- Object .defineProperty (X3DExecutionContext .prototype, "protos",
987
- {
988
- get: X3DExecutionContext .prototype .getProtoDeclarations,
989
- enumerable: true,
990
- });
991
-
992
- Object .defineProperty (X3DExecutionContext .prototype, "externprotos",
993
- {
994
- get: X3DExecutionContext .prototype .getExternProtoDeclarations,
995
- enumerable: true,
996
- });
997
-
998
- Object .defineProperty (X3DExecutionContext .prototype, "routes",
999
- {
1000
- get: X3DExecutionContext .prototype .getRoutes,
1001
- enumerable: true,
945
+ specificationVersion:
946
+ {
947
+ get: X3DExecutionContext .prototype .getSpecificationVersion,
948
+ enumerable: true,
949
+ },
950
+ encoding:
951
+ {
952
+ get: X3DExecutionContext .prototype .getEncoding,
953
+ enumerable: true,
954
+ },
955
+ profile:
956
+ {
957
+ get: X3DExecutionContext .prototype .getProfile,
958
+ enumerable: true,
959
+ },
960
+ components:
961
+ {
962
+ get: X3DExecutionContext .prototype .getComponents,
963
+ enumerable: true,
964
+ },
965
+ worldURL:
966
+ {
967
+ get: X3DExecutionContext .prototype .getWorldURL,
968
+ enumerable: true,
969
+ },
970
+ units:
971
+ {
972
+ get: X3DExecutionContext .prototype .getUnits,
973
+ enumerable: true,
974
+ },
975
+ rootNodes:
976
+ {
977
+ get: X3DExecutionContext .prototype .getRootNodes,
978
+ set: X3DExecutionContext .prototype .setRootNodes,
979
+ enumerable: true,
980
+ },
981
+ protos:
982
+ {
983
+ get: X3DExecutionContext .prototype .getProtoDeclarations,
984
+ enumerable: true,
985
+ },
986
+ externprotos:
987
+ {
988
+ get: X3DExecutionContext .prototype .getExternProtoDeclarations,
989
+ enumerable: true,
990
+ },
991
+ routes:
992
+ {
993
+ get: X3DExecutionContext .prototype .getRoutes,
994
+ enumerable: true,
995
+ },
1002
996
  });
1003
997
 
1004
998
  export default X3DExecutionContext;
@@ -170,22 +170,24 @@ X3DExportedNode .prototype = Object .assign (Object .create (X3DObject .prototyp
170
170
  for (const key of Reflect .ownKeys (X3DExportedNode .prototype))
171
171
  Object .defineProperty (X3DExportedNode .prototype, key, { enumerable: false });
172
172
 
173
- Object .defineProperty (X3DExportedNode .prototype, "exportedName",
173
+ Object .defineProperties (X3DExportedNode .prototype,
174
174
  {
175
- get: function ()
175
+ exportedName:
176
176
  {
177
- return SFNodeCache .get (this [_exportedName]);
177
+ get: function ()
178
+ {
179
+ return SFNodeCache .get (this [_exportedName]);
180
+ },
181
+ enumerable: true,
178
182
  },
179
- enumerable: true,
180
- });
181
-
182
- Object .defineProperty (X3DExportedNode .prototype, "localNode",
183
- {
184
- get: function ()
183
+ localNode:
185
184
  {
186
- return SFNodeCache .get (this [_localNode]);
185
+ get: function ()
186
+ {
187
+ return SFNodeCache .get (this [_localNode]);
188
+ },
189
+ enumerable: true,
187
190
  },
188
- enumerable: true,
189
191
  });
190
192
 
191
193
  export default X3DExportedNode;
@@ -513,40 +513,40 @@ X3DImportedNode .prototype = Object .assign (Object .create (X3DNode .prototype)
513
513
  for (const key of Reflect .ownKeys (X3DImportedNode .prototype))
514
514
  Object .defineProperty (X3DImportedNode .prototype, key, { enumerable: false });
515
515
 
516
- Object .defineProperty (X3DImportedNode .prototype, "inlineNode",
516
+ Object .defineProperties (X3DImportedNode .prototype,
517
517
  {
518
- get: function ()
518
+ inlineNode:
519
519
  {
520
- return SFNodeCache .get (this [_inlineNode]);
520
+ get: function ()
521
+ {
522
+ return SFNodeCache .get (this [_inlineNode]);
523
+ },
524
+ enumerable: true,
521
525
  },
522
- enumerable: true,
523
- });
524
-
525
- Object .defineProperty (X3DImportedNode .prototype, "exportedName",
526
- {
527
- get: function ()
526
+ exportedName:
528
527
  {
529
- return this [_exportedName];
528
+ get: function ()
529
+ {
530
+ return this [_exportedName];
531
+ },
532
+ enumerable: true,
530
533
  },
531
- enumerable: true,
532
- });
533
-
534
- Object .defineProperty (X3DImportedNode .prototype, "exportedNode",
535
- {
536
- get: function ()
534
+ exportedNode:
537
535
  {
538
- return this [_inlineNode] .getInternalScene () .getExportedNode (this [_exportedName]);
536
+ get: function ()
537
+ {
538
+ return this [_inlineNode] .getInternalScene () .getExportedNode (this [_exportedName]);
539
+ },
540
+ enumerable: true,
539
541
  },
540
- enumerable: true,
541
- });
542
-
543
- Object .defineProperty (X3DImportedNode .prototype, "importedName",
544
- {
545
- get: function ()
542
+ importedName:
546
543
  {
547
- return this [_importedName];
544
+ get: function ()
545
+ {
546
+ return this [_importedName];
547
+ },
548
+ enumerable: true,
548
549
  },
549
- enumerable: true,
550
550
  });
551
551
 
552
552
  export default X3DImportedNode;