x_ite 10.5.0 → 10.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +4 -4
  2. package/dist/assets/components/AnnotationComponent.js +2 -2
  3. package/dist/assets/components/AnnotationComponent.min.js +2 -2
  4. package/dist/assets/components/CADGeometryComponent.js +2 -2
  5. package/dist/assets/components/CADGeometryComponent.min.js +2 -2
  6. package/dist/assets/components/CubeMapTexturingComponent.js +2 -2
  7. package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -2
  8. package/dist/assets/components/DISComponent.js +2 -2
  9. package/dist/assets/components/DISComponent.min.js +2 -2
  10. package/dist/assets/components/EventUtilitiesComponent.js +2 -2
  11. package/dist/assets/components/EventUtilitiesComponent.min.js +2 -2
  12. package/dist/assets/components/Geometry2DComponent.js +2 -2
  13. package/dist/assets/components/Geometry2DComponent.min.js +2 -2
  14. package/dist/assets/components/GeospatialComponent.js +2 -2
  15. package/dist/assets/components/GeospatialComponent.min.js +2 -2
  16. package/dist/assets/components/HAnimComponent.js +2 -2
  17. package/dist/assets/components/HAnimComponent.min.js +2 -2
  18. package/dist/assets/components/KeyDeviceSensorComponent.js +2 -2
  19. package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -2
  20. package/dist/assets/components/LayoutComponent.js +2 -2
  21. package/dist/assets/components/LayoutComponent.min.js +2 -2
  22. package/dist/assets/components/NURBSComponent.js +134 -37
  23. package/dist/assets/components/NURBSComponent.min.js +2 -2
  24. package/dist/assets/components/ParticleSystemsComponent.js +3 -3
  25. package/dist/assets/components/ParticleSystemsComponent.min.js +2 -2
  26. package/dist/assets/components/PickingComponent.js +2 -2
  27. package/dist/assets/components/PickingComponent.min.js +2 -2
  28. package/dist/assets/components/RigidBodyPhysicsComponent.js +2 -2
  29. package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -2
  30. package/dist/assets/components/ScriptingComponent.js +2 -2
  31. package/dist/assets/components/ScriptingComponent.min.js +2 -2
  32. package/dist/assets/components/TextComponent.js +4 -4
  33. package/dist/assets/components/TextComponent.min.js +2 -2
  34. package/dist/assets/components/TextureProjectionComponent.js +2 -2
  35. package/dist/assets/components/TextureProjectionComponent.min.js +2 -2
  36. package/dist/assets/components/Texturing3DComponent.js +10 -10
  37. package/dist/assets/components/Texturing3DComponent.min.js +2 -2
  38. package/dist/assets/components/VolumeRenderingComponent.js +121 -178
  39. package/dist/assets/components/VolumeRenderingComponent.min.js +2 -2
  40. package/dist/assets/components/X_ITEComponent.js +2 -2
  41. package/dist/assets/components/X_ITEComponent.min.js +2 -2
  42. package/dist/example.html +1 -1
  43. package/dist/x_ite.css +1 -1
  44. package/dist/x_ite.js +321 -310
  45. package/dist/x_ite.min.js +2 -2
  46. package/dist/x_ite.min.mjs +2 -2
  47. package/dist/x_ite.mjs +321 -310
  48. package/dist/x_ite.zip +0 -0
  49. package/package.json +3 -2
package/dist/x_ite.mjs CHANGED
@@ -1,10 +1,10 @@
1
- /* X_ITE v10.5.0 */
1
+ /* X_ITE v10.5.2 */
2
2
  var __webpack_modules__ = ({
3
3
 
4
- /***/ 306:
4
+ /***/ 343:
5
5
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
6
6
 
7
- /* provided dependency */ var jQuery = __webpack_require__(386);
7
+ /* provided dependency */ var jQuery = __webpack_require__(91);
8
8
  /**
9
9
  * @preserve jquery.fullscreen 1.1.5
10
10
  * https://github.com/code-lts/jquery-fullscreen-plugin
@@ -200,7 +200,7 @@ installFullScreenHandlers();
200
200
 
201
201
  /***/ }),
202
202
 
