x_ite 8.7.8 → 8.8.0

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 (646) hide show
  1. package/Makefile +3 -0
  2. package/build/bin/version.pl +1 -1
  3. package/dist/assets/components/Annotation.js +248 -169
  4. package/dist/assets/components/Annotation.min.js +1 -1
  5. package/dist/assets/components/CADGeometry.js +296 -233
  6. package/dist/assets/components/CADGeometry.min.js +1 -1
  7. package/dist/assets/components/CubeMapTexturing.js +217 -172
  8. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  9. package/dist/assets/components/DIS.js +451 -387
  10. package/dist/assets/components/DIS.min.js +1 -1
  11. package/dist/assets/components/EventUtilities.js +309 -208
  12. package/dist/assets/components/EventUtilities.min.js +1 -1
  13. package/dist/assets/components/Geometry2D.js +397 -333
  14. package/dist/assets/components/Geometry2D.min.js +1 -1
  15. package/dist/assets/components/Geospatial.js +705 -575
  16. package/dist/assets/components/Geospatial.min.js +1 -1
  17. package/dist/assets/components/HAnim.js +319 -259
  18. package/dist/assets/components/HAnim.min.js +1 -1
  19. package/dist/assets/components/KeyDeviceSensor.js +134 -99
  20. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  21. package/dist/assets/components/Layout.js +305 -240
  22. package/dist/assets/components/Layout.min.js +1 -1
  23. package/dist/assets/components/NURBS.js +781 -626
  24. package/dist/assets/components/NURBS.min.js +1 -1
  25. package/dist/assets/components/ParticleSystems.js +632 -460
  26. package/dist/assets/components/ParticleSystems.min.js +1 -1
  27. package/dist/assets/components/Picking.js +376 -295
  28. package/dist/assets/components/Picking.min.js +1 -1
  29. package/dist/assets/components/RigidBodyPhysics.js +936 -749
  30. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  31. package/dist/assets/components/Scripting.js +173 -103
  32. package/dist/assets/components/Scripting.min.js +1 -1
  33. package/dist/assets/components/Text.js +241 -207
  34. package/dist/assets/components/Text.min.js +1 -1
  35. package/dist/assets/components/TextureProjector.js +162 -129
  36. package/dist/assets/components/TextureProjector.min.js +1 -1
  37. package/dist/assets/components/Texturing3D.js +485 -384
  38. package/dist/assets/components/Texturing3D.min.js +1 -1
  39. package/dist/assets/components/VolumeRendering.js +741 -547
  40. package/dist/assets/components/VolumeRendering.min.js +1 -1
  41. package/dist/assets/components/X_ITE.js +66 -54
  42. package/dist/assets/components/X_ITE.min.js +1 -1
  43. package/dist/x_ite.css +1 -1
  44. package/dist/x_ite.js +61554 -59658
  45. package/dist/x_ite.min.js +1 -1
  46. package/dist/x_ite.zip +0 -0
  47. package/docs/_config.yml +2 -2
  48. package/package.json +4 -4
  49. package/src/assets/components/Annotation.js +14 -14
  50. package/src/assets/components/CADGeometry.js +14 -14
  51. package/src/assets/components/CubeMapTexturing.js +11 -11
  52. package/src/assets/components/DIS.js +13 -13
  53. package/src/assets/components/EventUtilities.js +16 -16
  54. package/src/assets/components/Geometry2D.js +15 -15
  55. package/src/assets/components/Geospatial.js +19 -19
  56. package/src/assets/components/HAnim.js +13 -13
  57. package/src/assets/components/KeyDeviceSensor.js +10 -10
  58. package/src/assets/components/Layout.js +13 -13
  59. package/src/assets/components/NURBS.js +24 -24
  60. package/src/assets/components/ParticleSystems.js +19 -19
  61. package/src/assets/components/Picking.js +14 -14
  62. package/src/assets/components/RigidBodyPhysics.js +24 -24
  63. package/src/assets/components/Scripting.js +9 -9
  64. package/src/assets/components/Text.js +10 -10
  65. package/src/assets/components/TextureProjector.js +10 -10
  66. package/src/assets/components/Texturing3D.js +16 -16
  67. package/src/assets/components/VolumeRendering.js +23 -23
  68. package/src/assets/components/X_ITE.js +8 -7
  69. package/src/assets/shaders/webgl1/include/Shadow.glsl.js +21 -25
  70. package/src/assets/shaders/webgl2/include/Shadow.glsl.js +23 -27
  71. package/src/bookmarks.js +2 -2
  72. package/src/lib/jquery.js +42 -30
  73. package/src/standard/Geospatial/Geodetic.js +8 -9
  74. package/src/standard/Geospatial/UniversalTransverseMercator.js +4 -5
  75. package/src/standard/Math/Algorithm.js +41 -56
  76. package/src/standard/Math/Algorithms/Bezier.js +2 -2
  77. package/src/standard/Math/Algorithms/MergeSort.js +6 -6
  78. package/src/standard/Math/Algorithms/PartialSort.js +5 -5
  79. package/src/standard/Math/Algorithms/QuickSort.js +5 -5
  80. package/src/standard/Math/Geometry/Box2.js +16 -17
  81. package/src/standard/Math/Geometry/Box3.js +18 -19
  82. package/src/standard/Math/Geometry/Camera.js +6 -5
  83. package/src/standard/Math/Geometry/Cylinder3.js +6 -7
  84. package/src/standard/Math/Geometry/Line2.js +20 -18
  85. package/src/standard/Math/Geometry/Line3.js +20 -18
  86. package/src/standard/Math/Geometry/Plane3.js +11 -12
  87. package/src/standard/Math/Geometry/Sphere3.js +6 -7
  88. package/src/standard/Math/Geometry/Spheroid3.js +6 -7
  89. package/src/standard/Math/Geometry/Triangle2.js +4 -3
  90. package/src/standard/Math/Geometry/Triangle3.js +5 -4
  91. package/src/standard/Math/Geometry/ViewVolume.js +6 -7
  92. package/src/standard/Math/Numbers/Color3.js +18 -19
  93. package/src/standard/Math/Numbers/Color4.js +20 -21
  94. package/src/standard/Math/Numbers/Complex.js +28 -29
  95. package/src/standard/Math/Numbers/Matrix2.js +22 -23
  96. package/src/standard/Math/Numbers/Matrix3.js +28 -29
  97. package/src/standard/Math/Numbers/Matrix4.js +29 -30
  98. package/src/standard/Math/Numbers/Quaternion.js +40 -41
  99. package/src/standard/Math/Numbers/Rotation4.js +34 -35
  100. package/src/standard/Math/Numbers/Vector2.js +29 -30
  101. package/src/standard/Math/Numbers/Vector3.js +32 -33
  102. package/src/standard/Math/Numbers/Vector4.js +34 -35
  103. package/src/standard/Math/Utility/BVH.js +14 -15
  104. package/src/standard/Math/Utility/MatrixStack.js +12 -12
  105. package/src/standard/Time/MicroTime.js +4 -3
  106. package/src/standard/Utility/BitSet.js +10 -11
  107. package/src/standard/Utility/DataStorage.js +10 -10
  108. package/src/standard/Utility/MapUtilities.js +2 -1
  109. package/src/standard/Utility/ObjectCache.js +3 -3
  110. package/src/tests.js +10 -0
  111. package/src/x_ite/Base/Events.js +3 -3
  112. package/src/x_ite/Base/FieldArray.js +11 -9
  113. package/src/x_ite/Base/FieldDefinitionArray.js +11 -9
  114. package/src/x_ite/Base/X3DArrayField.js +13 -14
  115. package/src/x_ite/Base/X3DBaseNode.js +219 -181
  116. package/src/x_ite/Base/X3DCast.js +1 -1
  117. package/src/x_ite/Base/X3DChildObject.js +162 -53
  118. package/src/x_ite/Base/X3DConstants.js +74 -60
  119. package/src/x_ite/Base/X3DEventObject.js +6 -12
  120. package/src/x_ite/Base/X3DField.js +45 -42
  121. package/src/x_ite/Base/X3DFieldDefinition.js +9 -7
  122. package/src/x_ite/Base/X3DInfoArray.js +75 -65
  123. package/src/x_ite/Base/X3DObject.js +59 -29
  124. package/src/x_ite/Base/X3DObjectArrayField.js +51 -117
  125. package/src/x_ite/Base/X3DTypedArrayField.js +48 -42
  126. package/src/x_ite/Browser/Core/BrowserOptions.js +55 -57
  127. package/src/x_ite/Browser/Core/BrowserProperties.js +18 -20
  128. package/src/x_ite/Browser/Core/BrowserTimings.js +29 -33
  129. package/src/x_ite/Browser/Core/Context.js +7 -7
  130. package/src/x_ite/Browser/Core/ContextMenu.js +61 -83
  131. package/src/x_ite/Browser/Core/Notification.js +12 -12
  132. package/src/x_ite/Browser/Core/RenderingProperties.js +28 -28
  133. package/src/x_ite/Browser/Core/X3DCoreContext.js +45 -37
  134. package/src/x_ite/Browser/DOMIntegration.js +4 -1
  135. package/src/x_ite/Browser/EnvironmentalEffects/X3DEnvironmentalEffectsContext.js +3 -3
  136. package/src/x_ite/Browser/Followers/X3DArrayChaserTemplate.js +1 -1
  137. package/src/x_ite/Browser/Followers/X3DArrayFollowerTemplate.js +12 -12
  138. package/src/x_ite/Browser/Geometry2D/Arc2DOptions.js +8 -14
  139. package/src/x_ite/Browser/Geometry2D/ArcClose2DOptions.js +8 -14
  140. package/src/x_ite/Browser/Geometry2D/Circle2DOptions.js +13 -17
  141. package/src/x_ite/Browser/Geometry2D/Disk2DOptions.js +15 -19
  142. package/src/x_ite/Browser/Geometry2D/Rectangle2DOptions.js +12 -16
  143. package/src/x_ite/Browser/Geometry2D/X3DGeometry2DContext.js +9 -9
  144. package/src/x_ite/Browser/Geometry3D/BoxOptions.js +12 -16
  145. package/src/x_ite/Browser/Geometry3D/ConeOptions.js +6 -12
  146. package/src/x_ite/Browser/Geometry3D/CylinderOptions.js +6 -12
  147. package/src/x_ite/Browser/Geometry3D/IcoSphereOptions.js +13 -17
  148. package/src/x_ite/Browser/Geometry3D/QuadSphereOptions.js +17 -21
  149. package/src/x_ite/Browser/Geometry3D/X3DGeometry3DContext.js +8 -8
  150. package/src/x_ite/Browser/Geospatial/Geocentric.js +5 -6
  151. package/src/x_ite/Browser/Geospatial/Geospatial.js +10 -10
  152. package/src/x_ite/Browser/Grouping/X3DGroupingContext.js +3 -3
  153. package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator.js +2 -3
  154. package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator1.js +8 -9
  155. package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +7 -8
  156. package/src/x_ite/Browser/Interpolation/SquatInterpolator.js +3 -4
  157. package/src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js +8 -8
  158. package/src/x_ite/Browser/Layering/X3DLayeringContext.js +4 -4
  159. package/src/x_ite/Browser/Layout/ScreenText.js +7 -8
  160. package/src/x_ite/Browser/Layout/X3DLayoutContext.js +3 -3
  161. package/src/x_ite/Browser/Legacy.js +32 -12
  162. package/src/x_ite/Browser/Lighting/X3DLightingContext.js +5 -5
  163. package/src/x_ite/Browser/NURBS/NURBS.js +10 -10
  164. package/src/x_ite/Browser/Navigation/ExamineViewer.js +32 -20
  165. package/src/x_ite/Browser/Navigation/FlyViewer.js +22 -10
  166. package/src/x_ite/Browser/Navigation/LookAtViewer.js +29 -17
  167. package/src/x_ite/Browser/Navigation/NoneViewer.js +15 -5
  168. package/src/x_ite/Browser/Navigation/PlaneViewer.js +24 -12
  169. package/src/x_ite/Browser/Navigation/WalkViewer.js +22 -10
  170. package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +17 -18
  171. package/src/x_ite/Browser/Navigation/X3DNavigationContext.js +19 -19
  172. package/src/x_ite/Browser/Navigation/X3DViewer.js +13 -19
  173. package/src/x_ite/Browser/Networking/URLs.js +5 -5
  174. package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +16 -16
  175. package/src/x_ite/Browser/ParticleSystems/X3DParticleSystemsContext.js +3 -3
  176. package/src/x_ite/Browser/Picking/VolumePicker.js +8 -8
  177. package/src/x_ite/Browser/Picking/X3DPickingContext.js +12 -12
  178. package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +24 -20
  179. package/src/x_ite/Browser/PointingDeviceSensor/PointingDeviceSensorContainer.js +6 -6
  180. package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +21 -21
  181. package/src/x_ite/Browser/Rendering/GeometryContext.js +4 -5
  182. package/src/x_ite/Browser/Rendering/X3DRenderingContext.js +18 -18
  183. package/src/x_ite/Browser/Scripting/X3DScriptingContext.js +4 -4
  184. package/src/x_ite/Browser/Shaders/ShaderCompiler.js +4 -4
  185. package/src/x_ite/Browser/Shaders/ShaderSource.js +1 -1
  186. package/src/x_ite/Browser/Shaders/X3DShadersContext.js +13 -13
  187. package/src/x_ite/Browser/Shape/X3DShapeContext.js +12 -12
  188. package/src/x_ite/Browser/Sound/X3DSoundContext.js +0 -2
  189. package/src/x_ite/Browser/Text/PolygonText.js +10 -11
  190. package/src/x_ite/Browser/Text/X3DTextContext.js +6 -6
  191. package/src/x_ite/Browser/Text/X3DTextGeometry.js +18 -19
  192. package/src/x_ite/Browser/Texturing/GifMedia.js +7 -7
  193. package/src/x_ite/Browser/Texturing/X3DTexturingContext.js +24 -24
  194. package/src/x_ite/Browser/Texturing3D/DICOMParser.js +38 -38
  195. package/src/x_ite/Browser/Texturing3D/NRRDParser.js +14 -14
  196. package/src/x_ite/Browser/Time/X3DTimeContext.js +5 -5
  197. package/src/x_ite/Browser/VERSION.js +1 -1
  198. package/src/x_ite/Browser/VolumeRendering/VolumeMaterial.js +39 -22
  199. package/src/x_ite/Browser/VolumeRendering/X3DVolumeRenderingContext.js +6 -6
  200. package/src/x_ite/Browser/X3DBrowser.js +170 -136
  201. package/src/x_ite/Browser/X3DBrowserContext.js +23 -24
  202. package/src/x_ite/Components/Annotation/AnnotationLayer.js +30 -19
  203. package/src/x_ite/Components/Annotation/AnnotationTarget.js +30 -19
  204. package/src/x_ite/Components/Annotation/GroupAnnotation.js +40 -29
  205. package/src/x_ite/Components/Annotation/IconAnnotation.js +38 -27
  206. package/src/x_ite/Components/Annotation/TextAnnotation.js +31 -20
  207. package/src/x_ite/Components/Annotation/URLAnnotation.js +30 -19
  208. package/src/x_ite/Components/Annotation/X3DAnnotationNode.js +16 -3
  209. package/src/x_ite/Components/CADGeometry/CADAssembly.js +32 -21
  210. package/src/x_ite/Components/CADGeometry/CADFace.js +48 -37
  211. package/src/x_ite/Components/CADGeometry/CADLayer.js +30 -21
  212. package/src/x_ite/Components/CADGeometry/CADPart.js +37 -26
  213. package/src/x_ite/Components/CADGeometry/IndexedQuadSet.js +51 -46
  214. package/src/x_ite/Components/CADGeometry/QuadSet.js +48 -43
  215. package/src/x_ite/Components/CADGeometry/X3DProductStructureChildNode.js +13 -2
  216. package/src/x_ite/Components/Core/MetadataBoolean.js +33 -22
  217. package/src/x_ite/Components/Core/MetadataDouble.js +33 -22
  218. package/src/x_ite/Components/Core/MetadataFloat.js +33 -22
  219. package/src/x_ite/Components/Core/MetadataInteger.js +33 -22
  220. package/src/x_ite/Components/Core/MetadataSet.js +33 -22
  221. package/src/x_ite/Components/Core/MetadataString.js +33 -22
  222. package/src/x_ite/Components/Core/WorldInfo.js +34 -23
  223. package/src/x_ite/Components/Core/X3DBindableNode.js +17 -4
  224. package/src/x_ite/Components/Core/X3DChildNode.js +19 -6
  225. package/src/x_ite/Components/Core/X3DInfoNode.js +13 -2
  226. package/src/x_ite/Components/Core/X3DMetadataObject.js +18 -5
  227. package/src/x_ite/Components/Core/X3DNode.js +66 -34
  228. package/src/x_ite/Components/Core/X3DPrototypeInstance.js +68 -77
  229. package/src/x_ite/Components/Core/X3DSensorNode.js +13 -2
  230. package/src/x_ite/Components/Core.js +22 -29
  231. package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +46 -35
  232. package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +39 -28
  233. package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +47 -36
  234. package/src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js +21 -8
  235. package/src/x_ite/Components/DIS/DISEntityManager.js +29 -20
  236. package/src/x_ite/Components/DIS/DISEntityTypeMapping.js +41 -30
  237. package/src/x_ite/Components/DIS/EspduTransform.js +117 -106
  238. package/src/x_ite/Components/DIS/ReceiverPdu.js +60 -49
  239. package/src/x_ite/Components/DIS/SignalPdu.js +60 -49
  240. package/src/x_ite/Components/DIS/TransmitterPdu.js +76 -65
  241. package/src/x_ite/Components/EnvironmentalEffects/Background.js +47 -36
  242. package/src/x_ite/Components/EnvironmentalEffects/Fog.js +42 -31
  243. package/src/x_ite/Components/EnvironmentalEffects/FogCoordinate.js +39 -28
  244. package/src/x_ite/Components/EnvironmentalEffects/LocalFog.js +40 -29
  245. package/src/x_ite/Components/EnvironmentalEffects/TextureBackground.js +48 -37
  246. package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +28 -15
  247. package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +30 -18
  248. package/src/x_ite/Components/EnvironmentalEffects.js +15 -22
  249. package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +45 -34
  250. package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +50 -39
  251. package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +41 -30
  252. package/src/x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode.js +22 -9
  253. package/src/x_ite/Components/EnvironmentalSensor.js +12 -19
  254. package/src/x_ite/Components/EventUtilities/BooleanFilter.js +38 -27
  255. package/src/x_ite/Components/EventUtilities/BooleanSequencer.js +38 -27
  256. package/src/x_ite/Components/EventUtilities/BooleanToggle.js +33 -22
  257. package/src/x_ite/Components/EventUtilities/BooleanTrigger.js +32 -21
  258. package/src/x_ite/Components/EventUtilities/IntegerSequencer.js +38 -27
  259. package/src/x_ite/Components/EventUtilities/IntegerTrigger.js +33 -22
  260. package/src/x_ite/Components/EventUtilities/TimeTrigger.js +32 -21
  261. package/src/x_ite/Components/EventUtilities/X3DSequencerNode.js +20 -7
  262. package/src/x_ite/Components/EventUtilities/X3DTriggerNode.js +13 -2
  263. package/src/x_ite/Components/Followers/ColorChaser.js +47 -36
  264. package/src/x_ite/Components/Followers/ColorDamper.js +49 -38
  265. package/src/x_ite/Components/Followers/CoordinateChaser.js +33 -22
  266. package/src/x_ite/Components/Followers/CoordinateDamper.js +35 -24
  267. package/src/x_ite/Components/Followers/OrientationChaser.js +43 -32
  268. package/src/x_ite/Components/Followers/OrientationDamper.js +41 -30
  269. package/src/x_ite/Components/Followers/PositionChaser.js +33 -22
  270. package/src/x_ite/Components/Followers/PositionChaser2D.js +33 -22
  271. package/src/x_ite/Components/Followers/PositionDamper.js +35 -24
  272. package/src/x_ite/Components/Followers/PositionDamper2D.js +35 -24
  273. package/src/x_ite/Components/Followers/ScalarChaser.js +47 -36
  274. package/src/x_ite/Components/Followers/ScalarDamper.js +43 -32
  275. package/src/x_ite/Components/Followers/TexCoordChaser2D.js +33 -22
  276. package/src/x_ite/Components/Followers/TexCoordDamper2D.js +35 -24
  277. package/src/x_ite/Components/Followers/X3DChaserNode.js +27 -14
  278. package/src/x_ite/Components/Followers/X3DDamperNode.js +22 -9
  279. package/src/x_ite/Components/Followers/X3DFollowerNode.js +29 -16
  280. package/src/x_ite/Components/Followers.js +25 -32
  281. package/src/x_ite/Components/Geometry2D/Arc2D.js +38 -27
  282. package/src/x_ite/Components/Geometry2D/ArcClose2D.js +39 -28
  283. package/src/x_ite/Components/Geometry2D/Circle2D.js +35 -24
  284. package/src/x_ite/Components/Geometry2D/Disk2D.js +40 -29
  285. package/src/x_ite/Components/Geometry2D/Polyline2D.js +34 -23
  286. package/src/x_ite/Components/Geometry2D/Polypoint2D.js +34 -23
  287. package/src/x_ite/Components/Geometry2D/Rectangle2D.js +34 -23
  288. package/src/x_ite/Components/Geometry2D/TriangleSet2D.js +36 -25
  289. package/src/x_ite/Components/Geometry3D/Box.js +34 -23
  290. package/src/x_ite/Components/Geometry3D/Cone.js +40 -29
  291. package/src/x_ite/Components/Geometry3D/Cylinder.js +41 -30
  292. package/src/x_ite/Components/Geometry3D/ElevationGrid.js +63 -52
  293. package/src/x_ite/Components/Geometry3D/Extrusion.js +49 -38
  294. package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +98 -95
  295. package/src/x_ite/Components/Geometry3D/Sphere.js +36 -25
  296. package/src/x_ite/Components/Geometry3D.js +15 -22
  297. package/src/x_ite/Components/Geospatial/GeoCoordinate.js +37 -26
  298. package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +63 -52
  299. package/src/x_ite/Components/Geospatial/GeoLOD.js +59 -48
  300. package/src/x_ite/Components/Geospatial/GeoLocation.js +45 -34
  301. package/src/x_ite/Components/Geospatial/GeoMetadata.js +38 -27
  302. package/src/x_ite/Components/Geospatial/GeoOrigin.js +37 -26
  303. package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +43 -32
  304. package/src/x_ite/Components/Geospatial/GeoProximitySensor.js +48 -37
  305. package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +45 -34
  306. package/src/x_ite/Components/Geospatial/GeoTransform.js +49 -38
  307. package/src/x_ite/Components/Geospatial/GeoViewpoint.js +56 -45
  308. package/src/x_ite/Components/Geospatial/X3DGeospatialObject.js +30 -17
  309. package/src/x_ite/Components/Grouping/Group.js +29 -20
  310. package/src/x_ite/Components/Grouping/StaticGroup.js +40 -48
  311. package/src/x_ite/Components/Grouping/Switch.js +51 -40
  312. package/src/x_ite/Components/Grouping/Transform.js +34 -25
  313. package/src/x_ite/Components/Grouping/X3DBoundedObject.js +22 -9
  314. package/src/x_ite/Components/Grouping/X3DGroupingNode.js +224 -221
  315. package/src/x_ite/Components/Grouping/X3DTransformMatrix3DNode.js +20 -7
  316. package/src/x_ite/Components/Grouping/X3DTransformNode.js +17 -4
  317. package/src/x_ite/Components/Grouping.js +16 -23
  318. package/src/x_ite/Components/HAnim/HAnimDisplacer.js +27 -18
  319. package/src/x_ite/Components/HAnim/HAnimHumanoid.js +73 -62
  320. package/src/x_ite/Components/HAnim/HAnimJoint.js +61 -50
  321. package/src/x_ite/Components/HAnim/HAnimMotion.js +44 -33
  322. package/src/x_ite/Components/HAnim/HAnimSegment.js +36 -27
  323. package/src/x_ite/Components/HAnim/HAnimSite.js +36 -27
  324. package/src/x_ite/Components/Interpolation/ColorInterpolator.js +38 -27
  325. package/src/x_ite/Components/Interpolation/CoordinateInterpolator.js +38 -27
  326. package/src/x_ite/Components/Interpolation/CoordinateInterpolator2D.js +38 -27
  327. package/src/x_ite/Components/Interpolation/EaseInEaseOut.js +39 -28
  328. package/src/x_ite/Components/Interpolation/NormalInterpolator.js +38 -27
  329. package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +38 -27
  330. package/src/x_ite/Components/Interpolation/PositionInterpolator.js +38 -27
  331. package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +38 -27
  332. package/src/x_ite/Components/Interpolation/ScalarInterpolator.js +39 -28
  333. package/src/x_ite/Components/Interpolation/SplinePositionInterpolator.js +44 -33
  334. package/src/x_ite/Components/Interpolation/SplinePositionInterpolator2D.js +44 -33
  335. package/src/x_ite/Components/Interpolation/SplineScalarInterpolator.js +44 -33
  336. package/src/x_ite/Components/Interpolation/SquadOrientationInterpolator.js +40 -29
  337. package/src/x_ite/Components/Interpolation/X3DInterpolatorNode.js +21 -8
  338. package/src/x_ite/Components/Interpolation.js +22 -29
  339. package/src/x_ite/Components/KeyDeviceSensor/KeySensor.js +44 -33
  340. package/src/x_ite/Components/KeyDeviceSensor/StringSensor.js +38 -27
  341. package/src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js +23 -10
  342. package/src/x_ite/Components/Layering/Layer.js +40 -29
  343. package/src/x_ite/Components/Layering/LayerSet.js +44 -33
  344. package/src/x_ite/Components/Layering/Viewport.js +48 -37
  345. package/src/x_ite/Components/Layering/X3DLayerNode.js +45 -32
  346. package/src/x_ite/Components/Layering/X3DViewportNode.js +13 -2
  347. package/src/x_ite/Components/Layering.js +13 -20
  348. package/src/x_ite/Components/Layout/Layout.js +60 -49
  349. package/src/x_ite/Components/Layout/LayoutGroup.js +48 -37
  350. package/src/x_ite/Components/Layout/LayoutLayer.js +41 -30
  351. package/src/x_ite/Components/Layout/ScreenFontStyle.js +41 -30
  352. package/src/x_ite/Components/Layout/ScreenGroup.js +42 -31
  353. package/src/x_ite/Components/Layout/X3DLayoutNode.js +13 -2
  354. package/src/x_ite/Components/Lighting/DirectionalLight.js +45 -35
  355. package/src/x_ite/Components/Lighting/EnvironmentLight.js +51 -41
  356. package/src/x_ite/Components/Lighting/PointLight.js +53 -43
  357. package/src/x_ite/Components/Lighting/SpotLight.js +62 -52
  358. package/src/x_ite/Components/Lighting/X3DLightNode.js +29 -16
  359. package/src/x_ite/Components/Lighting.js +13 -20
  360. package/src/x_ite/Components/NURBS/Contour2D.js +45 -45
  361. package/src/x_ite/Components/NURBS/ContourPolyline2D.js +34 -23
  362. package/src/x_ite/Components/NURBS/CoordinateDouble.js +23 -14
  363. package/src/x_ite/Components/NURBS/NurbsCurve.js +47 -36
  364. package/src/x_ite/Components/NURBS/NurbsCurve2D.js +44 -33
  365. package/src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js +46 -35
  366. package/src/x_ite/Components/NURBS/NurbsPatchSurface.js +36 -27
  367. package/src/x_ite/Components/NURBS/NurbsPositionInterpolator.js +46 -35
  368. package/src/x_ite/Components/NURBS/NurbsSet.js +52 -52
  369. package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +44 -33
  370. package/src/x_ite/Components/NURBS/NurbsSweptSurface.js +40 -29
  371. package/src/x_ite/Components/NURBS/NurbsSwungSurface.js +40 -29
  372. package/src/x_ite/Components/NURBS/NurbsTextureCoordinate.js +43 -32
  373. package/src/x_ite/Components/NURBS/NurbsTrimmedSurface.js +59 -59
  374. package/src/x_ite/Components/NURBS/X3DNurbsControlCurveNode.js +13 -2
  375. package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +30 -17
  376. package/src/x_ite/Components/NURBS/X3DParametricGeometryNode.js +16 -3
  377. package/src/x_ite/Components/Navigation/Billboard.js +43 -32
  378. package/src/x_ite/Components/Navigation/Collision.js +49 -38
  379. package/src/x_ite/Components/Navigation/LOD.js +54 -43
  380. package/src/x_ite/Components/Navigation/NavigationInfo.js +58 -47
  381. package/src/x_ite/Components/Navigation/OrthoViewpoint.js +69 -58
  382. package/src/x_ite/Components/Navigation/Viewpoint.js +53 -42
  383. package/src/x_ite/Components/Navigation/ViewpointGroup.js +44 -33
  384. package/src/x_ite/Components/Navigation/X3DViewpointNode.js +48 -35
  385. package/src/x_ite/Components/Navigation.js +16 -23
  386. package/src/x_ite/Components/Networking/Anchor.js +51 -40
  387. package/src/x_ite/Components/Networking/Inline.js +54 -43
  388. package/src/x_ite/Components/Networking/LoadSensor.js +49 -38
  389. package/src/x_ite/Components/Networking/X3DNetworkSensorNode.js +13 -2
  390. package/src/x_ite/Components/Networking/X3DUrlObject.js +35 -22
  391. package/src/x_ite/Components/Networking.js +13 -20
  392. package/src/x_ite/Components/ParticleSystems/BoundedPhysicsModel.js +37 -26
  393. package/src/x_ite/Components/ParticleSystems/ConeEmitter.js +44 -33
  394. package/src/x_ite/Components/ParticleSystems/ExplosionEmitter.js +41 -30
  395. package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +34 -23
  396. package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +83 -72
  397. package/src/x_ite/Components/ParticleSystems/PointEmitter.js +41 -30
  398. package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +42 -31
  399. package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +42 -31
  400. package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +43 -32
  401. package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +38 -27
  402. package/src/x_ite/Components/ParticleSystems/X3DParticleEmitterNode.js +33 -20
  403. package/src/x_ite/Components/ParticleSystems/X3DParticlePhysicsModelNode.js +16 -3
  404. package/src/x_ite/Components/Picking/LinePickSensor.js +49 -38
  405. package/src/x_ite/Components/Picking/PickableGroup.js +45 -34
  406. package/src/x_ite/Components/Picking/PointPickSensor.js +46 -35
  407. package/src/x_ite/Components/Picking/PrimitivePickSensor.js +46 -35
  408. package/src/x_ite/Components/Picking/VolumePickSensor.js +45 -34
  409. package/src/x_ite/Components/Picking/X3DPickSensorNode.js +31 -18
  410. package/src/x_ite/Components/Picking/X3DPickableObject.js +20 -7
  411. package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +50 -39
  412. package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +52 -45
  413. package/src/x_ite/Components/PointingDeviceSensor/SphereSensor.js +44 -33
  414. package/src/x_ite/Components/PointingDeviceSensor/TouchSensor.js +30 -21
  415. package/src/x_ite/Components/PointingDeviceSensor/X3DDragSensorNode.js +13 -2
  416. package/src/x_ite/Components/PointingDeviceSensor/X3DPointingDeviceSensorNode.js +22 -11
  417. package/src/x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode.js +16 -3
  418. package/src/x_ite/Components/PointingDeviceSensor.js +15 -22
  419. package/src/x_ite/Components/Rendering/ClipPlane.js +44 -34
  420. package/src/x_ite/Components/Rendering/Color.js +37 -26
  421. package/src/x_ite/Components/Rendering/ColorRGBA.js +37 -26
  422. package/src/x_ite/Components/Rendering/Coordinate.js +23 -14
  423. package/src/x_ite/Components/Rendering/IndexedLineSet.js +52 -41
  424. package/src/x_ite/Components/Rendering/IndexedTriangleFanSet.js +48 -37
  425. package/src/x_ite/Components/Rendering/IndexedTriangleSet.js +44 -33
  426. package/src/x_ite/Components/Rendering/IndexedTriangleStripSet.js +48 -37
  427. package/src/x_ite/Components/Rendering/LineSet.js +45 -34
  428. package/src/x_ite/Components/Rendering/Normal.js +39 -28
  429. package/src/x_ite/Components/Rendering/PointSet.js +45 -34
  430. package/src/x_ite/Components/Rendering/TriangleFanSet.js +47 -36
  431. package/src/x_ite/Components/Rendering/TriangleSet.js +41 -30
  432. package/src/x_ite/Components/Rendering/TriangleStripSet.js +47 -36
  433. package/src/x_ite/Components/Rendering/X3DColorNode.js +17 -4
  434. package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +33 -20
  435. package/src/x_ite/Components/Rendering/X3DCoordinateNode.js +23 -10
  436. package/src/x_ite/Components/Rendering/X3DGeometricPropertyNode.js +13 -2
  437. package/src/x_ite/Components/Rendering/X3DGeometryNode.js +96 -80
  438. package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +21 -8
  439. package/src/x_ite/Components/Rendering/X3DNormalNode.js +13 -2
  440. package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +20 -7
  441. package/src/x_ite/Components/Rendering.js +29 -36
  442. package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +43 -32
  443. package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +48 -37
  444. package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +52 -41
  445. package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +47 -36
  446. package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +41 -30
  447. package/src/x_ite/Components/RigidBodyPhysics/CollisionSpace.js +44 -33
  448. package/src/x_ite/Components/RigidBodyPhysics/Contact.js +38 -29
  449. package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +60 -49
  450. package/src/x_ite/Components/RigidBodyPhysics/MotorJoint.js +48 -39
  451. package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +69 -58
  452. package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +61 -50
  453. package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +49 -38
  454. package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +47 -36
  455. package/src/x_ite/Components/RigidBodyPhysics/UniversalJoint.js +36 -27
  456. package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js +24 -11
  457. package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollisionSpaceNode.js +17 -4
  458. package/src/x_ite/Components/RigidBodyPhysics/X3DRigidJointNode.js +34 -21
  459. package/src/x_ite/Components/Scripting/Script.js +83 -53
  460. package/src/x_ite/Components/Scripting/X3DScriptNode.js +17 -4
  461. package/src/x_ite/Components/Shaders/ComposedShader.js +46 -35
  462. package/src/x_ite/Components/Shaders/FloatVertexAttribute.js +40 -29
  463. package/src/x_ite/Components/Shaders/Matrix3VertexAttribute.js +38 -27
  464. package/src/x_ite/Components/Shaders/Matrix4VertexAttribute.js +38 -27
  465. package/src/x_ite/Components/Shaders/PackagedShader.js +45 -34
  466. package/src/x_ite/Components/Shaders/ProgramShader.js +27 -18
  467. package/src/x_ite/Components/Shaders/ShaderPart.js +47 -36
  468. package/src/x_ite/Components/Shaders/ShaderProgram.js +42 -31
  469. package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +51 -38
  470. package/src/x_ite/Components/Shaders/X3DShaderNode.js +19 -6
  471. package/src/x_ite/Components/Shaders/X3DVertexAttributeNode.js +17 -4
  472. package/src/x_ite/Components/Shaders.js +19 -26
  473. package/src/x_ite/Components/Shape/AcousticProperties.js +28 -19
  474. package/src/x_ite/Components/Shape/Appearance.js +79 -68
  475. package/src/x_ite/Components/Shape/FillProperties.js +44 -33
  476. package/src/x_ite/Components/Shape/LineProperties.js +44 -33
  477. package/src/x_ite/Components/Shape/Material.js +75 -64
  478. package/src/x_ite/Components/Shape/PhysicalMaterial.js +65 -54
  479. package/src/x_ite/Components/Shape/PointProperties.js +43 -32
  480. package/src/x_ite/Components/Shape/Shape.js +48 -37
  481. package/src/x_ite/Components/Shape/TwoSidedMaterial.js +60 -49
  482. package/src/x_ite/Components/Shape/UnlitMaterial.js +44 -33
  483. package/src/x_ite/Components/Shape/X3DAppearanceChildNode.js +13 -2
  484. package/src/x_ite/Components/Shape/X3DAppearanceNode.js +17 -4
  485. package/src/x_ite/Components/Shape/X3DMaterialNode.js +41 -33
  486. package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +29 -16
  487. package/src/x_ite/Components/Shape/X3DShapeNode.js +28 -15
  488. package/src/x_ite/Components/Shape.js +23 -30
  489. package/src/x_ite/Components/Sound/Analyser.js +46 -37
  490. package/src/x_ite/Components/Sound/AudioClip.js +61 -50
  491. package/src/x_ite/Components/Sound/AudioDestination.js +35 -26
  492. package/src/x_ite/Components/Sound/BiquadFilter.js +45 -36
  493. package/src/x_ite/Components/Sound/BufferAudioSource.js +61 -50
  494. package/src/x_ite/Components/Sound/ChannelMerger.js +32 -23
  495. package/src/x_ite/Components/Sound/ChannelSelector.js +33 -24
  496. package/src/x_ite/Components/Sound/ChannelSplitter.js +33 -24
  497. package/src/x_ite/Components/Sound/Convolver.js +43 -34
  498. package/src/x_ite/Components/Sound/Delay.js +43 -34
  499. package/src/x_ite/Components/Sound/DynamicsCompressor.js +47 -38
  500. package/src/x_ite/Components/Sound/Gain.js +41 -32
  501. package/src/x_ite/Components/Sound/ListenerPointSource.js +39 -30
  502. package/src/x_ite/Components/Sound/MicrophoneSource.js +35 -26
  503. package/src/x_ite/Components/Sound/OscillatorSource.js +37 -28
  504. package/src/x_ite/Components/Sound/PeriodicWave.js +27 -18
  505. package/src/x_ite/Components/Sound/Sound.js +51 -40
  506. package/src/x_ite/Components/Sound/SpatialSound.js +42 -33
  507. package/src/x_ite/Components/Sound/StreamAudioDestination.js +35 -26
  508. package/src/x_ite/Components/Sound/StreamAudioSource.js +35 -26
  509. package/src/x_ite/Components/Sound/WaveShaper.js +43 -34
  510. package/src/x_ite/Components/Sound/X3DSoundChannelNode.js +13 -2
  511. package/src/x_ite/Components/Sound/X3DSoundDestinationNode.js +13 -2
  512. package/src/x_ite/Components/Sound/X3DSoundNode.js +13 -2
  513. package/src/x_ite/Components/Sound/X3DSoundProcessingNode.js +17 -4
  514. package/src/x_ite/Components/Sound/X3DSoundSourceNode.js +30 -17
  515. package/src/x_ite/Components/Sound.js +34 -41
  516. package/src/x_ite/Components/Text/FontStyle.js +37 -26
  517. package/src/x_ite/Components/Text/Text.js +50 -39
  518. package/src/x_ite/Components/Text/X3DFontStyleNode.js +32 -18
  519. package/src/x_ite/Components/TextureProjector/TextureProjector.js +49 -39
  520. package/src/x_ite/Components/TextureProjector/TextureProjectorParallel.js +58 -48
  521. package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +27 -14
  522. package/src/x_ite/Components/Texturing/ImageTexture.js +50 -39
  523. package/src/x_ite/Components/Texturing/MovieTexture.js +67 -56
  524. package/src/x_ite/Components/Texturing/MultiTexture.js +52 -41
  525. package/src/x_ite/Components/Texturing/MultiTextureCoordinate.js +44 -33
  526. package/src/x_ite/Components/Texturing/MultiTextureTransform.js +39 -28
  527. package/src/x_ite/Components/Texturing/PixelTexture.js +42 -31
  528. package/src/x_ite/Components/Texturing/TextureCoordinate.js +41 -30
  529. package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +41 -30
  530. package/src/x_ite/Components/Texturing/TextureProperties.js +47 -36
  531. package/src/x_ite/Components/Texturing/TextureTransform.js +39 -28
  532. package/src/x_ite/Components/Texturing/X3DSingleTextureCoordinateNode.js +20 -7
  533. package/src/x_ite/Components/Texturing/X3DSingleTextureNode.js +21 -8
  534. package/src/x_ite/Components/Texturing/X3DSingleTextureTransformNode.js +20 -7
  535. package/src/x_ite/Components/Texturing/X3DTexture2DNode.js +26 -13
  536. package/src/x_ite/Components/Texturing/X3DTextureCoordinateNode.js +13 -2
  537. package/src/x_ite/Components/Texturing/X3DTextureNode.js +17 -4
  538. package/src/x_ite/Components/Texturing/X3DTextureTransformNode.js +13 -2
  539. package/src/x_ite/Components/Texturing.js +25 -32
  540. package/src/x_ite/Components/Texturing3D/ComposedTexture3D.js +44 -33
  541. package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +46 -35
  542. package/src/x_ite/Components/Texturing3D/ImageTextureAtlas.js +54 -43
  543. package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +40 -29
  544. package/src/x_ite/Components/Texturing3D/TextureCoordinate3D.js +41 -30
  545. package/src/x_ite/Components/Texturing3D/TextureCoordinate4D.js +41 -30
  546. package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +39 -28
  547. package/src/x_ite/Components/Texturing3D/TextureTransformMatrix3D.js +36 -25
  548. package/src/x_ite/Components/Texturing3D/X3DTexture3DNode.js +26 -13
  549. package/src/x_ite/Components/Time/TimeSensor.js +55 -44
  550. package/src/x_ite/Components/Time/X3DTimeDependentNode.js +38 -25
  551. package/src/x_ite/Components/Time.js +10 -17
  552. package/src/x_ite/Components/VolumeRendering/BlendedVolumeStyle.js +51 -41
  553. package/src/x_ite/Components/VolumeRendering/BoundaryEnhancementVolumeStyle.js +39 -28
  554. package/src/x_ite/Components/VolumeRendering/CartoonVolumeStyle.js +42 -31
  555. package/src/x_ite/Components/VolumeRendering/ComposedVolumeStyle.js +41 -30
  556. package/src/x_ite/Components/VolumeRendering/EdgeEnhancementVolumeStyle.js +41 -30
  557. package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +50 -39
  558. package/src/x_ite/Components/VolumeRendering/OpacityMapVolumeStyle.js +39 -28
  559. package/src/x_ite/Components/VolumeRendering/ProjectionVolumeStyle.js +38 -27
  560. package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +49 -38
  561. package/src/x_ite/Components/VolumeRendering/ShadedVolumeStyle.js +44 -33
  562. package/src/x_ite/Components/VolumeRendering/SilhouetteEnhancementVolumeStyle.js +42 -31
  563. package/src/x_ite/Components/VolumeRendering/ToneMappedVolumeStyle.js +41 -30
  564. package/src/x_ite/Components/VolumeRendering/VolumeData.js +45 -34
  565. package/src/x_ite/Components/VolumeRendering/X3DComposableVolumeRenderStyleNode.js +13 -2
  566. package/src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js +25 -12
  567. package/src/x_ite/Components/VolumeRendering/X3DVolumeRenderStyleNode.js +22 -9
  568. package/src/x_ite/Components/X_ITE/BlendMode.js +48 -37
  569. package/src/x_ite/Components.js +38 -14
  570. package/src/x_ite/Configuration/AbstractNodes.js +50 -0
  571. package/src/x_ite/{Fallback.js → Configuration/AbstractNodesArray.js} +22 -29
  572. package/src/x_ite/Configuration/ComponentInfo.js +14 -10
  573. package/src/x_ite/Configuration/ComponentInfoArray.js +14 -10
  574. package/src/x_ite/Configuration/ConcreteNodes.js +50 -0
  575. package/src/x_ite/Configuration/{SupportedNodes.js → ConcreteNodesArray.js} +26 -40
  576. package/src/x_ite/Configuration/ProfileInfo.js +13 -9
  577. package/src/x_ite/Configuration/ProfileInfoArray.js +14 -13
  578. package/src/x_ite/Configuration/SupportedComponents.js +40 -78
  579. package/src/x_ite/Configuration/SupportedProfiles.js +16 -16
  580. package/src/x_ite/Configuration/UnitInfo.js +14 -10
  581. package/src/x_ite/Configuration/UnitInfoArray.js +10 -21
  582. package/src/x_ite/Execution/BindableList.js +14 -10
  583. package/src/x_ite/Execution/BindableStack.js +14 -10
  584. package/src/x_ite/Execution/ExportedNodesArray.js +11 -9
  585. package/src/x_ite/Execution/ImportedNodesArray.js +11 -9
  586. package/src/x_ite/Execution/NamedNodesArray.js +11 -22
  587. package/src/x_ite/Execution/X3DExecutionContext.js +181 -152
  588. package/src/x_ite/Execution/X3DExportedNode.js +18 -10
  589. package/src/x_ite/Execution/X3DImportedNode.js +35 -22
  590. package/src/x_ite/Execution/X3DScene.js +93 -64
  591. package/src/x_ite/Execution/X3DWorld.js +21 -17
  592. package/src/x_ite/Fields/ArrayFields.js +87 -153
  593. package/src/x_ite/Fields/SFBool.js +21 -25
  594. package/src/x_ite/Fields/SFColor.js +43 -39
  595. package/src/x_ite/Fields/SFColorRGBA.js +39 -35
  596. package/src/x_ite/Fields/SFDouble.js +20 -21
  597. package/src/x_ite/Fields/SFFloat.js +20 -21
  598. package/src/x_ite/Fields/SFImage.js +50 -48
  599. package/src/x_ite/Fields/SFInt32.js +20 -21
  600. package/src/x_ite/Fields/SFMatrix3.js +23 -16
  601. package/src/x_ite/Fields/SFMatrix4.js +24 -17
  602. package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +31 -31
  603. package/src/x_ite/Fields/SFNode.js +57 -88
  604. package/src/x_ite/Fields/SFNodeCache.js +7 -11
  605. package/src/x_ite/Fields/SFRotation.js +73 -62
  606. package/src/x_ite/Fields/SFString.js +35 -36
  607. package/src/x_ite/Fields/SFTime.js +20 -21
  608. package/src/x_ite/Fields/SFVec2.js +17 -14
  609. package/src/x_ite/Fields/SFVec3.js +20 -17
  610. package/src/x_ite/Fields/SFVec4.js +21 -18
  611. package/src/x_ite/Fields/SFVecPrototypeTemplate.js +36 -36
  612. package/src/x_ite/Fields.js +6 -13
  613. package/src/x_ite/InputOutput/FileLoader.js +36 -40
  614. package/src/x_ite/InputOutput/Generator.js +50 -51
  615. package/src/x_ite/Parser/GLB2Parser.js +12 -13
  616. package/src/x_ite/Parser/GLTF2Parser.js +111 -112
  617. package/src/x_ite/Parser/GoldenGate.js +11 -13
  618. package/src/x_ite/Parser/HTMLSupport.js +15 -5
  619. package/src/x_ite/Parser/JSONParser.js +21 -22
  620. package/src/x_ite/Parser/OBJParser.js +56 -57
  621. package/src/x_ite/Parser/STLAParser.js +22 -23
  622. package/src/x_ite/Parser/STLBParser.js +12 -13
  623. package/src/x_ite/Parser/SVGParser.js +85 -86
  624. package/src/x_ite/Parser/VRMLParser.js +495 -878
  625. package/src/x_ite/Parser/X3DOptimizer.js +7 -7
  626. package/src/x_ite/Parser/X3DParser.js +17 -17
  627. package/src/x_ite/Parser/XMLParser.js +215 -269
  628. package/src/x_ite/Prototype/ExternProtoDeclarationArray.js +11 -9
  629. package/src/x_ite/Prototype/ProtoDeclarationArray.js +11 -9
  630. package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +35 -27
  631. package/src/x_ite/Prototype/X3DProtoDeclaration.js +28 -20
  632. package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +18 -10
  633. package/src/x_ite/Rendering/DependentRenderer.js +11 -12
  634. package/src/x_ite/Rendering/MultiSampleFrameBuffer.js +9 -10
  635. package/src/x_ite/Rendering/PointingBuffer.js +6 -7
  636. package/src/x_ite/Rendering/TextureBuffer.js +11 -12
  637. package/src/x_ite/Rendering/VertexArray.js +5 -5
  638. package/src/x_ite/Rendering/X3DRenderObject.js +51 -52
  639. package/src/x_ite/Routing/RouteArray.js +11 -9
  640. package/src/x_ite/Routing/X3DRoute.js +35 -19
  641. package/src/x_ite/Routing/X3DRoutingContext.js +8 -9
  642. package/src/x_ite/X3D.js +27 -26
  643. package/src/x_ite/X3DCanvasElement.js +18 -7
  644. package/src/x_ite.css +2 -1
  645. package/webpack.config.js +2 -2
  646. /package/src/x_ite/{DEBUG.js → DEVELOPMENT.js} +0 -0
