x_ite 8.8.2 → 8.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/dist/assets/components/Annotation.js +13 -13
  2. package/dist/assets/components/Annotation.min.js +1 -1
  3. package/dist/assets/components/CADGeometry.js +13 -13
  4. package/dist/assets/components/CADGeometry.min.js +1 -1
  5. package/dist/assets/components/CubeMapTexturing.js +29 -29
  6. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  7. package/dist/assets/components/DIS.js +13 -13
  8. package/dist/assets/components/DIS.min.js +1 -1
  9. package/dist/assets/components/EventUtilities.js +9 -9
  10. package/dist/assets/components/EventUtilities.min.js +1 -1
  11. package/dist/assets/components/Geometry2D.js +22 -22
  12. package/dist/assets/components/Geometry2D.min.js +1 -1
  13. package/dist/assets/components/Geospatial.js +48 -48
  14. package/dist/assets/components/Geospatial.min.js +1 -1
  15. package/dist/assets/components/HAnim.js +19 -19
  16. package/dist/assets/components/HAnim.min.js +1 -1
  17. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  18. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  19. package/dist/assets/components/Layout.js +32 -32
  20. package/dist/assets/components/Layout.min.js +1 -1
  21. package/dist/assets/components/NURBS.js +35 -35
  22. package/dist/assets/components/NURBS.min.js +1 -1
  23. package/dist/assets/components/ParticleSystems.js +33 -33
  24. package/dist/assets/components/ParticleSystems.min.js +1 -1
  25. package/dist/assets/components/Picking.js +32 -35
  26. package/dist/assets/components/Picking.min.js +1 -1
  27. package/dist/assets/components/RigidBodyPhysics.js +47 -56
  28. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  29. package/dist/assets/components/Scripting.js +46 -56
  30. package/dist/assets/components/Scripting.min.js +1 -1
  31. package/dist/assets/components/Text.js +26 -26
  32. package/dist/assets/components/Text.min.js +1 -1
  33. package/dist/assets/components/TextureProjector.js +16 -16
  34. package/dist/assets/components/TextureProjector.min.js +1 -1
  35. package/dist/assets/components/Texturing3D.js +37 -37
  36. package/dist/assets/components/Texturing3D.min.js +1 -1
  37. package/dist/assets/components/VolumeRendering.js +18 -18
  38. package/dist/assets/components/VolumeRendering.min.js +1 -1
  39. package/dist/assets/components/X_ITE.js +9 -9
  40. package/dist/assets/components/X_ITE.min.js +1 -1
  41. package/dist/x_ite.css +1 -1
  42. package/dist/x_ite.js +1762 -1827
  43. package/dist/x_ite.min.js +1 -1
  44. package/dist/x_ite.zip +0 -0
  45. package/docs/_config.yml +1 -1
  46. package/package.json +2 -2
  47. package/src/bookmarks.js +1 -1
  48. package/src/lib/jquery.js +8 -0
  49. package/src/lib/nurbs/src/utils/create-accessors.js +4 -4
  50. package/src/lib/nurbs/src/utils/variable.js +1 -1
  51. package/src/shim.js +1 -1
  52. package/src/standard/Math/Algorithms/Bezier.js +2 -2
  53. package/src/standard/Math/Geometry/Box2.js +4 -4
  54. package/src/standard/Math/Geometry/Box3.js +8 -8
  55. package/src/standard/Math/Geometry/Camera.js +1 -1
  56. package/src/standard/Math/Geometry/Line2.js +2 -2
  57. package/src/standard/Math/Geometry/Line3.js +4 -4
  58. package/src/standard/Math/Geometry/Sphere3.js +1 -1
  59. package/src/standard/Math/Geometry/Triangle3.js +2 -2
  60. package/src/standard/Math/Geometry/ViewVolume.js +10 -10
  61. package/src/standard/Math/Numbers/Matrix2.js +2 -2
  62. package/src/standard/Math/Numbers/Matrix3.js +10 -10
  63. package/src/standard/Math/Numbers/Matrix4.js +12 -12
  64. package/src/standard/Math/Numbers/Quaternion.js +2 -2
  65. package/src/standard/Math/Numbers/Rotation4.js +2 -2
  66. package/src/standard/Math/Numbers/Vector3.js +1 -1
  67. package/src/standard/Utility/MapUtilities.js +2 -2
  68. package/src/x_ite/Base/Events.js +6 -33
  69. package/src/x_ite/Base/FieldArray.js +1 -1
  70. package/src/x_ite/Base/FieldDefinitionArray.js +1 -1
  71. package/src/x_ite/Base/X3DArrayField.js +1 -1
  72. package/src/x_ite/Base/X3DBaseNode.js +58 -69
  73. package/src/x_ite/Base/X3DChildObject.js +46 -14
  74. package/src/x_ite/Base/X3DConstants.js +1 -1
  75. package/src/x_ite/Base/X3DField.js +4 -6
  76. package/src/x_ite/Base/X3DFieldDefinition.js +1 -1
  77. package/src/x_ite/Base/X3DInfoArray.js +1 -1
  78. package/src/x_ite/Base/X3DObject.js +5 -5
  79. package/src/x_ite/Base/X3DObjectArrayField.js +1 -1
  80. package/src/x_ite/Base/X3DTypedArrayField.js +1 -1
  81. package/src/x_ite/Browser/Core/BrowserOptions.js +7 -3
  82. package/src/x_ite/Browser/Core/BrowserTimings.js +1 -1
  83. package/src/x_ite/Browser/Core/ContextMenu.js +1 -12
  84. package/src/x_ite/Browser/Core/X3DCoreContext.js +1 -2
  85. package/src/x_ite/Browser/Geometry2D/Disk2DOptions.js +1 -1
  86. package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator.js +2 -2
  87. package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +1 -1
  88. package/src/x_ite/Browser/Interpolation/SquatInterpolator.js +1 -1
  89. package/src/x_ite/Browser/Layout/ScreenText.js +4 -4
  90. package/src/x_ite/Browser/Layout/X3DLayoutContext.js +1 -1
  91. package/src/x_ite/Browser/NURBS/NURBS.js +3 -3
  92. package/src/x_ite/Browser/Navigation/ExamineViewer.js +9 -13
  93. package/src/x_ite/Browser/Navigation/LookAtViewer.js +4 -7
  94. package/src/x_ite/Browser/Navigation/WalkViewer.js +1 -1
  95. package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +5 -6
  96. package/src/x_ite/Browser/Navigation/X3DViewer.js +2 -2
  97. package/src/x_ite/Browser/Networking/URLs.js +17 -9
  98. package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +0 -2
  99. package/src/x_ite/Browser/Picking/VolumePicker.js +2 -2
  100. package/src/x_ite/Browser/Text/PolygonText.js +2 -2
  101. package/src/x_ite/Browser/Texturing3D/DICOMParser.js +3 -3
  102. package/src/x_ite/Browser/Texturing3D/NRRDParser.js +2 -2
  103. package/src/x_ite/Browser/Time/X3DTimeContext.js +1 -1
  104. package/src/x_ite/Browser/VERSION.js +1 -1
  105. package/src/x_ite/Browser/X3DBrowser.js +148 -67
  106. package/src/x_ite/Browser/X3DBrowserContext.js +52 -16
  107. package/src/x_ite/Components/Core/X3DNode.js +21 -2
  108. package/src/x_ite/Components/Core/X3DPrototypeInstance.js +38 -42
  109. package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +2 -2
  110. package/src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js +1 -1
  111. package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +4 -4
  112. package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +1 -1
  113. package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +2 -2
  114. package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +2 -2
  115. package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +1 -1
  116. package/src/x_ite/Components/Followers/X3DFollowerNode.js +1 -1
  117. package/src/x_ite/Components/Geometry2D/ArcClose2D.js +1 -1
  118. package/src/x_ite/Components/Geometry2D/Rectangle2D.js +1 -1
  119. package/src/x_ite/Components/Geometry3D/Box.js +1 -1
  120. package/src/x_ite/Components/Geometry3D/Extrusion.js +3 -3
  121. package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +3 -3
  122. package/src/x_ite/Components/Geospatial/GeoCoordinate.js +6 -6
  123. package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +1 -1
  124. package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +1 -1
  125. package/src/x_ite/Components/Geospatial/GeoViewpoint.js +7 -7
  126. package/src/x_ite/Components/Grouping/StaticGroup.js +1 -1
  127. package/src/x_ite/Components/Grouping/X3DBoundedObject.js +2 -2
  128. package/src/x_ite/Components/HAnim/HAnimHumanoid.js +1 -1
  129. package/src/x_ite/Components/Interpolation/ColorInterpolator.js +1 -1
  130. package/src/x_ite/Components/Interpolation/NormalInterpolator.js +1 -1
  131. package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +1 -1
  132. package/src/x_ite/Components/Interpolation/PositionInterpolator.js +1 -1
  133. package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +1 -1
  134. package/src/x_ite/Components/Layering/X3DLayerNode.js +1 -1
  135. package/src/x_ite/Components/Lighting/X3DLightNode.js +1 -1
  136. package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +1 -1
  137. package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +2 -2
  138. package/src/x_ite/Components/Navigation/Billboard.js +1 -1
  139. package/src/x_ite/Components/Navigation/LOD.js +2 -2
  140. package/src/x_ite/Components/Navigation/OrthoViewpoint.js +1 -1
  141. package/src/x_ite/Components/Navigation/Viewpoint.js +1 -1
  142. package/src/x_ite/Components/Navigation/X3DViewpointNode.js +3 -3
  143. package/src/x_ite/Components/Networking/Inline.js +0 -4
  144. package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +1 -1
  145. package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +2 -2
  146. package/src/x_ite/Components/ParticleSystems/PointEmitter.js +1 -1
  147. package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +2 -2
  148. package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +1 -1
  149. package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +2 -2
  150. package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +1 -1
  151. package/src/x_ite/Components/Picking/LinePickSensor.js +1 -1
  152. package/src/x_ite/Components/Picking/PickableGroup.js +1 -1
  153. package/src/x_ite/Components/Picking/PointPickSensor.js +2 -2
  154. package/src/x_ite/Components/Picking/PrimitivePickSensor.js +1 -1
  155. package/src/x_ite/Components/Picking/VolumePickSensor.js +1 -1
  156. package/src/x_ite/Components/Picking/X3DPickSensorNode.js +6 -9
  157. package/src/x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode.js +1 -1
  158. package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +1 -1
  159. package/src/x_ite/Components/Rendering/X3DCoordinateNode.js +2 -2
  160. package/src/x_ite/Components/Rendering/X3DGeometryNode.js +8 -11
  161. package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +2 -2
  162. package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +2 -2
  163. package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +3 -3
  164. package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +1 -1
  165. package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +5 -14
  166. package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +3 -3
  167. package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +9 -9
  168. package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +1 -1
  169. package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +3 -3
  170. package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +1 -1
  171. package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js +1 -1
  172. package/src/x_ite/Components/Scripting/Script.js +9 -19
  173. package/src/x_ite/Components/Shaders/ShaderPart.js +2 -2
  174. package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +385 -382
  175. package/src/x_ite/Components/Shape/Appearance.js +1 -1
  176. package/src/x_ite/Components/Shape/Material.js +1 -1
  177. package/src/x_ite/Components/Shape/PhysicalMaterial.js +1 -1
  178. package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +1 -1
  179. package/src/x_ite/Components/Sound/Sound.js +2 -2
  180. package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +2 -2
  181. package/src/x_ite/Components/Texturing/MultiTexture.js +3 -3
  182. package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +1 -1
  183. package/src/x_ite/Components/Texturing/TextureProperties.js +4 -4
  184. package/src/x_ite/Components/Texturing/TextureTransform.js +1 -1
  185. package/src/x_ite/Components/Texturing/X3DSingleTextureNode.js +2 -2
  186. package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +1 -1
  187. package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +1 -1
  188. package/src/x_ite/Components.js +1 -20
  189. package/src/x_ite/Configuration/AbstractNodesArray.js +1 -1
  190. package/src/x_ite/Configuration/ComponentInfo.js +1 -1
  191. package/src/x_ite/Configuration/ComponentInfoArray.js +1 -1
  192. package/src/x_ite/Configuration/ConcreteNodesArray.js +1 -1
  193. package/src/x_ite/Configuration/ProfileInfo.js +1 -1
  194. package/src/x_ite/Configuration/ProfileInfoArray.js +1 -1
  195. package/src/x_ite/Configuration/UnitInfo.js +1 -1
  196. package/src/x_ite/Configuration/UnitInfoArray.js +1 -1
  197. package/src/x_ite/Execution/BindableList.js +1 -1
  198. package/src/x_ite/Execution/BindableStack.js +1 -1
  199. package/src/x_ite/Execution/ExportedNodesArray.js +1 -1
  200. package/src/x_ite/Execution/ImportedNodesArray.js +1 -1
  201. package/src/x_ite/Execution/NamedNodesArray.js +1 -1
  202. package/src/x_ite/Execution/X3DExecutionContext.js +9 -11
  203. package/src/x_ite/Execution/X3DExportedNode.js +1 -1
  204. package/src/x_ite/Execution/X3DImportedNode.js +1 -1
  205. package/src/x_ite/Execution/X3DScene.js +2 -6
  206. package/src/x_ite/Execution/X3DWorld.js +1 -2
  207. package/src/x_ite/{Browser/Networking/Features.js → Features.js} +9 -2
  208. package/src/x_ite/Fields/ArrayFields.js +9 -51
  209. package/src/x_ite/Fields/SFBool.js +1 -1
  210. package/src/x_ite/Fields/SFColor.js +2 -2
  211. package/src/x_ite/Fields/SFColorRGBA.js +2 -2
  212. package/src/x_ite/Fields/SFDouble.js +1 -1
  213. package/src/x_ite/Fields/SFFloat.js +1 -1
  214. package/src/x_ite/Fields/SFImage.js +2 -2
  215. package/src/x_ite/Fields/SFInt32.js +1 -1
  216. package/src/x_ite/Fields/SFMatrix3.js +1 -1
  217. package/src/x_ite/Fields/SFMatrix4.js +1 -1
  218. package/src/x_ite/Fields/SFNode.js +3 -25
  219. package/src/x_ite/Fields/SFNodeCache.js +24 -3
  220. package/src/x_ite/Fields/SFRotation.js +1 -1
  221. package/src/x_ite/Fields/SFString.js +1 -1
  222. package/src/x_ite/Fields/SFTime.js +1 -1
  223. package/src/x_ite/Fields/SFVec2.js +1 -1
  224. package/src/x_ite/Fields/SFVec3.js +1 -1
  225. package/src/x_ite/Fields/SFVec4.js +1 -1
  226. package/src/x_ite/InputOutput/FileLoader.js +1 -1
  227. package/src/x_ite/InputOutput/Generator.js +8 -8
  228. package/src/x_ite/Parser/GLTF2Parser.js +5 -5
  229. package/src/x_ite/Parser/HTMLSupport.js +3 -0
  230. package/src/x_ite/Parser/SVGParser.js +2 -2
  231. package/src/x_ite/Parser/VRMLParser.js +1 -1
  232. package/src/x_ite/Parser/XMLParser.js +1 -1
  233. package/src/x_ite/Prototype/ExternProtoDeclarationArray.js +1 -1
  234. package/src/x_ite/Prototype/ProtoDeclarationArray.js +1 -1
  235. package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +1 -3
  236. package/src/x_ite/Prototype/X3DProtoDeclaration.js +1 -2
  237. package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +1 -2
  238. package/src/x_ite/Rendering/DependentRenderer.js +1 -1
  239. package/src/x_ite/Rendering/TextureBuffer.js +2 -2
  240. package/src/x_ite/Rendering/X3DRenderObject.js +11 -11
  241. package/src/x_ite/Routing/RouteArray.js +1 -1
  242. package/src/x_ite/Routing/X3DRoute.js +1 -1
  243. package/src/x_ite/X3D.js +2 -2
  244. package/src/x_ite.html +3 -3
  245. package/x_ite.min.html +3 -3
  246. package/src/x_ite/Base/X3DEventObject.js +0 -115
