x_ite 10.5.9 → 10.5.10

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 +9 -5
  2. package/dist/assets/components/AnnotationComponent.js +2 -2
  3. package/dist/assets/components/AnnotationComponent.min.js +2 -2
  4. package/dist/assets/components/CADGeometryComponent.js +2 -2
  5. package/dist/assets/components/CADGeometryComponent.min.js +2 -2
  6. package/dist/assets/components/CubeMapTexturingComponent.js +2 -2
  7. package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -2
  8. package/dist/assets/components/DISComponent.js +2 -2
  9. package/dist/assets/components/DISComponent.min.js +2 -2
  10. package/dist/assets/components/EventUtilitiesComponent.js +2 -2
  11. package/dist/assets/components/EventUtilitiesComponent.min.js +2 -2
  12. package/dist/assets/components/Geometry2DComponent.js +2 -2
  13. package/dist/assets/components/Geometry2DComponent.min.js +2 -2
  14. package/dist/assets/components/GeospatialComponent.js +2 -2
  15. package/dist/assets/components/GeospatialComponent.min.js +2 -2
  16. package/dist/assets/components/HAnimComponent.js +2 -2
  17. package/dist/assets/components/HAnimComponent.min.js +2 -2
  18. package/dist/assets/components/KeyDeviceSensorComponent.js +2 -2
  19. package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -2
  20. package/dist/assets/components/LayoutComponent.js +2 -2
  21. package/dist/assets/components/LayoutComponent.min.js +2 -2
  22. package/dist/assets/components/NURBSComponent.js +14 -8
  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 +3 -3
  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 +5 -5
  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 +11 -11
  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 +123 -86
  45. package/dist/x_ite.min.js +2 -2
  46. package/dist/x_ite.min.mjs +2 -2
  47. package/dist/x_ite.mjs +122 -85
  48. package/dist/x_ite.zip +0 -0
  49. package/package.json +3 -3