203
- /***/ 336:
203
+ /***/ 283:
204
204
  /***/ ((module, exports, __webpack_require__) => {
205
205
 
206
206
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -214,7 +214,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
214
214
  (function (factory) {
215
215
  if ( true ) {
216
216
  // AMD. Register as an anonymous module.
217
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(386)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
217
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(91)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
218
218
  __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
219
219
  (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
220
220
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
@@ -425,7 +425,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
425
425
 
426
426
  /***/ }),
427
427
 
428
- /***/ 386:
428
+ /***/ 91:
429
429
  /***/ (function(module, exports) {
430
430
 
431
431
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -11149,7 +11149,7 @@ return jQuery;
11149
11149
 
11150
11150
  /***/ }),
11151
11151
 
11152
- /***/ 475:
11152
+ /***/ 744:
11153
11153
  /***/ ((module) => {
11154
11154
 
11155
11155
  /**
@@ -15928,7 +15928,7 @@ if (true) {
15928
15928
 
15929
15929
  /***/ }),
15930
15930
 
15931
- /***/ 514:
15931
+ /***/ 483:
15932
15932
  /***/ (function(__unused_webpack_module, exports) {
15933
15933
 
15934
15934
 
@@ -19173,7 +19173,7 @@ if (true) {
19173
19173
 
19174
19174
  /***/ }),
19175
19175
 
19176
- /***/ 141:
19176
+ /***/ 396:
19177
19177
  /***/ (function(module, exports) {
19178
19178
 
19179
19179
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
@@ -20297,7 +20297,7 @@ Object .defineProperty (Namespace, "add",
20297
20297
  return module;
20298
20298
  }
20299
20299
 
20300
- const X3D = window [Symbol .for ("X_ITE.X3D-10.5.0")];
20300
+ const X3D = window [Symbol .for ("X_ITE.X3D-10.5.2")];
20301
20301
 
20302
20302
  if (X3D)
20303
20303
  X3D [name] = module;
@@ -34159,7 +34159,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34159
34159
 
34160
34160
  /* harmony default export */ const Base_X3DBaseNode = (x_ite_Namespace .add ("X3DBaseNode", X3DBaseNode_default_));
34161
34161
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
34162
- /* provided dependency */ var $ = __webpack_require__(386);
34162
+ /* provided dependency */ var $ = __webpack_require__(91);
34163
34163
  /*******************************************************************************
34164
34164
  *
34165
34165
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34295,7 +34295,7 @@ const Legacy_default_ = Legacy;
34295
34295
  *
34296
34296
  ******************************************************************************/
34297
34297
 
34298
- const BROWSER_VERSION_default_ = "10.5.0";
34298
+ const BROWSER_VERSION_default_ = "10.5.2";
34299
34299
  ;
34300
34300
 
34301
34301
  /* harmony default export */ const BROWSER_VERSION = (x_ite_Namespace .add ("BROWSER_VERSION", BROWSER_VERSION_default_));
@@ -37320,7 +37320,7 @@ const X3DBindableNode_default_ = X3DBindableNode;
37320
37320
 
37321
37321
  /* harmony default export */ const Core_X3DBindableNode = (x_ite_Namespace .add ("X3DBindableNode", X3DBindableNode_default_));
37322
37322
  ;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
37323
- /* provided dependency */ var libtess = __webpack_require__(475);
37323
+ /* provided dependency */ var libtess = __webpack_require__(744);
37324
37324
  /*******************************************************************************
37325
37325
  *
37326
37326
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39882,7 +39882,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
39882
39882
 
39883
39883
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (x_ite_Namespace .add ("X3DProtoDeclaration", X3DProtoDeclaration_default_));
39884
39884
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
39885
- /* provided dependency */ var X3DParser_$ = __webpack_require__(386);
39885
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(91);
39886
39886
  /*******************************************************************************
39887
39887
  *
39888
39888
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -40137,7 +40137,7 @@ const Expressions_default_ = Expressions;
40137
40137
 
40138
40138
  /* harmony default export */ const Parser_Expressions = (x_ite_Namespace .add ("Expressions", Expressions_default_));
40139
40139
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
40140
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(386);
40140
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(91);
40141
40141
  /*******************************************************************************
40142
40142
  *
40143
40143
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -41784,12 +41784,12 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
41784
41784
  },
41785
41785
  sfboolValues (field)
41786
41786
  {
41787
- field .length = 0;
41788
-
41789
- const target = field .getTarget ();
41787
+ const array = [ ];
41790
41788
 
41791
41789
  while (this .bool ())
41792
- target .push (this .value);
41790
+ array .push (this .value);
41791
+
41792
+ field .setValue (array);
41793
41793
 
41794
41794
  return field .length !== 0;
41795
41795
  },
@@ -41859,14 +41859,12 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
41859
41859
  },
41860
41860
  sfcolorValues (field)
41861
41861
  {
41862
- field .length = 0;
41862
+ const array = [ ];
41863
41863
 
41864
- const
41865
- target = field .getTarget (),
41866
- value = this .Color3;
41864
+ while (this .double ())
41865
+ array .push (this .value);
41867
41866
 
41868
- while (this .sfcolorValue (value))
41869
- target .push (value);
41867
+ field .setValue (array);
41870
41868
 
41871
41869
  return field .length !== 0;
41872
41870
  },
@@ -41931,7 +41929,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
41931
41929
 
41932
41930
  if (Grammar .OpenBracket .parse (this))
41933
41931
  {
41934
- this .sfcolorrgbaValues (field);
41932
+ this .sfcolorValues (field);
41935
41933
 
41936
41934
  if (Grammar .CloseBracket .parse (this))
41937
41935
  return true;
@@ -41941,19 +41939,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
41941
41939
 
41942
41940
  return false;
41943
41941
  },
41944
- sfcolorrgbaValues (field)
41945
- {
41946
- field .length = 0;
41947
-
41948
- const
41949
- target = field .getTarget (),
41950
- value = this .Color4;
41951
-
41952
- while (this .sfcolorrgbaValue (value))
41953
- target .push (value);
41954
-
41955
- return field .length !== 0;
41956
- },
41957
41942
  sfdoubleValue (field)
41958
41943
  {
41959
41944
  if (this .double ())
@@ -41988,14 +41973,14 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
41988
41973
  },
41989
41974
  sfdoubleValues (field)
41990
41975
  {
41991
- field .length = 0;
41992
-
41993
41976
  const
41994
- target = field .getTarget (),
41995
- unit = target .getUnit ();
41977
+ unit = field .getUnit (),
41978
+ array = [ ];
41996
41979
 
41997
41980
  while (this .double ())
41998
- target .push (this .fromUnit (unit, this .value));
41981
+ array .push (this .fromUnit (unit, this .value));
41982
+
41983
+ field .setValue (array);
41999
41984
 
42000
41985
  return field .length !== 0;
42001
41986
  },
@@ -42012,26 +41997,26 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42012
41997
  if (this .int32 ())
42013
41998
  {
42014
41999
  const
42015
- comp = this .value,
42016
- size = width * height;
42017
-
42018
- field .width = width;
42019
- field .height = height;
42020
- field .comp = comp;
42021
-
42022
- const array = field .array;
42000
+ comp = this .value,
42001
+ size = width * height,
42002
+ array = [ ];
42023
42003
 
42024
42004
  for (let i = 0; i < size; ++ i)
42025
42005
  {
42026
42006
  if (this .int32 ())
42027
42007
  {
42028
- array [i] = this .value;
42008
+ array .push (this .value);
42029
42009
  continue;
42030
42010
  }
42031
42011
 
42032
42012
  return false;
42033
42013
  }
42034
42014
 
42015
+ field .width = width;
42016
+ field .height = height;
42017
+ field .comp = comp;
42018
+ field .array = array;
42019
+
42035
42020
  return true;
42036
42021
  }
42037
42022
  }
@@ -42108,12 +42093,12 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42108
42093
  },
42109
42094
  sfint32Values (field)
42110
42095
  {
42111
- field .length = 0;
42112
-
42113
- const target = field .getTarget ();
42096
+ const array = [ ];
42114
42097
 
42115
42098
  while (this .int32 ())
42116
- target .push (this .value);
42099
+ array .push (this .value);
42100
+
42101
+ field .setValue (array);
42117
42102
 
42118
42103
  return field .length !== 0;
42119
42104
  },
@@ -42190,7 +42175,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42190
42175
 
42191
42176
  if (Grammar .OpenBracket .parse (this))
42192
42177
  {
42193
- this .sfmatrix3Values (field);
42178
+ this .sfmatrixValues (field);
42194
42179
 
42195
42180
  if (Grammar .CloseBracket .parse (this))
42196
42181
  return true;
@@ -42200,16 +42185,14 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42200
42185
 
42201
42186
  return false;
42202
42187
  },
42203
- sfmatrix3Values (field)
42188
+ sfmatrixValues (field)
42204
42189
  {
42205
- field .length = 0;
42190
+ const array = [ ];
42206
42191
 
42207
- const
42208
- target = field .getTarget (),
42209
- value = this .Matrix3;
42192
+ while (this .double ())
42193
+ array .push (this .value);
42210
42194
 
42211
- while (this .sfmatrix3Value (value))
42212
- target .push (value);
42195
+ field .setValue (array);
42213
42196
 
42214
42197
  return field .length !== 0;
42215
42198
  },
@@ -42328,7 +42311,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42328
42311
 
42329
42312
  if (Grammar .OpenBracket .parse (this))
42330
42313
  {
42331
- this .sfmatrix4Values (field);
42314
+ this .sfmatrixValues (field);
42332
42315
 
42333
42316
  if (Grammar .CloseBracket .parse (this))
42334
42317
  return true;
@@ -42338,19 +42321,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42338
42321
 
42339
42322
  return false;
42340
42323
  },
42341
- sfmatrix4Values (field)
42342
- {
42343
- field .length = 0;
42344
-
42345
- const
42346
- target = field .getTarget (),
42347
- value = this .Matrix4;
42348
-
42349
- while (this .sfmatrix4Value (value))
42350
- target .push (value);
42351
-
42352
- return field .length !== 0;
42353
- },
42354
42324
  sfnodeValue (field)
42355
42325
  {
42356
42326
  const baseNode = this .nodeStatement ();
@@ -42500,12 +42470,12 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42500
42470
  },
42501
42471
  sfstringValues (field)
42502
42472
  {
42503
- field .length = 0;
42504
-
42505
- const target = field .getTarget ();
42473
+ const array = [ ];
42506
42474
 
42507
42475
  while (this .string ())
42508
- target .push (this .value);
42476
+ array .push (this .value);
42477
+
42478
+ field .setValue (array);
42509
42479
 
42510
42480
  return field .length !== 0;
42511
42481
  },
@@ -42540,7 +42510,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42540
42510
 
42541
42511
  if (Grammar .OpenBracket .parse (this))
42542
42512
  {
42543
- this .sfvec2Values (field);
42513
+ this .sfvecValues (field);
42544
42514
 
42545
42515
  if (Grammar .CloseBracket .parse (this))
42546
42516
  return true;
@@ -42550,17 +42520,16 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42550
42520
 
42551
42521
  return false;
42552
42522
  },
42553
- sfvec2Values (field)
42523
+ sfvecValues (field)
42554
42524
  {
42555
- field .length = 0;
42556
-
42557
42525
  const
42558
- target = field .getTarget (),
42559
- value = this .Vector2,
42560
- unit = target .getUnit ();
42526
+ unit = field .getUnit (),
42527
+ array = [ ];
42561
42528
 
42562
- while (this .sfvec2Value (value, unit))
42563
- target .push (value);
42529
+ while (this .double ())
42530
+ array .push (this .fromUnit (unit, this .value));
42531
+
42532
+ field .setValue (array);
42564
42533
 
42565
42534
  return field .length !== 0;
42566
42535
  },
@@ -42601,7 +42570,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42601
42570
 
42602
42571
  if (Grammar .OpenBracket .parse (this))
42603
42572
  {
42604
- this .sfvec3Values (field);
42573
+ this .sfvecValues (field);
42605
42574
 
42606
42575
  if (Grammar .CloseBracket .parse (this))
42607
42576
  return true;
@@ -42611,20 +42580,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42611
42580
 
42612
42581
  return false;
42613
42582
  },
42614
- sfvec3Values (field)
42615
- {
42616
- field .length = 0;
42617
-
42618
- const
42619
- target = field .getTarget (),
42620
- value = this .Vector3,
42621
- unit = target .getUnit ();
42622
-
42623
- while (this .sfvec3Value (value, unit))
42624
- target .push (value);
42625
-
42626
- return field .length !== 0;
42627
- },
42628
42583
  sfvec4Value (field, unit)
42629
42584
  {
42630
42585
  if (this .double ())
@@ -42668,7 +42623,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42668
42623
 
42669
42624
  if (Grammar .OpenBracket .parse (this))
42670
42625
  {
42671
- this .sfvec4Values (field);
42626
+ this .sfvecValues (field);
42672
42627
 
42673
42628
  if (Grammar .CloseBracket .parse (this))
42674
42629
  return true;
@@ -42678,20 +42633,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42678
42633
 
42679
42634
  return false;
42680
42635
  },
42681
- sfvec4Values (field)
42682
- {
42683
- field .length = 0;
42684
-
42685
- const
42686
- target = field .getTarget (),
42687
- value = this .Vector4,
42688
- unit = target .getUnit ();
42689
-
42690
- while (this .sfvec4Value (value, unit))
42691
- target .push (value);
42692
-
42693
- return field .length !== 0;
42694
- },
42695
42636
  unknownValue ()
42696
42637
  {
42697
42638
  try
@@ -42836,7 +42777,7 @@ const VRMLParser_default_ = VRMLParser;
42836
42777
 
42837
42778
  /* harmony default export */ const Parser_VRMLParser = (x_ite_Namespace .add ("VRMLParser", VRMLParser_default_));
42838
42779
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
42839
- /* provided dependency */ var XMLParser_$ = __webpack_require__(386);
42780
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(91);
42840
42781
  /*******************************************************************************
42841
42782
  *
42842
42783
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -43968,25 +43909,25 @@ Object .assign (XMLParser .prototype,
43968
43909
 
43969
43910
  [Base_X3DConstants .MFBool]: Parser_VRMLParser .prototype .sfboolValues,
43970
43911
  [Base_X3DConstants .MFColor]: Parser_VRMLParser .prototype .sfcolorValues,
43971
- [Base_X3DConstants .MFColorRGBA]: Parser_VRMLParser .prototype .sfcolorrgbaValues,
43912
+ [Base_X3DConstants .MFColorRGBA]: Parser_VRMLParser .prototype .sfcolorValues,
43972
43913
  [Base_X3DConstants .MFDouble]: Parser_VRMLParser .prototype .sfdoubleValues,
43973
43914
  [Base_X3DConstants .MFFloat]: Parser_VRMLParser .prototype .sfdoubleValues,
43974
43915
  [Base_X3DConstants .MFImage]: Parser_VRMLParser .prototype .sfimageValues,
43975
43916
  [Base_X3DConstants .MFInt32]: Parser_VRMLParser .prototype .sfint32Values,
43976
- [Base_X3DConstants .MFMatrix3d]: Parser_VRMLParser .prototype .sfmatrix3Values,
43977
- [Base_X3DConstants .MFMatrix3f]: Parser_VRMLParser .prototype .sfmatrix3Values,
43978
- [Base_X3DConstants .MFMatrix4d]: Parser_VRMLParser .prototype .sfmatrix4Values,
43979
- [Base_X3DConstants .MFMatrix4f]: Parser_VRMLParser .prototype .sfmatrix4Values,
43917
+ [Base_X3DConstants .MFMatrix3d]: Parser_VRMLParser .prototype .sfmatrixValues,
43918
+ [Base_X3DConstants .MFMatrix3f]: Parser_VRMLParser .prototype .sfmatrixValues,
43919
+ [Base_X3DConstants .MFMatrix4d]: Parser_VRMLParser .prototype .sfmatrixValues,
43920
+ [Base_X3DConstants .MFMatrix4f]: Parser_VRMLParser .prototype .sfmatrixValues,
43980
43921
  [Base_X3DConstants .MFNode] (field) { field .length = 0; },
43981
43922
  [Base_X3DConstants .MFRotation]: Parser_VRMLParser .prototype .sfrotationValues,
43982
43923
  [Base_X3DConstants .MFString]: Parser_VRMLParser .prototype .sfstringValues,
43983
43924
  [Base_X3DConstants .MFTime]: Parser_VRMLParser .prototype .sfdoubleValues,
43984
- [Base_X3DConstants .MFVec2d]: Parser_VRMLParser .prototype .sfvec2Values,
43985
- [Base_X3DConstants .MFVec2f]: Parser_VRMLParser .prototype .sfvec2Values,
43986
- [Base_X3DConstants .MFVec3d]: Parser_VRMLParser .prototype .sfvec3Values,
43987
- [Base_X3DConstants .MFVec3f]: Parser_VRMLParser .prototype .sfvec3Values,
43988
- [Base_X3DConstants .MFVec4d]: Parser_VRMLParser .prototype .sfvec4Values,
43989
- [Base_X3DConstants .MFVec4f]: Parser_VRMLParser .prototype .sfvec4Values,
43925
+ [Base_X3DConstants .MFVec2d]: Parser_VRMLParser .prototype .sfvecValues,
43926
+ [Base_X3DConstants .MFVec2f]: Parser_VRMLParser .prototype .sfvecValues,
43927
+ [Base_X3DConstants .MFVec3d]: Parser_VRMLParser .prototype .sfvecValues,
43928
+ [Base_X3DConstants .MFVec3f]: Parser_VRMLParser .prototype .sfvecValues,
43929
+ [Base_X3DConstants .MFVec4d]: Parser_VRMLParser .prototype .sfvecValues,
43930
+ [Base_X3DConstants .MFVec4f]: Parser_VRMLParser .prototype .sfvecValues,
43990
43931
  });
43991
43932
 
43992
43933
  // HTML Support
@@ -44198,14 +44139,13 @@ Object .assign (Object .setPrototypeOf (JSONParser .prototype, Parser_X3DParser
44198
44139
 
44199
44140
  for (const key in object)
44200
44141
  {
44201
- if (typeof object [key] === "object")
44202
- {
44203
- if (isNaN (parseInt (key)))
44204
- this .convertObject (key, object, element, parentkey .substring (1));
44142
+ if (typeof object [key] !== "object")
44143
+ continue;
44205
44144
 
44206
- else
44207
- this .convertToDOM (object[ key], key, element, parentkey .substring (1));
44208
- }
44145
+ if (isNaN (parseInt (key)))
44146
+ this .convertObject (key, object, element, parentkey .substring (1));
44147
+ else
44148
+ this .convertToDOM (object [key], key, element, parentkey .substring (1));
44209
44149
  }
44210
44150
  },
44211
44151
  createElement (key, containerField)
@@ -44327,7 +44267,7 @@ Object .assign (Object .setPrototypeOf (JSONParser .prototype, Parser_X3DParser
44327
44267
 
44328
44268
  return str;
44329
44269
  },
44330
- convertToDOM(object, parentkey, element, containerField)
44270
+ convertToDOM (object, parentkey, element, containerField)
44331
44271
  {
44332
44272
  /**
44333
44273
  * main routine for converting a JavaScript object to DOM.
@@ -44337,6 +44277,12 @@ Object .assign (Object .setPrototypeOf (JSONParser .prototype, Parser_X3DParser
44337
44277
  * containerField is a possible containerField.
44338
44278
  */
44339
44279
 
44280
+ if (object === null)
44281
+ {
44282
+ this .elementSetAttribute (element, "value", null);
44283
+ return element;
44284
+ }
44285
+
44340
44286
  let
44341
44287
  isArray = false,
44342
44288
  localArray = [ ],
@@ -45009,7 +44955,7 @@ const URLs_default_ = URLs;
45009
44955
 
45010
44956
  /* harmony default export */ const Networking_URLs = (x_ite_Namespace .add ("URLs", URLs_default_));
45011
44957
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
45012
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(386);
44958
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(91);
45013
44959
  /*******************************************************************************
45014
44960
  *
45015
44961
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -45269,7 +45215,14 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
45269
45215
  worldInfoNode ._info .sort ();
45270
45216
 
45271
45217
  if (!worldInfoNode ._title .getValue ())
45272
- worldInfoNode ._title = decodeURI (new URL (worldURL) .pathname .split ("/") .at (-1) || worldURL);
45218
+ {
45219
+ const url = new URL (worldURL);
45220
+
45221
+ if (url .protocol === "data:")
45222
+ worldInfoNode ._title = "glTF Model";
45223
+ else
45224
+ worldInfoNode ._title = decodeURIComponent (url .pathname .split ("/") .at (-1) || worldURL);
45225
+ }
45273
45226
 
45274
45227
  worldInfoNode .setup ();
45275
45228
 
@@ -48653,7 +48606,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
48653
48606
 
48654
48607
  /* harmony default export */ const Parser_GLTF2Parser = (x_ite_Namespace .add ("GLTF2Parser", GLTF2Parser_default_));
48655
48608
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
48656
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(386);
48609
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(91);
48657
48610
  /*******************************************************************************
48658
48611
  *
48659
48612
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -48804,7 +48757,7 @@ const GLB2Parser_default_ = GLB2Parser;
48804
48757
 
48805
48758
  /* harmony default export */ const Parser_GLB2Parser = (x_ite_Namespace .add ("GLB2Parser", GLB2Parser_default_));
48806
48759
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
48807
- /* provided dependency */ var OBJParser_$ = __webpack_require__(386);
48760
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(91);
48808
48761
  /*******************************************************************************
48809
48762
  *
48810
48763
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -50676,9 +50629,10 @@ Object .assign (Object .setPrototypeOf (PLYAParser .prototype, Parser_X3DParser
50676
50629
 
50677
50630
  const
50678
50631
  scene = this .getScene (),
50679
- worldInfo = scene .createNode ("WorldInfo");
50632
+ worldInfo = scene .createNode ("WorldInfo"),
50633
+ url = new URL (scene .worldURL);
50680
50634
 
50681
- worldInfo .title = new URL (scene .worldURL) .pathname .split ('/') .at (-1);
50635
+ worldInfo .title = url .protocol === "data:" ? "PLY Model" : url .pathname .split ('/') .at (-1);
50682
50636
  worldInfo .info = this .comments;
50683
50637
 
50684
50638
  scene .rootNodes .push (worldInfo);
@@ -52146,8 +52100,8 @@ const MatrixStack_default_ = MatrixStack;
52146
52100
 
52147
52101
  /* harmony default export */ const Utility_MatrixStack = (x_ite_Namespace .add ("MatrixStack", MatrixStack_default_));
52148
52102
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
52149
- /* provided dependency */ var SVGParser_$ = __webpack_require__(386);
52150
- /* provided dependency */ var SVGParser_libtess = __webpack_require__(475);
52103
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(91);
52104
+ /* provided dependency */ var SVGParser_libtess = __webpack_require__(744);
52151
52105
  /*******************************************************************************
52152
52106
  *
52153
52107
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -54917,7 +54871,7 @@ const SVGParser_default_ = SVGParser;
54917
54871
 
54918
54872
  /* harmony default export */ const Parser_SVGParser = (x_ite_Namespace .add ("SVGParser", SVGParser_default_));
54919
54873
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
54920
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(386);
54874
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(91);
54921
54875
  /*******************************************************************************
54922
54876
  *
54923
54877
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -60179,6 +60133,7 @@ const Shading_default_ = Shading;
60179
60133
 
60180
60134
 
60181
60135
 
60136
+
60182
60137
  // Box normals for bbox / line intersection.
60183
60138
  const boxNormals = [
60184
60139
  new Numbers_Vector3 (0, 0, 1), // front
@@ -60565,7 +60520,8 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
60565
60520
  }
60566
60521
  catch (error)
60567
60522
  {
60568
- console .error (error);
60523
+ if (DEVELOPMENT)
60524
+ console .error (error);
60569
60525
  }
60570
60526
  },
60571
60527
  refineNormals (normalIndex, normals, creaseAngle)
@@ -62926,7 +62882,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
62926
62882
 
62927
62883
  /* harmony default export */ const Texturing_X3DTexture2DNode = (x_ite_Namespace .add ("X3DTexture2DNode", X3DTexture2DNode_default_));
62928
62884
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
62929
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(386);
62885
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(91);
62930
62886
  /*******************************************************************************
62931
62887
  *
62932
62888
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66310,7 +66266,7 @@ const X3DWorld_default_ = X3DWorld;
66310
66266
 
66311
66267
  /* harmony default export */ const Execution_X3DWorld = (x_ite_Namespace .add ("X3DWorld", X3DWorld_default_));
66312
66268
  ;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
66313
- /* provided dependency */ var FileLoader_$ = __webpack_require__(386);
66269
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(91);
66314
66270
  /*******************************************************************************
66315
66271
  *
66316
66272
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66364,6 +66320,7 @@ const X3DWorld_default_ = X3DWorld;
66364
66320
 
66365
66321
 
66366
66322
 
66323
+
66367
66324
  const foreignMimeType = new Set ([
66368
66325
  "text/html",
66369
66326
  "application/xhtml+xml",
@@ -66445,34 +66402,36 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
66445
66402
  },
66446
66403
  setScene (scene, resolve, reject)
66447
66404
  {
66448
- scene ._initLoadCount .addInterest ("set_initLoadCount__", this, scene, resolve, reject);
66449
- scene ._initLoadCount .addEvent ();
66405
+ scene ._loadCount .addInterest ("set_loadCount__", this, scene, resolve, reject);
66406
+ scene ._loadCount .addEvent ();
66450
66407
  },
66451
- set_initLoadCount__ (scene, resolve, reject, field)
66408
+ async set_loadCount__ (scene, resolve, reject, field)
66452
66409
  {
66453
66410
  // Wait for extern protos to be loaded.
66454
66411
 
66455
- if (field .getValue ())
66456
- return;
66412
+ for (const externproto of scene .externprotos)
66413
+ {
66414
+ if (externproto .checkLoadState () === Base_X3DConstants .IN_PROGRESS_STATE)
66415
+ return;
66416
+ }
66457
66417
 
66458
- scene ._initLoadCount .removeInterest ("set_initLoadCount__", this);
66418
+ scene ._loadCount .removeInterest ("set_loadCount__", this);
66459
66419
 
66460
66420
  // Wait for instances to be created.
66461
66421
 
66462
- setTimeout (() =>
66422
+ await this .browser .nextFrame ();
66423
+
66424
+ try
66463
66425
  {
66464
- try
66465
- {
66466
- resolve (scene);
66467
- }
66468
- catch (error)
66469
- {
66470
- if (reject)
66471
- reject (error);
66472
- else
66473
- throw error;
66474
- }
66475
- });
66426
+ resolve (scene);
66427
+ }
66428
+ catch (error)
66429
+ {
66430
+ if (reject)
66431
+ reject (error);
66432
+ else
66433
+ throw error;
66434
+ }
66476
66435
 
66477
66436
  if (DEVELOPMENT)
66478
66437
  {
@@ -66497,13 +66456,13 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
66497
66456
  },
66498
66457
  loadDocument (url, callback)
66499
66458
  {
66500
- this .url = url .copy ();
66459
+ this .url = url .slice ();
66501
66460
  this .callback = callback;
66502
66461
 
66503
66462
  if (url .length === 0)
66504
66463
  return this .loadDocumentError (new Error ("No URL given."));
66505
66464
 
66506
- this .loadDocumentAsync (this .url .shift ())
66465
+ this .loadDocumentAsync (String (this .url .shift ()))
66507
66466
  .catch (this .loadDocumentError .bind (this));
66508
66467
  },
66509
66468
  async loadDocumentAsync (url)
@@ -66607,7 +66566,7 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
66607
66566
 
66608
66567
  if (this .url .length)
66609
66568
  {
66610
- this .loadDocumentAsync (this .url .shift ())
66569
+ this .loadDocumentAsync (String (this .url .shift ()))
66611
66570
  .catch (this .loadDocumentError .bind (this));
66612
66571
  }
66613
66572
  else
@@ -66689,7 +66648,8 @@ const FileLoader_default_ = FileLoader;
66689
66648
 
66690
66649
  const
66691
66650
  _proto = Symbol (),
66692
- _scene = Symbol ();
66651
+ _scene = Symbol (),
66652
+ X3DExternProtoDeclaration_cache = Symbol ();
66693
66653
 
66694
66654
  function X3DExternProtoDeclaration (executionContext, url)
66695
66655
  {
@@ -66702,6 +66662,8 @@ function X3DExternProtoDeclaration (executionContext, url)
66702
66662
  Base_X3DConstants .inputOutput, "url", url .copy (), // Must be of type MFString.
66703
66663
  Base_X3DConstants .inputOutput, "autoRefresh", new x_ite_Fields .SFTime (),
66704
66664
  Base_X3DConstants .inputOutput, "autoRefreshTimeLimit", new x_ite_Fields .SFTime (3600));
66665
+
66666
+ this .getBrowser () [X3DExternProtoDeclaration_cache] ??= new Map ();
66705
66667
  }
66706
66668
 
66707
66669
  Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Prototype_X3DProtoDeclarationNode .prototype),
@@ -66712,12 +66674,6 @@ Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Pr
66712
66674
  Prototype_X3DProtoDeclarationNode .prototype .initialize .call (this);
66713
66675
  Networking_X3DUrlObject .prototype .initialize .call (this);
66714
66676
  },
66715
- set_live__ ()
66716
- {
66717
- Networking_X3DUrlObject .prototype .set_live__ .call (this);
66718
-
66719
- this [_scene] ?.setLive (this .getLive () .getValue ());
66720
- },
66721
66677
  canUserDefinedFields ()
66722
66678
  {
66723
66679
  return true;
@@ -66738,55 +66694,89 @@ Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Pr
66738
66694
  {
66739
66695
  return this [_proto];
66740
66696
  },
66741
- loadData ()
66697
+ async loadData ()
66742
66698
  {
66743
- // 7.73 ExternProtoDeclaration function
66699
+ const browser = this .getBrowser ();
66744
66700
 
66745
- this .getScene () .addInitLoadCount (this);
66701
+ if (!this ._url .length)
66702
+ {
66703
+ this .setError (new Error ("No URL given."));
66704
+ return;
66705
+ }
66746
66706
 
66747
- new InputOutput_FileLoader (this) .createX3DFromURL (this ._url, null, this .setInternalSceneAsync .bind (this));
66707
+ for (const url of this ._url)
66708
+ {
66709
+ try
66710
+ {
66711
+ const
66712
+ resolvedURL = new URL (url, this .getExecutionContext () .getBaseURL ()),
66713
+ cacheURL = new URL (resolvedURL),
66714
+ cache = browser .getBrowserOption ("Cache");
66715
+
66716
+ cacheURL .hash = "";
66717
+
66718
+ const cachePromise = cache
66719
+ ? browser [X3DExternProtoDeclaration_cache] .get (cacheURL .href)
66720
+ : null;
66721
+
66722
+ const promise = cachePromise ?? new Promise (resolve =>
66723
+ {
66724
+ new InputOutput_FileLoader (this) .createX3DFromURL ([cacheURL], null, resolve);
66725
+ });
66726
+
66727
+ if (cache && !cachePromise)
66728
+ browser [X3DExternProtoDeclaration_cache] .set (cacheURL .href, promise);
66729
+
66730
+ const scene = await promise;
66731
+
66732
+ if (!scene)
66733
+ continue;
66734
+
66735
+ this .setInternalScene (scene, resolvedURL, cache);
66736
+ return;
66737
+ }
66738
+ catch (error)
66739
+ {
66740
+ console .warn (error .message);
66741
+ }
66742
+ }
66743
+
66744
+ this .setError (new Error ("File could not be loaded."));
66748
66745
  },
66749
- setInternalSceneAsync (value)
66746
+ getInternalScene ()
66750
66747
  {
66751
- if (value)
66752
- this .setInternalScene (value);
66753
-
66754
- else
66755
- this .setError (new Error ("File could not be loaded."));
66748
+ /// Returns the internal X3DScene of this extern proto, that is loaded from the url given.
66756
66749
 
66757
- this .getScene () .removeInitLoadCount (this);
66750
+ return this [_scene];
66758
66751
  },
66759
- setInternalScene (value)
66752
+ setInternalScene (scene, url, cache)
66760
66753
  {
66761
- if (this [_scene] !== this .getBrowser () .getPrivateScene ())
66754
+ const browser = this .getBrowser ();
66755
+
66756
+ if (this [_scene] !== browser .getDefaultScene () && !this [X3DExternProtoDeclaration_cache])
66762
66757
  this [_scene] ?.dispose ();
66763
66758
 
66764
- this [_scene] = value;
66759
+ this [_scene] = scene;
66760
+ this [X3DExternProtoDeclaration_cache] = cache;
66765
66761
 
66766
66762
  const
66767
- protoName = decodeURIComponent (new URL (this [_scene] .getWorldURL ()) .hash .substring (1)),
66763
+ protoName = decodeURIComponent (url .hash .substring (1)),
66768
66764
  proto = protoName ? this [_scene] .protos .get (protoName) : this [_scene] .protos [0];
66769
66765
 
66770
66766
  if (!proto)
66771
66767
  throw new Error ("PROTO not found");
66772
66768
 
66773
- this [_scene] .setExecutionContext (this .getExecutionContext ());
66774
- this [_scene] .setLive (this .getLive () .getValue ());
66769
+ this [_scene] .setExecutionContext (this [X3DExternProtoDeclaration_cache] ? browser .getDefaultScene () : this .getExecutionContext ());
66770
+ this [_scene] .setLive (true);
66775
66771
 
66776
66772
  this .setLoadState (Base_X3DConstants .COMPLETE_STATE);
66777
66773
  this .setProtoDeclaration (proto);
66778
66774
  },
66779
- getInternalScene ()
66780
- {
66781
- /// Returns the internal X3DScene of this extern proto, that is loaded from the url given.
66782
-
66783
- return this [_scene];
66784
- },
66785
66775
  setError (error)
66786
66776
  {
66787
66777
  console .error (`Error loading extern prototype '${this .getName ()}':`, error);
66788
66778
 
66789
- this [_scene] = this .getBrowser () .getPrivateScene ();
66779
+ this [_scene] = this .getBrowser () .getDefaultScene ();
66790
66780
 
66791
66781
  this .setLoadState (Base_X3DConstants .FAILED_STATE);
66792
66782
  this .setProtoDeclaration (null);
@@ -67240,7 +67230,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
67240
67230
 
67241
67231
  /* harmony default export */ const Prototype_ProtoDeclarationArray = (x_ite_Namespace .add ("ProtoDeclarationArray", ProtoDeclarationArray_default_));
67242
67232
  ;// CONCATENATED MODULE: ./src/x_ite/Routing/X3DRoute.js
67243
- /* provided dependency */ var X3DRoute_$ = __webpack_require__(386);
67233
+ /* provided dependency */ var X3DRoute_$ = __webpack_require__(91);
67244
67234
  /*******************************************************************************
67245
67235
  *
67246
67236
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -68872,6 +68862,31 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68872
68862
 
68873
68863
  this .realize ();
68874
68864
  },
68865
+ realize ()
68866
+ {
68867
+ const
68868
+ protoNode = this [_protoNode],
68869
+ proto = protoNode .getProtoDeclaration ();
68870
+
68871
+ if (protoNode .isExternProto && protoNode .checkLoadState () !== Base_X3DConstants .COMPLETE_STATE)
68872
+ return;
68873
+
68874
+ // Create execution context.
68875
+
68876
+ this [X3DPrototypeInstance_body] = new Execution_X3DExecutionContext (proto .getExecutionContext (), this);
68877
+
68878
+ // Copy proto.
68879
+
68880
+ this .importExternProtos (proto .getBody () .externprotos);
68881
+ this .importProtos (proto .getBody () .protos);
68882
+ this .copyRootNodes (proto .getBody () .rootNodes);
68883
+ this .importImportedNodes (proto .getBody () .importedNodes);
68884
+ this .copyRoutes (proto .getBody () .routes);
68885
+
68886
+ this [X3DPrototypeInstance_body] .setup ();
68887
+
68888
+ Base_X3DChildObject .prototype .addEvent .call (this);
68889
+ },
68875
68890
  construct ()
68876
68891
  {
68877
68892
  const
@@ -68946,31 +68961,6 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68946
68961
  protoNode ._updateInstances .removeInterest ("construct", this);
68947
68962
  protoNode ._updateInstances .addInterest ("update", this);
68948
68963
  },
68949
- realize ()
68950
- {
68951
- const
68952
- protoNode = this [_protoNode],
68953
- proto = protoNode .getProtoDeclaration ();
68954
-
68955
- if (protoNode .isExternProto && protoNode .checkLoadState () !== Base_X3DConstants .COMPLETE_STATE)
68956
- return;
68957
-
68958
- // Create execution context.
68959
-
68960
- this [X3DPrototypeInstance_body] = new Execution_X3DExecutionContext (proto .getExecutionContext (), this);
68961
-
68962
- // Copy proto.
68963
-
68964
- this .importExternProtos (proto .getBody () .externprotos);
68965
- this .importProtos (proto .getBody () .protos);
68966
- this .copyRootNodes (proto .getBody () .rootNodes);
68967
- this .importImportedNodes (proto .getBody () .importedNodes);
68968
- this .copyRoutes (proto .getBody () .routes);
68969
-
68970
- this [X3DPrototypeInstance_body] .setup ();
68971
-
68972
- Base_X3DChildObject .prototype .addEvent .call (this);
68973
- },
68974
68964
  update ()
68975
68965
  {
68976
68966
  // Remove old fields.
@@ -69130,6 +69120,15 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
69130
69120
 
69131
69121
  throw new Error ("Root node not available.");
69132
69122
  },
69123
+ isDefaultValue (field)
69124
+ {
69125
+ const protoNode = this [_protoNode];
69126
+
69127
+ if (protoNode .isExternProto && protoNode .checkLoadState () !== Base_X3DConstants .COMPLETE_STATE)
69128
+ return field .getModificationTime () === 0;
69129
+
69130
+ return Core_X3DNode .prototype .isDefaultValue .call (this, field);
69131
+ },
69133
69132
  importExternProtos (externprotos1)
69134
69133
  {
69135
69134
  const externprotos2 = this [X3DPrototypeInstance_body] .externprotos;
@@ -69343,16 +69342,24 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
69343
69342
  }
69344
69343
  case Base_X3DConstants .SFNode:
69345
69344
  {
69346
- if (field .getValue () !== null)
69347
- {
69348
- generator .PushContainerField (null);
69345
+ generator .PushContainerField (null);
69349
69346
 
69350
- generator .string += generator .Indent ();
69351
- generator .string += "<fieldValue";
69347
+ generator .string += generator .Indent ();
69348
+ generator .string += "<fieldValue";
69349
+ generator .string += generator .Space ();
69350
+ generator .string += "name='";
69351
+ generator .string += generator .XMLEncode (field .getName ());
69352
+ generator .string += "'";
69353
+
69354
+ if (field .getValue () === null)
69355
+ {
69352
69356
  generator .string += generator .Space ();
69353
- generator .string += "name='";
69354
- generator .string += generator .XMLEncode (field .getName ());
69355
- generator .string += "'";
69357
+ generator .string += "value='null'";
69358
+ generator .string += generator .closingTags ? "></fieldValue>" : "/>";
69359
+ generator .string += generator .TidyBreak ();
69360
+ }
69361
+ else
69362
+ {
69356
69363
  generator .string += ">";
69357
69364
  generator .string += generator .TidyBreak ();
69358
69365
 
@@ -69367,12 +69374,10 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
69367
69374
  generator .string += generator .Indent ();
69368
69375
  generator .string += "</fieldValue>";
69369
69376
  generator .string += generator .TidyBreak ();
69370
-
69371
- generator .PopContainerField ();
69372
- break;
69373
69377
  }
69374
69378
 
69375
- // Proceed with next case.
69379
+ generator .PopContainerField ();
69380
+ break;
69376
69381
  }
69377
69382
  default:
69378
69383
  {
@@ -76899,7 +76904,10 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
76899
76904
  attribBuffers = this .getAttribBuffers ();
76900
76905
 
76901
76906
  if (!renderContext .transparent)
76907
+ {
76902
76908
  gl .enable (gl .SAMPLE_ALPHA_TO_COVERAGE);
76909
+ gl .enable (gl .BLEND);
76910
+ }
76903
76911
 
76904
76912
  for (const node of renderModeNodes)
76905
76913
  node .enable (gl);
@@ -76939,7 +76947,11 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
76939
76947
  for (const node of renderModeNodes)
76940
76948
  node .disable (gl);
76941
76949
 
76942
- gl .disable (gl .SAMPLE_ALPHA_TO_COVERAGE);
76950
+ if (!renderContext .transparent)
76951
+ {
76952
+ gl .disable (gl .SAMPLE_ALPHA_TO_COVERAGE);
76953
+ gl .disable (gl .BLEND);
76954
+ }
76943
76955
  },
76944
76956
  displayInstanced (gl, renderContext, shapeNode)
76945
76957
  {
@@ -76951,7 +76963,10 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
76951
76963
  attribBuffers = this .getAttribBuffers ();
76952
76964
 
76953
76965
  if (!renderContext .transparent)
76966
+ {
76954
76967
  gl .enable (gl .SAMPLE_ALPHA_TO_COVERAGE);
76968
+ gl .enable (gl .BLEND);
76969
+ }
76955
76970
 
76956
76971
  for (const node of renderModeNodes)
76957
76972
  node .enable (gl);
@@ -77010,7 +77025,11 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
77010
77025
  for (const node of renderModeNodes)
77011
77026
  node .disable (gl);
77012
77027
 
77013
- gl .disable (gl .SAMPLE_ALPHA_TO_COVERAGE);
77028
+ if (!renderContext .transparent)
77029
+ {
77030
+ gl .disable (gl .SAMPLE_ALPHA_TO_COVERAGE);
77031
+ gl .disable (gl .BLEND);
77032
+ }
77014
77033
  },
77015
77034
  });
77016
77035
 
@@ -80103,13 +80122,16 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
80103
80122
  },
80104
80123
  traverse (type, renderObject)
80105
80124
  {
80106
- this .visibleNodes ??= this .createStaticShapes (renderObject);
80125
+ if (!this .visibleNodes)
80126
+ this .createStaticShapes (renderObject);
80107
80127
 
80108
80128
  for (const visibleNode of this .visibleNodes)
80109
80129
  visibleNode .traverse (type, renderObject);
80110
80130
  },
80111
80131
  createStaticShapes (renderObject)
80112
80132
  {
80133
+ this .visibleNodes = [this .groupNode];
80134
+
80113
80135
  // Check if scene is currently loading something.
80114
80136
 
80115
80137
  const scene = this .getScene ();
@@ -80132,14 +80154,13 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
80132
80154
 
80133
80155
  this .optimizeGroups (this .createGroups (renderObject));
80134
80156
  }
80135
-
80136
- return [this .groupNode];
80137
80157
  },
80138
80158
  createGroups: (() =>
80139
80159
  {
80140
- const Statics = ["Opaque", "Transparent"];
80141
-
80142
- const viewVolume = new Geometry_ViewVolume ();
80160
+ const
80161
+ Statics = ["Opaque", "Transparent"],
80162
+ viewVolume = new Geometry_ViewVolume (),
80163
+ style = { style: "CLEAN" };
80143
80164
 
80144
80165
  viewVolume .intersectsSphere = () => true;
80145
80166
 
@@ -80201,6 +80222,9 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
80201
80222
  appearanceNode = shapeNode .getAppearance (),
80202
80223
  geometryNode = shapeNode .getGeometry ();
80203
80224
 
80225
+ if (!geometryNode .getVertices () .length)
80226
+ continue;
80227
+
80204
80228
  if (shapeNode .getShapeKey () > 0 || this .hasTextureCoordinateGenerator (geometryNode))
80205
80229
  {
80206
80230
  const group = singlesIndex [renderContext .modelViewMatrix] ??= [ ];
@@ -80211,8 +80235,6 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
80211
80235
 
80212
80236
  let key = "";
80213
80237
 
80214
- key += appearanceNode .getId ();
80215
- key += ".";
80216
80238
  key += geometryNode .getGeometryType ();
80217
80239
  key += geometryNode .isSolid () ? 1 : 0;
80218
80240
  key += geometryNode .getFogDepths () .length ? 1 : 0;
@@ -80220,6 +80242,8 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
80220
80242
  key += shapeNode ._pointerEvents .getValue () ? 1 : 0;
80221
80243
  key += shapeNode ._castShadow .getValue () ? 1 : 0;
80222
80244
  key += shapeNode ._bboxDisplay .getValue () ? 1 : 0;
80245
+ key += ".";
80246
+ key += appearanceNode .toVRMLString (style);
80223
80247
 
80224
80248
  const
80225
80249
  clones = clonesIndex .get (shapeNode),
@@ -86835,12 +86859,6 @@ Object .assign (Object .setPrototypeOf (Inline .prototype, Core_X3DChildNode .pr
86835
86859
 
86836
86860
  return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
86837
86861
  },
86838
- set_live__ ()
86839
- {
86840
- Networking_X3DUrlObject .prototype .set_live__ .call (this);
86841
-
86842
- this .scene .setLive (this .getLive () .getValue ());
86843
- },
86844
86862
  unloadData ()
86845
86863
  {
86846
86864
  this .abortLoading ();
@@ -86893,7 +86911,7 @@ Object .assign (Object .setPrototypeOf (Inline .prototype, Core_X3DChildNode .pr
86893
86911
  if (this .scene !== this .getBrowser () .getDefaultScene ())
86894
86912
  {
86895
86913
  this .scene .setExecutionContext (this .getExecutionContext ());
86896
- this .scene .setLive (this .getLive () .getValue ());
86914
+ this .scene .setLive (true);
86897
86915
  this .scene .rootNodes .addFieldInterest (this .groupNode ._children);
86898
86916
  this .groupNode ._children = this .scene .rootNodes;
86899
86917
  }
@@ -90519,7 +90537,7 @@ mediump samplerCube textureCube;
90519
90537
 
90520
90538
  /* harmony default export */ const MaterialTextures = (x_ite_Namespace .add ("MaterialTextures", MaterialTextures_default_));
90521
90539
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
90522
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(386);
90540
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(91);
90523
90541
  /*******************************************************************************
90524
90542
  *
90525
90543
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -92159,7 +92177,7 @@ Object .assign (Object .setPrototypeOf (ComposedShader .prototype, Shaders_X3DSh
92159
92177
 
92160
92178
  if (this ._parts .length)
92161
92179
  {
92162
- console .warn ("Couldn't initialize " + this .getTypeName () + " '" + this .getName () + "': " + gl .getProgramInfoLog (program));
92180
+ console .warn (`Couldn't initialize ${this .getTypeName ()} '${this .getName ()}': ${gl .getProgramInfoLog (program)}`);
92163
92181
  }
92164
92182
  }
92165
92183
  }
@@ -94735,13 +94753,13 @@ vec3 finalColor=vec3(0.0);
94735
94753
  #endif
94736
94754
  finalColor+=material.emissiveColor;return vec4(finalColor,diffuseColor.a);}void main(){vertex_main();
94737
94755
  #if defined(X3D_LIGHTING)
94738
- normal=normalize(normal);
94756
+ vec3 n=normalize(normal);
94739
94757
  #else
94740
- vec3 normal=vec3(0.0);
94758
+ vec3 n=vec3(0.0);
94741
94759
  #endif
94742
- frontColor=getMaterialColor(normal,vertex,x3d_Material);
94760
+ frontColor=getMaterialColor(n,vertex,x3d_Material);
94743
94761
  #if!defined(X3D_GEOMETRY_0D)&&!defined(X3D_GEOMETRY_1D)
94744
- backColor=getMaterialColor(-normal,vertex,x3d_Material);
94762
+ backColor=getMaterialColor(-n,vertex,x3d_Material);
94745
94763
  #endif
94746
94764
  }`
94747
94765
  ;
@@ -95777,7 +95795,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
95777
95795
 
95778
95796
  /* harmony default export */ const Shaders_ShaderCompiler = (x_ite_Namespace .add ("ShaderCompiler", ShaderCompiler_default_));
95779
95797
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
95780
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(386);
95798
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(91);
95781
95799
  /*******************************************************************************
95782
95800
  *
95783
95801
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -96375,7 +96393,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
96375
96393
 
96376
96394
  /* harmony default export */ const Shape_X3DAppearanceNode = (x_ite_Namespace .add ("X3DAppearanceNode", X3DAppearanceNode_default_));
96377
96395
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
96378
- /* provided dependency */ var Appearance_$ = __webpack_require__(386);
96396
+ /* provided dependency */ var Appearance_$ = __webpack_require__(91);
96379
96397
  /*******************************************************************************
96380
96398
  *
96381
96399
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -104610,8 +104628,8 @@ const GifMedia_default_ = GifMedia;
104610
104628
 
104611
104629
  /* harmony default export */ const Texturing_GifMedia = (x_ite_Namespace .add ("GifMedia", GifMedia_default_));
104612
104630
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
104613
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(386);
104614
- /* provided dependency */ var SuperGif = __webpack_require__(141);
104631
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(91);
104632
+ /* provided dependency */ var SuperGif = __webpack_require__(396);
104615
104633
  /*******************************************************************************
104616
104634
  *
104617
104635
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107079,7 +107097,7 @@ const gettext_default_ = (string) => locale .get (string) || string;
107079
107097
 
107080
107098
  /* harmony default export */ const gettext = (x_ite_Namespace .add ("gettext", gettext_default_));
107081
107099
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
107082
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(386);
107100
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(91);
107083
107101
  /*******************************************************************************
107084
107102
  *
107085
107103
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107709,7 +107727,7 @@ const TextCompression_default_ = TextCompression;
107709
107727
 
107710
107728
  /* harmony default export */ const Core_TextCompression = (x_ite_Namespace .add ("TextCompression", TextCompression_default_));
107711
107729
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
107712
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(386);
107730
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(91);
107713
107731
  /*******************************************************************************
107714
107732
  *
107715
107733
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -108356,7 +108374,7 @@ const RenderingProperties_default_ = RenderingProperties;
108356
108374
 
108357
108375
  /* harmony default export */ const Core_RenderingProperties = (x_ite_Namespace .add ("RenderingProperties", RenderingProperties_default_));
108358
108376
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
108359
- /* provided dependency */ var Notification_$ = __webpack_require__(386);
108377
+ /* provided dependency */ var Notification_$ = __webpack_require__(91);
108360
108378
  /*******************************************************************************
108361
108379
  *
108362
108380
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -108478,8 +108496,8 @@ const Notification_default_ = Notification;
108478
108496
 
108479
108497
  /* harmony default export */ const Core_Notification = (x_ite_Namespace .add ("Notification", Notification_default_));
108480
108498
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
108481
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(306);
108482
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(386);
108499
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(343);
108500
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(91);
108483
108501
  /*******************************************************************************
108484
108502
  *
108485
108503
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -110022,7 +110040,6 @@ function X3DScene (browser)
110022
110040
 
110023
110041
  this .addChildObjects (Base_X3DConstants .outputOnly, "profile_changed", new x_ite_Fields .SFTime (),
110024
110042
  Base_X3DConstants .outputOnly, "metadata_changed", new x_ite_Fields .SFTime (),
110025
- Base_X3DConstants .outputOnly, "initLoadCount", new x_ite_Fields .SFInt32 (),
110026
110043
  Base_X3DConstants .outputOnly, "loadCount", new x_ite_Fields .SFInt32 ())
110027
110044
 
110028
110045
  this [_specificationVersion] = LATEST_VERSION;
@@ -110950,14 +110967,6 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
110950
110967
  scene .addLoadingObject (object);
110951
110968
  }
110952
110969
  },
110953
- addInitLoadCount (node)
110954
- {
110955
- this ._initLoadCount = this ._initLoadCount .getValue () + 1;
110956
- },
110957
- removeInitLoadCount (node)
110958
- {
110959
- this ._initLoadCount = this ._initLoadCount .getValue () - 1;
110960
- },
110961
110970
  getLoadingObjects ()
110962
110971
  {
110963
110972
  return this [_loadingObjects];
@@ -111214,7 +111223,7 @@ const DataStorage_default_ = DataStorage;
111214
111223
 
111215
111224
  /* harmony default export */ const Utility_DataStorage = (x_ite_Namespace .add ("DataStorage", DataStorage_default_));
111216
111225
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
111217
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(386);
111226
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(91);
111218
111227
  /*******************************************************************************
111219
111228
  *
111220
111229
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -113825,8 +113834,8 @@ const X3DViewer_default_ = X3DViewer;
113825
113834
 
113826
113835
  /* harmony default export */ const Navigation_X3DViewer = (x_ite_Namespace .add ("X3DViewer", X3DViewer_default_));
113827
113836
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
113828
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(336);
113829
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(386);
113837
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(283);
113838
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(91);
113830
113839
  /*******************************************************************************
113831
113840
  *
113832
113841
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114741,8 +114750,8 @@ const ExamineViewer_default_ = ExamineViewer;
114741
114750
 
114742
114751
  /* harmony default export */ const Navigation_ExamineViewer = (x_ite_Namespace .add ("ExamineViewer", ExamineViewer_default_));
114743
114752
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
114744
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(336);
114745
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(386);
114753
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(283);
114754
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(91);
114746
114755
  /*******************************************************************************
114747
114756
  *
114748
114757
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115757,8 +115766,8 @@ const FlyViewer_default_ = FlyViewer;
115757
115766
 
115758
115767
  /* harmony default export */ const Navigation_FlyViewer = (x_ite_Namespace .add ("FlyViewer", FlyViewer_default_));
115759
115768
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
115760
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(336);
115761
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(386);
115769
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(283);
115770
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(91);
115762
115771
  /*******************************************************************************
115763
115772
  *
115764
115773
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116087,8 +116096,8 @@ const NoneViewer_default_ = NoneViewer;
116087
116096
 
116088
116097
  /* harmony default export */ const Navigation_NoneViewer = (x_ite_Namespace .add ("NoneViewer", NoneViewer_default_));
116089
116098
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
116090
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(336);
116091
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(386);
116099
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(283);
116100
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(91);
116092
116101
  /*******************************************************************************
116093
116102
  *
116094
116103
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -117233,8 +117242,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
117233
117242
 
117234
117243
  /* harmony default export */ const Picking_X3DPickingContext = (x_ite_Namespace .add ("X3DPickingContext", X3DPickingContext_default_));
117235
117244
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
117236
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(336);
117237
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(386);
117245
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(283);
117246
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(91);
117238
117247
  /*******************************************************************************
117239
117248
  *
117240
117249
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118681,7 +118690,7 @@ const Lock_default_ = Lock;
118681
118690
 
118682
118691
  /* harmony default export */ const Utility_Lock = (x_ite_Namespace .add ("Lock", Lock_default_));
118683
118692
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
118684
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(386);
118693
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(91);
118685
118694
  /*******************************************************************************
118686
118695
  *
118687
118696
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -119571,7 +119580,7 @@ Object .assign (X3DShadersContext .prototype,
119571
119580
  .set (gl .POINTS, gl .POINTS)
119572
119581
  .set (gl .LINES, gl .LINES)
119573
119582
  .set (gl .TRIANGLES, gl .TRIANGLES);
119574
-
119583
+
119575
119584
  break;
119576
119585
  }
119577
119586
  }
@@ -119590,7 +119599,7 @@ Object .assign (X3DShadersContext .prototype,
119590
119599
  version = gl .getVersion ();
119591
119600
 
119592
119601
  const vertexShader = new Shaders_ShaderPart (this .getPrivateScene ());
119593
- vertexShader ._url .push (encodeURI (vs .startsWith ("data:") ? vs : "data:x-shader/x-vertex," + Shaders_ShaderRegistry .vertex [version] [vs]));
119602
+ vertexShader ._url .push (encodeURI (vs .startsWith ("data:") ? vs : `data:x-shader/x-vertex,${Shaders_ShaderRegistry .vertex [version] [vs]}`));
119594
119603
  vertexShader .setPrivate (true);
119595
119604
  vertexShader .setName (`${name}VertexShader`);
119596
119605
  vertexShader .setOptions (options);
@@ -119598,7 +119607,7 @@ Object .assign (X3DShadersContext .prototype,
119598
119607
 
119599
119608
  const fragmentShader = new Shaders_ShaderPart (this .getPrivateScene ());
119600
119609
  fragmentShader ._type = "FRAGMENT";
119601
- fragmentShader ._url .push (encodeURI (fs .startsWith ("data:") ? fs : "data:x-shader/x-fragment," + Shaders_ShaderRegistry .fragment [version] [fs]));
119610
+ fragmentShader ._url .push (encodeURI (fs .startsWith ("data:") ? fs : `data:x-shader/x-fragment,${Shaders_ShaderRegistry .fragment [version] [fs]}`));
119602
119611
  fragmentShader .setPrivate (true);
119603
119612
  fragmentShader .setName (`${name}FragmentShader`);
119604
119613
  fragmentShader .setOptions (options);
@@ -120004,7 +120013,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
120004
120013
 
120005
120014
  /* harmony default export */ const Sound_X3DSoundContext = (x_ite_Namespace .add ("X3DSoundContext", X3DSoundContext_default_));
120006
120015
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
120007
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(386);
120016
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(91);
120008
120017
  const KTXDecoder_default_ = class KTXDecoder
120009
120018
  {
120010
120019
  constructor (gl, externalKtxlib, scriptDir)
@@ -121235,6 +121244,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowserContext .prototype, Base_X3DBa
121235
121244
  },
121236
121245
  setExecutionContext (executionContext)
121237
121246
  {
121247
+ this .getDefaultScene () .setExecutionContext (executionContext);
121248
+
121238
121249
  this [_world] = new Execution_X3DWorld (executionContext);
121239
121250
  this [_world] .setup ();
121240
121251
  },
@@ -121581,7 +121592,7 @@ const Components_default_ = Components;
121581
121592
 
121582
121593
  /* harmony default export */ const x_ite_Components = (x_ite_Namespace .add ("Components", Components_default_));
121583
121594
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
121584
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(386);
121595
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(91);
121585
121596
  /*******************************************************************************
121586
121597
  * MIT License
121587
121598
  *
@@ -122847,7 +122858,7 @@ const FieldTypes_default_ = new Configuration_FieldTypesArray (Object .values (x
122847
122858
 
122848
122859
  /* harmony default export */ const FieldTypes = (x_ite_Namespace .add ("FieldTypes", FieldTypes_default_));
122849
122860
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
122850
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(386);
122861
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(91);
122851
122862
  /*******************************************************************************
122852
122863
  *
122853
122864
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -123914,7 +123925,7 @@ const X3DBrowser_default_ = X3DBrowser;
123914
123925
 
123915
123926
  /* harmony default export */ const Browser_X3DBrowser = (x_ite_Namespace .add ("X3DBrowser", X3DBrowser_default_));
123916
123927
  ;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
123917
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(386);
123928
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(91);
123918
123929
  /*******************************************************************************
123919
123930
  *
123920
123931
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -124181,8 +124192,8 @@ const QuickSort_default_ = QuickSort;
124181
124192
 
124182
124193
  /* harmony default export */ const Algorithms_QuickSort = (x_ite_Namespace .add ("QuickSort", QuickSort_default_));
124183
124194
  ;// CONCATENATED MODULE: ./src/lib/jquery.js
124184
- /* provided dependency */ var jquery_$ = __webpack_require__(386);
124185
- /* provided dependency */ var pako = __webpack_require__(514);
124195
+ /* provided dependency */ var jquery_$ = __webpack_require__(91);
124196
+ /* provided dependency */ var pako = __webpack_require__(483);
124186
124197
  Object .assign (jquery_$,
124187
124198
  {
124188
124199
  decodeText (input)
@@ -124259,13 +124270,13 @@ const jquery_default_ = jquery_$;
124259
124270
 
124260
124271
  /* harmony default export */ const jquery = (x_ite_Namespace .add ("jquery", jquery_default_));
124261
124272
  ;// CONCATENATED MODULE: ./src/lib/libtess.js
124262
- /* provided dependency */ var libtess_libtess = __webpack_require__(475);
124273
+ /* provided dependency */ var libtess_libtess = __webpack_require__(744);
124263
124274
  const libtess_default_ = libtess_libtess;
124264
124275
  ;
124265
124276
 
124266
124277
  /* harmony default export */ const lib_libtess = (x_ite_Namespace .add ("libtess", libtess_default_));
124267
124278
  ;// CONCATENATED MODULE: ./src/x_ite/X3D.js
124268
- /* provided dependency */ var X3D_$ = __webpack_require__(386);
124279
+ /* provided dependency */ var X3D_$ = __webpack_require__(91);
124269
124280
  /*******************************************************************************
124270
124281
  *
124271
124282
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -124569,7 +124580,7 @@ x_ite_Namespace, x_ite_Namespace .Fields,
124569
124580
 
124570
124581
  // Assign X3D to global namespace.
124571
124582
 
124572
- window [Symbol .for ("X_ITE.X3D-10.5.0")] = x_ite_X3D;
124583
+ window [Symbol .for ("X_ITE.X3D-10.5.2")] = x_ite_X3D;
124573
124584
 
124574
124585
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
124575
124586