x_ite 9.2.7 → 9.3.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 (48) 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 +14 -14
  4. package/dist/assets/components/CADGeometry.min.js +1 -1
  5. package/dist/assets/components/CubeMapTexturing.js +25 -25
  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 +19 -19
  12. package/dist/assets/components/Geometry2D.min.js +1 -1
  13. package/dist/assets/components/Geospatial.js +33 -33
  14. package/dist/assets/components/Geospatial.min.js +1 -1
  15. package/dist/assets/components/HAnim.js +23 -23
  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 +27 -27
  20. package/dist/assets/components/Layout.min.js +1 -1
  21. package/dist/assets/components/NURBS.js +23 -23
  22. package/dist/assets/components/NURBS.min.js +1 -1
  23. package/dist/assets/components/ParticleSystems.js +23 -23
  24. package/dist/assets/components/ParticleSystems.min.js +1 -1
  25. package/dist/assets/components/Picking.js +18 -18
  26. package/dist/assets/components/Picking.min.js +1 -1
  27. package/dist/assets/components/RigidBodyPhysics.js +17 -17
  28. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  29. package/dist/assets/components/Scripting.js +38 -38
  30. package/dist/assets/components/Scripting.min.js +1 -1
  31. package/dist/assets/components/Text.js +24 -24
  32. package/dist/assets/components/Text.min.js +1 -1
  33. package/dist/assets/components/TextureProjection.js +18 -42
  34. package/dist/assets/components/TextureProjection.min.js +1 -1
  35. package/dist/assets/components/Texturing3D.js +30 -30
  36. package/dist/assets/components/Texturing3D.min.js +1 -1
  37. package/dist/assets/components/VolumeRendering.js +19 -19
  38. package/dist/assets/components/VolumeRendering.min.js +1 -1
  39. package/dist/assets/components/X_ITE.js +8 -8
  40. package/dist/assets/components/X_ITE.min.js +1 -1
  41. package/dist/x_ite.css +1 -1
  42. package/dist/x_ite.d.ts +6 -1
  43. package/dist/x_ite.js +175 -151
  44. package/dist/x_ite.min.js +1 -1
  45. package/dist/x_ite.min.mjs +1 -1
  46. package/dist/x_ite.mjs +175 -151
  47. package/dist/x_ite.zip +0 -0
  48. package/package.json +1 -1
