x_ite 9.0.3 → 9.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) 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 +47 -37
  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 +34 -32
  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 +62 -67
  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 +15 -15
  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 +168 -11
  40. package/dist/assets/components/X_ITE.min.js +1 -1
  41. package/dist/x_ite.css +1 -1
  42. package/dist/x_ite.js +442 -241
  43. package/dist/x_ite.min.js +1 -1
  44. package/dist/x_ite.min.mjs +1 -1
  45. package/dist/x_ite.mjs +442 -241
  46. package/dist/x_ite.zip +0 -0
  47. package/package.json +1 -1
package/dist/x_ite.mjs CHANGED
@@ -1,9 +1,9 @@
1
- /* X_ITE v9.0.3 */var __webpack_modules__ = ({
1
+ /* X_ITE v9.1.1 */var __webpack_modules__ = ({
2
2
 
3
- /***/ 746:
3
+ /***/ 699:
4
4
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
5
5
 
6
- /* provided dependency */ var jQuery = __webpack_require__(616);
6
+ /* provided dependency */ var jQuery = __webpack_require__(353);
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
- /***/ 678:
202
+ /***/ 509:
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__(616)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
216
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(353)], __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
- /***/ 616:
427
+ /***/ 353:
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
- /***/ 237:
11151
+ /***/ 177:
11152
11152
  /***/ ((module) => {
11153
11153
 
11154
11154
  /**
@@ -15927,7 +15927,7 @@ if (true) {
15927
15927
 
15928
15928
  /***/ }),
15929
15929
 
15930
- /***/ 182:
15930
+ /***/ 238:
15931
15931
  /***/ (function(__unused_webpack_module, exports) {
15932
15932
 
15933
15933
 
@@ -19172,7 +19172,7 @@ if (true) {
19172
19172
 
19173
19173
  /***/ }),
19174
19174
 
19175
- /***/ 115:
19175
+ /***/ 302:
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.0.3")];
20302
+ const X3D = window [Symbol .for ("X_ITE.X3D-9.1.1")];
20303
20303
 
20304
20304
  if (X3D)
20305
20305
  X3D [name] = module;
@@ -22186,6 +22186,14 @@ const Events = Object .assign ([ ],
22186
22186
 
22187
22187
  return copy;
22188
22188
  },
22189
+ from (field)
22190
+ {
22191
+ const event = this .create (field);
22192
+
22193
+ event .add (field);
22194
+
22195
+ return event;
22196
+ },
22189
22197
  });
22190
22198
 
22191
22199
  for (const key of Object .keys (Events))
@@ -22915,7 +22923,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
22915
22923
  {
22916
22924
  case Base_X3DConstants .initializeOnly:
22917
22925
  reference .addFieldInterest (this);
22918
- this .assign (reference);
22926
+ this .processEvent (Base_Events .from (reference));
22919
22927
  break;
22920
22928
  case Base_X3DConstants .inputOnly:
22921
22929
  reference .addFieldInterest (this);
@@ -22926,7 +22934,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
22926
22934
  case Base_X3DConstants .inputOutput:
22927
22935
  reference .addFieldInterest (this);
22928
22936
  this .addFieldInterest (reference);
22929
- this .assign (reference);
22937
+ this .processEvent (Base_Events .from (reference));
22930
22938
  break;
22931
22939
  }
22932
22940
 
@@ -23116,16 +23124,16 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23116
23124
 
23117
23125
  let first = true;
23118
23126
 
23119
- for (const fieldInterest of this [_fieldInterests])
23127
+ for (const field of this [_fieldInterests])
23120
23128
  {
23121
23129
  if (first)
23122
23130
  {
23123
23131
  first = false;
23124
- fieldInterest .addEventObject (this, event);
23132
+ field .addEventObject (this, event);
23125
23133
  }
23126
23134
  else
23127
23135
  {
23128
- fieldInterest .addEventObject (this, Base_Events .copy (event));
23136
+ field .addEventObject (this, Base_Events .copy (event));
23129
23137
  }
23130
23138
  }
23131
23139
 
@@ -23136,8 +23144,8 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23136
23144
 
23137
23145
  if (this [_fieldCallbacks] .size)
23138
23146
  {
23139
- for (const fieldCallback of Utility_MapUtilities .values (fieldCallbacksTemp, this [_fieldCallbacks]))
23140
- fieldCallback (this .valueOf ());
23147
+ for (const callback of Utility_MapUtilities .values (fieldCallbacksTemp, this [_fieldCallbacks]))
23148
+ callback (this .valueOf ());
23141
23149
  }
23142
23150
  };
23143
23151
  })(),
@@ -23147,11 +23155,8 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23147
23155
  },
23148
23156
  dispose ()
23149
23157
  {
23150
- this [_references] .clear ();
23151
- this [_referencesCallbacks] .clear ();
23152
- this [_fieldInterests] .clear ();
23153
- this [_fieldCallbacks] .clear ();
23154
- this [_routeCallbacks] .clear ();
23158
+ for (const reference of this [_references])
23159
+ reference .removeFieldInterest (this);
23155
23160
 
23156
23161
  for (const route of new Set (this [_inputRoutes]))
23157
23162
  route .dispose ();
@@ -23159,6 +23164,14 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23159
23164
  for (const route of new Set (this [_outputRoutes]))
23160
23165
  route .dispose ();
23161
23166
 
23167
+ this [_references] .clear ();
23168
+ this [_referencesCallbacks] .clear ();
23169
+ this [_fieldInterests] .clear ();
23170
+ this [_fieldCallbacks] .clear ();
23171
+ this [_inputRoutes] .clear ();
23172
+ this [_outputRoutes] .clear ();
23173
+ this [_routeCallbacks] .clear ();
23174
+
23162
23175
  Base_X3DChildObject .prototype .dispose .call (this);
23163
23176
  }
23164
23177
  });
@@ -24670,26 +24683,61 @@ function SFMatrixPrototypeTemplate (Constructor, TypeName, Matrix, SFVec, double
24670
24683
  {
24671
24684
  this .getValue () .assign (value);
24672
24685
  },
24673
- setTransform (translation, rotation, scale, scaleOrientation, center)
24686
+ setTransform: (function ()
24674
24687
  {
24675
- translation = translation ? translation .getValue () : null;
24676
- rotation = rotation ? rotation .getValue () : null;
24677
- scale = scale ? scale .getValue () : null;
24678
- scaleOrientation = scaleOrientation ? scaleOrientation .getValue () : null;
24679
- center = center ? center .getValue () : null;
24688
+ const args = [ ];
24680
24689
 
24681
- this .getValue () .set (translation, rotation, scale, scaleOrientation, center);
24682
- },
24683
- getTransform (translation, rotation, scale, scaleOrientation, center)
24690
+ return function (translation, rotation, scale, scaleOrientation, center)
24691
+ {
24692
+ args .push (translation ?.getValue () ?? null,
24693
+ rotation ?.getValue () ?? null,
24694
+ scale ?.getValue () ?? null,
24695
+ scaleOrientation ?.getValue () ?? null,
24696
+ center ?.getValue () ?? null);
24697
+
24698
+ for (let i = args .length - 1; i > -1; -- i)
24699
+ {
24700
+ if (args [i] !== null)
24701
+ break;
24702
+
24703
+ args .pop ();
24704
+ }
24705
+
24706
+ this .getValue () .set (... args);
24707
+
24708
+ args .length = 0;
24709
+ };
24710
+ })(),
24711
+ getTransform: (function ()
24684
24712
  {
24685
- translation = translation ? translation .getValue () : null;
24686
- rotation = rotation ? rotation .getValue () : null;
24687
- scale = scale ? scale .getValue () : null;
24688
- scaleOrientation = scaleOrientation ? scaleOrientation .getValue () : null;
24689
- center = center ? center .getValue () : null;
24713
+ const args = [ ];
24690
24714
 
24691
- this .getValue () .get (translation, rotation, scale, scaleOrientation, center);
24692
- },
24715
+ return function (translation, rotation, scale, scaleOrientation, center)
24716
+ {
24717
+ args .push (translation ?.getValue () ?? null,
24718
+ rotation ?.getValue () ?? null,
24719
+ scale ?.getValue () ?? null,
24720
+ scaleOrientation ?.getValue () ?? null,
24721
+ center ?.getValue () ?? null);
24722
+
24723
+ for (let i = args .length - 1; i > -1; -- i)
24724
+ {
24725
+ if (args [i] !== null)
24726
+ break;
24727
+
24728
+ args .pop ();
24729
+ }
24730
+
24731
+ this .getValue () .get (... args);
24732
+
24733
+ translation ?.addEvent ();
24734
+ rotation ?.addEvent ();
24735
+ scale ?.addEvent ();
24736
+ scaleOrientation ?.addEvent ();
24737
+
24738
+ args .length = 0;
24739
+ };
24740
+ })(),
24693
24741
  determinant ()
