x_ite 9.0.3 → 9.1.0

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 +38 -38
  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 +426 -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 +426 -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.0 */(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
+ /***/ 91:
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__(172);
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
+ /***/ 57:
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__(172)], __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
+ /***/ 172:
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
+ /***/ 715:
11163
11163
  /***/ ((module) => {
11164
11164
 
11165
11165
  /**
@@ -15938,7 +15938,7 @@ if (true) {
15938
15938
 
15939
15939
  /***/ }),
15940
15940
 
15941
- /***/ 182:
15941
+ /***/ 834:
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
+ /***/ 235:
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.0")];
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))
@@ -34172,7 +34235,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34172
34235
  x_ite_Namespace .add ("X3DBaseNode", "x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
34173
34236
  /* harmony default export */ const Base_X3DBaseNode = (X3DBaseNode_default_);
34174
34237
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
34175
- /* provided dependency */ var $ = __webpack_require__(616);
34238
+ /* provided dependency */ var $ = __webpack_require__(172);
34176
34239
  /*******************************************************************************
34177
34240
  *
34178
34241
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34309,7 +34372,7 @@ x_ite_Namespace .add ("Legacy", "x_ite/Browser/Legacy", Legacy_default_);
34309
34372
  *
34310
34373
  ******************************************************************************/
34311
34374
 
34312
- const BROWSER_VERSION_default_ = "9.0.3";
34375
+ const BROWSER_VERSION_default_ = "9.1.0";
34313
34376
  ;
34314
34377
 
34315
34378
  x_ite_Namespace .add ("BROWSER_VERSION", "x_ite/BROWSER_VERSION", BROWSER_VERSION_default_);
@@ -38160,7 +38223,7 @@ const X3DProtoDeclarationNode_default_ = X3DProtoDeclarationNode;
38160
38223
  x_ite_Namespace .add ("X3DProtoDeclarationNode", "x_ite/Prototype/X3DProtoDeclarationNode", X3DProtoDeclarationNode_default_);
38161
38224
  /* harmony default export */ const Prototype_X3DProtoDeclarationNode = (X3DProtoDeclarationNode_default_);
38162
38225
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
38163
- /* provided dependency */ var X3DParser_$ = __webpack_require__(616);
38226
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(172);
38164
38227
  /*******************************************************************************
38165
38228
  *
38166
38229
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -38985,7 +39048,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
38985
39048
  x_ite_Namespace .add ("X3DProtoDeclaration", "x_ite/Prototype/X3DProtoDeclaration", X3DProtoDeclaration_default_);
38986
39049
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (X3DProtoDeclaration_default_);
38987
39050
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
38988
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(616);
39051
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(172);
38989
39052
  /*******************************************************************************
38990
39053
  *
38991
39054
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39237,12 +39300,19 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
39237
39300
  linePos = 40;
39238
39301
  }
39239
39302
 
39240
- // Format error
39303
+ // Get world URL.
39304
+
39305
+ let worldURL = this .getExecutionContext () .getWorldURL ();
39306
+
39307
+ if (worldURL .startsWith ("data:"))
39308
+ worldURL = worldURL .substring (0, worldURL .indexOf (","));
39309
+
39310
+ // Format error.
39241
39311
 
39242
39312
  const message = "\n"
39243
39313
  + `********************************************************************************\n`
39244
39314
  + `Parser error at line ${this .lineNumber}:${linePos}\n`
39245
- + `in '${this .getExecutionContext () .getWorldURL ()}'\n`
39315
+ + `in '${worldURL}'\n`
39246
39316
  + `\n`
39247
39317
  + `${lastLine}\n`
39248
39318
  + `${line}\n`
@@ -41531,7 +41601,7 @@ const VRMLParser_default_ = VRMLParser;
41531
41601
  x_ite_Namespace .add ("VRMLParser", "x_ite/Parser/VRMLParser", VRMLParser_default_);
41532
41602
  /* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
41533
41603
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
41534
- /* provided dependency */ var XMLParser_$ = __webpack_require__(616);
41604
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(172);
41535
41605
  /*******************************************************************************
41536
41606
  *
41537
41607
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -43624,7 +43694,7 @@ const URLs_default_ = URLs;
43624
43694
  x_ite_Namespace .add ("URLs", "x_ite/Browser/Networking/URLs", URLs_default_);
43625
43695
  /* harmony default export */ const Networking_URLs = (URLs_default_);
43626
43696
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
43627
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(616);
43697
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(172);
43628
43698
  /*******************************************************************************
43629
43699
  *
43630
43700
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -46925,7 +46995,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
46925
46995
  x_ite_Namespace .add ("GLTF2Parser", "x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
46926
46996
  /* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
46927
46997
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
46928
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(616);
46998
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(172);
46929
46999
  /*******************************************************************************
46930
47000
  *
46931
47001
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -47077,7 +47147,7 @@ const GLB2Parser_default_ = GLB2Parser;
47077
47147
  x_ite_Namespace .add ("GLB2Parser", "x_ite/Parser/GLB2Parser", GLB2Parser_default_);
47078
47148
  /* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
47079
47149
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
47080
- /* provided dependency */ var OBJParser_$ = __webpack_require__(616);
47150
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(172);
47081
47151
  /*******************************************************************************
47082
47152
  *
47083
47153
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -50432,8 +50502,8 @@ const MatrixStack_default_ = MatrixStack;
50432
50502
  x_ite_Namespace .add ("MatrixStack", "standard/Math/Utility/MatrixStack", MatrixStack_default_);
50433
50503
  /* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
50434
50504
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
50435
- /* provided dependency */ var SVGParser_$ = __webpack_require__(616);
50436
- /* provided dependency */ var libtess = __webpack_require__(237);
50505
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(172);
50506
+ /* provided dependency */ var libtess = __webpack_require__(715);
50437
50507
  /*******************************************************************************
50438
50508
  *
50439
50509
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53201,7 +53271,7 @@ const SVGParser_default_ = SVGParser;
53201
53271
  x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_);
53202
53272
  /* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
53203
53273
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
53204
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(616);
53274
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(172);
53205
53275
  /*******************************************************************************
53206
53276
  *
53207
53277
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53538,7 +53608,7 @@ const Plane3_default_ = Plane3;
53538
53608
  x_ite_Namespace .add ("Plane3", "standard/Math/Geometry/Plane3", Plane3_default_);
53539
53609
  /* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
53540
53610
  ;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
53541
- /* provided dependency */ var Triangle3_libtess = __webpack_require__(237);
53611
+ /* provided dependency */ var Triangle3_libtess = __webpack_require__(715);
53542
53612
  /*******************************************************************************
53543
53613
  *
53544
53614
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -56617,6 +56687,7 @@ Object .assign (X3DRenderObject .prototype,
56617
56687
  { scissor, clipPlanes, modelViewMatrix, shapeNode, humanoidNode } = renderContext,
56618
56688
  appearanceNode = shapeNode .getAppearance (),
56619
56689
  geometryContext = shapeNode .getGeometryContext (),
56690
+ depthModeNode = appearanceNode .getDepthMode (),
56620
56691
  stylePropertiesNode = appearanceNode .getStyleProperties (geometryContext .geometryType),
56621
56692
  shaderNode = browser .getPointingShader (clipPlanes .length, shapeNode, humanoidNode),
56622
56693
  id = browser .addPointingShape (renderContext);
@@ -56635,10 +56706,13 @@ Object .assign (X3DRenderObject .prototype,
56635
56706
  gl .uniformMatrix4fv (shaderNode .x3d_ModelViewMatrix, false, modelViewMatrix);
56636
56707
  gl .uniform1f (shaderNode .x3d_Id, id);
56637
56708
 
56709
+ depthModeNode ?.enable (gl);
56638
56710
  stylePropertiesNode ?.setShaderUniforms (gl, shaderNode);
56639
56711
  humanoidNode ?.setShaderUniforms (gl, shaderNode);
56640
56712
 
56641
56713
  shapeNode .displaySimple (gl, renderContext, shaderNode);
56714
+
56715
+ depthModeNode ?.disable (gl);
56642
56716
  browser .resetTextureUnits ();
56643
56717
  }
56644
56718
  };
@@ -59336,13 +59410,14 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
59336
59410
  displayGeometry (gl, renderContext, appearanceNode, shaderNode, back, front)
59337
59411
  {
59338
59412
  const
59339
- browser = this .getBrowser (),
59340
- blendModeNode = appearanceNode .getBlendMode (),
59341
- attribNodes = this .attribNodes,
59342
- attribBuffers = this .attribBuffers,
59343
- primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
59413
+ browser = this .getBrowser (),
59414
+ renderModeNodes = appearanceNode .getRenderModes (),
59415
+ attribNodes = this .attribNodes,
59416
+ attribBuffers = this .attribBuffers,
59417
+ primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
59344
59418
 
59345
- blendModeNode ?.enable (gl);
59419
+ for (const node of renderModeNodes)
59420
+ node .enable (gl);
59346
59421
 
59347
59422
  shaderNode .enable (gl);
59348
59423
  shaderNode .setUniforms (gl, this, renderContext, front);
@@ -59416,7 +59491,8 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
59416
59491
  }
59417
59492
  }
59418
59493
 
59419
- blendModeNode ?.disable (gl);
59494
+ for (const node of renderModeNodes)
59495
+ node .disable (gl);
59420
59496
  },
59421
59497
  displaySimpleParticles (gl, shaderNode, particleSystem)
59422
59498
  {
@@ -59459,13 +59535,14 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
59459
59535
  displayParticlesGeometry (gl, renderContext, appearanceNode, shaderNode, back, front, particleSystem)
59460
59536
  {
59461
59537
  const
59462
- browser = this .getBrowser (),
59463
- blendModeNode = appearanceNode .getBlendMode (),
59464
- attribNodes = this .attribNodes,
59465
- attribBuffers = this .attribBuffers,
59466
- primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
59538
+ browser = this .getBrowser (),
59539
+ renderModeNodes = appearanceNode .getRenderModes (),
59540
+ attribNodes = this .attribNodes,
59541
+ attribBuffers = this .attribBuffers,
59542
+ primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
59467
59543
 
59468
- blendModeNode ?.enable (gl);
59544
+ for (const node of renderModeNodes)
59545
+ node .enable (gl);
59469
59546
 
59470
59547
  // Setup shader.
59471
59548
 
@@ -59535,7 +59612,8 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
59535
59612
  gl .drawArraysInstanced (primitiveMode, 0, this .vertexCount, particleSystem .numParticles);
59536
59613
  }
59537
59614
 
59538
- blendModeNode ?.disable (gl);
59615
+ for (const node of renderModeNodes)
59616
+ node .disable (gl);
59539
59617
  },
59540
59618
  });
59541
59619
 
@@ -61037,7 +61115,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
61037
61115
  x_ite_Namespace .add ("X3DTexture2DNode", "x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
61038
61116
  /* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
61039
61117
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
61040
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(616);
61118
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(172);
61041
61119
  /*******************************************************************************
61042
61120
  *
61043
61121
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -65624,7 +65702,7 @@ const X3DWorld_default_ = X3DWorld;
65624
65702
  x_ite_Namespace .add ("X3DWorld", "x_ite/Execution/X3DWorld", X3DWorld_default_);
65625
65703
  /* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
65626
65704
  ;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
65627
- /* provided dependency */ var FileLoader_$ = __webpack_require__(616);
65705
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(172);
65628
65706
  /*******************************************************************************
65629
65707
  *
65630
65708
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -68079,14 +68157,13 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68079
68157
  },
68080
68158
  construct ()
68081
68159
  {
68082
- this [X3DPrototypeInstance_body] ?.dispose ();
68083
-
68084
68160
  const
68085
68161
  protoNode = this [_protoNode],
68086
68162
  proto = protoNode .getProtoDeclaration ();
68087
68163
 
68088
- // Assign field definitions.
68164
+ // Dispose body and assign field definitions.
68089
68165
 
68166
+ this [X3DPrototypeInstance_body] ?.dispose ();
68090
68167
  this [X3DPrototypeInstance_fieldDefinitions] .assign (protoNode .getFieldDefinitions ());
68091
68168
 
68092
68169
  // If there is a proto, the externproto is completely loaded.
@@ -68132,10 +68209,11 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68132
68209
  if (field .hasReferences ())
68133
68210
  continue;
68134
68211
 
68212
+ // Default value of protoField is different from field.
68135
68213
  if (field .equals (protoField))
68136
68214
  continue;
68137
68215
 
68138
- // If default value of protoField is different from field, thus update default value for field.
68216
+ // Update default value of field.
68139
68217
  field .assign (protoField);
68140
68218
  }
68141
68219
  catch
@@ -68200,16 +68278,44 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
68200
68278
  if (!oldField)
68201
68279
  continue;
68202
68280
 
68281
+ if (oldField .getType () !== newField .getType ())
68282
+ continue;
68283
+
68203
68284
  oldField .addParent (this);
68204
68285
  oldField .setAccessType (newField .getAccessType ());
68205
68286
  oldField .setName (newField .getName ());
68206
68287
 
68288
+ const references = new Set (oldField .getReferences ());
68289
+
68290
+ // Remove references and routes.
68291
+ for (const field of oldField .getFieldInterests ())
68292
+ oldField .removeFieldInterest (field);
68293
+
68294
+ // Readd references.
68295
+ for (const field of references)
68296
+ {
68297
+ oldField .removeReference (field);
68298
+ oldField .addReference (field);
68299
+ }
68300
+
68301
+ // Reconnect routes.
68302
+ for (const route of oldField .getInputRoutes ())
68303
+ route .getSourceField () .addFieldInterest (route .getDestinationField ());
68304
+
68305
+ // Reconnect routes.
68306
+ for (const route of oldField .getOutputRoutes ())
68307
+ route .getSourceField () .addFieldInterest (route .getDestinationField ());
68308
+
68309
+ // Replace field, ie. reuse old field.
68207
68310
  this .getPredefinedFields () .update (newField .getName (), newField .getName (), oldField);
68208
68311
 
68312
+ // Remove from old fields and dispose new field.
68209
68313
  oldFields .delete (oldFieldName);
68210
68314
  newField .dispose ();
68211
68315
  }
68212
68316
 
68317
+ // Dispose unused old fields.
68318
+
68213
68319
  for (const oldField of oldFields .values ())
68214
68320
  oldField .dispose ();
68215
68321
 
@@ -84362,6 +84468,9 @@ Object .assign (Object .setPrototypeOf (CylinderSensor .prototype, PointingDevic
84362
84468
  {
84363
84469
  PointingDeviceSensor_X3DDragSensorNode .prototype .initialize .call (this);
84364
84470
 
84471
+ this ._axisRotation .addInterest ("set_fields__", this);
84472
+ this ._diskAngle .addInterest ("set_fields__", this);
84473
+
84365
84474
  this .modelViewMatrix = new Numbers_Matrix4 ();
84366
84475
  this .invModelViewMatrix = new Numbers_Matrix4 ();
84367
84476
 
@@ -84411,71 +84520,87 @@ Object .assign (Object .setPrototypeOf (CylinderSensor .prototype, PointingDevic
84411
84520
  {
84412
84521
  if (rotation .getAxis (new Numbers_Vector3 (0, 0, 0)) .dot (this .cylinder .axis .direction) > 0)
84413
84522
  return rotation .angle;
84414
-
84415
84523
  else
84416
84524
  return -rotation .angle;
84417
84525
  },
84526
+ set_fields__ ()
84527
+ {
84528
+ if (!this ._isActive .getValue ())
84529
+ return;
84530
+
84531
+ this .activate (this .activateHit);
84532
+ this .set_motion__ (this .motionHit ?? this .activateHit);
84533
+ },
84418
84534
  set_active__ (active, hit, modelViewMatrix, projectionMatrix, viewport)
84419
84535
  {
84420
84536
  PointingDeviceSensor_X3DDragSensorNode .prototype .set_active__ .call (this, active, hit, modelViewMatrix, projectionMatrix, viewport);
84421
84537
 
84422
84538
  if (this ._isActive .getValue ())
84423
84539
  {
84540
+ this .activateHit = hit .copy ();
84541
+ this .motionHit = null;
84542
+
84424
84543
  this .modelViewMatrix .assign (modelViewMatrix);
84425
84544
  this .invModelViewMatrix .assign (modelViewMatrix) .inverse ();
84426
84545
 
84427
- const
84428
- hitRay = hit .hitRay .copy () .multLineMatrix (this .invModelViewMatrix),
84429
- hitPoint = this .invModelViewMatrix .multVecMatrix (hit .point .copy ());
84546
+ this .activate (hit);
84547
+ }
84548
+ else
84549
+ {
84550
+ if (this ._autoOffset .getValue ())
84551
+ this ._offset = this .getAngle (this ._rotation_changed .getValue ());
84552
+ }
84553
+ },
84554
+ activate (hit)
84555
+ {
84556
+ const
84557
+ hitRay = hit .hitRay .copy () .multLineMatrix (this .invModelViewMatrix),
84558
+ hitPoint = this .invModelViewMatrix .multVecMatrix (hit .point .copy ());
84430
84559
 
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 ();
84560
+ const
84561
+ yAxis = this ._axisRotation .getValue () .multVecRot (new Numbers_Vector3 (0, 1, 0)),
84562
+ cameraBack = this .invModelViewMatrix .multDirMatrix (new Numbers_Vector3 (0, 0, 1)) .normalize ();
84434
84563
 
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 ();
84564
+ const
84565
+ axis = new Geometry_Line3 (new Numbers_Vector3 (0, 0, 0), yAxis),
84566
+ radius = axis .getPerpendicularVectorToPoint (hitPoint, new Numbers_Vector3 (0, 0, 0)) .magnitude ();
84438
84567
 
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
84568
+ this .cylinder = new Geometry_Cylinder3 (axis, radius);
84569
+ this .disk = Math .abs (cameraBack .dot (yAxis)) > Math .cos (this ._diskAngle .getValue ());
84570
+ this .behind = this .isBehind (hitRay, hitPoint);
84571
+ this .yPlane = new Geometry_Plane3 (hitPoint, yAxis); // Sensor aligned y-plane
84572
+ this .zPlane = new Geometry_Plane3 (hitPoint, cameraBack); // Screen aligned z-plane
84444
84573
 
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 ();
84574
+ // Compute normal like in Billboard with yAxis as axis of rotation.
84575
+ const
84576
+ billboardToViewer = this .invModelViewMatrix .origin,
84577
+ sxNormal = yAxis .copy () .cross (billboardToViewer) .normalize ();
84449
84578
 
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.
84579
+ this .sxPlane = new Geometry_Plane3 (new Numbers_Vector3 (0, 0, 0), sxNormal); // Billboarded special x-plane made parallel to sensors axis.
84580
+ this .szNormal = sxNormal .copy () .cross (yAxis) .normalize (); // Billboarded special z-normal made parallel to sensors axis.
84452
84581
 
84453
- const trackPoint = new Numbers_Vector3 (0, 0, 0);
84582
+ const trackPoint = new Numbers_Vector3 (0, 0, 0);
84454
84583
 
84455
- if (this .disk)
84456
- this .yPlane .intersectsLine (hitRay, trackPoint);
84457
- else
84458
- this .getTrackPoint (hitRay, trackPoint);
84584
+ if (this .disk)
84585
+ this .yPlane .intersectsLine (hitRay, trackPoint);
84586
+ else
84587
+ this .getTrackPoint (hitRay, trackPoint);
84459
84588
 
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 ());
84589
+ this .fromVector = this .cylinder .axis .getPerpendicularVectorToPoint (trackPoint, new Numbers_Vector3 (0, 0, 0)) .negate ();
84590
+ this .startOffset = new Numbers_Rotation4 (yAxis, this ._offset .getValue ());
84462
84591
 
84463
- this ._trackPoint_changed = trackPoint;
84464
- this ._rotation_changed = this .startOffset;
84592
+ this ._trackPoint_changed = trackPoint;
84593
+ this ._rotation_changed = this .startOffset;
84465
84594
 
84466
- // For min/max angle.
84595
+ // For min/max angle.
84467
84596
 
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
- }
84597
+ this .angle = this ._offset .getValue ();
84598
+ this .startVector = this ._rotation_changed .getValue () .multVecRot (this ._axisRotation .getValue () .multVecRot (new Numbers_Vector3 (0, 0, 1)));
84476
84599
  },
84477
84600
  set_motion__ (hit)
84478
84601
  {
84602
+ this .motionHit = hit .copy ();
84603
+
84479
84604
  const
84480
84605
  hitRay = hit .hitRay .copy () .multLineMatrix (this .invModelViewMatrix),
84481
84606
  trackPoint = new Numbers_Vector3 (0, 0, 0);
@@ -84838,6 +84963,10 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84838
84963
  {
84839
84964
  PointingDeviceSensor_X3DDragSensorNode .prototype .initialize .call (this);
84840
84965
 
84966
+ this ._axisRotation .addInterest ("set_fields__", this);
84967
+ this ._minPosition .addInterest ("set_fields__", this);
84968
+ this ._maxPosition .addInterest ("set_fields__", this);
84969
+
84841
84970
  this .modelViewMatrix = new Numbers_Matrix4 ();
84842
84971
  this .invModelViewMatrix = new Numbers_Matrix4 ();
84843
84972
  this .projectionMatrix = new Numbers_Matrix4 ();
@@ -84849,86 +84978,101 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84849
84978
  this .startOffset = new Numbers_Vector3 (0, 0, 0);
84850
84979
  this .startPoint = new Numbers_Vector3 (0, 0, 0);
84851
84980
  },
84852
- getLineTrackPoint (hit, line, trackPoint)
84981
+ getLineTrackPoint (pointer, line, trackPoint)
84853
84982
  {
84854
84983
  Geometry_ViewVolume .projectLine (line, this .modelViewMatrix, this .projectionMatrix, this .viewport, screenLine);
84855
- screenLine .getClosestPointToPoint (hit .pointer, trackPoint1);
84984
+ screenLine .getClosestPointToPoint (pointer, trackPoint1);
84856
84985
  Geometry_ViewVolume .unProjectRay (trackPoint1 .x, trackPoint1 .y, this .modelViewMatrix, this .projectionMatrix, this .viewport, trackPointLine);
84857
84986
 
84858
84987
  return line .getClosestPointToLine (trackPointLine, trackPoint);
84859
84988
  },
84989
+ set_fields__ ()
84990
+ {
84991
+ if (!this ._isActive .getValue ())
84992
+ return;
84993
+
84994
+ this .activate (this .activateHit);
84995
+ this .set_motion__ (this .motionHit ?? this .activateHit);
84996
+ },
84860
84997
  set_active__ (active, hit, modelViewMatrix, projectionMatrix, viewport)
84861
84998
  {
84862
84999
  PointingDeviceSensor_X3DDragSensorNode .prototype .set_active__ .call (this, active, hit, modelViewMatrix, projectionMatrix, viewport);
84863
85000
 
84864
85001
  if (this ._isActive .getValue ())
84865
85002
  {
85003
+ this .activateHit = hit .copy ();
85004
+ this .motionHit = null;
85005
+
84866
85006
  this .modelViewMatrix .assign (modelViewMatrix);
84867
85007
  this .projectionMatrix .assign (projectionMatrix);
84868
85008
  this .viewport .assign (viewport);
84869
85009
  this .invModelViewMatrix .assign (modelViewMatrix) .inverse ();
84870
85010
 
84871
- const
84872
- hitRay = hit .hitRay .copy () .multLineMatrix (this .invModelViewMatrix),
84873
- hitPoint = this .invModelViewMatrix .multVecMatrix (hit .point .copy ());
85011
+ this .activate (hit);
85012
+ }
85013
+ else
85014
+ {
85015
+ if (this ._autoOffset .getValue ())
85016
+ this ._offset = this ._translation_changed;
85017
+ }
85018
+ },
85019
+ activate (hit)
85020
+ {
85021
+ const
85022
+ hitRay = hit .hitRay .copy () .multLineMatrix (this .invModelViewMatrix),
85023
+ hitPoint = this .invModelViewMatrix .multVecMatrix (hit .point .copy ());
84874
85024
 
84875
- const axisRotation = this ._axisRotation .getValue ();
85025
+ const axisRotation = this ._axisRotation .getValue ();
84876
85026
 
84877
- if (this ._minPosition .x === this ._maxPosition .x)
84878
- {
84879
- this .planeSensor = false;
85027
+ if (this ._minPosition .x === this ._maxPosition .x)
85028
+ {
85029
+ this .planeSensor = false;
84880
85030
 
84881
- const direction = axisRotation .multVecRot (new Numbers_Vector3 (0, Math .abs (this ._maxPosition .y - this ._minPosition .y), 0));
85031
+ const direction = axisRotation .multVecRot (new Numbers_Vector3 (0, Math .abs (this ._maxPosition .y - this ._minPosition .y), 0));
84882
85032
 
84883
- this .line = new Geometry_Line3 (hitPoint, direction .normalize ());
84884
- }
84885
- else if (this ._minPosition .y === this ._maxPosition .y)
84886
- {
84887
- this .planeSensor = false;
85033
+ this .line = new Geometry_Line3 (hitPoint, direction .normalize ());
85034
+ }
85035
+ else if (this ._minPosition .y === this ._maxPosition .y)
85036
+ {
85037
+ this .planeSensor = false;
84888
85038
 
84889
- const direction = axisRotation .multVecRot (new Numbers_Vector3 (Math .abs (this ._maxPosition .x - this ._minPosition .x), 0, 0));
85039
+ const direction = axisRotation .multVecRot (new Numbers_Vector3 (Math .abs (this ._maxPosition .x - this ._minPosition .x), 0, 0));
84890
85040
 
84891
- this .line = new Geometry_Line3 (hitPoint, direction .normalize ());
84892
- }
84893
- else
85041
+ this .line = new Geometry_Line3 (hitPoint, direction .normalize ());
85042
+ }
85043
+ else
85044
+ {
85045
+ this .planeSensor = true;
85046
+ this .plane = new Geometry_Plane3 (hitPoint, axisRotation .multVecRot (new Numbers_Vector3 (0, 0, 1)));
85047
+ }
85048
+
85049
+ if (this .planeSensor)
85050
+ {
85051
+ if (this .plane .intersectsLine (hitRay, this .startPoint))
84894
85052
  {
84895
- this .planeSensor = true;
84896
- this .plane = new Geometry_Plane3 (hitPoint, axisRotation .multVecRot (new Numbers_Vector3 (0, 0, 1)));
85053
+ this .trackStart (this .startPoint);
84897
85054
  }
84898
85055
 
84899
- if (this .planeSensor)
85056
+ // new Plane3 (new Vector3 (0, 0, 0), this .plane .normal) .intersectsLine (hitRay, trackPoint);
85057
+ }
85058
+ else
85059
+ {
85060
+ if (this .getLineTrackPoint (hit .pointer, this .line, this .startPoint))
84900
85061
  {
84901
- if (this .plane .intersectsLine (hitRay, this .startPoint))
85062
+ const trackPoint = new Numbers_Vector3 (0, 0, 0);
85063
+
85064
+ try
84902
85065
  {
84903
- this .trackStart (this .startPoint);
85066
+ this .getLineTrackPoint (hit .pointer, new Geometry_Line3 (this .line .direction, this .line .direction), trackPoint);
84904
85067
  }
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))
85068
+ catch
84911
85069
  {
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);
85070
+ trackPoint .assign (this .startPoint);
84924
85071
  }
85072
+
85073
+ this .trackStart (trackPoint);
84925
85074
  }
84926
85075
  }
84927
- else
84928
- {
84929
- if (this ._autoOffset .getValue ())
84930
- this ._offset = this ._translation_changed;
84931
- }
84932
85076
  },
84933
85077
  trackStart (trackPoint)
84934
85078
  {
@@ -84941,6 +85085,8 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84941
85085
  {
84942
85086
  try
84943
85087
  {
85088
+ this .motionHit = hit .copy ();
85089
+
84944
85090
  if (this .planeSensor)
84945
85091
  {
84946
85092
  const
@@ -84948,9 +85094,7 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84948
85094
  endPoint = new Numbers_Vector3 (0, 0, 0);
84949
85095
 
84950
85096
  if (this .plane .intersectsLine (hitRay, endPoint))
84951
- {
84952
85097
  this .track (endPoint, endPoint .copy ());
84953
- }
84954
85098
  else
84955
85099
  throw new Error ("Plane and line are parallel.");
84956
85100
  }
@@ -84960,11 +85104,11 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84960
85104
  endPoint = new Numbers_Vector3 (0, 0, 0),
84961
85105
  trackPoint = new Numbers_Vector3 (0, 0, 0);
84962
85106
 
84963
- if (this .getLineTrackPoint (hit, this .line, endPoint))
85107
+ if (this .getLineTrackPoint (hit .pointer, this .line, endPoint))
84964
85108
  {
84965
85109
  try
84966
85110
  {
84967
- this .getLineTrackPoint (hit, new Geometry_Line3 (Numbers_Vector3 .Zero, this .line .direction), trackPoint);
85111
+ this .getLineTrackPoint (hit .pointer, new Geometry_Line3 (Numbers_Vector3 .Zero, this .line .direction), trackPoint);
84968
85112
  }
84969
85113
  catch
84970
85114
  {
@@ -84974,7 +85118,9 @@ Object .assign (Object .setPrototypeOf (PlaneSensor .prototype, PointingDeviceSe
84974
85118
  this .track (endPoint, trackPoint);
84975
85119
  }
84976
85120
  else
85121
+ {
84977
85122
  throw new Error ("Lines are parallel.");
85123
+ }
84978
85124
  }
84979
85125
  }
84980
85126
  catch
@@ -86763,7 +86909,7 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86763
86909
  appearanceNode = renderContext .appearanceNode,
86764
86910
  linePropertiesNode = appearanceNode .getLineProperties (),
86765
86911
  shaderNode = appearanceNode .getShader (this, renderContext),
86766
- blendModeNode = appearanceNode .getBlendMode (),
86912
+ renderModeNodes = appearanceNode .getRenderModes (),
86767
86913
  attribNodes = this .getAttrib (),
86768
86914
  attribBuffers = this .getAttribBuffers ();
86769
86915
 
@@ -86871,7 +87017,8 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86871
87017
 
86872
87018
  // Render triangles.
86873
87019
 
86874
- blendModeNode ?.enable (gl);
87020
+ for (const node of renderModeNodes)
87021
+ node .enable (gl);
86875
87022
 
86876
87023
  // Setup shader.
86877
87024
 
@@ -86915,7 +87062,8 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86915
87062
  gl .enable (gl .CULL_FACE);
86916
87063
  gl .drawArrays (primitiveMode, 0, this .vertexCount * 3);
86917
87064
 
86918
- blendModeNode ?.disable (gl);
87065
+ for (const node of renderModeNodes)
87066
+ node .disable (gl);
86919
87067
 
86920
87068
  return;
86921
87069
  }
@@ -86923,7 +87071,8 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86923
87071
 
86924
87072
  const primitiveMode = browser .getPrimitiveMode (this .getPrimitiveMode ());
86925
87073
 
86926
- blendModeNode ?.enable (gl);
87074
+ for (const node of renderModeNodes)
87075
+ node .enable (gl);
86927
87076
 
86928
87077
  // Setup shader.
86929
87078
 
@@ -86956,7 +87105,8 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86956
87105
 
86957
87106
  gl .drawArrays (primitiveMode, 0, this .vertexCount);
86958
87107
 
86959
- blendModeNode ?.disable (gl);
87108
+ for (const node of renderModeNodes)
87109
+ node .disable (gl);
86960
87110
 
86961
87111
  gl .lineWidth (1);
86962
87112
  };
@@ -86964,15 +87114,16 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
86964
87114
  displayParticles (gl, renderContext, particleSystem)
86965
87115
  {
86966
87116
  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 ());
87117
+ browser = this .getBrowser (),
87118
+ appearanceNode = renderContext .appearanceNode,
87119
+ shaderNode = appearanceNode .getShader (this, renderContext),
87120
+ renderModeNodes = appearanceNode .getRenderModes (),
87121
+ attribNodes = this .getAttrib (),
87122
+ attribBuffers = this .getAttribBuffers (),
87123
+ primitiveMode = browser .getPrimitiveMode (this .getPrimitiveMode ());
86974
87124
 
86975
- blendModeNode ?.enable (gl);
87125
+ for (const node of renderModeNodes)
87126
+ node .enable (gl);
86976
87127
 
86977
87128
  // Setup shader.
86978
87129
 
@@ -87011,7 +87162,8 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
87011
87162
 
87012
87163
  gl .drawArraysInstanced (primitiveMode, 0, this .vertexCount, particleSystem .numParticles);
87013
87164
 
87014
- blendModeNode ?.disable (gl);
87165
+ for (const node of renderModeNodes)
87166
+ node .disable (gl);
87015
87167
 
87016
87168
  gl .lineWidth (1);
87017
87169
  },
@@ -88378,13 +88530,14 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
88378
88530
  display (gl, renderContext)
88379
88531
  {
88380
88532
  const
88381
- appearanceNode = renderContext .appearanceNode,
88382
- shaderNode = appearanceNode .getShader (this, renderContext),
88383
- blendModeNode = appearanceNode .getBlendMode (),
88384
- attribNodes = this .getAttrib (),
88385
- attribBuffers = this .getAttribBuffers ();
88533
+ appearanceNode = renderContext .appearanceNode,
88534
+ shaderNode = appearanceNode .getShader (this, renderContext),
88535
+ renderModeNodes = appearanceNode .getRenderModes (),
88536
+ attribNodes = this .getAttrib (),
88537
+ attribBuffers = this .getAttribBuffers ();
88386
88538
 
88387
- blendModeNode ?.enable (gl);
88539
+ for (const node of renderModeNodes)
88540
+ node .enable (gl);
88388
88541
 
88389
88542
  // Setup shader.
88390
88543
 
@@ -88415,18 +88568,20 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
88415
88568
 
88416
88569
  gl .drawArrays (this .primitiveMode, 0, this .vertexCount);
88417
88570
 
88418
- blendModeNode ?.disable (gl);
88571
+ for (const node of renderModeNodes)
88572
+ node .disable (gl);
88419
88573
  },
88420
88574
  displayParticles (gl, renderContext, particleSystem)
88421
88575
  {
88422
88576
  const
88423
- appearanceNode = renderContext .appearanceNode,
88424
- shaderNode = appearanceNode .getShader (this, renderContext),
88425
- blendModeNode = appearanceNode .getBlendMode (),
88426
- attribNodes = this .getAttrib (),
88427
- attribBuffers = this .getAttribBuffers ();
88577
+ appearanceNode = renderContext .appearanceNode,
88578
+ shaderNode = appearanceNode .getShader (this, renderContext),
88579
+ renderModeNodes = appearanceNode .getRenderModes (),
88580
+ attribNodes = this .getAttrib (),
88581
+ attribBuffers = this .getAttribBuffers ();
88428
88582
 
88429
- blendModeNode ?.enable (gl);
88583
+ for (const node of renderModeNodes)
88584
+ node .enable (gl);
88430
88585
 
88431
88586
  // Setup shader.
88432
88587
 
@@ -88465,7 +88620,8 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
88465
88620
 
88466
88621
  gl .drawArraysInstanced (this .primitiveMode, 0, this .vertexCount, particleSystem .numParticles);
88467
88622
 
88468
- blendModeNode ?.disable (gl);
88623
+ for (const node of renderModeNodes)
88624
+ node .disable (gl);
88469
88625
  },
88470
88626
  });
88471
88627
 
@@ -89362,7 +89518,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
89362
89518
  x_ite_Namespace .add ("X3DShaderNode", "x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
89363
89519
  /* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
89364
89520
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
89365
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(616);
89521
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(172);
89366
89522
  /*******************************************************************************
89367
89523
  *
89368
89524
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95003,7 +95159,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
95003
95159
  x_ite_Namespace .add ("ShaderCompiler", "x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
95004
95160
  /* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
95005
95161
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
95006
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(616);
95162
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(172);
95007
95163
  /*******************************************************************************
95008
95164
  *
95009
95165
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95660,7 +95816,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
95660
95816
  x_ite_Namespace .add ("X3DAppearanceNode", "x_ite/Components/Shape/X3DAppearanceNode", X3DAppearanceNode_default_);
95661
95817
  /* harmony default export */ const Shape_X3DAppearanceNode = (X3DAppearanceNode_default_);
95662
95818
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
95663
- /* provided dependency */ var Appearance_$ = __webpack_require__(616);
95819
+ /* provided dependency */ var Appearance_$ = __webpack_require__(172);
95664
95820
  /*******************************************************************************
95665
95821
  *
95666
95822
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95727,6 +95883,7 @@ function Appearance (executionContext)
95727
95883
  this .textureTransformMapping = new Map ();
95728
95884
  this .textureBits = new Utility_BitSet ();
95729
95885
  this .shaderNodes = [ ];
95886
+ this .renderModeNodes = [ ];
95730
95887
  }
95731
95888
 
95732
95889
  Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearanceNode .prototype),
@@ -95749,7 +95906,8 @@ Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearan
95749
95906
  this ._texture .addInterest ("set_texture__", this);
95750
95907
  this ._textureTransform .addInterest ("set_textureTransform__", this);
95751
95908
  this ._shaders .addInterest ("set_shaders__", this);
95752
- this ._blendMode .addInterest ("set_blendMode__", this);
95909
+ this ._blendMode .addInterest ("set_renderModes__", this);
95910
+ this ._depthMode .addInterest ("set_renderModes__", this);
95753
95911
 
95754
95912
  this ._alphaMode .addInterest ("set_transparent__", this);
95755
95913
  this ._fillProperties .addInterest ("set_transparent__", this);
@@ -95766,7 +95924,7 @@ Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearan
95766
95924
  this .set_texture__ ();
95767
95925
  this .set_textureTransform__ ();
95768
95926
  this .set_shaders__ ();
95769
- this .set_blendMode__ ();
95927
+ this .set_renderModes__ ();
95770
95928
  this .set_transparent__ ();
95771
95929
  },
95772
95930
  getAlphaMode ()
@@ -95830,9 +95988,13 @@ Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearan
95830
95988
  {
95831
95989
  return this .backMaterialNode .getShader (geometryContext, renderContext);
95832
95990
  },
95833
- getBlendMode ()
95991
+ getRenderModes ()
95992
+ {
95993
+ return this .renderModeNodes;
95994
+ },
95995
+ getDepthMode ()
95834
95996
  {
95835
- return this .blendModeNode;
95997
+ return this .depthModeNode;
95836
95998
  },
95837
95999
  set_contentScale__ ()
95838
96000
  {
@@ -96037,9 +96199,15 @@ Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearan
96037
96199
  }
96038
96200
  };
96039
96201
  })(),
96040
- set_blendMode__ ()
96202
+ set_renderModes__ ()
96041
96203
  {
96042
- this .blendModeNode = Base_X3DCast (Base_X3DConstants .BlendMode, this ._blendMode);
96204
+ this .renderModeNodes .length = 0;
96205
+
96206
+ this .blendModeNode = Base_X3DCast (Base_X3DConstants .BlendMode, this ._blendMode),
96207
+ this .depthModeNode = Base_X3DCast (Base_X3DConstants .DepthMode, this ._depthMode);
96208
+
96209
+ if (this .blendModeNode) this .renderModeNodes .push (this .blendModeNode);
96210
+ if (this .depthModeNode) this .renderModeNodes .push (this .depthModeNode);
96043
96211
  },
96044
96212
  set_transparent__ ()
96045
96213
  {
@@ -96093,6 +96261,7 @@ Object .defineProperties (Appearance,
96093
96261
  new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "textureTransform", new x_ite_Fields .SFNode ()),
96094
96262
  new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "shaders", new x_ite_Fields .MFNode ()),
96095
96263
  new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "blendMode", new x_ite_Fields .SFNode ()),
96264
+ new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "depthMode", new x_ite_Fields .SFNode ()),
96096
96265
  ]),
96097
96266
  enumerable: true,
96098
96267
  },
@@ -99065,7 +99234,7 @@ const Components_Shape_default_ = {
99065
99234
  x_ite_Namespace .add ("Shape", "x_ite/Components/Shape", Components_Shape_default_);
99066
99235
  /* harmony default export */ const Components_Shape = (Components_Shape_default_);
99067
99236
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundProcessingNode.js
99068
- /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(616);
99237
+ /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(172);
99069
99238
  /*******************************************************************************
99070
99239
  *
99071
99240
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99705,7 +99874,7 @@ const X3DSoundSourceNode_default_ = X3DSoundSourceNode;
99705
99874
  x_ite_Namespace .add ("X3DSoundSourceNode", "x_ite/Components/Sound/X3DSoundSourceNode", X3DSoundSourceNode_default_);
99706
99875
  /* harmony default export */ const Sound_X3DSoundSourceNode = (X3DSoundSourceNode_default_);
99707
99876
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/AudioClip.js
99708
- /* provided dependency */ var AudioClip_$ = __webpack_require__(616);
99877
+ /* provided dependency */ var AudioClip_$ = __webpack_require__(172);
99709
99878
  /*******************************************************************************
99710
99879
  *
99711
99880
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -100007,7 +100176,7 @@ const X3DSoundNode_default_ = X3DSoundNode;
100007
100176
  x_ite_Namespace .add ("X3DSoundNode", "x_ite/Components/Sound/X3DSoundNode", X3DSoundNode_default_);
100008
100177
  /* harmony default export */ const Sound_X3DSoundNode = (X3DSoundNode_default_);
100009
100178
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundDestinationNode.js
100010
- /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(616);
100179
+ /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(172);
100011
100180
  /*******************************************************************************
100012
100181
  *
100013
100182
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -101657,7 +101826,7 @@ const ListenerPointSource_default_ = ListenerPointSource;
101657
101826
  x_ite_Namespace .add ("ListenerPointSource", "x_ite/Components/Sound/ListenerPointSource", ListenerPointSource_default_);
101658
101827
  /* harmony default export */ const Sound_ListenerPointSource = (ListenerPointSource_default_);
101659
101828
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/MicrophoneSource.js
101660
- /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(616);
101829
+ /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(172);
101661
101830
  /*******************************************************************************
101662
101831
  *
101663
101832
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -103326,8 +103495,8 @@ const GifMedia_default_ = GifMedia;
103326
103495
  x_ite_Namespace .add ("GifMedia", "x_ite/Browser/Texturing/GifMedia", GifMedia_default_);
103327
103496
  /* harmony default export */ const Texturing_GifMedia = (GifMedia_default_);
103328
103497
  ;// 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);
103498
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(172);
103499
+ /* provided dependency */ var SuperGif = __webpack_require__(235);
103331
103500
  /*******************************************************************************
103332
103501
  *
103333
103502
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -106605,7 +106774,7 @@ const gettext_default_ = gettext;
106605
106774
  x_ite_Namespace .add ("gettext", "locale/gettext", gettext_default_);
106606
106775
  /* harmony default export */ const locale_gettext = (gettext_default_);
106607
106776
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
106608
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(616);
106777
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(172);
106609
106778
  /*******************************************************************************
106610
106779
  *
106611
106780
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107035,7 +107204,7 @@ const TextureQuality_default_ = TextureQuality;
107035
107204
  x_ite_Namespace .add ("TextureQuality", "x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
107036
107205
  /* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
107037
107206
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
107038
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(616);
107207
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(172);
107039
107208
  /*******************************************************************************
107040
107209
  *
107041
107210
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107625,7 +107794,7 @@ const RenderingProperties_default_ = RenderingProperties;
107625
107794
  x_ite_Namespace .add ("RenderingProperties", "x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
107626
107795
  /* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
107627
107796
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
107628
- /* provided dependency */ var Notification_$ = __webpack_require__(616);
107797
+ /* provided dependency */ var Notification_$ = __webpack_require__(172);
107629
107798
  /*******************************************************************************
107630
107799
  *
107631
107800
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107748,8 +107917,8 @@ const Notification_default_ = Notification;
107748
107917
  x_ite_Namespace .add ("Notification", "x_ite/Browser/Core/Notification", Notification_default_);
107749
107918
  /* harmony default export */ const Core_Notification = (Notification_default_);
107750
107919
  ;// 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);
107920
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(91);
107921
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(172);
107753
107922
  /*******************************************************************************
107754
107923
  *
107755
107924
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109507,12 +109676,12 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
109507
109676
  throw new Error ("Couldn't add metadata: name is empty.");
109508
109677
 
109509
109678
  if (!Array .isArray (values))
109510
- values = [String (values)];
109679
+ values = [values];
109511
109680
 
109512
109681
  if (!values .length)
109513
109682
  throw new Error ("Couldn't add metadata: values length is 0.");
109514
109683
 
109515
- this [_metadata] .set (name, values .map (value => String (value)));
109684
+ this [_metadata] .set (name, values .map (String));
109516
109685
 
109517
109686
  this ._metadata_changed = this .getBrowser () .getCurrentTime ();
109518
109687
  },
@@ -110500,7 +110669,7 @@ const DataStorage_default_ = DataStorage;
110500
110669
  x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage_default_);
110501
110670
  /* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
110502
110671
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
110503
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(616);
110672
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(172);
110504
110673
  /*******************************************************************************
110505
110674
  *
110506
110675
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -112565,8 +112734,8 @@ const X3DViewer_default_ = X3DViewer;
112565
112734
  x_ite_Namespace .add ("X3DViewer", "x_ite/Browser/Navigation/X3DViewer", X3DViewer_default_);
112566
112735
  /* harmony default export */ const Navigation_X3DViewer = (X3DViewer_default_);
112567
112736
  ;// 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);
112737
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(57);
112738
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(172);
112570
112739
  /*******************************************************************************
112571
112740
  *
112572
112741
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -113438,8 +113607,8 @@ const ExamineViewer_default_ = ExamineViewer;
113438
113607
  x_ite_Namespace .add ("ExamineViewer", "x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
113439
113608
  /* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
113440
113609
  ;// 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);
113610
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(57);
113611
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(172);
113443
113612
  /*******************************************************************************
113444
113613
  *
113445
113614
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114448,8 +114617,8 @@ const FlyViewer_default_ = FlyViewer;
114448
114617
  x_ite_Namespace .add ("FlyViewer", "x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
114449
114618
  /* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
114450
114619
  ;// 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);
114620
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(57);
114621
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(172);
114453
114622
  /*******************************************************************************
114454
114623
  *
114455
114624
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114780,8 +114949,8 @@ const NoneViewer_default_ = NoneViewer;
114780
114949
  x_ite_Namespace .add ("NoneViewer", "x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
114781
114950
  /* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
114782
114951
  ;// 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);
114952
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(57);
114953
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(172);
114785
114954
  /*******************************************************************************
114786
114955
  *
114787
114956
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -115920,8 +116089,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
115920
116089
  x_ite_Namespace .add ("X3DPickingContext", "x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
115921
116090
  /* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
115922
116091
  ;// 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);
116092
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(57);
116093
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(172);
115925
116094
  /*******************************************************************************
115926
116095
  *
115927
116096
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116478,6 +116647,22 @@ function X3DPointingDeviceSensorContext ()
116478
116647
  texCoord: new Numbers_Vector4 (0, 0, 0, 0),
116479
116648
  layerNode: null,
116480
116649
  shapeNode: null,
116650
+ copy ()
116651
+ {
116652
+ return {
116653
+ id: this .id,
116654
+ pointer: this .pointer .copy (),
116655
+ hitRay: this .hitRay .copy (),
116656
+ sensors: this .sensors .slice (),
116657
+ modelViewMatrix: this .modelViewMatrix .copy (),
116658
+ point: this .point .copy (),
116659
+ normal: this .normal .copy (),
116660
+ texCoord: this .texCoord .copy (),
116661
+ layerNode: this .layerNode,
116662
+ shapeNode: this .shapeNode,
116663
+ copy: this .copy,
116664
+ };
116665
+ },
116481
116666
  };
116482
116667
  }
116483
116668
 
@@ -117184,7 +117369,7 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
117184
117369
  x_ite_Namespace .add ("MultiSampleFrameBuffer", "x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
117185
117370
  /* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
117186
117371
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
117187
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(616);
117372
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(172);
117188
117373
  /*******************************************************************************
117189
117374
  *
117190
117375
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118087,7 +118272,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
118087
118272
  x_ite_Namespace .add ("X3DSoundContext", "x_ite/Browser/Sound/X3DSoundContext", X3DSoundContext_default_);
118088
118273
  /* harmony default export */ const Sound_X3DSoundContext = (X3DSoundContext_default_);
118089
118274
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
118090
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(616);
118275
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(172);
118091
118276
  const KTXDecoder_default_ = class KTXDecoder
118092
118277
  {
118093
118278
  constructor (gl, externalKtxlib, scriptDir)
@@ -119640,7 +119825,7 @@ const Components_default_ = Components;
119640
119825
  x_ite_Namespace .add ("Components", "x_ite/Components", Components_default_);
119641
119826
  /* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
119642
119827
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
119643
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(616);
119828
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(172);
119644
119829
  /*******************************************************************************
119645
119830
  * MIT License
119646
119831
  *
@@ -120779,7 +120964,7 @@ const SupportedProfiles_default_ = SupportedProfiles;
120779
120964
  x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
120780
120965
  /* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
120781
120966
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
120782
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(616);
120967
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(172);
120783
120968
  /*******************************************************************************
120784
120969
  *
120785
120970
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -121860,7 +122045,7 @@ const X3DBrowser_default_ = X3DBrowser;
121860
122045
  x_ite_Namespace .add ("X3DBrowser", "x_ite/Browser/X3DBrowser", X3DBrowser_default_);
121861
122046
  /* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
121862
122047
  ;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
121863
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(616);
122048
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(172);
121864
122049
  /*******************************************************************************
121865
122050
  *
121866
122051
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -121992,8 +122177,8 @@ const X3DCanvasElement_default_ = X3DCanvasElement;
121992
122177
  x_ite_Namespace .add ("X3DCanvasElement", "x_ite/X3DCanvasElement", X3DCanvasElement_default_);
121993
122178
  /* harmony default export */ const x_ite_X3DCanvasElement = (X3DCanvasElement_default_);
121994
122179
  ;// CONCATENATED MODULE: ./src/lib/jquery.js
121995
- /* provided dependency */ var jquery_$ = __webpack_require__(616);
121996
- /* provided dependency */ var pako = __webpack_require__(182);
122180
+ /* provided dependency */ var jquery_$ = __webpack_require__(172);
122181
+ /* provided dependency */ var pako = __webpack_require__(834);
121997
122182
  Object .assign (jquery_$,
121998
122183
  {
121999
122184
  decodeText (input)
@@ -122070,14 +122255,14 @@ const jquery_default_ = jquery_$;
122070
122255
  x_ite_Namespace .add ("jquery", "lib/jquery", jquery_default_);
122071
122256
  /* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
122072
122257
  ;// CONCATENATED MODULE: ./src/lib/libtess.js
122073
- /* provided dependency */ var libtess_libtess = __webpack_require__(237);
122258
+ /* provided dependency */ var libtess_libtess = __webpack_require__(715);
122074
122259
  const libtess_default_ = libtess_libtess;
122075
122260
  ;
122076
122261
 
122077
122262
  x_ite_Namespace .add ("libtess", "lib/libtess", libtess_default_);
122078
122263
  /* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
122079
122264
  ;// CONCATENATED MODULE: ./src/x_ite/X3D.js
122080
- /* provided dependency */ var X3D_$ = __webpack_require__(616);
122265
+ /* provided dependency */ var X3D_$ = __webpack_require__(172);
122081
122266
  /*******************************************************************************
122082
122267
  *
122083
122268
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122471,7 +122656,7 @@ x_ite_Namespace .add ("shim", "shim", shim_default_);
122471
122656
 
122472
122657
  // Assign X3D to global namespace.
122473
122658
 
122474
- window [Symbol .for ("X_ITE.X3D-9.0.3")] = x_ite_X3D;
122659
+ window [Symbol .for ("X_ITE.X3D-9.1.0")] = x_ite_X3D;
122475
122660
 
122476
122661
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
122477
122662