package/dist/x_ite.mjs CHANGED
@@ -1,9 +1,9 @@
1
- /* X_ITE v9.2.7 */var __webpack_modules__ = ({
1
+ /* X_ITE v9.3.0 */var __webpack_modules__ = ({
2
2
 
3
- /***/ 548:
3
+ /***/ 944:
4
4
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
5
5
 
6
- /* provided dependency */ var jQuery = __webpack_require__(368);
6
+ /* provided dependency */ var jQuery = __webpack_require__(52);
7
7
  /**
8
8
  * @preserve jquery.fullscreen 1.1.5
9
9
  * https://github.com/code-lts/jquery-fullscreen-plugin
@@ -199,7 +199,7 @@ installFullScreenHandlers();
199
199
 
200
200
  /***/ }),
201
201
 
202
- /***/ 214:
202
+ /***/ 82:
203
203
  /***/ ((module, exports, __webpack_require__) => {
204
204
 
205
205
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -213,7 +213,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
213
213
  (function (factory) {
214
214
  if ( true ) {
215
215
  // AMD. Register as an anonymous module.
216
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(368)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
216
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(52)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
217
217
  __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
218
218
  (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
219
219
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
@@ -424,7 +424,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
424
424
 
425
425
  /***/ }),
426
426
 
427
- /***/ 368:
427
+ /***/ 52:
428
428
  /***/ (function(module, exports) {
429
429
 
430
430
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -11148,7 +11148,7 @@ return jQuery;
11148
11148
 
11149
11149
  /***/ }),
11150
11150
 
11151
- /***/ 125:
11151
+ /***/ 177:
11152
11152
  /***/ ((module) => {
11153
11153
 
11154
11154
  /**
@@ -15927,7 +15927,7 @@ if (true) {
15927
15927
 
15928
15928
  /***/ }),
15929
15929
 
15930
- /***/ 300:
15930
+ /***/ 776:
15931
15931
  /***/ (function(__unused_webpack_module, exports) {
15932
15932
 
15933
15933
 
@@ -19172,7 +19172,7 @@ if (true) {
19172
19172
 
19173
19173
  /***/ }),
19174
19174
 
19175
- /***/ 939:
19175
+ /***/ 247:
19176
19176
  /***/ (function(module, exports) {
19177
19177
 
19178
19178
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
@@ -20299,7 +20299,7 @@ Object .defineProperty (Namespace, "add",
20299
20299
  }
20300
20300
  else
20301
20301
  {
20302
- const X3D = window [Symbol .for ("X_ITE.X3D-9.2.7")];
20302
+ const X3D = window [Symbol .for ("X_ITE.X3D-9.3.0")];
20303
20303
 
20304
20304
  if (X3D)
20305
20305
  X3D [name] = module;
@@ -21798,15 +21798,11 @@ if (DEVELOPMENT)
21798
21798
  },
21799
21799
  addEvent ()
21800
21800
  {
21801
- this .setModificationTime (Date .now ());
21802
-
21803
21801
  for (const parent of this [_parents] .values ())
21804
21802
  parent .deref () ?.addEvent (this);
21805
21803
  },
21806
21804
  addEventObject (field, event)
21807
21805
  {
21808
- this .setModificationTime (Date .now ());
21809
-
21810
21806
  for (const parent of this [_parents] .values ())
21811
21807
  parent .deref () ?.addEventObject (this, event);
21812
21808
  },
@@ -21924,15 +21920,11 @@ else
21924
21920
  },
21925
21921
  addEvent ()
21926
21922
  {
21927
- this .setModificationTime (Date .now ());
21928
-
21929
21923
  for (const parent of this [_parents])
21930
21924
  parent .addEvent (this);
21931
21925
  },
21932
21926
  addEventObject (field, event)
21933
21927
  {
21934
- this .setModificationTime (Date .now ());
21935
-
21936
21928
  for (const parent of this [_parents])
21937
21929
  parent .addEventObject (this, event);
21938
21930
  },
@@ -27902,6 +27894,44 @@ Object .assign (Rotation4 .prototype,
27902
27894
  this .update ();
27903
27895
  return this;
27904
27896
  },
27897
+ /**
27898
+ * Straightens the rotation so that the x-axis of this rotation is parallel to the plane spawned by upVector.
27899
+ */
27900
+ straighten: (() =>
27901
+ {
27902
+ const
27903
+ localXAxis = new Numbers_Vector3 (0, 0, 0),
27904
+ localZAxis = new Numbers_Vector3 (0, 0, 0),
27905
+ upNormal = new Numbers_Vector3 (0, 0, 0),
27906
+ rotation = new Rotation4 ();
27907
+
27908
+ return function (upVector = Numbers_Vector3 .yAxis)
27909
+ {
27910
+ upNormal .assign (upVector) .normalize ();
27911
+
27912
+ this .multVecRot (localXAxis .assign (Numbers_Vector3 .xAxis) .negate ());
27913
+ this .multVecRot (localZAxis .assign (Numbers_Vector3 .zAxis));
27914
+
27915
+ // If viewer looks along up vector.
27916
+ if (Math .abs (localZAxis .dot (upNormal)) >= 1)
27917
+ return this;
27918
+
27919
+ const newXAxis = localZAxis .cross (upNormal) .normalize ();
27920
+
27921
+ if (newXAxis .dot (localXAxis) <= -1)
27922
+ {
27923
+ rotation .setAxisAngle (Numbers_Vector3 .zAxis, Math .PI);
27924
+
27925
+ return this .multLeft (rotation);
27926
+ }
27927
+ else
27928
+ {
27929
+ rotation .setFromToVec (localXAxis, newXAxis);
27930
+
27931
+ return this .multRight (rotation);
27932
+ }
27933
+ };
27934
+ })(),
27905
27935
  toString ()
27906
27936
  {
27907
27937
  return this [_x] + " " +
@@ -30035,6 +30065,10 @@ Object .assign (Object .setPrototypeOf (SFRotation .prototype, Base_X3DField .pr
30035
30065
  {
30036
30066
  return new SFRotation (this .getValue () .copy () .slerp (rotation .getValue (), t));
30037
30067
  },
30068
+ straighten (upVector)
30069
+ {
30070
+ return new SFRotation (this .getValue () .copy () .straighten (upVector ?.getValue ()));
30071
+ },
30038
30072
  toStream (generator)
30039
30073
  {
30040
30074
  const { x, y, z, angle } = this .getValue ();
@@ -31081,7 +31115,6 @@ Object .assign (Object .setPrototypeOf (X3DObjectArrayField .prototype, Base_X3D
31081
31115
  copy = target .create ();
31082
31116
 
31083
31117
  copy .assign (target);
31084
- copy .setModificationTime (0);
31085
31118
 
31086
31119
  return copy;
31087
31120
  },
@@ -31687,8 +31720,6 @@ Object .assign (Object .setPrototypeOf (X3DTypedArrayField .prototype, Base_X3DA
31687
31720
 
31688
31721
  Base_X3DArrayField .prototype .set .call (copy, copyArray);
31689
31722
 
31690
- copy .setModificationTime (0);
31691
-
31692
31723
  return copy;
31693
31724
  },
31694
31725
  equals (other)
@@ -32563,8 +32594,6 @@ Object .assign (Object .setPrototypeOf (MFNode .prototype, Base_X3DObjectArrayFi
32563
32594
  for (const node of this .getValue ())
32564
32595
  copy .push (node .copy (instance));
32565
32596
 
32566
- copy .setModificationTime (0);
32567
-
32568
32597
  return copy;
32569
32598
  }
32570
32599
  else
@@ -33641,10 +33670,25 @@ Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype, Base_X3DChildObj
33641
33670
  {
33642
33671
  return this [_executionContext];
33643
33672
  },
33644
- setExecutionContext (value)
33673
+ setExecutionContext (executionContext)
33645
33674
  {
33675
+ // Disconnect interests.
33676
+
33677
+ this .getOuterNode ?.() ?.getLive () .removeInterest (_set_live__, this);
33678
+ this [_executionContext] .getLive () .removeInterest (_set_live__, this);
33679
+
33646
33680
  // Currently only useful for Scene.
33647
- this [_executionContext] = value;
33681
+ this [_executionContext] = executionContext;
33682
+
33683
+ // Connect interests.
33684
+
33685
+ if (this .getOuterNode ?.())
33686
+ this .getOuterNode () .getLive () .addInterest (_set_live__, this);
33687
+
33688
+ else if (this [_executionContext] !== this)
33689
+ this [_executionContext] .getLive () .addInterest (_set_live__, this);
33690
+
33691
+ this [_set_live__] ();
33648
33692
  },
33649
33693
  addType (value)
33650
33694
  {
@@ -34028,7 +34072,10 @@ Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype, Base_X3DChildObj
34028
34072
  addEvent (field)
34029
34073
  {
34030
34074
  if (field .isTainted ())
34075
+ {
34076
+ field .setModificationTime (Date .now ());
34031
34077
  return;
34078
+ }
34032
34079
 
34033
34080
  // if (this .getTypeName () === "HAnimMotion")
34034
34081
  // {
@@ -34044,6 +34091,8 @@ Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype, Base_X3DChildObj
34044
34091
  {
34045
34092
  const browser = this [_browser];
34046
34093
 
34094
+ field .setModificationTime (Date .now ());
34095
+
34047
34096
  // Register for processEvent
34048
34097
 
34049
34098
  browser .addTaintedField (field, event);
@@ -34164,7 +34213,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34164
34213
  x_ite_Namespace .add ("X3DBaseNode", "x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
34165
34214
  /* harmony default export */ const Base_X3DBaseNode = (X3DBaseNode_default_);
34166
34215
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
34167
- /* provided dependency */ var $ = __webpack_require__(368);
34216
+ /* provided dependency */ var $ = __webpack_require__(52);
34168
34217
  /*******************************************************************************
34169
34218
  *
34170
34219
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34301,7 +34350,7 @@ x_ite_Namespace .add ("Legacy", "x_ite/Browser/Legacy", Legacy_default_);
34301
34350
  *
34302
34351
  ******************************************************************************/
34303
34352
 
34304
- const BROWSER_VERSION_default_ = "9.2.7";
34353
+ const BROWSER_VERSION_default_ = "9.3.0";
34305
34354
  ;
34306
34355
 
34307
34356
  x_ite_Namespace .add ("BROWSER_VERSION", "x_ite/BROWSER_VERSION", BROWSER_VERSION_default_);
@@ -38445,7 +38494,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
38445
38494
  x_ite_Namespace .add ("X3DProtoDeclaration", "x_ite/Prototype/X3DProtoDeclaration", X3DProtoDeclaration_default_);
38446
38495
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (X3DProtoDeclaration_default_);
38447
38496
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
38448
- /* provided dependency */ var X3DParser_$ = __webpack_require__(368);
38497
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(52);
38449
38498
  /*******************************************************************************
38450
38499
  *
38451
38500
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -38707,7 +38756,7 @@ const Expressions_default_ = Expressions;
38707
38756
  x_ite_Namespace .add ("Expressions", "x_ite/Parser/Expressions", Expressions_default_);
38708
38757
  /* harmony default export */ const Parser_Expressions = (Expressions_default_);
38709
38758
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
38710
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(368);
38759
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(52);
38711
38760
  /*******************************************************************************
38712
38761
  *
38713
38762
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -41393,7 +41442,7 @@ const VRMLParser_default_ = VRMLParser;
41393
41442
  x_ite_Namespace .add ("VRMLParser", "x_ite/Parser/VRMLParser", VRMLParser_default_);
41394
41443
  /* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
41395
41444
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
41396
- /* provided dependency */ var XMLParser_$ = __webpack_require__(368);
41445
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(52);
41397
41446
  /*******************************************************************************
41398
41447
  *
41399
41448
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -43502,7 +43551,7 @@ const URLs_default_ = URLs;
43502
43551
  x_ite_Namespace .add ("URLs", "x_ite/Browser/Networking/URLs", URLs_default_);
43503
43552
  /* harmony default export */ const Networking_URLs = (URLs_default_);
43504
43553
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
43505
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(368);
43554
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(52);
43506
43555
  /*******************************************************************************
43507
43556
  *
43508
43557
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -46803,7 +46852,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
46803
46852
  x_ite_Namespace .add ("GLTF2Parser", "x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
46804
46853
  /* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
46805
46854
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
46806
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(368);
46855
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(52);
46807
46856
  /*******************************************************************************
46808
46857
  *
46809
46858
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -46955,7 +47004,7 @@ const GLB2Parser_default_ = GLB2Parser;
46955
47004
  x_ite_Namespace .add ("GLB2Parser", "x_ite/Parser/GLB2Parser", GLB2Parser_default_);
46956
47005
  /* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
46957
47006
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
46958
- /* provided dependency */ var OBJParser_$ = __webpack_require__(368);
47007
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(52);
46959
47008
  /*******************************************************************************
46960
47009
  *
46961
47010
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -50310,8 +50359,8 @@ const MatrixStack_default_ = MatrixStack;
50310
50359
  x_ite_Namespace .add ("MatrixStack", "standard/Math/Utility/MatrixStack", MatrixStack_default_);
50311
50360
  /* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
50312
50361
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
50313
- /* provided dependency */ var SVGParser_$ = __webpack_require__(368);
50314
- /* provided dependency */ var libtess = __webpack_require__(125);
50362
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(52);
50363
+ /* provided dependency */ var libtess = __webpack_require__(177);
50315
50364
  /*******************************************************************************
50316
50365
  *
50317
50366
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53079,7 +53128,7 @@ const SVGParser_default_ = SVGParser;
53079
53128
  x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_);
53080
53129
  /* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
53081
53130
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
53082
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(368);
53131
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(52);
53083
53132
  /*******************************************************************************
53084
53133
  *
53085
53134
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53429,7 +53478,7 @@ const Plane3_default_ = Plane3;
53429
53478
  x_ite_Namespace .add ("Plane3", "standard/Math/Geometry/Plane3", Plane3_default_);
53430
53479
  /* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
53431
53480
  ;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
53432
- /* provided dependency */ var Triangle3_libtess = __webpack_require__(125);
53481
+ /* provided dependency */ var Triangle3_libtess = __webpack_require__(177);
53433
53482
  /*******************************************************************************
53434
53483
  *
53435
53484
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -61942,7 +61991,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
61942
61991
  x_ite_Namespace .add ("X3DTexture2DNode", "x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
61943
61992
  /* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
61944
61993
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
61945
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(368);
61994
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(52);
61946
61995
  /*******************************************************************************
61947
61996
  *
61948
61997
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -64742,32 +64791,10 @@ Object .assign (Object .setPrototypeOf (X3DViewpointNode .prototype, Core_X3DBin
64742
64791
 
64743
64792
  this .setInterpolators (this, relative);
64744
64793
  },
64745
- straightenHorizon: (() =>
64794
+ straightenHorizon (orientation, upVector = this .getUpVector (true))
64746
64795
  {
64747
- const
64748
- localXAxis = new Numbers_Vector3 (0, 0, 0),
64749
- localZAxis = new Numbers_Vector3 (0, 0, 0),
64750
- rotation = new Numbers_Rotation4 ();
64751
-
64752
- return function (orientation, upVector = this .getUpVector (true))
64753
- {
64754
- orientation .multVecRot (localXAxis .assign (Numbers_Vector3 .xAxis) .negate ());
64755
- orientation .multVecRot (localZAxis .assign (Numbers_Vector3 .zAxis));
64756
-
64757
- const vector = localZAxis .cross (upVector);
64758
-
64759
- // If viewer looks along the up vector.
64760
- if (Math .abs (localZAxis .dot (upVector)) >= 1)
64761
- return orientation;
64762
-
64763
- if (Math .abs (vector .dot (localXAxis)) >= 1)
64764
- return orientation;
64765
-
64766
- rotation .setFromToVec (localXAxis, vector);
64767
-
64768
- return orientation .multRight (rotation);
64769
- };
64770
- })(),
64796
+ return orientation .straighten (upVector);
64797
+ },
64771
64798
  viewAll (bbox)
64772
64799
  {
64773
64800
  bbox .copy () .multRight (this .modelMatrix .copy () .inverse ());
@@ -65565,7 +65592,7 @@ const X3DWorld_default_ = X3DWorld;
65565
65592
  x_ite_Namespace .add ("X3DWorld", "x_ite/Execution/X3DWorld", X3DWorld_default_);
65566
65593
  /* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
65567
65594
  ;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
65568
- /* provided dependency */ var FileLoader_$ = __webpack_require__(368);
65595
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(52);
65569
65596
  /*******************************************************************************
65570
65597
  *
65571
65598
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -65681,9 +65708,7 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
65681
65708
  {
65682
65709
  const scene = this .browser .createScene ();
65683
65710
 
65684
- if (this .node instanceof Execution_X3DWorld)
65685
- scene .loader = this;
65686
- else
65711
+ if (!(this .node instanceof Execution_X3DWorld))
65687
65712
  scene .setExecutionContext (this .executionContext);
65688
65713
 
65689
65714
  scene .setWorldURL (new URL (worldURL, this .getBaseURL ()) .href);
@@ -65717,8 +65742,6 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
65717
65742
 
65718
65743
  scene ._initLoadCount .removeInterest ("set_initLoadCount__", this);
65719
65744
 
65720
- delete scene .loader;
65721
-
65722
65745
  // Wait for instances to be created.
65723
65746
 
65724
65747
  setTimeout (() =>
@@ -65979,10 +66002,7 @@ Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Pr
65979
66002
  {
65980
66003
  Networking_X3DUrlObject .prototype .set_live__ .call (this);
65981
66004
 
65982
- if (this .checkLoadState () !== Base_X3DConstants .COMPLETE_STATE)
65983
- return;
65984
-
65985
- this [_scene] .setLive (this .getLive () .getValue ());
66005
+ this [_scene] ?.setLive (this .getLive () .getValue ());
65986
66006
  },
65987
66007
  canUserDefinedFields ()
65988
66008
  {
@@ -66027,6 +66047,9 @@ Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Pr
66027
66047
  },
66028
66048
  setInternalScene (value)
66029
66049
  {
66050
+ this [_scene] ?.setExecutionContext (this [_scene]);
66051
+ this [_scene] ?.setLive (false);
66052
+
66030
66053
  this [_scene] = value;
66031
66054
 
66032
66055
  const
@@ -66036,8 +66059,8 @@ Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Pr
66036
66059
  if (!proto)
66037
66060
  throw new Error ("PROTO not found");
66038
66061
 
66039
- this [_scene] .setLive (this .getLive () .getValue ());
66040
66062
  this [_scene] .setExecutionContext (this .getExecutionContext ());
66063
+ this [_scene] .setLive (this .getLive () .getValue ());
66041
66064
 
66042
66065
  this .setLoadState (Base_X3DConstants .COMPLETE_STATE);
66043
66066
  this .setProtoDeclaration (proto);
@@ -66496,7 +66519,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
66496
66519
  x_ite_Namespace .add ("ProtoDeclarationArray", "x_ite/Prototype/ProtoDeclarationArray", ProtoDeclarationArray_default_);
66497
66520
  /* harmony default export */ const Prototype_ProtoDeclarationArray = (ProtoDeclarationArray_default_);
66498
66521
  ;// CONCATENATED MODULE: ./src/x_ite/Routing/X3DRoute.js
66499
- /* provided dependency */ var X3DRoute_$ = __webpack_require__(368);
66522
+ /* provided dependency */ var X3DRoute_$ = __webpack_require__(52);
66500
66523
  /*******************************************************************************
66501
66524
  *
66502
66525
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -68129,7 +68152,7 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68129
68152
  if (!field .isInitializable ())
68130
68153
  continue;
68131
68154
 
68132
- // Is set during parse.
68155
+ // Is set during parse, or already changed by an route event.
68133
68156
  if (field .getModificationTime ())
68134
68157
  continue;
68135
68158
 
@@ -83406,19 +83429,19 @@ Object .assign (Object .setPrototypeOf (Inline .prototype, Core_X3DChildNode .pr
83406
83429
  },
83407
83430
  setInternalScene (scene)
83408
83431
  {
83432
+ this .scene .setExecutionContext (this .scene);
83409
83433
  this .scene .setLive (false);
83410
83434
  this .scene .rootNodes .removeFieldInterest (this .groupNode ._children);
83411
83435
 
83412
83436
  // Set new scene.
83413
83437
 
83414
83438
  this .scene = scene;
83415
- this .scene .setExecutionContext (this .getExecutionContext ());
83416
83439
 
83440
+ this .scene .setExecutionContext (this .getExecutionContext ());
83441
+ this .scene .setLive (this .getLive () .getValue ());
83417
83442
  this .scene .rootNodes .addFieldInterest (this .groupNode ._children);
83418
83443
  this .groupNode ._children = this .scene .rootNodes;
83419
83444
 
83420
- this .set_live__ ();
83421
-
83422
83445
  this .getBrowser () .addBrowserEvent ();
83423
83446
  },
83424
83447
  getInternalScene ()
@@ -89373,7 +89396,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
89373
89396
  x_ite_Namespace .add ("X3DShaderNode", "x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
89374
89397
  /* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
89375
89398
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
89376
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(368);
89399
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(52);
89377
89400
  /*******************************************************************************
89378
89401
  *
89379
89402
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95014,7 +95037,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
95014
95037
  x_ite_Namespace .add ("ShaderCompiler", "x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
95015
95038
  /* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
95016
95039
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
95017
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(368);
95040
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(52);
95018
95041
  /*******************************************************************************
95019
95042
  *
95020
95043
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95671,7 +95694,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
95671
95694
  x_ite_Namespace .add ("X3DAppearanceNode", "x_ite/Components/Shape/X3DAppearanceNode", X3DAppearanceNode_default_);
95672
95695
  /* harmony default export */ const Shape_X3DAppearanceNode = (X3DAppearanceNode_default_);
95673
95696
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
95674
- /* provided dependency */ var Appearance_$ = __webpack_require__(368);
95697
+ /* provided dependency */ var Appearance_$ = __webpack_require__(52);
95675
95698
  /*******************************************************************************
95676
95699
  *
95677
95700
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99089,7 +99112,7 @@ const Components_Shape_default_ = {
99089
99112
  x_ite_Namespace .add ("Shape", "x_ite/Components/Shape", Components_Shape_default_);
99090
99113
  /* harmony default export */ const Components_Shape = (Components_Shape_default_);
99091
99114
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundProcessingNode.js
99092
- /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(368);
99115
+ /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(52);
99093
99116
  /*******************************************************************************
99094
99117
  *
99095
99118
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99729,7 +99752,7 @@ const X3DSoundSourceNode_default_ = X3DSoundSourceNode;
99729
99752
  x_ite_Namespace .add ("X3DSoundSourceNode", "x_ite/Components/Sound/X3DSoundSourceNode", X3DSoundSourceNode_default_);
99730
99753
  /* harmony default export */ const Sound_X3DSoundSourceNode = (X3DSoundSourceNode_default_);
99731
99754
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/AudioClip.js
99732
- /* provided dependency */ var AudioClip_$ = __webpack_require__(368);
99755
+ /* provided dependency */ var AudioClip_$ = __webpack_require__(52);
99733
99756
  /*******************************************************************************
99734
99757
  *
99735
99758
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -100031,7 +100054,7 @@ const X3DSoundNode_default_ = X3DSoundNode;
100031
100054
  x_ite_Namespace .add ("X3DSoundNode", "x_ite/Components/Sound/X3DSoundNode", X3DSoundNode_default_);
100032
100055
  /* harmony default export */ const Sound_X3DSoundNode = (X3DSoundNode_default_);
100033
100056
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundDestinationNode.js
100034
- /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(368);
100057
+ /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(52);
100035
100058
  /*******************************************************************************
100036
100059
  *
100037
100060
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -101681,7 +101704,7 @@ const ListenerPointSource_default_ = ListenerPointSource;
101681
101704
  x_ite_Namespace .add ("ListenerPointSource", "x_ite/Components/Sound/ListenerPointSource", ListenerPointSource_default_);
101682
101705
  /* harmony default export */ const Sound_ListenerPointSource = (ListenerPointSource_default_);
101683
101706
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/MicrophoneSource.js
101684
- /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(368);
101707
+ /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(52);
101685
101708
  /*******************************************************************************
101686
101709
  *
101687
101710
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -103350,8 +103373,8 @@ const GifMedia_default_ = GifMedia;
103350
103373
  x_ite_Namespace .add ("GifMedia", "x_ite/Browser/Texturing/GifMedia", GifMedia_default_);
103351
103374
  /* harmony default export */ const Texturing_GifMedia = (GifMedia_default_);
103352
103375
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
103353
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(368);
103354
- /* provided dependency */ var SuperGif = __webpack_require__(939);
103376
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(52);
103377
+ /* provided dependency */ var SuperGif = __webpack_require__(247);
103355
103378
  /*******************************************************************************
103356
103379
  *
103357
103380
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -106630,7 +106653,7 @@ const gettext_default_ = gettext;
106630
106653
  x_ite_Namespace .add ("gettext", "locale/gettext", gettext_default_);
106631
106654
  /* harmony default export */ const locale_gettext = (gettext_default_);
106632
106655
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
106633
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(368);
106656
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(52);
106634
106657
  /*******************************************************************************
106635
106658
  *
106636
106659
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107060,7 +107083,7 @@ const TextureQuality_default_ = TextureQuality;
107060
107083
  x_ite_Namespace .add ("TextureQuality", "x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
107061
107084
  /* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
107062
107085
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
107063
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(368);
107086
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(52);
107064
107087
  /*******************************************************************************
107065
107088
  *
107066
107089
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107650,7 +107673,7 @@ const RenderingProperties_default_ = RenderingProperties;
107650
107673
  x_ite_Namespace .add ("RenderingProperties", "x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
107651
107674
  /* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
107652
107675
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
107653
- /* provided dependency */ var Notification_$ = __webpack_require__(368);
107676
+ /* provided dependency */ var Notification_$ = __webpack_require__(52);
107654
107677
  /*******************************************************************************
107655
107678
  *
107656
107679
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107773,8 +107796,8 @@ const Notification_default_ = Notification;
107773
107796
  x_ite_Namespace .add ("Notification", "x_ite/Browser/Core/Notification", Notification_default_);
107774
107797
  /* harmony default export */ const Core_Notification = (Notification_default_);
107775
107798
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
107776
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(548);
107777
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(368);
107799
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(944);
107800
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(52);
107778
107801
  /*******************************************************************************
107779
107802
  *
107780
107803
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -110237,7 +110260,7 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
110237
110260
  },
110238
110261
  },
110239
110262
  {
110240
- setExecutionContext (value)
110263
+ setExecutionContext (executionContext)
110241
110264
  {
110242
110265
  if (!this .isMainScene ())
110243
110266
  {
@@ -110247,7 +110270,7 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
110247
110270
  scene .removeLoadingObject (object);
110248
110271
  }
110249
110272
 
110250
- Execution_X3DExecutionContext .prototype .setExecutionContext .call (this, value);
110273
+ Execution_X3DExecutionContext .prototype .setExecutionContext .call (this, executionContext);
110251
110274
 
110252
110275
  if (!this .isMainScene ())
110253
110276
  {
@@ -110282,7 +110305,7 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
110282
110305
  browser = this .getBrowser (),
110283
110306
  scene = this .getScene ();
110284
110307
 
110285
- if (this === browser .getExecutionContext () || this .loader === browser .loader)
110308
+ if (this === browser .getExecutionContext ())
110286
110309
  browser .addLoadingObject (node);
110287
110310
 
110288
110311
  if (!this .isMainScene ())
@@ -110301,7 +110324,7 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
110301
110324
  browser = this .getBrowser (),
110302
110325
  scene = this .getScene ();
110303
110326
 
110304
- if (this === browser .getExecutionContext () || this .loader === browser .loader)
110327
+ if (this === browser .getExecutionContext ())
110305
110328
  browser .removeLoadingObject (node);
110306
110329
 
110307
110330
  if (!this .isMainScene ())
@@ -110526,7 +110549,7 @@ const DataStorage_default_ = DataStorage;
110526
110549
  x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage_default_);
110527
110550
  /* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
110528
110551
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
110529
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(368);
110552
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(52);
110530
110553
  /*******************************************************************************
110531
110554
  *
110532
110555
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -113049,8 +113072,8 @@ const X3DViewer_default_ = X3DViewer;
113049
113072
  x_ite_Namespace .add ("X3DViewer", "x_ite/Browser/Navigation/X3DViewer", X3DViewer_default_);
113050
113073
  /* harmony default export */ const Navigation_X3DViewer = (X3DViewer_default_);
113051
113074
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
113052
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(214);
113053
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(368);
113075
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(82);
113076
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(52);
113054
113077
  /*******************************************************************************
113055
113078
  *
113056
113079
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -113922,8 +113945,8 @@ const ExamineViewer_default_ = ExamineViewer;
113922
113945
  x_ite_Namespace .add ("ExamineViewer", "x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
113923
113946
  /* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
113924
113947
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
113925
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(214);
113926
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(368);
113948
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(82);
113949
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(52);
113927
113950
  /*******************************************************************************
113928
113951
  *
113929
113952
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114932,8 +114955,8 @@ const FlyViewer_default_ = FlyViewer;
114932
114955
  x_ite_Namespace .add ("FlyViewer", "x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
114933
114956
  /* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
114934
114957
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
114935
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(214);
114936
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(368);
114958
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(82);
114959
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(52);
114937
114960
  /*******************************************************************************
114938
114961
  *
114939
114962
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115264,8 +115287,8 @@ const NoneViewer_default_ = NoneViewer;
115264
115287
  x_ite_Namespace .add ("NoneViewer", "x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
115265
115288
  /* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
115266
115289
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
115267
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(214);
115268
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(368);
115290
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(82);
115291
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(52);
115269
115292
  /*******************************************************************************
115270
115293
  *
115271
115294
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116404,8 +116427,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
116404
116427
  x_ite_Namespace .add ("X3DPickingContext", "x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
116405
116428
  /* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
116406
116429
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
116407
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(214);
116408
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(368);
116430
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(82);
116431
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(52);
116409
116432
  /*******************************************************************************
116410
116433
  *
116411
116434
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116516,7 +116539,7 @@ Object .assign (Object .setPrototypeOf (PointingDevice .prototype, Base_X3DBaseN
116516
116539
  event .stopImmediatePropagation (); // Keeps the rest of the handlers from being executed
116517
116540
 
116518
116541
  browser .setCursor ("HAND");
116519
- browser .finishedEvents () .addInterest ("onverifymotion", this, x, y);
116542
+ this .onverifymotion (x, y);
116520
116543
  }
116521
116544
  }
116522
116545
  },
@@ -116537,8 +116560,7 @@ Object .assign (Object .setPrototypeOf (PointingDevice .prototype, Base_X3DBaseN
116537
116560
 
116538
116561
  browser .buttonReleaseEvent ();
116539
116562
  browser .setCursor (this .isOver ? "HAND" : "DEFAULT");
116540
- browser .finishedEvents () .addInterest ("onverifymotion", this, x, y);
116541
- browser .addBrowserEvent ();
116563
+ this .onverifymotion (x, y);
116542
116564
 
116543
116565
  this .cursor = "DEFAULT";
116544
116566
  }
@@ -116656,12 +116678,10 @@ Object .assign (Object .setPrototypeOf (PointingDevice .prototype, Base_X3DBaseN
116656
116678
  onverifymotion (x, y)
116657
116679
  {
116658
116680
  // Verify isOver state. This is necessary if an Switch changes on buttonReleaseEvent
116659
- // and the new child has a sensor node inside. This sensor node must be update to
116681
+ // and the new child has a sensor node inside. This sensor node must be updated to
116660
116682
  // reflect the correct isOver state.
116661
116683
 
116662
- this .getBrowser () .finishedEvents () .removeInterest ("onverifymotion", this);
116663
-
116664
- this .onmotion (x, y);
116684
+ requestAnimationFrame (() => this .onmotion (x, y));
116665
116685
  },
116666
116686
  showContextMenu (event)
116667
116687
  {
@@ -116936,7 +116956,8 @@ const
116936
116956
  _pointingBuffer = Symbol (),
116937
116957
  _pointingShaders = Symbol (),
116938
116958
  _id = Symbol (),
116939
- _pointingContexts = Symbol ();
116959
+ _pointingContexts = Symbol (),
116960
+ _processEvents = Symbol .for ("X_ITE.X3DRoutingContext.processEvents");
116940
116961
 
116941
116962
  function X3DPointingDeviceSensorContext ()
116942
116963
  {
@@ -117090,6 +117111,8 @@ Object .assign (X3DPointingDeviceSensorContext .prototype,
117090
117111
  for (const sensor of this [_activeSensors])
117091
117112
  sensor .set_active__ (true, hit);
117092
117113
 
117114
+ this [_processEvents] ();
117115
+
117093
117116
  return !! hit .sensors .length;
117094
117117
  },
117095
117118
  buttonReleaseEvent ()
@@ -117102,6 +117125,8 @@ Object .assign (X3DPointingDeviceSensorContext .prototype,
117102
117125
 
117103
117126
  this [_activeSensors] = Array .prototype;
117104
117127
  this [_pointingLayer] = null;
117128
+
117129
+ this [_processEvents] ();
117105
117130
  },
117106
117131
  motionNotifyEvent (x, y)
117107
117132
  {
@@ -117111,6 +117136,8 @@ Object .assign (X3DPointingDeviceSensorContext .prototype,
117111
117136
  this .touch (x, y);
117112
117137
  this .motion ();
117113
117138
 
117139
+ this [_processEvents] ();
117140
+
117114
117141
  return !! this [_hit] .sensors .length;
117115
117142
  },
117116
117143
  leaveNotifyEvent ()
@@ -117688,7 +117715,7 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
117688
117715
  x_ite_Namespace .add ("MultiSampleFrameBuffer", "x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
117689
117716
  /* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
117690
117717
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
117691
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(368);
117718
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(52);
117692
117719
  /*******************************************************************************
117693
117720
  *
117694
117721
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118590,7 +118617,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
118590
118617
  x_ite_Namespace .add ("X3DSoundContext", "x_ite/Browser/Sound/X3DSoundContext", X3DSoundContext_default_);
118591
118618
  /* harmony default export */ const Sound_X3DSoundContext = (X3DSoundContext_default_);
118592
118619
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
118593
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(368);
118620
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(52);
118594
118621
  const KTXDecoder_default_ = class KTXDecoder
118595
118622
  {
118596
118623
  constructor (gl, externalKtxlib, scriptDir)
@@ -119687,7 +119714,7 @@ const
119687
119714
  _cameraTime = Symbol (),
119688
119715
  _collisionTime = Symbol (),
119689
119716
  _displayTime = Symbol (),
119690
- _processEvents = Symbol .for ("X_ITE.X3DRoutingContext.processEvents");
119717
+ X3DBrowserContext_processEvents = Symbol .for ("X_ITE.X3DRoutingContext.processEvents");
119691
119718
 
119692
119719
  const
119693
119720
  browsers = new Set (),
@@ -119872,10 +119899,10 @@ Object .assign (Object .setPrototypeOf (X3DBrowserContext .prototype, Base_X3DBa
119872
119899
  // Events
119873
119900
 
119874
119901
  this .addTaintedField (this ._prepareEvents);
119875
- this [_processEvents] ();
119902
+ this [X3DBrowserContext_processEvents] ();
119876
119903
 
119877
119904
  this .addTaintedField (this ._timeEvents);
119878
- this [_processEvents] ();
119905
+ this [X3DBrowserContext_processEvents] ();
119879
119906
 
119880
119907
  // Camera
119881
119908
 
@@ -119895,19 +119922,19 @@ Object .assign (Object .setPrototypeOf (X3DBrowserContext .prototype, Base_X3DBa
119895
119922
  // Events
119896
119923
 
119897
119924
  this .addTaintedField (this ._sensorEvents);
119898
- this [_processEvents] ();
119925
+ this [X3DBrowserContext_processEvents] ();
119899
119926
 
119900
119927
  // Display
119901
119928
 
119902
119929
  this [_displayTime] .start ()
119903
119930
  this .addTaintedField (this ._displayEvents);
119904
- this [_processEvents] ();
119931
+ this [X3DBrowserContext_processEvents] ();
119905
119932
 
119906
119933
  this .getFrameBuffer () .clear ();
119907
119934
  this [_world] .traverse (Rendering_TraverseType .DISPLAY);
119908
119935
 
119909
119936
  this .addTaintedField (this ._finishedEvents);
119910
- this [_processEvents] ();
119937
+ this [X3DBrowserContext_processEvents] ();
119911
119938
 
119912
119939
  this .getFrameBuffer () .blit ();
119913
119940
  this [_displayTime] .stop ();
@@ -120024,7 +120051,7 @@ Object .assign (X3DBrowserContext,
120024
120051
 
120025
120052
  // Process events from context creation. This will setup nodes like
120026
120053
  // geometry option nodes before any node is created.
120027
- browser [_processEvents] ();
120054
+ browser [X3DBrowserContext_processEvents] ();
120028
120055
  }
120029
120056
  }
120030
120057
 
@@ -120143,7 +120170,7 @@ const Components_default_ = Components;
120143
120170
  x_ite_Namespace .add ("Components", "x_ite/Components", Components_default_);
120144
120171
  /* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
120145
120172
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
120146
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(368);
120173
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(52);
120147
120174
  /*******************************************************************************
120148
120175
  * MIT License
120149
120176
  *
@@ -121274,7 +121301,7 @@ const SupportedProfiles_default_ = SupportedProfiles;
121274
121301
  x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
121275
121302
  /* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
121276
121303
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
121277
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(368);
121304
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(52);
121278
121305
  /*******************************************************************************
121279
121306
  *
121280
121307
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -121705,8 +121732,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121705
121732
 
121706
121733
  // Detach scene from parent.
121707
121734
 
121708
- scene .getExecutionContext () .getLive () .removeInterest ("setLive", scene);
121709
121735
  scene .setExecutionContext (scene);
121736
+ scene .setLive (this .isLive ());
121710
121737
 
121711
121738
  // Replace.
121712
121739
 
@@ -121719,8 +121746,6 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121719
121746
 
121720
121747
  this .setExecutionContext (scene);
121721
121748
  this .getWorld () .bindBindables ();
121722
-
121723
- scene .setLive (this .isLive ());
121724
121749
  });
121725
121750
  },
121726
121751
  checkLoadCount (resolve, loadCount)
@@ -121747,9 +121772,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121747
121772
 
121748
121773
  if (!external)
121749
121774
  {
121750
- currentScene .getLive () .addInterest ("setLive", scene);
121751
121775
  scene .setExecutionContext (currentScene);
121752
- scene .setLive (currentScene .isLive ());
121776
+ scene .setLive (true);
121753
121777
  }
121754
121778
 
121755
121779
  return scene .rootNodes;
@@ -121771,9 +121795,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121771
121795
 
121772
121796
  if (!external)
121773
121797
  {
121774
- currentScene .getLive () .addInterest ("setLive", scene);
121775
121798
  scene .setExecutionContext (currentScene);
121776
- scene .setLive (currentScene .isLive ());
121799
+ scene .setLive (true);
121777
121800
  }
121778
121801
 
121779
121802
  return scene;
@@ -121804,7 +121827,7 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121804
121827
 
121805
121828
  this .addLoadingObject (fileLoader);
121806
121829
 
121807
- fileLoader .createX3DFromURL (url, null, (scene) =>
121830
+ fileLoader .createX3DFromURL (url, null, scene =>
121808
121831
  {
121809
121832
  this .removeLoadingObject (fileLoader);
121810
121833
 
@@ -121814,9 +121837,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121814
121837
 
121815
121838
  if (!external)
121816
121839
  {
121817
- currentScene .getLive () .addInterest ("setLive", scene);
121818
121840
  scene .setExecutionContext (currentScene);
121819
- scene .setLive (currentScene .isLive ());
121841
+ scene .setLive (true);
121820
121842
  }
121821
121843
 
121822
121844
  // Wait until scene is completely loaded, scene ._loadCount must be 0.
@@ -121843,7 +121865,7 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121843
121865
 
121844
121866
  this .addLoadingObject (fileLoader);
121845
121867
 
121846
- fileLoader .createX3DFromURL (url, null, (scene) =>
121868
+ fileLoader .createX3DFromURL (url, null, scene =>
121847
121869
  {
121848
121870
  this .removeLoadingObject (fileLoader);
121849
121871
 
@@ -121851,9 +121873,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121851
121873
  {
121852
121874
  if (!external)
121853
121875
  {
121854
- currentScene .getLive () .addInterest ("setLive", scene);
121855
121876
  scene .setExecutionContext (currentScene);
121856
- scene .setLive (currentScene .isLive ());
121877
+ scene .setLive (true);
121857
121878
  }
121858
121879
 
121859
121880
  resolve (scene);
@@ -121879,7 +121900,7 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121879
121900
 
121880
121901
  const fileLoader = new InputOutput_FileLoader (this .getWorld ());
121881
121902
 
121882
- fileLoader .createX3DFromURL (url, parameter, (scene) =>
121903
+ fileLoader .createX3DFromURL (url, parameter, scene =>
121883
121904
  {
121884
121905
  if (this [_fileLoader] !== fileLoader)
121885
121906
  {
@@ -122032,9 +122053,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
122032
122053
 
122033
122054
  if (!external)
122034
122055
  {
122035
- currentScene .getLive () .addInterest ("setLive", scene);
122036
122056
  scene .setExecutionContext (currentScene);
122037
- scene .setLive (currentScene .isLive ());
122057
+ scene .setLive (true);
122038
122058
  }
122039
122059
 
122040
122060
  const parser = new Parser_XMLParser (scene);
@@ -122052,9 +122072,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
122052
122072
 
122053
122073
  if (!external)
122054
122074
  {
122055
- currentScene .getLive () .addInterest ("setLive", scene);
122056
122075
  scene .setExecutionContext (currentScene);
122057
- scene .setLive (currentScene .isLive ());
122076
+ scene .setLive (true);
122058
122077
  }
122059
122078
 
122060
122079
  const parser = new Parser_JSONParser (scene);
@@ -122373,7 +122392,7 @@ const X3DBrowser_default_ = X3DBrowser;
122373
122392
  x_ite_Namespace .add ("X3DBrowser", "x_ite/Browser/X3DBrowser", X3DBrowser_default_);
122374
122393
  /* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
122375
122394
  ;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
122376
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(368);
122395
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(52);
122377
122396
  /*******************************************************************************
122378
122397
  *
122379
122398
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122494,6 +122513,11 @@ class X3DCanvasElement extends HTMLElement
122494
122513
  {
122495
122514
  return this .browser ?.getCanvas () [0] .toDataURL (... args);
122496
122515
  }
122516
+
122517
+ get [Symbol .toStringTag] ()
122518
+ {
122519
+ return "X3DCanvasElement";
122520
+ }
122497
122521
  }
122498
122522
 
122499
122523
  // IE fix.
@@ -122505,8 +122529,8 @@ const X3DCanvasElement_default_ = X3DCanvasElement;
122505
122529
  x_ite_Namespace .add ("X3DCanvasElement", "x_ite/X3DCanvasElement", X3DCanvasElement_default_);
122506
122530
  /* harmony default export */ const x_ite_X3DCanvasElement = (X3DCanvasElement_default_);
122507
122531
  ;// CONCATENATED MODULE: ./src/lib/jquery.js
122508
- /* provided dependency */ var jquery_$ = __webpack_require__(368);
122509
- /* provided dependency */ var pako = __webpack_require__(300);
122532
+ /* provided dependency */ var jquery_$ = __webpack_require__(52);
122533
+ /* provided dependency */ var pako = __webpack_require__(776);
122510
122534
  Object .assign (jquery_$,
122511
122535
  {
122512
122536
  decodeText (input)
@@ -122583,14 +122607,14 @@ const jquery_default_ = jquery_$;
122583
122607
  x_ite_Namespace .add ("jquery", "lib/jquery", jquery_default_);
122584
122608
  /* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
122585
122609
  ;// CONCATENATED MODULE: ./src/lib/libtess.js
122586
- /* provided dependency */ var libtess_libtess = __webpack_require__(125);
122610
+ /* provided dependency */ var libtess_libtess = __webpack_require__(177);
122587
122611
  const libtess_default_ = libtess_libtess;
122588
122612
  ;
122589
122613
 
122590
122614
  x_ite_Namespace .add ("libtess", "lib/libtess", libtess_default_);
122591
122615
  /* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
122592
122616
  ;// CONCATENATED MODULE: ./src/x_ite/X3D.js
122593
- /* provided dependency */ var X3D_$ = __webpack_require__(368);
122617
+ /* provided dependency */ var X3D_$ = __webpack_require__(52);
122594
122618
  /*******************************************************************************
122595
122619
  *
122596
122620
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122898,7 +122922,7 @@ Object .assign (X3D,
122898
122922
 
122899
122923
  // Assign X3D to global namespace.
122900
122924
 
122901
- window [Symbol .for ("X_ITE.X3D-9.2.7")] = x_ite_X3D;
122925
+ window [Symbol .for ("X_ITE.X3D-9.3.0")] = x_ite_X3D;
122902
122926
 
122903
122927
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
122904
122928