x_ite 10.5.10 → 10.5.12

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 +98 -88
  45. package/dist/x_ite.min.js +2 -2
  46. package/dist/x_ite.min.mjs +2 -2
  47. package/dist/x_ite.mjs +98 -88
  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.12 */
2
2
  var __webpack_modules__ = ({
3
3
 
4
- /***/ 367:
4
+ /***/ 823:
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__(827);
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
+ /***/ 739:
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__(827)], __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
+ /***/ 827:
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
+ /***/ 688:
11153
11153
  /***/ ((module) => {
11154
11154
 
11155
11155
  /**
@@ -15928,7 +15928,7 @@ if (true) {
15928
15928
 
15929
15929
  /***/ }),
15930
15930
 
15931
- /***/ 355:
15931
+ /***/ 779:
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
+ /***/ 428:
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.12")];
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__(827);
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.12";
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__(688);
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__(827);
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__(827);
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__(827);
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__(827);
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__(827);
44981
44981
  /*******************************************************************************
44982
44982
  *
44983
44983
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -48375,22 +48375,28 @@ function eventsProcessed ()
48375
48375
 
48376
48376
  const coordinateInterpolatorNode = this .createArrayInterpolator ("CoordinateInterpolator", interpolation, times, keyValues .array, cycleInterval, targets, attributes, "POSITION");
48377
48377
 
48378
- if (coordinateInterpolatorNode)
48378
+ if (coordinateInterpolatorNode ?._key .length > 1)
48379
48379
  {
48380
- interpolatorNodes .push (coordinateInterpolatorNode);
48380
+ if (coordinateInterpolatorNode ._keyValue .length / coordinateInterpolatorNode ._key .length === geometryNode ._coord .point .length)
48381
+ {
48382
+ interpolatorNodes .push (coordinateInterpolatorNode);
48381
48383
 
48382
- scene .addRoute (timeSensorNode, "fraction_changed", coordinateInterpolatorNode, "set_fraction");
48383
- scene .addRoute (coordinateInterpolatorNode, "value_changed", geometryNode ._coord, "point");
48384
+ scene .addRoute (timeSensorNode, "fraction_changed", coordinateInterpolatorNode, "set_fraction");
48385
+ scene .addRoute (coordinateInterpolatorNode, "value_changed", geometryNode ._coord, "point");
48386
+ }
48384
48387
  }
48385
48388
 
48386
48389
  const normalInterpolatorNode = this .createArrayInterpolator ("NormalInterpolator", interpolation, times, keyValues .array, cycleInterval, targets, attributes, "NORMAL");
48387
48390
 
48388
- if (normalInterpolatorNode)
48391
+ if (normalInterpolatorNode ?._key .length > 1)
48389
48392
  {
48390
- interpolatorNodes .push (normalInterpolatorNode);
48393
+ if (normalInterpolatorNode ._keyValue .length / normalInterpolatorNode ._key .length === geometryNode ._normal .vector .length)
48394
+ {
48395
+ interpolatorNodes .push (normalInterpolatorNode);
48391
48396
 
48392
- scene .addRoute (timeSensorNode, "fraction_changed", normalInterpolatorNode, "set_fraction");
48393
- scene .addRoute (normalInterpolatorNode, "value_changed", geometryNode ._normal, "vector");
48397
+ scene .addRoute (timeSensorNode, "fraction_changed", normalInterpolatorNode, "set_fraction");
48398
+ scene .addRoute (normalInterpolatorNode, "value_changed", geometryNode ._normal, "vector");
48399
+ }
48394
48400
  }
48395
48401
  }
48396
48402
 
@@ -48984,7 +48990,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
48984
48990
 
48985
48991
  /* harmony default export */ const Parser_GLTF2Parser = (x_ite_Namespace .add ("GLTF2Parser", GLTF2Parser_default_));
48986
48992
  ;// ./src/x_ite/Parser/GLB2Parser.js
48987
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(427);
48993
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(827);
48988
48994
  /*******************************************************************************
48989
48995
  *
48990
48996
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -49135,7 +49141,7 @@ const GLB2Parser_default_ = GLB2Parser;
49135
49141
 
49136
49142
  /* harmony default export */ const Parser_GLB2Parser = (x_ite_Namespace .add ("GLB2Parser", GLB2Parser_default_));
49137
49143
  ;// ./src/x_ite/Parser/OBJParser.js
49138
- /* provided dependency */ var OBJParser_$ = __webpack_require__(427);
49144
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(827);
49139
49145
  /*******************************************************************************
49140
49146
  *
49141
49147
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -52502,8 +52508,8 @@ const MatrixStack_default_ = MatrixStack;
52502
52508
 
52503
52509
  /* harmony default export */ const Utility_MatrixStack = (x_ite_Namespace .add ("MatrixStack", MatrixStack_default_));
52504
52510
  ;// ./src/x_ite/Parser/SVGParser.js
52505
- /* provided dependency */ var SVGParser_$ = __webpack_require__(427);
52506
- /* provided dependency */ var SVGParser_libtess = __webpack_require__(800);
52511
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(827);
52512
+ /* provided dependency */ var SVGParser_libtess = __webpack_require__(688);
52507
52513
  /*******************************************************************************
52508
52514
  *
52509
52515
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -52639,8 +52645,7 @@ function SVGParser (scene)
52639
52645
  this .strokeGeometries = new Map ();
52640
52646
  this .lineProperties = new Map ();
52641
52647
  this .tessy = this .createTesselator ();
52642
- this .canvas = document .createElement ("canvas");
52643
- this .context = this .canvas .getContext ("2d");
52648
+ this .context = document .createElement ("canvas") .getContext ("2d", { willReadFrequently: true });
52644
52649
  this .numSwitchNodes = 0;
52645
52650
 
52646
52651
  this .styles = [{
@@ -52694,8 +52699,9 @@ function SVGParser (scene)
52694
52699
  break;
52695
52700
  }
52696
52701
 
52697
- this .canvas .width = this .GRADIENT_SIZE;
52698
- this .canvas .height = this .GRADIENT_SIZE;
52702
+ // Use .canvas to support foreign 2d libs.
52703
+ this .context .canvas .width = this .GRADIENT_SIZE;
52704
+ this .context .canvas .height = this .GRADIENT_SIZE;
52699
52705
  }
52700
52706
 
52701
52707
  Object .assign (Object .setPrototypeOf (SVGParser .prototype, Parser_X3DParser .prototype),
@@ -53712,7 +53718,7 @@ Object .assign (Object .setPrototypeOf (SVGParser .prototype, Parser_X3DParser .
53712
53718
  cx .restore ();
53713
53719
 
53714
53720
  // Use PNG because image can have alpha channel.
53715
- return this .canvas .toDataURL ("image/png");
53721
+ return this .context .canvas .toDataURL ("image/png");
53716
53722
  },
53717
53723
  patternUrl (xmlElement)
53718
53724
  {
@@ -55282,7 +55288,7 @@ const SVGParser_default_ = SVGParser;
55282
55288
 
55283
55289
  /* harmony default export */ const Parser_SVGParser = (x_ite_Namespace .add ("SVGParser", SVGParser_default_));
55284
55290
  ;// ./src/x_ite/Parser/GoldenGate.js
55285
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(427);
55291
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(827);
55286
55292
  /*******************************************************************************
55287
55293
  *
55288
55294
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -60275,7 +60281,7 @@ const MikkTSpace_default_ = new class MikkTSpace
60275
60281
  {
60276
60282
  if (response .headers .get ("Content-Type") !== "application/wasm")
60277
60283
  {
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);
60284
+ // 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
60285
  }
60280
60286
  else
60281
60287
  {
@@ -63301,7 +63307,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
63301
63307
 
63302
63308
  /* harmony default export */ const Texturing_X3DTexture2DNode = (x_ite_Namespace .add ("X3DTexture2DNode", X3DTexture2DNode_default_));
63303
63309
  ;// ./src/x_ite/Components/Texturing/ImageTexture.js
63304
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(427);
63310
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(827);
63305
63311
  /*******************************************************************************
63306
63312
  *
63307
63313
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -63504,8 +63510,9 @@ Object .assign (Object .setPrototypeOf (ImageTexture .prototype, Texturing_X3DTe
63504
63510
  height = Math_Algorithm .nextPowerOfTwo (height);
63505
63511
  }
63506
63512
 
63507
- canvas .width = width;
63508
- canvas .height = height;
63513
+ // Use .canvas to support foreign 2d libs.
63514
+ cx .canvas .width = width;
63515
+ cx .canvas .height = height;
63509
63516
 
63510
63517
  cx .clearRect (0, 0, width, height);
63511
63518
  cx .drawImage (image, 0, 0, image .width, image .height, 0, 0, width, height);
@@ -66727,7 +66734,7 @@ const X3DWorld_default_ = X3DWorld;
66727
66734
 
66728
66735
  /* harmony default export */ const Execution_X3DWorld = (x_ite_Namespace .add ("X3DWorld", X3DWorld_default_));
66729
66736
  ;// ./src/x_ite/InputOutput/FileLoader.js
66730
- /* provided dependency */ var FileLoader_$ = __webpack_require__(427);
66737
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(827);
66731
66738
  /*******************************************************************************
66732
66739
  *
66733
66740
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -67691,7 +67698,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
67691
67698
 
67692
67699
  /* harmony default export */ const Prototype_ProtoDeclarationArray = (x_ite_Namespace .add ("ProtoDeclarationArray", ProtoDeclarationArray_default_));
67693
67700
  ;// ./src/x_ite/Routing/X3DRoute.js
67694
- /* provided dependency */ var X3DRoute_$ = __webpack_require__(427);
67701
+ /* provided dependency */ var X3DRoute_$ = __webpack_require__(827);
67695
67702
  /*******************************************************************************
67696
67703
  *
67697
67704
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -91371,7 +91378,7 @@ mediump samplerCube textureCube;
91371
91378
 
91372
91379
  /* harmony default export */ const MaterialTextures = (x_ite_Namespace .add ("MaterialTextures", MaterialTextures_default_));
91373
91380
  ;// ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
91374
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(427);
91381
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(827);
91375
91382
  /*******************************************************************************
91376
91383
  *
91377
91384
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -96668,7 +96675,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
96668
96675
 
96669
96676
  /* harmony default export */ const Shaders_ShaderCompiler = (x_ite_Namespace .add ("ShaderCompiler", ShaderCompiler_default_));
96670
96677
  ;// ./src/x_ite/Components/Shaders/ShaderPart.js
96671
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(427);
96678
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(827);
96672
96679
  /*******************************************************************************
96673
96680
  *
96674
96681
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -97266,7 +97273,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
97266
97273
 
97267
97274
  /* harmony default export */ const Shape_X3DAppearanceNode = (x_ite_Namespace .add ("X3DAppearanceNode", X3DAppearanceNode_default_));
97268
97275
  ;// ./src/x_ite/Components/Shape/Appearance.js
97269
- /* provided dependency */ var Appearance_$ = __webpack_require__(427);
97276
+ /* provided dependency */ var Appearance_$ = __webpack_require__(827);
97270
97277
  /*******************************************************************************
97271
97278
  *
97272
97279
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -105196,10 +105203,9 @@ Object .assign (Object .setPrototypeOf (WaveShaper .prototype, Sound_X3DSoundPro
105196
105203
  },
105197
105204
  set_curve__ ()
105198
105205
  {
105199
- if (this ._curve .length < 2)
105200
- this ._curve .length = 2;
105201
-
105202
- this .waveShaperNode .curve = this ._curve .shrinkToFit ();
105206
+ this .waveShaperNode .curve = this ._curve .length < 2
105207
+ ? new Float32Array (2)
105208
+ : this ._curve .shrinkToFit ();
105203
105209
  },
105204
105210
  set_oversample__: (function ()
105205
105211
  {
@@ -105498,8 +105504,8 @@ const GifMedia_default_ = GifMedia;
105498
105504
 
105499
105505
  /* harmony default export */ const Texturing_GifMedia = (x_ite_Namespace .add ("GifMedia", GifMedia_default_));
105500
105506
  ;// ./src/x_ite/Components/Texturing/MovieTexture.js
105501
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(427);
105502
- /* provided dependency */ var SuperGif = __webpack_require__(388);
105507
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(827);
105508
+ /* provided dependency */ var SuperGif = __webpack_require__(428);
105503
105509
  /*******************************************************************************
105504
105510
  *
105505
105511
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -105733,8 +105739,11 @@ Object .assign (Object .setPrototypeOf (MovieTexture .prototype, Texturing_X3DTe
105733
105739
  {
105734
105740
  const media = this .getMediaElement ();
105735
105741
 
105736
- if (media)
105737
- media .playbackRate = this ._speed .getValue () * Math .max (this ._pitch .getValue (), 0);
105742
+ if (!media)
105743
+ return;
105744
+
105745
+ media .playbackRate = this ._speed .getValue () * Math .max (this ._pitch .getValue (), 0);
105746
+ media .preservesPitch = this ._pitch .getValue () === 1;
105738
105747
  },
105739
105748
  set_time ()
105740
105749
  {
@@ -106546,8 +106555,7 @@ Object .assign (Object .setPrototypeOf (PixelTexture .prototype, Texturing_X3DTe
106546
106555
  }
106547
106556
  else
106548
106557
  {
106549
- if (!this .canvas)
106550
- this .canvas = [document .createElement ("canvas"), document .createElement ("canvas")];
106558
+ this .canvas ??= [document .createElement ("canvas"), document .createElement ("canvas")];
106551
106559
 
106552
106560
  const
106553
106561
  canvas1 = this .canvas [0],
@@ -106556,8 +106564,9 @@ Object .assign (Object .setPrototypeOf (PixelTexture .prototype, Texturing_X3DTe
106556
106564
  cx2 = canvas2 .getContext ("2d", { willReadFrequently: true }),
106557
106565
  imageData = cx1 .createImageData (width, height);
106558
106566
 
106559
- canvas1 .width = width;
106560
- canvas1 .height = height;
106567
+ // Use .canvas to support foreign 2d libs.
106568
+ cx1 .canvas .width = width;
106569
+ cx1 .canvas .height = height;
106561
106570
 
106562
106571
  this .convert (imageData .data, comp, array .getValue (), array .length);
106563
106572
  cx1 .putImageData (imageData, 0, 0);
@@ -106565,8 +106574,9 @@ Object .assign (Object .setPrototypeOf (PixelTexture .prototype, Texturing_X3DTe
106565
106574
  width = Math_Algorithm .nextPowerOfTwo (width);
106566
106575
  height = Math_Algorithm .nextPowerOfTwo (height);
106567
106576
 
106568
- canvas2 .width = width;
106569
- canvas2 .height = height;
106577
+ // Use .canvas to support foreign 2d libs.
106578
+ cx2 .canvas .width = width;
106579
+ cx2 .canvas .height = height;
106570
106580
 
106571
106581
  cx2 .clearRect (0, 0, width, height);
106572
106582
  cx2 .drawImage (canvas1, 0, 0, canvas1 .width, canvas1 .height, 0, 0, width, height);
@@ -107968,7 +107978,7 @@ const gettext_default_ = (string) => locale .get (string) || string;
107968
107978
 
107969
107979
  /* harmony default export */ const gettext = (x_ite_Namespace .add ("gettext", gettext_default_));
107970
107980
  ;// ./src/x_ite/Browser/Core/BrowserTimings.js
107971
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(427);
107981
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(827);
107972
107982
  /*******************************************************************************
107973
107983
  *
107974
107984
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -108598,7 +108608,7 @@ const TextCompression_default_ = TextCompression;
108598
108608
 
108599
108609
  /* harmony default export */ const Core_TextCompression = (x_ite_Namespace .add ("TextCompression", TextCompression_default_));
108600
108610
  ;// ./src/x_ite/Browser/Core/BrowserOptions.js
108601
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(427);
108611
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(827);
108602
108612
  /*******************************************************************************
108603
108613
  *
108604
108614
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109245,7 +109255,7 @@ const RenderingProperties_default_ = RenderingProperties;
109245
109255
 
109246
109256
  /* harmony default export */ const Core_RenderingProperties = (x_ite_Namespace .add ("RenderingProperties", RenderingProperties_default_));
109247
109257
  ;// ./src/x_ite/Browser/Core/Notification.js
109248
- /* provided dependency */ var Notification_$ = __webpack_require__(427);
109258
+ /* provided dependency */ var Notification_$ = __webpack_require__(827);
109249
109259
  /*******************************************************************************
109250
109260
  *
109251
109261
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109327,7 +109337,7 @@ Object .assign (Object .setPrototypeOf (Notification .prototype, Base_X3DBaseNod
109327
109337
  .hide ()
109328
109338
  .addClass ("x_ite-private-notification")
109329
109339
  .appendTo (this .getBrowser () .getSurface ())
109330
- .animate ({ width: 0 });
109340
+ .css ("width", 0);
109331
109341
 
109332
109342
  Notification_$("<span></span>") .appendTo (this .element);
109333
109343
 
@@ -109367,8 +109377,8 @@ const Notification_default_ = Notification;
109367
109377
 
109368
109378
  /* harmony default export */ const Core_Notification = (x_ite_Namespace .add ("Notification", Notification_default_));
109369
109379
  ;// ./src/x_ite/Browser/Core/ContextMenu.js
109370
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(367);
109371
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(427);
109380
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(823);
109381
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(827);
109372
109382
  /*******************************************************************************
109373
109383
  *
109374
109384
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -112090,7 +112100,7 @@ const DataStorage_default_ = DataStorage;
112090
112100
 
112091
112101
  /* harmony default export */ const Utility_DataStorage = (x_ite_Namespace .add ("DataStorage", DataStorage_default_));
112092
112102
  ;// ./src/x_ite/Browser/Core/X3DCoreContext.js
112093
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(427);
112103
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(827);
112094
112104
  /*******************************************************************************
112095
112105
  *
112096
112106
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114701,8 +114711,8 @@ const X3DViewer_default_ = X3DViewer;
114701
114711
 
114702
114712
  /* harmony default export */ const Navigation_X3DViewer = (x_ite_Namespace .add ("X3DViewer", X3DViewer_default_));
114703
114713
  ;// ./src/x_ite/Browser/Navigation/ExamineViewer.js
114704
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(675);
114705
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(427);
114714
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(739);
114715
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(827);
114706
114716
  /*******************************************************************************
114707
114717
  *
114708
114718
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115617,8 +115627,8 @@ const ExamineViewer_default_ = ExamineViewer;
115617
115627
 
115618
115628
  /* harmony default export */ const Navigation_ExamineViewer = (x_ite_Namespace .add ("ExamineViewer", ExamineViewer_default_));
115619
115629
  ;// ./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);
115630
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(739);
115631
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(827);
115622
115632
  /*******************************************************************************
115623
115633
  *
115624
115634
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116633,8 +116643,8 @@ const FlyViewer_default_ = FlyViewer;
116633
116643
 
116634
116644
  /* harmony default export */ const Navigation_FlyViewer = (x_ite_Namespace .add ("FlyViewer", FlyViewer_default_));
116635
116645
  ;// ./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);
116646
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(739);
116647
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(827);
116638
116648
  /*******************************************************************************
116639
116649
  *
116640
116650
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116963,8 +116973,8 @@ const NoneViewer_default_ = NoneViewer;
116963
116973
 
116964
116974
  /* harmony default export */ const Navigation_NoneViewer = (x_ite_Namespace .add ("NoneViewer", NoneViewer_default_));
116965
116975
  ;// ./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);
116976
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(739);
116977
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(827);
116968
116978
  /*******************************************************************************
116969
116979
  *
116970
116980
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118106,8 +118116,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
118106
118116
 
118107
118117
  /* harmony default export */ const Picking_X3DPickingContext = (x_ite_Namespace .add ("X3DPickingContext", X3DPickingContext_default_));
118108
118118
  ;// ./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);
118119
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(739);
118120
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(827);
118111
118121
  /*******************************************************************************
118112
118122
  *
118113
118123
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -119554,7 +119564,7 @@ const Lock_default_ = Lock;
119554
119564
 
119555
119565
  /* harmony default export */ const Utility_Lock = (x_ite_Namespace .add ("Lock", Lock_default_));
119556
119566
  ;// ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
119557
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(427);
119567
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(827);
119558
119568
  /*******************************************************************************
119559
119569
  *
119560
119570
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -120868,7 +120878,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
120868
120878
 
120869
120879
  /* harmony default export */ const Sound_X3DSoundContext = (x_ite_Namespace .add ("X3DSoundContext", X3DSoundContext_default_));
120870
120880
  ;// ./src/x_ite/Browser/Texturing/KTXDecoder.js
120871
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(427);
120881
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(827);
120872
120882
  const KTXDecoder_default_ = class KTXDecoder
120873
120883
  {
120874
120884
  constructor (gl, externalKtxlib, scriptDir)
@@ -122447,7 +122457,7 @@ const Components_default_ = Components;
122447
122457
 
122448
122458
  /* harmony default export */ const x_ite_Components = (x_ite_Namespace .add ("Components", Components_default_));
122449
122459
  ;// ./src/x_ite/Browser/DOMIntegration.js
122450
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(427);
122460
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(827);
122451
122461
  /*******************************************************************************
122452
122462
  * MIT License
122453
122463
  *
@@ -123713,7 +123723,7 @@ const FieldTypes_default_ = new Configuration_FieldTypesArray (Object .values (x
123713
123723
 
123714
123724
  /* harmony default export */ const FieldTypes = (x_ite_Namespace .add ("FieldTypes", FieldTypes_default_));
123715
123725
  ;// ./src/x_ite/Browser/X3DBrowser.js
123716
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(427);
123726
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(827);
123717
123727
  /*******************************************************************************
123718
123728
  *
123719
123729
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -124815,7 +124825,7 @@ const X3DBrowser_default_ = X3DBrowser;
124815
124825
 
124816
124826
  /* harmony default export */ const Browser_X3DBrowser = (x_ite_Namespace .add ("X3DBrowser", X3DBrowser_default_));
124817
124827
  ;// ./src/x_ite/X3DCanvasElement.js
124818
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(427);
124828
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(827);
124819
124829
  /*******************************************************************************
124820
124830
  *
124821
124831
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -125082,8 +125092,8 @@ const QuickSort_default_ = QuickSort;
125082
125092
 
125083
125093
  /* harmony default export */ const Algorithms_QuickSort = (x_ite_Namespace .add ("QuickSort", QuickSort_default_));
125084
125094
  ;// ./src/lib/jquery.js
125085
- /* provided dependency */ var jquery_$ = __webpack_require__(427);
125086
- /* provided dependency */ var pako = __webpack_require__(355);
125095
+ /* provided dependency */ var jquery_$ = __webpack_require__(827);
125096
+ /* provided dependency */ var pako = __webpack_require__(779);
125087
125097
  Object .assign (jquery_$,
125088
125098
  {
125089
125099
  decodeText (input)
@@ -125164,13 +125174,13 @@ const jquery_default_ = jquery_$;
125164
125174
 
125165
125175
  /* harmony default export */ const jquery = (x_ite_Namespace .add ("jquery", jquery_default_));
125166
125176
  ;// ./src/lib/libtess.js
125167
- /* provided dependency */ var libtess_libtess = __webpack_require__(800);
125177
+ /* provided dependency */ var libtess_libtess = __webpack_require__(688);
125168
125178
  const libtess_default_ = libtess_libtess;
125169
125179
  ;
125170
125180
 
125171
125181
  /* harmony default export */ const lib_libtess = (x_ite_Namespace .add ("libtess", libtess_default_));
125172
125182
  ;// ./src/x_ite/X3D.js
125173
- /* provided dependency */ var X3D_$ = __webpack_require__(427);
125183
+ /* provided dependency */ var X3D_$ = __webpack_require__(827);
125174
125184
  /*******************************************************************************
125175
125185
  *
125176
125186
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -125474,7 +125484,7 @@ x_ite_Namespace, x_ite_Namespace .Fields,
125474
125484
 
125475
125485
  // Assign X3D to global namespace.
125476
125486
 
125477
- window [Symbol .for ("X_ITE.X3D-10.5.10")] = x_ite_X3D;
125487
+ window [Symbol .for ("X_ITE.X3D-10.5.12")] = x_ite_X3D;
125478
125488
 
125479
125489
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
125480
125490
 
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.12",
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",