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.js CHANGED
@@ -1,4 +1,4 @@
1
- /* X_ITE v10.5.9 */
1
+ /* X_ITE v10.5.10 */
2
2
  (function webpackUniversalModuleDefinition(root, factory) {
3
3
  if(typeof exports === 'object' && typeof module === 'object')
4
4
  module.exports = factory();
@@ -12,10 +12,10 @@
12
12
  return /******/ (() => { // webpackBootstrap
13
13
  /******/ var __webpack_modules__ = ({
14
14
 
15
- /***/ 58:
15
+ /***/ 367:
16
16
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
17
17
 
18
- /* provided dependency */ var jQuery = __webpack_require__(394);
18
+ /* provided dependency */ var jQuery = __webpack_require__(427);
19
19
  /**
20
20
  * @preserve jquery.fullscreen 1.1.5
21
21
  * https://github.com/code-lts/jquery-fullscreen-plugin
@@ -211,7 +211,7 @@ installFullScreenHandlers();
211
211
 
212
212
  /***/ }),
213
213
 
214
- /***/ 576:
214
+ /***/ 675:
215
215
  /***/ ((module, exports, __webpack_require__) => {
216
216
 
217
217
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -225,7 +225,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
225
225
  (function (factory) {
226
226
  if ( true ) {
227
227
  // AMD. Register as an anonymous module.
228
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(394)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
228
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(427)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
229
229
  __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
230
230
  (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
231
231
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
@@ -436,7 +436,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
436
436
 
437
437
  /***/ }),
438
438
 
439
- /***/ 394:
439
+ /***/ 427:
440
440
  /***/ (function(module, exports) {
441
441
 
442
442
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -11160,7 +11160,7 @@ return jQuery;
11160
11160
 
11161
11161
  /***/ }),
11162
11162
 
11163
- /***/ 787:
11163
+ /***/ 800:
11164
11164
  /***/ ((module) => {
11165
11165
 
11166
11166
  /**
@@ -15939,7 +15939,7 @@ if (true) {
15939
15939
 
15940
15940
  /***/ }),
15941
15941
 
15942
- /***/ 514:
15942
+ /***/ 355:
15943
15943
  /***/ (function(__unused_webpack_module, exports) {
15944
15944
 
15945
15945
 
@@ -19184,7 +19184,7 @@ if (true) {
19184
19184
 
19185
19185
  /***/ }),
19186
19186
 
19187
- /***/ 485:
19187
+ /***/ 388:
19188
19188
  /***/ (function(module, exports) {
19189
19189
 
19190
19190
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
@@ -20242,7 +20242,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
20242
20242
  /******/
20243
20243
  /************************************************************************/
20244
20244
  var __webpack_exports__ = {};
20245
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
20245
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
20246
20246
  (() => {
20247
20247
  "use strict";
20248
20248
 
@@ -20311,7 +20311,7 @@ Object .defineProperty (Namespace, "add",
20311
20311
  return module;
20312
20312
  }
20313
20313
 
20314
- const X3D = window [Symbol .for ("X_ITE.X3D-10.5.9")];
20314
+ const X3D = window [Symbol .for ("X_ITE.X3D-10.5.10")];
20315
20315
 
20316
20316
  if (X3D)
20317
20317
  X3D [name] = module;
@@ -21154,11 +21154,9 @@ Object .assign (Generator .prototype,
21154
21154
  },
21155
21155
  ExistsRouteNode (routeNode)
21156
21156
  {
21157
- const
21158
- namesByNode = this .namesByNode .get (this .ExecutionContext ()),
21159
- routeNodes = this .routeNodes .get (this .ExecutionContext ());
21157
+ const routeNodes = this .routeNodes .get (this .ExecutionContext ());
21160
21158
 
21161
- return namesByNode .has (routeNode) || routeNodes .has (routeNode);
21159
+ return routeNodes .has (routeNode);
21162
21160
  },
21163
21161
  IsSharedNode (baseNode)
21164
21162
  {
@@ -29223,13 +29221,9 @@ const SFNodeCache =
29223
29221
 
29224
29222
  function dispose ()
29225
29223
  {
29226
- const value = this .getValue ();
29227
-
29228
- value ?.dispose ();
29224
+ this .getValue () ?.dispose ();
29229
29225
 
29230
29226
  Fields_SFNode .prototype .dispose .call (this);
29231
-
29232
- SFNodeCache .delete (value);
29233
29227
  }
29234
29228
 
29235
29229
  const SFNodeCache_default_ = SFNodeCache;
@@ -34193,7 +34187,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34193
34187
 
34194
34188
  /* harmony default export */ const Base_X3DBaseNode = (x_ite_Namespace .add ("X3DBaseNode", X3DBaseNode_default_));
34195
34189
  ;// ./src/x_ite/Browser/Legacy.js
34196
- /* provided dependency */ var $ = __webpack_require__(394);
34190
+ /* provided dependency */ var $ = __webpack_require__(427);
34197
34191
  /*******************************************************************************
34198
34192
  *
34199
34193
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34329,7 +34323,7 @@ const Legacy_default_ = Legacy;
34329
34323
  *
34330
34324
  ******************************************************************************/
34331
34325
 
34332
- const BROWSER_VERSION_default_ = "10.5.9";
34326
+ const BROWSER_VERSION_default_ = "10.5.10";
34333
34327
  ;
34334
34328
 
34335
34329
  /* harmony default export */ const BROWSER_VERSION = (x_ite_Namespace .add ("BROWSER_VERSION", BROWSER_VERSION_default_));
@@ -34386,6 +34380,7 @@ const BROWSER_VERSION_default_ = "10.5.9";
34386
34380
 
34387
34381
 
34388
34382
 
34383
+
34389
34384
  const _metaDataCallbacks = Symbol ();
34390
34385
 
34391
34386
  function X3DNode (executionContext)
@@ -35610,6 +35605,7 @@ Object .assign (Object .setPrototypeOf (X3DNode .prototype, Base_X3DBaseNode .pr
35610
35605
  }
35611
35606
  }
35612
35607
 
35608
+
35613
35609
  // Type name
35614
35610
 
35615
35611
  generator .string += '{';
@@ -36101,6 +36097,8 @@ Object .assign (Object .setPrototypeOf (X3DNode .prototype, Base_X3DBaseNode .pr
36101
36097
  firstParent .setValue (null);
36102
36098
  }
36103
36099
 
36100
+ Fields_SFNodeCache .delete (this);
36101
+
36104
36102
  // Call super.dispose, where fields get disposed.
36105
36103
 
36106
36104
  Base_X3DBaseNode .prototype .dispose .call (this);
@@ -37354,7 +37352,7 @@ const X3DBindableNode_default_ = X3DBindableNode;
37354
37352
 
37355
37353
  /* harmony default export */ const Core_X3DBindableNode = (x_ite_Namespace .add ("X3DBindableNode", X3DBindableNode_default_));
37356
37354
  ;// ./src/standard/Math/Geometry/Triangle3.js
37357
- /* provided dependency */ var libtess = __webpack_require__(787);
37355
+ /* provided dependency */ var libtess = __webpack_require__(800);
37358
37356
  /*******************************************************************************
37359
37357
  *
37360
37358
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39920,7 +39918,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
39920
39918
 
39921
39919
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (x_ite_Namespace .add ("X3DProtoDeclaration", X3DProtoDeclaration_default_));
39922
39920
  ;// ./src/x_ite/Parser/X3DParser.js
39923
- /* provided dependency */ var X3DParser_$ = __webpack_require__(394);
39921
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(427);
39924
39922
  /*******************************************************************************
39925
39923
  *
39926
39924
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -40175,7 +40173,7 @@ const Expressions_default_ = Expressions;
40175
40173
 
40176
40174
  /* harmony default export */ const Parser_Expressions = (x_ite_Namespace .add ("Expressions", Expressions_default_));
40177
40175
  ;// ./src/x_ite/Parser/VRMLParser.js
40178
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(394);
40176
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(427);
40179
40177
  /*******************************************************************************
40180
40178
  *
40181
40179
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -42815,7 +42813,7 @@ const VRMLParser_default_ = VRMLParser;
42815
42813
 
42816
42814
  /* harmony default export */ const Parser_VRMLParser = (x_ite_Namespace .add ("VRMLParser", VRMLParser_default_));
42817
42815
  ;// ./src/x_ite/Parser/XMLParser.js
42818
- /* provided dependency */ var XMLParser_$ = __webpack_require__(394);
42816
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(427);
42819
42817
  /*******************************************************************************
42820
42818
  *
42821
42819
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -44993,7 +44991,7 @@ const URLs_default_ = URLs;
44993
44991
 
44994
44992
  /* harmony default export */ const Networking_URLs = (x_ite_Namespace .add ("URLs", URLs_default_));
44995
44993
  ;// ./src/x_ite/Parser/GLTF2Parser.js
44996
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(394);
44994
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(427);
44997
44995
  /*******************************************************************************
44998
44996
  *
44999
44997
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -45209,17 +45207,18 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
45209
45207
  this .scenesArray (glTF, glTF .scenes, glTF .scene);
45210
45208
  this .animationsArray (glTF .animations);
45211
45209
 
45212
- this .viewpointsCenterOfRotation (this .getScene ());
45213
- this .optimizeSceneGraph (this .getScene () .getRootNodes ());
45210
+ this .viewpointsCenterOfRotation (scene);
45211
+ this .optimizeSceneGraph (scene .getRootNodes ());
45214
45212
 
45215
45213
  this .exportGroup ("Viewpoints", this .cameras);
45216
45214
  this .exportGroup ("EnvironmentLights", this .envLights);
45217
45215
  this .exportGroup ("Lights", this .lights);
45218
45216
  this .exportGroup ("Animations", glTF .animations);
45219
45217
 
45218
+ this .cleanupAnimationScripts ();
45220
45219
  this .materialVariantsSwitch ();
45221
45220
 
45222
- return this .getScene ();
45221
+ return scene;
45223
45222
  },
45224
45223
  assetObject (asset)
45225
45224
  {
@@ -47547,6 +47546,30 @@ function eventsProcessed ()
47547
47546
 
47548
47547
  return this .createInterpolator (timeSensorNode, node, target, sampler .interpolation, input .array, output, timeSensorNode ._cycleInterval .getValue ());
47549
47548
  },
47549
+ cleanupAnimationScripts ()
47550
+ {
47551
+ // It can happen, that some scripts are not used, so let us remove them.
47552
+
47553
+ const
47554
+ scene = this .getScene (),
47555
+ scriptNodes = Array .from (scene .getNamedNodes (), node => node .getValue ())
47556
+ .filter (node => node .getType () .at (-1) === Base_X3DConstants .Script);
47557
+
47558
+ for (const scriptNode of scriptNodes)
47559
+ {
47560
+ if (scriptNode .getFields () .every (field => !field .getInputRoutes () .size))
47561
+ {
47562
+ scriptNode .dispose ();
47563
+ continue;
47564
+ }
47565
+
47566
+ if (scriptNode .getFields () .every (field => !field .getOutputRoutes () .size))
47567
+ {
47568
+ scriptNode .dispose ();
47569
+ continue;
47570
+ }
47571
+ }
47572
+ },
47550
47573
  createShape (primitive, weights, skin, EXT_mesh_gpu_instancing)
47551
47574
  {
47552
47575
  const
@@ -48975,7 +48998,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
48975
48998
 
48976
48999
  /* harmony default export */ const Parser_GLTF2Parser = (x_ite_Namespace .add ("GLTF2Parser", GLTF2Parser_default_));
48977
49000
  ;// ./src/x_ite/Parser/GLB2Parser.js
48978
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(394);
49001
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(427);
48979
49002
  /*******************************************************************************
48980
49003
  *
48981
49004
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -49126,7 +49149,7 @@ const GLB2Parser_default_ = GLB2Parser;
49126
49149
 
49127
49150
  /* harmony default export */ const Parser_GLB2Parser = (x_ite_Namespace .add ("GLB2Parser", GLB2Parser_default_));
49128
49151
  ;// ./src/x_ite/Parser/OBJParser.js
49129
- /* provided dependency */ var OBJParser_$ = __webpack_require__(394);
49152
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(427);
49130
49153
  /*******************************************************************************
49131
49154
  *
49132
49155
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -52493,8 +52516,8 @@ const MatrixStack_default_ = MatrixStack;
52493
52516
 
52494
52517
  /* harmony default export */ const Utility_MatrixStack = (x_ite_Namespace .add ("MatrixStack", MatrixStack_default_));
52495
52518
  ;// ./src/x_ite/Parser/SVGParser.js
52496
- /* provided dependency */ var SVGParser_$ = __webpack_require__(394);
52497
- /* provided dependency */ var SVGParser_libtess = __webpack_require__(787);
52519
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(427);
52520
+ /* provided dependency */ var SVGParser_libtess = __webpack_require__(800);
52498
52521
  /*******************************************************************************
52499
52522
  *
52500
52523
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -55273,7 +55296,7 @@ const SVGParser_default_ = SVGParser;
55273
55296
 
55274
55297
  /* harmony default export */ const Parser_SVGParser = (x_ite_Namespace .add ("SVGParser", SVGParser_default_));
55275
55298
  ;// ./src/x_ite/Parser/GoldenGate.js
55276
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(394);
55299
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(427);
55277
55300
  /*******************************************************************************
55278
55301
  *
55279
55302
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -63292,7 +63315,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
63292
63315
 
63293
63316
  /* harmony default export */ const Texturing_X3DTexture2DNode = (x_ite_Namespace .add ("X3DTexture2DNode", X3DTexture2DNode_default_));
63294
63317
  ;// ./src/x_ite/Components/Texturing/ImageTexture.js
63295
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(394);
63318
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(427);
63296
63319
  /*******************************************************************************
63297
63320
  *
63298
63321
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66718,7 +66741,7 @@ const X3DWorld_default_ = X3DWorld;
66718
66741
 
66719
66742
  /* harmony default export */ const Execution_X3DWorld = (x_ite_Namespace .add ("X3DWorld", X3DWorld_default_));
66720
66743
  ;// ./src/x_ite/InputOutput/FileLoader.js
66721
- /* provided dependency */ var FileLoader_$ = __webpack_require__(394);
66744
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(427);
66722
66745
  /*******************************************************************************
66723
66746
  *
66724
66747
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -67682,7 +67705,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
67682
67705
 
67683
67706
  /* harmony default export */ const Prototype_ProtoDeclarationArray = (x_ite_Namespace .add ("ProtoDeclarationArray", ProtoDeclarationArray_default_));
67684
67707
  ;// ./src/x_ite/Routing/X3DRoute.js
67685
- /* provided dependency */ var X3DRoute_$ = __webpack_require__(394);
67708
+ /* provided dependency */ var X3DRoute_$ = __webpack_require__(427);
67686
67709
  /*******************************************************************************
67687
67710
  *
67688
67711
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -75338,32 +75361,36 @@ Object .assign (Object .setPrototypeOf (Extrusion .prototype, Rendering_X3DGeome
75338
75361
  return function ()
75339
75362
  {
75340
75363
  const
75341
- crossSection = this ._crossSection,
75342
- orientation = this ._orientation,
75343
- scale = this ._scale,
75344
- spine = this ._spine,
75345
- points = [ ];
75346
-
75347
- // calculate SCP rotations
75364
+ crossSection = this ._crossSection,
75365
+ orientation = this ._orientation,
75366
+ scale = this ._scale,
75367
+ spine = this ._spine,
75368
+ numCrossSection = crossSection .length,
75369
+ numOrientations = orientation .length,
75370
+ numScales = scale .length,
75371
+ numSpines = spine .length,
75372
+ points = [ ];
75373
+
75374
+ // Calculate SCP rotations.
75348
75375
 
75349
75376
  const rotations = this .createRotations ();
75350
75377
 
75351
- // calculate vertices.
75378
+ // Calculate vertices.
75352
75379
 
75353
- for (let i = 0, length = spine .length; i < length; ++ i)
75380
+ for (let i = 0; i < numSpines; ++ i)
75354
75381
  {
75355
75382
  const matrix = rotations [i];
75356
75383
 
75357
- if (orientation .length)
75358
- matrix .rotate (orientation [Math .min (i, orientation .length - 1)] .getValue ());
75384
+ if (numOrientations)
75385
+ matrix .rotate (orientation [Math .min (i, numOrientations - 1)] .getValue ());
75359
75386
 
75360
- if (scale .length)
75387
+ if (numScales)
75361
75388
  {
75362
- const s = scale [Math .min (i, scale .length - 1)] .getValue ();
75389
+ const s = scale [Math .min (i, numScales - 1)] .getValue ();
75363
75390
  matrix .scale (scale3 .set (s .x, 1, s .y));
75364
75391
  }
75365
75392
 
75366
- for (let cs = 0, csLength = crossSection .length; cs < csLength; ++ cs)
75393
+ for (let cs = 0; cs < numCrossSection; ++ cs)
75367
75394
  {
75368
75395
  const vector = crossSection [cs] .getValue ();
75369
75396
  points .push (matrix .multVecMatrix (new Numbers_Vector3 (vector .x, 0, vector .y)));
@@ -91358,7 +91385,7 @@ mediump samplerCube textureCube;
91358
91385
 
91359
91386
  /* harmony default export */ const MaterialTextures = (x_ite_Namespace .add ("MaterialTextures", MaterialTextures_default_));
91360
91387
  ;// ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
91361
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(394);
91388
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(427);
91362
91389
  /*******************************************************************************
91363
91390
  *
91364
91391
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -96655,7 +96682,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
96655
96682
 
96656
96683
  /* harmony default export */ const Shaders_ShaderCompiler = (x_ite_Namespace .add ("ShaderCompiler", ShaderCompiler_default_));
96657
96684
  ;// ./src/x_ite/Components/Shaders/ShaderPart.js
96658
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(394);
96685
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(427);
96659
96686
  /*******************************************************************************
96660
96687
  *
96661
96688
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -97253,7 +97280,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
97253
97280
 
97254
97281
  /* harmony default export */ const Shape_X3DAppearanceNode = (x_ite_Namespace .add ("X3DAppearanceNode", X3DAppearanceNode_default_));
97255
97282
  ;// ./src/x_ite/Components/Shape/Appearance.js
97256
- /* provided dependency */ var Appearance_$ = __webpack_require__(394);
97283
+ /* provided dependency */ var Appearance_$ = __webpack_require__(427);
97257
97284
  /*******************************************************************************
97258
97285
  *
97259
97286
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -101024,8 +101051,6 @@ Object .assign (Object .setPrototypeOf (X3DSoundSourceNode .prototype, Sound_X3D
101024
101051
  {
101025
101052
  this .audioSource .gain .value = this ._gain .getValue ();
101026
101053
  },
101027
- set_pitch ()
101028
- { },
101029
101054
  set_loop ()
101030
101055
  {
101031
101056
  if (!this .mediaElement)
@@ -101376,6 +101401,8 @@ Object .assign (Object .setPrototypeOf (AudioClip .prototype, Sound_X3DSoundSour
101376
101401
  Sound_X3DSoundSourceNode .prototype .initialize .call (this);
101377
101402
  Networking_X3DUrlObject .prototype .initialize .call (this);
101378
101403
 
101404
+ this ._pitch .addInterest ("set_pitch__", this);
101405
+
101379
101406
  this .requestImmediateLoad () .catch (Function .prototype);
101380
101407
  },
101381
101408
  set_live__ ()
@@ -101383,6 +101410,13 @@ Object .assign (Object .setPrototypeOf (AudioClip .prototype, Sound_X3DSoundSour
101383
101410
  Sound_X3DSoundSourceNode .prototype .set_live__ .call (this);
101384
101411
  Networking_X3DUrlObject .prototype .set_live__ .call (this);
101385
101412
  },
101413
+ set_pitch__ ()
101414
+ {
101415
+ const media = this .getMediaElement ();
101416
+
101417
+ if (media)
101418
+ media .playbackRate = Math .max (this ._pitch .getValue (), 0);
101419
+ },
101386
101420
  unloadData ()
101387
101421
  {
101388
101422
  this .setMediaElement (null);
@@ -101422,6 +101456,8 @@ Object .assign (Object .setPrototypeOf (AudioClip .prototype, Sound_X3DSoundSour
101422
101456
  this ._duration_changed = media .duration;
101423
101457
 
101424
101458
  this .setMediaElement (media);
101459
+
101460
+ this .set_pitch__ ();
101425
101461
  },
101426
101462
  dispose ()
101427
101463
  {
@@ -105476,8 +105512,8 @@ const GifMedia_default_ = GifMedia;
105476
105512
 
105477
105513
  /* harmony default export */ const Texturing_GifMedia = (x_ite_Namespace .add ("GifMedia", GifMedia_default_));
105478
105514
  ;// ./src/x_ite/Components/Texturing/MovieTexture.js
105479
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(394);
105480
- /* provided dependency */ var SuperGif = __webpack_require__(485);
105515
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(427);
105516
+ /* provided dependency */ var SuperGif = __webpack_require__(388);
105481
105517
  /*******************************************************************************
105482
105518
  *
105483
105519
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -105568,6 +105604,7 @@ Object .assign (Object .setPrototypeOf (MovieTexture .prototype, Texturing_X3DTe
105568
105604
  Networking_X3DUrlObject .prototype .initialize .call (this);
105569
105605
 
105570
105606
  this ._speed .addInterest ("set_speed__", this);
105607
+ this ._pitch .addInterest ("set_speed__", this);
105571
105608
 
105572
105609
  this .video
105573
105610
  .on ("abort error", this .setError .bind (this))
@@ -105711,7 +105748,7 @@ Object .assign (Object .setPrototypeOf (MovieTexture .prototype, Texturing_X3DTe
105711
105748
  const media = this .getMediaElement ();
105712
105749
 
105713
105750
  if (media)
105714
- media .playbackRate = this ._speed .getValue ();
105751
+ media .playbackRate = this ._speed .getValue () * Math .max (this ._pitch .getValue (), 0);
105715
105752
  },
105716
105753
  set_time ()
105717
105754
  {
@@ -107945,7 +107982,7 @@ const gettext_default_ = (string) => locale .get (string) || string;
107945
107982
 
107946
107983
  /* harmony default export */ const gettext = (x_ite_Namespace .add ("gettext", gettext_default_));
107947
107984
  ;// ./src/x_ite/Browser/Core/BrowserTimings.js
107948
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(394);
107985
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(427);
107949
107986
  /*******************************************************************************
107950
107987
  *
107951
107988
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -108575,7 +108612,7 @@ const TextCompression_default_ = TextCompression;
108575
108612
 
108576
108613
  /* harmony default export */ const Core_TextCompression = (x_ite_Namespace .add ("TextCompression", TextCompression_default_));
108577
108614
  ;// ./src/x_ite/Browser/Core/BrowserOptions.js
108578
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(394);
108615
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(427);
108579
108616
  /*******************************************************************************
108580
108617
  *
108581
108618
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109222,7 +109259,7 @@ const RenderingProperties_default_ = RenderingProperties;
109222
109259
 
109223
109260
  /* harmony default export */ const Core_RenderingProperties = (x_ite_Namespace .add ("RenderingProperties", RenderingProperties_default_));
109224
109261
  ;// ./src/x_ite/Browser/Core/Notification.js
109225
- /* provided dependency */ var Notification_$ = __webpack_require__(394);
109262
+ /* provided dependency */ var Notification_$ = __webpack_require__(427);
109226
109263
  /*******************************************************************************
109227
109264
  *
109228
109265
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109344,8 +109381,8 @@ const Notification_default_ = Notification;
109344
109381
 
109345
109382
  /* harmony default export */ const Core_Notification = (x_ite_Namespace .add ("Notification", Notification_default_));
109346
109383
  ;// ./src/x_ite/Browser/Core/ContextMenu.js
109347
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(58);
109348
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(394);
109384
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(367);
109385
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(427);
109349
109386
  /*******************************************************************************
109350
109387
  *
109351
109388
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -112067,7 +112104,7 @@ const DataStorage_default_ = DataStorage;
112067
112104
 
112068
112105
  /* harmony default export */ const Utility_DataStorage = (x_ite_Namespace .add ("DataStorage", DataStorage_default_));
112069
112106
  ;// ./src/x_ite/Browser/Core/X3DCoreContext.js
112070
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(394);
112107
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(427);
112071
112108
  /*******************************************************************************
112072
112109
  *
112073
112110
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114678,8 +114715,8 @@ const X3DViewer_default_ = X3DViewer;
114678
114715
 
114679
114716
  /* harmony default export */ const Navigation_X3DViewer = (x_ite_Namespace .add ("X3DViewer", X3DViewer_default_));
114680
114717
  ;// ./src/x_ite/Browser/Navigation/ExamineViewer.js
114681
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(576);
114682
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(394);
114718
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(675);
114719
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(427);
114683
114720
  /*******************************************************************************
114684
114721
  *
114685
114722
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115594,8 +115631,8 @@ const ExamineViewer_default_ = ExamineViewer;
115594
115631
 
115595
115632
  /* harmony default export */ const Navigation_ExamineViewer = (x_ite_Namespace .add ("ExamineViewer", ExamineViewer_default_));
115596
115633
  ;// ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
115597
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(576);
115598
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(394);
115634
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(675);
115635
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(427);
115599
115636
  /*******************************************************************************
115600
115637
  *
115601
115638
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116610,8 +116647,8 @@ const FlyViewer_default_ = FlyViewer;
116610
116647
 
116611
116648
  /* harmony default export */ const Navigation_FlyViewer = (x_ite_Namespace .add ("FlyViewer", FlyViewer_default_));
116612
116649
  ;// ./src/x_ite/Browser/Navigation/PlaneViewer.js
116613
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(576);
116614
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(394);
116650
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(675);
116651
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(427);
116615
116652
  /*******************************************************************************
116616
116653
  *
116617
116654
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116940,8 +116977,8 @@ const NoneViewer_default_ = NoneViewer;
116940
116977
 
116941
116978
  /* harmony default export */ const Navigation_NoneViewer = (x_ite_Namespace .add ("NoneViewer", NoneViewer_default_));
116942
116979
  ;// ./src/x_ite/Browser/Navigation/LookAtViewer.js
116943
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(576);
116944
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(394);
116980
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(675);
116981
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(427);
116945
116982
  /*******************************************************************************
116946
116983
  *
116947
116984
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118083,8 +118120,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
118083
118120
 
118084
118121
  /* harmony default export */ const Picking_X3DPickingContext = (x_ite_Namespace .add ("X3DPickingContext", X3DPickingContext_default_));
118085
118122
  ;// ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
118086
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(576);
118087
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(394);
118123
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(675);
118124
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(427);
118088
118125
  /*******************************************************************************
118089
118126
  *
118090
118127
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -119531,7 +119568,7 @@ const Lock_default_ = Lock;
119531
119568
 
119532
119569
  /* harmony default export */ const Utility_Lock = (x_ite_Namespace .add ("Lock", Lock_default_));
119533
119570
  ;// ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
119534
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(394);
119571
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(427);
119535
119572
  /*******************************************************************************
119536
119573
  *
119537
119574
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -120845,7 +120882,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
120845
120882
 
120846
120883
  /* harmony default export */ const Sound_X3DSoundContext = (x_ite_Namespace .add ("X3DSoundContext", X3DSoundContext_default_));
120847
120884
  ;// ./src/x_ite/Browser/Texturing/KTXDecoder.js
120848
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(394);
120885
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(427);
120849
120886
  const KTXDecoder_default_ = class KTXDecoder
120850
120887
  {
120851
120888
  constructor (gl, externalKtxlib, scriptDir)
@@ -122424,7 +122461,7 @@ const Components_default_ = Components;
122424
122461
 
122425
122462
  /* harmony default export */ const x_ite_Components = (x_ite_Namespace .add ("Components", Components_default_));
122426
122463
  ;// ./src/x_ite/Browser/DOMIntegration.js
122427
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(394);
122464
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(427);
122428
122465
  /*******************************************************************************
122429
122466
  * MIT License
122430
122467
  *
@@ -123690,7 +123727,7 @@ const FieldTypes_default_ = new Configuration_FieldTypesArray (Object .values (x
123690
123727
 
123691
123728
  /* harmony default export */ const FieldTypes = (x_ite_Namespace .add ("FieldTypes", FieldTypes_default_));
123692
123729
  ;// ./src/x_ite/Browser/X3DBrowser.js
123693
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(394);
123730
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(427);
123694
123731
  /*******************************************************************************
123695
123732
  *
123696
123733
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -124792,7 +124829,7 @@ const X3DBrowser_default_ = X3DBrowser;
124792
124829
 
124793
124830
  /* harmony default export */ const Browser_X3DBrowser = (x_ite_Namespace .add ("X3DBrowser", X3DBrowser_default_));
124794
124831
  ;// ./src/x_ite/X3DCanvasElement.js
124795
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(394);
124832
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(427);
124796
124833
  /*******************************************************************************
124797
124834
  *
124798
124835
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -125059,8 +125096,8 @@ const QuickSort_default_ = QuickSort;
125059
125096
 
125060
125097
  /* harmony default export */ const Algorithms_QuickSort = (x_ite_Namespace .add ("QuickSort", QuickSort_default_));
125061
125098
  ;// ./src/lib/jquery.js
125062
- /* provided dependency */ var jquery_$ = __webpack_require__(394);
125063
- /* provided dependency */ var pako = __webpack_require__(514);
125099
+ /* provided dependency */ var jquery_$ = __webpack_require__(427);
125100
+ /* provided dependency */ var pako = __webpack_require__(355);
125064
125101
  Object .assign (jquery_$,
125065
125102
  {
125066
125103
  decodeText (input)
@@ -125141,13 +125178,13 @@ const jquery_default_ = jquery_$;
125141
125178
 
125142
125179
  /* harmony default export */ const jquery = (x_ite_Namespace .add ("jquery", jquery_default_));
125143
125180
  ;// ./src/lib/libtess.js
125144
- /* provided dependency */ var libtess_libtess = __webpack_require__(787);
125181
+ /* provided dependency */ var libtess_libtess = __webpack_require__(800);
125145
125182
  const libtess_default_ = libtess_libtess;
125146
125183
  ;
125147
125184
 
125148
125185
  /* harmony default export */ const lib_libtess = (x_ite_Namespace .add ("libtess", libtess_default_));
125149
125186
  ;// ./src/x_ite/X3D.js
125150
- /* provided dependency */ var X3D_$ = __webpack_require__(394);
125187
+ /* provided dependency */ var X3D_$ = __webpack_require__(427);
125151
125188
  /*******************************************************************************
125152
125189
  *
125153
125190
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -125451,7 +125488,7 @@ x_ite_Namespace, x_ite_Namespace .Fields,
125451
125488
 
125452
125489
  // Assign X3D to global namespace.
125453
125490
 
125454
- window [Symbol .for ("X_ITE.X3D-10.5.9")] = x_ite_X3D;
125491
+ window [Symbol .for ("X_ITE.X3D-10.5.10")] = x_ite_X3D;
125455
125492
 
125456
125493
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
125457
125494