x_ite 8.6.23 → 8.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/README.md +2 -0
  2. package/dist/assets/components/Annotation.js +13 -13
  3. package/dist/assets/components/Annotation.min.js +1 -1
  4. package/dist/assets/components/CADGeometry.js +13 -13
  5. package/dist/assets/components/CADGeometry.min.js +1 -1
  6. package/dist/assets/components/CubeMapTexturing.js +34 -39
  7. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  8. package/dist/assets/components/DIS.js +13 -13
  9. package/dist/assets/components/DIS.min.js +1 -1
  10. package/dist/assets/components/EventUtilities.js +9 -9
  11. package/dist/assets/components/EventUtilities.min.js +1 -1
  12. package/dist/assets/components/Geometry2D.js +19 -19
  13. package/dist/assets/components/Geometry2D.min.js +1 -1
  14. package/dist/assets/components/Geospatial.js +33 -33
  15. package/dist/assets/components/Geospatial.min.js +1 -1
  16. package/dist/assets/components/HAnim.js +18 -18
  17. package/dist/assets/components/HAnim.min.js +1 -1
  18. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  19. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  20. package/dist/assets/components/Layout.js +27 -27
  21. package/dist/assets/components/Layout.min.js +1 -1
  22. package/dist/assets/components/NURBS.js +32 -32
  23. package/dist/assets/components/NURBS.min.js +1 -1
  24. package/dist/assets/components/ParticleSystems.js +22 -22
  25. package/dist/assets/components/ParticleSystems.min.js +1 -1
  26. package/dist/assets/components/Picking.js +26 -26
  27. package/dist/assets/components/Picking.min.js +1 -1
  28. package/dist/assets/components/RigidBodyPhysics.js +20 -20
  29. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  30. package/dist/assets/components/Scripting.js +28 -28
  31. package/dist/assets/components/Scripting.min.js +1 -1
  32. package/dist/assets/components/Text.js +24 -24
  33. package/dist/assets/components/Text.min.js +1 -1
  34. package/dist/assets/components/TextureProjector.js +14 -14
  35. package/dist/assets/components/TextureProjector.min.js +1 -1
  36. package/dist/assets/components/Texturing3D.js +1116 -1685
  37. package/dist/assets/components/Texturing3D.min.js +1 -1
  38. package/dist/assets/components/VolumeRendering.js +25 -25
  39. package/dist/assets/components/VolumeRendering.min.js +1 -1
  40. package/dist/assets/components/X_ITE.js +9 -9
  41. package/dist/assets/components/X_ITE.min.js +1 -1
  42. package/dist/x_ite.css +1 -1
  43. package/dist/x_ite.js +313 -271
  44. package/dist/x_ite.min.js +1 -1
  45. package/dist/x_ite.zip +0 -0
  46. package/docs/_config.yml +1 -1
  47. package/docs/_posts/accessing-the-external-browser.md +1 -1
  48. package/docs/_posts/components/Geospatial/GeoViewpoint.md +41 -0
  49. package/docs/_posts/components/Navigation/OrthoViewpoint.md +41 -0
  50. package/docs/_posts/components/Navigation/Viewpoint.md +41 -0
  51. package/docs/_posts/components/Networking/Inline.md +1 -1
  52. package/docs/_posts/components/X_ITE/BlendMode.md +1 -1
  53. package/docs/_posts/getting-started.md +4 -1
  54. package/docs/_posts/glossary.md +3 -3
  55. package/docs/_posts/laboratory/x3d-file-converter.md +1 -1
  56. package/docs/_posts/reference/browser-services.md +48 -20
  57. package/docs/_posts/reference/field-services-and-objects.md +23 -23
  58. package/docs/_posts/reference/scene-services.md +1 -1
  59. package/docs/_posts/supported-nodes.md +1 -1
  60. package/docs/_posts/tutorials/basic-nodes.md +1 -1
  61. package/docs/_posts/tutorials/building-a-x3d-world.md +1 -1
  62. package/docs/_posts/tutorials/building-primitive-shapes.md +1 -1
  63. package/docs/_posts/tutorials/increasing-rendering-speed.md +1 -1
  64. package/docs/_posts/tutorials/introducing-x3d.md +1 -1
  65. package/docs/_posts/tutorials/overview.md +1 -1
  66. package/docs/_posts/what's-new.md +11 -1
  67. package/package.json +4 -4
  68. package/src/x_ite/Base/X3DBaseNode.js +2 -1
  69. package/src/x_ite/Base/X3DField.js +4 -4
  70. package/src/x_ite/Base/X3DFieldDefinition.js +7 -4
  71. package/src/x_ite/Browser/Core/BrowserOptions.js +12 -4
  72. package/src/x_ite/Browser/Core/X3DCoreContext.js +79 -31
  73. package/src/x_ite/Browser/NURBS/NURBS.js +3 -3
  74. package/src/x_ite/Browser/Shaders/X3DShadersContext.js +2 -2
  75. package/src/x_ite/Browser/Texturing/X3DTexturingContext.js +10 -11
  76. package/src/x_ite/Browser/Time/X3DTimeContext.js +1 -5
  77. package/src/x_ite/Browser/VERSION.js +1 -1
  78. package/src/x_ite/Browser/X3DBrowser.js +58 -31
  79. package/src/x_ite/Browser/X3DBrowserContext.js +0 -4
  80. package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +9 -14
  81. package/src/x_ite/Components/EnvironmentalEffects/Background.js +6 -6
  82. package/src/x_ite/Components/EnvironmentalEffects/TextureBackground.js +14 -34
  83. package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +9 -36
  84. package/src/x_ite/Components/NURBS/NurbsCurve.js +1 -1
  85. package/src/x_ite/Components/NURBS/NurbsCurve2D.js +1 -1
  86. package/src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js +1 -1
  87. package/src/x_ite/Components/NURBS/NurbsPositionInterpolator.js +1 -1
  88. package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +1 -1
  89. package/src/x_ite/Components/Picking/LinePickSensor.js +2 -2
  90. package/src/x_ite/Components/Picking/PointPickSensor.js +2 -2
  91. package/src/x_ite/Components/Picking/PrimitivePickSensor.js +2 -2
  92. package/src/x_ite/Components/Picking/VolumePickSensor.js +2 -2
  93. package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +1 -1
  94. package/src/x_ite/Components/RigidBodyPhysics/MotorJoint.js +1 -1
  95. package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +1 -1
  96. package/src/x_ite/Components/Sound/ListenerPointSource.js +2 -1
  97. package/src/x_ite/Components/Sound/MicrophoneSource.js +2 -1
  98. package/src/x_ite/Components/Sound/OscillatorSource.js +2 -1
  99. package/src/x_ite/Components/Sound/StreamAudioSource.js +2 -1
  100. package/src/x_ite/Components/Sound/X3DSoundProcessingNode.js +3 -0
  101. package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +2 -2
  102. package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +2 -2
  103. package/src/x_ite/Components/VolumeRendering/VolumeData.js +2 -2
  104. package/src/x_ite/Configuration/ComponentInfo.js +7 -4
  105. package/src/x_ite/Configuration/ProfileInfo.js +7 -4
  106. package/src/x_ite/Configuration/UnitInfo.js +5 -5
  107. package/src/x_ite/Execution/X3DScene.js +4 -7
  108. package/src/x_ite/Fields/SFNode.js +5 -5
  109. package/src/x_ite/Fields.js +5 -4
  110. package/src/x_ite/Parser/JSONParser.js +1 -1
  111. package/src/x_ite/Parser/X3DParser.js +1 -1
  112. package/src/x_ite/X3DCanvasElement.js +4 -4
  113. package/src/x_ite.html +1 -1
  114. package/x_ite.min.html +1 -1
