x_ite 9.0.3 → 9.1.1

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 (47) hide show
  1. package/dist/assets/components/Annotation.js +13 -13
  2. package/dist/assets/components/Annotation.min.js +1 -1
  3. package/dist/assets/components/CADGeometry.js +14 -14
  4. package/dist/assets/components/CADGeometry.min.js +1 -1
  5. package/dist/assets/components/CubeMapTexturing.js +25 -25
  6. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  7. package/dist/assets/components/DIS.js +13 -13
  8. package/dist/assets/components/DIS.min.js +1 -1
  9. package/dist/assets/components/EventUtilities.js +9 -9
  10. package/dist/assets/components/EventUtilities.min.js +1 -1
  11. package/dist/assets/components/Geometry2D.js +19 -19
  12. package/dist/assets/components/Geometry2D.min.js +1 -1
  13. package/dist/assets/components/Geospatial.js +33 -33
  14. package/dist/assets/components/Geospatial.min.js +1 -1
  15. package/dist/assets/components/HAnim.js +23 -23
  16. package/dist/assets/components/HAnim.min.js +1 -1
  17. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  18. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  19. package/dist/assets/components/Layout.js +47 -37
  20. package/dist/assets/components/Layout.min.js +1 -1
  21. package/dist/assets/components/NURBS.js +23 -23
  22. package/dist/assets/components/NURBS.min.js +1 -1
  23. package/dist/assets/components/ParticleSystems.js +34 -32
  24. package/dist/assets/components/ParticleSystems.min.js +1 -1
  25. package/dist/assets/components/Picking.js +18 -18
  26. package/dist/assets/components/Picking.min.js +1 -1
  27. package/dist/assets/components/RigidBodyPhysics.js +17 -17
  28. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  29. package/dist/assets/components/Scripting.js +62 -67
  30. package/dist/assets/components/Scripting.min.js +1 -1
  31. package/dist/assets/components/Text.js +24 -24
  32. package/dist/assets/components/Text.min.js +1 -1
  33. package/dist/assets/components/TextureProjection.js +15 -15
  34. package/dist/assets/components/TextureProjection.min.js +1 -1
  35. package/dist/assets/components/Texturing3D.js +30 -30
  36. package/dist/assets/components/Texturing3D.min.js +1 -1
  37. package/dist/assets/components/VolumeRendering.js +19 -19
  38. package/dist/assets/components/VolumeRendering.min.js +1 -1
  39. package/dist/assets/components/X_ITE.js +168 -11
  40. package/dist/assets/components/X_ITE.min.js +1 -1
  41. package/dist/x_ite.css +1 -1
  42. package/dist/x_ite.js +442 -241
  43. package/dist/x_ite.min.js +1 -1
  44. package/dist/x_ite.min.mjs +1 -1
  45. package/dist/x_ite.mjs +442 -241
  46. package/dist/x_ite.zip +0 -0
  47. package/package.json +1 -1
package/dist/x_ite.js CHANGED
@@ -1,4 +1,4 @@
1
- /* X_ITE v9.0.3 */(function webpackUniversalModuleDefinition(root, factory) {
1
+ /* X_ITE v9.1.1 */(function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
3
  module.exports = factory();
4
4
  else if(typeof define === 'function' && define.amd)
@@ -11,10 +11,10 @@
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
- /***/ 746:
14
+ /***/ 699:
15
15
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
16
16
 
17
- /* provided dependency */ var jQuery = __webpack_require__(616);
17
+ /* provided dependency */ var jQuery = __webpack_require__(353);
18
18
  /**
19
19
  * @preserve jquery.fullscreen 1.1.5
20
20
  * https://github.com/code-lts/jquery-fullscreen-plugin
@@ -210,7 +210,7 @@ installFullScreenHandlers();
210
210
 
211
211
  /***/ }),
212
212
 
213
- /***/ 678:
213
+ /***/ 509:
214
214
  /***/ ((module, exports, __webpack_require__) => {
215
215
 
216
216
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -224,7 +224,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
224
224
  (function (factory) {
225
225
  if ( true ) {
226
226
  // AMD. Register as an anonymous module.
227
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(616)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
227
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(353)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
228
228
  __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
229
229
  (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
230
230
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
@@ -435,7 +435,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
435
435
 
436
436
  /***/ }),
437
437
 
438
- /***/ 616:
438
+ /***/ 353:
439
439
  /***/ (function(module, exports) {
440
440
 
441
441
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -11159,7 +11159,7 @@ return jQuery;
11159
11159
 
11160
11160
  /***/ }),
11161
11161
 
11162
- /***/ 237:
11162
+ /***/ 177:
11163
11163
  /***/ ((module) => {
11164
11164
 
11165
11165
  /**
@@ -15938,7 +15938,7 @@ if (true) {
15938
15938
 
15939
15939
  /***/ }),
15940
15940
 
15941
- /***/ 182:
15941
+ /***/ 238:
15942
15942
  /***/ (function(__unused_webpack_module, exports) {
15943
15943
 
15944
15944
 
@@ -19183,7 +19183,7 @@ if (true) {
19183
19183
 
19184
19184
  /***/ }),
19185
19185
 
19186
- /***/ 115:
19186
+ /***/ 302:
19187
19187
  /***/ (function(module, exports) {
19188
19188
 
19189
19189
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
@@ -20311,7 +20311,7 @@ Object .defineProperty (Namespace, "add",
20311
20311
  }
20312
20312
  else
20313
20313
  {
20314
- const X3D = window [Symbol .for ("X_ITE.X3D-9.0.3")];
20314
+ const X3D = window [Symbol .for ("X_ITE.X3D-9.1.1")];
20315
20315
 
20316
20316
  if (X3D)
20317
20317
  X3D [name] = module;
@@ -22198,6 +22198,14 @@ const Events = Object .assign ([ ],
22198
22198
 
22199
22199
  return copy;
22200
22200
  },
22201
+ from (field)
22202
+ {
22203
+ const event = this .create (field);
22204
+
22205
+ event .add (field);
22206
+
22207
+ return event;
22208
+ },
22201
22209
  });
22202
22210
 
22203
22211
  for (const key of Object .keys (Events))
@@ -22927,7 +22935,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
22927
22935
  {
22928
22936
  case Base_X3DConstants .initializeOnly:
22929
22937
  reference .addFieldInterest (this);
22930
- this .assign (reference);
22938
+ this .processEvent (Base_Events .from (reference));
22931
22939
  break;
22932
22940
  case Base_X3DConstants .inputOnly:
22933
22941
  reference .addFieldInterest (this);
@@ -22938,7 +22946,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
22938
22946
  case Base_X3DConstants .inputOutput:
22939
22947
  reference .addFieldInterest (this);
22940
22948
  this .addFieldInterest (reference);
22941
- this .assign (reference);
22949
+ this .processEvent (Base_Events .from (reference));
22942
22950
  break;
22943
22951
  }
22944
22952
 
@@ -23128,16 +23136,16 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23128
23136
 
23129
23137
  let first = true;
23130
23138
 
23131
- for (const fieldInterest of this [_fieldInterests])
23139
+ for (const field of this [_fieldInterests])
23132
23140
  {
23133
23141
  if (first)
23134
23142
  {
23135
23143
  first = false;
23136
- fieldInterest .addEventObject (this, event);
23144
+ field .addEventObject (this, event);
23137
23145
  }
23138
23146
  else
23139
23147
  {
23140
- fieldInterest .addEventObject (this, Base_Events .copy (event));
23148
+ field .addEventObject (this, Base_Events .copy (event));
23141
23149
  }
23142
23150
  }
23143
23151
 
@@ -23148,8 +23156,8 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23148
23156
 
23149
23157
  if (this [_fieldCallbacks] .size)
23150
23158
  {
23151
- for (const fieldCallback of Utility_MapUtilities .values (fieldCallbacksTemp, this [_fieldCallbacks]))
23152
- fieldCallback (this .valueOf ());
23159
+ for (const callback of Utility_MapUtilities .values (fieldCallbacksTemp, this [_fieldCallbacks]))
23160
+ callback (this .valueOf ());
23153
23161
  }
23154
23162
  };
23155
23163
  })(),
@@ -23159,11 +23167,8 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23159
23167
  },
23160
23168
  dispose ()
23161
23169
  {
23162
- this [_references] .clear ();
23163
- this [_referencesCallbacks] .clear ();
23164
- this [_fieldInterests] .clear ();
23165
- this [_fieldCallbacks] .clear ();
23166
- this [_routeCallbacks] .clear ();
23170
+ for (const reference of this [_references])
23171
+ reference .removeFieldInterest (this);
23167
23172
 
23168
23173
  for (const route of new Set (this [_inputRoutes]))
23169
23174
  route .dispose ();
@@ -23171,6 +23176,14 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, Base_X3DChildObject
23171
23176
  for (const route of new Set (this [_outputRoutes]))
23172
23177
  route .dispose ();
23173
23178
 
23179
+ this [_references] .clear ();
23180
+ this [_referencesCallbacks] .clear ();
23181
+ this [_fieldInterests] .clear ();
23182
+ this [_fieldCallbacks] .clear ();
23183
+ this [_inputRoutes] .clear ();
23184
+ this [_outputRoutes] .clear ();
23185
+ this [_routeCallbacks] .clear ();
23186
+
23174
23187
  Base_X3DChildObject .prototype .dispose .call (this);
23175
23188
  }
23176
23189
  });
@@ -24682,26 +24695,61 @@ function SFMatrixPrototypeTemplate (Constructor, TypeName, Matrix, SFVec, double
24682
24695
  {
24683
24696
  this .getValue () .assign (value);
24684
24697
  },
24685
- setTransform (translation, rotation, scale, scaleOrientation, center)
24698
+ setTransform: (function ()
24686
24699
  {
24687
- translation = translation ? translation .getValue () : null;
24688
- rotation = rotation ? rotation .getValue () : null;
24689
- scale = scale ? scale .getValue () : null;
24690
- scaleOrientation = scaleOrientation ? scaleOrientation .getValue () : null;
24691
- center = center ? center .getValue () : null;
24700
+ const args = [ ];
24692
24701
 
24693
- this .getValue () .set (translation, rotation, scale, scaleOrientation, center);
24694
- },
24695
- getTransform (translation, rotation, scale, scaleOrientation, center)
24702
+ return function (translation, rotation, scale, scaleOrientation, center)
24703
+ {
24704
+ args .push (translation ?.getValue () ?? null,
24705
+ rotation ?.getValue () ?? null,
24706
+ scale ?.getValue () ?? null,
24707
+ scaleOrientation ?.getValue () ?? null,
24708
+ center ?.getValue () ?? null);
24709
+
24710
+ for (let i = args .length - 1; i > -1; -- i)
24711
+ {
24712
+ if (args [i] !== null)
24713
+ break;
24714
+
24715
+ args .pop ();
24716
+ }
24717
+
24718
+ this .getValue () .set (... args);
24719
+
24720
+ args .length = 0;
24721
+ };
24722
+ })(),
24723
+ getTransform: (function ()
24696
24724
  {
24697
- translation = translation ? translation .getValue () : null;
24698
- rotation = rotation ? rotation .getValue () : null;
24699
- scale = scale ? scale .getValue () : null;
24700
- scaleOrientation = scaleOrientation ? scaleOrientation .getValue () : null;
24701
- center = center ? center .getValue () : null;
24725
+ const args = [ ];
24702
24726
 
24703
- this .getValue () .get (translation, rotation, scale, scaleOrientation, center);
24704
- },
24727
+ return function (translation, rotation, scale, scaleOrientation, center)
24728
+ {
24729
+ args .push (translation ?.getValue () ?? null,
24730
+ rotation ?.getValue () ?? null,
24731
+ scale ?.getValue () ?? null,
24732
+ scaleOrientation ?.getValue () ?? null,
24733
+ center ?.getValue () ?? null);
24734
+
24735
+ for (let i = args .length - 1; i > -1; -- i)
24736
+ {
24737
+ if (args [i] !== null)
24738
+ break;
24739
+
24740
+ args .pop ();
24741
+ }
24742
+
24743
+ this .getValue () .get (... args);
24744
+
24745
+ translation ?.addEvent ();
24746
+ rotation ?.addEvent ();
24747
+ scale ?.addEvent ();
24748
+ scaleOrientation ?.addEvent ();
24749
+
24750
+ args .length = 0;
24751
+ };
24752
+ })(),
24705
24753
  determinant ()
