x_ite 10.0.3 → 10.0.4

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 (48) hide show
  1. package/README.md +4 -4
  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 +25 -25
  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 +18 -18
  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 +27 -27
  21. package/dist/assets/components/Layout.min.js +1 -1
  22. package/dist/assets/components/NURBS.js +23 -23
  23. package/dist/assets/components/NURBS.min.js +1 -1
  24. package/dist/assets/components/ParticleSystems.js +26 -26
  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 +38 -38
  31. package/dist/assets/components/Scripting.min.js +1 -1
  32. package/dist/assets/components/Text.js +24 -24
  33. package/dist/assets/components/Text.min.js +1 -1
  34. package/dist/assets/components/TextureProjection.js +15 -15
  35. package/dist/assets/components/TextureProjection.min.js +1 -1
  36. package/dist/assets/components/Texturing3D.js +27 -27
  37. package/dist/assets/components/Texturing3D.min.js +1 -1
  38. package/dist/assets/components/VolumeRendering.js +22 -20
  39. package/dist/assets/components/VolumeRendering.min.js +1 -1
  40. package/dist/assets/components/X_ITE.js +19 -19
  41. package/dist/assets/components/X_ITE.min.js +1 -1
  42. package/dist/x_ite.css +1 -1
  43. package/dist/x_ite.js +56 -56
  44. package/dist/x_ite.min.js +1 -1
  45. package/dist/x_ite.min.mjs +1 -1
  46. package/dist/x_ite.mjs +56 -56
  47. package/dist/x_ite.zip +0 -0
  48. package/package.json +1 -1