@@ -57,22 +57,9 @@ function BrowserTimings (executionContext)
57
57
  this .fps = new StopWatch ();
58
58
  }
59
59
 
60
- BrowserTimings .prototype = Object .assign (Object .create (X3DBaseNode .prototype),
60
+ Object .assign (Object .setPrototypeOf (BrowserTimings .prototype, X3DBaseNode .prototype),
61
61
  {
62
- constructor: BrowserTimings,
63
- getTypeName: function ()
64
- {
65
- return "BrowserTimings";
66
- },
67
- getComponentName: function ()
68
- {
69
- return "X_ITE";
70
- },
71
- getContainerField: function ()
72
- {
73
- return "browserTimings";
74
- },
75
- initialize: function ()
62
+ initialize ()
76
63
  {
77
64
  X3DBaseNode .prototype .initialize .call (this);
78
65
 
@@ -176,7 +163,7 @@ BrowserTimings .prototype = Object .assign (Object .create (X3DBaseNode .prototy
176
163
 
177
164
  this .set_type__ ();
178
165
  },
179
- set_enabled__: function ()
166
+ set_enabled__ ()
180
167
  {
181
168
  if (this .getBrowser () .getBrowserOption ("Timings"))
182
169
  {
@@ -192,7 +179,7 @@ BrowserTimings .prototype = Object .assign (Object .create (X3DBaseNode .prototy
192
179
  this .getBrowser () .prepareEvents () .removeInterest ("update", this);
193
180
  }
194
181
  },
195
- set_type__: function ()
182
+ set_type__ ()
196
183
  {
197
184
  if (this .localStorage .type === "MORE")
198
185
  {
@@ -210,14 +197,14 @@ BrowserTimings .prototype = Object .assign (Object .create (X3DBaseNode .prototy
210
197
  this .set_button__ ();
211
198
  this .build ();
212
199
  },
213
- set_button__: function ()
200
+ set_button__ ()
214
201
  {
215
202
  if (this .localStorage .type === "MORE")
216
203
  this .button .text (_("Less Properties"));
217
204
  else
218
205
  this .button .text (_("More Properties"));
219
206
  },
220
- update: function ()
207
+ update ()
221
208
  {
222
209
  this .fps .stop ()
223
210
 
@@ -229,12 +216,12 @@ BrowserTimings .prototype = Object .assign (Object .create (X3DBaseNode .prototy
229
216
 
230
217
  this .fps .start ();
231
218
  },
232
- build: function ()
219
+ build ()
233
220
  {
234
221
  const browser = this .getBrowser ();
235
222
 
236
- this .frameRate .text (f2(1000 / this .fps .averageTime) + " " + _("fps"));
237
- this .speed .text (f2(this .getSpeed (browser .currentSpeed)) + " " + this .getSpeedUnit (browser .currentSpeed));
223
+ this .frameRate .text (`${f2 (1000 / this .fps .averageTime)} ${_("fps")}`);
224
+ this .speed .text (`${f2 (this .getSpeed (browser .currentSpeed))} ${this .getSpeedUnit (browser .currentSpeed)}`);
238
225
 
239
226
  if (this .localStorage .type !== "MORE" || !browser .getWorld ())
240
227
  return;
@@ -250,15 +237,15 @@ BrowserTimings .prototype = Object .assign (Object .create (X3DBaseNode .prototy
250
237
  opaqueShapes = layers .reduce ((n, layer) => n + layer .getNumOpaqueShapes (), 0),
251
238
  transparentShapes = layers .reduce ((n, layer) => n + layer .getNumTransparentShapes (), 0);
252
239
 
253
- this .browserTime .text (f2(browser .getSystemTime () .averageTime) + " " + _("ms"));
254
- this .x3dTotal .text (f2(browser .getBrowserTime () .averageTime) + " " + _("ms"));
255
- this .eventProcessing .text (f2(routingTime) + " " + _("ms"));
256
- this .pointerTime .text (f2(browser .getPointingTime () .averageTime) + " " + _("ms"));
257
- this .cameraTime .text (f2(browser .getCameraTime () .averageTime) + " " + _("ms"));
258
- this .pickingTime .text (f2(browser .getPickingTime () .averageTime) + " " + _("ms"));
259
- this .collisionTime .text (f2(collisionTime) + " " + _("ms"));
260
- this .renderTime .text (f2(browser .getDisplayTime () .averageTime) + " " + _("ms"));
261
- this .numShapes .text (opaqueShapes + " + " + transparentShapes);
240
+ this .browserTime .text (`${f2 (browser .getSystemTime () .averageTime)} ${_("ms")}`);
241
+ this .x3dTotal .text (`${f2 (browser .getBrowserTime () .averageTime)} ${_("ms")}`);
242
+ this .eventProcessing .text (`${f2 (routingTime)} ${_("ms")}`);
243
+ this .pointerTime .text (`${f2 (browser .getPointingTime () .averageTime)} ${_("ms")}`);
244
+ this .cameraTime .text (`${f2 (browser .getCameraTime () .averageTime)} ${_("ms")}`);
245
+ this .pickingTime .text (`${f2 (browser .getPickingTime () .averageTime)} ${_("ms")}`);
246
+ this .collisionTime .text (`${f2 (collisionTime)} ${_("ms")}`);
247
+ this .renderTime .text (`${f2 (browser .getDisplayTime () .averageTime)} ${_("ms")}`);
248
+ this .numShapes .text (`${opaqueShapes} + ${transparentShapes}`);
262
249
  this .sensors .text (prepareEvents + sensors);
263
250
 
264
251
  browser .getSystemTime () .reset ();
@@ -271,14 +258,14 @@ BrowserTimings .prototype = Object .assign (Object .create (X3DBaseNode .prototy
271
258
 
272
259
  activeLayer ?.getCollisionTime () .reset ();
273
260
  },
274
- getSpeed: function (speed)
261
+ getSpeed (speed)
275
262
  {
276
263
  if (speed < 15)
277
264
  return speed;
278
265
 
279
266
  return speed * 3.6;
280
267
  },
281
- getSpeedUnit: function (speed)
268
+ getSpeedUnit (speed)
282
269
  {
283
270
  if (speed < 15)
284
271
  return _("m/s");
@@ -287,6 +274,15 @@ BrowserTimings .prototype = Object .assign (Object .create (X3DBaseNode .prototy
287
274
  },
288
275
  });
289
276
 
277
+ Object .defineProperties (BrowserTimings,
278
+ {
279
+ typeName:
280
+ {
281
+ value: "BrowserTimings",
282
+ enumerable: true,
283
+ },
284
+ });
285
+
290
286
  const f2 = (function ()
291
287
  {
292
288
  const format = new Intl .NumberFormat (navigator .language || navigator .userLanguage, {
@@ -45,7 +45,7 @@
45
45
  *
46
46
  ******************************************************************************/
47
47
 
48
- import DEBUG from "../../DEBUG.js";
48
+ import DEVELOPMENT from "../../DEVELOPMENT.js";
49
49
 
50
50
  const extensions = [
51
51
  "ANGLE_instanced_arrays",
@@ -106,13 +106,13 @@ const extensions = [
106
106
 
107
107
  const Context =
108
108
  {
109
- create: function (canvas, version, preserveDrawingBuffer)
109
+ create (canvas, version, preserveDrawingBuffer)
110
110
  {
111
111
  const options = { preserveDrawingBuffer: preserveDrawingBuffer };
112
112
 
113
113
  let gl = null;
114
114
 
115
- if (version >= 2 && ! gl)
115
+ if (version >= 2 && !gl)
116
116
  {
117
117
  gl = canvas .getContext ("webgl2", { ... options, antialias: false });
118
118
 
@@ -120,7 +120,7 @@ const Context =
120
120
  gl .getVersion = function () { return 2; };
121
121
  }
122
122
 
123
- if (version >= 1 && ! gl)
123
+ if (version >= 1 && !gl)
124
124
  {
125
125
  gl = canvas .getContext ("webgl", options) ||
126
126
  canvas .getContext ("experimental-webgl", options);
@@ -140,7 +140,7 @@ const Context =
140
140
  }
141
141
  }
142
142
 
143
- if (! gl)
143
+ if (!gl)
144
144
  throw new Error ("Couldn't create WebGL context.");
145
145
 
146
146
  // Feature detection:
@@ -155,7 +155,7 @@ const Context =
155
155
  gl .lineWidth = Function .prototype;
156
156
  gl .HAS_FEATURE_TRANSFORMED_LINES = gl .getVersion () >= 2;
157
157
 
158
- if (DEBUG)
158
+ if (DEVELOPMENT)
159
159
  console .info ("Lines are transformed if necessary to obtain thick lines.");
160
160
  }
161
161
  else
@@ -199,7 +199,7 @@ const Context =
199
199
  }
200
200
  :
201
201
  {
202
- clientWaitAsync: function (sync, flags, timeout)
202
+ clientWaitAsync (sync, flags, timeout)
203
203
  {
204
204
  return new Promise ((resolve, reject) =>
205
205
  {
@@ -59,22 +59,9 @@ function ContextMenu (executionContext)
59
59
  this [_userMenu] = null;
60
60
  }
61
61
 
62
- ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype),
62
+ Object .assign (Object .setPrototypeOf (ContextMenu .prototype, X3DBaseNode .prototype),
63
63
  {
64
- constructor: ContextMenu,
65
- getTypeName: function ()
66
- {
67
- return "ContextMenu";
68
- },
69
- getComponentName: function ()
70
- {
71
- return "X_ITE";
72
- },
73
- getContainerField: function ()
74
- {
75
- return "contextMenu";
76
- },
77
- initialize: function ()
64
+ initialize ()
78
65
  {
79
66
  X3DBaseNode .prototype .initialize .call (this);
80
67
 
@@ -87,15 +74,15 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
87
74
  animation: {duration: 500, show: "fadeIn", hide: "fadeOut"},
88
75
  });
89
76
  },
90
- getUserMenu: function ()
77
+ getUserMenu ()
91
78
  {
92
79
  return this [_userMenu];
93
80
  },
94
- setUserMenu: function (userMenu)
81
+ setUserMenu (userMenu)
95
82
  {
96
83
  this [_userMenu] = userMenu;
97
84
  },
98
- createUserMenu: function ()
85
+ createUserMenu ()
99
86
  {
100
87
  const userMenu = { };
101
88
 
@@ -112,7 +99,7 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
112
99
 
113
100
  return userMenu;
114
101
  },
115
- build: function (event)
102
+ build (event)
116
103
  {
117
104
  const
118
105
  browser = this .getBrowser (),
@@ -143,7 +130,7 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
143
130
  type: "checkbox",
144
131
  selected: browser .getBrowserOption ("StraightenHorizon"),
145
132
  events: {
146
- click: function (event)
133
+ click: (event) =>
147
134
  {
148
135
  const straightenHorizon = $(event .target) .is (":checked");
149
136
 
@@ -153,8 +140,7 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
153
140
  browser .getNotification () ._string = _("Straighten Horizon") + ": " + _("on");
154
141
  else
155
142
  browser .getNotification () ._string = _("Straighten Horizon") + ": " + _("off");
156
- }
157
- .bind (this),
143
+ },
158
144
  },
159
145
  },
160
146
  "display-rubberband": {
@@ -162,7 +148,7 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
162
148
  type: "checkbox",
163
149
  selected: browser .getBrowserOption ("Rubberband"),
164
150
  events: {
165
- click: function (event)
151
+ click: (event) =>
166
152
  {
167
153
  const rubberband = $(event .target) .is (":checked");
168
154
 
@@ -172,8 +158,7 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
172
158
  browser .getNotification () ._string = _("Rubberband") + ": " + _("on");
173
159
  else
174
160
  browser .getNotification () ._string = _("Rubberband") + ": " + _("off");
175
- }
176
- .bind (this),
161
+ },
177
162
  },
178
163
  },
179
164
  "separator1": "--------",
@@ -187,12 +172,11 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
187
172
  radio: "primitive-quality",
188
173
  selected: browser .getBrowserOption ("PrimitiveQuality") === "HIGH",
189
174
  events: {
190
- click: function ()
175
+ click: () =>
191
176
  {
192
177
  browser .setBrowserOption ("PrimitiveQuality", "HIGH");
193
178
  browser .getNotification () ._string = _("Primitive Quality") + ": " + _("high");
194
- }
195
- .bind (this),
179
+ },
196
180
  },
197
181
  },
198
182
  "medium": {
@@ -201,12 +185,11 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
201
185
  radio: "primitive-quality",
202
186
  selected: browser .getBrowserOption ("PrimitiveQuality") === "MEDIUM",
203
187
  events: {
204
- click: function ()
188
+ click: () =>
205
189
  {
206
190
  browser .setBrowserOption ("PrimitiveQuality", "MEDIUM");
207
191
  browser .getNotification () ._string = _("Primitive Quality") + ": " + _("medium");
208
- }
209
- .bind (this),
192
+ },
210
193
  },
211
194
  },
212
195
  "low": {
@@ -215,12 +198,11 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
215
198
  radio: "primitive-quality",
216
199
  selected: browser .getBrowserOption ("PrimitiveQuality") === "LOW",
217
200
  events: {
218
- click: function ()
201
+ click: () =>
219
202
  {
220
203
  browser .setBrowserOption ("PrimitiveQuality", "LOW");
221
204
  browser .getNotification () ._string = _("Primitive Quality") + ": " + _("low");
222
- }
223
- .bind (this),
205
+ },
224
206
  },
225
207
  },
226
208
  },
@@ -235,12 +217,11 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
235
217
  radio: "texture-quality",
236
218
  selected: browser .getBrowserOption ("TextureQuality") === "HIGH",
237
219
  events: {
238
- click: function ()
220
+ click: () =>
239
221
  {
240
222
  browser .setBrowserOption ("TextureQuality", "HIGH");
241
223
  browser .getNotification () ._string = _("Texture Quality") + ": " + _("high");
242
- }
243
- .bind (this),
224
+ },
244
225
  },
245
226
  },
246
227
  "medium": {
@@ -249,12 +230,11 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
249
230
  radio: "texture-quality",
250
231
  selected: browser .getBrowserOption ("TextureQuality") === "MEDIUM",
251
232
  events: {
252
- click: function ()
233
+ click: () =>
253
234
  {
254
235
  browser .setBrowserOption ("TextureQuality", "MEDIUM");
255
236
  browser .getNotification () ._string = _("Texture Quality") + ": " + _("medium");
256
- }
257
- .bind (this),
237
+ },
258
238
  },
259
239
  },
260
240
  "low": {
@@ -263,12 +243,11 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
263
243
  radio: "texture-quality",
264
244
  selected: browser .getBrowserOption ("TextureQuality") === "LOW",
265
245
  events: {
266
- click: function ()
246
+ click: () =>
267
247
  {
268
248
  browser .setBrowserOption ("TextureQuality", "LOW");
269
249
  browser .getNotification () ._string = _("Texture Quality") + ": " + _("low");
270
- }
271
- .bind (this),
250
+ },
272
251
  },
273
252
  },
274
253
  },
@@ -283,12 +262,11 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
283
262
  radio: "shading",
284
263
  selected: browser .getBrowserOption ("Shading") === "POINT",
285
264
  events: {
286
- click: function ()
265
+ click: () =>
287
266
  {
288
267
  browser .setBrowserOption ("Shading", "POINT");
289
268
  browser .getNotification () ._string = _("Shading") + ": " + _("Points");
290
- }
291
- .bind (this),
269
+ },
292
270
  },
293
271
  },
294
272
  "wireframe": {
@@ -297,12 +275,11 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
297
275
  radio: "shading",
298
276
  selected: browser .getBrowserOption ("Shading") === "WIREFRAME",
299
277
  events: {
300
- click: function ()
278
+ click: () =>
301
279
  {
302
280
  browser .setBrowserOption ("Shading", "WIREFRAME");
303
281
  browser .getNotification () ._string = _("Shading") + ": " + _("Wireframe");
304
- }
305
- .bind (this),
282
+ },
306
283
  },
307
284
  },
308
285
  "flat": {
@@ -311,12 +288,11 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
311
288
  radio: "shading",
312
289
  selected: browser .getBrowserOption ("Shading") === "FLAT",
313
290
  events: {
314
- click: function ()
291
+ click: () =>
315
292
  {
316
293
  browser .setBrowserOption ("Shading", "FLAT");
317
294
  browser .getNotification () ._string = _("Shading") + ": " + _("Flat");
318
- }
319
- .bind (this),
295
+ },
320
296
  },
321
297
  },
322
298
  "gouraud": {
@@ -325,12 +301,11 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
325
301
  radio: "shading",
326
302
  selected: browser .getBrowserOption ("Shading") === "GOURAUD",
327
303
  events: {
328
- click: function ()
304
+ click: () =>
329
305
  {
330
306
  browser .setBrowserOption ("Shading", "GOURAUD");
331
307
  browser .getNotification () ._string = _("Shading") + ": " + _("Gouraud");
332
- }
333
- .bind (this),
308
+ },
334
309
  },
335
310
  },
336
311
  "phong": {
@@ -339,12 +314,11 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
339
314
  radio: "shading",
340
315
  selected: browser .getBrowserOption ("Shading") === "PHONG",
341
316
  events: {
342
- click: function ()
317
+ click: () =>
343
318
  {
344
319
  browser .setBrowserOption ("Shading", "PHONG");
345
320
  browser .getNotification () ._string = _("Shading") + ": " + _("Phong");
346
- }
347
- .bind (this),
321
+ },
348
322
  },
349
323
  },
350
324
  },
@@ -355,12 +329,11 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
355
329
  type: "checkbox",
356
330
  selected: browser .getBrowserOption ("Timings"),
357
331
  events: {
358
- click: function (event)
332
+ click: (event) =>
359
333
  {
360
334
  browser .setBrowserOption ("Timings", $(event .target) .is (":checked"));
361
335
  browser .getSurface () .focus ();
362
- }
363
- .bind (this),
336
+ },
364
337
  },
365
338
  },
366
339
  "fullscreen": {
@@ -368,11 +341,10 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
368
341
  className: "context-menu-icon " + (fullscreen
369
342
  ? "x_ite-private-icon-leave-fullscreen"
370
343
  : "x_ite-private-icon-enter-fullscreen"),
371
- callback: function ()
344
+ callback: () =>
372
345
  {
373
346
  browser .getElement () .toggleFullScreen ();
374
- }
375
- .bind (this),
347
+ },
376
348
  },
377
349
  "separator3": "--------",
378
350
  },