package/dist/x_ite.js CHANGED
@@ -1,4 +1,4 @@
1
- /* X_ITE v8.6.23 */(function webpackUniversalModuleDefinition(root, factory) {
1
+ /* X_ITE v8.7.0 */(function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
3
  module.exports = factory();
4
4
  else if(typeof define === 'function' && define.amd)
@@ -11,11 +11,11 @@
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
- /***/ 698:
14
+ /***/ 445:
15
15
  /***/ (function(module, exports, __webpack_require__) {
16
16
 
17
17
  "use strict";
18
- /* provided dependency */ var jQuery = __webpack_require__(16);
18
+ /* provided dependency */ var jQuery = __webpack_require__(909);
19
19
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;
20
20
 
21
21
  /**
@@ -387,10 +387,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;
387
387
 
388
388
  /***/ }),
389
389
 
390
- /***/ 871:
390
+ /***/ 475:
391
391
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
392
392
 
393
- /* provided dependency */ var jQuery = __webpack_require__(16);
393
+ /* provided dependency */ var jQuery = __webpack_require__(909);
394
394
  /**
395
395
  * @preserve jquery.fullscreen 1.1.5
396
396
  * https://github.com/code-lts/jquery-fullscreen-plugin
@@ -586,7 +586,7 @@ installFullScreenHandlers();
586
586
 
587
587
  /***/ }),
588
588
 
589
- /***/ 813:
589
+ /***/ 345:
590
590
  /***/ ((module, exports, __webpack_require__) => {
591
591
 
592
592
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -600,7 +600,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
600
600
  (function (factory) {
601
601
  if ( true ) {
602
602
  // AMD. Register as an anonymous module.
603
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(16)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
603
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(909)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
604
604
  __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
605
605
  (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
606
606
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
@@ -811,7 +811,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
811
811
 
812
812
  /***/ }),
813
813
 
814
- /***/ 16:
814
+ /***/ 909:
815
815
  /***/ (function(module, exports) {
816
816
 
817
817
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -11784,7 +11784,7 @@ return jQuery;
11784
11784
 
11785
11785
  /***/ }),
11786
11786
 
11787
- /***/ 34:
11787
+ /***/ 798:
11788
11788
  /***/ ((module) => {
11789
11789
 
11790
11790
  /**
@@ -16563,7 +16563,7 @@ if (true) {
16563
16563
 
16564
16564
  /***/ }),
16565
16565
 
16566
- /***/ 582:
16566
+ /***/ 548:
16567
16567
  /***/ (function(__unused_webpack_module, exports) {
16568
16568
 
16569
16569
 
@@ -19808,7 +19808,7 @@ if (true) {
19808
19808
 
19809
19809
  /***/ }),
19810
19810
 
19811
- /***/ 748:
19811
+ /***/ 688:
19812
19812
  /***/ (function(module, exports) {
19813
19813
 
19814
19814
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
@@ -22728,10 +22728,13 @@ x_ite_Namespace.set ("x_ite/Base/X3DEventObject", X3DEventObject_default_);
22728
22728
 
22729
22729
  function X3DFieldDefinition (accessType, name, value)
22730
22730
  {
22731
- this .accessType = accessType;
22732
- this .dataType = value .getType ();
22733
- this .name = name;
22734
- this .value = value;
22731
+ Object .defineProperties (this,
22732
+ {
22733
+ accessType: { value: accessType, enumerable: true },
22734
+ dataType: { value: value .getType (), enumerable: true },
22735
+ name: { value: name, enumerable: true },
22736
+ value: { value: value },
22737
+ });
22735
22738
  }
22736
22739
 
22737
22740
  X3DFieldDefinition .prototype = Object .assign (Object .create (Base_X3DObject.prototype),
@@ -23338,15 +23341,15 @@ X3DField .prototype = Object .assign (Object .create (Base_X3DChildObject.protot
23338
23341
  },
23339
23342
  isInitializable: function ()
23340
23343
  {
23341
- return this [_accessType] & Base_X3DConstants.initializeOnly;
23344
+ return !! (this [_accessType] & Base_X3DConstants.initializeOnly);
23342
23345
  },
23343
23346
  isInput: function ()
23344
23347
  {
23345
- return this [_accessType] & Base_X3DConstants.inputOnly;
23348
+ return !! (this [_accessType] & Base_X3DConstants.inputOnly);
23346
23349
  },
23347
23350
  isOutput: function ()
23348
23351
  {
23349
- return this [_accessType] & Base_X3DConstants.outputOnly;
23352
+ return !! (this [_accessType] & Base_X3DConstants.outputOnly);
23350
23353
  },
23351
23354
  isReadable: function ()
23352
23355
  {
@@ -23354,7 +23357,7 @@ X3DField .prototype = Object .assign (Object .create (Base_X3DChildObject.protot
23354
23357
  },
23355
23358
  isWritable: function ()
23356
23359
  {
23357
- return this [_accessType] !== Base_X3DConstants.initializeOnly;
23360
+ return this [_accessType] !== Base_X3DConstants.outputOnly;
23358
23361
  },
23359
23362
  setUnit: function (value)
23360
23363
  {
@@ -30338,7 +30341,7 @@ const SFNode_handler =
30338
30341
  {
30339
30342
  try
30340
30343
  {
30341
- return Boolean (target .getValue () .getField (key));
30344
+ return !! target .getValue () .getField (key);
30342
30345
  }
30343
30346
  catch (error)
30344
30347
  {
@@ -30524,7 +30527,7 @@ SFNode .prototype = Object .assign (Object .create (Base_X3DField.prototype),
30524
30527
 
30525
30528
  throw new Error ("SFNode.getFieldDefinitions: node is null.");
30526
30529
  },
30527
- addFieldCallback: function (name, string, object)
30530
+ addFieldCallback: function (name, key, object)
30528
30531
  {
30529
30532
  const target = this [SFNode_target];
30530
30533
 
@@ -30539,13 +30542,13 @@ SFNode .prototype = Object .assign (Object .create (Base_X3DField.prototype),
30539
30542
  const value = target .getValue ();
30540
30543
 
30541
30544
  if (value)
30542
- return value .getField (name) .addFieldCallback (string, object);
30545
+ return value .getField (name) .addFieldCallback (key, object);
30543
30546
 
30544
30547
  throw new Error ("SFNode.addFieldCallback: node is null.");
30545
30548
  }
30546
30549
  }
30547
30550
  },
30548
- removeFieldCallback: function (name, string)
30551
+ removeFieldCallback: function (name, key)
30549
30552
  {
30550
30553
  const target = this [SFNode_target];
30551
30554
 
@@ -30560,7 +30563,7 @@ SFNode .prototype = Object .assign (Object .create (Base_X3DField.prototype),
30560
30563
  const value = target .getValue ();
30561
30564
 
30562
30565
  if (value)
30563
- return value .getField (name) .removeFieldCallback (string);
30566
+ return value .getField (name) .removeFieldCallback (key);
30564
30567
 
30565
30568
  throw new Error ("SFNode.removeFieldCallback: node is null.");
30566
30569
  }
@@ -34254,8 +34257,7 @@ x_ite_Namespace.set ("x_ite/Fields/SFImage", SFImage_default_);
34254
34257
 
34255
34258
 
34256
34259
 
34257
- const Fields = Object .assign (
34258
- {
34260
+ const Fields = {
34259
34261
  SFBool: Fields_SFBool,
34260
34262
  SFColor: Fields_SFColor,
34261
34263
  SFColorRGBA: Fields_SFColorRGBA,
@@ -34277,9 +34279,11 @@ const Fields = Object .assign (
34277
34279
  SFVec3f: Fields_SFVec3.SFVec3f,
34278
34280
  SFVec4d: Fields_SFVec4.SFVec4d,
34279
34281
  SFVec4f: Fields_SFVec4.SFVec4f,
34282
+
34280
34283
  VrmlMatrix: Fields_SFMatrix4.VrmlMatrix,
34281
- },
34282
- Fields_ArrayFields);
34284
+
34285
+ ... Fields_ArrayFields
34286
+ };
34283
34287
 
34284
34288
  const Fields_default_ = Fields;
34285
34289
  ;
@@ -34673,6 +34677,8 @@ X3DBaseNode .prototype = Object .assign (Object .create (Base_X3DEventObject.pro
34673
34677
  {
34674
34678
  get: function () { return field; },
34675
34679
  set: function (value) { field .setValue (value); },
34680
+ configurable: true,
34681
+ enumerable: false,
34676
34682
  });
34677
34683
 
34678
34684
  if (!this .isPrivate ())
@@ -34727,7 +34733,6 @@ X3DBaseNode .prototype = Object .assign (Object .create (Base_X3DEventObject.pro
34727
34733
  {
34728
34734
  get: function () { return field; },
34729
34735
  set: function (value) { field .setValue (value); },
34730
- enumerable: true,
34731
34736
  });
34732
34737
 
34733
34738
  if (field .isInitializable ())
@@ -34998,7 +35003,7 @@ x_ite_Namespace.set ("x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
34998
35003
  *
34999
35004
  ******************************************************************************/
35000
35005
 
35001
- const VERSION_default_ = "8.6.23";
35006
+ const VERSION_default_ = "8.7.0";
35002
35007
  ;
35003
35008
 
35004
35009
  x_ite_Namespace.set ("x_ite/Browser/VERSION", VERSION_default_);
@@ -35917,7 +35922,7 @@ const gettext_default_ = gettext;
35917
35922
  x_ite_Namespace.set ("locale/gettext", gettext_default_);
35918
35923
  /* harmony default export */ const locale_gettext = (gettext_default_);
35919
35924
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
35920
- /* provided dependency */ var $ = __webpack_require__(16);
35925
+ /* provided dependency */ var $ = __webpack_require__(909);
35921
35926
  /*******************************************************************************
35922
35927
  *
35923
35928
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -36415,7 +36420,7 @@ const TextureQuality_default_ = TextureQuality;
36415
36420
  x_ite_Namespace.set ("x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
36416
36421
  /* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
36417
36422
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
36418
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(16);
36423
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(909);
36419
36424
  /*******************************************************************************
36420
36425
  *
36421
36426
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -36498,7 +36503,7 @@ BrowserOptions .prototype = Object .assign (Object .create (Base_X3DBaseNode.pro
36498
36503
  new Base_X3DFieldDefinition (Base_X3DConstants.inputOutput, "Antialiased", new x_ite_Fields.SFBool (true)),
36499
36504
  new Base_X3DFieldDefinition (Base_X3DConstants.inputOutput, "TextureQuality", new x_ite_Fields.SFString ("MEDIUM")),
36500
36505
  new Base_X3DFieldDefinition (Base_X3DConstants.inputOutput, "PrimitiveQuality", new x_ite_Fields.SFString ("MEDIUM")),
36501
- new Base_X3DFieldDefinition (Base_X3DConstants.inputOutput, "QualityWhenMoving", new x_ite_Fields.SFString ("MEDIUM")),
36506
+ new Base_X3DFieldDefinition (Base_X3DConstants.inputOutput, "QualityWhenMoving", new x_ite_Fields.SFString ("SAME")),
36502
36507
  new Base_X3DFieldDefinition (Base_X3DConstants.inputOutput, "Shading", new x_ite_Fields.SFString ("GOURAUD")),
36503
36508
  new Base_X3DFieldDefinition (Base_X3DConstants.inputOutput, "MotionBlur", new x_ite_Fields.SFBool ()),
36504
36509
  new Base_X3DFieldDefinition (Base_X3DConstants.inputOutput, "Cache", new x_ite_Fields.SFBool (true)),
@@ -36549,6 +36554,12 @@ BrowserOptions .prototype = Object .assign (Object .create (Base_X3DBaseNode.pro
36549
36554
  this ._Multisampling .addInterest ("set_multisampling__", this);
36550
36555
  this ._Timings .addInterest ("set_timings__", this);
36551
36556
 
36557
+ this .set_antialiased__ (this ._Antialiased);
36558
+ this .set_shading__ (this ._Shading);
36559
+ this .set_contentScale__ (this ._ContentScale);
36560
+ this .set_logarithmicDepthBuffer__ (this ._LogarithmicDepthBuffer);
36561
+ this .set_multisampling__ (this ._Multisampling);
36562
+
36552
36563
  this .configure ();
36553
36564
  },
36554
36565
  configure: (function ()
@@ -36586,9 +36597,11 @@ BrowserOptions .prototype = Object .assign (Object .create (Base_X3DBaseNode.pro
36586
36597
  attribute = BrowserOptions_$.toLowerCaseFirst (name),
36587
36598
  value = browser .getElement () .attr (attribute);
36588
36599
 
36589
- browser .attributeChangedCallback (attribute, null, value);
36590
-
36591
- continue;
36600
+ if (value !== undefined)
36601
+ {
36602
+ browser .attributeChangedCallback (attribute, null, value);
36603
+ continue;
36604
+ }
36592
36605
  }
36593
36606
 
36594
36607
  if (restorable .has (name))
@@ -36951,7 +36964,7 @@ const RenderingProperties_default_ = RenderingProperties;
36951
36964
  x_ite_Namespace.set ("x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
36952
36965
  /* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
36953
36966
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
36954
- /* provided dependency */ var Notification_$ = __webpack_require__(16);
36967
+ /* provided dependency */ var Notification_$ = __webpack_require__(909);
36955
36968
  /*******************************************************************************
36956
36969
  *
36957
36970
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -37073,8 +37086,8 @@ const Notification_default_ = Notification;
37073
37086
  x_ite_Namespace.set ("x_ite/Browser/Core/Notification", Notification_default_);
37074
37087
  /* harmony default export */ const Core_Notification = (Notification_default_);
37075
37088
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
37076
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(871);
37077
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(16);
37089
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(475);
37090
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(909);
37078
37091
  /*******************************************************************************
37079
37092
  *
37080
37093
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -42129,7 +42142,7 @@ const X3DUrlObject_default_ = X3DUrlObject;
42129
42142
  x_ite_Namespace.set ("x_ite/Components/Networking/X3DUrlObject", X3DUrlObject_default_);
42130
42143
  /* harmony default export */ const Networking_X3DUrlObject = (X3DUrlObject_default_);
42131
42144
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
42132
- /* provided dependency */ var X3DParser_$ = __webpack_require__(16);
42145
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(909);
42133
42146
  /*******************************************************************************
42134
42147
  *
42135
42148
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -42220,7 +42233,7 @@ X3DParser .prototype = {
42220
42233
  },
42221
42234
  isInsideProtoDefinition: function ()
42222
42235
  {
42223
- return Boolean (this .prototypes .length);
42236
+ return !! this .prototypes .length;
42224
42237
  },
42225
42238
  loadComponents: function ()
42226
42239
  {
@@ -45311,7 +45324,7 @@ const VRMLParser_default_ = VRMLParser;
45311
45324
  x_ite_Namespace.set ("x_ite/Parser/VRMLParser", VRMLParser_default_);
45312
45325
  /* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
45313
45326
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
45314
- /* provided dependency */ var XMLParser_$ = __webpack_require__(16);
45327
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(909);
45315
45328
  /*******************************************************************************
45316
45329
  *
45317
45330
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -46792,7 +46805,7 @@ JSONParser .prototype = Object .assign (Object .create (Parser_X3DParser.prototy
46792
46805
  }
46793
46806
  else
46794
46807
  {
46795
- if (key === "connect" || key === "fieldValue" || key === "field" || key === "meta" || key === "component")
46808
+ if (key === "connect" || key === "fieldValue" || key === "field" || key === "meta" || key === "component" || key === "unit")
46796
46809
  {
46797
46810
  for (const childkey in object [key])
46798
46811
  {
@@ -47348,7 +47361,7 @@ const URLs_default_ = URLs;
47348
47361
  x_ite_Namespace.set ("x_ite/Browser/Networking/URLs", URLs_default_);
47349
47362
  /* harmony default export */ const Networking_URLs = (URLs_default_);
47350
47363
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
47351
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(16);
47364
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(909);
47352
47365
  /*******************************************************************************
47353
47366
  *
47354
47367
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -49814,7 +49827,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
49814
49827
  x_ite_Namespace.set ("x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
49815
49828
  /* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
49816
49829
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
49817
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(16);
49830
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(909);
49818
49831
  /*******************************************************************************
49819
49832
  *
49820
49833
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -49967,7 +49980,7 @@ const GLB2Parser_default_ = GLB2Parser;
49967
49980
  x_ite_Namespace.set ("x_ite/Parser/GLB2Parser", GLB2Parser_default_);
49968
49981
  /* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
49969
49982
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
49970
- /* provided dependency */ var OBJParser_$ = __webpack_require__(16);
49983
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(909);
49971
49984
  /*******************************************************************************
49972
49985
  *
49973
49986
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -52457,8 +52470,8 @@ const MatrixStack_default_ = MatrixStack;
52457
52470
  x_ite_Namespace.set ("standard/Math/Utility/MatrixStack", MatrixStack_default_);
52458
52471
  /* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
52459
52472
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
52460
- /* provided dependency */ var SVGParser_$ = __webpack_require__(16);
52461
- /* provided dependency */ var libtess = __webpack_require__(34);
52473
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(909);
52474
+ /* provided dependency */ var libtess = __webpack_require__(798);
52462
52475
  /*******************************************************************************
52463
52476
  *
52464
52477
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -55227,7 +55240,7 @@ const SVGParser_default_ = SVGParser;
55227
55240
  x_ite_Namespace.set ("x_ite/Parser/SVGParser", SVGParser_default_);
55228
55241
  /* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
55229
55242
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
55230
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(16);
55243
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(909);
55231
55244
  /*******************************************************************************
55232
55245
  *
55233
55246
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -55556,7 +55569,7 @@ const Plane3_default_ = Plane3;
55556
55569
  x_ite_Namespace.set ("standard/Math/Geometry/Plane3", Plane3_default_);
55557
55570
  /* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
55558
55571
  ;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
55559
- /* provided dependency */ var Triangle3_libtess = __webpack_require__(34);
55572
+ /* provided dependency */ var Triangle3_libtess = __webpack_require__(798);
55560
55573
  /*******************************************************************************
55561
55574
  *
55562
55575
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -61801,50 +61814,23 @@ X3DBackgroundNode .prototype = Object .assign (Object .create (Core_X3DBindableN
61801
61814
 
61802
61815
  return false;
61803
61816
  },
61804
- set_frontTexture__: function (value)
61805
- {
61806
- this .updateTexture (0, value);
61807
- },
61808
- set_backTexture__: function (value)
61809
- {
61810
- this .updateTexture (1, value);
61811
- },
61812
- set_leftTexture__: function (value)
61813
- {
61814
- this .updateTexture (2, value);
61815
- },
61816
- set_rightTexture__: function (value)
61817
- {
61818
- this .updateTexture (3, value);
61819
- },
61820
- set_topTexture__: function (value)
61821
- {
61822
- this .updateTexture (4, value);
61823
- },
61824
- set_bottomTexture__: function (value)
61817
+ set_texture__: function (textureNode, index)
61825
61818
  {
61826
- this .updateTexture (5, value);
61827
- },
61828
- updateTexture: function (index, textureNode)
61829
- {
61830
- this .textureNodes [index] ?._loadState .removeInterest ("setTextureBit", this);
61819
+ this .textureNodes [index] ?._loadState .removeInterest ("set_loadState__", this);
61831
61820
 
61832
61821
  this .textureNodes [index] = textureNode;
61833
61822
 
61834
- if (textureNode)
61835
- {
61836
- textureNode ._loadState .addInterest ("setTextureBit", this, index, textureNode);
61823
+ textureNode ?._loadState .addInterest ("set_loadState__", this, textureNode, index);
61837
61824
 
61838
- this .setTextureBit (index, textureNode, textureNode ._loadState);
61839
- }
61840
- else
61841
- {
61842
- this .textureBits .set (index, false);
61843
- }
61825
+ this .set_loadState__ (textureNode, index);
61826
+ },
61827
+ set_loadState__: function (textureNode, index)
61828
+ {
61829
+ this .setTextureBit (index, textureNode, textureNode ?.checkLoadState () ?? Base_X3DConstants.NOT_STARTED);
61844
61830
  },
61845
61831
  setTextureBit: function (bit, textureNode, loadState)
61846
61832
  {
61847
- this .textureBits .set (bit, loadState .getValue () === Base_X3DConstants.COMPLETE_STATE || textureNode .getWidth ());
61833
+ this .textureBits .set (bit, loadState === Base_X3DConstants.COMPLETE_STATE || textureNode ?.getWidth ());
61848
61834
  },
61849
61835
  getColor: function (theta, color, angle)
61850
61836
  {
@@ -62867,7 +62853,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
62867
62853
  x_ite_Namespace.set ("x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
62868
62854
  /* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
62869
62855
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
62870
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(16);
62856
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(909);
62871
62857
  /*******************************************************************************
62872
62858
  *
62873
62859
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -63294,12 +63280,12 @@ Background .prototype = Object .assign (Object .create (EnvironmentalEffects_X3D
63294
63280
  topTexture .setup ();
63295
63281
  bottomTexture .setup ();
63296
63282
 
63297
- this .set_frontTexture__ (frontTexture);
63298
- this .set_backTexture__ (backTexture);
63299
- this .set_leftTexture__ (leftTexture);
63300
- this .set_rightTexture__ (rightTexture);
63301
- this .set_topTexture__ (topTexture);
63302
- this .set_bottomTexture__ (bottomTexture);
63283
+ this .set_texture__ (frontTexture, 0);
63284
+ this .set_texture__ (backTexture, 1);
63285
+ this .set_texture__ (leftTexture, 2);
63286
+ this .set_texture__ (rightTexture, 3);
63287
+ this .set_texture__ (topTexture, 4);
63288
+ this .set_texture__ (bottomTexture, 5);
63303
63289
  }
63304
63290
  });
63305
63291
 
@@ -67207,7 +67193,7 @@ const X3DWorld_default_ = X3DWorld;
67207
67193
  x_ite_Namespace.set ("x_ite/Execution/X3DWorld", X3DWorld_default_);
67208
67194
  /* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
67209
67195
  ;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
67210
- /* provided dependency */ var FileLoader_$ = __webpack_require__(16);
67196
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(909);
67211
67197
  /*******************************************************************************
67212
67198
  *
67213
67199
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -69384,7 +69370,7 @@ const X3DExecutionContext_default_ = X3DExecutionContext;
69384
69370
  x_ite_Namespace.set ("x_ite/Execution/X3DExecutionContext", X3DExecutionContext_default_);
69385
69371
  /* harmony default export */ const Execution_X3DExecutionContext = (X3DExecutionContext_default_);
69386
69372
  ;// CONCATENATED MODULE: ./src/x_ite/Configuration/ComponentInfo.js
69387
- /* provided dependency */ var ComponentInfo_$ = __webpack_require__(16);
69373
+ /* provided dependency */ var ComponentInfo_$ = __webpack_require__(909);
69388
69374
  /*******************************************************************************
69389
69375
  *
69390
69376
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -69437,10 +69423,13 @@ x_ite_Namespace.set ("x_ite/Execution/X3DExecutionContext", X3DExecutionContext_
69437
69423
 
69438
69424
  function ComponentInfo ({ name, level, title, providerUrl, external = false, dependencies = [ ] })
69439
69425
  {
69440
- this .name = name;
69441
- this .level = level;
69442
- this .title = title;
69443
- this .providerUrl = providerUrl || Networking_URLs.getProviderUrl (external && name);
69426
+ Object .defineProperties (this,
69427
+ {
69428
+ name: { value: name, enumerable: true },
69429
+ level: { value: level, enumerable: true },
69430
+ title: { value: title, enumerable: true },
69431
+ providerUrl: { value: providerUrl || Networking_URLs.getProviderUrl (external && name), enumerable: true },
69432
+ });
69444
69433
 
69445
69434
  ComponentInfo_$.data (this, "external", external)
69446
69435
  ComponentInfo_$.data (this, "dependencies", dependencies)
@@ -69649,12 +69638,12 @@ x_ite_Namespace.set ("x_ite/Configuration/ComponentInfoArray", ComponentInfoArra
69649
69638
 
69650
69639
  function UnitInfo (category, name, conversionFactor)
69651
69640
  {
69652
- Object .defineProperty (this, "category", {
69653
- value: category,
69641
+ Object .defineProperties (this,
69642
+ {
69643
+ category: { value: category, enumerable: true },
69644
+ name: { value: name, enumerable: true },
69645
+ conversionFactor: { value: conversionFactor, enumerable: true },
69654
69646
  });
69655
-
69656
- this .name = name;
69657
- this .conversionFactor = conversionFactor;
69658
69647
  }
69659
69648
 
69660
69649
  UnitInfo .prototype = Object .assign (Object .create (Base_X3DObject.prototype),
@@ -70276,13 +70265,10 @@ X3DScene .prototype = Object .assign (Object .create (Execution_X3DExecutionCont
70276
70265
  {
70277
70266
  // Private function.
70278
70267
 
70279
- const unit = this [_units] .get (category);
70280
-
70281
- if (!unit)
70268
+ if (!this [_units] .has (category))
70282
70269
  return;
70283
70270
 
70284
- unit .name = String (name);
70285
- unit .conversionFactor = Number (conversionFactor);
70271
+ this [_units] .update (category, category, new Configuration_UnitInfo (category, String (name), Number (conversionFactor)));
70286
70272
 
70287
70273
  this ._units_changed = this .getBrowser () .getCurrentTime ();
70288
70274
  },
@@ -70858,9 +70844,9 @@ X3DScene .prototype = Object .assign (Object .create (Execution_X3DExecutionCont
70858
70844
 
70859
70845
  // Meta data
70860
70846
 
70861
- for (const [i, [key, values]] of [... this .getMetaDatas ()])
70847
+ for (const [i, [key, values]] of [... this .getMetaDatas ()] .entries ())
70862
70848
  {
70863
- for (const [j, value] of values)
70849
+ for (const [j, value] of values .entries ())
70864
70850
  {
70865
70851
  generator .string += generator .Indent ();
70866
70852
  generator .string += '{';
@@ -71401,7 +71387,7 @@ const DataStorage_default_ = DataStorage;
71401
71387
  x_ite_Namespace.set ("standard/Utility/DataStorage", DataStorage_default_);
71402
71388
  /* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
71403
71389
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
71404
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(16);
71390
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(909);
71405
71391
  /*******************************************************************************
71406
71392
  *
71407
71393
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -71517,10 +71503,10 @@ function X3DCoreContext (element)
71517
71503
  this [_localStorage] = new Utility_DataStorage (localStorage, "X_ITE.X3DBrowser(" + this [_instanceId] + ").");
71518
71504
  this [_mobile] = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i .test (navigator .userAgent);
71519
71505
 
71520
- this [_browserTimings] = new Core_BrowserTimings (this .getPrivateScene ());
71506
+ this [_renderingProperties] = new Core_RenderingProperties (this .getPrivateScene ());
71521
71507
  this [_browserOptions] = new Core_BrowserOptions (this .getPrivateScene ());
71522
71508
  this [_browserProperties] = new Core_BrowserProperties (this .getPrivateScene ());
71523
- this [_renderingProperties] = new Core_RenderingProperties (this .getPrivateScene ());
71509
+ this [_browserTimings] = new Core_BrowserTimings (this .getPrivateScene ());
71524
71510
  this [_notification] = new Core_Notification (this .getPrivateScene ());
71525
71511
  this [_contextMenu] = new Core_ContextMenu (this .getPrivateScene ());
71526
71512
 
@@ -71540,45 +71526,53 @@ X3DCoreContext .prototype =
71540
71526
  {
71541
71527
  // Setup browser nodes.
71542
71528
 
71543
- this [_browserTimings] .setup ();
71529
+ this [_renderingProperties] .setup ();
71544
71530
  this [_browserOptions] .setup ();
71545
71531
  this [_browserProperties] .setup ();
71546
- this [_renderingProperties] .setup ();
71532
+ this [_browserTimings] .setup ();
71547
71533
  this [_notification] .setup ();
71548
71534
  this [_contextMenu] .setup ();
71549
71535
 
71550
- // Define src and url property.
71536
+ // Define properties of X3DCanvasElement.
71551
71537
 
71552
- Object .defineProperty (this .getElement () .get (0), "src",
71538
+ Object .defineProperties (this .getElement () .get (0),
71553
71539
  {
71554
- get: () =>
71540
+ browser:
71555
71541
  {
71556
- return this .getExecutionContext () .getWorldURL ();
71542
+ value: this,
71543
+ enumerable: true,
71557
71544
  },
71558
- set: (value) =>
71545
+ src:
71559
71546
  {
71560
- this .loadURL (new x_ite_Fields.MFString (value), new x_ite_Fields.MFString ());
71561
- },
71562
- enumerable: true,
71563
- });
71564
-
71565
- Object .defineProperty (this .getElement () .get (0), "url",
71566
- {
71567
- get: () =>
71568
- {
71569
- return new x_ite_Fields.MFString (this .getExecutionContext () .getWorldURL ());
71547
+ get: () =>
71548
+ {
71549
+ return this .getExecutionContext () .getWorldURL ();
71550
+ },
71551
+ set: (value) =>
71552
+ {
71553
+ this .loadURL (new x_ite_Fields.MFString (value), new x_ite_Fields.MFString ());
71554
+ },
71555
+ enumerable: true,
71570
71556
  },
71571
- set: (value) =>
71557
+ url:
71572
71558
  {
71573
- this .loadURL (value, new x_ite_Fields.MFString ());
71559
+ get: () =>
71560
+ {
71561
+ return new x_ite_Fields.MFString (this .getExecutionContext () .getWorldURL ());
71562
+ },
71563
+ set: (value) =>
71564
+ {
71565
+ this .loadURL (value, new x_ite_Fields.MFString ());
71566
+ },
71567
+ enumerable: true,
71574
71568
  },
71575
- enumerable: true,
71576
71569
  });
71577
71570
 
71578
71571
  // Configure browser event handlers.
71579
71572
 
71580
- this .getElement () .on ("keydown.X3DCoreContext", this [_keydown] .bind (this));
71581
- this .getElement () .on ("keyup.X3DCoreContext", this [_keyup] .bind (this));
71573
+ this .getElement ()
71574
+ .on ("keydown.X3DCoreContext", this [_keydown] .bind (this))
71575
+ .on ("keyup.X3DCoreContext", this [_keyup] .bind (this));
71582
71576
  },
71583
71577
  getInstanceId: function ()
71584
71578
  {
@@ -71714,6 +71708,21 @@ X3DCoreContext .prototype =
71714
71708
  this .setBrowserOption ("Notifications", this .parseBooleanAttribute (newValue, true));
71715
71709
  break;
71716
71710
  }
71711
+ case "onerror":
71712
+ case "oninitialized":
71713
+ case "onshutdown":
71714
+ {
71715
+ try
71716
+ {
71717
+ this .getElement () [0] [name] = new Function ("event", newValue);
71718
+ }
71719
+ catch (error)
71720
+ {
71721
+ console .error (error);
71722
+ }
71723
+
71724
+ break;
71725
+ }
71717
71726
  case "splashScreen":
71718
71727
  case "splashscreen":
71719
71728
  {
@@ -71729,7 +71738,9 @@ X3DCoreContext .prototype =
71729
71738
  }
71730
71739
  case "src":
71731
71740
  {
71732
- this .loadURL (new x_ite_Fields.MFString (newValue), new x_ite_Fields.MFString ());
71741
+ if (newValue)
71742
+ this .loadURL (new x_ite_Fields.MFString (newValue), new x_ite_Fields.MFString ());
71743
+
71733
71744
  break;
71734
71745
  }
71735
71746
  case "timings":
@@ -71739,7 +71750,9 @@ X3DCoreContext .prototype =
71739
71750
  }
71740
71751
  case "url":
71741
71752
  {
71742
- this .loadURL (this .parseUrlAttribute (newValue), new x_ite_Fields.MFString ());
71753
+ if (newValue)
71754
+ this .loadURL (this .parseUrlAttribute (newValue), new x_ite_Fields.MFString ());
71755
+
71743
71756
  break;
71744
71757
  }
71745
71758
  }
@@ -71762,13 +71775,34 @@ X3DCoreContext .prototype =
71762
71775
 
71763
71776
  return url;
71764
71777
  },
71765
- callBrowserEventHandler: function (events)
71778
+ callBrowserEventHandler: (function ()
71766
71779
  {
71767
- const element = this .getElement ();
71780
+ const build_in = new Set (["error", "load"]);
71768
71781
 
71769
- for (const event of events .split (" "))
71770
- element .trigger (event);
71771
- },
71782
+ return function (events)
71783
+ {
71784
+ const element = this .getElement () [0];
71785
+
71786
+ for (const name of events .split (" "))
71787
+ {
71788
+ // Order is attribute, then dispatch.
71789
+
71790
+ const event = new CustomEvent (name);
71791
+
71792
+ try
71793
+ {
71794
+ if (!build_in .has (name))
71795
+ element [`on${name}`] ?.(event);
71796
+ }
71797
+ catch (error)
71798
+ {
71799
+ console .error (error);
71800
+ }
71801
+
71802
+ element .dispatchEvent (event);
71803
+ }
71804
+ };
71805
+ })(),
71772
71806
  getShiftKey: function ()
71773
71807
  {
71774
71808
  return this ._shiftKey .getValue ();
@@ -77462,8 +77496,8 @@ const OrientationChaser_default_ = OrientationChaser;
77462
77496
  x_ite_Namespace.set ("x_ite/Components/Followers/OrientationChaser", OrientationChaser_default_);
77463
77497
  /* harmony default export */ const Followers_OrientationChaser = (OrientationChaser_default_);
77464
77498
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
77465
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(813);
77466
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(16);
77499
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(345);
77500
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(909);
77467
77501
  /*******************************************************************************
77468
77502
  *
77469
77503
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -78327,8 +78361,8 @@ const ExamineViewer_default_ = ExamineViewer;
78327
78361
  x_ite_Namespace.set ("x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
78328
78362
  /* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
78329
78363
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
78330
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(813);
78331
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(16);
78364
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(345);
78365
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(909);
78332
78366
  /*******************************************************************************
78333
78367
  *
78334
78368
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -79276,8 +79310,8 @@ const FlyViewer_default_ = FlyViewer;
79276
79310
  x_ite_Namespace.set ("x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
79277
79311
  /* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
79278
79312
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
79279
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(813);
79280
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(16);
79313
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(345);
79314
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(909);
79281
79315
  /*******************************************************************************
79282
79316
  *
79283
79317
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -79586,8 +79620,8 @@ const NoneViewer_default_ = NoneViewer;
79586
79620
  x_ite_Namespace.set ("x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
79587
79621
  /* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
79588
79622
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
79589
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(813);
79590
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(16);
79623
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(345);
79624
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(909);
79591
79625
  /*******************************************************************************
79592
79626
  *
79593
79627
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -81219,8 +81253,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
81219
81253
  x_ite_Namespace.set ("x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
81220
81254
  /* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
81221
81255
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
81222
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(813);
81223
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(16);
81256
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(345);
81257
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(909);
81224
81258
  /*******************************************************************************
81225
81259
  *
81226
81260
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -82258,8 +82292,8 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
82258
82292
  x_ite_Namespace.set ("x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
82259
82293
  /* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
82260
82294
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
82261
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(16);
82262
- /* provided dependency */ var ResizeSensor = __webpack_require__(698);
82295
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(909);
82296
+ /* provided dependency */ var ResizeSensor = __webpack_require__(445);
82263
82297
  /*******************************************************************************
82264
82298
  *
82265
82299
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -88148,7 +88182,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
88148
88182
  x_ite_Namespace.set ("x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
88149
88183
  /* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
88150
88184
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
88151
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(16);
88185
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(909);
88152
88186
  /*******************************************************************************
88153
88187
  *
88154
88188
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -90925,7 +90959,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
90925
90959
  x_ite_Namespace.set ("x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
90926
90960
  /* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
90927
90961
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
90928
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(16);
90962
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(909);
90929
90963
  /*******************************************************************************
90930
90964
  *
90931
90965
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -91320,7 +91354,7 @@ X3DShadersContext .prototype =
91320
91354
  version = gl .getVersion ();
91321
91355
 
91322
91356
  const vertexShader = new Shaders_ShaderPart (this .getPrivateScene ());
91323
- vertexShader ._url .push (vs .startsWith ("data:") ? vs : "data:x-shader/x-vertex," + Shaders_Shaders.vertex [version] [vs]);
91357
+ vertexShader ._url .push (encodeURI (vs .startsWith ("data:") ? vs : "data:x-shader/x-vertex," + Shaders_Shaders.vertex [version] [vs]));
91324
91358
  vertexShader .setPrivate (true);
91325
91359
  vertexShader .setName (name + "Vertex");
91326
91360
  vertexShader .setOptions (options);
@@ -91328,7 +91362,7 @@ X3DShadersContext .prototype =
91328
91362
 
91329
91363
  const fragmentShader = new Shaders_ShaderPart (this .getPrivateScene ());
91330
91364
  fragmentShader ._type = "FRAGMENT";
91331
- fragmentShader ._url .push (fs .startsWith ("data:") ? fs : "data:x-shader/x-fragment," + Shaders_Shaders.fragment [version] [fs]);
91365
+ fragmentShader ._url .push (encodeURI (fs .startsWith ("data:") ? fs : "data:x-shader/x-fragment," + Shaders_Shaders.fragment [version] [fs]));
91332
91366
  fragmentShader .setPrivate (true);
91333
91367
  fragmentShader .setName (name + "Fragment");
91334
91368
  fragmentShader .setOptions (options);
@@ -92655,7 +92689,7 @@ X3DOneSidedMaterialNode .prototype = Object .assign (Object .create (Shape_X3DMa
92655
92689
  },
92656
92690
  set_transparent__: function ()
92657
92691
  {
92658
- this .setTransparent (Boolean (this .transparency));
92692
+ this .setTransparent (!! this .transparency);
92659
92693
  },
92660
92694
  getBaseTexture: function ()
92661
92695
  {
@@ -93530,9 +93564,6 @@ x_ite_Namespace.set ("x_ite/Components/Texturing/TextureTransform", TextureTrans
93530
93564
 
93531
93565
  const
93532
93566
  _maxTextures = Symbol (),
93533
- _maxTextureSize = Symbol (),
93534
- _maxCombinedTextureUnits = Symbol (),
93535
- _textureMemory = Symbol (),
93536
93567
  _combinedTextureUnits = Symbol (),
93537
93568
  _texture2DUnits = Symbol (),
93538
93569
  _texture3DUnits = Symbol (),
@@ -93567,13 +93598,11 @@ X3DTexturingContext .prototype =
93567
93598
 
93568
93599
  gl .pixelStorei (gl .UNPACK_ALIGNMENT, 1);
93569
93600
 
93570
- this [_maxTextureSize] = gl .getParameter (gl .MAX_TEXTURE_SIZE);
93571
- this [_maxCombinedTextureUnits] = gl .getParameter (gl .MAX_COMBINED_TEXTURE_IMAGE_UNITS);
93572
- this [_textureMemory] = NaN;
93573
-
93574
93601
  // Get texture Units
93575
93602
 
93576
- this [_combinedTextureUnits] = [...Array (this [_maxCombinedTextureUnits]) .keys ()];
93603
+ const maxCombinedTextureUnits = gl .getParameter (gl .MAX_COMBINED_TEXTURE_IMAGE_UNITS);
93604
+
93605
+ this [_combinedTextureUnits] = [...Array (maxCombinedTextureUnits) .keys ()];
93577
93606
  this [_texture2DUnits] = [this [_combinedTextureUnits] .pop ()];
93578
93607
  this [_texture3DUnits] = [this [_combinedTextureUnits] .pop ()];
93579
93608
  this [_textureCubeUnits] = [this [_combinedTextureUnits] .pop ()];
@@ -93638,11 +93667,15 @@ X3DTexturingContext .prototype =
93638
93667
  },
93639
93668
  getMaxTextureSize: function ()
93640
93669
  {
93641
- return this [_maxTextureSize];
93670
+ const gl = this .getContext ();
93671
+
93672
+ return gl .getParameter (gl .MAX_TEXTURE_SIZE);
93642
93673
  },
93643
93674
  getMaxCombinedTextureUnits: function ()
93644
93675
  {
93645
- return this [_maxCombinedTextureUnits];
93676
+ const gl = this .getContext ();
93677
+
93678
+ return gl .getParameter (gl .MAX_COMBINED_TEXTURE_IMAGE_UNITS)
93646
93679
  },
93647
93680
  popTexture2DUnit: function ()
93648
93681
  {
@@ -93731,7 +93764,7 @@ X3DTexturingContext .prototype =
93731
93764
  },
93732
93765
  getTextureMemory: function ()
93733
93766
  {
93734
- return this [_textureMemory];
93767
+ return NaN;
93735
93768
  },
93736
93769
  getDefaultTextureProperties: function ()
93737
93770
  {
@@ -93879,7 +93912,7 @@ const
93879
93912
 
93880
93913
  function X3DTimeContext ()
93881
93914
  {
93882
- this [_currentTime] = 0;
93915
+ this [_currentTime] = Date .now () / 1000;
93883
93916
  this [_currentFrameRate] = 60;
93884
93917
  this [_currentPosition] = new Numbers_Vector3 (0, 0, 0);
93885
93918
  this [_currentSpeed] = 0;
@@ -93887,10 +93920,6 @@ function X3DTimeContext ()
93887
93920
 
93888
93921
  X3DTimeContext .prototype =
93889
93922
  {
93890
- initialize: function ()
93891
- {
93892
- this .advanceTime ();
93893
- },
93894
93923
  getCurrentTime: function ()
93895
93924
  {
93896
93925
  return this [_currentTime];
@@ -94240,10 +94269,6 @@ X3DBrowserContext .prototype = Object .assign (Object .create (Base_X3DBaseNode.
94240
94269
 
94241
94270
  for (const browserContext of browserContexts)
94242
94271
  browserContext .prototype .initialize ?.call (this);
94243
-
94244
- // Process events from context creation. This will setup nodes like
94245
- // geometry option nodes before any node is created.
94246
- return this [_processEvents];
94247
94272
  },
94248
94273
  initialized: function ()
94249
94274
  {
@@ -95818,43 +95843,23 @@ TextureBackground .prototype = Object .assign (Object .create (EnvironmentalEffe
95818
95843
  {
95819
95844
  EnvironmentalEffects_X3DBackgroundNode.prototype.initialize.call (this);
95820
95845
 
95821
- this ._frontTexture .addInterest ("set_frontTexture__", this);
95822
- this ._backTexture .addInterest ("set_backTexture__", this);
95823
- this ._leftTexture .addInterest ("set_leftTexture__", this);
95824
- this ._rightTexture .addInterest ("set_rightTexture__", this);
95825
- this ._topTexture .addInterest ("set_topTexture__", this);
95826
- this ._bottomTexture .addInterest ("set_bottomTexture__", this);
95846
+ this ._frontTexture .addInterest ("set_texture__", this, 0);
95847
+ this ._backTexture .addInterest ("set_texture__", this, 1);
95848
+ this ._leftTexture .addInterest ("set_texture__", this, 2);
95849
+ this ._rightTexture .addInterest ("set_texture__", this, 3);
95850
+ this ._topTexture .addInterest ("set_texture__", this, 4);
95851
+ this ._bottomTexture .addInterest ("set_texture__", this, 5);
95827
95852
 
95828
- this .set_frontTexture__ (this ._frontTexture);
95829
- this .set_backTexture__ (this ._backTexture);
95830
- this .set_leftTexture__ (this ._leftTexture);
95831
- this .set_rightTexture__ (this ._rightTexture);
95832
- this .set_topTexture__ (this ._topTexture);
95833
- this .set_bottomTexture__ (this ._bottomTexture);
95834
- },
95835
- set_frontTexture__: function ()
95836
- {
95837
- EnvironmentalEffects_X3DBackgroundNode.prototype.set_frontTexture__.call (this, Base_X3DCast (Base_X3DConstants.X3DTextureNode, this ._frontTexture));
95838
- },
95839
- set_backTexture__: function ()
95840
- {
95841
- EnvironmentalEffects_X3DBackgroundNode.prototype.set_backTexture__.call (this, Base_X3DCast (Base_X3DConstants.X3DTextureNode, this ._backTexture));
95842
- },
95843
- set_leftTexture__: function ()
95844
- {
95845
- EnvironmentalEffects_X3DBackgroundNode.prototype.set_leftTexture__.call (this, Base_X3DCast (Base_X3DConstants.X3DTextureNode, this ._leftTexture));
95846
- },
95847
- set_rightTexture__: function ()
95848
- {
95849
- EnvironmentalEffects_X3DBackgroundNode.prototype.set_rightTexture__.call (this, Base_X3DCast (Base_X3DConstants.X3DTextureNode, this ._rightTexture));
95853
+ this .set_texture__ (0, this ._frontTexture);
95854
+ this .set_texture__ (1, this ._backTexture);
95855
+ this .set_texture__ (2, this ._leftTexture);
95856
+ this .set_texture__ (3, this ._rightTexture);
95857
+ this .set_texture__ (4, this ._topTexture);
95858
+ this .set_texture__ (5, this ._bottomTexture);
95850
95859
  },
95851
- set_topTexture__: function ()
95860
+ set_texture__: function (index, textureNode)
95852
95861
  {
95853
- EnvironmentalEffects_X3DBackgroundNode.prototype.set_topTexture__.call (this, Base_X3DCast (Base_X3DConstants.X3DTextureNode, this ._topTexture));
95854
- },
95855
- set_bottomTexture__: function ()
95856
- {
95857
- EnvironmentalEffects_X3DBackgroundNode.prototype.set_bottomTexture__.call (this, Base_X3DCast (Base_X3DConstants.X3DTextureNode, this ._bottomTexture));
95862
+ EnvironmentalEffects_X3DBackgroundNode.prototype.set_texture__.call (this, Base_X3DCast (Base_X3DConstants.X3DTextureNode, textureNode), index);
95858
95863
  },
95859
95864
  });
95860
95865
 
@@ -113000,12 +113005,15 @@ x_ite_Namespace.set ("x_ite/Components/Shape", Components_Shape_default_);
113000
113005
 
113001
113006
 
113002
113007
 
113008
+
113003
113009
  function X3DSoundProcessingNode (executionContext)
113004
113010
  {
113005
113011
  Core_X3DChildNode.call (this, executionContext);
113006
113012
  Time_X3DTimeDependentNode.call (this, executionContext);
113007
113013
 
113008
113014
  this .addType (Base_X3DConstants.X3DSoundProcessingNode);
113015
+
113016
+ this .addChildObjects ("loop", new x_ite_Fields.SFBool ());
113009
113017
  }
113010
113018
 
113011
113019
  X3DSoundProcessingNode .prototype = Object .assign (Object .create (Core_X3DChildNode.prototype),
@@ -113363,7 +113371,7 @@ const X3DSoundSourceNode_default_ = X3DSoundSourceNode;
113363
113371
  x_ite_Namespace.set ("x_ite/Components/Sound/X3DSoundSourceNode", X3DSoundSourceNode_default_);
113364
113372
  /* harmony default export */ const Sound_X3DSoundSourceNode = (X3DSoundSourceNode_default_);
113365
113373
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/AudioClip.js
113366
- /* provided dependency */ var AudioClip_$ = __webpack_require__(16);
113374
+ /* provided dependency */ var AudioClip_$ = __webpack_require__(909);
113367
113375
  /*******************************************************************************
113368
113376
  *
113369
113377
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114933,7 +114941,8 @@ function ListenerPointSource (executionContext)
114933
114941
 
114934
114942
  this .addType (Base_X3DConstants.ListenerPointSource);
114935
114943
 
114936
- this .addChildObjects ("speed", new x_ite_Fields.SFFloat (1));
114944
+ this .addChildObjects ("loop", new x_ite_Fields.SFBool (),
114945
+ "speed", new x_ite_Fields.SFFloat (1));
114937
114946
 
114938
114947
  this ._position .setUnit ("length");
114939
114948
  }
@@ -115044,7 +115053,8 @@ function MicrophoneSource (executionContext)
115044
115053
 
115045
115054
  this .addType (Base_X3DConstants.MicrophoneSource);
115046
115055
 
115047
- this .addChildObjects ("speed", new x_ite_Fields.SFFloat (1));
115056
+ this .addChildObjects ("loop", new x_ite_Fields.SFBool (),
115057
+ "speed", new x_ite_Fields.SFFloat (1));
115048
115058
  }
115049
115059
 
115050
115060
  MicrophoneSource .prototype = Object .assign (Object .create (Sound_X3DSoundSourceNode.prototype),
@@ -115149,7 +115159,8 @@ function OscillatorSource (executionContext)
115149
115159
 
115150
115160
  this .addType (Base_X3DConstants.OscillatorSource);
115151
115161
 
115152
- this .addChildObjects ("speed", new x_ite_Fields.SFFloat (1));
115162
+ this .addChildObjects ("loop", new x_ite_Fields.SFBool (),
115163
+ "speed", new x_ite_Fields.SFFloat (1));
115153
115164
  }
115154
115165
 
115155
115166
  OscillatorSource .prototype = Object .assign (Object .create (Sound_X3DSoundSourceNode.prototype),
@@ -115862,7 +115873,8 @@ function StreamAudioSource (executionContext)
115862
115873
 
115863
115874
  this .addType (Base_X3DConstants.StreamAudioSource);
115864
115875
 
115865
- this .addChildObjects ("speed", new x_ite_Fields.SFFloat (1));
115876
+ this .addChildObjects ("loop", new x_ite_Fields.SFBool (),
115877
+ "speed", new x_ite_Fields.SFFloat (1));
115866
115878
  }
115867
115879
 
115868
115880
  StreamAudioSource .prototype = Object .assign (Object .create (Sound_X3DSoundSourceNode.prototype),
@@ -116258,8 +116270,8 @@ const GIFMedia_default_ = GifMedia;
116258
116270
  x_ite_Namespace.set ("x_ite/Browser/Texturing/GIFMedia", GIFMedia_default_);
116259
116271
  /* harmony default export */ const GIFMedia = (GIFMedia_default_);
116260
116272
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
116261
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(16);
116262
- /* provided dependency */ var SuperGif = __webpack_require__(748);
116273
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(909);
116274
+ /* provided dependency */ var SuperGif = __webpack_require__(688);
116263
116275
  /*******************************************************************************
116264
116276
  *
116265
116277
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -117222,7 +117234,7 @@ const MultiTextureTransform_default_ = MultiTextureTransform;
117222
117234
  x_ite_Namespace.set ("x_ite/Components/Texturing/MultiTextureTransform", MultiTextureTransform_default_);
117223
117235
  /* harmony default export */ const Texturing_MultiTextureTransform = (MultiTextureTransform_default_);
117224
117236
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/PixelTexture.js
117225
- /* provided dependency */ var PixelTexture_$ = __webpack_require__(16);
117237
+ /* provided dependency */ var PixelTexture_$ = __webpack_require__(909);
117226
117238
  /*******************************************************************************
117227
117239
  *
117228
117240
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -117933,7 +117945,7 @@ const Components_default_ = Components;
117933
117945
  x_ite_Namespace.set ("x_ite/Components", Components_default_);
117934
117946
  /* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
117935
117947
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
117936
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(16);
117948
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(909);
117937
117949
  /*******************************************************************************
117938
117950
  * MIT License
117939
117951
  *
@@ -118451,10 +118463,13 @@ x_ite_Namespace.set ("x_ite/Browser/Legacy", Legacy_default_);
118451
118463
 
118452
118464
  function ProfileInfo (name, title, providerUrl, components)
118453
118465
  {
118454
- this .name = name;
118455
- this .title = title;
118456
- this .providerUrl = providerUrl;
118457
- this .components = components;
118466
+ Object .defineProperties (this,
118467
+ {
118468
+ name: { value: name, enumerable: true },
118469
+ title: { value: title, enumerable: true },
118470
+ providerUrl: { value: providerUrl, enumerable: true },
118471
+ components: { value: components, enumerable: true },
118472
+ });
118458
118473
  }
118459
118474
 
118460
118475
  ProfileInfo .prototype = Object .assign (Object .create (Base_X3DObject.prototype),
@@ -119171,7 +119186,7 @@ const SupportedProfiles_default_ = SupportedProfiles;
119171
119186
  x_ite_Namespace.set ("x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
119172
119187
  /* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
119173
119188
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
119174
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(16);
119189
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(909);
119175
119190
  /*******************************************************************************
119176
119191
  *
119177
119192
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -119248,7 +119263,8 @@ const
119248
119263
  _reject = Symbol (),
119249
119264
  _fileLoader = Symbol (),
119250
119265
  _browserCallbacks = Symbol (),
119251
- _console = Symbol ();
119266
+ _console = Symbol (),
119267
+ X3DBrowser_processEvents = Symbol .for ("X_ITE.X3DRoutingContext.processEvents");
119252
119268
 
119253
119269
  function X3DBrowser (element)
119254
119270
  {
@@ -119284,7 +119300,7 @@ X3DBrowser .prototype = Object .assign (Object .create (Browser_X3DBrowserContex
119284
119300
  },
119285
119301
  initialize: function ()
119286
119302
  {
119287
- const processEvent = Browser_X3DBrowserContext.prototype.initialize.call (this);
119303
+ Browser_X3DBrowserContext.prototype.initialize.call (this);
119288
119304
 
119289
119305
  this .replaceWorld (this .createScene ()) .catch (Function .prototype);
119290
119306
 
@@ -119292,35 +119308,42 @@ X3DBrowser .prototype = Object .assign (Object .create (Browser_X3DBrowserContex
119292
119308
 
119293
119309
  Legacy.call (this);
119294
119310
 
119295
- processEvent .call (this);
119311
+ // Process events from context creation. This will setup nodes like
119312
+ // geometry option nodes before any node is created.
119313
+ this [X3DBrowser_processEvents] .call (this);
119296
119314
 
119297
119315
  // Print welcome message.
119298
119316
 
119299
- if (this .getInstanceId () > 1) return;
119300
-
119301
- X3DBrowser_$(() =>
119302
- {
119303
- this .print ("Welcome to " + this .name + " X3D Browser v" + this .version + ":\n" +
119304
- " Current Graphics Renderer\n" +
119305
- " Name: " + this .getVendor () + " " + this .getRenderer () + "\n" +
119306
- " WebGL version: " + this .getWebGLVersion () + "\n" +
119307
- " Shading language: " + this .getShadingLanguageVersion () + "\n" +
119308
- " Rendering Properties\n" +
119309
- " Antialiased: " + this .getAntialiased () + "\n" +
119310
- " Max samples: " + this .getMaxSamples () + "\n" +
119311
- " Depth size: " + this .getDepthSize () + " bits\n" +
119312
- " Color depth: " + this .getColorDepth () + " bits\n" +
119313
- " Max clip planes per shape: " + this .getMaxClipPlanes () + "\n" +
119314
- " Max lights per shape: " + this .getMaxLights () + "\n" +
119315
- " Max multi textures per shape: " + this .getMaxTextures () + "\n" +
119316
- " Texture units: " + this .getMaxCombinedTextureUnits () + "\n" +
119317
- " Max texture size: " + this .getMaxTextureSize () + " × " + this .getMaxTextureSize () + " pixels\n" +
119318
- " Texture memory: " + this .getTextureMemory () + "\n" +
119319
- " Max vertex uniform vectors: " + this .getMaxVertexUniformVectors () + "\n" +
119320
- " Max fragment uniform vectors: " + this .getMaxFragmentUniformVectors () + "\n" +
119321
- " Max vertex attribs: " + this .getMaxVertexAttribs () + "\n" +
119322
- " Max varying vectors: " + this .getMaxVaryingVectors () + "\n");
119323
- });
119317
+ if (this .getInstanceId () > 1)
119318
+ return;
119319
+
119320
+ if (!this .getBrowserOption ("Debug"))
119321
+ return;
119322
+
119323
+ this .printWelcomeMessage ();
119324
+ },
119325
+ printWelcomeMessage: function ()
119326
+ {
119327
+ this .print ("Welcome to " + this .name + " X3D Browser v" + this .version + ":\n" +
119328
+ " Current Graphics Renderer\n" +
119329
+ " Name: " + this .getVendor () + " " + this .getRenderer () + "\n" +
119330
+ " WebGL version: " + this .getWebGLVersion () + "\n" +
119331
+ " Shading language: " + this .getShadingLanguageVersion () + "\n" +
119332
+ " Rendering Properties\n" +
119333
+ " Antialiased: " + this .getAntialiased () + "\n" +
119334
+ " Max samples: " + this .getMaxSamples () + "\n" +
119335
+ " Depth size: " + this .getDepthSize () + " bits\n" +
119336
+ " Color depth: " + this .getColorDepth () + " bits\n" +
119337
+ " Max clip planes per shape: " + this .getMaxClipPlanes () + "\n" +
119338
+ " Max lights per shape: " + this .getMaxLights () + "\n" +
119339
+ " Max multi textures per shape: " + this .getMaxTextures () + "\n" +
119340
+ " Texture units: " + this .getMaxCombinedTextureUnits () + "\n" +
119341
+ " Max texture size: " + this .getMaxTextureSize () + " × " + this .getMaxTextureSize () + " pixels\n" +
119342
+ " Texture memory: " + this .getTextureMemory () + "\n" +
119343
+ " Max vertex uniform vectors: " + this .getMaxVertexUniformVectors () + "\n" +
119344
+ " Max fragment uniform vectors: " + this .getMaxFragmentUniformVectors () + "\n" +
119345
+ " Max vertex attribs: " + this .getMaxVertexAttribs () + "\n" +
119346
+ " Max varying vectors: " + this .getMaxVaryingVectors () + "\n");
119324
119347
  },
119325
119348
  getName: function ()
119326
119349
  {
@@ -119529,17 +119552,36 @@ X3DBrowser .prototype = Object .assign (Object .create (Browser_X3DBrowserContex
119529
119552
  },
119530
119553
  createVrmlFromString: function (vrmlSyntax)
119531
119554
  {
119532
- return this .createX3DFromString (vrmlSyntax) .rootNodes;
119555
+ vrmlSyntax = String (vrmlSyntax);
119556
+
119557
+ const
119558
+ currentScene = this .currentScene,
119559
+ external = this .isExternal (),
119560
+ fileLoader = new InputOutput_FileLoader (this .getWorld ()),
119561
+ scene = fileLoader .createX3DFromString (currentScene .getWorldURL (), vrmlSyntax);
119562
+
119563
+ if (!external)
119564
+ {
119565
+ currentScene .getLive () .addInterest ("setLive", scene);
119566
+ scene .setExecutionContext (currentScene);
119567
+ scene .setLive (currentScene .isLive ());
119568
+ }
119569
+
119570
+ return scene .rootNodes;
119533
119571
  },
119534
- createX3DFromString: function (x3dSyntax)
119572
+ createX3DFromString: async function (x3dSyntax)
119535
119573
  {
119536
119574
  x3dSyntax = String (x3dSyntax);
119537
119575
 
119538
119576
  const
119539
119577
  currentScene = this .currentScene,
119540
119578
  external = this .isExternal (),
119541
- fileLoader = new InputOutput_FileLoader (this .getWorld ()),
119542
- scene = fileLoader .createX3DFromString (currentScene .getWorldURL (), x3dSyntax);
119579
+ fileLoader = new InputOutput_FileLoader (this .getWorld ());
119580
+
119581
+ const scene = await new Promise ((resolve, reject) =>
119582
+ {
119583
+ fileLoader .createX3DFromString (currentScene .getWorldURL (), x3dSyntax, resolve, reject);
119584
+ });
119543
119585
 
119544
119586
  if (!external)
119545
119587
  {
@@ -120075,7 +120117,7 @@ const X3DBrowser_default_ = X3DBrowser;
120075
120117
  x_ite_Namespace.set ("x_ite/Browser/X3DBrowser", X3DBrowser_default_);
120076
120118
  /* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
120077
120119
  ;// CONCATENATED MODULE: ./src/x_ite/Fallback.js
120078
- /* provided dependency */ var Fallback_$ = __webpack_require__(16);
120120
+ /* provided dependency */ var Fallback_$ = __webpack_require__(909);
120079
120121
  /*******************************************************************************
120080
120122
  *
120081
120123
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -120254,8 +120296,8 @@ const MicroTime_default_ = undefined;
120254
120296
  x_ite_Namespace.set ("standard/Time/MicroTime", MicroTime_default_);
120255
120297
  /* harmony default export */ const MicroTime = ((/* unused pure expression or super */ null && (MicroTime_default_)));
120256
120298
  ;// CONCATENATED MODULE: ./src/lib/jquery.js
120257
- /* provided dependency */ var jquery_$ = __webpack_require__(16);
120258
- /* provided dependency */ var pako = __webpack_require__(582);
120299
+ /* provided dependency */ var jquery_$ = __webpack_require__(909);
120300
+ /* provided dependency */ var pako = __webpack_require__(548);
120259
120301
  jquery_$.decodeText = function (input)
120260
120302
  {
120261
120303
  if (typeof input === "string")
@@ -120287,14 +120329,14 @@ const jquery_default_ = jquery_$;
120287
120329
  x_ite_Namespace.set ("lib/jquery", jquery_default_);
120288
120330
  /* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
120289
120331
  ;// CONCATENATED MODULE: ./src/lib/libtess.js
120290
- /* provided dependency */ var libtess_libtess = __webpack_require__(34);
120332
+ /* provided dependency */ var libtess_libtess = __webpack_require__(798);
120291
120333
  const libtess_default_ = libtess_libtess;
120292
120334
  ;
120293
120335
 
120294
120336
  x_ite_Namespace.set ("lib/libtess", libtess_default_);
120295
120337
  /* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
120296
120338
  ;// CONCATENATED MODULE: ./src/x_ite/X3D.js
120297
- /* provided dependency */ var X3D_$ = __webpack_require__(16);
120339
+ /* provided dependency */ var X3D_$ = __webpack_require__(909);
120298
120340
  /*******************************************************************************
120299
120341
  *
120300
120342
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -120550,7 +120592,7 @@ const X3D_default_ = X3D;
120550
120592
  x_ite_Namespace.set ("x_ite/X3D", X3D_default_);
120551
120593
  /* harmony default export */ const x_ite_X3D = (X3D_default_);
120552
120594
  ;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
120553
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(16);
120595
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(909);
120554
120596
  /*******************************************************************************
120555
120597
  *
120556
120598
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -120629,10 +120671,7 @@ class X3DCanvasElement extends HTMLElement
120629
120671
 
120630
120672
  shadow .appendChild (link);
120631
120673
 
120632
- Object .defineProperty (this, "browser",
120633
- {
120634
- value: new Browser_X3DBrowser (this),
120635
- })
120674
+ new Browser_X3DBrowser (this)
120636
120675
  }
120637
120676
 
120638
120677
  connectedCallback ()
@@ -120654,6 +120693,9 @@ class X3DCanvasElement extends HTMLElement
120654
120693
  "debug",
120655
120694
  "multisampling",
120656
120695
  "notifications",
120696
+ "onerror",
120697
+ "oninitialized",
120698
+ "onshutdown",
120657
120699
  "splashScreen",
120658
120700
  "splashscreen",
120659
120701
  "src",
@@ -120831,7 +120873,7 @@ x_ite_Namespace.set ("shim", shim_default_);
120831
120873
 
120832
120874
  // Assign X3D to global namespace.
120833
120875
 
120834
- window [Symbol .for ("X_ITE.X3D-8.6.23")] = x_ite_X3D;
120876
+ window [Symbol .for ("X_ITE.X3D-8.7.0")] = x_ite_X3D;
120835
120877
 
120836
120878
  x_ite_X3DCanvasElement.define ();
120837
120879