x_ite 9.2.1 → 9.2.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 (47) hide show
  1. package/dist/assets/components/Annotation.js +13 -13
  2. package/dist/assets/components/Annotation.min.js +1 -1
  3. package/dist/assets/components/CADGeometry.js +14 -14
  4. package/dist/assets/components/CADGeometry.min.js +1 -1
  5. package/dist/assets/components/CubeMapTexturing.js +25 -25
  6. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  7. package/dist/assets/components/DIS.js +13 -13
  8. package/dist/assets/components/DIS.min.js +1 -1
  9. package/dist/assets/components/EventUtilities.js +9 -9
  10. package/dist/assets/components/EventUtilities.min.js +1 -1
  11. package/dist/assets/components/Geometry2D.js +19 -19
  12. package/dist/assets/components/Geometry2D.min.js +1 -1
  13. package/dist/assets/components/Geospatial.js +61 -52
  14. package/dist/assets/components/Geospatial.min.js +1 -1
  15. package/dist/assets/components/HAnim.js +23 -23
  16. package/dist/assets/components/HAnim.min.js +1 -1
  17. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  18. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  19. package/dist/assets/components/Layout.js +27 -27
  20. package/dist/assets/components/Layout.min.js +1 -1
  21. package/dist/assets/components/NURBS.js +23 -23
  22. package/dist/assets/components/NURBS.min.js +1 -1
  23. package/dist/assets/components/ParticleSystems.js +23 -23
  24. package/dist/assets/components/ParticleSystems.min.js +1 -1
  25. package/dist/assets/components/Picking.js +18 -18
  26. package/dist/assets/components/Picking.min.js +1 -1
  27. package/dist/assets/components/RigidBodyPhysics.js +17 -17
  28. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  29. package/dist/assets/components/Scripting.js +38 -38
  30. package/dist/assets/components/Scripting.min.js +1 -1
  31. package/dist/assets/components/Text.js +24 -24
  32. package/dist/assets/components/Text.min.js +1 -1
  33. package/dist/assets/components/TextureProjection.js +15 -15
  34. package/dist/assets/components/TextureProjection.min.js +1 -1
  35. package/dist/assets/components/Texturing3D.js +30 -30
  36. package/dist/assets/components/Texturing3D.min.js +1 -1
  37. package/dist/assets/components/VolumeRendering.js +19 -19
  38. package/dist/assets/components/VolumeRendering.min.js +1 -1
  39. package/dist/assets/components/X_ITE.js +8 -8
  40. package/dist/assets/components/X_ITE.min.js +1 -1
  41. package/dist/x_ite.css +1 -1
  42. package/dist/x_ite.js +317 -273
  43. package/dist/x_ite.min.js +1 -1
  44. package/dist/x_ite.min.mjs +1 -1
  45. package/dist/x_ite.mjs +317 -273
  46. package/dist/x_ite.zip +0 -0
  47. package/package.json +3 -3