package/dist/x_ite.mjs CHANGED
@@ -1,10 +1,10 @@
1
- /* X_ITE v10.5.9 */
1
+ /* X_ITE v10.5.10 */
2
2
  var __webpack_modules__ = ({
3
3
 
4
- /***/ 58:
4
+ /***/ 367:
5
5
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
6
6
 
7
- /* provided dependency */ var jQuery = __webpack_require__(394);
7
+ /* provided dependency */ var jQuery = __webpack_require__(427);
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
- /***/ 576:
203
+ /***/ 675:
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__(394)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
217
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(427)], __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
- /***/ 394:
428
+ /***/ 427:
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
- /***/ 787:
11152
+ /***/ 800:
11153
11153
  /***/ ((module) => {
11154
11154
 
11155
11155
  /**
@@ -15928,7 +15928,7 @@ if (true) {
15928
15928
 
15929
15929
  /***/ }),
15930
15930
 
15931
- /***/ 514:
15931
+ /***/ 355:
15932
15932
  /***/ (function(__unused_webpack_module, exports) {
15933
15933
 
15934
15934
 
@@ -19173,7 +19173,7 @@ if (true) {
19173
19173
 
19174
19174
  /***/ }),
19175
19175
 
19176
- /***/ 485:
19176
+ /***/ 388:
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.9")];
20300
+ const X3D = window [Symbol .for ("X_ITE.X3D-10.5.10")];
20301
20301
 
20302
20302
  if (X3D)
20303
20303
  X3D [name] = module;
@@ -21140,11 +21140,9 @@ Object .assign (Generator .prototype,
21140
21140
  },
21141
21141
  ExistsRouteNode (routeNode)
21142
21142
  {
21143
- const
21144
- namesByNode = this .namesByNode .get (this .ExecutionContext ()),
21145
- routeNodes = this .routeNodes .get (this .ExecutionContext ());
21143
+ const routeNodes = this .routeNodes .get (this .ExecutionContext ());
21146
21144
 
21147
- return namesByNode .has (routeNode) || routeNodes .has (routeNode);
21145
+ return routeNodes .has (routeNode);
21148
21146
  },
21149
21147
  IsSharedNode (baseNode)
21150
21148
  {
@@ -29209,13 +29207,9 @@ const SFNodeCache =
29209
29207
 
29210
29208
  function dispose ()
29211
29209
  {
29212
- const value = this .getValue ();
29213
-
29214
- value ?.dispose ();
29210
+ this .getValue () ?.dispose ();
29215
29211
 
29216
29212
  Fields_SFNode .prototype .dispose .call (this);
29217
-
29218
- SFNodeCache .delete (value);
29219
29213
  }
29220
29214
 
29221
29215
  const SFNodeCache_default_ = SFNodeCache;
@@ -34179,7 +34173,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34179
34173
 
34180
34174
  /* harmony default export */ const Base_X3DBaseNode = (x_ite_Namespace .add ("X3DBaseNode", X3DBaseNode_default_));
34181
34175
  ;// ./src/x_ite/Browser/Legacy.js
34182
- /* provided dependency */ var $ = __webpack_require__(394);
34176
+ /* provided dependency */ var $ = __webpack_require__(427);
34183
34177
  /*******************************************************************************
34184
34178
  *
34185
34179
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34315,7 +34309,7 @@ const Legacy_default_ = Legacy;
34315
34309
  *
34316
34310
  ******************************************************************************/
34317
34311
 
34318
- const BROWSER_VERSION_default_ = "10.5.9";
34312
+ const BROWSER_VERSION_default_ = "10.5.10";
34319
34313
  ;
34320
34314
 
34321
34315
  /* harmony default export */ const BROWSER_VERSION = (x_ite_Namespace .add ("BROWSER_VERSION", BROWSER_VERSION_default_));
@@ -34372,6 +34366,7 @@ const BROWSER_VERSION_default_ = "10.5.9";
34372
34366
 
34373
34367
 
34374
34368
 
34369
+
34375
34370
  const _metaDataCallbacks = Symbol ();
34376
34371
 
34377
34372
  function X3DNode (executionContext)
@@ -35596,6 +35591,7 @@ Object .assign (Object .setPrototypeOf (X3DNode .prototype, Base_X3DBaseNode .pr
35596
35591
  }
35597
35592
  }
35598
35593
 
35594
+
35599
35595
  // Type name
35600
35596
 
35601
35597
  generator .string += '{';
@@ -36087,6 +36083,8 @@ Object .assign (Object .setPrototypeOf (X3DNode .prototype, Base_X3DBaseNode .pr
36087
36083
  firstParent .setValue (null);
36088
36084
  }
36089
36085
 
36086
+ Fields_SFNodeCache .delete (this);
36087
+
36090
36088
  // Call super.dispose, where fields get disposed.
36091
36089
 
36092
36090
  Base_X3DBaseNode .prototype .dispose .call (this);
@@ -37340,7 +37338,7 @@ const X3DBindableNode_default_ = X3DBindableNode;
37340
37338
 
37341
37339
  /* harmony default export */ const Core_X3DBindableNode = (x_ite_Namespace .add ("X3DBindableNode", X3DBindableNode_default_));
37342
37340
  ;// ./src/standard/Math/Geometry/Triangle3.js
37343
- /* provided dependency */ var libtess = __webpack_require__(787);
37341
+ /* provided dependency */ var libtess = __webpack_require__(800);
37344
37342
  /*******************************************************************************
37345
37343
  *
37346
37344
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39906,7 +39904,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
39906
39904
 
39907
39905
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (x_ite_Namespace .add ("X3DProtoDeclaration", X3DProtoDeclaration_default_));
39908
39906
  ;// ./src/x_ite/Parser/X3DParser.js
39909
- /* provided dependency */ var X3DParser_$ = __webpack_require__(394);
39907
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(427);
39910
39908
  /*******************************************************************************
39911
39909
  *
39912
39910
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -40161,7 +40159,7 @@ const Expressions_default_ = Expressions;
40161
40159
 
40162
40160
  /* harmony default export */ const Parser_Expressions = (x_ite_Namespace .add ("Expressions", Expressions_default_));
40163
40161
  ;// ./src/x_ite/Parser/VRMLParser.js
40164
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(394);
40162
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(427);
40165
40163
  /*******************************************************************************
40166
40164
  *
40167
40165
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -42801,7 +42799,7 @@ const VRMLParser_default_ = VRMLParser;
42801
42799
 
42802
42800
  /* harmony default export */ const Parser_VRMLParser = (x_ite_Namespace .add ("VRMLParser", VRMLParser_default_));
42803
42801
  ;// ./src/x_ite/Parser/XMLParser.js
42804
- /* provided dependency */ var XMLParser_$ = __webpack_require__(394);
42802
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(427);
42805
42803
  /*******************************************************************************
42806
42804
  *
42807
42805
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -44979,7 +44977,7 @@ const URLs_default_ = URLs;
44979
44977
 
44980
44978
  /* harmony default export */ const Networking_URLs = (x_ite_Namespace .add ("URLs", URLs_default_));
44981
44979
  ;// ./src/x_ite/Parser/GLTF2Parser.js
44982
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(394);
44980
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(427);
44983
44981
  /*******************************************************************************
44984
44982
  *
44985
44983
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -45195,17 +45193,18 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
45195
45193
  this .scenesArray (glTF, glTF .scenes, glTF .scene);
45196
45194
  this .animationsArray (glTF .animations);
45197
45195
 
45198
- this .viewpointsCenterOfRotation (this .getScene ());
45199
- this .optimizeSceneGraph (this .getScene () .getRootNodes ());
45196
+ this .viewpointsCenterOfRotation (scene);
45197
+ this .optimizeSceneGraph (scene .getRootNodes ());
45200
45198
 
45201
45199
  this .exportGroup ("Viewpoints", this .cameras);
45202
45200
  this .exportGroup ("EnvironmentLights", this .envLights);
45203
45201
  this .exportGroup ("Lights", this .lights);
45204
45202
  this .exportGroup ("Animations", glTF .animations);
45205
45203
 
45204
+ this .cleanupAnimationScripts ();
45206
45205
  this .materialVariantsSwitch ();
45207
45206
 
45208
- return this .getScene ();
45207
+ return scene;
45209
45208
  },
45210
45209
  assetObject (asset)
45211
45210
  {
@@ -47533,6 +47532,30 @@ function eventsProcessed ()
47533
47532
 
47534
47533
  return this .createInterpolator (timeSensorNode, node, target, sampler .interpolation, input .array, output, timeSensorNode ._cycleInterval .getValue ());
47535
47534
  },
47535
+ cleanupAnimationScripts ()
47536
+ {
47537
+ // It can happen, that some scripts are not used, so let us remove them.
47538
+
47539
+ const
47540
+ scene = this .getScene (),
47541
+ scriptNodes = Array .from (scene .getNamedNodes (), node => node .getValue ())
47542
+ .filter (node => node .getType () .at (-1) === Base_X3DConstants .Script);
47543
+
47544
+ for (const scriptNode of scriptNodes)
47545
+ {
47546
+ if (scriptNode .getFields () .every (field => !field .getInputRoutes () .size))
47547
+ {
47548
+ scriptNode .dispose ();
47549
+ continue;
47550
+ }
47551
+
47552
+ if (scriptNode .getFields () .every (field => !field .getOutputRoutes () .size))
47553
+ {
47554
+ scriptNode .dispose ();
47555
+ continue;
47556
+ }
47557
+ }
47558
+ },
47536
47559
  createShape (primitive, weights, skin, EXT_mesh_gpu_instancing)
47537
47560
  {
47538
47561
  const
@@ -48961,7 +48984,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
48961
48984
 
48962
48985
  /* harmony default export */ const Parser_GLTF2Parser = (x_ite_Namespace .add ("GLTF2Parser", GLTF2Parser_default_));
48963
48986
  ;// ./src/x_ite/Parser/GLB2Parser.js
48964
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(394);
48987
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(427);
48965
48988
  /*******************************************************************************
48966
48989
  *
48967
48990
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -49112,7 +49135,7 @@ const GLB2Parser_default_ = GLB2Parser;
49112
49135
 
49113
49136
  /* harmony default export */ const Parser_GLB2Parser = (x_ite_Namespace .add ("GLB2Parser", GLB2Parser_default_));
49114
49137
  ;// ./src/x_ite/Parser/OBJParser.js
49115
- /* provided dependency */ var OBJParser_$ = __webpack_require__(394);
49138
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(427);
49116
49139
  /*******************************************************************************
49117
49140
  *
49118
49141
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -52479,8 +52502,8 @@ const MatrixStack_default_ = MatrixStack;
52479
52502
 
52480
52503
  /* harmony default export */ const Utility_MatrixStack = (x_ite_Namespace .add ("MatrixStack", MatrixStack_default_));
52481
52504
  ;// ./src/x_ite/Parser/SVGParser.js
52482
- /* provided dependency */ var SVGParser_$ = __webpack_require__(394);
52483
- /* provided dependency */ var SVGParser_libtess = __webpack_require__(787);
52505
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(427);
52506
+ /* provided dependency */ var SVGParser_libtess = __webpack_require__(800);
52484
52507
  /*******************************************************************************
52485
52508
  *
52486
52509
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -55259,7 +55282,7 @@ const SVGParser_default_ = SVGParser;
55259
55282
 
55260
55283
  /* harmony default export */ const Parser_SVGParser = (x_ite_Namespace .add ("SVGParser", SVGParser_default_));
55261
55284
  ;// ./src/x_ite/Parser/GoldenGate.js
55262
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(394);
55285
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(427);
55263
55286
  /*******************************************************************************
55264
55287
  *
55265
55288
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -63278,7 +63301,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
63278
63301
 
63279
63302
  /* harmony default export */ const Texturing_X3DTexture2DNode = (x_ite_Namespace .add ("X3DTexture2DNode", X3DTexture2DNode_default_));
63280
63303
  ;// ./src/x_ite/Components/Texturing/ImageTexture.js
63281
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(394);
63304
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(427);
63282
63305
  /*******************************************************************************
63283
63306
  *
63284
63307
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66704,7 +66727,7 @@ const X3DWorld_default_ = X3DWorld;
66704
66727
 
66705
66728
  /* harmony default export */ const Execution_X3DWorld = (x_ite_Namespace .add ("X3DWorld", X3DWorld_default_));
66706
66729
  ;// ./src/x_ite/InputOutput/FileLoader.js
66707
- /* provided dependency */ var FileLoader_$ = __webpack_require__(394);
66730
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(427);
66708
66731
  /*******************************************************************************
66709
66732
  *
66710
66733
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -67668,7 +67691,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
67668
67691
 
67669
67692
  /* harmony default export */ const Prototype_ProtoDeclarationArray = (x_ite_Namespace .add ("ProtoDeclarationArray", ProtoDeclarationArray_default_));
67670
67693
  ;// ./src/x_ite/Routing/X3DRoute.js
67671
- /* provided dependency */ var X3DRoute_$ = __webpack_require__(394);
67694
+ /* provided dependency */ var X3DRoute_$ = __webpack_require__(427);
67672
67695
  /*******************************************************************************
67673
67696
  *
67674
67697
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -75324,32 +75347,36 @@ Object .assign (Object .setPrototypeOf (Extrusion .prototype, Rendering_X3DGeome
75324
75347
  return function ()
75325
75348
  {
75326
75349
  const
75327
- crossSection = this ._crossSection,
75328
- orientation = this ._orientation,
75329
- scale = this ._scale,
75330
- spine = this ._spine,
75331
- points = [ ];
75332
-
75333
- // calculate SCP rotations
75350
+ crossSection = this ._crossSection,
75351
+ orientation = this ._orientation,
75352
+ scale = this ._scale,
75353
+ spine = this ._spine,
75354
+ numCrossSection = crossSection .length,
75355
+ numOrientations = orientation .length,
75356
+ numScales = scale .length,
75357
+ numSpines = spine .length,
75358
+ points = [ ];
75359
+
75360
+ // Calculate SCP rotations.
75334
75361
 
75335
75362
  const rotations = this .createRotations ();
75336
75363
 
75337
- // calculate vertices.
75364
+ // Calculate vertices.
75338
75365
 
75339
- for (let i = 0, length = spine .length; i < length; ++ i)
75366
+ for (let i = 0; i < numSpines; ++ i)
75340
75367
  {
75341
75368
  const matrix = rotations [i];
75342
75369
 
75343
- if (orientation .length)
75344
- matrix .rotate (orientation [Math .min (i, orientation .length - 1)] .getValue ());
75370
+ if (numOrientations)
75371
+ matrix .rotate (orientation [Math .min (i, numOrientations - 1)] .getValue ());
75345
75372
 
75346
- if (scale .length)
75373
+ if (numScales)
75347
75374
  {
75348
- const s = scale [Math .min (i, scale .length - 1)] .getValue ();
75375
+ const s = scale [Math .min (i, numScales - 1)] .getValue ();
75349
75376
  matrix .scale (scale3 .set (s .x, 1, s .y));
75350
75377
  }
75351
75378
 
75352
- for (let cs = 0, csLength = crossSection .length; cs < csLength; ++ cs)
75379
+ for (let cs = 0; cs < numCrossSection; ++ cs)
75353
75380
  {
75354
75381
  const vector = crossSection [cs] .getValue ();
75355
75382
  points .push (matrix .multVecMatrix (new Numbers_Vector3 (vector .x, 0, vector .y)));
@@ -91344,7 +91371,7 @@ mediump samplerCube textureCube;
91344
91371
 
91345
91372
  /* harmony default export */ const MaterialTextures = (x_ite_Namespace .add ("MaterialTextures", MaterialTextures_default_));
91346
91373
  ;// ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
91347
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(394);
91374
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(427);
91348
91375
  /*******************************************************************************
91349
91376
  *
91350
91377
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -96641,7 +96668,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
96641
96668
 
96642
96669
  /* harmony default export */ const Shaders_ShaderCompiler = (x_ite_Namespace .add ("ShaderCompiler", ShaderCompiler_default_));
96643
96670
  ;// ./src/x_ite/Components/Shaders/ShaderPart.js
96644
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(394);
96671
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(427);
96645
96672
  /*******************************************************************************
96646
96673
  *
96647
96674
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -97239,7 +97266,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
97239
97266
 
97240
97267
  /* harmony default export */ const Shape_X3DAppearanceNode = (x_ite_Namespace .add ("X3DAppearanceNode", X3DAppearanceNode_default_));
97241
97268
  ;// ./src/x_ite/Components/Shape/Appearance.js
97242
- /* provided dependency */ var Appearance_$ = __webpack_require__(394);
97269
+ /* provided dependency */ var Appearance_$ = __webpack_require__(427);
97243
97270
  /*******************************************************************************
97244
97271
  *
97245
97272
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -101010,8 +101037,6 @@ Object .assign (Object .setPrototypeOf (X3DSoundSourceNode .prototype, Sound_X3D
101010
101037
  {
101011
101038
  this .audioSource .gain .value = this ._gain .getValue ();
101012
101039
  },
101013
- set_pitch ()
101014
- { },
101015
101040
  set_loop ()
101016
101041
  {
101017
101042
  if (!this .mediaElement)
@@ -101362,6 +101387,8 @@ Object .assign (Object .setPrototypeOf (AudioClip .prototype, Sound_X3DSoundSour
101362
101387
  Sound_X3DSoundSourceNode .prototype .initialize .call (this);
101363
101388
  Networking_X3DUrlObject .prototype .initialize .call (this);
101364
101389
 
101390
+ this ._pitch .addInterest ("set_pitch__", this);
101391
+
101365
101392
  this .requestImmediateLoad () .catch (Function .prototype);
101366
101393
  },
101367
101394
  set_live__ ()
@@ -101369,6 +101396,13 @@ Object .assign (Object .setPrototypeOf (AudioClip .prototype, Sound_X3DSoundSour
101369
101396
  Sound_X3DSoundSourceNode .prototype .set_live__ .call (this);
101370
101397
  Networking_X3DUrlObject .prototype .set_live__ .call (this);
101371
101398
  },
101399
+ set_pitch__ ()
101400
+ {
101401
+ const media = this .getMediaElement ();
101402
+
101403
+ if (media)
101404
+ media .playbackRate = Math .max (this ._pitch .getValue (), 0);
101405
+ },
101372
101406
  unloadData ()
101373
101407
  {
101374
101408
  this .setMediaElement (null);
@@ -101408,6 +101442,8 @@ Object .assign (Object .setPrototypeOf (AudioClip .prototype, Sound_X3DSoundSour
101408
101442
  this ._duration_changed = media .duration;
101409
101443
 
101410
101444
  this .setMediaElement (media);
101445
+
101446
+ this .set_pitch__ ();
101411
101447
  },
101412
101448
  dispose ()
101413
101449
  {
@@ -105462,8 +105498,8 @@ const GifMedia_default_ = GifMedia;
105462
105498
 
105463
105499
  /* harmony default export */ const Texturing_GifMedia = (x_ite_Namespace .add ("GifMedia", GifMedia_default_));
105464
105500
  ;// ./src/x_ite/Components/Texturing/MovieTexture.js
105465
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(394);
105466
- /* provided dependency */ var SuperGif = __webpack_require__(485);
105501
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(427);
105502
+ /* provided dependency */ var SuperGif = __webpack_require__(388);
105467
105503
  /*******************************************************************************
105468
105504
  *
105469
105505
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -105554,6 +105590,7 @@ Object .assign (Object .setPrototypeOf (MovieTexture .prototype, Texturing_X3DTe
105554
105590
  Networking_X3DUrlObject .prototype .initialize .call (this);
105555
105591
 
105556
105592
  this ._speed .addInterest ("set_speed__", this);
105593
+ this ._pitch .addInterest ("set_speed__", this);
105557
105594
 
105558
105595
  this .video
105559
105596
  .on ("abort error", this .setError .bind (this))
@@ -105697,7 +105734,7 @@ Object .assign (Object .setPrototypeOf (MovieTexture .prototype, Texturing_X3DTe
105697
105734
  const media = this .getMediaElement ();
105698
105735
 
105699
105736
  if (media)
105700
- media .playbackRate = this ._speed .getValue ();
105737
+ media .playbackRate = this ._speed .getValue () * Math .max (this ._pitch .getValue (), 0);
105701
105738
  },
105702
105739
  set_time ()
105703
105740
  {
@@ -107931,7 +107968,7 @@ const gettext_default_ = (string) => locale .get (string) || string;
107931
107968
 
107932
107969
  /* harmony default export */ const gettext = (x_ite_Namespace .add ("gettext", gettext_default_));
107933
107970
  ;// ./src/x_ite/Browser/Core/BrowserTimings.js
107934
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(394);
107971
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(427);
107935
107972
  /*******************************************************************************
107936
107973
  *
107937
107974
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -108561,7 +108598,7 @@ const TextCompression_default_ = TextCompression;
108561
108598
 
108562
108599
  /* harmony default export */ const Core_TextCompression = (x_ite_Namespace .add ("TextCompression", TextCompression_default_));
108563
108600
  ;// ./src/x_ite/Browser/Core/BrowserOptions.js
108564
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(394);
108601
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(427);
108565
108602
  /*******************************************************************************
108566
108603
  *
108567
108604
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109208,7 +109245,7 @@ const RenderingProperties_default_ = RenderingProperties;
109208
109245
 
109209
109246
  /* harmony default export */ const Core_RenderingProperties = (x_ite_Namespace .add ("RenderingProperties", RenderingProperties_default_));
109210
109247
  ;// ./src/x_ite/Browser/Core/Notification.js
109211
- /* provided dependency */ var Notification_$ = __webpack_require__(394);
109248
+ /* provided dependency */ var Notification_$ = __webpack_require__(427);
109212
109249
  /*******************************************************************************
109213
109250
  *
109214
109251
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109330,8 +109367,8 @@ const Notification_default_ = Notification;
109330
109367
 
109331
109368
  /* harmony default export */ const Core_Notification = (x_ite_Namespace .add ("Notification", Notification_default_));
109332
109369
  ;// ./src/x_ite/Browser/Core/ContextMenu.js
109333
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(58);
109334
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(394);
109370
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(367);
109371
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(427);
109335
109372
  /*******************************************************************************
109336
109373
  *
109337
109374
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -112053,7 +112090,7 @@ const DataStorage_default_ = DataStorage;
112053
112090
 
112054
112091
  /* harmony default export */ const Utility_DataStorage = (x_ite_Namespace .add ("DataStorage", DataStorage_default_));
112055
112092
  ;// ./src/x_ite/Browser/Core/X3DCoreContext.js
112056
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(394);
112093
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(427);
112057
112094
  /*******************************************************************************
112058
112095
  *
112059
112096
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114664,8 +114701,8 @@ const X3DViewer_default_ = X3DViewer;
114664
114701
 
114665
114702
  /* harmony default export */ const Navigation_X3DViewer = (x_ite_Namespace .add ("X3DViewer", X3DViewer_default_));
114666
114703
  ;// ./src/x_ite/Browser/Navigation/ExamineViewer.js
114667
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(576);
114668
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(394);
114704
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(675);
114705
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(427);
114669
114706
  /*******************************************************************************
114670
114707
  *
114671
114708
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115580,8 +115617,8 @@ const ExamineViewer_default_ = ExamineViewer;
115580
115617
 
115581
115618
  /* harmony default export */ const Navigation_ExamineViewer = (x_ite_Namespace .add ("ExamineViewer", ExamineViewer_default_));
115582
115619
  ;// ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
115583
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(576);
115584
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(394);
115620
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(675);
115621
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(427);
115585
115622
  /*******************************************************************************
115586
115623
  *
115587
115624
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116596,8 +116633,8 @@ const FlyViewer_default_ = FlyViewer;
116596
116633
 
116597
116634
  /* harmony default export */ const Navigation_FlyViewer = (x_ite_Namespace .add ("FlyViewer", FlyViewer_default_));
116598
116635
  ;// ./src/x_ite/Browser/Navigation/PlaneViewer.js
116599
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(576);
116600
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(394);
116636
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(675);
116637
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(427);
116601
116638
  /*******************************************************************************
116602
116639
  *
116603
116640
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116926,8 +116963,8 @@ const NoneViewer_default_ = NoneViewer;
116926
116963
 
116927
116964
  /* harmony default export */ const Navigation_NoneViewer = (x_ite_Namespace .add ("NoneViewer", NoneViewer_default_));
116928
116965
  ;// ./src/x_ite/Browser/Navigation/LookAtViewer.js
116929
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(576);
116930
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(394);
116966
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(675);
116967
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(427);
116931
116968
  /*******************************************************************************
116932
116969
  *
116933
116970
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118069,8 +118106,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
118069
118106
 
118070
118107
  /* harmony default export */ const Picking_X3DPickingContext = (x_ite_Namespace .add ("X3DPickingContext", X3DPickingContext_default_));
118071
118108
  ;// ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
118072
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(576);
118073
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(394);
118109
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(675);
118110
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(427);
118074
118111
  /*******************************************************************************
118075
118112
  *
118076
118113
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -119517,7 +119554,7 @@ const Lock_default_ = Lock;
119517
119554
 
119518
119555
  /* harmony default export */ const Utility_Lock = (x_ite_Namespace .add ("Lock", Lock_default_));
119519
119556
  ;// ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
119520
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(394);
119557
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(427);
119521
119558
  /*******************************************************************************
119522
119559
  *
119523
119560
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -120831,7 +120868,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
120831
120868
 
120832
120869
  /* harmony default export */ const Sound_X3DSoundContext = (x_ite_Namespace .add ("X3DSoundContext", X3DSoundContext_default_));
120833
120870
  ;// ./src/x_ite/Browser/Texturing/KTXDecoder.js
120834
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(394);
120871
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(427);
120835
120872
  const KTXDecoder_default_ = class KTXDecoder
120836
120873
  {
120837
120874
  constructor (gl, externalKtxlib, scriptDir)
@@ -122410,7 +122447,7 @@ const Components_default_ = Components;
122410
122447
 
122411
122448
  /* harmony default export */ const x_ite_Components = (x_ite_Namespace .add ("Components", Components_default_));
122412
122449
  ;// ./src/x_ite/Browser/DOMIntegration.js
122413
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(394);
122450
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(427);
122414
122451
  /*******************************************************************************
122415
122452
  * MIT License
122416
122453
  *
@@ -123676,7 +123713,7 @@ const FieldTypes_default_ = new Configuration_FieldTypesArray (Object .values (x
123676
123713
 
123677
123714
  /* harmony default export */ const FieldTypes = (x_ite_Namespace .add ("FieldTypes", FieldTypes_default_));
123678
123715
  ;// ./src/x_ite/Browser/X3DBrowser.js
123679
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(394);
123716
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(427);
123680
123717
  /*******************************************************************************
123681
123718
  *
123682
123719
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -124778,7 +124815,7 @@ const X3DBrowser_default_ = X3DBrowser;
124778
124815
 
124779
124816
  /* harmony default export */ const Browser_X3DBrowser = (x_ite_Namespace .add ("X3DBrowser", X3DBrowser_default_));
124780
124817
  ;// ./src/x_ite/X3DCanvasElement.js
124781
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(394);
124818
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(427);
124782
124819
  /*******************************************************************************
124783
124820
  *
124784
124821
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -125045,8 +125082,8 @@ const QuickSort_default_ = QuickSort;
125045
125082
 
125046
125083
  /* harmony default export */ const Algorithms_QuickSort = (x_ite_Namespace .add ("QuickSort", QuickSort_default_));
125047
125084
  ;// ./src/lib/jquery.js
125048
- /* provided dependency */ var jquery_$ = __webpack_require__(394);
125049
- /* provided dependency */ var pako = __webpack_require__(514);
125085
+ /* provided dependency */ var jquery_$ = __webpack_require__(427);
125086
+ /* provided dependency */ var pako = __webpack_require__(355);
125050
125087
  Object .assign (jquery_$,
125051
125088
  {
125052
125089
  decodeText (input)
@@ -125127,13 +125164,13 @@ const jquery_default_ = jquery_$;
125127
125164
 
125128
125165
  /* harmony default export */ const jquery = (x_ite_Namespace .add ("jquery", jquery_default_));
125129
125166
  ;// ./src/lib/libtess.js
125130
- /* provided dependency */ var libtess_libtess = __webpack_require__(787);
125167
+ /* provided dependency */ var libtess_libtess = __webpack_require__(800);
125131
125168
  const libtess_default_ = libtess_libtess;
125132
125169
  ;
125133
125170
 
125134
125171
  /* harmony default export */ const lib_libtess = (x_ite_Namespace .add ("libtess", libtess_default_));
125135
125172
  ;// ./src/x_ite/X3D.js
125136
- /* provided dependency */ var X3D_$ = __webpack_require__(394);
125173
+ /* provided dependency */ var X3D_$ = __webpack_require__(427);
125137
125174
  /*******************************************************************************
125138
125175
  *
125139
125176
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -125437,7 +125474,7 @@ x_ite_Namespace, x_ite_Namespace .Fields,
125437
125474
 
125438
125475
  // Assign X3D to global namespace.
125439
125476
 
125440
- window [Symbol .for ("X_ITE.X3D-10.5.9")] = x_ite_X3D;
125477
+ window [Symbol .for ("X_ITE.X3D-10.5.10")] = x_ite_X3D;
125441
125478
 
125442
125479
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
125443
125480
 
package/dist/x_ite.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x_ite",
3
- "version": "10.5.9",
4
- "description": "X_ITE X3D Browser, view and manipulate X3D, glTF, VRML and other 3D sources in HTML.",
3
+ "version": "10.5.10",
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",
7
7
  "exports": {
@@ -123,7 +123,7 @@
123
123
  "shell-tools": "^1.1.9",
124
124
  "string-replace-webpack-plugin": "^0.1.3",
125
125
  "terser": "^5.36.0",
126
- "webpack": "^5.95.0",
126
+ "webpack": "^5.96.1",
127
127
  "webpack-cli": "^5.1.4",
128
128
  "webpack-shell-plugin-next": "^2.3.2",
129
129
  "wrapper-webpack-plugin": "^2.2.2"