x_ite 9.6.1 → 9.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +11 -6
  2. package/dist/assets/components/Annotation.js +13 -13
  3. package/dist/assets/components/Annotation.min.js +1 -1
  4. package/dist/assets/components/CADGeometry.js +14 -14
  5. package/dist/assets/components/CADGeometry.min.js +1 -1
  6. package/dist/assets/components/CubeMapTexturing.js +27 -27
  7. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  8. package/dist/assets/components/DIS.js +13 -13
  9. package/dist/assets/components/DIS.min.js +1 -1
  10. package/dist/assets/components/EventUtilities.js +9 -9
  11. package/dist/assets/components/EventUtilities.min.js +1 -1
  12. package/dist/assets/components/Geometry2D.js +18 -18
  13. package/dist/assets/components/Geometry2D.min.js +1 -1
  14. package/dist/assets/components/Geospatial.js +33 -33
  15. package/dist/assets/components/Geospatial.min.js +1 -1
  16. package/dist/assets/components/HAnim.js +23 -23
  17. package/dist/assets/components/HAnim.min.js +1 -1
  18. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  19. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  20. package/dist/assets/components/Layout.js +27 -27
  21. package/dist/assets/components/Layout.min.js +1 -1
  22. package/dist/assets/components/NURBS.js +23 -23
  23. package/dist/assets/components/NURBS.min.js +1 -1
  24. package/dist/assets/components/ParticleSystems.js +26 -26
  25. package/dist/assets/components/ParticleSystems.min.js +1 -1
  26. package/dist/assets/components/Picking.js +18 -18
  27. package/dist/assets/components/Picking.min.js +1 -1
  28. package/dist/assets/components/RigidBodyPhysics.js +17 -17
  29. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  30. package/dist/assets/components/Scripting.js +38 -38
  31. package/dist/assets/components/Scripting.min.js +1 -1
  32. package/dist/assets/components/Text.js +24 -24
  33. package/dist/assets/components/Text.min.js +1 -1
  34. package/dist/assets/components/TextureProjection.js +15 -15
  35. package/dist/assets/components/TextureProjection.min.js +1 -1
  36. package/dist/assets/components/Texturing3D.js +29 -29
  37. package/dist/assets/components/Texturing3D.min.js +1 -1
  38. package/dist/assets/components/VolumeRendering.js +19 -19
  39. package/dist/assets/components/VolumeRendering.min.js +1 -1
  40. package/dist/assets/components/X_ITE.js +14 -14
  41. package/dist/assets/components/X_ITE.min.js +1 -1
  42. package/dist/x_ite.css +1 -1
  43. package/dist/x_ite.d.ts +16 -7
  44. package/dist/x_ite.js +430 -246
  45. package/dist/x_ite.min.js +1 -1
  46. package/dist/x_ite.min.mjs +1 -1
  47. package/dist/x_ite.mjs +430 -246
  48. package/dist/x_ite.zip +0 -0
  49. package/package.json +2 -2