24706
24754
  {
24707
24755
  return this .getValue () .determinant ();
@@ -26915,16 +26963,31 @@ function SFMatrix3Template (TypeName, SFVec2, double)
26915
26963
 
26916
26964
  Object .assign (Fields_SFMatrixPrototypeTemplate (SFMatrix3, TypeName, Numbers_Matrix3, SFVec2, double),
26917
26965
  {
26918
- setTransform (translation, rotation, scale, scaleOrientation, center)
26966
+ setTransform: (function ()
26919
26967
  {
26920
- translation = translation ? translation .getValue () : null;
26921
- rotation = rotation ? rotation : 0;
26922
- scale = scale ? scale .getValue () : null;
26923
- scaleOrientation = scaleOrientation ? scaleOrientation : 0;
26924
- center = center ? center .getValue () : null;
26968
+ const args = [ ];
26925
26969
 
26926
- this .getValue () .set (translation, rotation, scale, scaleOrientation, center);
26927
- },
26970
+ return function (translation, rotation, scale, scaleOrientation, center)
26971
+ {
26972
+ args .push (translation ?.getValue () ?? null,
26973
+ rotation ?? null,
26974
+ scale ?.getValue () ?? null,
26975
+ scaleOrientation ?? null,
26976
+ center ?.getValue () ?? null);
26977
+
26978
+ for (let i = args .length - 1; i > -1; -- i)
26979
+ {
26980
+ if (args [i] !== null)
26981
+ break;
26982
+
26983
+ args .pop ();
26984
+ }
26985
+
26986
+ this .getValue () .set (... args);
26987
+
26988
+ args .length = 0;
26989
+ };
26990
+ })(),
26928
26991
  });
26929
26992
 
26930
26993
  for (const key of Object .keys (SFMatrix3 .prototype))
@@ -29583,6 +29646,14 @@ const SFNodeCache = DEVELOPMENT ?
29583
29646
  return node;
29584
29647
  }
29585
29648
  },
29649
+ add (baseNode, node)
29650
+ {
29651
+ cache .set (baseNode, new WeakRef (node));
29652
+ },
29653
+ delete (baseNode)
29654
+ {
29655
+ cache .delete (baseNode);
29656
+ },
29586
29657
  } :
29587
29658
  {
29588
29659
  get (baseNode)
@@ -29604,6 +29675,14 @@ const SFNodeCache = DEVELOPMENT ?
29604
29675
  return node;
29605
29676
  }
29606
29677
  },
29678
+ add (baseNode, node)
29679
+ {
29680
+ cache .set (baseNode, node);
29681
+ },
29682
+ delete (baseNode)
29683
+ {
29684
+ cache .delete (baseNode);
29685
+ },
29607
29686
  };
29608
29687
 
29609
29688
  function dispose ()
