x_ite 9.1.11 → 9.2.0

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 +33 -33
  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 +615 -874
  44. package/dist/x_ite.min.js +1 -1
  45. package/dist/x_ite.min.mjs +1 -1
  46. package/dist/x_ite.mjs +615 -874
  47. package/dist/x_ite.zip +0 -0
  48. package/package.json +1 -1
package/dist/x_ite.mjs CHANGED
@@ -1,9 +1,9 @@
1
- /* X_ITE v9.1.11 */var __webpack_modules__ = ({
1
+ /* X_ITE v9.2.0 */var __webpack_modules__ = ({
2
2
 
3
- /***/ 561:
3
+ /***/ 66:
4
4
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
5
5
 
6
- /* provided dependency */ var jQuery = __webpack_require__(831);
6
+ /* provided dependency */ var jQuery = __webpack_require__(484);
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
- /***/ 471:
202
+ /***/ 389:
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__(831)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
216
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(484)], __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
- /***/ 831:
427
+ /***/ 484:
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
- /***/ 864:
11151
+ /***/ 53:
11152
11152
  /***/ ((module) => {
11153
11153
 
11154
11154
  /**
@@ -15927,7 +15927,7 @@ if (true) {
15927
15927
 
15928
15928
  /***/ }),
15929
15929
 
15930
- /***/ 295:
15930
+ /***/ 251:
15931
15931
  /***/ (function(__unused_webpack_module, exports) {
15932
15932
 
15933
15933
 
@@ -19172,7 +19172,7 @@ if (true) {
19172
19172
 
19173
19173
  /***/ }),
19174
19174
 
19175
- /***/ 698:
19175
+ /***/ 749:
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.1.11")];
20302
+ const X3D = window [Symbol .for ("X_ITE.X3D-9.2.0")];
20303
20303
 
20304
20304
  if (X3D)
20305
20305
  X3D [name] = module;
@@ -20897,7 +20897,6 @@ function Generator ({ style = "TIDY", indent = "", precision = 7, doublePrecisio
20897
20897
  this .nodes = new Set ();
20898
20898
  this .names = new Map ();
20899
20899
  this .namesByNode = new Map ();
20900
- this .importedNames = new Map ();
20901
20900
  this .routeNodes = new Set ();
20902
20901
  this .level = 0;
20903
20902
  this .containerFields = [ ];
@@ -21105,9 +21104,8 @@ Object .assign (Generator .prototype,
21105
21104
 
21106
21105
  if (this .level === 0)
21107
21106
  {
21108
- this .nodes .clear ();
21109
- this .namesByNode .clear ();
21110
- this .importedNames .clear ();
21107
+ this .nodes .clear ();
21108
+ this .namesByNode .clear ();
21111
21109
  }
21112
21110
  },
21113
21111
  NamedNodes (namedNodes)
@@ -21146,17 +21144,13 @@ Object .assign (Generator .prototype,
21146
21144
  { }
21147
21145
  }
21148
21146
  },
21149
- AddImportedNode (exportedNode, importedName)
21150
- {
21151
- this .importedNames .set (exportedNode, importedName);
21152
- },
21153
21147
  AddRouteNode (routeNode)
21154
21148
  {
21155
21149
  this .routeNodes .add (routeNode);
21156
21150
  },
21157
21151
  ExistsRouteNode (routeNode)
21158
21152
  {
21159
- return this .namesByNode .get (routeNode) || this .routeNodes .has (routeNode);
21153
+ return this .namesByNode .has (routeNode) || this .routeNodes .has (routeNode);
21160
21154
  },
21161
21155
  IsSharedNode (baseNode)
21162
21156
  {
@@ -21233,18 +21227,6 @@ Object .assign (Generator .prototype,
21233
21227
 
21234
21228
  return newName;
21235
21229
  },
21236
- LocalName (baseNode)
21237
- {
21238
- const importedName = this .importedNames .get (baseNode);
21239
-
21240
- if (importedName !== undefined)
21241
- return importedName;
21242
-
21243
- if (this .ExistsNode (baseNode))
21244
- return this .Name (baseNode);
21245
-
21246
- throw new Error (`Couldn't get local name for node '${baseNode .getTypeName ()}'.`);
21247
- },
21248
21230
  PushContainerField (field)
21249
21231
  {
21250
21232
  this .containerFields .push (field);
@@ -21450,7 +21432,7 @@ const MapUtilities =
21450
21432
  {
21451
21433
  assign: (() =>
21452
21434
  {
21453
- function callback (value, key)
21435
+ function set (value, key)
21454
21436
  {
21455
21437
  this .set (key, value);
21456
21438
  }
@@ -21458,25 +21440,36 @@ const MapUtilities =
21458
21440
  return function (m1, m2)
21459
21441
  {
21460
21442
  m1 .clear ();
21461
- m2 .forEach (callback, m1);
21443
+ m2 .forEach (set, m1);
21462
21444
 
21463
21445
  return m1;
21464
21446
  };
21465
21447
  })(),
21466
21448
  values: (() =>
21467
21449
  {
21468
- function callback (value)
21469
- {
21470
- this .push (value);
21471
- }
21450
+ function push (value) { this .push (value); }
21472
21451
 
21473
- return function (a, m)
21452
+ const values = new WeakMap ();
21453
+
21454
+ return function (m)
21474
21455
  {
21475
- a .length = 0;
21456
+ if (m .size)
21457
+ {
21458
+ let a = values .get (m);
21476
21459
 
21477
- m .forEach (callback, a);
21460
+ if (a)
21461
+ a .length = 0;
21462
+ else
21463
+ values .set (m, a = [ ]);
21464
+
21465
+ m .forEach (push, a);
21478
21466
 
21479
- return a;
21467
+ return a;
21468
+ }
21469
+ else
21470
+ {
21471
+ return m .values ();
21472
+ }
21480
21473
  };
21481
21474
  })(),
21482
21475
  };
@@ -21605,7 +21598,6 @@ Object .assign (X3DObject .prototype,
21605
21598
  {
21606
21599
  [_name]: "",
21607
21600
  [_interests]: new Map (),
21608
- [_values]: [ ],
21609
21601
  [_userData]: new Map (),
21610
21602
  getId ()
21611
21603
  {
@@ -21634,10 +21626,7 @@ Object .assign (X3DObject .prototype,
21634
21626
  addInterest (callbackName, object, ... args)
21635
21627
  {
21636
21628
  if (this [_interests] === X3DObject .prototype [_interests])
21637
- {
21638
21629
  this [_interests] = new Map ();
21639
- this [_values] = [ ];
21640
- }
21641
21630
 
21642
21631
  const
21643
21632
  interestId = X3DObject .getInterestId (callbackName, object),
@@ -21655,11 +21644,8 @@ Object .assign (X3DObject .prototype,
21655
21644
  },
21656
21645
  processInterests ()
21657
21646
  {
21658
- if (this [_interests] .size)
21659
- {
21660
- for (const interest of Utility_MapUtilities .values (this [_values], this [_interests]))
21661
- interest ();
21662
- }
21647
+ for (const interest of Utility_MapUtilities .values (this [_interests]))
21648
+ interest ();
21663
21649
  },
21664
21650
  getUserData (key)
21665
21651
  {
@@ -22987,19 +22973,11 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
22987
22973
  {
22988
22974
  return this [_referencesCallbacks];
22989
22975
  },
22990
- processReferencesCallbacks: (() =>
22976
+ processReferencesCallbacks ()
22991
22977
  {
22992
- const referencesCallbacksTemp = [ ];
22993
-
22994
- return function ()
22995
- {
22996
- if (this [_referencesCallbacks] .size)
22997
- {
22998
- for (const callback of Utility_MapUtilities .values (referencesCallbacksTemp, this [_referencesCallbacks]))
22999
- callback ();
23000
- }
23001
- };
23002
- })(),
22978
+ for (const callback of Utility_MapUtilities .values (this [_referencesCallbacks]))
22979
+ callback ();
22980
+ },
23003
22981
  addFieldInterest (field)
23004
22982
  {
23005
22983
  if (this [_fieldInterests] === X3DField .prototype [_fieldInterests])
@@ -23085,70 +23063,54 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23085
23063
  {
23086
23064
  return this [_routeCallbacks];
23087
23065
  },
23088
- processRouteCallbacks: (() =>
23066
+ processRouteCallbacks ()
23089
23067
  {
23090
- const routeCallbacksTemp = [ ];
23091
-
23092
- return function ()
23093
- {
23094
- if (this [_routeCallbacks] .size)
23095
- {
23096
- for (const callback of Utility_MapUtilities .values (routeCallbacksTemp, this [_routeCallbacks]))
23097
- callback ();
23098
- }
23099
- };
23100
- })(),
23101
- processEvent: (() =>
23068
+ for (const callback of Utility_MapUtilities .values (this [_routeCallbacks]))
23069
+ callback ();
23070
+ },
23071
+ processEvent (event = Base_Events .create (this))
23102
23072
  {
23103
- const fieldCallbacksTemp = [ ];
23073
+ if (event .has (this))
23074
+ return;
23104
23075
 
23105
- return function (event = Base_Events .create (this))
23106
- {
23107
- if (event .has (this))
23108
- return;
23076
+ event .add (this);
23109
23077
 
23110
- event .add (this);
23078
+ this .setTainted (false);
23111
23079
 
23112
- this .setTainted (false);
23080
+ const field = event .field;
23113
23081
 
23114
- const field = event .field;
23082
+ if (field !== this)
23083
+ this .set (field .getValue (), field .length);
23115
23084
 
23116
- if (field !== this)
23117
- this .set (field .getValue (), field .length);
23085
+ // Process interests.
23118
23086
 
23119
- // Process interests.
23087
+ this .processInterests ();
23120
23088
 
23121
- this .processInterests ();
23089
+ // Process routes.
23122
23090
 
23123
- // Process routes.
23091
+ let first = true;
23124
23092
 
23125
- let first = true;
23126
-
23127
- for (const field of this [_fieldInterests])
23093
+ for (const field of this [_fieldInterests])
23094
+ {
23095
+ if (first)
23128
23096
  {
23129
- if (first)
23130
- {
23131
- first = false;
23132
- field .addEventObject (this, event);
23133
- }
23134
- else
23135
- {
23136
- field .addEventObject (this, Base_Events .copy (event));
23137
- }
23097
+ first = false;
23098
+ field .addEventObject (this, event);
23099
+ }
23100
+ else
23101
+ {
23102
+ field .addEventObject (this, Base_Events .copy (event));
23138
23103
  }
23104
+ }
23139
23105
 
23140
- if (first)
23141
- Base_Events .push (event);
23106
+ if (first)
23107
+ Base_Events .push (event);
23142
23108
 
23143
- // Process field callbacks.
23109
+ // Process field callbacks.
23144
23110
 
23145
- if (this [_fieldCallbacks] .size)
23146
- {
23147
- for (const callback of Utility_MapUtilities .values (fieldCallbacksTemp, this [_fieldCallbacks]))
23148
- callback (this .valueOf ());
23149
- }
23150
- };
23151
- })(),
23111
+ for (const callback of Utility_MapUtilities .values (this [_fieldCallbacks]))
23112
+ callback (this .valueOf ());
23113
+ },
23152
23114
  fromString (string, scene)
23153
23115
  {
23154
23116
  // Function will be overridden in VRMLParser.
@@ -34179,9 +34141,9 @@ Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype, Base_X3DChildObj
34179
34141
  return true;
34180
34142
  }
34181
34143
 
34182
- for (const importedNode of this [_executionContext] .getImportedNodes ())
34144
+ for (const route of this [_executionContext] .getRoutes ())
34183
34145
  {
34184
- if (importedNode .hasRoutes (this))
34146
+ if (route .getSourceNode () === this || route .getDestinationNode () === this)
34185
34147
  return true;
34186
34148
  }
34187
34149
 
@@ -34331,7 +34293,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34331
34293
  x_ite_Namespace .add ("X3DBaseNode", "x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
34332
34294
  /* harmony default export */ const Base_X3DBaseNode = (X3DBaseNode_default_);
34333
34295
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
34334
- /* provided dependency */ var $ = __webpack_require__(831);
34296
+ /* provided dependency */ var $ = __webpack_require__(484);
34335
34297
  /*******************************************************************************
34336
34298
  *
34337
34299
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34468,7 +34430,7 @@ x_ite_Namespace .add ("Legacy", "x_ite/Browser/Legacy", Legacy_default_);
34468
34430
  *
34469
34431
  ******************************************************************************/
34470
34432
 
34471
- const BROWSER_VERSION_default_ = "9.1.11";
34433
+ const BROWSER_VERSION_default_ = "9.2.0";
34472
34434
  ;
34473
34435
 
34474
34436
  x_ite_Namespace .add ("BROWSER_VERSION", "x_ite/BROWSER_VERSION", BROWSER_VERSION_default_);
@@ -37304,9 +37266,6 @@ function X3DImportedNode (executionContext, inlineNode, exportedName, importedNa
37304
37266
  this [_inlineNode] = inlineNode;
37305
37267
  this [_exportedName] = exportedName;
37306
37268
  this [_importedName] = importedName;
37307
- this [_routes] = [ ];
37308
-
37309
- this .getInlineNode () ._loadState .addInterest ("set_loadState__", this);
37310
37269
  }
37311
37270
 
37312
37271
  Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Base_X3DObject .prototype),
@@ -37331,423 +37290,149 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Base_X3DObje
37331
37290
  {
37332
37291
  return this [_importedName];
37333
37292
  },
37334
- hasRoutes (baseNode)
37335
- {
37336
- return this [_routes]
37337
- .some (route => route .sourceNode === baseNode || route .destinationNode === baseNode)
37338
- },
37339
- addRoute (sourceNode, sourceField, destinationNode, destinationField)
37340
- {
37341
- // Add route.
37342
-
37343
- const route = {
37344
- sourceNode,
37345
- sourceField,
37346
- destinationNode,
37347
- destinationField,
37348
- };
37349
-
37350
- this [_routes] .push (route);
37351
-
37352
- // Try to resolve source or destination node routes.
37353
-
37354
- if (this .getInlineNode () .checkLoadState () === Base_X3DConstants .COMPLETE_STATE)
37355
- this .resolveRoute (route);
37356
- },
37357
- resolveRoute (route)
37293
+ toVRMLStream (generator)
37358
37294
  {
37359
- try
37360
- {
37361
- const { sourceField, destinationField } = route;
37362
-
37363
- let { sourceNode, destinationNode } = route;
37295
+ if (!generator .ExistsNode (this .getInlineNode ()))
37296
+ throw new Error ("X3DImportedNode.toVRMLStream: Inline node does not exist.");
37364
37297
 
37365
- route [_real] ?.dispose ();
37298
+ generator .AddRouteNode (this);
37366
37299
 
37367
- if (sourceNode instanceof X3DImportedNode)
37368
- sourceNode = sourceNode .getExportedNode ();
37300
+ const importedName = generator .ImportedName (this .getImportedName ());
37369
37301
 
37370
- if (destinationNode instanceof X3DImportedNode)
37371
- destinationNode = destinationNode .getExportedNode ();
37302
+ generator .string += generator .Indent ();
37303
+ generator .string += "IMPORT";
37304
+ generator .string += generator .Space ();
37305
+ generator .string += generator .Name (this .getInlineNode ());
37306
+ generator .string += ".";
37307
+ generator .string += this .getExportedName ();
37372
37308
 
37373
- route [_real] = this .getExecutionContext () .addSimpleRoute (sourceNode, sourceField, destinationNode, destinationField);
37374
- }
37375
- catch (error)
37309
+ if (importedName !== this .getExportedName ())
37376
37310
  {
37377
- console .error (error .message);
37311
+ generator .string += generator .Space ();
37312
+ generator .string += "AS";
37313
+ generator .string += generator .Space ();
37314
+ generator .string += importedName;
37378
37315
  }
37379
37316
  },
37380
- deleteRoute (real)
37381
- {
37382
- this [_routes] = this [_routes] .filter (route => route [_real] !== real);
37383
- },
37384
- deleteRealRoutes ()
37317
+ toXMLStream (generator)
37385
37318
  {
37386
- for (const route of this [_routes])
37387
- {
37388
- const real = route [_real]
37319
+ if (!generator .ExistsNode (this .getInlineNode ()))
37320
+ throw new Error ("X3DImportedNode.toXMLStream: Inline node does not exist.");
37389
37321
 
37390
- if (!real)
37391
- continue;
37322
+ generator .AddRouteNode (this);
37392
37323
 
37393
- delete route [_real];
37324
+ const importedName = generator .ImportedName (this .getImportedName ());
37394
37325
 
37395
- this .getExecutionContext () .deleteSimpleRoute (real);
37396
- }
37397
- },
37398
- getRoutes ()
37399
- {
37400
- return this [_routes] .map (({ sourceNode, sourceField, destinationNode, destinationField }) =>
37401
- {
37402
- return {
37403
- sourceNode: sourceNode instanceof X3DImportedNode
37404
- ? sourceNode
37405
- : Fields_SFNodeCache .get (sourceNode),
37406
- sourceField,
37407
- destinationNode: destinationNode instanceof X3DImportedNode
37408
- ? destinationNode
37409
- : Fields_SFNodeCache .get (destinationNode),
37410
- destinationField,
37411
- };
37412
- });
37413
- },
37414
- set_loadState__ ()
37415
- {
37416
- switch (this .getInlineNode () .checkLoadState ())
37417
- {
37418
- case Base_X3DConstants .NOT_STARTED_STATE:
37419
- case Base_X3DConstants .FAILED_STATE:
37420
- {
37421
- this .deleteRealRoutes ();
37422
- break;
37423
- }
37424
- case Base_X3DConstants .COMPLETE_STATE:
37425
- {
37426
- this .deleteRealRoutes ();
37427
-
37428
- for (const route of this [_routes])
37429
- this .resolveRoute (route);
37326
+ generator .string += generator .Indent ();
37327
+ generator .string += "<IMPORT";
37328
+ generator .string += generator .Space ();
37329
+ generator .string += "inlineDEF='";
37330
+ generator .string += generator .XMLEncode (generator .Name (this .getInlineNode ()));
37331
+ generator .string += "'";
37332
+ generator .string += generator .Space ();
37333
+ generator .string += "importedDEF='";
37334
+ generator .string += generator .XMLEncode (this .getExportedName ());
37335
+ generator .string += "'";
37430
37336
 
37431
- break;
37432
- }
37433
- }
37434
- },
37435
- toVRMLStream (generator)
37436
- {
37437
- if (generator .ExistsNode (this .getInlineNode ()))
37337
+ if (importedName !== this .getExportedName ())
37438
37338
  {
37439
- const importedName = generator .ImportedName (this .getImportedName ());
37440
-
37441
- generator .string += generator .Indent ();
37442
- generator .string += "IMPORT";
37443
37339
  generator .string += generator .Space ();
37444
- generator .string += generator .Name (this .getInlineNode ());
37445
- generator .string += ".";
37446
- generator .string += this .getExportedName ();
37447
-
37448
- if (importedName !== this .getExportedName ())
37449
- {
37450
- generator .string += generator .Space ();
37451
- generator .string += "AS";
37452
- generator .string += generator .Space ();
37453
- generator .string += importedName;
37454
- }
37455
-
37456
- try
37457
- {
37458
- generator .AddRouteNode (this);
37459
- generator .AddImportedNode (this .getExportedNode (), importedName);
37460
- }
37461
- catch
37462
- {
37463
- // Output unresolved routes.
37464
-
37465
- for (const { sourceNode, sourceField, destinationNode, destinationField } of this [_routes])
37466
- {
37467
- if (generator .ExistsRouteNode (sourceNode) && generator .ExistsRouteNode (destinationNode))
37468
- {
37469
- const sourceNodeName = sourceNode instanceof X3DImportedNode
37470
- ? sourceNode .getImportedName ()
37471
- : generator .Name (sourceNode);
37472
-
37473
- const destinationNodeName = destinationNode instanceof X3DImportedNode
37474
- ? destinationNode .getImportedName ()
37475
- : generator .Name (destinationNode);
37476
-
37477
- generator .string += generator .TidyBreak ();
37478
- generator .string += generator .Indent ();
37479
- generator .string += "ROUTE";
37480
- generator .string += generator .Space ();
37481
- generator .string += sourceNodeName;
37482
- generator .string += ".";
37483
- generator .string += sourceField;
37484
- generator .string += generator .Space ();
37485
- generator .string += "TO";
37486
- generator .string += generator .Space ();
37487
- generator .string += destinationNodeName;
37488
- generator .string += ".";
37489
- generator .string += destinationField;
37490
- }
37491
- }
37492
- }
37493
- }
37494
- else
37495
- {
37496
- throw new Error ("X3DImportedNode.toXMLStream: Inline node does not exist.");
37340
+ generator .string += "AS='";
37341
+ generator .string += generator .XMLEncode (importedName);
37342
+ generator .string += "'";
37497
37343
  }
37344
+
37345
+ generator .string += generator .closingTags ? "></IMPORT>" : "/>";
37498
37346
  },
37499
- toXMLStream (generator)
37347
+ toJSONStream (generator)
37500
37348
  {
37501
- if (generator .ExistsNode (this .getInlineNode ()))
37502
- {
37503
- const importedName = generator .ImportedName (this .getImportedName ());
37504
-
37505
- generator .string += generator .Indent ();
37506
- generator .string += "<IMPORT";
37507
- generator .string += generator .Space ();
37508
- generator .string += "inlineDEF='";
37509
- generator .string += generator .XMLEncode (generator .Name (this .getInlineNode ()));
37510
- generator .string += "'";
37511
- generator .string += generator .Space ();
37512
- generator .string += "importedDEF='";
37513
- generator .string += generator .XMLEncode (this .getExportedName ());
37514
- generator .string += "'";
37349
+ if (!generator .ExistsNode (this .getInlineNode ()))
37350
+ throw new Error ("X3DImportedNode.toJSONStream: Inline node does not exist.");
37515
37351
 
37516
- if (importedName !== this .getExportedName ())
37517
- {
37518
- generator .string += generator .Space ();
37519
- generator .string += "AS='";
37520
- generator .string += generator .XMLEncode (importedName);
37521
- generator .string += "'";
37522
- }
37352
+ generator .AddRouteNode (this);
37523
37353
 
37524
- generator .string += generator .closingTags ? "></IMPORT>" : "/>";
37354
+ const importedName = generator .ImportedName (this .getImportedName ());
37525
37355
 
37526
- try
37527
- {
37528
- generator .AddRouteNode (this);
37529
- generator .AddImportedNode (this .getExportedNode (), importedName);
37530
- }
37531
- catch
37532
- {
37533
- // Output unresolved routes.
37356
+ generator .string += generator .Indent ();
37357
+ generator .string += '{';
37358
+ generator .string += generator .TidySpace ();
37359
+ generator .string += '"';
37360
+ generator .string += "IMPORT";
37361
+ generator .string += '"';
37362
+ generator .string += ':';
37363
+ generator .string += generator .TidyBreak ();
37364
+ generator .string += generator .IncIndent ();
37365
+ generator .string += generator .Indent ();
37366
+ generator .string += '{';
37367
+ generator .string += generator .TidyBreak ();
37368
+ generator .string += generator .IncIndent ();
37534
37369
 
37535
- for (const { sourceNode, sourceField, destinationNode, destinationField } of this [_routes])
37536
- {
37537
- if (generator .ExistsRouteNode (sourceNode) && generator .ExistsRouteNode (destinationNode))
37538
- {
37539
- const sourceNodeName = sourceNode instanceof X3DImportedNode
37540
- ? sourceNode .getImportedName ()
37541
- : generator .Name (sourceNode);
37370
+ generator .string += generator .Indent ();
37371
+ generator .string += '"';
37372
+ generator .string += "@inlineDEF";
37373
+ generator .string += '"';
37374
+ generator .string += ':';
37375
+ generator .string += generator .TidySpace ();
37376
+ generator .string += '"';
37377
+ generator .string += generator .JSONEncode (generator .Name (this .getInlineNode ()));
37378
+ generator .string += '"';
37379
+ generator .string += ',';
37380
+ generator .string += generator .TidyBreak ();
37542
37381
 
37543
- const destinationNodeName = destinationNode instanceof X3DImportedNode
37544
- ? destinationNode .getImportedName ()
37545
- : generator .Name (destinationNode);
37382
+ generator .string += generator .Indent ();
37383
+ generator .string += '"';
37384
+ generator .string += "@importedDEF";
37385
+ generator .string += '"';
37386
+ generator .string += ':';
37387
+ generator .string += generator .TidySpace ();
37388
+ generator .string += '"';
37389
+ generator .string += generator .JSONEncode (this .getExportedName ());
37390
+ generator .string += '"';
37546
37391
 
37547
- generator .string += generator .TidyBreak ();
37548
- generator .string += generator .Indent ();
37549
- generator .string += "<ROUTE";
37550
- generator .string += generator .Space ();
37551
- generator .string += "fromNode='";
37552
- generator .string += generator .XMLEncode (sourceNodeName);
37553
- generator .string += "'";
37554
- generator .string += generator .Space ();
37555
- generator .string += "fromField='";
37556
- generator .string += generator .XMLEncode (sourceField);
37557
- generator .string += "'";
37558
- generator .string += generator .Space ();
37559
- generator .string += "toNode='";
37560
- generator .string += generator .XMLEncode (destinationNodeName);
37561
- generator .string += "'";
37562
- generator .string += generator .Space ();
37563
- generator .string += "toField='";
37564
- generator .string += generator .XMLEncode (destinationField);
37565
- generator .string += "'";
37566
- generator .string += generator .closingTags ? "></ROUTE>" : "/>";
37567
- }
37568
- }
37569
- }
37570
- }
37571
- else
37572
- {
37573
- throw new Error ("X3DImportedNode.toXMLStream: Inline node does not exist.");
37574
- }
37575
- },
37576
- toJSONStream (generator)
37577
- {
37578
- if (generator .ExistsNode (this .getInlineNode ()))
37392
+ if (importedName !== this .getExportedName ())
37579
37393
  {
37580
- const importedName = generator .ImportedName (this .getImportedName ());
37581
-
37582
- generator .string += generator .Indent ();
37583
- generator .string += '{';
37584
- generator .string += generator .TidySpace ();
37585
- generator .string += '"';
37586
- generator .string += "IMPORT";
37587
- generator .string += '"';
37588
- generator .string += ':';
37589
- generator .string += generator .TidyBreak ();
37590
- generator .string += generator .IncIndent ();
37591
- generator .string += generator .Indent ();
37592
- generator .string += '{';
37593
- generator .string += generator .TidyBreak ();
37594
- generator .string += generator .IncIndent ();
37595
-
37596
- generator .string += generator .Indent ();
37597
- generator .string += '"';
37598
- generator .string += "@inlineDEF";
37599
- generator .string += '"';
37600
- generator .string += ':';
37601
- generator .string += generator .TidySpace ();
37602
- generator .string += '"';
37603
- generator .string += generator .JSONEncode (generator .Name (this .getInlineNode ()));
37604
- generator .string += '"';
37605
37394
  generator .string += ',';
37606
37395
  generator .string += generator .TidyBreak ();
37607
-
37608
37396
  generator .string += generator .Indent ();
37609
37397
  generator .string += '"';
37610
- generator .string += "@importedDEF";
37398
+ generator .string += "@AS";
37611
37399
  generator .string += '"';
37612
37400
  generator .string += ':';
37613
37401
  generator .string += generator .TidySpace ();
37614
37402
  generator .string += '"';
37615
- generator .string += generator .JSONEncode (this .getExportedName ());
37403
+ generator .string += generator .JSONEncode (importedName);
37616
37404
  generator .string += '"';
37617
-
37618
- if (importedName !== this .getExportedName ())
37619
- {
37620
- generator .string += ',';
37621
- generator .string += generator .TidyBreak ();
37622
- generator .string += generator .Indent ();
37623
- generator .string += '"';
37624
- generator .string += "@AS";
37625
- generator .string += '"';
37626
- generator .string += ':';
37627
- generator .string += generator .TidySpace ();
37628
- generator .string += '"';
37629
- generator .string += generator .JSONEncode (importedName);
37630
- generator .string += '"';
37631
- generator .string += generator .TidyBreak ();
37632
- }
37633
- else
37634
- {
37635
- generator .string += generator .TidyBreak ();
37636
- }
37637
-
37638
- generator .string += generator .DecIndent ();
37639
- generator .string += generator .Indent ();
37640
- generator .string += '}';
37641
37405
  generator .string += generator .TidyBreak ();
37642
- generator .string += generator .DecIndent ();
37643
- generator .string += generator .Indent ();
37644
- generator .string += '}';
37645
-
37646
- try
37647
- {
37648
- generator .AddRouteNode (this);
37649
- generator .AddImportedNode (this .getExportedNode (), importedName);
37650
- }
37651
- catch
37652
- {
37653
- // Output unresolved routes.
37654
-
37655
- for (const { sourceNode, sourceField, destinationNode, destinationField } of this [_routes])
37656
- {
37657
- if (generator .ExistsRouteNode (sourceNode) && generator .ExistsRouteNode (destinationNode))
37658
- {
37659
- const sourceNodeName = sourceNode instanceof X3DImportedNode
37660
- ? sourceNode .getImportedName ()
37661
- : generator .Name (sourceNode);
37662
-
37663
- const destinationNodeName = destinationNode instanceof X3DImportedNode
37664
- ? destinationNode .getImportedName ()
37665
- : generator .Name (destinationNode);
37666
-
37667
- generator .string += ',';
37668
- generator .string += generator .TidyBreak ();
37669
- generator .string += generator .Indent ();
37670
- generator .string += '{';
37671
- generator .string += generator .TidySpace ();
37672
- generator .string += '"';
37673
- generator .string += "ROUTE";
37674
- generator .string += '"';
37675
- generator .string += ':';
37676
- generator .string += generator .TidyBreak ();
37677
- generator .string += generator .IncIndent ();
37678
- generator .string += generator .Indent ();
37679
- generator .string += '{';
37680
- generator .string += generator .TidyBreak ();
37681
- generator .string += generator .IncIndent ();
37682
-
37683
- generator .string += generator .Indent ();
37684
- generator .string += '"';
37685
- generator .string += "@fromNode";
37686
- generator .string += '"';
37687
- generator .string += ':';
37688
- generator .string += generator .TidySpace ();
37689
- generator .string += '"';
37690
- generator .string += generator .JSONEncode (sourceNodeName);
37691
- generator .string += '"';
37692
- generator .string += ',';
37693
- generator .string += generator .TidyBreak ();
37694
-
37695
- generator .string += generator .Indent ();
37696
- generator .string += '"';
37697
- generator .string += "@fromField";
37698
- generator .string += '"';
37699
- generator .string += ':';
37700
- generator .string += generator .TidySpace ();
37701
- generator .string += '"';
37702
- generator .string += generator .JSONEncode (sourceField);
37703
- generator .string += '"';
37704
- generator .string += ',';
37705
- generator .string += generator .TidyBreak ();
37706
-
37707
- generator .string += generator .Indent ();
37708
- generator .string += '"';
37709
- generator .string += "@toNode";
37710
- generator .string += '"';
37711
- generator .string += ':';
37712
- generator .string += generator .TidySpace ();
37713
- generator .string += '"';
37714
- generator .string += generator .JSONEncode (destinationNodeName);
37715
- generator .string += '"';
37716
- generator .string += ',';
37717
- generator .string += generator .TidyBreak ();
37718
-
37719
- generator .string += generator .Indent ();
37720
- generator .string += '"';
37721
- generator .string += "@toField";
37722
- generator .string += '"';
37723
- generator .string += ':';
37724
- generator .string += generator .TidySpace ();
37725
- generator .string += '"';
37726
- generator .string += generator .JSONEncode (destinationField);
37727
- generator .string += '"';
37728
- generator .string += generator .TidyBreak ();
37729
-
37730
- generator .string += generator .DecIndent ();
37731
- generator .string += generator .Indent ();
37732
- generator .string += '}';
37733
- generator .string += generator .TidyBreak ();
37734
- generator .string += generator .DecIndent ();
37735
- generator .string += generator .Indent ();
37736
- generator .string += '}';
37737
- }
37738
- }
37739
- }
37740
37406
  }
37741
37407
  else
37742
37408
  {
37743
- throw new Error ("X3DImportedNode.toJSONStream: Inline node does not exist.");
37409
+ generator .string += generator .TidyBreak ();
37744
37410
  }
37411
+
37412
+ generator .string += generator .DecIndent ();
37413
+ generator .string += generator .Indent ();
37414
+ generator .string += '}';
37415
+ generator .string += generator .TidyBreak ();
37416
+ generator .string += generator .DecIndent ();
37417
+ generator .string += generator .Indent ();
37418
+ generator .string += '}';
37745
37419
  },
37746
37420
  dispose ()
37747
37421
  {
37748
- this .getInlineNode () ._loadState .removeInterest ("set_loadState__", this);
37422
+ for (const route of Array .from (this [X3DImportedNode_executionContext] .getRoutes ()))
37423
+ {
37424
+ if (route .getSourceNode () === this)
37425
+ {
37426
+ this [X3DImportedNode_executionContext] .deleteRoute (route);
37427
+ continue;
37428
+ }
37749
37429
 
37750
- this .deleteRealRoutes ();
37430
+ if (route .getDestinationNode () === this)
37431
+ {
37432
+ this [X3DImportedNode_executionContext] .deleteRoute (route);
37433
+ continue;
37434
+ }
37435
+ }
37751
37436
 
37752
37437
  Base_X3DObject .prototype .dispose .call (this);
37753
37438
  },
@@ -38028,7 +37713,7 @@ Object .assign (X3DUrlObject .prototype,
38028
37713
  reject ();
38029
37714
  break;
38030
37715
  }
38031
- })
37716
+ });
38032
37717
  };
38033
37718
 
38034
37719
  const loadState = this .checkLoadState ();
@@ -38885,7 +38570,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
38885
38570
  x_ite_Namespace .add ("X3DProtoDeclaration", "x_ite/Prototype/X3DProtoDeclaration", X3DProtoDeclaration_default_);
38886
38571
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (X3DProtoDeclaration_default_);
38887
38572
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
38888
- /* provided dependency */ var X3DParser_$ = __webpack_require__(831);
38573
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(484);
38889
38574
  /*******************************************************************************
38890
38575
  *
38891
38576
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39127,7 +38812,7 @@ const Expressions_default_ = Expressions;
39127
38812
  x_ite_Namespace .add ("Expressions", "x_ite/Parser/Expressions", Expressions_default_);
39128
38813
  /* harmony default export */ const Parser_Expressions = (Expressions_default_);
39129
38814
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
39130
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(831);
38815
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(484);
39131
38816
  /*******************************************************************************
39132
38817
  *
39133
38818
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -41810,7 +41495,7 @@ const VRMLParser_default_ = VRMLParser;
41810
41495
  x_ite_Namespace .add ("VRMLParser", "x_ite/Parser/VRMLParser", VRMLParser_default_);
41811
41496
  /* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
41812
41497
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
41813
- /* provided dependency */ var XMLParser_$ = __webpack_require__(831);
41498
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(484);
41814
41499
  /*******************************************************************************
41815
41500
  *
41816
41501
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -43901,7 +43586,7 @@ const URLs_default_ = URLs;
43901
43586
  x_ite_Namespace .add ("URLs", "x_ite/Browser/Networking/URLs", URLs_default_);
43902
43587
  /* harmony default export */ const Networking_URLs = (URLs_default_);
43903
43588
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
43904
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(831);
43589
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(484);
43905
43590
  /*******************************************************************************
43906
43591
  *
43907
43592
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -47202,7 +46887,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
47202
46887
  x_ite_Namespace .add ("GLTF2Parser", "x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
47203
46888
  /* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
47204
46889
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
47205
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(831);
46890
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(484);
47206
46891
  /*******************************************************************************
47207
46892
  *
47208
46893
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -47354,7 +47039,7 @@ const GLB2Parser_default_ = GLB2Parser;
47354
47039
  x_ite_Namespace .add ("GLB2Parser", "x_ite/Parser/GLB2Parser", GLB2Parser_default_);
47355
47040
  /* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
47356
47041
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
47357
- /* provided dependency */ var OBJParser_$ = __webpack_require__(831);
47042
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(484);
47358
47043
  /*******************************************************************************
47359
47044
  *
47360
47045
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -50709,8 +50394,8 @@ const MatrixStack_default_ = MatrixStack;
50709
50394
  x_ite_Namespace .add ("MatrixStack", "standard/Math/Utility/MatrixStack", MatrixStack_default_);
50710
50395
  /* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
50711
50396
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
50712
- /* provided dependency */ var SVGParser_$ = __webpack_require__(831);
50713
- /* provided dependency */ var libtess = __webpack_require__(864);
50397
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(484);
50398
+ /* provided dependency */ var libtess = __webpack_require__(53);
50714
50399
  /*******************************************************************************
50715
50400
  *
50716
50401
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53478,7 +53163,7 @@ const SVGParser_default_ = SVGParser;
53478
53163
  x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_);
53479
53164
  /* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
53480
53165
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
53481
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(831);
53166
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(484);
53482
53167
  /*******************************************************************************
53483
53168
  *
53484
53169
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53815,7 +53500,7 @@ const Plane3_default_ = Plane3;
53815
53500
  x_ite_Namespace .add ("Plane3", "standard/Math/Geometry/Plane3", Plane3_default_);
53816
53501
  /* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
53817
53502
  ;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
53818
- /* provided dependency */ var Triangle3_libtess = __webpack_require__(864);
53503
+ /* provided dependency */ var Triangle3_libtess = __webpack_require__(53);
53819
53504
  /*******************************************************************************
53820
53505
  *
53821
53506
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -61322,7 +61007,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
61322
61007
  x_ite_Namespace .add ("X3DTexture2DNode", "x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
61323
61008
  /* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
61324
61009
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
61325
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(831);
61010
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(484);
61326
61011
  /*******************************************************************************
61327
61012
  *
61328
61013
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -65909,7 +65594,7 @@ const X3DWorld_default_ = X3DWorld;
65909
65594
  x_ite_Namespace .add ("X3DWorld", "x_ite/Execution/X3DWorld", X3DWorld_default_);
65910
65595
  /* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
65911
65596
  ;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
65912
- /* provided dependency */ var FileLoader_$ = __webpack_require__(831);
65597
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(484);
65913
65598
  /*******************************************************************************
65914
65599
  *
65915
65600
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66815,105 +66500,112 @@ x_ite_Namespace .add ("ExternProtoDeclarationArray", "x_ite/Prototype/ExternProt
66815
66500
 
66816
66501
 
66817
66502
 
66818
- function ProtoDeclarationArray (values = [ ])
66819
- {
66820
- return Base_X3DInfoArray .call (this, Array .from (values, value => [value .name, value]), Prototype_X3DProtoDeclaration);
66821
- }
66822
-
66823
- Object .setPrototypeOf (ProtoDeclarationArray .prototype, Base_X3DInfoArray .prototype);
66824
-
66825
- for (const key of Object .keys (ProtoDeclarationArray .prototype))
66826
- Object .defineProperty (ProtoDeclarationArray .prototype, key, { enumerable: false });
66827
-
66828
- Object .defineProperties (ProtoDeclarationArray,
66829
- {
66830
- typeName:
66831
- {
66832
- value: "ProtoDeclarationArray",
66833
- enumerable: true,
66834
- },
66835
- });
66836
-
66837
- const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
66838
- ;
66839
-
66840
- x_ite_Namespace .add ("ProtoDeclarationArray", "x_ite/Prototype/ProtoDeclarationArray", ProtoDeclarationArray_default_);
66841
- /* harmony default export */ const Prototype_ProtoDeclarationArray = (ProtoDeclarationArray_default_);
66842
- ;// CONCATENATED MODULE: ./src/x_ite/Routing/X3DRoute.js
66843
- /*******************************************************************************
66844
- *
66845
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
66846
- *
66847
- * Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
66848
- *
66849
- * All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
66850
- *
66851
- * The copyright notice above does not evidence any actual of intended
66852
- * publication of such source code, and is an unpublished work by create3000.
66853
- * This material contains CONFIDENTIAL INFORMATION that is the property of
66854
- * create3000.
66855
- *
66856
- * No permission is granted to copy, distribute, or create derivative works from
66857
- * the contents of this software, in whole or in part, without the prior written
66858
- * permission of create3000.
66859
- *
66860
- * NON-MILITARY USE ONLY
66861
- *
66862
- * All create3000 software are effectively free software with a non-military use
66863
- * restriction. It is free. Well commented source is provided. You may reuse the
66864
- * source in any way you please with the exception anything that uses it must be
66865
- * marked to indicate is contains 'non-military use only' components.
66866
- *
66867
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
66868
- *
66869
- * Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
66870
- *
66871
- * This file is part of the X_ITE Project.
66872
- *
66873
- * X_ITE is free software: you can redistribute it and/or modify it under the
66874
- * terms of the GNU General Public License version 3 only, as published by the
66875
- * Free Software Foundation.
66876
- *
66877
- * X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
66878
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
66879
- * A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
66880
- * details (a copy is included in the LICENSE file that accompanied this code).
66881
- *
66882
- * You should have received a copy of the GNU General Public License version 3
66883
- * along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
66884
- * copy of the GPLv3 License.
66885
- *
66886
- * For Silvio, Joy and Adi.
66887
- *
66888
- ******************************************************************************/
66889
-
66890
-
66503
+ function ProtoDeclarationArray (values = [ ])
66504
+ {
66505
+ return Base_X3DInfoArray .call (this, Array .from (values, value => [value .name, value]), Prototype_X3DProtoDeclaration);
66506
+ }
66507
+
66508
+ Object .setPrototypeOf (ProtoDeclarationArray .prototype, Base_X3DInfoArray .prototype);
66509
+
66510
+ for (const key of Object .keys (ProtoDeclarationArray .prototype))
66511
+ Object .defineProperty (ProtoDeclarationArray .prototype, key, { enumerable: false });
66512
+
66513
+ Object .defineProperties (ProtoDeclarationArray,
66514
+ {
66515
+ typeName:
66516
+ {
66517
+ value: "ProtoDeclarationArray",
66518
+ enumerable: true,
66519
+ },
66520
+ });
66521
+
66522
+ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
66523
+ ;
66524
+
66525
+ x_ite_Namespace .add ("ProtoDeclarationArray", "x_ite/Prototype/ProtoDeclarationArray", ProtoDeclarationArray_default_);
66526
+ /* harmony default export */ const Prototype_ProtoDeclarationArray = (ProtoDeclarationArray_default_);
66527
+ ;// CONCATENATED MODULE: ./src/x_ite/Routing/X3DRoute.js
66528
+ /* provided dependency */ var X3DRoute_$ = __webpack_require__(484);
66529
+ /*******************************************************************************
66530
+ *
66531
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
66532
+ *
66533
+ * Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
66534
+ *
66535
+ * All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
66536
+ *
66537
+ * The copyright notice above does not evidence any actual of intended
66538
+ * publication of such source code, and is an unpublished work by create3000.
66539
+ * This material contains CONFIDENTIAL INFORMATION that is the property of
66540
+ * create3000.
66541
+ *
66542
+ * No permission is granted to copy, distribute, or create derivative works from
66543
+ * the contents of this software, in whole or in part, without the prior written
66544
+ * permission of create3000.
66545
+ *
66546
+ * NON-MILITARY USE ONLY
66547
+ *
66548
+ * All create3000 software are effectively free software with a non-military use
66549
+ * restriction. It is free. Well commented source is provided. You may reuse the
66550
+ * source in any way you please with the exception anything that uses it must be
66551
+ * marked to indicate is contains 'non-military use only' components.
66552
+ *
66553
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
66554
+ *
66555
+ * Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
66556
+ *
66557
+ * This file is part of the X_ITE Project.
66558
+ *
66559
+ * X_ITE is free software: you can redistribute it and/or modify it under the
66560
+ * terms of the GNU General Public License version 3 only, as published by the
66561
+ * Free Software Foundation.
66562
+ *
66563
+ * X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
66564
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
66565
+ * A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
66566
+ * details (a copy is included in the LICENSE file that accompanied this code).
66567
+ *
66568
+ * You should have received a copy of the GNU General Public License version 3
66569
+ * along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
66570
+ * copy of the GPLv3 License.
66571
+ *
66572
+ * For Silvio, Joy and Adi.
66573
+ *
66574
+ ******************************************************************************/
66575
+
66576
+
66577
+
66578
+
66891
66579
 
66892
66580
 
66893
66581
 
66894
66582
  const
66895
- X3DRoute_executionContext = Symbol (),
66896
- _sourceNode = Symbol (),
66897
- _sourceField = Symbol (),
66898
- _destinationNode = Symbol (),
66899
- _destinationField = Symbol ();
66583
+ X3DRoute_executionContext = Symbol (),
66584
+ _sourceNode = Symbol (),
66585
+ _sourceFieldName = Symbol (),
66586
+ _sourceField = Symbol (),
66587
+ _destinationNode = Symbol (),
66588
+ _destinationFieldName = Symbol (),
66589
+ _destinationField = Symbol (),
66590
+ _disposed = Symbol ();
66900
66591
 
66901
- function X3DRoute (executionContext, sourceNode, sourceField, destinationNode, destinationField)
66592
+ function X3DRoute (executionContext, sourceNode, sourceFieldName, destinationNode, destinationFieldName)
66902
66593
  {
66903
66594
  Base_X3DObject .call (this, executionContext);
66904
66595
 
66905
- this [X3DRoute_executionContext] = executionContext;
66906
- this [_sourceNode] = sourceNode;
66907
- this [_sourceField] = sourceField;
66908
- this [_destinationNode] = destinationNode;
66909
- this [_destinationField] = destinationField;
66596
+ this [X3DRoute_executionContext] = executionContext;
66597
+ this [_sourceNode] = sourceNode;
66598
+ this [_sourceFieldName] = sourceFieldName;
66599
+ this [_destinationNode] = destinationNode;
66600
+ this [_destinationFieldName] = destinationFieldName;
66910
66601
 
66911
- // Must connect in every context, to make X3DBaseNode.hasRoutes work.
66602
+ if (sourceNode instanceof Execution_X3DImportedNode)
66603
+ sourceNode .getInlineNode () .getLoadState () .addInterest ("reconnect", this);
66912
66604
 
66913
- sourceField .addFieldInterest (destinationField);
66605
+ if (destinationNode instanceof Execution_X3DImportedNode)
66606
+ destinationNode .getInlineNode () .getLoadState () .addInterest ("reconnect", this);
66914
66607
 
66915
- sourceField .addOutputRoute (this);
66916
- destinationField .addInputRoute (this);
66608
+ this .reconnect ();
66917
66609
  }
66918
66610
 
66919
66611
  Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .prototype),
@@ -66924,7 +66616,7 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66924
66616
  },
66925
66617
  getRouteId ()
66926
66618
  {
66927
- return X3DRoute .getRouteId (this [_sourceField], this [_destinationField]);
66619
+ return X3DRoute .getRouteId (this [_sourceNode], this [_sourceFieldName], this [_destinationNode], this [_destinationFieldName]);
66928
66620
  },
66929
66621
  getSourceNode ()
66930
66622
  {
@@ -66934,7 +66626,18 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66934
66626
  getSourceField ()
66935
66627
  {
66936
66628
  /// SAI
66937
- return this [_sourceField];
66629
+
66630
+ if (this [_sourceField])
66631
+ {
66632
+ return this [_sourceField] .getAccessType () === Base_X3DConstants .inputOutput
66633
+ ? this [_sourceField] .getName () + "_changed"
66634
+ : this [_sourceField] .getName ();
66635
+ }
66636
+ else
66637
+ {
66638
+ return this [_sourceFieldName];
66639
+ }
66640
+
66938
66641
  },
66939
66642
  getDestinationNode ()
66940
66643
  {
@@ -66944,47 +66647,138 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66944
66647
  getDestinationField ()
66945
66648
  {
66946
66649
  /// SAI
66947
- return this [_destinationField];
66650
+
66651
+ if (this [_destinationField])
66652
+ {
66653
+ return this [_destinationField] .getAccessType () === Base_X3DConstants .inputOutput
66654
+ ? "set_" + this [_destinationField] .getName ()
66655
+ : this [_destinationField] .getName ();
66656
+ }
66657
+ else
66658
+ {
66659
+ return this [_destinationFieldName];
66660
+ }
66661
+ },
66662
+ reconnect ()
66663
+ {
66664
+ try
66665
+ {
66666
+ this .disconnect ();
66667
+ this .connect ();
66668
+ }
66669
+ catch (error)
66670
+ {
66671
+ if ((this [_sourceNode] instanceof Core_X3DNode ||
66672
+ this [_sourceNode] .getInlineNode () .checkLoadState () === Base_X3DConstants .COMPLETE_STATE) &&
66673
+ (this [_destinationNode] instanceof Core_X3DNode ||
66674
+ this [_destinationNode] .getInlineNode () .checkLoadState () === Base_X3DConstants .COMPLETE_STATE))
66675
+ {
66676
+ console .warn (error .message);
66677
+ }
66678
+ }
66679
+ },
66680
+ connect ()
66681
+ {
66682
+ if (this [_disposed])
66683
+ return;
66684
+
66685
+ try
66686
+ {
66687
+ const sourceNode = this [_sourceNode] instanceof Core_X3DNode
66688
+ ? this [_sourceNode]
66689
+ : this [_sourceNode] .getExportedNode ();
66690
+
66691
+ this [_sourceField] = sourceNode .getField (this [_sourceFieldName]);
66692
+
66693
+ this [_sourceField] .addOutputRoute (this);
66694
+ }
66695
+ catch (error)
66696
+ {
66697
+ var firstError = error;
66698
+ }
66699
+
66700
+ try
66701
+ {
66702
+ const destinationNode = this [_destinationNode] instanceof Core_X3DNode
66703
+ ? this [_destinationNode]
66704
+ : this [_destinationNode] .getExportedNode ();
66705
+
66706
+ this [_destinationField] = destinationNode .getField (this [_destinationFieldName]);
66707
+
66708
+ this [_destinationField] .addInputRoute (this);
66709
+ }
66710
+ catch (error)
66711
+ {
66712
+ var secondError = error;
66713
+ }
66714
+
66715
+ if (this [_sourceField] && this [_destinationField])
66716
+ {
66717
+ if (this [_sourceField] .getFieldInterests () .has (this [_destinationField]))
66718
+ return;
66719
+
66720
+ this [_sourceField] .addFieldInterest (this [_destinationField]);
66721
+ }
66722
+ else
66723
+ {
66724
+ throw firstError ?? secondError;
66725
+ }
66948
66726
  },
66949
66727
  disconnect ()
66950
66728
  {
66951
- this [_sourceField] .removeFieldInterest (this [_destinationField]);
66729
+ this [_sourceField] ?.removeOutputRoute (this);
66730
+ this [_destinationField] ?.removeInputRoute (this);
66952
66731
 
66953
- this [_sourceField] .removeOutputRoute (this);
66954
- this [_destinationField] .removeInputRoute (this);
66732
+ if (this [_sourceField] && this [_destinationField])
66733
+ this [_sourceField] .removeFieldInterest (this [_destinationField]);
66734
+
66735
+ this [_sourceField] = null;
66736
+ this [_destinationField] = null;
66955
66737
  },
66956
66738
  toVRMLStream (generator)
66957
66739
  {
66958
- const
66959
- sourceNodeName = generator .LocalName (this .getSourceNode ()),
66960
- destinationNodeName = generator .LocalName (this .getDestinationNode ());
66740
+ if (!generator .ExistsRouteNode (this [_sourceNode]))
66741
+ throw new Error (`Source node does not exist in scene graph.`);
66742
+
66743
+ if (!generator .ExistsRouteNode (this [_destinationNode]))
66744
+ throw new Error (`Destination node does not exist in scene graph.`);
66745
+
66746
+ const sourceNodeName = this [_sourceNode] instanceof Core_X3DNode
66747
+ ? generator .Name (this [_sourceNode])
66748
+ : this [_sourceNode] .getImportedName ();
66749
+
66750
+ const destinationNodeName = this [_destinationNode] instanceof Core_X3DNode
66751
+ ? generator .Name (this [_destinationNode])
66752
+ : this [_destinationNode] .getImportedName ();
66961
66753
 
66962
66754
  generator .string += generator .Indent ();
66963
66755
  generator .string += "ROUTE";
66964
66756
  generator .string += generator .Space ();
66965
66757
  generator .string += sourceNodeName;
66966
66758
  generator .string += ".";
66967
- generator .string += this [_sourceField] .getName ();
66968
-
66969
- if (this [_sourceField] .getAccessType () === Base_X3DConstants .inputOutput)
66970
- generator .string += "_changed";
66971
-
66759
+ generator .string += this .getSourceField ();
66972
66760
  generator .string += generator .Space ();
66973
66761
  generator .string += "TO";
66974
66762
  generator .string += generator .Space ();
66975
66763
  generator .string += destinationNodeName;
66976
66764
  generator .string += ".";
66977
-
66978
- if (this [_destinationField] .getAccessType () === Base_X3DConstants .inputOutput)
66979
- generator .string += "set_";
66980
-
66981
- generator .string += this [_destinationField] .getName ();
66765
+ generator .string += this .getDestinationField ();
66982
66766
  },
66983
66767
  toXMLStream (generator)
66984
66768
  {
66985
- const
66986
- sourceNodeName = generator .LocalName (this .getSourceNode ()),
66987
- destinationNodeName = generator .LocalName (this .getDestinationNode ());
66769
+ if (!generator .ExistsRouteNode (this [_sourceNode]))
66770
+ throw new Error (`Source node does not exist in scene graph.`);
66771
+
66772
+ if (!generator .ExistsRouteNode (this [_destinationNode]))
66773
+ throw new Error (`Destination node does not exist in scene graph.`);
66774
+
66775
+ const sourceNodeName = this [_sourceNode] instanceof Core_X3DNode
66776
+ ? generator .Name (this [_sourceNode])
66777
+ : this [_sourceNode] .getImportedName ();
66778
+
66779
+ const destinationNodeName = this [_destinationNode] instanceof Core_X3DNode
66780
+ ? generator .Name (this [_destinationNode])
66781
+ : this [_destinationNode] .getImportedName ();
66988
66782
 
66989
66783
  generator .string += generator .Indent ();
66990
66784
  generator .string += "<ROUTE";
@@ -66994,11 +66788,7 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66994
66788
  generator .string += "'";
66995
66789
  generator .string += generator .Space ();
66996
66790
  generator .string += "fromField='";
66997
- generator .string += generator .XMLEncode (this [_sourceField] .getName ());
66998
-
66999
- if (this [_sourceField] .getAccessType () === Base_X3DConstants .inputOutput)
67000
- generator .string += "_changed";
67001
-
66791
+ generator .string += generator .XMLEncode (this .getSourceField ());
67002
66792
  generator .string += "'";
67003
66793
  generator .string += generator .Space ();
67004
66794
  generator .string += "toNode='";
@@ -67006,19 +66796,25 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
67006
66796
  generator .string += "'";
67007
66797
  generator .string += generator .Space ();
67008
66798
  generator .string += "toField='";
67009
-
67010
- if (this [_destinationField] .getAccessType () === Base_X3DConstants .inputOutput)
67011
- generator .string += "set_";
67012
-
67013
- generator .string += generator .XMLEncode (this [_destinationField] .getName ());
66799
+ generator .string += generator .XMLEncode (this .getDestinationField ());
67014
66800
  generator .string += "'";
67015
66801
  generator .string += generator .closingTags ? "></ROUTE>" : "/>";
67016
66802
  },
67017
66803
  toJSONStream (generator)
67018
66804
  {
67019
- const
67020
- sourceNodeName = generator .LocalName (this .getSourceNode ()),
67021
- destinationNodeName = generator .LocalName (this .getDestinationNode ());
66805
+ if (!generator .ExistsRouteNode (this [_sourceNode]))
66806
+ throw new Error (`Source node does not exist in scene graph.`);
66807
+
66808
+ if (!generator .ExistsRouteNode (this [_destinationNode]))
66809
+ throw new Error (`Destination node does not exist in scene graph.`);
66810
+
66811
+ const sourceNodeName = this [_sourceNode] instanceof Core_X3DNode
66812
+ ? generator .Name (this [_sourceNode])
66813
+ : this [_sourceNode] .getImportedName ();
66814
+
66815
+ const destinationNodeName = this [_destinationNode] instanceof Core_X3DNode
66816
+ ? generator .Name (this [_destinationNode])
66817
+ : this [_destinationNode] .getImportedName ();
67022
66818
 
67023
66819
  generator .string += generator .Indent ();
67024
66820
  generator .string += '{';
@@ -67053,7 +66849,7 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
67053
66849
  generator .string += ':';
67054
66850
  generator .string += generator .TidySpace ();
67055
66851
  generator .string += '"';
67056
- generator .string += generator .JSONEncode (this [_sourceField] .getName ());
66852
+ generator .string += generator .JSONEncode (this .getSourceField ());
67057
66853
  generator .string += '"';
67058
66854
  generator .string += ',';
67059
66855
  generator .string += generator .TidyBreak ();
@@ -67077,7 +66873,7 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
67077
66873
  generator .string += ':';
67078
66874
  generator .string += generator .TidySpace ();
67079
66875
  generator .string += '"';
67080
- generator .string += generator .JSONEncode (this [_destinationField] .getName ());
66876
+ generator .string += generator .JSONEncode (this .getDestinationField ());
67081
66877
  generator .string += '"';
67082
66878
  generator .string += generator .TidyBreak ();
67083
66879
 
@@ -67091,8 +66887,19 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
67091
66887
  },
67092
66888
  dispose ()
67093
66889
  {
66890
+ if (this [_disposed])
66891
+ return;
66892
+
66893
+ this [_disposed] = true;
66894
+
67094
66895
  this .disconnect ();
67095
66896
 
66897
+ if (this [_sourceNode] instanceof Execution_X3DImportedNode)
66898
+ this [_sourceNode] .getInlineNode () .getLoadState () .removeInterest ("reconnect", this);
66899
+
66900
+ if (this [_destinationNode] instanceof Execution_X3DImportedNode)
66901
+ this [_destinationNode] .getInlineNode () .getLoadState () .removeInterest ("reconnect", this);
66902
+
67096
66903
  this [X3DRoute_executionContext] .deleteRoute (this);
67097
66904
 
67098
66905
  Base_X3DObject .prototype .dispose .call (this);
@@ -67108,32 +66915,32 @@ Object .defineProperties (X3DRoute .prototype,
67108
66915
  {
67109
66916
  get ()
67110
66917
  {
67111
- return Fields_SFNodeCache .get (this [_sourceNode]);
66918
+ if (this [_sourceNode] instanceof Core_X3DNode)
66919
+ return Fields_SFNodeCache .get (this [_sourceNode]);
66920
+ else
66921
+ return this [_sourceNode];
67112
66922
  },
67113
66923
  enumerable: true,
67114
66924
  },
67115
66925
  sourceField:
67116
66926
  {
67117
- get ()
67118
- {
67119
- return this [_sourceField] .getName ();
67120
- },
66927
+ get: X3DRoute .prototype .getSourceField,
67121
66928
  enumerable: true,
67122
66929
  },
67123
66930
  destinationNode:
67124
66931
  {
67125
66932
  get ()
67126
66933
  {
67127
- return Fields_SFNodeCache .get (this [_destinationNode]);
66934
+ if (this [_destinationNode] instanceof Core_X3DNode)
66935
+ return Fields_SFNodeCache .get (this [_destinationNode]);
66936
+ else
66937
+ return this [_destinationNode];
67128
66938
  },
67129
66939
  enumerable: true,
67130
66940
  },
67131
66941
  destinationField:
67132
66942
  {
67133
- get ()
67134
- {
67135
- return this [_destinationField] .getName ();
67136
- },
66943
+ get: X3DRoute .prototype .getDestinationField,
67137
66944
  enumerable: true,
67138
66945
  },
67139
66946
  });
@@ -67149,9 +66956,33 @@ Object .defineProperties (X3DRoute,
67149
66956
 
67150
66957
  Object .assign (X3DRoute,
67151
66958
  {
67152
- getRouteId (sourceField, destinationField)
66959
+ getRouteId (sourceNode, sourceFieldName, destinationNode, destinationFieldName)
67153
66960
  {
67154
- return `${sourceField .getId ()}.${destinationField .getId ()}`;
66961
+ const sourceField = sourceNode instanceof Core_X3DNode
66962
+ ? sourceNode .getField (sourceFieldName)
66963
+ : X3DRoute_$.try (() => sourceNode .getExportedNode () .getField (sourceFieldName));
66964
+
66965
+ const destinationField = destinationNode instanceof Core_X3DNode
66966
+ ? destinationNode .getField (destinationFieldName)
66967
+ : X3DRoute_$.try (() => destinationNode .getExportedNode () .getField (destinationFieldName));
66968
+
66969
+ if (sourceField)
66970
+ {
66971
+ sourceFieldName = sourceField .getName ();
66972
+
66973
+ if (sourceField .getAccessType () === Base_X3DConstants .inputOutput)
66974
+ sourceFieldName += "_changed";
66975
+ }
66976
+
66977
+ if (destinationField)
66978
+ {
66979
+ destinationFieldName = destinationField .getName ();
66980
+
66981
+ if (destinationField .getAccessType () === Base_X3DConstants .inputOutput)
66982
+ destinationFieldName = "set_" + destinationFieldName;
66983
+ }
66984
+
66985
+ return `${sourceNode .getId ()}.${sourceFieldName}.${destinationNode .getId ()}.${destinationFieldName}`;
67155
66986
  },
67156
66987
  });
67157
66988
 
@@ -67299,6 +67130,7 @@ x_ite_Namespace .add ("RouteArray", "x_ite/Routing/RouteArray", RouteArray_defau
67299
67130
 
67300
67131
 
67301
67132
 
67133
+
67302
67134
  const
67303
67135
  _namedNodes = Symbol (),
67304
67136
  _importedNodes = Symbol (),
@@ -67645,28 +67477,27 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
67645
67477
  throw new Error (`Unknown named or imported node '${name}'.`);
67646
67478
  }
67647
67479
  },
67648
- getLocalName (node)
67480
+ getLocalizedNode (node)
67649
67481
  {
67650
- node = Base_X3DCast (Base_X3DConstants .X3DNode, node, false);
67482
+ const importedNode = node instanceof Execution_X3DImportedNode ? node : null;
67651
67483
 
67652
- if (!node)
67653
- throw new Error ("Couldn't get local name: node must be of type X3DNode.");
67484
+ node = Base_X3DCast (Base_X3DConstants .X3DNode, node, false) ?? importedNode;
67654
67485
 
67655
- if (node .getExecutionContext () === this)
67656
- return node .getName ();
67486
+ if (!node)
67487
+ throw new Error ("Couldn't get localized node: node must be of type X3DNode.");
67657
67488
 
67658
67489
  for (const importedNode of this [_importedNodes])
67659
67490
  {
67660
67491
  try
67661
67492
  {
67662
67493
  if (importedNode .getExportedNode () === node)
67663
- return importedNode .getImportedName ();
67494
+ return importedNode;
67664
67495
  }
67665
67496
  catch
67666
67497
  { }
67667
67498
  }
67668
67499
 
67669
- throw new Error ("Couldn't get local name: node is shared.");
67500
+ return node;
67670
67501
  },
67671
67502
  setRootNodes () { },
67672
67503
  getRootNodes ()
@@ -67821,98 +67652,48 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
67821
67652
  },
67822
67653
  addRoute (sourceNode, sourceField, destinationNode, destinationField)
67823
67654
  {
67824
- let
67825
- importedSourceNode = sourceNode instanceof Execution_X3DImportedNode ? sourceNode : null,
67826
- importedDestinationNode = destinationNode instanceof Execution_X3DImportedNode ? destinationNode : null;
67827
-
67828
- sourceNode = Base_X3DCast (Base_X3DConstants .X3DNode, sourceNode, false);
67829
- sourceField = String (sourceField);
67830
- destinationNode = Base_X3DCast (Base_X3DConstants .X3DNode, destinationNode, false);
67831
- destinationField = String (destinationField);
67832
-
67833
- if (!(sourceNode || importedSourceNode))
67834
- throw new Error ("Bad ROUTE specification: source node must be of type X3DNode.");
67835
-
67836
- if (!(destinationNode || importedDestinationNode))
67837
- throw new Error ("Bad ROUTE specification: destination node must be of type X3DNode.");
67838
-
67839
- // Imported nodes handling.
67840
-
67841
67655
  try
67842
67656
  {
67843
- // If sourceNode is shared node try to find the corresponding X3DImportedNode.
67844
- if (sourceNode && sourceNode .getExecutionContext () !== this)
67845
- importedSourceNode = this .getLocalNode (this .getLocalName (sourceNode));
67846
- }
67847
- catch
67848
- {
67849
- // Source node is shared but not imported.
67850
- }
67657
+ // Normalize arguments.
67851
67658
 
67852
- try
67853
- {
67854
- // If destinationNode is shared node try to find the corresponding X3DImportedNode.
67855
- if (destinationNode && destinationNode .getExecutionContext () !== this)
67856
- importedDestinationNode = this .getLocalNode (this .getLocalName (destinationNode));
67857
- }
67858
- catch
67859
- {
67860
- // Destination node is shared but not imported.
67861
- }
67659
+ const
67660
+ importedSourceNode = sourceNode instanceof Execution_X3DImportedNode ? sourceNode : null,
67661
+ importedDestinationNode = destinationNode instanceof Execution_X3DImportedNode ? destinationNode : null;
67862
67662
 
67863
- if (importedSourceNode instanceof Execution_X3DImportedNode && importedDestinationNode instanceof Execution_X3DImportedNode)
67864
- {
67865
- importedSourceNode .addRoute (importedSourceNode, sourceField, importedDestinationNode, destinationField);
67866
- importedDestinationNode .addRoute (importedSourceNode, sourceField, importedDestinationNode, destinationField);
67867
- }
67868
- else if (importedSourceNode instanceof Execution_X3DImportedNode)
67869
- {
67870
- importedSourceNode .addRoute (importedSourceNode, sourceField, destinationNode, destinationField);
67871
- }
67872
- else if (importedDestinationNode instanceof Execution_X3DImportedNode)
67873
- {
67874
- importedDestinationNode .addRoute (sourceNode, sourceField, importedDestinationNode, destinationField);
67875
- }
67876
- else
67877
- {
67878
- // Create route and return.
67879
- return this .addSimpleRoute (sourceNode, sourceField, destinationNode, destinationField);
67880
- }
67881
- },
67882
- addSimpleRoute (sourceNode, sourceField, destinationNode, destinationField)
67883
- {
67884
- try
67885
- {
67886
- // Source and dest node must be here X3DNode, no check here.
67887
- // Private function.
67888
- // Create route and return.
67663
+ sourceNode = Base_X3DCast (Base_X3DConstants .X3DNode, sourceNode, false) ?? importedSourceNode;
67664
+ sourceField = String (sourceField);
67665
+ destinationNode = Base_X3DCast (Base_X3DConstants .X3DNode, destinationNode, false) ?? importedDestinationNode;
67666
+ destinationField = String (destinationField);
67889
67667
 
67890
- sourceField = sourceNode .getField (sourceField),
67891
- destinationField = destinationNode .getField (destinationField);
67668
+ if (!sourceNode)
67669
+ throw new Error ("source node must be of type X3DNode or X3DImportedNode.");
67892
67670
 
67893
- if (!sourceField .isOutput ())
67894
- throw new Error (`Field named '${sourceField .getName ()}' in node named '${sourceNode .getName ()}' of type ${sourceNode .getTypeName ()} is not an output field.`);
67671
+ if (!destinationNode)
67672
+ throw new Error ("destination node must be of type X3DNode or X3DImportedNode.");
67895
67673
 
67896
- if (!destinationField .isInput ())
67897
- throw new Error (`Field named '${destinationField .getName ()}' in node named '${destinationNode .getName ()}' of type ${destinationNode .getTypeName ()} is not an input field.`);
67674
+ // Resolve imported source and destination node.
67898
67675
 
67899
- if (sourceField .getType () !== destinationField .getType ())
67900
- throw new Error (`ROUTE types ${sourceField .getTypeName ()} and ${destinationField .getTypeName ()} do not match.`);
67676
+ sourceNode = this .getLocalizedNode (sourceNode);
67677
+ destinationNode = this .getLocalizedNode (destinationNode);
67901
67678
 
67902
- const id = Routing_X3DRoute .getRouteId (sourceField, destinationField);
67679
+ // Add route.
67903
67680
 
67904
- let route = this [X3DExecutionContext_routes] .get (id);
67681
+ const
67682
+ id = Routing_X3DRoute .getRouteId (sourceNode, sourceField, destinationNode, destinationField),
67683
+ route = this [X3DExecutionContext_routes] .get (id);
67905
67684
 
67906
67685
  if (route)
67686
+ {
67907
67687
  return route;
67688
+ }
67689
+ else
67690
+ {
67691
+ const route = new Routing_X3DRoute (this, sourceNode, sourceField, destinationNode, destinationField);
67908
67692
 
67909
- route = new Routing_X3DRoute (this, sourceNode, sourceField, destinationNode, destinationField);
67910
-
67911
- this [X3DExecutionContext_routes] .add (id, route);
67912
-
67913
- this ._routes_changed = this .getBrowser () .getCurrentTime ();
67693
+ this [X3DExecutionContext_routes] .add (id, route);
67914
67694
 
67915
- return route;
67695
+ return route;
67696
+ }
67916
67697
  }
67917
67698
  catch (error)
67918
67699
  {
@@ -67921,76 +67702,31 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
67921
67702
  },
67922
67703
  deleteRoute (route)
67923
67704
  {
67924
- // sourceNode, sourceField, destinationNode, destinationField
67705
+ // Case: sourceNode, sourceField, destinationNode, destinationField.
67925
67706
  if (arguments .length === 4)
67926
67707
  route = this .getRoute (... arguments);
67927
67708
 
67928
67709
  if (!(route instanceof Routing_X3DRoute))
67929
67710
  return;
67930
67711
 
67931
- if (route .getExecutionContext () !== this)
67712
+ if (this [X3DExecutionContext_routes] .get (route .getRouteId ()) !== route)
67932
67713
  return;
67933
67714
 
67934
- this .deleteSimpleRoute (route);
67935
- this .deleteImportedRoute (route .sourceNode, route .destinationNode, route);
67936
- },
67937
- deleteSimpleRoute (route)
67938
- {
67939
67715
  this [X3DExecutionContext_routes] .remove (route .getRouteId ());
67940
67716
 
67941
- route .disconnect ();
67942
-
67943
- this ._routes_changed = this .getBrowser () .getCurrentTime ();
67717
+ route .dispose ();
67944
67718
  },
67945
- deleteImportedRoute (sourceNode, destinationNode, route)
67719
+ getRoute (sourceNode, sourceField, destinationNode, destinationField)
67946
67720
  {
67947
- // Imported nodes handling.
67948
-
67949
- let
67950
- importedSourceNode = null,
67951
- importedDestinationNode = null;
67952
-
67953
- try
67954
- {
67955
- // If sourceNode is shared node try to find the corresponding X3DImportedNode.
67956
- if (sourceNode .getValue () .getExecutionContext () !== this)
67957
- importedSourceNode = this .getLocalNode (this .getLocalName (sourceNode));
67958
- }
67959
- catch
67960
- {
67961
- // Source node is shared but not imported.
67962
- }
67721
+ // Normalize arguments.
67963
67722
 
67964
- try
67965
- {
67966
- // If destinationNode is shared node try to find the corresponding X3DImportedNode.
67967
- if (destinationNode .getValue () .getExecutionContext () !== this)
67968
- importedDestinationNode = this .getLocalNode (this .getLocalName (destinationNode));
67969
- }
67970
- catch
67971
- {
67972
- // Destination node is shared but not imported.
67973
- }
67723
+ const
67724
+ importedSourceNode = sourceNode instanceof Execution_X3DImportedNode ? sourceNode : null,
67725
+ importedDestinationNode = destinationNode instanceof Execution_X3DImportedNode ? destinationNode : null;
67974
67726
 
67975
- if (importedSourceNode instanceof Execution_X3DImportedNode && importedDestinationNode instanceof Execution_X3DImportedNode)
67976
- {
67977
- importedSourceNode .deleteRoute (route);
67978
- importedDestinationNode .deleteRoute (route);
67979
- }
67980
- else if (importedSourceNode instanceof Execution_X3DImportedNode)
67981
- {
67982
- importedSourceNode .deleteRoute (route);
67983
- }
67984
- else if (importedDestinationNode instanceof Execution_X3DImportedNode)
67985
- {
67986
- importedDestinationNode .deleteRoute (route);
67987
- }
67988
- },
67989
- getRoute (sourceNode, sourceField, destinationNode, destinationField)
67990
- {
67991
- sourceNode = Base_X3DCast (Base_X3DConstants .X3DNode, sourceNode, false);
67727
+ sourceNode = Base_X3DCast (Base_X3DConstants .X3DNode, sourceNode, false) ?? importedSourceNode;
67992
67728
  sourceField = String (sourceField)
67993
- destinationNode = Base_X3DCast (Base_X3DConstants .X3DNode, destinationNode, false);
67729
+ destinationNode = Base_X3DCast (Base_X3DConstants .X3DNode, destinationNode, false) ?? importedDestinationNode;
67994
67730
  destinationField = String (destinationField)
67995
67731
 
67996
67732
  if (!sourceNode)
@@ -67999,10 +67735,14 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
67999
67735
  if (!destinationNode)
68000
67736
  throw new Error ("Bad ROUTE specification: destinationNode must be of type X3DNode.");
68001
67737
 
68002
- sourceField = sourceNode .getField (sourceField);
68003
- destinationField = destinationNode .getField (destinationField);
67738
+ // Resolve imported source and destination node.
68004
67739
 
68005
- return this [X3DExecutionContext_routes] .get (Routing_X3DRoute .getRouteId (sourceField, destinationField));
67740
+ sourceNode = this .getLocalizedNode (sourceNode);
67741
+ destinationNode = this .getLocalizedNode (destinationNode);
67742
+
67743
+ // Return route.
67744
+
67745
+ return this [X3DExecutionContext_routes] .get (Routing_X3DRoute .getRouteId (sourceNode, sourceField, destinationNode, destinationField));
68006
67746
  },
68007
67747
  getRoutes ()
68008
67748
  {
@@ -68437,11 +68177,11 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68437
68177
 
68438
68178
  // Copy proto.
68439
68179
 
68440
- this .importExternProtos (proto .getBody () .externprotos);
68441
- this .importProtos (proto .getBody () .protos);
68442
- this .copyRootNodes (proto .getBody () .rootNodes);
68443
- this .copyImportedNodes (proto .getBody (), proto .getBody () .getImportedNodes ());
68444
- this .copyRoutes (proto .getBody (), proto .getBody () .routes);
68180
+ this .importExternProtos (proto .getBody () .externprotos);
68181
+ this .importProtos (proto .getBody () .protos);
68182
+ this .copyRootNodes (proto .getBody () .rootNodes);
68183
+ this .importImportedNodes (proto .getBody () .importedNodes);
68184
+ this .copyRoutes (proto .getBody () .routes);
68445
68185
 
68446
68186
  this [X3DPrototypeInstance_body] .setup ();
68447
68187
 
@@ -68492,6 +68232,9 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68492
68232
  oldField .setAccessType (newField .getAccessType ());
68493
68233
  oldField .setName (newField .getName ());
68494
68234
 
68235
+ // Replace field, ie. reuse old field.
68236
+ this .getPredefinedFields () .update (newField .getName (), newField .getName (), oldField);
68237
+
68495
68238
  const references = new Set (oldField .getReferences ());
68496
68239
 
68497
68240
  // Remove references and routes.
@@ -68505,16 +68248,33 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68505
68248
  oldField .addReference (field);
68506
68249
  }
68507
68250
 
68508
- // Reconnect routes.
68509
- for (const route of oldField .getInputRoutes ())
68510
- route .getSourceField () .addFieldInterest (route .getDestinationField ());
68251
+ // Reconnect input routes.
68252
+ for (const route of new Set (oldField .getInputRoutes ()))
68253
+ {
68254
+ try
68255
+ {
68256
+ const { sourceNode, sourceField } = route;
68511
68257
 
68512
- // Reconnect routes.
68513
- for (const route of oldField .getOutputRoutes ())
68514
- route .getSourceField () .addFieldInterest (route .getDestinationField ());
68258
+ route .getExecutionContext () .deleteRoute (route);
68259
+ route .getExecutionContext () .addRoute (sourceNode, sourceField, this, oldField .getName ());
68260
+ }
68261
+ catch
68262
+ { }
68263
+ }
68515
68264
 
68516
- // Replace field, ie. reuse old field.
68517
- this .getPredefinedFields () .update (newField .getName (), newField .getName (), oldField);
68265
+ // Reconnect output routes.
68266
+ for (const route of new Set (oldField .getOutputRoutes ()))
68267
+ {
68268
+ try
68269
+ {
68270
+ const { destinationNode, destinationField } = route;
68271
+
68272
+ route .getExecutionContext () .deleteRoute (route);
68273
+ route .getExecutionContext () .addRoute (this, oldField .getName (), destinationNode, destinationField );
68274
+ }
68275
+ catch
68276
+ { }
68277
+ }
68518
68278
 
68519
68279
  // Remove from old fields and dispose new field.
68520
68280
  oldFields .delete (oldFieldName);
@@ -68599,34 +68359,35 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68599
68359
  for (const node of rootNodes1)
68600
68360
  rootNodes2 .push (node .copy (this));
68601
68361
  },
68602
- copyImportedNodes (executionContext, importedNodes)
68362
+ importImportedNodes (importedNodes)
68603
68363
  {
68604
68364
  for (const importedNode of importedNodes)
68605
68365
  {
68606
68366
  try
68607
68367
  {
68608
- const
68609
- inlineNode = this [X3DPrototypeInstance_body] .getNamedNode (importedNode .getInlineNode () .getName ()),
68610
- importedName = importedNode .getImportedName (),
68611
- exportedName = importedNode .getExportedName ();
68368
+ const inlineNode = this [X3DPrototypeInstance_body] .getNamedNode (importedNode .getInlineNode () .getName ());
68612
68369
 
68613
- this [X3DPrototypeInstance_body] .addImportedNode (inlineNode, exportedName, importedName);
68370
+ this [X3DPrototypeInstance_body] .addImportedNode (inlineNode, importedNode .getExportedName (), importedNode .getImportedName ());
68614
68371
  }
68615
68372
  catch (error)
68616
68373
  {
68617
- console .error ("Bad IMPORT specification in copy: ", error);
68374
+ console .error (error);
68618
68375
  }
68619
68376
  }
68620
68377
  },
68621
- copyRoutes (executionContext, routes)
68378
+ copyRoutes (routes)
68622
68379
  {
68623
68380
  for (const route of routes)
68624
68381
  {
68625
68382
  try
68626
68383
  {
68627
- const
68628
- sourceNode = this [X3DPrototypeInstance_body] .getLocalNode (executionContext .getLocalName (route .sourceNode)),
68629
- destinationNode = this [X3DPrototypeInstance_body] .getLocalNode (executionContext .getLocalName (route .destinationNode));
68384
+ const sourceNode = route .getSourceNode () instanceof Core_X3DNode
68385
+ ? this [X3DPrototypeInstance_body] .getLocalNode (route .getSourceNode () .getName ())
68386
+ : this [X3DPrototypeInstance_body] .getLocalNode (route .getSourceNode () .getImportedName ());
68387
+
68388
+ const destinationNode = route .getDestinationNode () instanceof Core_X3DNode
68389
+ ? this [X3DPrototypeInstance_body] .getLocalNode (route .getDestinationNode () .getName ())
68390
+ : this [X3DPrototypeInstance_body] .getLocalNode (route .getDestinationNode () .getImportedName ());
68630
68391
 
68631
68392
  this [X3DPrototypeInstance_body] .addRoute (sourceNode, route .sourceField, destinationNode, route .destinationField);
68632
68393
  }
@@ -89599,7 +89360,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
89599
89360
  x_ite_Namespace .add ("X3DShaderNode", "x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
89600
89361
  /* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
89601
89362
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
89602
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(831);
89363
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(484);
89603
89364
  /*******************************************************************************
89604
89365
  *
89605
89366
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95240,7 +95001,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
95240
95001
  x_ite_Namespace .add ("ShaderCompiler", "x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
95241
95002
  /* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
95242
95003
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
95243
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(831);
95004
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(484);
95244
95005
  /*******************************************************************************
95245
95006
  *
95246
95007
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95897,7 +95658,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
95897
95658
  x_ite_Namespace .add ("X3DAppearanceNode", "x_ite/Components/Shape/X3DAppearanceNode", X3DAppearanceNode_default_);
95898
95659
  /* harmony default export */ const Shape_X3DAppearanceNode = (X3DAppearanceNode_default_);
95899
95660
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
95900
- /* provided dependency */ var Appearance_$ = __webpack_require__(831);
95661
+ /* provided dependency */ var Appearance_$ = __webpack_require__(484);
95901
95662
  /*******************************************************************************
95902
95663
  *
95903
95664
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99315,7 +99076,7 @@ const Components_Shape_default_ = {
99315
99076
  x_ite_Namespace .add ("Shape", "x_ite/Components/Shape", Components_Shape_default_);
99316
99077
  /* harmony default export */ const Components_Shape = (Components_Shape_default_);
99317
99078
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundProcessingNode.js
99318
- /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(831);
99079
+ /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(484);
99319
99080
  /*******************************************************************************
99320
99081
  *
99321
99082
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99955,7 +99716,7 @@ const X3DSoundSourceNode_default_ = X3DSoundSourceNode;
99955
99716
  x_ite_Namespace .add ("X3DSoundSourceNode", "x_ite/Components/Sound/X3DSoundSourceNode", X3DSoundSourceNode_default_);
99956
99717
  /* harmony default export */ const Sound_X3DSoundSourceNode = (X3DSoundSourceNode_default_);
99957
99718
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/AudioClip.js
99958
- /* provided dependency */ var AudioClip_$ = __webpack_require__(831);
99719
+ /* provided dependency */ var AudioClip_$ = __webpack_require__(484);
99959
99720
  /*******************************************************************************
99960
99721
  *
99961
99722
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -100257,7 +100018,7 @@ const X3DSoundNode_default_ = X3DSoundNode;
100257
100018
  x_ite_Namespace .add ("X3DSoundNode", "x_ite/Components/Sound/X3DSoundNode", X3DSoundNode_default_);
100258
100019
  /* harmony default export */ const Sound_X3DSoundNode = (X3DSoundNode_default_);
100259
100020
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundDestinationNode.js
100260
- /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(831);
100021
+ /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(484);
100261
100022
  /*******************************************************************************
100262
100023
  *
100263
100024
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -101907,7 +101668,7 @@ const ListenerPointSource_default_ = ListenerPointSource;
101907
101668
  x_ite_Namespace .add ("ListenerPointSource", "x_ite/Components/Sound/ListenerPointSource", ListenerPointSource_default_);
101908
101669
  /* harmony default export */ const Sound_ListenerPointSource = (ListenerPointSource_default_);
101909
101670
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/MicrophoneSource.js
101910
- /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(831);
101671
+ /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(484);
101911
101672
  /*******************************************************************************
101912
101673
  *
101913
101674
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -103576,8 +103337,8 @@ const GifMedia_default_ = GifMedia;
103576
103337
  x_ite_Namespace .add ("GifMedia", "x_ite/Browser/Texturing/GifMedia", GifMedia_default_);
103577
103338
  /* harmony default export */ const Texturing_GifMedia = (GifMedia_default_);
103578
103339
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
103579
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(831);
103580
- /* provided dependency */ var SuperGif = __webpack_require__(698);
103340
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(484);
103341
+ /* provided dependency */ var SuperGif = __webpack_require__(749);
103581
103342
  /*******************************************************************************
103582
103343
  *
103583
103344
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -106852,7 +106613,7 @@ const gettext_default_ = gettext;
106852
106613
  x_ite_Namespace .add ("gettext", "locale/gettext", gettext_default_);
106853
106614
  /* harmony default export */ const locale_gettext = (gettext_default_);
106854
106615
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
106855
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(831);
106616
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(484);
106856
106617
  /*******************************************************************************
106857
106618
  *
106858
106619
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107282,7 +107043,7 @@ const TextureQuality_default_ = TextureQuality;
107282
107043
  x_ite_Namespace .add ("TextureQuality", "x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
107283
107044
  /* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
107284
107045
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
107285
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(831);
107046
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(484);
107286
107047
  /*******************************************************************************
107287
107048
  *
107288
107049
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107872,7 +107633,7 @@ const RenderingProperties_default_ = RenderingProperties;
107872
107633
  x_ite_Namespace .add ("RenderingProperties", "x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
107873
107634
  /* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
107874
107635
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
107875
- /* provided dependency */ var Notification_$ = __webpack_require__(831);
107636
+ /* provided dependency */ var Notification_$ = __webpack_require__(484);
107876
107637
  /*******************************************************************************
107877
107638
  *
107878
107639
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107995,8 +107756,8 @@ const Notification_default_ = Notification;
107995
107756
  x_ite_Namespace .add ("Notification", "x_ite/Browser/Core/Notification", Notification_default_);
107996
107757
  /* harmony default export */ const Core_Notification = (Notification_default_);
107997
107758
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
107998
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(561);
107999
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(831);
107759
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(66);
107760
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(484);
108000
107761
  /*******************************************************************************
108001
107762
  *
108002
107763
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109269,7 +109030,7 @@ Object .assign (Object .setPrototypeOf (X3DExportedNode .prototype, Base_X3DObje
109269
109030
  },
109270
109031
  toVRMLStream (generator)
109271
109032
  {
109272
- const localName = generator .LocalName (this .getLocalNode ());
109033
+ const localName = generator .Name (this .getLocalNode ());
109273
109034
 
109274
109035
  generator .string += generator .Indent ();
109275
109036
  generator .string += "EXPORT";
@@ -109286,7 +109047,7 @@ Object .assign (Object .setPrototypeOf (X3DExportedNode .prototype, Base_X3DObje
109286
109047
  },
109287
109048
  toXMLStream (generator)
109288
109049
  {
109289
- const localName = generator .LocalName (this .getLocalNode ());
109050
+ const localName = generator .Name (this .getLocalNode ());
109290
109051
 
109291
109052
  generator .string += generator .Indent ();
109292
109053
  generator .string += "<EXPORT";
@@ -109307,7 +109068,7 @@ Object .assign (Object .setPrototypeOf (X3DExportedNode .prototype, Base_X3DObje
109307
109068
  },
109308
109069
  toJSONStream (generator)
109309
109070
  {
109310
- const localName = generator .LocalName (this .getLocalNode ());
109071
+ const localName = generator .Name (this .getLocalNode ());
109311
109072
 
109312
109073
  generator .string += generator .Indent ();
109313
109074
  generator .string += '{';
@@ -110750,7 +110511,7 @@ const DataStorage_default_ = DataStorage;
110750
110511
  x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage_default_);
110751
110512
  /* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
110752
110513
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
110753
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(831);
110514
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(484);
110754
110515
  /*******************************************************************************
110755
110516
  *
110756
110517
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -113273,8 +113034,8 @@ const X3DViewer_default_ = X3DViewer;
113273
113034
  x_ite_Namespace .add ("X3DViewer", "x_ite/Browser/Navigation/X3DViewer", X3DViewer_default_);
113274
113035
  /* harmony default export */ const Navigation_X3DViewer = (X3DViewer_default_);
113275
113036
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
113276
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(471);
113277
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(831);
113037
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(389);
113038
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(484);
113278
113039
  /*******************************************************************************
113279
113040
  *
113280
113041
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114146,8 +113907,8 @@ const ExamineViewer_default_ = ExamineViewer;
114146
113907
  x_ite_Namespace .add ("ExamineViewer", "x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
114147
113908
  /* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
114148
113909
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
114149
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(471);
114150
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(831);
113910
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(389);
113911
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(484);
114151
113912
  /*******************************************************************************
114152
113913
  *
114153
113914
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115156,8 +114917,8 @@ const FlyViewer_default_ = FlyViewer;
115156
114917
  x_ite_Namespace .add ("FlyViewer", "x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
115157
114918
  /* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
115158
114919
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
115159
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(471);
115160
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(831);
114920
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(389);
114921
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(484);
115161
114922
  /*******************************************************************************
115162
114923
  *
115163
114924
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115488,8 +115249,8 @@ const NoneViewer_default_ = NoneViewer;
115488
115249
  x_ite_Namespace .add ("NoneViewer", "x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
115489
115250
  /* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
115490
115251
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
115491
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(471);
115492
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(831);
115252
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(389);
115253
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(484);
115493
115254
  /*******************************************************************************
115494
115255
  *
115495
115256
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116628,8 +116389,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
116628
116389
  x_ite_Namespace .add ("X3DPickingContext", "x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
116629
116390
  /* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
116630
116391
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
116631
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(471);
116632
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(831);
116392
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(389);
116393
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(484);
116633
116394
  /*******************************************************************************
116634
116395
  *
116635
116396
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -117908,7 +117669,7 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
117908
117669
  x_ite_Namespace .add ("MultiSampleFrameBuffer", "x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
117909
117670
  /* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
117910
117671
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
117911
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(831);
117672
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(484);
117912
117673
  /*******************************************************************************
117913
117674
  *
117914
117675
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118811,7 +118572,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
118811
118572
  x_ite_Namespace .add ("X3DSoundContext", "x_ite/Browser/Sound/X3DSoundContext", X3DSoundContext_default_);
118812
118573
  /* harmony default export */ const Sound_X3DSoundContext = (X3DSoundContext_default_);
118813
118574
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
118814
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(831);
118575
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(484);
118815
118576
  const KTXDecoder_default_ = class KTXDecoder
118816
118577
  {
118817
118578
  constructor (gl, externalKtxlib, scriptDir)
@@ -120364,7 +120125,7 @@ const Components_default_ = Components;
120364
120125
  x_ite_Namespace .add ("Components", "x_ite/Components", Components_default_);
120365
120126
  /* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
120366
120127
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
120367
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(831);
120128
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(484);
120368
120129
  /*******************************************************************************
120369
120130
  * MIT License
120370
120131
  *
@@ -121495,7 +121256,7 @@ const SupportedProfiles_default_ = SupportedProfiles;
121495
121256
  x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
121496
121257
  /* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
121497
121258
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
121498
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(831);
121259
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(484);
121499
121260
  /*******************************************************************************
121500
121261
  *
121501
121262
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122209,21 +121970,11 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
122209
121970
  else
122210
121971
  return new Map ([... this [_browserCallbacks]] .flatMap (([event, map]) => [... map]));
122211
121972
  },
122212
- callBrowserCallbacks: (() =>
121973
+ callBrowserCallbacks (event)
122213
121974
  {
122214
- const values = [ ];
122215
-
122216
- return function (event)
122217
- {
122218
- const browserCallbacks = this [_browserCallbacks] .get (event);
122219
-
122220
- if (browserCallbacks .size)
122221
- {
122222
- for (const callback of Utility_MapUtilities .values (values, browserCallbacks))
122223
- callback (event);
122224
- }
122225
- };
122226
- })(),
121975
+ for (const callback of Utility_MapUtilities .values (this [_browserCallbacks] .get (event)))
121976
+ callback (event);
121977
+ },
122227
121978
  importDocument (dom)
122228
121979
  {
122229
121980
  const
@@ -122408,23 +122159,13 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
122408
122159
 
122409
122160
  viewpointNode ._set_bind = true;
122410
122161
  },
122411
- addRoute (fromNode, fromEventOut, toNode, toEventIn)
122162
+ addRoute (sourceNode, sourceField, destinationNode, destinationField)
122412
122163
  {
122413
- this .currentScene .addRoute (fromNode, fromEventOut, toNode, toEventIn);
122164
+ this .currentScene .addRoute (sourceNode, sourceField, destinationNode, destinationField);
122414
122165
  },
122415
- deleteRoute (fromNode, fromEventOut, toNode, toEventIn)
122166
+ deleteRoute (sourceNode, sourceField, destinationNode, destinationField)
122416
122167
  {
122417
- try
122418
- {
122419
- const route = this .currentScene .getRoute (fromNode, fromEventOut, toNode, toEventIn);
122420
-
122421
- if (route)
122422
- this .currentScene .deleteRoute (route);
122423
- }
122424
- catch (error)
122425
- {
122426
- console .error (error);
122427
- }
122168
+ this .currentScene .deleteRoute (sourceNode, sourceField, destinationNode, destinationField);
122428
122169
  },
122429
122170
  beginUpdate ()
122430
122171
  {
@@ -122576,7 +122317,7 @@ const X3DBrowser_default_ = X3DBrowser;
122576
122317
  x_ite_Namespace .add ("X3DBrowser", "x_ite/Browser/X3DBrowser", X3DBrowser_default_);
122577
122318
  /* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
122578
122319
  ;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
122579
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(831);
122320
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(484);
122580
122321
  /*******************************************************************************
122581
122322
  *
122582
122323
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122708,8 +122449,8 @@ const X3DCanvasElement_default_ = X3DCanvasElement;
122708
122449
  x_ite_Namespace .add ("X3DCanvasElement", "x_ite/X3DCanvasElement", X3DCanvasElement_default_);
122709
122450
  /* harmony default export */ const x_ite_X3DCanvasElement = (X3DCanvasElement_default_);
122710
122451
  ;// CONCATENATED MODULE: ./src/lib/jquery.js
122711
- /* provided dependency */ var jquery_$ = __webpack_require__(831);
122712
- /* provided dependency */ var pako = __webpack_require__(295);
122452
+ /* provided dependency */ var jquery_$ = __webpack_require__(484);
122453
+ /* provided dependency */ var pako = __webpack_require__(251);
122713
122454
  Object .assign (jquery_$,
122714
122455
  {
122715
122456
  decodeText (input)
@@ -122786,14 +122527,14 @@ const jquery_default_ = jquery_$;
122786
122527
  x_ite_Namespace .add ("jquery", "lib/jquery", jquery_default_);
122787
122528
  /* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
122788
122529
  ;// CONCATENATED MODULE: ./src/lib/libtess.js
122789
- /* provided dependency */ var libtess_libtess = __webpack_require__(864);
122530
+ /* provided dependency */ var libtess_libtess = __webpack_require__(53);
122790
122531
  const libtess_default_ = libtess_libtess;
122791
122532
  ;
122792
122533
 
122793
122534
  x_ite_Namespace .add ("libtess", "lib/libtess", libtess_default_);
122794
122535
  /* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
122795
122536
  ;// CONCATENATED MODULE: ./src/x_ite/X3D.js
122796
- /* provided dependency */ var X3D_$ = __webpack_require__(831);
122537
+ /* provided dependency */ var X3D_$ = __webpack_require__(484);
122797
122538
  /*******************************************************************************
122798
122539
  *
122799
122540
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -123101,7 +122842,7 @@ Object .assign (X3D,
123101
122842
 
123102
122843
  // Assign X3D to global namespace.
123103
122844
 
123104
- window [Symbol .for ("X_ITE.X3D-9.1.11")] = x_ite_X3D;
122845
+ window [Symbol .for ("X_ITE.X3D-9.2.0")] = x_ite_X3D;
123105
122846
 
123106
122847
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
123107
122848