x_ite 10.5.10 → 10.5.11

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 +8 -42
  21. package/dist/assets/components/LayoutComponent.min.js +2 -2
  22. package/dist/assets/components/NURBSComponent.js +2 -2
  23. package/dist/assets/components/NURBSComponent.min.js +2 -2
  24. package/dist/assets/components/ParticleSystemsComponent.js +2 -2
  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 +2 -2
  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 +84 -80
  45. package/dist/x_ite.min.js +2 -2
  46. package/dist/x_ite.min.mjs +2 -2
  47. package/dist/x_ite.mjs +84 -80
  48. package/dist/x_ite.zip +0 -0
  49. package/package.json +2 -2
package/dist/x_ite.mjs CHANGED
@@ -1,10 +1,10 @@
1
- /* X_ITE v10.5.10 */
1
+ /* X_ITE v10.5.11 */
2
2
  var __webpack_modules__ = ({
3
3
 
4
- /***/ 367:
4
+ /***/ 400:
5
5
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
6
6
 
7
- /* provided dependency */ var jQuery = __webpack_require__(427);
7
+ /* provided dependency */ var jQuery = __webpack_require__(524);
8
8
  /**
9
9
  * @preserve jquery.fullscreen 1.1.5
10
10
  * https://github.com/code-lts/jquery-fullscreen-plugin
@@ -200,7 +200,7 @@ installFullScreenHandlers();
200
200
 
201
201
  /***/ }),
202
202
 