@@ -34172,7 +34251,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34172
34251
  x_ite_Namespace .add ("X3DBaseNode", "x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
34173
34252
  /* harmony default export */ const Base_X3DBaseNode = (X3DBaseNode_default_);
34174
34253
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
34175
- /* provided dependency */ var $ = __webpack_require__(616);
34254
+ /* provided dependency */ var $ = __webpack_require__(353);
34176
34255
  /*******************************************************************************
34177
34256
  *
34178
34257
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34309,7 +34388,7 @@ x_ite_Namespace .add ("Legacy", "x_ite/Browser/Legacy", Legacy_default_);
34309
34388
  *
34310
34389
  ******************************************************************************/
34311
34390
 
34312
- const BROWSER_VERSION_default_ = "9.0.3";
34391
+ const BROWSER_VERSION_default_ = "9.1.1";
34313
34392
  ;
34314
34393
 
34315
34394
  x_ite_Namespace .add ("BROWSER_VERSION", "x_ite/BROWSER_VERSION", BROWSER_VERSION_default_);
@@ -38160,7 +38239,7 @@ const X3DProtoDeclarationNode_default_ = X3DProtoDeclarationNode;
38160
38239
  x_ite_Namespace .add ("X3DProtoDeclarationNode", "x_ite/Prototype/X3DProtoDeclarationNode", X3DProtoDeclarationNode_default_);
38161
38240
  /* harmony default export */ const Prototype_X3DProtoDeclarationNode = (X3DProtoDeclarationNode_default_);
38162
38241
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
38163
- /* provided dependency */ var X3DParser_$ = __webpack_require__(616);
38242
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(353);
38164
38243
  /*******************************************************************************
38165
38244
  *
38166
38245
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -38985,7 +39064,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
38985
39064
  x_ite_Namespace .add ("X3DProtoDeclaration", "x_ite/Prototype/X3DProtoDeclaration", X3DProtoDeclaration_default_);
38986
39065
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (X3DProtoDeclaration_default_);
38987
39066
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
38988
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(616);
39067
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(353);
38989
39068
  /*******************************************************************************
38990
39069
  *
38991
39070
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39237,12 +39316,19 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
39237
39316
  linePos = 40;
39238
39317
  }
39239
39318
 
39240
- // Format error
39319
+ // Get world URL.
39320
+
39321
+ let worldURL = this .getExecutionContext () .getWorldURL ();
39322
+
39323
+ if (worldURL .startsWith ("data:"))
39324
+ worldURL = worldURL .substring (0, worldURL .indexOf (","));
39325
+
39326
+ // Format error.
39241
39327
 
39242
39328
  const message = "\n"
39243
39329
  + `********************************************************************************\n`
39244
39330
  + `Parser error at line ${this .lineNumber}:${linePos}\n`
39245
- + `in '${this .getExecutionContext () .getWorldURL ()}'\n`
39331
+ + `in '${worldURL}'\n`
39246
39332
  + `\n`
39247
39333
  + `${lastLine}\n`
39248
39334
  + `${line}\n`
@@ -41531,7 +41617,7 @@ const VRMLParser_default_ = VRMLParser;
41531
41617
  x_ite_Namespace .add ("VRMLParser", "x_ite/Parser/VRMLParser", VRMLParser_default_);
41532
41618
  /* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
41533
41619
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
41534
- /* provided dependency */ var XMLParser_$ = __webpack_require__(616);
41620
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(353);
41535
41621
  /*******************************************************************************
41536
41622
  *
41537
41623
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -43624,7 +43710,7 @@ const URLs_default_ = URLs;
43624
43710
  x_ite_Namespace .add ("URLs", "x_ite/Browser/Networking/URLs", URLs_default_);
43625
43711
  /* harmony default export */ const Networking_URLs = (URLs_default_);
43626
43712
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
43627
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(616);
43713
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(353);
43628
43714
  /*******************************************************************************
43629
43715
  *
43630
43716
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -46925,7 +47011,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
46925
47011
  x_ite_Namespace .add ("GLTF2Parser", "x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
46926
47012
  /* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
46927
47013
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
46928
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(616);
47014
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(353);
46929
47015
  /*******************************************************************************
46930
47016
  *
46931
47017
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -47077,7 +47163,7 @@ const GLB2Parser_default_ = GLB2Parser;
47077
47163
  x_ite_Namespace .add ("GLB2Parser", "x_ite/Parser/GLB2Parser", GLB2Parser_default_);
47078
47164
  /* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
47079
47165
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
47080
- /* provided dependency */ var OBJParser_$ = __webpack_require__(616);
47166
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(353);
47081
47167
  /*******************************************************************************
47082
47168
  *
47083
47169
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -50432,8 +50518,8 @@ const MatrixStack_default_ = MatrixStack;
50432
50518
  x_ite_Namespace .add ("MatrixStack", "standard/Math/Utility/MatrixStack", MatrixStack_default_);
50433
50519
  /* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
50434
50520
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
50435
- /* provided dependency */ var SVGParser_$ = __webpack_require__(616);
50436
- /* provided dependency */ var libtess = __webpack_require__(237);
50521
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(353);
50522
+ /* provided dependency */ var libtess = __webpack_require__(177);
50437
50523
  /*******************************************************************************
50438
50524
  *
50439
50525
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53201,7 +53287,7 @@ const SVGParser_default_ = SVGParser;
53201
53287
  x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_);
53202
53288
  /* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
53203
53289
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
53204
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(616);
53290
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(353);
53205
53291
  /*******************************************************************************
53206
53292
  *
53207
53293
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53538,7 +53624,7 @@ const Plane3_default_ = Plane3;
53538
53624
  x_ite_Namespace .add ("Plane3", "standard/Math/Geometry/Plane3", Plane3_default_);
53539
53625
  /* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
53540
53626
  ;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
53541
- /* provided dependency */ var Triangle3_libtess = __webpack_require__(237);
53627
+ /* provided dependency */ var Triangle3_libtess = __webpack_require__(177);
53542
53628
  /*******************************************************************************
53543
53629
  *
53544
53630
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -56617,6 +56703,7 @@ Object .assign (X3DRenderObject .prototype,
56617
56703
  { scissor, clipPlanes, modelViewMatrix, shapeNode, humanoidNode } = renderContext,
56618
56704
  appearanceNode = shapeNode .getAppearance (),
56619
56705
  geometryContext = shapeNode .getGeometryContext (),
56706
+ depthModeNode = appearanceNode .getDepthMode (),
56620
56707
  stylePropertiesNode = appearanceNode .getStyleProperties (geometryContext .geometryType),
56621
56708
  shaderNode = browser .getPointingShader (clipPlanes .length, shapeNode, humanoidNode),
56622
56709
  id = browser .addPointingShape (renderContext);
@@ -56635,10 +56722,13 @@ Object .assign (X3DRenderObject .prototype,
56635
56722
  gl .uniformMatrix4fv (shaderNode .x3d_ModelViewMatrix, false, modelViewMatrix);
56636
56723
  gl .uniform1f (shaderNode .x3d_Id, id);
56637
56724
 
56725
+ depthModeNode ?.enable (gl);
56638
56726
  stylePropertiesNode ?.setShaderUniforms (gl, shaderNode);
56639
56727
  humanoidNode ?.setShaderUniforms (gl, shaderNode);
56640
56728
 
56641
56729
  shapeNode .displaySimple (gl, renderContext, shaderNode);
56730
+
56731
+ depthModeNode ?.disable (gl);
56642
56732
  browser .resetTextureUnits ();
56643
56733
  }
56644
56734
  };
@@ -59336,13 +59426,14 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
59336
59426
  displayGeometry (gl, renderContext, appearanceNode, shaderNode, back, front)
59337
59427
  {
59338
59428
  const
59339
- browser = this .getBrowser (),
59340
- blendModeNode = appearanceNode .getBlendMode (),
59341
- attribNodes = this .attribNodes,
59342
- attribBuffers = this .attribBuffers,
59343
- primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
59429
+ browser = this .getBrowser (),
59430
+ renderModeNodes = appearanceNode .getRenderModes (),
59431
+ attribNodes = this .attribNodes,
59432
+ attribBuffers = this .attribBuffers,
59433
+ primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
59344
59434
 
59345
- blendModeNode ?.enable (gl);
59435
+ for (const node of renderModeNodes)
59436
+ node .enable (gl);
59346
59437
 
59347
59438
  shaderNode .enable (gl);
59348
59439
  shaderNode .setUniforms (gl, this, renderContext, front);
@@ -59416,7 +59507,8 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
59416
59507
  }
59417
59508
  }
59418
59509
 
59419
- blendModeNode ?.disable (gl);
59510
+ for (const node of renderModeNodes)
59511
+ node .disable (gl);
59420
59512
  },
59421
59513
  displaySimpleParticles (gl, shaderNode, particleSystem)
59422
59514
  {
@@ -59459,13 +59551,14 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
59459
59551
  displayParticlesGeometry (gl, renderContext, appearanceNode, shaderNode, back, front, particleSystem)
59460
59552
  {
59461
59553
  const
59462
- browser = this .getBrowser (),
59463
- blendModeNode = appearanceNode .getBlendMode (),
59464
- attribNodes = this .attribNodes,
59465
- attribBuffers = this .attribBuffers,
59466
- primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
59554
+ browser = this .getBrowser (),
59555
+ renderModeNodes = appearanceNode .getRenderModes (),
59556
+ attribNodes = this .attribNodes,
59557
+ attribBuffers = this .attribBuffers,
59558
+ primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
59467
59559
 
59468
- blendModeNode ?.enable (gl);
59560
+ for (const node of renderModeNodes)
59561
+ node .enable (gl);
59469
59562
 
59470
59563
  // Setup shader.
59471
59564
 
@@ -59535,7 +59628,8 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
59535
59628
  gl .drawArraysInstanced (primitiveMode, 0, this .vertexCount, particleSystem .numParticles);
59536
59629
  }
59537
59630
 
59538
- blendModeNode ?.disable (gl);
59631
+ for (const node of renderModeNodes)
59632
+ node .disable (gl);
59539
59633
  },
59540
59634
  });
59541
59635
 
@@ -61037,7 +61131,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
61037
61131
  x_ite_Namespace .add ("X3DTexture2DNode", "x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
61038
61132
  /* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
61039
61133
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
61040
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(616);
61134
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(353);
61041
61135
  /*******************************************************************************
61042
61136
  *
61043
61137
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -65624,7 +65718,7 @@ const X3DWorld_default_ = X3DWorld;
65624
65718
  x_ite_Namespace .add ("X3DWorld", "x_ite/Execution/X3DWorld", X3DWorld_default_);
65625
65719
  /* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
65626
65720
  ;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
65627
- /* provided dependency */ var FileLoader_$ = __webpack_require__(616);
65721
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(353);
65628
65722
  /*******************************************************************************
65629
65723
  *
65630
65724
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -68079,14 +68173,13 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68079
68173
  },
68080
68174
  construct ()
68081
68175
  {
68082
- this [X3DPrototypeInstance_body] ?.dispose ();
68083
-
68084
68176
  const
68085
68177
  protoNode = this [_protoNode],
68086
68178
  proto = protoNode .getProtoDeclaration ();
68087
68179
 
68088
- // Assign field definitions.
68180
+ // Dispose body and assign field definitions.
68089
68181
 
68182
+ this [X3DPrototypeInstance_body] ?.dispose ();
68090
68183
  this [X3DPrototypeInstance_fieldDefinitions] .assign (protoNode .getFieldDefinitions ());
68091
68184
 
68092
68185
  // If there is a proto, the externproto is completely loaded.
@@ -68132,10 +68225,11 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68132
68225
  if (field .hasReferences ())
68133
68226
  continue;
68134
68227
 
68228
+ // Default value of protoField is different from field.
68135
68229
  if (field .equals (protoField))
68136
68230
  continue;
68137
68231
 
68138
- // If default value of protoField is different from field, thus update default value for field.
68232
+ // Update default value of field.
68139
68233
  field .assign (protoField);
68140
68234
  }
68141
68235
  catch
@@ -68200,16 +68294,44 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68200
68294
  if (!oldField)
68201
68295
  continue;
68202
68296
 
68297
+ if (oldField .getType () !== newField .getType ())
68298
+ continue;
68299
+
68203
68300
  oldField .addParent (this);
68204
68301
  oldField .setAccessType (newField .getAccessType ());
68205
68302
  oldField .setName (newField .getName ());
68206
68303
 
68304
+ const references = new Set (oldField .getReferences ());
68305
+
68306
+ // Remove references and routes.
68307
+ for (const field of oldField .getFieldInterests ())
68308
+ oldField .removeFieldInterest (field);
68309
+
68310
+ // Readd references.
68311
+ for (const field of references)
68312
+ {
68313
+ oldField .removeReference (field);
68314
+ oldField .addReference (field);
68315
+ }
68316
+
68317
+ // Reconnect routes.
68318
+ for (const route of oldField .getInputRoutes ())
68319
+ route .getSourceField () .addFieldInterest (route .getDestinationField ());
68320
+
68321
+ // Reconnect routes.
68322
+ for (const route of oldField .getOutputRoutes ())
68323
+ route .getSourceField () .addFieldInterest (route .getDestinationField ());
68324
+
68325
+ // Replace field, ie. reuse old field.
68207
68326
  this .getPredefinedFields () .update (newField .getName (), newField .getName (), oldField);
68208
68327
 
68328
+ // Remove from old fields and dispose new field.
68209
68329
  oldFields .delete (oldFieldName);
68210
68330
  newField .dispose ();
68211
68331
  }
68212
68332
 
68333
+ // Dispose unused old fields.
68334
+
68213
68335
  for (const oldField of oldFields .values ())
68214
68336
  oldField .dispose ();
68215
68337
 
@@ -84362,6 +84484,9 @@ Object .assign (Object .setPrototypeOf (CylinderSensor .prototype, PointingDevic
84362
84484
  {
84363
84485
  PointingDeviceSensor_X3DDragSensorNode .prototype .initialize .call (this);
84364
84486
 
84487
+ this ._axisRotation .addInterest ("set_fields__", this);
84488
+ this ._diskAngle .addInterest ("set_fields__", this);
84489
+
84365
84490
  this .modelViewMatrix = new Numbers_Matrix4 ();
84366
84491
  this .invModelViewMatrix = new Numbers_Matrix4 ();
84367
84492
 
@@ -84411,71 +84536,87 @@ Object .assign (Object .setPrototypeOf (CylinderSensor .prototype, PointingDevic
84411
84536
  {
84412
84537
  if (rotation .getAxis (new Numbers_Vector3 (0, 0, 0)) .dot (this .cylinder .axis .direction) > 0)
84413
84538
  return rotation .angle;
84414
-
84415
84539
  else
84416
84540
  return -rotation .angle;
84417
84541
  },
84542
+ set_fields__ ()
84543
+ {
84544
+ if (!this ._isActive .getValue ())
84545
+ return;
84546
+
84547
+ this .activate (this .activateHit);
84548
+ this .set_motion__ (this .motionHit ?? this .activateHit);
84549
+ },
84418
84550
  set_active__ (active, hit, modelViewMatrix, projectionMatrix, viewport)
84419
84551
  {
84420
84552
  PointingDeviceSensor_X3DDragSensorNode .prototype .set_active__ .call (this, active, hit, modelViewMatrix, projectionMatrix, viewport);
84421
84553
 
84422
84554
  if (this ._isActive .getValue ())
84423
84555
  {
84556
+ this .activateHit = hit .copy ();
84557
+ this .motionHit = null;
84558
+
84424
84559
  this .modelViewMatrix .assign (modelViewMatrix);
84425
84560
  this .invModelViewMatrix .assign (modelViewMatrix) .inverse ();
84426
84561
 
84427
- const
84428
- hitRay = hit .hitRay .copy () .multLineMatrix (this .invModelViewMatrix),
84429
- hitPoint = this .invModelViewMatrix .multVecMatrix (hit .point .copy ());
84562
+ this .activate (hit);
84563
+ }
84564
+ else
84565
+ {
84566
+ if (this ._autoOffset .getValue ())
84567
+ this ._offset = this .getAngle (this ._rotation_changed .getValue ());
84568
+ }
84569
+ },
84570
+ activate (hit)
84571
+ {
84572
+ const
84573
+ hitRay = hit .hitRay .copy () .multLineMatrix (this .invModelViewMatrix),
84574
+ hitPoint = this .invModelViewMatrix .multVecMatrix (hit .point .copy ());
84430
84575
 
84431
- const
84432
- yAxis = this ._axisRotation .getValue () .multVecRot (new Numbers_Vector3 (0, 1, 0)),
84433
- cameraBack = this .invModelViewMatrix .multDirMatrix (new Numbers_Vector3 (0, 0, 1)) .normalize ();
84576
+ const
84577
+ yAxis = this ._axisRotation .getValue () .multVecRot (new Numbers_Vector3 (0, 1, 0)),
84578
+ cameraBack = this .invModelViewMatrix .multDirMatrix (new Numbers_Vector3 (0, 0, 1)) .normalize ();
84434
84579
 
84435
- const
84436
- axis = new Geometry_Line3 (new Numbers_Vector3 (0, 0, 0), yAxis),
84437
- radius = axis .getPerpendicularVectorToPoint (hitPoint, new Numbers_Vector3 (0, 0, 0)) .magnitude ();
84580
+ const
84581
+ axis = new Geometry_Line3 (new Numbers_Vector3 (0, 0, 0), yAxis),
84582
+ radius = axis .getPerpendicularVectorToPoint (hitPoint, new Numbers_Vector3 (0, 0, 0)) .magnitude ();
84438
84583
 
84439
- this .cylinder = new Geometry_Cylinder3 (axis, radius);
84440
- this .disk = Math .abs (cameraBack .dot (yAxis)) > Math .cos (this ._diskAngle .getValue ());
84441
- this .behind = this .isBehind (hitRay, hitPoint);
84442
- this .yPlane = new Geometry_Plane3 (hitPoint, yAxis); // Sensor aligned y-plane
84443
- this .zPlane = new Geometry_Plane3 (hitPoint, cameraBack); // Screen aligned z-plane
84584
+ this .cylinder = new Geometry_Cylinder3 (axis, radius);
84585
+ this .disk = Math .abs (cameraBack .dot (yAxis)) > Math .cos (this ._diskAngle .getValue ());
84586
+ this .behind = this .isBehind (hitRay, hitPoint);
84587
+ this .yPlane = new Geometry_Plane3 (hitPoint, yAxis); // Sensor aligned y-plane
84588
+ this .zPlane = new Geometry_Plane3 (hitPoint, cameraBack); // Screen aligned z-plane
84444
84589
 
84445
- // Compute normal like in Billboard with yAxis as axis of rotation.
84446
- const
84447
- billboardToViewer = this .invModelViewMatrix .origin,
84448
- sxNormal = yAxis .copy () .cross (billboardToViewer) .normalize ();
84590
+ // Compute normal like in Billboard with yAxis as axis of rotation.
84591
+ const
84592
+ billboardToViewer = this .invModelViewMatrix .origin,
84593
+ sxNormal = yAxis .copy () .cross (billboardToViewer) .normalize ();
84449
84594
 
84450
- this .sxPlane = new Geometry_Plane3 (new Numbers_Vector3 (0, 0, 0), sxNormal); // Billboarded special x-plane made parallel to sensors axis.
84451
- this .szNormal = sxNormal .copy () .cross (yAxis) .normalize (); // Billboarded special z-normal made parallel to sensors axis.
84595
+ this .sxPlane = new Geometry_Plane3 (new Numbers_Vector3 (0, 0, 0), sxNormal); // Billboarded special x-plane made parallel to sensors axis.
84596
+ this .szNormal = sxNormal .copy () .cross (yAxis) .normalize (); // Billboarded special z-normal made parallel to sensors axis.
84452
84597
 
84453
- const trackPoint = new Numbers_Vector3 (0, 0, 0);
84598
+ const trackPoint = new Numbers_Vector3 (0, 0, 0);
84454
84599
 
84455
- if (this .disk)
84456
- this .yPlane .intersectsLine (hitRay, trackPoint);
84457
- else
84458
- this .getTrackPoint (hitRay, trackPoint);
84600
+ if (this .disk)
84601
+ this .yPlane .intersectsLine (hitRay, trackPoint);
84602
+ else
84603
+ this .getTrackPoint (hitRay, trackPoint);
84459
84604
 
84460
- this .fromVector = this .cylinder .axis .getPerpendicularVectorToPoint (trackPoint, new Numbers_Vector3 (0, 0, 0)) .negate ();
84461
- this .startOffset = new Numbers_Rotation4 (yAxis, this ._offset .getValue ());
84605
+ this .fromVector = this .cylinder .axis .getPerpendicularVectorToPoint (trackPoint, new Numbers_Vector3 (0, 0, 0)) .negate ();
84606
+ this .startOffset = new Numbers_Rotation4 (yAxis, this ._offset .getValue ());
84462
84607
 
84463
- this ._trackPoint_changed = trackPoint;
84464
- this ._rotation_changed = this .startOffset;
84608
+ this ._trackPoint_changed = trackPoint;
84609
+ this ._rotation_changed = this .startOffset;
84465
84610
 
84466
- // For min/max angle.
84611
+ // For min/max angle.
84467
84612
 
84468
- this .angle = this ._offset .getValue ();
84469
- this .startVector = this ._rotation_changed .getValue () .multVecRot (this ._axisRotation .getValue () .multVecRot (new Numbers_Vector3 (0, 0, 1)));
84470
- }
84471
- else
84472
- {
84473
- if (this ._autoOffset .getValue ())
84474
- this ._offset = this .getAngle (this ._rotation_changed .getValue ());
84475
- }
84613
+ this .angle = this ._offset .getValue ();
84614
+ this .startVector = this ._rotation_changed .getValue () .multVecRot (this ._axisRotation .getValue () .multVecRot (new Numbers_Vector3 (0, 0, 1)));
84476
84615
  },
84477
84616
  set_motion__ (hit)
84478
84617
  {
84618
+ this .motionHit = hit .copy ();
84619
+
84479
84620
  const
84480
84621
  hitRay = hit .hitRay .copy () .multLineMatrix (this .invModelViewMatrix),
84481
84622
  trackPoint = new Numbers_Vector3 (0, 0, 0);
@@ -84838,6 +84979,10 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84838
84979
  {
84839
84980
  PointingDeviceSensor_X3DDragSensorNode .prototype .initialize .call (this);
84840
84981
 
84982
+ this ._axisRotation .addInterest ("set_fields__", this);
84983
+ this ._minPosition .addInterest ("set_fields__", this);
84984
+ this ._maxPosition .addInterest ("set_fields__", this);
84985
+
84841
84986
  this .modelViewMatrix = new Numbers_Matrix4 ();
84842
84987
  this .invModelViewMatrix = new Numbers_Matrix4 ();
84843
84988
  this .projectionMatrix = new Numbers_Matrix4 ();
@@ -84849,86 +84994,101 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84849
84994
  this .startOffset = new Numbers_Vector3 (0, 0, 0);
84850
84995
  this .startPoint = new Numbers_Vector3 (0, 0, 0);
84851
84996
  },
84852
- getLineTrackPoint (hit, line, trackPoint)
84997
+ getLineTrackPoint (pointer, line, trackPoint)
84853
84998
  {
84854
84999
  Geometry_ViewVolume .projectLine (line, this .modelViewMatrix, this .projectionMatrix, this .viewport, screenLine);
84855
- screenLine .getClosestPointToPoint (hit .pointer, trackPoint1);
85000
+ screenLine .getClosestPointToPoint (pointer, trackPoint1);
84856
85001
  Geometry_ViewVolume .unProjectRay (trackPoint1 .x, trackPoint1 .y, this .modelViewMatrix, this .projectionMatrix, this .viewport, trackPointLine);
84857
85002
 
84858
85003
  return line .getClosestPointToLine (trackPointLine, trackPoint);
84859
85004
  },
85005
+ set_fields__ ()
85006
+ {
85007
+ if (!this ._isActive .getValue ())
85008
+ return;
85009
+
85010
+ this .activate (this .activateHit);
85011
+ this .set_motion__ (this .motionHit ?? this .activateHit);
85012
+ },
84860
85013
  set_active__ (active, hit, modelViewMatrix, projectionMatrix, viewport)
84861
85014
  {
84862
85015
  PointingDeviceSensor_X3DDragSensorNode .prototype .set_active__ .call (this, active, hit, modelViewMatrix, projectionMatrix, viewport);
84863
85016
 
84864
85017
  if (this ._isActive .getValue ())
84865
85018
  {
85019
+ this .activateHit = hit .copy ();
85020
+ this .motionHit = null;
85021
+
84866
85022
  this .modelViewMatrix .assign (modelViewMatrix);
84867
85023
  this .projectionMatrix .assign (projectionMatrix);
84868
85024
  this .viewport .assign (viewport);
84869
85025
  this .invModelViewMatrix .assign (modelViewMatrix) .inverse ();
84870
85026
 
84871
- const
84872
- hitRay = hit .hitRay .copy () .multLineMatrix (this .invModelViewMatrix),
84873
- hitPoint = this .invModelViewMatrix .multVecMatrix (hit .point .copy ());
85027
+ this .activate (hit);
85028
+ }
85029
+ else
85030
+ {
85031
+ if (this ._autoOffset .getValue ())
85032
+ this ._offset = this ._translation_changed;
85033
+ }
85034
+ },
85035
+ activate (hit)
85036
+ {
85037
+ const
85038
+ hitRay = hit .hitRay .copy () .multLineMatrix (this .invModelViewMatrix),
85039
+ hitPoint = this .invModelViewMatrix .multVecMatrix (hit .point .copy ());
84874
85040
 
84875
- const axisRotation = this ._axisRotation .getValue ();
85041
+ const axisRotation = this ._axisRotation .getValue ();
84876
85042
 
84877
- if (this ._minPosition .x === this ._maxPosition .x)
84878
- {
84879
- this .planeSensor = false;
85043
+ if (this ._minPosition .x === this ._maxPosition .x)
85044
+ {
85045
+ this .planeSensor = false;
84880
85046
 
84881
- const direction = axisRotation .multVecRot (new Numbers_Vector3 (0, Math .abs (this ._maxPosition .y - this ._minPosition .y), 0));
85047
+ const direction = axisRotation .multVecRot (new Numbers_Vector3 (0, Math .abs (this ._maxPosition .y - this ._minPosition .y), 0));
84882
85048
 
84883
- this .line = new Geometry_Line3 (hitPoint, direction .normalize ());
84884
- }
84885
- else if (this ._minPosition .y === this ._maxPosition .y)
84886
- {
84887
- this .planeSensor = false;
85049
+ this .line = new Geometry_Line3 (hitPoint, direction .normalize ());
85050
+ }
85051
+ else if (this ._minPosition .y === this ._maxPosition .y)
85052
+ {
85053
+ this .planeSensor = false;
84888
85054
 
84889
- const direction = axisRotation .multVecRot (new Numbers_Vector3 (Math .abs (this ._maxPosition .x - this ._minPosition .x), 0, 0));
85055
+ const direction = axisRotation .multVecRot (new Numbers_Vector3 (Math .abs (this ._maxPosition .x - this ._minPosition .x), 0, 0));
84890
85056
 
84891
- this .line = new Geometry_Line3 (hitPoint, direction .normalize ());
84892
- }
84893
- else
85057
+ this .line = new Geometry_Line3 (hitPoint, direction .normalize ());
85058
+ }
85059
+ else
85060
+ {
85061
+ this .planeSensor = true;
85062
+ this .plane = new Geometry_Plane3 (hitPoint, axisRotation .multVecRot (new Numbers_Vector3 (0, 0, 1)));
85063
+ }
85064
+
85065
+ if (this .planeSensor)
85066
+ {
85067
+ if (this .plane .intersectsLine (hitRay, this .startPoint))
84894
85068
  {
84895
- this .planeSensor = true;
84896
- this .plane = new Geometry_Plane3 (hitPoint, axisRotation .multVecRot (new Numbers_Vector3 (0, 0, 1)));
85069
+ this .trackStart (this .startPoint);
84897
85070
  }
84898
85071
 
84899
- if (this .planeSensor)
85072
+ // new Plane3 (new Vector3 (0, 0, 0), this .plane .normal) .intersectsLine (hitRay, trackPoint);
85073
+ }
85074
+ else
85075
+ {
85076
+ if (this .getLineTrackPoint (hit .pointer, this .line, this .startPoint))
84900
85077
  {
84901
- if (this .plane .intersectsLine (hitRay, this .startPoint))
85078
+ const trackPoint = new Numbers_Vector3 (0, 0, 0);
85079
+
85080
+ try
84902
85081
  {
84903
- this .trackStart (this .startPoint);
85082
+ this .getLineTrackPoint (hit .pointer, new Geometry_Line3 (this .line .direction, this .line .direction), trackPoint);
84904
85083
  }
84905
-
84906
- // new Plane3 (new Vector3 (0, 0, 0), this .plane .normal) .intersectsLine (hitRay, trackPoint);
84907
- }
84908
- else
84909
- {
84910
- if (this .getLineTrackPoint (hit, this .line, this .startPoint))
85084
+ catch
84911
85085
  {
84912
- const trackPoint = new Numbers_Vector3 (0, 0, 0);
84913
-
84914
- try
84915
- {
84916
- this .getLineTrackPoint (hit, new Geometry_Line3 (this .line .direction, this .line .direction), trackPoint);
84917
- }
84918
- catch
84919
- {
84920
- trackPoint .assign (this .startPoint);
84921
- }
84922
-
84923
- this .trackStart (trackPoint);
85086
+ trackPoint .assign (this .startPoint);
84924
85087
  }
85088
+
85089
+ this .trackStart (trackPoint);
84925
85090
  }
84926
85091
  }
84927
- else
84928
- {
84929
- if (this ._autoOffset .getValue ())
84930
- this ._offset = this ._translation_changed;
84931
- }
84932
85092
  },
84933
85093
  trackStart (trackPoint)
84934
85094
  {
@@ -84941,6 +85101,8 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84941
85101
  {
84942
85102
  try
84943
85103
  {
85104
+ this .motionHit = hit .copy ();
85105
+
84944
85106
  if (this .planeSensor)
84945
85107
  {
84946
85108
  const
@@ -84948,9 +85110,7 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84948
85110
  endPoint = new Numbers_Vector3 (0, 0, 0);
84949
85111
 
84950
85112
  if (this .plane .intersectsLine (hitRay, endPoint))
84951
- {
84952
85113
  this .track (endPoint, endPoint .copy ());
84953
- }
84954
85114
  else
84955
85115
  throw new Error ("Plane and line are parallel.");
84956
85116
  }
@@ -84960,11 +85120,11 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84960
85120
  endPoint = new Numbers_Vector3 (0, 0, 0),
84961
85121
  trackPoint = new Numbers_Vector3 (0, 0, 0);
84962
85122
 
84963
- if (this .getLineTrackPoint (hit, this .line, endPoint))
85123
+ if (this .getLineTrackPoint (hit .pointer, this .line, endPoint))
84964
85124
  {
84965
85125
  try
84966
85126
  {
84967
- this .getLineTrackPoint (hit, new Geometry_Line3 (Numbers_Vector3 .Zero, this .line .direction), trackPoint);
85127
+ this .getLineTrackPoint (hit .pointer, new Geometry_Line3 (Numbers_Vector3 .Zero, this .line .direction), trackPoint);
84968
85128
  }
84969
85129
  catch
84970
85130
  {
@@ -84974,7 +85134,9 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84974
85134
  this .track (endPoint, trackPoint);
84975
85135
  }
84976
85136
  else
85137
+ {
84977
85138
  throw new Error ("Lines are parallel.");
85139
+ }
84978
85140
  }
84979
85141
  }
84980
85142
  catch
@@ -86763,7 +86925,7 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86763
86925
  appearanceNode = renderContext .appearanceNode,
86764
86926
  linePropertiesNode = appearanceNode .getLineProperties (),
86765
86927
  shaderNode = appearanceNode .getShader (this, renderContext),
86766
- blendModeNode = appearanceNode .getBlendMode (),
86928
+ renderModeNodes = appearanceNode .getRenderModes (),
86767
86929
  attribNodes = this .getAttrib (),
86768
86930
  attribBuffers = this .getAttribBuffers ();
86769
86931
 
@@ -86871,7 +87033,8 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86871
87033
 
86872
87034
  // Render triangles.
86873
87035
 
86874
- blendModeNode ?.enable (gl);
87036
+ for (const node of renderModeNodes)
87037
+ node .enable (gl);
86875
87038
 
86876
87039
  // Setup shader.
86877
87040
 
@@ -86915,7 +87078,8 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86915
87078
  gl .enable (gl .CULL_FACE);
86916
87079
  gl .drawArrays (primitiveMode, 0, this .vertexCount * 3);
86917
87080
 
86918
- blendModeNode ?.disable (gl);
87081
+ for (const node of renderModeNodes)
87082
+ node .disable (gl);
86919
87083
 
86920
87084
  return;
86921
87085
  }
@@ -86923,7 +87087,8 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86923
87087
 
86924
87088
  const primitiveMode = browser .getPrimitiveMode (this .getPrimitiveMode ());
86925
87089
 
86926
- blendModeNode ?.enable (gl);
87090
+ for (const node of renderModeNodes)
87091
+ node .enable (gl);
86927
87092
 
86928
87093
  // Setup shader.
86929
87094
 
@@ -86956,7 +87121,8 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86956
87121
 
86957
87122
  gl .drawArrays (primitiveMode, 0, this .vertexCount);
86958
87123
 
86959
- blendModeNode ?.disable (gl);
87124
+ for (const node of renderModeNodes)
87125
+ node .disable (gl);
86960
87126
 
86961
87127
  gl .lineWidth (1);
86962
87128
  };
@@ -86964,15 +87130,16 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86964
87130
  displayParticles (gl, renderContext, particleSystem)
86965
87131
  {
86966
87132
  const
86967
- browser = this .getBrowser (),
86968
- appearanceNode = renderContext .appearanceNode,
86969
- shaderNode = appearanceNode .getShader (this, renderContext),
86970
- blendModeNode = appearanceNode .getBlendMode (),
86971
- attribNodes = this .getAttrib (),
86972
- attribBuffers = this .getAttribBuffers (),
86973
- primitiveMode = browser .getPrimitiveMode (this .getPrimitiveMode ());
87133
+ browser = this .getBrowser (),
87134
+ appearanceNode = renderContext .appearanceNode,
87135
+ shaderNode = appearanceNode .getShader (this, renderContext),
87136
+ renderModeNodes = appearanceNode .getRenderModes (),
87137
+ attribNodes = this .getAttrib (),
87138
+ attribBuffers = this .getAttribBuffers (),
87139
+ primitiveMode = browser .getPrimitiveMode (this .getPrimitiveMode ());
86974
87140
 
86975
- blendModeNode ?.enable (gl);
87141
+ for (const node of renderModeNodes)
87142
+ node .enable (gl);
86976
87143
 
86977
87144
  // Setup shader.
86978
87145
 
@@ -87011,7 +87178,8 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
87011
87178
 
87012
87179
  gl .drawArraysInstanced (primitiveMode, 0, this .vertexCount, particleSystem .numParticles);
87013
87180
 
87014
- blendModeNode ?.disable (gl);
87181
+ for (const node of renderModeNodes)
87182
+ node .disable (gl);
87015
87183
 
87016
87184
  gl .lineWidth (1);
87017
87185
  },
@@ -88378,13 +88546,14 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
88378
88546
  display (gl, renderContext)
88379
88547
  {
88380
88548
  const
88381
- appearanceNode = renderContext .appearanceNode,
88382
- shaderNode = appearanceNode .getShader (this, renderContext),
88383
- blendModeNode = appearanceNode .getBlendMode (),
88384
- attribNodes = this .getAttrib (),
88385
- attribBuffers = this .getAttribBuffers ();
88549
+ appearanceNode = renderContext .appearanceNode,
88550
+ shaderNode = appearanceNode .getShader (this, renderContext),
88551
+ renderModeNodes = appearanceNode .getRenderModes (),
88552
+ attribNodes = this .getAttrib (),
88553
+ attribBuffers = this .getAttribBuffers ();
88386
88554
 
88387
- blendModeNode ?.enable (gl);
88555
+ for (const node of renderModeNodes)
88556
+ node .enable (gl);
88388
88557
 
88389
88558
  // Setup shader.
88390
88559
 
@@ -88415,18 +88584,20 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
88415
88584
 
88416
88585
  gl .drawArrays (this .primitiveMode, 0, this .vertexCount);
88417
88586
 
88418
- blendModeNode ?.disable (gl);
88587
+ for (const node of renderModeNodes)
88588
+ node .disable (gl);
88419
88589
  },
88420
88590
  displayParticles (gl, renderContext, particleSystem)
88421
88591
  {
88422
88592
  const
88423
- appearanceNode = renderContext .appearanceNode,
88424
- shaderNode = appearanceNode .getShader (this, renderContext),
88425
- blendModeNode = appearanceNode .getBlendMode (),
88426
- attribNodes = this .getAttrib (),
88427
- attribBuffers = this .getAttribBuffers ();
88593
+ appearanceNode = renderContext .appearanceNode,
88594
+ shaderNode = appearanceNode .getShader (this, renderContext),
88595
+ renderModeNodes = appearanceNode .getRenderModes (),
88596
+ attribNodes = this .getAttrib (),
88597
+ attribBuffers = this .getAttribBuffers ();
88428
88598
 
88429
- blendModeNode ?.enable (gl);
88599
+ for (const node of renderModeNodes)
88600
+ node .enable (gl);
88430
88601
 
88431
88602
  // Setup shader.
88432
88603
 
@@ -88465,7 +88636,8 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
88465
88636
 
88466
88637
  gl .drawArraysInstanced (this .primitiveMode, 0, this .vertexCount, particleSystem .numParticles);
88467
88638
 
88468
- blendModeNode ?.disable (gl);
88639
+ for (const node of renderModeNodes)
88640
+ node .disable (gl);
88469
88641
  },
88470
88642
  });
88471
88643
 
@@ -89362,7 +89534,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
89362
89534
  x_ite_Namespace .add ("X3DShaderNode", "x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
89363
89535
  /* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
89364
89536
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
89365
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(616);
89537
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(353);
89366
89538
  /*******************************************************************************
89367
89539
  *
89368
89540
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95003,7 +95175,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
95003
95175
  x_ite_Namespace .add ("ShaderCompiler", "x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
95004
95176
  /* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
95005
95177
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
95006
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(616);
95178
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(353);
95007
95179
  /*******************************************************************************
95008
95180
  *
95009
95181
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95660,7 +95832,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
95660
95832
  x_ite_Namespace .add ("X3DAppearanceNode", "x_ite/Components/Shape/X3DAppearanceNode", X3DAppearanceNode_default_);
95661
95833
  /* harmony default export */ const Shape_X3DAppearanceNode = (X3DAppearanceNode_default_);
95662
95834
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
95663
- /* provided dependency */ var Appearance_$ = __webpack_require__(616);
95835
+ /* provided dependency */ var Appearance_$ = __webpack_require__(353);
95664
95836
  /*******************************************************************************
95665
95837
  *
95666
95838
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95727,6 +95899,7 @@ function Appearance (executionContext)
95727
95899
  this .textureTransformMapping = new Map ();
95728
95900
  this .textureBits = new Utility_BitSet ();
95729
95901
  this .shaderNodes = [ ];
95902
+ this .renderModeNodes = [ ];
95730
95903
  }
95731
95904
 
95732
95905
  Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearanceNode .prototype),
@@ -95749,7 +95922,8 @@ Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearan
95749
95922
  this ._texture .addInterest ("set_texture__", this);
95750
95923
  this ._textureTransform .addInterest ("set_textureTransform__", this);
95751
95924
  this ._shaders .addInterest ("set_shaders__", this);
95752
- this ._blendMode .addInterest ("set_blendMode__", this);
95925
+ this ._blendMode .addInterest ("set_renderModes__", this);
95926
+ this ._depthMode .addInterest ("set_renderModes__", this);
95753
95927
 
95754
95928
  this ._alphaMode .addInterest ("set_transparent__", this);
95755
95929
  this ._fillProperties .addInterest ("set_transparent__", this);
@@ -95766,7 +95940,7 @@ Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearan
95766
95940
  this .set_texture__ ();
95767
95941
  this .set_textureTransform__ ();
95768
95942
  this .set_shaders__ ();
95769
- this .set_blendMode__ ();
95943
+ this .set_renderModes__ ();
95770
95944
  this .set_transparent__ ();
95771
95945
  },
95772
95946
  getAlphaMode ()
@@ -95830,9 +96004,13 @@ Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearan
95830
96004
  {
95831
96005
  return this .backMaterialNode .getShader (geometryContext, renderContext);
95832
96006
  },
95833
- getBlendMode ()
96007
+ getRenderModes ()
96008
+ {
96009
+ return this .renderModeNodes;
96010
+ },
96011
+ getDepthMode ()
95834
96012
  {
95835
- return this .blendModeNode;
96013
+ return this .depthModeNode;
95836
96014
  },
95837
96015
  set_contentScale__ ()
95838
96016
  {
@@ -96037,9 +96215,15 @@ Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearan
96037
96215
  }
96038
96216
  };
96039
96217
  })(),
96040
- set_blendMode__ ()
96218
+ set_renderModes__ ()
96041
96219
  {
96042
- this .blendModeNode = Base_X3DCast (Base_X3DConstants .BlendMode, this ._blendMode);
96220
+ this .renderModeNodes .length = 0;
96221
+
96222
+ this .blendModeNode = Base_X3DCast (Base_X3DConstants .BlendMode, this ._blendMode),
96223
+ this .depthModeNode = Base_X3DCast (Base_X3DConstants .DepthMode, this ._depthMode);
96224
+
96225
+ if (this .blendModeNode) this .renderModeNodes .push (this .blendModeNode);
96226
+ if (this .depthModeNode) this .renderModeNodes .push (this .depthModeNode);
96043
96227
  },
96044
96228
  set_transparent__ ()
96045
96229
  {
@@ -96093,6 +96277,7 @@ Object .defineProperties (Appearance,
96093
96277
  new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "textureTransform", new x_ite_Fields .SFNode ()),
96094
96278
  new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "shaders", new x_ite_Fields .MFNode ()),
96095
96279
  new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "blendMode", new x_ite_Fields .SFNode ()),
96280
+ new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "depthMode", new x_ite_Fields .SFNode ()),
96096
96281
  ]),
96097
96282
  enumerable: true,
96098
96283
  },
@@ -99065,7 +99250,7 @@ const Components_Shape_default_ = {
99065
99250
  x_ite_Namespace .add ("Shape", "x_ite/Components/Shape", Components_Shape_default_);
99066
99251
  /* harmony default export */ const Components_Shape = (Components_Shape_default_);
99067
99252
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundProcessingNode.js
99068
- /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(616);
99253
+ /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(353);
99069
99254
  /*******************************************************************************
99070
99255
  *
99071
99256
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99705,7 +99890,7 @@ const X3DSoundSourceNode_default_ = X3DSoundSourceNode;
99705
99890
  x_ite_Namespace .add ("X3DSoundSourceNode", "x_ite/Components/Sound/X3DSoundSourceNode", X3DSoundSourceNode_default_);
99706
99891
  /* harmony default export */ const Sound_X3DSoundSourceNode = (X3DSoundSourceNode_default_);
99707
99892
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/AudioClip.js
99708
- /* provided dependency */ var AudioClip_$ = __webpack_require__(616);
99893
+ /* provided dependency */ var AudioClip_$ = __webpack_require__(353);
99709
99894
  /*******************************************************************************
99710
99895
  *
99711
99896
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -100007,7 +100192,7 @@ const X3DSoundNode_default_ = X3DSoundNode;
100007
100192
  x_ite_Namespace .add ("X3DSoundNode", "x_ite/Components/Sound/X3DSoundNode", X3DSoundNode_default_);
100008
100193
  /* harmony default export */ const Sound_X3DSoundNode = (X3DSoundNode_default_);
100009
100194
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundDestinationNode.js
100010
- /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(616);
100195
+ /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(353);
100011
100196
  /*******************************************************************************
100012
100197
  *
100013
100198
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -101657,7 +101842,7 @@ const ListenerPointSource_default_ = ListenerPointSource;
101657
101842
  x_ite_Namespace .add ("ListenerPointSource", "x_ite/Components/Sound/ListenerPointSource", ListenerPointSource_default_);
101658
101843
  /* harmony default export */ const Sound_ListenerPointSource = (ListenerPointSource_default_);
101659
101844
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/MicrophoneSource.js
101660
- /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(616);
101845
+ /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(353);
101661
101846
  /*******************************************************************************
101662
101847
  *
101663
101848
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -103326,8 +103511,8 @@ const GifMedia_default_ = GifMedia;
103326
103511
  x_ite_Namespace .add ("GifMedia", "x_ite/Browser/Texturing/GifMedia", GifMedia_default_);
103327
103512
  /* harmony default export */ const Texturing_GifMedia = (GifMedia_default_);
103328
103513
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
103329
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(616);
103330
- /* provided dependency */ var SuperGif = __webpack_require__(115);
103514
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(353);
103515
+ /* provided dependency */ var SuperGif = __webpack_require__(302);
103331
103516
  /*******************************************************************************
103332
103517
  *
103333
103518
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -106605,7 +106790,7 @@ const gettext_default_ = gettext;
106605
106790
  x_ite_Namespace .add ("gettext", "locale/gettext", gettext_default_);
106606
106791
  /* harmony default export */ const locale_gettext = (gettext_default_);
106607
106792
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
106608
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(616);
106793
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(353);
106609
106794
  /*******************************************************************************
106610
106795
  *
106611
106796
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107035,7 +107220,7 @@ const TextureQuality_default_ = TextureQuality;
107035
107220
  x_ite_Namespace .add ("TextureQuality", "x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
107036
107221
  /* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
107037
107222
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
107038
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(616);
107223
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(353);
107039
107224
  /*******************************************************************************
107040
107225
  *
107041
107226
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107625,7 +107810,7 @@ const RenderingProperties_default_ = RenderingProperties;
107625
107810
  x_ite_Namespace .add ("RenderingProperties", "x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
107626
107811
  /* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
107627
107812
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
107628
- /* provided dependency */ var Notification_$ = __webpack_require__(616);
107813
+ /* provided dependency */ var Notification_$ = __webpack_require__(353);
107629
107814
  /*******************************************************************************
107630
107815
  *
107631
107816
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107748,8 +107933,8 @@ const Notification_default_ = Notification;
107748
107933
  x_ite_Namespace .add ("Notification", "x_ite/Browser/Core/Notification", Notification_default_);
107749
107934
  /* harmony default export */ const Core_Notification = (Notification_default_);
107750
107935
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
107751
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(746);
107752
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(616);
107936
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(699);
107937
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(353);
107753
107938
  /*******************************************************************************
107754
107939
  *
107755
107940
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109507,12 +109692,12 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
109507
109692
  throw new Error ("Couldn't add metadata: name is empty.");
109508
109693
 
109509
109694
  if (!Array .isArray (values))
109510
- values = [String (values)];
109695
+ values = [values];
109511
109696
 
109512
109697
  if (!values .length)
109513
109698
  throw new Error ("Couldn't add metadata: values length is 0.");
109514
109699
 
109515
- this [_metadata] .set (name, values .map (value => String (value)));
109700
+ this [_metadata] .set (name, values .map (String));
109516
109701
 
109517
109702
  this ._metadata_changed = this .getBrowser () .getCurrentTime ();
109518
109703
  },
@@ -110500,7 +110685,7 @@ const DataStorage_default_ = DataStorage;
110500
110685
  x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage_default_);
110501
110686
  /* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
110502
110687
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
110503
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(616);
110688
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(353);
110504
110689
  /*******************************************************************************
110505
110690
  *
110506
110691
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -112565,8 +112750,8 @@ const X3DViewer_default_ = X3DViewer;
112565
112750
  x_ite_Namespace .add ("X3DViewer", "x_ite/Browser/Navigation/X3DViewer", X3DViewer_default_);
112566
112751
  /* harmony default export */ const Navigation_X3DViewer = (X3DViewer_default_);
112567
112752
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
112568
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(678);
112569
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(616);
112753
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(509);
112754
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(353);
112570
112755
  /*******************************************************************************
112571
112756
  *
112572
112757
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -113438,8 +113623,8 @@ const ExamineViewer_default_ = ExamineViewer;
113438
113623
  x_ite_Namespace .add ("ExamineViewer", "x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
113439
113624
  /* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
113440
113625
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
113441
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(678);
113442
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(616);
113626
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(509);
113627
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(353);
113443
113628
  /*******************************************************************************
113444
113629
  *
113445
113630
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114448,8 +114633,8 @@ const FlyViewer_default_ = FlyViewer;
114448
114633
  x_ite_Namespace .add ("FlyViewer", "x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
114449
114634
  /* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
114450
114635
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
114451
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(678);
114452
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(616);
114636
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(509);
114637
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(353);
114453
114638
  /*******************************************************************************
114454
114639
  *
114455
114640
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114780,8 +114965,8 @@ const NoneViewer_default_ = NoneViewer;
114780
114965
  x_ite_Namespace .add ("NoneViewer", "x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
114781
114966
  /* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
114782
114967
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
114783
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(678);
114784
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(616);
114968
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(509);
114969
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(353);
114785
114970
  /*******************************************************************************
114786
114971
  *
114787
114972
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115920,8 +116105,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
115920
116105
  x_ite_Namespace .add ("X3DPickingContext", "x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
115921
116106
  /* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
115922
116107
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
115923
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(678);
115924
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(616);
116108
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(509);
116109
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(353);
115925
116110
  /*******************************************************************************
115926
116111
  *
115927
116112
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116478,6 +116663,22 @@ function X3DPointingDeviceSensorContext ()
116478
116663
  texCoord: new Numbers_Vector4 (0, 0, 0, 0),
116479
116664
  layerNode: null,
116480
116665
  shapeNode: null,
116666
+ copy ()
116667
+ {
116668
+ return {
116669
+ id: this .id,
116670
+ pointer: this .pointer .copy (),
116671
+ hitRay: this .hitRay .copy (),
116672
+ sensors: this .sensors .slice (),
116673
+ modelViewMatrix: this .modelViewMatrix .copy (),
116674
+ point: this .point .copy (),
116675
+ normal: this .normal .copy (),
116676
+ texCoord: this .texCoord .copy (),
116677
+ layerNode: this .layerNode,
116678
+ shapeNode: this .shapeNode,
116679
+ copy: this .copy,
116680
+ };
116681
+ },
116481
116682
  };
116482
116683
  }
116483
116684
 
@@ -117184,7 +117385,7 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
117184
117385
  x_ite_Namespace .add ("MultiSampleFrameBuffer", "x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
117185
117386
  /* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
117186
117387
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
117187
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(616);
117388
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(353);
117188
117389
  /*******************************************************************************
117189
117390
  *
117190
117391
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118087,7 +118288,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
118087
118288
  x_ite_Namespace .add ("X3DSoundContext", "x_ite/Browser/Sound/X3DSoundContext", X3DSoundContext_default_);
118088
118289
  /* harmony default export */ const Sound_X3DSoundContext = (X3DSoundContext_default_);
118089
118290
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
118090
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(616);
118291
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(353);
118091
118292
  const KTXDecoder_default_ = class KTXDecoder
118092
118293
  {
118093
118294
  constructor (gl, externalKtxlib, scriptDir)
@@ -119640,7 +119841,7 @@ const Components_default_ = Components;
119640
119841
  x_ite_Namespace .add ("Components", "x_ite/Components", Components_default_);
119641
119842
  /* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
119642
119843
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
119643
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(616);
119844
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(353);
119644
119845
  /*******************************************************************************
119645
119846
  * MIT License
119646
119847
  *
@@ -120779,7 +120980,7 @@ const SupportedProfiles_default_ = SupportedProfiles;
120779
120980
  x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
120780
120981
  /* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
120781
120982
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
120782
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(616);
120983
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(353);
120783
120984
  /*******************************************************************************
120784
120985
  *
120785
120986
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -121860,7 +122061,7 @@ const X3DBrowser_default_ = X3DBrowser;
121860
122061
  x_ite_Namespace .add ("X3DBrowser", "x_ite/Browser/X3DBrowser", X3DBrowser_default_);
121861
122062
  /* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
121862
122063
  ;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
121863
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(616);
122064
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(353);
121864
122065
  /*******************************************************************************
121865
122066
  *
121866
122067
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -121992,8 +122193,8 @@ const X3DCanvasElement_default_ = X3DCanvasElement;
121992
122193
  x_ite_Namespace .add ("X3DCanvasElement", "x_ite/X3DCanvasElement", X3DCanvasElement_default_);
121993
122194
  /* harmony default export */ const x_ite_X3DCanvasElement = (X3DCanvasElement_default_);
121994
122195
  ;// CONCATENATED MODULE: ./src/lib/jquery.js
121995
- /* provided dependency */ var jquery_$ = __webpack_require__(616);
121996
- /* provided dependency */ var pako = __webpack_require__(182);
122196
+ /* provided dependency */ var jquery_$ = __webpack_require__(353);
122197
+ /* provided dependency */ var pako = __webpack_require__(238);
121997
122198
  Object .assign (jquery_$,
121998
122199
  {
121999
122200
  decodeText (input)
@@ -122070,14 +122271,14 @@ const jquery_default_ = jquery_$;
122070
122271
  x_ite_Namespace .add ("jquery", "lib/jquery", jquery_default_);
122071
122272
  /* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
122072
122273
  ;// CONCATENATED MODULE: ./src/lib/libtess.js
122073
- /* provided dependency */ var libtess_libtess = __webpack_require__(237);
122274
+ /* provided dependency */ var libtess_libtess = __webpack_require__(177);
122074
122275
  const libtess_default_ = libtess_libtess;
122075
122276
  ;
122076
122277
 
122077
122278
  x_ite_Namespace .add ("libtess", "lib/libtess", libtess_default_);
122078
122279
  /* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
122079
122280
  ;// CONCATENATED MODULE: ./src/x_ite/X3D.js
122080
- /* provided dependency */ var X3D_$ = __webpack_require__(616);
122281
+ /* provided dependency */ var X3D_$ = __webpack_require__(353);
122081
122282
  /*******************************************************************************
122082
122283
  *
122083
122284
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122471,7 +122672,7 @@ x_ite_Namespace .add ("shim", "shim", shim_default_);
122471
122672
 
122472
122673
  // Assign X3D to global namespace.
122473
122674
 
122474
- window [Symbol .for ("X_ITE.X3D-9.0.3")] = x_ite_X3D;
122675
+ window [Symbol .for ("X_ITE.X3D-9.1.1")] = x_ite_X3D;
122475
122676
 
122476
122677
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
122477
122678