x_ite 9.2.0 → 9.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/assets/components/Annotation.js +13 -13
  2. package/dist/assets/components/Annotation.min.js +1 -1
  3. package/dist/assets/components/CADGeometry.js +14 -14
  4. package/dist/assets/components/CADGeometry.min.js +1 -1
  5. package/dist/assets/components/CubeMapTexturing.js +25 -25
  6. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  7. package/dist/assets/components/DIS.js +13 -13
  8. package/dist/assets/components/DIS.min.js +1 -1
  9. package/dist/assets/components/EventUtilities.js +9 -9
  10. package/dist/assets/components/EventUtilities.min.js +1 -1
  11. package/dist/assets/components/Geometry2D.js +19 -19
  12. package/dist/assets/components/Geometry2D.min.js +1 -1
  13. package/dist/assets/components/Geospatial.js +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.d.ts +4 -0
  43. package/dist/x_ite.js +307 -282
  44. package/dist/x_ite.min.js +1 -1
  45. package/dist/x_ite.min.mjs +1 -1
  46. package/dist/x_ite.mjs +307 -282
  47. package/dist/x_ite.zip +0 -0
  48. package/package.json +5 -5
package/dist/x_ite.js CHANGED
@@ -1,4 +1,4 @@
1
- /* X_ITE v9.2.0 */(function webpackUniversalModuleDefinition(root, factory) {
1
+ /* X_ITE v9.2.2 */(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
- /***/ 66:
14
+ /***/ 464:
15
15
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
16
16
 
17
- /* provided dependency */ var jQuery = __webpack_require__(484);
17
+ /* provided dependency */ var jQuery = __webpack_require__(576);
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
- /***/ 389:
213
+ /***/ 710:
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__(484)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
227
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(576)], __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
- /***/ 484:
438
+ /***/ 576:
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
- /***/ 53:
11162
+ /***/ 85:
11163
11163
  /***/ ((module) => {
11164
11164
 
11165
11165
  /**
@@ -15938,7 +15938,7 @@ if (true) {
15938
15938
 
15939
15939
  /***/ }),
15940
15940
 
15941
- /***/ 251:
15941
+ /***/ 905:
15942
15942
  /***/ (function(__unused_webpack_module, exports) {
15943
15943
 
15944
15944
 
@@ -19183,7 +19183,7 @@ if (true) {
19183
19183
 
19184
19184
  /***/ }),
19185
19185
 
19186
- /***/ 749:
19186
+ /***/ 606:
19187
19187
  /***/ (function(module, exports) {
19188
19188
 
19189
19189
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
@@ -20311,7 +20311,7 @@ Object .defineProperty (Namespace, "add",
20311
20311
  }
20312
20312
  else
20313
20313
  {
20314
- const X3D = window [Symbol .for ("X_ITE.X3D-9.2.0")];
20314
+ const X3D = window [Symbol .for ("X_ITE.X3D-9.2.2")];
20315
20315
 
20316
20316
  if (X3D)
20317
20317
  X3D [name] = module;
@@ -20905,6 +20905,7 @@ function Generator ({ style = "TIDY", indent = "", precision = 7, doublePrecisio
20905
20905
 
20906
20906
  this .executionContextStack = [ ];
20907
20907
  this .importedNodesIndex = new Map ();
20908
+ this .importedNames = new Map ();
20908
20909
  this .exportedNodesIndex = new Map ();
20909
20910
  this .nodes = new Set ();
20910
20911
  this .names = new Map ();
@@ -21217,7 +21218,7 @@ Object .assign (Generator .prototype,
21217
21218
  if (baseNode .hasRoutes ())
21218
21219
  return true;
21219
21220
 
21220
- const executionContext = baseNode .getExecutionContext ();
21221
+ const executionContext = this .ExecutionContext ();
21221
21222
 
21222
21223
  if (this .importedNodesIndex .get (executionContext) ?.has (baseNode))
21223
21224
  return true;
@@ -21227,15 +21228,19 @@ Object .assign (Generator .prototype,
21227
21228
 
21228
21229
  return false;
21229
21230
  },
21230
- ImportedName (name)
21231
+ ImportedName (importedNode)
21231
21232
  {
21233
+ if (this .importedNames .has (importedNode))
21234
+ return this .importedNames .get (importedNode);
21235
+
21232
21236
  const
21233
21237
  names = this .names .get (this .ExecutionContext ()),
21234
- newName = getUniqueName (names, name);
21238
+ newName = getUniqueName (names, importedNode .getImportedName ());
21235
21239
 
21236
21240
  // Add to indices.
21237
21241
 
21238
21242
  names .add (newName);
21243
+ this .importedNames .set (importedNode, newName);
21239
21244
 
21240
21245
  return newName;
21241
21246
  },
@@ -21392,105 +21397,6 @@ const Generator_default_ = Generator;
21392
21397
 
21393
21398
  x_ite_Namespace .add ("Generator", "x_ite/InputOutput/Generator", Generator_default_);
21394
21399
  /* harmony default export */ const InputOutput_Generator = (Generator_default_);
21395
- ;// CONCATENATED MODULE: ./src/standard/Utility/MapUtilities.js
21396
- /*******************************************************************************
21397
- *
21398
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
21399
- *
21400
- * Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
21401
- *
21402
- * All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
21403
- *
21404
- * The copyright notice above does not evidence any actual of intended
21405
- * publication of such source code, and is an unpublished work by create3000.
21406
- * This material contains CONFIDENTIAL INFORMATION that is the property of
21407
- * create3000.
21408
- *
21409
- * No permission is granted to copy, distribute, or create derivative works from
21410
- * the contents of this software, in whole or in part, without the prior written
21411
- * permission of create3000.
21412
- *
21413
- * NON-MILITARY USE ONLY
21414
- *
21415
- * All create3000 software are effectively free software with a non-military use
21416
- * restriction. It is free. Well commented source is provided. You may reuse the
21417
- * source in any way you please with the exception anything that uses it must be
21418
- * marked to indicate is contains 'non-military use only' components.
21419
- *
21420
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
21421
- *
21422
- * Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
21423
- *
21424
- * This file is part of the X_ITE Project.
21425
- *
21426
- * X_ITE is free software: you can redistribute it and/or modify it under the
21427
- * terms of the GNU General Public License version 3 only, as published by the
21428
- * Free Software Foundation.
21429
- *
21430
- * X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
21431
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
21432
- * A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
21433
- * details (a copy is included in the LICENSE file that accompanied this code).
21434
- *
21435
- * You should have received a copy of the GNU General Public License version 3
21436
- * along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
21437
- * copy of the GPLv3 License.
21438
- *
21439
- * For Silvio, Joy and Adi.
21440
- *
21441
- ******************************************************************************/
21442
-
21443
- const MapUtilities =
21444
- {
21445
- assign: (() =>
21446
- {
21447
- function set (value, key)
21448
- {
21449
- this .set (key, value);
21450
- }
21451
-
21452
- return function (m1, m2)
21453
- {
21454
- m1 .clear ();
21455
- m2 .forEach (set, m1);
21456
-
21457
- return m1;
21458
- };
21459
- })(),
21460
- values: (() =>
21461
- {
21462
- function push (value) { this .push (value); }
21463
-
21464
- const values = new WeakMap ();
21465
-
21466
- return function (m)
21467
- {
21468
- if (m .size)
21469
- {
21470
- let a = values .get (m);
21471
-
21472
- if (a)
21473
- a .length = 0;
21474
- else
21475
- values .set (m, a = [ ]);
21476
-
21477
- m .forEach (push, a);
21478
-
21479
- return a;
21480
- }
21481
- else
21482
- {
21483
- return m .values ();
21484
- }
21485
- };
21486
- })(),
21487
- };
21488
-
21489
- const MapUtilities_default_ = MapUtilities;
21490
- ;
21491
-
21492
- x_ite_Namespace .add ("MapUtilities", "standard/Utility/MapUtilities", MapUtilities_default_);
21493
- /* harmony default export */ const Utility_MapUtilities = (MapUtilities_default_);
21494
21400
  ;// CONCATENATED MODULE: ./src/x_ite/DEVELOPMENT.js
21495
21401
  /*******************************************************************************
21496
21402
  *
@@ -21597,7 +21503,6 @@ x_ite_Namespace .add ("DEVELOPMENT", "x_ite/DEVELOPMENT", DEVELOPMENT_default_);
21597
21503
 
21598
21504
 
21599
21505
 
21600
-
21601
21506
  const
21602
21507
  _name = Symbol (),
21603
21508
  _interests = Symbol (),
@@ -21637,17 +21542,18 @@ Object .assign (X3DObject .prototype,
21637
21542
  },
21638
21543
  addInterest (callbackName, object, ... args)
21639
21544
  {
21640
- if (this [_interests] === X3DObject .prototype [_interests])
21641
- this [_interests] = new Map ();
21642
-
21643
21545
  const
21644
21546
  interestId = X3DObject .getInterestId (callbackName, object),
21645
21547
  callback = object [callbackName];
21646
21548
 
21549
+ this [_interests] = new Map (this [_interests]);
21550
+
21647
21551
  this [_interests] .set (interestId, callback .bind (object, ... args, this));
21648
21552
  },
21649
21553
  removeInterest (callbackName, object)
21650
21554
  {
21555
+ this [_interests] = new Map (this [_interests]);
21556
+
21651
21557
  this [_interests] .delete (X3DObject .getInterestId (callbackName, object));
21652
21558
  },
21653
21559
  getInterests ()
@@ -21656,7 +21562,7 @@ Object .assign (X3DObject .prototype,
21656
21562
  },
21657
21563
  processInterests ()
21658
21564
  {
21659
- for (const interest of Utility_MapUtilities .values (this [_interests]))
21565
+ for (const interest of this [_interests] .values ())
21660
21566
  interest ();
21661
21567
  },
21662
21568
  getUserData (key)
@@ -22424,6 +22330,13 @@ Object .assign (Object .setPrototypeOf (X3DInfoArray .prototype, Base_X3DChildOb
22424
22330
 
22425
22331
  return copy;
22426
22332
  },
22333
+ clear ()
22334
+ {
22335
+ this [_array] .length = 0;
22336
+ this [_index] .clear ();
22337
+
22338
+ this .addEvent ();
22339
+ },
22427
22340
  assign (array)
22428
22341
  {
22429
22342
  if (!(array instanceof this .constructor))
@@ -22795,7 +22708,6 @@ x_ite_Namespace .add ("FieldDefinitionArray", "x_ite/Base/FieldDefinitionArray",
22795
22708
 
22796
22709
 
22797
22710
 
22798
-
22799
22711
  const
22800
22712
  _value = Symbol (),
22801
22713
  _accessType = Symbol (),
@@ -22972,13 +22884,14 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
22972
22884
  },
22973
22885
  addReferencesCallback (key, object)
22974
22886
  {
22975
- if (this [_referencesCallbacks] === X3DField .prototype [_referencesCallbacks])
22976
- this [_referencesCallbacks] = new Map ();
22887
+ this [_referencesCallbacks] = new Map (this [_referencesCallbacks]);
22977
22888
 
22978
22889
  this [_referencesCallbacks] .set (key, object);
22979
22890
  },
22980
22891
  removeReferencesCallback (key)
22981
22892
  {
22893
+ this [_referencesCallbacks] = new Map (this [_referencesCallbacks]);
22894
+
22982
22895
  this [_referencesCallbacks] .delete (key);
22983
22896
  },
22984
22897
  getReferencesCallbacks ()
@@ -22987,7 +22900,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
22987
22900
  },
22988
22901
  processReferencesCallbacks ()
22989
22902
  {
22990
- for (const callback of Utility_MapUtilities .values (this [_referencesCallbacks]))
22903
+ for (const callback of this [_referencesCallbacks] .values ())
22991
22904
  callback ();
22992
22905
  },
22993
22906
  addFieldInterest (field)
@@ -23007,13 +22920,14 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23007
22920
  },
23008
22921
  addFieldCallback (key, object)
23009
22922
  {
23010
- if (this [_fieldCallbacks] === X3DField .prototype [_fieldCallbacks])
23011
- this [_fieldCallbacks] = new Map ();
22923
+ this [_fieldCallbacks] = new Map (this [_fieldCallbacks]);
23012
22924
 
23013
22925
  this [_fieldCallbacks] .set (key, object);
23014
22926
  },
23015
22927
  removeFieldCallback (key)
23016
22928
  {
22929
+ this [_fieldCallbacks] = new Map (this [_fieldCallbacks]);
22930
+
23017
22931
  this [_fieldCallbacks] .delete (key);
23018
22932
  },
23019
22933
  getFieldCallbacks ()
@@ -23062,13 +22976,14 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23062
22976
  {
23063
22977
  // Processed if routes are changed.
23064
22978
 
23065
- if (this [_routeCallbacks] === X3DField .prototype [_routeCallbacks])
23066
- this [_routeCallbacks] = new Map ();
22979
+ this [_routeCallbacks] = new Map (this [_routeCallbacks]);
23067
22980
 
23068
22981
  this [_routeCallbacks] .set (key, object);
23069
22982
  },
23070
22983
  removeRouteCallback (key)
23071
22984
  {
22985
+ this [_routeCallbacks] = new Map (this [_routeCallbacks]);
22986
+
23072
22987
  this [_routeCallbacks] .delete (key);
23073
22988
  },
23074
22989
  getRouteCallbacks ()
@@ -23077,7 +22992,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23077
22992
  },
23078
22993
  processRouteCallbacks ()
23079
22994
  {
23080
- for (const callback of Utility_MapUtilities .values (this [_routeCallbacks]))
22995
+ for (const callback of this [_routeCallbacks] .values ())
23081
22996
  callback ();
23082
22997
  },
23083
22998
  processEvent (event = Base_Events .create (this))
@@ -23120,7 +23035,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23120
23035
 
23121
23036
  // Process field callbacks.
23122
23037
 
23123
- for (const callback of Utility_MapUtilities .values (this [_fieldCallbacks]))
23038
+ for (const callback of this [_fieldCallbacks] .values ())
23124
23039
  callback (this .valueOf ());
23125
23040
  },
23126
23041
  fromString (string, scene)
@@ -34305,7 +34220,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34305
34220
  x_ite_Namespace .add ("X3DBaseNode", "x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
34306
34221
  /* harmony default export */ const Base_X3DBaseNode = (X3DBaseNode_default_);
34307
34222
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
34308
- /* provided dependency */ var $ = __webpack_require__(484);
34223
+ /* provided dependency */ var $ = __webpack_require__(576);
34309
34224
  /*******************************************************************************
34310
34225
  *
34311
34226
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34442,7 +34357,7 @@ x_ite_Namespace .add ("Legacy", "x_ite/Browser/Legacy", Legacy_default_);
34442
34357
  *
34443
34358
  ******************************************************************************/
34444
34359
 
34445
- const BROWSER_VERSION_default_ = "9.2.0";
34360
+ const BROWSER_VERSION_default_ = "9.2.2";
34446
34361
  ;
34447
34362
 
34448
34363
  x_ite_Namespace .add ("BROWSER_VERSION", "x_ite/BROWSER_VERSION", BROWSER_VERSION_default_);
@@ -37302,6 +37217,10 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Base_X3DObje
37302
37217
  {
37303
37218
  return this [_importedName];
37304
37219
  },
37220
+ [Symbol .for ("X_ITE.X3DImportedNode.setImportName")] (importName)
37221
+ {
37222
+ this [_importedName] = importName;
37223
+ },
37305
37224
  toVRMLStream (generator)
37306
37225
  {
37307
37226
  if (!generator .ExistsNode (this .getInlineNode ()))
@@ -37309,7 +37228,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Base_X3DObje
37309
37228
 
37310
37229
  generator .AddRouteNode (this);
37311
37230
 
37312
- const importedName = generator .ImportedName (this .getImportedName ());
37231
+ const importedName = generator .ImportedName (this);
37313
37232
 
37314
37233
  generator .string += generator .Indent ();
37315
37234
  generator .string += "IMPORT";
@@ -37333,7 +37252,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Base_X3DObje
37333
37252
 
37334
37253
  generator .AddRouteNode (this);
37335
37254
 
37336
- const importedName = generator .ImportedName (this .getImportedName ());
37255
+ const importedName = generator .ImportedName (this);
37337
37256
 
37338
37257
  generator .string += generator .Indent ();
37339
37258
  generator .string += "<IMPORT";
@@ -37363,7 +37282,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Base_X3DObje
37363
37282
 
37364
37283
  generator .AddRouteNode (this);
37365
37284
 
37366
- const importedName = generator .ImportedName (this .getImportedName ());
37285
+ const importedName = generator .ImportedName (this);
37367
37286
 
37368
37287
  generator .string += generator .Indent ();
37369
37288
  generator .string += '{';
@@ -37751,7 +37670,7 @@ Object .assign (X3DUrlObject .prototype,
37751
37670
 
37752
37671
  const browser = this .getBrowser ();
37753
37672
 
37754
- if (!browser .getBrowserOption ("LoadUrlObjects") && this .getExecutionContext () !== browser .getPrivateScene () && !this .isExternProto)
37673
+ if (!browser .getBrowserOption ("LoadUrlObjects") && this .getExecutionContext () !== browser .getPrivateScene ())
37755
37674
  {
37756
37675
  resolve ();
37757
37676
  return;
@@ -38582,7 +38501,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
38582
38501
  x_ite_Namespace .add ("X3DProtoDeclaration", "x_ite/Prototype/X3DProtoDeclaration", X3DProtoDeclaration_default_);
38583
38502
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (X3DProtoDeclaration_default_);
38584
38503
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
38585
- /* provided dependency */ var X3DParser_$ = __webpack_require__(484);
38504
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(576);
38586
38505
  /*******************************************************************************
38587
38506
  *
38588
38507
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -38726,6 +38645,26 @@ Object .assign (X3DParser .prototype,
38726
38645
 
38727
38646
  return name;
38728
38647
  },
38648
+ renameExistingNode (name)
38649
+ {
38650
+ try
38651
+ {
38652
+ const namedNode = this .getExecutionContext () .getNamedNode (name);
38653
+
38654
+ this .getExecutionContext () .updateNamedNode (this .getExecutionContext () .getUniqueName (name), namedNode);
38655
+ }
38656
+ catch
38657
+ { }
38658
+
38659
+ try
38660
+ {
38661
+ const importedName = this .getExecutionContext () .getUniqueImportName (name);
38662
+
38663
+ this .getExecutionContext () .renameImportedNode (name, importedName);
38664
+ }
38665
+ catch
38666
+ { }
38667
+ },
38729
38668
  });
38730
38669
 
38731
38670
  const X3DParser_default_ = X3DParser;
@@ -38824,7 +38763,7 @@ const Expressions_default_ = Expressions;
38824
38763
  x_ite_Namespace .add ("Expressions", "x_ite/Parser/Expressions", Expressions_default_);
38825
38764
  /* harmony default export */ const Parser_Expressions = (Expressions_default_);
38826
38765
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
38827
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(484);
38766
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(576);
38828
38767
  /*******************************************************************************
38829
38768
  *
38830
38769
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39404,13 +39343,17 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
39404
39343
  var exportedNodeNameId = localNodeNameId;
39405
39344
  }
39406
39345
 
39407
- if (this .getScene () === this .getExecutionContext ())
39346
+ try
39408
39347
  {
39409
- this .getScene () .updateExportedNode (exportedNodeNameId, node);
39410
- return true;
39348
+ const existingNode = this .getScene () .getExportedNode (exportedNodeNameId);
39349
+
39350
+ this .getScene () .addExportedNode (this .getScene () .getUniqueExportName (exportedNodeNameId), existingNode);
39411
39351
  }
39352
+ catch
39353
+ { }
39412
39354
 
39413
- throw new Error ("Export statement not allowed here.");
39355
+ this .getScene () .updateExportedNode (exportedNodeNameId, node);
39356
+ return true;
39414
39357
  }
39415
39358
 
39416
39359
  throw new Error ("No name given after EXPORT.");
@@ -39453,7 +39396,13 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
39453
39396
  var nodeNameId = exportedNodeNameId;
39454
39397
  }
39455
39398
 
39456
- this .getExecutionContext () .updateImportedNode (namedNode, exportedNodeNameId, nodeNameId);
39399
+ // Rename existing imported node.
39400
+
39401
+ this .renameExistingNode (nodeNameId);
39402
+
39403
+ // Add new imported node.
39404
+
39405
+ this .getExecutionContext () .addImportedNode (namedNode, exportedNodeNameId, nodeNameId);
39457
39406
  return true;
39458
39407
  }
39459
39408
 
@@ -40075,14 +40024,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
40075
40024
 
40076
40025
  if (nodeNameId .length)
40077
40026
  {
40078
- try
40079
- {
40080
- const namedNode = this .getExecutionContext () .getNamedNode (nodeNameId);
40081
-
40082
- this .getExecutionContext () .updateNamedNode (this .getExecutionContext () .getUniqueName (nodeNameId), namedNode);
40083
- }
40084
- catch
40085
- { }
40027
+ this .renameExistingNode (nodeNameId);
40086
40028
 
40087
40029
  this .getExecutionContext () .updateNamedNode (nodeNameId, baseNode);
40088
40030
  }
@@ -41507,7 +41449,7 @@ const VRMLParser_default_ = VRMLParser;
41507
41449
  x_ite_Namespace .add ("VRMLParser", "x_ite/Parser/VRMLParser", VRMLParser_default_);
41508
41450
  /* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
41509
41451
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
41510
- /* provided dependency */ var XMLParser_$ = __webpack_require__(484);
41452
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(576);
41511
41453
  /*******************************************************************************
41512
41454
  *
41513
41455
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -41815,10 +41757,10 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
41815
41757
  componentSupportLevel = parseInt (xmlElement .getAttribute ("level"));
41816
41758
 
41817
41759
  if (componentNameIdCharacters === null)
41818
- return console .warn ("XML Parser Error: Bad component statement. Expected name attribute.");
41760
+ return console .warn ("XML Parser: Bad component statement. Expected name attribute.");
41819
41761
 
41820
41762
  if (componentSupportLevel === null)
41821
- return console .warn ("XML Parser Error: Bad component statement. Expected level attribute.");
41763
+ return console .warn ("XML Parser: Bad component statement. Expected level attribute.");
41822
41764
 
41823
41765
  const component = this .getBrowser () .getComponent (componentNameIdCharacters, componentSupportLevel);
41824
41766
 
@@ -41837,13 +41779,13 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
41837
41779
  conversionFactor = xmlElement .getAttribute ("conversionFactor"); //works for html5 as well
41838
41780
 
41839
41781
  if (category === null)
41840
- return console .warn ("XML Parser Error: Bad unit statement. Expected category attribute.");
41782
+ return console .warn ("XML Parser: Bad unit statement. Expected category attribute.");
41841
41783
 
41842
41784
  if (name === null)
41843
- return console .warn ("XML Parser Error: Bad unit statement. Expected name attribute.");
41785
+ return console .warn ("XML Parser: Bad unit statement. Expected name attribute.");
41844
41786
 
41845
41787
  if (conversionFactor === null)
41846
- return console .warn ("XML Parser Error: Bad unit statement. Expected conversionFactor attribute.");
41788
+ return console .warn ("XML Parser: Bad unit statement. Expected conversionFactor attribute.");
41847
41789
 
41848
41790
  this .getScene () .updateUnit (category, name, parseFloat (conversionFactor));
41849
41791
  },
@@ -41854,10 +41796,10 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
41854
41796
  metavalue = xmlElement .getAttribute ("content");
41855
41797
 
41856
41798
  if (metakey === null)
41857
- return console .warn ("XML Parser Error: Bad meta statement. Expected name attribute.");
41799
+ return console .warn ("XML Parser: Bad meta statement. Expected name attribute.");
41858
41800
 
41859
41801
  if (metavalue === null)
41860
- return console .warn ("XML Parser Error: Bad meta statement. Expected content attribute.");
41802
+ return console .warn ("XML Parser: Bad meta statement. Expected content attribute.");
41861
41803
 
41862
41804
  this .getScene () .addMetaData (metakey, metavalue);
41863
41805
  },
@@ -41942,7 +41884,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
41942
41884
  this .parser .sfstringValues (this .url);
41943
41885
 
41944
41886
  if (!this .url .length)
41945
- console .warn ("XML Parser Error: Bad ExternProtoDeclare statement. Expected url attribute with value.");
41887
+ console .warn ("XML Parser: Bad ExternProtoDeclare statement. Expected url attribute with value.");
41946
41888
 
41947
41889
  const externproto = new Prototype_X3DExternProtoDeclaration (this .getExecutionContext (), this .url);
41948
41890
 
@@ -42121,10 +42063,10 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42121
42063
  protoFieldName = xmlElement .getAttribute ("protoField");
42122
42064
 
42123
42065
  if (nodeFieldName === null)
42124
- return console .warn ("XML Parser Error: Bad connect statement. Expected nodeField attribute.");
42066
+ return console .warn ("XML Parser: Bad connect statement. Expected nodeField attribute.");
42125
42067
 
42126
42068
  if (protoFieldName === null)
42127
- return console .warn ("XML Parser Error: Bad connect statement. Expected protoField attribute.");
42069
+ return console .warn ("XML Parser: Bad connect statement. Expected protoField attribute.");
42128
42070
 
42129
42071
  try
42130
42072
  {
@@ -42154,7 +42096,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42154
42096
  }
42155
42097
  catch (error)
42156
42098
  {
42157
- console .warn (`XML Parser Error: Couldn't create IS reference. ${error .message}`);
42099
+ console .warn (`XML Parser: Couldn't create IS reference. ${error .message}`);
42158
42100
  }
42159
42101
  },
42160
42102
  protoInstanceElement (xmlElement)
@@ -42189,7 +42131,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42189
42131
  }
42190
42132
  catch (error)
42191
42133
  {
42192
- console .warn ("XML Parser Error: ", error .message);
42134
+ console .warn ("XML Parser: ", error .message);
42193
42135
 
42194
42136
  if (DEVELOPMENT)
42195
42137
  console .error (error);
@@ -42232,7 +42174,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42232
42174
  }
42233
42175
  catch (error)
42234
42176
  {
42235
- console .warn (`XML Parser Error: Couldn't assign field value. ${error .message}`);
42177
+ console .warn (`XML Parser: Couldn't assign field value. ${error .message}`);
42236
42178
  }
42237
42179
  },
42238
42180
  nodeElement (xmlElement)
@@ -42279,7 +42221,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42279
42221
  if (DEVELOPMENT)
42280
42222
  console .error (error);
42281
42223
  else
42282
- console .error (`XML Parser Error: ${error .message}`);
42224
+ console .error (`XML Parser: ${error .message}`);
42283
42225
  }
42284
42226
  },
42285
42227
  scriptElement (element)
@@ -42331,7 +42273,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42331
42273
  }
42332
42274
  catch (error)
42333
42275
  {
42334
- console .warn (`XML Parser Error: ${error .message}`);
42276
+ console .warn (`XML Parser: ${error .message}`);
42335
42277
 
42336
42278
  if (DEVELOPMENT)
42337
42279
  console .error (error);
@@ -42354,23 +42296,23 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42354
42296
 
42355
42297
  const inlineNode = this .getExecutionContext () .getNamedNode (inlineNodeName);
42356
42298
 
42357
- this .getExecutionContext () .updateImportedNode (inlineNode, exportedNodeName, localNodeName);
42299
+ // Rename existing imported node.
42300
+
42301
+ this .renameExistingNode (localNodeName);
42302
+
42303
+ // Add new imported node.
42304
+
42305
+ this .getExecutionContext () .addImportedNode (inlineNode, exportedNodeName, localNodeName);
42358
42306
  }
42359
42307
  catch (error)
42360
42308
  {
42361
- console .warn (`XML Parser Error: ${error .message}`);
42309
+ console .warn (`XML Parser: ${error .message}`);
42362
42310
  }
42363
42311
  },
42364
42312
  exportElement (xmlElement)
42365
42313
  {
42366
42314
  try
42367
42315
  {
42368
- if (this .getScene () !== this .getExecutionContext ())
42369
- {
42370
- console .warn ("XML Parser Error: Export statement not allowed here.");
42371
- return;
42372
- }
42373
-
42374
42316
  const
42375
42317
  localNodeName = xmlElement .getAttribute ("localDEF"),
42376
42318
  exportedNodeName = xmlElement .getAttribute ("AS") || localNodeName;
@@ -42380,11 +42322,20 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42380
42322
 
42381
42323
  const localNode = this .getExecutionContext () .getLocalNode (localNodeName);
42382
42324
 
42325
+ try
42326
+ {
42327
+ const existingNode = this .getScene () .getExportedNode (exportedNodeName);
42328
+
42329
+ this .getScene () .addExportedNode (this .getScene () .getUniqueExportName (exportedNodeName), existingNode);
42330
+ }
42331
+ catch
42332
+ { }
42333
+
42383
42334
  this .getScene () .updateExportedNode (exportedNodeName, localNode);
42384
42335
  }
42385
42336
  catch (error)
42386
42337
  {
42387
- console .warn (`XML Parser Error: ${error .message}`);
42338
+ console .warn (`XML Parser: ${error .message}`);
42388
42339
  }
42389
42340
  },
42390
42341
  cdataNode (xmlElement)
@@ -42407,13 +42358,16 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42407
42358
  {
42408
42359
  const node = this .getExecutionContext () .getNamedNode (name);
42409
42360
 
42361
+ if (xmlElement .nodeName !== node .getNodeTypeName ())
42362
+ console .warn (`XML Parser: DEF/USE mismatch, '${name}', ${xmlElement .nodeName} != ${node .getNodeTypeName ()}.`);
42363
+
42410
42364
  this .addNode (xmlElement, node .getValue ());
42411
42365
  return true;
42412
42366
  }
42413
42367
  }
42414
42368
  catch (error)
42415
42369
  {
42416
- console .warn (`Invalid USE name: ${error .message}`);
42370
+ console .warn (`XML Parser: Invalid USE name: ${error .message}`);
42417
42371
  }
42418
42372
 
42419
42373
  return false;
@@ -42426,21 +42380,14 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42426
42380
 
42427
42381
  if (name)
42428
42382
  {
42429
- try
42430
- {
42431
- const namedNode = this .getExecutionContext () .getNamedNode (name);
42432
-
42433
- this .getExecutionContext () .updateNamedNode (this .getExecutionContext () .getUniqueName (name), namedNode);
42434
- }
42435
- catch
42436
- { }
42383
+ this .renameExistingNode (name);
42437
42384
 
42438
42385
  this .getExecutionContext () .updateNamedNode (name, node);
42439
42386
  }
42440
42387
  }
42441
42388
  catch (error)
42442
42389
  {
42443
- console .warn (`Invalid DEF name: ${error .message}`);
42390
+ console .warn (`XML Parser: Invalid DEF name: ${error .message}`);
42444
42391
  }
42445
42392
  },
42446
42393
  nodeAttributes (xmlElement, node)
@@ -42535,7 +42482,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42535
42482
 
42536
42483
  if (!containerField)
42537
42484
  {
42538
- console .warn ("Node must have a container field attribute.");
42485
+ console .warn ("XML Parser: Node must have a container field attribute.");
42539
42486
  return;
42540
42487
  }
42541
42488
 
@@ -43598,7 +43545,7 @@ const URLs_default_ = URLs;
43598
43545
  x_ite_Namespace .add ("URLs", "x_ite/Browser/Networking/URLs", URLs_default_);
43599
43546
  /* harmony default export */ const Networking_URLs = (URLs_default_);
43600
43547
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
43601
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(484);
43548
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(576);
43602
43549
  /*******************************************************************************
43603
43550
  *
43604
43551
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -46899,7 +46846,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
46899
46846
  x_ite_Namespace .add ("GLTF2Parser", "x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
46900
46847
  /* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
46901
46848
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
46902
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(484);
46849
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(576);
46903
46850
  /*******************************************************************************
46904
46851
  *
46905
46852
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -47051,7 +46998,7 @@ const GLB2Parser_default_ = GLB2Parser;
47051
46998
  x_ite_Namespace .add ("GLB2Parser", "x_ite/Parser/GLB2Parser", GLB2Parser_default_);
47052
46999
  /* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
47053
47000
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
47054
- /* provided dependency */ var OBJParser_$ = __webpack_require__(484);
47001
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(576);
47055
47002
  /*******************************************************************************
47056
47003
  *
47057
47004
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -50406,8 +50353,8 @@ const MatrixStack_default_ = MatrixStack;
50406
50353
  x_ite_Namespace .add ("MatrixStack", "standard/Math/Utility/MatrixStack", MatrixStack_default_);
50407
50354
  /* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
50408
50355
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
50409
- /* provided dependency */ var SVGParser_$ = __webpack_require__(484);
50410
- /* provided dependency */ var libtess = __webpack_require__(53);
50356
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(576);
50357
+ /* provided dependency */ var libtess = __webpack_require__(85);
50411
50358
  /*******************************************************************************
50412
50359
  *
50413
50360
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53175,7 +53122,7 @@ const SVGParser_default_ = SVGParser;
53175
53122
  x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_);
53176
53123
  /* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
53177
53124
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
53178
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(484);
53125
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(576);
53179
53126
  /*******************************************************************************
53180
53127
  *
53181
53128
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53512,7 +53459,7 @@ const Plane3_default_ = Plane3;
53512
53459
  x_ite_Namespace .add ("Plane3", "standard/Math/Geometry/Plane3", Plane3_default_);
53513
53460
  /* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
53514
53461
  ;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
53515
- /* provided dependency */ var Triangle3_libtess = __webpack_require__(53);
53462
+ /* provided dependency */ var Triangle3_libtess = __webpack_require__(85);
53516
53463
  /*******************************************************************************
53517
53464
  *
53518
53465
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -54472,15 +54419,14 @@ x_ite_Namespace .add ("TextureBuffer", "x_ite/Rendering/TextureBuffer", TextureB
54472
54419
 
54473
54420
  let i = 0;
54474
54421
 
54475
- const TraverseType =
54476
- {
54422
+ const TraverseType = Object .freeze ({
54477
54423
  POINTER: i ++,
54478
54424
  CAMERA: i ++,
54479
54425
  PICKING: i ++,
54480
54426
  COLLISION: i ++,
54481
54427
  SHADOW: i ++,
54482
54428
  DISPLAY: i ++,
54483
- };
54429
+ });
54484
54430
 
54485
54431
  const TraverseType_default_ = TraverseType;
54486
54432
  ;
@@ -61019,7 +60965,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
61019
60965
  x_ite_Namespace .add ("X3DTexture2DNode", "x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
61020
60966
  /* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
61021
60967
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
61022
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(484);
60968
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(576);
61023
60969
  /*******************************************************************************
61024
60970
  *
61025
60971
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -63496,22 +63442,34 @@ Object .assign (Object .setPrototypeOf (X3DViewpointNode .prototype, Core_X3DBin
63496
63442
  {
63497
63443
  return this ._position .getValue ();
63498
63444
  },
63499
- getUserPosition ()
63445
+ setPosition (value)
63500
63446
  {
63501
- return this .userPosition .assign (this .getPosition ()) .add (this ._positionOffset .getValue ());
63447
+ this ._position = value;
63502
63448
  },
63503
63449
  getOrientation ()
63504
63450
  {
63505
63451
  return this ._orientation .getValue ();
63506
63452
  },
63507
- getUserOrientation ()
63453
+ setOrientation (value)
63508
63454
  {
63509
- return this .userOrientation .assign (this .getOrientation ()) .multRight (this ._orientationOffset .getValue ());
63455
+ this ._orientation = value;
63510
63456
  },
63511
63457
  getCenterOfRotation ()
63512
63458
  {
63513
63459
  return this ._centerOfRotation .getValue ();
63514
63460
  },
63461
+ setCenterOfRotation (value)
63462
+ {
63463
+ this ._centerOfRotation = value;
63464
+ },
63465
+ getUserPosition ()
63466
+ {
63467
+ return this .userPosition .assign (this .getPosition ()) .add (this ._positionOffset .getValue ());
63468
+ },
63469
+ getUserOrientation ()
63470
+ {
63471
+ return this .userOrientation .assign (this .getOrientation ()) .multRight (this ._orientationOffset .getValue ());
63472
+ },
63515
63473
  getUserCenterOfRotation ()
63516
63474
  {
63517
63475
  return this .userCenterOfRotation .assign (this .getCenterOfRotation ()) .add (this ._centerOfRotationOffset .getValue ());
@@ -63981,7 +63939,7 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
63981
63939
  const relative = Navigation_X3DViewpointNode .prototype .getRelativeTransformation .call (this, fromViewpointNode);
63982
63940
 
63983
63941
  if (fromViewpointNode .constructor === this .constructor)
63984
- relative .fieldOfView = fromViewpointNode .getFieldOfView ();
63942
+ relative .fieldOfView = fromViewpointNode .getUserFieldOfView ();
63985
63943
 
63986
63944
  return relative;
63987
63945
  },
@@ -63989,7 +63947,7 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
63989
63947
  {
63990
63948
  if (fromViewpointNode .constructor === this .constructor)
63991
63949
  {
63992
- const scale = relative .fieldOfView / this .getFieldOfView ();
63950
+ const scale = relative .fieldOfView / this .getUserFieldOfView ();
63993
63951
 
63994
63952
  this .fieldOfViewScaleInterpolator ._keyValue = new x_ite_Fields .MFFloat (scale, this ._fieldOfViewScale .getValue ());
63995
63953
 
@@ -64007,6 +63965,12 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
64007
63965
  return false;
64008
63966
  },
64009
63967
  getFieldOfView ()
63968
+ {
63969
+ const fov = this ._fieldOfView .getValue ();
63970
+
63971
+ return fov > 0 && fov < Math .PI ? fov : Math .PI / 4;
63972
+ },
63973
+ getUserFieldOfView ()
64010
63974
  {
64011
63975
  const fov = this ._fieldOfView .getValue () * this ._fieldOfViewScale .getValue ();
64012
63976
 
@@ -64020,7 +63984,7 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
64020
63984
  width = viewport [2],
64021
63985
  height = viewport [3];
64022
63986
 
64023
- let size = Math .abs (point .z) * Math .tan (this .getFieldOfView () / 2) * 2;
63987
+ let size = Math .abs (point .z) * Math .tan (this .getUserFieldOfView () / 2) * 2;
64024
63988
 
64025
63989
  if (width > height)
64026
63990
  size /= height;
@@ -64040,7 +64004,7 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
64040
64004
  const
64041
64005
  width = viewport [2],
64042
64006
  height = viewport [3],
64043
- size = nearValue * Math .tan (this .getFieldOfView () / 2) * 2,
64007
+ size = nearValue * Math .tan (this .getUserFieldOfView () / 2) * 2,
64044
64008
  aspect = width / height;
64045
64009
 
64046
64010
  if (aspect > 1)
@@ -64051,11 +64015,11 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
64051
64015
  })(),
64052
64016
  getLookAtDistance (bbox)
64053
64017
  {
64054
- return (bbox .size .magnitude () / 2) / Math .tan (this .getFieldOfView () / 2);
64018
+ return (bbox .size .magnitude () / 2) / Math .tan (this .getUserFieldOfView () / 2);
64055
64019
  },
64056
64020
  getProjectionMatrixWithLimits (nearValue, farValue, viewport)
64057
64021
  {
64058
- return Geometry_Camera .perspective (this .getFieldOfView (), nearValue, farValue, viewport [2], viewport [3], this .projectionMatrix);
64022
+ return Geometry_Camera .perspective (this .getUserFieldOfView (), nearValue, farValue, viewport [2], viewport [3], this .projectionMatrix);
64059
64023
  },
64060
64024
  });
64061
64025
 
@@ -64387,16 +64351,16 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
64387
64351
  this .set_children__ ();
64388
64352
  },
64389
64353
  getBBox (bbox, shadows)
64390
- {
64391
- return this .getSubBBox (bbox, shadows);
64392
- },
64393
- getSubBBox (bbox, shadows)
64394
64354
  {
64395
64355
  if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
64396
- return Grouping_X3DBoundedObject .prototype .getBBox .call (this, this .visibleNodes, bbox, shadows);
64356
+ return this .getSubBBox (bbox, shadows);
64397
64357
 
64398
64358
  return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
64399
64359
  },
64360
+ getSubBBox (bbox, shadows)
64361
+ {
64362
+ return Grouping_X3DBoundedObject .prototype .getBBox .call (this, this .visibleNodes, bbox, shadows);
64363
+ },
64400
64364
  setAllowedTypes (/* type, ... */)
64401
64365
  {
64402
64366
  const allowedTypes = this .allowedTypes;
@@ -65606,7 +65570,7 @@ const X3DWorld_default_ = X3DWorld;
65606
65570
  x_ite_Namespace .add ("X3DWorld", "x_ite/Execution/X3DWorld", X3DWorld_default_);
65607
65571
  /* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
65608
65572
  ;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
65609
- /* provided dependency */ var FileLoader_$ = __webpack_require__(484);
65573
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(576);
65610
65574
  /*******************************************************************************
65611
65575
  *
65612
65576
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66537,7 +66501,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
66537
66501
  x_ite_Namespace .add ("ProtoDeclarationArray", "x_ite/Prototype/ProtoDeclarationArray", ProtoDeclarationArray_default_);
66538
66502
  /* harmony default export */ const Prototype_ProtoDeclarationArray = (ProtoDeclarationArray_default_);
66539
66503
  ;// CONCATENATED MODULE: ./src/x_ite/Routing/X3DRoute.js
66540
- /* provided dependency */ var X3DRoute_$ = __webpack_require__(484);
66504
+ /* provided dependency */ var X3DRoute_$ = __webpack_require__(576);
66541
66505
  /*******************************************************************************
66542
66506
  *
66543
66507
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66757,11 +66721,11 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66757
66721
 
66758
66722
  const sourceNodeName = this [_sourceNode] instanceof Core_X3DNode
66759
66723
  ? generator .Name (this [_sourceNode])
66760
- : this [_sourceNode] .getImportedName ();
66724
+ : generator .ImportedName (this [_sourceNode]);
66761
66725
 
66762
66726
  const destinationNodeName = this [_destinationNode] instanceof Core_X3DNode
66763
66727
  ? generator .Name (this [_destinationNode])
66764
- : this [_destinationNode] .getImportedName ();
66728
+ : generator .ImportedName (this [_destinationNode]);
66765
66729
 
66766
66730
  generator .string += generator .Indent ();
66767
66731
  generator .string += "ROUTE";
@@ -66786,11 +66750,11 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66786
66750
 
66787
66751
  const sourceNodeName = this [_sourceNode] instanceof Core_X3DNode
66788
66752
  ? generator .Name (this [_sourceNode])
66789
- : this [_sourceNode] .getImportedName ();
66753
+ : generator .ImportedName (this [_sourceNode]);
66790
66754
 
66791
66755
  const destinationNodeName = this [_destinationNode] instanceof Core_X3DNode
66792
66756
  ? generator .Name (this [_destinationNode])
66793
- : this [_destinationNode] .getImportedName ();
66757
+ : generator .ImportedName (this [_destinationNode]);
66794
66758
 
66795
66759
  generator .string += generator .Indent ();
66796
66760
  generator .string += "<ROUTE";
@@ -66822,11 +66786,11 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66822
66786
 
66823
66787
  const sourceNodeName = this [_sourceNode] instanceof Core_X3DNode
66824
66788
  ? generator .Name (this [_sourceNode])
66825
- : this [_sourceNode] .getImportedName ();
66789
+ : generator .ImportedName (this [_sourceNode]);
66826
66790
 
66827
66791
  const destinationNodeName = this [_destinationNode] instanceof Core_X3DNode
66828
66792
  ? generator .Name (this [_destinationNode])
66829
- : this [_destinationNode] .getImportedName ();
66793
+ : generator .ImportedName (this [_destinationNode]);
66830
66794
 
66831
66795
  generator .string += generator .Indent ();
66832
66796
  generator .string += '{';
@@ -67354,14 +67318,13 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
67354
67318
 
67355
67319
  // Remove named node.
67356
67320
 
67357
- this .removeNamedNode (node .getName ());
67358
67321
  this .removeNamedNode (name);
67359
67322
 
67360
67323
  // Update named node.
67361
67324
 
67362
- node .setName (name);
67325
+ this [_namedNodes] .update (node .getName (), name, Fields_SFNodeCache .get (node));
67363
67326
 
67364
- this [_namedNodes] .add (name, Fields_SFNodeCache .get (node));
67327
+ node .setName (name);
67365
67328
 
67366
67329
  this ._namedNodes_changed = this .getBrowser () .getCurrentTime ();
67367
67330
  },
@@ -67437,6 +67400,20 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
67437
67400
 
67438
67401
  this ._importedNodes_changed = this .getBrowser () .getCurrentTime ();
67439
67402
  },
67403
+ renameImportedNode (oldImportedName, newImportedName)
67404
+ {
67405
+ const importedNode = this [_importedNodes] .get (oldImportedName);
67406
+
67407
+ if (!importedNode)
67408
+ throw new Error ("Couldn't rename imported node: imported node does not exists.");
67409
+
67410
+ if (this [_importedNodes] .get (newImportedName))
67411
+ throw new Error ("Couldn't rename imported node: new imported name does already exists.");
67412
+
67413
+ importedNode [Symbol .for ("X_ITE.X3DImportedNode.setImportName")] (newImportedName);
67414
+
67415
+ this [_importedNodes] .update (oldImportedName, newImportedName, importedNode);
67416
+ },
67440
67417
  removeImportedNode (importedName)
67441
67418
  {
67442
67419
  importedName = String (importedName);
@@ -68225,7 +68202,7 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68225
68202
 
68226
68203
  for (const protoField of this [_protoFields] .keys ())
68227
68204
  {
68228
- const oldFieldName = oldProtoFields .get (protoField);
68205
+ const oldFieldName = oldProtoFields .get (protoField) ?? protoField .getName ();
68229
68206
 
68230
68207
  if (!oldFieldName)
68231
68208
  continue;
@@ -76950,7 +76927,10 @@ Object .assign (Object .setPrototypeOf (X3DTransformMatrix3DNode .prototype, Gro
76950
76927
  },
76951
76928
  getBBox (bbox, shadows)
76952
76929
  {
76953
- return this .getSubBBox (bbox, shadows) .multRight (this .matrix);
76930
+ if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
76931
+ return this .getSubBBox (bbox, shadows) .multRight (this .matrix);
76932
+
76933
+ return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
76954
76934
  },
76955
76935
  traverse (type, renderObject)
76956
76936
  {
@@ -82101,6 +82081,24 @@ Object .assign (Object .setPrototypeOf (OrthoViewpoint .prototype, Navigation_X3
82101
82081
  {
82102
82082
  return false;
82103
82083
  },
82084
+ getFieldOfView ()
82085
+ {
82086
+ return [
82087
+ this .getMinimumX (),
82088
+ this .getMinimumY (),
82089
+ this .getMaximumX (),
82090
+ this .getMaximumY (),
82091
+ ];
82092
+ },
82093
+ getUserFieldOfView ()
82094
+ {
82095
+ return [
82096
+ this .getUserMinimumX (),
82097
+ this .getUserMinimumY (),
82098
+ this .getUserMaximumX (),
82099
+ this .getUserMaximumY (),
82100
+ ];
82101
+ },
82104
82102
  getMinimumX ()
82105
82103
  {
82106
82104
  return this ._fieldOfView .length > 0 ? this ._fieldOfView [0] : -1;
@@ -89372,7 +89370,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
89372
89370
  x_ite_Namespace .add ("X3DShaderNode", "x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
89373
89371
  /* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
89374
89372
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
89375
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(484);
89373
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(576);
89376
89374
  /*******************************************************************************
89377
89375
  *
89378
89376
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95013,7 +95011,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
95013
95011
  x_ite_Namespace .add ("ShaderCompiler", "x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
95014
95012
  /* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
95015
95013
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
95016
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(484);
95014
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(576);
95017
95015
  /*******************************************************************************
95018
95016
  *
95019
95017
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95670,7 +95668,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
95670
95668
  x_ite_Namespace .add ("X3DAppearanceNode", "x_ite/Components/Shape/X3DAppearanceNode", X3DAppearanceNode_default_);
95671
95669
  /* harmony default export */ const Shape_X3DAppearanceNode = (X3DAppearanceNode_default_);
95672
95670
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
95673
- /* provided dependency */ var Appearance_$ = __webpack_require__(484);
95671
+ /* provided dependency */ var Appearance_$ = __webpack_require__(576);
95674
95672
  /*******************************************************************************
95675
95673
  *
95676
95674
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99088,7 +99086,7 @@ const Components_Shape_default_ = {
99088
99086
  x_ite_Namespace .add ("Shape", "x_ite/Components/Shape", Components_Shape_default_);
99089
99087
  /* harmony default export */ const Components_Shape = (Components_Shape_default_);
99090
99088
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundProcessingNode.js
99091
- /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(484);
99089
+ /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(576);
99092
99090
  /*******************************************************************************
99093
99091
  *
99094
99092
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99728,7 +99726,7 @@ const X3DSoundSourceNode_default_ = X3DSoundSourceNode;
99728
99726
  x_ite_Namespace .add ("X3DSoundSourceNode", "x_ite/Components/Sound/X3DSoundSourceNode", X3DSoundSourceNode_default_);
99729
99727
  /* harmony default export */ const Sound_X3DSoundSourceNode = (X3DSoundSourceNode_default_);
99730
99728
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/AudioClip.js
99731
- /* provided dependency */ var AudioClip_$ = __webpack_require__(484);
99729
+ /* provided dependency */ var AudioClip_$ = __webpack_require__(576);
99732
99730
  /*******************************************************************************
99733
99731
  *
99734
99732
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -100030,7 +100028,7 @@ const X3DSoundNode_default_ = X3DSoundNode;
100030
100028
  x_ite_Namespace .add ("X3DSoundNode", "x_ite/Components/Sound/X3DSoundNode", X3DSoundNode_default_);
100031
100029
  /* harmony default export */ const Sound_X3DSoundNode = (X3DSoundNode_default_);
100032
100030
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundDestinationNode.js
100033
- /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(484);
100031
+ /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(576);
100034
100032
  /*******************************************************************************
100035
100033
  *
100036
100034
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -101680,7 +101678,7 @@ const ListenerPointSource_default_ = ListenerPointSource;
101680
101678
  x_ite_Namespace .add ("ListenerPointSource", "x_ite/Components/Sound/ListenerPointSource", ListenerPointSource_default_);
101681
101679
  /* harmony default export */ const Sound_ListenerPointSource = (ListenerPointSource_default_);
101682
101680
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/MicrophoneSource.js
101683
- /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(484);
101681
+ /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(576);
101684
101682
  /*******************************************************************************
101685
101683
  *
101686
101684
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -103349,8 +103347,8 @@ const GifMedia_default_ = GifMedia;
103349
103347
  x_ite_Namespace .add ("GifMedia", "x_ite/Browser/Texturing/GifMedia", GifMedia_default_);
103350
103348
  /* harmony default export */ const Texturing_GifMedia = (GifMedia_default_);
103351
103349
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
103352
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(484);
103353
- /* provided dependency */ var SuperGif = __webpack_require__(749);
103350
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(576);
103351
+ /* provided dependency */ var SuperGif = __webpack_require__(606);
103354
103352
  /*******************************************************************************
103355
103353
  *
103356
103354
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -106625,7 +106623,7 @@ const gettext_default_ = gettext;
106625
106623
  x_ite_Namespace .add ("gettext", "locale/gettext", gettext_default_);
106626
106624
  /* harmony default export */ const locale_gettext = (gettext_default_);
106627
106625
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
106628
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(484);
106626
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(576);
106629
106627
  /*******************************************************************************
106630
106628
  *
106631
106629
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107055,7 +107053,7 @@ const TextureQuality_default_ = TextureQuality;
107055
107053
  x_ite_Namespace .add ("TextureQuality", "x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
107056
107054
  /* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
107057
107055
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
107058
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(484);
107056
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(576);
107059
107057
  /*******************************************************************************
107060
107058
  *
107061
107059
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107645,7 +107643,7 @@ const RenderingProperties_default_ = RenderingProperties;
107645
107643
  x_ite_Namespace .add ("RenderingProperties", "x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
107646
107644
  /* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
107647
107645
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
107648
- /* provided dependency */ var Notification_$ = __webpack_require__(484);
107646
+ /* provided dependency */ var Notification_$ = __webpack_require__(576);
107649
107647
  /*******************************************************************************
107650
107648
  *
107651
107649
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107768,8 +107766,8 @@ const Notification_default_ = Notification;
107768
107766
  x_ite_Namespace .add ("Notification", "x_ite/Browser/Core/Notification", Notification_default_);
107769
107767
  /* harmony default export */ const Core_Notification = (Notification_default_);
107770
107768
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
107771
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(66);
107772
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(484);
107769
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(464);
107770
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(576);
107773
107771
  /*******************************************************************************
107774
107772
  *
107775
107773
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109605,11 +109603,9 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
109605
109603
  //if (node .getExecutionContext () !== this)
109606
109604
  // throw new Error ("Couldn't update exported node: node does not belong to this execution context.");
109607
109605
 
109608
- this .removeExportedNode (exportedName);
109609
-
109610
109606
  const exportedNode = new Execution_X3DExportedNode (this, exportedName, node);
109611
109607
 
109612
- this [_exportedNodes] .add (exportedName, exportedNode);
109608
+ this [_exportedNodes] .update (exportedName, exportedName, exportedNode);
109613
109609
 
109614
109610
  this ._exportedNodes_changed = this .getBrowser () .getCurrentTime ();
109615
109611
  },
@@ -110523,7 +110519,7 @@ const DataStorage_default_ = DataStorage;
110523
110519
  x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage_default_);
110524
110520
  /* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
110525
110521
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
110526
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(484);
110522
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(576);
110527
110523
  /*******************************************************************************
110528
110524
  *
110529
110525
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -111183,7 +111179,7 @@ Object .assign (X3DCoreContext .prototype,
111183
111179
  vp .position = viewpoint .getUserPosition ();
111184
111180
  vp .orientation = viewpoint .getUserOrientation ();
111185
111181
  vp .centerOfRotation = viewpoint .getUserCenterOfRotation ();
111186
- vp .fieldOfView = viewpoint .getFieldOfView ();
111182
+ vp .fieldOfView = viewpoint .getUserFieldOfView ();
111187
111183
  break;
111188
111184
  }
111189
111185
  case "OrthoViewpoint":
@@ -111191,7 +111187,7 @@ Object .assign (X3DCoreContext .prototype,
111191
111187
  vp .position = viewpoint .getUserPosition ();
111192
111188
  vp .orientation = viewpoint .getUserOrientation ();
111193
111189
  vp .centerOfRotation = viewpoint .getUserCenterOfRotation ();
111194
- vp .fieldOfView = new x_ite_Fields .MFFloat (viewpoint .getMinimumX (), viewpoint .getMinimumY (), viewpoint .getMaximumX (), viewpoint .getMaximumY ());
111190
+ vp .fieldOfView = viewpoint .getUserFieldOfView ();
111195
111191
  break;
111196
111192
  }
111197
111193
  case "GeoViewpoint":
@@ -111214,7 +111210,7 @@ Object .assign (X3DCoreContext .prototype,
111214
111210
  vp .position = viewpoint .getGeoCoord (viewpoint .getUserPosition (), geoCoord);
111215
111211
  vp .orientation = viewpoint .getUserOrientation ();
111216
111212
  vp .centerOfRotation = viewpoint .getGeoCoord (viewpoint .getUserCenterOfRotation (), geoCoord);
111217
- vp .fieldOfView = viewpoint .getFieldOfView ();
111213
+ vp .fieldOfView = viewpoint .getUserFieldOfView ();
111218
111214
  break;
111219
111215
  }
111220
111216
  }
@@ -113046,8 +113042,8 @@ const X3DViewer_default_ = X3DViewer;
113046
113042
  x_ite_Namespace .add ("X3DViewer", "x_ite/Browser/Navigation/X3DViewer", X3DViewer_default_);
113047
113043
  /* harmony default export */ const Navigation_X3DViewer = (X3DViewer_default_);
113048
113044
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
113049
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(389);
113050
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(484);
113045
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(710);
113046
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(576);
113051
113047
  /*******************************************************************************
113052
113048
  *
113053
113049
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -113919,8 +113915,8 @@ const ExamineViewer_default_ = ExamineViewer;
113919
113915
  x_ite_Namespace .add ("ExamineViewer", "x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
113920
113916
  /* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
113921
113917
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
113922
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(389);
113923
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(484);
113918
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(710);
113919
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(576);
113924
113920
  /*******************************************************************************
113925
113921
  *
113926
113922
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114929,8 +114925,8 @@ const FlyViewer_default_ = FlyViewer;
114929
114925
  x_ite_Namespace .add ("FlyViewer", "x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
114930
114926
  /* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
114931
114927
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
114932
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(389);
114933
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(484);
114928
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(710);
114929
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(576);
114934
114930
  /*******************************************************************************
114935
114931
  *
114936
114932
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115261,8 +115257,8 @@ const NoneViewer_default_ = NoneViewer;
115261
115257
  x_ite_Namespace .add ("NoneViewer", "x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
115262
115258
  /* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
115263
115259
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
115264
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(389);
115265
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(484);
115260
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(710);
115261
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(576);
115266
115262
  /*******************************************************************************
115267
115263
  *
115268
115264
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116401,8 +116397,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
116401
116397
  x_ite_Namespace .add ("X3DPickingContext", "x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
116402
116398
  /* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
116403
116399
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
116404
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(389);
116405
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(484);
116400
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(710);
116401
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(576);
116406
116402
  /*******************************************************************************
116407
116403
  *
116408
116404
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -117681,7 +117677,7 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
117681
117677
  x_ite_Namespace .add ("MultiSampleFrameBuffer", "x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
117682
117678
  /* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
117683
117679
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
117684
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(484);
117680
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(576);
117685
117681
  /*******************************************************************************
117686
117682
  *
117687
117683
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -117779,7 +117775,7 @@ Object .assign (X3DRenderingContext .prototype,
117779
117775
  {
117780
117776
  const gl = this .getContext ();
117781
117777
 
117782
- if (! navigator .userAgent .match (/Firefox/))
117778
+ if (!navigator .userAgent .match (/Firefox/))
117783
117779
  {
117784
117780
  const dbgRenderInfo = gl .getExtension ("WEBGL_debug_renderer_info");
117785
117781
 
@@ -117793,7 +117789,7 @@ Object .assign (X3DRenderingContext .prototype,
117793
117789
  {
117794
117790
  const gl = this .getContext ();
117795
117791
 
117796
- if (! navigator .userAgent .match (/Firefox/))
117792
+ if (!navigator .userAgent .match (/Firefox/))
117797
117793
  {
117798
117794
  const dbgRenderInfo = gl .getExtension ("WEBGL_debug_renderer_info");
117799
117795
 
@@ -117942,16 +117938,15 @@ Object .assign (X3DRenderingContext .prototype,
117942
117938
  reshape ()
117943
117939
  {
117944
117940
  const
117945
- $canvas = this .getCanvas (),
117941
+ canvas = this .getCanvas (),
117946
117942
  contentScale = this .getRenderingProperty ("ContentScale"),
117947
117943
  samples = this .getRenderingProperty ("Multisampling"),
117948
117944
  oit = this .getBrowserOption ("OrderIndependentTransparency"),
117949
- width = $canvas .width () * contentScale,
117950
- height = $canvas .height () * contentScale,
117951
- canvas = $canvas [0];
117945
+ width = canvas .width () * contentScale,
117946
+ height = canvas .height () * contentScale;
117952
117947
 
117953
- canvas .width = width;
117954
- canvas .height = height;
117948
+ canvas .prop ("width", width);
117949
+ canvas .prop ("height", height);
117955
117950
 
117956
117951
  this [_viewport] [2] = width;
117957
117952
  this [_viewport] [3] = height;
@@ -118584,7 +118579,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
118584
118579
  x_ite_Namespace .add ("X3DSoundContext", "x_ite/Browser/Sound/X3DSoundContext", X3DSoundContext_default_);
118585
118580
  /* harmony default export */ const Sound_X3DSoundContext = (X3DSoundContext_default_);
118586
118581
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
118587
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(484);
118582
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(576);
118588
118583
  const KTXDecoder_default_ = class KTXDecoder
118589
118584
  {
118590
118585
  constructor (gl, externalKtxlib, scriptDir)
@@ -120137,7 +120132,7 @@ const Components_default_ = Components;
120137
120132
  x_ite_Namespace .add ("Components", "x_ite/Components", Components_default_);
120138
120133
  /* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
120139
120134
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
120140
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(484);
120135
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(576);
120141
120136
  /*******************************************************************************
120142
120137
  * MIT License
120143
120138
  *
@@ -121268,7 +121263,7 @@ const SupportedProfiles_default_ = SupportedProfiles;
121268
121263
  x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
121269
121264
  /* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
121270
121265
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
121271
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(484);
121266
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(576);
121272
121267
  /*******************************************************************************
121273
121268
  *
121274
121269
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -121338,7 +121333,6 @@ x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfile
121338
121333
 
121339
121334
 
121340
121335
 
121341
-
121342
121336
 
121343
121337
 
121344
121338
  const
@@ -121956,24 +121950,55 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121956
121950
  {
121957
121951
  const [key, object] = args;
121958
121952
 
121959
- this [_browserCallbacks] .forEach (map => map .set (key, object));
121953
+ for (const [event, map] of this [_browserCallbacks])
121954
+ this [_browserCallbacks] .set (event, new Map (map) .set (key, object));
121955
+
121960
121956
  break;
121961
121957
  }
121962
121958
  case 3:
121963
121959
  {
121964
- const [key, event, object] = args;
121960
+ const
121961
+ [key, event, object] = args,
121962
+ map = new Map (this [_browserCallbacks] .get (event));
121963
+
121964
+ this [_browserCallbacks] .set (event, map);
121965
121965
 
121966
- this [_browserCallbacks] .get (event) .set (key, object);
121966
+ map .set (key, object);
121967
121967
  break;
121968
121968
  }
121969
121969
  }
121970
121970
  },
121971
- removeBrowserCallback (key, event)
121971
+ removeBrowserCallback (... args)
121972
121972
  {
121973
- if (arguments .length === 2)
121974
- this [_browserCallbacks] .get (event) .delete (key);
121975
- else
121976
- this [_browserCallbacks] .forEach (map => map .delete (key));
121973
+ switch (args .length)
121974
+ {
121975
+ case 1:
121976
+ {
121977
+ const [key] = args;
121978
+
121979
+ for (const [event, original] of this [_browserCallbacks])
121980
+ {
121981
+ const map = new Map (original);
121982
+
121983
+ this [_browserCallbacks] .set (event, map);
121984
+
121985
+ map .delete (key);
121986
+ }
121987
+
121988
+ break;
121989
+ }
121990
+ case 2:
121991
+ {
121992
+ const
121993
+ [key, event] = args,
121994
+ map = new Map (this [_browserCallbacks] .get (event));
121995
+
121996
+ this [_browserCallbacks] .set (event, map);
121997
+
121998
+ map .delete (key);
121999
+ break;
122000
+ }
122001
+ }
121977
122002
  },
121978
122003
  getBrowserCallbacks (event)
121979
122004
  {
@@ -121984,7 +122009,7 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121984
122009
  },
121985
122010
  callBrowserCallbacks (event)
121986
122011
  {
121987
- for (const callback of Utility_MapUtilities .values (this [_browserCallbacks] .get (event)))
122012
+ for (const callback of this [_browserCallbacks] .get (event) .values ())
121988
122013
  callback (event);
121989
122014
  },
121990
122015
  importDocument (dom)
@@ -122329,7 +122354,7 @@ const X3DBrowser_default_ = X3DBrowser;
122329
122354
  x_ite_Namespace .add ("X3DBrowser", "x_ite/Browser/X3DBrowser", X3DBrowser_default_);
122330
122355
  /* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
122331
122356
  ;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
122332
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(484);
122357
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(576);
122333
122358
  /*******************************************************************************
122334
122359
  *
122335
122360
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122461,8 +122486,8 @@ const X3DCanvasElement_default_ = X3DCanvasElement;
122461
122486
  x_ite_Namespace .add ("X3DCanvasElement", "x_ite/X3DCanvasElement", X3DCanvasElement_default_);
122462
122487
  /* harmony default export */ const x_ite_X3DCanvasElement = (X3DCanvasElement_default_);
122463
122488
  ;// CONCATENATED MODULE: ./src/lib/jquery.js
122464
- /* provided dependency */ var jquery_$ = __webpack_require__(484);
122465
- /* provided dependency */ var pako = __webpack_require__(251);
122489
+ /* provided dependency */ var jquery_$ = __webpack_require__(576);
122490
+ /* provided dependency */ var pako = __webpack_require__(905);
122466
122491
  Object .assign (jquery_$,
122467
122492
  {
122468
122493
  decodeText (input)
@@ -122539,14 +122564,14 @@ const jquery_default_ = jquery_$;
122539
122564
  x_ite_Namespace .add ("jquery", "lib/jquery", jquery_default_);
122540
122565
  /* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
122541
122566
  ;// CONCATENATED MODULE: ./src/lib/libtess.js
122542
- /* provided dependency */ var libtess_libtess = __webpack_require__(53);
122567
+ /* provided dependency */ var libtess_libtess = __webpack_require__(85);
122543
122568
  const libtess_default_ = libtess_libtess;
122544
122569
  ;
122545
122570
 
122546
122571
  x_ite_Namespace .add ("libtess", "lib/libtess", libtess_default_);
122547
122572
  /* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
122548
122573
  ;// CONCATENATED MODULE: ./src/x_ite/X3D.js
122549
- /* provided dependency */ var X3D_$ = __webpack_require__(484);
122574
+ /* provided dependency */ var X3D_$ = __webpack_require__(576);
122550
122575
  /*******************************************************************************
122551
122576
  *
122552
122577
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122854,7 +122879,7 @@ Object .assign (X3D,
122854
122879
 
122855
122880
  // Assign X3D to global namespace.
122856
122881
 
122857
- window [Symbol .for ("X_ITE.X3D-9.2.0")] = x_ite_X3D;
122882
+ window [Symbol .for ("X_ITE.X3D-9.2.2")] = x_ite_X3D;
122858
122883
 
122859
122884
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
122860
122885