x_ite 10.3.0 → 10.3.1

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 (49) hide show
  1. package/README.md +4 -4
  2. package/dist/assets/components/AnnotationComponent.js +2 -2
  3. package/dist/assets/components/AnnotationComponent.min.js +2 -2
  4. package/dist/assets/components/CADGeometryComponent.js +2 -2
  5. package/dist/assets/components/CADGeometryComponent.min.js +2 -2
  6. package/dist/assets/components/CubeMapTexturingComponent.js +2 -2
  7. package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -2
  8. package/dist/assets/components/DISComponent.js +2 -2
  9. package/dist/assets/components/DISComponent.min.js +2 -2
  10. package/dist/assets/components/EventUtilitiesComponent.js +2 -2
  11. package/dist/assets/components/EventUtilitiesComponent.min.js +2 -2
  12. package/dist/assets/components/Geometry2DComponent.js +2 -2
  13. package/dist/assets/components/Geometry2DComponent.min.js +2 -2
  14. package/dist/assets/components/GeospatialComponent.js +2 -2
  15. package/dist/assets/components/GeospatialComponent.min.js +2 -2
  16. package/dist/assets/components/HAnimComponent.js +2 -2
  17. package/dist/assets/components/HAnimComponent.min.js +2 -2
  18. package/dist/assets/components/KeyDeviceSensorComponent.js +2 -2
  19. package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -2
  20. package/dist/assets/components/LayoutComponent.js +2 -2
  21. package/dist/assets/components/LayoutComponent.min.js +2 -2
  22. package/dist/assets/components/NURBSComponent.js +2 -2
  23. package/dist/assets/components/NURBSComponent.min.js +2 -2
  24. package/dist/assets/components/ParticleSystemsComponent.js +2 -2
  25. package/dist/assets/components/ParticleSystemsComponent.min.js +2 -2
  26. package/dist/assets/components/PickingComponent.js +2 -2
  27. package/dist/assets/components/PickingComponent.min.js +2 -2
  28. package/dist/assets/components/RigidBodyPhysicsComponent.js +2 -2
  29. package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -2
  30. package/dist/assets/components/ScriptingComponent.js +2 -2
  31. package/dist/assets/components/ScriptingComponent.min.js +2 -2
  32. package/dist/assets/components/TextComponent.js +4 -4
  33. package/dist/assets/components/TextComponent.min.js +2 -2
  34. package/dist/assets/components/TextureProjectionComponent.js +2 -2
  35. package/dist/assets/components/TextureProjectionComponent.min.js +2 -2
  36. package/dist/assets/components/Texturing3DComponent.js +12 -12
  37. package/dist/assets/components/Texturing3DComponent.min.js +2 -2
  38. package/dist/assets/components/VolumeRenderingComponent.js +2 -2
  39. package/dist/assets/components/VolumeRenderingComponent.min.js +2 -2
  40. package/dist/assets/components/X_ITEComponent.js +2 -2
  41. package/dist/assets/components/X_ITEComponent.min.js +2 -2
  42. package/dist/example.html +1 -1
  43. package/dist/x_ite.css +1 -1
  44. package/dist/x_ite.js +246 -191
  45. package/dist/x_ite.min.js +2 -2
  46. package/dist/x_ite.min.mjs +2 -2
  47. package/dist/x_ite.mjs +246 -191
  48. package/dist/x_ite.zip +0 -0
  49. package/package.json +3 -3
package/dist/x_ite.mjs CHANGED
@@ -1,10 +1,10 @@
1
- /* X_ITE v10.3.0 */
1
+ /* X_ITE v10.3.1 */
2
2
  var __webpack_modules__ = ({
3
3
 
4
- /***/ 491:
4
+ /***/ 384:
5
5
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
6
6
 
7
- /* provided dependency */ var jQuery = __webpack_require__(703);
7
+ /* provided dependency */ var jQuery = __webpack_require__(388);
8
8
  /**
9
9
  * @preserve jquery.fullscreen 1.1.5
10
10
  * https://github.com/code-lts/jquery-fullscreen-plugin
@@ -200,7 +200,7 @@ installFullScreenHandlers();
200
200
 
201
201
  /***/ }),
202
202
 
