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.js CHANGED
@@ -1,4 +1,4 @@
1
- /* X_ITE v10.5.0 */
1
+ /* X_ITE v10.5.2 */
2
2
  (function webpackUniversalModuleDefinition(root, factory) {
3
3
  if(typeof exports === 'object' && typeof module === 'object')
4
4
  module.exports = factory();
@@ -12,10 +12,10 @@
12
12
  return /******/ (() => { // webpackBootstrap
13
13
  /******/ var __webpack_modules__ = ({
14
14
 
15
- /***/ 306:
15
+ /***/ 343:
16
16
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
17
17
 
18
- /* provided dependency */ var jQuery = __webpack_require__(386);
18
+ /* provided dependency */ var jQuery = __webpack_require__(91);
19
19
  /**
20
20
  * @preserve jquery.fullscreen 1.1.5
21
21
  * https://github.com/code-lts/jquery-fullscreen-plugin
@@ -211,7 +211,7 @@ installFullScreenHandlers();
211
211
 
212
212
  /***/ }),
213
213
 
214
- /***/ 336:
214
+ /***/ 283:
215
215
  /***/ ((module, exports, __webpack_require__) => {
216
216
 
217
217
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -225,7 +225,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
225
225
  (function (factory) {
226
226
  if ( true ) {
227
227
  // AMD. Register as an anonymous module.
228
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(386)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
228
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(91)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
229
229
  __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
230
230
  (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
231
231
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
@@ -436,7 +436,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
436
436
 
437
437
  /***/ }),
438
438
 
439
- /***/ 386:
439
+ /***/ 91:
440
440
  /***/ (function(module, exports) {
441
441
 
442
442
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -11160,7 +11160,7 @@ return jQuery;
11160
11160
 
11161
11161
  /***/ }),
11162
11162
 
11163
- /***/ 475:
11163
+ /***/ 744:
11164
11164
  /***/ ((module) => {
11165
11165
 
11166
11166
  /**
@@ -15939,7 +15939,7 @@ if (true) {
15939
15939
 
15940
15940
  /***/ }),
15941
15941
 
15942
- /***/ 514:
15942
+ /***/ 483:
15943
15943
  /***/ (function(__unused_webpack_module, exports) {
15944
15944
 
15945
15945
 
@@ -19184,7 +19184,7 @@ if (true) {
19184
19184
 
19185
19185
  /***/ }),
19186
19186
 
19187
- /***/ 141:
19187
+ /***/ 396:
19188
19188
  /***/ (function(module, exports) {
19189
19189
 
19190
19190
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
@@ -20311,7 +20311,7 @@ Object .defineProperty (Namespace, "add",
20311
20311
  return module;
20312
20312
  }
20313
20313
 
20314
- const X3D = window [Symbol .for ("X_ITE.X3D-10.5.0")];
20314
+ const X3D = window [Symbol .for ("X_ITE.X3D-10.5.2")];
20315
20315
 
20316
20316
  if (X3D)
20317
20317
  X3D [name] = module;
@@ -34173,7 +34173,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34173
34173
 
34174
34174
  /* harmony default export */ const Base_X3DBaseNode = (x_ite_Namespace .add ("X3DBaseNode", X3DBaseNode_default_));
34175
34175
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
34176
- /* provided dependency */ var $ = __webpack_require__(386);
34176
+ /* provided dependency */ var $ = __webpack_require__(91);
34177
34177
  /*******************************************************************************
34178
34178
  *
34179
34179
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34309,7 +34309,7 @@ const Legacy_default_ = Legacy;
34309
34309
  *
34310
34310
  ******************************************************************************/
34311
34311
 
34312
- const BROWSER_VERSION_default_ = "10.5.0";
34312
+ const BROWSER_VERSION_default_ = "10.5.2";
34313
34313
  ;
34314
34314
 
34315
34315
  /* harmony default export */ const BROWSER_VERSION = (x_ite_Namespace .add ("BROWSER_VERSION", BROWSER_VERSION_default_));
@@ -37334,7 +37334,7 @@ const X3DBindableNode_default_ = X3DBindableNode;
37334
37334
 
37335
37335
  /* harmony default export */ const Core_X3DBindableNode = (x_ite_Namespace .add ("X3DBindableNode", X3DBindableNode_default_));
37336
37336
  ;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
37337
- /* provided dependency */ var libtess = __webpack_require__(475);
37337
+ /* provided dependency */ var libtess = __webpack_require__(744);
37338
37338
  /*******************************************************************************
37339
37339
  *
37340
37340
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39896,7 +39896,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
39896
39896
 
39897
39897
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (x_ite_Namespace .add ("X3DProtoDeclaration", X3DProtoDeclaration_default_));
39898
39898
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
39899
- /* provided dependency */ var X3DParser_$ = __webpack_require__(386);
39899
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(91);
39900
39900
  /*******************************************************************************
39901
39901
  *
39902
39902
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -40151,7 +40151,7 @@ const Expressions_default_ = Expressions;
40151
40151
 
40152
40152
  /* harmony default export */ const Parser_Expressions = (x_ite_Namespace .add ("Expressions", Expressions_default_));
40153
40153
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
40154
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(386);
40154
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(91);
40155
40155
  /*******************************************************************************
40156
40156
  *
40157
40157
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -41798,12 +41798,12 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
41798
41798
  },
41799
41799
  sfboolValues (field)
41800
41800
  {
41801
- field .length = 0;
41802
-
41803
- const target = field .getTarget ();
41801
+ const array = [ ];
41804
41802
 
41805
41803
  while (this .bool ())
41806
- target .push (this .value);
41804
+ array .push (this .value);
41805
+
41806
+ field .setValue (array);
41807
41807
 
41808
41808
  return field .length !== 0;
41809
41809
  },
@@ -41873,14 +41873,12 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
41873
41873
  },
41874
41874
  sfcolorValues (field)
41875
41875
  {
41876
- field .length = 0;
41876
+ const array = [ ];
41877
41877
 
41878
- const
41879
- target = field .getTarget (),
41880
- value = this .Color3;
41878
+ while (this .double ())
41879
+ array .push (this .value);
41881
41880
 
41882
- while (this .sfcolorValue (value))
41883
- target .push (value);
41881
+ field .setValue (array);
41884
41882
 
41885
41883
  return field .length !== 0;
41886
41884
  },
@@ -41945,7 +41943,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
41945
41943
 
41946
41944
  if (Grammar .OpenBracket .parse (this))
41947
41945
  {
41948
- this .sfcolorrgbaValues (field);
41946
+ this .sfcolorValues (field);
41949
41947
 
41950
41948
  if (Grammar .CloseBracket .parse (this))
41951
41949
  return true;
@@ -41955,19 +41953,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
41955
41953
 
41956
41954
  return false;
41957
41955
  },
41958
- sfcolorrgbaValues (field)
41959
- {
41960
- field .length = 0;
41961
-
41962
- const
41963
- target = field .getTarget (),
41964
- value = this .Color4;
41965
-
41966
- while (this .sfcolorrgbaValue (value))
41967
- target .push (value);
41968
-
41969
- return field .length !== 0;
41970
- },
41971
41956
  sfdoubleValue (field)
41972
41957
  {
41973
41958
  if (this .double ())
@@ -42002,14 +41987,14 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42002
41987
  },
42003
41988
  sfdoubleValues (field)
42004
41989
  {
42005
- field .length = 0;
42006
-
42007
41990
  const
42008
- target = field .getTarget (),
42009
- unit = target .getUnit ();
41991
+ unit = field .getUnit (),
41992
+ array = [ ];
42010
41993
 
42011
41994
  while (this .double ())
42012
- target .push (this .fromUnit (unit, this .value));
41995
+ array .push (this .fromUnit (unit, this .value));
41996
+
41997
+ field .setValue (array);
42013
41998
 
42014
41999
  return field .length !== 0;
42015
42000
  },
@@ -42026,26 +42011,26 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42026
42011
  if (this .int32 ())
42027
42012
  {
42028
42013
  const
42029
- comp = this .value,
42030
- size = width * height;
42031
-
42032
- field .width = width;
42033
- field .height = height;
42034
- field .comp = comp;
42035
-
42036
- const array = field .array;
42014
+ comp = this .value,
42015
+ size = width * height,
42016
+ array = [ ];
42037
42017
 
42038
42018
  for (let i = 0; i < size; ++ i)
42039
42019
  {
42040
42020
  if (this .int32 ())
42041
42021
  {
42042
- array [i] = this .value;
42022
+ array .push (this .value);
42043
42023
  continue;
42044
42024
  }
42045
42025
 
42046
42026
  return false;
42047
42027
  }
42048
42028
 
42029
+ field .width = width;
42030
+ field .height = height;
42031
+ field .comp = comp;
42032
+ field .array = array;
42033
+
42049
42034
  return true;
42050
42035
  }
42051
42036
  }
@@ -42122,12 +42107,12 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42122
42107
  },
42123
42108
  sfint32Values (field)
42124
42109
  {
42125
- field .length = 0;
42126
-
42127
- const target = field .getTarget ();
42110
+ const array = [ ];
42128
42111
 
42129
42112
  while (this .int32 ())
42130
- target .push (this .value);
42113
+ array .push (this .value);
42114
+
42115
+ field .setValue (array);
42131
42116
 
42132
42117
  return field .length !== 0;
42133
42118
  },
@@ -42204,7 +42189,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42204
42189
 
42205
42190
  if (Grammar .OpenBracket .parse (this))
42206
42191
  {
42207
- this .sfmatrix3Values (field);
42192
+ this .sfmatrixValues (field);
42208
42193
 
42209
42194
  if (Grammar .CloseBracket .parse (this))
42210
42195
  return true;
@@ -42214,16 +42199,14 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42214
42199
 
42215
42200
  return false;
42216
42201
  },
42217
- sfmatrix3Values (field)
42202
+ sfmatrixValues (field)
42218
42203
  {
42219
- field .length = 0;
42204
+ const array = [ ];
42220
42205
 
42221
- const
42222
- target = field .getTarget (),
42223
- value = this .Matrix3;
42206
+ while (this .double ())
42207
+ array .push (this .value);
42224
42208
 
42225
- while (this .sfmatrix3Value (value))
42226
- target .push (value);
42209
+ field .setValue (array);
42227
42210
 
42228
42211
  return field .length !== 0;
42229
42212
  },
@@ -42342,7 +42325,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42342
42325
 
42343
42326
  if (Grammar .OpenBracket .parse (this))
42344
42327
  {
42345
- this .sfmatrix4Values (field);
42328
+ this .sfmatrixValues (field);
42346
42329
 
42347
42330
  if (Grammar .CloseBracket .parse (this))
42348
42331
  return true;
@@ -42352,19 +42335,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42352
42335
 
42353
42336
  return false;
42354
42337
  },
42355
- sfmatrix4Values (field)
42356
- {
42357
- field .length = 0;
42358
-
42359
- const
42360
- target = field .getTarget (),
42361
- value = this .Matrix4;
42362
-
42363
- while (this .sfmatrix4Value (value))
42364
- target .push (value);
42365
-
42366
- return field .length !== 0;
42367
- },
42368
42338
  sfnodeValue (field)
42369
42339
  {
42370
42340
  const baseNode = this .nodeStatement ();
@@ -42514,12 +42484,12 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42514
42484
  },
42515
42485
  sfstringValues (field)
42516
42486
  {
42517
- field .length = 0;
42518
-
42519
- const target = field .getTarget ();
42487
+ const array = [ ];
42520
42488
 
42521
42489
  while (this .string ())
42522
- target .push (this .value);
42490
+ array .push (this .value);
42491
+
42492
+ field .setValue (array);
42523
42493
 
42524
42494
  return field .length !== 0;
42525
42495
  },
@@ -42554,7 +42524,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42554
42524
 
42555
42525
  if (Grammar .OpenBracket .parse (this))
42556
42526
  {
42557
- this .sfvec2Values (field);
42527
+ this .sfvecValues (field);
42558
42528
 
42559
42529
  if (Grammar .CloseBracket .parse (this))
42560
42530
  return true;
@@ -42564,17 +42534,16 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42564
42534
 
42565
42535
  return false;
42566
42536
  },
42567
- sfvec2Values (field)
42537
+ sfvecValues (field)
42568
42538
  {
42569
- field .length = 0;
42570
-
42571
42539
  const
42572
- target = field .getTarget (),
42573
- value = this .Vector2,
42574
- unit = target .getUnit ();
42540
+ unit = field .getUnit (),
42541
+ array = [ ];
42575
42542
 
42576
- while (this .sfvec2Value (value, unit))
42577
- target .push (value);
42543
+ while (this .double ())
42544
+ array .push (this .fromUnit (unit, this .value));
42545
+
42546
+ field .setValue (array);
42578
42547
 
42579
42548
  return field .length !== 0;
42580
42549
  },
@@ -42615,7 +42584,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42615
42584
 
42616
42585
  if (Grammar .OpenBracket .parse (this))
42617
42586
  {
42618
- this .sfvec3Values (field);
42587
+ this .sfvecValues (field);
42619
42588
 
42620
42589
  if (Grammar .CloseBracket .parse (this))
42621
42590
  return true;
@@ -42625,20 +42594,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42625
42594
 
42626
42595
  return false;
42627
42596
  },
42628
- sfvec3Values (field)
42629
- {
42630
- field .length = 0;
42631
-
42632
- const
42633
- target = field .getTarget (),
42634
- value = this .Vector3,
42635
- unit = target .getUnit ();
42636
-
42637
- while (this .sfvec3Value (value, unit))
42638
- target .push (value);
42639
-
42640
- return field .length !== 0;
42641
- },
42642
42597
  sfvec4Value (field, unit)
42643
42598
  {
42644
42599
  if (this .double ())
@@ -42682,7 +42637,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42682
42637
 
42683
42638
  if (Grammar .OpenBracket .parse (this))
42684
42639
  {
42685
- this .sfvec4Values (field);
42640
+ this .sfvecValues (field);
42686
42641
 
42687
42642
  if (Grammar .CloseBracket .parse (this))
42688
42643
  return true;
@@ -42692,20 +42647,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
42692
42647
 
42693
42648
  return false;
42694
42649
  },
42695
- sfvec4Values (field)
42696
- {
42697
- field .length = 0;
42698
-
42699
- const
42700
- target = field .getTarget (),
42701
- value = this .Vector4,
42702
- unit = target .getUnit ();
42703
-
42704
- while (this .sfvec4Value (value, unit))
42705
- target .push (value);
42706
-
42707
- return field .length !== 0;
42708
- },
42709
42650
  unknownValue ()
42710
42651
  {
42711
42652
  try
@@ -42850,7 +42791,7 @@ const VRMLParser_default_ = VRMLParser;
42850
42791
 
42851
42792
  /* harmony default export */ const Parser_VRMLParser = (x_ite_Namespace .add ("VRMLParser", VRMLParser_default_));
42852
42793
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
42853
- /* provided dependency */ var XMLParser_$ = __webpack_require__(386);
42794
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(91);
42854
42795
  /*******************************************************************************
42855
42796
  *
42856
42797
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -43982,25 +43923,25 @@ Object .assign (XMLParser .prototype,
43982
43923
 
43983
43924
  [Base_X3DConstants .MFBool]: Parser_VRMLParser .prototype .sfboolValues,
43984
43925
  [Base_X3DConstants .MFColor]: Parser_VRMLParser .prototype .sfcolorValues,
43985
- [Base_X3DConstants .MFColorRGBA]: Parser_VRMLParser .prototype .sfcolorrgbaValues,
43926
+ [Base_X3DConstants .MFColorRGBA]: Parser_VRMLParser .prototype .sfcolorValues,
43986
43927
  [Base_X3DConstants .MFDouble]: Parser_VRMLParser .prototype .sfdoubleValues,
43987
43928
  [Base_X3DConstants .MFFloat]: Parser_VRMLParser .prototype .sfdoubleValues,
43988
43929
  [Base_X3DConstants .MFImage]: Parser_VRMLParser .prototype .sfimageValues,
43989
43930
  [Base_X3DConstants .MFInt32]: Parser_VRMLParser .prototype .sfint32Values,
43990
- [Base_X3DConstants .MFMatrix3d]: Parser_VRMLParser .prototype .sfmatrix3Values,
43991
- [Base_X3DConstants .MFMatrix3f]: Parser_VRMLParser .prototype .sfmatrix3Values,
43992
- [Base_X3DConstants .MFMatrix4d]: Parser_VRMLParser .prototype .sfmatrix4Values,
43993
- [Base_X3DConstants .MFMatrix4f]: Parser_VRMLParser .prototype .sfmatrix4Values,
43931
+ [Base_X3DConstants .MFMatrix3d]: Parser_VRMLParser .prototype .sfmatrixValues,
43932
+ [Base_X3DConstants .MFMatrix3f]: Parser_VRMLParser .prototype .sfmatrixValues,
43933
+ [Base_X3DConstants .MFMatrix4d]: Parser_VRMLParser .prototype .sfmatrixValues,
43934
+ [Base_X3DConstants .MFMatrix4f]: Parser_VRMLParser .prototype .sfmatrixValues,
43994
43935
  [Base_X3DConstants .MFNode] (field) { field .length = 0; },
43995
43936
  [Base_X3DConstants .MFRotation]: Parser_VRMLParser .prototype .sfrotationValues,
43996
43937
  [Base_X3DConstants .MFString]: Parser_VRMLParser .prototype .sfstringValues,
43997
43938
  [Base_X3DConstants .MFTime]: Parser_VRMLParser .prototype .sfdoubleValues,
43998
- [Base_X3DConstants .MFVec2d]: Parser_VRMLParser .prototype .sfvec2Values,
43999
- [Base_X3DConstants .MFVec2f]: Parser_VRMLParser .prototype .sfvec2Values,
44000
- [Base_X3DConstants .MFVec3d]: Parser_VRMLParser .prototype .sfvec3Values,
44001
- [Base_X3DConstants .MFVec3f]: Parser_VRMLParser .prototype .sfvec3Values,
44002
- [Base_X3DConstants .MFVec4d]: Parser_VRMLParser .prototype .sfvec4Values,
44003
- [Base_X3DConstants .MFVec4f]: Parser_VRMLParser .prototype .sfvec4Values,
43939
+ [Base_X3DConstants .MFVec2d]: Parser_VRMLParser .prototype .sfvecValues,
43940
+ [Base_X3DConstants .MFVec2f]: Parser_VRMLParser .prototype .sfvecValues,
43941
+ [Base_X3DConstants .MFVec3d]: Parser_VRMLParser .prototype .sfvecValues,
43942
+ [Base_X3DConstants .MFVec3f]: Parser_VRMLParser .prototype .sfvecValues,
43943
+ [Base_X3DConstants .MFVec4d]: Parser_VRMLParser .prototype .sfvecValues,
43944
+ [Base_X3DConstants .MFVec4f]: Parser_VRMLParser .prototype .sfvecValues,
44004
43945
  });
44005
43946
 
44006
43947
  // HTML Support
@@ -44212,14 +44153,13 @@ Object .assign (Object .setPrototypeOf (JSONParser .prototype, Parser_X3DParser
44212
44153
 
44213
44154
  for (const key in object)
44214
44155
  {
44215
- if (typeof object [key] === "object")
44216
- {
44217
- if (isNaN (parseInt (key)))
44218
- this .convertObject (key, object, element, parentkey .substring (1));
44156
+ if (typeof object [key] !== "object")
44157
+ continue;
44219
44158
 
44220
- else
44221
- this .convertToDOM (object[ key], key, element, parentkey .substring (1));
44222
- }
44159
+ if (isNaN (parseInt (key)))
44160
+ this .convertObject (key, object, element, parentkey .substring (1));
44161
+ else
44162
+ this .convertToDOM (object [key], key, element, parentkey .substring (1));
44223
44163
  }
44224
44164
  },
44225
44165
  createElement (key, containerField)
@@ -44341,7 +44281,7 @@ Object .assign (Object .setPrototypeOf (JSONParser .prototype, Parser_X3DParser
44341
44281
 
44342
44282
  return str;
44343
44283
  },
44344
- convertToDOM(object, parentkey, element, containerField)
44284
+ convertToDOM (object, parentkey, element, containerField)
44345
44285
  {
44346
44286
  /**
44347
44287
  * main routine for converting a JavaScript object to DOM.
@@ -44351,6 +44291,12 @@ Object .assign (Object .setPrototypeOf (JSONParser .prototype, Parser_X3DParser
44351
44291
  * containerField is a possible containerField.
44352
44292
  */
44353
44293
 
44294
+ if (object === null)
44295
+ {
44296
+ this .elementSetAttribute (element, "value", null);
44297
+ return element;
44298
+ }
44299
+
44354
44300
  let
44355
44301
  isArray = false,
44356
44302
  localArray = [ ],
@@ -45023,7 +44969,7 @@ const URLs_default_ = URLs;
45023
44969
 
45024
44970
  /* harmony default export */ const Networking_URLs = (x_ite_Namespace .add ("URLs", URLs_default_));
45025
44971
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
45026
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(386);
44972
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(91);
45027
44973
  /*******************************************************************************
45028
44974
  *
45029
44975
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -45283,7 +45229,14 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
45283
45229
  worldInfoNode ._info .sort ();
45284
45230
 
45285
45231
  if (!worldInfoNode ._title .getValue ())
45286
- worldInfoNode ._title = decodeURI (new URL (worldURL) .pathname .split ("/") .at (-1) || worldURL);
45232
+ {
45233
+ const url = new URL (worldURL);
45234
+
45235
+ if (url .protocol === "data:")
45236
+ worldInfoNode ._title = "glTF Model";
45237
+ else
45238
+ worldInfoNode ._title = decodeURIComponent (url .pathname .split ("/") .at (-1) || worldURL);
45239
+ }
45287
45240
 
45288
45241
  worldInfoNode .setup ();
45289
45242
 
@@ -48667,7 +48620,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
48667
48620
 
48668
48621
  /* harmony default export */ const Parser_GLTF2Parser = (x_ite_Namespace .add ("GLTF2Parser", GLTF2Parser_default_));
48669
48622
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
48670
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(386);
48623
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(91);
48671
48624
  /*******************************************************************************
48672
48625
  *
48673
48626
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -48818,7 +48771,7 @@ const GLB2Parser_default_ = GLB2Parser;
48818
48771
 
48819
48772
  /* harmony default export */ const Parser_GLB2Parser = (x_ite_Namespace .add ("GLB2Parser", GLB2Parser_default_));
48820
48773
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
48821
- /* provided dependency */ var OBJParser_$ = __webpack_require__(386);
48774
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(91);
48822
48775
  /*******************************************************************************
48823
48776
  *
48824
48777
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -50690,9 +50643,10 @@ Object .assign (Object .setPrototypeOf (PLYAParser .prototype, Parser_X3DParser
50690
50643
 
50691
50644
  const
50692
50645
  scene = this .getScene (),
50693
- worldInfo = scene .createNode ("WorldInfo");
50646
+ worldInfo = scene .createNode ("WorldInfo"),
50647
+ url = new URL (scene .worldURL);
50694
50648
 
50695
- worldInfo .title = new URL (scene .worldURL) .pathname .split ('/') .at (-1);
50649
+ worldInfo .title = url .protocol === "data:" ? "PLY Model" : url .pathname .split ('/') .at (-1);
50696
50650
  worldInfo .info = this .comments;
50697
50651
 
50698
50652
  scene .rootNodes .push (worldInfo);
@@ -52160,8 +52114,8 @@ const MatrixStack_default_ = MatrixStack;
52160
52114
 
52161
52115
  /* harmony default export */ const Utility_MatrixStack = (x_ite_Namespace .add ("MatrixStack", MatrixStack_default_));
52162
52116
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
52163
- /* provided dependency */ var SVGParser_$ = __webpack_require__(386);
52164
- /* provided dependency */ var SVGParser_libtess = __webpack_require__(475);
52117
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(91);
52118
+ /* provided dependency */ var SVGParser_libtess = __webpack_require__(744);
52165
52119
  /*******************************************************************************
52166
52120
  *
52167
52121
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -54931,7 +54885,7 @@ const SVGParser_default_ = SVGParser;
54931
54885
 
54932
54886
  /* harmony default export */ const Parser_SVGParser = (x_ite_Namespace .add ("SVGParser", SVGParser_default_));
54933
54887
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
54934
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(386);
54888
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(91);
54935
54889
  /*******************************************************************************
54936
54890
  *
54937
54891
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -60193,6 +60147,7 @@ const Shading_default_ = Shading;
60193
60147
 
60194
60148
 
60195
60149
 
60150
+
60196
60151
  // Box normals for bbox / line intersection.
60197
60152
  const boxNormals = [
60198
60153
  new Numbers_Vector3 (0, 0, 1), // front
@@ -60579,7 +60534,8 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
60579
60534
  }
60580
60535
  catch (error)
60581
60536
  {
60582
- console .error (error);
60537
+ if (DEVELOPMENT)
60538
+ console .error (error);
60583
60539
  }
60584
60540
  },
60585
60541
  refineNormals (normalIndex, normals, creaseAngle)
@@ -62940,7 +62896,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
62940
62896
 
62941
62897
  /* harmony default export */ const Texturing_X3DTexture2DNode = (x_ite_Namespace .add ("X3DTexture2DNode", X3DTexture2DNode_default_));
62942
62898
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
62943
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(386);
62899
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(91);
62944
62900
  /*******************************************************************************
62945
62901
  *
62946
62902
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66324,7 +66280,7 @@ const X3DWorld_default_ = X3DWorld;
66324
66280
 
66325
66281
  /* harmony default export */ const Execution_X3DWorld = (x_ite_Namespace .add ("X3DWorld", X3DWorld_default_));
66326
66282
  ;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
66327
- /* provided dependency */ var FileLoader_$ = __webpack_require__(386);
66283
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(91);
66328
66284
  /*******************************************************************************
66329
66285
  *
66330
66286
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66378,6 +66334,7 @@ const X3DWorld_default_ = X3DWorld;
66378
66334
 
66379
66335
 
66380
66336
 
66337
+
66381
66338
  const foreignMimeType = new Set ([
66382
66339
  "text/html",
66383
66340
  "application/xhtml+xml",
@@ -66459,34 +66416,36 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
66459
66416
  },
66460
66417
  setScene (scene, resolve, reject)
66461
66418
  {
66462
- scene ._initLoadCount .addInterest ("set_initLoadCount__", this, scene, resolve, reject);
66463
- scene ._initLoadCount .addEvent ();
66419
+ scene ._loadCount .addInterest ("set_loadCount__", this, scene, resolve, reject);
66420
+ scene ._loadCount .addEvent ();
66464
66421
  },
66465
- set_initLoadCount__ (scene, resolve, reject, field)
66422
+ async set_loadCount__ (scene, resolve, reject, field)
66466
66423
  {
66467
66424
  // Wait for extern protos to be loaded.
66468
66425
 
66469
- if (field .getValue ())
66470
- return;
66426
+ for (const externproto of scene .externprotos)
66427
+ {
66428
+ if (externproto .checkLoadState () === Base_X3DConstants .IN_PROGRESS_STATE)
66429
+ return;
66430
+ }
66471
66431
 
66472
- scene ._initLoadCount .removeInterest ("set_initLoadCount__", this);
66432
+ scene ._loadCount .removeInterest ("set_loadCount__", this);
66473
66433
 
66474
66434
  // Wait for instances to be created.
66475
66435
 
66476
- setTimeout (() =>
66436
+ await this .browser .nextFrame ();
66437
+
66438
+ try
66477
66439
  {
66478
- try
66479
- {
66480
- resolve (scene);
66481
- }
66482
- catch (error)
66483
- {
66484
- if (reject)
66485
- reject (error);
66486
- else
66487
- throw error;
66488
- }
66489
- });
66440
+ resolve (scene);
66441
+ }
66442
+ catch (error)
66443
+ {
66444
+ if (reject)
66445
+ reject (error);
66446
+ else
66447
+ throw error;
66448
+ }
66490
66449
 
66491
66450
  if (DEVELOPMENT)
66492
66451
  {
@@ -66511,13 +66470,13 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
66511
66470
  },
66512
66471
  loadDocument (url, callback)
66513
66472
  {
66514
- this .url = url .copy ();
66473
+ this .url = url .slice ();
66515
66474
  this .callback = callback;
66516
66475
 
66517
66476
  if (url .length === 0)
66518
66477
  return this .loadDocumentError (new Error ("No URL given."));
66519
66478
 
66520
- this .loadDocumentAsync (this .url .shift ())
66479
+ this .loadDocumentAsync (String (this .url .shift ()))
66521
66480
  .catch (this .loadDocumentError .bind (this));
66522
66481
  },
66523
66482
  async loadDocumentAsync (url)
@@ -66621,7 +66580,7 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
66621
66580
 
66622
66581
  if (this .url .length)
66623
66582
  {
66624
- this .loadDocumentAsync (this .url .shift ())
66583
+ this .loadDocumentAsync (String (this .url .shift ()))
66625
66584
  .catch (this .loadDocumentError .bind (this));
66626
66585
  }
66627
66586
  else
@@ -66703,7 +66662,8 @@ const FileLoader_default_ = FileLoader;
66703
66662
 
66704
66663
  const
66705
66664
  _proto = Symbol (),
66706
- _scene = Symbol ();
66665
+ _scene = Symbol (),
66666
+ X3DExternProtoDeclaration_cache = Symbol ();
66707
66667
 
66708
66668
  function X3DExternProtoDeclaration (executionContext, url)
66709
66669
  {
@@ -66716,6 +66676,8 @@ function X3DExternProtoDeclaration (executionContext, url)
66716
66676
  Base_X3DConstants .inputOutput, "url", url .copy (), // Must be of type MFString.
66717
66677
  Base_X3DConstants .inputOutput, "autoRefresh", new x_ite_Fields .SFTime (),
66718
66678
  Base_X3DConstants .inputOutput, "autoRefreshTimeLimit", new x_ite_Fields .SFTime (3600));
66679
+
66680
+ this .getBrowser () [X3DExternProtoDeclaration_cache] ??= new Map ();
66719
66681
  }
66720
66682
 
66721
66683
  Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Prototype_X3DProtoDeclarationNode .prototype),
@@ -66726,12 +66688,6 @@ Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Pr
66726
66688
  Prototype_X3DProtoDeclarationNode .prototype .initialize .call (this);
66727
66689
  Networking_X3DUrlObject .prototype .initialize .call (this);
66728
66690
  },
66729
- set_live__ ()
66730
- {
66731
- Networking_X3DUrlObject .prototype .set_live__ .call (this);
66732
-
66733
- this [_scene] ?.setLive (this .getLive () .getValue ());
66734
- },
66735
66691
  canUserDefinedFields ()
66736
66692
  {
66737
66693
  return true;
@@ -66752,55 +66708,89 @@ Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Pr
66752
66708
  {
66753
66709
  return this [_proto];
66754
66710
  },
66755
- loadData ()
66711
+ async loadData ()
66756
66712
  {
66757
- // 7.73 ExternProtoDeclaration function
66713
+ const browser = this .getBrowser ();
66758
66714
 
66759
- this .getScene () .addInitLoadCount (this);
66715
+ if (!this ._url .length)
66716
+ {
66717
+ this .setError (new Error ("No URL given."));
66718
+ return;
66719
+ }
66760
66720
 
66761
- new InputOutput_FileLoader (this) .createX3DFromURL (this ._url, null, this .setInternalSceneAsync .bind (this));
66721
+ for (const url of this ._url)
66722
+ {
66723
+ try
66724
+ {
66725
+ const
66726
+ resolvedURL = new URL (url, this .getExecutionContext () .getBaseURL ()),
66727
+ cacheURL = new URL (resolvedURL),
66728
+ cache = browser .getBrowserOption ("Cache");
66729
+
66730
+ cacheURL .hash = "";
66731
+
66732
+ const cachePromise = cache
66733
+ ? browser [X3DExternProtoDeclaration_cache] .get (cacheURL .href)
66734
+ : null;
66735
+
66736
+ const promise = cachePromise ?? new Promise (resolve =>
66737
+ {
66738
+ new InputOutput_FileLoader (this) .createX3DFromURL ([cacheURL], null, resolve);
66739
+ });
66740
+
66741
+ if (cache && !cachePromise)
66742
+ browser [X3DExternProtoDeclaration_cache] .set (cacheURL .href, promise);
66743
+
66744
+ const scene = await promise;
66745
+
66746
+ if (!scene)
66747
+ continue;
66748
+
66749
+ this .setInternalScene (scene, resolvedURL, cache);
66750
+ return;
66751
+ }
66752
+ catch (error)
66753
+ {
66754
+ console .warn (error .message);
66755
+ }
66756
+ }
66757
+
66758
+ this .setError (new Error ("File could not be loaded."));
66762
66759
  },
66763
- setInternalSceneAsync (value)
66760
+ getInternalScene ()
66764
66761
  {
66765
- if (value)
66766
- this .setInternalScene (value);
66767
-
66768
- else
66769
- this .setError (new Error ("File could not be loaded."));
66762
+ /// Returns the internal X3DScene of this extern proto, that is loaded from the url given.
66770
66763
 
66771
- this .getScene () .removeInitLoadCount (this);
66764
+ return this [_scene];
66772
66765
  },
66773
- setInternalScene (value)
66766
+ setInternalScene (scene, url, cache)
66774
66767
  {
66775
- if (this [_scene] !== this .getBrowser () .getPrivateScene ())
66768
+ const browser = this .getBrowser ();
66769
+
66770
+ if (this [_scene] !== browser .getDefaultScene () && !this [X3DExternProtoDeclaration_cache])
66776
66771
  this [_scene] ?.dispose ();
66777
66772
 
66778
- this [_scene] = value;
66773
+ this [_scene] = scene;
66774
+ this [X3DExternProtoDeclaration_cache] = cache;
66779
66775
 
66780
66776
  const
66781
- protoName = decodeURIComponent (new URL (this [_scene] .getWorldURL ()) .hash .substring (1)),
66777
+ protoName = decodeURIComponent (url .hash .substring (1)),
66782
66778
  proto = protoName ? this [_scene] .protos .get (protoName) : this [_scene] .protos [0];
66783
66779
 
66784
66780
  if (!proto)
66785
66781
  throw new Error ("PROTO not found");
66786
66782
 
66787
- this [_scene] .setExecutionContext (this .getExecutionContext ());
66788
- this [_scene] .setLive (this .getLive () .getValue ());
66783
+ this [_scene] .setExecutionContext (this [X3DExternProtoDeclaration_cache] ? browser .getDefaultScene () : this .getExecutionContext ());
66784
+ this [_scene] .setLive (true);
66789
66785
 
66790
66786
  this .setLoadState (Base_X3DConstants .COMPLETE_STATE);
66791
66787
  this .setProtoDeclaration (proto);
66792
66788
  },
66793
- getInternalScene ()
66794
- {
66795
- /// Returns the internal X3DScene of this extern proto, that is loaded from the url given.
66796
-
66797
- return this [_scene];
66798
- },
66799
66789
  setError (error)
66800
66790
  {
66801
66791
  console .error (`Error loading extern prototype '${this .getName ()}':`, error);
66802
66792
 
66803
- this [_scene] = this .getBrowser () .getPrivateScene ();
66793
+ this [_scene] = this .getBrowser () .getDefaultScene ();
66804
66794
 
66805
66795
  this .setLoadState (Base_X3DConstants .FAILED_STATE);
66806
66796
  this .setProtoDeclaration (null);
@@ -67254,7 +67244,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
67254
67244
 
67255
67245
  /* harmony default export */ const Prototype_ProtoDeclarationArray = (x_ite_Namespace .add ("ProtoDeclarationArray", ProtoDeclarationArray_default_));
67256
67246
  ;// CONCATENATED MODULE: ./src/x_ite/Routing/X3DRoute.js
67257
- /* provided dependency */ var X3DRoute_$ = __webpack_require__(386);
67247
+ /* provided dependency */ var X3DRoute_$ = __webpack_require__(91);
67258
67248
  /*******************************************************************************
67259
67249
  *
67260
67250
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -68886,6 +68876,31 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68886
68876
 
68887
68877
  this .realize ();
68888
68878
  },
68879
+ realize ()
68880
+ {
68881
+ const
68882
+ protoNode = this [_protoNode],
68883
+ proto = protoNode .getProtoDeclaration ();
68884
+
68885
+ if (protoNode .isExternProto && protoNode .checkLoadState () !== Base_X3DConstants .COMPLETE_STATE)
68886
+ return;
68887
+
68888
+ // Create execution context.
68889
+
68890
+ this [X3DPrototypeInstance_body] = new Execution_X3DExecutionContext (proto .getExecutionContext (), this);
68891
+
68892
+ // Copy proto.
68893
+
68894
+ this .importExternProtos (proto .getBody () .externprotos);
68895
+ this .importProtos (proto .getBody () .protos);
68896
+ this .copyRootNodes (proto .getBody () .rootNodes);
68897
+ this .importImportedNodes (proto .getBody () .importedNodes);
68898
+ this .copyRoutes (proto .getBody () .routes);
68899
+
68900
+ this [X3DPrototypeInstance_body] .setup ();
68901
+
68902
+ Base_X3DChildObject .prototype .addEvent .call (this);
68903
+ },
68889
68904
  construct ()
68890
68905
  {
68891
68906
  const
@@ -68960,31 +68975,6 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68960
68975
  protoNode ._updateInstances .removeInterest ("construct", this);
68961
68976
  protoNode ._updateInstances .addInterest ("update", this);
68962
68977
  },
68963
- realize ()
68964
- {
68965
- const
68966
- protoNode = this [_protoNode],
68967
- proto = protoNode .getProtoDeclaration ();
68968
-
68969
- if (protoNode .isExternProto && protoNode .checkLoadState () !== Base_X3DConstants .COMPLETE_STATE)
68970
- return;
68971
-
68972
- // Create execution context.
68973
-
68974
- this [X3DPrototypeInstance_body] = new Execution_X3DExecutionContext (proto .getExecutionContext (), this);
68975
-
68976
- // Copy proto.
68977
-
68978
- this .importExternProtos (proto .getBody () .externprotos);
68979
- this .importProtos (proto .getBody () .protos);
68980
- this .copyRootNodes (proto .getBody () .rootNodes);
68981
- this .importImportedNodes (proto .getBody () .importedNodes);
68982
- this .copyRoutes (proto .getBody () .routes);
68983
-
68984
- this [X3DPrototypeInstance_body] .setup ();
68985
-
68986
- Base_X3DChildObject .prototype .addEvent .call (this);
68987
- },
68988
68978
  update ()
68989
68979
  {
68990
68980
  // Remove old fields.
@@ -69144,6 +69134,15 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
69144
69134
 
69145
69135
  throw new Error ("Root node not available.");
69146
69136
  },
69137
+ isDefaultValue (field)
69138
+ {
69139
+ const protoNode = this [_protoNode];
69140
+
69141
+ if (protoNode .isExternProto && protoNode .checkLoadState () !== Base_X3DConstants .COMPLETE_STATE)
69142
+ return field .getModificationTime () === 0;
69143
+
69144
+ return Core_X3DNode .prototype .isDefaultValue .call (this, field);
69145
+ },
69147
69146
  importExternProtos (externprotos1)
69148
69147
  {
69149
69148
  const externprotos2 = this [X3DPrototypeInstance_body] .externprotos;
@@ -69357,16 +69356,24 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
69357
69356
  }
69358
69357
  case Base_X3DConstants .SFNode:
69359
69358
  {
69360
- if (field .getValue () !== null)
69361
- {
69362
- generator .PushContainerField (null);
69359
+ generator .PushContainerField (null);
69363
69360
 
69364
- generator .string += generator .Indent ();
69365
- generator .string += "<fieldValue";
69361
+ generator .string += generator .Indent ();
69362
+ generator .string += "<fieldValue";
69363
+ generator .string += generator .Space ();
69364
+ generator .string += "name='";
69365
+ generator .string += generator .XMLEncode (field .getName ());
69366
+ generator .string += "'";
69367
+
69368
+ if (field .getValue () === null)
69369
+ {
69366
69370
  generator .string += generator .Space ();
69367
- generator .string += "name='";
69368
- generator .string += generator .XMLEncode (field .getName ());
69369
- generator .string += "'";
69371
+ generator .string += "value='null'";
69372
+ generator .string += generator .closingTags ? "></fieldValue>" : "/>";
69373
+ generator .string += generator .TidyBreak ();
69374
+ }
69375
+ else
69376
+ {
69370
69377
  generator .string += ">";
69371
69378
  generator .string += generator .TidyBreak ();
69372
69379
 
@@ -69381,12 +69388,10 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
69381
69388
  generator .string += generator .Indent ();
69382
69389
  generator .string += "</fieldValue>";
69383
69390
  generator .string += generator .TidyBreak ();
69384
-
69385
- generator .PopContainerField ();
69386
- break;
69387
69391
  }
69388
69392
 
69389
- // Proceed with next case.
69393
+ generator .PopContainerField ();
69394
+ break;
69390
69395
  }
69391
69396
  default:
69392
69397
  {
@@ -76913,7 +76918,10 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
76913
76918
  attribBuffers = this .getAttribBuffers ();
76914
76919
 
76915
76920
  if (!renderContext .transparent)
76921
+ {
76916
76922
  gl .enable (gl .SAMPLE_ALPHA_TO_COVERAGE);
76923
+ gl .enable (gl .BLEND);
76924
+ }
76917
76925
 
76918
76926
  for (const node of renderModeNodes)
76919
76927
  node .enable (gl);
@@ -76953,7 +76961,11 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
76953
76961
  for (const node of renderModeNodes)
76954
76962
  node .disable (gl);
76955
76963
 
76956
- gl .disable (gl .SAMPLE_ALPHA_TO_COVERAGE);
76964
+ if (!renderContext .transparent)
76965
+ {
76966
+ gl .disable (gl .SAMPLE_ALPHA_TO_COVERAGE);
76967
+ gl .disable (gl .BLEND);
76968
+ }
76957
76969
  },
76958
76970
  displayInstanced (gl, renderContext, shapeNode)
76959
76971
  {
@@ -76965,7 +76977,10 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
76965
76977
  attribBuffers = this .getAttribBuffers ();
76966
76978
 
76967
76979
  if (!renderContext .transparent)
76980
+ {
76968
76981
  gl .enable (gl .SAMPLE_ALPHA_TO_COVERAGE);
76982
+ gl .enable (gl .BLEND);
76983
+ }
76969
76984
 
76970
76985
  for (const node of renderModeNodes)
76971
76986
  node .enable (gl);
@@ -77024,7 +77039,11 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
77024
77039
  for (const node of renderModeNodes)
77025
77040
  node .disable (gl);
77026
77041
 
77027
- gl .disable (gl .SAMPLE_ALPHA_TO_COVERAGE);
77042
+ if (!renderContext .transparent)
77043
+ {
77044
+ gl .disable (gl .SAMPLE_ALPHA_TO_COVERAGE);
77045
+ gl .disable (gl .BLEND);
77046
+ }
77028
77047
  },
77029
77048
  });
77030
77049
 
@@ -80117,13 +80136,16 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
80117
80136
  },
80118
80137
  traverse (type, renderObject)
80119
80138
  {
80120
- this .visibleNodes ??= this .createStaticShapes (renderObject);
80139
+ if (!this .visibleNodes)
80140
+ this .createStaticShapes (renderObject);
80121
80141
 
80122
80142
  for (const visibleNode of this .visibleNodes)
80123
80143
  visibleNode .traverse (type, renderObject);
80124
80144
  },
80125
80145
  createStaticShapes (renderObject)
80126
80146
  {
80147
+ this .visibleNodes = [this .groupNode];
80148
+
80127
80149
  // Check if scene is currently loading something.
80128
80150
 
80129
80151
  const scene = this .getScene ();
@@ -80146,14 +80168,13 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
80146
80168
 
80147
80169
  this .optimizeGroups (this .createGroups (renderObject));
80148
80170
  }
80149
-
80150
- return [this .groupNode];
80151
80171
  },
80152
80172
  createGroups: (() =>
80153
80173
  {
80154
- const Statics = ["Opaque", "Transparent"];
80155
-
80156
- const viewVolume = new Geometry_ViewVolume ();
80174
+ const
80175
+ Statics = ["Opaque", "Transparent"],
80176
+ viewVolume = new Geometry_ViewVolume (),
80177
+ style = { style: "CLEAN" };
80157
80178
 
80158
80179
  viewVolume .intersectsSphere = () => true;
80159
80180
 
@@ -80215,6 +80236,9 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
80215
80236
  appearanceNode = shapeNode .getAppearance (),
80216
80237
  geometryNode = shapeNode .getGeometry ();
80217
80238
 
80239
+ if (!geometryNode .getVertices () .length)
80240
+ continue;
80241
+
80218
80242
  if (shapeNode .getShapeKey () > 0 || this .hasTextureCoordinateGenerator (geometryNode))
80219
80243
  {
80220
80244
  const group = singlesIndex [renderContext .modelViewMatrix] ??= [ ];
@@ -80225,8 +80249,6 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
80225
80249
 
80226
80250
  let key = "";
80227
80251
 
80228
- key += appearanceNode .getId ();
80229
- key += ".";
80230
80252
  key += geometryNode .getGeometryType ();
80231
80253
  key += geometryNode .isSolid () ? 1 : 0;
80232
80254
  key += geometryNode .getFogDepths () .length ? 1 : 0;
@@ -80234,6 +80256,8 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
80234
80256
  key += shapeNode ._pointerEvents .getValue () ? 1 : 0;
80235
80257
  key += shapeNode ._castShadow .getValue () ? 1 : 0;
80236
80258
  key += shapeNode ._bboxDisplay .getValue () ? 1 : 0;
80259
+ key += ".";
80260
+ key += appearanceNode .toVRMLString (style);
80237
80261
 
80238
80262
  const
80239
80263
  clones = clonesIndex .get (shapeNode),
@@ -86849,12 +86873,6 @@ Object .assign (Object .setPrototypeOf (Inline .prototype, Core_X3DChildNode .pr
86849
86873
 
86850
86874
  return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
86851
86875
  },
86852
- set_live__ ()
86853
- {
86854
- Networking_X3DUrlObject .prototype .set_live__ .call (this);
86855
-
86856
- this .scene .setLive (this .getLive () .getValue ());
86857
- },
86858
86876
  unloadData ()
86859
86877
  {
86860
86878
  this .abortLoading ();
@@ -86907,7 +86925,7 @@ Object .assign (Object .setPrototypeOf (Inline .prototype, Core_X3DChildNode .pr
86907
86925
  if (this .scene !== this .getBrowser () .getDefaultScene ())
86908
86926
  {
86909
86927
  this .scene .setExecutionContext (this .getExecutionContext ());
86910
- this .scene .setLive (this .getLive () .getValue ());
86928
+ this .scene .setLive (true);
86911
86929
  this .scene .rootNodes .addFieldInterest (this .groupNode ._children);
86912
86930
  this .groupNode ._children = this .scene .rootNodes;
86913
86931
  }
@@ -90533,7 +90551,7 @@ mediump samplerCube textureCube;
90533
90551
 
90534
90552
  /* harmony default export */ const MaterialTextures = (x_ite_Namespace .add ("MaterialTextures", MaterialTextures_default_));
90535
90553
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
90536
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(386);
90554
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(91);
90537
90555
  /*******************************************************************************
90538
90556
  *
90539
90557
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -92173,7 +92191,7 @@ Object .assign (Object .setPrototypeOf (ComposedShader .prototype, Shaders_X3DSh
92173
92191
 
92174
92192
  if (this ._parts .length)
92175
92193
  {
92176
- console .warn ("Couldn't initialize " + this .getTypeName () + " '" + this .getName () + "': " + gl .getProgramInfoLog (program));
92194
+ console .warn (`Couldn't initialize ${this .getTypeName ()} '${this .getName ()}': ${gl .getProgramInfoLog (program)}`);
92177
92195
  }
92178
92196
  }
92179
92197
  }
@@ -94749,13 +94767,13 @@ vec3 finalColor=vec3(0.0);
94749
94767
  #endif
94750
94768
  finalColor+=material.emissiveColor;return vec4(finalColor,diffuseColor.a);}void main(){vertex_main();
94751
94769
  #if defined(X3D_LIGHTING)
94752
- normal=normalize(normal);
94770
+ vec3 n=normalize(normal);
94753
94771
  #else
94754
- vec3 normal=vec3(0.0);
94772
+ vec3 n=vec3(0.0);
94755
94773
  #endif
94756
- frontColor=getMaterialColor(normal,vertex,x3d_Material);
94774
+ frontColor=getMaterialColor(n,vertex,x3d_Material);
94757
94775
  #if!defined(X3D_GEOMETRY_0D)&&!defined(X3D_GEOMETRY_1D)
94758
- backColor=getMaterialColor(-normal,vertex,x3d_Material);
94776
+ backColor=getMaterialColor(-n,vertex,x3d_Material);
94759
94777
  #endif
94760
94778
  }`
94761
94779
  ;
@@ -95791,7 +95809,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
95791
95809
 
95792
95810
  /* harmony default export */ const Shaders_ShaderCompiler = (x_ite_Namespace .add ("ShaderCompiler", ShaderCompiler_default_));
95793
95811
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
95794
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(386);
95812
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(91);
95795
95813
  /*******************************************************************************
95796
95814
  *
95797
95815
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -96389,7 +96407,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
96389
96407
 
96390
96408
  /* harmony default export */ const Shape_X3DAppearanceNode = (x_ite_Namespace .add ("X3DAppearanceNode", X3DAppearanceNode_default_));
96391
96409
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
96392
- /* provided dependency */ var Appearance_$ = __webpack_require__(386);
96410
+ /* provided dependency */ var Appearance_$ = __webpack_require__(91);
96393
96411
  /*******************************************************************************
96394
96412
  *
96395
96413
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -104624,8 +104642,8 @@ const GifMedia_default_ = GifMedia;
104624
104642
 
104625
104643
  /* harmony default export */ const Texturing_GifMedia = (x_ite_Namespace .add ("GifMedia", GifMedia_default_));
104626
104644
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
104627
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(386);
104628
- /* provided dependency */ var SuperGif = __webpack_require__(141);
104645
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(91);
104646
+ /* provided dependency */ var SuperGif = __webpack_require__(396);
104629
104647
  /*******************************************************************************
104630
104648
  *
104631
104649
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107093,7 +107111,7 @@ const gettext_default_ = (string) => locale .get (string) || string;
107093
107111
 
107094
107112
  /* harmony default export */ const gettext = (x_ite_Namespace .add ("gettext", gettext_default_));
107095
107113
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
107096
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(386);
107114
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(91);
107097
107115
  /*******************************************************************************
107098
107116
  *
107099
107117
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107723,7 +107741,7 @@ const TextCompression_default_ = TextCompression;
107723
107741
 
107724
107742
  /* harmony default export */ const Core_TextCompression = (x_ite_Namespace .add ("TextCompression", TextCompression_default_));
107725
107743
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
107726
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(386);
107744
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(91);
107727
107745
  /*******************************************************************************
107728
107746
  *
107729
107747
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -108370,7 +108388,7 @@ const RenderingProperties_default_ = RenderingProperties;
108370
108388
 
108371
108389
  /* harmony default export */ const Core_RenderingProperties = (x_ite_Namespace .add ("RenderingProperties", RenderingProperties_default_));
108372
108390
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
108373
- /* provided dependency */ var Notification_$ = __webpack_require__(386);
108391
+ /* provided dependency */ var Notification_$ = __webpack_require__(91);
108374
108392
  /*******************************************************************************
108375
108393
  *
108376
108394
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -108492,8 +108510,8 @@ const Notification_default_ = Notification;
108492
108510
 
108493
108511
  /* harmony default export */ const Core_Notification = (x_ite_Namespace .add ("Notification", Notification_default_));
108494
108512
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
108495
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(306);
108496
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(386);
108513
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(343);
108514
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(91);
108497
108515
  /*******************************************************************************
108498
108516
  *
108499
108517
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -110036,7 +110054,6 @@ function X3DScene (browser)
110036
110054
 
110037
110055
  this .addChildObjects (Base_X3DConstants .outputOnly, "profile_changed", new x_ite_Fields .SFTime (),
110038
110056
  Base_X3DConstants .outputOnly, "metadata_changed", new x_ite_Fields .SFTime (),
110039
- Base_X3DConstants .outputOnly, "initLoadCount", new x_ite_Fields .SFInt32 (),
110040
110057
  Base_X3DConstants .outputOnly, "loadCount", new x_ite_Fields .SFInt32 ())
110041
110058
 
110042
110059
  this [_specificationVersion] = LATEST_VERSION;
@@ -110964,14 +110981,6 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
110964
110981
  scene .addLoadingObject (object);
110965
110982
  }
110966
110983
  },
110967
- addInitLoadCount (node)
110968
- {
110969
- this ._initLoadCount = this ._initLoadCount .getValue () + 1;
110970
- },
110971
- removeInitLoadCount (node)
110972
- {
110973
- this ._initLoadCount = this ._initLoadCount .getValue () - 1;
110974
- },
110975
110984
  getLoadingObjects ()
110976
110985
  {
110977
110986
  return this [_loadingObjects];
@@ -111228,7 +111237,7 @@ const DataStorage_default_ = DataStorage;
111228
111237
 
111229
111238
  /* harmony default export */ const Utility_DataStorage = (x_ite_Namespace .add ("DataStorage", DataStorage_default_));
111230
111239
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
111231
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(386);
111240
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(91);
111232
111241
  /*******************************************************************************
111233
111242
  *
111234
111243
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -113839,8 +113848,8 @@ const X3DViewer_default_ = X3DViewer;
113839
113848
 
113840
113849
  /* harmony default export */ const Navigation_X3DViewer = (x_ite_Namespace .add ("X3DViewer", X3DViewer_default_));
113841
113850
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
113842
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(336);
113843
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(386);
113851
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(283);
113852
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(91);
113844
113853
  /*******************************************************************************
113845
113854
  *
113846
113855
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114755,8 +114764,8 @@ const ExamineViewer_default_ = ExamineViewer;
114755
114764
 
114756
114765
  /* harmony default export */ const Navigation_ExamineViewer = (x_ite_Namespace .add ("ExamineViewer", ExamineViewer_default_));
114757
114766
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
114758
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(336);
114759
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(386);
114767
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(283);
114768
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(91);
114760
114769
  /*******************************************************************************
114761
114770
  *
114762
114771
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115771,8 +115780,8 @@ const FlyViewer_default_ = FlyViewer;
115771
115780
 
115772
115781
  /* harmony default export */ const Navigation_FlyViewer = (x_ite_Namespace .add ("FlyViewer", FlyViewer_default_));
115773
115782
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
115774
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(336);
115775
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(386);
115783
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(283);
115784
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(91);
115776
115785
  /*******************************************************************************
115777
115786
  *
115778
115787
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116101,8 +116110,8 @@ const NoneViewer_default_ = NoneViewer;
116101
116110
 
116102
116111
  /* harmony default export */ const Navigation_NoneViewer = (x_ite_Namespace .add ("NoneViewer", NoneViewer_default_));
116103
116112
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
116104
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(336);
116105
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(386);
116113
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(283);
116114
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(91);
116106
116115
  /*******************************************************************************
116107
116116
  *
116108
116117
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -117247,8 +117256,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
117247
117256
 
117248
117257
  /* harmony default export */ const Picking_X3DPickingContext = (x_ite_Namespace .add ("X3DPickingContext", X3DPickingContext_default_));
117249
117258
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
117250
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(336);
117251
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(386);
117259
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(283);
117260
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(91);
117252
117261
  /*******************************************************************************
117253
117262
  *
117254
117263
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118695,7 +118704,7 @@ const Lock_default_ = Lock;
118695
118704
 
118696
118705
  /* harmony default export */ const Utility_Lock = (x_ite_Namespace .add ("Lock", Lock_default_));
118697
118706
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
118698
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(386);
118707
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(91);
118699
118708
  /*******************************************************************************
118700
118709
  *
118701
118710
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -119585,7 +119594,7 @@ Object .assign (X3DShadersContext .prototype,
119585
119594
  .set (gl .POINTS, gl .POINTS)
119586
119595
  .set (gl .LINES, gl .LINES)
119587
119596
  .set (gl .TRIANGLES, gl .TRIANGLES);
119588
-
119597
+
119589
119598
  break;
119590
119599
  }
119591
119600
  }
@@ -119604,7 +119613,7 @@ Object .assign (X3DShadersContext .prototype,
119604
119613
  version = gl .getVersion ();
119605
119614
 
119606
119615
  const vertexShader = new Shaders_ShaderPart (this .getPrivateScene ());
119607
- vertexShader ._url .push (encodeURI (vs .startsWith ("data:") ? vs : "data:x-shader/x-vertex," + Shaders_ShaderRegistry .vertex [version] [vs]));
119616
+ vertexShader ._url .push (encodeURI (vs .startsWith ("data:") ? vs : `data:x-shader/x-vertex,${Shaders_ShaderRegistry .vertex [version] [vs]}`));
119608
119617
  vertexShader .setPrivate (true);
119609
119618
  vertexShader .setName (`${name}VertexShader`);
119610
119619
  vertexShader .setOptions (options);
@@ -119612,7 +119621,7 @@ Object .assign (X3DShadersContext .prototype,
119612
119621
 
119613
119622
  const fragmentShader = new Shaders_ShaderPart (this .getPrivateScene ());
119614
119623
  fragmentShader ._type = "FRAGMENT";
119615
- fragmentShader ._url .push (encodeURI (fs .startsWith ("data:") ? fs : "data:x-shader/x-fragment," + Shaders_ShaderRegistry .fragment [version] [fs]));
119624
+ fragmentShader ._url .push (encodeURI (fs .startsWith ("data:") ? fs : `data:x-shader/x-fragment,${Shaders_ShaderRegistry .fragment [version] [fs]}`));
119616
119625
  fragmentShader .setPrivate (true);
119617
119626
  fragmentShader .setName (`${name}FragmentShader`);
119618
119627
  fragmentShader .setOptions (options);
@@ -120018,7 +120027,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
120018
120027
 
120019
120028
  /* harmony default export */ const Sound_X3DSoundContext = (x_ite_Namespace .add ("X3DSoundContext", X3DSoundContext_default_));
120020
120029
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
120021
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(386);
120030
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(91);
120022
120031
  const KTXDecoder_default_ = class KTXDecoder
120023
120032
  {
120024
120033
  constructor (gl, externalKtxlib, scriptDir)
@@ -121249,6 +121258,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowserContext .prototype, Base_X3DBa
121249
121258
  },
121250
121259
  setExecutionContext (executionContext)
121251
121260
  {
121261
+ this .getDefaultScene () .setExecutionContext (executionContext);
121262
+
121252
121263
  this [_world] = new Execution_X3DWorld (executionContext);
121253
121264
  this [_world] .setup ();
121254
121265
  },
@@ -121595,7 +121606,7 @@ const Components_default_ = Components;
121595
121606
 
121596
121607
  /* harmony default export */ const x_ite_Components = (x_ite_Namespace .add ("Components", Components_default_));
121597
121608
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
121598
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(386);
121609
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(91);
121599
121610
  /*******************************************************************************
121600
121611
  * MIT License
121601
121612
  *
@@ -122861,7 +122872,7 @@ const FieldTypes_default_ = new Configuration_FieldTypesArray (Object .values (x
122861
122872
 
122862
122873
  /* harmony default export */ const FieldTypes = (x_ite_Namespace .add ("FieldTypes", FieldTypes_default_));
122863
122874
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
122864
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(386);
122875
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(91);
122865
122876
  /*******************************************************************************
122866
122877
  *
122867
122878
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -123928,7 +123939,7 @@ const X3DBrowser_default_ = X3DBrowser;
123928
123939
 
123929
123940
  /* harmony default export */ const Browser_X3DBrowser = (x_ite_Namespace .add ("X3DBrowser", X3DBrowser_default_));
123930
123941
  ;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
123931
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(386);
123942
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(91);
123932
123943
  /*******************************************************************************
123933
123944
  *
123934
123945
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -124195,8 +124206,8 @@ const QuickSort_default_ = QuickSort;
124195
124206
 
124196
124207
  /* harmony default export */ const Algorithms_QuickSort = (x_ite_Namespace .add ("QuickSort", QuickSort_default_));
124197
124208
  ;// CONCATENATED MODULE: ./src/lib/jquery.js
124198
- /* provided dependency */ var jquery_$ = __webpack_require__(386);
124199
- /* provided dependency */ var pako = __webpack_require__(514);
124209
+ /* provided dependency */ var jquery_$ = __webpack_require__(91);
124210
+ /* provided dependency */ var pako = __webpack_require__(483);
124200
124211
  Object .assign (jquery_$,
124201
124212
  {
124202
124213
  decodeText (input)
@@ -124273,13 +124284,13 @@ const jquery_default_ = jquery_$;
124273
124284
 
124274
124285
  /* harmony default export */ const jquery = (x_ite_Namespace .add ("jquery", jquery_default_));
124275
124286
  ;// CONCATENATED MODULE: ./src/lib/libtess.js
124276
- /* provided dependency */ var libtess_libtess = __webpack_require__(475);
124287
+ /* provided dependency */ var libtess_libtess = __webpack_require__(744);
124277
124288
  const libtess_default_ = libtess_libtess;
124278
124289
  ;
124279
124290
 
124280
124291
  /* harmony default export */ const lib_libtess = (x_ite_Namespace .add ("libtess", libtess_default_));
124281
124292
  ;// CONCATENATED MODULE: ./src/x_ite/X3D.js
124282
- /* provided dependency */ var X3D_$ = __webpack_require__(386);
124293
+ /* provided dependency */ var X3D_$ = __webpack_require__(91);
124283
124294
  /*******************************************************************************
124284
124295
  *
124285
124296
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -124583,7 +124594,7 @@ x_ite_Namespace, x_ite_Namespace .Fields,
124583
124594
 
124584
124595
  // Assign X3D to global namespace.
124585
124596
 
124586
- window [Symbol .for ("X_ITE.X3D-10.5.0")] = x_ite_X3D;
124597
+ window [Symbol .for ("X_ITE.X3D-10.5.2")] = x_ite_X3D;
124587
124598
 
124588
124599
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
124589
124600