24694
24742
  {
24695
24743
  return this .getValue () .determinant ();
@@ -26903,16 +26951,31 @@ function SFMatrix3Template (TypeName, SFVec2, double)
26903
26951
 
26904
26952
  Object .assign (Fields_SFMatrixPrototypeTemplate (SFMatrix3, TypeName, Numbers_Matrix3, SFVec2, double),
26905
26953
  {
26906
- setTransform (translation, rotation, scale, scaleOrientation, center)
26954
+ setTransform: (function ()
26907
26955
  {
26908
- translation = translation ? translation .getValue () : null;
26909
- rotation = rotation ? rotation : 0;
26910
- scale = scale ? scale .getValue () : null;
26911
- scaleOrientation = scaleOrientation ? scaleOrientation : 0;
26912
- center = center ? center .getValue () : null;
26956
+ const args = [ ];
26913
26957
 
26914
- this .getValue () .set (translation, rotation, scale, scaleOrientation, center);
26915
- },
26958
+ return function (translation, rotation, scale, scaleOrientation, center)
26959
+ {
26960
+ args .push (translation ?.getValue () ?? null,
26961
+ rotation ?? null,
26962
+ scale ?.getValue () ?? null,
26963
+ scaleOrientation ?? null,
26964
+ center ?.getValue () ?? null);
26965
+
26966
+ for (let i = args .length - 1; i > -1; -- i)
26967
+ {
26968
+ if (args [i] !== null)
26969
+ break;
26970
+
26971
+ args .pop ();
26972
+ }
26973
+
26974
+ this .getValue () .set (... args);
26975
+
26976
+ args .length = 0;
26977
+ };
26978
+ })(),
26916
26979
  });
26917
26980
 
26918
26981
  for (const key of Object .keys (SFMatrix3 .prototype))
@@ -29571,6 +29634,14 @@ const SFNodeCache = DEVELOPMENT ?
29571
29634
  return node;
29572
29635
  }
29573
29636
  },
29637
+ add (baseNode, node)
29638
+ {
29639
+ cache .set (baseNode, new WeakRef (node));
29640
+ },
29641
+ delete (baseNode)
29642
+ {
29643
+ cache .delete (baseNode);
29644
+ },
29574
29645
  } :
29575
29646
  {
29576
29647
  get (baseNode)
@@ -29592,6 +29663,14 @@ const SFNodeCache = DEVELOPMENT ?
29592
29663
  return node;
29593
29664
  }
29594
29665
  },
29666
+ add (baseNode, node)
29667
+ {
29668
+ cache .set (baseNode, node);
29669
+ },
29670
+ delete (baseNode)
29671
+ {
29672
+ cache .delete (baseNode);
29673
+ },
29595
29674
  };
29596
29675
 
29597
29676
  function dispose ()