package/README.md CHANGED
@@ -29,10 +29,10 @@ jsDelivr is an open-source content delivery network (CDN) renowned for its no-co
29
29
  If you are going to use X_ITE in a production environment, you should use a fixed version of X_ITE. You can get a list of all available versions [here on npm](https://www.npmjs.com/package/x_ite?activeTab=versions).
30
30
 
31
31
  ```html
32
- <script src="https://cdn.jsdelivr.net/npm/x_ite@10.0.3/dist/x_ite.min.js"></script>
32
+ <script src="https://cdn.jsdelivr.net/npm/x_ite@10.0.4/dist/x_ite.min.js"></script>
33
33
  <!-- or as ES module for use in scripts -->
34
34
  <script type="module">
35
- import X3D from "https://cdn.jsdelivr.net/npm/x_ite@10.0.3/dist/x_ite.min.mjs";
35
+ import X3D from "https://cdn.jsdelivr.net/npm/x_ite@10.0.4/dist/x_ite.min.mjs";
36
36
  </script>
37
37
  ```
38
38
 
@@ -45,7 +45,7 @@ This script initializes an X3D canvas within an HTML page, configuring it to con
45
45
  ### Declarative Syntax
46
46
 
47
47
  ```html
48
- <script src="https://cdn.jsdelivr.net/npm/x_ite@10.0.3/dist/x_ite.min.js"></script>
48
+ <script src="https://cdn.jsdelivr.net/npm/x_ite@10.0.4/dist/x_ite.min.js"></script>
49
49
  <x3d-canvas>
50
50
  <X3D profile='Interchange' version='4.0'>
51
51
  <head>
@@ -84,7 +84,7 @@ The same scene can also be created using pure JavaScript:
84
84
 
85
85
  ```html
86
86
  <script type="module">
87
- import X3D from "https://cdn.jsdelivr.net/npm/x_ite@10.0.3/dist/x_ite.min.mjs";
87
+ import X3D from "https://cdn.jsdelivr.net/npm/x_ite@10.0.4/dist/x_ite.min.mjs";
88
88
 
89
89
  const
90
90
  browser = X3D .getBrowser (),
@@ -1,4 +1,4 @@
1
- /* X_ITE v10.0.3 */(() => { // webpackBootstrap
1
+ /* X_ITE v10.0.4 */(() => { // webpackBootstrap
2
2
  /******/ "use strict";
3
3
  /******/ // The require scope
4
4
  /******/ var __webpack_require__ = {};
@@ -39,31 +39,31 @@ 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-10.0.3")] .require ("x_ite/Components");
42
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .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-10.0.3")] .require ("x_ite/Fields");
45
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .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-10.0.3")] .require ("x_ite/Base/X3DFieldDefinition");
48
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .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-10.0.3")] .require ("x_ite/Base/FieldDefinitionArray");
51
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .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/Layering/X3DLayerNode\")"
54
- const X3DLayerNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Components/Layering/X3DLayerNode");
54
+ const X3DLayerNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Components/Layering/X3DLayerNode");
55
55
  var X3DLayerNode_default = /*#__PURE__*/__webpack_require__.n(X3DLayerNode_namespaceObject);
56
56
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Navigation/Viewpoint\")"
57
- const Viewpoint_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Components/Navigation/Viewpoint");
57
+ const Viewpoint_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Components/Navigation/Viewpoint");
58
58
  var Viewpoint_default = /*#__PURE__*/__webpack_require__.n(Viewpoint_namespaceObject);
59
59
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/Group\")"
60
- const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Components/Grouping/Group");
60
+ const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Components/Grouping/Group");
61
61
  var Group_default = /*#__PURE__*/__webpack_require__.n(Group_namespaceObject);
62
62
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
63
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Base/X3DConstants");
63
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Base/X3DConstants");
64
64
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
65
65
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
66
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Namespace");
66
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Namespace");
67
67
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
68
68
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Annotation/AnnotationLayer.js
69
69
  /*******************************************************************************
@@ -180,7 +180,7 @@ const __default__ = AnnotationLayer;
180
180
  Namespace_default().add ("AnnotationLayer", "x_ite/Components/Annotation/AnnotationLayer", __default__);
181
181
  /* harmony default export */ const Annotation_AnnotationLayer = (__default__);
182
182
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
183
- const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Components/Core/X3DChildNode");
183
+ const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Components/Core/X3DChildNode");
184
184
  var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
185
185
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Annotation/AnnotationTarget.js
186
186
  /*******************************************************************************
@@ -292,7 +292,7 @@ const AnnotationTarget_default_ = AnnotationTarget;
292
292
  Namespace_default().add ("AnnotationTarget", "x_ite/Components/Annotation/AnnotationTarget", AnnotationTarget_default_);
293
293
  /* harmony default export */ const Annotation_AnnotationTarget = (AnnotationTarget_default_);
294
294
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
295
- const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
295
+ const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
296
296
  var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
297
297
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Annotation/X3DAnnotationNode.js
298
298
  /*******************************************************************************
@@ -504,7 +504,7 @@ const GroupAnnotation_default_ = GroupAnnotation;
504
504
  Namespace_default().add ("GroupAnnotation", "x_ite/Components/Annotation/GroupAnnotation", GroupAnnotation_default_);
505
505
  /* harmony default export */ const Annotation_GroupAnnotation = (GroupAnnotation_default_);
506
506
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Networking/X3DUrlObject\")"
507
- const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Components/Networking/X3DUrlObject");
507
+ const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Components/Networking/X3DUrlObject");
508
508
  var X3DUrlObject_default = /*#__PURE__*/__webpack_require__.n(X3DUrlObject_namespaceObject);
509
509
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Annotation/IconAnnotation.js
510
510
  /*******************************************************************************
@@ -1 +1 @@
1
- /* X_ITE v10.0.3 */(()=>{"use strict";var e={n:n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return e.d(t,{a:t}),t},d:(n,t)=>{for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n)};const n=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Components");var t=e.n(n);const o=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Fields");var i=e.n(o);const a=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(a);const p=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Base/FieldDefinitionArray");var l=e.n(p);const u=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Components/Layering/X3DLayerNode");var s=e.n(u);const c=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Components/Navigation/Viewpoint");var d=e.n(c);const w=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Components/Grouping/Group");var m=e.n(w);const y=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Base/X3DConstants");var b=e.n(y);const f=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Namespace");var O=e.n(f);function v(e){s().call(this,e,new(d())(e),new(m())(e)),this.addType(b().AnnotationLayer)}Object.assign(Object.setPrototypeOf(v.prototype,s().prototype),{initialize(){s().prototype.initialize.call(this)}}),Object.defineProperties(v,{typeName:{value:"AnnotationLayer",enumerable:!0},componentInfo:{value:Object.freeze({name:"Annotation",level:1}),enumerable:!0},containerField:{value:"layers",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(b().inputOutput,"metadata",new(i().SFNode)),new(r())(b().inputOutput,"isPickable",new(i().SFBool)(!0)),new(r())(b().inputOutput,"layoutPolicy",new(i().MFString)),new(r())(b().inputOutput,"shownGroupID",new(i().MFString)),new(r())(b().inputOutput,"viewport",new(i().SFNode))]),enumerable:!0}});const S=v;O().add("AnnotationLayer","x_ite/Components/Annotation/AnnotationLayer",S);const F=S,A=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Components/Core/X3DChildNode");var h=e.n(A);function g(e){h().call(this,e),this.addType(b().AnnotationTarget)}Object.assign(Object.setPrototypeOf(g.prototype,h().prototype),{initialize(){h().prototype.initialize.call(this)}}),Object.defineProperties(g,{typeName:{value:"AnnotationTarget",enumerable:!0},componentInfo:{value:Object.freeze({name:"Annotation",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(b().inputOutput,"metadata",new(i().SFNode)),new(r())(b().inputOutput,"referencePoint",new(i().SFVec3f)),new(r())(b().inputOutput,"leadLineStyle",new(i().SFNode)),new(r())(b().inputOutput,"marker",new(i().SFNode)),new(r())(b().inputOutput,"annotations",new(i().MFNode))]),enumerable:!0}});const j=g;O().add("AnnotationTarget","x_ite/Components/Annotation/AnnotationTarget",j);const D=j,N=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Components/Grouping/X3DGroupingNode");var I=e.n(N);function X(e){h().call(this,e),this.addType(b().X3DAnnotationNode)}Object.assign(Object.setPrototypeOf(X.prototype,h().prototype),{initialize(){h().prototype.initialize.call(this)}}),Object.defineProperties(X,{typeName:{value:"X3DAnnotationNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"Annotation",level:1}),enumerable:!0}});const _=X;O().add("X3DAnnotationNode","x_ite/Components/Annotation/X3DAnnotationNode",_);const z=_;function T(e){I().call(this,e),z.call(this,e),this.addType(b().GroupAnnotation)}Object.assign(Object.setPrototypeOf(T.prototype,I().prototype),z.prototype,{initialize(){I().prototype.initialize.call(this),z.prototype.initialize.call(this)},dispose(){z.prototype.dispose.call(this),I().prototype.dispose.call(this)}}),Object.defineProperties(T,{typeName:{value:"GroupAnnotation",enumerable:!0},componentInfo:{value:Object.freeze({name:"Annotation",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(b().inputOutput,"metadata",new(i().SFNode)),new(r())(b().inputOutput,"enabled",new(i().SFBool)(!0)),new(r())(b().inputOutput,"annotationGroupID",new(i().SFString)),new(r())(b().inputOutput,"displayPolicy",new(i().SFString)("NEVER")),new(r())(b().inputOutput,"visible",new(i().SFBool)(!0)),new(r())(b().inputOutput,"bboxDisplay",new(i().SFBool)),new(r())(b().initializeOnly,"bboxSize",new(i().SFVec3f)(-1,-1,-1)),new(r())(b().initializeOnly,"bboxCenter",new(i().SFVec3f)),new(r())(b().inputOnly,"addChildren",new(i().MFNode)),new(r())(b().inputOnly,"removeChildren",new(i().MFNode)),new(r())(b().inputOutput,"children",new(i().MFNode))]),enumerable:!0}});const x=T;O().add("GroupAnnotation","x_ite/Components/Annotation/GroupAnnotation",x);const P=x,C=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Components/Networking/X3DUrlObject");var E=e.n(C);function R(e){z.call(this,e),E().call(this,e),this.addType(b().IconAnnotation)}Object.assign(Object.setPrototypeOf(R.prototype,z.prototype),E().prototype,{initialize(){z.prototype.initialize.call(this),E().prototype.initialize.call(this)},requestImmediateLoad(e=!0){},dispose(){E().prototype.dispose.call(this),z.prototype.dispose.call(this)}}),Object.defineProperties(R,{typeName:{value:"IconAnnotation",enumerable:!0},componentInfo:{value:Object.freeze({name:"Annotation",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(b().inputOutput,"metadata",new(i().SFNode)),new(r())(b().inputOutput,"enabled",new(i().SFBool)(!0)),new(r())(b().inputOutput,"annotationGroupID",new(i().SFString)),new(r())(b().inputOutput,"displayPolicy",new(i().SFString)("NEVER")),new(r())(b().inputOutput,"url",new(i().MFString)),new(r())(b().inputOutput,"autoRefresh",new(i().SFTime)),new(r())(b().inputOutput,"autoRefreshTimeLimit",new(i().SFTime)(3600))]),enumerable:!0}});const q=R;O().add("IconAnnotation","x_ite/Components/Annotation/IconAnnotation",q);const G=q;function L(e){z.call(this,e),this.addType(b().TextAnnotation)}Object.assign(Object.setPrototypeOf(L.prototype,z.prototype),{initialize(){z.prototype.initialize.call(this)}}),Object.defineProperties(L,{typeName:{value:"TextAnnotation",enumerable:!0},componentInfo:{value:Object.freeze({name:"Annotation",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(b().inputOutput,"metadata",new(i().SFNode)),new(r())(b().inputOutput,"enabled",new(i().SFBool)(!0)),new(r())(b().inputOutput,"annotationGroupID",new(i().SFString)),new(r())(b().inputOutput,"displayPolicy",new(i().SFString)("NEVER")),new(r())(b().inputOutput,"contentType",new(i().SFString)("text/plain")),new(r())(b().inputOutput,"text",new(i().SFString))]),enumerable:!0}});const B=L;O().add("TextAnnotation","x_ite/Components/Annotation/TextAnnotation",B);const M=B;function V(e){z.call(this,e),this.addType(b().URLAnnotation)}Object.assign(Object.setPrototypeOf(V.prototype,z.prototype),{initialize(){z.prototype.initialize.call(this)}}),Object.defineProperties(V,{typeName:{value:"URLAnnotation",enumerable:!0},componentInfo:{value:Object.freeze({name:"Annotation",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(b().inputOutput,"metadata",new(i().SFNode)),new(r())(b().inputOutput,"enabled",new(i().SFBool)(!0)),new(r())(b().inputOutput,"annotationGroupID",new(i().SFString)),new(r())(b().inputOutput,"displayPolicy",new(i().SFString)("NEVER")),new(r())(b().inputOutput,"url",new(i().MFString))]),enumerable:!0}});const U=V;O().add("URLAnnotation","x_ite/Components/Annotation/URLAnnotation",U);const k=U;t().add({name:"Annotation",concreteNodes:[F,D,P,G,M,k],abstractNodes:[z]});const H=void 0;O().add("Annotation","assets/components/Annotation",H)})();
1
+ /* X_ITE v10.0.4 */(()=>{"use strict";var e={n:n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return e.d(t,{a:t}),t},d:(n,t)=>{for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n)};const n=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Components");var t=e.n(n);const o=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Fields");var i=e.n(o);const a=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(a);const p=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Base/FieldDefinitionArray");var l=e.n(p);const u=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Components/Layering/X3DLayerNode");var s=e.n(u);const c=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Components/Navigation/Viewpoint");var d=e.n(c);const w=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Components/Grouping/Group");var m=e.n(w);const y=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Base/X3DConstants");var b=e.n(y);const f=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Namespace");var O=e.n(f);function v(e){s().call(this,e,new(d())(e),new(m())(e)),this.addType(b().AnnotationLayer)}Object.assign(Object.setPrototypeOf(v.prototype,s().prototype),{initialize(){s().prototype.initialize.call(this)}}),Object.defineProperties(v,{typeName:{value:"AnnotationLayer",enumerable:!0},componentInfo:{value:Object.freeze({name:"Annotation",level:1}),enumerable:!0},containerField:{value:"layers",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(b().inputOutput,"metadata",new(i().SFNode)),new(r())(b().inputOutput,"isPickable",new(i().SFBool)(!0)),new(r())(b().inputOutput,"layoutPolicy",new(i().MFString)),new(r())(b().inputOutput,"shownGroupID",new(i().MFString)),new(r())(b().inputOutput,"viewport",new(i().SFNode))]),enumerable:!0}});const S=v;O().add("AnnotationLayer","x_ite/Components/Annotation/AnnotationLayer",S);const F=S,A=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Components/Core/X3DChildNode");var h=e.n(A);function g(e){h().call(this,e),this.addType(b().AnnotationTarget)}Object.assign(Object.setPrototypeOf(g.prototype,h().prototype),{initialize(){h().prototype.initialize.call(this)}}),Object.defineProperties(g,{typeName:{value:"AnnotationTarget",enumerable:!0},componentInfo:{value:Object.freeze({name:"Annotation",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(b().inputOutput,"metadata",new(i().SFNode)),new(r())(b().inputOutput,"referencePoint",new(i().SFVec3f)),new(r())(b().inputOutput,"leadLineStyle",new(i().SFNode)),new(r())(b().inputOutput,"marker",new(i().SFNode)),new(r())(b().inputOutput,"annotations",new(i().MFNode))]),enumerable:!0}});const j=g;O().add("AnnotationTarget","x_ite/Components/Annotation/AnnotationTarget",j);const D=j,N=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Components/Grouping/X3DGroupingNode");var I=e.n(N);function X(e){h().call(this,e),this.addType(b().X3DAnnotationNode)}Object.assign(Object.setPrototypeOf(X.prototype,h().prototype),{initialize(){h().prototype.initialize.call(this)}}),Object.defineProperties(X,{typeName:{value:"X3DAnnotationNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"Annotation",level:1}),enumerable:!0}});const _=X;O().add("X3DAnnotationNode","x_ite/Components/Annotation/X3DAnnotationNode",_);const z=_;function T(e){I().call(this,e),z.call(this,e),this.addType(b().GroupAnnotation)}Object.assign(Object.setPrototypeOf(T.prototype,I().prototype),z.prototype,{initialize(){I().prototype.initialize.call(this),z.prototype.initialize.call(this)},dispose(){z.prototype.dispose.call(this),I().prototype.dispose.call(this)}}),Object.defineProperties(T,{typeName:{value:"GroupAnnotation",enumerable:!0},componentInfo:{value:Object.freeze({name:"Annotation",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(b().inputOutput,"metadata",new(i().SFNode)),new(r())(b().inputOutput,"enabled",new(i().SFBool)(!0)),new(r())(b().inputOutput,"annotationGroupID",new(i().SFString)),new(r())(b().inputOutput,"displayPolicy",new(i().SFString)("NEVER")),new(r())(b().inputOutput,"visible",new(i().SFBool)(!0)),new(r())(b().inputOutput,"bboxDisplay",new(i().SFBool)),new(r())(b().initializeOnly,"bboxSize",new(i().SFVec3f)(-1,-1,-1)),new(r())(b().initializeOnly,"bboxCenter",new(i().SFVec3f)),new(r())(b().inputOnly,"addChildren",new(i().MFNode)),new(r())(b().inputOnly,"removeChildren",new(i().MFNode)),new(r())(b().inputOutput,"children",new(i().MFNode))]),enumerable:!0}});const x=T;O().add("GroupAnnotation","x_ite/Components/Annotation/GroupAnnotation",x);const P=x,C=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Components/Networking/X3DUrlObject");var E=e.n(C);function R(e){z.call(this,e),E().call(this,e),this.addType(b().IconAnnotation)}Object.assign(Object.setPrototypeOf(R.prototype,z.prototype),E().prototype,{initialize(){z.prototype.initialize.call(this),E().prototype.initialize.call(this)},requestImmediateLoad(e=!0){},dispose(){E().prototype.dispose.call(this),z.prototype.dispose.call(this)}}),Object.defineProperties(R,{typeName:{value:"IconAnnotation",enumerable:!0},componentInfo:{value:Object.freeze({name:"Annotation",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(b().inputOutput,"metadata",new(i().SFNode)),new(r())(b().inputOutput,"enabled",new(i().SFBool)(!0)),new(r())(b().inputOutput,"annotationGroupID",new(i().SFString)),new(r())(b().inputOutput,"displayPolicy",new(i().SFString)("NEVER")),new(r())(b().inputOutput,"url",new(i().MFString)),new(r())(b().inputOutput,"autoRefresh",new(i().SFTime)),new(r())(b().inputOutput,"autoRefreshTimeLimit",new(i().SFTime)(3600))]),enumerable:!0}});const q=R;O().add("IconAnnotation","x_ite/Components/Annotation/IconAnnotation",q);const G=q;function L(e){z.call(this,e),this.addType(b().TextAnnotation)}Object.assign(Object.setPrototypeOf(L.prototype,z.prototype),{initialize(){z.prototype.initialize.call(this)}}),Object.defineProperties(L,{typeName:{value:"TextAnnotation",enumerable:!0},componentInfo:{value:Object.freeze({name:"Annotation",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(b().inputOutput,"metadata",new(i().SFNode)),new(r())(b().inputOutput,"enabled",new(i().SFBool)(!0)),new(r())(b().inputOutput,"annotationGroupID",new(i().SFString)),new(r())(b().inputOutput,"displayPolicy",new(i().SFString)("NEVER")),new(r())(b().inputOutput,"contentType",new(i().SFString)("text/plain")),new(r())(b().inputOutput,"text",new(i().SFString))]),enumerable:!0}});const B=L;O().add("TextAnnotation","x_ite/Components/Annotation/TextAnnotation",B);const M=B;function V(e){z.call(this,e),this.addType(b().URLAnnotation)}Object.assign(Object.setPrototypeOf(V.prototype,z.prototype),{initialize(){z.prototype.initialize.call(this)}}),Object.defineProperties(V,{typeName:{value:"URLAnnotation",enumerable:!0},componentInfo:{value:Object.freeze({name:"Annotation",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(b().inputOutput,"metadata",new(i().SFNode)),new(r())(b().inputOutput,"enabled",new(i().SFBool)(!0)),new(r())(b().inputOutput,"annotationGroupID",new(i().SFString)),new(r())(b().inputOutput,"displayPolicy",new(i().SFString)("NEVER")),new(r())(b().inputOutput,"url",new(i().MFString))]),enumerable:!0}});const U=V;O().add("URLAnnotation","x_ite/Components/Annotation/URLAnnotation",U);const k=U;t().add({name:"Annotation",concreteNodes:[F,D,P,G,M,k],abstractNodes:[z]});const H=void 0;O().add("Annotation","assets/components/Annotation",H)})();
@@ -1,4 +1,4 @@
1
- /* X_ITE v10.0.3 */(() => { // webpackBootstrap
1
+ /* X_ITE v10.0.4 */(() => { // webpackBootstrap
2
2
  /******/ "use strict";
3
3
  /******/ // The require scope
4
4
  /******/ var __webpack_require__ = {};
@@ -39,28 +39,28 @@ 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-10.0.3")] .require ("x_ite/Components");
42
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .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-10.0.3")] .require ("x_ite/Fields");
45
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .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-10.0.3")] .require ("x_ite/Base/X3DFieldDefinition");
48
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .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-10.0.3")] .require ("x_ite/Base/FieldDefinitionArray");
51
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .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/Grouping/X3DGroupingNode\")"
54
- const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
54
+ const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
55
55
  var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
56
56
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
57
- const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Components/Core/X3DChildNode");
57
+ const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Components/Core/X3DChildNode");
58
58
  var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
59
59
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
60
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Base/X3DConstants");
60
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Base/X3DConstants");
61
61
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
62
62
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
63
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Namespace");
63
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Namespace");
64
64
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
65
65
  ;// CONCATENATED MODULE: ./src/x_ite/Components/CADGeometry/X3DProductStructureChildNode.js
66
66
  /*******************************************************************************
@@ -254,13 +254,13 @@ const CADAssembly_default_ = CADAssembly;
254
254
  Namespace_default().add ("CADAssembly", "x_ite/Components/CADGeometry/CADAssembly", CADAssembly_default_);
255
255
  /* harmony default export */ const CADGeometry_CADAssembly = (CADAssembly_default_);
256
256
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
257
- const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
257
+ const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
258
258
  var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
259
259
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
260
- const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Rendering/TraverseType");
260
+ const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Rendering/TraverseType");
261
261
  var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
262
262
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
263
- const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Base/X3DCast");
263
+ const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Base/X3DCast");
264
264
  var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
265
265
  ;// CONCATENATED MODULE: ./src/x_ite/Components/CADGeometry/CADFace.js
266
266
  /*******************************************************************************
@@ -626,7 +626,7 @@ const CADLayer_default_ = CADLayer;
626
626
  Namespace_default().add ("CADLayer", "x_ite/Components/CADGeometry/CADLayer", CADLayer_default_);
627
627
  /* harmony default export */ const CADGeometry_CADLayer = (CADLayer_default_);
628
628
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DTransformNode\")"
629
- const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Components/Grouping/X3DTransformNode");
629
+ const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Components/Grouping/X3DTransformNode");
630
630
  var X3DTransformNode_default = /*#__PURE__*/__webpack_require__.n(X3DTransformNode_namespaceObject);
631
631
  ;// CONCATENATED MODULE: ./src/x_ite/Components/CADGeometry/CADPart.js
632
632
  /*******************************************************************************
@@ -746,7 +746,7 @@ const CADPart_default_ = CADPart;
746
746
  Namespace_default().add ("CADPart", "x_ite/Components/CADGeometry/CADPart", CADPart_default_);
747
747
  /* harmony default export */ const CADGeometry_CADPart = (CADPart_default_);
748
748
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DComposedGeometryNode\")"
749
- const X3DComposedGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Components/Rendering/X3DComposedGeometryNode");
749
+ const X3DComposedGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Components/Rendering/X3DComposedGeometryNode");
750
750
  var X3DComposedGeometryNode_default = /*#__PURE__*/__webpack_require__.n(X3DComposedGeometryNode_namespaceObject);
751
751
  ;// CONCATENATED MODULE: ./src/x_ite/Components/CADGeometry/IndexedQuadSet.js
752
752
  /*******************************************************************************
@@ -1 +1 @@
1
- /* X_ITE v10.0.3 */(()=>{"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-10.0.3")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Fields");var o=e.n(i);const r=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Base/X3DFieldDefinition");var a=e.n(r);const l=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Base/FieldDefinitionArray");var s=e.n(l);const u=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Components/Grouping/X3DGroupingNode");var d=e.n(u);const p=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Components/Core/X3DChildNode");var c=e.n(p);const b=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Base/X3DConstants");var w=e.n(b);const m=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Namespace");var y=e.n(m);function h(e){c().call(this,e),this.addType(w().X3DProductStructureChildNode)}Object.setPrototypeOf(h.prototype,c().prototype),Object.defineProperties(h,{typeName:{value:"X3DProductStructureChildNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"CADGeometry",level:2}),enumerable:!0}});const O=h;y().add("X3DProductStructureChildNode","x_ite/Components/CADGeometry/X3DProductStructureChildNode",O);const f=O;function _(e){d().call(this,e),f.call(this,e),this.addType(w().CADAssembly)}Object.assign(Object.setPrototypeOf(_.prototype,d().prototype),{}),Object.defineProperties(_,{typeName:{value:"CADAssembly",enumerable:!0},componentInfo:{value:Object.freeze({name:"CADGeometry",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.1",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(w().inputOutput,"metadata",new(o().SFNode)),new(a())(w().inputOutput,"name",new(o().SFString)),new(a())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(a())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(a())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(a())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(a())(w().inputOnly,"addChildren",new(o().MFNode)),new(a())(w().inputOnly,"removeChildren",new(o().MFNode)),new(a())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const S=_;y().add("CADAssembly","x_ite/Components/CADGeometry/CADAssembly",S);const v=S,D=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Components/Grouping/X3DBoundedObject");var N=e.n(D);const C=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Rendering/TraverseType");var F=e.n(C);const x=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Base/X3DCast");var g=e.n(x);function j(e){f.call(this,e),N().call(this,e),this.addType(w().CADFace),this.childNode=null,this.visibleNode=null,this.boundedObject=null}Object.assign(Object.setPrototypeOf(j.prototype,f.prototype),N().prototype,{initialize(){f.prototype.initialize.call(this),N().prototype.initialize.call(this),this._shape.addInterest("set_shape__",this),this.set_shape__()},getBBox(e,t){return this._bboxSize.getValue().equals(this.getDefaultBBoxSize())?this.visibleNode?.getBBox(e,t)??e.set():e.set(this._bboxSize.getValue(),this._bboxCenter.getValue())},set_shape__(){this.childNode&&(this.childNode._isCameraObject.removeInterest("set_cameraObject__",this),this.childNode._isPickableObject.removeInterest("set_transformSensors__",this),this.childNode._display.removeInterest("set_display__",this),this.childNode._bboxDisplay.removeInterest("set_bboxDisplay__",this)),this.childNode=null;const e=g()(w().X3DChildNode,this._shape);if(e){const t=e.getType();for(let n=t.length-1;n>=0;--n){switch(t[n]){case w().LOD:case w().Transform:case w().X3DShapeNode:e._isCameraObject.addInterest("set_cameraObject__",this),e._isPickableObject.addInterest("set_transformSensors__",this),e._display.addInterest("set_display__",this),e._bboxDisplay.addInterest("set_bboxDisplay__",this),this.childNode=e;break;default:continue}break}}this.childNode?delete this.traverse:this.traverse=Function.prototype,this.set_display__(),this.set_bboxDisplay__()},set_cameraObject__(){this.setCameraObject(this.visibleNode?.isCameraObject())},set_transformSensors__(){this.setPickableObject(this.visibleNode?.isPickableObject())},set_display__(){this.childNode?this.visibleNode=this.childNode._display.getValue()?this.childNode:null:this.visibleNode=null,this.set_cameraObject__(),this.set_transformSensors__()},set_bboxDisplay__(){this.childNode?this.boundedObject=this.childNode._bboxDisplay.getValue()?this.childNode:null:this.boundedObject=null},traverse(e,t){switch(e){case F().POINTER:case F().CAMERA:case F().SHADOW:return void this.visibleNode?.traverse(e,t);case F().PICKING:{const n=this.getBrowser().getPickingHierarchy();return n.push(this),this.visibleNode?.traverse(e,t),void n.pop()}case F().COLLISION:return void this.visibleNode?.traverse(e,t);case F().DISPLAY:return this.visibleNode?.traverse(e,t),void this.boundedObject?.displayBBox(e,t)}},dispose(){N().prototype.dispose.call(this),f.prototype.dispose.call(this)}}),Object.defineProperties(j,{typeName:{value:"CADFace",enumerable:!0},componentInfo:{value:Object.freeze({name:"CADGeometry",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.1",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(w().inputOutput,"metadata",new(o().SFNode)),new(a())(w().inputOutput,"name",new(o().SFString)),new(a())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(a())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(a())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(a())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(a())(w().inputOutput,"shape",new(o().SFNode))]),enumerable:!0}});const I=j;y().add("CADFace","x_ite/Components/CADGeometry/CADFace",I);const z=I;function A(e){d().call(this,e),this.addType(w().CADLayer)}Object.setPrototypeOf(A.prototype,d().prototype),Object.defineProperties(A,{typeName:{value:"CADLayer",enumerable:!0},componentInfo:{value:Object.freeze({name:"CADGeometry",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.1",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(w().inputOutput,"metadata",new(o().SFNode)),new(a())(w().inputOutput,"name",new(o().SFString)),new(a())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(a())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(a())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(a())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(a())(w().inputOnly,"addChildren",new(o().MFNode)),new(a())(w().inputOnly,"removeChildren",new(o().MFNode)),new(a())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const P=A;y().add("CADLayer","x_ite/Components/CADGeometry/CADLayer",P);const X=P,B=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Components/Grouping/X3DTransformNode");var T=e.n(B);function V(e){T().call(this,e),f.call(this,e),this.addType(w().CADPart)}Object.assign(Object.setPrototypeOf(V.prototype,T().prototype),{}),Object.defineProperties(V,{typeName:{value:"CADPart",enumerable:!0},componentInfo:{value:Object.freeze({name:"CADGeometry",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.1",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(w().inputOutput,"metadata",new(o().SFNode)),new(a())(w().inputOutput,"name",new(o().SFString)),new(a())(w().inputOutput,"translation",new(o().SFVec3f)),new(a())(w().inputOutput,"rotation",new(o().SFRotation)),new(a())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(a())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(a())(w().inputOutput,"center",new(o().SFVec3f)),new(a())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(a())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(a())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(a())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(a())(w().inputOnly,"addChildren",new(o().MFNode)),new(a())(w().inputOnly,"removeChildren",new(o().MFNode)),new(a())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const G=V;y().add("CADPart","x_ite/Components/CADGeometry/CADPart",G);const M=G,E=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Components/Rendering/X3DComposedGeometryNode");var q=e.n(E);function R(e){q().call(this,e),this.addType(w().IndexedQuadSet)}Object.assign(Object.setPrototypeOf(R.prototype,q().prototype),{initialize(){q().prototype.initialize.call(this),this._set_index.addFieldInterest(this._index)},getTriangleIndex(e){const t=e%6;return 4*Math.floor(e/6)+t%3+Math.floor(t/4)},getPolygonIndex(e){return this._index[e]},getVerticesPerPolygon:()=>4,getNumVertices(){return this._index.length},build(){let e=this._index.length;e-=e%4,q().prototype.build.call(this,4,e,6,e/4*6)}}),Object.defineProperties(R,{typeName:{value:"IndexedQuadSet",enumerable:!0},componentInfo:{value:Object.freeze({name:"CADGeometry",level:1}),enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.1",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(w().inputOutput,"metadata",new(o().SFNode)),new(a())(w().inputOnly,"set_index",new(o().MFInt32)),new(a())(w().initializeOnly,"solid",new(o().SFBool)(!0)),new(a())(w().initializeOnly,"ccw",new(o().SFBool)(!0)),new(a())(w().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(a())(w().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(a())(w().initializeOnly,"index",new(o().MFInt32)),new(a())(w().inputOutput,"attrib",new(o().MFNode)),new(a())(w().inputOutput,"fogCoord",new(o().SFNode)),new(a())(w().inputOutput,"color",new(o().SFNode)),new(a())(w().inputOutput,"texCoord",new(o().SFNode)),new(a())(w().inputOutput,"normal",new(o().SFNode)),new(a())(w().inputOutput,"tangent",new(o().SFNode)),new(a())(w().inputOutput,"coord",new(o().SFNode))]),enumerable:!0}});const L=R;y().add("IndexedQuadSet","x_ite/Components/CADGeometry/IndexedQuadSet",L);const Q=L;function k(e){q().call(this,e),this.addType(w().QuadSet)}Object.assign(Object.setPrototypeOf(k.prototype,q().prototype),{getTriangleIndex(e){const t=e%6;return 4*Math.floor(e/6)+t%3+Math.floor(t/4)},getVerticesPerPolygon:()=>4,getNumVertices(){return this.getCoord()?.getSize()},build(){if(!this.getCoord())return;let e=this.getCoord().getSize();e-=e%4,q().prototype.build.call(this,4,e,6,e/4*6)},createNormals(e,t){return this.createFaceNormals(e,t)}}),Object.defineProperties(k,{typeName:{value:"QuadSet",enumerable:!0},componentInfo:{value:Object.freeze({name:"CADGeometry",level:1}),enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.1",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(w().inputOutput,"metadata",new(o().SFNode)),new(a())(w().initializeOnly,"solid",new(o().SFBool)(!0)),new(a())(w().initializeOnly,"ccw",new(o().SFBool)(!0)),new(a())(w().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(a())(w().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(a())(w().inputOutput,"attrib",new(o().MFNode)),new(a())(w().inputOutput,"fogCoord",new(o().SFNode)),new(a())(w().inputOutput,"color",new(o().SFNode)),new(a())(w().inputOutput,"texCoord",new(o().SFNode)),new(a())(w().inputOutput,"normal",new(o().SFNode)),new(a())(w().inputOutput,"tangent",new(o().SFNode)),new(a())(w().inputOutput,"coord",new(o().SFNode))]),enumerable:!0}});const H=k;y().add("QuadSet","x_ite/Components/CADGeometry/QuadSet",H);const K=H;n().add({name:"CADGeometry",concreteNodes:[v,z,X,M,Q,K],abstractNodes:[f]});const W=void 0;y().add("CADGeometry","assets/components/CADGeometry",W)})();
1
+ /* X_ITE v10.0.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-10.0.4")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Fields");var o=e.n(i);const r=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Base/X3DFieldDefinition");var a=e.n(r);const l=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Base/FieldDefinitionArray");var s=e.n(l);const u=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Components/Grouping/X3DGroupingNode");var d=e.n(u);const p=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Components/Core/X3DChildNode");var c=e.n(p);const b=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Base/X3DConstants");var w=e.n(b);const m=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Namespace");var y=e.n(m);function h(e){c().call(this,e),this.addType(w().X3DProductStructureChildNode)}Object.setPrototypeOf(h.prototype,c().prototype),Object.defineProperties(h,{typeName:{value:"X3DProductStructureChildNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"CADGeometry",level:2}),enumerable:!0}});const O=h;y().add("X3DProductStructureChildNode","x_ite/Components/CADGeometry/X3DProductStructureChildNode",O);const f=O;function _(e){d().call(this,e),f.call(this,e),this.addType(w().CADAssembly)}Object.assign(Object.setPrototypeOf(_.prototype,d().prototype),{}),Object.defineProperties(_,{typeName:{value:"CADAssembly",enumerable:!0},componentInfo:{value:Object.freeze({name:"CADGeometry",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.1",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(w().inputOutput,"metadata",new(o().SFNode)),new(a())(w().inputOutput,"name",new(o().SFString)),new(a())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(a())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(a())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(a())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(a())(w().inputOnly,"addChildren",new(o().MFNode)),new(a())(w().inputOnly,"removeChildren",new(o().MFNode)),new(a())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const S=_;y().add("CADAssembly","x_ite/Components/CADGeometry/CADAssembly",S);const v=S,D=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Components/Grouping/X3DBoundedObject");var N=e.n(D);const C=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Rendering/TraverseType");var F=e.n(C);const x=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Base/X3DCast");var g=e.n(x);function j(e){f.call(this,e),N().call(this,e),this.addType(w().CADFace),this.childNode=null,this.visibleNode=null,this.boundedObject=null}Object.assign(Object.setPrototypeOf(j.prototype,f.prototype),N().prototype,{initialize(){f.prototype.initialize.call(this),N().prototype.initialize.call(this),this._shape.addInterest("set_shape__",this),this.set_shape__()},getBBox(e,t){return this._bboxSize.getValue().equals(this.getDefaultBBoxSize())?this.visibleNode?.getBBox(e,t)??e.set():e.set(this._bboxSize.getValue(),this._bboxCenter.getValue())},set_shape__(){this.childNode&&(this.childNode._isCameraObject.removeInterest("set_cameraObject__",this),this.childNode._isPickableObject.removeInterest("set_transformSensors__",this),this.childNode._display.removeInterest("set_display__",this),this.childNode._bboxDisplay.removeInterest("set_bboxDisplay__",this)),this.childNode=null;const e=g()(w().X3DChildNode,this._shape);if(e){const t=e.getType();for(let n=t.length-1;n>=0;--n){switch(t[n]){case w().LOD:case w().Transform:case w().X3DShapeNode:e._isCameraObject.addInterest("set_cameraObject__",this),e._isPickableObject.addInterest("set_transformSensors__",this),e._display.addInterest("set_display__",this),e._bboxDisplay.addInterest("set_bboxDisplay__",this),this.childNode=e;break;default:continue}break}}this.childNode?delete this.traverse:this.traverse=Function.prototype,this.set_display__(),this.set_bboxDisplay__()},set_cameraObject__(){this.setCameraObject(this.visibleNode?.isCameraObject())},set_transformSensors__(){this.setPickableObject(this.visibleNode?.isPickableObject())},set_display__(){this.childNode?this.visibleNode=this.childNode._display.getValue()?this.childNode:null:this.visibleNode=null,this.set_cameraObject__(),this.set_transformSensors__()},set_bboxDisplay__(){this.childNode?this.boundedObject=this.childNode._bboxDisplay.getValue()?this.childNode:null:this.boundedObject=null},traverse(e,t){switch(e){case F().POINTER:case F().CAMERA:case F().SHADOW:return void this.visibleNode?.traverse(e,t);case F().PICKING:{const n=this.getBrowser().getPickingHierarchy();return n.push(this),this.visibleNode?.traverse(e,t),void n.pop()}case F().COLLISION:return void this.visibleNode?.traverse(e,t);case F().DISPLAY:return this.visibleNode?.traverse(e,t),void this.boundedObject?.displayBBox(e,t)}},dispose(){N().prototype.dispose.call(this),f.prototype.dispose.call(this)}}),Object.defineProperties(j,{typeName:{value:"CADFace",enumerable:!0},componentInfo:{value:Object.freeze({name:"CADGeometry",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.1",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(w().inputOutput,"metadata",new(o().SFNode)),new(a())(w().inputOutput,"name",new(o().SFString)),new(a())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(a())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(a())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(a())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(a())(w().inputOutput,"shape",new(o().SFNode))]),enumerable:!0}});const I=j;y().add("CADFace","x_ite/Components/CADGeometry/CADFace",I);const z=I;function A(e){d().call(this,e),this.addType(w().CADLayer)}Object.setPrototypeOf(A.prototype,d().prototype),Object.defineProperties(A,{typeName:{value:"CADLayer",enumerable:!0},componentInfo:{value:Object.freeze({name:"CADGeometry",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.1",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(w().inputOutput,"metadata",new(o().SFNode)),new(a())(w().inputOutput,"name",new(o().SFString)),new(a())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(a())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(a())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(a())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(a())(w().inputOnly,"addChildren",new(o().MFNode)),new(a())(w().inputOnly,"removeChildren",new(o().MFNode)),new(a())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const P=A;y().add("CADLayer","x_ite/Components/CADGeometry/CADLayer",P);const X=P,B=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Components/Grouping/X3DTransformNode");var T=e.n(B);function V(e){T().call(this,e),f.call(this,e),this.addType(w().CADPart)}Object.assign(Object.setPrototypeOf(V.prototype,T().prototype),{}),Object.defineProperties(V,{typeName:{value:"CADPart",enumerable:!0},componentInfo:{value:Object.freeze({name:"CADGeometry",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.1",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(w().inputOutput,"metadata",new(o().SFNode)),new(a())(w().inputOutput,"name",new(o().SFString)),new(a())(w().inputOutput,"translation",new(o().SFVec3f)),new(a())(w().inputOutput,"rotation",new(o().SFRotation)),new(a())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(a())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(a())(w().inputOutput,"center",new(o().SFVec3f)),new(a())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(a())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(a())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(a())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(a())(w().inputOnly,"addChildren",new(o().MFNode)),new(a())(w().inputOnly,"removeChildren",new(o().MFNode)),new(a())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const G=V;y().add("CADPart","x_ite/Components/CADGeometry/CADPart",G);const M=G,E=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Components/Rendering/X3DComposedGeometryNode");var q=e.n(E);function R(e){q().call(this,e),this.addType(w().IndexedQuadSet)}Object.assign(Object.setPrototypeOf(R.prototype,q().prototype),{initialize(){q().prototype.initialize.call(this),this._set_index.addFieldInterest(this._index)},getTriangleIndex(e){const t=e%6;return 4*Math.floor(e/6)+t%3+Math.floor(t/4)},getPolygonIndex(e){return this._index[e]},getVerticesPerPolygon:()=>4,getNumVertices(){return this._index.length},build(){let e=this._index.length;e-=e%4,q().prototype.build.call(this,4,e,6,e/4*6)}}),Object.defineProperties(R,{typeName:{value:"IndexedQuadSet",enumerable:!0},componentInfo:{value:Object.freeze({name:"CADGeometry",level:1}),enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.1",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(w().inputOutput,"metadata",new(o().SFNode)),new(a())(w().inputOnly,"set_index",new(o().MFInt32)),new(a())(w().initializeOnly,"solid",new(o().SFBool)(!0)),new(a())(w().initializeOnly,"ccw",new(o().SFBool)(!0)),new(a())(w().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(a())(w().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(a())(w().initializeOnly,"index",new(o().MFInt32)),new(a())(w().inputOutput,"attrib",new(o().MFNode)),new(a())(w().inputOutput,"fogCoord",new(o().SFNode)),new(a())(w().inputOutput,"color",new(o().SFNode)),new(a())(w().inputOutput,"texCoord",new(o().SFNode)),new(a())(w().inputOutput,"normal",new(o().SFNode)),new(a())(w().inputOutput,"tangent",new(o().SFNode)),new(a())(w().inputOutput,"coord",new(o().SFNode))]),enumerable:!0}});const L=R;y().add("IndexedQuadSet","x_ite/Components/CADGeometry/IndexedQuadSet",L);const Q=L;function k(e){q().call(this,e),this.addType(w().QuadSet)}Object.assign(Object.setPrototypeOf(k.prototype,q().prototype),{getTriangleIndex(e){const t=e%6;return 4*Math.floor(e/6)+t%3+Math.floor(t/4)},getVerticesPerPolygon:()=>4,getNumVertices(){return this.getCoord()?.getSize()},build(){if(!this.getCoord())return;let e=this.getCoord().getSize();e-=e%4,q().prototype.build.call(this,4,e,6,e/4*6)},createNormals(e,t){return this.createFaceNormals(e,t)}}),Object.defineProperties(k,{typeName:{value:"QuadSet",enumerable:!0},componentInfo:{value:Object.freeze({name:"CADGeometry",level:1}),enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.1",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(w().inputOutput,"metadata",new(o().SFNode)),new(a())(w().initializeOnly,"solid",new(o().SFBool)(!0)),new(a())(w().initializeOnly,"ccw",new(o().SFBool)(!0)),new(a())(w().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(a())(w().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(a())(w().inputOutput,"attrib",new(o().MFNode)),new(a())(w().inputOutput,"fogCoord",new(o().SFNode)),new(a())(w().inputOutput,"color",new(o().SFNode)),new(a())(w().inputOutput,"texCoord",new(o().SFNode)),new(a())(w().inputOutput,"normal",new(o().SFNode)),new(a())(w().inputOutput,"tangent",new(o().SFNode)),new(a())(w().inputOutput,"coord",new(o().SFNode))]),enumerable:!0}});const H=k;y().add("QuadSet","x_ite/Components/CADGeometry/QuadSet",H);const K=H;n().add({name:"CADGeometry",concreteNodes:[v,z,X,M,Q,K],abstractNodes:[f]});const W=void 0;y().add("CADGeometry","assets/components/CADGeometry",W)})();
@@ -1,11 +1,11 @@
1
- /* X_ITE v10.0.3 */(() => { // webpackBootstrap
1
+ /* X_ITE v10.0.4 */(() => { // webpackBootstrap
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
5
  /***/ 823:
6
6
  /***/ ((module) => {
7
7
 
8
- module.exports = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("lib/jquery");
8
+ module.exports = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("lib/jquery");
9
9
 
10
10
  /***/ })
11
11
 
@@ -71,10 +71,10 @@ var __webpack_exports__ = {};
71
71
  // UNUSED EXPORTS: default
72
72
 
73
73
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
74
- const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Components");
74
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Components");
75
75
  var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
76
76
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
77
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Namespace");
77
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Namespace");
78
78
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
79
79
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/CubeMapTexturing/Panorama1.fs.js
80
80
  const __default__ = /* glsl */ `
@@ -163,19 +163,19 @@ const X3DCubeMapTexturingContext_default_ = X3DCubeMapTexturingContext;
163
163
  Namespace_default().add ("X3DCubeMapTexturingContext", "x_ite/Browser/CubeMapTexturing/X3DCubeMapTexturingContext", X3DCubeMapTexturingContext_default_);
164
164
  /* harmony default export */ const CubeMapTexturing_X3DCubeMapTexturingContext = (X3DCubeMapTexturingContext_default_);
165
165
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
166
- const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Fields");
166
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Fields");
167
167
  var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
168
168
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
169
- const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Base/X3DFieldDefinition");
169
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Base/X3DFieldDefinition");
170
170
  var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
171
171
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
172
- const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Base/FieldDefinitionArray");
172
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Base/FieldDefinitionArray");
173
173
  var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
174
174
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/X3DSingleTextureNode\")"
175
- const X3DSingleTextureNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Components/Texturing/X3DSingleTextureNode");
175
+ const X3DSingleTextureNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Components/Texturing/X3DSingleTextureNode");
176
176
  var X3DSingleTextureNode_default = /*#__PURE__*/__webpack_require__.n(X3DSingleTextureNode_namespaceObject);
177
177
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
178
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Base/X3DConstants");
178
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Base/X3DConstants");
179
179
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
180
180
  ;// CONCATENATED MODULE: ./src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js
181
181
  /*******************************************************************************
@@ -332,10 +332,10 @@ const X3DEnvironmentTextureNode_default_ = X3DEnvironmentTextureNode;
332
332
  Namespace_default().add ("X3DEnvironmentTextureNode", "x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode", X3DEnvironmentTextureNode_default_);
333
333
  /* harmony default export */ const CubeMapTexturing_X3DEnvironmentTextureNode = (X3DEnvironmentTextureNode_default_);
334
334
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
335
- const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Base/X3DCast");
335
+ const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Base/X3DCast");
336
336
  var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
337
337
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Utility/BitSet\")"
338
- const BitSet_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("standard/Utility/BitSet");
338
+ const BitSet_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("standard/Utility/BitSet");
339
339
  var BitSet_default = /*#__PURE__*/__webpack_require__.n(BitSet_namespaceObject);
340
340
  ;// CONCATENATED MODULE: ./src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js
341
341
  /*******************************************************************************
@@ -607,13 +607,13 @@ const ComposedCubeMapTexture_default_ = ComposedCubeMapTexture;
607
607
  Namespace_default().add ("ComposedCubeMapTexture", "x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture", ComposedCubeMapTexture_default_);
608
608
  /* harmony default export */ const CubeMapTexturing_ComposedCubeMapTexture = (ComposedCubeMapTexture_default_);
609
609
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DBaseNode\")"
610
- const X3DBaseNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Base/X3DBaseNode");
610
+ const X3DBaseNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Base/X3DBaseNode");
611
611
  var X3DBaseNode_default = /*#__PURE__*/__webpack_require__.n(X3DBaseNode_namespaceObject);
612
612
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/X3DRenderObject\")"
613
- const X3DRenderObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Rendering/X3DRenderObject");
613
+ const X3DRenderObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Rendering/X3DRenderObject");
614
614
  var X3DRenderObject_default = /*#__PURE__*/__webpack_require__.n(X3DRenderObject_namespaceObject);
615
615
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
616
- const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Rendering/TraverseType");
616
+ const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Rendering/TraverseType");
617
617
  var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
618
618
  ;// CONCATENATED MODULE: ./src/x_ite/Rendering/DependentRenderer.js
619
619
  /*******************************************************************************
@@ -758,28 +758,28 @@ const DependentRenderer_default_ = DependentRenderer;
758
758
  Namespace_default().add ("DependentRenderer", "x_ite/Rendering/DependentRenderer", DependentRenderer_default_);
759
759
  /* harmony default export */ const Rendering_DependentRenderer = (DependentRenderer_default_);
760
760
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TextureBuffer\")"
761
- const TextureBuffer_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Rendering/TextureBuffer");
761
+ const TextureBuffer_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Rendering/TextureBuffer");
762
762
  var TextureBuffer_default = /*#__PURE__*/__webpack_require__.n(TextureBuffer_namespaceObject);
763
763
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Camera\")"
764
- const Camera_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("standard/Math/Geometry/Camera");
764
+ const Camera_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("standard/Math/Geometry/Camera");
765
765
  var Camera_default = /*#__PURE__*/__webpack_require__.n(Camera_namespaceObject);
766
766
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/ViewVolume\")"
767
- const ViewVolume_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("standard/Math/Geometry/ViewVolume");
767
+ const ViewVolume_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("standard/Math/Geometry/ViewVolume");
768
768
  var ViewVolume_default = /*#__PURE__*/__webpack_require__.n(ViewVolume_namespaceObject);
769
769
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
770
- const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("standard/Math/Numbers/Rotation4");
770
+ const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("standard/Math/Numbers/Rotation4");
771
771
  var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
772
772
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
773
- const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("standard/Math/Numbers/Vector3");
773
+ const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("standard/Math/Numbers/Vector3");
774
774
  var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
775
775
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector4\")"
776
- const Vector4_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("standard/Math/Numbers/Vector4");
776
+ const Vector4_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("standard/Math/Numbers/Vector4");
777
777
  var Vector4_default = /*#__PURE__*/__webpack_require__.n(Vector4_namespaceObject);
778
778
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
779
- const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("standard/Math/Numbers/Matrix4");
779
+ const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("standard/Math/Numbers/Matrix4");
780
780
  var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
781
781
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithm\")"
782
- const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("standard/Math/Algorithm");
782
+ const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("standard/Math/Algorithm");
783
783
  var Algorithm_default = /*#__PURE__*/__webpack_require__.n(Algorithm_namespaceObject);
784
784
  ;// CONCATENATED MODULE: ./src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js
785
785
  /*******************************************************************************
@@ -1089,13 +1089,13 @@ const GeneratedCubeMapTexture_default_ = GeneratedCubeMapTexture;
1089
1089
  Namespace_default().add ("GeneratedCubeMapTexture", "x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture", GeneratedCubeMapTexture_default_);
1090
1090
  /* harmony default export */ const CubeMapTexturing_GeneratedCubeMapTexture = (GeneratedCubeMapTexture_default_);
1091
1091
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Networking/X3DUrlObject\")"
1092
- const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/Components/Networking/X3DUrlObject");
1092
+ const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/Components/Networking/X3DUrlObject");
1093
1093
  var X3DUrlObject_default = /*#__PURE__*/__webpack_require__.n(X3DUrlObject_namespaceObject);
1094
1094
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector2\")"
1095
- const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("standard/Math/Numbers/Vector2");
1095
+ const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("standard/Math/Numbers/Vector2");
1096
1096
  var Vector2_default = /*#__PURE__*/__webpack_require__.n(Vector2_namespaceObject);
1097
1097
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/DEVELOPMENT\")"
1098
- const DEVELOPMENT_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.3")] .require ("x_ite/DEVELOPMENT");
1098
+ const DEVELOPMENT_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.4")] .require ("x_ite/DEVELOPMENT");
1099
1099
  var DEVELOPMENT_default = /*#__PURE__*/__webpack_require__.n(DEVELOPMENT_namespaceObject);
1100
1100
  ;// CONCATENATED MODULE: ./src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js
1101
1101
  /* provided dependency */ var $ = __webpack_require__(823);
@@ -1 +1 @@
1
- /* X_ITE v10.0.3 */(()=>{"use strict";var e={823:e=>{e.exports=window[Symbol.for("X_ITE.X3D-10.0.3")].require("lib/jquery")}},t={};function r(i){var a=t[i];if(void 0!==a)return a.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const i=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Components");var a=r.n(i);const n=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Namespace");var s=r.n(n);const o="\nprecision highp float;precision highp int;precision highp sampler2D;const float M_PI=3.1415926535897932384626433832795;varying vec2 texCoord;uniform sampler2D x3d_PanoramaTexture;uniform int x3d_CurrentFace;vec3 uvToXYZ(const in int face,const in vec2 uv){vec3 xyz;if(face==0)xyz=vec3(1.0,uv.y,uv.x);else if(face==1)xyz=vec3(-1.0,uv.y,-uv.x);else if(face==2)xyz=vec3(uv.x,uv.y,-1.0);else if(face==3)xyz=vec3(-uv.x,uv.y,1.0);else if(face==4)xyz=vec3(uv.y,-1.0,uv.x);else xyz=vec3(-uv.y,1.0,uv.x);return xyz;}vec2 dirToUV(const in vec3 dir){return vec2(0.5+0.5*atan(dir.z,dir.x)/M_PI,1.0-acos(dir.y)/M_PI);}vec3 panoramaToCubeMap(const in int face,const in vec2 texCoord){vec3 scan=uvToXYZ(face,texCoord);vec3 direction=normalize(scan);vec2 src=dirToUV(direction);return texture2D(x3d_PanoramaTexture,src).rgb;}void main(){gl_FragColor=vec4(panoramaToCubeMap(x3d_CurrentFace,texCoord),1.0);}";s().add("Panorama1.fs","x_ite/Browser/CubeMapTexturing/Panorama1.fs",o);const u=o,d="#version 300 es\nprecision highp float;precision highp int;precision highp sampler2D;const float M_PI=3.1415926535897932384626433832795;in vec2 texCoord;out vec4 x3d_FragColor;uniform sampler2D x3d_PanoramaTexture;uniform int x3d_CurrentFace;vec3 uvToXYZ(const in int face,const in vec2 uv){switch(face){case 0:return vec3(1.0,uv.y,uv.x);case 1:return vec3(-1.0,uv.y,-uv.x);case 2:return vec3(uv.x,uv.y,-1.0);case 3:return vec3(-uv.x,uv.y,1.0);case 4:return vec3(uv.y,-1.0,uv.x);default:return vec3(-uv.y,1.0,uv.x);}}vec2 dirToUV(const in vec3 dir){return vec2(0.5+0.5*atan(dir.z,dir.x)/M_PI,1.0-acos(dir.y)/M_PI);}vec3 panoramaToCubeMap(const in int face,const in vec2 texCoord){vec3 scan=uvToXYZ(face,texCoord);vec3 direction=normalize(scan);vec2 src=dirToUV(direction);return texture(x3d_PanoramaTexture,src).rgb;}void main(){x3d_FragColor=vec4(panoramaToCubeMap(x3d_CurrentFace,texCoord),1.0);}";s().add("Panorama2.fs","x_ite/Browser/CubeMapTexturing/Panorama2.fs",d);const h=d,T=Symbol();function c(){}Object.assign(c.prototype,{getPanoramaShader(){return this[T]?this[T]:this[T]=this.createShader("Panorama","FullScreen","data:x-shader/x-fragment,"+["",u,h][this.getContext().getVersion()],[],["x3d_PanoramaTexture","x3d_CurrentFace"])}});const p=c;s().add("X3DCubeMapTexturingContext","x_ite/Browser/CubeMapTexturing/X3DCubeMapTexturingContext",p);const x=p,l=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Fields");var g=r.n(l);const _=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Base/X3DFieldDefinition");var m=r.n(_);const f=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Base/FieldDefinitionArray");var E=r.n(f);const b=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Components/Texturing/X3DSingleTextureNode");var w=r.n(b);const v=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Base/X3DConstants");var y=r.n(v);function M(e){w().call(this,e),this.addType(y().X3DEnvironmentTextureNode);const t=this.getBrowser().getContext();this.target=t.TEXTURE_CUBE_MAP,this.targets=[t.TEXTURE_CUBE_MAP_POSITIVE_Z,t.TEXTURE_CUBE_MAP_NEGATIVE_Z,t.TEXTURE_CUBE_MAP_NEGATIVE_X,t.TEXTURE_CUBE_MAP_POSITIVE_X,t.TEXTURE_CUBE_MAP_POSITIVE_Y,t.TEXTURE_CUBE_MAP_NEGATIVE_Y],this.size=1}Object.assign(Object.setPrototypeOf(M.prototype,w().prototype),{getTarget(){return this.target},getTextureType:()=>4,getTargets(){return this.targets},getSize(){return this.size},setSize(e){this.size=e},clearTexture:(()=>{const e=new Uint8Array([255,255,255,255]);return function(){const t=this.getBrowser().getContext();t.bindTexture(this.getTarget(),this.getTexture());for(const r of this.getTargets())t.texImage2D(r,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,e);this.setSize(1),this.setTransparent(!1),this.updateTextureParameters()}})(),updateTextureParameters(){w().prototype.updateTextureParameters.call(this,this.target,this._textureProperties.getValue(),this.texturePropertiesNode,this.size,this.size,!1,!1,!1)},setShaderUniforms(e,t,r,i=t.x3d_Texture[0]){const a=this.getBrowser().getTextureCubeUnit();e.activeTexture(e.TEXTURE0+a),e.bindTexture(e.TEXTURE_CUBE_MAP,this.getTexture()),e.uniform1i(i.textureCube,a)}}),Object.defineProperties(M,{typeName:{value:"X3DEnvironmentTextureNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"CubeMapTexturing",level:1}),enumerable:!0}});const C=M;s().add("X3DEnvironmentTextureNode","x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode",C);const R=C,S=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Base/X3DCast");var I=r.n(S);const X=window[Symbol.for("X_ITE.X3D-10.0.3")].require("standard/Utility/BitSet");var D=r.n(X);function U(e){R.call(this,e),this.addType(y().ComposedCubeMapTexture),this.addChildObjects(y().inputOutput,"update",new(g().SFTime)),e.getSpecificationVersion()<=3.3&&(this.addAlias("front",this._frontTexture),this.addAlias("back",this._backTexture),this.addAlias("left",this._leftTexture),this.addAlias("right",this._rightTexture),this.addAlias("top",this._topTexture),this.addAlias("bottom",this._bottomTexture)),this.textureNodes=[null,null,null,null,null,null],this.textureBits=new(D())}Object.assign(Object.setPrototypeOf(U.prototype,R.prototype),{initialize(){R.prototype.initialize.call(this);const e=this.getBrowser().getContext();this.frameBuffer=e.createFramebuffer(),this.clearTexture(),this._frontTexture.addInterest("set_texture__",this,0),this._backTexture.addInterest("set_texture__",this,1),this._leftTexture.addInterest("set_texture__",this,2),this._rightTexture.addInterest("set_texture__",this,3),this._topTexture.addInterest("set_texture__",this,5),this._bottomTexture.addInterest("set_texture__",this,4),this._update.addInterest("update",this),this.set_texture__(0,this._frontTexture),this.set_texture__(1,this._backTexture),this.set_texture__(2,this._leftTexture),this.set_texture__(3,this._rightTexture),this.set_texture__(4,this._topTexture),this.set_texture__(5,this._bottomTexture)},set_texture__(e,t){let r=this.textureNodes[e];r?.removeInterest(`set_loadState${e}__`,this),r=this.textureNodes[e]=I()(y().X3DTexture2DNode,t),r?.addInterest(`set_loadState${e}__`,this,e,r),this.set_loadState__(e,r)},set_loadState__(e,t){this.setTextureBit(e,t?.checkLoadState()),this._update.addEvent()},setTextureBit(e,t){this.textureBits.set(e,t===y().COMPLETE_STATE)},isComplete(){if(63!=+this.textureBits)return!1;const e=this.textureNodes,t=e[0].getWidth();for(const r of e){if(r.getWidth()!==t)return!1;if(r.getHeight()!==t)return!1}return!0},update(){if(this.isComplete()){const e=this.getBrowser().getContext(),t=this.textureNodes,r=t[0].getWidth();if(r!==this.getSize()){const t=new Uint8Array(r*r*4);e.bindTexture(this.getTarget(),this.getTexture());for(let i=0;i<6;++i)e.texImage2D(this.getTargets()[i],0,e.RGBA,r,r,0,e.RGBA,e.UNSIGNED_BYTE,t);this.setSize(r),this.updateTextureParameters()}e.bindFramebuffer(e.FRAMEBUFFER,this.frameBuffer);for(let i=0;i<6;++i){const a=t[i];if(e.bindTexture(e.TEXTURE_2D,a.getTexture()),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,a.getTexture(),0),e.bindTexture(this.getTarget(),this.getTexture()),1===a.getTextureType())e.copyTexSubImage2D(this.getTargets()[i],0,0,0,0,0,r,r);else for(let t=0;t<r;++t)e.copyTexSubImage2D(this.getTargets()[i],0,0,r-t-1,0,t,r,1)}this.setTransparent(t.some((e=>e.isTransparent()))),this.setLinear(t.some((e=>e.isLinear()))),this.setMipMaps(t.every((e=>e.getMipMaps()))),this.updateTextureParameters()}else this.clearTexture()}}),Object.defineProperties(U,{typeName:{value:"ComposedCubeMapTexture",enumerable:!0},componentInfo:{value:Object.freeze({name:"CubeMapTexturing",level:1}),enumerable:!0},containerField:{value:"texture",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.1",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(E())([new(m())(y().inputOutput,"metadata",new(g().SFNode)),new(m())(y().inputOutput,"description",new(g().SFString)),new(m())(y().inputOutput,"frontTexture",new(g().SFNode)),new(m())(y().inputOutput,"backTexture",new(g().SFNode)),new(m())(y().inputOutput,"leftTexture",new(g().SFNode)),new(m())(y().inputOutput,"rightTexture",new(g().SFNode)),new(m())(y().inputOutput,"topTexture",new(g().SFNode)),new(m())(y().inputOutput,"bottomTexture",new(g().SFNode)),new(m())(y().initializeOnly,"textureProperties",new(g().SFNode))]),enumerable:!0}});for(let e=0;e<6;++e)U.prototype[`set_loadState${e}__`]=function(e,t){this.set_loadState__(e,t)};const O=U;s().add("ComposedCubeMapTexture","x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture",O);const A=O,P=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Base/X3DBaseNode");var B=r.n(P);const N=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Rendering/X3DRenderObject");var F=r.n(N);const z=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Rendering/TraverseType");var L=r.n(z);function V(e,t,r){B().call(this,e),F().call(this,e),this.node=r,this.renderObject=t}Object.assign(Object.setPrototypeOf(V.prototype,B().prototype),F().prototype,{initialize(){B().prototype.initialize.call(this),F().prototype.initialize.call(this)},isIndependent:()=>!1,getNode(){return this.node},getLayer(){return this.renderObject.getLayer()},getBackground(){return this.renderObject.getBackground()},getFog(){return this.renderObject.getFog()},getNavigationInfo(){return this.renderObject.getNavigationInfo()},getViewpoint(){return this.renderObject.getViewpoint()},getViewpointStack(){return this.renderObject.getViewpointStack()},getLightContainer(){return this.renderObject.getLights()[this.lightIndex++]},render(e,t,r){switch(e){case L().COLLISION:case L().SHADOW:F().prototype.render.call(this,e,t,r);break;case L().DISPLAY:this.lightIndex=0,F().prototype.render.call(this,e,t,r);for(const e of this.renderObject.getLights())e.modelViewMatrix.pop()}}});for(const e of Object.keys(V.prototype))Object.defineProperty(V.prototype,e,{enumerable:!1});const j=V;s().add("DependentRenderer","x_ite/Rendering/DependentRenderer",j);const G=j,q=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Rendering/TextureBuffer");var k=r.n(q);const Y=window[Symbol.for("X_ITE.X3D-10.0.3")].require("standard/Math/Geometry/Camera");var W=r.n(Y);const H=window[Symbol.for("X_ITE.X3D-10.0.3")].require("standard/Math/Geometry/ViewVolume");var $=r.n(H);const Z=window[Symbol.for("X_ITE.X3D-10.0.3")].require("standard/Math/Numbers/Rotation4");var K=r.n(Z);const J=window[Symbol.for("X_ITE.X3D-10.0.3")].require("standard/Math/Numbers/Vector3");var Q=r.n(J);const ee=window[Symbol.for("X_ITE.X3D-10.0.3")].require("standard/Math/Numbers/Vector4");var te=r.n(ee);const re=window[Symbol.for("X_ITE.X3D-10.0.3")].require("standard/Math/Numbers/Matrix4");var ie=r.n(re);const ae=window[Symbol.for("X_ITE.X3D-10.0.3")].require("standard/Math/Algorithm");var ne=r.n(ae);function se(e){R.call(this,e),this.addType(y().GeneratedCubeMapTexture),this.dependentRenderers=new WeakMap,this.projectionMatrix=new(ie()),this.modelMatrix=new(ie()),this.viewVolume=new($())}Object.assign(Object.setPrototypeOf(se.prototype,R.prototype),{initialize(){R.prototype.initialize.call(this),this._size.addInterest("set_size__",this),this.set_size__()},set_size__(){const e=this.getBrowser().getContext(),t=e.getVersion()>=2?this._size.getValue():ne().nextPowerOfTwo(this._size.getValue());if(t>0){const r=new Uint8Array(t*t*4);e.bindTexture(this.getTarget(),this.getTexture());for(const i of this.getTargets())e.texImage2D(i,0,e.RGBA,t,t,0,e.RGBA,e.UNSIGNED_BYTE,r);this.updateTextureParameters(),this.viewport=new(te())(0,0,t,t),this.frameBuffer=new(k())(this.getBrowser(),t,t),this.setSize(t)}else this.frameBuffer=null,this.setSize(0)},traverse(e,t){"NONE"!==this._update.getValue()&&t.isIndependent()&&this.frameBuffer&&(t.getGeneratedCubeMapTextures().push(this),this.modelMatrix.assign(t.getModelViewMatrix().get()).multRight(t.getCameraSpaceMatrix().get()))},renderTexture:(()=>{const e=[new(K())(Q().zAxis,new(Q())(0,0,-1)),new(K())(Q().zAxis,new(Q())(0,0,1)),new(K())(Q().zAxis,new(Q())(1,0,0)),new(K())(Q().zAxis,new(Q())(-1,0,0)),new(K())(Q().zAxis,new(Q())(0,-1,0)),new(K())(Q().zAxis,new(Q())(0,1,0))],t=[new(Q())(-1,-1,1),new(Q())(-1,-1,1),new(Q())(-1,-1,1),new(Q())(-1,-1,1),new(Q())(1,1,1),new(Q())(1,1,1)],r=new(ie());return function(i){if(!this.dependentRenderers.has(i)){const e=new G(this.getExecutionContext(),i,this);e.setup(),this.dependentRenderers.set(i,e)}const a=this.dependentRenderers.get(i),n=this.getBrowser(),s=i.getLayer(),o=n.getContext(),u=a.getBackground(),d=a.getNavigationInfo(),h=a.getViewpoint(),T=n.getHeadlight(),c=d._headlight.getValue(),p=d.getNearValue(),x=d.getFarValue(h),l=W().perspective(ne().radians(90),p,x,1,1,this.projectionMatrix),g=this.frameBuffer.getWidth(),_=this.frameBuffer.getHeight();this.setTransparent(u.isTransparent()),this.frameBuffer.bind(),a.getViewVolumes().push(this.viewVolume.set(l,this.viewport,this.viewport)),a.getProjectionMatrix().pushMatrix(l),o.bindTexture(this.getTarget(),this.getTexture());for(let i=0;i<6;++i)o.clear(o.COLOR_BUFFER_BIT),a.getCameraSpaceMatrix().pushMatrix(this.modelMatrix),a.getCameraSpaceMatrix().rotate(e[i]),a.getCameraSpaceMatrix().scale(t[i]),a.getViewMatrix().pushMatrix(r.assign(a.getCameraSpaceMatrix().get()).inverse()),a.getModelViewMatrix().pushMatrix(r),c&&(T.modelViewMatrix.pushMatrix(r),T.modelViewMatrix.multLeft(h.getCameraSpaceMatrix())),s.traverse(L().DISPLAY,a),c&&T.modelViewMatrix.pop(),a.getModelViewMatrix().pop(),a.getCameraSpaceMatrix().pop(),a.getViewMatrix().pop(),o.bindTexture(this.getTarget(),this.getTexture()),o.copyTexSubImage2D(this.getTargets()[i],0,0,0,0,0,g,_);this.updateTextureParameters(),a.getProjectionMatrix().pop(),a.getViewVolumes().pop(),"NEXT_FRAME_ONLY"===this._update.getValue()&&(this._update="NONE")}})(),setShaderUniforms:(()=>{const e=new Float32Array(16);return function(t,r,i,a){R.prototype.setShaderUniforms.call(this,t,r,i,a),i.getNode()===this&&t.uniformMatrix4fv(r.x3d_ModelViewMatrix,!1,e)}})()}),Object.defineProperties(se,{typeName:{value:"GeneratedCubeMapTexture",enumerable:!0},componentInfo:{value:Object.freeze({name:"CubeMapTexturing",level:3}),enumerable:!0},containerField:{value:"texture",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(E())([new(m())(y().inputOutput,"metadata",new(g().SFNode)),new(m())(y().inputOutput,"description",new(g().SFString)),new(m())(y().inputOutput,"update",new(g().SFString)("NONE")),new(m())(y().initializeOnly,"size",new(g().SFInt32)(128)),new(m())(y().initializeOnly,"textureProperties",new(g().SFNode))]),enumerable:!0}});const oe=se;s().add("GeneratedCubeMapTexture","x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture",oe);const ue=oe,de=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/Components/Networking/X3DUrlObject");var he=r.n(de);const Te=window[Symbol.for("X_ITE.X3D-10.0.3")].require("standard/Math/Numbers/Vector2");var ce=r.n(Te);const pe=window[Symbol.for("X_ITE.X3D-10.0.3")].require("x_ite/DEVELOPMENT");var xe=r.n(pe),le=r(823);const ge=new Uint8Array([255,255,255,255]);function _e(e){R.call(this,e),he().call(this,e),this.addType(y().ImageCubeMapTexture),this.image=le("<img></img>"),this.urlStack=new(g().MFString)}Object.assign(Object.setPrototypeOf(_e.prototype,R.prototype),he().prototype,{initialize(){R.prototype.initialize.call(this),he().prototype.initialize.call(this);const e=this.getBrowser().getContext();e.bindTexture(this.getTarget(),this.getTexture());for(let t=0;t<6;++t)e.texImage2D(this.getTargets()[t],0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,ge);this.image.on("load",this.setImage.bind(this)),this.image.on("abort error",this.setError.bind(this)),this.image.prop("crossOrigin","Anonymous"),this.requestImmediateLoad().catch(Function.prototype)},unloadData(){this.clearTexture()},loadData(){this.urlStack.setValue(this._url),this.loadNext()},loadNext(){if(0===this.urlStack.length)return this.clearTexture(),void this.setLoadState(y().FAILED_STATE);this.URL=new URL(this.urlStack.shift(),this.getExecutionContext().getBaseURL()),this.URL.pathname.match(/\.ktx2?(?:\.gz)?$/)||this.URL.href.match(/^data:image\/ktx2[;,]/)?(this.setLinear(!0),this.setMipMaps(!1),this.getBrowser().getKTXDecoder().then((e=>e.loadKTXFromURL(this.URL,this.getCache()))).then((e=>this.setKTXTexture(e))).catch((e=>this.setError({type:e.message})))):(this.setLinear(!1),this.setMipMaps(!0),"data:"!==this.URL.protocol&&(this.getCache()||this.URL.searchParams.set("_",Date.now())),this.image.attr("src",this.URL.href))},setError(e){"data:"!==this.URL.protocol&&console.warn(`Error loading image '${decodeURI(this.URL.href)}'`,e.type),this.loadNext()},setKTXTexture(e){if(e.target!==this.getTarget())return this.setError({type:"Invalid KTX texture target, must be 'TEXTURE_CUBE_MAP'."});xe()&&"data:"!==this.URL.protocol&&console.info(`Done loading image cube map texture '${decodeURI(this.URL.href)}'.`);try{this.setTexture(e),this.setTransparent(!1),this.setSize(e.baseWidth),this.updateTextureParameters(),this.setLoadState(y().COMPLETE_STATE)}catch(e){this.setError({type:e.message})}},setImage(){xe()&&"data:"!==this.URL.protocol&&console.info(`Done loading image cube map texture '${decodeURI(this.URL.href)}'.`);try{const e=this.getBrowser().getContext(),t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,this.image[0]),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),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),this.imageToCubeMap(t,this.image.prop("width"),this.image.prop("height"),!1),this.setLoadState(y().COMPLETE_STATE)}catch(e){this.setError({type:e.message})}},imageToCubeMap(e,t,r){const i=t/r;Math.abs(i-4/3)<.01&&this.skyBoxToCubeMap(e,t,r),Math.abs(i-2)<.01&&this.panoramaToCubeMap(e,t,r),this.updateTextureParameters()},skyBoxToCubeMap:function(){const e=[new(ce())(1,1),new(ce())(3,1),new(ce())(0,1),new(ce())(2,1),new(ce())(1,0),new(ce())(1,2)];return function(t,r,i){const a=this.getBrowser().getContext(),n=a.createFramebuffer(),s=Math.floor(r/4),o=Math.floor(i/3),u=new Uint8Array(s*o*4);a.bindTexture(this.getTarget(),this.getTexture());for(let e=0;e<6;++e)a.texImage2D(this.getTargets()[e],0,a.RGBA,s,o,0,a.RGBA,a.UNSIGNED_BYTE,null);a.bindFramebuffer(a.FRAMEBUFFER,n),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,t,0);let d=!1;a.bindTexture(this.getTarget(),this.getTexture());for(let t=0;t<6;++t)a.copyTexSubImage2D(this.getTargets()[t],0,0,0,e[t].x*s,e[t].y*o,s,o),d||(a.readPixels(e[t].x*s,e[t].y*o,s,o,a.RGBA,a.UNSIGNED_BYTE,u),d=this.isImageTransparent(u));a.deleteFramebuffer(n),a.deleteTexture(t),this.setTransparent(d),this.setSize(s)}}(),panoramaToCubeMap(e,t,r){const i=this.getBrowser(),a=i.getContext(),n=i.getPanoramaShader(),s=a.createFramebuffer(),o=i.getTextureCubeUnit(),u=Math.floor(r/2),d=new Uint8Array(u*u*4);a.bindTexture(a.TEXTURE_2D,e),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.MIRRORED_REPEAT),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.MIRRORED_REPEAT),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR),a.bindTexture(this.getTarget(),this.getTexture());for(let e=0;e<6;++e)a.texImage2D(this.getTargets()[e],0,a.RGBA,u,u,0,a.RGBA,a.UNSIGNED_BYTE,null);a.useProgram(n.getProgram()),a.activeTexture(a.TEXTURE0+o),a.bindTexture(a.TEXTURE_2D,e),a.uniform1i(n.x3d_PanoramaTexture,o),a.bindFramebuffer(a.FRAMEBUFFER,s),a.viewport(0,0,u,u),a.scissor(0,0,u,u),a.disable(a.DEPTH_TEST),a.enable(a.CULL_FACE),a.frontFace(a.CCW),a.clearColor(0,0,0,0),a.bindVertexArray(i.getFullscreenVertexArrayObject());let h=!1;for(let e=0;e<6;++e)a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,this.getTargets()[e],this.getTexture(),0),a.clear(a.COLOR_BUFFER_BIT),a.uniform1i(n.x3d_CurrentFace,e),a.drawArrays(a.TRIANGLES,0,6),h||(a.readPixels(0,0,u,u,a.RGBA,a.UNSIGNED_BYTE,d),h=this.isImageTransparent(d));a.enable(a.DEPTH_TEST),a.deleteFramebuffer(s),a.deleteTexture(e),i.resetTextureUnits(),this.setTransparent(h),this.setSize(u)},dispose(){he().prototype.dispose.call(this),R.prototype.dispose.call(this)}}),Object.defineProperties(_e,{typeName:{value:"ImageCubeMapTexture",enumerable:!0},componentInfo:{value:Object.freeze({name:"CubeMapTexturing",level:2}),enumerable:!0},containerField:{value:"texture",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(E())([new(m())(y().inputOutput,"metadata",new(g().SFNode)),new(m())(y().inputOutput,"description",new(g().SFString)),new(m())(y().inputOutput,"load",new(g().SFBool)(!0)),new(m())(y().inputOutput,"url",new(g().MFString)),new(m())(y().inputOutput,"autoRefresh",new(g().SFTime)),new(m())(y().inputOutput,"autoRefreshTimeLimit",new(g().SFTime)(3600)),new(m())(y().initializeOnly,"textureProperties",new(g().SFNode))]),enumerable:!0}});const me=_e;s().add("ImageCubeMapTexture","x_ite/Components/CubeMapTexturing/ImageCubeMapTexture",me);const fe=me;a().add({name:"CubeMapTexturing",concreteNodes:[A,ue,fe],abstractNodes:[R],browserContext:x});const Ee=void 0;s().add("CubeMapTexturing","assets/components/CubeMapTexturing",Ee)})();
1
+ /* X_ITE v10.0.4 */(()=>{"use strict";var e={823:e=>{e.exports=window[Symbol.for("X_ITE.X3D-10.0.4")].require("lib/jquery")}},t={};function r(i){var a=t[i];if(void 0!==a)return a.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const i=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Components");var a=r.n(i);const n=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Namespace");var s=r.n(n);const o="\nprecision highp float;precision highp int;precision highp sampler2D;const float M_PI=3.1415926535897932384626433832795;varying vec2 texCoord;uniform sampler2D x3d_PanoramaTexture;uniform int x3d_CurrentFace;vec3 uvToXYZ(const in int face,const in vec2 uv){vec3 xyz;if(face==0)xyz=vec3(1.0,uv.y,uv.x);else if(face==1)xyz=vec3(-1.0,uv.y,-uv.x);else if(face==2)xyz=vec3(uv.x,uv.y,-1.0);else if(face==3)xyz=vec3(-uv.x,uv.y,1.0);else if(face==4)xyz=vec3(uv.y,-1.0,uv.x);else xyz=vec3(-uv.y,1.0,uv.x);return xyz;}vec2 dirToUV(const in vec3 dir){return vec2(0.5+0.5*atan(dir.z,dir.x)/M_PI,1.0-acos(dir.y)/M_PI);}vec3 panoramaToCubeMap(const in int face,const in vec2 texCoord){vec3 scan=uvToXYZ(face,texCoord);vec3 direction=normalize(scan);vec2 src=dirToUV(direction);return texture2D(x3d_PanoramaTexture,src).rgb;}void main(){gl_FragColor=vec4(panoramaToCubeMap(x3d_CurrentFace,texCoord),1.0);}";s().add("Panorama1.fs","x_ite/Browser/CubeMapTexturing/Panorama1.fs",o);const u=o,d="#version 300 es\nprecision highp float;precision highp int;precision highp sampler2D;const float M_PI=3.1415926535897932384626433832795;in vec2 texCoord;out vec4 x3d_FragColor;uniform sampler2D x3d_PanoramaTexture;uniform int x3d_CurrentFace;vec3 uvToXYZ(const in int face,const in vec2 uv){switch(face){case 0:return vec3(1.0,uv.y,uv.x);case 1:return vec3(-1.0,uv.y,-uv.x);case 2:return vec3(uv.x,uv.y,-1.0);case 3:return vec3(-uv.x,uv.y,1.0);case 4:return vec3(uv.y,-1.0,uv.x);default:return vec3(-uv.y,1.0,uv.x);}}vec2 dirToUV(const in vec3 dir){return vec2(0.5+0.5*atan(dir.z,dir.x)/M_PI,1.0-acos(dir.y)/M_PI);}vec3 panoramaToCubeMap(const in int face,const in vec2 texCoord){vec3 scan=uvToXYZ(face,texCoord);vec3 direction=normalize(scan);vec2 src=dirToUV(direction);return texture(x3d_PanoramaTexture,src).rgb;}void main(){x3d_FragColor=vec4(panoramaToCubeMap(x3d_CurrentFace,texCoord),1.0);}";s().add("Panorama2.fs","x_ite/Browser/CubeMapTexturing/Panorama2.fs",d);const h=d,T=Symbol();function c(){}Object.assign(c.prototype,{getPanoramaShader(){return this[T]?this[T]:this[T]=this.createShader("Panorama","FullScreen","data:x-shader/x-fragment,"+["",u,h][this.getContext().getVersion()],[],["x3d_PanoramaTexture","x3d_CurrentFace"])}});const p=c;s().add("X3DCubeMapTexturingContext","x_ite/Browser/CubeMapTexturing/X3DCubeMapTexturingContext",p);const x=p,l=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Fields");var g=r.n(l);const _=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Base/X3DFieldDefinition");var m=r.n(_);const f=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Base/FieldDefinitionArray");var E=r.n(f);const b=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Components/Texturing/X3DSingleTextureNode");var w=r.n(b);const v=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Base/X3DConstants");var y=r.n(v);function M(e){w().call(this,e),this.addType(y().X3DEnvironmentTextureNode);const t=this.getBrowser().getContext();this.target=t.TEXTURE_CUBE_MAP,this.targets=[t.TEXTURE_CUBE_MAP_POSITIVE_Z,t.TEXTURE_CUBE_MAP_NEGATIVE_Z,t.TEXTURE_CUBE_MAP_NEGATIVE_X,t.TEXTURE_CUBE_MAP_POSITIVE_X,t.TEXTURE_CUBE_MAP_POSITIVE_Y,t.TEXTURE_CUBE_MAP_NEGATIVE_Y],this.size=1}Object.assign(Object.setPrototypeOf(M.prototype,w().prototype),{getTarget(){return this.target},getTextureType:()=>4,getTargets(){return this.targets},getSize(){return this.size},setSize(e){this.size=e},clearTexture:(()=>{const e=new Uint8Array([255,255,255,255]);return function(){const t=this.getBrowser().getContext();t.bindTexture(this.getTarget(),this.getTexture());for(const r of this.getTargets())t.texImage2D(r,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,e);this.setSize(1),this.setTransparent(!1),this.updateTextureParameters()}})(),updateTextureParameters(){w().prototype.updateTextureParameters.call(this,this.target,this._textureProperties.getValue(),this.texturePropertiesNode,this.size,this.size,!1,!1,!1)},setShaderUniforms(e,t,r,i=t.x3d_Texture[0]){const a=this.getBrowser().getTextureCubeUnit();e.activeTexture(e.TEXTURE0+a),e.bindTexture(e.TEXTURE_CUBE_MAP,this.getTexture()),e.uniform1i(i.textureCube,a)}}),Object.defineProperties(M,{typeName:{value:"X3DEnvironmentTextureNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"CubeMapTexturing",level:1}),enumerable:!0}});const C=M;s().add("X3DEnvironmentTextureNode","x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode",C);const R=C,S=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Base/X3DCast");var I=r.n(S);const X=window[Symbol.for("X_ITE.X3D-10.0.4")].require("standard/Utility/BitSet");var D=r.n(X);function U(e){R.call(this,e),this.addType(y().ComposedCubeMapTexture),this.addChildObjects(y().inputOutput,"update",new(g().SFTime)),e.getSpecificationVersion()<=3.3&&(this.addAlias("front",this._frontTexture),this.addAlias("back",this._backTexture),this.addAlias("left",this._leftTexture),this.addAlias("right",this._rightTexture),this.addAlias("top",this._topTexture),this.addAlias("bottom",this._bottomTexture)),this.textureNodes=[null,null,null,null,null,null],this.textureBits=new(D())}Object.assign(Object.setPrototypeOf(U.prototype,R.prototype),{initialize(){R.prototype.initialize.call(this);const e=this.getBrowser().getContext();this.frameBuffer=e.createFramebuffer(),this.clearTexture(),this._frontTexture.addInterest("set_texture__",this,0),this._backTexture.addInterest("set_texture__",this,1),this._leftTexture.addInterest("set_texture__",this,2),this._rightTexture.addInterest("set_texture__",this,3),this._topTexture.addInterest("set_texture__",this,5),this._bottomTexture.addInterest("set_texture__",this,4),this._update.addInterest("update",this),this.set_texture__(0,this._frontTexture),this.set_texture__(1,this._backTexture),this.set_texture__(2,this._leftTexture),this.set_texture__(3,this._rightTexture),this.set_texture__(4,this._topTexture),this.set_texture__(5,this._bottomTexture)},set_texture__(e,t){let r=this.textureNodes[e];r?.removeInterest(`set_loadState${e}__`,this),r=this.textureNodes[e]=I()(y().X3DTexture2DNode,t),r?.addInterest(`set_loadState${e}__`,this,e,r),this.set_loadState__(e,r)},set_loadState__(e,t){this.setTextureBit(e,t?.checkLoadState()),this._update.addEvent()},setTextureBit(e,t){this.textureBits.set(e,t===y().COMPLETE_STATE)},isComplete(){if(63!=+this.textureBits)return!1;const e=this.textureNodes,t=e[0].getWidth();for(const r of e){if(r.getWidth()!==t)return!1;if(r.getHeight()!==t)return!1}return!0},update(){if(this.isComplete()){const e=this.getBrowser().getContext(),t=this.textureNodes,r=t[0].getWidth();if(r!==this.getSize()){const t=new Uint8Array(r*r*4);e.bindTexture(this.getTarget(),this.getTexture());for(let i=0;i<6;++i)e.texImage2D(this.getTargets()[i],0,e.RGBA,r,r,0,e.RGBA,e.UNSIGNED_BYTE,t);this.setSize(r),this.updateTextureParameters()}e.bindFramebuffer(e.FRAMEBUFFER,this.frameBuffer);for(let i=0;i<6;++i){const a=t[i];if(e.bindTexture(e.TEXTURE_2D,a.getTexture()),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,a.getTexture(),0),e.bindTexture(this.getTarget(),this.getTexture()),1===a.getTextureType())e.copyTexSubImage2D(this.getTargets()[i],0,0,0,0,0,r,r);else for(let t=0;t<r;++t)e.copyTexSubImage2D(this.getTargets()[i],0,0,r-t-1,0,t,r,1)}this.setTransparent(t.some((e=>e.isTransparent()))),this.setLinear(t.some((e=>e.isLinear()))),this.setMipMaps(t.every((e=>e.getMipMaps()))),this.updateTextureParameters()}else this.clearTexture()}}),Object.defineProperties(U,{typeName:{value:"ComposedCubeMapTexture",enumerable:!0},componentInfo:{value:Object.freeze({name:"CubeMapTexturing",level:1}),enumerable:!0},containerField:{value:"texture",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.1",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(E())([new(m())(y().inputOutput,"metadata",new(g().SFNode)),new(m())(y().inputOutput,"description",new(g().SFString)),new(m())(y().inputOutput,"frontTexture",new(g().SFNode)),new(m())(y().inputOutput,"backTexture",new(g().SFNode)),new(m())(y().inputOutput,"leftTexture",new(g().SFNode)),new(m())(y().inputOutput,"rightTexture",new(g().SFNode)),new(m())(y().inputOutput,"topTexture",new(g().SFNode)),new(m())(y().inputOutput,"bottomTexture",new(g().SFNode)),new(m())(y().initializeOnly,"textureProperties",new(g().SFNode))]),enumerable:!0}});for(let e=0;e<6;++e)U.prototype[`set_loadState${e}__`]=function(e,t){this.set_loadState__(e,t)};const O=U;s().add("ComposedCubeMapTexture","x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture",O);const A=O,P=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Base/X3DBaseNode");var B=r.n(P);const N=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Rendering/X3DRenderObject");var F=r.n(N);const z=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Rendering/TraverseType");var L=r.n(z);function V(e,t,r){B().call(this,e),F().call(this,e),this.node=r,this.renderObject=t}Object.assign(Object.setPrototypeOf(V.prototype,B().prototype),F().prototype,{initialize(){B().prototype.initialize.call(this),F().prototype.initialize.call(this)},isIndependent:()=>!1,getNode(){return this.node},getLayer(){return this.renderObject.getLayer()},getBackground(){return this.renderObject.getBackground()},getFog(){return this.renderObject.getFog()},getNavigationInfo(){return this.renderObject.getNavigationInfo()},getViewpoint(){return this.renderObject.getViewpoint()},getViewpointStack(){return this.renderObject.getViewpointStack()},getLightContainer(){return this.renderObject.getLights()[this.lightIndex++]},render(e,t,r){switch(e){case L().COLLISION:case L().SHADOW:F().prototype.render.call(this,e,t,r);break;case L().DISPLAY:this.lightIndex=0,F().prototype.render.call(this,e,t,r);for(const e of this.renderObject.getLights())e.modelViewMatrix.pop()}}});for(const e of Object.keys(V.prototype))Object.defineProperty(V.prototype,e,{enumerable:!1});const j=V;s().add("DependentRenderer","x_ite/Rendering/DependentRenderer",j);const G=j,q=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Rendering/TextureBuffer");var k=r.n(q);const Y=window[Symbol.for("X_ITE.X3D-10.0.4")].require("standard/Math/Geometry/Camera");var W=r.n(Y);const H=window[Symbol.for("X_ITE.X3D-10.0.4")].require("standard/Math/Geometry/ViewVolume");var $=r.n(H);const Z=window[Symbol.for("X_ITE.X3D-10.0.4")].require("standard/Math/Numbers/Rotation4");var K=r.n(Z);const J=window[Symbol.for("X_ITE.X3D-10.0.4")].require("standard/Math/Numbers/Vector3");var Q=r.n(J);const ee=window[Symbol.for("X_ITE.X3D-10.0.4")].require("standard/Math/Numbers/Vector4");var te=r.n(ee);const re=window[Symbol.for("X_ITE.X3D-10.0.4")].require("standard/Math/Numbers/Matrix4");var ie=r.n(re);const ae=window[Symbol.for("X_ITE.X3D-10.0.4")].require("standard/Math/Algorithm");var ne=r.n(ae);function se(e){R.call(this,e),this.addType(y().GeneratedCubeMapTexture),this.dependentRenderers=new WeakMap,this.projectionMatrix=new(ie()),this.modelMatrix=new(ie()),this.viewVolume=new($())}Object.assign(Object.setPrototypeOf(se.prototype,R.prototype),{initialize(){R.prototype.initialize.call(this),this._size.addInterest("set_size__",this),this.set_size__()},set_size__(){const e=this.getBrowser().getContext(),t=e.getVersion()>=2?this._size.getValue():ne().nextPowerOfTwo(this._size.getValue());if(t>0){const r=new Uint8Array(t*t*4);e.bindTexture(this.getTarget(),this.getTexture());for(const i of this.getTargets())e.texImage2D(i,0,e.RGBA,t,t,0,e.RGBA,e.UNSIGNED_BYTE,r);this.updateTextureParameters(),this.viewport=new(te())(0,0,t,t),this.frameBuffer=new(k())(this.getBrowser(),t,t),this.setSize(t)}else this.frameBuffer=null,this.setSize(0)},traverse(e,t){"NONE"!==this._update.getValue()&&t.isIndependent()&&this.frameBuffer&&(t.getGeneratedCubeMapTextures().push(this),this.modelMatrix.assign(t.getModelViewMatrix().get()).multRight(t.getCameraSpaceMatrix().get()))},renderTexture:(()=>{const e=[new(K())(Q().zAxis,new(Q())(0,0,-1)),new(K())(Q().zAxis,new(Q())(0,0,1)),new(K())(Q().zAxis,new(Q())(1,0,0)),new(K())(Q().zAxis,new(Q())(-1,0,0)),new(K())(Q().zAxis,new(Q())(0,-1,0)),new(K())(Q().zAxis,new(Q())(0,1,0))],t=[new(Q())(-1,-1,1),new(Q())(-1,-1,1),new(Q())(-1,-1,1),new(Q())(-1,-1,1),new(Q())(1,1,1),new(Q())(1,1,1)],r=new(ie());return function(i){if(!this.dependentRenderers.has(i)){const e=new G(this.getExecutionContext(),i,this);e.setup(),this.dependentRenderers.set(i,e)}const a=this.dependentRenderers.get(i),n=this.getBrowser(),s=i.getLayer(),o=n.getContext(),u=a.getBackground(),d=a.getNavigationInfo(),h=a.getViewpoint(),T=n.getHeadlight(),c=d._headlight.getValue(),p=d.getNearValue(),x=d.getFarValue(h),l=W().perspective(ne().radians(90),p,x,1,1,this.projectionMatrix),g=this.frameBuffer.getWidth(),_=this.frameBuffer.getHeight();this.setTransparent(u.isTransparent()),this.frameBuffer.bind(),a.getViewVolumes().push(this.viewVolume.set(l,this.viewport,this.viewport)),a.getProjectionMatrix().pushMatrix(l),o.bindTexture(this.getTarget(),this.getTexture());for(let i=0;i<6;++i)o.clear(o.COLOR_BUFFER_BIT),a.getCameraSpaceMatrix().pushMatrix(this.modelMatrix),a.getCameraSpaceMatrix().rotate(e[i]),a.getCameraSpaceMatrix().scale(t[i]),a.getViewMatrix().pushMatrix(r.assign(a.getCameraSpaceMatrix().get()).inverse()),a.getModelViewMatrix().pushMatrix(r),c&&(T.modelViewMatrix.pushMatrix(r),T.modelViewMatrix.multLeft(h.getCameraSpaceMatrix())),s.traverse(L().DISPLAY,a),c&&T.modelViewMatrix.pop(),a.getModelViewMatrix().pop(),a.getCameraSpaceMatrix().pop(),a.getViewMatrix().pop(),o.bindTexture(this.getTarget(),this.getTexture()),o.copyTexSubImage2D(this.getTargets()[i],0,0,0,0,0,g,_);this.updateTextureParameters(),a.getProjectionMatrix().pop(),a.getViewVolumes().pop(),"NEXT_FRAME_ONLY"===this._update.getValue()&&(this._update="NONE")}})(),setShaderUniforms:(()=>{const e=new Float32Array(16);return function(t,r,i,a){R.prototype.setShaderUniforms.call(this,t,r,i,a),i.getNode()===this&&t.uniformMatrix4fv(r.x3d_ModelViewMatrix,!1,e)}})()}),Object.defineProperties(se,{typeName:{value:"GeneratedCubeMapTexture",enumerable:!0},componentInfo:{value:Object.freeze({name:"CubeMapTexturing",level:3}),enumerable:!0},containerField:{value:"texture",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(E())([new(m())(y().inputOutput,"metadata",new(g().SFNode)),new(m())(y().inputOutput,"description",new(g().SFString)),new(m())(y().inputOutput,"update",new(g().SFString)("NONE")),new(m())(y().initializeOnly,"size",new(g().SFInt32)(128)),new(m())(y().initializeOnly,"textureProperties",new(g().SFNode))]),enumerable:!0}});const oe=se;s().add("GeneratedCubeMapTexture","x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture",oe);const ue=oe,de=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/Components/Networking/X3DUrlObject");var he=r.n(de);const Te=window[Symbol.for("X_ITE.X3D-10.0.4")].require("standard/Math/Numbers/Vector2");var ce=r.n(Te);const pe=window[Symbol.for("X_ITE.X3D-10.0.4")].require("x_ite/DEVELOPMENT");var xe=r.n(pe),le=r(823);const ge=new Uint8Array([255,255,255,255]);function _e(e){R.call(this,e),he().call(this,e),this.addType(y().ImageCubeMapTexture),this.image=le("<img></img>"),this.urlStack=new(g().MFString)}Object.assign(Object.setPrototypeOf(_e.prototype,R.prototype),he().prototype,{initialize(){R.prototype.initialize.call(this),he().prototype.initialize.call(this);const e=this.getBrowser().getContext();e.bindTexture(this.getTarget(),this.getTexture());for(let t=0;t<6;++t)e.texImage2D(this.getTargets()[t],0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,ge);this.image.on("load",this.setImage.bind(this)),this.image.on("abort error",this.setError.bind(this)),this.image.prop("crossOrigin","Anonymous"),this.requestImmediateLoad().catch(Function.prototype)},unloadData(){this.clearTexture()},loadData(){this.urlStack.setValue(this._url),this.loadNext()},loadNext(){if(0===this.urlStack.length)return this.clearTexture(),void this.setLoadState(y().FAILED_STATE);this.URL=new URL(this.urlStack.shift(),this.getExecutionContext().getBaseURL()),this.URL.pathname.match(/\.ktx2?(?:\.gz)?$/)||this.URL.href.match(/^data:image\/ktx2[;,]/)?(this.setLinear(!0),this.setMipMaps(!1),this.getBrowser().getKTXDecoder().then((e=>e.loadKTXFromURL(this.URL,this.getCache()))).then((e=>this.setKTXTexture(e))).catch((e=>this.setError({type:e.message})))):(this.setLinear(!1),this.setMipMaps(!0),"data:"!==this.URL.protocol&&(this.getCache()||this.URL.searchParams.set("_",Date.now())),this.image.attr("src",this.URL.href))},setError(e){"data:"!==this.URL.protocol&&console.warn(`Error loading image '${decodeURI(this.URL.href)}'`,e.type),this.loadNext()},setKTXTexture(e){if(e.target!==this.getTarget())return this.setError({type:"Invalid KTX texture target, must be 'TEXTURE_CUBE_MAP'."});xe()&&"data:"!==this.URL.protocol&&console.info(`Done loading image cube map texture '${decodeURI(this.URL.href)}'.`);try{this.setTexture(e),this.setTransparent(!1),this.setSize(e.baseWidth),this.updateTextureParameters(),this.setLoadState(y().COMPLETE_STATE)}catch(e){this.setError({type:e.message})}},setImage(){xe()&&"data:"!==this.URL.protocol&&console.info(`Done loading image cube map texture '${decodeURI(this.URL.href)}'.`);try{const e=this.getBrowser().getContext(),t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,this.image[0]),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),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),this.imageToCubeMap(t,this.image.prop("width"),this.image.prop("height"),!1),this.setLoadState(y().COMPLETE_STATE)}catch(e){this.setError({type:e.message})}},imageToCubeMap(e,t,r){const i=t/r;Math.abs(i-4/3)<.01&&this.skyBoxToCubeMap(e,t,r),Math.abs(i-2)<.01&&this.panoramaToCubeMap(e,t,r),this.updateTextureParameters()},skyBoxToCubeMap:function(){const e=[new(ce())(1,1),new(ce())(3,1),new(ce())(0,1),new(ce())(2,1),new(ce())(1,0),new(ce())(1,2)];return function(t,r,i){const a=this.getBrowser().getContext(),n=a.createFramebuffer(),s=Math.floor(r/4),o=Math.floor(i/3),u=new Uint8Array(s*o*4);a.bindTexture(this.getTarget(),this.getTexture());for(let e=0;e<6;++e)a.texImage2D(this.getTargets()[e],0,a.RGBA,s,o,0,a.RGBA,a.UNSIGNED_BYTE,null);a.bindFramebuffer(a.FRAMEBUFFER,n),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,t,0);let d=!1;a.bindTexture(this.getTarget(),this.getTexture());for(let t=0;t<6;++t)a.copyTexSubImage2D(this.getTargets()[t],0,0,0,e[t].x*s,e[t].y*o,s,o),d||(a.readPixels(e[t].x*s,e[t].y*o,s,o,a.RGBA,a.UNSIGNED_BYTE,u),d=this.isImageTransparent(u));a.deleteFramebuffer(n),a.deleteTexture(t),this.setTransparent(d),this.setSize(s)}}(),panoramaToCubeMap(e,t,r){const i=this.getBrowser(),a=i.getContext(),n=i.getPanoramaShader(),s=a.createFramebuffer(),o=i.getTextureCubeUnit(),u=Math.floor(r/2),d=new Uint8Array(u*u*4);a.bindTexture(a.TEXTURE_2D,e),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.MIRRORED_REPEAT),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.MIRRORED_REPEAT),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR),a.bindTexture(this.getTarget(),this.getTexture());for(let e=0;e<6;++e)a.texImage2D(this.getTargets()[e],0,a.RGBA,u,u,0,a.RGBA,a.UNSIGNED_BYTE,null);a.useProgram(n.getProgram()),a.activeTexture(a.TEXTURE0+o),a.bindTexture(a.TEXTURE_2D,e),a.uniform1i(n.x3d_PanoramaTexture,o),a.bindFramebuffer(a.FRAMEBUFFER,s),a.viewport(0,0,u,u),a.scissor(0,0,u,u),a.disable(a.DEPTH_TEST),a.enable(a.CULL_FACE),a.frontFace(a.CCW),a.clearColor(0,0,0,0),a.bindVertexArray(i.getFullscreenVertexArrayObject());let h=!1;for(let e=0;e<6;++e)a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,this.getTargets()[e],this.getTexture(),0),a.clear(a.COLOR_BUFFER_BIT),a.uniform1i(n.x3d_CurrentFace,e),a.drawArrays(a.TRIANGLES,0,6),h||(a.readPixels(0,0,u,u,a.RGBA,a.UNSIGNED_BYTE,d),h=this.isImageTransparent(d));a.enable(a.DEPTH_TEST),a.deleteFramebuffer(s),a.deleteTexture(e),i.resetTextureUnits(),this.setTransparent(h),this.setSize(u)},dispose(){he().prototype.dispose.call(this),R.prototype.dispose.call(this)}}),Object.defineProperties(_e,{typeName:{value:"ImageCubeMapTexture",enumerable:!0},componentInfo:{value:Object.freeze({name:"CubeMapTexturing",level:2}),enumerable:!0},containerField:{value:"texture",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(E())([new(m())(y().inputOutput,"metadata",new(g().SFNode)),new(m())(y().inputOutput,"description",new(g().SFString)),new(m())(y().inputOutput,"load",new(g().SFBool)(!0)),new(m())(y().inputOutput,"url",new(g().MFString)),new(m())(y().inputOutput,"autoRefresh",new(g().SFTime)),new(m())(y().inputOutput,"autoRefreshTimeLimit",new(g().SFTime)(3600)),new(m())(y().initializeOnly,"textureProperties",new(g().SFNode))]),enumerable:!0}});const me=_e;s().add("ImageCubeMapTexture","x_ite/Components/CubeMapTexturing/ImageCubeMapTexture",me);const fe=me;a().add({name:"CubeMapTexturing",concreteNodes:[A,ue,fe],abstractNodes:[R],browserContext:x});const Ee=void 0;s().add("CubeMapTexturing","assets/components/CubeMapTexturing",Ee)})();