@@ -385,7 +357,7 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
385
357
  "world-info": {
386
358
  name: _("Show World Info"),
387
359
  className: "context-menu-icon x_ite-private-icon-world-info",
388
- callback: function ()
360
+ callback ()
389
361
  {
390
362
  browser .getShadow () .find (".x_ite-private-world-info") .remove ();
391
363
 
@@ -426,7 +398,7 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
426
398
  "about": {
427
399
  name: _("About X_ITE"),
428
400
  className: "context-menu-icon x_ite-private-icon-help-about",
429
- callback: function ()
401
+ callback ()
430
402
  {
431
403
  window .open (browser .getProviderUrl ());
432
404
  },
@@ -460,7 +432,7 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
460
432
 
461
433
  return menu;
462
434
  },
463
- getViewpoints: function ()
435
+ getViewpoints ()
464
436
  {
465
437
  const
466
438
  browser = this .getBrowser (),
@@ -488,12 +460,11 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
488
460
 
489
461
  const item = {
490
462
  name: description,
491
- callback: function (viewpoint)
463
+ callback: () =>
492
464
  {
493
465
  browser .bindViewpoint (browser .getActiveLayer (), viewpoint);
494
466
  browser .getSurface () .focus ();
495
- }
496
- .bind (this, viewpoint),
467
+ },
497
468
  };
498
469
 
499
470
  if (viewpoint === currentViewpoint)
@@ -504,7 +475,7 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
504
475
 
505
476
  return menu;
506
477
  },
507
- getAvailableViewers: function ()
478
+ getAvailableViewers ()
508
479
  {
509
480
  const
510
481
  browser = this .getBrowser (),
@@ -517,13 +488,12 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
517
488
  menu [viewer] = {
518
489
  name: _(this .getViewerName (viewer)),
519
490
  className: "context-menu-icon x_ite-private-icon-" + viewer .toLowerCase () + "-viewer",
520
- callback: function (viewer)
491
+ callback: () =>
521
492
  {
522
493
  browser ._viewer = viewer;
523
494
  browser .getNotification () ._string = _(this .getViewerName (viewer));
524
495
  browser .getSurface () .focus ();
525
- }
526
- .bind (this, viewer),
496
+ },
527
497
  };
528
498
 
529
499
  if (viewer === currentViewer)
@@ -532,7 +502,7 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
532
502
 
533
503
  return menu;
534
504
  },
