x_ite 8.6.9 → 8.6.11

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 (92) hide show
  1. package/Makefile +12 -12
  2. package/build/bin/version.pl +6 -0
  3. package/dist/assets/components/Annotation.js +13 -13
  4. package/dist/assets/components/Annotation.min.js +1 -1
  5. package/dist/assets/components/CADGeometry.js +13 -13
  6. package/dist/assets/components/CADGeometry.min.js +1 -1
  7. package/dist/assets/components/CubeMapTexturing.js +25 -25
  8. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  9. package/dist/assets/components/DIS.js +13 -13
  10. package/dist/assets/components/DIS.min.js +1 -1
  11. package/dist/assets/components/EventUtilities.js +9 -9
  12. package/dist/assets/components/EventUtilities.min.js +1 -1
  13. package/dist/assets/components/Geometry2D.js +19 -19
  14. package/dist/assets/components/Geometry2D.min.js +1 -1
  15. package/dist/assets/components/Geospatial.js +40 -58
  16. package/dist/assets/components/Geospatial.min.js +1 -1
  17. package/dist/assets/components/HAnim.js +18 -18
  18. package/dist/assets/components/HAnim.min.js +1 -1
  19. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  20. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  21. package/dist/assets/components/Layout.js +27 -27
  22. package/dist/assets/components/Layout.min.js +1 -1
  23. package/dist/assets/components/NURBS.js +28 -34
  24. package/dist/assets/components/NURBS.min.js +1 -1
  25. package/dist/assets/components/ParticleSystems.js +27 -26
  26. package/dist/assets/components/ParticleSystems.min.js +1 -1
  27. package/dist/assets/components/Picking.js +19 -19
  28. package/dist/assets/components/Picking.min.js +1 -1
  29. package/dist/assets/components/RigidBodyPhysics.js +19 -19
  30. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  31. package/dist/assets/components/Scripting.js +28 -28
  32. package/dist/assets/components/Scripting.min.js +1 -1
  33. package/dist/assets/components/Text.js +24 -24
  34. package/dist/assets/components/Text.min.js +1 -1
  35. package/dist/assets/components/TextureProjector.js +14 -14
  36. package/dist/assets/components/TextureProjector.min.js +1 -1
  37. package/dist/assets/components/Texturing3D.js +30 -30
  38. package/dist/assets/components/Texturing3D.min.js +1 -1
  39. package/dist/assets/components/VolumeRendering.js +19 -19
  40. package/dist/assets/components/VolumeRendering.min.js +1 -1
  41. package/dist/assets/components/X_ITE.js +9 -9
  42. package/dist/assets/components/X_ITE.min.js +1 -1
  43. package/dist/x_ite.css +1 -1
  44. package/dist/x_ite.js +431 -487
  45. package/dist/x_ite.min.js +1 -1
  46. package/dist/x_ite.zip +0 -0
  47. package/docs/_config.yml +1 -1
  48. package/docs/_posts/getting-started.md +1 -1
  49. package/docs/laboratory/gltf-sample-viewer.html +4 -2
  50. package/package.json +1 -1
  51. package/src/assets/shaders/webgl1/include/Fragment.glsl.js +10 -2
  52. package/src/assets/shaders/webgl2/include/Fragment.glsl.js +10 -2
  53. package/src/standard/Math/Algorithm.js +8 -1
  54. package/src/standard/Utility/BitSet.js +33 -0
  55. package/src/tests.js +1 -1
  56. package/src/x_ite/Browser/Core/BrowserTimings.js +7 -1
  57. package/src/x_ite/Browser/Core/Context.js +5 -3
  58. package/src/x_ite/Browser/Rendering/GeometryContext.js +2 -0
  59. package/src/x_ite/Browser/Shape/AlphaMode.js +1 -1
  60. package/src/x_ite/Browser/VERSION.js +1 -1
  61. package/src/x_ite/Browser/X3DBrowser.js +2 -2
  62. package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +115 -139
  63. package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +1 -1
  64. package/src/x_ite/Components/Geometry3D/ElevationGrid.js +10 -31
  65. package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +3 -6
  66. package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +7 -25
  67. package/src/x_ite/Components/Grouping/X3DGroupingNode.js +1 -1
  68. package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +4 -10
  69. package/src/x_ite/Components/Navigation/X3DViewpointNode.js +0 -10
  70. package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +4 -3
  71. package/src/x_ite/Components/Rendering/IndexedLineSet.js +11 -33
  72. package/src/x_ite/Components/Rendering/LineSet.js +12 -37
  73. package/src/x_ite/Components/Rendering/PointSet.js +11 -24
  74. package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +14 -39
  75. package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +1 -1
  76. package/src/x_ite/Components/Shape/Appearance.js +9 -5
  77. package/src/x_ite/Components/Shape/Material.js +1 -2
  78. package/src/x_ite/Components/Shape/PhysicalMaterial.js +1 -2
  79. package/src/x_ite/Components/Shape/TwoSidedMaterial.js +1 -1
  80. package/src/x_ite/Components/Shape/UnlitMaterial.js +1 -1
  81. package/src/x_ite/Components/Shape/X3DMaterialNode.js +24 -9
  82. package/src/x_ite/Components/Shape/X3DShapeNode.js +1 -2
  83. package/src/x_ite/Components/Texturing/ImageTexture.js +8 -3
  84. package/src/x_ite/Components/Texturing/X3DTexture2DNode.js +2 -0
  85. package/src/x_ite/Fields/SFImage.js +9 -9
  86. package/src/x_ite/Fields/SFInt32.js +2 -2
  87. package/src/x_ite/Rendering/X3DRenderObject.js +0 -2
  88. package/src/x_ite.html +1 -1
  89. package/x_ite.min.html +2 -2
  90. /package/docs/assets/X3D/{Michroma-Regular.ttf → teaser/Michroma-Regular.ttf} +0 -0
  91. /package/docs/assets/X3D/{peakpx.jpg → teaser/peakpx.jpg} +0 -0
  92. /package/docs/assets/X3D/{teaser.x3d → teaser/teaser.x3d} +0 -0
package/Makefile CHANGED
@@ -22,18 +22,18 @@ html:
22
22
  cp src/x_ite.html x_ite.min.html
23
23
  perl -p0i -e 's|<!-- X_ITE START.*?X_ITE END -->|<script src="dist/x_ite.min.js"></script>|sg' x_ite.min.html
24
24
  perl -p0i -e 's|<!-- JQUERY -->|<script src="https://code.jquery.com/jquery-latest.js"></script>|sg' x_ite.min.html
25
- perl -p0i -e 's|<script type="module">|<script>|sg' x_ite.min.html
26
- perl -p0i -e 's|import\s+X3D\s.*?\n||sg' x_ite.min.html
27
- perl -p0i -e 's|window\s*.X3D.*?\n+||sg' x_ite.min.html
28
- perl -p0i -e 's|"x_ite.js"|"dist/x_ite.min.js"|sg' x_ite.min.html
29
- perl -p0i -e 's|\.\./x_ite.min.html|src/x_ite.html|sg' x_ite.min.html
30
- perl -p0i -e 's|class="links"|class="links min-links"|sg' x_ite.min.html
31
- perl -p0i -e 's|\>x_ite.min.html|>src/x_ite.html|sg' x_ite.min.html
32
- perl -p0i -e 's|\.\./dist/|dist/|sg' x_ite.min.html
33
- perl -p0i -e 's|"bookmarks.js"|"src/bookmarks.js"|sg' x_ite.min.html
34
- perl -p0i -e 's|"examples.js"|"src/examples.js"|sg' x_ite.min.html
35
- perl -p0i -e 's|"tests.js"|"src/tests.js"|sg' x_ite.min.html
36
- perl -p0i -e 's|"tests/|"src/tests/|sg' x_ite.min.html
25
+ perl -p0i -e 's|<script type="module">|<script>|sg' x_ite.min.html
26
+ perl -p0i -e 's|import\s+X3D\s.*?\n||sg' x_ite.min.html
27
+ perl -p0i -e 's|window\s*.X3D.*?\n+||sg' x_ite.min.html
28
+ perl -p0i -e 's|"x_ite.js"|"dist/x_ite.min.js"|sg' x_ite.min.html
29
+ perl -p0i -e 's|\.\./x_ite.min.html|src/x_ite.html|sg' x_ite.min.html
30
+ perl -p0i -e 's|id="links"|id="links" class="min-links"|sg' x_ite.min.html
31
+ perl -p0i -e 's|\>x_ite.min.html|>src/x_ite.html|sg' x_ite.min.html
32
+ perl -p0i -e 's|\.\./dist/|dist/|sg' x_ite.min.html
33
+ perl -p0i -e 's|"bookmarks.js"|"src/bookmarks.js"|sg' x_ite.min.html
34
+ perl -p0i -e 's|"examples.js"|"src/examples.js"|sg' x_ite.min.html
35
+ perl -p0i -e 's|"tests.js"|"src/tests.js"|sg' x_ite.min.html
36
+ perl -p0i -e 's|"tests/|"src/tests/|sg' x_ite.min.html
37
37
 
38
38
  .SILENT:zip
39
39
  zip:
@@ -90,6 +90,12 @@ sub docs
90
90
  close CONFIG;
91
91
  }
92
92
 
93
+ if (`git branch --show-current` ne "main\n")
94
+ {
95
+ say "Wrong branch, cannot release version!";
96
+ exit;
97
+ }
98
+
93
99
  say "Waiting for confirmation ...";
94
100
 
95
101
  my $result = system "zenity", "--question", "--text=Do you really want to publish X_ITE X3D v$VERSION now?", "--ok-label=Yes", "--cancel-label=No";
