x_ite 8.12.4 → 9.0.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 (54) hide show
  1. package/README.md +4 -0
  2. package/dist/assets/components/Annotation.js +13 -13
  3. package/dist/assets/components/Annotation.min.js +1 -1
  4. package/dist/assets/components/CADGeometry.js +14 -14
  5. package/dist/assets/components/CADGeometry.min.js +1 -1
  6. package/dist/assets/components/CubeMapTexturing.js +359 -117
  7. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  8. package/dist/assets/components/DIS.js +13 -13
  9. package/dist/assets/components/DIS.min.js +1 -1
  10. package/dist/assets/components/EventUtilities.js +9 -9
  11. package/dist/assets/components/EventUtilities.min.js +1 -1
  12. package/dist/assets/components/Geometry2D.js +28 -26
  13. package/dist/assets/components/Geometry2D.min.js +1 -1
  14. package/dist/assets/components/Geospatial.js +33 -33
  15. package/dist/assets/components/Geospatial.min.js +1 -1
  16. package/dist/assets/components/HAnim.js +23 -23
  17. package/dist/assets/components/HAnim.min.js +1 -1
  18. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  19. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  20. package/dist/assets/components/Layout.js +33 -31
  21. package/dist/assets/components/Layout.min.js +1 -1
  22. package/dist/assets/components/NURBS.js +24 -24
  23. package/dist/assets/components/NURBS.min.js +1 -1
  24. package/dist/assets/components/ParticleSystems.js +35 -49
  25. package/dist/assets/components/ParticleSystems.min.js +1 -1
  26. package/dist/assets/components/Picking.js +18 -18
  27. package/dist/assets/components/Picking.min.js +1 -1
  28. package/dist/assets/components/RigidBodyPhysics.js +17 -17
  29. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  30. package/dist/assets/components/Scripting.js +39 -39
  31. package/dist/assets/components/Scripting.min.js +1 -1
  32. package/dist/assets/components/Text.js +27 -27
  33. package/dist/assets/components/Text.min.js +1 -1
  34. package/dist/assets/components/{TextureProjector.js → TextureProjection.js} +243 -193
  35. package/dist/assets/components/TextureProjection.min.js +1 -0
  36. package/dist/assets/components/Texturing3D.js +175 -136
  37. package/dist/assets/components/Texturing3D.min.js +1 -1
  38. package/dist/assets/components/VolumeRendering.js +46 -47
  39. package/dist/assets/components/VolumeRendering.min.js +1 -1
  40. package/dist/assets/components/X_ITE.js +9 -9
  41. package/dist/assets/components/X_ITE.min.js +1 -1
  42. package/dist/assets/lib/README.md +16 -0
  43. package/dist/assets/lib/draco_decoder_gltf.js +1 -29
  44. package/dist/assets/lib/libktx.js +1 -0
  45. package/dist/assets/lib/libktx.wasm +0 -0
  46. package/dist/assets/lib/lut_ggx.png +0 -0
  47. package/dist/x_ite.css +1 -1
  48. package/dist/x_ite.js +3060 -2485
  49. package/dist/x_ite.min.js +1 -1
  50. package/dist/x_ite.min.mjs +1 -1
  51. package/dist/x_ite.mjs +3060 -2484
  52. package/dist/x_ite.zip +0 -0
  53. package/package.json +3 -3
  54. package/dist/assets/components/TextureProjector.min.js +0 -1
