x_ite 8.3.1 → 8.3.3
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.
- package/.github/workflows/pages-deploy.yml +1 -1
- package/.vscode/settings.json +2 -1
- package/build/bin/tests.pl +2 -0
- package/dist/LICENSE.md +4 -4
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +13 -13
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +25 -25
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +19 -19
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +33 -33
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +61 -74
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +27 -27
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +24 -24
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +23 -23
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +19 -19
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +17 -17
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +28 -28
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +24 -24
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/{ProjectiveTextureMapping.js → TextureProjector.js} +39 -39
- package/dist/assets/components/TextureProjector.min.js +1 -0
- package/dist/assets/components/Texturing3D.js +46 -46
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +19 -19
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +1904 -1570
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/Gemfile +1 -4
- package/docs/_config.yml +3 -2
- package/docs/_posts/custom-shaders.md +1 -1
- package/docs/_posts/dom-integration.md +52 -25
- package/docs/_posts/getting-started.md +148 -442
- package/docs/_posts/reference/field-services-and-objects.md +2 -34
- package/docs/_posts/reference/scene-services.md +13 -2
- package/docs/_posts/tutorials/basic-nodes.md +2 -2
- package/docs/_posts/tutorials/building-a-x3d-world.md +20 -4
- package/docs/_posts/tutorials/building-primitive-shapes.md +4 -4
- package/docs/_posts/tutorials/creating-new-node-types.md +22 -0
- package/docs/_posts/tutorials/hello-world.md +6 -6
- package/docs/_posts/tutorials/improving-performance.md +2 -2
- package/docs/_posts/tutorials/writing-program-scripts-with-ecmascript.md +2 -2
- package/docs/_posts/what's-new.md +21 -3
- package/docs/_tabs/playground.html +110 -57
- package/docs/assets/css/style.scss +25 -1
- package/package.json +2 -2
- package/src/assets/components/{ProjectiveTextureMapping.js → TextureProjector.js} +5 -5
- package/src/examples.js +1 -1
- package/src/tests.js +5 -5
- package/src/x_ite/Base/X3DArrayField.js +3 -0
- package/src/x_ite/Base/X3DBaseNode.js +4 -0
- package/src/x_ite/Base/X3DInfoArray.js +28 -24
- package/src/x_ite/Base/X3DObject.js +29 -20
- package/src/x_ite/Base/X3DObjectArrayField.js +27 -26
- package/src/x_ite/Base/X3DTypedArrayField.js +34 -32
- package/src/x_ite/Browser/Core/ContextMenu.js +5 -7
- package/src/x_ite/Browser/DOMIntegration.js +62 -54
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +44 -29
- package/src/x_ite/Browser/X3DBrowserContext.js +3 -0
- package/src/x_ite/Components/Core/X3DNode.js +196 -187
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +114 -91
- package/src/x_ite/Components/Grouping/X3DTransformMatrix3DNode.js +18 -43
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +24 -25
- package/src/x_ite/Components/HAnim/HAnimJoint.js +19 -31
- package/src/x_ite/Components/Networking/Inline.js +21 -2
- package/src/x_ite/Components/Sound/X3DSoundProcessingNode.js +14 -1
- package/src/x_ite/Components/Sound/X3DSoundSourceNode.js +0 -1
- package/src/x_ite/Components/{ProjectiveTextureMapping → TextureProjector}/TextureProjector.js +1 -1
- package/src/x_ite/Components/{ProjectiveTextureMapping → TextureProjector}/TextureProjectorParallel.js +1 -1
- package/src/x_ite/Components/{ProjectiveTextureMapping → TextureProjector}/X3DTextureProjectorNode.js +0 -0
- package/src/x_ite/Components/Time/TimeSensor.js +5 -0
- package/src/x_ite/Components/Time/X3DTimeDependentNode.js +1 -0
- package/src/x_ite/Configuration/ComponentInfo.js +20 -23
- package/src/x_ite/Configuration/ProfileInfo.js +6 -6
- package/src/x_ite/Configuration/SupportedComponents.js +22 -20
- package/src/x_ite/Configuration/SupportedNodes.js +1 -5
- package/src/x_ite/Configuration/SupportedProfiles.js +1 -1
- package/src/x_ite/Configuration/UnitInfo.js +24 -27
- package/src/x_ite/Execution/X3DExecutionContext.js +28 -59
- package/src/x_ite/Execution/X3DExportedNode.js +23 -28
- package/src/x_ite/Execution/X3DImportedNode.js +63 -67
- package/src/x_ite/Execution/X3DScene.js +98 -117
- package/src/x_ite/Fields/ArrayFields.js +57 -55
- package/src/x_ite/Fields/SFBool.js +6 -6
- package/src/x_ite/Fields/SFColor.js +10 -12
- package/src/x_ite/Fields/SFDouble.js +7 -10
- package/src/x_ite/Fields/SFFloat.js +7 -10
- package/src/x_ite/Fields/SFImage.js +33 -8
- package/src/x_ite/Fields/SFInt32.js +6 -6
- package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +13 -13
- package/src/x_ite/Fields/SFNode.js +42 -19
- package/src/x_ite/Fields/SFRotation.js +13 -13
- package/src/x_ite/Fields/SFString.js +6 -7
- package/src/x_ite/Fields/SFTime.js +6 -6
- package/src/x_ite/Fields/SFVecPrototypeTemplate.js +10 -10
- package/src/x_ite/InputOutput/FileLoader.js +1 -1
- package/src/x_ite/InputOutput/Generator.js +117 -17
- package/src/x_ite/Parser/VRMLParser.js +24 -27
- package/src/x_ite/Parser/X3DParser.js +0 -4
- package/src/x_ite/Parser/XMLParser.js +152 -50
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +59 -64
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +86 -93
- package/src/x_ite/Rendering/X3DRenderObject.js +6 -1
- package/src/x_ite/Routing/X3DRoute.js +37 -40
- package/src/x_ite.html +3 -3
- package/webpack.config.js +2 -2
- package/x_ite.min.html +1 -1
- package/dist/assets/components/ProjectiveTextureMapping.min.js +0 -1
- package/docs/Gemfile.lock +0 -116
|
@@ -39,7 +39,7 @@ jobs:
|
|
|
39
39
|
- name: Setup Ruby
|
|
40
40
|
uses: ruby/setup-ruby@v1
|
|
41
41
|
with:
|
|
42
|
-
ruby-version: 3 # reads from a '.ruby-version' or '.tools-version' file if 'ruby-version' is omitted
|
|
42
|
+
ruby-version: "3.1" # reads from a '.ruby-version' or '.tools-version' file if 'ruby-version' is omitted
|
|
43
43
|
bundler-cache: true
|
|
44
44
|
|
|
45
45
|
- name: Build site
|
package/.vscode/settings.json
CHANGED
package/build/bin/tests.pl
CHANGED
package/dist/LICENSE.md
CHANGED
|
@@ -627,18 +627,18 @@ END OF TERMS AND CONDITIONS
|
|
|
627
627
|
--------------------------------------
|
|
628
628
|
```
|
|
629
629
|
/*!
|
|
630
|
-
* Sizzle CSS Selector Engine v2.3.
|
|
630
|
+
* Sizzle CSS Selector Engine v2.3.9
|
|
631
631
|
* https://sizzlejs.com/
|
|
632
632
|
*
|
|
633
633
|
* Copyright JS Foundation and other contributors
|
|
634
634
|
* Released under the MIT license
|
|
635
635
|
* https://js.foundation/
|
|
636
636
|
*
|
|
637
|
-
* Date:
|
|
637
|
+
* Date: 2022-12-19
|
|
638
638
|
*/
|
|
639
639
|
|
|
640
640
|
/*!
|
|
641
|
-
* jQuery JavaScript Library v3.6.
|
|
641
|
+
* jQuery JavaScript Library v3.6.3
|
|
642
642
|
* https://jquery.com/
|
|
643
643
|
*
|
|
644
644
|
* Includes Sizzle.js
|
|
@@ -648,7 +648,7 @@ END OF TERMS AND CONDITIONS
|
|
|
648
648
|
* Released under the MIT license
|
|
649
649
|
* https://jquery.org/license
|
|
650
650
|
*
|
|
651
|
-
* Date: 2022-
|
|
651
|
+
* Date: 2022-12-20T21:28Z
|
|
652
652
|
*/
|
|
653
653
|
|
|
654
654
|
/*!
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v8.3.
|
|
1
|
+
/* X_ITE v8.3.3 */(() => { // 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.3.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
45
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
48
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
51
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
54
|
+
const X3DLayerNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
57
|
+
const Viewpoint_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
60
|
+
const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
63
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
66
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
168
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
265
|
+
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
449
|
+
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
1
|
+
/* X_ITE v8.3.3 */(()=>{"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.3.3")].require("x_ite/Components");var e=t.n(n);const o=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Fields");var i=t.n(o);const r=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/X3DFieldDefinition");var a=t.n(r);const u=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/FieldDefinitionArray");var p=t.n(u);const s=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Layering/X3DLayerNode");var c=t.n(s);const l=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Navigation/Viewpoint");var w=t.n(l);const d=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Grouping/Group");var y=t.n(d);const f=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/X3DConstants");var m=t.n(f);const S=window[Symbol.for("X_ITE.X3D-8.3.3")].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.3.3")].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.3.3")].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.3.3")].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.3.
|
|
1
|
+
/* X_ITE v8.3.3 */(() => { // 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.3.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
45
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
48
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
51
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
54
|
+
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
57
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
60
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
63
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
231
|
+
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
234
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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
|
/*******************************************************************************
|
|
@@ -603,7 +603,7 @@ const CADLayer_default_ = CADLayer;
|
|
|
603
603
|
Namespace_default().set ("x_ite/Components/CADGeometry/CADLayer", CADLayer_default_);
|
|
604
604
|
/* harmony default export */ const CADGeometry_CADLayer = (CADLayer_default_);
|
|
605
605
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DTransformNode\")"
|
|
606
|
-
const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
606
|
+
const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Components/Grouping/X3DTransformNode");
|
|
607
607
|
var X3DTransformNode_default = /*#__PURE__*/__webpack_require__.n(X3DTransformNode_namespaceObject);
|
|
608
608
|
;// CONCATENATED MODULE: ./src/x_ite/Components/CADGeometry/CADPart.js
|
|
609
609
|
/*******************************************************************************
|
|
@@ -708,7 +708,7 @@ const CADPart_default_ = CADPart;
|
|
|
708
708
|
Namespace_default().set ("x_ite/Components/CADGeometry/CADPart", CADPart_default_);
|
|
709
709
|
/* harmony default export */ const CADGeometry_CADPart = (CADPart_default_);
|
|
710
710
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DComposedGeometryNode\")"
|
|
711
|
-
const X3DComposedGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
711
|
+
const X3DComposedGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Components/Rendering/X3DComposedGeometryNode");
|
|
712
712
|
var X3DComposedGeometryNode_default = /*#__PURE__*/__webpack_require__.n(X3DComposedGeometryNode_namespaceObject);
|
|
713
713
|
;// CONCATENATED MODULE: ./src/x_ite/Components/CADGeometry/IndexedQuadSet.js
|
|
714
714
|
/*******************************************************************************
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.3.1 */(()=>{"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.3.1")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Fields");var o=e.n(i);const r=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Base/X3DFieldDefinition");var s=e.n(r);const u=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Base/FieldDefinitionArray");var a=e.n(u);const l=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Components/Grouping/X3DGroupingNode");var d=e.n(l);const c=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Components/Core/X3DChildNode");var p=e.n(c);const w=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Base/X3DConstants");var h=e.n(w);const b=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Namespace");var y=e.n(b);function _(e){p().call(this,e),this.addType(h().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(h().CADAssembly)}f.prototype=Object.assign(Object.create(d().prototype),{constructor:f,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(h().inputOutput,"metadata",new(o().SFNode)),new(s())(h().inputOutput,"name",new(o().SFString)),new(s())(h().inputOutput,"visible",new(o().SFBool)(!0)),new(s())(h().inputOutput,"bboxDisplay",new(o().SFBool)),new(s())(h().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(s())(h().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(s())(h().inputOnly,"addChildren",new(o().MFNode)),new(s())(h().inputOnly,"removeChildren",new(o().MFNode)),new(s())(h().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.3.1")].require("x_ite/Components/Grouping/X3DBoundedObject");var D=e.n(N);const F=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Rendering/TraverseType");var g=e.n(F);function x(e){O.call(this,e),D().call(this,e),this.addType(h().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())(h().inputOutput,"metadata",new(o().SFNode)),new(s())(h().inputOutput,"name",new(o().SFString)),new(s())(h().inputOutput,"visible",new(o().SFBool)(!0)),new(s())(h().inputOutput,"bboxDisplay",new(o().SFBool)),new(s())(h().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(s())(h().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(s())(h().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 h().LOD:case h().Transform:case h().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_transformSensors__(),this.set_visible__(),this.set_bboxDisplay__()},set_cameraObject__:function(){this.childNode&&this.childNode.getCameraObject()?this.setCameraObject(this.childNode._visible.getValue()):this.setCameraObject(!1)},set_transformSensors__:function(){this.setPickableObject(Boolean(this.childNode&&this.childNode.getPickableObject()))},set_visible__:function(){this.childNode?this.visibleNode=this.childNode._visible.getValue()?this.childNode:null:this.visibleNode=null,this.set_cameraObject__()},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();return n.push(this),this.childNode.traverse(e,t),void n.pop()}case g().COLLISION:return void this.childNode.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(h().CADLayer)}I.prototype=Object.assign(Object.create(d().prototype),{constructor:I,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(h().inputOutput,"metadata",new(o().SFNode)),new(s())(h().inputOutput,"name",new(o().SFString)),new(s())(h().inputOutput,"visible",new(o().SFBool)(!0)),new(s())(h().inputOutput,"bboxDisplay",new(o().SFBool)),new(s())(h().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(s())(h().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(s())(h().inputOnly,"addChildren",new(o().MFNode)),new(s())(h().inputOnly,"removeChildren",new(o().MFNode)),new(s())(h().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.3.1")].require("x_ite/Components/Grouping/X3DTransformNode");var j=e.n(B);function z(e){j().call(this,e),O.call(this,e),this.addType(h().CADPart)}z.prototype=Object.assign(Object.create(j().prototype),{constructor:z,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(h().inputOutput,"metadata",new(o().SFNode)),new(s())(h().inputOutput,"name",new(o().SFString)),new(s())(h().inputOutput,"translation",new(o().SFVec3f)),new(s())(h().inputOutput,"rotation",new(o().SFRotation)),new(s())(h().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(s())(h().inputOutput,"scaleOrientation",new(o().SFRotation)),new(s())(h().inputOutput,"center",new(o().SFVec3f)),new(s())(h().inputOutput,"visible",new(o().SFBool)(!0)),new(s())(h().inputOutput,"bboxDisplay",new(o().SFBool)),new(s())(h().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(s())(h().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(s())(h().inputOnly,"addChildren",new(o().MFNode)),new(s())(h().inputOnly,"removeChildren",new(o().MFNode)),new(s())(h().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 V=P,G=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Components/Rendering/X3DComposedGeometryNode");var E=e.n(G);function M(e){E().call(this,e),this.addType(h().IndexedQuadSet)}M.prototype=Object.assign(Object.create(E().prototype),{constructor:M,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(h().inputOutput,"metadata",new(o().SFNode)),new(s())(h().inputOnly,"set_index",new(o().MFInt32)),new(s())(h().initializeOnly,"solid",new(o().SFBool)(!0)),new(s())(h().initializeOnly,"ccw",new(o().SFBool)(!0)),new(s())(h().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(s())(h().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(s())(h().initializeOnly,"index",new(o().MFInt32)),new(s())(h().inputOutput,"attrib",new(o().MFNode)),new(s())(h().inputOutput,"fogCoord",new(o().SFNode)),new(s())(h().inputOutput,"color",new(o().SFNode)),new(s())(h().inputOutput,"texCoord",new(o().SFNode)),new(s())(h().inputOutput,"normal",new(o().SFNode)),new(s())(h().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(h().QuadSet)}Q.prototype=Object.assign(Object.create(E().prototype),{constructor:Q,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(h().inputOutput,"metadata",new(o().SFNode)),new(s())(h().initializeOnly,"solid",new(o().SFBool)(!0)),new(s())(h().initializeOnly,"ccw",new(o().SFBool)(!0)),new(s())(h().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(s())(h().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(s())(h().inputOutput,"attrib",new(o().MFNode)),new(s())(h().inputOutput,"fogCoord",new(o().SFNode)),new(s())(h().inputOutput,"color",new(o().SFNode)),new(s())(h().inputOutput,"texCoord",new(o().SFNode)),new(s())(h().inputOutput,"normal",new(o().SFNode)),new(s())(h().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:V,IndexedQuadSet:L,QuadSet:R},abstractTypes:{X3DProductStructureChildNode:O}});const H=void 0;y().set("assets/components/CADGeometry",H)})();
|
|
1
|
+
/* X_ITE v8.3.3 */(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Fields");var o=e.n(i);const r=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/X3DFieldDefinition");var s=e.n(r);const u=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/FieldDefinitionArray");var a=e.n(u);const l=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Grouping/X3DGroupingNode");var d=e.n(l);const c=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Core/X3DChildNode");var p=e.n(c);const w=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/X3DConstants");var h=e.n(w);const b=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Namespace");var y=e.n(b);function _(e){p().call(this,e),this.addType(h().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(h().CADAssembly)}f.prototype=Object.assign(Object.create(d().prototype),{constructor:f,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(h().inputOutput,"metadata",new(o().SFNode)),new(s())(h().inputOutput,"name",new(o().SFString)),new(s())(h().inputOutput,"visible",new(o().SFBool)(!0)),new(s())(h().inputOutput,"bboxDisplay",new(o().SFBool)),new(s())(h().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(s())(h().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(s())(h().inputOnly,"addChildren",new(o().MFNode)),new(s())(h().inputOnly,"removeChildren",new(o().MFNode)),new(s())(h().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.3.3")].require("x_ite/Components/Grouping/X3DBoundedObject");var D=e.n(N);const F=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Rendering/TraverseType");var g=e.n(F);function x(e){O.call(this,e),D().call(this,e),this.addType(h().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())(h().inputOutput,"metadata",new(o().SFNode)),new(s())(h().inputOutput,"name",new(o().SFString)),new(s())(h().inputOutput,"visible",new(o().SFBool)(!0)),new(s())(h().inputOutput,"bboxDisplay",new(o().SFBool)),new(s())(h().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(s())(h().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(s())(h().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 h().LOD:case h().Transform:case h().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_transformSensors__(),this.set_visible__(),this.set_bboxDisplay__()},set_cameraObject__:function(){this.childNode&&this.childNode.getCameraObject()?this.setCameraObject(this.childNode._visible.getValue()):this.setCameraObject(!1)},set_transformSensors__:function(){this.setPickableObject(Boolean(this.childNode&&this.childNode.getPickableObject()))},set_visible__:function(){this.childNode?this.visibleNode=this.childNode._visible.getValue()?this.childNode:null:this.visibleNode=null,this.set_cameraObject__()},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();return n.push(this),this.childNode.traverse(e,t),void n.pop()}case g().COLLISION:return void this.childNode.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(h().CADLayer)}I.prototype=Object.assign(Object.create(d().prototype),{constructor:I,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(h().inputOutput,"metadata",new(o().SFNode)),new(s())(h().inputOutput,"name",new(o().SFString)),new(s())(h().inputOutput,"visible",new(o().SFBool)(!0)),new(s())(h().inputOutput,"bboxDisplay",new(o().SFBool)),new(s())(h().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(s())(h().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(s())(h().inputOnly,"addChildren",new(o().MFNode)),new(s())(h().inputOnly,"removeChildren",new(o().MFNode)),new(s())(h().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.3.3")].require("x_ite/Components/Grouping/X3DTransformNode");var j=e.n(B);function z(e){j().call(this,e),O.call(this,e),this.addType(h().CADPart)}z.prototype=Object.assign(Object.create(j().prototype),{constructor:z,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(h().inputOutput,"metadata",new(o().SFNode)),new(s())(h().inputOutput,"name",new(o().SFString)),new(s())(h().inputOutput,"translation",new(o().SFVec3f)),new(s())(h().inputOutput,"rotation",new(o().SFRotation)),new(s())(h().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(s())(h().inputOutput,"scaleOrientation",new(o().SFRotation)),new(s())(h().inputOutput,"center",new(o().SFVec3f)),new(s())(h().inputOutput,"visible",new(o().SFBool)(!0)),new(s())(h().inputOutput,"bboxDisplay",new(o().SFBool)),new(s())(h().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(s())(h().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(s())(h().inputOnly,"addChildren",new(o().MFNode)),new(s())(h().inputOnly,"removeChildren",new(o().MFNode)),new(s())(h().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 V=P,G=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Rendering/X3DComposedGeometryNode");var E=e.n(G);function M(e){E().call(this,e),this.addType(h().IndexedQuadSet)}M.prototype=Object.assign(Object.create(E().prototype),{constructor:M,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(h().inputOutput,"metadata",new(o().SFNode)),new(s())(h().inputOnly,"set_index",new(o().MFInt32)),new(s())(h().initializeOnly,"solid",new(o().SFBool)(!0)),new(s())(h().initializeOnly,"ccw",new(o().SFBool)(!0)),new(s())(h().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(s())(h().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(s())(h().initializeOnly,"index",new(o().MFInt32)),new(s())(h().inputOutput,"attrib",new(o().MFNode)),new(s())(h().inputOutput,"fogCoord",new(o().SFNode)),new(s())(h().inputOutput,"color",new(o().SFNode)),new(s())(h().inputOutput,"texCoord",new(o().SFNode)),new(s())(h().inputOutput,"normal",new(o().SFNode)),new(s())(h().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(h().QuadSet)}Q.prototype=Object.assign(Object.create(E().prototype),{constructor:Q,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(s())(h().inputOutput,"metadata",new(o().SFNode)),new(s())(h().initializeOnly,"solid",new(o().SFBool)(!0)),new(s())(h().initializeOnly,"ccw",new(o().SFBool)(!0)),new(s())(h().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(s())(h().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(s())(h().inputOutput,"attrib",new(o().MFNode)),new(s())(h().inputOutput,"fogCoord",new(o().SFNode)),new(s())(h().inputOutput,"color",new(o().SFNode)),new(s())(h().inputOutput,"texCoord",new(o().SFNode)),new(s())(h().inputOutput,"normal",new(o().SFNode)),new(s())(h().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:V,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.3.
|
|
1
|
+
/* X_ITE v8.3.3 */(() => { // 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.3.
|
|
8
|
+
module.exports = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
76
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
79
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
82
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
85
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
88
|
+
const X3DSingleTextureNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
91
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
94
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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
|
/*******************************************************************************
|
|
@@ -225,10 +225,10 @@ const __default__ = X3DEnvironmentTextureNode;
|
|
|
225
225
|
Namespace_default().set ("x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode", __default__);
|
|
226
226
|
/* harmony default export */ const CubeMapTexturing_X3DEnvironmentTextureNode = (__default__);
|
|
227
227
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
228
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
228
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Base/X3DCast");
|
|
229
229
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
230
230
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Utility/BitSet\")"
|
|
231
|
-
const BitSet_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
231
|
+
const BitSet_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("standard/Utility/BitSet");
|
|
232
232
|
var BitSet_default = /*#__PURE__*/__webpack_require__.n(BitSet_namespaceObject);
|
|
233
233
|
;// CONCATENATED MODULE: ./src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js
|
|
234
234
|
/*******************************************************************************
|
|
@@ -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.3.
|
|
477
|
+
const X3DBaseNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
480
|
+
const X3DRenderObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
483
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
624
|
+
const TextureBuffer_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
627
|
+
const Camera_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
630
|
+
const ViewVolume_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
633
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
636
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
639
|
+
const Vector4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
642
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
645
|
+
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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
|
/*******************************************************************************
|
|
@@ -931,13 +931,13 @@ const GeneratedCubeMapTexture_default_ = GeneratedCubeMapTexture;
|
|
|
931
931
|
Namespace_default().set ("x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture", GeneratedCubeMapTexture_default_);
|
|
932
932
|
/* harmony default export */ const CubeMapTexturing_GeneratedCubeMapTexture = (GeneratedCubeMapTexture_default_);
|
|
933
933
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Networking/X3DUrlObject\")"
|
|
934
|
-
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
934
|
+
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Components/Networking/X3DUrlObject");
|
|
935
935
|
var X3DUrlObject_default = /*#__PURE__*/__webpack_require__.n(X3DUrlObject_namespaceObject);
|
|
936
936
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector2\")"
|
|
937
|
-
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
937
|
+
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("standard/Math/Numbers/Vector2");
|
|
938
938
|
var Vector2_default = /*#__PURE__*/__webpack_require__.n(Vector2_namespaceObject);
|
|
939
939
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/DEBUG\")"
|
|
940
|
-
const DEBUG_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
940
|
+
const DEBUG_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/DEBUG");
|
|
941
941
|
var DEBUG_default = /*#__PURE__*/__webpack_require__.n(DEBUG_namespaceObject);
|
|
942
942
|
;// CONCATENATED MODULE: ./src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js
|
|
943
943
|
/* provided dependency */ var $ = __webpack_require__(355);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.3.1 */(()=>{"use strict";var e={355:e=>{e.exports=window[Symbol.for("X_ITE.X3D-8.3.1")].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.3.1")].require("x_ite/Components");var t=r.n(e);const i=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Fields");var n=r.n(i);const o=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Base/X3DFieldDefinition");var s=r.n(o);const a=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Base/FieldDefinitionArray");var u=r.n(a);const d=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Components/Texturing/X3DSingleTextureNode");var h=r.n(d);const l=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Base/X3DConstants");var c=r.n(l);const p=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Namespace");var g=r.n(p);function x(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]}x.prototype=Object.assign(Object.create(h().prototype),{constructor:x,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)}}(),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;g().set("x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode",_);const T=_,w=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Base/X3DCast");var f=r.n(w);const m=window[Symbol.for("X_ITE.X3D-8.3.1")].require("standard/Utility/BitSet");var b=r.n(m);function S(e){T.call(this,e),this.addType(c().ComposedCubeMapTexture),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.textures=[null,null,null,null,null,null],this.symbols=[Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol()],this.loadStateBits=new(b())}S.prototype=Object.assign(Object.create(T.prototype),{constructor:S,[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(){T.prototype.initialize.call(this),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.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.textures[t];r&&(r.removeInterest("set_loadState__",this),r._loadState.removeFieldCallback(this.symbols[t])),r=this.textures[t]=f()(c().X3DTexture2DNode,e),r&&(r.addInterest("set_loadState__",this,r,t),r._loadState.addFieldCallback(this.symbols[t],this.set_loadState__.bind(this,r,t))),this.set_loadState__(r,t)},set_loadState__:function(e,t){e?this.setLoadStateBit(t,e.checkLoadState(),e.getData()):this.setLoadStateBit(t,c().NOT_STARTED,null),this.updateTextures()},setLoadStateBit:function(e,t,r){this.loadStateBits.set(e,t===c().COMPLETE_STATE||r)},isComplete:function(){if(63!=+this.loadStateBits)return!1;const e=this.textures,t=e[0].getWidth();for(const r of e){if(r.getWidth()!==t)return!1;if(r.getHeight()!==t)return!1}return!0},updateTextures:function(){const e=this.getBrowser().getContext();if(e.bindTexture(this.getTarget(),this.getTexture()),this.isComplete()){const t=this.textures;for(let r=0;r<6;++r){const i=t[r],n=i.getWidth(),o=i.getHeight(),s=i.getData();e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!i.getFlipY()),s instanceof Uint8Array?e.texImage2D(this.getTargets()[r],0,e.RGBA,n,o,!1,e.RGBA,e.UNSIGNED_BYTE,s):e.texImage2D(this.getTargets()[r],0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,s)}e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!1),this.updateTextureParameters()}else this.clearTexture();this.set_transparent__()},set_transparent__:function(){const e=!1;if(this.isComplete())for(const t of this.textures)if(t._transparent.getValue()){e=!0;break}this.setTransparent(e)}});const E=S;g().set("x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture",E);const y=E,I=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Base/X3DBaseNode");var M=r.n(I);const C=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Rendering/X3DRenderObject");var X=r.n(C);const B=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Rendering/TraverseType");var N=r.n(B);function D(e){M().call(this,e),X().call(this,e),this.renderObject=null}D.prototype=Object.assign(Object.create(M().prototype),X().prototype,{constructor:D,initialize:function(){M().prototype.initialize.call(this),X().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 N().COLLISION:case N().SHADOW:X().prototype.render.call(this,e,t,r);break;case N().DISPLAY:this.lightIndex=0,X().prototype.render.call(this,e,t,r);for(const e of this.renderObject.getLights())e.getModelViewMatrix().pop()}}});for(const e of Reflect.ownKeys(D.prototype))Object.defineProperty(D.prototype,e,{enumerable:!1});const O=D;g().set("x_ite/Rendering/DependentRenderer",O);const R=O,A=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Rendering/TextureBuffer");var v=r.n(A);const U=window[Symbol.for("X_ITE.X3D-8.3.1")].require("standard/Math/Geometry/Camera");var F=r.n(U);const P=window[Symbol.for("X_ITE.X3D-8.3.1")].require("standard/Math/Geometry/ViewVolume");var V=r.n(P);const L=window[Symbol.for("X_ITE.X3D-8.3.1")].require("standard/Math/Numbers/Rotation4");var G=r.n(L);const j=window[Symbol.for("X_ITE.X3D-8.3.1")].require("standard/Math/Numbers/Vector3");var q=r.n(j);const z=window[Symbol.for("X_ITE.X3D-8.3.1")].require("standard/Math/Numbers/Vector4");var k=r.n(z);const Y=window[Symbol.for("X_ITE.X3D-8.3.1")].require("standard/Math/Numbers/Matrix4");var W=r.n(Y);const H=window[Symbol.for("X_ITE.X3D-8.3.1")].require("standard/Math/Algorithm");var K=r.n(H);function Z(e){T.call(this,e),this.addType(c().GeneratedCubeMapTexture),this.dependentRenderer=new R(e),this.projectionMatrix=new(W()),this.modelMatrix=new(W()),this.viewVolume=new(V())}Z.prototype=Object.assign(Object.create(T.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(){T.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.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(),l=o.getHeadlight(),c=d._headlight.getValue(),p=d.getNearValue(),g=d.getFarValue(h),x=F().perspective(K().radians(90),p,g,1,1,this.projectionMatrix);this.setTransparent(u.getTransparent()),this.frameBuffer.bind(),n.getViewVolumes().push(this.viewVolume.set(x,this.viewport,this.viewport)),n.getProjectionMatrix().pushMatrix(x),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&&(l.getModelViewMatrix().pushMatrix(r),l.getModelViewMatrix().multLeft(h.getCameraSpaceMatrix())),s.traverse(N().DISPLAY,n),c&&l.getModelViewMatrix().pop(),n.getModelViewMatrix().pop(),n.getCameraSpaceMatrix().pop(),n.getViewMatrix().pop();const o=this.frameBuffer.readPixels(),u=this.frameBuffer.getWidth(),d=this.frameBuffer.getHeight();a.bindTexture(this.getTarget(),this.getTexture()),a.texImage2D(this.getTargets()[i],0,a.RGBA,u,d,!1,a.RGBA,a.UNSIGNED_BYTE,o)}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){T.prototype.setShaderUniforms.call(this,t,r,i,n),i===this.dependentRenderer&&t.uniformMatrix4fv(r.x3d_ModelViewMatrix,!1,e)}}()});const J=Z;g().set("x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture",J);const Q=J,$=window[Symbol.for("X_ITE.X3D-8.3.1")].require("x_ite/Components/Networking/X3DUrlObject");var ee=r.n($);const te=window[Symbol.for("X_ITE.X3D-8.3.1")].require("standard/Math/Numbers/Vector2");var re=r.n(te);const ie=window[Symbol.for("X_ITE.X3D-8.3.1")].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){T.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(T.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(){T.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[0].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.getBrowser().getBrowserOptions().getCache()&&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),T.prototype.dispose.call(this)}});const de=ue;g().set("x_ite/Components/CubeMapTexturing/ImageCubeMapTexture",de);const he=de;t().addComponent({name:"CubeMapTexturing",types:{ComposedCubeMapTexture:y,GeneratedCubeMapTexture:Q,ImageCubeMapTexture:he},abstractTypes:{X3DEnvironmentTextureNode:T}});const le=void 0;g().set("assets/components/CubeMapTexturing",le)})()})();
|
|
1
|
+
/* X_ITE v8.3.3 */(()=>{"use strict";var e={355:e=>{e.exports=window[Symbol.for("X_ITE.X3D-8.3.3")].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.3.3")].require("x_ite/Components");var t=r.n(e);const i=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Fields");var n=r.n(i);const o=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/X3DFieldDefinition");var s=r.n(o);const a=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/FieldDefinitionArray");var u=r.n(a);const d=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Texturing/X3DSingleTextureNode");var h=r.n(d);const l=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/X3DConstants");var c=r.n(l);const p=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Namespace");var g=r.n(p);function x(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]}x.prototype=Object.assign(Object.create(h().prototype),{constructor:x,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)}}(),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;g().set("x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode",_);const T=_,w=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/X3DCast");var f=r.n(w);const m=window[Symbol.for("X_ITE.X3D-8.3.3")].require("standard/Utility/BitSet");var b=r.n(m);function S(e){T.call(this,e),this.addType(c().ComposedCubeMapTexture),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.textures=[null,null,null,null,null,null],this.symbols=[Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol()],this.loadStateBits=new(b())}S.prototype=Object.assign(Object.create(T.prototype),{constructor:S,[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(){T.prototype.initialize.call(this),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.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.textures[t];r&&(r.removeInterest("set_loadState__",this),r._loadState.removeFieldCallback(this.symbols[t])),r=this.textures[t]=f()(c().X3DTexture2DNode,e),r&&(r.addInterest("set_loadState__",this,r,t),r._loadState.addFieldCallback(this.symbols[t],this.set_loadState__.bind(this,r,t))),this.set_loadState__(r,t)},set_loadState__:function(e,t){e?this.setLoadStateBit(t,e.checkLoadState(),e.getData()):this.setLoadStateBit(t,c().NOT_STARTED,null),this.updateTextures()},setLoadStateBit:function(e,t,r){this.loadStateBits.set(e,t===c().COMPLETE_STATE||r)},isComplete:function(){if(63!=+this.loadStateBits)return!1;const e=this.textures,t=e[0].getWidth();for(const r of e){if(r.getWidth()!==t)return!1;if(r.getHeight()!==t)return!1}return!0},updateTextures:function(){const e=this.getBrowser().getContext();if(e.bindTexture(this.getTarget(),this.getTexture()),this.isComplete()){const t=this.textures;for(let r=0;r<6;++r){const i=t[r],n=i.getWidth(),o=i.getHeight(),s=i.getData();e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!i.getFlipY()),s instanceof Uint8Array?e.texImage2D(this.getTargets()[r],0,e.RGBA,n,o,!1,e.RGBA,e.UNSIGNED_BYTE,s):e.texImage2D(this.getTargets()[r],0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,s)}e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!1),this.updateTextureParameters()}else this.clearTexture();this.set_transparent__()},set_transparent__:function(){const e=!1;if(this.isComplete())for(const t of this.textures)if(t._transparent.getValue()){e=!0;break}this.setTransparent(e)}});const E=S;g().set("x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture",E);const y=E,I=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/X3DBaseNode");var M=r.n(I);const C=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Rendering/X3DRenderObject");var X=r.n(C);const B=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Rendering/TraverseType");var N=r.n(B);function D(e){M().call(this,e),X().call(this,e),this.renderObject=null}D.prototype=Object.assign(Object.create(M().prototype),X().prototype,{constructor:D,initialize:function(){M().prototype.initialize.call(this),X().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 N().COLLISION:case N().SHADOW:X().prototype.render.call(this,e,t,r);break;case N().DISPLAY:this.lightIndex=0,X().prototype.render.call(this,e,t,r);for(const e of this.renderObject.getLights())e.getModelViewMatrix().pop()}}});for(const e of Reflect.ownKeys(D.prototype))Object.defineProperty(D.prototype,e,{enumerable:!1});const O=D;g().set("x_ite/Rendering/DependentRenderer",O);const R=O,A=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Rendering/TextureBuffer");var v=r.n(A);const U=window[Symbol.for("X_ITE.X3D-8.3.3")].require("standard/Math/Geometry/Camera");var F=r.n(U);const P=window[Symbol.for("X_ITE.X3D-8.3.3")].require("standard/Math/Geometry/ViewVolume");var V=r.n(P);const L=window[Symbol.for("X_ITE.X3D-8.3.3")].require("standard/Math/Numbers/Rotation4");var G=r.n(L);const j=window[Symbol.for("X_ITE.X3D-8.3.3")].require("standard/Math/Numbers/Vector3");var q=r.n(j);const z=window[Symbol.for("X_ITE.X3D-8.3.3")].require("standard/Math/Numbers/Vector4");var k=r.n(z);const Y=window[Symbol.for("X_ITE.X3D-8.3.3")].require("standard/Math/Numbers/Matrix4");var W=r.n(Y);const H=window[Symbol.for("X_ITE.X3D-8.3.3")].require("standard/Math/Algorithm");var K=r.n(H);function Z(e){T.call(this,e),this.addType(c().GeneratedCubeMapTexture),this.dependentRenderer=new R(e),this.projectionMatrix=new(W()),this.modelMatrix=new(W()),this.viewVolume=new(V())}Z.prototype=Object.assign(Object.create(T.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(){T.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.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(),l=o.getHeadlight(),c=d._headlight.getValue(),p=d.getNearValue(),g=d.getFarValue(h),x=F().perspective(K().radians(90),p,g,1,1,this.projectionMatrix);this.setTransparent(u.getTransparent()),this.frameBuffer.bind(),n.getViewVolumes().push(this.viewVolume.set(x,this.viewport,this.viewport)),n.getProjectionMatrix().pushMatrix(x),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&&(l.getModelViewMatrix().pushMatrix(r),l.getModelViewMatrix().multLeft(h.getCameraSpaceMatrix())),s.traverse(N().DISPLAY,n),c&&l.getModelViewMatrix().pop(),n.getModelViewMatrix().pop(),n.getCameraSpaceMatrix().pop(),n.getViewMatrix().pop();const o=this.frameBuffer.readPixels(),u=this.frameBuffer.getWidth(),d=this.frameBuffer.getHeight();a.bindTexture(this.getTarget(),this.getTexture()),a.texImage2D(this.getTargets()[i],0,a.RGBA,u,d,!1,a.RGBA,a.UNSIGNED_BYTE,o)}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){T.prototype.setShaderUniforms.call(this,t,r,i,n),i===this.dependentRenderer&&t.uniformMatrix4fv(r.x3d_ModelViewMatrix,!1,e)}}()});const J=Z;g().set("x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture",J);const Q=J,$=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Networking/X3DUrlObject");var ee=r.n($);const te=window[Symbol.for("X_ITE.X3D-8.3.3")].require("standard/Math/Numbers/Vector2");var re=r.n(te);const ie=window[Symbol.for("X_ITE.X3D-8.3.3")].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){T.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(T.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(){T.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[0].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.getBrowser().getBrowserOptions().getCache()&&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),T.prototype.dispose.call(this)}});const de=ue;g().set("x_ite/Components/CubeMapTexturing/ImageCubeMapTexture",de);const he=de;t().addComponent({name:"CubeMapTexturing",types:{ComposedCubeMapTexture:y,GeneratedCubeMapTexture:Q,ImageCubeMapTexture:he},abstractTypes:{X3DEnvironmentTextureNode:T}});const le=void 0;g().set("assets/components/CubeMapTexturing",le)})()})();
|