package/dist/x_ite.mjs CHANGED
@@ -1,9 +1,9 @@
1
- /* X_ITE v9.6.1 */var __webpack_modules__ = ({
1
+ /* X_ITE v9.6.3 */var __webpack_modules__ = ({
2
2
 
3
- /***/ 226:
3
+ /***/ 626:
4
4
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
5
5
 
6
- /* provided dependency */ var jQuery = __webpack_require__(250);
6
+ /* provided dependency */ var jQuery = __webpack_require__(418);
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
- /***/ 496:
202
+ /***/ 408:
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__(250)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
216
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(418)], __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
- /***/ 250:
427
+ /***/ 418:
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
- /***/ 979:
11151
+ /***/ 803:
11152
11152
  /***/ ((module) => {
11153
11153
 
11154
11154
  /**
@@ -15927,7 +15927,7 @@ if (true) {
15927
15927
 
15928
15928
  /***/ }),
15929
15929
 
15930
- /***/ 82:
15930
+ /***/ 674:
15931
15931
  /***/ (function(__unused_webpack_module, exports) {
15932
15932
 
15933
15933
 
@@ -19172,7 +19172,7 @@ if (true) {
19172
19172
 
19173
19173
  /***/ }),
19174
19174
 
19175
- /***/ 389:
19175
+ /***/ 517:
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.6.1")];
20302
+ const X3D = window [Symbol .for ("X_ITE.X3D-9.6.3")];
20303
20303
 
20304
20304
  if (X3D)
20305
20305
  X3D [name] = module;
@@ -34218,7 +34218,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34218
34218
  x_ite_Namespace .add ("X3DBaseNode", "x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
34219
34219
  /* harmony default export */ const Base_X3DBaseNode = (X3DBaseNode_default_);
34220
34220
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
34221
- /* provided dependency */ var $ = __webpack_require__(250);
34221
+ /* provided dependency */ var $ = __webpack_require__(418);
34222
34222
  /*******************************************************************************
34223
34223
  *
34224
34224
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34355,7 +34355,7 @@ x_ite_Namespace .add ("Legacy", "x_ite/Browser/Legacy", Legacy_default_);
34355
34355
  *
34356
34356
  ******************************************************************************/
34357
34357
 
34358
- const BROWSER_VERSION_default_ = "9.6.1";
34358
+ const BROWSER_VERSION_default_ = "9.6.3";
34359
34359
  ;
34360
34360
 
34361
34361
  x_ite_Namespace .add ("BROWSER_VERSION", "x_ite/BROWSER_VERSION", BROWSER_VERSION_default_);
@@ -39001,7 +39001,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
39001
39001
  x_ite_Namespace .add ("X3DProtoDeclaration", "x_ite/Prototype/X3DProtoDeclaration", X3DProtoDeclaration_default_);
39002
39002
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (X3DProtoDeclaration_default_);
39003
39003
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
39004
- /* provided dependency */ var X3DParser_$ = __webpack_require__(250);
39004
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(418);
39005
39005
  /*******************************************************************************
39006
39006
  *
39007
39007
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39088,16 +39088,12 @@ Object .assign (X3DParser .prototype,
39088
39088
  {
39089
39089
  return this .getExecutionContext () .getOuterNode () instanceof Prototype_X3DProtoDeclaration;
39090
39090
  },
39091
+ /**
39092
+ * @deprecated Directly use `browser.loadComponents`.
39093
+ */
39091
39094
  loadComponents ()
39092
39095
  {
39093
- const
39094
- browser = this .getBrowser (),
39095
- scene = this .getScene ();
39096
-
39097
- return Promise .all ([
39098
- browser .loadComponents (scene .getProfile () || browser .getProfile ("Full")),
39099
- browser .loadComponents (scene .getComponents ()),
39100
- ]);
39096
+ return this .getBrowser () .loadComponents (this .getScene ());
39101
39097
  },
39102
39098
  setUnits (units)
39103
39099
  {
@@ -39263,7 +39259,7 @@ const Expressions_default_ = Expressions;
39263
39259
  x_ite_Namespace .add ("Expressions", "x_ite/Parser/Expressions", Expressions_default_);
39264
39260
  /* harmony default export */ const Parser_Expressions = (Expressions_default_);
39265
39261
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
39266
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(250);
39262
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(418);
39267
39263
  /*******************************************************************************
39268
39264
  *
39269
39265
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39627,7 +39623,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
39627
39623
 
39628
39624
  if (this .resolve)
39629
39625
  {
39630
- this .loadComponents () .then (() =>
39626
+ browser .loadComponents (scene) .then (() =>
39631
39627
  {
39632
39628
  try
39633
39629
  {
@@ -41963,7 +41959,7 @@ const VRMLParser_default_ = VRMLParser;
41963
41959
  x_ite_Namespace .add ("VRMLParser", "x_ite/Parser/VRMLParser", VRMLParser_default_);
41964
41960
  /* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
41965
41961
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
41966
- /* provided dependency */ var XMLParser_$ = __webpack_require__(250);
41962
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(418);
41967
41963
  /*******************************************************************************
41968
41964
  *
41969
41965
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -42081,18 +42077,26 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42081
42077
  },
42082
42078
  parseIntoScene (resolve, reject)
42083
42079
  {
42080
+ const
42081
+ browser = this .getBrowser (),
42082
+ scene = this .getScene ();
42083
+
42084
42084
  this .resolve = resolve;
42085
42085
  this .reject = reject;
42086
42086
 
42087
- this .getScene () .setEncoding ("XML");
42088
- this .getScene () .setProfile (this .getBrowser () .getProfile ("Full"));
42087
+ scene .setEncoding ("XML");
42088
+ scene .setProfile (browser .getProfile ("Full"));
42089
42089
 
42090
42090
  this .xmlElement (this .input);
42091
42091
  },
42092
42092
  xmlElement (xmlElement)
42093
42093
  {
42094
+ const
42095
+ browser = this .getBrowser (),
42096
+ scene = this .getScene ();
42097
+
42094
42098
  if (xmlElement === null)
42095
- return this .resolve ?.(this .getScene ());
42099
+ return this .resolve ?.(scene);
42096
42100
 
42097
42101
  switch (xmlElement .nodeName)
42098
42102
  {
@@ -42109,10 +42113,10 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42109
42113
  {
42110
42114
  if (this .resolve)
42111
42115
  {
42112
- this .loadComponents () .then (() =>
42116
+ browser .loadComponents (scene) .then (() =>
42113
42117
  {
42114
42118
  this .childrenElements (xmlElement);
42115
- this .resolve (this .getScene ());
42119
+ this .resolve (scene);
42116
42120
  })
42117
42121
  .catch (this .reject);
42118
42122
  }
@@ -42134,10 +42138,10 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42134
42138
  {
42135
42139
  if (this .resolve)
42136
42140
  {
42137
- this .loadComponents () .then (() =>
42141
+ browser .loadComponents (scene) .then (() =>
42138
42142
  {
42139
42143
  this .sceneElement (xmlElement);
42140
- this .resolve (this .getScene ());
42144
+ this .resolve (scene);
42141
42145
  })
42142
42146
  .catch (this .reject);
42143
42147
  }
@@ -42152,10 +42156,10 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42152
42156
  {
42153
42157
  if (this .resolve)
42154
42158
  {
42155
- this .loadComponents () .then (() =>
42159
+ browser .loadComponents (scene) .then (() =>
42156
42160
  {
42157
42161
  this .childrenElements (xmlElement);
42158
- this .resolve (this .getScene ());
42162
+ this .resolve (scene);
42159
42163
  })
42160
42164
  .catch (this .reject);
42161
42165
  }
@@ -42170,17 +42174,21 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42170
42174
  },
42171
42175
  x3dElement (xmlElement)
42172
42176
  {
42177
+ const
42178
+ browser = this .getBrowser (),
42179
+ scene = this .getScene ();
42180
+
42173
42181
  try
42174
42182
  {
42175
42183
  // Profile
42176
42184
 
42177
42185
  const
42178
42186
  profileNameId = xmlElement .getAttribute ("profile"),
42179
- profile = this .getBrowser () .getProfile (profileNameId || "Full");
42187
+ profile = browser .getProfile (profileNameId || "Full");
42180
42188
 
42181
42189
  XMLParser_$.data (this .scene, "X3D", xmlElement);
42182
42190
 
42183
- this .getScene () .setProfile (profile);
42191
+ scene .setProfile (profile);
42184
42192
  }
42185
42193
  catch (error)
42186
42194
  {
@@ -42192,7 +42200,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42192
42200
  const specificationVersion = xmlElement .getAttribute ("version");
42193
42201
 
42194
42202
  if (specificationVersion)
42195
- this .getScene () .setSpecificationVersion (specificationVersion);
42203
+ scene .setSpecificationVersion (specificationVersion);
42196
42204
 
42197
42205
  // Process child nodes
42198
42206
 
@@ -42204,12 +42212,12 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42204
42212
 
42205
42213
  if (this .resolve)
42206
42214
  {
42207
- this .loadComponents () .then (() =>
42215
+ browser .loadComponents (scene) .then (() =>
42208
42216
  {
42209
42217
  for (const childNode of xmlElement .childNodes)
42210
42218
  this .x3dElementChildScene (childNode)
42211
42219
 
42212
- this .resolve (this .getScene ());
42220
+ this .resolve (scene);
42213
42221
  })
42214
42222
  .catch (this .reject);
42215
42223
  }
@@ -43995,7 +44003,7 @@ const URLs_default_ = URLs;
43995
44003
  x_ite_Namespace .add ("URLs", "x_ite/Browser/Networking/URLs", URLs_default_);
43996
44004
  /* harmony default export */ const Networking_URLs = (URLs_default_);
43997
44005
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
43998
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(250);
44006
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(418);
43999
44007
  /*******************************************************************************
44000
44008
  *
44001
44009
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -44165,7 +44173,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
44165
44173
  .then (resolve)
44166
44174
  .catch (reject);
44167
44175
  },
44168
- rootObject: async function (glTF)
44176
+ async rootObject (glTF)
44169
44177
  {
44170
44178
  if (!(glTF instanceof Object))
44171
44179
  return;
@@ -44189,7 +44197,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
44189
44197
  this .extensionsArray (glTF .extensionsRequired, this .extensions);
44190
44198
  this .extensionsObject (glTF .extensions);
44191
44199
 
44192
- await this .loadComponents ();
44200
+ await browser .loadComponents (scene);
44193
44201
  await this .buffersArray (glTF .buffers);
44194
44202
 
44195
44203
  if (this .extensions .has ("KHR_draco_mesh_compression"))
@@ -44505,14 +44513,14 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
44505
44513
 
44506
44514
  return light .node = lightNode;
44507
44515
  },
44508
- buffersArray: async function (buffers)
44516
+ async buffersArray (buffers)
44509
44517
  {
44510
44518
  if (!(buffers instanceof Array))
44511
44519
  return;
44512
44520
 
44513
44521
  this .buffers = await Promise .all (buffers .map ((buffer, i) => this .bufferObject (buffer, i)));
44514
44522
  },
44515
- bufferObject: async function (buffer, i)
44523
+ async bufferObject (buffer, i)
44516
44524
  {
44517
44525
  if (!(buffer instanceof Object))
44518
44526
  return;
@@ -44794,14 +44802,14 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
44794
44802
  });
44795
44803
  };
44796
44804
  })(),
44797
- imagesArray: async function (images)
44805
+ async imagesArray (images)
44798
44806
  {
44799
44807
  if (!(images instanceof Array))
44800
44808
  return;
44801
44809
 
44802
44810
  this .images = await Promise .all (images .map (image => this .imageObject (image)));
44803
44811
  },
44804
- imageObject: async function (image)
44812
+ async imageObject (image)
44805
44813
  {
44806
44814
  if (!(image instanceof Object))
44807
44815
  return;
@@ -45464,7 +45472,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
45464
45472
  draco .destroy (buffer);
45465
45473
  }
45466
45474
  },
45467
- createDraco: async function ()
45475
+ async createDraco ()
45468
45476
  {
45469
45477
  if (this .constructor .draco)
45470
45478
  {
@@ -47297,7 +47305,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
47297
47305
  x_ite_Namespace .add ("GLTF2Parser", "x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
47298
47306
  /* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
47299
47307
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
47300
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(250);
47308
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(418);
47301
47309
  /*******************************************************************************
47302
47310
  *
47303
47311
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -47392,7 +47400,7 @@ Object .assign (Object .setPrototypeOf (GLB2Parser .prototype, Parser_X3DParser
47392
47400
  .then (resolve)
47393
47401
  .catch (reject);
47394
47402
  },
47395
- glb: async function ()
47403
+ async glb ()
47396
47404
  {
47397
47405
  this .chunks ();
47398
47406
 
@@ -47449,7 +47457,7 @@ const GLB2Parser_default_ = GLB2Parser;
47449
47457
  x_ite_Namespace .add ("GLB2Parser", "x_ite/Parser/GLB2Parser", GLB2Parser_default_);
47450
47458
  /* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
47451
47459
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
47452
- /* provided dependency */ var OBJParser_$ = __webpack_require__(250);
47460
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(418);
47453
47461
  /*******************************************************************************
47454
47462
  *
47455
47463
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -47604,7 +47612,7 @@ Object .assign (Object .setPrototypeOf (OBJParser .prototype, Parser_X3DParser .
47604
47612
  .then (resolve)
47605
47613
  .catch (reject);
47606
47614
  },
47607
- obj: async function ()
47615
+ async obj ()
47608
47616
  {
47609
47617
  // Set profile and components.
47610
47618
 
@@ -47615,7 +47623,7 @@ Object .assign (Object .setPrototypeOf (OBJParser .prototype, Parser_X3DParser .
47615
47623
  scene .setEncoding ("OBJ");
47616
47624
  scene .setProfile (browser .getProfile ("Interchange"));
47617
47625
 
47618
- await this .loadComponents ();
47626
+ await browser .loadComponents (scene);
47619
47627
 
47620
47628
  // Init nodes.
47621
47629
 
@@ -47660,12 +47668,12 @@ Object .assign (Object .setPrototypeOf (OBJParser .prototype, Parser_X3DParser .
47660
47668
  {
47661
47669
  OBJParser_Grammar .whitespacesNoLineTerminator .parse (this);
47662
47670
  },
47663
- statements: async function ()
47671
+ async statements ()
47664
47672
  {
47665
47673
  while (await this .statement ())
47666
47674
  ;
47667
47675
  },
47668
- statement: async function ()
47676
+ async statement ()
47669
47677
  {
47670
47678
  if (await this .mtllibs ())
47671
47679
  return true;
@@ -47701,7 +47709,7 @@ Object .assign (Object .setPrototypeOf (OBJParser .prototype, Parser_X3DParser .
47701
47709
 
47702
47710
  return false;
47703
47711
  },
47704
- mtllibs: async function ()
47712
+ async mtllibs ()
47705
47713
  {
47706
47714
  this .comments ();
47707
47715
 
@@ -47721,7 +47729,7 @@ Object .assign (Object .setPrototypeOf (OBJParser .prototype, Parser_X3DParser .
47721
47729
 
47722
47730
  return false;
47723
47731
  },
47724
- mtllib: async function (path)
47732
+ async mtllib (path)
47725
47733
  {
47726
47734
  try
47727
47735
  {
@@ -48671,7 +48679,7 @@ Object .assign (Object .setPrototypeOf (STLAParser .prototype, Parser_X3DParser
48671
48679
  .then (resolve)
48672
48680
  .catch (reject);
48673
48681
  },
48674
- stl: async function ()
48682
+ async stl ()
48675
48683
  {
48676
48684
  // Set profile and components.
48677
48685
 
@@ -48682,7 +48690,7 @@ Object .assign (Object .setPrototypeOf (STLAParser .prototype, Parser_X3DParser
48682
48690
  scene .setEncoding ("STL");
48683
48691
  scene .setProfile (browser .getProfile ("Interchange"));
48684
48692
 
48685
- await this .loadComponents ();
48693
+ await browser .loadComponents (scene);
48686
48694
 
48687
48695
  // Create nodes.
48688
48696
 
@@ -49021,7 +49029,7 @@ Object .assign (Object .setPrototypeOf (STLBParser .prototype, Parser_X3DParser
49021
49029
  .then (resolve)
49022
49030
  .catch (reject);
49023
49031
  },
49024
- stl: async function ()
49032
+ async stl ()
49025
49033
  {
49026
49034
  // Set profile and components.
49027
49035
 
@@ -49032,7 +49040,7 @@ Object .assign (Object .setPrototypeOf (STLBParser .prototype, Parser_X3DParser
49032
49040
  scene .setEncoding ("STL");
49033
49041
  scene .setProfile (browser .getProfile ("Interchange"));
49034
49042
 
49035
- await this .loadComponents ();
49043
+ await browser .loadComponents (scene);
49036
49044
 
49037
49045
  // Create nodes.
49038
49046
 
@@ -49217,7 +49225,7 @@ Object .assign (Object .setPrototypeOf (PLYAParser .prototype, Parser_X3DParser
49217
49225
  .then (resolve)
49218
49226
  .catch (reject);
49219
49227
  },
49220
- ply: async function ()
49228
+ async ply ()
49221
49229
  {
49222
49230
  // Set profile and components.
49223
49231
 
@@ -49228,7 +49236,7 @@ Object .assign (Object .setPrototypeOf (PLYAParser .prototype, Parser_X3DParser
49228
49236
  scene .setEncoding ("PLY");
49229
49237
  scene .setProfile (browser .getProfile ("Interchange"));
49230
49238
 
49231
- await this .loadComponents ();
49239
+ await browser .loadComponents (scene);
49232
49240
  await this .processElements (this .header ([ ]))
49233
49241
 
49234
49242
  // Create nodes.
@@ -49503,6 +49511,7 @@ Object .assign (Object .setPrototypeOf (PLYAParser .prototype, Parser_X3DParser
49503
49511
  async parseVertices ({ count, properties })
49504
49512
  {
49505
49513
  const
49514
+ browser = this .getBrowser (),
49506
49515
  scene = this .getScene (),
49507
49516
  colors = [ ],
49508
49517
  texCoord = scene .createNode ("TextureCoordinate"),
@@ -49563,7 +49572,7 @@ Object .assign (Object .setPrototypeOf (PLYAParser .prototype, Parser_X3DParser
49563
49572
  {
49564
49573
  scene .addComponent (this .getBrowser () .getComponent ("Shaders", 1));
49565
49574
 
49566
- await this .loadComponents ();
49575
+ await browser .loadComponents (scene);
49567
49576
 
49568
49577
  for (const [name, value] of attributes)
49569
49578
  {
@@ -50807,8 +50816,8 @@ const MatrixStack_default_ = MatrixStack;
50807
50816
  x_ite_Namespace .add ("MatrixStack", "standard/Math/Utility/MatrixStack", MatrixStack_default_);
50808
50817
  /* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
50809
50818
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
50810
- /* provided dependency */ var SVGParser_$ = __webpack_require__(250);
50811
- /* provided dependency */ var libtess = __webpack_require__(979);
50819
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(418);
50820
+ /* provided dependency */ var libtess = __webpack_require__(803);
50812
50821
  /*******************************************************************************
50813
50822
  *
50814
50823
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -51048,7 +51057,7 @@ Object .assign (Object .setPrototypeOf (SVGParser .prototype, Parser_X3DParser .
51048
51057
  .then (resolve)
51049
51058
  .catch (reject);
51050
51059
  },
51051
- xmlElement: async function (xmlElement)
51060
+ async xmlElement (xmlElement)
51052
51061
  {
51053
51062
  switch (xmlElement .nodeName)
51054
51063
  {
@@ -51070,7 +51079,7 @@ Object .assign (Object .setPrototypeOf (SVGParser .prototype, Parser_X3DParser .
51070
51079
 
51071
51080
  return this .getScene ();
51072
51081
  },
51073
- svgElement: async function (xmlElement)
51082
+ async svgElement (xmlElement)
51074
51083
  {
51075
51084
  const
51076
51085
  browser = this .getBrowser (),
@@ -51080,7 +51089,7 @@ Object .assign (Object .setPrototypeOf (SVGParser .prototype, Parser_X3DParser .
51080
51089
  scene .setProfile (browser .getProfile ("Interchange"));
51081
51090
  scene .addComponent (browser .getComponent ("Geometry2D", 2));
51082
51091
 
51083
- await this .loadComponents ();
51092
+ await browser .loadComponents (scene);
51084
51093
 
51085
51094
  // Init nodes.
51086
51095
 
@@ -53576,7 +53585,7 @@ const SVGParser_default_ = SVGParser;
53576
53585
  x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_);
53577
53586
  /* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
53578
53587
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
53579
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(250);
53588
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(418);
53580
53589
  /*******************************************************************************
53581
53590
  *
53582
53591
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53637,18 +53646,47 @@ x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_)
53637
53646
 
53638
53647
 
53639
53648
 
53640
- function GoldenGate (scene)
53649
+ class GoldenGate extends Parser_X3DParser
53641
53650
  {
53642
- Parser_X3DParser .call (this, scene);
53651
+ #inputs = new Map ();
53643
53652
 
53644
- this .inputs = new Map ();
53645
- }
53653
+ static #parsers = [
53654
+ Parser_SVGParser,
53655
+ Parser_XMLParser,
53656
+ Parser_GLTF2Parser,
53657
+ Parser_GLB2Parser,
53658
+ Parser_JSONParser,
53659
+ Parser_VRMLParser,
53660
+ Parser_OBJParser,
53661
+ Parser_STLAParser,
53662
+ Parser_STLBParser,
53663
+ Parser_PLYAParser,
53664
+ Parser_PLYBParser,
53665
+ ];
53666
+
53667
+ static addParsers (... args)
53668
+ {
53669
+ this .#parsers .push (... args);
53670
+ }
53671
+
53672
+ static removeParsers (... args)
53673
+ {
53674
+ this .#parsers = this .#parsers .filter (parser => !args .includes (parser));
53675
+ }
53676
+
53677
+ static getParsers ()
53678
+ {
53679
+ return this .#parsers .slice ();
53680
+ }
53681
+
53682
+ /**
53683
+ * @deprecated Use `GoldenGate.add/remove/getParsers`.
53684
+ */
53685
+ static get Parser () { return this .#parsers; }
53646
53686
 
53647
- Object .assign (Object .setPrototypeOf (GoldenGate .prototype, Parser_X3DParser .prototype),
53648
- {
53649
53687
  parseIntoScene (x3dSyntax, resolve, reject)
53650
53688
  {
53651
- for (const Parser of GoldenGate .Parser)
53689
+ for (const Parser of GoldenGate .#parsers)
53652
53690
  {
53653
53691
  try
53654
53692
  {
@@ -53683,7 +53721,8 @@ Object .assign (Object .setPrototypeOf (GoldenGate .prototype, Parser_X3DParser
53683
53721
  throw new Error ("Couldn't parse X3D. No suitable file handler found for 'data:' URL.");
53684
53722
  else
53685
53723
  throw new Error (`Couldn't parse X3D. No suitable file handler found for '${this .getScene () .worldURL}'.`);
53686
- },
53724
+ }
53725
+
53687
53726
  getInput (encoding, x3dSyntax)
53688
53727
  {
53689
53728
  if (Array .isArray (encoding))
@@ -53692,16 +53731,17 @@ Object .assign (Object .setPrototypeOf (GoldenGate .prototype, Parser_X3DParser
53692
53731
  }
53693
53732
  else
53694
53733
  {
53695
- if (this .inputs .has (encoding))
53696
- return this .inputs .get (encoding);
53734
+ if (this .#inputs .has (encoding))
53735
+ return this .#inputs .get (encoding);
53697
53736
 
53698
53737
  const input = this .createInput (encoding, x3dSyntax);
53699
53738
 
53700
- this .inputs .set (encoding, input);
53739
+ this .#inputs .set (encoding, input);
53701
53740
 
53702
53741
  return input;
53703
53742
  }
53704
- },
53743
+ }
53744
+
53705
53745
  createInput (encoding, x3dSyntax)
53706
53746
  {
53707
53747
  try
@@ -53722,22 +53762,8 @@ Object .assign (Object .setPrototypeOf (GoldenGate .prototype, Parser_X3DParser
53722
53762
  {
53723
53763
  return undefined;
53724
53764
  }
53725
- },
53726
- });
53727
-
53728
- GoldenGate .Parser = [
53729
- Parser_SVGParser,
53730
- Parser_XMLParser,
53731
- Parser_GLTF2Parser,
53732
- Parser_GLB2Parser,
53733
- Parser_JSONParser,
53734
- Parser_VRMLParser,
53735
- Parser_OBJParser,
53736
- Parser_STLAParser,
53737
- Parser_STLBParser,
53738
- Parser_PLYAParser,
53739
- Parser_PLYBParser,
53740
- ];
53765
+ }
53766
+ }
53741
53767
 
53742
53768
  const GoldenGate_default_ = GoldenGate;
53743
53769
  ;
@@ -53926,7 +53952,7 @@ const Plane3_default_ = Plane3;
53926
53952
  x_ite_Namespace .add ("Plane3", "standard/Math/Geometry/Plane3", Plane3_default_);
53927
53953
  /* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
53928
53954
  ;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
53929
- /* provided dependency */ var Triangle3_libtess = __webpack_require__(979);
53955
+ /* provided dependency */ var Triangle3_libtess = __webpack_require__(803);
53930
53956
  /*******************************************************************************
53931
53957
  *
53932
53958
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -62455,7 +62481,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
62455
62481
  x_ite_Namespace .add ("X3DTexture2DNode", "x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
62456
62482
  /* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
62457
62483
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
62458
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(250);
62484
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(418);
62459
62485
  /*******************************************************************************
62460
62486
  *
62461
62487
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -62604,7 +62630,7 @@ Object .assign (Object .setPrototypeOf (ImageTexture .prototype, Texturing_X3DTe
62604
62630
  if (DEVELOPMENT)
62605
62631
  {
62606
62632
  if (this .URL .protocol !== "data:")
62607
- console .info (`Done loading image texture '${decodeURI (this .URL .href)}'`);
62633
+ console .info (`Done loading image texture '${decodeURI (this .URL .href)}'.`);
62608
62634
  }
62609
62635
 
62610
62636
  try
@@ -62628,7 +62654,7 @@ Object .assign (Object .setPrototypeOf (ImageTexture .prototype, Texturing_X3DTe
62628
62654
  if (DEVELOPMENT)
62629
62655
  {
62630
62656
  if (this .URL .protocol !== "data:")
62631
- console .info (`Done loading image texture '${decodeURI (this .URL .href)}'`);
62657
+ console .info (`Done loading image texture '${decodeURI (this .URL .href)}'.`);
62632
62658
  }
62633
62659
 
62634
62660
  try
@@ -62646,9 +62672,7 @@ Object .assign (Object .setPrototypeOf (ImageTexture .prototype, Texturing_X3DTe
62646
62672
  canvas = document .createElement ("canvas"),
62647
62673
  cx = canvas .getContext ("2d", { willReadFrequently: true });
62648
62674
 
62649
- let
62650
- width = image .width,
62651
- height = image .height;
62675
+ let { width, height } = image;
62652
62676
 
62653
62677
  if (!(Math_Algorithm .isPowerOfTwo (width) && Math_Algorithm .isPowerOfTwo (height)))
62654
62678
  {
@@ -66039,7 +66063,7 @@ const X3DWorld_default_ = X3DWorld;
66039
66063
  x_ite_Namespace .add ("X3DWorld", "x_ite/Execution/X3DWorld", X3DWorld_default_);
66040
66064
  /* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
66041
66065
  ;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
66042
- /* provided dependency */ var FileLoader_$ = __webpack_require__(250);
66066
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(418);
66043
66067
  /*******************************************************************************
66044
66068
  *
66045
66069
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66206,7 +66230,7 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
66206
66230
  if (DEVELOPMENT)
66207
66231
  {
66208
66232
  if (this .URL .protocol !== "data:")
66209
- console .info (`Done loading scene '${decodeURI (this .URL .href)}'`);
66233
+ console .info (`Done loading scene '${decodeURI (this .URL .href)}'.`);
66210
66234
  }
66211
66235
  },
66212
66236
  createX3DFromURL (url, parameter, callback, bindViewpoint, foreign)
@@ -66235,7 +66259,7 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
66235
66259
  this .loadDocumentAsync (this .url .shift ())
66236
66260
  .catch (this .loadDocumentError .bind (this));
66237
66261
  },
66238
- loadDocumentAsync: async function (url)
66262
+ async loadDocumentAsync (url)
66239
66263
  {
66240
66264
  if (url .length === 0)
66241
66265
  {
@@ -66973,7 +66997,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
66973
66997
  x_ite_Namespace .add ("ProtoDeclarationArray", "x_ite/Prototype/ProtoDeclarationArray", ProtoDeclarationArray_default_);
66974
66998
  /* harmony default export */ const Prototype_ProtoDeclarationArray = (ProtoDeclarationArray_default_);
66975
66999
  ;// CONCATENATED MODULE: ./src/x_ite/Routing/X3DRoute.js
66976
- /* provided dependency */ var X3DRoute_$ = __webpack_require__(250);
67000
+ /* provided dependency */ var X3DRoute_$ = __webpack_require__(418);
66977
67001
  /*******************************************************************************
66978
67002
  *
66979
67003
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -90124,7 +90148,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
90124
90148
  x_ite_Namespace .add ("X3DShaderNode", "x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
90125
90149
  /* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
90126
90150
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
90127
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(250);
90151
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(418);
90128
90152
  /*******************************************************************************
90129
90153
  *
90130
90154
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -93651,13 +93675,11 @@ varying float depth;
93651
93675
  #endif
93652
93676
  #pragma X3D include "PointSize.glsl"
93653
93677
  void vertex_main(){vec4 position=x3d_ModelViewMatrix*x3d_Vertex;vertex=position.xyz;
93654
- #if defined(X3D_GEOMETRY_0D)
93655
- #if defined(X3D_STYLE_PROPERTIES)
93678
+ #if defined(X3D_GEOMETRY_0D)&&defined(X3D_STYLE_PROPERTIES)
93656
93679
  gl_PointSize=pointSize=getPointSize(vertex);
93657
93680
  #else
93658
93681
  gl_PointSize=1.0;
93659
93682
  #endif
93660
- #endif
93661
93683
  #if defined(X3D_FOG)&&defined(X3D_FOG_COORDS)
93662
93684
  fogDepth=x3d_FogDepth;
93663
93685
  #endif
@@ -94225,13 +94247,11 @@ vec4 x3d_TransformedVertex=getInstanceVertex(getSkinVertex(x3d_Vertex,x3d_Normal
94225
94247
  vec4 x3d_TransformedVertex=getInstanceVertex(getSkinVertex(x3d_Vertex,vec3(0.0)));
94226
94248
  #endif
94227
94249
  vec4 position=x3d_ModelViewMatrix*x3d_TransformedVertex;vertex=position.xyz;
94228
- #if defined(X3D_GEOMETRY_0D)
94229
- #if defined(X3D_STYLE_PROPERTIES)
94250
+ #if defined(X3D_GEOMETRY_0D)&&defined(X3D_STYLE_PROPERTIES)
94230
94251
  gl_PointSize=pointSize=getPointSize(vertex);
94231
94252
  #else
94232
94253
  gl_PointSize=1.0;
94233
94254
  #endif
94234
- #endif
94235
94255
  #if defined(X3D_GEOMETRY_1D)&&defined(X3D_STYLE_PROPERTIES)
94236
94256
  lengthSoFar=x3d_LineStipple.z;startPoint=x3d_LineStipple.xy;midPoint=x3d_LineStipple.xy;
94237
94257
  #endif
@@ -94304,12 +94324,10 @@ x_ite_Namespace .add ("Depth1.fs", "assets/shaders/webgl1/Depth1.fs", Depth1_fs_
94304
94324
  const Depth1_vs_default_ = /* glsl */ `precision highp float;precision highp int;uniform mat4 x3d_ProjectionMatrix;uniform mat4 x3d_ModelViewMatrix;attribute vec4 x3d_Vertex;varying vec3 vertex;
94305
94325
  #pragma X3D include "common/PointSize.glsl"
94306
94326
  void main(){vec4 position=x3d_ModelViewMatrix*x3d_Vertex;vertex=position.xyz;
94307
- #if defined(X3D_GEOMETRY_0D)
94308
- #if defined(X3D_STYLE_PROPERTIES)
94309
- gl_PointSize=max(pointSize=getPointSize(vertex),2.0);
94327
+ #if defined(X3D_GEOMETRY_0D)&&defined(X3D_STYLE_PROPERTIES)
94328
+ gl_PointSize=pointSize=getPointSize(vertex);
94310
94329
  #else
94311
- gl_PointSize=2.0;
94312
- #endif
94330
+ gl_PointSize=1.0;
94313
94331
  #endif
94314
94332
  gl_Position=x3d_ProjectionMatrix*position;}`
94315
94333
  ;
@@ -94618,13 +94636,11 @@ varying vec4 texCoord0;
94618
94636
  #endif
94619
94637
  #pragma X3D include "common/PointSize.glsl"
94620
94638
  void main(){
94621
- #if defined(X3D_GEOMETRY_0D)
94622
- #if defined(X3D_STYLE_PROPERTIES)
94623
- gl_PointSize=max(pointSize=getPointSize(vertex),2.0);
94639
+ #if defined(X3D_GEOMETRY_0D)&&defined(X3D_STYLE_PROPERTIES)
94640
+ gl_PointSize=pointSize=max(getPointSize(vertex),2.0);
94624
94641
  #else
94625
94642
  gl_PointSize=2.0;
94626
94643
  #endif
94627
- #endif
94628
94644
  vec4 position=x3d_ModelViewMatrix*x3d_Vertex;vertex=position.xyz;normal=x3d_Normal;
94629
94645
  #if!defined(X3D_GEOMETRY_0D)&&!defined(X3D_GEOMETRY_1D)
94630
94646
  texCoord0=x3d_TexCoord0;
@@ -94717,12 +94733,10 @@ precision highp float;precision highp int;precision highp sampler2D;uniform mat4
94717
94733
  #pragma X3D include "common/Instancing.glsl"
94718
94734
  #pragma X3D include "common/PointSize.glsl"
94719
94735
  void main(){vec4 x3d_TransformedVertex=getInstanceVertex(getSkinVertex(x3d_Vertex,vec3(0.0)));vec4 position=x3d_ModelViewMatrix*x3d_TransformedVertex;vertex=position.xyz;
94720
- #if defined(X3D_GEOMETRY_0D)
94721
- #if defined(X3D_STYLE_PROPERTIES)
94722
- gl_PointSize=max(pointSize=getPointSize(vertex),2.0);
94736
+ #if defined(X3D_GEOMETRY_0D)&&defined(X3D_STYLE_PROPERTIES)
94737
+ gl_PointSize=pointSize=getPointSize(vertex);
94723
94738
  #else
94724
- gl_PointSize=2.0;
94725
- #endif
94739
+ gl_PointSize=1.0;
94726
94740
  #endif
94727
94741
  gl_Position=x3d_ProjectionMatrix*position;}`
94728
94742
  ;
@@ -95095,13 +95109,11 @@ void main(){
95095
95109
  lengthSoFar=x3d_LineStipple.z;startPoint=x3d_LineStipple.xy;midPoint=x3d_LineStipple.xy;
95096
95110
  #endif
95097
95111
  vec4 x3d_TransformedVertex=getInstanceVertex(getSkinVertex(x3d_Vertex,x3d_Normal));vec4 position=x3d_ModelViewMatrix*x3d_TransformedVertex;vertex=position.xyz;normal=getInstanceNormal(getSkinNormal(x3d_Normal));
95098
- #if defined(X3D_GEOMETRY_0D)
95099
- #if defined(X3D_STYLE_PROPERTIES)
95100
- gl_PointSize=max(pointSize=getPointSize(vertex),2.0);
95112
+ #if defined(X3D_GEOMETRY_0D)&&defined(X3D_STYLE_PROPERTIES)
95113
+ gl_PointSize=pointSize=max(getPointSize(vertex),2.0);
95101
95114
  #else
95102
95115
  gl_PointSize=2.0;
95103
95116
  #endif
95104
- #endif
95105
95117
  #if!defined(X3D_GEOMETRY_0D)&&!defined(X3D_GEOMETRY_1D)
95106
95118
  texCoord0=x3d_TexCoord0;
95107
95119
  #endif
@@ -95832,7 +95844,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
95832
95844
  x_ite_Namespace .add ("ShaderCompiler", "x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
95833
95845
  /* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
95834
95846
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
95835
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(250);
95847
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(418);
95836
95848
  /*******************************************************************************
95837
95849
  *
95838
95850
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -96489,7 +96501,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
96489
96501
  x_ite_Namespace .add ("X3DAppearanceNode", "x_ite/Components/Shape/X3DAppearanceNode", X3DAppearanceNode_default_);
96490
96502
  /* harmony default export */ const Shape_X3DAppearanceNode = (X3DAppearanceNode_default_);
96491
96503
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
96492
- /* provided dependency */ var Appearance_$ = __webpack_require__(250);
96504
+ /* provided dependency */ var Appearance_$ = __webpack_require__(418);
96493
96505
  /*******************************************************************************
96494
96506
  *
96495
96507
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -100973,7 +100985,7 @@ Object .assign (Object .setPrototypeOf (AudioClip .prototype, Sound_X3DSoundSour
100973
100985
  if (DEVELOPMENT)
100974
100986
  {
100975
100987
  if (URL .protocol !== "data:")
100976
- console .info (`Done loading audio '${decodeURI (URL .href)}'`);
100988
+ console .info (`Done loading audio '${decodeURI (URL .href)}'.`);
100977
100989
  }
100978
100990
  }
100979
100991
  });
@@ -101785,7 +101797,7 @@ Object .assign (Object .setPrototypeOf (BufferAudioSource .prototype, Sound_X3DS
101785
101797
  if (DEVELOPMENT)
101786
101798
  {
101787
101799
  if (URL .protocol !== "data:")
101788
- console .info (`Done loading audio '${decodeURI (URL .href)}'`);
101800
+ console .info (`Done loading audio '${decodeURI (URL .href)}'.`);
101789
101801
  }
101790
101802
  }
101791
101803
  });
@@ -105441,8 +105453,8 @@ const GifMedia_default_ = GifMedia;
105441
105453
  x_ite_Namespace .add ("GifMedia", "x_ite/Browser/Texturing/GifMedia", GifMedia_default_);
105442
105454
  /* harmony default export */ const Texturing_GifMedia = (GifMedia_default_);
105443
105455
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
105444
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(250);
105445
- /* provided dependency */ var SuperGif = __webpack_require__(389);
105456
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(418);
105457
+ /* provided dependency */ var SuperGif = __webpack_require__(517);
105446
105458
  /*******************************************************************************
105447
105459
  *
105448
105460
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -105622,7 +105634,7 @@ Object .assign (Object .setPrototypeOf (MovieTexture .prototype, Texturing_X3DTe
105622
105634
  if (DEVELOPMENT)
105623
105635
  {
105624
105636
  if (this .URL .protocol !== "data:")
105625
- console .info (`Done loading movie '${decodeURI (this .URL .href)}'`);
105637
+ console .info (`Done loading movie '${decodeURI (this .URL .href)}'.`);
105626
105638
  }
105627
105639
 
105628
105640
  this .video .off ("loadeddata");
@@ -108211,7 +108223,7 @@ const Context =
108211
108223
  // setTimeout (check);
108212
108224
  // });
108213
108225
  // },
108214
- // getBufferSubDataAsync: async function (target, buffer, srcByteOffset, dstBuffer, /* optional */ dstOffset, /* optional */ length)
108226
+ // async getBufferSubDataAsync (target, buffer, srcByteOffset, dstBuffer, /* optional */ dstOffset, /* optional */ length)
108215
108227
  // {
108216
108228
  // const sync = this .fenceSync (this .SYNC_GPU_COMMANDS_COMPLETE, 0);
108217
108229
 
@@ -108225,7 +108237,7 @@ const Context =
108225
108237
  // this .getBufferSubData (target, srcByteOffset, dstBuffer, dstOffset, length);
108226
108238
  // this .bindBuffer (target, null);
108227
108239
  // },
108228
- // readPixelsAsync: async function (x, y, w, h, format, type, dest, dstOffset)
108240
+ // async readPixelsAsync (x, y, w, h, format, type, dest, dstOffset)
108229
108241
  // {
108230
108242
  // const buffer = this .createBuffer ();
108231
108243
 
@@ -108850,7 +108862,7 @@ const gettext_default_ = (string) => locale .get (string) || string;
108850
108862
  x_ite_Namespace .add ("gettext", "locale/gettext", gettext_default_);
108851
108863
  /* harmony default export */ const gettext = (gettext_default_);
108852
108864
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
108853
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(250);
108865
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(418);
108854
108866
  /*******************************************************************************
108855
108867
  *
108856
108868
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109423,7 +109435,7 @@ const TextureQuality_default_ = TextureQuality;
109423
109435
  x_ite_Namespace .add ("TextureQuality", "x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
109424
109436
  /* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
109425
109437
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
109426
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(250);
109438
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(418);
109427
109439
  /*******************************************************************************
109428
109440
  *
109429
109441
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109540,6 +109552,7 @@ Object .assign (Object .setPrototypeOf (BrowserOptions .prototype, Base_X3DBaseN
109540
109552
  "ContentScale",
109541
109553
  "ContextMenu",
109542
109554
  "Debug",
109555
+ "LogarithmicDepthBuffer",
109543
109556
  "Multisampling",
109544
109557
  "Notifications",
109545
109558
  "OrderIndependentTransparency",
@@ -110017,7 +110030,7 @@ const RenderingProperties_default_ = RenderingProperties;
110017
110030
  x_ite_Namespace .add ("RenderingProperties", "x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
110018
110031
  /* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
110019
110032
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
110020
- /* provided dependency */ var Notification_$ = __webpack_require__(250);
110033
+ /* provided dependency */ var Notification_$ = __webpack_require__(418);
110021
110034
  /*******************************************************************************
110022
110035
  *
110023
110036
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -110140,8 +110153,8 @@ const Notification_default_ = Notification;
110140
110153
  x_ite_Namespace .add ("Notification", "x_ite/Browser/Core/Notification", Notification_default_);
110141
110154
  /* harmony default export */ const Core_Notification = (Notification_default_);
110142
110155
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
110143
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(226);
110144
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(250);
110156
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(626);
110157
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(418);
110145
110158
  /*******************************************************************************
110146
110159
  *
110147
110160
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -110232,12 +110245,12 @@ Object .assign (Object .setPrototypeOf (ContextMenu .prototype, Base_X3DBaseNode
110232
110245
 
110233
110246
  if (typeof this [_userMenu] === "function")
110234
110247
  {
110235
- const menu = this [_userMenu] ();
110248
+ const menu = this [_userMenu] (this .getBrowser ());
110236
110249
 
110237
110250
  if (ContextMenu_$.isPlainObject (menu))
110238
110251
  {
110239
110252
  for (const key in menu)
110240
- userMenu ["user-" + key] = menu [key];
110253
+ userMenu [`user-${key}`] = menu [key];
110241
110254
  }
110242
110255
  }
110243
110256
 
@@ -110468,6 +110481,11 @@ Object .assign (Object .setPrototypeOf (ContextMenu .prototype, Base_X3DBaseNode
110468
110481
  },
110469
110482
  },
110470
110483
  "separator2": "--------",
110484
+
110485
+ // Insert custom user menu items.
110486
+ ... this .createUserMenu (),
110487
+
110488
+ "separator3": "--------",
110471
110489
  "browser-timings": {
110472
110490
  name: gettext("Browser Timings"),
110473
110491
  type: "checkbox",
@@ -110490,53 +110508,47 @@ Object .assign (Object .setPrototypeOf (ContextMenu .prototype, Base_X3DBaseNode
110490
110508
  browser .getElement () .toggleFullScreen ();
110491
110509
  },
110492
110510
  },
110493
- "separator3": "--------",
110494
- },
110495
- };
110496
-
110497
- Object .assign (menu .items, this .createUserMenu ());
110498
-
110499
- Object .assign (menu .items, {
110500
- "separator4": "--------",
110501
- "world-info": {
110502
- name: gettext("Show World Info"),
110503
- className: "context-menu-icon x_ite-private-icon-world-info",
110504
- callback ()
110505
- {
110506
- browser .getShadow () .find (".x_ite-private-world-info") .remove ();
110511
+ "separator4": "--------",
110512
+ "world-info": {
110513
+ name: gettext("Show World Info"),
110514
+ className: "context-menu-icon x_ite-private-icon-world-info",
110515
+ callback ()
110516
+ {
110517
+ browser .getShadow () .find (".x_ite-private-world-info") .remove ();
110507
110518
 
110508
- const
110509
- priv = browser .getShadow () .find (".x_ite-private-browser"),
110510
- overlay = ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info-overlay") .appendTo (priv),
110511
- div = ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info") .appendTo (overlay),
110512
- worldInfo = browser .getExecutionContext () .getWorldInfos () [0],
110513
- title = worldInfo .title,
110514
- info = worldInfo .info;
110519
+ const
110520
+ priv = browser .getShadow () .find (".x_ite-private-browser"),
110521
+ overlay = ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info-overlay") .appendTo (priv),
110522
+ div = ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info") .appendTo (overlay),
110523
+ worldInfo = browser .getExecutionContext () .getWorldInfos () [0],
110524
+ title = worldInfo .title,
110525
+ info = worldInfo .info;
110515
110526
 
110516
- ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info-top") .text ("World Info") .appendTo (div);
110527
+ ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info-top") .text ("World Info") .appendTo (div);
110517
110528
 
110518
- if (title .length)
110519
- {
110520
- ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info-title") .text (title) .appendTo (div);
110521
- }
110529
+ if (title .length)
110530
+ {
110531
+ ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info-title") .text (title) .appendTo (div);
110532
+ }
110522
110533
 
110523
- for (const line of info)
110524
- {
110525
- ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info-info") .text (line) .appendTo (div);
110526
- }
110534
+ for (const line of info)
110535
+ {
110536
+ ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info-info") .text (line) .appendTo (div);
110537
+ }
110527
110538
 
110528
- overlay .on ("click", function () { overlay .remove (); });
110539
+ overlay .on ("click", function () { overlay .remove (); });
110540
+ },
110529
110541
  },
110530
- },
110531
- "about": {
110532
- name: gettext("About X_ITE"),
110533
- className: "context-menu-icon x_ite-private-icon-help-about",
110534
- callback ()
110535
- {
110536
- window .open (browser .getProviderURL ());
110542
+ "about": {
110543
+ name: gettext("About X_ITE"),
110544
+ className: "context-menu-icon x_ite-private-icon-help-about",
110545
+ callback ()
110546
+ {
110547
+ window .open (browser .getProviderURL ());
110548
+ },
110537
110549
  },
110538
110550
  },
110539
- });
110551
+ };
110540
110552
 
110541
110553
  if (ContextMenu_$.isEmptyObject (menu .items .viewpoints .items))
110542
110554
  delete menu .items ["viewpoints"];
@@ -112895,7 +112907,7 @@ const DataStorage_default_ = DataStorage;
112895
112907
  x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage_default_);
112896
112908
  /* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
112897
112909
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
112898
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(250);
112910
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(418);
112899
112911
  /*******************************************************************************
112900
112912
  *
112901
112913
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -112958,6 +112970,7 @@ x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage
112958
112970
 
112959
112971
 
112960
112972
 
112973
+
112961
112974
  const WEBGL_VERSION = 2;
112962
112975
 
112963
112976
  const
@@ -113219,6 +113232,12 @@ Object .assign (X3DCoreContext .prototype,
113219
113232
  this .setBrowserOption ("Debug", this .parseBooleanAttribute (newValue, false));
113220
113233
  break;
113221
113234
  }
113235
+ case "logarithmicDepthBuffer":
113236
+ case "logarithmicdepthbuffer":
113237
+ {
113238
+ this .setBrowserOption ("LogarithmicDepthBuffer", this .parseBooleanAttribute (newValue, false));
113239
+ break;
113240
+ }
113222
113241
  case "multisampling":
113223
113242
  {
113224
113243
  const samples = parseInt (newValue);
@@ -113325,7 +113344,7 @@ Object .assign (X3DCoreContext .prototype,
113325
113344
  {
113326
113345
  const url = new x_ite_Fields .MFString ();
113327
113346
 
113328
- url .fromString ("[" + urlCharacters + "]", this .getExecutionContext ());
113347
+ url .fromString (`[${urlCharacters}]`, this .getExecutionContext ());
113329
113348
 
113330
113349
  return url;
113331
113350
  }
@@ -113541,12 +113560,16 @@ Object .assign (X3DCoreContext .prototype,
113541
113560
  {
113542
113561
  event .preventDefault ();
113543
113562
 
113563
+ // Create viewpoint node.
113564
+
113544
113565
  const viewpoint = this .getActiveViewpoint ();
113545
113566
 
113546
113567
  if (!viewpoint)
113547
113568
  break;
113548
113569
 
113549
- const vp = this .getExecutionContext () .createNode (viewpoint .getTypeName ());
113570
+ const
113571
+ executionContext = this .getExecutionContext (),
113572
+ vp = executionContext .createNode (viewpoint .getTypeName ());
113550
113573
 
113551
113574
  switch (viewpoint .getTypeName ())
113552
113575
  {
@@ -113574,7 +113597,7 @@ Object .assign (X3DCoreContext .prototype,
113574
113597
 
113575
113598
  if (geoOrigin .getValue () && geoOrigin .getNodeTypeName () === "GeoOrigin")
113576
113599
  {
113577
- const go = this .getPrivateScene () .createNode ("GeoOrigin");
113600
+ const go = executionContext .createNode ("GeoOrigin");
113578
113601
 
113579
113602
  vp .geoOrigin = go;
113580
113603
  go .geoSystem = geoOrigin .geoSystem;
@@ -113591,11 +113614,13 @@ Object .assign (X3DCoreContext .prototype,
113591
113614
  }
113592
113615
  }
113593
113616
 
113594
- const options = { scene: this .getExecutionContext () };
113617
+ // Create text.
113618
+
113619
+ const options = x_ite_Features .ENVIRONMENT === "NODE" ? { } : { scene: executionContext };
113595
113620
 
113596
113621
  let text;
113597
113622
 
113598
- switch (this .getExecutionContext () .getEncoding ())
113623
+ switch (executionContext .getEncoding ())
113599
113624
  {
113600
113625
  case "ASCII":
113601
113626
  case "VRML": text = vp .toVRMLString (options); break;
@@ -113605,11 +113630,15 @@ Object .assign (X3DCoreContext .prototype,
113605
113630
 
113606
113631
  text += "\n";
113607
113632
 
113608
- this .copyToClipboard (text);
113609
- this .getNotification () ._string = gettext ("Viewpoint copied to clipboard.");
113633
+ // Copy to clipboard.
113610
113634
 
113611
- console .log ("Viewpoint copied to clipboard.");
113612
- console .debug (text);
113635
+ this .copyToClipboard (text) .then (() =>
113636
+ {
113637
+ this .getNotification () ._string = gettext ("Viewpoint copied to clipboard.");
113638
+
113639
+ console .log ("Viewpoint copied to clipboard.");
113640
+ console .debug (text);
113641
+ });
113613
113642
  }
113614
113643
 
113615
113644
  break;
@@ -113649,14 +113678,21 @@ Object .assign (X3DCoreContext .prototype,
113649
113678
  }
113650
113679
  }
113651
113680
  },
113652
- copyToClipboard (text)
113681
+ async copyToClipboard (text)
113653
113682
  {
113654
- // The textarea must be visible to make copy work.
113655
- const tmp = X3DCoreContext_$("<textarea></textarea>");
113656
- this .getShadow () .find (".x_ite-private-browser") .prepend (tmp);
113657
- tmp .text (text) .trigger ("select");
113658
- document .execCommand ("copy");
113659
- tmp .remove ();
113683
+ try
113684
+ {
113685
+ await navigator .clipboard .writeText (text);
113686
+ }
113687
+ catch
113688
+ {
113689
+ // The textarea must be visible to make copy work.
113690
+ const tmp = X3DCoreContext_$("<textarea></textarea>");
113691
+ this .getShadow () .find (".x_ite-private-browser") .prepend (tmp);
113692
+ tmp .text (text) .trigger ("select");
113693
+ document .execCommand ("copy");
113694
+ tmp .remove ();
113695
+ }
113660
113696
  },
113661
113697
  dispose ()
113662
113698
  {
@@ -115418,8 +115454,8 @@ const X3DViewer_default_ = X3DViewer;
115418
115454
  x_ite_Namespace .add ("X3DViewer", "x_ite/Browser/Navigation/X3DViewer", X3DViewer_default_);
115419
115455
  /* harmony default export */ const Navigation_X3DViewer = (X3DViewer_default_);
115420
115456
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
115421
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(496);
115422
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(250);
115457
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(408);
115458
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(418);
115423
115459
  /*******************************************************************************
115424
115460
  *
115425
115461
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116291,8 +116327,8 @@ const ExamineViewer_default_ = ExamineViewer;
116291
116327
  x_ite_Namespace .add ("ExamineViewer", "x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
116292
116328
  /* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
116293
116329
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
116294
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(496);
116295
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(250);
116330
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(408);
116331
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(418);
116296
116332
  /*******************************************************************************
116297
116333
  *
116298
116334
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -117301,8 +117337,8 @@ const FlyViewer_default_ = FlyViewer;
117301
117337
  x_ite_Namespace .add ("FlyViewer", "x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
117302
117338
  /* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
117303
117339
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
117304
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(496);
117305
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(250);
117340
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(408);
117341
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(418);
117306
117342
  /*******************************************************************************
117307
117343
  *
117308
117344
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -117633,8 +117669,8 @@ const NoneViewer_default_ = NoneViewer;
117633
117669
  x_ite_Namespace .add ("NoneViewer", "x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
117634
117670
  /* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
117635
117671
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
117636
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(496);
117637
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(250);
117672
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(408);
117673
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(418);
117638
117674
  /*******************************************************************************
117639
117675
  *
117640
117676
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118772,8 +118808,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
118772
118808
  x_ite_Namespace .add ("X3DPickingContext", "x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
118773
118809
  /* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
118774
118810
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
118775
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(496);
118776
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(250);
118811
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(408);
118812
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(418);
118777
118813
  /*******************************************************************************
118778
118814
  *
118779
118815
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -120077,7 +120113,7 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
120077
120113
  x_ite_Namespace .add ("MultiSampleFrameBuffer", "x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
120078
120114
  /* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
120079
120115
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
120080
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(250);
120116
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(418);
120081
120117
  /*******************************************************************************
120082
120118
  *
120083
120119
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -120499,6 +120535,7 @@ x_ite_Namespace .add ("X3DScriptingContext", "x_ite/Browser/Scripting/X3DScripti
120499
120535
 
120500
120536
 
120501
120537
 
120538
+
120502
120539
  const
120503
120540
  _wireframe = Symbol (),
120504
120541
  _primitiveModes = Symbol (),
@@ -120600,8 +120637,8 @@ Object .assign (X3DShadersContext .prototype,
120600
120637
  },
120601
120638
  createShader (name, vs, fs = vs, options = [ ], uniformNames = [ ], transformFeedbackVaryings = [ ])
120602
120639
  {
120603
- if (this .getBrowserOption ("Debug"))
120604
- console .info (`Initializing ${name}Shader`);
120640
+ if (DEVELOPMENT)
120641
+ console .info (`Initializing ${name}Shader.`);
120605
120642
 
120606
120643
  const
120607
120644
  gl = this .getContext (),
@@ -121025,7 +121062,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
121025
121062
  x_ite_Namespace .add ("X3DSoundContext", "x_ite/Browser/Sound/X3DSoundContext", X3DSoundContext_default_);
121026
121063
  /* harmony default export */ const Sound_X3DSoundContext = (X3DSoundContext_default_);
121027
121064
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
121028
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(250);
121065
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(418);
121029
121066
  const KTXDecoder_default_ = class KTXDecoder
121030
121067
  {
121031
121068
  constructor (gl, externalKtxlib, scriptDir)
@@ -122579,7 +122616,7 @@ const Components_default_ = Components;
122579
122616
  x_ite_Namespace .add ("Components", "x_ite/Components", Components_default_);
122580
122617
  /* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
122581
122618
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
122582
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(250);
122619
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(418);
122583
122620
  /*******************************************************************************
122584
122621
  * MIT License
122585
122622
  *
@@ -122736,7 +122773,7 @@ class DOMIntegration
122736
122773
 
122737
122774
  const
122738
122775
  parentNode = element .parentNode,
122739
- node = DOMIntegration_$.data (parentNode, "node");
122776
+ node = DOMIntegration_$.data (parentNode, "node");
122740
122777
 
122741
122778
  if (node)
122742
122779
  {
@@ -122953,6 +122990,10 @@ class DOMIntegration
122953
122990
  if (!node)
122954
122991
  return;
122955
122992
 
122993
+ // Unfortunately `getEventListeners` is not available all the time.
122994
+ // if (!getEventListeners (element) .hasOwnProperty (field .getName ()))
122995
+ // return;
122996
+
122956
122997
  const event = new CustomEvent (field .getName (),
122957
122998
  {
122958
122999
  detail: {
@@ -123712,8 +123753,138 @@ const SupportedProfiles_default_ = SupportedProfiles;
123712
123753
 
123713
123754
  x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
123714
123755
  /* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
123756
+ ;// CONCATENATED MODULE: ./src/x_ite/Configuration/FieldTypesArray.js
123757
+ /*******************************************************************************
123758
+ *
123759
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
123760
+ *
123761
+ * Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
123762
+ *
123763
+ * All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
123764
+ *
123765
+ * The copyright notice above does not evidence any actual of intended
123766
+ * publication of such source code, and is an unpublished work by create3000.
123767
+ * This material contains CONFIDENTIAL INFORMATION that is the property of
123768
+ * create3000.
123769
+ *
123770
+ * No permission is granted to copy, distribute, or create derivative works from
123771
+ * the contents of this software, in whole or in part, without the prior written
123772
+ * permission of create3000.
123773
+ *
123774
+ * NON-MILITARY USE ONLY
123775
+ *
123776
+ * All create3000 software are effectively free software with a non-military use
123777
+ * restriction. It is free. Well commented source is provided. You may reuse the
123778
+ * source in any way you please with the exception anything that uses it must be
123779
+ * marked to indicate is contains 'non-military use only' components.
123780
+ *
123781
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
123782
+ *
123783
+ * Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
123784
+ *
123785
+ * This file is part of the X_ITE Project.
123786
+ *
123787
+ * X_ITE is free software: you can redistribute it and/or modify it under the
123788
+ * terms of the GNU General Public License version 3 only, as published by the
123789
+ * Free Software Foundation.
123790
+ *
123791
+ * X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
123792
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
123793
+ * A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
123794
+ * details (a copy is included in the LICENSE file that accompanied this code).
123795
+ *
123796
+ * You should have received a copy of the GNU General Public License version 3
123797
+ * along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
123798
+ * copy of the GPLv3 License.
123799
+ *
123800
+ * For Silvio, Joy and Adi.
123801
+ *
123802
+ ******************************************************************************/
123803
+
123804
+
123805
+
123806
+ function FieldTypesArray (values = [ ])
123807
+ {
123808
+ return Base_X3DInfoArray .call (this, Array .from (values, value => [value .typeName, value]), Function);
123809
+ }
123810
+
123811
+ Object .setPrototypeOf (FieldTypesArray .prototype, Base_X3DInfoArray .prototype);
123812
+
123813
+ for (const key of Object .keys (FieldTypesArray .prototype))
123814
+ Object .defineProperty (FieldTypesArray .prototype, key, { enumerable: false });
123815
+
123816
+ Object .defineProperties (FieldTypesArray,
123817
+ {
123818
+ typeName:
123819
+ {
123820
+ value: "FieldTypesArray",
123821
+ enumerable: true,
123822
+ },
123823
+ });
123824
+
123825
+ const FieldTypesArray_default_ = FieldTypesArray;
123826
+ ;
123827
+
123828
+ x_ite_Namespace .add ("FieldTypesArray", "x_ite/Configuration/FieldTypesArray", FieldTypesArray_default_);
123829
+ /* harmony default export */ const Configuration_FieldTypesArray = (FieldTypesArray_default_);
123830
+ ;// CONCATENATED MODULE: ./src/x_ite/Configuration/FieldTypes.js
123831
+ /*******************************************************************************
123832
+ *
123833
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
123834
+ *
123835
+ * Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
123836
+ *
123837
+ * All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
123838
+ *
123839
+ * The copyright notice above does not evidence any actual of intended
123840
+ * publication of such source code, and is an unpublished work by create3000.
123841
+ * This material contains CONFIDENTIAL INFORMATION that is the property of
123842
+ * create3000.
123843
+ *
123844
+ * No permission is granted to copy, distribute, or create derivative works from
123845
+ * the contents of this software, in whole or in part, without the prior written
123846
+ * permission of create3000.
123847
+ *
123848
+ * NON-MILITARY USE ONLY
123849
+ *
123850
+ * All create3000 software are effectively free software with a non-military use
123851
+ * restriction. It is free. Well commented source is provided. You may reuse the
123852
+ * source in any way you please with the exception anything that uses it must be
123853
+ * marked to indicate is contains 'non-military use only' components.
123854
+ *
123855
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
123856
+ *
123857
+ * Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
123858
+ *
123859
+ * This file is part of the X_ITE Project.
123860
+ *
123861
+ * X_ITE is free software: you can redistribute it and/or modify it under the
123862
+ * terms of the GNU General Public License version 3 only, as published by the
123863
+ * Free Software Foundation.
123864
+ *
123865
+ * X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
123866
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
123867
+ * A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
123868
+ * details (a copy is included in the LICENSE file that accompanied this code).
123869
+ *
123870
+ * You should have received a copy of the GNU General Public License version 3
123871
+ * along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
123872
+ * copy of the GPLv3 License.
123873
+ *
123874
+ * For Silvio, Joy and Adi.
123875
+ *
123876
+ ******************************************************************************/
123877
+
123878
+
123879
+
123880
+
123881
+ const FieldTypes_default_ = new Configuration_FieldTypesArray (Object .values (x_ite_Fields));
123882
+ ;
123883
+
123884
+ x_ite_Namespace .add ("FieldTypes", "x_ite/Configuration/FieldTypes", FieldTypes_default_);
123885
+ /* harmony default export */ const FieldTypes = (FieldTypes_default_);
123715
123886
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
123716
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(250);
123887
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(418);
123717
123888
  /*******************************************************************************
123718
123889
  *
123719
123890
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -123783,6 +123954,7 @@ x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfile
123783
123954
 
123784
123955
 
123785
123956
 
123957
+
123786
123958
 
123787
123959
 
123788
123960
  const
@@ -123791,6 +123963,7 @@ const
123791
123963
  _supportedComponents = Symbol (),
123792
123964
  _concreteNodes = Symbol (),
123793
123965
  _abstractNodes = Symbol (),
123966
+ _fieldTypes = Symbol (),
123794
123967
  _reject = Symbol (),
123795
123968
  _fileLoader = Symbol (),
123796
123969
  _browserCallbacks = Symbol (),
@@ -123812,6 +123985,7 @@ function X3DBrowser (element)
123812
123985
  this [_supportedComponents] = Configuration_SupportedComponents .copy ();
123813
123986
  this [_concreteNodes] = ConcreteNodes .copy ();
123814
123987
  this [_abstractNodes] = AbstractNodes .copy ();
123988
+ this [_fieldTypes] = FieldTypes .copy ();
123815
123989
  this [_console] = document .getElementsByClassName ("x_ite-console");
123816
123990
 
123817
123991
  this [_browserCallbacks] = new Map ([
@@ -124013,7 +124187,10 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
124013
124187
 
124014
124188
  for (const arg of args)
124015
124189
  {
124016
- if (arg instanceof Configuration_ProfileInfo)
124190
+ if (arg instanceof Execution_X3DScene)
124191
+ component .push (... (arg .profile ?? this .getProfile ("Full")) .components, ... arg .components);
124192
+
124193
+ else if (arg instanceof Configuration_ProfileInfo)
124017
124194
  component .push (... arg .components);
124018
124195
 
124019
124196
  else if (arg instanceof Configuration_ComponentInfoArray)
@@ -124023,7 +124200,7 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
124023
124200
  component .push (arg);
124024
124201
 
124025
124202
  else if (typeof arg === "string")
124026
- component .push (this [_supportedComponents] .get (arg))
124203
+ component .push (this .getComponent (arg))
124027
124204
  }
124028
124205
 
124029
124206
  // Load array of component names.
@@ -124080,6 +124257,19 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
124080
124257
  {
124081
124258
  return this [_abstractNodes];
124082
124259
  },
124260
+ getFieldType (typeName)
124261
+ {
124262
+ const fieldType = this [_fieldTypes] .get (String (typeName));
124263
+
124264
+ if (fieldType)
124265
+ return fieldType;
124266
+
124267
+ throw new Error (`Field type '${typeName}' does not exists.`);
124268
+ },
124269
+ getFieldTypes ()
124270
+ {
124271
+ return this [_fieldTypes];
124272
+ },
124083
124273
  createScene (profile, ... components)
124084
124274
  {
124085
124275
  const scene = new Execution_X3DScene (this);
@@ -124167,7 +124357,6 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
124167
124357
  return;
124168
124358
 
124169
124359
  loadCount .removeInterest ("checkLoadCount", this);
124170
- this .touch (0, 0);
124171
124360
  this .setBrowserLoading (false);
124172
124361
  this .initialized () .set (this .getCurrentTime ());
124173
124362
  this .initialized () .processInterests ();
@@ -124747,34 +124936,27 @@ Object .defineProperties (X3DBrowser .prototype,
124747
124936
  },
124748
124937
  supportedProfiles:
124749
124938
  {
124750
- get ()
124751
- {
124752
- return this [_supportedProfiles];
124753
- },
124939
+ get: X3DBrowser .prototype .getSupportedProfiles,
124754
124940
  enumerable: true,
124755
124941
  },
124756
124942
  supportedComponents:
124757
124943
  {
124758
- get ()
124759
- {
124760
- return this [_supportedComponents];
124761
- },
124944
+ get: X3DBrowser .prototype .getSupportedComponents,
124762
124945
  enumerable: true,
124763
124946
  },
124764
124947
  concreteNodes:
124765
124948
  {
124766
- get ()
124767
- {
124768
- return this [_concreteNodes];
124769
- },
124949
+ get: X3DBrowser .prototype .getConcreteNodes,
124770
124950
  enumerable: true,
124771
124951
  },
124772
124952
  abstractNodes:
124773
124953
  {
124774
- get ()
124775
- {
124776
- return this [_abstractNodes];
124777
- },
124954
+ get: X3DBrowser .prototype .getAbstractNodes,
124955
+ enumerable: true,
124956
+ },
124957
+ fieldTypes:
124958
+ {
124959
+ get: X3DBrowser .prototype .getFieldTypes,
124778
124960
  enumerable: true,
124779
124961
  },
124780
124962
  element:
@@ -124804,7 +124986,7 @@ const X3DBrowser_default_ = X3DBrowser;
124804
124986
  x_ite_Namespace .add ("X3DBrowser", "x_ite/Browser/X3DBrowser", X3DBrowser_default_);
124805
124987
  /* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
124806
124988
  ;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
124807
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(250);
124989
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(418);
124808
124990
  /*******************************************************************************
124809
124991
  *
124810
124992
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -124891,6 +125073,8 @@ class X3DCanvasElement extends HTMLElement
124891
125073
  "contextMenu",
124892
125074
  "contextmenu",
124893
125075
  "debug",
125076
+ "logarithmicDepthBuffer",
125077
+ "logarithmicdepthbuffer",
124894
125078
  "multisampling",
124895
125079
  "notifications",
124896
125080
  "oninitialized",
@@ -124941,8 +125125,8 @@ const X3DCanvasElement_default_ = X3DCanvasElement;
124941
125125
  x_ite_Namespace .add ("X3DCanvasElement", "x_ite/X3DCanvasElement", X3DCanvasElement_default_);
124942
125126
  /* harmony default export */ const x_ite_X3DCanvasElement = (X3DCanvasElement_default_);
124943
125127
  ;// CONCATENATED MODULE: ./src/lib/jquery.js
124944
- /* provided dependency */ var jquery_$ = __webpack_require__(250);
124945
- /* provided dependency */ var pako = __webpack_require__(82);
125128
+ /* provided dependency */ var jquery_$ = __webpack_require__(418);
125129
+ /* provided dependency */ var pako = __webpack_require__(674);
124946
125130
  Object .assign (jquery_$,
124947
125131
  {
124948
125132
  decodeText (input)
@@ -125019,14 +125203,14 @@ const jquery_default_ = jquery_$;
125019
125203
  x_ite_Namespace .add ("jquery", "lib/jquery", jquery_default_);
125020
125204
  /* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
125021
125205
  ;// CONCATENATED MODULE: ./src/lib/libtess.js
125022
- /* provided dependency */ var libtess_libtess = __webpack_require__(979);
125206
+ /* provided dependency */ var libtess_libtess = __webpack_require__(803);
125023
125207
  const libtess_default_ = libtess_libtess;
125024
125208
  ;
125025
125209
 
125026
125210
  x_ite_Namespace .add ("libtess", "lib/libtess", libtess_default_);
125027
125211
  /* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
125028
125212
  ;// CONCATENATED MODULE: ./src/x_ite/X3D.js
125029
- /* provided dependency */ var X3D_$ = __webpack_require__(250);
125213
+ /* provided dependency */ var X3D_$ = __webpack_require__(418);
125030
125214
  /*******************************************************************************
125031
125215
  *
125032
125216
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -125334,7 +125518,7 @@ Object .assign (X3D,
125334
125518
 
125335
125519
  // Assign X3D to global namespace.
125336
125520
 
125337
- window [Symbol .for ("X_ITE.X3D-9.6.1")] = x_ite_X3D;
125521
+ window [Symbol .for ("X_ITE.X3D-9.6.3")] = x_ite_X3D;
125338
125522
 
125339
125523
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
125340
125524