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.js CHANGED
@@ -1,4 +1,4 @@
1
- /* X_ITE v9.2.7 */(function webpackUniversalModuleDefinition(root, factory) {
1
+ /* X_ITE v9.3.0 */(function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
3
  module.exports = factory();
4
4
  else if(typeof define === 'function' && define.amd)
@@ -11,10 +11,10 @@
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
- /***/ 548:
14
+ /***/ 944:
15
15
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
16
16
 
17
- /* provided dependency */ var jQuery = __webpack_require__(368);
17
+ /* provided dependency */ var jQuery = __webpack_require__(52);
18
18
  /**
19
19
  * @preserve jquery.fullscreen 1.1.5
20
20
  * https://github.com/code-lts/jquery-fullscreen-plugin
@@ -210,7 +210,7 @@ installFullScreenHandlers();
210
210
 
211
211
  /***/ }),
212
212
 
213
- /***/ 214:
213
+ /***/ 82:
214
214
  /***/ ((module, exports, __webpack_require__) => {
215
215
 
216
216
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -224,7 +224,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
224
224
  (function (factory) {
225
225
  if ( true ) {
226
226
  // AMD. Register as an anonymous module.
227
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(368)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
227
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(52)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
228
228
  __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
229
229
  (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
230
230
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
@@ -435,7 +435,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
435
435
 
436
436
  /***/ }),
437
437
 
438
- /***/ 368:
438
+ /***/ 52:
439
439
  /***/ (function(module, exports) {
440
440
 
441
441
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -11159,7 +11159,7 @@ return jQuery;
11159
11159
 
11160
11160
  /***/ }),
11161
11161
 
11162
- /***/ 125:
11162
+ /***/ 177:
11163
11163
  /***/ ((module) => {
11164
11164
 
11165
11165
  /**
@@ -15938,7 +15938,7 @@ if (true) {
15938
15938
 
15939
15939
  /***/ }),
15940
15940
 
15941
- /***/ 300:
15941
+ /***/ 776:
15942
15942
  /***/ (function(__unused_webpack_module, exports) {
15943
15943
 
15944
15944
 
@@ -19183,7 +19183,7 @@ if (true) {
19183
19183
 
19184
19184
  /***/ }),
19185
19185
 
19186
- /***/ 939:
19186
+ /***/ 247:
19187
19187
  /***/ (function(module, exports) {
19188
19188
 
19189
19189
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
@@ -20311,7 +20311,7 @@ Object .defineProperty (Namespace, "add",
20311
20311
  }
20312
20312
  else
20313
20313
  {
20314
- const X3D = window [Symbol .for ("X_ITE.X3D-9.2.7")];
20314
+ const X3D = window [Symbol .for ("X_ITE.X3D-9.3.0")];
20315
20315
 
20316
20316
  if (X3D)
20317
20317
  X3D [name] = module;
@@ -21810,15 +21810,11 @@ if (DEVELOPMENT)
21810
21810
  },
21811
21811
  addEvent ()
21812
21812
  {
21813
- this .setModificationTime (Date .now ());
21814
-
21815
21813
  for (const parent of this [_parents] .values ())
21816
21814
  parent .deref () ?.addEvent (this);
21817
21815
  },
21818
21816
  addEventObject (field, event)
21819
21817
  {
21820
- this .setModificationTime (Date .now ());
21821
-
21822
21818
  for (const parent of this [_parents] .values ())
21823
21819
  parent .deref () ?.addEventObject (this, event);
21824
21820
  },
@@ -21936,15 +21932,11 @@ else
21936
21932
  },
21937
21933
  addEvent ()
21938
21934
  {
21939
- this .setModificationTime (Date .now ());
21940
-
21941
21935
  for (const parent of this [_parents])
21942
21936
  parent .addEvent (this);
21943
21937
  },
21944
21938
  addEventObject (field, event)
21945
21939
  {
21946
- this .setModificationTime (Date .now ());
21947
-
21948
21940
  for (const parent of this [_parents])
21949
21941
  parent .addEventObject (this, event);
21950
21942
  },
@@ -27914,6 +27906,44 @@ Object .assign (Rotation4 .prototype,
27914
27906
  this .update ();
27915
27907
  return this;
27916
27908
  },
27909
+ /**
27910
+ * Straightens the rotation so that the x-axis of this rotation is parallel to the plane spawned by upVector.
27911
+ */
27912
+ straighten: (() =>
27913
+ {
27914
+ const
27915
+ localXAxis = new Numbers_Vector3 (0, 0, 0),
27916
+ localZAxis = new Numbers_Vector3 (0, 0, 0),
27917
+ upNormal = new Numbers_Vector3 (0, 0, 0),
27918
+ rotation = new Rotation4 ();
27919
+
27920
+ return function (upVector = Numbers_Vector3 .yAxis)
27921
+ {
27922
+ upNormal .assign (upVector) .normalize ();
27923
+
27924
+ this .multVecRot (localXAxis .assign (Numbers_Vector3 .xAxis) .negate ());
27925
+ this .multVecRot (localZAxis .assign (Numbers_Vector3 .zAxis));
27926
+
27927
+ // If viewer looks along up vector.
27928
+ if (Math .abs (localZAxis .dot (upNormal)) >= 1)
27929
+ return this;
27930
+
27931
+ const newXAxis = localZAxis .cross (upNormal) .normalize ();
27932
+
27933
+ if (newXAxis .dot (localXAxis) <= -1)
27934
+ {
27935
+ rotation .setAxisAngle (Numbers_Vector3 .zAxis, Math .PI);
27936
+
27937
+ return this .multLeft (rotation);
27938
+ }
27939
+ else
27940
+ {
27941
+ rotation .setFromToVec (localXAxis, newXAxis);
27942
+
27943
+ return this .multRight (rotation);
27944
+ }
27945
+ };
27946
+ })(),
27917
27947
  toString ()
27918
27948
  {
27919
27949
  return this [_x] + " " +
@@ -30047,6 +30077,10 @@ Object .assign (Object .setPrototypeOf (SFRotation .prototype, Base_X3DField .pr
30047
30077
  {
30048
30078
  return new SFRotation (this .getValue () .copy () .slerp (rotation .getValue (), t));
30049
30079
  },
30080
+ straighten (upVector)
30081
+ {
30082
+ return new SFRotation (this .getValue () .copy () .straighten (upVector ?.getValue ()));
30083
+ },
30050
30084
  toStream (generator)
30051
30085
  {
30052
30086
  const { x, y, z, angle } = this .getValue ();
@@ -31093,7 +31127,6 @@ Object .assign (Object .setPrototypeOf (X3DObjectArrayField .prototype, Base_X3D
31093
31127
  copy = target .create ();
31094
31128
 
31095
31129
  copy .assign (target);
31096
- copy .setModificationTime (0);
31097
31130
 
31098
31131
  return copy;
31099
31132
  },
@@ -31699,8 +31732,6 @@ Object .assign (Object .setPrototypeOf (X3DTypedArrayField .prototype, Base_X3DA
31699
31732
 
31700
31733
  Base_X3DArrayField .prototype .set .call (copy, copyArray);
31701
31734
 
31702
- copy .setModificationTime (0);
31703
-
31704
31735
  return copy;
31705
31736
  },
31706
31737
  equals (other)
@@ -32575,8 +32606,6 @@ Object .assign (Object .setPrototypeOf (MFNode .prototype, Base_X3DObjectArrayFi
32575
32606
  for (const node of this .getValue ())
32576
32607
  copy .push (node .copy (instance));
32577
32608
 
32578
- copy .setModificationTime (0);
32579
-
32580
32609
  return copy;
32581
32610
  }
32582
32611
  else
@@ -33653,10 +33682,25 @@ Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype, Base_X3DChildObj
33653
33682
  {
33654
33683
  return this [_executionContext];
33655
33684
  },
33656
- setExecutionContext (value)
33685
+ setExecutionContext (executionContext)
33657
33686
  {
33687
+ // Disconnect interests.
33688
+
33689
+ this .getOuterNode ?.() ?.getLive () .removeInterest (_set_live__, this);
33690
+ this [_executionContext] .getLive () .removeInterest (_set_live__, this);
33691
+
33658
33692
  // Currently only useful for Scene.
33659
- this [_executionContext] = value;
33693
+ this [_executionContext] = executionContext;
33694
+
33695
+ // Connect interests.
33696
+
33697
+ if (this .getOuterNode ?.())
33698
+ this .getOuterNode () .getLive () .addInterest (_set_live__, this);
33699
+
33700
+ else if (this [_executionContext] !== this)
33701
+ this [_executionContext] .getLive () .addInterest (_set_live__, this);
33702
+
33703
+ this [_set_live__] ();
33660
33704
  },
33661
33705
  addType (value)
33662
33706
  {
@@ -34040,7 +34084,10 @@ Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype, Base_X3DChildObj
34040
34084
  addEvent (field)
34041
34085
  {
34042
34086
  if (field .isTainted ())
34087
+ {
34088
+ field .setModificationTime (Date .now ());
34043
34089
  return;
34090
+ }
34044
34091
 
34045
34092
  // if (this .getTypeName () === "HAnimMotion")
34046
34093
  // {
@@ -34056,6 +34103,8 @@ Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype, Base_X3DChildObj
34056
34103
  {
34057
34104
  const browser = this [_browser];
34058
34105
 
34106
+ field .setModificationTime (Date .now ());
34107
+
34059
34108
  // Register for processEvent
34060
34109
 
34061
34110
  browser .addTaintedField (field, event);
@@ -34176,7 +34225,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34176
34225
  x_ite_Namespace .add ("X3DBaseNode", "x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
34177
34226
  /* harmony default export */ const Base_X3DBaseNode = (X3DBaseNode_default_);
34178
34227
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
34179
- /* provided dependency */ var $ = __webpack_require__(368);
34228
+ /* provided dependency */ var $ = __webpack_require__(52);
34180
34229
  /*******************************************************************************
34181
34230
  *
34182
34231
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34313,7 +34362,7 @@ x_ite_Namespace .add ("Legacy", "x_ite/Browser/Legacy", Legacy_default_);
34313
34362
  *
34314
34363
  ******************************************************************************/
34315
34364
 
34316
- const BROWSER_VERSION_default_ = "9.2.7";
34365
+ const BROWSER_VERSION_default_ = "9.3.0";
34317
34366
  ;
34318
34367
 
34319
34368
  x_ite_Namespace .add ("BROWSER_VERSION", "x_ite/BROWSER_VERSION", BROWSER_VERSION_default_);
@@ -38457,7 +38506,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
38457
38506
  x_ite_Namespace .add ("X3DProtoDeclaration", "x_ite/Prototype/X3DProtoDeclaration", X3DProtoDeclaration_default_);
38458
38507
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (X3DProtoDeclaration_default_);
38459
38508
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
38460
- /* provided dependency */ var X3DParser_$ = __webpack_require__(368);
38509
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(52);
38461
38510
  /*******************************************************************************
38462
38511
  *
38463
38512
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -38719,7 +38768,7 @@ const Expressions_default_ = Expressions;
38719
38768
  x_ite_Namespace .add ("Expressions", "x_ite/Parser/Expressions", Expressions_default_);
38720
38769
  /* harmony default export */ const Parser_Expressions = (Expressions_default_);
38721
38770
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
38722
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(368);
38771
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(52);
38723
38772
  /*******************************************************************************
38724
38773
  *
38725
38774
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -41405,7 +41454,7 @@ const VRMLParser_default_ = VRMLParser;
41405
41454
  x_ite_Namespace .add ("VRMLParser", "x_ite/Parser/VRMLParser", VRMLParser_default_);
41406
41455
  /* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
41407
41456
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
41408
- /* provided dependency */ var XMLParser_$ = __webpack_require__(368);
41457
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(52);
41409
41458
  /*******************************************************************************
41410
41459
  *
41411
41460
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -43514,7 +43563,7 @@ const URLs_default_ = URLs;
43514
43563
  x_ite_Namespace .add ("URLs", "x_ite/Browser/Networking/URLs", URLs_default_);
43515
43564
  /* harmony default export */ const Networking_URLs = (URLs_default_);
43516
43565
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
43517
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(368);
43566
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(52);
43518
43567
  /*******************************************************************************
43519
43568
  *
43520
43569
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -46815,7 +46864,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
46815
46864
  x_ite_Namespace .add ("GLTF2Parser", "x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
46816
46865
  /* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
46817
46866
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
46818
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(368);
46867
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(52);
46819
46868
  /*******************************************************************************
46820
46869
  *
46821
46870
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -46967,7 +47016,7 @@ const GLB2Parser_default_ = GLB2Parser;
46967
47016
  x_ite_Namespace .add ("GLB2Parser", "x_ite/Parser/GLB2Parser", GLB2Parser_default_);
46968
47017
  /* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
46969
47018
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
46970
- /* provided dependency */ var OBJParser_$ = __webpack_require__(368);
47019
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(52);
46971
47020
  /*******************************************************************************
46972
47021
  *
46973
47022
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -50322,8 +50371,8 @@ const MatrixStack_default_ = MatrixStack;
50322
50371
  x_ite_Namespace .add ("MatrixStack", "standard/Math/Utility/MatrixStack", MatrixStack_default_);
50323
50372
  /* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
50324
50373
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
50325
- /* provided dependency */ var SVGParser_$ = __webpack_require__(368);
50326
- /* provided dependency */ var libtess = __webpack_require__(125);
50374
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(52);
50375
+ /* provided dependency */ var libtess = __webpack_require__(177);
50327
50376
  /*******************************************************************************
50328
50377
  *
50329
50378
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53091,7 +53140,7 @@ const SVGParser_default_ = SVGParser;
53091
53140
  x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_);
53092
53141
  /* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
53093
53142
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
53094
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(368);
53143
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(52);
53095
53144
  /*******************************************************************************
53096
53145
  *
53097
53146
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53441,7 +53490,7 @@ const Plane3_default_ = Plane3;
53441
53490
  x_ite_Namespace .add ("Plane3", "standard/Math/Geometry/Plane3", Plane3_default_);
53442
53491
  /* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
53443
53492
  ;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
53444
- /* provided dependency */ var Triangle3_libtess = __webpack_require__(125);
53493
+ /* provided dependency */ var Triangle3_libtess = __webpack_require__(177);
53445
53494
  /*******************************************************************************
53446
53495
  *
53447
53496
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -61954,7 +62003,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
61954
62003
  x_ite_Namespace .add ("X3DTexture2DNode", "x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
61955
62004
  /* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
61956
62005
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
61957
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(368);
62006
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(52);
61958
62007
  /*******************************************************************************
61959
62008
  *
61960
62009
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -64754,32 +64803,10 @@ Object .assign (Object .setPrototypeOf (X3DViewpointNode .prototype, Core_X3DBin
64754
64803
 
64755
64804
  this .setInterpolators (this, relative);
64756
64805
  },
64757
- straightenHorizon: (() =>
64806
+ straightenHorizon (orientation, upVector = this .getUpVector (true))
64758
64807
  {
64759
- const
64760
- localXAxis = new Numbers_Vector3 (0, 0, 0),
64761
- localZAxis = new Numbers_Vector3 (0, 0, 0),
64762
- rotation = new Numbers_Rotation4 ();
64763
-
64764
- return function (orientation, upVector = this .getUpVector (true))
64765
- {
64766
- orientation .multVecRot (localXAxis .assign (Numbers_Vector3 .xAxis) .negate ());
64767
- orientation .multVecRot (localZAxis .assign (Numbers_Vector3 .zAxis));
64768
-
64769
- const vector = localZAxis .cross (upVector);
64770
-
64771
- // If viewer looks along the up vector.
64772
- if (Math .abs (localZAxis .dot (upVector)) >= 1)
64773
- return orientation;
64774
-
64775
- if (Math .abs (vector .dot (localXAxis)) >= 1)
64776
- return orientation;
64777
-
64778
- rotation .setFromToVec (localXAxis, vector);
64779
-
64780
- return orientation .multRight (rotation);
64781
- };
64782
- })(),
64808
+ return orientation .straighten (upVector);
64809
+ },
64783
64810
  viewAll (bbox)
64784
64811
  {
64785
64812
  bbox .copy () .multRight (this .modelMatrix .copy () .inverse ());
@@ -65577,7 +65604,7 @@ const X3DWorld_default_ = X3DWorld;
65577
65604
  x_ite_Namespace .add ("X3DWorld", "x_ite/Execution/X3DWorld", X3DWorld_default_);
65578
65605
  /* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
65579
65606
  ;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
65580
- /* provided dependency */ var FileLoader_$ = __webpack_require__(368);
65607
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(52);
65581
65608
  /*******************************************************************************
65582
65609
  *
65583
65610
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -65693,9 +65720,7 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
65693
65720
  {
65694
65721
  const scene = this .browser .createScene ();
65695
65722
 
65696
- if (this .node instanceof Execution_X3DWorld)
65697
- scene .loader = this;
65698
- else
65723
+ if (!(this .node instanceof Execution_X3DWorld))
65699
65724
  scene .setExecutionContext (this .executionContext);
65700
65725
 
65701
65726
  scene .setWorldURL (new URL (worldURL, this .getBaseURL ()) .href);
@@ -65729,8 +65754,6 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
65729
65754
 
65730
65755
  scene ._initLoadCount .removeInterest ("set_initLoadCount__", this);
65731
65756
 
65732
- delete scene .loader;
65733
-
65734
65757
  // Wait for instances to be created.
65735
65758
 
65736
65759
  setTimeout (() =>
@@ -65991,10 +66014,7 @@ Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Pr
65991
66014
  {
65992
66015
  Networking_X3DUrlObject .prototype .set_live__ .call (this);
65993
66016
 
65994
- if (this .checkLoadState () !== Base_X3DConstants .COMPLETE_STATE)
65995
- return;
65996
-
65997
- this [_scene] .setLive (this .getLive () .getValue ());
66017
+ this [_scene] ?.setLive (this .getLive () .getValue ());
65998
66018
  },
65999
66019
  canUserDefinedFields ()
66000
66020
  {
@@ -66039,6 +66059,9 @@ Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Pr
66039
66059
  },
66040
66060
  setInternalScene (value)
66041
66061
  {
66062
+ this [_scene] ?.setExecutionContext (this [_scene]);
66063
+ this [_scene] ?.setLive (false);
66064
+
66042
66065
  this [_scene] = value;
66043
66066
 
66044
66067
  const
@@ -66048,8 +66071,8 @@ Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Pr
66048
66071
  if (!proto)
66049
66072
  throw new Error ("PROTO not found");
66050
66073
 
66051
- this [_scene] .setLive (this .getLive () .getValue ());
66052
66074
  this [_scene] .setExecutionContext (this .getExecutionContext ());
66075
+ this [_scene] .setLive (this .getLive () .getValue ());
66053
66076
 
66054
66077
  this .setLoadState (Base_X3DConstants .COMPLETE_STATE);
66055
66078
  this .setProtoDeclaration (proto);
@@ -66508,7 +66531,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
66508
66531
  x_ite_Namespace .add ("ProtoDeclarationArray", "x_ite/Prototype/ProtoDeclarationArray", ProtoDeclarationArray_default_);
66509
66532
  /* harmony default export */ const Prototype_ProtoDeclarationArray = (ProtoDeclarationArray_default_);
66510
66533
  ;// CONCATENATED MODULE: ./src/x_ite/Routing/X3DRoute.js
66511
- /* provided dependency */ var X3DRoute_$ = __webpack_require__(368);
66534
+ /* provided dependency */ var X3DRoute_$ = __webpack_require__(52);
66512
66535
  /*******************************************************************************
66513
66536
  *
66514
66537
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -68141,7 +68164,7 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68141
68164
  if (!field .isInitializable ())
68142
68165
  continue;
68143
68166
 
68144
- // Is set during parse.
68167
+ // Is set during parse, or already changed by an route event.
68145
68168
  if (field .getModificationTime ())
68146
68169
  continue;
68147
68170
 
@@ -83418,19 +83441,19 @@ Object .assign (Object .setPrototypeOf (Inline .prototype, Core_X3DChildNode .pr
83418
83441
  },
83419
83442
  setInternalScene (scene)
83420
83443
  {
83444
+ this .scene .setExecutionContext (this .scene);
83421
83445
  this .scene .setLive (false);
83422
83446
  this .scene .rootNodes .removeFieldInterest (this .groupNode ._children);
83423
83447
 
83424
83448
  // Set new scene.
83425
83449
 
83426
83450
  this .scene = scene;
83427
- this .scene .setExecutionContext (this .getExecutionContext ());
83428
83451
 
83452
+ this .scene .setExecutionContext (this .getExecutionContext ());
83453
+ this .scene .setLive (this .getLive () .getValue ());
83429
83454
  this .scene .rootNodes .addFieldInterest (this .groupNode ._children);
83430
83455
  this .groupNode ._children = this .scene .rootNodes;
83431
83456
 
83432
- this .set_live__ ();
83433
-
83434
83457
  this .getBrowser () .addBrowserEvent ();
83435
83458
  },
83436
83459
  getInternalScene ()
@@ -89385,7 +89408,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
89385
89408
  x_ite_Namespace .add ("X3DShaderNode", "x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
89386
89409
  /* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
89387
89410
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
89388
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(368);
89411
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(52);
89389
89412
  /*******************************************************************************
89390
89413
  *
89391
89414
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95026,7 +95049,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
95026
95049
  x_ite_Namespace .add ("ShaderCompiler", "x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
95027
95050
  /* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
95028
95051
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
95029
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(368);
95052
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(52);
95030
95053
  /*******************************************************************************
95031
95054
  *
95032
95055
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95683,7 +95706,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
95683
95706
  x_ite_Namespace .add ("X3DAppearanceNode", "x_ite/Components/Shape/X3DAppearanceNode", X3DAppearanceNode_default_);
95684
95707
  /* harmony default export */ const Shape_X3DAppearanceNode = (X3DAppearanceNode_default_);
95685
95708
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
95686
- /* provided dependency */ var Appearance_$ = __webpack_require__(368);
95709
+ /* provided dependency */ var Appearance_$ = __webpack_require__(52);
95687
95710
  /*******************************************************************************
95688
95711
  *
95689
95712
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99101,7 +99124,7 @@ const Components_Shape_default_ = {
99101
99124
  x_ite_Namespace .add ("Shape", "x_ite/Components/Shape", Components_Shape_default_);
99102
99125
  /* harmony default export */ const Components_Shape = (Components_Shape_default_);
99103
99126
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundProcessingNode.js
99104
- /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(368);
99127
+ /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(52);
99105
99128
  /*******************************************************************************
99106
99129
  *
99107
99130
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99741,7 +99764,7 @@ const X3DSoundSourceNode_default_ = X3DSoundSourceNode;
99741
99764
  x_ite_Namespace .add ("X3DSoundSourceNode", "x_ite/Components/Sound/X3DSoundSourceNode", X3DSoundSourceNode_default_);
99742
99765
  /* harmony default export */ const Sound_X3DSoundSourceNode = (X3DSoundSourceNode_default_);
99743
99766
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/AudioClip.js
99744
- /* provided dependency */ var AudioClip_$ = __webpack_require__(368);
99767
+ /* provided dependency */ var AudioClip_$ = __webpack_require__(52);
99745
99768
  /*******************************************************************************
99746
99769
  *
99747
99770
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -100043,7 +100066,7 @@ const X3DSoundNode_default_ = X3DSoundNode;
100043
100066
  x_ite_Namespace .add ("X3DSoundNode", "x_ite/Components/Sound/X3DSoundNode", X3DSoundNode_default_);
100044
100067
  /* harmony default export */ const Sound_X3DSoundNode = (X3DSoundNode_default_);
100045
100068
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundDestinationNode.js
100046
- /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(368);
100069
+ /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(52);
100047
100070
  /*******************************************************************************
100048
100071
  *
100049
100072
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -101693,7 +101716,7 @@ const ListenerPointSource_default_ = ListenerPointSource;
101693
101716
  x_ite_Namespace .add ("ListenerPointSource", "x_ite/Components/Sound/ListenerPointSource", ListenerPointSource_default_);
101694
101717
  /* harmony default export */ const Sound_ListenerPointSource = (ListenerPointSource_default_);
101695
101718
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/MicrophoneSource.js
101696
- /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(368);
101719
+ /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(52);
101697
101720
  /*******************************************************************************
101698
101721
  *
101699
101722
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -103362,8 +103385,8 @@ const GifMedia_default_ = GifMedia;
103362
103385
  x_ite_Namespace .add ("GifMedia", "x_ite/Browser/Texturing/GifMedia", GifMedia_default_);
103363
103386
  /* harmony default export */ const Texturing_GifMedia = (GifMedia_default_);
103364
103387
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
103365
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(368);
103366
- /* provided dependency */ var SuperGif = __webpack_require__(939);
103388
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(52);
103389
+ /* provided dependency */ var SuperGif = __webpack_require__(247);
103367
103390
  /*******************************************************************************
103368
103391
  *
103369
103392
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -106642,7 +106665,7 @@ const gettext_default_ = gettext;
106642
106665
  x_ite_Namespace .add ("gettext", "locale/gettext", gettext_default_);
106643
106666
  /* harmony default export */ const locale_gettext = (gettext_default_);
106644
106667
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
106645
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(368);
106668
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(52);
106646
106669
  /*******************************************************************************
106647
106670
  *
106648
106671
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107072,7 +107095,7 @@ const TextureQuality_default_ = TextureQuality;
107072
107095
  x_ite_Namespace .add ("TextureQuality", "x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
107073
107096
  /* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
107074
107097
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
107075
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(368);
107098
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(52);
107076
107099
  /*******************************************************************************
107077
107100
  *
107078
107101
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107662,7 +107685,7 @@ const RenderingProperties_default_ = RenderingProperties;
107662
107685
  x_ite_Namespace .add ("RenderingProperties", "x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
107663
107686
  /* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
107664
107687
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
107665
- /* provided dependency */ var Notification_$ = __webpack_require__(368);
107688
+ /* provided dependency */ var Notification_$ = __webpack_require__(52);
107666
107689
  /*******************************************************************************
107667
107690
  *
107668
107691
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107785,8 +107808,8 @@ const Notification_default_ = Notification;
107785
107808
  x_ite_Namespace .add ("Notification", "x_ite/Browser/Core/Notification", Notification_default_);
107786
107809
  /* harmony default export */ const Core_Notification = (Notification_default_);
107787
107810
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
107788
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(548);
107789
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(368);
107811
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(944);
107812
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(52);
107790
107813
  /*******************************************************************************
107791
107814
  *
107792
107815
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -110249,7 +110272,7 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
110249
110272
  },
110250
110273
  },
110251
110274
  {
110252
- setExecutionContext (value)
110275
+ setExecutionContext (executionContext)
110253
110276
  {
110254
110277
  if (!this .isMainScene ())
110255
110278
  {
@@ -110259,7 +110282,7 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
110259
110282
  scene .removeLoadingObject (object);
110260
110283
  }
110261
110284
 
110262
- Execution_X3DExecutionContext .prototype .setExecutionContext .call (this, value);
110285
+ Execution_X3DExecutionContext .prototype .setExecutionContext .call (this, executionContext);
110263
110286
 
110264
110287
  if (!this .isMainScene ())
110265
110288
  {
@@ -110294,7 +110317,7 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
110294
110317
  browser = this .getBrowser (),
110295
110318
  scene = this .getScene ();
110296
110319
 
110297
- if (this === browser .getExecutionContext () || this .loader === browser .loader)
110320
+ if (this === browser .getExecutionContext ())
110298
110321
  browser .addLoadingObject (node);
110299
110322
 
110300
110323
  if (!this .isMainScene ())
@@ -110313,7 +110336,7 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
110313
110336
  browser = this .getBrowser (),
110314
110337
  scene = this .getScene ();
110315
110338
 
110316
- if (this === browser .getExecutionContext () || this .loader === browser .loader)
110339
+ if (this === browser .getExecutionContext ())
110317
110340
  browser .removeLoadingObject (node);
110318
110341
 
110319
110342
  if (!this .isMainScene ())
@@ -110538,7 +110561,7 @@ const DataStorage_default_ = DataStorage;
110538
110561
  x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage_default_);
110539
110562
  /* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
110540
110563
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
110541
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(368);
110564
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(52);
110542
110565
  /*******************************************************************************
110543
110566
  *
110544
110567
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -113061,8 +113084,8 @@ const X3DViewer_default_ = X3DViewer;
113061
113084
  x_ite_Namespace .add ("X3DViewer", "x_ite/Browser/Navigation/X3DViewer", X3DViewer_default_);
113062
113085
  /* harmony default export */ const Navigation_X3DViewer = (X3DViewer_default_);
113063
113086
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
113064
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(214);
113065
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(368);
113087
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(82);
113088
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(52);
113066
113089
  /*******************************************************************************
113067
113090
  *
113068
113091
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -113934,8 +113957,8 @@ const ExamineViewer_default_ = ExamineViewer;
113934
113957
  x_ite_Namespace .add ("ExamineViewer", "x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
113935
113958
  /* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
113936
113959
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
113937
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(214);
113938
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(368);
113960
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(82);
113961
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(52);
113939
113962
  /*******************************************************************************
113940
113963
  *
113941
113964
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114944,8 +114967,8 @@ const FlyViewer_default_ = FlyViewer;
114944
114967
  x_ite_Namespace .add ("FlyViewer", "x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
114945
114968
  /* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
114946
114969
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
114947
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(214);
114948
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(368);
114970
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(82);
114971
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(52);
114949
114972
  /*******************************************************************************
114950
114973
  *
114951
114974
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115276,8 +115299,8 @@ const NoneViewer_default_ = NoneViewer;
115276
115299
  x_ite_Namespace .add ("NoneViewer", "x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
115277
115300
  /* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
115278
115301
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
115279
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(214);
115280
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(368);
115302
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(82);
115303
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(52);
115281
115304
  /*******************************************************************************
115282
115305
  *
115283
115306
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116416,8 +116439,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
116416
116439
  x_ite_Namespace .add ("X3DPickingContext", "x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
116417
116440
  /* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
116418
116441
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
116419
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(214);
116420
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(368);
116442
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(82);
116443
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(52);
116421
116444
  /*******************************************************************************
116422
116445
  *
116423
116446
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116528,7 +116551,7 @@ Object .assign (Object .setPrototypeOf (PointingDevice .prototype, Base_X3DBaseN
116528
116551
  event .stopImmediatePropagation (); // Keeps the rest of the handlers from being executed
116529
116552
 
116530
116553
  browser .setCursor ("HAND");
116531
- browser .finishedEvents () .addInterest ("onverifymotion", this, x, y);
116554
+ this .onverifymotion (x, y);
116532
116555
  }
116533
116556
  }
116534
116557
  },
@@ -116549,8 +116572,7 @@ Object .assign (Object .setPrototypeOf (PointingDevice .prototype, Base_X3DBaseN
116549
116572
 
116550
116573
  browser .buttonReleaseEvent ();
116551
116574
  browser .setCursor (this .isOver ? "HAND" : "DEFAULT");
116552
- browser .finishedEvents () .addInterest ("onverifymotion", this, x, y);
116553
- browser .addBrowserEvent ();
116575
+ this .onverifymotion (x, y);
116554
116576
 
116555
116577
  this .cursor = "DEFAULT";
116556
116578
  }
@@ -116668,12 +116690,10 @@ Object .assign (Object .setPrototypeOf (PointingDevice .prototype, Base_X3DBaseN
116668
116690
  onverifymotion (x, y)
116669
116691
  {
116670
116692
  // Verify isOver state. This is necessary if an Switch changes on buttonReleaseEvent
116671
- // and the new child has a sensor node inside. This sensor node must be update to
116693
+ // and the new child has a sensor node inside. This sensor node must be updated to
116672
116694
  // reflect the correct isOver state.
116673
116695
 
116674
- this .getBrowser () .finishedEvents () .removeInterest ("onverifymotion", this);
116675
-
116676
- this .onmotion (x, y);
116696
+ requestAnimationFrame (() => this .onmotion (x, y));
116677
116697
  },
116678
116698
  showContextMenu (event)
116679
116699
  {
@@ -116948,7 +116968,8 @@ const
116948
116968
  _pointingBuffer = Symbol (),
116949
116969
  _pointingShaders = Symbol (),
116950
116970
  _id = Symbol (),
116951
- _pointingContexts = Symbol ();
116971
+ _pointingContexts = Symbol (),
116972
+ _processEvents = Symbol .for ("X_ITE.X3DRoutingContext.processEvents");
116952
116973
 
116953
116974
  function X3DPointingDeviceSensorContext ()
116954
116975
  {
@@ -117102,6 +117123,8 @@ Object .assign (X3DPointingDeviceSensorContext .prototype,
117102
117123
  for (const sensor of this [_activeSensors])
117103
117124
  sensor .set_active__ (true, hit);
117104
117125
 
117126
+ this [_processEvents] ();
117127
+
117105
117128
  return !! hit .sensors .length;
117106
117129
  },
117107
117130
  buttonReleaseEvent ()
@@ -117114,6 +117137,8 @@ Object .assign (X3DPointingDeviceSensorContext .prototype,
117114
117137
 
117115
117138
  this [_activeSensors] = Array .prototype;
117116
117139
  this [_pointingLayer] = null;
117140
+
117141
+ this [_processEvents] ();
117117
117142
  },
117118
117143
  motionNotifyEvent (x, y)
117119
117144
  {
@@ -117123,6 +117148,8 @@ Object .assign (X3DPointingDeviceSensorContext .prototype,
117123
117148
  this .touch (x, y);
117124
117149
  this .motion ();
117125
117150
 
117151
+ this [_processEvents] ();
117152
+
117126
117153
  return !! this [_hit] .sensors .length;
117127
117154
  },
117128
117155
  leaveNotifyEvent ()
@@ -117700,7 +117727,7 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
117700
117727
  x_ite_Namespace .add ("MultiSampleFrameBuffer", "x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
117701
117728
  /* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
117702
117729
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
117703
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(368);
117730
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(52);
117704
117731
  /*******************************************************************************
117705
117732
  *
117706
117733
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118602,7 +118629,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
118602
118629
  x_ite_Namespace .add ("X3DSoundContext", "x_ite/Browser/Sound/X3DSoundContext", X3DSoundContext_default_);
118603
118630
  /* harmony default export */ const Sound_X3DSoundContext = (X3DSoundContext_default_);
118604
118631
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
118605
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(368);
118632
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(52);
118606
118633
  const KTXDecoder_default_ = class KTXDecoder
118607
118634
  {
118608
118635
  constructor (gl, externalKtxlib, scriptDir)
@@ -119699,7 +119726,7 @@ const
119699
119726
  _cameraTime = Symbol (),
119700
119727
  _collisionTime = Symbol (),
119701
119728
  _displayTime = Symbol (),
119702
- _processEvents = Symbol .for ("X_ITE.X3DRoutingContext.processEvents");
119729
+ X3DBrowserContext_processEvents = Symbol .for ("X_ITE.X3DRoutingContext.processEvents");
119703
119730
 
119704
119731
  const
119705
119732
  browsers = new Set (),
@@ -119884,10 +119911,10 @@ Object .assign (Object .setPrototypeOf (X3DBrowserContext .prototype, Base_X3DBa
119884
119911
  // Events
119885
119912
 
119886
119913
  this .addTaintedField (this ._prepareEvents);
119887
- this [_processEvents] ();
119914
+ this [X3DBrowserContext_processEvents] ();
119888
119915
 
119889
119916
  this .addTaintedField (this ._timeEvents);
119890
- this [_processEvents] ();
119917
+ this [X3DBrowserContext_processEvents] ();
119891
119918
 
119892
119919
  // Camera
119893
119920
 
@@ -119907,19 +119934,19 @@ Object .assign (Object .setPrototypeOf (X3DBrowserContext .prototype, Base_X3DBa
119907
119934
  // Events
119908
119935
 
119909
119936
  this .addTaintedField (this ._sensorEvents);
119910
- this [_processEvents] ();
119937
+ this [X3DBrowserContext_processEvents] ();
119911
119938
 
119912
119939
  // Display
119913
119940
 
119914
119941
  this [_displayTime] .start ()
119915
119942
  this .addTaintedField (this ._displayEvents);
119916
- this [_processEvents] ();
119943
+ this [X3DBrowserContext_processEvents] ();
119917
119944
 
119918
119945
  this .getFrameBuffer () .clear ();
119919
119946
  this [_world] .traverse (Rendering_TraverseType .DISPLAY);
119920
119947
 
119921
119948
  this .addTaintedField (this ._finishedEvents);
119922
- this [_processEvents] ();
119949
+ this [X3DBrowserContext_processEvents] ();
119923
119950
 
119924
119951
  this .getFrameBuffer () .blit ();
119925
119952
  this [_displayTime] .stop ();
@@ -120036,7 +120063,7 @@ Object .assign (X3DBrowserContext,
120036
120063
 
120037
120064
  // Process events from context creation. This will setup nodes like
120038
120065
  // geometry option nodes before any node is created.
120039
- browser [_processEvents] ();
120066
+ browser [X3DBrowserContext_processEvents] ();
120040
120067
  }
120041
120068
  }
120042
120069
 
@@ -120155,7 +120182,7 @@ const Components_default_ = Components;
120155
120182
  x_ite_Namespace .add ("Components", "x_ite/Components", Components_default_);
120156
120183
  /* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
120157
120184
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
120158
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(368);
120185
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(52);
120159
120186
  /*******************************************************************************
120160
120187
  * MIT License
120161
120188
  *
@@ -121286,7 +121313,7 @@ const SupportedProfiles_default_ = SupportedProfiles;
121286
121313
  x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
121287
121314
  /* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
121288
121315
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
121289
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(368);
121316
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(52);
121290
121317
  /*******************************************************************************
121291
121318
  *
121292
121319
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -121717,8 +121744,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121717
121744
 
121718
121745
  // Detach scene from parent.
121719
121746
 
121720
- scene .getExecutionContext () .getLive () .removeInterest ("setLive", scene);
121721
121747
  scene .setExecutionContext (scene);
121748
+ scene .setLive (this .isLive ());
121722
121749
 
121723
121750
  // Replace.
121724
121751
 
@@ -121731,8 +121758,6 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121731
121758
 
121732
121759
  this .setExecutionContext (scene);
121733
121760
  this .getWorld () .bindBindables ();
121734
-
121735
- scene .setLive (this .isLive ());
121736
121761
  });
121737
121762
  },
121738
121763
  checkLoadCount (resolve, loadCount)
@@ -121759,9 +121784,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121759
121784
 
121760
121785
  if (!external)
121761
121786
  {
121762
- currentScene .getLive () .addInterest ("setLive", scene);
121763
121787
  scene .setExecutionContext (currentScene);
121764
- scene .setLive (currentScene .isLive ());
121788
+ scene .setLive (true);
121765
121789
  }
121766
121790
 
121767
121791
  return scene .rootNodes;
@@ -121783,9 +121807,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121783
121807
 
121784
121808
  if (!external)
121785
121809
  {
121786
- currentScene .getLive () .addInterest ("setLive", scene);
121787
121810
  scene .setExecutionContext (currentScene);
121788
- scene .setLive (currentScene .isLive ());
121811
+ scene .setLive (true);
121789
121812
  }
121790
121813
 
121791
121814
  return scene;
@@ -121816,7 +121839,7 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121816
121839
 
121817
121840
  this .addLoadingObject (fileLoader);
121818
121841
 
121819
- fileLoader .createX3DFromURL (url, null, (scene) =>
121842
+ fileLoader .createX3DFromURL (url, null, scene =>
121820
121843
  {
121821
121844
  this .removeLoadingObject (fileLoader);
121822
121845
 
@@ -121826,9 +121849,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121826
121849
 
121827
121850
  if (!external)
121828
121851
  {
121829
- currentScene .getLive () .addInterest ("setLive", scene);
121830
121852
  scene .setExecutionContext (currentScene);
121831
- scene .setLive (currentScene .isLive ());
121853
+ scene .setLive (true);
121832
121854
  }
121833
121855
 
121834
121856
  // Wait until scene is completely loaded, scene ._loadCount must be 0.
@@ -121855,7 +121877,7 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121855
121877
 
121856
121878
  this .addLoadingObject (fileLoader);
121857
121879
 
121858
- fileLoader .createX3DFromURL (url, null, (scene) =>
121880
+ fileLoader .createX3DFromURL (url, null, scene =>
121859
121881
  {
121860
121882
  this .removeLoadingObject (fileLoader);
121861
121883
 
@@ -121863,9 +121885,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121863
121885
  {
121864
121886
  if (!external)
121865
121887
  {
121866
- currentScene .getLive () .addInterest ("setLive", scene);
121867
121888
  scene .setExecutionContext (currentScene);
121868
- scene .setLive (currentScene .isLive ());
121889
+ scene .setLive (true);
121869
121890
  }
121870
121891
 
121871
121892
  resolve (scene);
@@ -121891,7 +121912,7 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121891
121912
 
121892
121913
  const fileLoader = new InputOutput_FileLoader (this .getWorld ());
121893
121914
 
121894
- fileLoader .createX3DFromURL (url, parameter, (scene) =>
121915
+ fileLoader .createX3DFromURL (url, parameter, scene =>
121895
121916
  {
121896
121917
  if (this [_fileLoader] !== fileLoader)
121897
121918
  {
@@ -122044,9 +122065,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
122044
122065
 
122045
122066
  if (!external)
122046
122067
  {
122047
- currentScene .getLive () .addInterest ("setLive", scene);
122048
122068
  scene .setExecutionContext (currentScene);
122049
- scene .setLive (currentScene .isLive ());
122069
+ scene .setLive (true);
122050
122070
  }
122051
122071
 
122052
122072
  const parser = new Parser_XMLParser (scene);
@@ -122064,9 +122084,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
122064
122084
 
122065
122085
  if (!external)
122066
122086
  {
122067
- currentScene .getLive () .addInterest ("setLive", scene);
122068
122087
  scene .setExecutionContext (currentScene);
122069
- scene .setLive (currentScene .isLive ());
122088
+ scene .setLive (true);
122070
122089
  }
122071
122090
 
122072
122091
  const parser = new Parser_JSONParser (scene);
@@ -122385,7 +122404,7 @@ const X3DBrowser_default_ = X3DBrowser;
122385
122404
  x_ite_Namespace .add ("X3DBrowser", "x_ite/Browser/X3DBrowser", X3DBrowser_default_);
122386
122405
  /* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
122387
122406
  ;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
122388
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(368);
122407
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(52);
122389
122408
  /*******************************************************************************
122390
122409
  *
122391
122410
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122506,6 +122525,11 @@ class X3DCanvasElement extends HTMLElement
122506
122525
  {
122507
122526
  return this .browser ?.getCanvas () [0] .toDataURL (... args);
122508
122527
  }
122528
+
122529
+ get [Symbol .toStringTag] ()
122530
+ {
122531
+ return "X3DCanvasElement";
122532
+ }
122509
122533
  }
122510
122534
 
122511
122535
  // IE fix.
@@ -122517,8 +122541,8 @@ const X3DCanvasElement_default_ = X3DCanvasElement;
122517
122541
  x_ite_Namespace .add ("X3DCanvasElement", "x_ite/X3DCanvasElement", X3DCanvasElement_default_);
122518
122542
  /* harmony default export */ const x_ite_X3DCanvasElement = (X3DCanvasElement_default_);
122519
122543
  ;// CONCATENATED MODULE: ./src/lib/jquery.js
122520
- /* provided dependency */ var jquery_$ = __webpack_require__(368);
122521
- /* provided dependency */ var pako = __webpack_require__(300);
122544
+ /* provided dependency */ var jquery_$ = __webpack_require__(52);
122545
+ /* provided dependency */ var pako = __webpack_require__(776);
122522
122546
  Object .assign (jquery_$,
122523
122547
  {
122524
122548
  decodeText (input)
@@ -122595,14 +122619,14 @@ const jquery_default_ = jquery_$;
122595
122619
  x_ite_Namespace .add ("jquery", "lib/jquery", jquery_default_);
122596
122620
  /* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
122597
122621
  ;// CONCATENATED MODULE: ./src/lib/libtess.js
122598
- /* provided dependency */ var libtess_libtess = __webpack_require__(125);
122622
+ /* provided dependency */ var libtess_libtess = __webpack_require__(177);
122599
122623
  const libtess_default_ = libtess_libtess;
122600
122624
  ;
122601
122625
 
122602
122626
  x_ite_Namespace .add ("libtess", "lib/libtess", libtess_default_);
122603
122627
  /* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
122604
122628
  ;// CONCATENATED MODULE: ./src/x_ite/X3D.js
122605
- /* provided dependency */ var X3D_$ = __webpack_require__(368);
122629
+ /* provided dependency */ var X3D_$ = __webpack_require__(52);
122606
122630
  /*******************************************************************************
122607
122631
  *
122608
122632
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122910,7 +122934,7 @@ Object .assign (X3D,
122910
122934
 
122911
122935
  // Assign X3D to global namespace.
122912
122936
 
122913
- window [Symbol .for ("X_ITE.X3D-9.2.7")] = x_ite_X3D;
122937
+ window [Symbol .for ("X_ITE.X3D-9.3.0")] = x_ite_X3D;
122914
122938
 
122915
122939
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
122916
122940