@@ -1,4 +1,4 @@
1
- /* X_ITE v8.12.4 */(() => { // webpackBootstrap
1
+ /* X_ITE v9.0.0 */(() => { // webpackBootstrap
2
2
  /******/ "use strict";
3
3
  /******/ // The require scope
4
4
  /******/ var __webpack_require__ = {};
@@ -39,25 +39,25 @@ var __webpack_exports__ = {};
39
39
  // UNUSED EXPORTS: default
40
40
 
41
41
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
42
- const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components");
42
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components");
43
43
  var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
44
44
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
45
- const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Fields");
45
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Fields");
46
46
  var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
47
47
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
48
- const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Base/X3DFieldDefinition");
48
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Base/X3DFieldDefinition");
49
49
  var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
50
50
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
51
- const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Base/FieldDefinitionArray");
51
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Base/FieldDefinitionArray");
52
52
  var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
53
53
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DGeometricPropertyNode\")"
54
- const X3DGeometricPropertyNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Rendering/X3DGeometricPropertyNode");
54
+ const X3DGeometricPropertyNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Rendering/X3DGeometricPropertyNode");
55
55
  var X3DGeometricPropertyNode_default = /*#__PURE__*/__webpack_require__.n(X3DGeometricPropertyNode_namespaceObject);
56
56
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
57
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Base/X3DConstants");
57
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Base/X3DConstants");
58
58
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
59
59
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
60
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Namespace");
60
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Namespace");
61
61
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
62
62
  ;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimDisplacer.js
63
63
  /*******************************************************************************
@@ -166,28 +166,28 @@ const __default__ = HAnimDisplacer;
166
166
  Namespace_default().add ("HAnimDisplacer", "x_ite/Components/HAnim/HAnimDisplacer", __default__);
167
167
  /* harmony default export */ const HAnim_HAnimDisplacer = (__default__);
168
168
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
169
- const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Core/X3DChildNode");
169
+ const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Core/X3DChildNode");
170
170
  var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
171
171
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/Group\")"
172
- const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Grouping/Group");
172
+ const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Grouping/Group");
173
173
  var Group_default = /*#__PURE__*/__webpack_require__.n(Group_namespaceObject);
174
174
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/Transform\")"
175
- const Transform_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Grouping/Transform");
175
+ const Transform_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Grouping/Transform");
176
176
  var Transform_default = /*#__PURE__*/__webpack_require__.n(Transform_namespaceObject);
177
177
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
178
- const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
178
+ const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
179
179
  var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
180
180
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
181
- const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Rendering/TraverseType");
181
+ const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Rendering/TraverseType");
182
182
  var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
183
183
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
184
- const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Base/X3DCast");
184
+ const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Base/X3DCast");
185
185
  var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
186
186
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
187
- const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("standard/Math/Numbers/Matrix4");
187
+ const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Math/Numbers/Matrix4");
188
188
  var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
189
189
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithm\")"
190
- const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("standard/Math/Algorithm");
190
+ const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Math/Algorithm");
191
191
  var Algorithm_default = /*#__PURE__*/__webpack_require__.n(Algorithm_namespaceObject);
192
192
  ;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimHumanoid.js
193
193
  /*******************************************************************************
@@ -842,10 +842,10 @@ const HAnimHumanoid_default_ = HAnimHumanoid;
842
842
  Namespace_default().add ("HAnimHumanoid", "x_ite/Components/HAnim/HAnimHumanoid", HAnimHumanoid_default_);
843
843
  /* harmony default export */ const HAnim_HAnimHumanoid = (HAnimHumanoid_default_);
844
844
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DTransformNode\")"
845
- const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Grouping/X3DTransformNode");
845
+ const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Grouping/X3DTransformNode");
846
846
  var X3DTransformNode_default = /*#__PURE__*/__webpack_require__.n(X3DTransformNode_namespaceObject);
847
847
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
848
- const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("standard/Math/Numbers/Vector3");
848
+ const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Math/Numbers/Vector3");
849
849
  var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
850
850
  ;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimJoint.js
851
851
  /*******************************************************************************
@@ -1051,16 +1051,16 @@ const HAnimJoint_default_ = HAnimJoint;
1051
1051
  Namespace_default().add ("HAnimJoint", "x_ite/Components/HAnim/HAnimJoint", HAnimJoint_default_);
1052
1052
  /* harmony default export */ const HAnim_HAnimJoint = (HAnimJoint_default_);
1053
1053
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Time/TimeSensor\")"
1054
- const TimeSensor_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Time/TimeSensor");
1054
+ const TimeSensor_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Time/TimeSensor");
1055
1055
  var TimeSensor_default = /*#__PURE__*/__webpack_require__.n(TimeSensor_namespaceObject);
1056
1056
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Interpolation/PositionInterpolator\")"
1057
- const PositionInterpolator_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Interpolation/PositionInterpolator");
1057
+ const PositionInterpolator_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Interpolation/PositionInterpolator");
1058
1058
  var PositionInterpolator_default = /*#__PURE__*/__webpack_require__.n(PositionInterpolator_namespaceObject);
1059
1059
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Interpolation/OrientationInterpolator\")"
1060
- const OrientationInterpolator_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Interpolation/OrientationInterpolator");
1060
+ const OrientationInterpolator_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Interpolation/OrientationInterpolator");
1061
1061
  var OrientationInterpolator_default = /*#__PURE__*/__webpack_require__.n(OrientationInterpolator_namespaceObject);
1062
1062
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
1063
- const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("standard/Math/Numbers/Rotation4");
1063
+ const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Math/Numbers/Rotation4");
1064
1064
  var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
1065
1065
  ;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimMotion.js
1066
1066
  /*******************************************************************************
@@ -1502,7 +1502,7 @@ const HAnimMotion_default_ = HAnimMotion;
1502
1502
  Namespace_default().add ("HAnimMotion", "x_ite/Components/HAnim/HAnimMotion", HAnimMotion_default_);
1503
1503
  /* harmony default export */ const HAnim_HAnimMotion = (HAnimMotion_default_);
1504
1504
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
1505
- const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
1505
+ const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
1506
1506
  var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
1507
1507
  ;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimSegment.js
1508
1508
  /*******************************************************************************
@@ -1 +1 @@
1
- /* X_ITE v8.12.4 */(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Fields");var s=e.n(i);const o=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(o);const a=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Base/FieldDefinitionArray");var d=e.n(a);const l=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var u=e.n(l);const p=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Base/X3DConstants");var h=e.n(p);const c=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Namespace");var _=e.n(c);function m(e){u().call(this,e),this.addType(h().HAnimDisplacer),this._displacements.setUnit("length")}Object.setPrototypeOf(m.prototype,u().prototype),Object.defineProperties(m,{typeName:{value:"HAnimDisplacer",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"displacers",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(h().inputOutput,"metadata",new(s().SFNode)),new(r())(h().inputOutput,"description",new(s().SFString)),new(r())(h().inputOutput,"name",new(s().SFString)),new(r())(h().inputOutput,"weight",new(s().SFFloat)),new(r())(h().inputOutput,"coordIndex",new(s().MFInt32)),new(r())(h().inputOutput,"displacements",new(s().MFVec3f))]),enumerable:!0}});const w=m;_().add("HAnimDisplacer","x_ite/Components/HAnim/HAnimDisplacer",w);const f=w,g=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Components/Core/X3DChildNode");var F=e.n(g);const I=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Components/Grouping/Group");var x=e.n(I);const b=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Components/Grouping/Transform");var T=e.n(b);const S=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Components/Grouping/X3DBoundedObject");var O=e.n(S);const v=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Rendering/TraverseType");var N=e.n(v);const y=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Base/X3DCast");var E=e.n(y);const M=window[Symbol.for("X_ITE.X3D-8.12.4")].require("standard/Math/Numbers/Matrix4");var D=e.n(M);const j=window[Symbol.for("X_ITE.X3D-8.12.4")].require("standard/Math/Algorithm");var C=e.n(j);function A(e){F().call(this,e),O().call(this,e),this.addType(h().HAnimHumanoid),this.addChildObjects(h().inputOutput,"jointTextures",new(s().SFTime),h().inputOutput,"displacementsTexture",new(s().SFTime),h().inputOutput,"displacementWeightsTexture",new(s().SFTime)),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),this.skeletonNode=new(x())(e),this.viewpointsNode=new(x())(e),this.skinNode=new(x())(e),this.transformNode=new(T())(e),this.motionNodes=[],this.jointNodes=[],this.jointBindingMatrices=[],this.displacementWeights=[],this.numJoints=0,this.numDisplacements=0,this.skinCoordNode=null,this.change=new X,this.skinning=Function.prototype}Object.assign(Object.setPrototypeOf(A.prototype,F().prototype),O().prototype,{initialize(){F().prototype.initialize.call(this),O().prototype.initialize.call(this),this.skeletonNode.setAllowedTypes(h().HAnimJoint,h().HAnimSite),this.viewpointsNode.setAllowedTypes(h().HAnimSite),this._skeleton.addFieldInterest(this.skeletonNode._children),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skin.addFieldInterest(this.skinNode._children),this.skeletonNode._children=this._skeleton,this.viewpointsNode._children=this._viewpoints,this.skinNode._children=this._skin,this.skeletonNode.setPrivate(!0),this.viewpointsNode.setPrivate(!0),this.skinNode.setPrivate(!0),this._translation.addFieldInterest(this.transformNode._translation),this._rotation.addFieldInterest(this.transformNode._rotation),this._scale.addFieldInterest(this.transformNode._scale),this._scaleOrientation.addFieldInterest(this.transformNode._scaleOrientation),this._center.addFieldInterest(this.transformNode._center),this._bboxDisplay.addFieldInterest(this.transformNode._bboxDisplay),this._bboxSize.addFieldInterest(this.transformNode._bboxSize),this._bboxCenter.addFieldInterest(this.transformNode._bboxCenter),this.transformNode._translation=this._translation,this.transformNode._rotation=this._rotation,this.transformNode._scale=this._scale,this.transformNode._scaleOrientation=this._scaleOrientation,this.transformNode._center=this._center,this.transformNode._bboxDisplay=this._bboxDisplay,this.transformNode._bboxSize=this._bboxSize,this.transformNode._bboxCenter=this._bboxCenter,this.transformNode._children=[this.skeletonNode,this.viewpointsNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.skeletonNode.setup(),this.viewpointsNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.isCameraObject()),this.setPickableObject(this.transformNode.isPickableObject());const e=this.getBrowser().getContext();if(1!==e.getVersion()){this.skinNode.traverse=function(e,t,n){n.getHumanoids().push(e),x().prototype.traverse.call(this,t,n),n.getHumanoids().pop()}.bind(this.skinNode,this),this.jointsTexture=e.createTexture(),this.displacementsTexture=e.createTexture(),this.jointMatricesTexture=e.createTexture();for(const t of[this.jointsTexture,this.displacementsTexture,this.jointMatricesTexture])e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR);this._motionsEnabled.addInterest("set_motions__",this),this._motions.addInterest("set_motions__",this),this._jointBindingPositions.addInterest("set_joints__",this),this._jointBindingRotations.addInterest("set_joints__",this),this._jointBindingScales.addInterest("set_joints__",this),this._joints.addInterest("set_joints__",this),this._jointTextures.addInterest("set_jointTextures__",this),this._displacementsTexture.addInterest("set_displacementsTexture__",this),this._displacementWeightsTexture.addInterest("set_displacementWeightsTexture__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_motions__(),this.set_joints__(),this.set_skinCoord__()}},getBBox(e,t){return this.transformNode.getBBox(e,t)},getMatrix(){return this.transformNode.getMatrix()},getHumanoidKey(){return this.numJoints+"."+this.numDisplacements},getNumJoints(){return this.numJoints},getNumDisplacements(){return this.numDisplacements},set_motions__(){const e=this._motionsEnabled,t=this.motionNodes;for(const e of t)e.setJoints([]);t.length=0;for(const[n,i]of this._motions.entries()){if(n<e.length&&!e[n])continue;const s=E()(h().HAnimMotion,i);s&&t.push(s)}for(const e of t)e.setJoints(this.jointNodes)},set_joints__(){const e=this.jointNodes,t=this.jointBindingMatrices,n=this._jointBindingPositions,i=this._jointBindingRotations,s=this._jointBindingScales;for(const t of e)t.removeInterest("enable",this.change),t._skinCoordIndex.removeInterest("addEvent",this._jointTextures),t._skinCoordWeight.removeInterest("addEvent",this._jointTextures),t._displacements.removeInterest("addEvent",this._displacementsTexture),t._displacementWeights.removeInterest("addEvent",this._displacementWeightsTexture);e.length=0,t.length=0;for(const[o,r]of this._joints.entries()){const a=E()(h().HAnimJoint,r);if(!a)continue;const d=new(D());n.length&&d.translate(n[Math.min(o,n.length-1)].getValue()),i.length&&d.rotate(i[Math.min(o,i.length-1)].getValue()),s.length&&d.scale(s[Math.min(o,s.length-1)].getValue()),e.push(a),t.push(d)}for(const t of e)t.addInterest("enable",this.change),t._skinCoordIndex.addInterest("addEvent",this._jointTextures),t._skinCoordWeight.addInterest("addEvent",this._jointTextures),t._displacements.addInterest("addEvent",this._displacementsTexture),t._displacementWeights.addInterest("addEvent",this._displacementWeightsTexture);const o=Math.ceil(Math.sqrt(8*e.length));this.jointMatricesArray=new Float32Array(o*o*4),this._jointTextures.addEvent(),this._displacementsTexture.addEvent(),this._displacementWeightsTexture.addEvent();for(const t of this.motionNodes)t.setJoints(e)},set_jointTextures__(){const e=this.skinCoordNode?._point.length||1,t=Array.from({length:e},(()=>[])),n=Array.from({length:e},(()=>[]));for(const[e,i]of this.jointNodes.entries()){const s=i._skinCoordWeight.getValue();for(const[o,r]of i._skinCoordIndex.entries()){const i=s[o];0!==i&&(t[r]?.push(e),n[r]?.push(i))}}const i=C().roundToMultiple(t.reduce(((e,t)=>Math.max(e,t.length)),0),4),s=2*i,o=Math.ceil(Math.sqrt(e*s))||1,r=new Float32Array(o*o*4);for(let o=0;o<e;++o)r.set(t[o],o*s),r.set(n[o],o*s+i);this.numJoints=i;const a=this.getBrowser().getContext();a.bindTexture(a.TEXTURE_2D,this.jointsTexture),a.texImage2D(a.TEXTURE_2D,0,a.RGBA32F,o,o,0,a.RGBA,a.FLOAT,r),this.change.enable()},set_displacementsTexture__(){const e=this.skinCoordNode?._point.length||1,t=Array.from({length:e},(()=>[]));for(const[e,n]of this.jointNodes.entries())for(const i of n.getDisplacers()){const n=i._displacements;for(const[s,o]of i._coordIndex.entries())t[o]?.push(...n[s],e)}const n=t.reduce(((e,t)=>Math.max(e,t.length)),0)/4,i=4*n,s=C().roundToMultiple(Math.ceil(Math.sqrt(e*n*2))||1,2),o=new Float32Array(s*s*4);for(let n=0;n<e;++n)o.set(t[n],n*i);this.numDisplacements=n;const r=this.getBrowser().getContext();r.bindTexture(r.TEXTURE_2D,this.displacementsTexture),r.texImage2D(r.TEXTURE_2D,0,r.RGBA32F,s,s,0,r.RGBA,r.FLOAT,o);const a=this.displacementWeights;for(let t=a.length;t<e;++t)a[t]=[];a.length=e,this.displacementWeightsArray=new Float32Array(s*s*2),this.change.enable()},set_displacementWeightsTexture__(){const e=this.skinCoordNode?._point.length||1,t=this.displacementWeights;for(const e of t)e.length=0;for(const e of this.jointNodes)for(const n of e.getDisplacers()){const e=n._weight;for(const i of n._coordIndex)t[i]?.push(e,0,0,0)}const n=this.numDisplacements,i=4*n,s=C().roundToMultiple(Math.ceil(Math.sqrt(e*n*2))||1,2),o=this.displacementWeightsArray;for(let n=0;n<e;++n)o.set(t[n],n*i);const r=this.getBrowser().getContext();r.bindTexture(r.TEXTURE_2D,this.displacementsTexture),r.texSubImage2D(r.TEXTURE_2D,0,0,s/2,s,s/2,r.RGBA,r.FLOAT,o),this.change.enable()},set_skinCoord__(){this.skinCoordNode&&(this.skinCoordNode.removeInterest("addEvent",this._jointTextures),this.skinCoordNode.removeInterest("addEvent",this._displacementsTexture),this.skinCoordNode.removeInterest("addEvent",this._displacementWeightsTexture)),this.skinCoordNode=E()(h().X3DCoordinateNode,this._skinCoord),this.skinCoordNode?(delete this.skinning,this.skinCoordNode.addInterest("addEvent",this._jointTextures),this.skinCoordNode.addInterest("addEvent",this._displacementsTexture),this.skinCoordNode.addInterest("addEvent",this._displacementWeightsTexture)):this.skinning=Function.prototype,this._jointTextures.addEvent(),this._displacementsTexture.addEvent(),this._displacementWeightsTexture.addEvent()},traverse(e,t){this.transformNode.traverse(e,t),this.skinning(e,t)},skinning:(()=>{const e=new(D());return function(t,n){if(t!==N().DISPLAY||this.change.lock())return;e.assign(this.transformNode.getMatrix()).multRight(n.getModelViewMatrix().get()).inverse();const i=this.jointNodes,s=i.length,o=this.jointBindingMatrices,r=this.jointMatricesArray,a=Math.ceil(Math.sqrt(8*s));for(let t=0;t<s;++t){const n=i[t],s=o[t],a=n.getModelViewMatrix().multRight(e).multLeft(s),d=a.submatrix.transpose().inverse();r.set(a,32*t+0),r.set(d,32*t+16)}const d=this.getBrowser().getContext();d.bindTexture(d.TEXTURE_2D,this.jointMatricesTexture),d.texImage2D(d.TEXTURE_2D,0,d.RGBA32F,a,a,0,d.RGBA,d.FLOAT,r)}})(),setShaderUniforms(e,t){const n=this.getBrowser().getTexture2DUnit(),i=this.getBrowser().getTexture2DUnit(),s=this.getBrowser().getTexture2DUnit();e.activeTexture(e.TEXTURE0+n),e.bindTexture(e.TEXTURE_2D,this.jointsTexture),e.uniform1i(t.x3d_JointsTexture,n),e.activeTexture(e.TEXTURE0+i),e.bindTexture(e.TEXTURE_2D,this.displacementsTexture),e.uniform1i(t.x3d_DisplacementsTexture,i),e.activeTexture(e.TEXTURE0+s),e.bindTexture(e.TEXTURE_2D,this.jointMatricesTexture),e.uniform1i(t.x3d_JointMatricesTexture,s)},dispose(){O().prototype.dispose.call(this),F().prototype.dispose.call(this)}}),Object.defineProperties(A,{typeName:{value:"HAnimHumanoid",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(h().inputOutput,"metadata",new(s().SFNode)),new(r())(h().inputOutput,"version",new(s().SFString)),new(r())(h().inputOutput,"description",new(s().SFString)),new(r())(h().inputOutput,"name",new(s().SFString)),new(r())(h().inputOutput,"info",new(s().MFString)),new(r())(h().inputOutput,"skeletalConfiguration",new(s().SFString)("BASIC")),new(r())(h().inputOutput,"loa",new(s().SFInt32)(-1)),new(r())(h().inputOutput,"translation",new(s().SFVec3f)),new(r())(h().inputOutput,"rotation",new(s().SFRotation)),new(r())(h().inputOutput,"scale",new(s().SFVec3f)(1,1,1)),new(r())(h().inputOutput,"scaleOrientation",new(s().SFRotation)),new(r())(h().inputOutput,"center",new(s().SFVec3f)),new(r())(h().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(h().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(h().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(h().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(h().inputOutput,"skeleton",new(s().MFNode)),new(r())(h().inputOutput,"viewpoints",new(s().MFNode)),new(r())(h().inputOutput,"sites",new(s().MFNode)),new(r())(h().inputOutput,"segments",new(s().MFNode)),new(r())(h().inputOutput,"motionsEnabled",new(s().MFBool)),new(r())(h().inputOutput,"motions",new(s().MFNode)),new(r())(h().inputOutput,"jointBindingPositions",new(s().MFVec3f)),new(r())(h().inputOutput,"jointBindingRotations",new(s().MFRotation)),new(r())(h().inputOutput,"jointBindingScales",new(s().MFVec3f)),new(r())(h().inputOutput,"joints",new(s().MFNode)),new(r())(h().inputOutput,"skinBindingNormal",new(s().SFNode)),new(r())(h().inputOutput,"skinBindingCoord",new(s().SFNode)),new(r())(h().inputOutput,"skinNormal",new(s().SFNode)),new(r())(h().inputOutput,"skinCoord",new(s().SFNode)),new(r())(h().inputOutput,"skin",new(s().MFNode))]),enumerable:!0}});class X{#e=!0;enable(){this.#e=!1}lock(){const e=this.#e;return this.#e=!0,e}}const k=A;_().add("HAnimHumanoid","x_ite/Components/HAnim/HAnimHumanoid",k);const R=k,V=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Components/Grouping/X3DTransformNode");var H=e.n(V);const B=window[Symbol.for("X_ITE.X3D-8.12.4")].require("standard/Math/Numbers/Vector3");var P=e.n(B);function U(e){H().call(this,e),this.addType(h().HAnimJoint),this.addChildObjects(h().outputOnly,"displacements",new(s().SFTime),h().outputOnly,"displacementWeights",new(s().SFTime)),this.setAllowedTypes(h().HAnimJoint,h().HAnimSegment,h().HAnimSite),this.displacerNodes=[],this.modelViewMatrix=new(D())}Object.assign(Object.setPrototypeOf(U.prototype,H().prototype),{initialize(){H().prototype.initialize.call(this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},getModelViewMatrix(){return this.modelViewMatrix},getDisplacers(){return this.displacerNodes},set_displacers__(){const e=this.displacerNodes;for(const t of e)t._coordIndex.removeInterest("addEvent",this._displacements),t._displacements.removeInterest("addEvent",this._displacements),t._coordIndex.removeInterest("addEvent",this._displacementWeights),t._weight.removeInterest("addEvent",this._displacementWeights);e.length=0;for(const t of this._displacers){const n=E()(h().HAnimDisplacer,t);n&&e.push(n)}for(const t of e)t._coordIndex.addInterest("addEvent",this._displacements),t._displacements.addInterest("addEvent",this._displacements),t._coordIndex.addInterest("addEvent",this._displacementWeights),t._weight.addInterest("addEvent",this._displacementWeights)},traverse(e,t){const n=t.getModelViewMatrix();n.push(),n.multLeft(this.getMatrix()),e===N().DISPLAY&&this.modelViewMatrix.assign(n.get()),H().prototype.groupTraverse.call(this,e,t),n.pop()},groupTraverse(e,t){e===N().DISPLAY&&this.modelViewMatrix.assign(t.getModelViewMatrix().get()),H().prototype.groupTraverse.call(this,e,t)}}),Object.defineProperties(U,{typeName:{value:"HAnimJoint",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(h().inputOutput,"metadata",new(s().SFNode)),new(r())(h().inputOutput,"description",new(s().SFString)),new(r())(h().inputOutput,"name",new(s().SFString)),new(r())(h().inputOutput,"translation",new(s().SFVec3f)),new(r())(h().inputOutput,"rotation",new(s().SFRotation)),new(r())(h().inputOutput,"scale",new(s().SFVec3f)(1,1,1)),new(r())(h().inputOutput,"scaleOrientation",new(s().SFRotation)),new(r())(h().inputOutput,"center",new(s().SFVec3f)),new(r())(h().inputOutput,"llimit",new(s().MFFloat)),new(r())(h().inputOutput,"ulimit",new(s().MFFloat)),new(r())(h().inputOutput,"limitOrientation",new(s().SFRotation)),new(r())(h().inputOutput,"stiffness",new(s().MFFloat)(0,0,0)),new(r())(h().inputOutput,"skinCoordIndex",new(s().MFInt32)),new(r())(h().inputOutput,"skinCoordWeight",new(s().MFFloat)),new(r())(h().inputOutput,"displacers",new(s().MFNode)),new(r())(h().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(h().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(h().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(h().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(h().inputOnly,"addChildren",new(s().MFNode)),new(r())(h().inputOnly,"removeChildren",new(s().MFNode)),new(r())(h().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const z=U;_().add("HAnimJoint","x_ite/Components/HAnim/HAnimJoint",z);const W=z,q=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Components/Time/TimeSensor");var G=e.n(q);const J=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Components/Interpolation/PositionInterpolator");var L=e.n(J);const Y=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Components/Interpolation/OrientationInterpolator");var Z=e.n(Y);const $=window[Symbol.for("X_ITE.X3D-8.12.4")].require("standard/Math/Numbers/Rotation4");var K=e.n($);function Q(e){F().call(this,e),this.addType(h().HAnimMotion),this.timeSensor=new(G())(this.getExecutionContext()),this.interpolators=[],this.jointsIndex=new Map}Object.assign(Object.setPrototypeOf(Q.prototype,F().prototype),{initialize(){F().prototype.initialize.call(this),this._loop.addFieldInterest(this.timeSensor._loop),this.timeSensor._cycleTime.addFieldInterest(this._cycleTime),this.timeSensor._elapsedTime.addFieldInterest(this._elapsedTime),this.timeSensor._enabled=!1,this.timeSensor._loop=this._loop,this.timeSensor._stopTime=1,this.timeSensor.setup(),this._enabled.addInterest("set_enabled__",this),this._joints.addInterest("set_connectInterpolators__",this),this._channelsEnabled.addInterest("set_connectInterpolators__",this),this._channels.addInterest("set_interpolators__",this),this._values.addInterest("set_interpolators__",this),this._next.addInterest("set_next_or_previous__",this,1),this._previous.addInterest("set_next_or_previous__",this,-1),this._frameIndex.addInterest("set_frameIndex__",this),this._frameDuration.addInterest("set_frameDuration__",this),this._frameIncrement.addInterest("set_timeSensor_enabled__",this),this._startFrame.addInterest("set_start_or_endFrame__",this),this._endFrame.addInterest("set_start_or_endFrame__",this),this.set_enabled__(),this.set_interpolators__()},setJoints(e){const t=this.jointsIndex;t.clear();for(const n of e)t.set(n._name.getValue().trim(),n);t.delete("IGNORED"),this.set_timeSensor_enabled__(),this.set_enabled__(),this.set_connectInterpolators__()},set_timeSensor_enabled__(){this.timeSensor._enabled=this.jointsIndex.size&&this._frameIncrement.getValue()},set_enabled__(){this._enabled.getValue()?this.timeSensor._startTime=Date.now()/1e3:this.timeSensor._stopTime=Date.now()/1e3},set_interpolators__(){const e=this.timeSensor;for(const t of e._fraction_changed.getFieldInterests())e._fraction_changed.removeFieldInterest(t);const t=this._channels.getValue().replace(/^[\s,\d]+|[\s,\d]+$/gs,"").split(/[\s,]+\d+[\s,]+/s).map((e=>e.split(/[\s,]+/s))),n=this._values,i=t.reduce(((e,t)=>e+t.length),0),s=Math.floor(i?n.length/i:0),o=new Map,r=Array.from({length:t.length},(()=>({})));this.interpolators=r;for(let e=0,i=0;e<s;++e)for(const[a,d]of t.entries()){o.clear();for(const e of d)o.set(e,n[i++]);if(o.has("Xposition")||o.has("Yposition")||o.has("Zposition")){const t=r[a].positionInterpolator??this.createPositionInterpolator(r,a),n=e/(s-1),i=new(P())(o.get("Xposition")??0,o.get("Yposition")??0,o.get("Zposition")??0);t._key.push(n),t._keyValue.push(i)}if(o.has("Xrotation")||o.has("Yrotation")||o.has("Zrotation")){const t=r[a].orientationInterpolator??this.createOrientationInterpolator(r,a),n=e/(s-1),i=K().fromEuler(C().radians(o.get("Xrotation")??0),C().radians(o.get("Yrotation")??0),C().radians(o.get("Zrotation")??0));t._key.push(n),t._keyValue.push(i)}if(o.has("Xscale")||o.has("Yscale")||o.has("Zscale")){const t=r[a].scaleInterpolator??this.createScaleInterpolator(r,a),n=e/(s-1),i=new(P())(o.get("Xscale")??1,o.get("Yscale")??1,o.get("Zscale")??1);t._key.push(n),t._keyValue.push(i)}}for(const{positionInterpolator:e,orientationInterpolator:t,scaleInterpolator:n}of r)e?.setup(),t?.setup(),n?.setup();this._frameIndex=0,this._startFrame=0,this._endFrame=s-1,this._frameCount=s,this.set_connectInterpolators__(),this.set_frameDuration__()},set_connectInterpolators__(){const e=this.timeSensor,t=this._channelsEnabled,n=this._joints.getValue().replace(/^[\s,]+|[\s,]+$/gs,"").split(/[\s,]+/s),i=this.jointsIndex;for(const{positionInterpolator:e,orientationInterpolator:t,scaleInterpolator:n}of this.interpolators){if(e)for(const t of e._value_changed.getFieldInterests())e._value_changed.removeFieldInterest(t);if(t)for(const e of t._value_changed.getFieldInterests())t._value_changed.removeFieldInterest(e);if(n)for(const e of n._value_changed.getFieldInterests())n._value_changed.removeFieldInterest(e)}if(i.size)for(const[s,{positionInterpolator:o,orientationInterpolator:r,scaleInterpolator:a}]of this.interpolators.entries()){if(s<t.length&&!t[s])continue;if(s>=n.length)continue;const d=i.get(n[s])??(o&&i.get("humanoid_root"));d&&(o&&(e._fraction_changed.addFieldInterest(o._set_fraction),o._value_changed.addFieldInterest(d._translation)),r&&(e._fraction_changed.addFieldInterest(r._set_fraction),r._value_changed.addFieldInterest(d._rotation)),a&&(e._fraction_changed.addFieldInterest(a._set_fraction),a._value_changed.addFieldInterest(d._scale)))}},set_next_or_previous__(e,t){if(!t.getValue())return;const n=this.getFraction(),i=this._frameCount.getValue(),s=this._frameIncrement.getValue(),o=(i>1?Math.floor(n*(i-1)):0)+s*e;if(o>this.endFrame){if(!this._loop.getValue())return;this._frameIndex=this.startFrame}else if(o<this.startFrame){if(!this._loop.getValue())return;this._frameIndex=this.endFrame}else this._frameIndex=o},set_frameIndex__(){const e=this._frameCount.getValue(),t=C().clamp(this._frameIndex.getValue(),0,e),n=e>1?t/(e-1):0;if(this.timeSensor._range[0]=n,!this.timeSensor._isActive.getValue())for(const e of this.timeSensor._fraction_changed.getFieldInterests())e.setValue(n)},set_frameDuration__(){const e=this._frameCount.getValue(),t=Math.max(this._frameDuration.getValue(),0);this.timeSensor._cycleInterval=e>1?(e-1)*t:0},set_start_or_endFrame__(){const e=this._frameCount.getValue(),t=C().clamp(this._startFrame.getValue(),0,e),n=C().clamp(this._endFrame.getValue(),0,e);this.startFrame=Math.min(t,n),this.endFrame=Math.max(t,n),this.timeSensor._range[1]=e>1?this.startFrame/(e-1):0,this.timeSensor._range[2]=e>1?this.endFrame/(e-1):0},createPositionInterpolator(e,t){return e[t].positionInterpolator=new(L())(this.getExecutionContext())},createOrientationInterpolator(e,t){return e[t].orientationInterpolator=new(Z())(this.getExecutionContext())},createScaleInterpolator(e,t){return e[t].scaleInterpolator=new(L())(this.getExecutionContext())},getFraction(){for(const e of this.timeSensor._fraction_changed.getFieldInterests())return e.getValue();return 0}}),Object.defineProperties(Q,{typeName:{value:"HAnimMotion",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"motions",enumerable:!0},specificationRange:{value:Object.freeze(["4.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(h().inputOutput,"metadata",new(s().SFNode)),new(r())(h().inputOutput,"description",new(s().SFString)),new(r())(h().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(h().inputOutput,"loa",new(s().SFInt32)(-1)),new(r())(h().inputOutput,"joints",new(s().SFString)),new(r())(h().inputOutput,"channelsEnabled",new(s().MFBool)),new(r())(h().inputOutput,"channels",new(s().SFString)),new(r())(h().inputOutput,"values",new(s().MFFloat)),new(r())(h().inputOutput,"loop",new(s().SFBool)),new(r())(h().inputOnly,"next",new(s().SFBool)),new(r())(h().inputOnly,"previous",new(s().SFBool)),new(r())(h().inputOutput,"frameIndex",new(s().SFInt32)(0)),new(r())(h().inputOutput,"frameDuration",new(s().SFTime)(.1)),new(r())(h().inputOutput,"frameIncrement",new(s().SFInt32)(1)),new(r())(h().inputOutput,"startFrame",new(s().SFInt32)),new(r())(h().inputOutput,"endFrame",new(s().SFInt32)),new(r())(h().outputOnly,"cycleTime",new(s().SFTime)),new(r())(h().outputOnly,"elapsedTime",new(s().SFTime)),new(r())(h().outputOnly,"frameCount",new(s().SFInt32))]),enumerable:!0}});const ee=Q;_().add("HAnimMotion","x_ite/Components/HAnim/HAnimMotion",ee);const te=ee,ne=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Components/Grouping/X3DGroupingNode");var ie=e.n(ne);function se(e){ie().call(this,e),this.addType(h().HAnimSegment),this._mass.setUnit("mass")}Object.setPrototypeOf(se.prototype,ie().prototype),Object.defineProperties(se,{typeName:{value:"HAnimSegment",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(h().inputOutput,"metadata",new(s().SFNode)),new(r())(h().inputOutput,"description",new(s().SFString)),new(r())(h().inputOutput,"name",new(s().SFString)),new(r())(h().inputOutput,"mass",new(s().SFFloat)),new(r())(h().inputOutput,"centerOfMass",new(s().SFVec3f)),new(r())(h().inputOutput,"momentsOfInertia",new(s().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(h().inputOutput,"displacers",new(s().MFNode)),new(r())(h().inputOutput,"coord",new(s().SFNode)),new(r())(h().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(h().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(h().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(h().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(h().inputOnly,"addChildren",new(s().MFNode)),new(r())(h().inputOnly,"removeChildren",new(s().MFNode)),new(r())(h().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const oe=se;_().add("HAnimSegment","x_ite/Components/HAnim/HAnimSegment",oe);const re=oe;function ae(e){H().call(this,e),this.addType(h().HAnimSite)}Object.setPrototypeOf(ae.prototype,H().prototype),Object.defineProperties(ae,{typeName:{value:"HAnimSite",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(h().inputOutput,"metadata",new(s().SFNode)),new(r())(h().inputOutput,"description",new(s().SFString)),new(r())(h().inputOutput,"name",new(s().SFString)),new(r())(h().inputOutput,"translation",new(s().SFVec3f)),new(r())(h().inputOutput,"rotation",new(s().SFRotation)),new(r())(h().inputOutput,"scale",new(s().SFVec3f)(1,1,1)),new(r())(h().inputOutput,"scaleOrientation",new(s().SFRotation)),new(r())(h().inputOutput,"center",new(s().SFVec3f)),new(r())(h().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(h().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(h().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(h().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(h().inputOnly,"addChildren",new(s().MFNode)),new(r())(h().inputOnly,"removeChildren",new(s().MFNode)),new(r())(h().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const de=ae;_().add("HAnimSite","x_ite/Components/HAnim/HAnimSite",de);const le=de;n().add({name:"HAnim",concreteNodes:[f,R,W,te,re,le],abstractNodes:[]});const ue=void 0;_().add("HAnim","assets/components/HAnim",ue)})();
1
+ /* X_ITE v9.0.0 */(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Fields");var s=e.n(i);const o=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(o);const a=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Base/FieldDefinitionArray");var d=e.n(a);const l=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var u=e.n(l);const p=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Base/X3DConstants");var h=e.n(p);const c=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Namespace");var _=e.n(c);function m(e){u().call(this,e),this.addType(h().HAnimDisplacer),this._displacements.setUnit("length")}Object.setPrototypeOf(m.prototype,u().prototype),Object.defineProperties(m,{typeName:{value:"HAnimDisplacer",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"displacers",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(h().inputOutput,"metadata",new(s().SFNode)),new(r())(h().inputOutput,"description",new(s().SFString)),new(r())(h().inputOutput,"name",new(s().SFString)),new(r())(h().inputOutput,"weight",new(s().SFFloat)),new(r())(h().inputOutput,"coordIndex",new(s().MFInt32)),new(r())(h().inputOutput,"displacements",new(s().MFVec3f))]),enumerable:!0}});const w=m;_().add("HAnimDisplacer","x_ite/Components/HAnim/HAnimDisplacer",w);const f=w,g=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Components/Core/X3DChildNode");var F=e.n(g);const I=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Components/Grouping/Group");var x=e.n(I);const b=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Components/Grouping/Transform");var T=e.n(b);const S=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Components/Grouping/X3DBoundedObject");var O=e.n(S);const v=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Rendering/TraverseType");var N=e.n(v);const y=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Base/X3DCast");var E=e.n(y);const M=window[Symbol.for("X_ITE.X3D-9.0.0")].require("standard/Math/Numbers/Matrix4");var D=e.n(M);const j=window[Symbol.for("X_ITE.X3D-9.0.0")].require("standard/Math/Algorithm");var C=e.n(j);function A(e){F().call(this,e),O().call(this,e),this.addType(h().HAnimHumanoid),this.addChildObjects(h().inputOutput,"jointTextures",new(s().SFTime),h().inputOutput,"displacementsTexture",new(s().SFTime),h().inputOutput,"displacementWeightsTexture",new(s().SFTime)),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),this.skeletonNode=new(x())(e),this.viewpointsNode=new(x())(e),this.skinNode=new(x())(e),this.transformNode=new(T())(e),this.motionNodes=[],this.jointNodes=[],this.jointBindingMatrices=[],this.displacementWeights=[],this.numJoints=0,this.numDisplacements=0,this.skinCoordNode=null,this.change=new X,this.skinning=Function.prototype}Object.assign(Object.setPrototypeOf(A.prototype,F().prototype),O().prototype,{initialize(){F().prototype.initialize.call(this),O().prototype.initialize.call(this),this.skeletonNode.setAllowedTypes(h().HAnimJoint,h().HAnimSite),this.viewpointsNode.setAllowedTypes(h().HAnimSite),this._skeleton.addFieldInterest(this.skeletonNode._children),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skin.addFieldInterest(this.skinNode._children),this.skeletonNode._children=this._skeleton,this.viewpointsNode._children=this._viewpoints,this.skinNode._children=this._skin,this.skeletonNode.setPrivate(!0),this.viewpointsNode.setPrivate(!0),this.skinNode.setPrivate(!0),this._translation.addFieldInterest(this.transformNode._translation),this._rotation.addFieldInterest(this.transformNode._rotation),this._scale.addFieldInterest(this.transformNode._scale),this._scaleOrientation.addFieldInterest(this.transformNode._scaleOrientation),this._center.addFieldInterest(this.transformNode._center),this._bboxDisplay.addFieldInterest(this.transformNode._bboxDisplay),this._bboxSize.addFieldInterest(this.transformNode._bboxSize),this._bboxCenter.addFieldInterest(this.transformNode._bboxCenter),this.transformNode._translation=this._translation,this.transformNode._rotation=this._rotation,this.transformNode._scale=this._scale,this.transformNode._scaleOrientation=this._scaleOrientation,this.transformNode._center=this._center,this.transformNode._bboxDisplay=this._bboxDisplay,this.transformNode._bboxSize=this._bboxSize,this.transformNode._bboxCenter=this._bboxCenter,this.transformNode._children=[this.skeletonNode,this.viewpointsNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.skeletonNode.setup(),this.viewpointsNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.isCameraObject()),this.setPickableObject(this.transformNode.isPickableObject());const e=this.getBrowser().getContext();if(1!==e.getVersion()){this.skinNode.traverse=function(e,t,n){n.getHumanoids().push(e),x().prototype.traverse.call(this,t,n),n.getHumanoids().pop()}.bind(this.skinNode,this),this.jointsTexture=e.createTexture(),this.displacementsTexture=e.createTexture(),this.jointMatricesTexture=e.createTexture();for(const t of[this.jointsTexture,this.displacementsTexture,this.jointMatricesTexture])e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR);this._motionsEnabled.addInterest("set_motions__",this),this._motions.addInterest("set_motions__",this),this._jointBindingPositions.addInterest("set_joints__",this),this._jointBindingRotations.addInterest("set_joints__",this),this._jointBindingScales.addInterest("set_joints__",this),this._joints.addInterest("set_joints__",this),this._jointTextures.addInterest("set_jointTextures__",this),this._displacementsTexture.addInterest("set_displacementsTexture__",this),this._displacementWeightsTexture.addInterest("set_displacementWeightsTexture__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_motions__(),this.set_joints__(),this.set_skinCoord__()}},getBBox(e,t){return this.transformNode.getBBox(e,t)},getMatrix(){return this.transformNode.getMatrix()},getHumanoidKey(){return this.numJoints+"."+this.numDisplacements},getNumJoints(){return this.numJoints},getNumDisplacements(){return this.numDisplacements},set_motions__(){const e=this._motionsEnabled,t=this.motionNodes;for(const e of t)e.setJoints([]);t.length=0;for(const[n,i]of this._motions.entries()){if(n<e.length&&!e[n])continue;const s=E()(h().HAnimMotion,i);s&&t.push(s)}for(const e of t)e.setJoints(this.jointNodes)},set_joints__(){const e=this.jointNodes,t=this.jointBindingMatrices,n=this._jointBindingPositions,i=this._jointBindingRotations,s=this._jointBindingScales;for(const t of e)t.removeInterest("enable",this.change),t._skinCoordIndex.removeInterest("addEvent",this._jointTextures),t._skinCoordWeight.removeInterest("addEvent",this._jointTextures),t._displacements.removeInterest("addEvent",this._displacementsTexture),t._displacementWeights.removeInterest("addEvent",this._displacementWeightsTexture);e.length=0,t.length=0;for(const[o,r]of this._joints.entries()){const a=E()(h().HAnimJoint,r);if(!a)continue;const d=new(D());n.length&&d.translate(n[Math.min(o,n.length-1)].getValue()),i.length&&d.rotate(i[Math.min(o,i.length-1)].getValue()),s.length&&d.scale(s[Math.min(o,s.length-1)].getValue()),e.push(a),t.push(d)}for(const t of e)t.addInterest("enable",this.change),t._skinCoordIndex.addInterest("addEvent",this._jointTextures),t._skinCoordWeight.addInterest("addEvent",this._jointTextures),t._displacements.addInterest("addEvent",this._displacementsTexture),t._displacementWeights.addInterest("addEvent",this._displacementWeightsTexture);const o=Math.ceil(Math.sqrt(8*e.length));this.jointMatricesArray=new Float32Array(o*o*4),this._jointTextures.addEvent(),this._displacementsTexture.addEvent(),this._displacementWeightsTexture.addEvent();for(const t of this.motionNodes)t.setJoints(e)},set_jointTextures__(){const e=this.skinCoordNode?._point.length||1,t=Array.from({length:e},(()=>[])),n=Array.from({length:e},(()=>[]));for(const[e,i]of this.jointNodes.entries()){const s=i._skinCoordWeight.getValue();for(const[o,r]of i._skinCoordIndex.entries()){const i=s[o];0!==i&&(t[r]?.push(e),n[r]?.push(i))}}const i=C().roundToMultiple(t.reduce(((e,t)=>Math.max(e,t.length)),0),4),s=2*i,o=Math.ceil(Math.sqrt(e*s))||1,r=new Float32Array(o*o*4);for(let o=0;o<e;++o)r.set(t[o],o*s),r.set(n[o],o*s+i);this.numJoints=i;const a=this.getBrowser().getContext();a.bindTexture(a.TEXTURE_2D,this.jointsTexture),a.texImage2D(a.TEXTURE_2D,0,a.RGBA32F,o,o,0,a.RGBA,a.FLOAT,r),this.change.enable()},set_displacementsTexture__(){const e=this.skinCoordNode?._point.length||1,t=Array.from({length:e},(()=>[]));for(const[e,n]of this.jointNodes.entries())for(const i of n.getDisplacers()){const n=i._displacements;for(const[s,o]of i._coordIndex.entries())t[o]?.push(...n[s],e)}const n=t.reduce(((e,t)=>Math.max(e,t.length)),0)/4,i=4*n,s=C().roundToMultiple(Math.ceil(Math.sqrt(e*n*2))||1,2),o=new Float32Array(s*s*4);for(let n=0;n<e;++n)o.set(t[n],n*i);this.numDisplacements=n;const r=this.getBrowser().getContext();r.bindTexture(r.TEXTURE_2D,this.displacementsTexture),r.texImage2D(r.TEXTURE_2D,0,r.RGBA32F,s,s,0,r.RGBA,r.FLOAT,o);const a=this.displacementWeights;for(let t=a.length;t<e;++t)a[t]=[];a.length=e,this.displacementWeightsArray=new Float32Array(s*s*2),this.change.enable()},set_displacementWeightsTexture__(){const e=this.skinCoordNode?._point.length||1,t=this.displacementWeights;for(const e of t)e.length=0;for(const e of this.jointNodes)for(const n of e.getDisplacers()){const e=n._weight;for(const i of n._coordIndex)t[i]?.push(e,0,0,0)}const n=this.numDisplacements,i=4*n,s=C().roundToMultiple(Math.ceil(Math.sqrt(e*n*2))||1,2),o=this.displacementWeightsArray;for(let n=0;n<e;++n)o.set(t[n],n*i);const r=this.getBrowser().getContext();r.bindTexture(r.TEXTURE_2D,this.displacementsTexture),r.texSubImage2D(r.TEXTURE_2D,0,0,s/2,s,s/2,r.RGBA,r.FLOAT,o),this.change.enable()},set_skinCoord__(){this.skinCoordNode&&(this.skinCoordNode.removeInterest("addEvent",this._jointTextures),this.skinCoordNode.removeInterest("addEvent",this._displacementsTexture),this.skinCoordNode.removeInterest("addEvent",this._displacementWeightsTexture)),this.skinCoordNode=E()(h().X3DCoordinateNode,this._skinCoord),this.skinCoordNode?(delete this.skinning,this.skinCoordNode.addInterest("addEvent",this._jointTextures),this.skinCoordNode.addInterest("addEvent",this._displacementsTexture),this.skinCoordNode.addInterest("addEvent",this._displacementWeightsTexture)):this.skinning=Function.prototype,this._jointTextures.addEvent(),this._displacementsTexture.addEvent(),this._displacementWeightsTexture.addEvent()},traverse(e,t){this.transformNode.traverse(e,t),this.skinning(e,t)},skinning:(()=>{const e=new(D());return function(t,n){if(t!==N().DISPLAY||this.change.lock())return;e.assign(this.transformNode.getMatrix()).multRight(n.getModelViewMatrix().get()).inverse();const i=this.jointNodes,s=i.length,o=this.jointBindingMatrices,r=this.jointMatricesArray,a=Math.ceil(Math.sqrt(8*s));for(let t=0;t<s;++t){const n=i[t],s=o[t],a=n.getModelViewMatrix().multRight(e).multLeft(s),d=a.submatrix.transpose().inverse();r.set(a,32*t+0),r.set(d,32*t+16)}const d=this.getBrowser().getContext();d.bindTexture(d.TEXTURE_2D,this.jointMatricesTexture),d.texImage2D(d.TEXTURE_2D,0,d.RGBA32F,a,a,0,d.RGBA,d.FLOAT,r)}})(),setShaderUniforms(e,t){const n=this.getBrowser().getTexture2DUnit(),i=this.getBrowser().getTexture2DUnit(),s=this.getBrowser().getTexture2DUnit();e.activeTexture(e.TEXTURE0+n),e.bindTexture(e.TEXTURE_2D,this.jointsTexture),e.uniform1i(t.x3d_JointsTexture,n),e.activeTexture(e.TEXTURE0+i),e.bindTexture(e.TEXTURE_2D,this.displacementsTexture),e.uniform1i(t.x3d_DisplacementsTexture,i),e.activeTexture(e.TEXTURE0+s),e.bindTexture(e.TEXTURE_2D,this.jointMatricesTexture),e.uniform1i(t.x3d_JointMatricesTexture,s)},dispose(){O().prototype.dispose.call(this),F().prototype.dispose.call(this)}}),Object.defineProperties(A,{typeName:{value:"HAnimHumanoid",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(h().inputOutput,"metadata",new(s().SFNode)),new(r())(h().inputOutput,"version",new(s().SFString)),new(r())(h().inputOutput,"description",new(s().SFString)),new(r())(h().inputOutput,"name",new(s().SFString)),new(r())(h().inputOutput,"info",new(s().MFString)),new(r())(h().inputOutput,"skeletalConfiguration",new(s().SFString)("BASIC")),new(r())(h().inputOutput,"loa",new(s().SFInt32)(-1)),new(r())(h().inputOutput,"translation",new(s().SFVec3f)),new(r())(h().inputOutput,"rotation",new(s().SFRotation)),new(r())(h().inputOutput,"scale",new(s().SFVec3f)(1,1,1)),new(r())(h().inputOutput,"scaleOrientation",new(s().SFRotation)),new(r())(h().inputOutput,"center",new(s().SFVec3f)),new(r())(h().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(h().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(h().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(h().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(h().inputOutput,"skeleton",new(s().MFNode)),new(r())(h().inputOutput,"viewpoints",new(s().MFNode)),new(r())(h().inputOutput,"sites",new(s().MFNode)),new(r())(h().inputOutput,"segments",new(s().MFNode)),new(r())(h().inputOutput,"motionsEnabled",new(s().MFBool)),new(r())(h().inputOutput,"motions",new(s().MFNode)),new(r())(h().inputOutput,"jointBindingPositions",new(s().MFVec3f)),new(r())(h().inputOutput,"jointBindingRotations",new(s().MFRotation)),new(r())(h().inputOutput,"jointBindingScales",new(s().MFVec3f)),new(r())(h().inputOutput,"joints",new(s().MFNode)),new(r())(h().inputOutput,"skinBindingNormal",new(s().SFNode)),new(r())(h().inputOutput,"skinBindingCoord",new(s().SFNode)),new(r())(h().inputOutput,"skinNormal",new(s().SFNode)),new(r())(h().inputOutput,"skinCoord",new(s().SFNode)),new(r())(h().inputOutput,"skin",new(s().MFNode))]),enumerable:!0}});class X{#e=!0;enable(){this.#e=!1}lock(){const e=this.#e;return this.#e=!0,e}}const k=A;_().add("HAnimHumanoid","x_ite/Components/HAnim/HAnimHumanoid",k);const R=k,V=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Components/Grouping/X3DTransformNode");var H=e.n(V);const B=window[Symbol.for("X_ITE.X3D-9.0.0")].require("standard/Math/Numbers/Vector3");var P=e.n(B);function U(e){H().call(this,e),this.addType(h().HAnimJoint),this.addChildObjects(h().outputOnly,"displacements",new(s().SFTime),h().outputOnly,"displacementWeights",new(s().SFTime)),this.setAllowedTypes(h().HAnimJoint,h().HAnimSegment,h().HAnimSite),this.displacerNodes=[],this.modelViewMatrix=new(D())}Object.assign(Object.setPrototypeOf(U.prototype,H().prototype),{initialize(){H().prototype.initialize.call(this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},getModelViewMatrix(){return this.modelViewMatrix},getDisplacers(){return this.displacerNodes},set_displacers__(){const e=this.displacerNodes;for(const t of e)t._coordIndex.removeInterest("addEvent",this._displacements),t._displacements.removeInterest("addEvent",this._displacements),t._coordIndex.removeInterest("addEvent",this._displacementWeights),t._weight.removeInterest("addEvent",this._displacementWeights);e.length=0;for(const t of this._displacers){const n=E()(h().HAnimDisplacer,t);n&&e.push(n)}for(const t of e)t._coordIndex.addInterest("addEvent",this._displacements),t._displacements.addInterest("addEvent",this._displacements),t._coordIndex.addInterest("addEvent",this._displacementWeights),t._weight.addInterest("addEvent",this._displacementWeights)},traverse(e,t){const n=t.getModelViewMatrix();n.push(),n.multLeft(this.getMatrix()),e===N().DISPLAY&&this.modelViewMatrix.assign(n.get()),H().prototype.groupTraverse.call(this,e,t),n.pop()},groupTraverse(e,t){e===N().DISPLAY&&this.modelViewMatrix.assign(t.getModelViewMatrix().get()),H().prototype.groupTraverse.call(this,e,t)}}),Object.defineProperties(U,{typeName:{value:"HAnimJoint",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(h().inputOutput,"metadata",new(s().SFNode)),new(r())(h().inputOutput,"description",new(s().SFString)),new(r())(h().inputOutput,"name",new(s().SFString)),new(r())(h().inputOutput,"translation",new(s().SFVec3f)),new(r())(h().inputOutput,"rotation",new(s().SFRotation)),new(r())(h().inputOutput,"scale",new(s().SFVec3f)(1,1,1)),new(r())(h().inputOutput,"scaleOrientation",new(s().SFRotation)),new(r())(h().inputOutput,"center",new(s().SFVec3f)),new(r())(h().inputOutput,"llimit",new(s().MFFloat)),new(r())(h().inputOutput,"ulimit",new(s().MFFloat)),new(r())(h().inputOutput,"limitOrientation",new(s().SFRotation)),new(r())(h().inputOutput,"stiffness",new(s().MFFloat)(0,0,0)),new(r())(h().inputOutput,"skinCoordIndex",new(s().MFInt32)),new(r())(h().inputOutput,"skinCoordWeight",new(s().MFFloat)),new(r())(h().inputOutput,"displacers",new(s().MFNode)),new(r())(h().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(h().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(h().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(h().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(h().inputOnly,"addChildren",new(s().MFNode)),new(r())(h().inputOnly,"removeChildren",new(s().MFNode)),new(r())(h().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const z=U;_().add("HAnimJoint","x_ite/Components/HAnim/HAnimJoint",z);const W=z,q=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Components/Time/TimeSensor");var G=e.n(q);const J=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Components/Interpolation/PositionInterpolator");var L=e.n(J);const Y=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Components/Interpolation/OrientationInterpolator");var Z=e.n(Y);const $=window[Symbol.for("X_ITE.X3D-9.0.0")].require("standard/Math/Numbers/Rotation4");var K=e.n($);function Q(e){F().call(this,e),this.addType(h().HAnimMotion),this.timeSensor=new(G())(this.getExecutionContext()),this.interpolators=[],this.jointsIndex=new Map}Object.assign(Object.setPrototypeOf(Q.prototype,F().prototype),{initialize(){F().prototype.initialize.call(this),this._loop.addFieldInterest(this.timeSensor._loop),this.timeSensor._cycleTime.addFieldInterest(this._cycleTime),this.timeSensor._elapsedTime.addFieldInterest(this._elapsedTime),this.timeSensor._enabled=!1,this.timeSensor._loop=this._loop,this.timeSensor._stopTime=1,this.timeSensor.setup(),this._enabled.addInterest("set_enabled__",this),this._joints.addInterest("set_connectInterpolators__",this),this._channelsEnabled.addInterest("set_connectInterpolators__",this),this._channels.addInterest("set_interpolators__",this),this._values.addInterest("set_interpolators__",this),this._next.addInterest("set_next_or_previous__",this,1),this._previous.addInterest("set_next_or_previous__",this,-1),this._frameIndex.addInterest("set_frameIndex__",this),this._frameDuration.addInterest("set_frameDuration__",this),this._frameIncrement.addInterest("set_timeSensor_enabled__",this),this._startFrame.addInterest("set_start_or_endFrame__",this),this._endFrame.addInterest("set_start_or_endFrame__",this),this.set_enabled__(),this.set_interpolators__()},setJoints(e){const t=this.jointsIndex;t.clear();for(const n of e)t.set(n._name.getValue().trim(),n);t.delete("IGNORED"),this.set_timeSensor_enabled__(),this.set_enabled__(),this.set_connectInterpolators__()},set_timeSensor_enabled__(){this.timeSensor._enabled=this.jointsIndex.size&&this._frameIncrement.getValue()},set_enabled__(){this._enabled.getValue()?this.timeSensor._startTime=Date.now()/1e3:this.timeSensor._stopTime=Date.now()/1e3},set_interpolators__(){const e=this.timeSensor;for(const t of e._fraction_changed.getFieldInterests())e._fraction_changed.removeFieldInterest(t);const t=this._channels.getValue().replace(/^[\s,\d]+|[\s,\d]+$/gs,"").split(/[\s,]+\d+[\s,]+/s).map((e=>e.split(/[\s,]+/s))),n=this._values,i=t.reduce(((e,t)=>e+t.length),0),s=Math.floor(i?n.length/i:0),o=new Map,r=Array.from({length:t.length},(()=>({})));this.interpolators=r;for(let e=0,i=0;e<s;++e)for(const[a,d]of t.entries()){o.clear();for(const e of d)o.set(e,n[i++]);if(o.has("Xposition")||o.has("Yposition")||o.has("Zposition")){const t=r[a].positionInterpolator??this.createPositionInterpolator(r,a),n=e/(s-1),i=new(P())(o.get("Xposition")??0,o.get("Yposition")??0,o.get("Zposition")??0);t._key.push(n),t._keyValue.push(i)}if(o.has("Xrotation")||o.has("Yrotation")||o.has("Zrotation")){const t=r[a].orientationInterpolator??this.createOrientationInterpolator(r,a),n=e/(s-1),i=K().fromEuler(C().radians(o.get("Xrotation")??0),C().radians(o.get("Yrotation")??0),C().radians(o.get("Zrotation")??0));t._key.push(n),t._keyValue.push(i)}if(o.has("Xscale")||o.has("Yscale")||o.has("Zscale")){const t=r[a].scaleInterpolator??this.createScaleInterpolator(r,a),n=e/(s-1),i=new(P())(o.get("Xscale")??1,o.get("Yscale")??1,o.get("Zscale")??1);t._key.push(n),t._keyValue.push(i)}}for(const{positionInterpolator:e,orientationInterpolator:t,scaleInterpolator:n}of r)e?.setup(),t?.setup(),n?.setup();this._frameIndex=0,this._startFrame=0,this._endFrame=s-1,this._frameCount=s,this.set_connectInterpolators__(),this.set_frameDuration__()},set_connectInterpolators__(){const e=this.timeSensor,t=this._channelsEnabled,n=this._joints.getValue().replace(/^[\s,]+|[\s,]+$/gs,"").split(/[\s,]+/s),i=this.jointsIndex;for(const{positionInterpolator:e,orientationInterpolator:t,scaleInterpolator:n}of this.interpolators){if(e)for(const t of e._value_changed.getFieldInterests())e._value_changed.removeFieldInterest(t);if(t)for(const e of t._value_changed.getFieldInterests())t._value_changed.removeFieldInterest(e);if(n)for(const e of n._value_changed.getFieldInterests())n._value_changed.removeFieldInterest(e)}if(i.size)for(const[s,{positionInterpolator:o,orientationInterpolator:r,scaleInterpolator:a}]of this.interpolators.entries()){if(s<t.length&&!t[s])continue;if(s>=n.length)continue;const d=i.get(n[s])??(o&&i.get("humanoid_root"));d&&(o&&(e._fraction_changed.addFieldInterest(o._set_fraction),o._value_changed.addFieldInterest(d._translation)),r&&(e._fraction_changed.addFieldInterest(r._set_fraction),r._value_changed.addFieldInterest(d._rotation)),a&&(e._fraction_changed.addFieldInterest(a._set_fraction),a._value_changed.addFieldInterest(d._scale)))}},set_next_or_previous__(e,t){if(!t.getValue())return;const n=this.getFraction(),i=this._frameCount.getValue(),s=this._frameIncrement.getValue(),o=(i>1?Math.floor(n*(i-1)):0)+s*e;if(o>this.endFrame){if(!this._loop.getValue())return;this._frameIndex=this.startFrame}else if(o<this.startFrame){if(!this._loop.getValue())return;this._frameIndex=this.endFrame}else this._frameIndex=o},set_frameIndex__(){const e=this._frameCount.getValue(),t=C().clamp(this._frameIndex.getValue(),0,e),n=e>1?t/(e-1):0;if(this.timeSensor._range[0]=n,!this.timeSensor._isActive.getValue())for(const e of this.timeSensor._fraction_changed.getFieldInterests())e.setValue(n)},set_frameDuration__(){const e=this._frameCount.getValue(),t=Math.max(this._frameDuration.getValue(),0);this.timeSensor._cycleInterval=e>1?(e-1)*t:0},set_start_or_endFrame__(){const e=this._frameCount.getValue(),t=C().clamp(this._startFrame.getValue(),0,e),n=C().clamp(this._endFrame.getValue(),0,e);this.startFrame=Math.min(t,n),this.endFrame=Math.max(t,n),this.timeSensor._range[1]=e>1?this.startFrame/(e-1):0,this.timeSensor._range[2]=e>1?this.endFrame/(e-1):0},createPositionInterpolator(e,t){return e[t].positionInterpolator=new(L())(this.getExecutionContext())},createOrientationInterpolator(e,t){return e[t].orientationInterpolator=new(Z())(this.getExecutionContext())},createScaleInterpolator(e,t){return e[t].scaleInterpolator=new(L())(this.getExecutionContext())},getFraction(){for(const e of this.timeSensor._fraction_changed.getFieldInterests())return e.getValue();return 0}}),Object.defineProperties(Q,{typeName:{value:"HAnimMotion",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"motions",enumerable:!0},specificationRange:{value:Object.freeze(["4.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(h().inputOutput,"metadata",new(s().SFNode)),new(r())(h().inputOutput,"description",new(s().SFString)),new(r())(h().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(h().inputOutput,"loa",new(s().SFInt32)(-1)),new(r())(h().inputOutput,"joints",new(s().SFString)),new(r())(h().inputOutput,"channelsEnabled",new(s().MFBool)),new(r())(h().inputOutput,"channels",new(s().SFString)),new(r())(h().inputOutput,"values",new(s().MFFloat)),new(r())(h().inputOutput,"loop",new(s().SFBool)),new(r())(h().inputOnly,"next",new(s().SFBool)),new(r())(h().inputOnly,"previous",new(s().SFBool)),new(r())(h().inputOutput,"frameIndex",new(s().SFInt32)(0)),new(r())(h().inputOutput,"frameDuration",new(s().SFTime)(.1)),new(r())(h().inputOutput,"frameIncrement",new(s().SFInt32)(1)),new(r())(h().inputOutput,"startFrame",new(s().SFInt32)),new(r())(h().inputOutput,"endFrame",new(s().SFInt32)),new(r())(h().outputOnly,"cycleTime",new(s().SFTime)),new(r())(h().outputOnly,"elapsedTime",new(s().SFTime)),new(r())(h().outputOnly,"frameCount",new(s().SFInt32))]),enumerable:!0}});const ee=Q;_().add("HAnimMotion","x_ite/Components/HAnim/HAnimMotion",ee);const te=ee,ne=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Components/Grouping/X3DGroupingNode");var ie=e.n(ne);function se(e){ie().call(this,e),this.addType(h().HAnimSegment),this._mass.setUnit("mass")}Object.setPrototypeOf(se.prototype,ie().prototype),Object.defineProperties(se,{typeName:{value:"HAnimSegment",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(h().inputOutput,"metadata",new(s().SFNode)),new(r())(h().inputOutput,"description",new(s().SFString)),new(r())(h().inputOutput,"name",new(s().SFString)),new(r())(h().inputOutput,"mass",new(s().SFFloat)),new(r())(h().inputOutput,"centerOfMass",new(s().SFVec3f)),new(r())(h().inputOutput,"momentsOfInertia",new(s().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(h().inputOutput,"displacers",new(s().MFNode)),new(r())(h().inputOutput,"coord",new(s().SFNode)),new(r())(h().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(h().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(h().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(h().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(h().inputOnly,"addChildren",new(s().MFNode)),new(r())(h().inputOnly,"removeChildren",new(s().MFNode)),new(r())(h().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const oe=se;_().add("HAnimSegment","x_ite/Components/HAnim/HAnimSegment",oe);const re=oe;function ae(e){H().call(this,e),this.addType(h().HAnimSite)}Object.setPrototypeOf(ae.prototype,H().prototype),Object.defineProperties(ae,{typeName:{value:"HAnimSite",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(h().inputOutput,"metadata",new(s().SFNode)),new(r())(h().inputOutput,"description",new(s().SFString)),new(r())(h().inputOutput,"name",new(s().SFString)),new(r())(h().inputOutput,"translation",new(s().SFVec3f)),new(r())(h().inputOutput,"rotation",new(s().SFRotation)),new(r())(h().inputOutput,"scale",new(s().SFVec3f)(1,1,1)),new(r())(h().inputOutput,"scaleOrientation",new(s().SFRotation)),new(r())(h().inputOutput,"center",new(s().SFVec3f)),new(r())(h().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(h().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(h().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(h().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(h().inputOnly,"addChildren",new(s().MFNode)),new(r())(h().inputOnly,"removeChildren",new(s().MFNode)),new(r())(h().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const de=ae;_().add("HAnimSite","x_ite/Components/HAnim/HAnimSite",de);const le=de;n().add({name:"HAnim",concreteNodes:[f,R,W,te,re,le],abstractNodes:[]});const ue=void 0;_().add("HAnim","assets/components/HAnim",ue)})();
@@ -1,4 +1,4 @@
1
- /* X_ITE v8.12.4 */(() => { // webpackBootstrap
1
+ /* X_ITE v9.0.0 */(() => { // webpackBootstrap
2
2
  /******/ "use strict";
3
3
  /******/ // The require scope
4
4
  /******/ var __webpack_require__ = {};
@@ -39,13 +39,13 @@ var __webpack_exports__ = {};
39
39
  // UNUSED EXPORTS: default
40
40
 
41
41
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
42
- const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components");
42
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components");
43
43
  var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
44
44
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
45
- const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Fields");
45
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Fields");
46
46
  var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
47
47
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
48
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Namespace");
48
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Namespace");
49
49
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
50
50
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js
51
51
  /*******************************************************************************
@@ -150,16 +150,16 @@ const __default__ = X3DKeyDeviceSensorContext;
150
150
  Namespace_default().add ("X3DKeyDeviceSensorContext", "x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext", __default__);
151
151
  /* harmony default export */ const KeyDeviceSensor_X3DKeyDeviceSensorContext = (__default__);
152
152
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
153
- const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Base/X3DFieldDefinition");
153
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Base/X3DFieldDefinition");
154
154
  var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
155
155
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
156
- const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Base/FieldDefinitionArray");
156
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Base/FieldDefinitionArray");
157
157
  var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
158
158
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
159
- const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Core/X3DSensorNode");
159
+ const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Core/X3DSensorNode");
160
160
  var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
161
161
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
162
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Base/X3DConstants");
162
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Base/X3DConstants");
163
163
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
164
164
  ;// CONCATENATED MODULE: ./src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js
165
165
  /*******************************************************************************
@@ -1 +1 @@
1
- /* X_ITE v8.12.4 */(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var a in s)e.o(s,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:s[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Components");var s=e.n(t);const a=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Fields");var i=e.n(a);const n=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Namespace");var o=e.n(n);const r=Symbol(),c=Symbol(),l=Symbol();function y(){this[r]=new Set}Object.assign(y.prototype,{initialize(){const e=this.getElement();e.on("keydown.X3DKeyDeviceSensorContext",this[c].bind(this)),e.on("keyup.X3DKeyDeviceSensorContext",this[l].bind(this))},addKeyDeviceSensorNode(e){this[r].add(e)},removeKeyDeviceSensorNode(e){this[r].delete(e)},getKeyDeviceSensorNodes(){return this[r]},[c](e){for(const t of this[r])t.keydown(e)},[l](e){for(const t of this[r])t.keyup(e)}});const h=y;o().add("X3DKeyDeviceSensorContext","x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext",h);const _=h,b=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Base/X3DFieldDefinition");var d=e.n(b);const u=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Base/FieldDefinitionArray");var k=e.n(u);const K=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Components/Core/X3DSensorNode");var p=e.n(K);const S=window[Symbol.for("X_ITE.X3D-8.12.4")].require("x_ite/Base/X3DConstants");var v=e.n(S);function w(e){p().call(this,e),this.addType(v().X3DKeyDeviceSensorNode)}Object.assign(Object.setPrototypeOf(w.prototype,p().prototype),{initialize(){p().prototype.initialize.call(this),this.getLive().addInterest("set_live__",this),this.set_live__()},set_live__(){this.getLive().getValue()?(this._enabled.addInterest("set_enabled__",this),this._enabled.getValue()&&this.enable()):(this._enabled.removeInterest("set_enabled__",this),this.disable())},set_enabled__(){this._enabled.getValue()?this.enable():this.disable()},enable(){this.getBrowser().addKeyDeviceSensorNode(this)},disable(){this.getBrowser().removeKeyDeviceSensorNode(this),this.release()},keydown(){},keyup(){},release(){}}),Object.defineProperties(w,{typeName:{value:"X3DKeyDeviceSensorNode",enumerable:!0},componentName:{value:"KeyDeviceSensor",enumerable:!0}});const f=w;o().add("X3DKeyDeviceSensorNode","x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode",f);const m=f;function D(e){m.call(this,e),this.addType(v().KeySensor)}Object.assign(Object.setPrototypeOf(D.prototype,m.prototype),{keydown(e){switch(e.preventDefault(),this._isActive.getValue()||(this._isActive=!0),e.which){case 16:this._shiftKey=!0;break;case 17:this._controlKey=!0;break;case 18:this._altKey=!0;break;case 112:this._actionKeyPress=1;break;case 113:this._actionKeyPress=2;break;case 114:this._actionKeyPress=3;break;case 115:this._actionKeyPress=4;break;case 116:this._actionKeyPress=5;break;case 117:this._actionKeyPress=6;break;case 118:this._actionKeyPress=7;break;case 119:this._actionKeyPress=8;break;case 120:this._actionKeyPress=9;break;case 121:this._actionKeyPress=10;break;case 122:this._actionKeyPress=11;break;case 123:this._actionKeyPress=12;break;case 36:this._actionKeyPress=13;break;case 35:this._actionKeyPress=14;break;case 33:this._actionKeyPress=15;break;case 34:this._actionKeyPress=16;break;case 38:this._actionKeyPress=17;break;case 40:this._actionKeyPress=18;break;case 37:this._actionKeyPress=19;break;case 39:this._actionKeyPress=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyPress=String.fromCharCode(8);break;case"Delete":this._keyPress=String.fromCharCode(127);break;case"Enter":this._keyPress="\n";break;case"Escape":this._keyPress=String.fromCharCode(27);break;case"Tab":this._keyPress="\t";break;default:1===e.key.length&&(this._keyPress=e.key)}}},keyup(e){switch(e.preventDefault(),e.which){case 16:this._shiftKey=!1;break;case 17:this._controlKey=!1;break;case 18:this._altKey=!1;break;case 112:this._actionKeyRelease=1;break;case 113:this._actionKeyRelease=2;break;case 114:this._actionKeyRelease=3;break;case 115:this._actionKeyRelease=4;break;case 116:this._actionKeyRelease=5;break;case 117:this._actionKeyRelease=6;break;case 118:this._actionKeyRelease=7;break;case 119:this._actionKeyRelease=8;break;case 120:this._actionKeyRelease=9;break;case 121:this._actionKeyRelease=10;break;case 122:this._actionKeyRelease=11;break;case 123:this._actionKeyRelease=12;break;case 36:this._actionKeyRelease=13;break;case 35:this._actionKeyRelease=14;break;case 33:this._actionKeyRelease=15;break;case 34:this._actionKeyRelease=16;break;case 38:this._actionKeyRelease=17;break;case 40:this._actionKeyRelease=18;break;case 37:this._actionKeyRelease=19;break;case 39:this._actionKeyRelease=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyRelease=String.fromCharCode(8);break;case"Delete":this._keyRelease=String.fromCharCode(127);break;case"Enter":this._keyRelease="\n";break;case"Escape":this._keyRelease=String.fromCharCode(27);break;case"Tab":this._keyRelease="\t";break;default:1===e.key.length&&(this._keyRelease=e.key)}}this._isActive.getValue()&&(this._isActive=!1)},release(){this._shiftKey.getValue()&&(this._shiftKey=!1),this._controlKey.getValue()&&(this._controlKey=!1),this._altKey.getValue()&&(this._altKey=!1)}}),Object.defineProperties(D,{typeName:{value:"KeySensor",enumerable:!0},componentName:{value:"KeyDeviceSensor",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(k())([new(d())(v().inputOutput,"metadata",new(i().SFNode)),new(d())(v().inputOutput,"enabled",new(i().SFBool)(!0)),new(d())(v().outputOnly,"controlKey",new(i().SFBool)),new(d())(v().outputOnly,"shiftKey",new(i().SFBool)),new(d())(v().outputOnly,"altKey",new(i().SFBool)),new(d())(v().outputOnly,"actionKeyPress",new(i().SFInt32)),new(d())(v().outputOnly,"actionKeyRelease",new(i().SFInt32)),new(d())(v().outputOnly,"keyPress",new(i().SFString)),new(d())(v().outputOnly,"keyRelease",new(i().SFString)),new(d())(v().outputOnly,"isActive",new(i().SFBool))]),enumerable:!0}});const g=D;o().add("KeySensor","x_ite/Components/KeyDeviceSensor/KeySensor",g);const P=g;function O(e){m.call(this,e),this.addType(v().StringSensor)}Object.assign(Object.setPrototypeOf(O.prototype,m.prototype),{keydown(e){switch(e.preventDefault(),e.key){case"Backspace":this._isActive.getValue()&&this._deletionAllowed.getValue()&&this._enteredText.length&&(this._enteredText=this._enteredText.getValue().substr(0,this._enteredText.length-1));break;case"Enter":this._finalText=this._enteredText,this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Escape":this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Tab":break;default:(e.charCode||e.keyCode)&&1===e.key.length&&(this._isActive.getValue()||(this._isActive=!0,this._enteredText=""),this._enteredText=this._enteredText.getValue()+e.key)}}}),Object.defineProperties(O,{typeName:{value:"StringSensor",enumerable:!0},componentName:{value:"KeyDeviceSensor",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(k())([new(d())(v().inputOutput,"metadata",new(i().SFNode)),new(d())(v().inputOutput,"enabled",new(i().SFBool)(!0)),new(d())(v().inputOutput,"deletionAllowed",new(i().SFBool)(!0)),new(d())(v().outputOnly,"enteredText",new(i().SFString)),new(d())(v().outputOnly,"finalText",new(i().SFString)),new(d())(v().outputOnly,"isActive",new(i().SFBool))]),enumerable:!0}});const C=O;o().add("StringSensor","x_ite/Components/KeyDeviceSensor/StringSensor",C);const R=C;s().add({name:"KeyDeviceSensor",concreteNodes:[P,R],abstractNodes:[m],browserContext:_});const x=void 0;o().add("KeyDeviceSensor","assets/components/KeyDeviceSensor",x)})();
1
+ /* X_ITE v9.0.0 */(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var a in s)e.o(s,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:s[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Components");var s=e.n(t);const a=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Fields");var i=e.n(a);const n=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Namespace");var o=e.n(n);const r=Symbol(),c=Symbol(),l=Symbol();function y(){this[r]=new Set}Object.assign(y.prototype,{initialize(){const e=this.getElement();e.on("keydown.X3DKeyDeviceSensorContext",this[c].bind(this)),e.on("keyup.X3DKeyDeviceSensorContext",this[l].bind(this))},addKeyDeviceSensorNode(e){this[r].add(e)},removeKeyDeviceSensorNode(e){this[r].delete(e)},getKeyDeviceSensorNodes(){return this[r]},[c](e){for(const t of this[r])t.keydown(e)},[l](e){for(const t of this[r])t.keyup(e)}});const h=y;o().add("X3DKeyDeviceSensorContext","x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext",h);const _=h,b=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Base/X3DFieldDefinition");var d=e.n(b);const u=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Base/FieldDefinitionArray");var k=e.n(u);const K=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Components/Core/X3DSensorNode");var p=e.n(K);const S=window[Symbol.for("X_ITE.X3D-9.0.0")].require("x_ite/Base/X3DConstants");var v=e.n(S);function w(e){p().call(this,e),this.addType(v().X3DKeyDeviceSensorNode)}Object.assign(Object.setPrototypeOf(w.prototype,p().prototype),{initialize(){p().prototype.initialize.call(this),this.getLive().addInterest("set_live__",this),this.set_live__()},set_live__(){this.getLive().getValue()?(this._enabled.addInterest("set_enabled__",this),this._enabled.getValue()&&this.enable()):(this._enabled.removeInterest("set_enabled__",this),this.disable())},set_enabled__(){this._enabled.getValue()?this.enable():this.disable()},enable(){this.getBrowser().addKeyDeviceSensorNode(this)},disable(){this.getBrowser().removeKeyDeviceSensorNode(this),this.release()},keydown(){},keyup(){},release(){}}),Object.defineProperties(w,{typeName:{value:"X3DKeyDeviceSensorNode",enumerable:!0},componentName:{value:"KeyDeviceSensor",enumerable:!0}});const f=w;o().add("X3DKeyDeviceSensorNode","x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode",f);const m=f;function D(e){m.call(this,e),this.addType(v().KeySensor)}Object.assign(Object.setPrototypeOf(D.prototype,m.prototype),{keydown(e){switch(e.preventDefault(),this._isActive.getValue()||(this._isActive=!0),e.which){case 16:this._shiftKey=!0;break;case 17:this._controlKey=!0;break;case 18:this._altKey=!0;break;case 112:this._actionKeyPress=1;break;case 113:this._actionKeyPress=2;break;case 114:this._actionKeyPress=3;break;case 115:this._actionKeyPress=4;break;case 116:this._actionKeyPress=5;break;case 117:this._actionKeyPress=6;break;case 118:this._actionKeyPress=7;break;case 119:this._actionKeyPress=8;break;case 120:this._actionKeyPress=9;break;case 121:this._actionKeyPress=10;break;case 122:this._actionKeyPress=11;break;case 123:this._actionKeyPress=12;break;case 36:this._actionKeyPress=13;break;case 35:this._actionKeyPress=14;break;case 33:this._actionKeyPress=15;break;case 34:this._actionKeyPress=16;break;case 38:this._actionKeyPress=17;break;case 40:this._actionKeyPress=18;break;case 37:this._actionKeyPress=19;break;case 39:this._actionKeyPress=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyPress=String.fromCharCode(8);break;case"Delete":this._keyPress=String.fromCharCode(127);break;case"Enter":this._keyPress="\n";break;case"Escape":this._keyPress=String.fromCharCode(27);break;case"Tab":this._keyPress="\t";break;default:1===e.key.length&&(this._keyPress=e.key)}}},keyup(e){switch(e.preventDefault(),e.which){case 16:this._shiftKey=!1;break;case 17:this._controlKey=!1;break;case 18:this._altKey=!1;break;case 112:this._actionKeyRelease=1;break;case 113:this._actionKeyRelease=2;break;case 114:this._actionKeyRelease=3;break;case 115:this._actionKeyRelease=4;break;case 116:this._actionKeyRelease=5;break;case 117:this._actionKeyRelease=6;break;case 118:this._actionKeyRelease=7;break;case 119:this._actionKeyRelease=8;break;case 120:this._actionKeyRelease=9;break;case 121:this._actionKeyRelease=10;break;case 122:this._actionKeyRelease=11;break;case 123:this._actionKeyRelease=12;break;case 36:this._actionKeyRelease=13;break;case 35:this._actionKeyRelease=14;break;case 33:this._actionKeyRelease=15;break;case 34:this._actionKeyRelease=16;break;case 38:this._actionKeyRelease=17;break;case 40:this._actionKeyRelease=18;break;case 37:this._actionKeyRelease=19;break;case 39:this._actionKeyRelease=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyRelease=String.fromCharCode(8);break;case"Delete":this._keyRelease=String.fromCharCode(127);break;case"Enter":this._keyRelease="\n";break;case"Escape":this._keyRelease=String.fromCharCode(27);break;case"Tab":this._keyRelease="\t";break;default:1===e.key.length&&(this._keyRelease=e.key)}}this._isActive.getValue()&&(this._isActive=!1)},release(){this._shiftKey.getValue()&&(this._shiftKey=!1),this._controlKey.getValue()&&(this._controlKey=!1),this._altKey.getValue()&&(this._altKey=!1)}}),Object.defineProperties(D,{typeName:{value:"KeySensor",enumerable:!0},componentName:{value:"KeyDeviceSensor",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(k())([new(d())(v().inputOutput,"metadata",new(i().SFNode)),new(d())(v().inputOutput,"enabled",new(i().SFBool)(!0)),new(d())(v().outputOnly,"controlKey",new(i().SFBool)),new(d())(v().outputOnly,"shiftKey",new(i().SFBool)),new(d())(v().outputOnly,"altKey",new(i().SFBool)),new(d())(v().outputOnly,"actionKeyPress",new(i().SFInt32)),new(d())(v().outputOnly,"actionKeyRelease",new(i().SFInt32)),new(d())(v().outputOnly,"keyPress",new(i().SFString)),new(d())(v().outputOnly,"keyRelease",new(i().SFString)),new(d())(v().outputOnly,"isActive",new(i().SFBool))]),enumerable:!0}});const g=D;o().add("KeySensor","x_ite/Components/KeyDeviceSensor/KeySensor",g);const P=g;function O(e){m.call(this,e),this.addType(v().StringSensor)}Object.assign(Object.setPrototypeOf(O.prototype,m.prototype),{keydown(e){switch(e.preventDefault(),e.key){case"Backspace":this._isActive.getValue()&&this._deletionAllowed.getValue()&&this._enteredText.length&&(this._enteredText=this._enteredText.getValue().substr(0,this._enteredText.length-1));break;case"Enter":this._finalText=this._enteredText,this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Escape":this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Tab":break;default:(e.charCode||e.keyCode)&&1===e.key.length&&(this._isActive.getValue()||(this._isActive=!0,this._enteredText=""),this._enteredText=this._enteredText.getValue()+e.key)}}}),Object.defineProperties(O,{typeName:{value:"StringSensor",enumerable:!0},componentName:{value:"KeyDeviceSensor",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(k())([new(d())(v().inputOutput,"metadata",new(i().SFNode)),new(d())(v().inputOutput,"enabled",new(i().SFBool)(!0)),new(d())(v().inputOutput,"deletionAllowed",new(i().SFBool)(!0)),new(d())(v().outputOnly,"enteredText",new(i().SFString)),new(d())(v().outputOnly,"finalText",new(i().SFString)),new(d())(v().outputOnly,"isActive",new(i().SFBool))]),enumerable:!0}});const C=O;o().add("StringSensor","x_ite/Components/KeyDeviceSensor/StringSensor",C);const R=C;s().add({name:"KeyDeviceSensor",concreteNodes:[P,R],abstractNodes:[m],browserContext:_});const x=void 0;o().add("KeyDeviceSensor","assets/components/KeyDeviceSensor",x)})();
@@ -1,11 +1,11 @@
1
- /* X_ITE v8.12.4 */(() => { // webpackBootstrap
1
+ /* X_ITE v9.0.0 */(() => { // webpackBootstrap
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
5
  /***/ 355:
6
6
  /***/ ((module) => {
7
7
 
8
- module.exports = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("lib/jquery");
8
+ module.exports = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("lib/jquery");
9
9
 
10
10
  /***/ })
11
11
 
@@ -73,22 +73,22 @@ var __webpack_exports__ = {};
73
73
  // UNUSED EXPORTS: default
74
74
 
75
75
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
76
- const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components");
76
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components");
77
77
  var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
78
78
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/TextureProperties\")"
79
- const TextureProperties_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Texturing/TextureProperties");
79
+ const TextureProperties_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Texturing/TextureProperties");
80
80
  var TextureProperties_default = /*#__PURE__*/__webpack_require__.n(TextureProperties_namespaceObject);
81
81
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
82
- const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("standard/Math/Numbers/Vector3");
82
+ const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Math/Numbers/Vector3");
83
83
  var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
84
84
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
85
- const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("standard/Math/Numbers/Matrix4");
85
+ const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Math/Numbers/Matrix4");
86
86
  var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
87
87
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/ViewVolume\")"
88
- const ViewVolume_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("standard/Math/Geometry/ViewVolume");
88
+ const ViewVolume_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Math/Geometry/ViewVolume");
89
89
  var ViewVolume_default = /*#__PURE__*/__webpack_require__.n(ViewVolume_namespaceObject);
90
90
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
91
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Namespace");
91
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Namespace");
92
92
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
93
93
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Layout/X3DLayoutContext.js
94
94
  /*******************************************************************************
@@ -146,8 +146,7 @@ var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceOb
146
146
  const
147
147
  _screenTextureProperties = Symbol ();
148
148
 
149
- function X3DLayoutContext ()
150
- { }
149
+ function X3DLayoutContext () { }
151
150
 
152
151
  Object .assign (X3DLayoutContext .prototype,
153
152
  {
@@ -227,19 +226,19 @@ const __default__ = X3DLayoutContext;
227
226
  Namespace_default().add ("X3DLayoutContext", "x_ite/Browser/Layout/X3DLayoutContext", __default__);
228
227
  /* harmony default export */ const Layout_X3DLayoutContext = (__default__);
229
228
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
230
- const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Fields");
229
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Fields");
231
230
  var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
232
231
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
233
- const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Base/X3DFieldDefinition");
232
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Base/X3DFieldDefinition");
234
233
  var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
235
234
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
236
- const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Base/FieldDefinitionArray");
235
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Base/FieldDefinitionArray");
237
236
  var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
238
237
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
239
- const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Core/X3DChildNode");
238
+ const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Core/X3DChildNode");
240
239
  var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
241
240
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
242
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Base/X3DConstants");
241
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Base/X3DConstants");
243
242
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
244
243
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/X3DLayoutNode.js
245
244
  /*******************************************************************************
@@ -321,13 +320,13 @@ const X3DLayoutNode_default_ = X3DLayoutNode;
321
320
  Namespace_default().add ("X3DLayoutNode", "x_ite/Components/Layout/X3DLayoutNode", X3DLayoutNode_default_);
322
321
  /* harmony default export */ const Layout_X3DLayoutNode = (X3DLayoutNode_default_);
323
322
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
324
- const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Base/X3DCast");
323
+ const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Base/X3DCast");
325
324
  var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
326
325
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector2\")"
327
- const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("standard/Math/Numbers/Vector2");
326
+ const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Math/Numbers/Vector2");
328
327
  var Vector2_default = /*#__PURE__*/__webpack_require__.n(Vector2_namespaceObject);
329
328
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
330
- const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("standard/Math/Numbers/Rotation4");
329
+ const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Math/Numbers/Rotation4");
331
330
  var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
332
331
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/Layout.js
333
332
  /*******************************************************************************
@@ -977,10 +976,10 @@ const Layout_default_ = Layout;
977
976
  Namespace_default().add ("Layout", "x_ite/Components/Layout/Layout", Layout_default_);
978
977
  /* harmony default export */ const Layout_Layout = (Layout_default_);
979
978
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
980
- const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
979
+ const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
981
980
  var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
982
981
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
983
- const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Rendering/TraverseType");
982
+ const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Rendering/TraverseType");
984
983
  var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
985
984
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/LayoutGroup.js
986
985
  /*******************************************************************************
@@ -1176,10 +1175,10 @@ const LayoutGroup_default_ = LayoutGroup;
1176
1175
  Namespace_default().add ("LayoutGroup", "x_ite/Components/Layout/LayoutGroup", LayoutGroup_default_);
1177
1176
  /* harmony default export */ const Layout_LayoutGroup = (LayoutGroup_default_);
1178
1177
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Layering/X3DLayerNode\")"
1179
- const X3DLayerNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Layering/X3DLayerNode");
1178
+ const X3DLayerNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Layering/X3DLayerNode");
1180
1179
  var X3DLayerNode_default = /*#__PURE__*/__webpack_require__.n(X3DLayerNode_namespaceObject);
1181
1180
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Navigation/OrthoViewpoint\")"
1182
- const OrthoViewpoint_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Navigation/OrthoViewpoint");
1181
+ const OrthoViewpoint_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Navigation/OrthoViewpoint");
1183
1182
  var OrthoViewpoint_default = /*#__PURE__*/__webpack_require__.n(OrthoViewpoint_namespaceObject);
1184
1183
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/LayoutLayer.js
1185
1184
  /*******************************************************************************
@@ -1311,22 +1310,25 @@ const LayoutLayer_default_ = LayoutLayer;
1311
1310
  Namespace_default().add ("LayoutLayer", "x_ite/Components/Layout/LayoutLayer", LayoutLayer_default_);
1312
1311
  /* harmony default export */ const Layout_LayoutLayer = (LayoutLayer_default_);
1313
1312
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Text/X3DFontStyleNode\")"
1314
- const X3DFontStyleNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Text/X3DFontStyleNode");
1313
+ const X3DFontStyleNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Text/X3DFontStyleNode");
1315
1314
  var X3DFontStyleNode_default = /*#__PURE__*/__webpack_require__.n(X3DFontStyleNode_namespaceObject);
1316
1315
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Text/X3DTextGeometry\")"
1317
- const X3DTextGeometry_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Browser/Text/X3DTextGeometry");
1316
+ const X3DTextGeometry_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Browser/Text/X3DTextGeometry");
1318
1317
  var X3DTextGeometry_default = /*#__PURE__*/__webpack_require__.n(X3DTextGeometry_namespaceObject);
1319
1318
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Text/TextAlignment\")"
1320
- const TextAlignment_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Browser/Text/TextAlignment");
1319
+ const TextAlignment_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Browser/Text/TextAlignment");
1321
1320
  var TextAlignment_default = /*#__PURE__*/__webpack_require__.n(TextAlignment_namespaceObject);
1322
1321
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/PixelTexture\")"
1323
- const PixelTexture_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("x_ite/Components/Texturing/PixelTexture");
1322
+ const PixelTexture_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Texturing/PixelTexture");
1324
1323
  var PixelTexture_default = /*#__PURE__*/__webpack_require__.n(PixelTexture_namespaceObject);
1324
+ ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DGeometryNode\")"
1325
+ const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Rendering/X3DGeometryNode");
1326
+ var X3DGeometryNode_default = /*#__PURE__*/__webpack_require__.n(X3DGeometryNode_namespaceObject);
1325
1327
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box3\")"
1326
- const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("standard/Math/Geometry/Box3");
1328
+ const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Math/Geometry/Box3");
1327
1329
  var Box3_default = /*#__PURE__*/__webpack_require__.n(Box3_namespaceObject);
1328
1330
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithm\")"
1329
- const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.4")] .require ("standard/Math/Algorithm");
1331
+ const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Math/Algorithm");
1330
1332
  var Algorithm_default = /*#__PURE__*/__webpack_require__.n(Algorithm_namespaceObject);
1331
1333
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Layout/ScreenText.js
1332
1334
  /* provided dependency */ var $ = __webpack_require__(355);
@@ -1392,7 +1394,7 @@ function ScreenText (text, fontStyle)
1392
1394
 
1393
1395
  text .setTransparent (true);
1394
1396
 
1395
- this .texCoordArray = new (Fields_default()).MFFloat ();
1397
+ this .texCoordArray = X3DGeometryNode_default().createArray ();
1396
1398
  this .textureNode = new (PixelTexture_default()) (text .getExecutionContext ());
1397
1399
  this .canvas = $("<canvas></canvas>");
1398
1400
  this .context = this .canvas [0] .getContext ("2d", { willReadFrequently: true });
@@ -1636,7 +1638,7 @@ Object .assign (Object .setPrototypeOf (ScreenText .prototype, (X3DTextGeometry_
1636
1638
  // If the canvas is to large imageData is null.
1637
1639
 
1638
1640
  if (imageData)
1639
- this .textureNode .setTexture (canvas .width, canvas .height, true, new Uint8Array (imageData .data .buffer), false);
1641
+ this .textureNode .setTextureFromData (canvas .width, canvas .height, true, true, new Uint8Array (imageData .data .buffer));
1640
1642
  else
1641
1643
  this .textureNode .clear ();
1642
1644
  };
@@ -1822,7 +1824,7 @@ Object .assign (Object .setPrototypeOf (ScreenFontStyle .prototype, (X3DFontStyl
1822
1824
  },
1823
1825
  getScale ()
1824
1826
  {
1825
- return this ._pointSize .getValue () * this .getBrowser () .getPixelPerPoint ();
1827
+ return this ._pointSize .getValue () * this .getBrowser () .getPixelsPerPoint ();
1826
1828
  },
1827
1829
  });
1828
1830