package/dist/x_ite.zip CHANGED
Binary file
package/docs/_config.yml CHANGED
@@ -20,7 +20,7 @@ timezone:
20
20
  # ↓ --------------------------
21
21
 
22
22
  title: X_ITE X3D Browser # the main title
23
- version: 8.8.2 # x_ite latest version
23
+ version: 8.8.4 # x_ite latest version
24
24
  size: 283 # size in kb
25
25
  x3d_latest_version: 4.0 # x3d latest version
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x_ite",
3
- "version": "8.8.2",
3
+ "version": "8.8.4",
4
4
  "description": "X_ITE X3D Browser, view and manipulate X3D and VRML scenes in HTML.",
5
5
  "homepage": "https://create3000.github.io/x_ite/",
6
6
  "author": "Holger Seelig <holger.seelig@gmail.com>",
@@ -71,7 +71,7 @@
71
71
  "opentype.js": "^1.3.4",
72
72
  "pako": "^2.1.0",
73
73
  "string-replace-webpack-plugin": "^0.1.3",
74
- "webpack": "^5.86.0",
74
+ "webpack": "^5.87.0",
75
75
  "webpack-cli": "^5.1.4",
76
76
  "webpack-shell-plugin-next": "^2.3.1"
77
77
  },
package/src/bookmarks.js CHANGED
@@ -46,7 +46,7 @@
46
46
  ******************************************************************************/