535
- getViewerName: function (viewer)
505
+ getViewerName (viewer)
536
506
  {
537
507
  switch (viewer)
538
508
  {
@@ -550,17 +520,17 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
550
520
  return _("None Viewer");
551
521
  }
552
522
  },
553
- init: function (options)
523
+ init (options)
554
524
  {
555
525
  this .show = this .createRoot .bind (this, options);
556
526
 
557
527
  options .element .on ("contextmenu", this .show);
558
528
  },
559
- show: function (event)
529
+ show (event)
560
530
  { },
561
- hide: function (event)
531
+ hide (event)
562
532
  { },
563
- createRoot: function (options, event)
533
+ createRoot (options, event)
564
534
  {
565
535
  const
566
536
  menu = options .build (event),
@@ -575,7 +545,7 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
575
545
  .addClass (menu .className)
576
546
  .appendTo (options .appendTo);
577
547
 
578
- const hide = this .hide = function ()
548
+ const hide = this .hide = () =>
579
549
  {
580
550
  delete this .hide;
581
551
 
@@ -590,8 +560,7 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
590
560
  });
591
561
 
592
562
  return false;
593
- }
594
- .bind (this);
563
+ };
595
564
 
596
565
  // Menu
597
566
 
@@ -669,7 +638,7 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
669
638
 
