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.js CHANGED
@@ -1,4 +1,4 @@
1
- /* X_ITE v9.6.1 */(function webpackUniversalModuleDefinition(root, factory) {
1
+ /* X_ITE v9.6.3 */(function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
3
  module.exports = factory();
4
4
  else if(typeof define === 'function' && define.amd)
@@ -11,10 +11,10 @@
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
- /***/ 226:
14
+ /***/ 626:
15
15
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
16
16
 
17
- /* provided dependency */ var jQuery = __webpack_require__(250);
17
+ /* provided dependency */ var jQuery = __webpack_require__(418);
18
18
  /**
19
19
  * @preserve jquery.fullscreen 1.1.5
20
20
  * https://github.com/code-lts/jquery-fullscreen-plugin
@@ -210,7 +210,7 @@ installFullScreenHandlers();
210
210
 
211
211
  /***/ }),
212
212
 
213
- /***/ 496:
213
+ /***/ 408:
214
214
  /***/ ((module, exports, __webpack_require__) => {
215
215
 
216
216
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -224,7 +224,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
224
224
  (function (factory) {
225
225
  if ( true ) {
226
226
  // AMD. Register as an anonymous module.
227
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(250)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
227
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(418)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
228
228
  __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
229
229
  (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
230
230
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
@@ -435,7 +435,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
435
435
 
436
436
  /***/ }),
437
437
 
438
- /***/ 250:
438
+ /***/ 418:
439
439
  /***/ (function(module, exports) {
440
440
 
441
441
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -11159,7 +11159,7 @@ return jQuery;
11159
11159
 
11160
11160
  /***/ }),
11161
11161
 
11162
- /***/ 979:
11162
+ /***/ 803:
11163
11163
  /***/ ((module) => {
11164
11164
 
11165
11165
  /**
@@ -15938,7 +15938,7 @@ if (true) {
15938
15938
 
15939
15939
  /***/ }),
15940
15940
 
15941
- /***/ 82:
15941
+ /***/ 674:
15942
15942
  /***/ (function(__unused_webpack_module, exports) {
15943
15943
 
15944
15944
 
@@ -19183,7 +19183,7 @@ if (true) {
19183
19183
 
19184
19184
  /***/ }),
19185
19185
 
19186
- /***/ 389:
19186
+ /***/ 517:
19187
19187
  /***/ (function(module, exports) {
19188
19188
 
19189
19189
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
@@ -20311,7 +20311,7 @@ Object .defineProperty (Namespace, "add",
20311
20311
  }
20312
20312
  else
20313
20313
  {
20314
- const X3D = window [Symbol .for ("X_ITE.X3D-9.6.1")];
20314
+ const X3D = window [Symbol .for ("X_ITE.X3D-9.6.3")];
20315
20315
 
20316
20316
  if (X3D)
20317
20317
  X3D [name] = module;
@@ -34230,7 +34230,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34230
34230
  x_ite_Namespace .add ("X3DBaseNode", "x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
34231
34231
  /* harmony default export */ const Base_X3DBaseNode = (X3DBaseNode_default_);
34232
34232
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
34233
- /* provided dependency */ var $ = __webpack_require__(250);
34233
+ /* provided dependency */ var $ = __webpack_require__(418);
34234
34234
  /*******************************************************************************
34235
34235
  *
34236
34236
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34367,7 +34367,7 @@ x_ite_Namespace .add ("Legacy", "x_ite/Browser/Legacy", Legacy_default_);
34367
34367
  *
34368
34368
  ******************************************************************************/
34369
34369
 
34370
- const BROWSER_VERSION_default_ = "9.6.1";
34370
+ const BROWSER_VERSION_default_ = "9.6.3";
34371
34371
  ;
34372
34372
 
34373
34373
  x_ite_Namespace .add ("BROWSER_VERSION", "x_ite/BROWSER_VERSION", BROWSER_VERSION_default_);
@@ -39013,7 +39013,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
39013
39013
  x_ite_Namespace .add ("X3DProtoDeclaration", "x_ite/Prototype/X3DProtoDeclaration", X3DProtoDeclaration_default_);
39014
39014
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (X3DProtoDeclaration_default_);
39015
39015
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
39016
- /* provided dependency */ var X3DParser_$ = __webpack_require__(250);
39016
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(418);
39017
39017
  /*******************************************************************************
39018
39018
  *
39019
39019
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39100,16 +39100,12 @@ Object .assign (X3DParser .prototype,
39100
39100
  {
39101
39101
  return this .getExecutionContext () .getOuterNode () instanceof Prototype_X3DProtoDeclaration;
39102
39102
  },
39103
+ /**
39104
+ * @deprecated Directly use `browser.loadComponents`.
39105
+ */
39103
39106
  loadComponents ()
39104
39107
  {
39105
- const
39106
- browser = this .getBrowser (),
39107
- scene = this .getScene ();
39108
-
39109
- return Promise .all ([
39110
- browser .loadComponents (scene .getProfile () || browser .getProfile ("Full")),
39111
- browser .loadComponents (scene .getComponents ()),
39112
- ]);
39108
+ return this .getBrowser () .loadComponents (this .getScene ());
39113
39109
  },
39114
39110
  setUnits (units)
39115
39111
  {
@@ -39275,7 +39271,7 @@ const Expressions_default_ = Expressions;
39275
39271
  x_ite_Namespace .add ("Expressions", "x_ite/Parser/Expressions", Expressions_default_);
39276
39272
  /* harmony default export */ const Parser_Expressions = (Expressions_default_);
39277
39273
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
39278
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(250);
39274
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(418);
39279
39275
  /*******************************************************************************
39280
39276
  *
39281
39277
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39639,7 +39635,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
39639
39635
 
39640
39636
  if (this .resolve)
39641
39637
  {
39642
- this .loadComponents () .then (() =>
39638
+ browser .loadComponents (scene) .then (() =>
39643
39639
  {
39644
39640
  try
39645
39641
  {
@@ -41975,7 +41971,7 @@ const VRMLParser_default_ = VRMLParser;
41975
41971
  x_ite_Namespace .add ("VRMLParser", "x_ite/Parser/VRMLParser", VRMLParser_default_);
41976
41972
  /* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
41977
41973
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
41978
- /* provided dependency */ var XMLParser_$ = __webpack_require__(250);
41974
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(418);
41979
41975
  /*******************************************************************************
41980
41976
  *
41981
41977
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -42093,18 +42089,26 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42093
42089
  },
42094
42090
  parseIntoScene (resolve, reject)
42095
42091
  {
42092
+ const
42093
+ browser = this .getBrowser (),
42094
+ scene = this .getScene ();
42095
+
42096
42096
  this .resolve = resolve;
42097
42097
  this .reject = reject;
42098
42098
 
42099
- this .getScene () .setEncoding ("XML");
42100
- this .getScene () .setProfile (this .getBrowser () .getProfile ("Full"));
42099
+ scene .setEncoding ("XML");
42100
+ scene .setProfile (browser .getProfile ("Full"));
42101
42101
 
42102
42102
  this .xmlElement (this .input);
42103
42103
  },
42104
42104
  xmlElement (xmlElement)
42105
42105
  {
42106
+ const
42107
+ browser = this .getBrowser (),
42108
+ scene = this .getScene ();
42109
+
42106
42110
  if (xmlElement === null)
42107
- return this .resolve ?.(this .getScene ());
42111
+ return this .resolve ?.(scene);
42108
42112
 
42109
42113
  switch (xmlElement .nodeName)
42110
42114
  {
@@ -42121,10 +42125,10 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42121
42125
  {
42122
42126
  if (this .resolve)
42123
42127
  {
42124
- this .loadComponents () .then (() =>
42128
+ browser .loadComponents (scene) .then (() =>
42125
42129
  {
42126
42130
  this .childrenElements (xmlElement);
42127
- this .resolve (this .getScene ());
42131
+ this .resolve (scene);
42128
42132
  })
42129
42133
  .catch (this .reject);
42130
42134
  }
@@ -42146,10 +42150,10 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42146
42150
  {
42147
42151
  if (this .resolve)
42148
42152
  {
42149
- this .loadComponents () .then (() =>
42153
+ browser .loadComponents (scene) .then (() =>
42150
42154
  {
42151
42155
  this .sceneElement (xmlElement);
42152
- this .resolve (this .getScene ());
42156
+ this .resolve (scene);
42153
42157
  })
42154
42158
  .catch (this .reject);
42155
42159
  }
@@ -42164,10 +42168,10 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42164
42168
  {
42165
42169
  if (this .resolve)
42166
42170
  {
42167
- this .loadComponents () .then (() =>
42171
+ browser .loadComponents (scene) .then (() =>
42168
42172
  {
42169
42173
  this .childrenElements (xmlElement);
42170
- this .resolve (this .getScene ());
42174
+ this .resolve (scene);
42171
42175
  })
42172
42176
  .catch (this .reject);
42173
42177
  }
@@ -42182,17 +42186,21 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42182
42186
  },
42183
42187
  x3dElement (xmlElement)
42184
42188
  {
42189
+ const
42190
+ browser = this .getBrowser (),
42191
+ scene = this .getScene ();
42192
+
42185
42193
  try
42186
42194
  {
42187
42195
  // Profile
42188
42196
 
42189
42197
  const
42190
42198
  profileNameId = xmlElement .getAttribute ("profile"),
42191
- profile = this .getBrowser () .getProfile (profileNameId || "Full");
42199
+ profile = browser .getProfile (profileNameId || "Full");
42192
42200
 
42193
42201
  XMLParser_$.data (this .scene, "X3D", xmlElement);
42194
42202
 
42195
- this .getScene () .setProfile (profile);
42203
+ scene .setProfile (profile);
42196
42204
  }
42197
42205
  catch (error)
42198
42206
  {
@@ -42204,7 +42212,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42204
42212
  const specificationVersion = xmlElement .getAttribute ("version");
42205
42213
 
42206
42214
  if (specificationVersion)
42207
- this .getScene () .setSpecificationVersion (specificationVersion);
42215
+ scene .setSpecificationVersion (specificationVersion);
42208
42216
 
42209
42217
  // Process child nodes
42210
42218
 
@@ -42216,12 +42224,12 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42216
42224
 
42217
42225
  if (this .resolve)
42218
42226
  {
42219
- this .loadComponents () .then (() =>
42227
+ browser .loadComponents (scene) .then (() =>
42220
42228
  {
42221
42229
  for (const childNode of xmlElement .childNodes)
42222
42230
  this .x3dElementChildScene (childNode)
42223
42231
 
42224
- this .resolve (this .getScene ());
42232
+ this .resolve (scene);
42225
42233
  })
42226
42234
  .catch (this .reject);
42227
42235
  }
@@ -44007,7 +44015,7 @@ const URLs_default_ = URLs;
44007
44015
  x_ite_Namespace .add ("URLs", "x_ite/Browser/Networking/URLs", URLs_default_);
44008
44016
  /* harmony default export */ const Networking_URLs = (URLs_default_);
44009
44017
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
44010
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(250);
44018
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(418);
44011
44019
  /*******************************************************************************
44012
44020
  *
44013
44021
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -44177,7 +44185,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
44177
44185
  .then (resolve)
44178
44186
  .catch (reject);
44179
44187
  },
44180
- rootObject: async function (glTF)
44188
+ async rootObject (glTF)
44181
44189
  {
44182
44190
  if (!(glTF instanceof Object))
44183
44191
  return;
@@ -44201,7 +44209,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
44201
44209
  this .extensionsArray (glTF .extensionsRequired, this .extensions);
44202
44210
  this .extensionsObject (glTF .extensions);
44203
44211
 
44204
- await this .loadComponents ();
44212
+ await browser .loadComponents (scene);
44205
44213
  await this .buffersArray (glTF .buffers);
44206
44214
 
44207
44215
  if (this .extensions .has ("KHR_draco_mesh_compression"))
@@ -44517,14 +44525,14 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
44517
44525
 
44518
44526
  return light .node = lightNode;
44519
44527
  },
44520
- buffersArray: async function (buffers)
44528
+ async buffersArray (buffers)
44521
44529
  {
44522
44530
  if (!(buffers instanceof Array))
44523
44531
  return;
44524
44532
 
44525
44533
  this .buffers = await Promise .all (buffers .map ((buffer, i) => this .bufferObject (buffer, i)));
44526
44534
  },
44527
- bufferObject: async function (buffer, i)
44535
+ async bufferObject (buffer, i)
44528
44536
  {
44529
44537
  if (!(buffer instanceof Object))
44530
44538
  return;
@@ -44806,14 +44814,14 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
44806
44814
  });
44807
44815
  };
44808
44816
  })(),
44809
- imagesArray: async function (images)
44817
+ async imagesArray (images)
44810
44818
  {
44811
44819
  if (!(images instanceof Array))
44812
44820
  return;
44813
44821
 
44814
44822
  this .images = await Promise .all (images .map (image => this .imageObject (image)));
44815
44823
  },
44816
- imageObject: async function (image)
44824
+ async imageObject (image)
44817
44825
  {
44818
44826
  if (!(image instanceof Object))
44819
44827
  return;
@@ -45476,7 +45484,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
45476
45484
  draco .destroy (buffer);
45477
45485
  }
45478
45486
  },
45479
- createDraco: async function ()
45487
+ async createDraco ()
45480
45488
  {
45481
45489
  if (this .constructor .draco)
45482
45490
  {
@@ -47309,7 +47317,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
47309
47317
  x_ite_Namespace .add ("GLTF2Parser", "x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
47310
47318
  /* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
47311
47319
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
47312
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(250);
47320
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(418);
47313
47321
  /*******************************************************************************
47314
47322
  *
47315
47323
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -47404,7 +47412,7 @@ Object .assign (Object .setPrototypeOf (GLB2Parser .prototype, Parser_X3DParser
47404
47412
  .then (resolve)
47405
47413
  .catch (reject);
47406
47414
  },
47407
- glb: async function ()
47415
+ async glb ()
47408
47416
  {
47409
47417
  this .chunks ();
47410
47418
 
@@ -47461,7 +47469,7 @@ const GLB2Parser_default_ = GLB2Parser;
47461
47469
  x_ite_Namespace .add ("GLB2Parser", "x_ite/Parser/GLB2Parser", GLB2Parser_default_);
47462
47470
  /* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
47463
47471
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
47464
- /* provided dependency */ var OBJParser_$ = __webpack_require__(250);
47472
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(418);
47465
47473
  /*******************************************************************************
47466
47474
  *
47467
47475
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -47616,7 +47624,7 @@ Object .assign (Object .setPrototypeOf (OBJParser .prototype, Parser_X3DParser .
47616
47624
  .then (resolve)
47617
47625
  .catch (reject);
47618
47626
  },
47619
- obj: async function ()
47627
+ async obj ()
47620
47628
  {
47621
47629
  // Set profile and components.
47622
47630
 
@@ -47627,7 +47635,7 @@ Object .assign (Object .setPrototypeOf (OBJParser .prototype, Parser_X3DParser .
47627
47635
  scene .setEncoding ("OBJ");
47628
47636
  scene .setProfile (browser .getProfile ("Interchange"));
47629
47637
 
47630
- await this .loadComponents ();
47638
+ await browser .loadComponents (scene);
47631
47639
 
47632
47640
  // Init nodes.
47633
47641
 
@@ -47672,12 +47680,12 @@ Object .assign (Object .setPrototypeOf (OBJParser .prototype, Parser_X3DParser .
47672
47680
  {
47673
47681
  OBJParser_Grammar .whitespacesNoLineTerminator .parse (this);
47674
47682
  },
47675
- statements: async function ()
47683
+ async statements ()
47676
47684
  {
47677
47685
  while (await this .statement ())
47678
47686
  ;
47679
47687
  },
47680
- statement: async function ()
47688
+ async statement ()
47681
47689
  {
47682
47690
  if (await this .mtllibs ())
47683
47691
  return true;
@@ -47713,7 +47721,7 @@ Object .assign (Object .setPrototypeOf (OBJParser .prototype, Parser_X3DParser .
47713
47721
 
47714
47722
  return false;
47715
47723
  },
47716
- mtllibs: async function ()
47724
+ async mtllibs ()
47717
47725
  {
47718
47726
  this .comments ();
47719
47727
 
@@ -47733,7 +47741,7 @@ Object .assign (Object .setPrototypeOf (OBJParser .prototype, Parser_X3DParser .
47733
47741
 
47734
47742
  return false;
47735
47743
  },
47736
- mtllib: async function (path)
47744
+ async mtllib (path)
47737
47745
  {
47738
47746
  try
47739
47747
  {
@@ -48683,7 +48691,7 @@ Object .assign (Object .setPrototypeOf (STLAParser .prototype, Parser_X3DParser
48683
48691
  .then (resolve)
48684
48692
  .catch (reject);
48685
48693
  },
48686
- stl: async function ()
48694
+ async stl ()
48687
48695
  {
48688
48696
  // Set profile and components.
48689
48697
 
@@ -48694,7 +48702,7 @@ Object .assign (Object .setPrototypeOf (STLAParser .prototype, Parser_X3DParser
48694
48702
  scene .setEncoding ("STL");
48695
48703
  scene .setProfile (browser .getProfile ("Interchange"));
48696
48704
 
48697
- await this .loadComponents ();
48705
+ await browser .loadComponents (scene);
48698
48706
 
48699
48707
  // Create nodes.
48700
48708
 
@@ -49033,7 +49041,7 @@ Object .assign (Object .setPrototypeOf (STLBParser .prototype, Parser_X3DParser
49033
49041
  .then (resolve)
49034
49042
  .catch (reject);
49035
49043
  },
49036
- stl: async function ()
49044
+ async stl ()
49037
49045
  {
49038
49046
  // Set profile and components.
49039
49047
 
@@ -49044,7 +49052,7 @@ Object .assign (Object .setPrototypeOf (STLBParser .prototype, Parser_X3DParser
49044
49052
  scene .setEncoding ("STL");
49045
49053
  scene .setProfile (browser .getProfile ("Interchange"));
49046
49054
 
49047
- await this .loadComponents ();
49055
+ await browser .loadComponents (scene);
49048
49056
 
49049
49057
  // Create nodes.
49050
49058
 
@@ -49229,7 +49237,7 @@ Object .assign (Object .setPrototypeOf (PLYAParser .prototype, Parser_X3DParser
49229
49237
  .then (resolve)
49230
49238
  .catch (reject);
49231
49239
  },
49232
- ply: async function ()
49240
+ async ply ()
49233
49241
  {
49234
49242
  // Set profile and components.
49235
49243
 
@@ -49240,7 +49248,7 @@ Object .assign (Object .setPrototypeOf (PLYAParser .prototype, Parser_X3DParser
49240
49248
  scene .setEncoding ("PLY");
49241
49249
  scene .setProfile (browser .getProfile ("Interchange"));
49242
49250
 
49243
- await this .loadComponents ();
49251
+ await browser .loadComponents (scene);
49244
49252
  await this .processElements (this .header ([ ]))
49245
49253
 
49246
49254
  // Create nodes.
@@ -49515,6 +49523,7 @@ Object .assign (Object .setPrototypeOf (PLYAParser .prototype, Parser_X3DParser
49515
49523
  async parseVertices ({ count, properties })
49516
49524
  {
49517
49525
  const
49526
+ browser = this .getBrowser (),
49518
49527
  scene = this .getScene (),
49519
49528
  colors = [ ],
49520
49529
  texCoord = scene .createNode ("TextureCoordinate"),
@@ -49575,7 +49584,7 @@ Object .assign (Object .setPrototypeOf (PLYAParser .prototype, Parser_X3DParser
49575
49584
  {
49576
49585
  scene .addComponent (this .getBrowser () .getComponent ("Shaders", 1));
49577
49586
 
49578
- await this .loadComponents ();
49587
+ await browser .loadComponents (scene);
49579
49588
 
49580
49589
  for (const [name, value] of attributes)
49581
49590
  {
@@ -50819,8 +50828,8 @@ const MatrixStack_default_ = MatrixStack;
50819
50828
  x_ite_Namespace .add ("MatrixStack", "standard/Math/Utility/MatrixStack", MatrixStack_default_);
50820
50829
  /* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
50821
50830
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
50822
- /* provided dependency */ var SVGParser_$ = __webpack_require__(250);
50823
- /* provided dependency */ var libtess = __webpack_require__(979);
50831
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(418);
50832
+ /* provided dependency */ var libtess = __webpack_require__(803);
50824
50833
  /*******************************************************************************
50825
50834
  *
50826
50835
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -51060,7 +51069,7 @@ Object .assign (Object .setPrototypeOf (SVGParser .prototype, Parser_X3DParser .
51060
51069
  .then (resolve)
51061
51070
  .catch (reject);
51062
51071
  },
51063
- xmlElement: async function (xmlElement)
51072
+ async xmlElement (xmlElement)
51064
51073
  {
51065
51074
  switch (xmlElement .nodeName)
51066
51075
  {
@@ -51082,7 +51091,7 @@ Object .assign (Object .setPrototypeOf (SVGParser .prototype, Parser_X3DParser .
51082
51091
 
51083
51092
  return this .getScene ();
51084
51093
  },
51085
- svgElement: async function (xmlElement)
51094
+ async svgElement (xmlElement)
51086
51095
  {
51087
51096
  const
51088
51097
  browser = this .getBrowser (),
@@ -51092,7 +51101,7 @@ Object .assign (Object .setPrototypeOf (SVGParser .prototype, Parser_X3DParser .
51092
51101
  scene .setProfile (browser .getProfile ("Interchange"));
51093
51102
  scene .addComponent (browser .getComponent ("Geometry2D", 2));
51094
51103
 
51095
- await this .loadComponents ();
51104
+ await browser .loadComponents (scene);
51096
51105
 
51097
51106
  // Init nodes.
51098
51107
 
@@ -53588,7 +53597,7 @@ const SVGParser_default_ = SVGParser;
53588
53597
  x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_);
53589
53598
  /* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
53590
53599
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
53591
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(250);
53600
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(418);
53592
53601
  /*******************************************************************************
53593
53602
  *
53594
53603
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53649,18 +53658,47 @@ x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_)
53649
53658
 
53650
53659
 
53651
53660
 
53652
- function GoldenGate (scene)
53661
+ class GoldenGate extends Parser_X3DParser
53653
53662
  {
53654
- Parser_X3DParser .call (this, scene);
53663
+ #inputs = new Map ();
53655
53664
 
53656
- this .inputs = new Map ();
53657
- }
53665
+ static #parsers = [
53666
+ Parser_SVGParser,
53667
+ Parser_XMLParser,
53668
+ Parser_GLTF2Parser,
53669
+ Parser_GLB2Parser,
53670
+ Parser_JSONParser,
53671
+ Parser_VRMLParser,
53672
+ Parser_OBJParser,
53673
+ Parser_STLAParser,
53674
+ Parser_STLBParser,
53675
+ Parser_PLYAParser,
53676
+ Parser_PLYBParser,
53677
+ ];
53678
+
53679
+ static addParsers (... args)
53680
+ {
53681
+ this .#parsers .push (... args);
53682
+ }
53683
+
53684
+ static removeParsers (... args)
53685
+ {
53686
+ this .#parsers = this .#parsers .filter (parser => !args .includes (parser));
53687
+ }
53688
+
53689
+ static getParsers ()
53690
+ {
53691
+ return this .#parsers .slice ();
53692
+ }
53693
+
53694
+ /**
53695
+ * @deprecated Use `GoldenGate.add/remove/getParsers`.
53696
+ */
53697
+ static get Parser () { return this .#parsers; }
53658
53698
 
53659
- Object .assign (Object .setPrototypeOf (GoldenGate .prototype, Parser_X3DParser .prototype),
53660
- {
53661
53699
  parseIntoScene (x3dSyntax, resolve, reject)
53662
53700
  {
53663
- for (const Parser of GoldenGate .Parser)
53701
+ for (const Parser of GoldenGate .#parsers)
53664
53702
  {
53665
53703
  try
53666
53704
  {
@@ -53695,7 +53733,8 @@ Object .assign (Object .setPrototypeOf (GoldenGate .prototype, Parser_X3DParser
53695
53733
  throw new Error ("Couldn't parse X3D. No suitable file handler found for 'data:' URL.");
53696
53734
  else
53697
53735
  throw new Error (`Couldn't parse X3D. No suitable file handler found for '${this .getScene () .worldURL}'.`);
53698
- },
53736
+ }
53737
+
53699
53738
  getInput (encoding, x3dSyntax)
53700
53739
  {
53701
53740
  if (Array .isArray (encoding))
@@ -53704,16 +53743,17 @@ Object .assign (Object .setPrototypeOf (GoldenGate .prototype, Parser_X3DParser
53704
53743
  }
53705
53744
  else
53706
53745
  {
53707
- if (this .inputs .has (encoding))
53708
- return this .inputs .get (encoding);
53746
+ if (this .#inputs .has (encoding))
53747
+ return this .#inputs .get (encoding);
53709
53748
 
53710
53749
  const input = this .createInput (encoding, x3dSyntax);
53711
53750
 
53712
- this .inputs .set (encoding, input);
53751
+ this .#inputs .set (encoding, input);
53713
53752
 
53714
53753
  return input;
53715
53754
  }
53716
- },
53755
+ }
53756
+
53717
53757
  createInput (encoding, x3dSyntax)
53718
53758
  {
53719
53759
  try
@@ -53734,22 +53774,8 @@ Object .assign (Object .setPrototypeOf (GoldenGate .prototype, Parser_X3DParser
53734
53774
  {
53735
53775
  return undefined;
53736
53776
  }
53737
- },
53738
- });
53739
-
53740
- GoldenGate .Parser = [
53741
- Parser_SVGParser,
53742
- Parser_XMLParser,
53743
- Parser_GLTF2Parser,
53744
- Parser_GLB2Parser,
53745
- Parser_JSONParser,
53746
- Parser_VRMLParser,
53747
- Parser_OBJParser,
53748
- Parser_STLAParser,
53749
- Parser_STLBParser,
53750
- Parser_PLYAParser,
53751
- Parser_PLYBParser,
53752
- ];
53777
+ }
53778
+ }
53753
53779
 
53754
53780
  const GoldenGate_default_ = GoldenGate;
53755
53781
  ;
@@ -53938,7 +53964,7 @@ const Plane3_default_ = Plane3;
53938
53964
  x_ite_Namespace .add ("Plane3", "standard/Math/Geometry/Plane3", Plane3_default_);
53939
53965
  /* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
53940
53966
  ;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
53941
- /* provided dependency */ var Triangle3_libtess = __webpack_require__(979);
53967
+ /* provided dependency */ var Triangle3_libtess = __webpack_require__(803);
53942
53968
  /*******************************************************************************
53943
53969
  *
53944
53970
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -62467,7 +62493,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
62467
62493
  x_ite_Namespace .add ("X3DTexture2DNode", "x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
62468
62494
  /* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
62469
62495
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
62470
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(250);
62496
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(418);
62471
62497
  /*******************************************************************************
62472
62498
  *
62473
62499
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -62616,7 +62642,7 @@ Object .assign (Object .setPrototypeOf (ImageTexture .prototype, Texturing_X3DTe
62616
62642
  if (DEVELOPMENT)
62617
62643
  {
62618
62644
  if (this .URL .protocol !== "data:")
62619
- console .info (`Done loading image texture '${decodeURI (this .URL .href)}'`);
62645
+ console .info (`Done loading image texture '${decodeURI (this .URL .href)}'.`);
62620
62646
  }
62621
62647
 
62622
62648
  try
@@ -62640,7 +62666,7 @@ Object .assign (Object .setPrototypeOf (ImageTexture .prototype, Texturing_X3DTe
62640
62666
  if (DEVELOPMENT)
62641
62667
  {
62642
62668
  if (this .URL .protocol !== "data:")
62643
- console .info (`Done loading image texture '${decodeURI (this .URL .href)}'`);
62669
+ console .info (`Done loading image texture '${decodeURI (this .URL .href)}'.`);
62644
62670
  }
62645
62671
 
62646
62672
  try
@@ -62658,9 +62684,7 @@ Object .assign (Object .setPrototypeOf (ImageTexture .prototype, Texturing_X3DTe
62658
62684
  canvas = document .createElement ("canvas"),
62659
62685
  cx = canvas .getContext ("2d", { willReadFrequently: true });
62660
62686
 
62661
- let
62662
- width = image .width,
62663
- height = image .height;
62687
+ let { width, height } = image;
62664
62688
 
62665
62689
  if (!(Math_Algorithm .isPowerOfTwo (width) && Math_Algorithm .isPowerOfTwo (height)))
62666
62690
  {
@@ -66051,7 +66075,7 @@ const X3DWorld_default_ = X3DWorld;
66051
66075
  x_ite_Namespace .add ("X3DWorld", "x_ite/Execution/X3DWorld", X3DWorld_default_);
66052
66076
  /* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
66053
66077
  ;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
66054
- /* provided dependency */ var FileLoader_$ = __webpack_require__(250);
66078
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(418);
66055
66079
  /*******************************************************************************
66056
66080
  *
66057
66081
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66218,7 +66242,7 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
66218
66242
  if (DEVELOPMENT)
66219
66243
  {
66220
66244
  if (this .URL .protocol !== "data:")
66221
- console .info (`Done loading scene '${decodeURI (this .URL .href)}'`);
66245
+ console .info (`Done loading scene '${decodeURI (this .URL .href)}'.`);
66222
66246
  }
66223
66247
  },
66224
66248
  createX3DFromURL (url, parameter, callback, bindViewpoint, foreign)
@@ -66247,7 +66271,7 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
66247
66271
  this .loadDocumentAsync (this .url .shift ())
66248
66272
  .catch (this .loadDocumentError .bind (this));
66249
66273
  },
66250
- loadDocumentAsync: async function (url)
66274
+ async loadDocumentAsync (url)
66251
66275
  {
66252
66276
  if (url .length === 0)
66253
66277
  {
@@ -66985,7 +67009,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
66985
67009
  x_ite_Namespace .add ("ProtoDeclarationArray", "x_ite/Prototype/ProtoDeclarationArray", ProtoDeclarationArray_default_);
66986
67010
  /* harmony default export */ const Prototype_ProtoDeclarationArray = (ProtoDeclarationArray_default_);
66987
67011
  ;// CONCATENATED MODULE: ./src/x_ite/Routing/X3DRoute.js
66988
- /* provided dependency */ var X3DRoute_$ = __webpack_require__(250);
67012
+ /* provided dependency */ var X3DRoute_$ = __webpack_require__(418);
66989
67013
  /*******************************************************************************
66990
67014
  *
66991
67015
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -90136,7 +90160,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
90136
90160
  x_ite_Namespace .add ("X3DShaderNode", "x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
90137
90161
  /* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
90138
90162
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
90139
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(250);
90163
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(418);
90140
90164
  /*******************************************************************************
90141
90165
  *
90142
90166
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -93663,13 +93687,11 @@ varying float depth;
93663
93687
  #endif
93664
93688
  #pragma X3D include "PointSize.glsl"
93665
93689
  void vertex_main(){vec4 position=x3d_ModelViewMatrix*x3d_Vertex;vertex=position.xyz;
93666
- #if defined(X3D_GEOMETRY_0D)
93667
- #if defined(X3D_STYLE_PROPERTIES)
93690
+ #if defined(X3D_GEOMETRY_0D)&&defined(X3D_STYLE_PROPERTIES)
93668
93691
  gl_PointSize=pointSize=getPointSize(vertex);
93669
93692
  #else
93670
93693
  gl_PointSize=1.0;
93671
93694
  #endif
93672
- #endif
93673
93695
  #if defined(X3D_FOG)&&defined(X3D_FOG_COORDS)
93674
93696
  fogDepth=x3d_FogDepth;
93675
93697
  #endif
@@ -94237,13 +94259,11 @@ vec4 x3d_TransformedVertex=getInstanceVertex(getSkinVertex(x3d_Vertex,x3d_Normal
94237
94259
  vec4 x3d_TransformedVertex=getInstanceVertex(getSkinVertex(x3d_Vertex,vec3(0.0)));
94238
94260
  #endif
94239
94261
  vec4 position=x3d_ModelViewMatrix*x3d_TransformedVertex;vertex=position.xyz;
94240
- #if defined(X3D_GEOMETRY_0D)
94241
- #if defined(X3D_STYLE_PROPERTIES)
94262
+ #if defined(X3D_GEOMETRY_0D)&&defined(X3D_STYLE_PROPERTIES)
94242
94263
  gl_PointSize=pointSize=getPointSize(vertex);
94243
94264
  #else
94244
94265
  gl_PointSize=1.0;
94245
94266
  #endif
94246
- #endif
94247
94267
  #if defined(X3D_GEOMETRY_1D)&&defined(X3D_STYLE_PROPERTIES)
94248
94268
  lengthSoFar=x3d_LineStipple.z;startPoint=x3d_LineStipple.xy;midPoint=x3d_LineStipple.xy;
94249
94269
  #endif
@@ -94316,12 +94336,10 @@ x_ite_Namespace .add ("Depth1.fs", "assets/shaders/webgl1/Depth1.fs", Depth1_fs_
94316
94336
  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;
94317
94337
  #pragma X3D include "common/PointSize.glsl"
94318
94338
  void main(){vec4 position=x3d_ModelViewMatrix*x3d_Vertex;vertex=position.xyz;
94319
- #if defined(X3D_GEOMETRY_0D)
94320
- #if defined(X3D_STYLE_PROPERTIES)
94321
- gl_PointSize=max(pointSize=getPointSize(vertex),2.0);
94339
+ #if defined(X3D_GEOMETRY_0D)&&defined(X3D_STYLE_PROPERTIES)
94340
+ gl_PointSize=pointSize=getPointSize(vertex);
94322
94341
  #else
94323
- gl_PointSize=2.0;
94324
- #endif
94342
+ gl_PointSize=1.0;
94325
94343
  #endif
94326
94344
  gl_Position=x3d_ProjectionMatrix*position;}`
94327
94345
  ;
@@ -94630,13 +94648,11 @@ varying vec4 texCoord0;
94630
94648
  #endif
94631
94649
  #pragma X3D include "common/PointSize.glsl"
94632
94650
  void main(){
94633
- #if defined(X3D_GEOMETRY_0D)
94634
- #if defined(X3D_STYLE_PROPERTIES)
94635
- gl_PointSize=max(pointSize=getPointSize(vertex),2.0);
94651
+ #if defined(X3D_GEOMETRY_0D)&&defined(X3D_STYLE_PROPERTIES)
94652
+ gl_PointSize=pointSize=max(getPointSize(vertex),2.0);
94636
94653
  #else
94637
94654
  gl_PointSize=2.0;
94638
94655
  #endif
94639
- #endif
94640
94656
  vec4 position=x3d_ModelViewMatrix*x3d_Vertex;vertex=position.xyz;normal=x3d_Normal;
94641
94657
  #if!defined(X3D_GEOMETRY_0D)&&!defined(X3D_GEOMETRY_1D)
94642
94658
  texCoord0=x3d_TexCoord0;
@@ -94729,12 +94745,10 @@ precision highp float;precision highp int;precision highp sampler2D;uniform mat4
94729
94745
  #pragma X3D include "common/Instancing.glsl"
94730
94746
  #pragma X3D include "common/PointSize.glsl"
94731
94747
  void main(){vec4 x3d_TransformedVertex=getInstanceVertex(getSkinVertex(x3d_Vertex,vec3(0.0)));vec4 position=x3d_ModelViewMatrix*x3d_TransformedVertex;vertex=position.xyz;
94732
- #if defined(X3D_GEOMETRY_0D)
94733
- #if defined(X3D_STYLE_PROPERTIES)
94734
- gl_PointSize=max(pointSize=getPointSize(vertex),2.0);
94748
+ #if defined(X3D_GEOMETRY_0D)&&defined(X3D_STYLE_PROPERTIES)
94749
+ gl_PointSize=pointSize=getPointSize(vertex);
94735
94750
  #else
94736
- gl_PointSize=2.0;
94737
- #endif
94751
+ gl_PointSize=1.0;
94738
94752
  #endif
94739
94753
  gl_Position=x3d_ProjectionMatrix*position;}`
94740
94754
  ;
@@ -95107,13 +95121,11 @@ void main(){
95107
95121
  lengthSoFar=x3d_LineStipple.z;startPoint=x3d_LineStipple.xy;midPoint=x3d_LineStipple.xy;
95108
95122
  #endif
95109
95123
  vec4 x3d_TransformedVertex=getInstanceVertex(getSkinVertex(x3d_Vertex,x3d_Normal));vec4 position=x3d_ModelViewMatrix*x3d_TransformedVertex;vertex=position.xyz;normal=getInstanceNormal(getSkinNormal(x3d_Normal));
95110
- #if defined(X3D_GEOMETRY_0D)
95111
- #if defined(X3D_STYLE_PROPERTIES)
95112
- gl_PointSize=max(pointSize=getPointSize(vertex),2.0);
95124
+ #if defined(X3D_GEOMETRY_0D)&&defined(X3D_STYLE_PROPERTIES)
95125
+ gl_PointSize=pointSize=max(getPointSize(vertex),2.0);
95113
95126
  #else
95114
95127
  gl_PointSize=2.0;
95115
95128
  #endif
95116
- #endif
95117
95129
  #if!defined(X3D_GEOMETRY_0D)&&!defined(X3D_GEOMETRY_1D)
95118
95130
  texCoord0=x3d_TexCoord0;
95119
95131
  #endif
@@ -95844,7 +95856,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
95844
95856
  x_ite_Namespace .add ("ShaderCompiler", "x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
95845
95857
  /* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
95846
95858
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
95847
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(250);
95859
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(418);
95848
95860
  /*******************************************************************************
95849
95861
  *
95850
95862
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -96501,7 +96513,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
96501
96513
  x_ite_Namespace .add ("X3DAppearanceNode", "x_ite/Components/Shape/X3DAppearanceNode", X3DAppearanceNode_default_);
96502
96514
  /* harmony default export */ const Shape_X3DAppearanceNode = (X3DAppearanceNode_default_);
96503
96515
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
96504
- /* provided dependency */ var Appearance_$ = __webpack_require__(250);
96516
+ /* provided dependency */ var Appearance_$ = __webpack_require__(418);
96505
96517
  /*******************************************************************************
96506
96518
  *
96507
96519
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -100985,7 +100997,7 @@ Object .assign (Object .setPrototypeOf (AudioClip .prototype, Sound_X3DSoundSour
100985
100997
  if (DEVELOPMENT)
100986
100998
  {
100987
100999
  if (URL .protocol !== "data:")
100988
- console .info (`Done loading audio '${decodeURI (URL .href)}'`);
101000
+ console .info (`Done loading audio '${decodeURI (URL .href)}'.`);
100989
101001
  }
100990
101002
  }
100991
101003
  });
@@ -101797,7 +101809,7 @@ Object .assign (Object .setPrototypeOf (BufferAudioSource .prototype, Sound_X3DS
101797
101809
  if (DEVELOPMENT)
101798
101810
  {
101799
101811
  if (URL .protocol !== "data:")
101800
- console .info (`Done loading audio '${decodeURI (URL .href)}'`);
101812
+ console .info (`Done loading audio '${decodeURI (URL .href)}'.`);
101801
101813
  }
101802
101814
  }
101803
101815
  });
@@ -105453,8 +105465,8 @@ const GifMedia_default_ = GifMedia;
105453
105465
  x_ite_Namespace .add ("GifMedia", "x_ite/Browser/Texturing/GifMedia", GifMedia_default_);
105454
105466
  /* harmony default export */ const Texturing_GifMedia = (GifMedia_default_);
105455
105467
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
105456
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(250);
105457
- /* provided dependency */ var SuperGif = __webpack_require__(389);
105468
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(418);
105469
+ /* provided dependency */ var SuperGif = __webpack_require__(517);
105458
105470
  /*******************************************************************************
105459
105471
  *
105460
105472
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -105634,7 +105646,7 @@ Object .assign (Object .setPrototypeOf (MovieTexture .prototype, Texturing_X3DTe
105634
105646
  if (DEVELOPMENT)
105635
105647
  {
105636
105648
  if (this .URL .protocol !== "data:")
105637
- console .info (`Done loading movie '${decodeURI (this .URL .href)}'`);
105649
+ console .info (`Done loading movie '${decodeURI (this .URL .href)}'.`);
105638
105650
  }
105639
105651
 
105640
105652
  this .video .off ("loadeddata");
@@ -108223,7 +108235,7 @@ const Context =
108223
108235
  // setTimeout (check);
108224
108236
  // });
108225
108237
  // },
108226
- // getBufferSubDataAsync: async function (target, buffer, srcByteOffset, dstBuffer, /* optional */ dstOffset, /* optional */ length)
108238
+ // async getBufferSubDataAsync (target, buffer, srcByteOffset, dstBuffer, /* optional */ dstOffset, /* optional */ length)
108227
108239
  // {
108228
108240
  // const sync = this .fenceSync (this .SYNC_GPU_COMMANDS_COMPLETE, 0);
108229
108241
 
@@ -108237,7 +108249,7 @@ const Context =
108237
108249
  // this .getBufferSubData (target, srcByteOffset, dstBuffer, dstOffset, length);
108238
108250
  // this .bindBuffer (target, null);
108239
108251
  // },
108240
- // readPixelsAsync: async function (x, y, w, h, format, type, dest, dstOffset)
108252
+ // async readPixelsAsync (x, y, w, h, format, type, dest, dstOffset)
108241
108253
  // {
108242
108254
  // const buffer = this .createBuffer ();
108243
108255
 
@@ -108862,7 +108874,7 @@ const gettext_default_ = (string) => locale .get (string) || string;
108862
108874
  x_ite_Namespace .add ("gettext", "locale/gettext", gettext_default_);
108863
108875
  /* harmony default export */ const gettext = (gettext_default_);
108864
108876
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
108865
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(250);
108877
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(418);
108866
108878
  /*******************************************************************************
108867
108879
  *
108868
108880
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109435,7 +109447,7 @@ const TextureQuality_default_ = TextureQuality;
109435
109447
  x_ite_Namespace .add ("TextureQuality", "x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
109436
109448
  /* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
109437
109449
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
109438
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(250);
109450
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(418);
109439
109451
  /*******************************************************************************
109440
109452
  *
109441
109453
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109552,6 +109564,7 @@ Object .assign (Object .setPrototypeOf (BrowserOptions .prototype, Base_X3DBaseN
109552
109564
  "ContentScale",
109553
109565
  "ContextMenu",
109554
109566
  "Debug",
109567
+ "LogarithmicDepthBuffer",
109555
109568
  "Multisampling",
109556
109569
  "Notifications",
109557
109570
  "OrderIndependentTransparency",
@@ -110029,7 +110042,7 @@ const RenderingProperties_default_ = RenderingProperties;
110029
110042
  x_ite_Namespace .add ("RenderingProperties", "x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
110030
110043
  /* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
110031
110044
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
110032
- /* provided dependency */ var Notification_$ = __webpack_require__(250);
110045
+ /* provided dependency */ var Notification_$ = __webpack_require__(418);
110033
110046
  /*******************************************************************************
110034
110047
  *
110035
110048
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -110152,8 +110165,8 @@ const Notification_default_ = Notification;
110152
110165
  x_ite_Namespace .add ("Notification", "x_ite/Browser/Core/Notification", Notification_default_);
110153
110166
  /* harmony default export */ const Core_Notification = (Notification_default_);
110154
110167
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
110155
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(226);
110156
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(250);
110168
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(626);
110169
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(418);
110157
110170
  /*******************************************************************************
110158
110171
  *
110159
110172
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -110244,12 +110257,12 @@ Object .assign (Object .setPrototypeOf (ContextMenu .prototype, Base_X3DBaseNode
110244
110257
 
110245
110258
  if (typeof this [_userMenu] === "function")
110246
110259
  {
110247
- const menu = this [_userMenu] ();
110260
+ const menu = this [_userMenu] (this .getBrowser ());
110248
110261
 
110249
110262
  if (ContextMenu_$.isPlainObject (menu))
110250
110263
  {
110251
110264
  for (const key in menu)
110252
- userMenu ["user-" + key] = menu [key];
110265
+ userMenu [`user-${key}`] = menu [key];
110253
110266
  }
110254
110267
  }
110255
110268
 
@@ -110480,6 +110493,11 @@ Object .assign (Object .setPrototypeOf (ContextMenu .prototype, Base_X3DBaseNode
110480
110493
  },
110481
110494
  },
110482
110495
  "separator2": "--------",
110496
+
110497
+ // Insert custom user menu items.
110498
+ ... this .createUserMenu (),
110499
+
110500
+ "separator3": "--------",
110483
110501
  "browser-timings": {
110484
110502
  name: gettext("Browser Timings"),
110485
110503
  type: "checkbox",
@@ -110502,53 +110520,47 @@ Object .assign (Object .setPrototypeOf (ContextMenu .prototype, Base_X3DBaseNode
110502
110520
  browser .getElement () .toggleFullScreen ();
110503
110521
  },
110504
110522
  },
110505
- "separator3": "--------",
110506
- },
110507
- };
110508
-
110509
- Object .assign (menu .items, this .createUserMenu ());
110510
-
110511
- Object .assign (menu .items, {
110512
- "separator4": "--------",
110513
- "world-info": {
110514
- name: gettext("Show World Info"),
110515
- className: "context-menu-icon x_ite-private-icon-world-info",
110516
- callback ()
110517
- {
110518
- browser .getShadow () .find (".x_ite-private-world-info") .remove ();
110523
+ "separator4": "--------",
110524
+ "world-info": {
110525
+ name: gettext("Show World Info"),
110526
+ className: "context-menu-icon x_ite-private-icon-world-info",
110527
+ callback ()
110528
+ {
110529
+ browser .getShadow () .find (".x_ite-private-world-info") .remove ();
110519
110530
 
110520
- const
110521
- priv = browser .getShadow () .find (".x_ite-private-browser"),
110522
- overlay = ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info-overlay") .appendTo (priv),
110523
- div = ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info") .appendTo (overlay),
110524
- worldInfo = browser .getExecutionContext () .getWorldInfos () [0],
110525
- title = worldInfo .title,
110526
- info = worldInfo .info;
110531
+ const
110532
+ priv = browser .getShadow () .find (".x_ite-private-browser"),
110533
+ overlay = ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info-overlay") .appendTo (priv),
110534
+ div = ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info") .appendTo (overlay),
110535
+ worldInfo = browser .getExecutionContext () .getWorldInfos () [0],
110536
+ title = worldInfo .title,
110537
+ info = worldInfo .info;
110527
110538
 
110528
- ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info-top") .text ("World Info") .appendTo (div);
110539
+ ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info-top") .text ("World Info") .appendTo (div);
110529
110540
 
110530
- if (title .length)
110531
- {
110532
- ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info-title") .text (title) .appendTo (div);
110533
- }
110541
+ if (title .length)
110542
+ {
110543
+ ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info-title") .text (title) .appendTo (div);
110544
+ }
110534
110545
 
110535
- for (const line of info)
110536
- {
110537
- ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info-info") .text (line) .appendTo (div);
110538
- }
110546
+ for (const line of info)
110547
+ {
110548
+ ContextMenu_$("<div></div>") .addClass ("x_ite-private-world-info-info") .text (line) .appendTo (div);
110549
+ }
110539
110550
 
110540
- overlay .on ("click", function () { overlay .remove (); });
110551
+ overlay .on ("click", function () { overlay .remove (); });
110552
+ },
110541
110553
  },
110542
- },
110543
- "about": {
110544
- name: gettext("About X_ITE"),
110545
- className: "context-menu-icon x_ite-private-icon-help-about",
110546
- callback ()
110547
- {
110548
- window .open (browser .getProviderURL ());
110554
+ "about": {
110555
+ name: gettext("About X_ITE"),
110556
+ className: "context-menu-icon x_ite-private-icon-help-about",
110557
+ callback ()
110558
+ {
110559
+ window .open (browser .getProviderURL ());
110560
+ },
110549
110561
  },
110550
110562
  },
110551
- });
110563
+ };
110552
110564
 
110553
110565
  if (ContextMenu_$.isEmptyObject (menu .items .viewpoints .items))
110554
110566
  delete menu .items ["viewpoints"];
@@ -112907,7 +112919,7 @@ const DataStorage_default_ = DataStorage;
112907
112919
  x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage_default_);
112908
112920
  /* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
112909
112921
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
112910
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(250);
112922
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(418);
112911
112923
  /*******************************************************************************
112912
112924
  *
112913
112925
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -112970,6 +112982,7 @@ x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage
112970
112982
 
112971
112983
 
112972
112984
 
112985
+
112973
112986
  const WEBGL_VERSION = 2;
112974
112987
 
112975
112988
  const
@@ -113231,6 +113244,12 @@ Object .assign (X3DCoreContext .prototype,
113231
113244
  this .setBrowserOption ("Debug", this .parseBooleanAttribute (newValue, false));
113232
113245
  break;
113233
113246
  }
113247
+ case "logarithmicDepthBuffer":
113248
+ case "logarithmicdepthbuffer":
113249
+ {
113250
+ this .setBrowserOption ("LogarithmicDepthBuffer", this .parseBooleanAttribute (newValue, false));
113251
+ break;
113252
+ }
113234
113253
  case "multisampling":
113235
113254
  {
113236
113255
  const samples = parseInt (newValue);
@@ -113337,7 +113356,7 @@ Object .assign (X3DCoreContext .prototype,
113337
113356
  {
113338
113357
  const url = new x_ite_Fields .MFString ();
113339
113358
 
113340
- url .fromString ("[" + urlCharacters + "]", this .getExecutionContext ());
113359
+ url .fromString (`[${urlCharacters}]`, this .getExecutionContext ());
113341
113360
 
113342
113361
  return url;
113343
113362
  }
@@ -113553,12 +113572,16 @@ Object .assign (X3DCoreContext .prototype,
113553
113572
  {
113554
113573
  event .preventDefault ();
113555
113574
 
113575
+ // Create viewpoint node.
113576
+
113556
113577
  const viewpoint = this .getActiveViewpoint ();
113557
113578
 
113558
113579
  if (!viewpoint)
113559
113580
  break;
113560
113581
 
113561
- const vp = this .getExecutionContext () .createNode (viewpoint .getTypeName ());
113582
+ const
113583
+ executionContext = this .getExecutionContext (),
113584
+ vp = executionContext .createNode (viewpoint .getTypeName ());
113562
113585
 
113563
113586
  switch (viewpoint .getTypeName ())
113564
113587
  {
@@ -113586,7 +113609,7 @@ Object .assign (X3DCoreContext .prototype,
113586
113609
 
113587
113610
  if (geoOrigin .getValue () && geoOrigin .getNodeTypeName () === "GeoOrigin")
113588
113611
  {
113589
- const go = this .getPrivateScene () .createNode ("GeoOrigin");
113612
+ const go = executionContext .createNode ("GeoOrigin");
113590
113613
 
113591
113614
  vp .geoOrigin = go;
113592
113615
  go .geoSystem = geoOrigin .geoSystem;
@@ -113603,11 +113626,13 @@ Object .assign (X3DCoreContext .prototype,
113603
113626
  }
113604
113627
  }
113605
113628
 
113606
- const options = { scene: this .getExecutionContext () };
113629
+ // Create text.
113630
+
113631
+ const options = x_ite_Features .ENVIRONMENT === "NODE" ? { } : { scene: executionContext };
113607
113632
 
113608
113633
  let text;
113609
113634
 
113610
- switch (this .getExecutionContext () .getEncoding ())
113635
+ switch (executionContext .getEncoding ())
113611
113636
  {
113612
113637
  case "ASCII":
113613
113638
  case "VRML": text = vp .toVRMLString (options); break;
@@ -113617,11 +113642,15 @@ Object .assign (X3DCoreContext .prototype,
113617
113642
 
113618
113643
  text += "\n";
113619
113644
 
113620
- this .copyToClipboard (text);
113621
- this .getNotification () ._string = gettext ("Viewpoint copied to clipboard.");
113645
+ // Copy to clipboard.
113622
113646
 
113623
- console .log ("Viewpoint copied to clipboard.");
113624
- console .debug (text);
113647
+ this .copyToClipboard (text) .then (() =>
113648
+ {
113649
+ this .getNotification () ._string = gettext ("Viewpoint copied to clipboard.");
113650
+
113651
+ console .log ("Viewpoint copied to clipboard.");
113652
+ console .debug (text);
113653
+ });
113625
113654
  }
113626
113655
 
113627
113656
  break;
@@ -113661,14 +113690,21 @@ Object .assign (X3DCoreContext .prototype,
113661
113690
  }
113662
113691
  }
113663
113692
  },
113664
- copyToClipboard (text)
113693
+ async copyToClipboard (text)
113665
113694
  {
113666
- // The textarea must be visible to make copy work.
113667
- const tmp = X3DCoreContext_$("<textarea></textarea>");
113668
- this .getShadow () .find (".x_ite-private-browser") .prepend (tmp);
113669
- tmp .text (text) .trigger ("select");
113670
- document .execCommand ("copy");
113671
- tmp .remove ();
113695
+ try
113696
+ {
113697
+ await navigator .clipboard .writeText (text);
113698
+ }
113699
+ catch
113700
+ {
113701
+ // The textarea must be visible to make copy work.
113702
+ const tmp = X3DCoreContext_$("<textarea></textarea>");
113703
+ this .getShadow () .find (".x_ite-private-browser") .prepend (tmp);
113704
+ tmp .text (text) .trigger ("select");
113705
+ document .execCommand ("copy");
113706
+ tmp .remove ();
113707
+ }
113672
113708
  },
113673
113709
  dispose ()
113674
113710
  {
@@ -115430,8 +115466,8 @@ const X3DViewer_default_ = X3DViewer;
115430
115466
  x_ite_Namespace .add ("X3DViewer", "x_ite/Browser/Navigation/X3DViewer", X3DViewer_default_);
115431
115467
  /* harmony default export */ const Navigation_X3DViewer = (X3DViewer_default_);
115432
115468
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
115433
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(496);
115434
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(250);
115469
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(408);
115470
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(418);
115435
115471
  /*******************************************************************************
115436
115472
  *
115437
115473
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116303,8 +116339,8 @@ const ExamineViewer_default_ = ExamineViewer;
116303
116339
  x_ite_Namespace .add ("ExamineViewer", "x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
116304
116340
  /* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
116305
116341
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
116306
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(496);
116307
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(250);
116342
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(408);
116343
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(418);
116308
116344
  /*******************************************************************************
116309
116345
  *
116310
116346
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -117313,8 +117349,8 @@ const FlyViewer_default_ = FlyViewer;
117313
117349
  x_ite_Namespace .add ("FlyViewer", "x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
117314
117350
  /* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
117315
117351
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
117316
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(496);
117317
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(250);
117352
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(408);
117353
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(418);
117318
117354
  /*******************************************************************************
117319
117355
  *
117320
117356
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -117645,8 +117681,8 @@ const NoneViewer_default_ = NoneViewer;
117645
117681
  x_ite_Namespace .add ("NoneViewer", "x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
117646
117682
  /* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
117647
117683
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
117648
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(496);
117649
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(250);
117684
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(408);
117685
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(418);
117650
117686
  /*******************************************************************************
117651
117687
  *
117652
117688
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118784,8 +118820,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
118784
118820
  x_ite_Namespace .add ("X3DPickingContext", "x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
118785
118821
  /* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
118786
118822
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
118787
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(496);
118788
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(250);
118823
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(408);
118824
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(418);
118789
118825
  /*******************************************************************************
118790
118826
  *
118791
118827
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -120089,7 +120125,7 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
120089
120125
  x_ite_Namespace .add ("MultiSampleFrameBuffer", "x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
120090
120126
  /* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
120091
120127
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
120092
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(250);
120128
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(418);
120093
120129
  /*******************************************************************************
120094
120130
  *
120095
120131
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -120511,6 +120547,7 @@ x_ite_Namespace .add ("X3DScriptingContext", "x_ite/Browser/Scripting/X3DScripti
120511
120547
 
120512
120548
 
120513
120549
 
120550
+
120514
120551
  const
120515
120552
  _wireframe = Symbol (),
120516
120553
  _primitiveModes = Symbol (),
@@ -120612,8 +120649,8 @@ Object .assign (X3DShadersContext .prototype,
120612
120649
  },
120613
120650
  createShader (name, vs, fs = vs, options = [ ], uniformNames = [ ], transformFeedbackVaryings = [ ])
120614
120651
  {
120615
- if (this .getBrowserOption ("Debug"))
120616
- console .info (`Initializing ${name}Shader`);
120652
+ if (DEVELOPMENT)
120653
+ console .info (`Initializing ${name}Shader.`);
120617
120654
 
120618
120655
  const
120619
120656
  gl = this .getContext (),
@@ -121037,7 +121074,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
121037
121074
  x_ite_Namespace .add ("X3DSoundContext", "x_ite/Browser/Sound/X3DSoundContext", X3DSoundContext_default_);
121038
121075
  /* harmony default export */ const Sound_X3DSoundContext = (X3DSoundContext_default_);
121039
121076
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
121040
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(250);
121077
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(418);
121041
121078
  const KTXDecoder_default_ = class KTXDecoder
121042
121079
  {
121043
121080
  constructor (gl, externalKtxlib, scriptDir)
@@ -122591,7 +122628,7 @@ const Components_default_ = Components;
122591
122628
  x_ite_Namespace .add ("Components", "x_ite/Components", Components_default_);
122592
122629
  /* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
122593
122630
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
122594
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(250);
122631
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(418);
122595
122632
  /*******************************************************************************
122596
122633
  * MIT License
122597
122634
  *
@@ -122748,7 +122785,7 @@ class DOMIntegration
122748
122785
 
122749
122786
  const
122750
122787
  parentNode = element .parentNode,
122751
- node = DOMIntegration_$.data (parentNode, "node");
122788
+ node = DOMIntegration_$.data (parentNode, "node");
122752
122789
 
122753
122790
  if (node)
122754
122791
  {
@@ -122965,6 +123002,10 @@ class DOMIntegration
122965
123002
  if (!node)
122966
123003
  return;
122967
123004
 
123005
+ // Unfortunately `getEventListeners` is not available all the time.
123006
+ // if (!getEventListeners (element) .hasOwnProperty (field .getName ()))
123007
+ // return;
123008
+
122968
123009
  const event = new CustomEvent (field .getName (),
122969
123010
  {
122970
123011
  detail: {
@@ -123724,8 +123765,138 @@ const SupportedProfiles_default_ = SupportedProfiles;
123724
123765
 
123725
123766
  x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
123726
123767
  /* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
123768
+ ;// CONCATENATED MODULE: ./src/x_ite/Configuration/FieldTypesArray.js
123769
+ /*******************************************************************************
123770
+ *
123771
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
123772
+ *
123773
+ * Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
123774
+ *
123775
+ * All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
123776
+ *
123777
+ * The copyright notice above does not evidence any actual of intended
123778
+ * publication of such source code, and is an unpublished work by create3000.
123779
+ * This material contains CONFIDENTIAL INFORMATION that is the property of
123780
+ * create3000.
123781
+ *
123782
+ * No permission is granted to copy, distribute, or create derivative works from
123783
+ * the contents of this software, in whole or in part, without the prior written
123784
+ * permission of create3000.
123785
+ *
123786
+ * NON-MILITARY USE ONLY
123787
+ *
123788
+ * All create3000 software are effectively free software with a non-military use
123789
+ * restriction. It is free. Well commented source is provided. You may reuse the
123790
+ * source in any way you please with the exception anything that uses it must be
123791
+ * marked to indicate is contains 'non-military use only' components.
123792
+ *
123793
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
123794
+ *
123795
+ * Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
123796
+ *
123797
+ * This file is part of the X_ITE Project.
123798
+ *
123799
+ * X_ITE is free software: you can redistribute it and/or modify it under the
123800
+ * terms of the GNU General Public License version 3 only, as published by the
123801
+ * Free Software Foundation.
123802
+ *
123803
+ * X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
123804
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
123805
+ * A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
123806
+ * details (a copy is included in the LICENSE file that accompanied this code).
123807
+ *
123808
+ * You should have received a copy of the GNU General Public License version 3
123809
+ * along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
123810
+ * copy of the GPLv3 License.
123811
+ *
123812
+ * For Silvio, Joy and Adi.
123813
+ *
123814
+ ******************************************************************************/
123815
+
123816
+
123817
+
123818
+ function FieldTypesArray (values = [ ])
123819
+ {
123820
+ return Base_X3DInfoArray .call (this, Array .from (values, value => [value .typeName, value]), Function);
123821
+ }
123822
+
123823
+ Object .setPrototypeOf (FieldTypesArray .prototype, Base_X3DInfoArray .prototype);
123824
+
123825
+ for (const key of Object .keys (FieldTypesArray .prototype))
123826
+ Object .defineProperty (FieldTypesArray .prototype, key, { enumerable: false });
123827
+
123828
+ Object .defineProperties (FieldTypesArray,
123829
+ {
123830
+ typeName:
123831
+ {
123832
+ value: "FieldTypesArray",
123833
+ enumerable: true,
123834
+ },
123835
+ });
123836
+
123837
+ const FieldTypesArray_default_ = FieldTypesArray;
123838
+ ;
123839
+
123840
+ x_ite_Namespace .add ("FieldTypesArray", "x_ite/Configuration/FieldTypesArray", FieldTypesArray_default_);
123841
+ /* harmony default export */ const Configuration_FieldTypesArray = (FieldTypesArray_default_);
123842
+ ;// CONCATENATED MODULE: ./src/x_ite/Configuration/FieldTypes.js
123843
+ /*******************************************************************************
123844
+ *
123845
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
123846
+ *
123847
+ * Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
123848
+ *
123849
+ * All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
123850
+ *
123851
+ * The copyright notice above does not evidence any actual of intended
123852
+ * publication of such source code, and is an unpublished work by create3000.
123853
+ * This material contains CONFIDENTIAL INFORMATION that is the property of
123854
+ * create3000.
123855
+ *
123856
+ * No permission is granted to copy, distribute, or create derivative works from
123857
+ * the contents of this software, in whole or in part, without the prior written
123858
+ * permission of create3000.
123859
+ *
123860
+ * NON-MILITARY USE ONLY
123861
+ *
123862
+ * All create3000 software are effectively free software with a non-military use
123863
+ * restriction. It is free. Well commented source is provided. You may reuse the
123864
+ * source in any way you please with the exception anything that uses it must be
123865
+ * marked to indicate is contains 'non-military use only' components.
123866
+ *
123867
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
123868
+ *
123869
+ * Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
123870
+ *
123871
+ * This file is part of the X_ITE Project.
123872
+ *
123873
+ * X_ITE is free software: you can redistribute it and/or modify it under the
123874
+ * terms of the GNU General Public License version 3 only, as published by the
123875
+ * Free Software Foundation.
123876
+ *
123877
+ * X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
123878
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
123879
+ * A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
123880
+ * details (a copy is included in the LICENSE file that accompanied this code).
123881
+ *
123882
+ * You should have received a copy of the GNU General Public License version 3
123883
+ * along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
123884
+ * copy of the GPLv3 License.
123885
+ *
123886
+ * For Silvio, Joy and Adi.
123887
+ *
123888
+ ******************************************************************************/
123889
+
123890
+
123891
+
123892
+
123893
+ const FieldTypes_default_ = new Configuration_FieldTypesArray (Object .values (x_ite_Fields));
123894
+ ;
123895
+
123896
+ x_ite_Namespace .add ("FieldTypes", "x_ite/Configuration/FieldTypes", FieldTypes_default_);
123897
+ /* harmony default export */ const FieldTypes = (FieldTypes_default_);
123727
123898
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
123728
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(250);
123899
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(418);
123729
123900
  /*******************************************************************************
123730
123901
  *
123731
123902
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -123795,6 +123966,7 @@ x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfile
123795
123966
 
123796
123967
 
123797
123968
 
123969
+
123798
123970
 
123799
123971
 
123800
123972
  const
@@ -123803,6 +123975,7 @@ const
123803
123975
  _supportedComponents = Symbol (),
123804
123976
  _concreteNodes = Symbol (),
123805
123977
  _abstractNodes = Symbol (),
123978
+ _fieldTypes = Symbol (),
123806
123979
  _reject = Symbol (),
123807
123980
  _fileLoader = Symbol (),
123808
123981
  _browserCallbacks = Symbol (),
@@ -123824,6 +123997,7 @@ function X3DBrowser (element)
123824
123997
  this [_supportedComponents] = Configuration_SupportedComponents .copy ();
123825
123998
  this [_concreteNodes] = ConcreteNodes .copy ();
123826
123999
  this [_abstractNodes] = AbstractNodes .copy ();
124000
+ this [_fieldTypes] = FieldTypes .copy ();
123827
124001
  this [_console] = document .getElementsByClassName ("x_ite-console");
123828
124002
 
123829
124003
  this [_browserCallbacks] = new Map ([
@@ -124025,7 +124199,10 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
124025
124199
 
124026
124200
  for (const arg of args)
124027
124201
  {
124028
- if (arg instanceof Configuration_ProfileInfo)
124202
+ if (arg instanceof Execution_X3DScene)
124203
+ component .push (... (arg .profile ?? this .getProfile ("Full")) .components, ... arg .components);
124204
+
124205
+ else if (arg instanceof Configuration_ProfileInfo)
124029
124206
  component .push (... arg .components);
124030
124207
 
124031
124208
  else if (arg instanceof Configuration_ComponentInfoArray)
@@ -124035,7 +124212,7 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
124035
124212
  component .push (arg);
124036
124213
 
124037
124214
  else if (typeof arg === "string")
124038
- component .push (this [_supportedComponents] .get (arg))
124215
+ component .push (this .getComponent (arg))
124039
124216
  }
124040
124217
 
124041
124218
  // Load array of component names.
@@ -124092,6 +124269,19 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
124092
124269
  {
124093
124270
  return this [_abstractNodes];
124094
124271
  },
124272
+ getFieldType (typeName)
124273
+ {
124274
+ const fieldType = this [_fieldTypes] .get (String (typeName));
124275
+
124276
+ if (fieldType)
124277
+ return fieldType;
124278
+
124279
+ throw new Error (`Field type '${typeName}' does not exists.`);
124280
+ },
124281
+ getFieldTypes ()
124282
+ {
124283
+ return this [_fieldTypes];
124284
+ },
124095
124285
  createScene (profile, ... components)
124096
124286
  {
124097
124287
  const scene = new Execution_X3DScene (this);
@@ -124179,7 +124369,6 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
124179
124369
  return;
124180
124370
 
124181
124371
  loadCount .removeInterest ("checkLoadCount", this);
124182
- this .touch (0, 0);
124183
124372
  this .setBrowserLoading (false);
124184
124373
  this .initialized () .set (this .getCurrentTime ());
124185
124374
  this .initialized () .processInterests ();
@@ -124759,34 +124948,27 @@ Object .defineProperties (X3DBrowser .prototype,
124759
124948
  },
124760
124949
  supportedProfiles:
124761
124950
  {
124762
- get ()
124763
- {
124764
- return this [_supportedProfiles];
124765
- },
124951
+ get: X3DBrowser .prototype .getSupportedProfiles,
124766
124952
  enumerable: true,
124767
124953
  },
124768
124954
  supportedComponents:
124769
124955
  {
124770
- get ()
124771
- {
124772
- return this [_supportedComponents];
124773
- },
124956
+ get: X3DBrowser .prototype .getSupportedComponents,
124774
124957
  enumerable: true,
124775
124958
  },
124776
124959
  concreteNodes:
124777
124960
  {
124778
- get ()
124779
- {
124780
- return this [_concreteNodes];
124781
- },
124961
+ get: X3DBrowser .prototype .getConcreteNodes,
124782
124962
  enumerable: true,
124783
124963
  },
124784
124964
  abstractNodes:
124785
124965
  {
124786
- get ()
124787
- {
124788
- return this [_abstractNodes];
124789
- },
124966
+ get: X3DBrowser .prototype .getAbstractNodes,
124967
+ enumerable: true,
124968
+ },
124969
+ fieldTypes:
124970
+ {
124971
+ get: X3DBrowser .prototype .getFieldTypes,
124790
124972
  enumerable: true,
124791
124973
  },
124792
124974
  element:
@@ -124816,7 +124998,7 @@ const X3DBrowser_default_ = X3DBrowser;
124816
124998
  x_ite_Namespace .add ("X3DBrowser", "x_ite/Browser/X3DBrowser", X3DBrowser_default_);
124817
124999
  /* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
124818
125000
  ;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
124819
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(250);
125001
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(418);
124820
125002
  /*******************************************************************************
124821
125003
  *
124822
125004
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -124903,6 +125085,8 @@ class X3DCanvasElement extends HTMLElement
124903
125085
  "contextMenu",
124904
125086
  "contextmenu",
124905
125087
  "debug",
125088
+ "logarithmicDepthBuffer",
125089
+ "logarithmicdepthbuffer",
124906
125090
  "multisampling",
124907
125091
  "notifications",
124908
125092
  "oninitialized",
@@ -124953,8 +125137,8 @@ const X3DCanvasElement_default_ = X3DCanvasElement;
124953
125137
  x_ite_Namespace .add ("X3DCanvasElement", "x_ite/X3DCanvasElement", X3DCanvasElement_default_);
124954
125138
  /* harmony default export */ const x_ite_X3DCanvasElement = (X3DCanvasElement_default_);
124955
125139
  ;// CONCATENATED MODULE: ./src/lib/jquery.js
124956
- /* provided dependency */ var jquery_$ = __webpack_require__(250);
124957
- /* provided dependency */ var pako = __webpack_require__(82);
125140
+ /* provided dependency */ var jquery_$ = __webpack_require__(418);
125141
+ /* provided dependency */ var pako = __webpack_require__(674);
124958
125142
  Object .assign (jquery_$,
124959
125143
  {
124960
125144
  decodeText (input)
@@ -125031,14 +125215,14 @@ const jquery_default_ = jquery_$;
125031
125215
  x_ite_Namespace .add ("jquery", "lib/jquery", jquery_default_);
125032
125216
  /* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
125033
125217
  ;// CONCATENATED MODULE: ./src/lib/libtess.js
125034
- /* provided dependency */ var libtess_libtess = __webpack_require__(979);
125218
+ /* provided dependency */ var libtess_libtess = __webpack_require__(803);
125035
125219
  const libtess_default_ = libtess_libtess;
125036
125220
  ;
125037
125221
 
125038
125222
  x_ite_Namespace .add ("libtess", "lib/libtess", libtess_default_);
125039
125223
  /* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
125040
125224
  ;// CONCATENATED MODULE: ./src/x_ite/X3D.js
125041
- /* provided dependency */ var X3D_$ = __webpack_require__(250);
125225
+ /* provided dependency */ var X3D_$ = __webpack_require__(418);
125042
125226
  /*******************************************************************************
125043
125227
  *
125044
125228
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -125346,7 +125530,7 @@ Object .assign (X3D,
125346
125530
 
125347
125531
  // Assign X3D to global namespace.
125348
125532
 
125349
- window [Symbol .for ("X_ITE.X3D-9.6.1")] = x_ite_X3D;
125533
+ window [Symbol .for ("X_ITE.X3D-9.6.3")] = x_ite_X3D;
125350
125534
 
125351
125535
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
125352
125536