package/dist/x_ite.mjs CHANGED
@@ -1,9 +1,9 @@
1
- /* X_ITE v9.2.1 */var __webpack_modules__ = ({
1
+ /* X_ITE v9.2.3 */var __webpack_modules__ = ({
2
2
 
3
- /***/ 864:
3
+ /***/ 132:
4
4
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
5
5
 
6
- /* provided dependency */ var jQuery = __webpack_require__(548);
6
+ /* provided dependency */ var jQuery = __webpack_require__(751);
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
- /***/ 642:
202
+ /***/ 983:
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__(548)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
216
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(751)], __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
- /***/ 548:
427
+ /***/ 751:
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
- /***/ 527:
11151
+ /***/ 641:
11152
11152
  /***/ ((module) => {
11153
11153
 
11154
11154
  /**
@@ -15927,7 +15927,7 @@ if (true) {
15927
15927
 
15928
15928
  /***/ }),
15929
15929
 
15930
- /***/ 63:
15930
+ /***/ 104:
15931
15931
  /***/ (function(__unused_webpack_module, exports) {
15932
15932
 
15933
15933
 
@@ -19172,7 +19172,7 @@ if (true) {
19172
19172
 
19173
19173
  /***/ }),
19174
19174
 
19175
- /***/ 258:
19175
+ /***/ 851:
19176
19176
  /***/ (function(module, exports) {
19177
19177
 
19178
19178
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
@@ -20299,7 +20299,7 @@ Object .defineProperty (Namespace, "add",
20299
20299
  }
20300
20300
  else
20301
20301
  {
20302
- const X3D = window [Symbol .for ("X_ITE.X3D-9.2.1")];
20302
+ const X3D = window [Symbol .for ("X_ITE.X3D-9.2.3")];
20303
20303
 
20304
20304
  if (X3D)
20305
20305
  X3D [name] = module;
@@ -20769,18 +20769,22 @@ const getUniqueName = function (map, name = "")
20769
20769
 
20770
20770
  name = name .replace (/_\d+$/, "");
20771
20771
 
20772
+ if (name && !map .has (name))
20773
+ return name;
20774
+
20772
20775
  let
20773
- newName = name,
20776
+ newName = "",
20774
20777
  lo = 1,
20775
20778
  hi = 1;
20776
20779
 
20777
- while (map .has (newName) || !newName)
20780
+ do
20778
20781
  {
20779
20782
  lo = hi;
20780
20783
  hi <<= 1;
20781
20784
 
20782
20785
  newName = `${name}_${lo}`;
20783
20786
  }
20787
+ while (map .has (newName));
20784
20788
 
20785
20789
  lo >>>= 1;
20786
20790
  hi >>>= 1;
@@ -20893,6 +20897,7 @@ function Generator ({ style = "TIDY", indent = "", precision = 7, doublePrecisio
20893
20897
 
20894
20898
  this .executionContextStack = [ ];
20895
20899
  this .importedNodesIndex = new Map ();
20900
+ this .importedNames = new Map ();
20896
20901
  this .exportedNodesIndex = new Map ();
20897
20902
  this .nodes = new Set ();
20898
20903
  this .names = new Map ();
@@ -21205,7 +21210,7 @@ Object .assign (Generator .prototype,
21205
21210
  if (baseNode .hasRoutes ())
21206
21211
  return true;
21207
21212
 
21208
- const executionContext = baseNode .getExecutionContext ();
21213
+ const executionContext = this .ExecutionContext ();
21209
21214
 
21210
21215
  if (this .importedNodesIndex .get (executionContext) ?.has (baseNode))
21211
21216
  return true;
@@ -21215,15 +21220,19 @@ Object .assign (Generator .prototype,
21215
21220
 
21216
21221
  return false;
21217
21222
  },
21218
- ImportedName (name)
21223
+ ImportedName (importedNode)
21219
21224
  {
21225
+ if (this .importedNames .has (importedNode))
21226
+ return this .importedNames .get (importedNode);
21227
+
21220
21228
  const
21221
21229
  names = this .names .get (this .ExecutionContext ()),
21222
- newName = getUniqueName (names, name);
21230
+ newName = getUniqueName (names, importedNode .getImportedName ());
21223
21231
 
21224
21232
  // Add to indices.
21225
21233
 
21226
21234
  names .add (newName);
21235
+ this .importedNames .set (importedNode, newName);
21227
21236
 
21228
21237
  return newName;
21229
21238
  },
@@ -21380,105 +21389,6 @@ const Generator_default_ = Generator;
21380
21389
 
21381
21390
  x_ite_Namespace .add ("Generator", "x_ite/InputOutput/Generator", Generator_default_);
21382
21391
  /* harmony default export */ const InputOutput_Generator = (Generator_default_);
21383
- ;// CONCATENATED MODULE: ./src/standard/Utility/MapUtilities.js
21384
- /*******************************************************************************
21385
- *
21386
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
21387
- *
21388
- * Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
21389
- *
21390
- * All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
21391
- *
21392
- * The copyright notice above does not evidence any actual of intended
21393
- * publication of such source code, and is an unpublished work by create3000.
21394
- * This material contains CONFIDENTIAL INFORMATION that is the property of
21395
- * create3000.
21396
- *
21397
- * No permission is granted to copy, distribute, or create derivative works from
21398
- * the contents of this software, in whole or in part, without the prior written
21399
- * permission of create3000.
21400
- *
21401
- * NON-MILITARY USE ONLY
21402
- *
21403
- * All create3000 software are effectively free software with a non-military use
21404
- * restriction. It is free. Well commented source is provided. You may reuse the
21405
- * source in any way you please with the exception anything that uses it must be
21406
- * marked to indicate is contains 'non-military use only' components.
21407
- *
21408
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
21409
- *
21410
- * Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
21411
- *
21412
- * This file is part of the X_ITE Project.
21413
- *
21414
- * X_ITE is free software: you can redistribute it and/or modify it under the
21415
- * terms of the GNU General Public License version 3 only, as published by the
21416
- * Free Software Foundation.
21417
- *
21418
- * X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
21419
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
21420
- * A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
21421
- * details (a copy is included in the LICENSE file that accompanied this code).
21422
- *
21423
- * You should have received a copy of the GNU General Public License version 3
21424
- * along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
21425
- * copy of the GPLv3 License.
21426
- *
21427
- * For Silvio, Joy and Adi.
21428
- *
21429
- ******************************************************************************/
21430
-
21431
- const MapUtilities =
21432
- {
21433
- assign: (() =>
21434
- {
21435
- function set (value, key)
21436
- {
21437
- this .set (key, value);
21438
- }
21439
-
21440
- return function (m1, m2)
21441
- {
21442
- m1 .clear ();
21443
- m2 .forEach (set, m1);
21444
-
21445
- return m1;
21446
- };
21447
- })(),
21448
- values: (() =>
21449
- {
21450
- function push (value) { this .push (value); }
21451
-
21452
- const values = new WeakMap ();
21453
-
21454
- return function (m)
21455
- {
21456
- if (m .size)
21457
- {
21458
- let a = values .get (m);
21459
-
21460
- if (a)
21461
- a .length = 0;
21462
- else
21463
- values .set (m, a = [ ]);
21464
-
21465
- m .forEach (push, a);
21466
-
21467
- return a;
21468
- }
21469
- else
21470
- {
21471
- return m .values ();
21472
- }
21473
- };
21474
- })(),
21475
- };
21476
-
21477
- const MapUtilities_default_ = MapUtilities;
21478
- ;
21479
-
21480
- x_ite_Namespace .add ("MapUtilities", "standard/Utility/MapUtilities", MapUtilities_default_);
21481
- /* harmony default export */ const Utility_MapUtilities = (MapUtilities_default_);
21482
21392
  ;// CONCATENATED MODULE: ./src/x_ite/DEVELOPMENT.js
21483
21393
  /*******************************************************************************
21484
21394
  *
@@ -21585,7 +21495,6 @@ x_ite_Namespace .add ("DEVELOPMENT", "x_ite/DEVELOPMENT", DEVELOPMENT_default_);
21585
21495
 
21586
21496
 
21587
21497
 
21588
-
21589
21498
  const
21590
21499
  _name = Symbol (),
21591
21500
  _interests = Symbol (),
@@ -21625,17 +21534,18 @@ Object .assign (X3DObject .prototype,
21625
21534
  },
21626
21535
  addInterest (callbackName, object, ... args)
21627
21536
  {
21628
- if (this [_interests] === X3DObject .prototype [_interests])
21629
- this [_interests] = new Map ();
21630
-
21631
21537
  const
21632
21538
  interestId = X3DObject .getInterestId (callbackName, object),
21633
21539
  callback = object [callbackName];
21634
21540
 
21541
+ this [_interests] = new Map (this [_interests]);
21542
+
21635
21543
  this [_interests] .set (interestId, callback .bind (object, ... args, this));
21636
21544
  },
21637
21545
  removeInterest (callbackName, object)
21638
21546
  {
21547
+ this [_interests] = new Map (this [_interests]);
21548
+
21639
21549
  this [_interests] .delete (X3DObject .getInterestId (callbackName, object));
21640
21550
  },
21641
21551
  getInterests ()
@@ -21644,7 +21554,7 @@ Object .assign (X3DObject .prototype,
21644
21554
  },
21645
21555
  processInterests ()
21646
21556
  {
21647
- for (const interest of Utility_MapUtilities .values (this [_interests]))
21557
+ for (const interest of this [_interests] .values ())
21648
21558
  interest ();
21649
21559
  },
21650
21560
  getUserData (key)
@@ -22412,6 +22322,13 @@ Object .assign (Object .setPrototypeOf (X3DInfoArray .prototype, Base_X3DChildOb
22412
22322
 
22413
22323
  return copy;
22414
22324
  },
22325
+ clear ()
22326
+ {
22327
+ this [_array] .length = 0;
22328
+ this [_index] .clear ();
22329
+
22330
+ this .addEvent ();
22331
+ },
22415
22332
  assign (array)
22416
22333
  {
22417
22334
  if (!(array instanceof this .constructor))
@@ -22783,7 +22700,6 @@ x_ite_Namespace .add ("FieldDefinitionArray", "x_ite/Base/FieldDefinitionArray",
22783
22700
 
22784
22701
 
22785
22702
 
22786
-
22787
22703
  const
22788
22704
  _value = Symbol (),
22789
22705
  _accessType = Symbol (),
@@ -22960,13 +22876,14 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
22960
22876
  },
22961
22877
  addReferencesCallback (key, object)
22962
22878
  {
22963
- if (this [_referencesCallbacks] === X3DField .prototype [_referencesCallbacks])
22964
- this [_referencesCallbacks] = new Map ();
22879
+ this [_referencesCallbacks] = new Map (this [_referencesCallbacks]);
22965
22880
 
22966
22881
  this [_referencesCallbacks] .set (key, object);
22967
22882
  },
22968
22883
  removeReferencesCallback (key)
22969
22884
  {
22885
+ this [_referencesCallbacks] = new Map (this [_referencesCallbacks]);
22886
+
22970
22887
  this [_referencesCallbacks] .delete (key);
22971
22888
  },
22972
22889
  getReferencesCallbacks ()
@@ -22975,7 +22892,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
22975
22892
  },
22976
22893
  processReferencesCallbacks ()
22977
22894
  {
22978
- for (const callback of Utility_MapUtilities .values (this [_referencesCallbacks]))
22895
+ for (const callback of this [_referencesCallbacks] .values ())
22979
22896
  callback ();
22980
22897
  },
22981
22898
  addFieldInterest (field)
@@ -22995,13 +22912,14 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
22995
22912
  },
22996
22913
  addFieldCallback (key, object)
22997
22914
  {
22998
- if (this [_fieldCallbacks] === X3DField .prototype [_fieldCallbacks])
22999
- this [_fieldCallbacks] = new Map ();
22915
+ this [_fieldCallbacks] = new Map (this [_fieldCallbacks]);
23000
22916
 
23001
22917
  this [_fieldCallbacks] .set (key, object);
23002
22918
  },
23003
22919
  removeFieldCallback (key)
23004
22920
  {
22921
+ this [_fieldCallbacks] = new Map (this [_fieldCallbacks]);
22922
+
23005
22923
  this [_fieldCallbacks] .delete (key);
23006
22924
  },
23007
22925
  getFieldCallbacks ()
@@ -23050,13 +22968,14 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23050
22968
  {
23051
22969
  // Processed if routes are changed.
23052
22970
 
23053
- if (this [_routeCallbacks] === X3DField .prototype [_routeCallbacks])
23054
- this [_routeCallbacks] = new Map ();
22971
+ this [_routeCallbacks] = new Map (this [_routeCallbacks]);
23055
22972
 
23056
22973
  this [_routeCallbacks] .set (key, object);
23057
22974
  },
23058
22975
  removeRouteCallback (key)
23059
22976
  {
22977
+ this [_routeCallbacks] = new Map (this [_routeCallbacks]);
22978
+
23060
22979
  this [_routeCallbacks] .delete (key);
23061
22980
  },
23062
22981
  getRouteCallbacks ()
@@ -23065,7 +22984,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23065
22984
  },
23066
22985
  processRouteCallbacks ()
23067
22986
  {
23068
- for (const callback of Utility_MapUtilities .values (this [_routeCallbacks]))
22987
+ for (const callback of this [_routeCallbacks] .values ())
23069
22988
  callback ();
23070
22989
  },
23071
22990
  processEvent (event = Base_Events .create (this))
@@ -23108,7 +23027,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23108
23027
 
23109
23028
  // Process field callbacks.
23110
23029
 
23111
- for (const callback of Utility_MapUtilities .values (this [_fieldCallbacks]))
23030
+ for (const callback of this [_fieldCallbacks] .values ())
23112
23031
  callback (this .valueOf ());
23113
23032
  },
23114
23033
  fromString (string, scene)
@@ -34293,7 +34212,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34293
34212
  x_ite_Namespace .add ("X3DBaseNode", "x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
34294
34213
  /* harmony default export */ const Base_X3DBaseNode = (X3DBaseNode_default_);
34295
34214
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
34296
- /* provided dependency */ var $ = __webpack_require__(548);
34215
+ /* provided dependency */ var $ = __webpack_require__(751);
34297
34216
  /*******************************************************************************
34298
34217
  *
34299
34218
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34430,7 +34349,7 @@ x_ite_Namespace .add ("Legacy", "x_ite/Browser/Legacy", Legacy_default_);
34430
34349
  *
34431
34350
  ******************************************************************************/
34432
34351
 
34433
- const BROWSER_VERSION_default_ = "9.2.1";
34352
+ const BROWSER_VERSION_default_ = "9.2.3";
34434
34353
  ;
34435
34354
 
34436
34355
  x_ite_Namespace .add ("BROWSER_VERSION", "x_ite/BROWSER_VERSION", BROWSER_VERSION_default_);
@@ -37290,6 +37209,10 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Base_X3DObje
37290
37209
  {
37291
37210
  return this [_importedName];
37292
37211
  },
37212
+ [Symbol .for ("X_ITE.X3DImportedNode.setImportName")] (importName)
37213
+ {
37214
+ this [_importedName] = importName;
37215
+ },
37293
37216
  toVRMLStream (generator)
37294
37217
  {
37295
37218
  if (!generator .ExistsNode (this .getInlineNode ()))
@@ -37297,7 +37220,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Base_X3DObje
37297
37220
 
37298
37221
  generator .AddRouteNode (this);
37299
37222
 
37300
- const importedName = generator .ImportedName (this .getImportedName ());
37223
+ const importedName = generator .ImportedName (this);
37301
37224
 
37302
37225
  generator .string += generator .Indent ();
37303
37226
  generator .string += "IMPORT";
@@ -37321,7 +37244,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Base_X3DObje
37321
37244
 
37322
37245
  generator .AddRouteNode (this);
37323
37246
 
37324
- const importedName = generator .ImportedName (this .getImportedName ());
37247
+ const importedName = generator .ImportedName (this);
37325
37248
 
37326
37249
  generator .string += generator .Indent ();
37327
37250
  generator .string += "<IMPORT";
@@ -37351,7 +37274,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Base_X3DObje
37351
37274
 
37352
37275
  generator .AddRouteNode (this);
37353
37276
 
37354
- const importedName = generator .ImportedName (this .getImportedName ());
37277
+ const importedName = generator .ImportedName (this);
37355
37278
 
37356
37279
  generator .string += generator .Indent ();
37357
37280
  generator .string += '{';
@@ -37739,7 +37662,7 @@ Object .assign (X3DUrlObject .prototype,
37739
37662
 
37740
37663
  const browser = this .getBrowser ();
37741
37664
 
37742
- if (!browser .getBrowserOption ("LoadUrlObjects") && this .getExecutionContext () !== browser .getPrivateScene () && !this .isExternProto)
37665
+ if (!browser .getBrowserOption ("LoadUrlObjects") && this .getExecutionContext () !== browser .getPrivateScene ())
37743
37666
  {
37744
37667
  resolve ();
37745
37668
  return;
@@ -38570,7 +38493,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
38570
38493
  x_ite_Namespace .add ("X3DProtoDeclaration", "x_ite/Prototype/X3DProtoDeclaration", X3DProtoDeclaration_default_);
38571
38494
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (X3DProtoDeclaration_default_);
38572
38495
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
38573
- /* provided dependency */ var X3DParser_$ = __webpack_require__(548);
38496
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(751);
38574
38497
  /*******************************************************************************
38575
38498
  *
38576
38499
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -38714,6 +38637,26 @@ Object .assign (X3DParser .prototype,
38714
38637
 
38715
38638
  return name;
38716
38639
  },
38640
+ renameExistingNode (name)
38641
+ {
38642
+ try
38643
+ {
38644
+ const namedNode = this .getExecutionContext () .getNamedNode (name);
38645
+
38646
+ this .getExecutionContext () .updateNamedNode (this .getExecutionContext () .getUniqueName (name), namedNode);
38647
+ }
38648
+ catch
38649
+ { }
38650
+
38651
+ try
38652
+ {
38653
+ const importedName = this .getExecutionContext () .getUniqueImportName (name);
38654
+
38655
+ this .getExecutionContext () .renameImportedNode (name, importedName);
38656
+ }
38657
+ catch
38658
+ { }
38659
+ },
38717
38660
  });
38718
38661
 
38719
38662
  const X3DParser_default_ = X3DParser;
@@ -38812,7 +38755,7 @@ const Expressions_default_ = Expressions;
38812
38755
  x_ite_Namespace .add ("Expressions", "x_ite/Parser/Expressions", Expressions_default_);
38813
38756
  /* harmony default export */ const Parser_Expressions = (Expressions_default_);
38814
38757
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
38815
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(548);
38758
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(751);
38816
38759
  /*******************************************************************************
38817
38760
  *
38818
38761
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39392,13 +39335,17 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
39392
39335
  var exportedNodeNameId = localNodeNameId;
39393
39336
  }
39394
39337
 
39395
- if (this .getScene () === this .getExecutionContext ())
39338
+ try
39396
39339
  {
39397
- this .getScene () .updateExportedNode (exportedNodeNameId, node);
39398
- return true;
39340
+ const existingNode = this .getScene () .getExportedNode (exportedNodeNameId);
39341
+
39342
+ this .getScene () .addExportedNode (this .getScene () .getUniqueExportName (exportedNodeNameId), existingNode);
39399
39343
  }
39344
+ catch
39345
+ { }
39400
39346
 
39401
- throw new Error ("Export statement not allowed here.");
39347
+ this .getScene () .updateExportedNode (exportedNodeNameId, node);
39348
+ return true;
39402
39349
  }
39403
39350
 
39404
39351
  throw new Error ("No name given after EXPORT.");
@@ -39441,7 +39388,13 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
39441
39388
  var nodeNameId = exportedNodeNameId;
39442
39389
  }
39443
39390
 
39444
- this .getExecutionContext () .updateImportedNode (namedNode, exportedNodeNameId, nodeNameId);
39391
+ // Rename existing imported node.
39392
+
39393
+ this .renameExistingNode (nodeNameId);
39394
+
39395
+ // Add new imported node.
39396
+
39397
+ this .getExecutionContext () .addImportedNode (namedNode, exportedNodeNameId, nodeNameId);
39445
39398
  return true;
39446
39399
  }
39447
39400
 
@@ -40063,14 +40016,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
40063
40016
 
40064
40017
  if (nodeNameId .length)
40065
40018
  {
40066
- try
40067
- {
40068
- const namedNode = this .getExecutionContext () .getNamedNode (nodeNameId);
40069
-
40070
- this .getExecutionContext () .updateNamedNode (this .getExecutionContext () .getUniqueName (nodeNameId), namedNode);
40071
- }
40072
- catch
40073
- { }
40019
+ this .renameExistingNode (nodeNameId);
40074
40020
 
40075
40021
  this .getExecutionContext () .updateNamedNode (nodeNameId, baseNode);
40076
40022
  }
@@ -41495,7 +41441,7 @@ const VRMLParser_default_ = VRMLParser;
41495
41441
  x_ite_Namespace .add ("VRMLParser", "x_ite/Parser/VRMLParser", VRMLParser_default_);
41496
41442
  /* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
41497
41443
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
41498
- /* provided dependency */ var XMLParser_$ = __webpack_require__(548);
41444
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(751);
41499
41445
  /*******************************************************************************
41500
41446
  *
41501
41447
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -41803,10 +41749,10 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
41803
41749
  componentSupportLevel = parseInt (xmlElement .getAttribute ("level"));
41804
41750
 
41805
41751
  if (componentNameIdCharacters === null)
41806
- return console .warn ("XML Parser Error: Bad component statement. Expected name attribute.");
41752
+ return console .warn ("XML Parser: Bad component statement. Expected name attribute.");
41807
41753
 
41808
41754
  if (componentSupportLevel === null)
41809
- return console .warn ("XML Parser Error: Bad component statement. Expected level attribute.");
41755
+ return console .warn ("XML Parser: Bad component statement. Expected level attribute.");
41810
41756
 
41811
41757
  const component = this .getBrowser () .getComponent (componentNameIdCharacters, componentSupportLevel);
41812
41758
 
@@ -41825,13 +41771,13 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
41825
41771
  conversionFactor = xmlElement .getAttribute ("conversionFactor"); //works for html5 as well
41826
41772
 
41827
41773
  if (category === null)
41828
- return console .warn ("XML Parser Error: Bad unit statement. Expected category attribute.");
41774
+ return console .warn ("XML Parser: Bad unit statement. Expected category attribute.");
41829
41775
 
41830
41776
  if (name === null)
41831
- return console .warn ("XML Parser Error: Bad unit statement. Expected name attribute.");
41777
+ return console .warn ("XML Parser: Bad unit statement. Expected name attribute.");
41832
41778
 
41833
41779
  if (conversionFactor === null)
41834
- return console .warn ("XML Parser Error: Bad unit statement. Expected conversionFactor attribute.");
41780
+ return console .warn ("XML Parser: Bad unit statement. Expected conversionFactor attribute.");
41835
41781
 
41836
41782
  this .getScene () .updateUnit (category, name, parseFloat (conversionFactor));
41837
41783
  },
@@ -41842,10 +41788,10 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
41842
41788
  metavalue = xmlElement .getAttribute ("content");
41843
41789
 
41844
41790
  if (metakey === null)
41845
- return console .warn ("XML Parser Error: Bad meta statement. Expected name attribute.");
41791
+ return console .warn ("XML Parser: Bad meta statement. Expected name attribute.");
41846
41792
 
41847
41793
  if (metavalue === null)
41848
- return console .warn ("XML Parser Error: Bad meta statement. Expected content attribute.");
41794
+ return console .warn ("XML Parser: Bad meta statement. Expected content attribute.");
41849
41795
 
41850
41796
  this .getScene () .addMetaData (metakey, metavalue);
41851
41797
  },
@@ -41930,7 +41876,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
41930
41876
  this .parser .sfstringValues (this .url);
41931
41877
 
41932
41878
  if (!this .url .length)
41933
- console .warn ("XML Parser Error: Bad ExternProtoDeclare statement. Expected url attribute with value.");
41879
+ console .warn ("XML Parser: Bad ExternProtoDeclare statement. Expected url attribute with value.");
41934
41880
 
41935
41881
  const externproto = new Prototype_X3DExternProtoDeclaration (this .getExecutionContext (), this .url);
41936
41882
 
@@ -42109,10 +42055,10 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42109
42055
  protoFieldName = xmlElement .getAttribute ("protoField");
42110
42056
 
42111
42057
  if (nodeFieldName === null)
42112
- return console .warn ("XML Parser Error: Bad connect statement. Expected nodeField attribute.");
42058
+ return console .warn ("XML Parser: Bad connect statement. Expected nodeField attribute.");
42113
42059
 
42114
42060
  if (protoFieldName === null)
42115
- return console .warn ("XML Parser Error: Bad connect statement. Expected protoField attribute.");
42061
+ return console .warn ("XML Parser: Bad connect statement. Expected protoField attribute.");
42116
42062
 
42117
42063
  try
42118
42064
  {
@@ -42142,7 +42088,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42142
42088
  }
42143
42089
  catch (error)
42144
42090
  {
42145
- console .warn (`XML Parser Error: Couldn't create IS reference. ${error .message}`);
42091
+ console .warn (`XML Parser: Couldn't create IS reference. ${error .message}`);
42146
42092
  }
42147
42093
  },
42148
42094
  protoInstanceElement (xmlElement)
@@ -42177,7 +42123,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42177
42123
  }
42178
42124
  catch (error)
42179
42125
  {
42180
- console .warn ("XML Parser Error: ", error .message);
42126
+ console .warn ("XML Parser: ", error .message);
42181
42127
 
42182
42128
  if (DEVELOPMENT)
42183
42129
  console .error (error);
@@ -42220,7 +42166,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42220
42166
  }
42221
42167
  catch (error)
42222
42168
  {
42223
- console .warn (`XML Parser Error: Couldn't assign field value. ${error .message}`);
42169
+ console .warn (`XML Parser: Couldn't assign field value. ${error .message}`);
42224
42170
  }
42225
42171
  },
42226
42172
  nodeElement (xmlElement)
@@ -42267,7 +42213,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42267
42213
  if (DEVELOPMENT)
42268
42214
  console .error (error);
42269
42215
  else
42270
- console .error (`XML Parser Error: ${error .message}`);
42216
+ console .error (`XML Parser: ${error .message}`);
42271
42217
  }
42272
42218
  },
42273
42219
  scriptElement (element)
@@ -42319,7 +42265,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42319
42265
  }
42320
42266
  catch (error)
42321
42267
  {
42322
- console .warn (`XML Parser Error: ${error .message}`);
42268
+ console .warn (`XML Parser: ${error .message}`);
42323
42269
 
42324
42270
  if (DEVELOPMENT)
42325
42271
  console .error (error);
@@ -42342,23 +42288,23 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42342
42288
 
42343
42289
  const inlineNode = this .getExecutionContext () .getNamedNode (inlineNodeName);
42344
42290
 
42345
- this .getExecutionContext () .updateImportedNode (inlineNode, exportedNodeName, localNodeName);
42291
+ // Rename existing imported node.
42292
+
42293
+ this .renameExistingNode (localNodeName);
42294
+
42295
+ // Add new imported node.
42296
+
42297
+ this .getExecutionContext () .addImportedNode (inlineNode, exportedNodeName, localNodeName);
42346
42298
  }
42347
42299
  catch (error)
42348
42300
  {
42349
- console .warn (`XML Parser Error: ${error .message}`);
42301
+ console .warn (`XML Parser: ${error .message}`);
42350
42302
  }
42351
42303
  },
42352
42304
  exportElement (xmlElement)
42353
42305
  {
42354
42306
  try
42355
42307
  {
42356
- if (this .getScene () !== this .getExecutionContext ())
42357
- {
42358
- console .warn ("XML Parser Error: Export statement not allowed here.");
42359
- return;
42360
- }
42361
-
42362
42308
  const
42363
42309
  localNodeName = xmlElement .getAttribute ("localDEF"),
42364
42310
  exportedNodeName = xmlElement .getAttribute ("AS") || localNodeName;
@@ -42368,11 +42314,20 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42368
42314
 
42369
42315
  const localNode = this .getExecutionContext () .getLocalNode (localNodeName);
42370
42316
 
42317
+ try
42318
+ {
42319
+ const existingNode = this .getScene () .getExportedNode (exportedNodeName);
42320
+
42321
+ this .getScene () .addExportedNode (this .getScene () .getUniqueExportName (exportedNodeName), existingNode);
42322
+ }
42323
+ catch
42324
+ { }
42325
+
42371
42326
  this .getScene () .updateExportedNode (exportedNodeName, localNode);
42372
42327
  }
42373
42328
  catch (error)
42374
42329
  {
42375
- console .warn (`XML Parser Error: ${error .message}`);
42330
+ console .warn (`XML Parser: ${error .message}`);
42376
42331
  }
42377
42332
  },
42378
42333
  cdataNode (xmlElement)
@@ -42395,13 +42350,29 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42395
42350
  {
42396
42351
  const node = this .getExecutionContext () .getNamedNode (name);
42397
42352
 
42353
+ if (xmlElement .nodeName === "ProtoInstance")
42354
+ {
42355
+ if (!node .getNodeType () .includes (Base_X3DConstants .X3DPrototypeInstance))
42356
+ {
42357
+ console .warn (`XML Parser: DEF/USE mismatch, '${name}', referenced node is not of type X3DPrototypeInstance.`);
42358
+ }
42359
+ else if (xmlElement .getAttribute ("name") !== node .getNodeTypeName ())
42360
+ {
42361
+ console .warn (`XML Parser: DEF/USE mismatch, '${name}', name ${xmlElement .getAttribute ("name")} != ${node .getNodeTypeName ()}.`);
42362
+ }
42363
+ }
42364
+ else if (xmlElement .nodeName !== node .getNodeTypeName ())
42365
+ {
42366
+ console .warn (`XML Parser: DEF/USE mismatch, '${name}', ${xmlElement .nodeName} != ${node .getNodeTypeName ()}.`);
42367
+ }
42368
+
42398
42369
  this .addNode (xmlElement, node .getValue ());
42399
42370
  return true;
42400
42371
  }
42401
42372
  }
42402
42373
  catch (error)
42403
42374
  {
42404
- console .warn (`Invalid USE name: ${error .message}`);
42375
+ console .warn (`XML Parser: Invalid USE name: ${error .message}`);
42405
42376
  }
42406
42377
 
42407
42378
  return false;
@@ -42414,21 +42385,14 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42414
42385
 
42415
42386
  if (name)
42416
42387
  {
42417
- try
42418
- {
42419
- const namedNode = this .getExecutionContext () .getNamedNode (name);
42420
-
42421
- this .getExecutionContext () .updateNamedNode (this .getExecutionContext () .getUniqueName (name), namedNode);
42422
- }
42423
- catch
42424
- { }
42388
+ this .renameExistingNode (name);
42425
42389
 
42426
42390
  this .getExecutionContext () .updateNamedNode (name, node);
42427
42391
  }
42428
42392
  }
42429
42393
  catch (error)
42430
42394
  {
42431
- console .warn (`Invalid DEF name: ${error .message}`);
42395
+ console .warn (`XML Parser: Invalid DEF name: ${error .message}`);
42432
42396
  }
42433
42397
  },
42434
42398
  nodeAttributes (xmlElement, node)
@@ -42523,7 +42487,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42523
42487
 
42524
42488
  if (!containerField)
42525
42489
  {
42526
- console .warn ("Node must have a container field attribute.");
42490
+ console .warn ("XML Parser: Node must have a container field attribute.");
42527
42491
  return;
42528
42492
  }
42529
42493
 
@@ -43586,7 +43550,7 @@ const URLs_default_ = URLs;
43586
43550
  x_ite_Namespace .add ("URLs", "x_ite/Browser/Networking/URLs", URLs_default_);
43587
43551
  /* harmony default export */ const Networking_URLs = (URLs_default_);
43588
43552
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
43589
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(548);
43553
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(751);
43590
43554
  /*******************************************************************************
43591
43555
  *
43592
43556
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -46887,7 +46851,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
46887
46851
  x_ite_Namespace .add ("GLTF2Parser", "x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
46888
46852
  /* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
46889
46853
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
46890
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(548);
46854
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(751);
46891
46855
  /*******************************************************************************
46892
46856
  *
46893
46857
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -47039,7 +47003,7 @@ const GLB2Parser_default_ = GLB2Parser;
47039
47003
  x_ite_Namespace .add ("GLB2Parser", "x_ite/Parser/GLB2Parser", GLB2Parser_default_);
47040
47004
  /* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
47041
47005
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
47042
- /* provided dependency */ var OBJParser_$ = __webpack_require__(548);
47006
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(751);
47043
47007
  /*******************************************************************************
47044
47008
  *
47045
47009
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -50394,8 +50358,8 @@ const MatrixStack_default_ = MatrixStack;
50394
50358
  x_ite_Namespace .add ("MatrixStack", "standard/Math/Utility/MatrixStack", MatrixStack_default_);
50395
50359
  /* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
50396
50360
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
50397
- /* provided dependency */ var SVGParser_$ = __webpack_require__(548);
50398
- /* provided dependency */ var libtess = __webpack_require__(527);
50361
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(751);
50362
+ /* provided dependency */ var libtess = __webpack_require__(641);
50399
50363
  /*******************************************************************************
50400
50364
  *
50401
50365
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53163,7 +53127,7 @@ const SVGParser_default_ = SVGParser;
53163
53127
  x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_);
53164
53128
  /* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
53165
53129
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
53166
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(548);
53130
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(751);
53167
53131
  /*******************************************************************************
53168
53132
  *
53169
53133
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53500,7 +53464,7 @@ const Plane3_default_ = Plane3;
53500
53464
  x_ite_Namespace .add ("Plane3", "standard/Math/Geometry/Plane3", Plane3_default_);
53501
53465
  /* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
53502
53466
  ;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
53503
- /* provided dependency */ var Triangle3_libtess = __webpack_require__(527);
53467
+ /* provided dependency */ var Triangle3_libtess = __webpack_require__(641);
53504
53468
  /*******************************************************************************
53505
53469
  *
53506
53470
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -61006,7 +60970,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
61006
60970
  x_ite_Namespace .add ("X3DTexture2DNode", "x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
61007
60971
  /* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
61008
60972
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
61009
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(548);
60973
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(751);
61010
60974
  /*******************************************************************************
61011
60975
  *
61012
60976
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -63483,22 +63447,34 @@ Object .assign (Object .setPrototypeOf (X3DViewpointNode .prototype, Core_X3DBin
63483
63447
  {
63484
63448
  return this ._position .getValue ();
63485
63449
  },
63486
- getUserPosition ()
63450
+ setPosition (value)
63487
63451
  {
63488
- return this .userPosition .assign (this .getPosition ()) .add (this ._positionOffset .getValue ());
63452
+ this ._position = value;
63489
63453
  },
63490
63454
  getOrientation ()
63491
63455
  {
63492
63456
  return this ._orientation .getValue ();
63493
63457
  },
63494
- getUserOrientation ()
63458
+ setOrientation (value)
63495
63459
  {
63496
- return this .userOrientation .assign (this .getOrientation ()) .multRight (this ._orientationOffset .getValue ());
63460
+ this ._orientation = value;
63497
63461
  },
63498
63462
  getCenterOfRotation ()
63499
63463
  {
63500
63464
  return this ._centerOfRotation .getValue ();
63501
63465
  },
63466
+ setCenterOfRotation (value)
63467
+ {
63468
+ this ._centerOfRotation = value;
63469
+ },
63470
+ getUserPosition ()
63471
+ {
63472
+ return this .userPosition .assign (this .getPosition ()) .add (this ._positionOffset .getValue ());
63473
+ },
63474
+ getUserOrientation ()
63475
+ {
63476
+ return this .userOrientation .assign (this .getOrientation ()) .multRight (this ._orientationOffset .getValue ());
63477
+ },
63502
63478
  getUserCenterOfRotation ()
63503
63479
  {
63504
63480
  return this .userCenterOfRotation .assign (this .getCenterOfRotation ()) .add (this ._centerOfRotationOffset .getValue ());
@@ -63968,7 +63944,7 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
63968
63944
  const relative = Navigation_X3DViewpointNode .prototype .getRelativeTransformation .call (this, fromViewpointNode);
63969
63945
 
63970
63946
  if (fromViewpointNode .constructor === this .constructor)
63971
- relative .fieldOfView = fromViewpointNode .getFieldOfView ();
63947
+ relative .fieldOfView = fromViewpointNode .getUserFieldOfView ();
63972
63948
 
63973
63949
  return relative;
63974
63950
  },
@@ -63976,7 +63952,7 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
63976
63952
  {
63977
63953
  if (fromViewpointNode .constructor === this .constructor)
63978
63954
  {
63979
- const scale = relative .fieldOfView / this .getFieldOfView ();
63955
+ const scale = relative .fieldOfView / this .getUserFieldOfView ();
63980
63956
 
63981
63957
  this .fieldOfViewScaleInterpolator ._keyValue = new x_ite_Fields .MFFloat (scale, this ._fieldOfViewScale .getValue ());
63982
63958
 
@@ -63994,6 +63970,12 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
63994
63970
  return false;
63995
63971
  },
63996
63972
  getFieldOfView ()
63973
+ {
63974
+ const fov = this ._fieldOfView .getValue ();
63975
+
63976
+ return fov > 0 && fov < Math .PI ? fov : Math .PI / 4;
63977
+ },
63978
+ getUserFieldOfView ()
63997
63979
  {
63998
63980
  const fov = this ._fieldOfView .getValue () * this ._fieldOfViewScale .getValue ();
63999
63981
 
@@ -64007,7 +63989,7 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
64007
63989
  width = viewport [2],
64008
63990
  height = viewport [3];
64009
63991
 
64010
- let size = Math .abs (point .z) * Math .tan (this .getFieldOfView () / 2) * 2;
63992
+ let size = Math .abs (point .z) * Math .tan (this .getUserFieldOfView () / 2) * 2;
64011
63993
 
64012
63994
  if (width > height)
64013
63995
  size /= height;
@@ -64027,7 +64009,7 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
64027
64009
  const
64028
64010
  width = viewport [2],
64029
64011
  height = viewport [3],
64030
- size = nearValue * Math .tan (this .getFieldOfView () / 2) * 2,
64012
+ size = nearValue * Math .tan (this .getUserFieldOfView () / 2) * 2,
64031
64013
  aspect = width / height;
64032
64014
 
64033
64015
  if (aspect > 1)
@@ -64038,11 +64020,11 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
64038
64020
  })(),
64039
64021
  getLookAtDistance (bbox)
64040
64022
  {
64041
- return (bbox .size .magnitude () / 2) / Math .tan (this .getFieldOfView () / 2);
64023
+ return (bbox .size .magnitude () / 2) / Math .tan (this .getUserFieldOfView () / 2);
64042
64024
  },
64043
64025
  getProjectionMatrixWithLimits (nearValue, farValue, viewport)
64044
64026
  {
64045
- return Geometry_Camera .perspective (this .getFieldOfView (), nearValue, farValue, viewport [2], viewport [3], this .projectionMatrix);
64027
+ return Geometry_Camera .perspective (this .getUserFieldOfView (), nearValue, farValue, viewport [2], viewport [3], this .projectionMatrix);
64046
64028
  },
64047
64029
  });
64048
64030
 
@@ -64374,16 +64356,16 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
64374
64356
  this .set_children__ ();
64375
64357
  },
64376
64358
  getBBox (bbox, shadows)
64377
- {
64378
- return this .getSubBBox (bbox, shadows);
64379
- },
64380
- getSubBBox (bbox, shadows)
64381
64359
  {
64382
64360
  if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
64383
- return Grouping_X3DBoundedObject .prototype .getBBox .call (this, this .visibleNodes, bbox, shadows);
64361
+ return this .getSubBBox (bbox, shadows);
64384
64362
 
64385
64363
  return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
64386
64364
  },
64365
+ getSubBBox (bbox, shadows)
64366
+ {
64367
+ return Grouping_X3DBoundedObject .prototype .getBBox .call (this, this .visibleNodes, bbox, shadows);
64368
+ },
64387
64369
  setAllowedTypes (/* type, ... */)
64388
64370
  {
64389
64371
  const allowedTypes = this .allowedTypes;
@@ -65593,7 +65575,7 @@ const X3DWorld_default_ = X3DWorld;
65593
65575
  x_ite_Namespace .add ("X3DWorld", "x_ite/Execution/X3DWorld", X3DWorld_default_);
65594
65576
  /* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
65595
65577
  ;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
65596
- /* provided dependency */ var FileLoader_$ = __webpack_require__(548);
65578
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(751);
65597
65579
  /*******************************************************************************
65598
65580
  *
65599
65581
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66524,7 +66506,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
66524
66506
  x_ite_Namespace .add ("ProtoDeclarationArray", "x_ite/Prototype/ProtoDeclarationArray", ProtoDeclarationArray_default_);
66525
66507
  /* harmony default export */ const Prototype_ProtoDeclarationArray = (ProtoDeclarationArray_default_);
66526
66508
  ;// CONCATENATED MODULE: ./src/x_ite/Routing/X3DRoute.js
66527
- /* provided dependency */ var X3DRoute_$ = __webpack_require__(548);
66509
+ /* provided dependency */ var X3DRoute_$ = __webpack_require__(751);
66528
66510
  /*******************************************************************************
66529
66511
  *
66530
66512
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66744,11 +66726,11 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66744
66726
 
66745
66727
  const sourceNodeName = this [_sourceNode] instanceof Core_X3DNode
66746
66728
  ? generator .Name (this [_sourceNode])
66747
- : this [_sourceNode] .getImportedName ();
66729
+ : generator .ImportedName (this [_sourceNode]);
66748
66730
 
66749
66731
  const destinationNodeName = this [_destinationNode] instanceof Core_X3DNode
66750
66732
  ? generator .Name (this [_destinationNode])
66751
- : this [_destinationNode] .getImportedName ();
66733
+ : generator .ImportedName (this [_destinationNode]);
66752
66734
 
66753
66735
  generator .string += generator .Indent ();
66754
66736
  generator .string += "ROUTE";
@@ -66773,11 +66755,11 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66773
66755
 
66774
66756
  const sourceNodeName = this [_sourceNode] instanceof Core_X3DNode
66775
66757
  ? generator .Name (this [_sourceNode])
66776
- : this [_sourceNode] .getImportedName ();
66758
+ : generator .ImportedName (this [_sourceNode]);
66777
66759
 
66778
66760
  const destinationNodeName = this [_destinationNode] instanceof Core_X3DNode
66779
66761
  ? generator .Name (this [_destinationNode])
66780
- : this [_destinationNode] .getImportedName ();
66762
+ : generator .ImportedName (this [_destinationNode]);
66781
66763
 
66782
66764
  generator .string += generator .Indent ();
66783
66765
  generator .string += "<ROUTE";
@@ -66809,11 +66791,11 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66809
66791
 
66810
66792
  const sourceNodeName = this [_sourceNode] instanceof Core_X3DNode
66811
66793
  ? generator .Name (this [_sourceNode])
66812
- : this [_sourceNode] .getImportedName ();
66794
+ : generator .ImportedName (this [_sourceNode]);
66813
66795
 
66814
66796
  const destinationNodeName = this [_destinationNode] instanceof Core_X3DNode
66815
66797
  ? generator .Name (this [_destinationNode])
66816
- : this [_destinationNode] .getImportedName ();
66798
+ : generator .ImportedName (this [_destinationNode]);
66817
66799
 
66818
66800
  generator .string += generator .Indent ();
66819
66801
  generator .string += '{';
@@ -67341,14 +67323,13 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
67341
67323
 
67342
67324
  // Remove named node.
67343
67325
 
67344
- this .removeNamedNode (node .getName ());
67345
67326
  this .removeNamedNode (name);
67346
67327
 
67347
67328
  // Update named node.
67348
67329
 
67349
- node .setName (name);
67330
+ this [_namedNodes] .update (node .getName (), name, Fields_SFNodeCache .get (node));
67350
67331
 
67351
- this [_namedNodes] .add (name, Fields_SFNodeCache .get (node));
67332
+ node .setName (name);
67352
67333
 
67353
67334
  this ._namedNodes_changed = this .getBrowser () .getCurrentTime ();
67354
67335
  },
@@ -67424,6 +67405,20 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
67424
67405
 
67425
67406
  this ._importedNodes_changed = this .getBrowser () .getCurrentTime ();
67426
67407
  },
67408
+ renameImportedNode (oldImportedName, newImportedName)
67409
+ {
67410
+ const importedNode = this [_importedNodes] .get (oldImportedName);
67411
+
67412
+ if (!importedNode)
67413
+ throw new Error ("Couldn't rename imported node: imported node does not exists.");
67414
+
67415
+ if (this [_importedNodes] .get (newImportedName))
67416
+ throw new Error ("Couldn't rename imported node: new imported name does already exists.");
67417
+
67418
+ importedNode [Symbol .for ("X_ITE.X3DImportedNode.setImportName")] (newImportedName);
67419
+
67420
+ this [_importedNodes] .update (oldImportedName, newImportedName, importedNode);
67421
+ },
67427
67422
  removeImportedNode (importedName)
67428
67423
  {
67429
67424
  importedName = String (importedName);
@@ -68212,7 +68207,7 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68212
68207
 
68213
68208
  for (const protoField of this [_protoFields] .keys ())
68214
68209
  {
68215
- const oldFieldName = oldProtoFields .get (protoField);
68210
+ const oldFieldName = oldProtoFields .get (protoField) ?? protoField .getName ();
68216
68211
 
68217
68212
  if (!oldFieldName)
68218
68213
  continue;
@@ -76937,7 +76932,10 @@ Object .assign (Object .setPrototypeOf (X3DTransformMatrix3DNode .prototype, Gro
76937
76932
  },
76938
76933
  getBBox (bbox, shadows)
76939
76934
  {
76940
- return this .getSubBBox (bbox, shadows) .multRight (this .matrix);
76935
+ if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
76936
+ return this .getSubBBox (bbox, shadows) .multRight (this .matrix);
76937
+
76938
+ return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
76941
76939
  },
76942
76940
  traverse (type, renderObject)
76943
76941
  {
@@ -82088,6 +82086,24 @@ Object .assign (Object .setPrototypeOf (OrthoViewpoint .prototype, Navigation_X3
82088
82086
  {
82089
82087
  return false;
82090
82088
  },
82089
+ getFieldOfView ()
82090
+ {
82091
+ return [
82092
+ this .getMinimumX (),
82093
+ this .getMinimumY (),
82094
+ this .getMaximumX (),
82095
+ this .getMaximumY (),
82096
+ ];
82097
+ },
82098
+ getUserFieldOfView ()
82099
+ {
82100
+ return [
82101
+ this .getUserMinimumX (),
82102
+ this .getUserMinimumY (),
82103
+ this .getUserMaximumX (),
82104
+ this .getUserMaximumY (),
82105
+ ];
82106
+ },
82091
82107
  getMinimumX ()
82092
82108
  {
82093
82109
  return this ._fieldOfView .length > 0 ? this ._fieldOfView [0] : -1;
@@ -89359,7 +89375,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
89359
89375
  x_ite_Namespace .add ("X3DShaderNode", "x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
89360
89376
  /* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
89361
89377
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
89362
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(548);
89378
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(751);
89363
89379
  /*******************************************************************************
89364
89380
  *
89365
89381
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95000,7 +95016,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
95000
95016
  x_ite_Namespace .add ("ShaderCompiler", "x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
95001
95017
  /* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
95002
95018
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
95003
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(548);
95019
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(751);
95004
95020
  /*******************************************************************************
95005
95021
  *
95006
95022
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95657,7 +95673,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
95657
95673
  x_ite_Namespace .add ("X3DAppearanceNode", "x_ite/Components/Shape/X3DAppearanceNode", X3DAppearanceNode_default_);
95658
95674
  /* harmony default export */ const Shape_X3DAppearanceNode = (X3DAppearanceNode_default_);
95659
95675
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
95660
- /* provided dependency */ var Appearance_$ = __webpack_require__(548);
95676
+ /* provided dependency */ var Appearance_$ = __webpack_require__(751);
95661
95677
  /*******************************************************************************
95662
95678
  *
95663
95679
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99075,7 +99091,7 @@ const Components_Shape_default_ = {
99075
99091
  x_ite_Namespace .add ("Shape", "x_ite/Components/Shape", Components_Shape_default_);
99076
99092
  /* harmony default export */ const Components_Shape = (Components_Shape_default_);
99077
99093
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundProcessingNode.js
99078
- /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(548);
99094
+ /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(751);
99079
99095
  /*******************************************************************************
99080
99096
  *
99081
99097
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99715,7 +99731,7 @@ const X3DSoundSourceNode_default_ = X3DSoundSourceNode;
99715
99731
  x_ite_Namespace .add ("X3DSoundSourceNode", "x_ite/Components/Sound/X3DSoundSourceNode", X3DSoundSourceNode_default_);
99716
99732
  /* harmony default export */ const Sound_X3DSoundSourceNode = (X3DSoundSourceNode_default_);
99717
99733
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/AudioClip.js
99718
- /* provided dependency */ var AudioClip_$ = __webpack_require__(548);
99734
+ /* provided dependency */ var AudioClip_$ = __webpack_require__(751);
99719
99735
  /*******************************************************************************
99720
99736
  *
99721
99737
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -100017,7 +100033,7 @@ const X3DSoundNode_default_ = X3DSoundNode;
100017
100033
  x_ite_Namespace .add ("X3DSoundNode", "x_ite/Components/Sound/X3DSoundNode", X3DSoundNode_default_);
100018
100034
  /* harmony default export */ const Sound_X3DSoundNode = (X3DSoundNode_default_);
100019
100035
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundDestinationNode.js
100020
- /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(548);
100036
+ /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(751);
100021
100037
  /*******************************************************************************
100022
100038
  *
100023
100039
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -101667,7 +101683,7 @@ const ListenerPointSource_default_ = ListenerPointSource;
101667
101683
  x_ite_Namespace .add ("ListenerPointSource", "x_ite/Components/Sound/ListenerPointSource", ListenerPointSource_default_);
101668
101684
  /* harmony default export */ const Sound_ListenerPointSource = (ListenerPointSource_default_);
101669
101685
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/MicrophoneSource.js
101670
- /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(548);
101686
+ /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(751);
101671
101687
  /*******************************************************************************
101672
101688
  *
101673
101689
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -103336,8 +103352,8 @@ const GifMedia_default_ = GifMedia;
103336
103352
  x_ite_Namespace .add ("GifMedia", "x_ite/Browser/Texturing/GifMedia", GifMedia_default_);
103337
103353
  /* harmony default export */ const Texturing_GifMedia = (GifMedia_default_);
103338
103354
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
103339
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(548);
103340
- /* provided dependency */ var SuperGif = __webpack_require__(258);
103355
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(751);
103356
+ /* provided dependency */ var SuperGif = __webpack_require__(851);
103341
103357
  /*******************************************************************************
103342
103358
  *
103343
103359
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -106612,7 +106628,7 @@ const gettext_default_ = gettext;
106612
106628
  x_ite_Namespace .add ("gettext", "locale/gettext", gettext_default_);
106613
106629
  /* harmony default export */ const locale_gettext = (gettext_default_);
106614
106630
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
106615
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(548);
106631
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(751);
106616
106632
  /*******************************************************************************
106617
106633
  *
106618
106634
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107042,7 +107058,7 @@ const TextureQuality_default_ = TextureQuality;
107042
107058
  x_ite_Namespace .add ("TextureQuality", "x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
107043
107059
  /* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
107044
107060
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
107045
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(548);
107061
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(751);
107046
107062
  /*******************************************************************************
107047
107063
  *
107048
107064
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107632,7 +107648,7 @@ const RenderingProperties_default_ = RenderingProperties;
107632
107648
  x_ite_Namespace .add ("RenderingProperties", "x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
107633
107649
  /* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
107634
107650
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
107635
- /* provided dependency */ var Notification_$ = __webpack_require__(548);
107651
+ /* provided dependency */ var Notification_$ = __webpack_require__(751);
107636
107652
  /*******************************************************************************
107637
107653
  *
107638
107654
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107755,8 +107771,8 @@ const Notification_default_ = Notification;
107755
107771
  x_ite_Namespace .add ("Notification", "x_ite/Browser/Core/Notification", Notification_default_);
107756
107772
  /* harmony default export */ const Core_Notification = (Notification_default_);
107757
107773
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
107758
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(864);
107759
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(548);
107774
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(132);
107775
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(751);
107760
107776
  /*******************************************************************************
107761
107777
  *
107762
107778
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109592,11 +109608,9 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
109592
109608
  //if (node .getExecutionContext () !== this)
109593
109609
  // throw new Error ("Couldn't update exported node: node does not belong to this execution context.");
109594
109610
 
109595
- this .removeExportedNode (exportedName);
109596
-
109597
109611
  const exportedNode = new Execution_X3DExportedNode (this, exportedName, node);
109598
109612
 
109599
- this [_exportedNodes] .add (exportedName, exportedNode);
109613
+ this [_exportedNodes] .update (exportedName, exportedName, exportedNode);
109600
109614
 
109601
109615
  this ._exportedNodes_changed = this .getBrowser () .getCurrentTime ();
109602
109616
  },
@@ -110510,7 +110524,7 @@ const DataStorage_default_ = DataStorage;
110510
110524
  x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage_default_);
110511
110525
  /* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
110512
110526
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
110513
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(548);
110527
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(751);
110514
110528
  /*******************************************************************************
110515
110529
  *
110516
110530
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -111170,7 +111184,7 @@ Object .assign (X3DCoreContext .prototype,
111170
111184
  vp .position = viewpoint .getUserPosition ();
111171
111185
  vp .orientation = viewpoint .getUserOrientation ();
111172
111186
  vp .centerOfRotation = viewpoint .getUserCenterOfRotation ();
111173
- vp .fieldOfView = viewpoint .getFieldOfView ();
111187
+ vp .fieldOfView = viewpoint .getUserFieldOfView ();
111174
111188
  break;
111175
111189
  }
111176
111190
  case "OrthoViewpoint":
@@ -111178,7 +111192,7 @@ Object .assign (X3DCoreContext .prototype,
111178
111192
  vp .position = viewpoint .getUserPosition ();
111179
111193
  vp .orientation = viewpoint .getUserOrientation ();
111180
111194
  vp .centerOfRotation = viewpoint .getUserCenterOfRotation ();
111181
- vp .fieldOfView = new x_ite_Fields .MFFloat (viewpoint .getMinimumX (), viewpoint .getMinimumY (), viewpoint .getMaximumX (), viewpoint .getMaximumY ());
111195
+ vp .fieldOfView = viewpoint .getUserFieldOfView ();
111182
111196
  break;
111183
111197
  }
111184
111198
  case "GeoViewpoint":
@@ -111201,7 +111215,7 @@ Object .assign (X3DCoreContext .prototype,
111201
111215
  vp .position = viewpoint .getGeoCoord (viewpoint .getUserPosition (), geoCoord);
111202
111216
  vp .orientation = viewpoint .getUserOrientation ();
111203
111217
  vp .centerOfRotation = viewpoint .getGeoCoord (viewpoint .getUserCenterOfRotation (), geoCoord);
111204
- vp .fieldOfView = viewpoint .getFieldOfView ();
111218
+ vp .fieldOfView = viewpoint .getUserFieldOfView ();
111205
111219
  break;
111206
111220
  }
111207
111221
  }
@@ -113033,8 +113047,8 @@ const X3DViewer_default_ = X3DViewer;
113033
113047
  x_ite_Namespace .add ("X3DViewer", "x_ite/Browser/Navigation/X3DViewer", X3DViewer_default_);
113034
113048
  /* harmony default export */ const Navigation_X3DViewer = (X3DViewer_default_);
113035
113049
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
113036
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(642);
113037
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(548);
113050
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(983);
113051
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(751);
113038
113052
  /*******************************************************************************
113039
113053
  *
113040
113054
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -113906,8 +113920,8 @@ const ExamineViewer_default_ = ExamineViewer;
113906
113920
  x_ite_Namespace .add ("ExamineViewer", "x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
113907
113921
  /* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
113908
113922
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
113909
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(642);
113910
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(548);
113923
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(983);
113924
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(751);
113911
113925
  /*******************************************************************************
113912
113926
  *
113913
113927
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114916,8 +114930,8 @@ const FlyViewer_default_ = FlyViewer;
114916
114930
  x_ite_Namespace .add ("FlyViewer", "x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
114917
114931
  /* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
114918
114932
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
114919
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(642);
114920
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(548);
114933
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(983);
114934
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(751);
114921
114935
  /*******************************************************************************
114922
114936
  *
114923
114937
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115248,8 +115262,8 @@ const NoneViewer_default_ = NoneViewer;
115248
115262
  x_ite_Namespace .add ("NoneViewer", "x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
115249
115263
  /* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
115250
115264
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
115251
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(642);
115252
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(548);
115265
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(983);
115266
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(751);
115253
115267
  /*******************************************************************************
115254
115268
  *
115255
115269
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116388,8 +116402,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
116388
116402
  x_ite_Namespace .add ("X3DPickingContext", "x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
116389
116403
  /* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
116390
116404
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
116391
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(642);
116392
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(548);
116405
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(983);
116406
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(751);
116393
116407
  /*******************************************************************************
116394
116408
  *
116395
116409
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -117668,7 +117682,7 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
117668
117682
  x_ite_Namespace .add ("MultiSampleFrameBuffer", "x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
117669
117683
  /* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
117670
117684
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
117671
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(548);
117685
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(751);
117672
117686
  /*******************************************************************************
117673
117687
  *
117674
117688
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118570,7 +118584,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
118570
118584
  x_ite_Namespace .add ("X3DSoundContext", "x_ite/Browser/Sound/X3DSoundContext", X3DSoundContext_default_);
118571
118585
  /* harmony default export */ const Sound_X3DSoundContext = (X3DSoundContext_default_);
118572
118586
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
118573
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(548);
118587
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(751);
118574
118588
  const KTXDecoder_default_ = class KTXDecoder
118575
118589
  {
118576
118590
  constructor (gl, externalKtxlib, scriptDir)
@@ -120123,7 +120137,7 @@ const Components_default_ = Components;
120123
120137
  x_ite_Namespace .add ("Components", "x_ite/Components", Components_default_);
120124
120138
  /* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
120125
120139
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
120126
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(548);
120140
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(751);
120127
120141
  /*******************************************************************************
120128
120142
  * MIT License
120129
120143
  *
@@ -121254,7 +121268,7 @@ const SupportedProfiles_default_ = SupportedProfiles;
121254
121268
  x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
121255
121269
  /* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
121256
121270
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
121257
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(548);
121271
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(751);
121258
121272
  /*******************************************************************************
121259
121273
  *
121260
121274
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -121324,7 +121338,6 @@ x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfile
121324
121338
 
121325
121339
 
121326
121340
 
121327
-
121328
121341
 
121329
121342
 
121330
121343
  const
@@ -121942,24 +121955,55 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121942
121955
  {
121943
121956
  const [key, object] = args;
121944
121957
 
121945
- this [_browserCallbacks] .forEach (map => map .set (key, object));
121958
+ for (const [event, map] of this [_browserCallbacks])
121959
+ this [_browserCallbacks] .set (event, new Map (map) .set (key, object));
121960
+
121946
121961
  break;
121947
121962
  }
121948
121963
  case 3:
121949
121964
  {
121950
- const [key, event, object] = args;
121965
+ const
121966
+ [key, event, object] = args,
121967
+ map = new Map (this [_browserCallbacks] .get (event));
121968
+
121969
+ this [_browserCallbacks] .set (event, map);
121951
121970
 
121952
- this [_browserCallbacks] .get (event) .set (key, object);
121971
+ map .set (key, object);
121953
121972
  break;
121954
121973
  }
121955
121974
  }
121956
121975
  },
121957
- removeBrowserCallback (key, event)
121976
+ removeBrowserCallback (... args)
121958
121977
  {
121959
- if (arguments .length === 2)
121960
- this [_browserCallbacks] .get (event) .delete (key);
121961
- else
121962
- this [_browserCallbacks] .forEach (map => map .delete (key));
121978
+ switch (args .length)
121979
+ {
121980
+ case 1:
121981
+ {
121982
+ const [key] = args;
121983
+
121984
+ for (const [event, original] of this [_browserCallbacks])
121985
+ {
121986
+ const map = new Map (original);
121987
+
121988
+ this [_browserCallbacks] .set (event, map);
121989
+
121990
+ map .delete (key);
121991
+ }
121992
+
121993
+ break;
121994
+ }
121995
+ case 2:
121996
+ {
121997
+ const
121998
+ [key, event] = args,
121999
+ map = new Map (this [_browserCallbacks] .get (event));
122000
+
122001
+ this [_browserCallbacks] .set (event, map);
122002
+
122003
+ map .delete (key);
122004
+ break;
122005
+ }
122006
+ }
121963
122007
  },
121964
122008
  getBrowserCallbacks (event)
121965
122009
  {
@@ -121970,7 +122014,7 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121970
122014
  },
121971
122015
  callBrowserCallbacks (event)
121972
122016
  {
121973
- for (const callback of Utility_MapUtilities .values (this [_browserCallbacks] .get (event)))
122017
+ for (const callback of this [_browserCallbacks] .get (event) .values ())
121974
122018
  callback (event);
121975
122019
  },
121976
122020
  importDocument (dom)
@@ -122315,7 +122359,7 @@ const X3DBrowser_default_ = X3DBrowser;
122315
122359
  x_ite_Namespace .add ("X3DBrowser", "x_ite/Browser/X3DBrowser", X3DBrowser_default_);
122316
122360
  /* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
122317
122361
  ;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
122318
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(548);
122362
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(751);
122319
122363
  /*******************************************************************************
122320
122364
  *
122321
122365
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122447,8 +122491,8 @@ const X3DCanvasElement_default_ = X3DCanvasElement;
122447
122491
  x_ite_Namespace .add ("X3DCanvasElement", "x_ite/X3DCanvasElement", X3DCanvasElement_default_);
122448
122492
  /* harmony default export */ const x_ite_X3DCanvasElement = (X3DCanvasElement_default_);
122449
122493
  ;// CONCATENATED MODULE: ./src/lib/jquery.js
122450
- /* provided dependency */ var jquery_$ = __webpack_require__(548);
122451
- /* provided dependency */ var pako = __webpack_require__(63);
122494
+ /* provided dependency */ var jquery_$ = __webpack_require__(751);
122495
+ /* provided dependency */ var pako = __webpack_require__(104);
122452
122496
  Object .assign (jquery_$,
122453
122497
  {
122454
122498
  decodeText (input)
@@ -122525,14 +122569,14 @@ const jquery_default_ = jquery_$;
122525
122569
  x_ite_Namespace .add ("jquery", "lib/jquery", jquery_default_);
122526
122570
  /* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
122527
122571
  ;// CONCATENATED MODULE: ./src/lib/libtess.js
122528
- /* provided dependency */ var libtess_libtess = __webpack_require__(527);
122572
+ /* provided dependency */ var libtess_libtess = __webpack_require__(641);
122529
122573
  const libtess_default_ = libtess_libtess;
122530
122574
  ;
122531
122575
 
122532
122576
  x_ite_Namespace .add ("libtess", "lib/libtess", libtess_default_);
122533
122577
  /* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
122534
122578
  ;// CONCATENATED MODULE: ./src/x_ite/X3D.js
122535
- /* provided dependency */ var X3D_$ = __webpack_require__(548);
122579
+ /* provided dependency */ var X3D_$ = __webpack_require__(751);
122536
122580
  /*******************************************************************************
122537
122581
  *
122538
122582
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122840,7 +122884,7 @@ Object .assign (X3D,
122840
122884
 
122841
122885
  // Assign X3D to global namespace.
122842
122886
 
122843
- window [Symbol .for ("X_ITE.X3D-9.2.1")] = x_ite_X3D;
122887
+ window [Symbol .for ("X_ITE.X3D-9.2.3")] = x_ite_X3D;
122844
122888
 
122845
122889
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
122846
122890