47
47
 
48
48
 
49
- const Bookmarks = (function ()
49
+ const Bookmarks = (() =>
50
50
  {
51
51
  "use strict";
52
52
 
package/src/lib/jquery.js CHANGED
@@ -32,6 +32,14 @@ Object .assign ($,
32
32
  },
33
33
  });
34
34
 
35
+ // // decorator: @iffe fn (... args) { return function () { }; }
36
+ // function iife (target, key, descriptor)
37
+ // {
38
+ // descriptor .value = descriptor .value ();
39
+
40
+ // return descriptor;
41
+ // }
42
+
35
43
  Object .assign ($.fn,
36
44
  {
37
45
  isInViewport ()
@@ -39,7 +39,7 @@ function createAccessor (name, data)
39
39
  {
40
40
  case inferType .ARRAY_OF_OBJECTS:
41
41
  {
42
- return wrapAccessor (function (accessors)
42
+ return wrapAccessor (accessors =>
43
43
  {
44
44
  var e = accessors .pop ();
45
45
 
@@ -48,21 +48,21 @@ function createAccessor (name, data)
48
48
  }
49
49
  case inferType .ARRAY_OF_ARRAYS:
50
50
  {
51
- return wrapAccessor (function (accessors)
51
+ return wrapAccessor (accessors =>
52
52
  {
53
53
  return name + "[" + accessors .join ("][") + "]";
54
54
  });
55
55
  }
56
56
  case inferType .GENERIC_NDARRAY:
57
57
  {
58
- return wrapAccessor(function (accessors)
58
+ return wrapAccessor (accessors =>
59
59
  {
60
60
  return name + ".get(" + accessors.join(",") + ")";
61
61
  });
62
62
  }
63
63
  case inferType .NDARRAY:
64
64
  {
65
- return wrapAccessor(function (accessors)
65
+ return wrapAccessor (accessors =>
66
66
  {
67
67
  var code = [name + "Offset"];
68
68
 
@@ -18,7 +18,7 @@ var createVariable = function createVariable (name, nurbs) {
18
18
 
19
19
  createVariable.sum = function (parts) {
20
20
  parts = Array.isArray(parts) ? parts : [parts];
21
- parts = parts.filter(function (part) { return part !== undefined && part !== 0; });
21
+ parts = parts.filter(part => part !== undefined && part !== 0);
22
22
  if (parts.length === 0) parts.push(0);
23
23
  return parts.join(" + ");
24
24
  };
package/src/shim.js CHANGED
@@ -45,7 +45,7 @@
45
45
  *
46
46
  ******************************************************************************/
47
47
 
48
- (function ()
48
+ (() =>
49
49
  {
50
50
  // Added at February 2022
51
51
  // https://github.com/tc39/proposal-relative-indexing-method#polyfill
@@ -58,7 +58,7 @@ const { interval } = Algorithm;
58
58
 
59
59
  const Bezier =
60
60
  {
61
- quadric: (function ()
61
+ quadric: (() =>
62
62
  {
63
63
  const
64
64
  c = new Matrix3 (1, 0, 0, -2, 2, 0, 1, -2, 1),
@@ -77,7 +77,7 @@ const Bezier =
77
77
  }
78
78
  };
79
79
  })(),
80
- cubic: (function ()
80
+ cubic: (() =>
81
81
  {
82
82
  const
83
83
  v = new Vector4 (0, 0, 0, 0),
@@ -117,7 +117,7 @@ Object .assign (Box2 .prototype,
117
117
  {
118
118
  return this .matrix [8] === 0;
119
119
  },
120
- add: (function ()
120
+ add: (() =>
121
121
  {
122
122
  const
123
123
  lhs_min = new Vector2 (0, 0),
@@ -156,7 +156,7 @@ Object .assign (Box2 .prototype,
156
156
  min .add (this .center);
157
157
  max .add (this .center);
158
158
  },
159
- getAbsoluteExtents: (function ()
159
+ getAbsoluteExtents: (() =>
160
160
  {
161
161
  const p1 = new Vector2 (0, 0);
162
162
 
@@ -181,7 +181,7 @@ Object .assign (Box2 .prototype,
181
181
  max .max (p1, p2);
182
182
  };
183
183
  })(),
184
- containsPoint: (function ()
184
+ containsPoint: (() =>
185
185
  {
186
186
  const
187
187
  min = new Vector2 (0, 0),
@@ -219,7 +219,7 @@ Object .defineProperties (Box2 .prototype,
219
219
  {
220
220
  size:
221
221
  {
222
- get: (function ()
222
+ get: (() =>
223
223
  {
224
224
  const
225
225
  min = new Vector2 (0, 0),
@@ -131,7 +131,7 @@ Object .assign (Box3 .prototype,
131
131
  min .add (this .center);
132
132
  max .add (this .center);
133
133
  },
134
- getAbsoluteExtents: (function ()
134
+ getAbsoluteExtents: (() =>
135
135
  {
136
136
  const
137
137
  r1 = new Vector3 (0, 0, 0),
@@ -169,7 +169,7 @@ Object .assign (Box3 .prototype,
169
169
  max .max (p1, p2, p3, p4);
170
170
  };
171
171
  })(),
172
- getPoints: (function ()
172
+ getPoints: (() =>
173
173
  {
174
174
  const
175
175
  x = new Vector3 (0, 0, 0),
@@ -236,7 +236,7 @@ Object .assign (Box3 .prototype,
236
236
 
237
237
  return axes;
238
238
  },
239
- getNormals: (function ()
239
+ getNormals: (() =>
240
240
  {
241
241
  const
242
242
  x = new Vector3 (0, 0, 0),
@@ -354,7 +354,7 @@ Object .assign (Box3 .prototype,
354
354
  {
355
355
  return this .matrix [15] === 0;
356
356
  },
357
- add: (function ()
357
+ add: (() =>
358
358
  {
359
359
  const
360
360
  lhs_min = new Vector3 (0, 0, 0),
@@ -386,7 +386,7 @@ Object .assign (Box3 .prototype,
386
386
  this .matrix .multRight (matrix);
387
387
  return this;
388
388
  },
389
- containsPoint: (function ()
389
+ containsPoint: (() =>
390
390
  {
391
391
  const
392
392
  min = new Vector3 (0, 0, 0),
@@ -404,7 +404,7 @@ Object .assign (Box3 .prototype,
404
404
  max .z >= point .z;
405
405
  };
406
406
  })(),
407
- intersectsBox: (function ()
407
+ intersectsBox: (() =>
408
408
  {
409
409
  const points1 = [
410
410
  new Vector3 (0, 0, 0),
@@ -506,7 +506,7 @@ Object .assign (Box3 .prototype,
506
506
  return true;
507
507
  };
508
508
  })(),
509
- intersectsTriangle: (function ()
509
+ intersectsTriangle: (() =>
510
510
  {
511
511
  const points1 = [
512
512
  new Vector3 (0, 0, 0),
@@ -627,7 +627,7 @@ Object .defineProperties (Box3 .prototype,
627
627
  {
628
628
  size:
629
629
  {
630
- get: (function ()
630
+ get: (() =>
631
631
  {
632
632
  const
633
633
  min = new Vector3 (0, 0, 0),
@@ -109,7 +109,7 @@ const Camera =
109
109
  0, 0, C, 0,
110
110
  D, E, F, 1);
111
111
  },
112
- orthoBox: (function ()
112
+ orthoBox: (() =>
113
113
  {
114
114
  const
115
115
  min = new Vector3 (0, 0, 0),
@@ -100,7 +100,7 @@ Object .assign (Line2 .prototype,
100
100
 
101
101
  return result .assign (this .direction) .multiply (d) .add (this .point);
102
102
  },
103
- getPerpendicularVectorToPoint: (function ()
103
+ getPerpendicularVectorToPoint: (() =>
104
104
  {
105
105
  const t = new Vector2 (0, 0);
106
106
 
@@ -111,7 +111,7 @@ Object .assign (Line2 .prototype,
111
111
  return result .subtract (t .assign (this .direction) .multiply (result .dot (this .direction)));
112
112
  };
113
113
  })(),
114
- intersectsLine: (function ()
114
+ intersectsLine: (() =>
115
115
  {
116
116
  const u = new Vector2 (0, 0);
117
117
 
@@ -100,7 +100,7 @@ Object .assign (Line3 .prototype,
100
100
 
101
101
  return result .assign (this .direction) .multiply (d) .add (this .point);
102
102
  },
103
- getClosestPointToLine: (function ()
103
+ getClosestPointToLine: (() =>
104
104
  {
105
105
  const u = new Vector3 (0, 0, 0);
106
106
 
@@ -123,7 +123,7 @@ Object .assign (Line3 .prototype,
123
123
  return true;
124
124
  };
125
125
  })(),
126
- getPerpendicularVectorToPoint: (function ()
126
+ getPerpendicularVectorToPoint: (() =>
127
127
  {
128
128
  const t = new Vector3 (0, 0, 0);
129
129
 
@@ -134,7 +134,7 @@ Object .assign (Line3 .prototype,
134
134
  return result .subtract (t .assign (this .direction) .multiply (result .dot (this .direction)));
135
135
  };
136
136
  })(),
137
- getPerpendicularVectorToLine: (function ()
137
+ getPerpendicularVectorToLine: (() =>
138
138
  {
139
139
  const
140
140
  d = new Vector3 (0, 0, 0),
@@ -162,7 +162,7 @@ Object .assign (Line3 .prototype,
162
162
  return bd .subtract (ad) .add (d);
163
163
  };
164
164
  })(),
165
- intersectsTriangle: (function ()
165
+ intersectsTriangle: (() =>
166
166
  {
167
167
  const
168
168
  pvec = new Vector3 (0, 0, 0),
@@ -99,7 +99,7 @@ Object .assign (Sphere3 .prototype,
99
99
  return false;
100
100
  }
101
101
  },
102
- intersectsTriangle: (function ()
102
+ intersectsTriangle: (() =>
103
103
  {
104
104
  const
105
105
  AB = new Vector3 (0, 0, 0),
@@ -49,7 +49,7 @@ import Vector3 from "../Numbers/Vector3.js";
49
49
 
50
50
  const Triangle3 =
51
51
  {
52
- area: (function ()
52
+ area: (() =>
53
53
  {
54
54
  const
55
55
  B = new Vector3 (0, 0, 0),
@@ -92,7 +92,7 @@ const Triangle3 =
92
92
 
93
93
  return normal .normalize ();
94
94
  },
95
- triangulatePolygon: (function ()
95
+ triangulatePolygon: (() =>
96
96
  {
97
97
  // Function called for each vertex of tesselator output.
98
98
 
@@ -118,7 +118,7 @@ function ViewVolume (projectionMatrix, viewport, scissor)
118
118
 
119
119
  Object .assign (ViewVolume .prototype,
120
120
  {
121
- set: (function ()
121
+ set: (() =>
122
122
  {
123
123
  const matrix = new Matrix4 ();
124
124
 
@@ -228,7 +228,7 @@ Object .assign (ViewVolume .prototype,
228
228
 
229
229
  return true;
230
230
  },
231
- intersectsBox: (function ()
231
+ intersectsBox: (() =>
232
232
  {
233
233
  const points1 = [
234
234
  new Vector3 (0, 0, 0),
@@ -301,7 +301,7 @@ Object .assign (ViewVolume .prototype,
301
301
 
302
302
  Object .assign (ViewVolume,
303
303
  {
304
- unProjectPoint: (function ()
304
+ unProjectPoint: (() =>
305
305
  {
306
306
  const invModelViewProjectionMatrix = new Matrix4 ();
307
307
 
@@ -310,7 +310,7 @@ Object .assign (ViewVolume,
310
310
  return this .unProjectPointMatrix (winx, winy, winz, invModelViewProjectionMatrix .assign (modelViewMatrix) .multRight (projectionMatrix) .inverse (), viewport, point);
311
311
  };
312
312
  })(),
313
- unProjectPointMatrix: (function ()
313
+ unProjectPointMatrix: (() =>
314
314
  {
315
315
  const vin = new Vector4 (0, 0, 0, 0);
316
316
 
@@ -330,7 +330,7 @@ Object .assign (ViewVolume,
330
330
  return point .set (vin .x * d, vin .y * d, vin .z * d, 1);
331
331
  };
332
332
  })(),
333
- unProjectRay: (function ()
333
+ unProjectRay: (() =>
334
334
  {
335
335
  const invModelViewProjectionMatrix = new Matrix4 ();
336
336
 
@@ -339,7 +339,7 @@ Object .assign (ViewVolume,
339
339
  return this .unProjectRayMatrix (winx, winy, invModelViewProjectionMatrix .assign (modelViewMatrix) .multRight (projectionMatrix) .inverse (), viewport, result);
340
340
  };
341
341
  })(),
342
- unProjectRayMatrix: (function ()
342
+ unProjectRayMatrix: (() =>
343
343
  {
344
344
  const
345
345
  near = new Vector3 (0, 0, 0),
@@ -353,7 +353,7 @@ Object .assign (ViewVolume,
353
353
  return result .setPoints (near, far);
354
354
  };
355
355
  })(),
356
- projectPoint: (function ()
356
+ projectPoint: (() =>
357
357
  {
358
358
  const vin = new Vector4 (0, 0, 0, 0);
359
359
 
@@ -373,7 +373,7 @@ Object .assign (ViewVolume,
373
373
  (vin .z * d + 0.5));
374
374
  };
375
375
  })(),
376
- projectPointMatrix: (function ()
376
+ projectPointMatrix: (() =>
377
377
  {
378
378
  const vin = new Vector4 (0, 0, 0, 0);
379
379
 
@@ -393,7 +393,7 @@ Object .assign (ViewVolume,
393
393
  (vin .z * d + 0.5));
394
394
  };
395
395
  })(),
396
- projectLine: (function ()
396
+ projectLine: (() =>
397
397
  {
398
398
  const modelViewProjectionMatrix = new Matrix4 ();
399
399
 
@@ -402,7 +402,7 @@ Object .assign (ViewVolume,
402
402
  return this .projectLineMatrix (line, modelViewProjectionMatrix .assign (modelViewMatrix) .multRight (projectionMatrix), viewport, result);
403
403
  };
404
404
  })(),
405
- projectLineMatrix: (function ()
405
+ projectLineMatrix: (() =>
406
406
  {
407
407
  const
408
408
  near = new Vector2 (0, 0),
@@ -236,7 +236,7 @@ Object .defineProperties (Matrix2 .prototype,
236
236
  length: { value: 4 },
237
237
  x:
238
238
  {
239
- get: (function ()
239
+ get: (() =>
240
240
  {
241
241
  const vector = new Vector2 (0, 0);
242
242
 
@@ -245,7 +245,7 @@ Object .defineProperties (Matrix2 .prototype,
245
245
  },
246
246
  y:
247
247
  {
248
- get: (function ()
248
+ get: (() =>
249
249
  {
250
250
  const vector = new Vector2 (0, 0);
251
251
 
@@ -112,7 +112,7 @@ Object .assign (Matrix3 .prototype,
112
112
  {
113
113
  return this [r * this .order + c];
114
114
  },
115
- set: (function ()
115
+ set: (() =>
116
116
  {
117
117
  const invCenter = new Vector2 (0, 0);
118
118
 
@@ -241,7 +241,7 @@ Object .assign (Matrix3 .prototype,
241
241
  return this;
242
242
  };
243
243
  })(),
244
- get: (function ()
244
+ get: (() =>
245
245
  {
246
246
  const
247
247
  dummyTranslation = new Vector2 (0, 0),
@@ -310,7 +310,7 @@ Object .assign (Matrix3 .prototype,
310
310
  }
311
311
  };
312
312
  })(),
313
- factor: (function ()
313
+ factor: (() =>
314
314
  {
315
315
  const
316
316
  si = new Matrix2 (),
@@ -579,7 +579,7 @@ Object .defineProperties (Matrix3 .prototype,
579
579
  length: { value: 9 },
580
580
  x:
581
581
  {
582
- get: (function ()
582
+ get: (() =>
583
583
  {
584
584
  const vector = new Vector3 (0, 0, 0);
585
585
 
@@ -588,7 +588,7 @@ Object .defineProperties (Matrix3 .prototype,
588
588
  },
589
589
  y:
590
590
  {
591
- get: (function ()
591
+ get: (() =>
592
592
  {
593
593
  const vector = new Vector3 (0, 0, 0);
594
594
 
@@ -597,7 +597,7 @@ Object .defineProperties (Matrix3 .prototype,
597
597
  },
598
598
  z:
599
599
  {
600
- get: (function ()
600
+ get: (() =>
601
601
  {
602
602
  const vector = new Vector3 (0, 0, 0);
603
603
 
@@ -606,7 +606,7 @@ Object .defineProperties (Matrix3 .prototype,
606
606
  },
607
607
  xAxis:
608
608
  {
609
- get: (function ()
609
+ get: (() =>
610
610
  {
611
611
  const vector = new Vector2 (0, 0);
612
612
 
@@ -615,7 +615,7 @@ Object .defineProperties (Matrix3 .prototype,
615
615
  },
616
616
  yAxis:
617
617
  {
618
- get: (function ()
618
+ get: (() =>
619
619
  {
620
620
  const vector = new Vector2 (0, 0);
621
621
 
@@ -624,7 +624,7 @@ Object .defineProperties (Matrix3 .prototype,
624
624
  },
625
625
  origin:
626
626
  {
627
- get: (function ()
627
+ get: (() =>
628
628
  {
629
629
  const vector = new Vector2 (0, 0);
630
630
 
@@ -633,7 +633,7 @@ Object .defineProperties (Matrix3 .prototype,
633
633
  },
634
634
  submatrix:
635
635
  {
636
- get: (function ()
636
+ get: (() =>
637
637
  {
638
638
  const matrix = new Matrix2 ();
639
639
 
@@ -117,7 +117,7 @@ Object .assign (Matrix4 .prototype,
117
117
  {
118
118
  return this [r * this .order + c];
119
119
  },
120
- set: (function ()
120
+ set: (() =>
121
121
  {
122
122
  const
123
123
  invScaleOrientation = new Rotation4 (),
@@ -248,7 +248,7 @@ Object .assign (Matrix4 .prototype,
248
248
  return this;
249
249
  };
250
250
  })(),
251
- get: (function ()
251
+ get: (() =>
252
252
  {
253
253
  const
254
254
  dummyTranslation = new Vector3 (0, 0, 0),
@@ -342,7 +342,7 @@ Object .assign (Matrix4 .prototype,
342
342
 
343
343
  return this;
344
344
  },
345
- factor: (function ()
345
+ factor: (() =>
346
346
  {
347
347
  const
348
348
  si = new Matrix3 (),
@@ -673,7 +673,7 @@ Object .defineProperties (Matrix4 .prototype,
673
673
  length: { value: 16 },
674
674
  x:
675
675
  {
676
- get: (function ()
676
+ get: (() =>
677
677
  {
678
678
  const vector = new Vector4 (0, 0, 0, 0);
679
679
 
@@ -682,7 +682,7 @@ Object .defineProperties (Matrix4 .prototype,
682
682
  },
683
683
  y:
684
684
  {
685
- get: (function ()
685
+ get: (() =>
686
686
  {
687
687
  const vector = new Vector4 (0, 0, 0, 0);
688
688
 
@@ -691,7 +691,7 @@ Object .defineProperties (Matrix4 .prototype,
691
691
  },
692
692
  z:
693
693
  {
694
- get: (function ()
694
+ get: (() =>
695
695
  {
696
696
  const vector = new Vector4 (0, 0, 0, 0);
697
697
 
@@ -700,7 +700,7 @@ Object .defineProperties (Matrix4 .prototype,
700
700
  },
701
701
  w:
702
702
  {
703
- get: (function ()
703
+ get: (() =>
704
704
  {
705
705
  const vector = new Vector4 (0, 0, 0, 0);
706
706
 
@@ -709,7 +709,7 @@ Object .defineProperties (Matrix4 .prototype,
709
709
  },
710
710
  xAxis:
711
711
  {
712
- get: (function ()
712
+ get: (() =>
713
713
  {
714
714
  const vector = new Vector3 (0, 0, 0);
715
715
 
@@ -718,7 +718,7 @@ Object .defineProperties (Matrix4 .prototype,
718
718
  },
719
719
  yAxis:
720
720
  {
721
- get: (function ()
721
+ get: (() =>
722
722
  {
723
723
  const vector = new Vector3 (0, 0, 0);
724
724
 
@@ -727,7 +727,7 @@ Object .defineProperties (Matrix4 .prototype,
727
727
  },
728
728
  zAxis:
729
729
  {
730
- get: (function ()
730
+ get: (() =>
731
731
  {
732
732
  const vector = new Vector3 (0, 0, 0);
733
733
 
@@ -736,7 +736,7 @@ Object .defineProperties (Matrix4 .prototype,
736
736
  },
737
737
  origin:
738
738
  {
739
- get: (function ()
739
+ get: (() =>
740
740
  {
741
741
  const vector = new Vector3 (0, 0, 0);
742
742
 
@@ -745,7 +745,7 @@ Object .defineProperties (Matrix4 .prototype,
745
745
  },
746
746
  submatrix:
747
747
  {
748
- get: (function ()
748
+ get: (() =>
749
749
  {
750
750
  const matrix = new Matrix3 ();
751
751
 
@@ -427,7 +427,7 @@ Object .defineProperties (Quaternion .prototype,
427
427
  },
428
428
  imag:
429
429
  {
430
- get: (function ()
430
+ get: (() =>
431
431
  {
432
432
  const result = new Vector3 (0, 0, 0);
433
433
 
@@ -444,7 +444,7 @@ Object .defineProperties (Quaternion .prototype,
444
444
  Object .assign (Quaternion,
445
445
  {
446
446
  Identity: new Quaternion (0, 0, 0, 1),
447
- spline: (function ()
447
+ spline: (() =>
448
448
  {
449
449
  const
450
450
  q0 = new Quaternion (0, 0, 0, 1),
@@ -176,7 +176,7 @@ Object .assign (Rotation4 .prototype,
176
176
  Math .cos (halfTheta));
177
177
  return this;
178
178
  },
179
- get: (function ()
179
+ get: (() =>
180
180
  {
181
181
  const result = new Vector4 (0, 0, 0, 0);
182
182
 
@@ -214,7 +214,7 @@ Object .assign (Rotation4 .prototype,
214
214
  {
215
215
  return this .set (axis .x, axis .y, axis .z, angle);
216
216
  },
217
- setFromToVec: (function ()
217
+ setFromToVec: (() =>
218
218
  {
219
219
  const
220
220
  from = new Vector3 (0, 0, 0),
@@ -204,7 +204,7 @@ Object .assign (Vector3 .prototype,
204
204
  this .z = z + t * (destination .z - z);
205
205
  return this;
206
206
  },
207
- slerp: (function ()
207
+ slerp: (() =>
208
208
  {
209
209
  const tmp = new Vector3 (0, 0, 0);
210
210
 
@@ -47,7 +47,7 @@
47
47
 
48
48
  const MapUtilities =
49
49
  {
50
- assign: (function ()
50
+ assign: (() =>
51
51
  {
52
52
  function callback (value, key)
53
53
  {
@@ -62,7 +62,7 @@ const MapUtilities =
62
62
  return m1;
63
63
  };
64
64
  })(),
65
- values: (function ()
65
+ values: (() =>
66
66
  {
67
67
  function callback (value)
68
68
  {