203
- /***/ 839:
203
+ /***/ 26:
204
204
  /***/ ((module, exports, __webpack_require__) => {
205
205
 
206
206
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -214,7 +214,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
214
214
  (function (factory) {
215
215
  if ( true ) {
216
216
  // AMD. Register as an anonymous module.
217
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(703)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
217
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(388)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
218
218
  __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
219
219
  (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
220
220
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
@@ -425,7 +425,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
425
425
 
426
426
  /***/ }),
427
427
 
428
- /***/ 703:
428
+ /***/ 388:
429
429
  /***/ (function(module, exports) {
430
430
 
431
431
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -11149,7 +11149,7 @@ return jQuery;
11149
11149
 
11150
11150
  /***/ }),
11151
11151
 
11152
- /***/ 860:
11152
+ /***/ 665:
11153
11153
  /***/ ((module) => {
11154
11154
 
11155
11155
  /**
@@ -15928,7 +15928,7 @@ if (true) {
15928
15928
 
15929
15929
  /***/ }),
15930
15930
 
15931
- /***/ 943:
15931
+ /***/ 336:
15932
15932
  /***/ (function(__unused_webpack_module, exports) {
15933
15933
 
15934
15934
 
@@ -19173,7 +19173,7 @@ if (true) {
19173
19173
 
19174
19174
  /***/ }),
19175
19175
 
19176
- /***/ 296:
19176
+ /***/ 839:
19177
19177
  /***/ (function(module, exports) {
19178
19178
 
19179
19179
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
@@ -20297,7 +20297,7 @@ Object .defineProperty (Namespace, "add",
20297
20297
  return module;
20298
20298
  }
20299
20299
 
20300
- const X3D = window [Symbol .for ("X_ITE.X3D-10.3.0")];
20300
+ const X3D = window [Symbol .for ("X_ITE.X3D-10.3.1")];
20301
20301
 
20302
20302
  if (X3D)
20303
20303
  X3D [name] = module;
@@ -34204,7 +34204,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34204
34204
 
34205
34205
  /* harmony default export */ const Base_X3DBaseNode = (x_ite_Namespace .add ("X3DBaseNode", X3DBaseNode_default_));
34206
34206
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
34207
- /* provided dependency */ var $ = __webpack_require__(703);
34207
+ /* provided dependency */ var $ = __webpack_require__(388);
34208
34208
  /*******************************************************************************
34209
34209
  *
34210
34210
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34340,7 +34340,7 @@ const Legacy_default_ = Legacy;
34340
34340
  *
34341
34341
  ******************************************************************************/
34342
34342
 
34343
- const BROWSER_VERSION_default_ = "10.3.0";
34343
+ const BROWSER_VERSION_default_ = "10.3.1";
34344
34344
  ;
34345
34345
 
34346
34346
  /* harmony default export */ const BROWSER_VERSION = (x_ite_Namespace .add ("BROWSER_VERSION", BROWSER_VERSION_default_));
@@ -37365,7 +37365,7 @@ const X3DBindableNode_default_ = X3DBindableNode;
37365
37365
 
37366
37366
  /* harmony default export */ const Core_X3DBindableNode = (x_ite_Namespace .add ("X3DBindableNode", X3DBindableNode_default_));
37367
37367
  ;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
37368
- /* provided dependency */ var libtess = __webpack_require__(860);
37368
+ /* provided dependency */ var libtess = __webpack_require__(665);
37369
37369
  /*******************************************************************************
37370
37370
  *
37371
37371
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39903,7 +39903,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
39903
39903
 
39904
39904
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (x_ite_Namespace .add ("X3DProtoDeclaration", X3DProtoDeclaration_default_));
39905
39905
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
39906
- /* provided dependency */ var X3DParser_$ = __webpack_require__(703);
39906
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(388);
39907
39907
  /*******************************************************************************
39908
39908
  *
39909
39909
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -40159,7 +40159,7 @@ const Expressions_default_ = Expressions;
40159
40159
 
40160
40160
  /* harmony default export */ const Parser_Expressions = (x_ite_Namespace .add ("Expressions", Expressions_default_));
40161
40161
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
40162
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(703);
40162
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(388);
40163
40163
  /*******************************************************************************
40164
40164
  *
40165
40165
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -42858,7 +42858,7 @@ const VRMLParser_default_ = VRMLParser;
42858
42858
 
42859
42859
  /* harmony default export */ const Parser_VRMLParser = (x_ite_Namespace .add ("VRMLParser", VRMLParser_default_));
42860
42860
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
42861
- /* provided dependency */ var XMLParser_$ = __webpack_require__(703);
42861
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(388);
42862
42862
  /*******************************************************************************
42863
42863
  *
42864
42864
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -45031,7 +45031,7 @@ const URLs_default_ = URLs;
45031
45031
 
45032
45032
  /* harmony default export */ const Networking_URLs = (x_ite_Namespace .add ("URLs", URLs_default_));
45033
45033
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
45034
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(703);
45034
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(388);
45035
45035
  /*******************************************************************************
45036
45036
  *
45037
45037
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -48675,7 +48675,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
48675
48675
 
48676
48676
  /* harmony default export */ const Parser_GLTF2Parser = (x_ite_Namespace .add ("GLTF2Parser", GLTF2Parser_default_));
48677
48677
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
48678
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(703);
48678
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(388);
48679
48679
  /*******************************************************************************
48680
48680
  *
48681
48681
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -48826,7 +48826,7 @@ const GLB2Parser_default_ = GLB2Parser;
48826
48826
 
48827
48827
  /* harmony default export */ const Parser_GLB2Parser = (x_ite_Namespace .add ("GLB2Parser", GLB2Parser_default_));
48828
48828
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
48829
- /* provided dependency */ var OBJParser_$ = __webpack_require__(703);
48829
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(388);
48830
48830
  /*******************************************************************************
48831
48831
  *
48832
48832
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -52162,8 +52162,8 @@ const MatrixStack_default_ = MatrixStack;
52162
52162
 
52163
52163
  /* harmony default export */ const Utility_MatrixStack = (x_ite_Namespace .add ("MatrixStack", MatrixStack_default_));
52164
52164
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
52165
- /* provided dependency */ var SVGParser_$ = __webpack_require__(703);
52166
- /* provided dependency */ var SVGParser_libtess = __webpack_require__(860);
52165
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(388);
52166
+ /* provided dependency */ var SVGParser_libtess = __webpack_require__(665);
52167
52167
  /*******************************************************************************
52168
52168
  *
52169
52169
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -54933,7 +54933,7 @@ const SVGParser_default_ = SVGParser;
54933
54933
 
54934
54934
  /* harmony default export */ const Parser_SVGParser = (x_ite_Namespace .add ("SVGParser", SVGParser_default_));
54935
54935
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
54936
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(703);
54936
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(388);
54937
54937
  /*******************************************************************************
54938
54938
  *
54939
54939
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -56697,7 +56697,6 @@ function X3DRenderObject (executionContext)
56697
56697
  this .shadowShapes = [ ];
56698
56698
  this .opaqueShapes = [ ];
56699
56699
  this .transparentShapes = [ ];
56700
- this .transmissionShapes = [ ];
56701
56700
  this .transmissionOpaqueShapes = [ ];
56702
56701
  this .transmissionTransparentShapes = [ ];
56703
56702
  this .transparencySorter = new Algorithms_MergeSort (this .transparentShapes, (a, b) => a .distance < b .distance);
@@ -57021,6 +57020,32 @@ Object .assign (X3DRenderObject .prototype,
57021
57020
  {
57022
57021
  return this .transparentShapes;
57023
57022
  },
57023
+ getNumTransmissionOpaqueShapes ()
57024
+ {
57025
+ return this .transmissionOpaqueShapes .length;
57026
+ },
57027
+ setNumTransmissionOpaqueShapes (value)
57028
+ {
57029
+ // Needed for StaticGroup.
57030
+ this .transmissionOpaqueShapes .length = value;
57031
+ },
57032
+ getTransmissionOpaqueShapes ()
57033
+ {
57034
+ return this .transmissionOpaqueShapes;
57035
+ },
57036
+ getNumTransmissionTransparentShapes ()
57037
+ {
57038
+ return this .transmissionTransparentShapes .length;
57039
+ },
57040
+ setNumTransmissionTransparentShapes (value)
57041
+ {
57042
+ // Needed for StaticGroup.
57043
+ this .transmissionTransparentShapes .length = value;
57044
+ },
57045
+ getTransmissionTransparentShapes ()
57046
+ {
57047
+ return this .transmissionTransparentShapes;
57048
+ },
57024
57049
  constrainTranslation (translation, stepBack)
57025
57050
  {
57026
57051
  /// Constrains @a translation to a possible value the avatar can move. If the avatar reaches and intersects with an
@@ -57770,18 +57795,23 @@ Object .assign (X3DRenderObject .prototype,
57770
57795
 
57771
57796
  // Set global uniforms.
57772
57797
 
57773
- this .viewportArray .set (viewport);
57774
- this .projectionMatrixArray .set (this .getProjectionMatrix () .get ());
57798
+ this .viewportArray .set (viewport);
57775
57799
 
57776
- if (this .view && browser .getBrowserOption ("XRMovementControl") === "VIEWER_POSE")
57800
+ if (this .view && browser .getBrowserOption ("XRMovementControl") !== "VIEWPOINT")
57777
57801
  {
57778
- this .viewMatrixArray .set (this .view .viewMatrix);
57802
+ if (this .isActive ())
57803
+ this .projectionMatrixArray .set (this .view .projectionMatrix);
57804
+ else
57805
+ this .projectionMatrixArray .set (this .getProjectionMatrix () .get ());
57806
+
57779
57807
  this .cameraSpaceMatrixArray .set (this .view .cameraSpaceMatrix);
57808
+ this .viewMatrixArray .set (this .view .viewMatrix);
57780
57809
  }
57781
57810
  else
57782
57811
  {
57783
- this .viewMatrixArray .set (this .getViewMatrix () .get ());
57812
+ this .projectionMatrixArray .set (this .getProjectionMatrix () .get ());
57784
57813
  this .cameraSpaceMatrixArray .set (this .getCameraSpaceMatrix () .get ());
57814
+ this .viewMatrixArray .set (this .getViewMatrix () .get ());
57785
57815
  }
57786
57816
 
57787
57817
  if (independent && this .transmission)
@@ -57795,7 +57825,7 @@ Object .assign (X3DRenderObject .prototype,
57795
57825
  numTransmissionOpaqueShapes = transmissionOpaqueShapes .length,
57796
57826
  numTransmissionTransparentShapes = transmissionTransparentShapes .length;
57797
57827
 
57798
- this .drawShapes (gl, browser, true, transmissionBuffer, gl .COLOR_BUFFER_BIT, false, viewport, transmissionOpaqueShapes, numTransmissionOpaqueShapes, transmissionTransparentShapes, numTransmissionTransparentShapes, this .transmissionTransparencySorter);
57828
+ this .drawShapes (gl, browser, transmissionBuffer, gl .COLOR_BUFFER_BIT, false, viewport, transmissionOpaqueShapes, numTransmissionOpaqueShapes, transmissionTransparentShapes, numTransmissionTransparentShapes, this .transmissionTransparencySorter);
57799
57829
 
57800
57830
  gl .bindTexture (gl .TEXTURE_2D, transmissionBuffer .getColorTexture ());
57801
57831
  gl .generateMipmap (gl .TEXTURE_2D);
@@ -61006,78 +61036,44 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
61006
61036
  {
61007
61037
  this ._rebuild .addEvent ();
61008
61038
  },
61009
- rebuild: (() =>
61039
+ rebuild ()
61010
61040
  {
61011
- const point = new Numbers_Vector3 ();
61012
-
61013
- return async function ()
61014
- {
61015
- this .clear ();
61016
- this .build ();
61017
-
61018
- // Shrink arrays before transferring them to graphics card.
61019
-
61020
- for (const attribArray of this .attribArrays)
61021
- attribArray .shrinkToFit ();
61022
-
61023
- for (const multiTexCoord of this .multiTexCoords)
61024
- multiTexCoord .shrinkToFit ();
61025
-
61026
- this .coordIndices .shrinkToFit ();
61027
- this .fogDepths .shrinkToFit ();
61028
- this .colors .shrinkToFit ();
61029
- this .tangents .shrinkToFit ();
61030
- this .normals .shrinkToFit ();
61031
- this .vertices .shrinkToFit ();
61032
-
61033
- // Determine bbox.
61041
+ this .clear ();
61042
+ this .build ();
61034
61043
 
61035
- const
61036
- vertices = this .vertices .getValue (),
61037
- min = this .min,
61038
- max = this .max;
61044
+ // Shrink arrays before transferring them to graphics card.
61039
61045
 
61040
- if (vertices .length)
61041
- {
61042
- if (min .x === Number .POSITIVE_INFINITY)
61043
- {
61044
- for (let i = 0, length = vertices .length; i < length; i += 4)
61045
- {
61046
- point .set (vertices [i], vertices [i + 1], vertices [i + 2]);
61046
+ for (const attribArray of this .attribArrays)
61047
+ attribArray .shrinkToFit ();
61047
61048
 
61048
- min .min (point);
61049
- max .max (point);
61050
- }
61051
- }
61049
+ for (const multiTexCoord of this .multiTexCoords)
61050
+ multiTexCoord .shrinkToFit ();
61052
61051
 
61053
- this .bbox .setExtents (min, max);
61054
- }
61055
- else
61056
- {
61057
- this .bbox .setExtents (min .set (0, 0, 0), max .set (0, 0, 0));
61058
- }
61052
+ this .coordIndices .shrinkToFit ();
61053
+ this .fogDepths .shrinkToFit ();
61054
+ this .colors .shrinkToFit ();
61055
+ this .tangents .shrinkToFit ();
61056
+ this .normals .shrinkToFit ();
61057
+ this .vertices .shrinkToFit ();
61059
61058
 
61060
- this ._bbox_changed .addEvent ();
61059
+ this .updateBBox ();
61061
61060
 
61062
- for (let i = 0; i < 5; ++ i)
61063
- this .planes [i] .set (i % 2 ? min : max, boxNormals [i]);
61061
+ // Generate texCoord if needed.
61064
61062
 
61065
- // Generate texCoord if needed.
61063
+ if (!this .multiTexCoords .length)
61064
+ this .generateTexCoords ();
61066
61065
 
61067
- if (!this .multiTexCoords .length)
61068
- this .generateTexCoords ();
61066
+ // Generate tangents if needed.
61069
61067
 
61070
- // Generate tangents if needed.
61071
- if (!this .tangents .length)
61072
- this .generateTangents ();
61068
+ if (!this .tangents .length)
61069
+ this .generateTangents ();
61073
61070
 
61074
- // Transfer arrays and update.
61071
+ // Transfer arrays and update.
61075
61072
 
61076
- this .transfer ();
61077
- this .updateGeometryKey ();
61078
- this .updateRenderFunctions ();
61079
- };
61080
- })(),
61073
+ this .transfer ();
61074
+ this .updateGeometryKey ();
61075
+ this .updateRenderFunctions ();
61076
+ },
61081
61077
  clear ()
61082
61078
  {
61083
61079
  // BBox
@@ -61114,6 +61110,45 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
61114
61110
  this .flatNormals .length = 0;
61115
61111
  this .vertices .length = 0;
61116
61112
  },
61113
+ updateBBox: (() =>
61114
+ {
61115
+ const point = new Numbers_Vector3 ();
61116
+
61117
+ return function ()
61118
+ {
61119
+ // Determine bbox.
61120
+
61121
+ const
61122
+ vertices = this .vertices .getValue (),
61123
+ min = this .min,
61124
+ max = this .max;
61125
+
61126
+ if (vertices .length)
61127
+ {
61128
+ if (min .x === Number .POSITIVE_INFINITY)
61129
+ {
61130
+ for (let i = 0, length = vertices .length; i < length; i += 4)
61131
+ {
61132
+ point .set (vertices [i], vertices [i + 1], vertices [i + 2]);
61133
+
61134
+ min .min (point);
61135
+ max .max (point);
61136
+ }
61137
+ }
61138
+
61139
+ this .bbox .setExtents (min, max);
61140
+ }
61141
+ else
61142
+ {
61143
+ this .bbox .setExtents (min .set (0, 0, 0), max .set (0, 0, 0));
61144
+ }
61145
+
61146
+ for (let i = 0; i < 5; ++ i)
61147
+ this .planes [i] .set (i % 2 ? min : max, boxNormals [i]);
61148
+
61149
+ this ._bbox_changed .addEvent ();
61150
+ };
61151
+ })(),
61117
61152
  transfer ()
61118
61153
  {
61119
61154
  const gl = this .getBrowser () .getContext ();
@@ -63013,7 +63048,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
63013
63048
 
63014
63049
  /* harmony default export */ const Texturing_X3DTexture2DNode = (x_ite_Namespace .add ("X3DTexture2DNode", X3DTexture2DNode_default_));
63015
63050
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
63016
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(703);
63051
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(388);
63017
63052
  /*******************************************************************************
63018
63053
  *
63019
63054
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -63735,7 +63770,7 @@ Object .assign (Object .setPrototypeOf (X3DLayerNode .prototype, Core_X3DNode .p
63735
63770
 
63736
63771
  if (pose && this .active && browser .getBrowserOption ("XRMovementControl") !== "VIEWPOINT")
63737
63772
  {
63738
- this .getProjectionMatrix () .pushMatrix (pose .projectionMatrix);
63773
+ this .getProjectionMatrix () .pushMatrix (pose .views [0] .projectionMatrix);
63739
63774
  this .getCameraSpaceMatrix () .pushMatrix (pose .cameraSpaceMatrix);
63740
63775
  this .getViewMatrix () .pushMatrix (pose .viewMatrix);
63741
63776
  }
@@ -66377,7 +66412,7 @@ const X3DWorld_default_ = X3DWorld;
66377
66412
 
66378
66413
  /* harmony default export */ const Execution_X3DWorld = (x_ite_Namespace .add ("X3DWorld", X3DWorld_default_));
66379
66414
  ;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
66380
- /* provided dependency */ var FileLoader_$ = __webpack_require__(703);
66415
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(388);
66381
66416
  /*******************************************************************************
66382
66417
  *
66383
66418
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -67307,7 +67342,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
67307
67342
 
67308
67343
  /* harmony default export */ const Prototype_ProtoDeclarationArray = (x_ite_Namespace .add ("ProtoDeclarationArray", ProtoDeclarationArray_default_));
67309
67344
  ;// CONCATENATED MODULE: ./src/x_ite/Routing/X3DRoute.js
67310
- /* provided dependency */ var X3DRoute_$ = __webpack_require__(703);
67345
+ /* provided dependency */ var X3DRoute_$ = __webpack_require__(388);
67311
67346
  /*******************************************************************************
67312
67347
  *
67313
67348
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -76626,11 +76661,10 @@ const Geometry3DComponent_default_ = {
76626
76661
  // No support for X3DBindableNode nodes, local lights. X3DLocalFog, local ClipPlane nodes, LOD, Billboard, Switch node.
76627
76662
 
76628
76663
  const
76629
- _pointingShapes = Symbol (),
76630
- _collisionShapes = Symbol (),
76631
- _shadowShapes = Symbol (),
76632
- _opaqueShapes = Symbol (),
76633
- _transparentShapes = Symbol ();
76664
+ _pointingShapes = Symbol (),
76665
+ _collisionShapes = Symbol (),
76666
+ _shadowShapes = Symbol (),
76667
+ _displayShapes = Symbol ();
76634
76668
 
76635
76669
  function StaticGroup (executionContext)
76636
76670
  {
@@ -76681,11 +76715,10 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
76681
76715
  this .groupNode .getBBox (this .bbox);
76682
76716
  this .groupNode .getBBox (this .shadowBBox, true);
76683
76717
 
76684
- this [_pointingShapes] = null;
76685
- this [_collisionShapes] = null;
76686
- this [_shadowShapes] = null;
76687
- this [_opaqueShapes] = null;
76688
- this [_transparentShapes] = null;
76718
+ this [_pointingShapes] = null;
76719
+ this [_collisionShapes] = null;
76720
+ this [_shadowShapes] = null;
76721
+ this [_displayShapes] = null;
76689
76722
  },
76690
76723
  traverse (type, renderObject)
76691
76724
  {
@@ -76697,71 +76730,92 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
76697
76730
  }
76698
76731
  case Rendering_TraverseType .POINTER:
76699
76732
  {
76700
- this .traverseObjects (_pointingShapes, "Pointing", type, renderObject);
76733
+ this .traverseStatics (_pointingShapes, type, renderObject);
76701
76734
  return;
76702
76735
  }
76703
76736
  case Rendering_TraverseType .COLLISION:
76704
76737
  {
76705
- this .traverseObjects (_collisionShapes, "Collision", type, renderObject);
76738
+ this .traverseStatics (_collisionShapes, type, renderObject);
76706
76739
  return;
76707
76740
  }
76708
76741
  case Rendering_TraverseType .SHADOW:
76709
76742
  {
76710
- this .traverseObjects (_shadowShapes, "Shadow", type, renderObject);
76743
+ this .traverseStatics (_shadowShapes, type, renderObject);
76711
76744
  return;
76712
76745
  }
76713
76746
  case Rendering_TraverseType .DISPLAY:
76714
76747
  {
76715
- this .traverseObjects (_opaqueShapes, "Opaque", type, renderObject);
76716
- this .traverseObjects (_transparentShapes, "Transparent", type, renderObject);
76748
+ this .traverseStatics (_displayShapes, type, renderObject);
76717
76749
  return;
76718
76750
  }
76719
76751
  }
76720
76752
  },
76721
- traverseObjects: (() =>
76753
+ traverseStatics (staticShapes, type, renderObject)
76722
76754
  {
76755
+ if (!this [staticShapes])
76756
+ this .buildStatics (staticShapes, type, renderObject);
76757
+
76758
+ const modelViewMatrix = renderObject .getModelViewMatrix ();
76759
+
76760
+ for (const { modelViewMatrix: modelMatrix, shapeNode } of this [staticShapes])
76761
+ {
76762
+ modelViewMatrix .push ();
76763
+ modelViewMatrix .multLeft (modelMatrix);
76764
+ shapeNode .traverse (type, renderObject);
76765
+ modelViewMatrix .pop ();
76766
+ }
76767
+ },
76768
+ buildStatics: (() =>
76769
+ {
76770
+ const StaticsIndex = new Map ([
76771
+ [_pointingShapes, ["Pointing"]],
76772
+ [_collisionShapes, ["Collision"]],
76773
+ [_shadowShapes, ["Shadow"]],
76774
+ [_displayShapes, ["Opaque", "Transparent", "TransmissionOpaque", "TransmissionTransparent"]],
76775
+ ]);
76776
+
76723
76777
  const viewVolume = new Geometry_ViewVolume ();
76724
76778
 
76725
- viewVolume .intersectsSphere = function () { return true; };
76779
+ viewVolume .intersectsSphere = () => true;
76726
76780
 
76727
- return function (staticShapes, Static, type, renderObject)
76781
+ return function (staticShapes, type, renderObject)
76728
76782
  {
76729
- if (!this [staticShapes])
76730
- {
76731
- //console .log (`Rebuilding StaticGroup ${Static}.`);
76783
+ const
76784
+ viewVolumes = renderObject .getViewVolumes (),
76785
+ viewport = renderObject .getViewport (),
76786
+ projectionMatrix = renderObject .getProjectionMatrix (),
76787
+ modelViewMatrix = renderObject .getModelViewMatrix (),
76788
+ Statics = StaticsIndex .get (staticShapes),
76789
+ firstShapes = Statics .map (Static => renderObject [`getNum${Static}Shapes`] ());
76732
76790
 
76733
- const
76734
- viewVolumes = renderObject .getViewVolumes (),
76735
- viewport = renderObject .getViewport (),
76736
- projectionMatrix = renderObject .getProjectionMatrix (),
76737
- modelViewMatrix = renderObject .getModelViewMatrix (),
76738
- firstShape = renderObject [`getNum${Static}Shapes`] ();
76791
+ //Statics .forEach (Static => console .log (`Rebuilding StaticGroup ${Static}.`));
76739
76792
 
76740
- viewVolumes .push (viewVolume .set (projectionMatrix, viewport, viewport));
76793
+ viewVolumes .push (viewVolume .set (projectionMatrix, viewport, viewport));
76741
76794
 
76742
- modelViewMatrix .push ();
76743
- modelViewMatrix .identity ();
76795
+ modelViewMatrix .push ();
76796
+ modelViewMatrix .identity ();
76744
76797
 
76745
- this .groupNode .traverse (type, renderObject);
76798
+ this .groupNode .traverse (type, renderObject);
76746
76799
 
76747
- modelViewMatrix .pop ();
76748
- viewVolumes .pop ();
76800
+ modelViewMatrix .pop ();
76801
+ viewVolumes .pop ();
76749
76802
 
76750
- const lastShape = renderObject [`getNum${Static}Shapes`] ();
76803
+ this [staticShapes] = [ ];
76751
76804
 
76752
- this [staticShapes] = renderObject [`get${Static}Shapes`] () .splice (firstShape, lastShape - firstShape);
76805
+ for (const [i, Static] of Statics .entries ())
76806
+ {
76807
+ const
76808
+ firstShape = firstShapes [i],
76809
+ lastShape = renderObject [`getNum${Static}Shapes`] (),
76810
+ shapes = renderObject [`get${Static}Shapes`] () .splice (firstShape, lastShape - firstShape);
76753
76811
 
76754
76812
  renderObject [`setNum${Static}Shapes`] (firstShape);
76755
- }
76756
76813
 
76757
- const modelViewMatrix = renderObject .getModelViewMatrix ();
76814
+ if (Static .includes ("Transmission"))
76815
+ continue;
76758
76816
 
76759
- for (const { modelViewMatrix: modelMatrix, shapeNode } of this [staticShapes])
76760
- {
76761
- modelViewMatrix .push ();
76762
- modelViewMatrix .multLeft (modelMatrix);
76763
- shapeNode .traverse (type, renderObject);
76764
- modelViewMatrix .pop ();
76817
+ for (const shape of shapes)
76818
+ this [staticShapes] .push (shape);
76765
76819
  }
76766
76820
  };
76767
76821
  })(),
@@ -80036,7 +80090,7 @@ function DirectionalLight (executionContext)
80036
80090
 
80037
80091
  // Legacy
80038
80092
 
80039
- if (executionContext .getSpecificationVersion () == 2.0)
80093
+ if (executionContext .getSpecificationVersion () <= 3.0)
80040
80094
  this ._global = true;
80041
80095
  }
80042
80096
 
@@ -89213,7 +89267,7 @@ mediump samplerCube textureCube;
89213
89267
 
89214
89268
  /* harmony default export */ const MaterialTextures = (x_ite_Namespace .add ("MaterialTextures", MaterialTextures_default_));
89215
89269
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
89216
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(703);
89270
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(388);
89217
89271
  /*******************************************************************************
89218
89272
  *
89219
89273
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -94486,7 +94540,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
94486
94540
 
94487
94541
  /* harmony default export */ const Shaders_ShaderCompiler = (x_ite_Namespace .add ("ShaderCompiler", ShaderCompiler_default_));
94488
94542
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
94489
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(703);
94543
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(388);
94490
94544
  /*******************************************************************************
94491
94545
  *
94492
94546
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95084,7 +95138,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
95084
95138
 
95085
95139
  /* harmony default export */ const Shape_X3DAppearanceNode = (x_ite_Namespace .add ("X3DAppearanceNode", X3DAppearanceNode_default_));
95086
95140
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
95087
- /* provided dependency */ var Appearance_$ = __webpack_require__(703);
95141
+ /* provided dependency */ var Appearance_$ = __webpack_require__(388);
95088
95142
  /*******************************************************************************
95089
95143
  *
95090
95144
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -103339,8 +103393,8 @@ const GifMedia_default_ = GifMedia;
103339
103393
 
103340
103394
  /* harmony default export */ const Texturing_GifMedia = (x_ite_Namespace .add ("GifMedia", GifMedia_default_));
103341
103395
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
103342
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(703);
103343
- /* provided dependency */ var SuperGif = __webpack_require__(296);
103396
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(388);
103397
+ /* provided dependency */ var SuperGif = __webpack_require__(839);
103344
103398
  /*******************************************************************************
103345
103399
  *
103346
103400
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -106446,7 +106500,7 @@ const gettext_default_ = (string) => locale .get (string) || string;
106446
106500
 
106447
106501
  /* harmony default export */ const gettext = (x_ite_Namespace .add ("gettext", gettext_default_));
106448
106502
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
106449
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(703);
106503
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(388);
106450
106504
  /*******************************************************************************
106451
106505
  *
106452
106506
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107076,7 +107130,7 @@ const TextCompression_default_ = TextCompression;
107076
107130
 
107077
107131
  /* harmony default export */ const Core_TextCompression = (x_ite_Namespace .add ("TextCompression", TextCompression_default_));
107078
107132
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
107079
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(703);
107133
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(388);
107080
107134
  /*******************************************************************************
107081
107135
  *
107082
107136
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107723,7 +107777,7 @@ const RenderingProperties_default_ = RenderingProperties;
107723
107777
 
107724
107778
  /* harmony default export */ const Core_RenderingProperties = (x_ite_Namespace .add ("RenderingProperties", RenderingProperties_default_));
107725
107779
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
107726
- /* provided dependency */ var Notification_$ = __webpack_require__(703);
107780
+ /* provided dependency */ var Notification_$ = __webpack_require__(388);
107727
107781
  /*******************************************************************************
107728
107782
  *
107729
107783
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107845,8 +107899,8 @@ const Notification_default_ = Notification;
107845
107899
 
107846
107900
  /* harmony default export */ const Core_Notification = (x_ite_Namespace .add ("Notification", Notification_default_));
107847
107901
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
107848
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(491);
107849
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(703);
107902
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(384);
107903
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(388);
107850
107904
  /*******************************************************************************
107851
107905
  *
107852
107906
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -110581,7 +110635,7 @@ const DataStorage_default_ = DataStorage;
110581
110635
 
110582
110636
  /* harmony default export */ const Utility_DataStorage = (x_ite_Namespace .add ("DataStorage", DataStorage_default_));
110583
110637
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
110584
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(703);
110638
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(388);
110585
110639
  /*******************************************************************************
110586
110640
  *
110587
110641
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -110875,7 +110929,7 @@ Object .assign (X3DCoreContext .prototype,
110875
110929
  {
110876
110930
  case "antialiased":
110877
110931
  {
110878
- this .setBrowserOption ("Antialiased", this .parseBooleanAttribute (newValue, true));
110932
+ this .setBrowserOption ("Antialiased", this .parseBooleanAttribute (newValue) ?? true);
110879
110933
  break;
110880
110934
  }
110881
110935
  case "baseURL":
@@ -110886,7 +110940,7 @@ Object .assign (X3DCoreContext .prototype,
110886
110940
  }
110887
110941
  case "cache":
110888
110942
  {
110889
- this .setBrowserOption ("Cache", this .parseBooleanAttribute (newValue, true));
110943
+ this .setBrowserOption ("Cache", this .parseBooleanAttribute (newValue) ?? true);
110890
110944
  break;
110891
110945
  }
110892
110946
  case "colorSpace":
@@ -110904,12 +110958,12 @@ Object .assign (X3DCoreContext .prototype,
110904
110958
  case "contextMenu":
110905
110959
  case "contextmenu":
110906
110960
  {
110907
- this .setBrowserOption ("ContextMenu", this .parseBooleanAttribute (newValue, true));
110961
+ this .setBrowserOption ("ContextMenu", this .parseBooleanAttribute (newValue) ?? true);
110908
110962
  break;
110909
110963
  }
110910
110964
  case "debug":
110911
110965
  {
110912
- this .setBrowserOption ("Debug", this .parseBooleanAttribute (newValue, false));
110966
+ this .setBrowserOption ("Debug", this .parseBooleanAttribute (newValue) ?? false);
110913
110967
  break;
110914
110968
  }
110915
110969
  case "exposure":
@@ -110920,7 +110974,7 @@ Object .assign (X3DCoreContext .prototype,
110920
110974
  case "logarithmicDepthBuffer":
110921
110975
  case "logarithmicdepthbuffer":
110922
110976
  {
110923
- this .setBrowserOption ("LogarithmicDepthBuffer", this .parseBooleanAttribute (newValue, false));
110977
+ this .setBrowserOption ("LogarithmicDepthBuffer", this .parseBooleanAttribute (newValue) ?? false);
110924
110978
  break;
110925
110979
  }
110926
110980
  case "multisampling":
@@ -110932,7 +110986,7 @@ Object .assign (X3DCoreContext .prototype,
110932
110986
  }
110933
110987
  case "notifications":
110934
110988
  {
110935
- this .setBrowserOption ("Notifications", this .parseBooleanAttribute (newValue, true));
110989
+ this .setBrowserOption ("Notifications", this .parseBooleanAttribute (newValue) ?? true);
110936
110990
  break;
110937
110991
  }
110938
110992
  case "oninitialized":
@@ -110952,13 +111006,13 @@ Object .assign (X3DCoreContext .prototype,
110952
111006
  case "orderIndependentTransparency":
110953
111007
  case "orderindependenttransparency":
110954
111008
  {
110955
- this .setBrowserOption ("OrderIndependentTransparency", this .parseBooleanAttribute (newValue, false));
111009
+ this .setBrowserOption ("OrderIndependentTransparency", this .parseBooleanAttribute (newValue) ?? false);
110956
111010
  break;
110957
111011
  }
110958
111012
  case "splashScreen":
110959
111013
  case "splashscreen":
110960
111014
  {
110961
- this .setBrowserOption ("SplashScreen", this .parseBooleanAttribute (newValue, true));
111015
+ this .setBrowserOption ("SplashScreen", this .parseBooleanAttribute (newValue) ?? true);
110962
111016
 
110963
111017
  if (! this .getBrowserOption ("SplashScreen"))
110964
111018
  {
@@ -110986,7 +111040,7 @@ Object .assign (X3DCoreContext .prototype,
110986
111040
  }
110987
111041
  case "timings":
110988
111042
  {
110989
- this .setBrowserOption ("Timings", this .parseBooleanAttribute (newValue, false));
111043
+ this .setBrowserOption ("Timings", this .parseBooleanAttribute (newValue) ?? false);
110990
111044
  break;
110991
111045
  }
110992
111046
  case "toneMapping":
@@ -111005,7 +111059,7 @@ Object .assign (X3DCoreContext .prototype,
111005
111059
  {
111006
111060
  this .setBrowserOption ("AutoUpdate", false);
111007
111061
 
111008
- if (this .parseBooleanAttribute (newValue, true))
111062
+ if (this .parseBooleanAttribute (newValue) ?? true)
111009
111063
  this .beginUpdate ();
111010
111064
  else
111011
111065
  this .endUpdate ();
@@ -111026,7 +111080,7 @@ Object .assign (X3DCoreContext .prototype,
111026
111080
  case "xrButton":
111027
111081
  case "xrbutton":
111028
111082
  {
111029
- this .setBrowserOption ("XRButton", this .parseBooleanAttribute (newValue, true));
111083
+ this .setBrowserOption ("XRButton", this .parseBooleanAttribute (newValue) ?? true);
111030
111084
  break;
111031
111085
  }
111032
111086
  case "xrMovementControl":
@@ -111043,15 +111097,13 @@ Object .assign (X3DCoreContext .prototype,
111043
111097
  }
111044
111098
  }
111045
111099
  },
111046
- parseBooleanAttribute (value, defaultValue)
111100
+ parseBooleanAttribute (value)
111047
111101
  {
111048
111102
  if (value === "true")
111049
111103
  return true;
111050
111104
 
111051
111105
  if (value === "false")
111052
111106
  return false;
111053
-
111054
- return defaultValue;
111055
111107
  },
111056
111108
  parseUrlAttribute (urlCharacters)
111057
111109
  {
@@ -113194,8 +113246,8 @@ const X3DViewer_default_ = X3DViewer;
113194
113246
 
113195
113247
  /* harmony default export */ const Navigation_X3DViewer = (x_ite_Namespace .add ("X3DViewer", X3DViewer_default_));
113196
113248
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
113197
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(839);
113198
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(703);
113249
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(26);
113250
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(388);
113199
113251
  /*******************************************************************************
113200
113252
  *
113201
113253
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114110,8 +114162,8 @@ const ExamineViewer_default_ = ExamineViewer;
114110
114162
 
114111
114163
  /* harmony default export */ const Navigation_ExamineViewer = (x_ite_Namespace .add ("ExamineViewer", ExamineViewer_default_));
114112
114164
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
114113
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(839);
114114
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(703);
114165
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(26);
114166
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(388);
114115
114167
  /*******************************************************************************
114116
114168
  *
114117
114169
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115126,8 +115178,8 @@ const FlyViewer_default_ = FlyViewer;
115126
115178
 
115127
115179
  /* harmony default export */ const Navigation_FlyViewer = (x_ite_Namespace .add ("FlyViewer", FlyViewer_default_));
115128
115180
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
115129
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(839);
115130
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(703);
115181
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(26);
115182
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(388);
115131
115183
  /*******************************************************************************
115132
115184
  *
115133
115185
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115456,8 +115508,8 @@ const NoneViewer_default_ = NoneViewer;
115456
115508
 
115457
115509
  /* harmony default export */ const Navigation_NoneViewer = (x_ite_Namespace .add ("NoneViewer", NoneViewer_default_));
115458
115510
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
115459
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(839);
115460
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(703);
115511
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(26);
115512
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(388);
115461
115513
  /*******************************************************************************
115462
115514
  *
115463
115515
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116602,8 +116654,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
116602
116654
 
116603
116655
  /* harmony default export */ const Picking_X3DPickingContext = (x_ite_Namespace .add ("X3DPickingContext", X3DPickingContext_default_));
116604
116656
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
116605
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(839);
116606
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(703);
116657
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(26);
116658
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(388);
116607
116659
  /*******************************************************************************
116608
116660
  *
116609
116661
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118036,7 +118088,7 @@ const Lock_default_ = Lock;
118036
118088
 
118037
118089
  /* harmony default export */ const Utility_Lock = (x_ite_Namespace .add ("Lock", Lock_default_));
118038
118090
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
118039
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(703);
118091
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(388);
118040
118092
  /*******************************************************************************
118041
118093
  *
118042
118094
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118553,13 +118605,9 @@ Object .assign (X3DRenderingContext .prototype,
118553
118605
  this [_defaultFrameBuffer] = baseLayer .framebuffer;
118554
118606
 
118555
118607
  this [_pose] = {
118556
- projectionMatrix: new Numbers_Matrix4 (),
118557
118608
  cameraSpaceMatrix: new Numbers_Matrix4 (),
118558
118609
  viewMatrix: new Numbers_Matrix4 (),
118559
- views: [
118560
- { cameraSpaceMatrix: new Numbers_Matrix4 (), viewMatrix: new Numbers_Matrix4 (), matrix: new Numbers_Matrix4 () },
118561
- { cameraSpaceMatrix: new Numbers_Matrix4 (), viewMatrix: new Numbers_Matrix4 (), matrix: new Numbers_Matrix4 () },
118562
- ],
118610
+ views: [ ],
118563
118611
  };
118564
118612
 
118565
118613
  this .setReferenceSpace ();
@@ -118647,10 +118695,17 @@ Object .assign (X3DRenderingContext .prototype,
118647
118695
 
118648
118696
  this .reshapeFrameBuffer (v, x|0, y|0, width|0, height|0);
118649
118697
 
118650
- this [_pose] .projectionMatrix .assign (view .projectionMatrix);
118651
- this [_pose] .views [v] .cameraSpaceMatrix .assign (view .transform .matrix);
118652
- this [_pose] .views [v] .viewMatrix .assign (view .transform .inverse .matrix);
118653
- this [_pose] .views [v] .matrix .assign (pose .transform .matrix) .multRight (view .transform .inverse .matrix);
118698
+ const pv = this [_pose] .views [v] ??= {
118699
+ projectionMatrix: new Numbers_Matrix4 (),
118700
+ cameraSpaceMatrix: new Numbers_Matrix4 (),
118701
+ viewMatrix: new Numbers_Matrix4 (),
118702
+ matrix: new Numbers_Matrix4 (),
118703
+ };
118704
+
118705
+ pv .projectionMatrix .assign (view .projectionMatrix);
118706
+ pv .cameraSpaceMatrix .assign (view .transform .matrix);
118707
+ pv .viewMatrix .assign (view .transform .inverse .matrix);
118708
+ pv .matrix .assign (pose .transform .matrix) .multRight (view .transform .inverse .matrix);
118654
118709
 
118655
118710
  ++ v;
118656
118711
  }
@@ -119333,7 +119388,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
119333
119388
 
119334
119389
  /* harmony default export */ const Sound_X3DSoundContext = (x_ite_Namespace .add ("X3DSoundContext", X3DSoundContext_default_));
119335
119390
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
119336
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(703);
119391
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(388);
119337
119392
  const KTXDecoder_default_ = class KTXDecoder
119338
119393
  {
119339
119394
  constructor (gl, externalKtxlib, scriptDir)
@@ -120896,7 +120951,7 @@ const Components_default_ = Components;
120896
120951
 
120897
120952
  /* harmony default export */ const x_ite_Components = (x_ite_Namespace .add ("Components", Components_default_));
120898
120953
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
120899
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(703);
120954
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(388);
120900
120955
  /*******************************************************************************
120901
120956
  * MIT License
120902
120957
  *
@@ -122162,7 +122217,7 @@ const FieldTypes_default_ = new Configuration_FieldTypesArray (Object .values (x
122162
122217
 
122163
122218
  /* harmony default export */ const FieldTypes = (x_ite_Namespace .add ("FieldTypes", FieldTypes_default_));
122164
122219
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
122165
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(703);
122220
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(388);
122166
122221
  /*******************************************************************************
122167
122222
  *
122168
122223
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -123229,7 +123284,7 @@ const X3DBrowser_default_ = X3DBrowser;
123229
123284
 
123230
123285
  /* harmony default export */ const Browser_X3DBrowser = (x_ite_Namespace .add ("X3DBrowser", X3DBrowser_default_));
123231
123286
  ;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
123232
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(703);
123287
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(388);
123233
123288
  /*******************************************************************************
123234
123289
  *
123235
123290
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -123496,8 +123551,8 @@ const QuickSort_default_ = QuickSort;
123496
123551
 
123497
123552
  /* harmony default export */ const Algorithms_QuickSort = (x_ite_Namespace .add ("QuickSort", QuickSort_default_));
123498
123553
  ;// CONCATENATED MODULE: ./src/lib/jquery.js
123499
- /* provided dependency */ var jquery_$ = __webpack_require__(703);
123500
- /* provided dependency */ var pako = __webpack_require__(943);
123554
+ /* provided dependency */ var jquery_$ = __webpack_require__(388);
123555
+ /* provided dependency */ var pako = __webpack_require__(336);
123501
123556
  Object .assign (jquery_$,
123502
123557
  {
123503
123558
  decodeText (input)
@@ -123573,13 +123628,13 @@ const jquery_default_ = jquery_$;
123573
123628
 
123574
123629
  /* harmony default export */ const jquery = (x_ite_Namespace .add ("jquery", jquery_default_));
123575
123630
  ;// CONCATENATED MODULE: ./src/lib/libtess.js
123576
- /* provided dependency */ var libtess_libtess = __webpack_require__(860);
123631
+ /* provided dependency */ var libtess_libtess = __webpack_require__(665);
123577
123632
  const libtess_default_ = libtess_libtess;
123578
123633
  ;
123579
123634
 
123580
123635
  /* harmony default export */ const lib_libtess = (x_ite_Namespace .add ("libtess", libtess_default_));
123581
123636
  ;// CONCATENATED MODULE: ./src/x_ite/X3D.js
123582
- /* provided dependency */ var X3D_$ = __webpack_require__(703);
123637
+ /* provided dependency */ var X3D_$ = __webpack_require__(388);
123583
123638
  /*******************************************************************************
123584
123639
  *
123585
123640
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -123883,7 +123938,7 @@ x_ite_Namespace, x_ite_Namespace .Fields,
123883
123938
 
123884
123939
  // Assign X3D to global namespace.
123885
123940
 
123886
- window [Symbol .for ("X_ITE.X3D-10.3.0")] = x_ite_X3D;
123941
+ window [Symbol .for ("X_ITE.X3D-10.3.1")] = x_ite_X3D;
123887
123942
 
123888
123943
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
123889
123944