@@ -1,4 +1,4 @@
1
- /* X_ITE v8.6.9 */(() => { // webpackBootstrap
1
+ /* X_ITE v8.6.11 */(() => { // 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-8.6.9")] .require ("x_ite/Components");
42
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Components");
43
43
  var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
44
44
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
45
- const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Fields");
45
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Fields");
46
46
  var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
47
47
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
48
- const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Base/X3DFieldDefinition");
48
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Base/X3DFieldDefinition");
49
49
  var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
50
50
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
51
- const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Base/FieldDefinitionArray");
51
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .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-8.6.9")] .require ("x_ite/Components/Layering/X3DLayerNode");
54
+ const X3DLayerNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .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-8.6.9")] .require ("x_ite/Components/Navigation/Viewpoint");
57
+ const Viewpoint_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .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-8.6.9")] .require ("x_ite/Components/Grouping/Group");
60
+ const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .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-8.6.9")] .require ("x_ite/Base/X3DConstants");
63
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .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-8.6.9")] .require ("x_ite/Namespace");
66
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .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
  /*******************************************************************************
@@ -165,7 +165,7 @@ const __default__ = AnnotationLayer;
165
165
  Namespace_default().set ("x_ite/Components/Annotation/AnnotationLayer", __default__);
166
166
  /* harmony default export */ const Annotation_AnnotationLayer = (__default__);
167
167
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
168
- const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Components/Core/X3DChildNode");
168
+ const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Components/Core/X3DChildNode");
169
169
  var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
170
170
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Annotation/AnnotationTarget.js
171
171
  /*******************************************************************************
@@ -262,7 +262,7 @@ const AnnotationTarget_default_ = AnnotationTarget;
262
262
  Namespace_default().set ("x_ite/Components/Annotation/AnnotationTarget", AnnotationTarget_default_);
263
263
  /* harmony default export */ const Annotation_AnnotationTarget = (AnnotationTarget_default_);
264
264
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
265
- const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
265
+ const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
266
266
  var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
267
267
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Annotation/X3DAnnotationNode.js
268
268
  /*******************************************************************************
@@ -446,7 +446,7 @@ const GroupAnnotation_default_ = GroupAnnotation;
446
446
  Namespace_default().set ("x_ite/Components/Annotation/GroupAnnotation", GroupAnnotation_default_);
447
447
  /* harmony default export */ const Annotation_GroupAnnotation = (GroupAnnotation_default_);
448
448
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Networking/X3DUrlObject\")"
449
- const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Components/Networking/X3DUrlObject");
449
+ const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Components/Networking/X3DUrlObject");
450
450
  var X3DUrlObject_default = /*#__PURE__*/__webpack_require__.n(X3DUrlObject_namespaceObject);
451
451
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Annotation/IconAnnotation.js
452
452
  /*******************************************************************************
@@ -1 +1 @@
1
- /* X_ITE v8.6.9 */(()=>{"use strict";var t={n:n=>{var e=n&&n.__esModule?()=>n.default:()=>n;return t.d(e,{a:e}),e},d:(n,e)=>{for(var o in e)t.o(e,o)&&!t.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:e[o]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n)};const n=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Components");var e=t.n(n);const o=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Fields");var i=t.n(o);const r=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Base/X3DFieldDefinition");var a=t.n(r);const u=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Base/FieldDefinitionArray");var p=t.n(u);const s=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Components/Layering/X3DLayerNode");var c=t.n(s);const l=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Components/Navigation/Viewpoint");var w=t.n(l);const d=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Components/Grouping/Group");var y=t.n(d);const f=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Base/X3DConstants");var m=t.n(f);const S=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Namespace");var O=t.n(S);function g(t){c().call(this,t,new(w())(t),new(y())(t)),this.addType(m().AnnotationLayer)}g.prototype=Object.assign(Object.create(c().prototype),{constructor:g,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(p())([new(a())(m().inputOutput,"metadata",new(i().SFNode)),new(a())(m().inputOutput,"isPickable",new(i().SFBool)(!0)),new(a())(m().inputOutput,"layoutPolicy",new(i().MFString)),new(a())(m().inputOutput,"shownGroupID",new(i().MFString)),new(a())(m().inputOutput,"viewport",new(i().SFNode))]),getTypeName:function(){return"AnnotationLayer"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"layers"},initialize:function(){c().prototype.initialize.call(this)}});const b=g;O().set("x_ite/Components/Annotation/AnnotationLayer",b);const F=b,X=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Components/Core/X3DChildNode");var N=t.n(X);function T(t){N().call(this,t),this.addType(m().AnnotationTarget)}T.prototype=Object.assign(Object.create(N().prototype),{constructor:T,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(p())([new(a())(m().inputOutput,"metadata",new(i().SFNode)),new(a())(m().inputOutput,"referencePoint",new(i().SFVec3f)(0,0,0)),new(a())(m().inputOutput,"leadLineStyle",new(i().SFNode)),new(a())(m().inputOutput,"marker",new(i().SFNode)),new(a())(m().inputOutput,"annotations",new(i().MFNode))]),getTypeName:function(){return"AnnotationTarget"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"children"},initialize:function(){N().prototype.initialize.call(this)}});const A=T;O().set("x_ite/Components/Annotation/AnnotationTarget",A);const h=A,D=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Components/Grouping/X3DGroupingNode");var _=t.n(D);function C(t){N().call(this,t),this.addType(m().X3DAnnotationNode)}C.prototype=Object.assign(Object.create(N().prototype),{constructor:C,initialize:function(){N().prototype.initialize.call(this)}});const x=C;O().set("x_ite/Components/Annotation/X3DAnnotationNode",x);const I=x;function E(t){_().call(this,t),I.call(this,t),this.addType(m().GroupAnnotation)}E.prototype=Object.assign(Object.create(_().prototype),I.prototype,{constructor:E,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(p())([new(a())(m().inputOutput,"metadata",new(i().SFNode)),new(a())(m().inputOutput,"enabled",new(i().SFBool)(!0)),new(a())(m().inputOutput,"annotationGroupID",new(i().SFString)),new(a())(m().inputOutput,"displayPolicy",new(i().SFString)("NEVER")),new(a())(m().inputOutput,"visible",new(i().SFBool)(!0)),new(a())(m().inputOutput,"bboxDisplay",new(i().SFBool)),new(a())(m().initializeOnly,"bboxCenter",new(i().SFVec3f)(0,0,0)),new(a())(m().initializeOnly,"bboxSize",new(i().SFVec3f)(-1,-1,-1)),new(a())(m().inputOnly,"addChildren",new(i().MFNode)),new(a())(m().inputOnly,"removeChildren",new(i().MFNode)),new(a())(m().inputOutput,"children",new(i().MFNode))]),getTypeName:function(){return"GroupAnnotation"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"children"},initialize:function(){_().prototype.initialize.call(this),I.prototype.initialize.call(this)},dispose:function(){I.prototype.dispose.call(this),_().prototype.dispose.call(this)}});const v=E;O().set("x_ite/Components/Annotation/GroupAnnotation",v);const z=v,j=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Components/Networking/X3DUrlObject");var B=t.n(j);function q(t){I.call(this,t),B().call(this,t),this.addType(m().IconAnnotation)}q.prototype=Object.assign(Object.create(I.prototype),B().prototype,{constructor:q,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(p())([new(a())(m().inputOutput,"metadata",new(i().SFNode)),new(a())(m().inputOutput,"enabled",new(i().SFBool)(!0)),new(a())(m().inputOutput,"annotationGroupID",new(i().SFString)),new(a())(m().inputOutput,"displayPolicy",new(i().SFString)("NEVER")),new(a())(m().inputOutput,"url",new(i().MFString)),new(a())(m().inputOutput,"autoRefresh",new(i().SFTime)),new(a())(m().inputOutput,"autoRefreshTimeLimit",new(i().SFTime)(3600))]),getTypeName:function(){return"IconAnnotation"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"children"},initialize:function(){I.prototype.initialize.call(this),B().prototype.initialize.call(this)},requestImmediateLoad:function(t=!0){},dispose:function(){B().prototype.dispose.call(this),I.prototype.dispose.call(this)}});const G=q;O().set("x_ite/Components/Annotation/IconAnnotation",G);const L=G;function R(t){I.call(this,t),this.addType(m().TextAnnotation)}R.prototype=Object.assign(Object.create(I.prototype),{constructor:R,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(p())([new(a())(m().inputOutput,"metadata",new(i().SFNode)),new(a())(m().inputOutput,"enabled",new(i().SFBool)(!0)),new(a())(m().inputOutput,"annotationGroupID",new(i().SFString)),new(a())(m().inputOutput,"displayPolicy",new(i().SFString)("NEVER")),new(a())(m().inputOutput,"contentType",new(i().SFString)("text/plain")),new(a())(m().inputOutput,"text",new(i().SFString))]),getTypeName:function(){return"TextAnnotation"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"children"},initialize:function(){I.prototype.initialize.call(this)}});const M=R;O().set("x_ite/Components/Annotation/TextAnnotation",M);const P=M;function V(t){I.call(this,t),this.addType(m().URLAnnotation)}V.prototype=Object.assign(Object.create(I.prototype),{constructor:V,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(p())([new(a())(m().inputOutput,"metadata",new(i().SFNode)),new(a())(m().inputOutput,"enabled",new(i().SFBool)(!0)),new(a())(m().inputOutput,"annotationGroupID",new(i().SFString)),new(a())(m().inputOutput,"displayPolicy",new(i().SFString)("NEVER")),new(a())(m().inputOutput,"url",new(i().MFString))]),getTypeName:function(){return"URLAnnotation"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"children"},initialize:function(){I.prototype.initialize.call(this)}});const U=V;O().set("x_ite/Components/Annotation/URLAnnotation",U);const k=U;e().addComponent({name:"Annotation",types:{AnnotationLayer:F,AnnotationTarget:h,GroupAnnotation:z,IconAnnotation:L,TextAnnotation:P,URLAnnotation:k},abstractTypes:{X3DAnnotationNode:I}});const H=void 0;O().set("assets/components/Annotation",H)})();
1
+ /* X_ITE v8.6.11 */(()=>{"use strict";var t={n:n=>{var e=n&&n.__esModule?()=>n.default:()=>n;return t.d(e,{a:e}),e},d:(n,e)=>{for(var o in e)t.o(e,o)&&!t.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:e[o]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n)};const n=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Components");var e=t.n(n);const o=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Fields");var i=t.n(o);const r=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Base/X3DFieldDefinition");var a=t.n(r);const u=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Base/FieldDefinitionArray");var p=t.n(u);const s=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Components/Layering/X3DLayerNode");var c=t.n(s);const l=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Components/Navigation/Viewpoint");var w=t.n(l);const d=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Components/Grouping/Group");var y=t.n(d);const f=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Base/X3DConstants");var m=t.n(f);const S=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Namespace");var O=t.n(S);function g(t){c().call(this,t,new(w())(t),new(y())(t)),this.addType(m().AnnotationLayer)}g.prototype=Object.assign(Object.create(c().prototype),{constructor:g,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(p())([new(a())(m().inputOutput,"metadata",new(i().SFNode)),new(a())(m().inputOutput,"isPickable",new(i().SFBool)(!0)),new(a())(m().inputOutput,"layoutPolicy",new(i().MFString)),new(a())(m().inputOutput,"shownGroupID",new(i().MFString)),new(a())(m().inputOutput,"viewport",new(i().SFNode))]),getTypeName:function(){return"AnnotationLayer"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"layers"},initialize:function(){c().prototype.initialize.call(this)}});const b=g;O().set("x_ite/Components/Annotation/AnnotationLayer",b);const F=b,X=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Components/Core/X3DChildNode");var N=t.n(X);function T(t){N().call(this,t),this.addType(m().AnnotationTarget)}T.prototype=Object.assign(Object.create(N().prototype),{constructor:T,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(p())([new(a())(m().inputOutput,"metadata",new(i().SFNode)),new(a())(m().inputOutput,"referencePoint",new(i().SFVec3f)(0,0,0)),new(a())(m().inputOutput,"leadLineStyle",new(i().SFNode)),new(a())(m().inputOutput,"marker",new(i().SFNode)),new(a())(m().inputOutput,"annotations",new(i().MFNode))]),getTypeName:function(){return"AnnotationTarget"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"children"},initialize:function(){N().prototype.initialize.call(this)}});const A=T;O().set("x_ite/Components/Annotation/AnnotationTarget",A);const h=A,D=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Components/Grouping/X3DGroupingNode");var _=t.n(D);function C(t){N().call(this,t),this.addType(m().X3DAnnotationNode)}C.prototype=Object.assign(Object.create(N().prototype),{constructor:C,initialize:function(){N().prototype.initialize.call(this)}});const x=C;O().set("x_ite/Components/Annotation/X3DAnnotationNode",x);const I=x;function E(t){_().call(this,t),I.call(this,t),this.addType(m().GroupAnnotation)}E.prototype=Object.assign(Object.create(_().prototype),I.prototype,{constructor:E,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(p())([new(a())(m().inputOutput,"metadata",new(i().SFNode)),new(a())(m().inputOutput,"enabled",new(i().SFBool)(!0)),new(a())(m().inputOutput,"annotationGroupID",new(i().SFString)),new(a())(m().inputOutput,"displayPolicy",new(i().SFString)("NEVER")),new(a())(m().inputOutput,"visible",new(i().SFBool)(!0)),new(a())(m().inputOutput,"bboxDisplay",new(i().SFBool)),new(a())(m().initializeOnly,"bboxCenter",new(i().SFVec3f)(0,0,0)),new(a())(m().initializeOnly,"bboxSize",new(i().SFVec3f)(-1,-1,-1)),new(a())(m().inputOnly,"addChildren",new(i().MFNode)),new(a())(m().inputOnly,"removeChildren",new(i().MFNode)),new(a())(m().inputOutput,"children",new(i().MFNode))]),getTypeName:function(){return"GroupAnnotation"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"children"},initialize:function(){_().prototype.initialize.call(this),I.prototype.initialize.call(this)},dispose:function(){I.prototype.dispose.call(this),_().prototype.dispose.call(this)}});const v=E;O().set("x_ite/Components/Annotation/GroupAnnotation",v);const z=v,j=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Components/Networking/X3DUrlObject");var B=t.n(j);function q(t){I.call(this,t),B().call(this,t),this.addType(m().IconAnnotation)}q.prototype=Object.assign(Object.create(I.prototype),B().prototype,{constructor:q,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(p())([new(a())(m().inputOutput,"metadata",new(i().SFNode)),new(a())(m().inputOutput,"enabled",new(i().SFBool)(!0)),new(a())(m().inputOutput,"annotationGroupID",new(i().SFString)),new(a())(m().inputOutput,"displayPolicy",new(i().SFString)("NEVER")),new(a())(m().inputOutput,"url",new(i().MFString)),new(a())(m().inputOutput,"autoRefresh",new(i().SFTime)),new(a())(m().inputOutput,"autoRefreshTimeLimit",new(i().SFTime)(3600))]),getTypeName:function(){return"IconAnnotation"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"children"},initialize:function(){I.prototype.initialize.call(this),B().prototype.initialize.call(this)},requestImmediateLoad:function(t=!0){},dispose:function(){B().prototype.dispose.call(this),I.prototype.dispose.call(this)}});const G=q;O().set("x_ite/Components/Annotation/IconAnnotation",G);const L=G;function R(t){I.call(this,t),this.addType(m().TextAnnotation)}R.prototype=Object.assign(Object.create(I.prototype),{constructor:R,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(p())([new(a())(m().inputOutput,"metadata",new(i().SFNode)),new(a())(m().inputOutput,"enabled",new(i().SFBool)(!0)),new(a())(m().inputOutput,"annotationGroupID",new(i().SFString)),new(a())(m().inputOutput,"displayPolicy",new(i().SFString)("NEVER")),new(a())(m().inputOutput,"contentType",new(i().SFString)("text/plain")),new(a())(m().inputOutput,"text",new(i().SFString))]),getTypeName:function(){return"TextAnnotation"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"children"},initialize:function(){I.prototype.initialize.call(this)}});const M=R;O().set("x_ite/Components/Annotation/TextAnnotation",M);const P=M;function V(t){I.call(this,t),this.addType(m().URLAnnotation)}V.prototype=Object.assign(Object.create(I.prototype),{constructor:V,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(p())([new(a())(m().inputOutput,"metadata",new(i().SFNode)),new(a())(m().inputOutput,"enabled",new(i().SFBool)(!0)),new(a())(m().inputOutput,"annotationGroupID",new(i().SFString)),new(a())(m().inputOutput,"displayPolicy",new(i().SFString)("NEVER")),new(a())(m().inputOutput,"url",new(i().MFString))]),getTypeName:function(){return"URLAnnotation"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"children"},initialize:function(){I.prototype.initialize.call(this)}});const U=V;O().set("x_ite/Components/Annotation/URLAnnotation",U);const k=U;e().addComponent({name:"Annotation",types:{AnnotationLayer:F,AnnotationTarget:h,GroupAnnotation:z,IconAnnotation:L,TextAnnotation:P,URLAnnotation:k},abstractTypes:{X3DAnnotationNode:I}});const H=void 0;O().set("assets/components/Annotation",H)})();
@@ -1,4 +1,4 @@
1
- /* X_ITE v8.6.9 */(() => { // webpackBootstrap
1
+ /* X_ITE v8.6.11 */(() => { // 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-8.6.9")] .require ("x_ite/Components");
42
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Components");
43
43
  var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
44
44
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
45
- const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Fields");
45
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Fields");
46
46
  var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
47
47
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
48
- const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Base/X3DFieldDefinition");
48
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Base/X3DFieldDefinition");
49
49
  var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
50
50
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
51
- const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Base/FieldDefinitionArray");
51
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .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-8.6.9")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
54
+ const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .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-8.6.9")] .require ("x_ite/Components/Core/X3DChildNode");
57
+ const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .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-8.6.9")] .require ("x_ite/Base/X3DConstants");
60
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .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-8.6.9")] .require ("x_ite/Namespace");
63
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .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
  /*******************************************************************************
@@ -228,10 +228,10 @@ const CADAssembly_default_ = CADAssembly;
228
228
  Namespace_default().set ("x_ite/Components/CADGeometry/CADAssembly", CADAssembly_default_);
229
229
  /* harmony default export */ const CADGeometry_CADAssembly = (CADAssembly_default_);
230
230
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
231
- const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
231
+ const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
232
232
  var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
233
233
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
234
- const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Rendering/TraverseType");
234
+ const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Rendering/TraverseType");
235
235
  var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
236
236
  ;// CONCATENATED MODULE: ./src/x_ite/Components/CADGeometry/CADFace.js
237
237
  /*******************************************************************************
@@ -594,7 +594,7 @@ const CADLayer_default_ = CADLayer;
594
594
  Namespace_default().set ("x_ite/Components/CADGeometry/CADLayer", CADLayer_default_);
595
595
  /* harmony default export */ const CADGeometry_CADLayer = (CADLayer_default_);
596
596
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DTransformNode\")"
597
- const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Components/Grouping/X3DTransformNode");
597
+ const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Components/Grouping/X3DTransformNode");
598
598
  var X3DTransformNode_default = /*#__PURE__*/__webpack_require__.n(X3DTransformNode_namespaceObject);
599
599
  ;// CONCATENATED MODULE: ./src/x_ite/Components/CADGeometry/CADPart.js
600
600
  /*******************************************************************************
@@ -699,7 +699,7 @@ const CADPart_default_ = CADPart;
699
699
  Namespace_default().set ("x_ite/Components/CADGeometry/CADPart", CADPart_default_);
700
700
  /* harmony default export */ const CADGeometry_CADPart = (CADPart_default_);
701
701
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DComposedGeometryNode\")"
702
- const X3DComposedGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Components/Rendering/X3DComposedGeometryNode");
702
+ const X3DComposedGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Components/Rendering/X3DComposedGeometryNode");
703
703
  var X3DComposedGeometryNode_default = /*#__PURE__*/__webpack_require__.n(X3DComposedGeometryNode_namespaceObject);
704
704
  ;// CONCATENATED MODULE: ./src/x_ite/Components/CADGeometry/IndexedQuadSet.js
705
705
  /*******************************************************************************
@@ -1 +1 @@
1
- /* X_ITE v8.6.9 */(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Fields");var o=e.n(i);const r=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Base/X3DFieldDefinition");var s=e.n(r);const u=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Base/FieldDefinitionArray");var a=e.n(u);const l=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Components/Grouping/X3DGroupingNode");var d=e.n(l);const c=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Components/Core/X3DChildNode");var p=e.n(c);const w=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Base/X3DConstants");var b=e.n(w);const h=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Namespace");var y=e.n(h);function _(e){p().call(this,e),this.addType(b().X3DProductStructureChildNode)}_.prototype=Object.assign(Object.create(p().prototype),{constructor:_});const m=_;y().set("x_ite/Components/CADGeometry/X3DProductStructureChildNode",m);const O=m;function f(e){d().call(this,e),O.call(this,e),this.addType(b().CADAssembly)}f.prototype=Object.assign(Object.create(d().prototype),{constructor:f,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(b().inputOutput,"metadata",new(o().SFNode)),new(s())(b().inputOutput,"name",new(o().SFString)),new(s())(b().inputOutput,"visible",new(o().SFBool)(!0)),new(s())(b().inputOutput,"bboxDisplay",new(o().SFBool)),new(s())(b().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(s())(b().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(s())(b().inputOnly,"addChildren",new(o().MFNode)),new(s())(b().inputOnly,"removeChildren",new(o().MFNode)),new(s())(b().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"CADAssembly"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"children"}});const S=f;y().set("x_ite/Components/CADGeometry/CADAssembly",S);const C=S,N=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Components/Grouping/X3DBoundedObject");var D=e.n(N);const F=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Rendering/TraverseType");var g=e.n(F);function x(e){O.call(this,e),D().call(this,e),this.addType(b().CADFace),this.childNode=null,this.visibleNode=null,this.boundedObject=null}x.prototype=Object.assign(Object.create(O.prototype),D().prototype,{constructor:x,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(b().inputOutput,"metadata",new(o().SFNode)),new(s())(b().inputOutput,"name",new(o().SFString)),new(s())(b().inputOutput,"visible",new(o().SFBool)(!0)),new(s())(b().inputOutput,"bboxDisplay",new(o().SFBool)),new(s())(b().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(s())(b().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(s())(b().inputOutput,"shape",new(o().SFNode))]),getTypeName:function(){return"CADFace"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"children"},initialize:function(){O.prototype.initialize.call(this),D().prototype.initialize.call(this),this._shape.addInterest("set_shape__",this),this.set_shape__()},getBBox:function(e,t){if(this._bboxSize.getValue().equals(this.getDefaultBBoxSize())){const n=this.visibleNode;return n?n.getBBox(e,t):e.set()}return e.set(this._bboxSize.getValue(),this._bboxCenter.getValue())},set_shape__:function(){this.childNode&&(this.childNode._isCameraObject.removeInterest("set_cameraObject__",this),this.childNode._isPickableObject.removeInterest("set_transformSensors__",this),this.childNode._visible.removeInterest("set_visible__",this),this.childNode._bboxDisplay.removeInterest("set_bboxDisplay__",this)),this.childNode=null;try{const e=this._shape.getValue().getInnerNode(),t=e.getType();for(let n=t.length-1;n>=0;--n){switch(t[n]){case b().LOD:case b().Transform:case b().X3DShapeNode:e._isCameraObject.addInterest("set_cameraObject__",this),e._isPickableObject.addInterest("set_transformSensors__",this),e._visible.addInterest("set_visible__",this),e._bboxDisplay.addInterest("set_bboxDisplay__",this),this.childNode=e;break;default:continue}break}}catch(e){}this.childNode?delete this.traverse:this.traverse=Function.prototype,this.set_visible__(),this.set_bboxDisplay__()},set_cameraObject__:function(){this.setCameraObject(!(!this.visibleNode||!this.visibleNode.isCameraObject()))},set_transformSensors__:function(){this.setPickableObject(!(!this.visibleNode||!this.visibleNode.isPickableObject()))},set_visible__:function(){this.childNode?this.visibleNode=this.childNode._visible.getValue()?this.childNode:null:this.visibleNode=null,this.set_cameraObject__(),this.set_transformSensors__()},set_bboxDisplay__:function(){this.childNode?this.boundedObject=this.childNode._bboxDisplay.getValue()?this.childNode:null:this.boundedObject=null},traverse:function(e,t){switch(e){case g().POINTER:case g().CAMERA:case g().SHADOW:{const n=this.visibleNode;return void(n&&n.traverse(e,t))}case g().PICKING:{const n=this.getBrowser().getPickingHierarchy();n.push(this);const i=this.visibleNode;return i&&i.traverse(e,t),void n.pop()}case g().COLLISION:{const n=this.visibleNode;return void(n&&n.traverse(e,t))}case g().DISPLAY:{const n=this.visibleNode;n&&n.traverse(e,t);const i=this.boundedObject;return void(i&&i.displayBBox(e,t))}}},dispose:function(){D().prototype.dispose.call(this),O.prototype.dispose.call(this)}});const v=x;y().set("x_ite/Components/CADGeometry/CADFace",v);const X=v;function I(e){d().call(this,e),this.addType(b().CADLayer)}I.prototype=Object.assign(Object.create(d().prototype),{constructor:I,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(b().inputOutput,"metadata",new(o().SFNode)),new(s())(b().inputOutput,"name",new(o().SFString)),new(s())(b().inputOutput,"visible",new(o().SFBool)(!0)),new(s())(b().inputOutput,"bboxDisplay",new(o().SFBool)),new(s())(b().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(s())(b().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(s())(b().inputOnly,"addChildren",new(o().MFNode)),new(s())(b().inputOnly,"removeChildren",new(o().MFNode)),new(s())(b().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"CADLayer"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"children"}});const A=I;y().set("x_ite/Components/CADGeometry/CADLayer",A);const T=A,B=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Components/Grouping/X3DTransformNode");var j=e.n(B);function z(e){j().call(this,e),O.call(this,e),this.addType(b().CADPart)}z.prototype=Object.assign(Object.create(j().prototype),{constructor:z,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(b().inputOutput,"metadata",new(o().SFNode)),new(s())(b().inputOutput,"name",new(o().SFString)),new(s())(b().inputOutput,"translation",new(o().SFVec3f)),new(s())(b().inputOutput,"rotation",new(o().SFRotation)),new(s())(b().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(s())(b().inputOutput,"scaleOrientation",new(o().SFRotation)),new(s())(b().inputOutput,"center",new(o().SFVec3f)),new(s())(b().inputOutput,"visible",new(o().SFBool)(!0)),new(s())(b().inputOutput,"bboxDisplay",new(o().SFBool)),new(s())(b().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(s())(b().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(s())(b().inputOnly,"addChildren",new(o().MFNode)),new(s())(b().inputOnly,"removeChildren",new(o().MFNode)),new(s())(b().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"CADPart"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"children"}});const P=z;y().set("x_ite/Components/CADGeometry/CADPart",P);const G=P,V=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Components/Rendering/X3DComposedGeometryNode");var E=e.n(V);function M(e){E().call(this,e),this.addType(b().IndexedQuadSet)}M.prototype=Object.assign(Object.create(E().prototype),{constructor:M,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(b().inputOutput,"metadata",new(o().SFNode)),new(s())(b().inputOnly,"set_index",new(o().MFInt32)),new(s())(b().initializeOnly,"solid",new(o().SFBool)(!0)),new(s())(b().initializeOnly,"ccw",new(o().SFBool)(!0)),new(s())(b().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(s())(b().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(s())(b().initializeOnly,"index",new(o().MFInt32)),new(s())(b().inputOutput,"attrib",new(o().MFNode)),new(s())(b().inputOutput,"fogCoord",new(o().SFNode)),new(s())(b().inputOutput,"color",new(o().SFNode)),new(s())(b().inputOutput,"texCoord",new(o().SFNode)),new(s())(b().inputOutput,"normal",new(o().SFNode)),new(s())(b().inputOutput,"coord",new(o().SFNode))]),getTypeName:function(){return"IndexedQuadSet"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"geometry"},initialize:function(){E().prototype.initialize.call(this),this._set_index.addFieldInterest(this._index)},getTriangleIndex:function(){const e=[0,1,2,0,2,3];return function(t){const n=t%6;return(t-n)/6*4+e[n]}}(),getPolygonIndex:function(e){return this._index[e]},build:function(){let e=this._index.length;e-=e%4,E().prototype.build.call(this,4,e,6,e/4*6)}});const q=M;y().set("x_ite/Components/CADGeometry/IndexedQuadSet",q);const L=q;function Q(e){E().call(this,e),this.addType(b().QuadSet)}Q.prototype=Object.assign(Object.create(E().prototype),{constructor:Q,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(b().inputOutput,"metadata",new(o().SFNode)),new(s())(b().initializeOnly,"solid",new(o().SFBool)(!0)),new(s())(b().initializeOnly,"ccw",new(o().SFBool)(!0)),new(s())(b().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(s())(b().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(s())(b().inputOutput,"attrib",new(o().MFNode)),new(s())(b().inputOutput,"fogCoord",new(o().SFNode)),new(s())(b().inputOutput,"color",new(o().SFNode)),new(s())(b().inputOutput,"texCoord",new(o().SFNode)),new(s())(b().inputOutput,"normal",new(o().SFNode)),new(s())(b().inputOutput,"coord",new(o().SFNode))]),getTypeName:function(){return"QuadSet"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"geometry"},getTriangleIndex:function(){const e=[0,1,2,0,2,3];return function(t){const n=t%6;return(t-n)/6*4+e[n]}}(),build:function(){if(!this.getCoord())return;let e=this.getCoord().getSize();e-=e%4,E().prototype.build.call(this,4,e,6,e/4*6)},createNormals:function(e,t){return this.createFaceNormals(e,t)}});const k=Q;y().set("x_ite/Components/CADGeometry/QuadSet",k);const R=k;n().addComponent({name:"CADGeometry",types:{CADAssembly:C,CADFace:X,CADLayer:T,CADPart:G,IndexedQuadSet:L,QuadSet:R},abstractTypes:{X3DProductStructureChildNode:O}});const H=void 0;y().set("assets/components/CADGeometry",H)})();
1
+ /* X_ITE v8.6.11 */(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Fields");var o=e.n(i);const r=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Base/X3DFieldDefinition");var s=e.n(r);const u=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Base/FieldDefinitionArray");var a=e.n(u);const l=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Components/Grouping/X3DGroupingNode");var d=e.n(l);const c=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Components/Core/X3DChildNode");var p=e.n(c);const w=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Base/X3DConstants");var b=e.n(w);const h=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Namespace");var y=e.n(h);function _(e){p().call(this,e),this.addType(b().X3DProductStructureChildNode)}_.prototype=Object.assign(Object.create(p().prototype),{constructor:_});const m=_;y().set("x_ite/Components/CADGeometry/X3DProductStructureChildNode",m);const O=m;function f(e){d().call(this,e),O.call(this,e),this.addType(b().CADAssembly)}f.prototype=Object.assign(Object.create(d().prototype),{constructor:f,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(b().inputOutput,"metadata",new(o().SFNode)),new(s())(b().inputOutput,"name",new(o().SFString)),new(s())(b().inputOutput,"visible",new(o().SFBool)(!0)),new(s())(b().inputOutput,"bboxDisplay",new(o().SFBool)),new(s())(b().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(s())(b().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(s())(b().inputOnly,"addChildren",new(o().MFNode)),new(s())(b().inputOnly,"removeChildren",new(o().MFNode)),new(s())(b().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"CADAssembly"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"children"}});const S=f;y().set("x_ite/Components/CADGeometry/CADAssembly",S);const C=S,N=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Components/Grouping/X3DBoundedObject");var D=e.n(N);const F=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Rendering/TraverseType");var g=e.n(F);function x(e){O.call(this,e),D().call(this,e),this.addType(b().CADFace),this.childNode=null,this.visibleNode=null,this.boundedObject=null}x.prototype=Object.assign(Object.create(O.prototype),D().prototype,{constructor:x,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(b().inputOutput,"metadata",new(o().SFNode)),new(s())(b().inputOutput,"name",new(o().SFString)),new(s())(b().inputOutput,"visible",new(o().SFBool)(!0)),new(s())(b().inputOutput,"bboxDisplay",new(o().SFBool)),new(s())(b().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(s())(b().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(s())(b().inputOutput,"shape",new(o().SFNode))]),getTypeName:function(){return"CADFace"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"children"},initialize:function(){O.prototype.initialize.call(this),D().prototype.initialize.call(this),this._shape.addInterest("set_shape__",this),this.set_shape__()},getBBox:function(e,t){if(this._bboxSize.getValue().equals(this.getDefaultBBoxSize())){const n=this.visibleNode;return n?n.getBBox(e,t):e.set()}return e.set(this._bboxSize.getValue(),this._bboxCenter.getValue())},set_shape__:function(){this.childNode&&(this.childNode._isCameraObject.removeInterest("set_cameraObject__",this),this.childNode._isPickableObject.removeInterest("set_transformSensors__",this),this.childNode._visible.removeInterest("set_visible__",this),this.childNode._bboxDisplay.removeInterest("set_bboxDisplay__",this)),this.childNode=null;try{const e=this._shape.getValue().getInnerNode(),t=e.getType();for(let n=t.length-1;n>=0;--n){switch(t[n]){case b().LOD:case b().Transform:case b().X3DShapeNode:e._isCameraObject.addInterest("set_cameraObject__",this),e._isPickableObject.addInterest("set_transformSensors__",this),e._visible.addInterest("set_visible__",this),e._bboxDisplay.addInterest("set_bboxDisplay__",this),this.childNode=e;break;default:continue}break}}catch(e){}this.childNode?delete this.traverse:this.traverse=Function.prototype,this.set_visible__(),this.set_bboxDisplay__()},set_cameraObject__:function(){this.setCameraObject(!(!this.visibleNode||!this.visibleNode.isCameraObject()))},set_transformSensors__:function(){this.setPickableObject(!(!this.visibleNode||!this.visibleNode.isPickableObject()))},set_visible__:function(){this.childNode?this.visibleNode=this.childNode._visible.getValue()?this.childNode:null:this.visibleNode=null,this.set_cameraObject__(),this.set_transformSensors__()},set_bboxDisplay__:function(){this.childNode?this.boundedObject=this.childNode._bboxDisplay.getValue()?this.childNode:null:this.boundedObject=null},traverse:function(e,t){switch(e){case g().POINTER:case g().CAMERA:case g().SHADOW:{const n=this.visibleNode;return void(n&&n.traverse(e,t))}case g().PICKING:{const n=this.getBrowser().getPickingHierarchy();n.push(this);const i=this.visibleNode;return i&&i.traverse(e,t),void n.pop()}case g().COLLISION:{const n=this.visibleNode;return void(n&&n.traverse(e,t))}case g().DISPLAY:{const n=this.visibleNode;n&&n.traverse(e,t);const i=this.boundedObject;return void(i&&i.displayBBox(e,t))}}},dispose:function(){D().prototype.dispose.call(this),O.prototype.dispose.call(this)}});const v=x;y().set("x_ite/Components/CADGeometry/CADFace",v);const X=v;function I(e){d().call(this,e),this.addType(b().CADLayer)}I.prototype=Object.assign(Object.create(d().prototype),{constructor:I,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(b().inputOutput,"metadata",new(o().SFNode)),new(s())(b().inputOutput,"name",new(o().SFString)),new(s())(b().inputOutput,"visible",new(o().SFBool)(!0)),new(s())(b().inputOutput,"bboxDisplay",new(o().SFBool)),new(s())(b().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(s())(b().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(s())(b().inputOnly,"addChildren",new(o().MFNode)),new(s())(b().inputOnly,"removeChildren",new(o().MFNode)),new(s())(b().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"CADLayer"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"children"}});const A=I;y().set("x_ite/Components/CADGeometry/CADLayer",A);const T=A,B=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Components/Grouping/X3DTransformNode");var j=e.n(B);function z(e){j().call(this,e),O.call(this,e),this.addType(b().CADPart)}z.prototype=Object.assign(Object.create(j().prototype),{constructor:z,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(b().inputOutput,"metadata",new(o().SFNode)),new(s())(b().inputOutput,"name",new(o().SFString)),new(s())(b().inputOutput,"translation",new(o().SFVec3f)),new(s())(b().inputOutput,"rotation",new(o().SFRotation)),new(s())(b().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(s())(b().inputOutput,"scaleOrientation",new(o().SFRotation)),new(s())(b().inputOutput,"center",new(o().SFVec3f)),new(s())(b().inputOutput,"visible",new(o().SFBool)(!0)),new(s())(b().inputOutput,"bboxDisplay",new(o().SFBool)),new(s())(b().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(s())(b().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(s())(b().inputOnly,"addChildren",new(o().MFNode)),new(s())(b().inputOnly,"removeChildren",new(o().MFNode)),new(s())(b().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"CADPart"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"children"}});const P=z;y().set("x_ite/Components/CADGeometry/CADPart",P);const G=P,V=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Components/Rendering/X3DComposedGeometryNode");var E=e.n(V);function M(e){E().call(this,e),this.addType(b().IndexedQuadSet)}M.prototype=Object.assign(Object.create(E().prototype),{constructor:M,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(b().inputOutput,"metadata",new(o().SFNode)),new(s())(b().inputOnly,"set_index",new(o().MFInt32)),new(s())(b().initializeOnly,"solid",new(o().SFBool)(!0)),new(s())(b().initializeOnly,"ccw",new(o().SFBool)(!0)),new(s())(b().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(s())(b().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(s())(b().initializeOnly,"index",new(o().MFInt32)),new(s())(b().inputOutput,"attrib",new(o().MFNode)),new(s())(b().inputOutput,"fogCoord",new(o().SFNode)),new(s())(b().inputOutput,"color",new(o().SFNode)),new(s())(b().inputOutput,"texCoord",new(o().SFNode)),new(s())(b().inputOutput,"normal",new(o().SFNode)),new(s())(b().inputOutput,"coord",new(o().SFNode))]),getTypeName:function(){return"IndexedQuadSet"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"geometry"},initialize:function(){E().prototype.initialize.call(this),this._set_index.addFieldInterest(this._index)},getTriangleIndex:function(){const e=[0,1,2,0,2,3];return function(t){const n=t%6;return(t-n)/6*4+e[n]}}(),getPolygonIndex:function(e){return this._index[e]},build:function(){let e=this._index.length;e-=e%4,E().prototype.build.call(this,4,e,6,e/4*6)}});const q=M;y().set("x_ite/Components/CADGeometry/IndexedQuadSet",q);const L=q;function Q(e){E().call(this,e),this.addType(b().QuadSet)}Q.prototype=Object.assign(Object.create(E().prototype),{constructor:Q,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(b().inputOutput,"metadata",new(o().SFNode)),new(s())(b().initializeOnly,"solid",new(o().SFBool)(!0)),new(s())(b().initializeOnly,"ccw",new(o().SFBool)(!0)),new(s())(b().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(s())(b().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(s())(b().inputOutput,"attrib",new(o().MFNode)),new(s())(b().inputOutput,"fogCoord",new(o().SFNode)),new(s())(b().inputOutput,"color",new(o().SFNode)),new(s())(b().inputOutput,"texCoord",new(o().SFNode)),new(s())(b().inputOutput,"normal",new(o().SFNode)),new(s())(b().inputOutput,"coord",new(o().SFNode))]),getTypeName:function(){return"QuadSet"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"geometry"},getTriangleIndex:function(){const e=[0,1,2,0,2,3];return function(t){const n=t%6;return(t-n)/6*4+e[n]}}(),build:function(){if(!this.getCoord())return;let e=this.getCoord().getSize();e-=e%4,E().prototype.build.call(this,4,e,6,e/4*6)},createNormals:function(e,t){return this.createFaceNormals(e,t)}});const k=Q;y().set("x_ite/Components/CADGeometry/QuadSet",k);const R=k;n().addComponent({name:"CADGeometry",types:{CADAssembly:C,CADFace:X,CADLayer:T,CADPart:G,IndexedQuadSet:L,QuadSet:R},abstractTypes:{X3DProductStructureChildNode:O}});const H=void 0;y().set("assets/components/CADGeometry",H)})();
@@ -1,11 +1,11 @@
1
- /* X_ITE v8.6.9 */(() => { // webpackBootstrap
1
+ /* X_ITE v8.6.11 */(() => { // webpackBootstrap
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
5
  /***/ 355:
6
6
  /***/ ((module) => {
7
7
 
8
- module.exports = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("lib/jquery");
8
+ module.exports = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("lib/jquery");
9
9
 
10
10
  /***/ })
11
11
 
@@ -73,25 +73,25 @@ var __webpack_exports__ = {};
73
73
  // UNUSED EXPORTS: default
74
74
 
75
75
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
76
- const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Components");
76
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Components");
77
77
  var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
78
78
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
79
- const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Fields");
79
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Fields");
80
80
  var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
81
81
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
82
- const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Base/X3DFieldDefinition");
82
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Base/X3DFieldDefinition");
83
83
  var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
84
84
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
85
- const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Base/FieldDefinitionArray");
85
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Base/FieldDefinitionArray");
86
86
  var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
87
87
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/X3DSingleTextureNode\")"
88
- const X3DSingleTextureNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Components/Texturing/X3DSingleTextureNode");
88
+ const X3DSingleTextureNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Components/Texturing/X3DSingleTextureNode");
89
89
  var X3DSingleTextureNode_default = /*#__PURE__*/__webpack_require__.n(X3DSingleTextureNode_namespaceObject);
90
90
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
91
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Base/X3DConstants");
91
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Base/X3DConstants");
92
92
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
93
93
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
94
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Namespace");
94
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Namespace");
95
95
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
96
96
  ;// CONCATENATED MODULE: ./src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js
97
97
  /*******************************************************************************
@@ -227,10 +227,10 @@ const __default__ = X3DEnvironmentTextureNode;
227
227
  Namespace_default().set ("x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode", __default__);
228
228
  /* harmony default export */ const CubeMapTexturing_X3DEnvironmentTextureNode = (__default__);
229
229
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
230
- const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Base/X3DCast");
230
+ const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Base/X3DCast");
231
231
  var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
232
232
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Utility/BitSet\")"
233
- const BitSet_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("standard/Utility/BitSet");
233
+ const BitSet_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("standard/Utility/BitSet");
234
234
  var BitSet_default = /*#__PURE__*/__webpack_require__.n(BitSet_namespaceObject);
235
235
  ;// CONCATENATED MODULE: ./src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js
236
236
  /*******************************************************************************
@@ -474,13 +474,13 @@ const ComposedCubeMapTexture_default_ = ComposedCubeMapTexture;
474
474
  Namespace_default().set ("x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture", ComposedCubeMapTexture_default_);
475
475
  /* harmony default export */ const CubeMapTexturing_ComposedCubeMapTexture = (ComposedCubeMapTexture_default_);
476
476
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DBaseNode\")"
477
- const X3DBaseNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Base/X3DBaseNode");
477
+ const X3DBaseNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Base/X3DBaseNode");
478
478
  var X3DBaseNode_default = /*#__PURE__*/__webpack_require__.n(X3DBaseNode_namespaceObject);
479
479
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/X3DRenderObject\")"
480
- const X3DRenderObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Rendering/X3DRenderObject");
480
+ const X3DRenderObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Rendering/X3DRenderObject");
481
481
  var X3DRenderObject_default = /*#__PURE__*/__webpack_require__.n(X3DRenderObject_namespaceObject);
482
482
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
483
- const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Rendering/TraverseType");
483
+ const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Rendering/TraverseType");
484
484
  var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
485
485
  ;// CONCATENATED MODULE: ./src/x_ite/Rendering/DependentRenderer.js
486
486
  /*******************************************************************************
@@ -621,28 +621,28 @@ const DependentRenderer_default_ = DependentRenderer;
621
621
  Namespace_default().set ("x_ite/Rendering/DependentRenderer", DependentRenderer_default_);
622
622
  /* harmony default export */ const Rendering_DependentRenderer = (DependentRenderer_default_);
623
623
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TextureBuffer\")"
624
- const TextureBuffer_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Rendering/TextureBuffer");
624
+ const TextureBuffer_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Rendering/TextureBuffer");
625
625
  var TextureBuffer_default = /*#__PURE__*/__webpack_require__.n(TextureBuffer_namespaceObject);
626
626
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Camera\")"
627
- const Camera_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("standard/Math/Geometry/Camera");
627
+ const Camera_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("standard/Math/Geometry/Camera");
628
628
  var Camera_default = /*#__PURE__*/__webpack_require__.n(Camera_namespaceObject);
629
629
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/ViewVolume\")"
630
- const ViewVolume_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("standard/Math/Geometry/ViewVolume");
630
+ const ViewVolume_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("standard/Math/Geometry/ViewVolume");
631
631
  var ViewVolume_default = /*#__PURE__*/__webpack_require__.n(ViewVolume_namespaceObject);
632
632
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
633
- const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("standard/Math/Numbers/Rotation4");
633
+ const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("standard/Math/Numbers/Rotation4");
634
634
  var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
635
635
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
636
- const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("standard/Math/Numbers/Vector3");
636
+ const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("standard/Math/Numbers/Vector3");
637
637
  var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
638
638
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector4\")"
639
- const Vector4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("standard/Math/Numbers/Vector4");
639
+ const Vector4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("standard/Math/Numbers/Vector4");
640
640
  var Vector4_default = /*#__PURE__*/__webpack_require__.n(Vector4_namespaceObject);
641
641
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
642
- const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("standard/Math/Numbers/Matrix4");
642
+ const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("standard/Math/Numbers/Matrix4");
643
643
  var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
644
644
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithm\")"
645
- const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("standard/Math/Algorithm");
645
+ const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("standard/Math/Algorithm");
646
646
  var Algorithm_default = /*#__PURE__*/__webpack_require__.n(Algorithm_namespaceObject);
647
647
  ;// CONCATENATED MODULE: ./src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js
648
648
  /*******************************************************************************
@@ -930,13 +930,13 @@ const GeneratedCubeMapTexture_default_ = GeneratedCubeMapTexture;
930
930
  Namespace_default().set ("x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture", GeneratedCubeMapTexture_default_);
931
931
  /* harmony default export */ const CubeMapTexturing_GeneratedCubeMapTexture = (GeneratedCubeMapTexture_default_);
932
932
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Networking/X3DUrlObject\")"
933
- const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/Components/Networking/X3DUrlObject");
933
+ const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/Components/Networking/X3DUrlObject");
934
934
  var X3DUrlObject_default = /*#__PURE__*/__webpack_require__.n(X3DUrlObject_namespaceObject);
935
935
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector2\")"
936
- const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("standard/Math/Numbers/Vector2");
936
+ const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("standard/Math/Numbers/Vector2");
937
937
  var Vector2_default = /*#__PURE__*/__webpack_require__.n(Vector2_namespaceObject);
938
938
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/DEBUG\")"
939
- const DEBUG_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.9")] .require ("x_ite/DEBUG");
939
+ const DEBUG_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.11")] .require ("x_ite/DEBUG");
940
940
  var DEBUG_default = /*#__PURE__*/__webpack_require__.n(DEBUG_namespaceObject);
941
941
  ;// CONCATENATED MODULE: ./src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js
942
942
  /* provided dependency */ var $ = __webpack_require__(355);
@@ -1 +1 @@
1
- /* X_ITE v8.6.9 */(()=>{"use strict";var e={355:e=>{e.exports=window[Symbol.for("X_ITE.X3D-8.6.9")].require("lib/jquery")}},t={};function r(i){var n=t[i];if(void 0!==n)return n.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,r),o.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 e=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Components");var t=r.n(e);const i=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Fields");var n=r.n(i);const o=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Base/X3DFieldDefinition");var s=r.n(o);const a=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Base/FieldDefinitionArray");var u=r.n(a);const d=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Components/Texturing/X3DSingleTextureNode");var h=r.n(d);const p=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Base/X3DConstants");var c=r.n(p);const g=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Namespace");var l=r.n(g);function T(e){h().call(this,e),this.addType(c().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]}T.prototype=Object.assign(Object.create(h().prototype),{constructor:T,getTarget:function(){return this.target},getTextureType:function(){return 4},getTextureTypeString:function(){return"CUBE"},getTargets:function(){return this.targets},clearTexture:function(){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.setTransparent(!1)}}(),updateTextureParameters:function(){h().prototype.updateTextureParameters.call(this,this.target,this._textureProperties.getValue(),this.texturePropertiesNode,128,128,!1,!1,!1)},setShaderUniforms:function(e,t,r,i=t.x3d_Texture[0]){const n=this.getBrowser().getTextureCubeUnit();e.activeTexture(e.TEXTURE0+n),e.bindTexture(e.TEXTURE_CUBE_MAP,this.getTexture()),e.uniform1i(i.textureCube,n)}});const x=T;l().set("x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode",x);const f=x,_=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Base/X3DCast");var w=r.n(_);const m=window[Symbol.for("X_ITE.X3D-8.6.9")].require("standard/Utility/BitSet");var b=r.n(m);function E(e){f.call(this,e),this.addType(c().ComposedCubeMapTexture),e.getSpecificationVersion()<4&&(this.addAlias("front",this._frontTexture),this.addAlias("back",this._backTexture),this.addAlias("left",this._leftTexture),this.addAlias("right",this._rightTexture),this.addAlias("bottom",this._bottomTexture),this.addAlias("top",this._topTexture)),this.addChildObjects("update",new(n().SFTime)),this.textureNodes=[null,null,null,null,null,null],this.loadStateBits=new(b())}E.prototype=Object.assign(Object.create(f.prototype),{constructor:E,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(u())([new(s())(c().inputOutput,"metadata",new(n().SFNode)),new(s())(c().inputOutput,"description",new(n().SFString)),new(s())(c().inputOutput,"frontTexture",new(n().SFNode)),new(s())(c().inputOutput,"backTexture",new(n().SFNode)),new(s())(c().inputOutput,"leftTexture",new(n().SFNode)),new(s())(c().inputOutput,"rightTexture",new(n().SFNode)),new(s())(c().inputOutput,"bottomTexture",new(n().SFNode)),new(s())(c().inputOutput,"topTexture",new(n().SFNode)),new(s())(c().initializeOnly,"textureProperties",new(n().SFNode))]),getTypeName:function(){return"ComposedCubeMapTexture"},getComponentName:function(){return"CubeMapTexturing"},getContainerField:function(){return"texture"},initialize:function(){f.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__(this._frontTexture,0),this.set_texture__(this._backTexture,1),this.set_texture__(this._leftTexture,2),this.set_texture__(this._rightTexture,3),this.set_texture__(this._topTexture,4),this.set_texture__(this._bottomTexture,5)},set_texture__:function(e,t){let r=this.textureNodes[t];r&&r.removeInterest("set_loadState__",this),r=this.textureNodes[t]=w()(c().X3DTexture2DNode,e),r&&r.addInterest("set_loadState__",this,r,t),this.set_loadState__(r,t)},set_loadState__:function(e,t){e?this.setLoadStateBit(t,e,e.checkLoadState()):this.setLoadStateBit(t,e,c().NOT_STARTED),this._update.addEvent()},setLoadStateBit:function(e,t,r){this.loadStateBits.set(e,r===c().COMPLETE_STATE||t.getWidth())},isComplete:function(){if(63!=+this.loadStateBits)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:function(){if(this.isComplete()){const e=this.getBrowser().getContext(),t=this.textureNodes,r=e.getParameter(e.FRAMEBUFFER_BINDING);e.bindFramebuffer(e.FRAMEBUFFER,this.frameBuffer);for(let r=0;r<6;++r){const i=t[r],n=i.getWidth(),o=i.getHeight();switch(i.getType().at(-1)){case c().ImageTexture:case c().MovieTexture:e.bindTexture(this.getTarget(),this.getTexture()),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,i._flipVertically.getValue()),e.texImage2D(this.getTargets()[r],0,e.RGBA,n,o,0,e.RGBA,e.UNSIGNED_BYTE,i.getElement());break;default:e.bindTexture(e.TEXTURE_2D,i.getTexture()),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,i.getTexture(),0),e.bindTexture(this.getTarget(),this.getTexture()),e.texImage2D(this.getTargets()[r],0,e.RGBA,n,o,0,e.RGBA,e.UNSIGNED_BYTE,null),e.copyTexSubImage2D(this.getTargets()[r],0,0,0,0,0,n,o)}}e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!1),e.bindFramebuffer(e.FRAMEBUFFER,r),this.setTransparent(t.some((e=>e.isTransparent()))),this.updateTextureParameters()}else this.clearTexture()}});const S=E;l().set("x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture",S);const y=S,I=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Base/X3DBaseNode");var M=r.n(I);const C=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Rendering/X3DRenderObject");var N=r.n(C);const X=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Rendering/TraverseType");var B=r.n(X);function D(e){M().call(this,e),N().call(this,e),this.renderObject=null}D.prototype=Object.assign(Object.create(M().prototype),N().prototype,{constructor:D,initialize:function(){M().prototype.initialize.call(this),N().prototype.initialize.call(this)},isIndependent:function(){return!1},setRenderer:function(e){this.renderObject=e},getLayer:function(){return this.renderObject.getLayer()},getBackground:function(){return this.renderObject.getBackground()},getFog:function(){return this.renderObject.getFog()},getNavigationInfo:function(){return this.renderObject.getNavigationInfo()},getViewpoint:function(){return this.renderObject.getViewpoint()},getLightContainer:function(){return this.renderObject.getLights()[this.lightIndex++]},render:function(e,t,r){switch(e){case B().COLLISION:case B().SHADOW:N().prototype.render.call(this,e,t,r);break;case B().DISPLAY:this.lightIndex=0,N().prototype.render.call(this,e,t,r);for(const e of this.renderObject.getLights())e.modelViewMatrix.pop()}}});for(const e of Reflect.ownKeys(D.prototype))Object.defineProperty(D.prototype,e,{enumerable:!1});const O=D;l().set("x_ite/Rendering/DependentRenderer",O);const R=O,A=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Rendering/TextureBuffer");var v=r.n(A);const U=window[Symbol.for("X_ITE.X3D-8.6.9")].require("standard/Math/Geometry/Camera");var F=r.n(U);const V=window[Symbol.for("X_ITE.X3D-8.6.9")].require("standard/Math/Geometry/ViewVolume");var P=r.n(V);const L=window[Symbol.for("X_ITE.X3D-8.6.9")].require("standard/Math/Numbers/Rotation4");var G=r.n(L);const j=window[Symbol.for("X_ITE.X3D-8.6.9")].require("standard/Math/Numbers/Vector3");var q=r.n(j);const z=window[Symbol.for("X_ITE.X3D-8.6.9")].require("standard/Math/Numbers/Vector4");var k=r.n(z);const Y=window[Symbol.for("X_ITE.X3D-8.6.9")].require("standard/Math/Numbers/Matrix4");var W=r.n(Y);const H=window[Symbol.for("X_ITE.X3D-8.6.9")].require("standard/Math/Algorithm");var K=r.n(H);function Z(e){f.call(this,e),this.addType(c().GeneratedCubeMapTexture),this.dependentRenderer=new R(e),this.projectionMatrix=new(W()),this.modelMatrix=new(W()),this.viewVolume=new(P())}Z.prototype=Object.assign(Object.create(f.prototype),{constructor:Z,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(u())([new(s())(c().inputOutput,"metadata",new(n().SFNode)),new(s())(c().inputOutput,"description",new(n().SFString)),new(s())(c().inputOutput,"update",new(n().SFString)("NONE")),new(s())(c().initializeOnly,"size",new(n().SFInt32)(128)),new(s())(c().initializeOnly,"textureProperties",new(n().SFNode))]),getTypeName:function(){return"GeneratedCubeMapTexture"},getComponentName:function(){return"CubeMapTexturing"},getContainerField:function(){return"texture"},initialize:function(){f.prototype.initialize.call(this),this._size.addInterest("set_size__",this),this.dependentRenderer.setup(),this.set_size__()},set_size__:function(){const e=this.getBrowser().getContext(),t=e.getVersion()>=2?this._size.getValue():K().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(k())(0,0,t,t),this.frameBuffer=new(v())(this.getBrowser(),t,t)}else this.frameBuffer=null},traverse:function(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:function(){const e=[new(G())(q().zAxis,new(q())(0,0,-1)),new(G())(q().zAxis,new(q())(0,0,1)),new(G())(q().zAxis,new(q())(1,0,0)),new(G())(q().zAxis,new(q())(-1,0,0)),new(G())(q().zAxis,new(q())(0,-1,0)),new(G())(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(W());return function(i){this.dependentRenderer.setRenderer(i);const n=this.dependentRenderer,o=this.getBrowser(),s=i.getLayer(),a=o.getContext(),u=n.getBackground(),d=n.getNavigationInfo(),h=n.getViewpoint(),p=o.getHeadlight(),c=d._headlight.getValue(),g=d.getNearValue(),l=d.getFarValue(h),T=F().perspective(K().radians(90),g,l,1,1,this.projectionMatrix),x=this.frameBuffer.getWidth(),f=this.frameBuffer.getHeight();this.setTransparent(u.isTransparent()),this.frameBuffer.bind(),n.getViewVolumes().push(this.viewVolume.set(T,this.viewport,this.viewport)),n.getProjectionMatrix().pushMatrix(T),a.bindTexture(this.getTarget(),this.getTexture());for(let i=0;i<6;++i)a.clear(a.COLOR_BUFFER_BIT),n.getCameraSpaceMatrix().pushMatrix(this.modelMatrix),n.getCameraSpaceMatrix().rotate(e[i]),n.getCameraSpaceMatrix().scale(t[i]),n.getViewMatrix().pushMatrix(r.assign(n.getCameraSpaceMatrix().get()).inverse()),n.getModelViewMatrix().pushMatrix(r),c&&(p.modelViewMatrix.pushMatrix(r),p.modelViewMatrix.multLeft(h.getCameraSpaceMatrix())),s.traverse(B().DISPLAY,n),c&&p.modelViewMatrix.pop(),n.getModelViewMatrix().pop(),n.getCameraSpaceMatrix().pop(),n.getViewMatrix().pop(),a.bindTexture(this.getTarget(),this.getTexture()),a.copyTexSubImage2D(this.getTargets()[i],0,0,0,0,0,x,f);this.updateTextureParameters(),n.getProjectionMatrix().pop(),n.getViewVolumes().pop(),this.frameBuffer.unbind(),"NEXT_FRAME_ONLY"===this._update.getValue()&&(this._update="NONE")}}(),setShaderUniforms:function(){const e=new Float32Array(16);return function(t,r,i,n){f.prototype.setShaderUniforms.call(this,t,r,i,n),i===this.dependentRenderer&&t.uniformMatrix4fv(r.x3d_ModelViewMatrix,!1,e)}}()});const J=Z;l().set("x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture",J);const Q=J,$=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/Components/Networking/X3DUrlObject");var ee=r.n($);const te=window[Symbol.for("X_ITE.X3D-8.6.9")].require("standard/Math/Numbers/Vector2");var re=r.n(te);const ie=window[Symbol.for("X_ITE.X3D-8.6.9")].require("x_ite/DEBUG");var ne=r.n(ie),oe=r(355);const se=new Uint8Array([255,255,255,255]),ae=[new(re())(1,1),new(re())(3,1),new(re())(0,1),new(re())(2,1),new(re())(1,0),new(re())(1,2)];function ue(e){f.call(this,e),ee().call(this,e),this.addType(c().ImageCubeMapTexture),this.image=oe("<img></img>"),this.canvas=oe("<canvas></canvas>"),this.urlStack=new(n().MFString)}ue.prototype=Object.assign(Object.create(f.prototype),ee().prototype,{constructor:ue,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(u())([new(s())(c().inputOutput,"metadata",new(n().SFNode)),new(s())(c().inputOutput,"description",new(n().SFString)),new(s())(c().inputOutput,"load",new(n().SFBool)(!0)),new(s())(c().inputOutput,"url",new(n().MFString)),new(s())(c().inputOutput,"autoRefresh",new(n().SFTime)),new(s())(c().inputOutput,"autoRefreshTimeLimit",new(n().SFTime)(3600)),new(s())(c().initializeOnly,"textureProperties",new(n().SFNode))]),getTypeName:function(){return"ImageCubeMapTexture"},getComponentName:function(){return"CubeMapTexturing"},getContainerField:function(){return"texture"},initialize:function(){f.prototype.initialize.call(this),ee().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,se);this.image.on("load",this.setImage.bind(this)),this.image.on("abort error",this.setError.bind(this)),this.image.prop("crossOrigin","Anonymous"),this.requestImmediateLoad()},unLoadNow:function(){this.clearTexture()},loadNow:function(){this.urlStack.setValue(this._url),this.loadNext()},loadNext:function(){if(0===this.urlStack.length)return this.clearTexture(),void this.setLoadState(c().FAILED_STATE);this.URL=new URL(this.urlStack.shift(),this.getExecutionContext().getWorldURL()),"data:"!==this.URL.protocol&&(this.getCache()||this.URL.searchParams.set("_",Date.now())),this.image.attr("src",this.URL.href)},setError:function(){"data:"!==this.URL.protocol&&console.warn("Error loading image:",decodeURI(this.URL.href)),this.loadNext()},setImage:function(){ne()&&"data:"!==this.URL.protocol&&console.info("Done loading image cube map texture:",decodeURI(this.URL.href));try{const e=this.image[0],t=this.canvas[0],r=t.getContext("2d",{willReadFrequently:!0});let i=e.width,n=e.height,o=Math.floor(i/4),s=Math.floor(n/3);K().isPowerOfTwo(o)&&K().isPowerOfTwo(s)&&4*o===i&&3*s===n?(t.width=i,t.height=n,r.drawImage(e,0,0)):(o=K().nextPowerOfTwo(o),s=K().nextPowerOfTwo(s),i=4*o,n=3*s,t.width=i,t.height=n,r.drawImage(e,0,0,e.width,e.height,0,0,i,n));const a=this.getBrowser().getContext();let u=!0;a.bindTexture(this.getTarget(),this.getTexture());for(let e=0;e<6;++e){const t=r.getImageData(ae[e].x*o,ae[e].y*s,o,s).data;if(u)for(let e=3;e<t.length;e+=4)if(255!==t[e]){u=!1;break}a.texImage2D(this.getTargets()[e],0,a.RGBA,o,s,!1,a.RGBA,a.UNSIGNED_BYTE,new Uint8Array(t.buffer))}this.updateTextureParameters(),this.setTransparent(!u),this.setLoadState(c().COMPLETE_STATE)}catch(e){console.log(e.message),this.setError()}},dispose:function(){ee().prototype.dispose.call(this),f.prototype.dispose.call(this)}});const de=ue;l().set("x_ite/Components/CubeMapTexturing/ImageCubeMapTexture",de);const he=de;t().addComponent({name:"CubeMapTexturing",types:{ComposedCubeMapTexture:y,GeneratedCubeMapTexture:Q,ImageCubeMapTexture:he},abstractTypes:{X3DEnvironmentTextureNode:f}});const pe=void 0;l().set("assets/components/CubeMapTexturing",pe)})()})();
1
+ /* X_ITE v8.6.11 */(()=>{"use strict";var e={355:e=>{e.exports=window[Symbol.for("X_ITE.X3D-8.6.11")].require("lib/jquery")}},t={};function r(i){var n=t[i];if(void 0!==n)return n.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,r),o.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 e=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Components");var t=r.n(e);const i=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Fields");var n=r.n(i);const o=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Base/X3DFieldDefinition");var s=r.n(o);const a=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Base/FieldDefinitionArray");var u=r.n(a);const d=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Components/Texturing/X3DSingleTextureNode");var h=r.n(d);const p=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Base/X3DConstants");var c=r.n(p);const g=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Namespace");var l=r.n(g);function T(e){h().call(this,e),this.addType(c().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]}T.prototype=Object.assign(Object.create(h().prototype),{constructor:T,getTarget:function(){return this.target},getTextureType:function(){return 4},getTextureTypeString:function(){return"CUBE"},getTargets:function(){return this.targets},clearTexture:function(){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.setTransparent(!1)}}(),updateTextureParameters:function(){h().prototype.updateTextureParameters.call(this,this.target,this._textureProperties.getValue(),this.texturePropertiesNode,128,128,!1,!1,!1)},setShaderUniforms:function(e,t,r,i=t.x3d_Texture[0]){const n=this.getBrowser().getTextureCubeUnit();e.activeTexture(e.TEXTURE0+n),e.bindTexture(e.TEXTURE_CUBE_MAP,this.getTexture()),e.uniform1i(i.textureCube,n)}});const x=T;l().set("x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode",x);const f=x,_=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Base/X3DCast");var w=r.n(_);const m=window[Symbol.for("X_ITE.X3D-8.6.11")].require("standard/Utility/BitSet");var b=r.n(m);function E(e){f.call(this,e),this.addType(c().ComposedCubeMapTexture),e.getSpecificationVersion()<4&&(this.addAlias("front",this._frontTexture),this.addAlias("back",this._backTexture),this.addAlias("left",this._leftTexture),this.addAlias("right",this._rightTexture),this.addAlias("bottom",this._bottomTexture),this.addAlias("top",this._topTexture)),this.addChildObjects("update",new(n().SFTime)),this.textureNodes=[null,null,null,null,null,null],this.loadStateBits=new(b())}E.prototype=Object.assign(Object.create(f.prototype),{constructor:E,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(u())([new(s())(c().inputOutput,"metadata",new(n().SFNode)),new(s())(c().inputOutput,"description",new(n().SFString)),new(s())(c().inputOutput,"frontTexture",new(n().SFNode)),new(s())(c().inputOutput,"backTexture",new(n().SFNode)),new(s())(c().inputOutput,"leftTexture",new(n().SFNode)),new(s())(c().inputOutput,"rightTexture",new(n().SFNode)),new(s())(c().inputOutput,"bottomTexture",new(n().SFNode)),new(s())(c().inputOutput,"topTexture",new(n().SFNode)),new(s())(c().initializeOnly,"textureProperties",new(n().SFNode))]),getTypeName:function(){return"ComposedCubeMapTexture"},getComponentName:function(){return"CubeMapTexturing"},getContainerField:function(){return"texture"},initialize:function(){f.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__(this._frontTexture,0),this.set_texture__(this._backTexture,1),this.set_texture__(this._leftTexture,2),this.set_texture__(this._rightTexture,3),this.set_texture__(this._topTexture,4),this.set_texture__(this._bottomTexture,5)},set_texture__:function(e,t){let r=this.textureNodes[t];r&&r.removeInterest("set_loadState__",this),r=this.textureNodes[t]=w()(c().X3DTexture2DNode,e),r&&r.addInterest("set_loadState__",this,r,t),this.set_loadState__(r,t)},set_loadState__:function(e,t){e?this.setLoadStateBit(t,e,e.checkLoadState()):this.setLoadStateBit(t,e,c().NOT_STARTED),this._update.addEvent()},setLoadStateBit:function(e,t,r){this.loadStateBits.set(e,r===c().COMPLETE_STATE||t.getWidth())},isComplete:function(){if(63!=+this.loadStateBits)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:function(){if(this.isComplete()){const e=this.getBrowser().getContext(),t=this.textureNodes,r=e.getParameter(e.FRAMEBUFFER_BINDING);e.bindFramebuffer(e.FRAMEBUFFER,this.frameBuffer);for(let r=0;r<6;++r){const i=t[r],n=i.getWidth(),o=i.getHeight();switch(i.getType().at(-1)){case c().ImageTexture:case c().MovieTexture:e.bindTexture(this.getTarget(),this.getTexture()),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,i._flipVertically.getValue()),e.texImage2D(this.getTargets()[r],0,e.RGBA,n,o,0,e.RGBA,e.UNSIGNED_BYTE,i.getElement());break;default:e.bindTexture(e.TEXTURE_2D,i.getTexture()),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,i.getTexture(),0),e.bindTexture(this.getTarget(),this.getTexture()),e.texImage2D(this.getTargets()[r],0,e.RGBA,n,o,0,e.RGBA,e.UNSIGNED_BYTE,null),e.copyTexSubImage2D(this.getTargets()[r],0,0,0,0,0,n,o)}}e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!1),e.bindFramebuffer(e.FRAMEBUFFER,r),this.setTransparent(t.some((e=>e.isTransparent()))),this.updateTextureParameters()}else this.clearTexture()}});const S=E;l().set("x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture",S);const y=S,I=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Base/X3DBaseNode");var M=r.n(I);const C=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Rendering/X3DRenderObject");var N=r.n(C);const X=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Rendering/TraverseType");var B=r.n(X);function D(e){M().call(this,e),N().call(this,e),this.renderObject=null}D.prototype=Object.assign(Object.create(M().prototype),N().prototype,{constructor:D,initialize:function(){M().prototype.initialize.call(this),N().prototype.initialize.call(this)},isIndependent:function(){return!1},setRenderer:function(e){this.renderObject=e},getLayer:function(){return this.renderObject.getLayer()},getBackground:function(){return this.renderObject.getBackground()},getFog:function(){return this.renderObject.getFog()},getNavigationInfo:function(){return this.renderObject.getNavigationInfo()},getViewpoint:function(){return this.renderObject.getViewpoint()},getLightContainer:function(){return this.renderObject.getLights()[this.lightIndex++]},render:function(e,t,r){switch(e){case B().COLLISION:case B().SHADOW:N().prototype.render.call(this,e,t,r);break;case B().DISPLAY:this.lightIndex=0,N().prototype.render.call(this,e,t,r);for(const e of this.renderObject.getLights())e.modelViewMatrix.pop()}}});for(const e of Reflect.ownKeys(D.prototype))Object.defineProperty(D.prototype,e,{enumerable:!1});const O=D;l().set("x_ite/Rendering/DependentRenderer",O);const R=O,A=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Rendering/TextureBuffer");var v=r.n(A);const U=window[Symbol.for("X_ITE.X3D-8.6.11")].require("standard/Math/Geometry/Camera");var F=r.n(U);const V=window[Symbol.for("X_ITE.X3D-8.6.11")].require("standard/Math/Geometry/ViewVolume");var P=r.n(V);const L=window[Symbol.for("X_ITE.X3D-8.6.11")].require("standard/Math/Numbers/Rotation4");var G=r.n(L);const j=window[Symbol.for("X_ITE.X3D-8.6.11")].require("standard/Math/Numbers/Vector3");var q=r.n(j);const z=window[Symbol.for("X_ITE.X3D-8.6.11")].require("standard/Math/Numbers/Vector4");var k=r.n(z);const Y=window[Symbol.for("X_ITE.X3D-8.6.11")].require("standard/Math/Numbers/Matrix4");var W=r.n(Y);const H=window[Symbol.for("X_ITE.X3D-8.6.11")].require("standard/Math/Algorithm");var K=r.n(H);function Z(e){f.call(this,e),this.addType(c().GeneratedCubeMapTexture),this.dependentRenderer=new R(e),this.projectionMatrix=new(W()),this.modelMatrix=new(W()),this.viewVolume=new(P())}Z.prototype=Object.assign(Object.create(f.prototype),{constructor:Z,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(u())([new(s())(c().inputOutput,"metadata",new(n().SFNode)),new(s())(c().inputOutput,"description",new(n().SFString)),new(s())(c().inputOutput,"update",new(n().SFString)("NONE")),new(s())(c().initializeOnly,"size",new(n().SFInt32)(128)),new(s())(c().initializeOnly,"textureProperties",new(n().SFNode))]),getTypeName:function(){return"GeneratedCubeMapTexture"},getComponentName:function(){return"CubeMapTexturing"},getContainerField:function(){return"texture"},initialize:function(){f.prototype.initialize.call(this),this._size.addInterest("set_size__",this),this.dependentRenderer.setup(),this.set_size__()},set_size__:function(){const e=this.getBrowser().getContext(),t=e.getVersion()>=2?this._size.getValue():K().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(k())(0,0,t,t),this.frameBuffer=new(v())(this.getBrowser(),t,t)}else this.frameBuffer=null},traverse:function(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:function(){const e=[new(G())(q().zAxis,new(q())(0,0,-1)),new(G())(q().zAxis,new(q())(0,0,1)),new(G())(q().zAxis,new(q())(1,0,0)),new(G())(q().zAxis,new(q())(-1,0,0)),new(G())(q().zAxis,new(q())(0,-1,0)),new(G())(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(W());return function(i){this.dependentRenderer.setRenderer(i);const n=this.dependentRenderer,o=this.getBrowser(),s=i.getLayer(),a=o.getContext(),u=n.getBackground(),d=n.getNavigationInfo(),h=n.getViewpoint(),p=o.getHeadlight(),c=d._headlight.getValue(),g=d.getNearValue(),l=d.getFarValue(h),T=F().perspective(K().radians(90),g,l,1,1,this.projectionMatrix),x=this.frameBuffer.getWidth(),f=this.frameBuffer.getHeight();this.setTransparent(u.isTransparent()),this.frameBuffer.bind(),n.getViewVolumes().push(this.viewVolume.set(T,this.viewport,this.viewport)),n.getProjectionMatrix().pushMatrix(T),a.bindTexture(this.getTarget(),this.getTexture());for(let i=0;i<6;++i)a.clear(a.COLOR_BUFFER_BIT),n.getCameraSpaceMatrix().pushMatrix(this.modelMatrix),n.getCameraSpaceMatrix().rotate(e[i]),n.getCameraSpaceMatrix().scale(t[i]),n.getViewMatrix().pushMatrix(r.assign(n.getCameraSpaceMatrix().get()).inverse()),n.getModelViewMatrix().pushMatrix(r),c&&(p.modelViewMatrix.pushMatrix(r),p.modelViewMatrix.multLeft(h.getCameraSpaceMatrix())),s.traverse(B().DISPLAY,n),c&&p.modelViewMatrix.pop(),n.getModelViewMatrix().pop(),n.getCameraSpaceMatrix().pop(),n.getViewMatrix().pop(),a.bindTexture(this.getTarget(),this.getTexture()),a.copyTexSubImage2D(this.getTargets()[i],0,0,0,0,0,x,f);this.updateTextureParameters(),n.getProjectionMatrix().pop(),n.getViewVolumes().pop(),this.frameBuffer.unbind(),"NEXT_FRAME_ONLY"===this._update.getValue()&&(this._update="NONE")}}(),setShaderUniforms:function(){const e=new Float32Array(16);return function(t,r,i,n){f.prototype.setShaderUniforms.call(this,t,r,i,n),i===this.dependentRenderer&&t.uniformMatrix4fv(r.x3d_ModelViewMatrix,!1,e)}}()});const J=Z;l().set("x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture",J);const Q=J,$=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/Components/Networking/X3DUrlObject");var ee=r.n($);const te=window[Symbol.for("X_ITE.X3D-8.6.11")].require("standard/Math/Numbers/Vector2");var re=r.n(te);const ie=window[Symbol.for("X_ITE.X3D-8.6.11")].require("x_ite/DEBUG");var ne=r.n(ie),oe=r(355);const se=new Uint8Array([255,255,255,255]),ae=[new(re())(1,1),new(re())(3,1),new(re())(0,1),new(re())(2,1),new(re())(1,0),new(re())(1,2)];function ue(e){f.call(this,e),ee().call(this,e),this.addType(c().ImageCubeMapTexture),this.image=oe("<img></img>"),this.canvas=oe("<canvas></canvas>"),this.urlStack=new(n().MFString)}ue.prototype=Object.assign(Object.create(f.prototype),ee().prototype,{constructor:ue,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(u())([new(s())(c().inputOutput,"metadata",new(n().SFNode)),new(s())(c().inputOutput,"description",new(n().SFString)),new(s())(c().inputOutput,"load",new(n().SFBool)(!0)),new(s())(c().inputOutput,"url",new(n().MFString)),new(s())(c().inputOutput,"autoRefresh",new(n().SFTime)),new(s())(c().inputOutput,"autoRefreshTimeLimit",new(n().SFTime)(3600)),new(s())(c().initializeOnly,"textureProperties",new(n().SFNode))]),getTypeName:function(){return"ImageCubeMapTexture"},getComponentName:function(){return"CubeMapTexturing"},getContainerField:function(){return"texture"},initialize:function(){f.prototype.initialize.call(this),ee().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,se);this.image.on("load",this.setImage.bind(this)),this.image.on("abort error",this.setError.bind(this)),this.image.prop("crossOrigin","Anonymous"),this.requestImmediateLoad()},unLoadNow:function(){this.clearTexture()},loadNow:function(){this.urlStack.setValue(this._url),this.loadNext()},loadNext:function(){if(0===this.urlStack.length)return this.clearTexture(),void this.setLoadState(c().FAILED_STATE);this.URL=new URL(this.urlStack.shift(),this.getExecutionContext().getWorldURL()),"data:"!==this.URL.protocol&&(this.getCache()||this.URL.searchParams.set("_",Date.now())),this.image.attr("src",this.URL.href)},setError:function(){"data:"!==this.URL.protocol&&console.warn("Error loading image:",decodeURI(this.URL.href)),this.loadNext()},setImage:function(){ne()&&"data:"!==this.URL.protocol&&console.info("Done loading image cube map texture:",decodeURI(this.URL.href));try{const e=this.image[0],t=this.canvas[0],r=t.getContext("2d",{willReadFrequently:!0});let i=e.width,n=e.height,o=Math.floor(i/4),s=Math.floor(n/3);K().isPowerOfTwo(o)&&K().isPowerOfTwo(s)&&4*o===i&&3*s===n?(t.width=i,t.height=n,r.drawImage(e,0,0)):(o=K().nextPowerOfTwo(o),s=K().nextPowerOfTwo(s),i=4*o,n=3*s,t.width=i,t.height=n,r.drawImage(e,0,0,e.width,e.height,0,0,i,n));const a=this.getBrowser().getContext();let u=!0;a.bindTexture(this.getTarget(),this.getTexture());for(let e=0;e<6;++e){const t=r.getImageData(ae[e].x*o,ae[e].y*s,o,s).data;if(u)for(let e=3;e<t.length;e+=4)if(255!==t[e]){u=!1;break}a.texImage2D(this.getTargets()[e],0,a.RGBA,o,s,!1,a.RGBA,a.UNSIGNED_BYTE,new Uint8Array(t.buffer))}this.updateTextureParameters(),this.setTransparent(!u),this.setLoadState(c().COMPLETE_STATE)}catch(e){console.log(e.message),this.setError()}},dispose:function(){ee().prototype.dispose.call(this),f.prototype.dispose.call(this)}});const de=ue;l().set("x_ite/Components/CubeMapTexturing/ImageCubeMapTexture",de);const he=de;t().addComponent({name:"CubeMapTexturing",types:{ComposedCubeMapTexture:y,GeneratedCubeMapTexture:Q,ImageCubeMapTexture:he},abstractTypes:{X3DEnvironmentTextureNode:f}});const pe=void 0;l().set("assets/components/CubeMapTexturing",pe)})()})();