203
- /***/ 675:
203
+ /***/ 866:
204
204
  /***/ ((module, exports, __webpack_require__) => {
205
205
 
206
206
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -214,7 +214,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
214
214
  (function (factory) {
215
215
  if ( true ) {
216
216
  // AMD. Register as an anonymous module.
217
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(427)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
217
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(524)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
218
218
  __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
219
219
  (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
220
220
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
@@ -425,7 +425,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
425
425
 
426
426
  /***/ }),
427
427
 
428
- /***/ 427:
428
+ /***/ 524:
429
429
  /***/ (function(module, exports) {
430
430
 
431
431
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -11149,7 +11149,7 @@ return jQuery;
11149
11149
 
11150
11150
  /***/ }),
11151
11151
 
11152
- /***/ 800:
11152
+ /***/ 153:
11153
11153
  /***/ ((module) => {
11154
11154
 
11155
11155
  /**
@@ -15928,7 +15928,7 @@ if (true) {
15928
15928
 
15929
15929
  /***/ }),
15930
15930
 
15931
- /***/ 355:
15931
+ /***/ 496:
15932
15932
  /***/ (function(__unused_webpack_module, exports) {
15933
15933
 
15934
15934
 
@@ -19173,7 +19173,7 @@ if (true) {
19173
19173
 
19174
19174
  /***/ }),
19175
19175
 
19176
- /***/ 388:
19176
+ /***/ 63:
19177
19177
  /***/ (function(module, exports) {
19178
19178
 
19179
19179
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
@@ -20297,7 +20297,7 @@ Object .defineProperty (Namespace, "add",
20297
20297
  return module;
20298
20298
  }
20299
20299
 
20300
- const X3D = window [Symbol .for ("X_ITE.X3D-10.5.10")];
20300
+ const X3D = window [Symbol .for ("X_ITE.X3D-10.5.11")];
20301
20301
 
20302
20302
  if (X3D)
20303
20303
  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
  ;// ./src/x_ite/Browser/Legacy.js
34176
- /* provided dependency */ var $ = __webpack_require__(427);
34176
+ /* provided dependency */ var $ = __webpack_require__(524);
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.10";
34312
+ const BROWSER_VERSION_default_ = "10.5.11";
34313
34313
  ;
34314
34314
 
34315
34315
  /* harmony default export */ const BROWSER_VERSION = (x_ite_Namespace .add ("BROWSER_VERSION", BROWSER_VERSION_default_));
@@ -37338,7 +37338,7 @@ const X3DBindableNode_default_ = X3DBindableNode;
37338
37338
 
37339
37339
  /* harmony default export */ const Core_X3DBindableNode = (x_ite_Namespace .add ("X3DBindableNode", X3DBindableNode_default_));
37340
37340
  ;// ./src/standard/Math/Geometry/Triangle3.js
37341
- /* provided dependency */ var libtess = __webpack_require__(800);
37341
+ /* provided dependency */ var libtess = __webpack_require__(153);
37342
37342
  /*******************************************************************************
37343
37343
  *
37344
37344
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39904,7 +39904,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
39904
39904
 
39905
39905
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (x_ite_Namespace .add ("X3DProtoDeclaration", X3DProtoDeclaration_default_));
39906
39906
  ;// ./src/x_ite/Parser/X3DParser.js
39907
- /* provided dependency */ var X3DParser_$ = __webpack_require__(427);
39907
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(524);
39908
39908
  /*******************************************************************************
39909
39909
  *
39910
39910
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -40159,7 +40159,7 @@ const Expressions_default_ = Expressions;
40159
40159
 
40160
40160
  /* harmony default export */ const Parser_Expressions = (x_ite_Namespace .add ("Expressions", Expressions_default_));
40161
40161
  ;// ./src/x_ite/Parser/VRMLParser.js
40162
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(427);
40162
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(524);
40163
40163
  /*******************************************************************************
40164
40164
  *
40165
40165
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -42799,7 +42799,7 @@ const VRMLParser_default_ = VRMLParser;
42799
42799
 
42800
42800
  /* harmony default export */ const Parser_VRMLParser = (x_ite_Namespace .add ("VRMLParser", VRMLParser_default_));
42801
42801
  ;// ./src/x_ite/Parser/XMLParser.js
42802
- /* provided dependency */ var XMLParser_$ = __webpack_require__(427);
42802
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(524);
42803
42803
  /*******************************************************************************
42804
42804
  *
42805
42805
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -43589,8 +43589,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
43589
43589
  scriptElement (element)
43590
43590
  {
43591
43591
  const
43592
- domParser = new DOMParser (),
43593
- scriptDocument = domParser .parseFromString (element .outerHTML, "application/xml"),
43592
+ scriptDocument = XMLParser_$.parseXML (element .outerHTML, "application/xml"),
43594
43593
  childNodes = scriptDocument .children [0] .childNodes;
43595
43594
 
43596
43595
  element .textContent = "// Content moved into childNodes.";
@@ -44022,6 +44021,7 @@ const XMLParser_default_ = XMLParser;
44022
44021
 
44023
44022
  /* harmony default export */ const Parser_XMLParser = (x_ite_Namespace .add ("XMLParser", XMLParser_default_));
44024
44023
  ;// ./src/x_ite/Parser/JSONParser.js
44024
+ /* provided dependency */ var JSONParser_$ = __webpack_require__(524);
44025
44025
  /*******************************************************************************
44026
44026
  *
44027
44027
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -44201,7 +44201,7 @@ Object .assign (Object .setPrototypeOf (JSONParser .prototype, Parser_X3DParser
44201
44201
  createCDATA (document, element, str)
44202
44202
  {
44203
44203
  const
44204
- docu = new DOMParser () .parseFromString ("<xml></xml>", "application/xml"),
44204
+ docu = JSONParser_$.parseXML ("<xml></xml>", "application/xml"),
44205
44205
  cdata = docu .createCDATASection (str);
44206
44206
 
44207
44207
  element .appendChild (cdata);
@@ -44977,7 +44977,7 @@ const URLs_default_ = URLs;
44977
44977
 
44978
44978
  /* harmony default export */ const Networking_URLs = (x_ite_Namespace .add ("URLs", URLs_default_));
44979
44979
  ;// ./src/x_ite/Parser/GLTF2Parser.js
44980
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(427);
44980
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(524);
44981
44981
  /*******************************************************************************
44982
44982
  *
44983
44983
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -48984,7 +48984,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
48984
48984
 
48985
48985
  /* harmony default export */ const Parser_GLTF2Parser = (x_ite_Namespace .add ("GLTF2Parser", GLTF2Parser_default_));
48986
48986
  ;// ./src/x_ite/Parser/GLB2Parser.js
48987
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(427);
48987
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(524);
48988
48988
  /*******************************************************************************
48989
48989
  *
48990
48990
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -49135,7 +49135,7 @@ const GLB2Parser_default_ = GLB2Parser;
49135
49135
 
49136
49136
  /* harmony default export */ const Parser_GLB2Parser = (x_ite_Namespace .add ("GLB2Parser", GLB2Parser_default_));
49137
49137
  ;// ./src/x_ite/Parser/OBJParser.js
49138
- /* provided dependency */ var OBJParser_$ = __webpack_require__(427);
49138
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(524);
49139
49139
  /*******************************************************************************
49140
49140
  *
49141
49141
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -52502,8 +52502,8 @@ const MatrixStack_default_ = MatrixStack;
52502
52502
 
52503
52503
  /* harmony default export */ const Utility_MatrixStack = (x_ite_Namespace .add ("MatrixStack", MatrixStack_default_));
52504
52504
  ;// ./src/x_ite/Parser/SVGParser.js
52505
- /* provided dependency */ var SVGParser_$ = __webpack_require__(427);
52506
- /* provided dependency */ var SVGParser_libtess = __webpack_require__(800);
52505
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(524);
52506
+ /* provided dependency */ var SVGParser_libtess = __webpack_require__(153);
52507
52507
  /*******************************************************************************
52508
52508
  *
52509
52509
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -52639,8 +52639,7 @@ function SVGParser (scene)
52639
52639
  this .strokeGeometries = new Map ();
52640
52640
  this .lineProperties = new Map ();
52641
52641
  this .tessy = this .createTesselator ();
52642
- this .canvas = document .createElement ("canvas");
52643
- this .context = this .canvas .getContext ("2d");
52642
+ this .context = document .createElement ("canvas") .getContext ("2d", { willReadFrequently: true });
52644
52643
  this .numSwitchNodes = 0;
52645
52644
 
52646
52645
  this .styles = [{
@@ -52694,8 +52693,9 @@ function SVGParser (scene)
52694
52693
  break;
52695
52694
  }
52696
52695
 
52697
- this .canvas .width = this .GRADIENT_SIZE;
52698
- this .canvas .height = this .GRADIENT_SIZE;
52696
+ // Use .canvas to support foreign 2d libs.
52697
+ this .context .canvas .width = this .GRADIENT_SIZE;
52698
+ this .context .canvas .height = this .GRADIENT_SIZE;
52699
52699
  }
52700
52700
 
52701
52701
  Object .assign (Object .setPrototypeOf (SVGParser .prototype, Parser_X3DParser .prototype),
@@ -53712,7 +53712,7 @@ Object .assign (Object .setPrototypeOf (SVGParser .prototype, Parser_X3DParser .
53712
53712
  cx .restore ();
53713
53713
 
53714
53714
  // Use PNG because image can have alpha channel.
53715
- return this .canvas .toDataURL ("image/png");
53715
+ return this .context .canvas .toDataURL ("image/png");
53716
53716
  },
53717
53717
  patternUrl (xmlElement)
53718
53718
  {
@@ -55282,7 +55282,7 @@ const SVGParser_default_ = SVGParser;
55282
55282
 
55283
55283
  /* harmony default export */ const Parser_SVGParser = (x_ite_Namespace .add ("SVGParser", SVGParser_default_));
55284
55284
  ;// ./src/x_ite/Parser/GoldenGate.js
55285
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(427);
55285
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(524);
55286
55286
  /*******************************************************************************
55287
55287
  *
55288
55288
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -60275,7 +60275,7 @@ const MikkTSpace_default_ = new class MikkTSpace
60275
60275
  {
60276
60276
  if (response .headers .get ("Content-Type") !== "application/wasm")
60277
60277
  {
60278
- console .warn ("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", error);
60278
+ // console .warn ("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", error);
60279
60279
  }
60280
60280
  else
60281
60281
  {
@@ -63301,7 +63301,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
63301
63301
 
63302
63302
  /* harmony default export */ const Texturing_X3DTexture2DNode = (x_ite_Namespace .add ("X3DTexture2DNode", X3DTexture2DNode_default_));
63303
63303
  ;// ./src/x_ite/Components/Texturing/ImageTexture.js
63304
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(427);
63304
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(524);
63305
63305
  /*******************************************************************************
63306
63306
  *
63307
63307
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -63504,8 +63504,9 @@ Object .assign (Object .setPrototypeOf (ImageTexture .prototype, Texturing_X3DTe
63504
63504
  height = Math_Algorithm .nextPowerOfTwo (height);
63505
63505
  }
63506
63506
 
63507
- canvas .width = width;
63508
- canvas .height = height;
63507
+ // Use .canvas to support foreign 2d libs.
63508
+ cx .canvas .width = width;
63509
+ cx .canvas .height = height;
63509
63510
 
63510
63511
  cx .clearRect (0, 0, width, height);
63511
63512
  cx .drawImage (image, 0, 0, image .width, image .height, 0, 0, width, height);
@@ -66727,7 +66728,7 @@ const X3DWorld_default_ = X3DWorld;
66727
66728
 
66728
66729
  /* harmony default export */ const Execution_X3DWorld = (x_ite_Namespace .add ("X3DWorld", X3DWorld_default_));
66729
66730
  ;// ./src/x_ite/InputOutput/FileLoader.js
66730
- /* provided dependency */ var FileLoader_$ = __webpack_require__(427);
66731
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(524);
66731
66732
  /*******************************************************************************
66732
66733
  *
66733
66734
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -67691,7 +67692,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
67691
67692
 
67692
67693
  /* harmony default export */ const Prototype_ProtoDeclarationArray = (x_ite_Namespace .add ("ProtoDeclarationArray", ProtoDeclarationArray_default_));
67693
67694
  ;// ./src/x_ite/Routing/X3DRoute.js
67694
- /* provided dependency */ var X3DRoute_$ = __webpack_require__(427);
67695
+ /* provided dependency */ var X3DRoute_$ = __webpack_require__(524);
67695
67696
  /*******************************************************************************
67696
67697
  *
67697
67698
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -91371,7 +91372,7 @@ mediump samplerCube textureCube;
91371
91372
 
91372
91373
  /* harmony default export */ const MaterialTextures = (x_ite_Namespace .add ("MaterialTextures", MaterialTextures_default_));
91373
91374
  ;// ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
91374
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(427);
91375
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(524);
91375
91376
  /*******************************************************************************
91376
91377
  *
91377
91378
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -96668,7 +96669,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
96668
96669
 
96669
96670
  /* harmony default export */ const Shaders_ShaderCompiler = (x_ite_Namespace .add ("ShaderCompiler", ShaderCompiler_default_));
96670
96671
  ;// ./src/x_ite/Components/Shaders/ShaderPart.js
96671
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(427);
96672
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(524);
96672
96673
  /*******************************************************************************
96673
96674
  *
96674
96675
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -97266,7 +97267,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
97266
97267
 
97267
97268
  /* harmony default export */ const Shape_X3DAppearanceNode = (x_ite_Namespace .add ("X3DAppearanceNode", X3DAppearanceNode_default_));
97268
97269
  ;// ./src/x_ite/Components/Shape/Appearance.js
97269
- /* provided dependency */ var Appearance_$ = __webpack_require__(427);
97270
+ /* provided dependency */ var Appearance_$ = __webpack_require__(524);
97270
97271
  /*******************************************************************************
97271
97272
  *
97272
97273
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -105196,10 +105197,9 @@ Object .assign (Object .setPrototypeOf (WaveShaper .prototype, Sound_X3DSoundPro
105196
105197
  },
105197
105198
  set_curve__ ()
105198
105199
  {
105199
- if (this ._curve .length < 2)
105200
- this ._curve .length = 2;
105201
-
105202
- this .waveShaperNode .curve = this ._curve .shrinkToFit ();
105200
+ this .waveShaperNode .curve = this ._curve .length < 2
105201
+ ? new Float32Array (2)
105202
+ : this ._curve .shrinkToFit ();
105203
105203
  },
105204
105204
  set_oversample__: (function ()
105205
105205
  {
@@ -105498,8 +105498,8 @@ const GifMedia_default_ = GifMedia;
105498
105498
 
105499
105499
  /* harmony default export */ const Texturing_GifMedia = (x_ite_Namespace .add ("GifMedia", GifMedia_default_));
105500
105500
  ;// ./src/x_ite/Components/Texturing/MovieTexture.js
105501
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(427);
105502
- /* provided dependency */ var SuperGif = __webpack_require__(388);
105501
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(524);
105502
+ /* provided dependency */ var SuperGif = __webpack_require__(63);
105503
105503
  /*******************************************************************************
105504
105504
  *
105505
105505
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -105733,8 +105733,11 @@ Object .assign (Object .setPrototypeOf (MovieTexture .prototype, Texturing_X3DTe
105733
105733
  {
105734
105734
  const media = this .getMediaElement ();
105735
105735
 
105736
- if (media)
105737
- media .playbackRate = this ._speed .getValue () * Math .max (this ._pitch .getValue (), 0);
105736
+ if (!media)
105737
+ return;
105738
+
105739
+ media .playbackRate = this ._speed .getValue () * Math .max (this ._pitch .getValue (), 0);
105740
+ media .preservesPitch = this ._pitch .getValue () === 1;
105738
105741
  },
105739
105742
  set_time ()
105740
105743
  {
@@ -106546,8 +106549,7 @@ Object .assign (Object .setPrototypeOf (PixelTexture .prototype, Texturing_X3DTe
106546
106549
  }
106547
106550
  else
106548
106551
  {
106549
- if (!this .canvas)
106550
- this .canvas = [document .createElement ("canvas"), document .createElement ("canvas")];
106552
+ this .canvas ??= [document .createElement ("canvas"), document .createElement ("canvas")];
106551
106553
 
106552
106554
  const
106553
106555
  canvas1 = this .canvas [0],
@@ -106556,8 +106558,9 @@ Object .assign (Object .setPrototypeOf (PixelTexture .prototype, Texturing_X3DTe
106556
106558
  cx2 = canvas2 .getContext ("2d", { willReadFrequently: true }),
106557
106559
  imageData = cx1 .createImageData (width, height);
106558
106560
 
106559
- canvas1 .width = width;
106560
- canvas1 .height = height;
106561
+ // Use .canvas to support foreign 2d libs.
106562
+ cx1 .canvas .width = width;
106563
+ cx1 .canvas .height = height;
106561
106564
 
106562
106565
  this .convert (imageData .data, comp, array .getValue (), array .length);
106563
106566
  cx1 .putImageData (imageData, 0, 0);
@@ -106565,8 +106568,9 @@ Object .assign (Object .setPrototypeOf (PixelTexture .prototype, Texturing_X3DTe
106565
106568
  width = Math_Algorithm .nextPowerOfTwo (width);
106566
106569
  height = Math_Algorithm .nextPowerOfTwo (height);
106567
106570
 
106568
- canvas2 .width = width;
106569
- canvas2 .height = height;
106571
+ // Use .canvas to support foreign 2d libs.
106572
+ cx2 .canvas .width = width;
106573
+ cx2 .canvas .height = height;
106570
106574
 
106571
106575
  cx2 .clearRect (0, 0, width, height);
106572
106576
  cx2 .drawImage (canvas1, 0, 0, canvas1 .width, canvas1 .height, 0, 0, width, height);
@@ -107968,7 +107972,7 @@ const gettext_default_ = (string) => locale .get (string) || string;
107968
107972
 
107969
107973
  /* harmony default export */ const gettext = (x_ite_Namespace .add ("gettext", gettext_default_));
107970
107974
  ;// ./src/x_ite/Browser/Core/BrowserTimings.js
107971
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(427);
107975
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(524);
107972
107976
  /*******************************************************************************
107973
107977
  *
107974
107978
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -108598,7 +108602,7 @@ const TextCompression_default_ = TextCompression;
108598
108602
 
108599
108603
  /* harmony default export */ const Core_TextCompression = (x_ite_Namespace .add ("TextCompression", TextCompression_default_));
108600
108604
  ;// ./src/x_ite/Browser/Core/BrowserOptions.js
108601
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(427);
108605
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(524);
108602
108606
  /*******************************************************************************
108603
108607
  *
108604
108608
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109245,7 +109249,7 @@ const RenderingProperties_default_ = RenderingProperties;
109245
109249
 
109246
109250
  /* harmony default export */ const Core_RenderingProperties = (x_ite_Namespace .add ("RenderingProperties", RenderingProperties_default_));
109247
109251
  ;// ./src/x_ite/Browser/Core/Notification.js
109248
- /* provided dependency */ var Notification_$ = __webpack_require__(427);
109252
+ /* provided dependency */ var Notification_$ = __webpack_require__(524);
109249
109253
  /*******************************************************************************
109250
109254
  *
109251
109255
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109327,7 +109331,7 @@ Object .assign (Object .setPrototypeOf (Notification .prototype, Base_X3DBaseNod
109327
109331
  .hide ()
109328
109332
  .addClass ("x_ite-private-notification")
109329
109333
  .appendTo (this .getBrowser () .getSurface ())
109330
- .animate ({ width: 0 });
109334
+ .css ("width", 0);
109331
109335
 
109332
109336
  Notification_$("<span></span>") .appendTo (this .element);
109333
109337
 
@@ -109367,8 +109371,8 @@ const Notification_default_ = Notification;
109367
109371
 
109368
109372
  /* harmony default export */ const Core_Notification = (x_ite_Namespace .add ("Notification", Notification_default_));
109369
109373
  ;// ./src/x_ite/Browser/Core/ContextMenu.js
109370
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(367);
109371
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(427);
109374
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(400);
109375
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(524);
109372
109376
  /*******************************************************************************
109373
109377
  *
109374
109378
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -112090,7 +112094,7 @@ const DataStorage_default_ = DataStorage;
112090
112094
 
112091
112095
  /* harmony default export */ const Utility_DataStorage = (x_ite_Namespace .add ("DataStorage", DataStorage_default_));
112092
112096
  ;// ./src/x_ite/Browser/Core/X3DCoreContext.js
112093
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(427);
112097
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(524);
112094
112098
  /*******************************************************************************
112095
112099
  *
112096
112100
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114701,8 +114705,8 @@ const X3DViewer_default_ = X3DViewer;
114701
114705
 
114702
114706
  /* harmony default export */ const Navigation_X3DViewer = (x_ite_Namespace .add ("X3DViewer", X3DViewer_default_));
114703
114707
  ;// ./src/x_ite/Browser/Navigation/ExamineViewer.js
114704
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(675);
114705
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(427);
114708
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(866);
114709
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(524);
114706
114710
  /*******************************************************************************
114707
114711
  *
114708
114712
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115617,8 +115621,8 @@ const ExamineViewer_default_ = ExamineViewer;
115617
115621
 
115618
115622
  /* harmony default export */ const Navigation_ExamineViewer = (x_ite_Namespace .add ("ExamineViewer", ExamineViewer_default_));
115619
115623
  ;// ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
115620
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(675);
115621
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(427);
115624
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(866);
115625
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(524);
115622
115626
  /*******************************************************************************
115623
115627
  *
115624
115628
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116633,8 +116637,8 @@ const FlyViewer_default_ = FlyViewer;
116633
116637
 
116634
116638
  /* harmony default export */ const Navigation_FlyViewer = (x_ite_Namespace .add ("FlyViewer", FlyViewer_default_));
116635
116639
  ;// ./src/x_ite/Browser/Navigation/PlaneViewer.js
116636
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(675);
116637
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(427);
116640
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(866);
116641
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(524);
116638
116642
  /*******************************************************************************
116639
116643
  *
116640
116644
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116963,8 +116967,8 @@ const NoneViewer_default_ = NoneViewer;
116963
116967
 
116964
116968
  /* harmony default export */ const Navigation_NoneViewer = (x_ite_Namespace .add ("NoneViewer", NoneViewer_default_));
116965
116969
  ;// ./src/x_ite/Browser/Navigation/LookAtViewer.js
116966
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(675);
116967
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(427);
116970
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(866);
116971
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(524);
116968
116972
  /*******************************************************************************
116969
116973
  *
116970
116974
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118106,8 +118110,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
118106
118110
 
118107
118111
  /* harmony default export */ const Picking_X3DPickingContext = (x_ite_Namespace .add ("X3DPickingContext", X3DPickingContext_default_));
118108
118112
  ;// ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
118109
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(675);
118110
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(427);
118113
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(866);
118114
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(524);
118111
118115
  /*******************************************************************************
118112
118116
  *
118113
118117
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -119554,7 +119558,7 @@ const Lock_default_ = Lock;
119554
119558
 
119555
119559
  /* harmony default export */ const Utility_Lock = (x_ite_Namespace .add ("Lock", Lock_default_));
119556
119560
  ;// ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
119557
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(427);
119561
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(524);
119558
119562
  /*******************************************************************************
119559
119563
  *
119560
119564
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -120868,7 +120872,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
120868
120872
 
120869
120873
  /* harmony default export */ const Sound_X3DSoundContext = (x_ite_Namespace .add ("X3DSoundContext", X3DSoundContext_default_));
120870
120874
  ;// ./src/x_ite/Browser/Texturing/KTXDecoder.js
120871
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(427);
120875
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(524);
120872
120876
  const KTXDecoder_default_ = class KTXDecoder
120873
120877
  {
120874
120878
  constructor (gl, externalKtxlib, scriptDir)
@@ -122447,7 +122451,7 @@ const Components_default_ = Components;
122447
122451
 
122448
122452
  /* harmony default export */ const x_ite_Components = (x_ite_Namespace .add ("Components", Components_default_));
122449
122453
  ;// ./src/x_ite/Browser/DOMIntegration.js
122450
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(427);
122454
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(524);
122451
122455
  /*******************************************************************************
122452
122456
  * MIT License
122453
122457
  *
@@ -123713,7 +123717,7 @@ const FieldTypes_default_ = new Configuration_FieldTypesArray (Object .values (x
123713
123717
 
123714
123718
  /* harmony default export */ const FieldTypes = (x_ite_Namespace .add ("FieldTypes", FieldTypes_default_));
123715
123719
  ;// ./src/x_ite/Browser/X3DBrowser.js
123716
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(427);
123720
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(524);
123717
123721
  /*******************************************************************************
123718
123722
  *
123719
123723
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -124815,7 +124819,7 @@ const X3DBrowser_default_ = X3DBrowser;
124815
124819
 
124816
124820
  /* harmony default export */ const Browser_X3DBrowser = (x_ite_Namespace .add ("X3DBrowser", X3DBrowser_default_));
124817
124821
  ;// ./src/x_ite/X3DCanvasElement.js
124818
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(427);
124822
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(524);
124819
124823
  /*******************************************************************************
124820
124824
  *
124821
124825
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -125082,8 +125086,8 @@ const QuickSort_default_ = QuickSort;
125082
125086
 
125083
125087
  /* harmony default export */ const Algorithms_QuickSort = (x_ite_Namespace .add ("QuickSort", QuickSort_default_));
125084
125088
  ;// ./src/lib/jquery.js
125085
- /* provided dependency */ var jquery_$ = __webpack_require__(427);
125086
- /* provided dependency */ var pako = __webpack_require__(355);
125089
+ /* provided dependency */ var jquery_$ = __webpack_require__(524);
125090
+ /* provided dependency */ var pako = __webpack_require__(496);
125087
125091
  Object .assign (jquery_$,
125088
125092
  {
125089
125093
  decodeText (input)
@@ -125164,13 +125168,13 @@ const jquery_default_ = jquery_$;
125164
125168
 
125165
125169
  /* harmony default export */ const jquery = (x_ite_Namespace .add ("jquery", jquery_default_));
125166
125170
  ;// ./src/lib/libtess.js
125167
- /* provided dependency */ var libtess_libtess = __webpack_require__(800);
125171
+ /* provided dependency */ var libtess_libtess = __webpack_require__(153);
125168
125172
  const libtess_default_ = libtess_libtess;
125169
125173
  ;
125170
125174
 
125171
125175
  /* harmony default export */ const lib_libtess = (x_ite_Namespace .add ("libtess", libtess_default_));
125172
125176
  ;// ./src/x_ite/X3D.js
125173
- /* provided dependency */ var X3D_$ = __webpack_require__(427);
125177
+ /* provided dependency */ var X3D_$ = __webpack_require__(524);
125174
125178
  /*******************************************************************************
125175
125179
  *
125176
125180
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -125474,7 +125478,7 @@ x_ite_Namespace, x_ite_Namespace .Fields,
125474
125478
 
125475
125479
  // Assign X3D to global namespace.
125476
125480
 
125477
- window [Symbol .for ("X_ITE.X3D-10.5.10")] = x_ite_X3D;
125481
+ window [Symbol .for ("X_ITE.X3D-10.5.11")] = x_ite_X3D;
125478
125482
 
125479
125483
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
125480
125484
 
package/dist/x_ite.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x_ite",
3
- "version": "10.5.10",
3
+ "version": "10.5.11",
4
4
  "description": "X_ITE X3D Browser, view and manipulate X3D, VRML, glTF and other 3D sources in HTML.",
5
5
  "main": "dist/x_ite.js",
6
6
  "module": "dist/x_ite.mjs",
@@ -28,7 +28,7 @@
28
28
  "ts": "node build/bin/ts.js",
29
29
  "predocs": "rm -f -r docs/_site/",
30
30
  "docs": "cd docs && bundle exec jekyll serve --ssl-key ssl/server.key --ssl-cert ssl/server.crt --incremental --host=`ipconfig getifaddr en0`",
31
- "docs-install": "cd docs && bundle install",
31
+ "docs-install": "cd docs && gem install bundler && bundle install",
32
32
  "docs-update": "cd docs && bundle update",
33
33
  "docs-components": "node build/docs/components.js",
34
34
  "docs-nodes": "perl build/docs/nodes.pl",