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.mjs CHANGED
@@ -1,9 +1,9 @@
1
- /* X_ITE v9.2.0 */var __webpack_modules__ = ({
1
+ /* X_ITE v9.2.2 */var __webpack_modules__ = ({
2
2
 
3
- /***/ 66:
3
+ /***/ 464:
4
4
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
5
5
 
6
- /* provided dependency */ var jQuery = __webpack_require__(484);
6
+ /* provided dependency */ var jQuery = __webpack_require__(576);
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
- /***/ 389:
202
+ /***/ 710:
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__(484)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
216
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(576)], __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
- /***/ 484:
427
+ /***/ 576:
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
- /***/ 53:
11151
+ /***/ 85:
11152
11152
  /***/ ((module) => {
11153
11153
 
11154
11154
  /**
@@ -15927,7 +15927,7 @@ if (true) {
15927
15927
 
15928
15928
  /***/ }),
15929
15929
 
15930
- /***/ 251:
15930
+ /***/ 905:
15931
15931
  /***/ (function(__unused_webpack_module, exports) {
15932
15932
 
15933
15933
 
@@ -19172,7 +19172,7 @@ if (true) {
19172
19172
 
19173
19173
  /***/ }),
19174
19174
 
19175
- /***/ 749:
19175
+ /***/ 606:
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.0")];
20302
+ const X3D = window [Symbol .for ("X_ITE.X3D-9.2.2")];
20303
20303
 
20304
20304
  if (X3D)
20305
20305
  X3D [name] = module;
@@ -20893,6 +20893,7 @@ function Generator ({ style = "TIDY", indent = "", precision = 7, doublePrecisio
20893
20893
 
20894
20894
  this .executionContextStack = [ ];
20895
20895
  this .importedNodesIndex = new Map ();
20896
+ this .importedNames = new Map ();
20896
20897
  this .exportedNodesIndex = new Map ();
20897
20898
  this .nodes = new Set ();
20898
20899
  this .names = new Map ();
@@ -21205,7 +21206,7 @@ Object .assign (Generator .prototype,
21205
21206
  if (baseNode .hasRoutes ())
21206
21207
  return true;
21207
21208
 
21208
- const executionContext = baseNode .getExecutionContext ();
21209
+ const executionContext = this .ExecutionContext ();
21209
21210
 
21210
21211
  if (this .importedNodesIndex .get (executionContext) ?.has (baseNode))
21211
21212
  return true;
@@ -21215,15 +21216,19 @@ Object .assign (Generator .prototype,
21215
21216
 
21216
21217
  return false;
21217
21218
  },
21218
- ImportedName (name)
21219
+ ImportedName (importedNode)
21219
21220
  {
21221
+ if (this .importedNames .has (importedNode))
21222
+ return this .importedNames .get (importedNode);
21223
+
21220
21224
  const
21221
21225
  names = this .names .get (this .ExecutionContext ()),
21222
- newName = getUniqueName (names, name);
21226
+ newName = getUniqueName (names, importedNode .getImportedName ());
21223
21227
 
21224
21228
  // Add to indices.
21225
21229
 
21226
21230
  names .add (newName);
21231
+ this .importedNames .set (importedNode, newName);
21227
21232
 
21228
21233
  return newName;
21229
21234
  },
@@ -21380,105 +21385,6 @@ const Generator_default_ = Generator;
21380
21385
 
21381
21386
  x_ite_Namespace .add ("Generator", "x_ite/InputOutput/Generator", Generator_default_);
21382
21387
  /* 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
21388
  ;// CONCATENATED MODULE: ./src/x_ite/DEVELOPMENT.js
21483
21389
  /*******************************************************************************
21484
21390
  *
@@ -21585,7 +21491,6 @@ x_ite_Namespace .add ("DEVELOPMENT", "x_ite/DEVELOPMENT", DEVELOPMENT_default_);
21585
21491
 
21586
21492
 
21587
21493
 
21588
-
21589
21494
  const
21590
21495
  _name = Symbol (),
21591
21496
  _interests = Symbol (),
@@ -21625,17 +21530,18 @@ Object .assign (X3DObject .prototype,
21625
21530
  },
21626
21531
  addInterest (callbackName, object, ... args)
21627
21532
  {
21628
- if (this [_interests] === X3DObject .prototype [_interests])
21629
- this [_interests] = new Map ();
21630
-
21631
21533
  const
21632
21534
  interestId = X3DObject .getInterestId (callbackName, object),
21633
21535
  callback = object [callbackName];
21634
21536
 
21537
+ this [_interests] = new Map (this [_interests]);
21538
+
21635
21539
  this [_interests] .set (interestId, callback .bind (object, ... args, this));
21636
21540
  },
21637
21541
  removeInterest (callbackName, object)
21638
21542
  {
21543
+ this [_interests] = new Map (this [_interests]);
21544
+
21639
21545
  this [_interests] .delete (X3DObject .getInterestId (callbackName, object));
21640
21546
  },
21641
21547
  getInterests ()
@@ -21644,7 +21550,7 @@ Object .assign (X3DObject .prototype,
21644
21550
  },
21645
21551
  processInterests ()
21646
21552
  {
21647
- for (const interest of Utility_MapUtilities .values (this [_interests]))
21553
+ for (const interest of this [_interests] .values ())
21648
21554
  interest ();
21649
21555
  },
21650
21556
  getUserData (key)
@@ -22412,6 +22318,13 @@ Object .assign (Object .setPrototypeOf (X3DInfoArray .prototype, Base_X3DChildOb
22412
22318
 
22413
22319
  return copy;
22414
22320
  },
22321
+ clear ()
22322
+ {
22323
+ this [_array] .length = 0;
22324
+ this [_index] .clear ();
22325
+
22326
+ this .addEvent ();
22327
+ },
22415
22328
  assign (array)
22416
22329
  {
22417
22330
  if (!(array instanceof this .constructor))
@@ -22783,7 +22696,6 @@ x_ite_Namespace .add ("FieldDefinitionArray", "x_ite/Base/FieldDefinitionArray",
22783
22696
 
22784
22697
 
22785
22698
 
22786
-
22787
22699
  const
22788
22700
  _value = Symbol (),
22789
22701
  _accessType = Symbol (),
@@ -22960,13 +22872,14 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
22960
22872
  },
22961
22873
  addReferencesCallback (key, object)
22962
22874
  {
22963
- if (this [_referencesCallbacks] === X3DField .prototype [_referencesCallbacks])
22964
- this [_referencesCallbacks] = new Map ();
22875
+ this [_referencesCallbacks] = new Map (this [_referencesCallbacks]);
22965
22876
 
22966
22877
  this [_referencesCallbacks] .set (key, object);
22967
22878
  },
22968
22879
  removeReferencesCallback (key)
22969
22880
  {
22881
+ this [_referencesCallbacks] = new Map (this [_referencesCallbacks]);
22882
+
22970
22883
  this [_referencesCallbacks] .delete (key);
22971
22884
  },
22972
22885
  getReferencesCallbacks ()
@@ -22975,7 +22888,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
22975
22888
  },
22976
22889
  processReferencesCallbacks ()
22977
22890
  {
22978
- for (const callback of Utility_MapUtilities .values (this [_referencesCallbacks]))
22891
+ for (const callback of this [_referencesCallbacks] .values ())
22979
22892
  callback ();
22980
22893
  },
22981
22894
  addFieldInterest (field)
@@ -22995,13 +22908,14 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
22995
22908
  },
22996
22909
  addFieldCallback (key, object)
22997
22910
  {
22998
- if (this [_fieldCallbacks] === X3DField .prototype [_fieldCallbacks])
22999
- this [_fieldCallbacks] = new Map ();
22911
+ this [_fieldCallbacks] = new Map (this [_fieldCallbacks]);
23000
22912
 
23001
22913
  this [_fieldCallbacks] .set (key, object);
23002
22914
  },
23003
22915
  removeFieldCallback (key)
23004
22916
  {
22917
+ this [_fieldCallbacks] = new Map (this [_fieldCallbacks]);
22918
+
23005
22919
  this [_fieldCallbacks] .delete (key);
23006
22920
  },
23007
22921
  getFieldCallbacks ()
@@ -23050,13 +22964,14 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23050
22964
  {
23051
22965
  // Processed if routes are changed.
23052
22966
 
23053
- if (this [_routeCallbacks] === X3DField .prototype [_routeCallbacks])
23054
- this [_routeCallbacks] = new Map ();
22967
+ this [_routeCallbacks] = new Map (this [_routeCallbacks]);
23055
22968
 
23056
22969
  this [_routeCallbacks] .set (key, object);
23057
22970
  },
23058
22971
  removeRouteCallback (key)
23059
22972
  {
22973
+ this [_routeCallbacks] = new Map (this [_routeCallbacks]);
22974
+
23060
22975
  this [_routeCallbacks] .delete (key);
23061
22976
  },
23062
22977
  getRouteCallbacks ()
@@ -23065,7 +22980,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23065
22980
  },
23066
22981
  processRouteCallbacks ()
23067
22982
  {
23068
- for (const callback of Utility_MapUtilities .values (this [_routeCallbacks]))
22983
+ for (const callback of this [_routeCallbacks] .values ())
23069
22984
  callback ();
23070
22985
  },
23071
22986
  processEvent (event = Base_Events .create (this))
@@ -23108,7 +23023,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23108
23023
 
23109
23024
  // Process field callbacks.
23110
23025
 
23111
- for (const callback of Utility_MapUtilities .values (this [_fieldCallbacks]))
23026
+ for (const callback of this [_fieldCallbacks] .values ())
23112
23027
  callback (this .valueOf ());
23113
23028
  },
23114
23029
  fromString (string, scene)
@@ -34293,7 +34208,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34293
34208
  x_ite_Namespace .add ("X3DBaseNode", "x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
34294
34209
  /* harmony default export */ const Base_X3DBaseNode = (X3DBaseNode_default_);
34295
34210
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
34296
- /* provided dependency */ var $ = __webpack_require__(484);
34211
+ /* provided dependency */ var $ = __webpack_require__(576);
34297
34212
  /*******************************************************************************
34298
34213
  *
34299
34214
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34430,7 +34345,7 @@ x_ite_Namespace .add ("Legacy", "x_ite/Browser/Legacy", Legacy_default_);
34430
34345
  *
34431
34346
  ******************************************************************************/
34432
34347
 
34433
- const BROWSER_VERSION_default_ = "9.2.0";
34348
+ const BROWSER_VERSION_default_ = "9.2.2";
34434
34349
  ;
34435
34350
 
34436
34351
  x_ite_Namespace .add ("BROWSER_VERSION", "x_ite/BROWSER_VERSION", BROWSER_VERSION_default_);
@@ -37290,6 +37205,10 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Base_X3DObje
37290
37205
  {
37291
37206
  return this [_importedName];
37292
37207
  },
37208
+ [Symbol .for ("X_ITE.X3DImportedNode.setImportName")] (importName)
37209
+ {
37210
+ this [_importedName] = importName;
37211
+ },
37293
37212
  toVRMLStream (generator)
37294
37213
  {
37295
37214
  if (!generator .ExistsNode (this .getInlineNode ()))
@@ -37297,7 +37216,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Base_X3DObje
37297
37216
 
37298
37217
  generator .AddRouteNode (this);
37299
37218
 
37300
- const importedName = generator .ImportedName (this .getImportedName ());
37219
+ const importedName = generator .ImportedName (this);
37301
37220
 
37302
37221
  generator .string += generator .Indent ();
37303
37222
  generator .string += "IMPORT";
@@ -37321,7 +37240,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Base_X3DObje
37321
37240
 
37322
37241
  generator .AddRouteNode (this);
37323
37242
 
37324
- const importedName = generator .ImportedName (this .getImportedName ());
37243
+ const importedName = generator .ImportedName (this);
37325
37244
 
37326
37245
  generator .string += generator .Indent ();
37327
37246
  generator .string += "<IMPORT";
@@ -37351,7 +37270,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Base_X3DObje
37351
37270
 
37352
37271
  generator .AddRouteNode (this);
37353
37272
 
37354
- const importedName = generator .ImportedName (this .getImportedName ());
37273
+ const importedName = generator .ImportedName (this);
37355
37274
 
37356
37275
  generator .string += generator .Indent ();
37357
37276
  generator .string += '{';
@@ -37739,7 +37658,7 @@ Object .assign (X3DUrlObject .prototype,
37739
37658
 
37740
37659
  const browser = this .getBrowser ();
37741
37660
 
37742
- if (!browser .getBrowserOption ("LoadUrlObjects") && this .getExecutionContext () !== browser .getPrivateScene () && !this .isExternProto)
37661
+ if (!browser .getBrowserOption ("LoadUrlObjects") && this .getExecutionContext () !== browser .getPrivateScene ())
37743
37662
  {
37744
37663
  resolve ();
37745
37664
  return;
@@ -38570,7 +38489,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
38570
38489
  x_ite_Namespace .add ("X3DProtoDeclaration", "x_ite/Prototype/X3DProtoDeclaration", X3DProtoDeclaration_default_);
38571
38490
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (X3DProtoDeclaration_default_);
38572
38491
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
38573
- /* provided dependency */ var X3DParser_$ = __webpack_require__(484);
38492
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(576);
38574
38493
  /*******************************************************************************
38575
38494
  *
38576
38495
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -38714,6 +38633,26 @@ Object .assign (X3DParser .prototype,
38714
38633
 
38715
38634
  return name;
38716
38635
  },
38636
+ renameExistingNode (name)
38637
+ {
38638
+ try
38639
+ {
38640
+ const namedNode = this .getExecutionContext () .getNamedNode (name);
38641
+
38642
+ this .getExecutionContext () .updateNamedNode (this .getExecutionContext () .getUniqueName (name), namedNode);
38643
+ }
38644
+ catch
38645
+ { }
38646
+
38647
+ try
38648
+ {
38649
+ const importedName = this .getExecutionContext () .getUniqueImportName (name);
38650
+
38651
+ this .getExecutionContext () .renameImportedNode (name, importedName);
38652
+ }
38653
+ catch
38654
+ { }
38655
+ },
38717
38656
  });
38718
38657
 
38719
38658
  const X3DParser_default_ = X3DParser;
@@ -38812,7 +38751,7 @@ const Expressions_default_ = Expressions;
38812
38751
  x_ite_Namespace .add ("Expressions", "x_ite/Parser/Expressions", Expressions_default_);
38813
38752
  /* harmony default export */ const Parser_Expressions = (Expressions_default_);
38814
38753
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
38815
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(484);
38754
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(576);
38816
38755
  /*******************************************************************************
38817
38756
  *
38818
38757
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39392,13 +39331,17 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
39392
39331
  var exportedNodeNameId = localNodeNameId;
39393
39332
  }
39394
39333
 
39395
- if (this .getScene () === this .getExecutionContext ())
39334
+ try
39396
39335
  {
39397
- this .getScene () .updateExportedNode (exportedNodeNameId, node);
39398
- return true;
39336
+ const existingNode = this .getScene () .getExportedNode (exportedNodeNameId);
39337
+
39338
+ this .getScene () .addExportedNode (this .getScene () .getUniqueExportName (exportedNodeNameId), existingNode);
39399
39339
  }
39340
+ catch
39341
+ { }
39400
39342
 
39401
- throw new Error ("Export statement not allowed here.");
39343
+ this .getScene () .updateExportedNode (exportedNodeNameId, node);
39344
+ return true;
39402
39345
  }
39403
39346
 
39404
39347
  throw new Error ("No name given after EXPORT.");
@@ -39441,7 +39384,13 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
39441
39384
  var nodeNameId = exportedNodeNameId;
39442
39385
  }
39443
39386
 
39444
- this .getExecutionContext () .updateImportedNode (namedNode, exportedNodeNameId, nodeNameId);
39387
+ // Rename existing imported node.
39388
+
39389
+ this .renameExistingNode (nodeNameId);
39390
+
39391
+ // Add new imported node.
39392
+
39393
+ this .getExecutionContext () .addImportedNode (namedNode, exportedNodeNameId, nodeNameId);
39445
39394
  return true;
39446
39395
  }
39447
39396
 
@@ -40063,14 +40012,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
40063
40012
 
40064
40013
  if (nodeNameId .length)
40065
40014
  {
40066
- try
40067
- {
40068
- const namedNode = this .getExecutionContext () .getNamedNode (nodeNameId);
40069
-
40070
- this .getExecutionContext () .updateNamedNode (this .getExecutionContext () .getUniqueName (nodeNameId), namedNode);
40071
- }
40072
- catch
40073
- { }
40015
+ this .renameExistingNode (nodeNameId);
40074
40016
 
40075
40017
  this .getExecutionContext () .updateNamedNode (nodeNameId, baseNode);
40076
40018
  }
@@ -41495,7 +41437,7 @@ const VRMLParser_default_ = VRMLParser;
41495
41437
  x_ite_Namespace .add ("VRMLParser", "x_ite/Parser/VRMLParser", VRMLParser_default_);
41496
41438
  /* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
41497
41439
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
41498
- /* provided dependency */ var XMLParser_$ = __webpack_require__(484);
41440
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(576);
41499
41441
  /*******************************************************************************
41500
41442
  *
41501
41443
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -41803,10 +41745,10 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
41803
41745
  componentSupportLevel = parseInt (xmlElement .getAttribute ("level"));
41804
41746
 
41805
41747
  if (componentNameIdCharacters === null)
41806
- return console .warn ("XML Parser Error: Bad component statement. Expected name attribute.");
41748
+ return console .warn ("XML Parser: Bad component statement. Expected name attribute.");
41807
41749
 
41808
41750
  if (componentSupportLevel === null)
41809
- return console .warn ("XML Parser Error: Bad component statement. Expected level attribute.");
41751
+ return console .warn ("XML Parser: Bad component statement. Expected level attribute.");
41810
41752
 
41811
41753
  const component = this .getBrowser () .getComponent (componentNameIdCharacters, componentSupportLevel);
41812
41754
 
@@ -41825,13 +41767,13 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
41825
41767
  conversionFactor = xmlElement .getAttribute ("conversionFactor"); //works for html5 as well
41826
41768
 
41827
41769
  if (category === null)
41828
- return console .warn ("XML Parser Error: Bad unit statement. Expected category attribute.");
41770
+ return console .warn ("XML Parser: Bad unit statement. Expected category attribute.");
41829
41771
 
41830
41772
  if (name === null)
41831
- return console .warn ("XML Parser Error: Bad unit statement. Expected name attribute.");
41773
+ return console .warn ("XML Parser: Bad unit statement. Expected name attribute.");
41832
41774
 
41833
41775
  if (conversionFactor === null)
41834
- return console .warn ("XML Parser Error: Bad unit statement. Expected conversionFactor attribute.");
41776
+ return console .warn ("XML Parser: Bad unit statement. Expected conversionFactor attribute.");
41835
41777
 
41836
41778
  this .getScene () .updateUnit (category, name, parseFloat (conversionFactor));
41837
41779
  },
@@ -41842,10 +41784,10 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
41842
41784
  metavalue = xmlElement .getAttribute ("content");
41843
41785
 
41844
41786
  if (metakey === null)
41845
- return console .warn ("XML Parser Error: Bad meta statement. Expected name attribute.");
41787
+ return console .warn ("XML Parser: Bad meta statement. Expected name attribute.");
41846
41788
 
41847
41789
  if (metavalue === null)
41848
- return console .warn ("XML Parser Error: Bad meta statement. Expected content attribute.");
41790
+ return console .warn ("XML Parser: Bad meta statement. Expected content attribute.");
41849
41791
 
41850
41792
  this .getScene () .addMetaData (metakey, metavalue);
41851
41793
  },
@@ -41930,7 +41872,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
41930
41872
  this .parser .sfstringValues (this .url);
41931
41873
 
41932
41874
  if (!this .url .length)
41933
- console .warn ("XML Parser Error: Bad ExternProtoDeclare statement. Expected url attribute with value.");
41875
+ console .warn ("XML Parser: Bad ExternProtoDeclare statement. Expected url attribute with value.");
41934
41876
 
41935
41877
  const externproto = new Prototype_X3DExternProtoDeclaration (this .getExecutionContext (), this .url);
41936
41878
 
@@ -42109,10 +42051,10 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42109
42051
  protoFieldName = xmlElement .getAttribute ("protoField");
42110
42052
 
42111
42053
  if (nodeFieldName === null)
42112
- return console .warn ("XML Parser Error: Bad connect statement. Expected nodeField attribute.");
42054
+ return console .warn ("XML Parser: Bad connect statement. Expected nodeField attribute.");
42113
42055
 
42114
42056
  if (protoFieldName === null)
42115
- return console .warn ("XML Parser Error: Bad connect statement. Expected protoField attribute.");
42057
+ return console .warn ("XML Parser: Bad connect statement. Expected protoField attribute.");
42116
42058
 
42117
42059
  try
42118
42060
  {
@@ -42142,7 +42084,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42142
42084
  }
42143
42085
  catch (error)
42144
42086
  {
42145
- console .warn (`XML Parser Error: Couldn't create IS reference. ${error .message}`);
42087
+ console .warn (`XML Parser: Couldn't create IS reference. ${error .message}`);
42146
42088
  }
42147
42089
  },
42148
42090
  protoInstanceElement (xmlElement)
@@ -42177,7 +42119,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42177
42119
  }
42178
42120
  catch (error)
42179
42121
  {
42180
- console .warn ("XML Parser Error: ", error .message);
42122
+ console .warn ("XML Parser: ", error .message);
42181
42123
 
42182
42124
  if (DEVELOPMENT)
42183
42125
  console .error (error);
@@ -42220,7 +42162,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42220
42162
  }
42221
42163
  catch (error)
42222
42164
  {
42223
- console .warn (`XML Parser Error: Couldn't assign field value. ${error .message}`);
42165
+ console .warn (`XML Parser: Couldn't assign field value. ${error .message}`);
42224
42166
  }
42225
42167
  },
42226
42168
  nodeElement (xmlElement)
@@ -42267,7 +42209,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42267
42209
  if (DEVELOPMENT)
42268
42210
  console .error (error);
42269
42211
  else
42270
- console .error (`XML Parser Error: ${error .message}`);
42212
+ console .error (`XML Parser: ${error .message}`);
42271
42213
  }
42272
42214
  },
42273
42215
  scriptElement (element)
@@ -42319,7 +42261,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42319
42261
  }
42320
42262
  catch (error)
42321
42263
  {
42322
- console .warn (`XML Parser Error: ${error .message}`);
42264
+ console .warn (`XML Parser: ${error .message}`);
42323
42265
 
42324
42266
  if (DEVELOPMENT)
42325
42267
  console .error (error);
@@ -42342,23 +42284,23 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42342
42284
 
42343
42285
  const inlineNode = this .getExecutionContext () .getNamedNode (inlineNodeName);
42344
42286
 
42345
- this .getExecutionContext () .updateImportedNode (inlineNode, exportedNodeName, localNodeName);
42287
+ // Rename existing imported node.
42288
+
42289
+ this .renameExistingNode (localNodeName);
42290
+
42291
+ // Add new imported node.
42292
+
42293
+ this .getExecutionContext () .addImportedNode (inlineNode, exportedNodeName, localNodeName);
42346
42294
  }
42347
42295
  catch (error)
42348
42296
  {
42349
- console .warn (`XML Parser Error: ${error .message}`);
42297
+ console .warn (`XML Parser: ${error .message}`);
42350
42298
  }
42351
42299
  },
42352
42300
  exportElement (xmlElement)
42353
42301
  {
42354
42302
  try
42355
42303
  {
42356
- if (this .getScene () !== this .getExecutionContext ())
42357
- {
42358
- console .warn ("XML Parser Error: Export statement not allowed here.");
42359
- return;
42360
- }
42361
-
42362
42304
  const
42363
42305
  localNodeName = xmlElement .getAttribute ("localDEF"),
42364
42306
  exportedNodeName = xmlElement .getAttribute ("AS") || localNodeName;
@@ -42368,11 +42310,20 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42368
42310
 
42369
42311
  const localNode = this .getExecutionContext () .getLocalNode (localNodeName);
42370
42312
 
42313
+ try
42314
+ {
42315
+ const existingNode = this .getScene () .getExportedNode (exportedNodeName);
42316
+
42317
+ this .getScene () .addExportedNode (this .getScene () .getUniqueExportName (exportedNodeName), existingNode);
42318
+ }
42319
+ catch
42320
+ { }
42321
+
42371
42322
  this .getScene () .updateExportedNode (exportedNodeName, localNode);
42372
42323
  }
42373
42324
  catch (error)
42374
42325
  {
42375
- console .warn (`XML Parser Error: ${error .message}`);
42326
+ console .warn (`XML Parser: ${error .message}`);
42376
42327
  }
42377
42328
  },
42378
42329
  cdataNode (xmlElement)
@@ -42395,13 +42346,16 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42395
42346
  {
42396
42347
  const node = this .getExecutionContext () .getNamedNode (name);
42397
42348
 
42349
+ if (xmlElement .nodeName !== node .getNodeTypeName ())
42350
+ console .warn (`XML Parser: DEF/USE mismatch, '${name}', ${xmlElement .nodeName} != ${node .getNodeTypeName ()}.`);
42351
+
42398
42352
  this .addNode (xmlElement, node .getValue ());
42399
42353
  return true;
42400
42354
  }
42401
42355
  }
42402
42356
  catch (error)
42403
42357
  {
42404
- console .warn (`Invalid USE name: ${error .message}`);
42358
+ console .warn (`XML Parser: Invalid USE name: ${error .message}`);
42405
42359
  }
42406
42360
 
42407
42361
  return false;
@@ -42414,21 +42368,14 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42414
42368
 
42415
42369
  if (name)
42416
42370
  {
42417
- try
42418
- {
42419
- const namedNode = this .getExecutionContext () .getNamedNode (name);
42420
-
42421
- this .getExecutionContext () .updateNamedNode (this .getExecutionContext () .getUniqueName (name), namedNode);
42422
- }
42423
- catch
42424
- { }
42371
+ this .renameExistingNode (name);
42425
42372
 
42426
42373
  this .getExecutionContext () .updateNamedNode (name, node);
42427
42374
  }
42428
42375
  }
42429
42376
  catch (error)
42430
42377
  {
42431
- console .warn (`Invalid DEF name: ${error .message}`);
42378
+ console .warn (`XML Parser: Invalid DEF name: ${error .message}`);
42432
42379
  }
42433
42380
  },
42434
42381
  nodeAttributes (xmlElement, node)
@@ -42523,7 +42470,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
42523
42470
 
42524
42471
  if (!containerField)
42525
42472
  {
42526
- console .warn ("Node must have a container field attribute.");
42473
+ console .warn ("XML Parser: Node must have a container field attribute.");
42527
42474
  return;
42528
42475
  }
42529
42476
 
@@ -43586,7 +43533,7 @@ const URLs_default_ = URLs;
43586
43533
  x_ite_Namespace .add ("URLs", "x_ite/Browser/Networking/URLs", URLs_default_);
43587
43534
  /* harmony default export */ const Networking_URLs = (URLs_default_);
43588
43535
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
43589
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(484);
43536
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(576);
43590
43537
  /*******************************************************************************
43591
43538
  *
43592
43539
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -46887,7 +46834,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
46887
46834
  x_ite_Namespace .add ("GLTF2Parser", "x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
46888
46835
  /* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
46889
46836
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
46890
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(484);
46837
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(576);
46891
46838
  /*******************************************************************************
46892
46839
  *
46893
46840
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -47039,7 +46986,7 @@ const GLB2Parser_default_ = GLB2Parser;
47039
46986
  x_ite_Namespace .add ("GLB2Parser", "x_ite/Parser/GLB2Parser", GLB2Parser_default_);
47040
46987
  /* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
47041
46988
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
47042
- /* provided dependency */ var OBJParser_$ = __webpack_require__(484);
46989
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(576);
47043
46990
  /*******************************************************************************
47044
46991
  *
47045
46992
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -50394,8 +50341,8 @@ const MatrixStack_default_ = MatrixStack;
50394
50341
  x_ite_Namespace .add ("MatrixStack", "standard/Math/Utility/MatrixStack", MatrixStack_default_);
50395
50342
  /* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
50396
50343
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
50397
- /* provided dependency */ var SVGParser_$ = __webpack_require__(484);
50398
- /* provided dependency */ var libtess = __webpack_require__(53);
50344
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(576);
50345
+ /* provided dependency */ var libtess = __webpack_require__(85);
50399
50346
  /*******************************************************************************
50400
50347
  *
50401
50348
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53163,7 +53110,7 @@ const SVGParser_default_ = SVGParser;
53163
53110
  x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_);
53164
53111
  /* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
53165
53112
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
53166
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(484);
53113
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(576);
53167
53114
  /*******************************************************************************
53168
53115
  *
53169
53116
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53500,7 +53447,7 @@ const Plane3_default_ = Plane3;
53500
53447
  x_ite_Namespace .add ("Plane3", "standard/Math/Geometry/Plane3", Plane3_default_);
53501
53448
  /* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
53502
53449
  ;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
53503
- /* provided dependency */ var Triangle3_libtess = __webpack_require__(53);
53450
+ /* provided dependency */ var Triangle3_libtess = __webpack_require__(85);
53504
53451
  /*******************************************************************************
53505
53452
  *
53506
53453
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -54460,15 +54407,14 @@ x_ite_Namespace .add ("TextureBuffer", "x_ite/Rendering/TextureBuffer", TextureB
54460
54407
 
54461
54408
  let i = 0;
54462
54409
 
54463
- const TraverseType =
54464
- {
54410
+ const TraverseType = Object .freeze ({
54465
54411
  POINTER: i ++,
54466
54412
  CAMERA: i ++,
54467
54413
  PICKING: i ++,
54468
54414
  COLLISION: i ++,
54469
54415
  SHADOW: i ++,
54470
54416
  DISPLAY: i ++,
54471
- };
54417
+ });
54472
54418
 
54473
54419
  const TraverseType_default_ = TraverseType;
54474
54420
  ;
@@ -61007,7 +60953,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
61007
60953
  x_ite_Namespace .add ("X3DTexture2DNode", "x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
61008
60954
  /* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
61009
60955
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
61010
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(484);
60956
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(576);
61011
60957
  /*******************************************************************************
61012
60958
  *
61013
60959
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -63484,22 +63430,34 @@ Object .assign (Object .setPrototypeOf (X3DViewpointNode .prototype, Core_X3DBin
63484
63430
  {
63485
63431
  return this ._position .getValue ();
63486
63432
  },
63487
- getUserPosition ()
63433
+ setPosition (value)
63488
63434
  {
63489
- return this .userPosition .assign (this .getPosition ()) .add (this ._positionOffset .getValue ());
63435
+ this ._position = value;
63490
63436
  },
63491
63437
  getOrientation ()
63492
63438
  {
63493
63439
  return this ._orientation .getValue ();
63494
63440
  },
63495
- getUserOrientation ()
63441
+ setOrientation (value)
63496
63442
  {
63497
- return this .userOrientation .assign (this .getOrientation ()) .multRight (this ._orientationOffset .getValue ());
63443
+ this ._orientation = value;
63498
63444
  },
63499
63445
  getCenterOfRotation ()
63500
63446
  {
63501
63447
  return this ._centerOfRotation .getValue ();
63502
63448
  },
63449
+ setCenterOfRotation (value)
63450
+ {
63451
+ this ._centerOfRotation = value;
63452
+ },
63453
+ getUserPosition ()
63454
+ {
63455
+ return this .userPosition .assign (this .getPosition ()) .add (this ._positionOffset .getValue ());
63456
+ },
63457
+ getUserOrientation ()
63458
+ {
63459
+ return this .userOrientation .assign (this .getOrientation ()) .multRight (this ._orientationOffset .getValue ());
63460
+ },
63503
63461
  getUserCenterOfRotation ()
63504
63462
  {
63505
63463
  return this .userCenterOfRotation .assign (this .getCenterOfRotation ()) .add (this ._centerOfRotationOffset .getValue ());
@@ -63969,7 +63927,7 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
63969
63927
  const relative = Navigation_X3DViewpointNode .prototype .getRelativeTransformation .call (this, fromViewpointNode);
63970
63928
 
63971
63929
  if (fromViewpointNode .constructor === this .constructor)
63972
- relative .fieldOfView = fromViewpointNode .getFieldOfView ();
63930
+ relative .fieldOfView = fromViewpointNode .getUserFieldOfView ();
63973
63931
 
63974
63932
  return relative;
63975
63933
  },
@@ -63977,7 +63935,7 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
63977
63935
  {
63978
63936
  if (fromViewpointNode .constructor === this .constructor)
63979
63937
  {
63980
- const scale = relative .fieldOfView / this .getFieldOfView ();
63938
+ const scale = relative .fieldOfView / this .getUserFieldOfView ();
63981
63939
 
63982
63940
  this .fieldOfViewScaleInterpolator ._keyValue = new x_ite_Fields .MFFloat (scale, this ._fieldOfViewScale .getValue ());
63983
63941
 
@@ -63995,6 +63953,12 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
63995
63953
  return false;
63996
63954
  },
63997
63955
  getFieldOfView ()
63956
+ {
63957
+ const fov = this ._fieldOfView .getValue ();
63958
+
63959
+ return fov > 0 && fov < Math .PI ? fov : Math .PI / 4;
63960
+ },
63961
+ getUserFieldOfView ()
63998
63962
  {
63999
63963
  const fov = this ._fieldOfView .getValue () * this ._fieldOfViewScale .getValue ();
64000
63964
 
@@ -64008,7 +63972,7 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
64008
63972
  width = viewport [2],
64009
63973
  height = viewport [3];
64010
63974
 
64011
- let size = Math .abs (point .z) * Math .tan (this .getFieldOfView () / 2) * 2;
63975
+ let size = Math .abs (point .z) * Math .tan (this .getUserFieldOfView () / 2) * 2;
64012
63976
 
64013
63977
  if (width > height)
64014
63978
  size /= height;
@@ -64028,7 +63992,7 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
64028
63992
  const
64029
63993
  width = viewport [2],
64030
63994
  height = viewport [3],
64031
- size = nearValue * Math .tan (this .getFieldOfView () / 2) * 2,
63995
+ size = nearValue * Math .tan (this .getUserFieldOfView () / 2) * 2,
64032
63996
  aspect = width / height;
64033
63997
 
64034
63998
  if (aspect > 1)
@@ -64039,11 +64003,11 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, Navigation_X3DView
64039
64003
  })(),
64040
64004
  getLookAtDistance (bbox)
64041
64005
  {
64042
- return (bbox .size .magnitude () / 2) / Math .tan (this .getFieldOfView () / 2);
64006
+ return (bbox .size .magnitude () / 2) / Math .tan (this .getUserFieldOfView () / 2);
64043
64007
  },
64044
64008
  getProjectionMatrixWithLimits (nearValue, farValue, viewport)
64045
64009
  {
64046
- return Geometry_Camera .perspective (this .getFieldOfView (), nearValue, farValue, viewport [2], viewport [3], this .projectionMatrix);
64010
+ return Geometry_Camera .perspective (this .getUserFieldOfView (), nearValue, farValue, viewport [2], viewport [3], this .projectionMatrix);
64047
64011
  },
64048
64012
  });
64049
64013
 
@@ -64375,16 +64339,16 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
64375
64339
  this .set_children__ ();
64376
64340
  },
64377
64341
  getBBox (bbox, shadows)
64378
- {
64379
- return this .getSubBBox (bbox, shadows);
64380
- },
64381
- getSubBBox (bbox, shadows)
64382
64342
  {
64383
64343
  if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
64384
- return Grouping_X3DBoundedObject .prototype .getBBox .call (this, this .visibleNodes, bbox, shadows);
64344
+ return this .getSubBBox (bbox, shadows);
64385
64345
 
64386
64346
  return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
64387
64347
  },
64348
+ getSubBBox (bbox, shadows)
64349
+ {
64350
+ return Grouping_X3DBoundedObject .prototype .getBBox .call (this, this .visibleNodes, bbox, shadows);
64351
+ },
64388
64352
  setAllowedTypes (/* type, ... */)
64389
64353
  {
64390
64354
  const allowedTypes = this .allowedTypes;
@@ -65594,7 +65558,7 @@ const X3DWorld_default_ = X3DWorld;
65594
65558
  x_ite_Namespace .add ("X3DWorld", "x_ite/Execution/X3DWorld", X3DWorld_default_);
65595
65559
  /* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
65596
65560
  ;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
65597
- /* provided dependency */ var FileLoader_$ = __webpack_require__(484);
65561
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(576);
65598
65562
  /*******************************************************************************
65599
65563
  *
65600
65564
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66525,7 +66489,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
66525
66489
  x_ite_Namespace .add ("ProtoDeclarationArray", "x_ite/Prototype/ProtoDeclarationArray", ProtoDeclarationArray_default_);
66526
66490
  /* harmony default export */ const Prototype_ProtoDeclarationArray = (ProtoDeclarationArray_default_);
66527
66491
  ;// CONCATENATED MODULE: ./src/x_ite/Routing/X3DRoute.js
66528
- /* provided dependency */ var X3DRoute_$ = __webpack_require__(484);
66492
+ /* provided dependency */ var X3DRoute_$ = __webpack_require__(576);
66529
66493
  /*******************************************************************************
66530
66494
  *
66531
66495
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66745,11 +66709,11 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66745
66709
 
66746
66710
  const sourceNodeName = this [_sourceNode] instanceof Core_X3DNode
66747
66711
  ? generator .Name (this [_sourceNode])
66748
- : this [_sourceNode] .getImportedName ();
66712
+ : generator .ImportedName (this [_sourceNode]);
66749
66713
 
66750
66714
  const destinationNodeName = this [_destinationNode] instanceof Core_X3DNode
66751
66715
  ? generator .Name (this [_destinationNode])
66752
- : this [_destinationNode] .getImportedName ();
66716
+ : generator .ImportedName (this [_destinationNode]);
66753
66717
 
66754
66718
  generator .string += generator .Indent ();
66755
66719
  generator .string += "ROUTE";
@@ -66774,11 +66738,11 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66774
66738
 
66775
66739
  const sourceNodeName = this [_sourceNode] instanceof Core_X3DNode
66776
66740
  ? generator .Name (this [_sourceNode])
66777
- : this [_sourceNode] .getImportedName ();
66741
+ : generator .ImportedName (this [_sourceNode]);
66778
66742
 
66779
66743
  const destinationNodeName = this [_destinationNode] instanceof Core_X3DNode
66780
66744
  ? generator .Name (this [_destinationNode])
66781
- : this [_destinationNode] .getImportedName ();
66745
+ : generator .ImportedName (this [_destinationNode]);
66782
66746
 
66783
66747
  generator .string += generator .Indent ();
66784
66748
  generator .string += "<ROUTE";
@@ -66810,11 +66774,11 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66810
66774
 
66811
66775
  const sourceNodeName = this [_sourceNode] instanceof Core_X3DNode
66812
66776
  ? generator .Name (this [_sourceNode])
66813
- : this [_sourceNode] .getImportedName ();
66777
+ : generator .ImportedName (this [_sourceNode]);
66814
66778
 
66815
66779
  const destinationNodeName = this [_destinationNode] instanceof Core_X3DNode
66816
66780
  ? generator .Name (this [_destinationNode])
66817
- : this [_destinationNode] .getImportedName ();
66781
+ : generator .ImportedName (this [_destinationNode]);
66818
66782
 
66819
66783
  generator .string += generator .Indent ();
66820
66784
  generator .string += '{';
@@ -67342,14 +67306,13 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
67342
67306
 
67343
67307
  // Remove named node.
67344
67308
 
67345
- this .removeNamedNode (node .getName ());
67346
67309
  this .removeNamedNode (name);
67347
67310
 
67348
67311
  // Update named node.
67349
67312
 
67350
- node .setName (name);
67313
+ this [_namedNodes] .update (node .getName (), name, Fields_SFNodeCache .get (node));
67351
67314
 
67352
- this [_namedNodes] .add (name, Fields_SFNodeCache .get (node));
67315
+ node .setName (name);
67353
67316
 
67354
67317
  this ._namedNodes_changed = this .getBrowser () .getCurrentTime ();
67355
67318
  },
@@ -67425,6 +67388,20 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
67425
67388
 
67426
67389
  this ._importedNodes_changed = this .getBrowser () .getCurrentTime ();
67427
67390
  },
67391
+ renameImportedNode (oldImportedName, newImportedName)
67392
+ {
67393
+ const importedNode = this [_importedNodes] .get (oldImportedName);
67394
+
67395
+ if (!importedNode)
67396
+ throw new Error ("Couldn't rename imported node: imported node does not exists.");
67397
+
67398
+ if (this [_importedNodes] .get (newImportedName))
67399
+ throw new Error ("Couldn't rename imported node: new imported name does already exists.");
67400
+
67401
+ importedNode [Symbol .for ("X_ITE.X3DImportedNode.setImportName")] (newImportedName);
67402
+
67403
+ this [_importedNodes] .update (oldImportedName, newImportedName, importedNode);
67404
+ },
67428
67405
  removeImportedNode (importedName)
67429
67406
  {
67430
67407
  importedName = String (importedName);
@@ -68213,7 +68190,7 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68213
68190
 
68214
68191
  for (const protoField of this [_protoFields] .keys ())
68215
68192
  {
68216
- const oldFieldName = oldProtoFields .get (protoField);
68193
+ const oldFieldName = oldProtoFields .get (protoField) ?? protoField .getName ();
68217
68194
 
68218
68195
  if (!oldFieldName)
68219
68196
  continue;
@@ -76938,7 +76915,10 @@ Object .assign (Object .setPrototypeOf (X3DTransformMatrix3DNode .prototype, Gro
76938
76915
  },
76939
76916
  getBBox (bbox, shadows)
76940
76917
  {
76941
- return this .getSubBBox (bbox, shadows) .multRight (this .matrix);
76918
+ if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
76919
+ return this .getSubBBox (bbox, shadows) .multRight (this .matrix);
76920
+
76921
+ return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
76942
76922
  },
76943
76923
  traverse (type, renderObject)
76944
76924
  {
@@ -82089,6 +82069,24 @@ Object .assign (Object .setPrototypeOf (OrthoViewpoint .prototype, Navigation_X3
82089
82069
  {
82090
82070
  return false;
82091
82071
  },
82072
+ getFieldOfView ()
82073
+ {
82074
+ return [
82075
+ this .getMinimumX (),
82076
+ this .getMinimumY (),
82077
+ this .getMaximumX (),
82078
+ this .getMaximumY (),
82079
+ ];
82080
+ },
82081
+ getUserFieldOfView ()
82082
+ {
82083
+ return [
82084
+ this .getUserMinimumX (),
82085
+ this .getUserMinimumY (),
82086
+ this .getUserMaximumX (),
82087
+ this .getUserMaximumY (),
82088
+ ];
82089
+ },
82092
82090
  getMinimumX ()
82093
82091
  {
82094
82092
  return this ._fieldOfView .length > 0 ? this ._fieldOfView [0] : -1;
@@ -89360,7 +89358,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
89360
89358
  x_ite_Namespace .add ("X3DShaderNode", "x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
89361
89359
  /* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
89362
89360
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
89363
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(484);
89361
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(576);
89364
89362
  /*******************************************************************************
89365
89363
  *
89366
89364
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95001,7 +94999,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
95001
94999
  x_ite_Namespace .add ("ShaderCompiler", "x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
95002
95000
  /* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
95003
95001
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
95004
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(484);
95002
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(576);
95005
95003
  /*******************************************************************************
95006
95004
  *
95007
95005
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95658,7 +95656,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
95658
95656
  x_ite_Namespace .add ("X3DAppearanceNode", "x_ite/Components/Shape/X3DAppearanceNode", X3DAppearanceNode_default_);
95659
95657
  /* harmony default export */ const Shape_X3DAppearanceNode = (X3DAppearanceNode_default_);
95660
95658
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
95661
- /* provided dependency */ var Appearance_$ = __webpack_require__(484);
95659
+ /* provided dependency */ var Appearance_$ = __webpack_require__(576);
95662
95660
  /*******************************************************************************
95663
95661
  *
95664
95662
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99076,7 +99074,7 @@ const Components_Shape_default_ = {
99076
99074
  x_ite_Namespace .add ("Shape", "x_ite/Components/Shape", Components_Shape_default_);
99077
99075
  /* harmony default export */ const Components_Shape = (Components_Shape_default_);
99078
99076
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundProcessingNode.js
99079
- /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(484);
99077
+ /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(576);
99080
99078
  /*******************************************************************************
99081
99079
  *
99082
99080
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99716,7 +99714,7 @@ const X3DSoundSourceNode_default_ = X3DSoundSourceNode;
99716
99714
  x_ite_Namespace .add ("X3DSoundSourceNode", "x_ite/Components/Sound/X3DSoundSourceNode", X3DSoundSourceNode_default_);
99717
99715
  /* harmony default export */ const Sound_X3DSoundSourceNode = (X3DSoundSourceNode_default_);
99718
99716
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/AudioClip.js
99719
- /* provided dependency */ var AudioClip_$ = __webpack_require__(484);
99717
+ /* provided dependency */ var AudioClip_$ = __webpack_require__(576);
99720
99718
  /*******************************************************************************
99721
99719
  *
99722
99720
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -100018,7 +100016,7 @@ const X3DSoundNode_default_ = X3DSoundNode;
100018
100016
  x_ite_Namespace .add ("X3DSoundNode", "x_ite/Components/Sound/X3DSoundNode", X3DSoundNode_default_);
100019
100017
  /* harmony default export */ const Sound_X3DSoundNode = (X3DSoundNode_default_);
100020
100018
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundDestinationNode.js
100021
- /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(484);
100019
+ /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(576);
100022
100020
  /*******************************************************************************
100023
100021
  *
100024
100022
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -101668,7 +101666,7 @@ const ListenerPointSource_default_ = ListenerPointSource;
101668
101666
  x_ite_Namespace .add ("ListenerPointSource", "x_ite/Components/Sound/ListenerPointSource", ListenerPointSource_default_);
101669
101667
  /* harmony default export */ const Sound_ListenerPointSource = (ListenerPointSource_default_);
101670
101668
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/MicrophoneSource.js
101671
- /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(484);
101669
+ /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(576);
101672
101670
  /*******************************************************************************
101673
101671
  *
101674
101672
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -103337,8 +103335,8 @@ const GifMedia_default_ = GifMedia;
103337
103335
  x_ite_Namespace .add ("GifMedia", "x_ite/Browser/Texturing/GifMedia", GifMedia_default_);
103338
103336
  /* harmony default export */ const Texturing_GifMedia = (GifMedia_default_);
103339
103337
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
103340
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(484);
103341
- /* provided dependency */ var SuperGif = __webpack_require__(749);
103338
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(576);
103339
+ /* provided dependency */ var SuperGif = __webpack_require__(606);
103342
103340
  /*******************************************************************************
103343
103341
  *
103344
103342
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -106613,7 +106611,7 @@ const gettext_default_ = gettext;
106613
106611
  x_ite_Namespace .add ("gettext", "locale/gettext", gettext_default_);
106614
106612
  /* harmony default export */ const locale_gettext = (gettext_default_);
106615
106613
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
106616
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(484);
106614
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(576);
106617
106615
  /*******************************************************************************
106618
106616
  *
106619
106617
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107043,7 +107041,7 @@ const TextureQuality_default_ = TextureQuality;
107043
107041
  x_ite_Namespace .add ("TextureQuality", "x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
107044
107042
  /* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
107045
107043
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
107046
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(484);
107044
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(576);
107047
107045
  /*******************************************************************************
107048
107046
  *
107049
107047
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107633,7 +107631,7 @@ const RenderingProperties_default_ = RenderingProperties;
107633
107631
  x_ite_Namespace .add ("RenderingProperties", "x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
107634
107632
  /* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
107635
107633
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
107636
- /* provided dependency */ var Notification_$ = __webpack_require__(484);
107634
+ /* provided dependency */ var Notification_$ = __webpack_require__(576);
107637
107635
  /*******************************************************************************
107638
107636
  *
107639
107637
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107756,8 +107754,8 @@ const Notification_default_ = Notification;
107756
107754
  x_ite_Namespace .add ("Notification", "x_ite/Browser/Core/Notification", Notification_default_);
107757
107755
  /* harmony default export */ const Core_Notification = (Notification_default_);
107758
107756
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
107759
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(66);
107760
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(484);
107757
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(464);
107758
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(576);
107761
107759
  /*******************************************************************************
107762
107760
  *
107763
107761
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109593,11 +109591,9 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
109593
109591
  //if (node .getExecutionContext () !== this)
109594
109592
  // throw new Error ("Couldn't update exported node: node does not belong to this execution context.");
109595
109593
 
109596
- this .removeExportedNode (exportedName);
109597
-
109598
109594
  const exportedNode = new Execution_X3DExportedNode (this, exportedName, node);
109599
109595
 
109600
- this [_exportedNodes] .add (exportedName, exportedNode);
109596
+ this [_exportedNodes] .update (exportedName, exportedName, exportedNode);
109601
109597
 
109602
109598
  this ._exportedNodes_changed = this .getBrowser () .getCurrentTime ();
109603
109599
  },
@@ -110511,7 +110507,7 @@ const DataStorage_default_ = DataStorage;
110511
110507
  x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage_default_);
110512
110508
  /* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
110513
110509
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
110514
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(484);
110510
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(576);
110515
110511
  /*******************************************************************************
110516
110512
  *
110517
110513
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -111171,7 +111167,7 @@ Object .assign (X3DCoreContext .prototype,
111171
111167
  vp .position = viewpoint .getUserPosition ();
111172
111168
  vp .orientation = viewpoint .getUserOrientation ();
111173
111169
  vp .centerOfRotation = viewpoint .getUserCenterOfRotation ();
111174
- vp .fieldOfView = viewpoint .getFieldOfView ();
111170
+ vp .fieldOfView = viewpoint .getUserFieldOfView ();
111175
111171
  break;
111176
111172
  }
111177
111173
  case "OrthoViewpoint":
@@ -111179,7 +111175,7 @@ Object .assign (X3DCoreContext .prototype,
111179
111175
  vp .position = viewpoint .getUserPosition ();
111180
111176
  vp .orientation = viewpoint .getUserOrientation ();
111181
111177
  vp .centerOfRotation = viewpoint .getUserCenterOfRotation ();
111182
- vp .fieldOfView = new x_ite_Fields .MFFloat (viewpoint .getMinimumX (), viewpoint .getMinimumY (), viewpoint .getMaximumX (), viewpoint .getMaximumY ());
111178
+ vp .fieldOfView = viewpoint .getUserFieldOfView ();
111183
111179
  break;
111184
111180
  }
111185
111181
  case "GeoViewpoint":
@@ -111202,7 +111198,7 @@ Object .assign (X3DCoreContext .prototype,
111202
111198
  vp .position = viewpoint .getGeoCoord (viewpoint .getUserPosition (), geoCoord);
111203
111199
  vp .orientation = viewpoint .getUserOrientation ();
111204
111200
  vp .centerOfRotation = viewpoint .getGeoCoord (viewpoint .getUserCenterOfRotation (), geoCoord);
111205
- vp .fieldOfView = viewpoint .getFieldOfView ();
111201
+ vp .fieldOfView = viewpoint .getUserFieldOfView ();
111206
111202
  break;
111207
111203
  }
111208
111204
  }
@@ -113034,8 +113030,8 @@ const X3DViewer_default_ = X3DViewer;
113034
113030
  x_ite_Namespace .add ("X3DViewer", "x_ite/Browser/Navigation/X3DViewer", X3DViewer_default_);
113035
113031
  /* harmony default export */ const Navigation_X3DViewer = (X3DViewer_default_);
113036
113032
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
113037
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(389);
113038
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(484);
113033
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(710);
113034
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(576);
113039
113035
  /*******************************************************************************
113040
113036
  *
113041
113037
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -113907,8 +113903,8 @@ const ExamineViewer_default_ = ExamineViewer;
113907
113903
  x_ite_Namespace .add ("ExamineViewer", "x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
113908
113904
  /* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
113909
113905
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
113910
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(389);
113911
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(484);
113906
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(710);
113907
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(576);
113912
113908
  /*******************************************************************************
113913
113909
  *
113914
113910
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114917,8 +114913,8 @@ const FlyViewer_default_ = FlyViewer;
114917
114913
  x_ite_Namespace .add ("FlyViewer", "x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
114918
114914
  /* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
114919
114915
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
114920
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(389);
114921
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(484);
114916
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(710);
114917
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(576);
114922
114918
  /*******************************************************************************
114923
114919
  *
114924
114920
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115249,8 +115245,8 @@ const NoneViewer_default_ = NoneViewer;
115249
115245
  x_ite_Namespace .add ("NoneViewer", "x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
115250
115246
  /* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
115251
115247
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
115252
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(389);
115253
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(484);
115248
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(710);
115249
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(576);
115254
115250
  /*******************************************************************************
115255
115251
  *
115256
115252
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116389,8 +116385,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
116389
116385
  x_ite_Namespace .add ("X3DPickingContext", "x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
116390
116386
  /* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
116391
116387
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
116392
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(389);
116393
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(484);
116388
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(710);
116389
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(576);
116394
116390
  /*******************************************************************************
116395
116391
  *
116396
116392
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -117669,7 +117665,7 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
117669
117665
  x_ite_Namespace .add ("MultiSampleFrameBuffer", "x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
117670
117666
  /* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
117671
117667
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
117672
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(484);
117668
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(576);
117673
117669
  /*******************************************************************************
117674
117670
  *
117675
117671
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -117767,7 +117763,7 @@ Object .assign (X3DRenderingContext .prototype,
117767
117763
  {
117768
117764
  const gl = this .getContext ();
117769
117765
 
117770
- if (! navigator .userAgent .match (/Firefox/))
117766
+ if (!navigator .userAgent .match (/Firefox/))
117771
117767
  {
117772
117768
  const dbgRenderInfo = gl .getExtension ("WEBGL_debug_renderer_info");
117773
117769
 
@@ -117781,7 +117777,7 @@ Object .assign (X3DRenderingContext .prototype,
117781
117777
  {
117782
117778
  const gl = this .getContext ();
117783
117779
 
117784
- if (! navigator .userAgent .match (/Firefox/))
117780
+ if (!navigator .userAgent .match (/Firefox/))
117785
117781
  {
117786
117782
  const dbgRenderInfo = gl .getExtension ("WEBGL_debug_renderer_info");
117787
117783
 
@@ -117930,16 +117926,15 @@ Object .assign (X3DRenderingContext .prototype,
117930
117926
  reshape ()
117931
117927
  {
117932
117928
  const
117933
- $canvas = this .getCanvas (),
117929
+ canvas = this .getCanvas (),
117934
117930
  contentScale = this .getRenderingProperty ("ContentScale"),
117935
117931
  samples = this .getRenderingProperty ("Multisampling"),
117936
117932
  oit = this .getBrowserOption ("OrderIndependentTransparency"),
117937
- width = $canvas .width () * contentScale,
117938
- height = $canvas .height () * contentScale,
117939
- canvas = $canvas [0];
117933
+ width = canvas .width () * contentScale,
117934
+ height = canvas .height () * contentScale;
117940
117935
 
117941
- canvas .width = width;
117942
- canvas .height = height;
117936
+ canvas .prop ("width", width);
117937
+ canvas .prop ("height", height);
117943
117938
 
117944
117939
  this [_viewport] [2] = width;
117945
117940
  this [_viewport] [3] = height;
@@ -118572,7 +118567,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
118572
118567
  x_ite_Namespace .add ("X3DSoundContext", "x_ite/Browser/Sound/X3DSoundContext", X3DSoundContext_default_);
118573
118568
  /* harmony default export */ const Sound_X3DSoundContext = (X3DSoundContext_default_);
118574
118569
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
118575
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(484);
118570
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(576);
118576
118571
  const KTXDecoder_default_ = class KTXDecoder
118577
118572
  {
118578
118573
  constructor (gl, externalKtxlib, scriptDir)
@@ -120125,7 +120120,7 @@ const Components_default_ = Components;
120125
120120
  x_ite_Namespace .add ("Components", "x_ite/Components", Components_default_);
120126
120121
  /* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
120127
120122
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
120128
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(484);
120123
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(576);
120129
120124
  /*******************************************************************************
120130
120125
  * MIT License
120131
120126
  *
@@ -121256,7 +121251,7 @@ const SupportedProfiles_default_ = SupportedProfiles;
121256
121251
  x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
121257
121252
  /* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
121258
121253
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
121259
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(484);
121254
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(576);
121260
121255
  /*******************************************************************************
121261
121256
  *
121262
121257
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -121326,7 +121321,6 @@ x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfile
121326
121321
 
121327
121322
 
121328
121323
 
121329
-
121330
121324
 
121331
121325
 
121332
121326
  const
@@ -121944,24 +121938,55 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121944
121938
  {
121945
121939
  const [key, object] = args;
121946
121940
 
121947
- this [_browserCallbacks] .forEach (map => map .set (key, object));
121941
+ for (const [event, map] of this [_browserCallbacks])
121942
+ this [_browserCallbacks] .set (event, new Map (map) .set (key, object));
121943
+
121948
121944
  break;
121949
121945
  }
121950
121946
  case 3:
121951
121947
  {
121952
- const [key, event, object] = args;
121948
+ const
121949
+ [key, event, object] = args,
121950
+ map = new Map (this [_browserCallbacks] .get (event));
121951
+
121952
+ this [_browserCallbacks] .set (event, map);
121953
121953
 
121954
- this [_browserCallbacks] .get (event) .set (key, object);
121954
+ map .set (key, object);
121955
121955
  break;
121956
121956
  }
121957
121957
  }
121958
121958
  },
121959
- removeBrowserCallback (key, event)
121959
+ removeBrowserCallback (... args)
121960
121960
  {
121961
- if (arguments .length === 2)
121962
- this [_browserCallbacks] .get (event) .delete (key);
121963
- else
121964
- this [_browserCallbacks] .forEach (map => map .delete (key));
121961
+ switch (args .length)
121962
+ {
121963
+ case 1:
121964
+ {
121965
+ const [key] = args;
121966
+
121967
+ for (const [event, original] of this [_browserCallbacks])
121968
+ {
121969
+ const map = new Map (original);
121970
+
121971
+ this [_browserCallbacks] .set (event, map);
121972
+
121973
+ map .delete (key);
121974
+ }
121975
+
121976
+ break;
121977
+ }
121978
+ case 2:
121979
+ {
121980
+ const
121981
+ [key, event] = args,
121982
+ map = new Map (this [_browserCallbacks] .get (event));
121983
+
121984
+ this [_browserCallbacks] .set (event, map);
121985
+
121986
+ map .delete (key);
121987
+ break;
121988
+ }
121989
+ }
121965
121990
  },
121966
121991
  getBrowserCallbacks (event)
121967
121992
  {
@@ -121972,7 +121997,7 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
121972
121997
  },
121973
121998
  callBrowserCallbacks (event)
121974
121999
  {
121975
- for (const callback of Utility_MapUtilities .values (this [_browserCallbacks] .get (event)))
122000
+ for (const callback of this [_browserCallbacks] .get (event) .values ())
121976
122001
  callback (event);
121977
122002
  },
121978
122003
  importDocument (dom)
@@ -122317,7 +122342,7 @@ const X3DBrowser_default_ = X3DBrowser;
122317
122342
  x_ite_Namespace .add ("X3DBrowser", "x_ite/Browser/X3DBrowser", X3DBrowser_default_);
122318
122343
  /* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
122319
122344
  ;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
122320
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(484);
122345
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(576);
122321
122346
  /*******************************************************************************
122322
122347
  *
122323
122348
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122449,8 +122474,8 @@ const X3DCanvasElement_default_ = X3DCanvasElement;
122449
122474
  x_ite_Namespace .add ("X3DCanvasElement", "x_ite/X3DCanvasElement", X3DCanvasElement_default_);
122450
122475
  /* harmony default export */ const x_ite_X3DCanvasElement = (X3DCanvasElement_default_);
122451
122476
  ;// CONCATENATED MODULE: ./src/lib/jquery.js
122452
- /* provided dependency */ var jquery_$ = __webpack_require__(484);
122453
- /* provided dependency */ var pako = __webpack_require__(251);
122477
+ /* provided dependency */ var jquery_$ = __webpack_require__(576);
122478
+ /* provided dependency */ var pako = __webpack_require__(905);
122454
122479
  Object .assign (jquery_$,
122455
122480
  {
122456
122481
  decodeText (input)
@@ -122527,14 +122552,14 @@ const jquery_default_ = jquery_$;
122527
122552
  x_ite_Namespace .add ("jquery", "lib/jquery", jquery_default_);
122528
122553
  /* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
122529
122554
  ;// CONCATENATED MODULE: ./src/lib/libtess.js
122530
- /* provided dependency */ var libtess_libtess = __webpack_require__(53);
122555
+ /* provided dependency */ var libtess_libtess = __webpack_require__(85);
122531
122556
  const libtess_default_ = libtess_libtess;
122532
122557
  ;
122533
122558
 
122534
122559
  x_ite_Namespace .add ("libtess", "lib/libtess", libtess_default_);
122535
122560
  /* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
122536
122561
  ;// CONCATENATED MODULE: ./src/x_ite/X3D.js
122537
- /* provided dependency */ var X3D_$ = __webpack_require__(484);
122562
+ /* provided dependency */ var X3D_$ = __webpack_require__(576);
122538
122563
  /*******************************************************************************
122539
122564
  *
122540
122565
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122842,7 +122867,7 @@ Object .assign (X3D,
122842
122867
 
122843
122868
  // Assign X3D to global namespace.
122844
122869
 
122845
- window [Symbol .for ("X_ITE.X3D-9.2.0")] = x_ite_X3D;
122870
+ window [Symbol .for ("X_ITE.X3D-9.2.2")] = x_ite_X3D;
122846
122871
 
122847
122872
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
122848
122873