@@ -34160,7 +34239,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34160
34239
  x_ite_Namespace .add ("X3DBaseNode", "x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
34161
34240
  /* harmony default export */ const Base_X3DBaseNode = (X3DBaseNode_default_);
34162
34241
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
34163
- /* provided dependency */ var $ = __webpack_require__(616);
34242
+ /* provided dependency */ var $ = __webpack_require__(353);
34164
34243
  /*******************************************************************************
34165
34244
  *
34166
34245
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34297,7 +34376,7 @@ x_ite_Namespace .add ("Legacy", "x_ite/Browser/Legacy", Legacy_default_);
34297
34376
  *
34298
34377
  ******************************************************************************/
34299
34378
 
34300
- const BROWSER_VERSION_default_ = "9.0.3";
34379
+ const BROWSER_VERSION_default_ = "9.1.1";
34301
34380
  ;
34302
34381
 
34303
34382
  x_ite_Namespace .add ("BROWSER_VERSION", "x_ite/BROWSER_VERSION", BROWSER_VERSION_default_);
@@ -38148,7 +38227,7 @@ const X3DProtoDeclarationNode_default_ = X3DProtoDeclarationNode;
38148
38227
  x_ite_Namespace .add ("X3DProtoDeclarationNode", "x_ite/Prototype/X3DProtoDeclarationNode", X3DProtoDeclarationNode_default_);
38149
38228
  /* harmony default export */ const Prototype_X3DProtoDeclarationNode = (X3DProtoDeclarationNode_default_);
38150
38229
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
38151
- /* provided dependency */ var X3DParser_$ = __webpack_require__(616);
38230
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(353);
38152
38231
  /*******************************************************************************
38153
38232
  *
38154
38233
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -38973,7 +39052,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
38973
39052
  x_ite_Namespace .add ("X3DProtoDeclaration", "x_ite/Prototype/X3DProtoDeclaration", X3DProtoDeclaration_default_);
38974
39053
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (X3DProtoDeclaration_default_);
38975
39054
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
38976
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(616);
39055
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(353);
38977
39056
  /*******************************************************************************
38978
39057
  *
38979
39058
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39225,12 +39304,19 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
39225
39304
  linePos = 40;
39226
39305
  }
39227
39306
 
39228
- // Format error
39307
+ // Get world URL.
39308
+
39309
+ let worldURL = this .getExecutionContext () .getWorldURL ();
39310
+
39311
+ if (worldURL .startsWith ("data:"))
39312
+ worldURL = worldURL .substring (0, worldURL .indexOf (","));
39313
+
39314
+ // Format error.
39229
39315
 
39230
39316
  const message = "\n"
39231
39317
  + `********************************************************************************\n`
39232
39318
  + `Parser error at line ${this .lineNumber}:${linePos}\n`
39233
- + `in '${this .getExecutionContext () .getWorldURL ()}'\n`
39319
+ + `in '${worldURL}'\n`
39234
39320
  + `\n`
39235
39321
  + `${lastLine}\n`
39236
39322
  + `${line}\n`
@@ -41519,7 +41605,7 @@ const VRMLParser_default_ = VRMLParser;
41519
41605
  x_ite_Namespace .add ("VRMLParser", "x_ite/Parser/VRMLParser", VRMLParser_default_);
41520
41606
  /* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
41521
41607
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
41522
- /* provided dependency */ var XMLParser_$ = __webpack_require__(616);
41608
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(353);
41523
41609
  /*******************************************************************************
41524
41610
  *
41525
41611
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -43612,7 +43698,7 @@ const URLs_default_ = URLs;
43612
43698
  x_ite_Namespace .add ("URLs", "x_ite/Browser/Networking/URLs", URLs_default_);
43613
43699
  /* harmony default export */ const Networking_URLs = (URLs_default_);
43614
43700
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
43615
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(616);
43701
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(353);
43616
43702
  /*******************************************************************************
43617
43703
  *
43618
43704
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -46913,7 +46999,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
46913
46999
  x_ite_Namespace .add ("GLTF2Parser", "x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
46914
47000
  /* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
46915
47001
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
46916
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(616);
47002
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(353);
46917
47003
  /*******************************************************************************
46918
47004
  *
46919
47005
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -47065,7 +47151,7 @@ const GLB2Parser_default_ = GLB2Parser;
47065
47151
  x_ite_Namespace .add ("GLB2Parser", "x_ite/Parser/GLB2Parser", GLB2Parser_default_);
47066
47152
  /* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
47067
47153
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
47068
- /* provided dependency */ var OBJParser_$ = __webpack_require__(616);
47154
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(353);
47069
47155
  /*******************************************************************************
47070
47156
  *
47071
47157
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -50420,8 +50506,8 @@ const MatrixStack_default_ = MatrixStack;
50420
50506
  x_ite_Namespace .add ("MatrixStack", "standard/Math/Utility/MatrixStack", MatrixStack_default_);
50421
50507
  /* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
50422
50508
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
50423
- /* provided dependency */ var SVGParser_$ = __webpack_require__(616);
50424
- /* provided dependency */ var libtess = __webpack_require__(237);
50509
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(353);
50510
+ /* provided dependency */ var libtess = __webpack_require__(177);
50425
50511
  /*******************************************************************************
50426
50512
  *
50427
50513
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53189,7 +53275,7 @@ const SVGParser_default_ = SVGParser;
53189
53275
  x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_);
53190
53276
  /* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
53191
53277
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
53192
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(616);
53278
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(353);
53193
53279
  /*******************************************************************************
53194
53280
  *
53195
53281
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53526,7 +53612,7 @@ const Plane3_default_ = Plane3;
53526
53612
  x_ite_Namespace .add ("Plane3", "standard/Math/Geometry/Plane3", Plane3_default_);
53527
53613
  /* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
53528
53614
  ;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
53529
- /* provided dependency */ var Triangle3_libtess = __webpack_require__(237);
53615
+ /* provided dependency */ var Triangle3_libtess = __webpack_require__(177);
53530
53616
  /*******************************************************************************
53531
53617
  *
53532
53618
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -56605,6 +56691,7 @@ Object .assign (X3DRenderObject .prototype,
56605
56691
  { scissor, clipPlanes, modelViewMatrix, shapeNode, humanoidNode } = renderContext,
56606
56692
  appearanceNode = shapeNode .getAppearance (),
56607
56693
  geometryContext = shapeNode .getGeometryContext (),
56694
+ depthModeNode = appearanceNode .getDepthMode (),
56608
56695
  stylePropertiesNode = appearanceNode .getStyleProperties (geometryContext .geometryType),
56609
56696
  shaderNode = browser .getPointingShader (clipPlanes .length, shapeNode, humanoidNode),
56610
56697
  id = browser .addPointingShape (renderContext);
@@ -56623,10 +56710,13 @@ Object .assign (X3DRenderObject .prototype,
56623
56710
  gl .uniformMatrix4fv (shaderNode .x3d_ModelViewMatrix, false, modelViewMatrix);
56624
56711
  gl .uniform1f (shaderNode .x3d_Id, id);
56625
56712
 
56713
+ depthModeNode ?.enable (gl);
56626
56714
  stylePropertiesNode ?.setShaderUniforms (gl, shaderNode);
56627
56715
  humanoidNode ?.setShaderUniforms (gl, shaderNode);
56628
56716
 
56629
56717
  shapeNode .displaySimple (gl, renderContext, shaderNode);
56718
+
56719
+ depthModeNode ?.disable (gl);
56630
56720
  browser .resetTextureUnits ();
56631
56721
  }
56632
56722
  };
@@ -59324,13 +59414,14 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
59324
59414
  displayGeometry (gl, renderContext, appearanceNode, shaderNode, back, front)
59325
59415
  {
59326
59416
  const
59327
- browser = this .getBrowser (),
59328
- blendModeNode = appearanceNode .getBlendMode (),
59329
- attribNodes = this .attribNodes,
59330
- attribBuffers = this .attribBuffers,
59331
- primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
59417
+ browser = this .getBrowser (),
59418
+ renderModeNodes = appearanceNode .getRenderModes (),
59419
+ attribNodes = this .attribNodes,
59420
+ attribBuffers = this .attribBuffers,
59421
+ primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
59332
59422
 
59333
- blendModeNode ?.enable (gl);
59423
+ for (const node of renderModeNodes)
59424
+ node .enable (gl);
59334
59425
 
59335
59426
  shaderNode .enable (gl);
59336
59427
  shaderNode .setUniforms (gl, this, renderContext, front);
@@ -59404,7 +59495,8 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
59404
59495
  }
59405
59496
  }
59406
59497
 
59407
- blendModeNode ?.disable (gl);
59498
+ for (const node of renderModeNodes)
59499
+ node .disable (gl);
59408
59500
  },
59409
59501
  displaySimpleParticles (gl, shaderNode, particleSystem)
59410
59502
  {
@@ -59447,13 +59539,14 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
59447
59539
  displayParticlesGeometry (gl, renderContext, appearanceNode, shaderNode, back, front, particleSystem)
59448
59540
  {
59449
59541
  const
59450
- browser = this .getBrowser (),
59451
- blendModeNode = appearanceNode .getBlendMode (),
59452
- attribNodes = this .attribNodes,
59453
- attribBuffers = this .attribBuffers,
59454
- primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
59542
+ browser = this .getBrowser (),
59543
+ renderModeNodes = appearanceNode .getRenderModes (),
59544
+ attribNodes = this .attribNodes,
59545
+ attribBuffers = this .attribBuffers,
59546
+ primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
59455
59547
 
59456
- blendModeNode ?.enable (gl);
59548
+ for (const node of renderModeNodes)
59549
+ node .enable (gl);
59457
59550
 
59458
59551
  // Setup shader.
59459
59552
 
@@ -59523,7 +59616,8 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
59523
59616
  gl .drawArraysInstanced (primitiveMode, 0, this .vertexCount, particleSystem .numParticles);
59524
59617
  }
59525
59618
 
59526
- blendModeNode ?.disable (gl);
59619
+ for (const node of renderModeNodes)
59620
+ node .disable (gl);
59527
59621
  },
59528
59622
  });
59529
59623
 
@@ -61025,7 +61119,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
61025
61119
  x_ite_Namespace .add ("X3DTexture2DNode", "x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
61026
61120
  /* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
61027
61121
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
61028
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(616);
61122
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(353);
61029
61123
  /*******************************************************************************
61030
61124
  *
61031
61125
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -65612,7 +65706,7 @@ const X3DWorld_default_ = X3DWorld;
65612
65706
  x_ite_Namespace .add ("X3DWorld", "x_ite/Execution/X3DWorld", X3DWorld_default_);
65613
65707
  /* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
65614
65708
  ;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
65615
- /* provided dependency */ var FileLoader_$ = __webpack_require__(616);
65709
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(353);
65616
65710
  /*******************************************************************************
65617
65711
  *
65618
65712
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -68067,14 +68161,13 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68067
68161
  },
68068
68162
  construct ()
68069
68163
  {
68070
- this [X3DPrototypeInstance_body] ?.dispose ();
68071
-
68072
68164
  const
68073
68165
  protoNode = this [_protoNode],
68074
68166
  proto = protoNode .getProtoDeclaration ();
68075
68167
 
68076
- // Assign field definitions.
68168
+ // Dispose body and assign field definitions.
68077
68169
 
68170
+ this [X3DPrototypeInstance_body] ?.dispose ();
68078
68171
  this [X3DPrototypeInstance_fieldDefinitions] .assign (protoNode .getFieldDefinitions ());
68079
68172
 
68080
68173
  // If there is a proto, the externproto is completely loaded.
@@ -68120,10 +68213,11 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68120
68213
  if (field .hasReferences ())
68121
68214
  continue;
68122
68215
 
68216
+ // Default value of protoField is different from field.
68123
68217
  if (field .equals (protoField))
68124
68218
  continue;
68125
68219
 
68126
- // If default value of protoField is different from field, thus update default value for field.
68220
+ // Update default value of field.
68127
68221
  field .assign (protoField);
68128
68222
  }
68129
68223
  catch
@@ -68188,16 +68282,44 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68188
68282
  if (!oldField)
68189
68283
  continue;
68190
68284
 
68285
+ if (oldField .getType () !== newField .getType ())
68286
+ continue;
68287
+
68191
68288
  oldField .addParent (this);
68192
68289
  oldField .setAccessType (newField .getAccessType ());
68193
68290
  oldField .setName (newField .getName ());
68194
68291
 
68292
+ const references = new Set (oldField .getReferences ());
68293
+
68294
+ // Remove references and routes.
68295
+ for (const field of oldField .getFieldInterests ())
68296
+ oldField .removeFieldInterest (field);
68297
+
68298
+ // Readd references.
68299
+ for (const field of references)
68300
+ {
68301
+ oldField .removeReference (field);
68302
+ oldField .addReference (field);
68303
+ }
68304
+
68305
+ // Reconnect routes.
68306
+ for (const route of oldField .getInputRoutes ())
68307
+ route .getSourceField () .addFieldInterest (route .getDestinationField ());
68308
+
68309
+ // Reconnect routes.
68310
+ for (const route of oldField .getOutputRoutes ())
68311
+ route .getSourceField () .addFieldInterest (route .getDestinationField ());
68312
+
68313
+ // Replace field, ie. reuse old field.
68195
68314
  this .getPredefinedFields () .update (newField .getName (), newField .getName (), oldField);
68196
68315
 
68316
+ // Remove from old fields and dispose new field.
68197
68317
  oldFields .delete (oldFieldName);
68198
68318
  newField .dispose ();
68199
68319
  }
68200
68320
 
68321
+ // Dispose unused old fields.
68322
+
68201
68323
  for (const oldField of oldFields .values ())
68202
68324
  oldField .dispose ();
68203
68325
 
@@ -84350,6 +84472,9 @@ Object .assign (Object .setPrototypeOf (CylinderSensor .prototype, PointingDevic
84350
84472
  {
84351
84473
  PointingDeviceSensor_X3DDragSensorNode .prototype .initialize .call (this);
84352
84474
 
84475
+ this ._axisRotation .addInterest ("set_fields__", this);
84476
+ this ._diskAngle .addInterest ("set_fields__", this);
84477
+
84353
84478
  this .modelViewMatrix = new Numbers_Matrix4 ();
84354
84479
  this .invModelViewMatrix = new Numbers_Matrix4 ();
84355
84480
 
@@ -84399,71 +84524,87 @@ Object .assign (Object .setPrototypeOf (CylinderSensor .prototype, PointingDevic
84399
84524
  {
84400
84525
  if (rotation .getAxis (new Numbers_Vector3 (0, 0, 0)) .dot (this .cylinder .axis .direction) > 0)
84401
84526
  return rotation .angle;
84402
-
84403
84527
  else
84404
84528
  return -rotation .angle;
84405
84529
  },
84530
+ set_fields__ ()
84531
+ {
84532
+ if (!this ._isActive .getValue ())
84533
+ return;
84534
+
84535
+ this .activate (this .activateHit);
84536
+ this .set_motion__ (this .motionHit ?? this .activateHit);
84537
+ },
84406
84538
  set_active__ (active, hit, modelViewMatrix, projectionMatrix, viewport)
84407
84539
  {
84408
84540
  PointingDeviceSensor_X3DDragSensorNode .prototype .set_active__ .call (this, active, hit, modelViewMatrix, projectionMatrix, viewport);
84409
84541
 
84410
84542
  if (this ._isActive .getValue ())
84411
84543
  {
84544
+ this .activateHit = hit .copy ();
84545
+ this .motionHit = null;
84546
+
84412
84547
  this .modelViewMatrix .assign (modelViewMatrix);
84413
84548
  this .invModelViewMatrix .assign (modelViewMatrix) .inverse ();
84414
84549
 
84415
- const
84416
- hitRay = hit .hitRay .copy () .multLineMatrix (this .invModelViewMatrix),
84417
- hitPoint = this .invModelViewMatrix .multVecMatrix (hit .point .copy ());
84550
+ this .activate (hit);
84551
+ }
84552
+ else
84553
+ {
84554
+ if (this ._autoOffset .getValue ())
84555
+ this ._offset = this .getAngle (this ._rotation_changed .getValue ());
84556
+ }
84557
+ },
84558
+ activate (hit)
84559
+ {
84560
+ const
84561
+ hitRay = hit .hitRay .copy () .multLineMatrix (this .invModelViewMatrix),
84562
+ hitPoint = this .invModelViewMatrix .multVecMatrix (hit .point .copy ());
84418
84563
 
84419
- const
84420
- yAxis = this ._axisRotation .getValue () .multVecRot (new Numbers_Vector3 (0, 1, 0)),
84421
- cameraBack = this .invModelViewMatrix .multDirMatrix (new Numbers_Vector3 (0, 0, 1)) .normalize ();
84564
+ const
84565
+ yAxis = this ._axisRotation .getValue () .multVecRot (new Numbers_Vector3 (0, 1, 0)),
84566
+ cameraBack = this .invModelViewMatrix .multDirMatrix (new Numbers_Vector3 (0, 0, 1)) .normalize ();
84422
84567
 
84423
- const
84424
- axis = new Geometry_Line3 (new Numbers_Vector3 (0, 0, 0), yAxis),
84425
- radius = axis .getPerpendicularVectorToPoint (hitPoint, new Numbers_Vector3 (0, 0, 0)) .magnitude ();
84568
+ const
84569
+ axis = new Geometry_Line3 (new Numbers_Vector3 (0, 0, 0), yAxis),
84570
+ radius = axis .getPerpendicularVectorToPoint (hitPoint, new Numbers_Vector3 (0, 0, 0)) .magnitude ();
84426
84571
 
84427
- this .cylinder = new Geometry_Cylinder3 (axis, radius);
84428
- this .disk = Math .abs (cameraBack .dot (yAxis)) > Math .cos (this ._diskAngle .getValue ());
84429
- this .behind = this .isBehind (hitRay, hitPoint);
84430
- this .yPlane = new Geometry_Plane3 (hitPoint, yAxis); // Sensor aligned y-plane
84431
- this .zPlane = new Geometry_Plane3 (hitPoint, cameraBack); // Screen aligned z-plane
84572
+ this .cylinder = new Geometry_Cylinder3 (axis, radius);
84573
+ this .disk = Math .abs (cameraBack .dot (yAxis)) > Math .cos (this ._diskAngle .getValue ());
84574
+ this .behind = this .isBehind (hitRay, hitPoint);
84575
+ this .yPlane = new Geometry_Plane3 (hitPoint, yAxis); // Sensor aligned y-plane
84576
+ this .zPlane = new Geometry_Plane3 (hitPoint, cameraBack); // Screen aligned z-plane
84432
84577
 
84433
- // Compute normal like in Billboard with yAxis as axis of rotation.
84434
- const
84435
- billboardToViewer = this .invModelViewMatrix .origin,
84436
- sxNormal = yAxis .copy () .cross (billboardToViewer) .normalize ();
84578
+ // Compute normal like in Billboard with yAxis as axis of rotation.
84579
+ const
84580
+ billboardToViewer = this .invModelViewMatrix .origin,
84581
+ sxNormal = yAxis .copy () .cross (billboardToViewer) .normalize ();
84437
84582
 
84438
- this .sxPlane = new Geometry_Plane3 (new Numbers_Vector3 (0, 0, 0), sxNormal); // Billboarded special x-plane made parallel to sensors axis.
84439
- this .szNormal = sxNormal .copy () .cross (yAxis) .normalize (); // Billboarded special z-normal made parallel to sensors axis.
84583
+ this .sxPlane = new Geometry_Plane3 (new Numbers_Vector3 (0, 0, 0), sxNormal); // Billboarded special x-plane made parallel to sensors axis.
84584
+ this .szNormal = sxNormal .copy () .cross (yAxis) .normalize (); // Billboarded special z-normal made parallel to sensors axis.
84440
84585
 
84441
- const trackPoint = new Numbers_Vector3 (0, 0, 0);
84586
+ const trackPoint = new Numbers_Vector3 (0, 0, 0);
84442
84587
 
84443
- if (this .disk)
84444
- this .yPlane .intersectsLine (hitRay, trackPoint);
84445
- else
84446
- this .getTrackPoint (hitRay, trackPoint);
84588
+ if (this .disk)
84589
+ this .yPlane .intersectsLine (hitRay, trackPoint);
84590
+ else
84591
+ this .getTrackPoint (hitRay, trackPoint);
84447
84592
 
84448
- this .fromVector = this .cylinder .axis .getPerpendicularVectorToPoint (trackPoint, new Numbers_Vector3 (0, 0, 0)) .negate ();
84449
- this .startOffset = new Numbers_Rotation4 (yAxis, this ._offset .getValue ());
84593
+ this .fromVector = this .cylinder .axis .getPerpendicularVectorToPoint (trackPoint, new Numbers_Vector3 (0, 0, 0)) .negate ();
84594
+ this .startOffset = new Numbers_Rotation4 (yAxis, this ._offset .getValue ());
84450
84595
 
84451
- this ._trackPoint_changed = trackPoint;
84452
- this ._rotation_changed = this .startOffset;
84596
+ this ._trackPoint_changed = trackPoint;
84597
+ this ._rotation_changed = this .startOffset;
84453
84598
 
84454
- // For min/max angle.
84599
+ // For min/max angle.
84455
84600
 
84456
- this .angle = this ._offset .getValue ();
84457
- this .startVector = this ._rotation_changed .getValue () .multVecRot (this ._axisRotation .getValue () .multVecRot (new Numbers_Vector3 (0, 0, 1)));
84458
- }
84459
- else
84460
- {
84461
- if (this ._autoOffset .getValue ())
84462
- this ._offset = this .getAngle (this ._rotation_changed .getValue ());
84463
- }
84601
+ this .angle = this ._offset .getValue ();
84602
+ this .startVector = this ._rotation_changed .getValue () .multVecRot (this ._axisRotation .getValue () .multVecRot (new Numbers_Vector3 (0, 0, 1)));
84464
84603
  },
84465
84604
  set_motion__ (hit)
84466
84605
  {
84606
+ this .motionHit = hit .copy ();
84607
+
84467
84608
  const
84468
84609
  hitRay = hit .hitRay .copy () .multLineMatrix (this .invModelViewMatrix),
84469
84610
  trackPoint = new Numbers_Vector3 (0, 0, 0);
@@ -84826,6 +84967,10 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84826
84967
  {
84827
84968
  PointingDeviceSensor_X3DDragSensorNode .prototype .initialize .call (this);
84828
84969
 
84970
+ this ._axisRotation .addInterest ("set_fields__", this);
84971
+ this ._minPosition .addInterest ("set_fields__", this);
84972
+ this ._maxPosition .addInterest ("set_fields__", this);
84973
+
84829
84974
  this .modelViewMatrix = new Numbers_Matrix4 ();
84830
84975
  this .invModelViewMatrix = new Numbers_Matrix4 ();
84831
84976
  this .projectionMatrix = new Numbers_Matrix4 ();
@@ -84837,86 +84982,101 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84837
84982
  this .startOffset = new Numbers_Vector3 (0, 0, 0);
84838
84983
  this .startPoint = new Numbers_Vector3 (0, 0, 0);
84839
84984
  },
84840
- getLineTrackPoint (hit, line, trackPoint)
84985
+ getLineTrackPoint (pointer, line, trackPoint)
84841
84986
  {
84842
84987
  Geometry_ViewVolume .projectLine (line, this .modelViewMatrix, this .projectionMatrix, this .viewport, screenLine);
84843
- screenLine .getClosestPointToPoint (hit .pointer, trackPoint1);
84988
+ screenLine .getClosestPointToPoint (pointer, trackPoint1);
84844
84989
  Geometry_ViewVolume .unProjectRay (trackPoint1 .x, trackPoint1 .y, this .modelViewMatrix, this .projectionMatrix, this .viewport, trackPointLine);
84845
84990
 
84846
84991
  return line .getClosestPointToLine (trackPointLine, trackPoint);
84847
84992
  },
84993
+ set_fields__ ()
84994
+ {
84995
+ if (!this ._isActive .getValue ())
84996
+ return;
84997
+
84998
+ this .activate (this .activateHit);
84999
+ this .set_motion__ (this .motionHit ?? this .activateHit);
85000
+ },
84848
85001
  set_active__ (active, hit, modelViewMatrix, projectionMatrix, viewport)
84849
85002
  {
84850
85003
  PointingDeviceSensor_X3DDragSensorNode .prototype .set_active__ .call (this, active, hit, modelViewMatrix, projectionMatrix, viewport);
84851
85004
 
84852
85005
  if (this ._isActive .getValue ())
84853
85006
  {
85007
+ this .activateHit = hit .copy ();
85008
+ this .motionHit = null;
85009
+
84854
85010
  this .modelViewMatrix .assign (modelViewMatrix);
84855
85011
  this .projectionMatrix .assign (projectionMatrix);
84856
85012
  this .viewport .assign (viewport);
84857
85013
  this .invModelViewMatrix .assign (modelViewMatrix) .inverse ();
84858
85014
 
84859
- const
84860
- hitRay = hit .hitRay .copy () .multLineMatrix (this .invModelViewMatrix),
84861
- hitPoint = this .invModelViewMatrix .multVecMatrix (hit .point .copy ());
85015
+ this .activate (hit);
85016
+ }
85017
+ else
85018
+ {
85019
+ if (this ._autoOffset .getValue ())
85020
+ this ._offset = this ._translation_changed;
85021
+ }
85022
+ },
85023
+ activate (hit)
85024
+ {
85025
+ const
85026
+ hitRay = hit .hitRay .copy () .multLineMatrix (this .invModelViewMatrix),
85027
+ hitPoint = this .invModelViewMatrix .multVecMatrix (hit .point .copy ());
84862
85028
 
84863
- const axisRotation = this ._axisRotation .getValue ();
85029
+ const axisRotation = this ._axisRotation .getValue ();
84864
85030
 
84865
- if (this ._minPosition .x === this ._maxPosition .x)
84866
- {
84867
- this .planeSensor = false;
85031
+ if (this ._minPosition .x === this ._maxPosition .x)
85032
+ {
85033
+ this .planeSensor = false;
84868
85034
 
84869
- const direction = axisRotation .multVecRot (new Numbers_Vector3 (0, Math .abs (this ._maxPosition .y - this ._minPosition .y), 0));
85035
+ const direction = axisRotation .multVecRot (new Numbers_Vector3 (0, Math .abs (this ._maxPosition .y - this ._minPosition .y), 0));
84870
85036
 
84871
- this .line = new Geometry_Line3 (hitPoint, direction .normalize ());
84872
- }
84873
- else if (this ._minPosition .y === this ._maxPosition .y)
84874
- {
84875
- this .planeSensor = false;
85037
+ this .line = new Geometry_Line3 (hitPoint, direction .normalize ());
85038
+ }
85039
+ else if (this ._minPosition .y === this ._maxPosition .y)
85040
+ {
85041
+ this .planeSensor = false;
84876
85042
 
84877
- const direction = axisRotation .multVecRot (new Numbers_Vector3 (Math .abs (this ._maxPosition .x - this ._minPosition .x), 0, 0));
85043
+ const direction = axisRotation .multVecRot (new Numbers_Vector3 (Math .abs (this ._maxPosition .x - this ._minPosition .x), 0, 0));
84878
85044
 
84879
- this .line = new Geometry_Line3 (hitPoint, direction .normalize ());
84880
- }
84881
- else
85045
+ this .line = new Geometry_Line3 (hitPoint, direction .normalize ());
85046
+ }
85047
+ else
85048
+ {
85049
+ this .planeSensor = true;
85050
+ this .plane = new Geometry_Plane3 (hitPoint, axisRotation .multVecRot (new Numbers_Vector3 (0, 0, 1)));
85051
+ }
85052
+
85053
+ if (this .planeSensor)
85054
+ {
85055
+ if (this .plane .intersectsLine (hitRay, this .startPoint))
84882
85056
  {
84883
- this .planeSensor = true;
84884
- this .plane = new Geometry_Plane3 (hitPoint, axisRotation .multVecRot (new Numbers_Vector3 (0, 0, 1)));
85057
+ this .trackStart (this .startPoint);
84885
85058
  }
84886
85059
 
84887
- if (this .planeSensor)
85060
+ // new Plane3 (new Vector3 (0, 0, 0), this .plane .normal) .intersectsLine (hitRay, trackPoint);
85061
+ }
85062
+ else
85063
+ {
85064
+ if (this .getLineTrackPoint (hit .pointer, this .line, this .startPoint))
84888
85065
  {
84889
- if (this .plane .intersectsLine (hitRay, this .startPoint))
85066
+ const trackPoint = new Numbers_Vector3 (0, 0, 0);
85067
+
85068
+ try
84890
85069
  {
84891
- this .trackStart (this .startPoint);
85070
+ this .getLineTrackPoint (hit .pointer, new Geometry_Line3 (this .line .direction, this .line .direction), trackPoint);
84892
85071
  }
84893
-
84894
- // new Plane3 (new Vector3 (0, 0, 0), this .plane .normal) .intersectsLine (hitRay, trackPoint);
84895
- }
84896
- else
84897
- {
84898
- if (this .getLineTrackPoint (hit, this .line, this .startPoint))
85072
+ catch
84899
85073
  {
84900
- const trackPoint = new Numbers_Vector3 (0, 0, 0);
84901
-
84902
- try
84903
- {
84904
- this .getLineTrackPoint (hit, new Geometry_Line3 (this .line .direction, this .line .direction), trackPoint);
84905
- }
84906
- catch
84907
- {
84908
- trackPoint .assign (this .startPoint);
84909
- }
84910
-
84911
- this .trackStart (trackPoint);
85074
+ trackPoint .assign (this .startPoint);
84912
85075
  }
85076
+
85077
+ this .trackStart (trackPoint);
84913
85078
  }
84914
85079
  }
84915
- else
84916
- {
84917
- if (this ._autoOffset .getValue ())
84918
- this ._offset = this ._translation_changed;
84919
- }
84920
85080
  },
84921
85081
  trackStart (trackPoint)
84922
85082
  {
@@ -84929,6 +85089,8 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84929
85089
  {
84930
85090
  try
84931
85091
  {
85092
+ this .motionHit = hit .copy ();
85093
+
84932
85094
  if (this .planeSensor)
84933
85095
  {
84934
85096
  const
@@ -84936,9 +85098,7 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84936
85098
  endPoint = new Numbers_Vector3 (0, 0, 0);
84937
85099
 
84938
85100
  if (this .plane .intersectsLine (hitRay, endPoint))
84939
- {
84940
85101
  this .track (endPoint, endPoint .copy ());
84941
- }
84942
85102
  else
84943
85103
  throw new Error ("Plane and line are parallel.");
84944
85104
  }
@@ -84948,11 +85108,11 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84948
85108
  endPoint = new Numbers_Vector3 (0, 0, 0),
84949
85109
  trackPoint = new Numbers_Vector3 (0, 0, 0);
84950
85110
 
84951
- if (this .getLineTrackPoint (hit, this .line, endPoint))
85111
+ if (this .getLineTrackPoint (hit .pointer, this .line, endPoint))
84952
85112
  {
84953
85113
  try
84954
85114
  {
84955
- this .getLineTrackPoint (hit, new Geometry_Line3 (Numbers_Vector3 .Zero, this .line .direction), trackPoint);
85115
+ this .getLineTrackPoint (hit .pointer, new Geometry_Line3 (Numbers_Vector3 .Zero, this .line .direction), trackPoint);
84956
85116
  }
84957
85117
  catch
84958
85118
  {
@@ -84962,7 +85122,9 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84962
85122
  this .track (endPoint, trackPoint);
84963
85123
  }
84964
85124
  else
85125
+ {
84965
85126
  throw new Error ("Lines are parallel.");
85127
+ }
84966
85128
  }
84967
85129
  }
84968
85130
  catch
@@ -86751,7 +86913,7 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86751
86913
  appearanceNode = renderContext .appearanceNode,
86752
86914
  linePropertiesNode = appearanceNode .getLineProperties (),
86753
86915
  shaderNode = appearanceNode .getShader (this, renderContext),
86754
- blendModeNode = appearanceNode .getBlendMode (),
86916
+ renderModeNodes = appearanceNode .getRenderModes (),
86755
86917
  attribNodes = this .getAttrib (),
86756
86918
  attribBuffers = this .getAttribBuffers ();
86757
86919
 
@@ -86859,7 +87021,8 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86859
87021
 
86860
87022
  // Render triangles.
86861
87023
 
86862
- blendModeNode ?.enable (gl);
87024
+ for (const node of renderModeNodes)
87025
+ node .enable (gl);
86863
87026
 
86864
87027
  // Setup shader.
86865
87028
 
@@ -86903,7 +87066,8 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86903
87066
  gl .enable (gl .CULL_FACE);
86904
87067
  gl .drawArrays (primitiveMode, 0, this .vertexCount * 3);
86905
87068
 
86906
- blendModeNode ?.disable (gl);
87069
+ for (const node of renderModeNodes)
87070
+ node .disable (gl);
86907
87071
 
86908
87072
  return;
86909
87073
  }
@@ -86911,7 +87075,8 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86911
87075
 
86912
87076
  const primitiveMode = browser .getPrimitiveMode (this .getPrimitiveMode ());
86913
87077
 
86914
- blendModeNode ?.enable (gl);
87078
+ for (const node of renderModeNodes)
87079
+ node .enable (gl);
86915
87080
 
86916
87081
  // Setup shader.
86917
87082
 
@@ -86944,7 +87109,8 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86944
87109
 
86945
87110
  gl .drawArrays (primitiveMode, 0, this .vertexCount);
86946
87111
 
86947
- blendModeNode ?.disable (gl);
87112
+ for (const node of renderModeNodes)
87113
+ node .disable (gl);
86948
87114
 
86949
87115
  gl .lineWidth (1);
86950
87116
  };
@@ -86952,15 +87118,16 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86952
87118
  displayParticles (gl, renderContext, particleSystem)
86953
87119
  {
86954
87120
  const
86955
- browser = this .getBrowser (),
86956
- appearanceNode = renderContext .appearanceNode,
86957
- shaderNode = appearanceNode .getShader (this, renderContext),
86958
- blendModeNode = appearanceNode .getBlendMode (),
86959
- attribNodes = this .getAttrib (),
86960
- attribBuffers = this .getAttribBuffers (),
86961
- primitiveMode = browser .getPrimitiveMode (this .getPrimitiveMode ());
87121
+ browser = this .getBrowser (),
87122
+ appearanceNode = renderContext .appearanceNode,
87123
+ shaderNode = appearanceNode .getShader (this, renderContext),
87124
+ renderModeNodes = appearanceNode .getRenderModes (),
87125
+ attribNodes = this .getAttrib (),
87126
+ attribBuffers = this .getAttribBuffers (),
87127
+ primitiveMode = browser .getPrimitiveMode (this .getPrimitiveMode ());
86962
87128
 
86963
- blendModeNode ?.enable (gl);
87129
+ for (const node of renderModeNodes)
87130
+ node .enable (gl);
86964
87131
 
86965
87132
  // Setup shader.
86966
87133
 
@@ -86999,7 +87166,8 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86999
87166
 
87000
87167
  gl .drawArraysInstanced (primitiveMode, 0, this .vertexCount, particleSystem .numParticles);
87001
87168
 
87002
- blendModeNode ?.disable (gl);
87169
+ for (const node of renderModeNodes)
87170
+ node .disable (gl);
87003
87171
 
87004
87172
  gl .lineWidth (1);
87005
87173
  },
@@ -88366,13 +88534,14 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
88366
88534
  display (gl, renderContext)
88367
88535
  {
88368
88536
  const
88369
- appearanceNode = renderContext .appearanceNode,
88370
- shaderNode = appearanceNode .getShader (this, renderContext),
88371
- blendModeNode = appearanceNode .getBlendMode (),
88372
- attribNodes = this .getAttrib (),
88373
- attribBuffers = this .getAttribBuffers ();
88537
+ appearanceNode = renderContext .appearanceNode,
88538
+ shaderNode = appearanceNode .getShader (this, renderContext),
88539
+ renderModeNodes = appearanceNode .getRenderModes (),
88540
+ attribNodes = this .getAttrib (),
88541
+ attribBuffers = this .getAttribBuffers ();
88374
88542
 
88375
- blendModeNode ?.enable (gl);
88543
+ for (const node of renderModeNodes)
88544
+ node .enable (gl);
88376
88545
 
88377
88546
  // Setup shader.
88378
88547
 
@@ -88403,18 +88572,20 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
88403
88572
 
88404
88573
  gl .drawArrays (this .primitiveMode, 0, this .vertexCount);
88405
88574
 
88406
- blendModeNode ?.disable (gl);
88575
+ for (const node of renderModeNodes)
88576
+ node .disable (gl);
88407
88577
  },
88408
88578
  displayParticles (gl, renderContext, particleSystem)
88409
88579
  {
88410
88580
  const
88411
- appearanceNode = renderContext .appearanceNode,
88412
- shaderNode = appearanceNode .getShader (this, renderContext),
88413
- blendModeNode = appearanceNode .getBlendMode (),
88414
- attribNodes = this .getAttrib (),
88415
- attribBuffers = this .getAttribBuffers ();
88581
+ appearanceNode = renderContext .appearanceNode,
88582
+ shaderNode = appearanceNode .getShader (this, renderContext),
88583
+ renderModeNodes = appearanceNode .getRenderModes (),
88584
+ attribNodes = this .getAttrib (),
88585
+ attribBuffers = this .getAttribBuffers ();
88416
88586
 
88417
- blendModeNode ?.enable (gl);
88587
+ for (const node of renderModeNodes)
88588
+ node .enable (gl);
88418
88589
 
88419
88590
  // Setup shader.
88420
88591
 
@@ -88453,7 +88624,8 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
88453
88624
 
88454
88625
  gl .drawArraysInstanced (this .primitiveMode, 0, this .vertexCount, particleSystem .numParticles);
88455
88626
 
88456
- blendModeNode ?.disable (gl);
88627
+ for (const node of renderModeNodes)
88628
+ node .disable (gl);
88457
88629
  },
88458
88630
  });
88459
88631
 
@@ -89350,7 +89522,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
89350
89522
  x_ite_Namespace .add ("X3DShaderNode", "x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
89351
89523
  /* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
89352
89524
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
89353
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(616);
89525
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(353);
89354
89526
  /*******************************************************************************
89355
89527
  *
89356
89528
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -94991,7 +95163,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
94991
95163
  x_ite_Namespace .add ("ShaderCompiler", "x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
94992
95164
  /* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
94993
95165
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
94994
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(616);
95166
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(353);
94995
95167
  /*******************************************************************************
94996
95168
  *
94997
95169
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95648,7 +95820,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
95648
95820
  x_ite_Namespace .add ("X3DAppearanceNode", "x_ite/Components/Shape/X3DAppearanceNode", X3DAppearanceNode_default_);
95649
95821
  /* harmony default export */ const Shape_X3DAppearanceNode = (X3DAppearanceNode_default_);
95650
95822
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
95651
- /* provided dependency */ var Appearance_$ = __webpack_require__(616);
95823
+ /* provided dependency */ var Appearance_$ = __webpack_require__(353);
95652
95824
  /*******************************************************************************
95653
95825
  *
95654
95826
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95715,6 +95887,7 @@ function Appearance (executionContext)
95715
95887
  this .textureTransformMapping = new Map ();
95716
95888
  this .textureBits = new Utility_BitSet ();
95717
95889
  this .shaderNodes = [ ];
95890
+ this .renderModeNodes = [ ];
95718
95891
  }
95719
95892
 
95720
95893
  Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearanceNode .prototype),
@@ -95737,7 +95910,8 @@ Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearan
95737
95910
  this ._texture .addInterest ("set_texture__", this);
95738
95911
  this ._textureTransform .addInterest ("set_textureTransform__", this);
95739
95912
  this ._shaders .addInterest ("set_shaders__", this);
95740
- this ._blendMode .addInterest ("set_blendMode__", this);
95913
+ this ._blendMode .addInterest ("set_renderModes__", this);
95914
+ this ._depthMode .addInterest ("set_renderModes__", this);
95741
95915
 
95742
95916
  this ._alphaMode .addInterest ("set_transparent__", this);
95743
95917
  this ._fillProperties .addInterest ("set_transparent__", this);
@@ -95754,7 +95928,7 @@ Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearan
95754
95928
  this .set_texture__ ();
95755
95929
  this .set_textureTransform__ ();
95756
95930
  this .set_shaders__ ();
95757
- this .set_blendMode__ ();
95931
+ this .set_renderModes__ ();
95758
95932
  this .set_transparent__ ();
95759
95933
  },
95760
95934
  getAlphaMode ()
@@ -95818,9 +95992,13 @@ Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearan
95818
95992
  {
95819
95993
  return this .backMaterialNode .getShader (geometryContext, renderContext);
95820
95994
  },
95821
- getBlendMode ()
95995
+ getRenderModes ()
95996
+ {
95997
+ return this .renderModeNodes;
95998
+ },
95999
+ getDepthMode ()
95822
96000
  {
95823
- return this .blendModeNode;
96001
+ return this .depthModeNode;
95824
96002
  },
95825
96003
  set_contentScale__ ()
95826
96004
  {
@@ -96025,9 +96203,15 @@ Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearan
96025
96203
  }
96026
96204
  };
96027
96205
  })(),
96028
- set_blendMode__ ()
96206
+ set_renderModes__ ()
96029
96207
  {
96030
- this .blendModeNode = Base_X3DCast (Base_X3DConstants .BlendMode, this ._blendMode);
96208
+ this .renderModeNodes .length = 0;
96209
+
96210
+ this .blendModeNode = Base_X3DCast (Base_X3DConstants .BlendMode, this ._blendMode),
96211
+ this .depthModeNode = Base_X3DCast (Base_X3DConstants .DepthMode, this ._depthMode);
96212
+
96213
+ if (this .blendModeNode) this .renderModeNodes .push (this .blendModeNode);
96214
+ if (this .depthModeNode) this .renderModeNodes .push (this .depthModeNode);
96031
96215
  },
96032
96216
  set_transparent__ ()
96033
96217
  {
@@ -96081,6 +96265,7 @@ Object .defineProperties (Appearance,
96081
96265
  new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "textureTransform", new x_ite_Fields .SFNode ()),
96082
96266
  new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "shaders", new x_ite_Fields .MFNode ()),
96083
96267
  new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "blendMode", new x_ite_Fields .SFNode ()),
96268
+ new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "depthMode", new x_ite_Fields .SFNode ()),
96084
96269
  ]),
96085
96270
  enumerable: true,
96086
96271
  },
@@ -99053,7 +99238,7 @@ const Components_Shape_default_ = {
99053
99238
  x_ite_Namespace .add ("Shape", "x_ite/Components/Shape", Components_Shape_default_);
99054
99239
  /* harmony default export */ const Components_Shape = (Components_Shape_default_);
99055
99240
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundProcessingNode.js
99056
- /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(616);
99241
+ /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(353);
99057
99242
  /*******************************************************************************
99058
99243
  *
99059
99244
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99693,7 +99878,7 @@ const X3DSoundSourceNode_default_ = X3DSoundSourceNode;
99693
99878
  x_ite_Namespace .add ("X3DSoundSourceNode", "x_ite/Components/Sound/X3DSoundSourceNode", X3DSoundSourceNode_default_);
99694
99879
  /* harmony default export */ const Sound_X3DSoundSourceNode = (X3DSoundSourceNode_default_);
99695
99880
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/AudioClip.js
99696
- /* provided dependency */ var AudioClip_$ = __webpack_require__(616);
99881
+ /* provided dependency */ var AudioClip_$ = __webpack_require__(353);
99697
99882
  /*******************************************************************************
99698
99883
  *
99699
99884
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99995,7 +100180,7 @@ const X3DSoundNode_default_ = X3DSoundNode;
99995
100180
  x_ite_Namespace .add ("X3DSoundNode", "x_ite/Components/Sound/X3DSoundNode", X3DSoundNode_default_);
99996
100181
  /* harmony default export */ const Sound_X3DSoundNode = (X3DSoundNode_default_);
99997
100182
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundDestinationNode.js
99998
- /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(616);
100183
+ /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(353);
99999
100184
  /*******************************************************************************
100000
100185
  *
100001
100186
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -101645,7 +101830,7 @@ const ListenerPointSource_default_ = ListenerPointSource;
101645
101830
  x_ite_Namespace .add ("ListenerPointSource", "x_ite/Components/Sound/ListenerPointSource", ListenerPointSource_default_);
101646
101831
  /* harmony default export */ const Sound_ListenerPointSource = (ListenerPointSource_default_);
101647
101832
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/MicrophoneSource.js
101648
- /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(616);
101833
+ /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(353);
101649
101834
  /*******************************************************************************
101650
101835
  *
101651
101836
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -103314,8 +103499,8 @@ const GifMedia_default_ = GifMedia;
103314
103499
  x_ite_Namespace .add ("GifMedia", "x_ite/Browser/Texturing/GifMedia", GifMedia_default_);
103315
103500
  /* harmony default export */ const Texturing_GifMedia = (GifMedia_default_);
103316
103501
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
103317
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(616);
103318
- /* provided dependency */ var SuperGif = __webpack_require__(115);
103502
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(353);
103503
+ /* provided dependency */ var SuperGif = __webpack_require__(302);
103319
103504
  /*******************************************************************************
103320
103505
  *
103321
103506
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -106593,7 +106778,7 @@ const gettext_default_ = gettext;
106593
106778
  x_ite_Namespace .add ("gettext", "locale/gettext", gettext_default_);
106594
106779
  /* harmony default export */ const locale_gettext = (gettext_default_);
106595
106780
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
106596
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(616);
106781
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(353);
106597
106782
  /*******************************************************************************
106598
106783
  *
106599
106784
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107023,7 +107208,7 @@ const TextureQuality_default_ = TextureQuality;
107023
107208
  x_ite_Namespace .add ("TextureQuality", "x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
107024
107209
  /* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
107025
107210
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
107026
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(616);
107211
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(353);
107027
107212
  /*******************************************************************************
107028
107213
  *
107029
107214
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107613,7 +107798,7 @@ const RenderingProperties_default_ = RenderingProperties;
107613
107798
  x_ite_Namespace .add ("RenderingProperties", "x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
107614
107799
  /* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
107615
107800
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
107616
- /* provided dependency */ var Notification_$ = __webpack_require__(616);
107801
+ /* provided dependency */ var Notification_$ = __webpack_require__(353);
107617
107802
  /*******************************************************************************
107618
107803
  *
107619
107804
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107736,8 +107921,8 @@ const Notification_default_ = Notification;
107736
107921
  x_ite_Namespace .add ("Notification", "x_ite/Browser/Core/Notification", Notification_default_);
107737
107922
  /* harmony default export */ const Core_Notification = (Notification_default_);
107738
107923
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
107739
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(746);
107740
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(616);
107924
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(699);
107925
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(353);
107741
107926
  /*******************************************************************************
107742
107927
  *
107743
107928
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109495,12 +109680,12 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
109495
109680
  throw new Error ("Couldn't add metadata: name is empty.");
109496
109681
 
109497
109682
  if (!Array .isArray (values))
109498
- values = [String (values)];
109683
+ values = [values];
109499
109684
 
109500
109685
  if (!values .length)
109501
109686
  throw new Error ("Couldn't add metadata: values length is 0.");
109502
109687
 
109503
- this [_metadata] .set (name, values .map (value => String (value)));
109688
+ this [_metadata] .set (name, values .map (String));
109504
109689
 
109505
109690
  this ._metadata_changed = this .getBrowser () .getCurrentTime ();
109506
109691
  },
@@ -110488,7 +110673,7 @@ const DataStorage_default_ = DataStorage;
110488
110673
  x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage_default_);
110489
110674
  /* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
110490
110675
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
110491
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(616);
110676
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(353);
110492
110677
  /*******************************************************************************
110493
110678
  *
110494
110679
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -112553,8 +112738,8 @@ const X3DViewer_default_ = X3DViewer;
112553
112738
  x_ite_Namespace .add ("X3DViewer", "x_ite/Browser/Navigation/X3DViewer", X3DViewer_default_);
112554
112739
  /* harmony default export */ const Navigation_X3DViewer = (X3DViewer_default_);
112555
112740
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
112556
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(678);
112557
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(616);
112741
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(509);
112742
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(353);
112558
112743
  /*******************************************************************************
112559
112744
  *
112560
112745
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -113426,8 +113611,8 @@ const ExamineViewer_default_ = ExamineViewer;
113426
113611
  x_ite_Namespace .add ("ExamineViewer", "x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
113427
113612
  /* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
113428
113613
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
113429
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(678);
113430
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(616);
113614
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(509);
113615
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(353);
113431
113616
  /*******************************************************************************
113432
113617
  *
113433
113618
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114436,8 +114621,8 @@ const FlyViewer_default_ = FlyViewer;
114436
114621
  x_ite_Namespace .add ("FlyViewer", "x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
114437
114622
  /* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
114438
114623
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
114439
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(678);
114440
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(616);
114624
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(509);
114625
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(353);
114441
114626
  /*******************************************************************************
114442
114627
  *
114443
114628
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114768,8 +114953,8 @@ const NoneViewer_default_ = NoneViewer;
114768
114953
  x_ite_Namespace .add ("NoneViewer", "x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
114769
114954
  /* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
114770
114955
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
114771
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(678);
114772
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(616);
114956
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(509);
114957
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(353);
114773
114958
  /*******************************************************************************
114774
114959
  *
114775
114960
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115908,8 +116093,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
115908
116093
  x_ite_Namespace .add ("X3DPickingContext", "x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
115909
116094
  /* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
115910
116095
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
115911
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(678);
115912
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(616);
116096
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(509);
116097
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(353);
115913
116098
  /*******************************************************************************
115914
116099
  *
115915
116100
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116466,6 +116651,22 @@ function X3DPointingDeviceSensorContext ()
116466
116651
  texCoord: new Numbers_Vector4 (0, 0, 0, 0),
116467
116652
  layerNode: null,
116468
116653
  shapeNode: null,
116654
+ copy ()
116655
+ {
116656
+ return {
116657
+ id: this .id,
116658
+ pointer: this .pointer .copy (),
116659
+ hitRay: this .hitRay .copy (),
116660
+ sensors: this .sensors .slice (),
116661
+ modelViewMatrix: this .modelViewMatrix .copy (),
116662
+ point: this .point .copy (),
116663
+ normal: this .normal .copy (),
116664
+ texCoord: this .texCoord .copy (),
116665
+ layerNode: this .layerNode,
116666
+ shapeNode: this .shapeNode,
116667
+ copy: this .copy,
116668
+ };
116669
+ },
116469
116670
  };
116470
116671
  }
116471
116672
 
@@ -117172,7 +117373,7 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
117172
117373
  x_ite_Namespace .add ("MultiSampleFrameBuffer", "x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
117173
117374
  /* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
117174
117375
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
117175
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(616);
117376
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(353);
117176
117377
  /*******************************************************************************
117177
117378
  *
117178
117379
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118075,7 +118276,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
118075
118276
  x_ite_Namespace .add ("X3DSoundContext", "x_ite/Browser/Sound/X3DSoundContext", X3DSoundContext_default_);
118076
118277
  /* harmony default export */ const Sound_X3DSoundContext = (X3DSoundContext_default_);
118077
118278
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
118078
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(616);
118279
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(353);
118079
118280
  const KTXDecoder_default_ = class KTXDecoder
118080
118281
  {
118081
118282
  constructor (gl, externalKtxlib, scriptDir)
@@ -119628,7 +119829,7 @@ const Components_default_ = Components;
119628
119829
  x_ite_Namespace .add ("Components", "x_ite/Components", Components_default_);
119629
119830
  /* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
119630
119831
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
119631
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(616);
119832
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(353);
119632
119833
  /*******************************************************************************
119633
119834
  * MIT License
119634
119835
  *
@@ -120767,7 +120968,7 @@ const SupportedProfiles_default_ = SupportedProfiles;
120767
120968
  x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
120768
120969
  /* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
120769
120970
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
120770
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(616);
120971
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(353);
120771
120972
  /*******************************************************************************
120772
120973
  *
120773
120974
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -121848,7 +122049,7 @@ const X3DBrowser_default_ = X3DBrowser;
121848
122049
  x_ite_Namespace .add ("X3DBrowser", "x_ite/Browser/X3DBrowser", X3DBrowser_default_);
121849
122050
  /* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
121850
122051
  ;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
121851
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(616);
122052
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(353);
121852
122053
  /*******************************************************************************
121853
122054
  *
121854
122055
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -121980,8 +122181,8 @@ const X3DCanvasElement_default_ = X3DCanvasElement;
121980
122181
  x_ite_Namespace .add ("X3DCanvasElement", "x_ite/X3DCanvasElement", X3DCanvasElement_default_);
121981
122182
  /* harmony default export */ const x_ite_X3DCanvasElement = (X3DCanvasElement_default_);
121982
122183
  ;// CONCATENATED MODULE: ./src/lib/jquery.js
121983
- /* provided dependency */ var jquery_$ = __webpack_require__(616);
121984
- /* provided dependency */ var pako = __webpack_require__(182);
122184
+ /* provided dependency */ var jquery_$ = __webpack_require__(353);
122185
+ /* provided dependency */ var pako = __webpack_require__(238);
121985
122186
  Object .assign (jquery_$,
121986
122187
  {
121987
122188
  decodeText (input)
@@ -122058,14 +122259,14 @@ const jquery_default_ = jquery_$;
122058
122259
  x_ite_Namespace .add ("jquery", "lib/jquery", jquery_default_);
122059
122260
  /* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
122060
122261
  ;// CONCATENATED MODULE: ./src/lib/libtess.js
122061
- /* provided dependency */ var libtess_libtess = __webpack_require__(237);
122262
+ /* provided dependency */ var libtess_libtess = __webpack_require__(177);
122062
122263
  const libtess_default_ = libtess_libtess;
122063
122264
  ;
122064
122265
 
122065
122266
  x_ite_Namespace .add ("libtess", "lib/libtess", libtess_default_);
122066
122267
  /* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
122067
122268
  ;// CONCATENATED MODULE: ./src/x_ite/X3D.js
122068
- /* provided dependency */ var X3D_$ = __webpack_require__(616);
122269
+ /* provided dependency */ var X3D_$ = __webpack_require__(353);
122069
122270
  /*******************************************************************************
122070
122271
  *
122071
122272
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122459,7 +122660,7 @@ x_ite_Namespace .add ("shim", "shim", shim_default_);
122459
122660
 
122460
122661
  // Assign X3D to global namespace.
122461
122662
 
122462
- window [Symbol .for ("X_ITE.X3D-9.0.3")] = x_ite_X3D;
122663
+ window [Symbol .for ("X_ITE.X3D-9.1.1")] = x_ite_X3D;
122463
122664
 
122464
122665
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
122465
122666