670
639
  return false;
671
640
  },
672
- createItem: function (item, parent, key, level, hide)
641
+ createItem (item, parent, key, level, hide)
673
642
  {
674
643
  const li = $("<li></li>") .addClass ("context-menu-item");
675
644
 
@@ -748,4 +717,13 @@ ContextMenu .prototype = Object .assign (Object .create (X3DBaseNode .prototype)
748
717
  },
749
718
  });
750
719
 
720
+ Object .defineProperties (ContextMenu,
721
+ {
722
+ typeName:
723
+ {
724
+ value: "ContextMenu",
725
+ enumerable: true,
726
+ },
727
+ });
728
+
751
729
  export default ContextMenu;
@@ -68,18 +68,9 @@ function Notification (executionContext)
68
68
  this .addChildObjects ("string", new SFString ());
69
69
  }
70
70
 
71
- Notification .prototype = Object .assign (Object .create (X3DBaseNode .prototype),
71
+ Object .assign (Object .setPrototypeOf (Notification .prototype, X3DBaseNode .prototype),
72
72
  {
73
- constructor: Notification,
74
- getTypeName: function ()
75
- {
76
- return "Notification";
77
- },
78
- getComponentName: function ()
79
- {
80
- return "X_ITE";
81
- },
82
- initialize: function ()
73
+ initialize ()
83
74
  {
84
75
  X3DBaseNode .prototype .initialize .call (this);
85
76
 
@@ -93,7 +84,7 @@ Notification .prototype = Object .assign (Object .create (X3DBaseNode .prototype
93
84
 
94
85
  this ._string .addInterest ("set_string__", this);
95
86
  },
96
- set_string__: function ()
87
+ set_string__ ()
97
88
  {
98
89
  if (! this .getBrowser () .getBrowserOption ("Notifications"))
99
90
  return;
@@ -113,4 +104,13 @@ Notification .prototype = Object .assign (Object .create (X3DBaseNode .prototype
113
104
  },
114
105
  });
115
106
 
107
+ Object .defineProperties (Notification,
108
+ {
109
+ typeName:
110
+ {
111
+ value: "Notification",
112
+ enumerable: true,
113
+ },
114
+ });
115
+
116
116
  export default Notification;