x_ite 10.0.0 → 10.0.1
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/README.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 +14 -14
- 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 +18 -18
- 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 +23 -23
- 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 +23 -23
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +26 -26
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +18 -18
- 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 +38 -38
- 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/TextureProjection.js +15 -15
- package/dist/assets/components/TextureProjection.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +27 -27
- 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 +19 -19
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +56 -56
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.min.mjs +1 -1
- package/dist/x_ite.mjs +56 -56
- package/dist/x_ite.zip +0 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v10.0.0 */(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Fields");var s=e.n(i);const o=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(o);const a=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Base/FieldDefinitionArray");var d=e.n(a);const l=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var u=e.n(l);const h=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Base/X3DConstants");var p=e.n(h);const c=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Namespace");var _=e.n(c);function m(e){u().call(this,e),this.addType(p().HAnimDisplacer),this._displacements.setUnit("length")}Object.setPrototypeOf(m.prototype,u().prototype),Object.defineProperties(m,{typeName:{value:"HAnimDisplacer",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:1}),enumerable:!0},containerField:{value:"displacers",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"weight",new(s().SFFloat)),new(r())(p().inputOutput,"coordIndex",new(s().MFInt32)),new(r())(p().inputOutput,"displacements",new(s().MFVec3f))]),enumerable:!0}});const w=m;_().add("HAnimDisplacer","x_ite/Components/HAnim/HAnimDisplacer",w);const f=w,g=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Core/X3DChildNode");var I=e.n(g);const F=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Grouping/Group");var b=e.n(F);const x=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Grouping/Transform");var O=e.n(x);const T=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Grouping/X3DBoundedObject");var S=e.n(T);const v=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Rendering/TraverseType");var N=e.n(v);const y=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Base/X3DCast");var E=e.n(y);const j=window[Symbol.for("X_ITE.X3D-10.0.0")].require("standard/Math/Numbers/Matrix4");var M=e.n(j);const D=window[Symbol.for("X_ITE.X3D-10.0.0")].require("standard/Math/Algorithm");var C=e.n(D);function A(e){I().call(this,e),S().call(this,e),this.addType(p().HAnimHumanoid),this.addChildObjects(p().inputOutput,"jointTextures",new(s().SFTime),p().inputOutput,"displacementsTexture",new(s().SFTime),p().inputOutput,"displacementWeightsTexture",new(s().SFTime)),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),e.getSpecificationVersion()<=3.3&&(this._version=""),this.skeletonNode=new(b())(e),this.viewpointsNode=new(b())(e),this.skinNode=new(b())(e),this.transformNode=new(O())(e),this.motionNodes=[],this.jointNodes=[],this.jointBindingMatrices=[],this.displacementWeights=[],this.numJoints=0,this.numDisplacements=0,this.skinCoordNode=null,this.change=new X,this.skinning=Function.prototype}Object.assign(Object.setPrototypeOf(A.prototype,I().prototype),S().prototype,{initialize(){I().prototype.initialize.call(this),S().prototype.initialize.call(this),this.skeletonNode.setAllowedTypes(p().HAnimJoint,p().HAnimSite),this.viewpointsNode.setAllowedTypes(p().HAnimSite),this._skeleton.addFieldInterest(this.skeletonNode._children),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skin.addFieldInterest(this.skinNode._children),this.skeletonNode._children=this._skeleton,this.viewpointsNode._children=this._viewpoints,this.skinNode._children=this._skin,this.skeletonNode.setPrivate(!0),this.viewpointsNode.setPrivate(!0),this.skinNode.setPrivate(!0),this._translation.addFieldInterest(this.transformNode._translation),this._rotation.addFieldInterest(this.transformNode._rotation),this._scale.addFieldInterest(this.transformNode._scale),this._scaleOrientation.addFieldInterest(this.transformNode._scaleOrientation),this._center.addFieldInterest(this.transformNode._center),this._bboxDisplay.addFieldInterest(this.transformNode._bboxDisplay),this._bboxSize.addFieldInterest(this.transformNode._bboxSize),this._bboxCenter.addFieldInterest(this.transformNode._bboxCenter),this.transformNode._translation=this._translation,this.transformNode._rotation=this._rotation,this.transformNode._scale=this._scale,this.transformNode._scaleOrientation=this._scaleOrientation,this.transformNode._center=this._center,this.transformNode._bboxDisplay=this._bboxDisplay,this.transformNode._bboxSize=this._bboxSize,this.transformNode._bboxCenter=this._bboxCenter,this.transformNode._children=[this.skeletonNode,this.viewpointsNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.skeletonNode.setup(),this.viewpointsNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.isCameraObject()),this.setPickableObject(this.transformNode.isPickableObject());const e=this.getBrowser().getContext();if(1!==e.getVersion()){this.skinNode.traverse=function(e,t,n){n.getHumanoids().push(e),b().prototype.traverse.call(this,t,n),n.getHumanoids().pop()}.bind(this.skinNode,this),this.jointsTexture=e.createTexture(),this.displacementsTexture=e.createTexture(),this.jointMatricesTexture=e.createTexture();for(const t of[this.jointsTexture,this.displacementsTexture,this.jointMatricesTexture])e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR);this._motionsEnabled.addInterest("set_motions__",this),this._motions.addInterest("set_motions__",this),this._jointBindingPositions.addInterest("set_joints__",this),this._jointBindingRotations.addInterest("set_joints__",this),this._jointBindingScales.addInterest("set_joints__",this),this._joints.addInterest("set_joints__",this),this._jointTextures.addInterest("set_jointTextures__",this),this._displacementsTexture.addInterest("set_displacementsTexture__",this),this._displacementWeightsTexture.addInterest("set_displacementWeightsTexture__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_motions__(),this.set_joints__(),this.set_skinCoord__()}},getBBox(e,t){return this.transformNode.getBBox(e,t)},getSubBBox(e,t){return this.transformNode.getSubBBox(e,t)},getMatrix(){return this.transformNode.getMatrix()},getHumanoidKey(){return this.numJoints+"."+this.numDisplacements},getNumJoints(){return this.numJoints},getNumDisplacements(){return this.numDisplacements},set_motions__(){const e=this._motionsEnabled,t=this.motionNodes;for(const e of t)e._joints.removeInterest("set_connectJoints__",this),e._channelsEnabled.removeInterest("set_connectJoints__",this),e._channels.removeInterest("set_connectJoints__",this),e._values.removeInterest("set_connectJoints__",this),e.disconnectJoints(this.jointNodes);t.length=0;for(const[n,i]of this._motions.entries()){if(n<e.length&&!e[n])continue;const s=E()(p().HAnimMotion,i);s&&t.push(s)}for(const e of t)e._joints.addInterest("set_connectJoints__",this,e),e._channelsEnabled.addInterest("set_connectJoints__",this,e),e._channels.addInterest("set_connectJoints__",this,e),e._values.addInterest("set_connectJoints__",this,e),e.connectJoints(this.jointNodes)},set_connectJoints__(e){e.disconnectJoints(this.jointNodes),e.connectJoints(this.jointNodes)},set_joints__(){const e=this.jointNodes,t=this.jointBindingMatrices,n=this._jointBindingPositions,i=this._jointBindingRotations,s=this._jointBindingScales,o=n.length,r=i.length,a=s.length;for(const t of this.motionNodes)t.disconnectJoints(e);for(const t of e)t.removeInterest("enable",this.change),t._skinCoordIndex.removeInterest("addEvent",this._jointTextures),t._skinCoordWeight.removeInterest("addEvent",this._jointTextures),t._displacements.removeInterest("addEvent",this._displacementsTexture),t._displacementWeights.removeInterest("addEvent",this._displacementWeightsTexture);e.length=0,t.length=0;for(const[d,l]of this._joints.entries()){const u=E()(p().HAnimJoint,l);if(!u)continue;const h=o?n[Math.min(d,o-1)].getValue():null,c=r?i[Math.min(d,r-1)].getValue():null,_=a?s[Math.min(d,a-1)].getValue():null;e.push(u),t.push((new(M())).set(h,c,_))}for(const t of e)t.addInterest("enable",this.change),t._skinCoordIndex.addInterest("addEvent",this._jointTextures),t._skinCoordWeight.addInterest("addEvent",this._jointTextures),t._displacements.addInterest("addEvent",this._displacementsTexture),t._displacementWeights.addInterest("addEvent",this._displacementWeightsTexture);for(const t of this.motionNodes)t.connectJoints(e);const d=Math.ceil(Math.sqrt(8*e.length));this.jointMatricesArray=new Float32Array(d*d*4),this._jointTextures.addEvent(),this._displacementsTexture.addEvent(),this._displacementWeightsTexture.addEvent()},set_jointTextures__(){const e=this.skinCoordNode?._point.length||1,t=Array.from({length:e},(()=>[])),n=Array.from({length:e},(()=>[]));for(const[e,i]of this.jointNodes.entries()){const s=i._skinCoordWeight.getValue();for(const[o,r]of i._skinCoordIndex.entries()){const i=s[o];0!==i&&(t[r]?.push(e),n[r]?.push(i))}}const i=C().roundToMultiple(t.reduce(((e,t)=>Math.max(e,t.length)),0),4),s=2*i,o=Math.ceil(Math.sqrt(e*s))||1,r=new Float32Array(o*o*4);for(let o=0;o<e;++o)r.set(t[o],o*s),r.set(n[o],o*s+i);this.numJoints=i;const a=this.getBrowser().getContext();a.bindTexture(a.TEXTURE_2D,this.jointsTexture),a.texImage2D(a.TEXTURE_2D,0,a.RGBA32F,o,o,0,a.RGBA,a.FLOAT,r),this.change.enable()},set_displacementsTexture__(){const e=this.skinCoordNode?._point.length||1,t=Array.from({length:e},(()=>[]));for(const[e,n]of this.jointNodes.entries())for(const i of n.getDisplacers()){const n=i._displacements;for(const[s,o]of i._coordIndex.entries())t[o]?.push(...n[s],e)}const n=t.reduce(((e,t)=>Math.max(e,t.length)),0)/4,i=4*n,s=C().roundToMultiple(Math.ceil(Math.sqrt(e*n*2))||1,2),o=new Float32Array(s*s*4);for(let n=0;n<e;++n)o.set(t[n],n*i);this.numDisplacements=n;const r=this.getBrowser().getContext();r.bindTexture(r.TEXTURE_2D,this.displacementsTexture),r.texImage2D(r.TEXTURE_2D,0,r.RGBA32F,s,s,0,r.RGBA,r.FLOAT,o);const a=this.displacementWeights;for(let t=a.length;t<e;++t)a[t]=[];a.length=e,this.displacementWeightsArray=new Float32Array(s*s*2),this.change.enable()},set_displacementWeightsTexture__(){const e=this.skinCoordNode?._point.length||1,t=this.displacementWeights;for(const e of t)e.length=0;for(const e of this.jointNodes)for(const n of e.getDisplacers()){const e=n._weight;for(const i of n._coordIndex)t[i]?.push(e,0,0,0)}const n=this.numDisplacements,i=4*n,s=C().roundToMultiple(Math.ceil(Math.sqrt(e*n*2))||1,2),o=this.displacementWeightsArray;for(let n=0;n<e;++n)o.set(t[n],n*i);const r=this.getBrowser().getContext();r.bindTexture(r.TEXTURE_2D,this.displacementsTexture),r.texSubImage2D(r.TEXTURE_2D,0,0,s/2,s,s/2,r.RGBA,r.FLOAT,o),this.change.enable()},set_skinCoord__(){this.skinCoordNode&&(this.skinCoordNode.removeInterest("addEvent",this._jointTextures),this.skinCoordNode.removeInterest("addEvent",this._displacementsTexture),this.skinCoordNode.removeInterest("addEvent",this._displacementWeightsTexture)),this.skinCoordNode=E()(p().X3DCoordinateNode,this._skinCoord),this.skinCoordNode?(delete this.skinning,this.skinCoordNode.addInterest("addEvent",this._jointTextures),this.skinCoordNode.addInterest("addEvent",this._displacementsTexture),this.skinCoordNode.addInterest("addEvent",this._displacementWeightsTexture)):this.skinning=Function.prototype,this._jointTextures.addEvent(),this._displacementsTexture.addEvent(),this._displacementWeightsTexture.addEvent()},traverse(e,t){this.transformNode.traverse(e,t),this.skinning(e,t)},skinning:(()=>{const e=new(M());return function(t,n){if(t!==N().DISPLAY||this.change.lock())return;e.assign(this.transformNode.getMatrix()).multRight(n.getModelViewMatrix().get()).inverse();const i=this.jointNodes,s=i.length,o=this.jointBindingMatrices,r=this.jointMatricesArray,a=Math.ceil(Math.sqrt(8*s));for(let t=0;t<s;++t){const n=i[t],s=o[t],a=n.getModelViewMatrix().multRight(e).multLeft(s),d=a.submatrix.transpose().inverse();r.set(a,32*t+0),r.set(d,32*t+16)}const d=this.getBrowser().getContext();d.bindTexture(d.TEXTURE_2D,this.jointMatricesTexture),d.texImage2D(d.TEXTURE_2D,0,d.RGBA32F,a,a,0,d.RGBA,d.FLOAT,r)}})(),setShaderUniforms(e,t){const n=this.getBrowser().getTexture2DUnit(),i=this.getBrowser().getTexture2DUnit(),s=this.getBrowser().getTexture2DUnit();e.activeTexture(e.TEXTURE0+n),e.bindTexture(e.TEXTURE_2D,this.jointsTexture),e.uniform1i(t.x3d_JointsTexture,n),e.activeTexture(e.TEXTURE0+i),e.bindTexture(e.TEXTURE_2D,this.displacementsTexture),e.uniform1i(t.x3d_DisplacementsTexture,i),e.activeTexture(e.TEXTURE0+s),e.bindTexture(e.TEXTURE_2D,this.jointMatricesTexture),e.uniform1i(t.x3d_JointMatricesTexture,s)},dispose(){S().prototype.dispose.call(this),I().prototype.dispose.call(this)}}),Object.defineProperties(A,{typeName:{value:"HAnimHumanoid",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"version",new(s().SFString)("2.0")),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"info",new(s().MFString)),new(r())(p().inputOutput,"skeletalConfiguration",new(s().SFString)("BASIC")),new(r())(p().inputOutput,"loa",new(s().SFInt32)(-1)),new(r())(p().inputOutput,"translation",new(s().SFVec3f)),new(r())(p().inputOutput,"rotation",new(s().SFRotation)),new(r())(p().inputOutput,"scale",new(s().SFVec3f)(1,1,1)),new(r())(p().inputOutput,"scaleOrientation",new(s().SFRotation)),new(r())(p().inputOutput,"center",new(s().SFVec3f)),new(r())(p().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(p().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(p().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(p().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(p().inputOutput,"skeleton",new(s().MFNode)),new(r())(p().inputOutput,"viewpoints",new(s().MFNode)),new(r())(p().inputOutput,"sites",new(s().MFNode)),new(r())(p().inputOutput,"segments",new(s().MFNode)),new(r())(p().inputOutput,"motionsEnabled",new(s().MFBool)),new(r())(p().inputOutput,"motions",new(s().MFNode)),new(r())(p().inputOutput,"jointBindingPositions",new(s().MFVec3f)),new(r())(p().inputOutput,"jointBindingRotations",new(s().MFRotation)),new(r())(p().inputOutput,"jointBindingScales",new(s().MFVec3f)),new(r())(p().inputOutput,"joints",new(s().MFNode)),new(r())(p().inputOutput,"skinBindingNormals",new(s().SFNode)),new(r())(p().inputOutput,"skinBindingCoords",new(s().SFNode)),new(r())(p().inputOutput,"skinNormal",new(s().SFNode)),new(r())(p().inputOutput,"skinCoord",new(s().SFNode)),new(r())(p().inputOutput,"skin",new(s().MFNode))]),enumerable:!0}});class X{#e=!0;enable(){this.#e=!1}lock(){const e=this.#e;return this.#e=!0,e}}const k=A;_().add("HAnimHumanoid","x_ite/Components/HAnim/HAnimHumanoid",k);const R=k,V=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Grouping/X3DTransformNode");var B=e.n(V);const H=window[Symbol.for("X_ITE.X3D-10.0.0")].require("standard/Math/Numbers/Vector3");var P=e.n(H);function z(e){B().call(this,e),this.addType(p().HAnimJoint),this.addChildObjects(p().outputOnly,"displacements",new(s().SFTime),p().outputOnly,"displacementWeights",new(s().SFTime)),this.setAllowedTypes(p().HAnimJoint,p().HAnimSegment,p().HAnimSite),this.displacerNodes=[],this.modelViewMatrix=new(M())}Object.assign(Object.setPrototypeOf(z.prototype,B().prototype),{initialize(){B().prototype.initialize.call(this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},getModelViewMatrix(){return this.modelViewMatrix},getDisplacers(){return this.displacerNodes},set_displacers__(){const e=this.displacerNodes;for(const t of e)t._coordIndex.removeInterest("addEvent",this._displacements),t._displacements.removeInterest("addEvent",this._displacements),t._coordIndex.removeInterest("addEvent",this._displacementWeights),t._weight.removeInterest("addEvent",this._displacementWeights);e.length=0;for(const t of this._displacers){const n=E()(p().HAnimDisplacer,t);n&&e.push(n)}for(const t of e)t._coordIndex.addInterest("addEvent",this._displacements),t._displacements.addInterest("addEvent",this._displacements),t._coordIndex.addInterest("addEvent",this._displacementWeights),t._weight.addInterest("addEvent",this._displacementWeights)},traverse(e,t){const n=t.getModelViewMatrix();n.push(),n.multLeft(this.getMatrix()),e===N().DISPLAY&&this.modelViewMatrix.assign(n.get()),B().prototype.groupTraverse.call(this,e,t),n.pop()},groupTraverse(e,t){e===N().DISPLAY&&this.modelViewMatrix.assign(t.getModelViewMatrix().get()),B().prototype.groupTraverse.call(this,e,t)}}),Object.defineProperties(z,{typeName:{value:"HAnimJoint",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"translation",new(s().SFVec3f)),new(r())(p().inputOutput,"rotation",new(s().SFRotation)),new(r())(p().inputOutput,"scale",new(s().SFVec3f)(1,1,1)),new(r())(p().inputOutput,"scaleOrientation",new(s().SFRotation)),new(r())(p().inputOutput,"center",new(s().SFVec3f)),new(r())(p().inputOutput,"llimit",new(s().MFFloat)(0,0,0)),new(r())(p().inputOutput,"ulimit",new(s().MFFloat)(0,0,0)),new(r())(p().inputOutput,"limitOrientation",new(s().SFRotation)),new(r())(p().inputOutput,"stiffness",new(s().MFFloat)(0,0,0)),new(r())(p().inputOutput,"skinCoordIndex",new(s().MFInt32)),new(r())(p().inputOutput,"skinCoordWeight",new(s().MFFloat)),new(r())(p().inputOutput,"displacers",new(s().MFNode)),new(r())(p().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(p().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(p().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(p().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(p().inputOnly,"addChildren",new(s().MFNode)),new(r())(p().inputOnly,"removeChildren",new(s().MFNode)),new(r())(p().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const J=z;_().add("HAnimJoint","x_ite/Components/HAnim/HAnimJoint",J);const U=J,W=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Time/TimeSensor");var q=e.n(W);const G=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Interpolation/PositionInterpolator");var L=e.n(G);const Y=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Interpolation/OrientationInterpolator");var Z=e.n(Y);const $=window[Symbol.for("X_ITE.X3D-10.0.0")].require("standard/Math/Numbers/Rotation4");var K=e.n($);function Q(e){I().call(this,e),this.addType(p().HAnimMotion),this.timeSensor=new(q())(this.getExecutionContext()),this.interpolators=[]}Object.assign(Object.setPrototypeOf(Q.prototype,I().prototype),{initialize(){I().prototype.initialize.call(this),this._loop.addFieldInterest(this.timeSensor._loop),this.timeSensor._cycleTime.addFieldInterest(this._cycleTime),this.timeSensor._elapsedTime.addFieldInterest(this._elapsedTime),this.timeSensor._enabled=!1,this.timeSensor._loop=this._loop,this.timeSensor._stopTime=1,this.timeSensor.setup(),this._enabled.addInterest("set_enabled__",this),this._joints.addInterest("set_joints__",this),this._channels.addInterest("set_interpolators__",this),this._values.addInterest("set_interpolators__",this),this._next.addInterest("set_next_or_previous__",this,1),this._previous.addInterest("set_next_or_previous__",this,-1),this._frameIndex.addInterest("set_frameIndex__",this),this._frameDuration.addInterest("set_frameDuration__",this),this._frameIncrement.addInterest("set_frameIncrement__",this),this._startFrame.addInterest("set_start_or_endFrame__",this),this._endFrame.addInterest("set_start_or_endFrame__",this),this.set_enabled__(),this.set_joints__(),this.set_frameIncrement__(),this.set_interpolators__()},connectJoints(e){const t=this._channelsEnabled,n=this.joints,i=this.getJointsIndex(e);for(const[e,{positionInterpolator:s,orientationInterpolator:o,scaleInterpolator:r}]of this.interpolators.entries()){if(e<t.length&&!t[e])continue;const a=i.get(n[e]);a&&(s?._value_changed.addFieldInterest(a._translation),o?._value_changed.addFieldInterest(a._rotation),r?._value_changed.addFieldInterest(a._scale))}},disconnectJoints(e){const t=this.joints,n=this.getJointsIndex(e);for(const[e,{positionInterpolator:i,orientationInterpolator:s,scaleInterpolator:o}]of this.interpolators.entries()){const r=n.get(t[e]);r&&(i?._value_changed.removeFieldInterest(r._translation),s?._value_changed.removeFieldInterest(r._rotation),o?._value_changed.removeFieldInterest(r._scale))}},getJointsIndex(e){const t=new Map(e.map((e=>[e._name.getValue().trim(),e])));return t.delete("IGNORED"),t.set("HumanoidRoot",t.get("humanoid_root")),t},set_enabled__(){this._enabled.getValue()?this.timeSensor._startTime=Date.now()/1e3:this.timeSensor._stopTime=Date.now()/1e3},set_joints__(){this.joints=this._joints.getValue().replace(/^[\s,]+|[\s,]+$/gs,"").split(/[\s,]+/s);for(const{positionInterpolator:e,orientationInterpolator:t,scaleInterpolator:n}of this.interpolators)e?._value_changed.getFieldInterests().forEach((t=>e._value_changed.removeFieldInterest(t))),t?._value_changed.getFieldInterests().forEach((e=>t._value_changed.removeFieldInterest(e))),n?._value_changed.getFieldInterests().forEach((e=>n._value_changed.removeFieldInterest(e)))},set_interpolators__(){const e=this.timeSensor;e._fraction_changed.getFieldInterests().forEach((t=>e._fraction_changed.removeFieldInterest(t)));const t=this._channels.getValue().replace(/^[\s,\d]+|[\s,\d]+$/gs,"").split(/[\s,]+\d+[\s,]+/s).map((e=>e.split(/[\s,]+/s))),n=this._values,i=t.reduce(((e,t)=>e+t.length),0),s=Math.floor(i?n.length/i:0),o=new Map,r=Array.from({length:t.length},(()=>({})));this.interpolators=r;for(let i=0,a=0;i<s;++i)for(const[d,l]of t.entries()){o.clear();for(const e of l)o.set(e,n[a++]);if(o.has("Xposition")||o.has("Yposition")||o.has("Zposition")){const t=r[d].positionInterpolator??this.createPositionInterpolator(r,d),n=i/(s-1),a=new(P())(o.get("Xposition")??0,o.get("Yposition")??0,o.get("Zposition")??0);t._key.push(n),t._keyValue.push(a),e._fraction_changed.addFieldInterest(t._set_fraction)}if(o.has("Xrotation")||o.has("Yrotation")||o.has("Zrotation")){const t=r[d].orientationInterpolator??this.createOrientationInterpolator(r,d),n=i/(s-1),a=K().fromEuler(C().radians(o.get("Xrotation")??0),C().radians(o.get("Yrotation")??0),C().radians(o.get("Zrotation")??0));t._key.push(n),t._keyValue.push(a),e._fraction_changed.addFieldInterest(t._set_fraction)}if(o.has("Xscale")||o.has("Yscale")||o.has("Zscale")){const t=r[d].scaleInterpolator??this.createScaleInterpolator(r,d),n=i/(s-1),a=new(P())(o.get("Xscale")??1,o.get("Yscale")??1,o.get("Zscale")??1);t._key.push(n),t._keyValue.push(a),e._fraction_changed.addFieldInterest(t._set_fraction)}}for(const{positionInterpolator:e,orientationInterpolator:t,scaleInterpolator:n}of r)e?.setup(),t?.setup(),n?.setup();this._frameIndex=0,this._startFrame=0,this._endFrame=s-1,this._frameCount=s,this.set_frameDuration__()},set_next_or_previous__(e,t){if(!t.getValue())return;const n=this.getFraction(),i=this._frameCount.getValue(),s=this._frameIncrement.getValue(),o=(i>1?Math.floor(n*(i-1)):0)+s*e;if(o>this.endFrame){if(!this._loop.getValue())return;this._frameIndex=this.startFrame}else if(o<this.startFrame){if(!this._loop.getValue())return;this._frameIndex=this.endFrame}else this._frameIndex=o},set_frameIndex__(){const e=this._frameCount.getValue(),t=C().clamp(this._frameIndex.getValue(),0,e),n=e>1?t/(e-1):0;if(this.timeSensor._range[0]=n,!this.timeSensor._isActive.getValue())for(const e of this.timeSensor._fraction_changed.getFieldInterests())e.setValue(n)},set_frameDuration__(){const e=this._frameCount.getValue(),t=Math.max(this._frameDuration.getValue(),0);this.timeSensor._cycleInterval=e>1?(e-1)*t:0},set_frameIncrement__(){this.timeSensor._enabled=this._frameIncrement.getValue()},set_start_or_endFrame__(){const e=this._frameCount.getValue(),t=C().clamp(this._startFrame.getValue(),0,e),n=C().clamp(this._endFrame.getValue(),0,e);this.startFrame=Math.min(t,n),this.endFrame=Math.max(t,n),this.timeSensor._range[1]=e>1?this.startFrame/(e-1):0,this.timeSensor._range[2]=e>1?this.endFrame/(e-1):0},createPositionInterpolator(e,t){return e[t].positionInterpolator=new(L())(this.getExecutionContext())},createOrientationInterpolator(e,t){return e[t].orientationInterpolator=new(Z())(this.getExecutionContext())},createScaleInterpolator(e,t){return e[t].scaleInterpolator=new(L())(this.getExecutionContext())},getFraction(){for(const e of this.timeSensor._fraction_changed.getFieldInterests())return e.getValue();return 0}}),Object.defineProperties(Q,{typeName:{value:"HAnimMotion",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:2}),enumerable:!0},containerField:{value:"motions",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(p().inputOutput,"loa",new(s().SFInt32)(-1)),new(r())(p().inputOutput,"joints",new(s().SFString)),new(r())(p().inputOutput,"channelsEnabled",new(s().MFBool)),new(r())(p().inputOutput,"channels",new(s().SFString)),new(r())(p().inputOutput,"values",new(s().MFFloat)),new(r())(p().inputOutput,"loop",new(s().SFBool)),new(r())(p().inputOnly,"next",new(s().SFBool)),new(r())(p().inputOnly,"previous",new(s().SFBool)),new(r())(p().inputOutput,"frameIndex",new(s().SFInt32)),new(r())(p().inputOutput,"frameDuration",new(s().SFTime)(.1)),new(r())(p().inputOutput,"frameIncrement",new(s().SFInt32)(1)),new(r())(p().inputOutput,"startFrame",new(s().SFInt32)),new(r())(p().inputOutput,"endFrame",new(s().SFInt32)),new(r())(p().outputOnly,"cycleTime",new(s().SFTime)),new(r())(p().outputOnly,"elapsedTime",new(s().SFTime)),new(r())(p().outputOnly,"frameCount",new(s().SFInt32))]),enumerable:!0}});const ee=Q;_().add("HAnimMotion","x_ite/Components/HAnim/HAnimMotion",ee);const te=ee,ne=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Grouping/X3DGroupingNode");var ie=e.n(ne);function se(e){ie().call(this,e),this.addType(p().HAnimSegment),this._mass.setUnit("mass")}Object.setPrototypeOf(se.prototype,ie().prototype),Object.defineProperties(se,{typeName:{value:"HAnimSegment",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"mass",new(s().SFFloat)),new(r())(p().inputOutput,"centerOfMass",new(s().SFVec3f)),new(r())(p().inputOutput,"momentsOfInertia",new(s().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(p().inputOutput,"displacers",new(s().MFNode)),new(r())(p().inputOutput,"coord",new(s().SFNode)),new(r())(p().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(p().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(p().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(p().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(p().inputOnly,"addChildren",new(s().MFNode)),new(r())(p().inputOnly,"removeChildren",new(s().MFNode)),new(r())(p().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const oe=se;_().add("HAnimSegment","x_ite/Components/HAnim/HAnimSegment",oe);const re=oe;function ae(e){B().call(this,e),this.addType(p().HAnimSite)}Object.setPrototypeOf(ae.prototype,B().prototype),Object.defineProperties(ae,{typeName:{value:"HAnimSite",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"translation",new(s().SFVec3f)),new(r())(p().inputOutput,"rotation",new(s().SFRotation)),new(r())(p().inputOutput,"scale",new(s().SFVec3f)(1,1,1)),new(r())(p().inputOutput,"scaleOrientation",new(s().SFRotation)),new(r())(p().inputOutput,"center",new(s().SFVec3f)),new(r())(p().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(p().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(p().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(p().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(p().inputOnly,"addChildren",new(s().MFNode)),new(r())(p().inputOnly,"removeChildren",new(s().MFNode)),new(r())(p().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const de=ae;_().add("HAnimSite","x_ite/Components/HAnim/HAnimSite",de);const le=de;n().add({name:"HAnim",concreteNodes:[f,R,U,te,re,le],abstractNodes:[]});const ue=void 0;_().add("HAnim","assets/components/HAnim",ue)})();
|
|
1
|
+
/* X_ITE v10.0.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-10.0.1")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Fields");var s=e.n(i);const o=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(o);const a=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Base/FieldDefinitionArray");var d=e.n(a);const l=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var u=e.n(l);const h=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Base/X3DConstants");var p=e.n(h);const c=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Namespace");var _=e.n(c);function m(e){u().call(this,e),this.addType(p().HAnimDisplacer),this._displacements.setUnit("length")}Object.setPrototypeOf(m.prototype,u().prototype),Object.defineProperties(m,{typeName:{value:"HAnimDisplacer",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:1}),enumerable:!0},containerField:{value:"displacers",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"weight",new(s().SFFloat)),new(r())(p().inputOutput,"coordIndex",new(s().MFInt32)),new(r())(p().inputOutput,"displacements",new(s().MFVec3f))]),enumerable:!0}});const w=m;_().add("HAnimDisplacer","x_ite/Components/HAnim/HAnimDisplacer",w);const f=w,g=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Core/X3DChildNode");var I=e.n(g);const F=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Grouping/Group");var b=e.n(F);const x=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Grouping/Transform");var O=e.n(x);const T=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Grouping/X3DBoundedObject");var S=e.n(T);const v=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Rendering/TraverseType");var N=e.n(v);const y=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Base/X3DCast");var E=e.n(y);const j=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Numbers/Matrix4");var M=e.n(j);const D=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Algorithm");var C=e.n(D);function A(e){I().call(this,e),S().call(this,e),this.addType(p().HAnimHumanoid),this.addChildObjects(p().inputOutput,"jointTextures",new(s().SFTime),p().inputOutput,"displacementsTexture",new(s().SFTime),p().inputOutput,"displacementWeightsTexture",new(s().SFTime)),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),e.getSpecificationVersion()<=3.3&&(this._version=""),this.skeletonNode=new(b())(e),this.viewpointsNode=new(b())(e),this.skinNode=new(b())(e),this.transformNode=new(O())(e),this.motionNodes=[],this.jointNodes=[],this.jointBindingMatrices=[],this.displacementWeights=[],this.numJoints=0,this.numDisplacements=0,this.skinCoordNode=null,this.change=new X,this.skinning=Function.prototype}Object.assign(Object.setPrototypeOf(A.prototype,I().prototype),S().prototype,{initialize(){I().prototype.initialize.call(this),S().prototype.initialize.call(this),this.skeletonNode.setAllowedTypes(p().HAnimJoint,p().HAnimSite),this.viewpointsNode.setAllowedTypes(p().HAnimSite),this._skeleton.addFieldInterest(this.skeletonNode._children),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skin.addFieldInterest(this.skinNode._children),this.skeletonNode._children=this._skeleton,this.viewpointsNode._children=this._viewpoints,this.skinNode._children=this._skin,this.skeletonNode.setPrivate(!0),this.viewpointsNode.setPrivate(!0),this.skinNode.setPrivate(!0),this._translation.addFieldInterest(this.transformNode._translation),this._rotation.addFieldInterest(this.transformNode._rotation),this._scale.addFieldInterest(this.transformNode._scale),this._scaleOrientation.addFieldInterest(this.transformNode._scaleOrientation),this._center.addFieldInterest(this.transformNode._center),this._bboxDisplay.addFieldInterest(this.transformNode._bboxDisplay),this._bboxSize.addFieldInterest(this.transformNode._bboxSize),this._bboxCenter.addFieldInterest(this.transformNode._bboxCenter),this.transformNode._translation=this._translation,this.transformNode._rotation=this._rotation,this.transformNode._scale=this._scale,this.transformNode._scaleOrientation=this._scaleOrientation,this.transformNode._center=this._center,this.transformNode._bboxDisplay=this._bboxDisplay,this.transformNode._bboxSize=this._bboxSize,this.transformNode._bboxCenter=this._bboxCenter,this.transformNode._children=[this.skeletonNode,this.viewpointsNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.skeletonNode.setup(),this.viewpointsNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.isCameraObject()),this.setPickableObject(this.transformNode.isPickableObject());const e=this.getBrowser().getContext();if(1!==e.getVersion()){this.skinNode.traverse=function(e,t,n){n.getHumanoids().push(e),b().prototype.traverse.call(this,t,n),n.getHumanoids().pop()}.bind(this.skinNode,this),this.jointsTexture=e.createTexture(),this.displacementsTexture=e.createTexture(),this.jointMatricesTexture=e.createTexture();for(const t of[this.jointsTexture,this.displacementsTexture,this.jointMatricesTexture])e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR);this._motionsEnabled.addInterest("set_motions__",this),this._motions.addInterest("set_motions__",this),this._jointBindingPositions.addInterest("set_joints__",this),this._jointBindingRotations.addInterest("set_joints__",this),this._jointBindingScales.addInterest("set_joints__",this),this._joints.addInterest("set_joints__",this),this._jointTextures.addInterest("set_jointTextures__",this),this._displacementsTexture.addInterest("set_displacementsTexture__",this),this._displacementWeightsTexture.addInterest("set_displacementWeightsTexture__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_motions__(),this.set_joints__(),this.set_skinCoord__()}},getBBox(e,t){return this.transformNode.getBBox(e,t)},getSubBBox(e,t){return this.transformNode.getSubBBox(e,t)},getMatrix(){return this.transformNode.getMatrix()},getHumanoidKey(){return this.numJoints+"."+this.numDisplacements},getNumJoints(){return this.numJoints},getNumDisplacements(){return this.numDisplacements},set_motions__(){const e=this._motionsEnabled,t=this.motionNodes;for(const e of t)e._joints.removeInterest("set_connectJoints__",this),e._channelsEnabled.removeInterest("set_connectJoints__",this),e._channels.removeInterest("set_connectJoints__",this),e._values.removeInterest("set_connectJoints__",this),e.disconnectJoints(this.jointNodes);t.length=0;for(const[n,i]of this._motions.entries()){if(n<e.length&&!e[n])continue;const s=E()(p().HAnimMotion,i);s&&t.push(s)}for(const e of t)e._joints.addInterest("set_connectJoints__",this,e),e._channelsEnabled.addInterest("set_connectJoints__",this,e),e._channels.addInterest("set_connectJoints__",this,e),e._values.addInterest("set_connectJoints__",this,e),e.connectJoints(this.jointNodes)},set_connectJoints__(e){e.disconnectJoints(this.jointNodes),e.connectJoints(this.jointNodes)},set_joints__(){const e=this.jointNodes,t=this.jointBindingMatrices,n=this._jointBindingPositions,i=this._jointBindingRotations,s=this._jointBindingScales,o=n.length,r=i.length,a=s.length;for(const t of this.motionNodes)t.disconnectJoints(e);for(const t of e)t.removeInterest("enable",this.change),t._skinCoordIndex.removeInterest("addEvent",this._jointTextures),t._skinCoordWeight.removeInterest("addEvent",this._jointTextures),t._displacements.removeInterest("addEvent",this._displacementsTexture),t._displacementWeights.removeInterest("addEvent",this._displacementWeightsTexture);e.length=0,t.length=0;for(const[d,l]of this._joints.entries()){const u=E()(p().HAnimJoint,l);if(!u)continue;const h=o?n[Math.min(d,o-1)].getValue():null,c=r?i[Math.min(d,r-1)].getValue():null,_=a?s[Math.min(d,a-1)].getValue():null;e.push(u),t.push((new(M())).set(h,c,_))}for(const t of e)t.addInterest("enable",this.change),t._skinCoordIndex.addInterest("addEvent",this._jointTextures),t._skinCoordWeight.addInterest("addEvent",this._jointTextures),t._displacements.addInterest("addEvent",this._displacementsTexture),t._displacementWeights.addInterest("addEvent",this._displacementWeightsTexture);for(const t of this.motionNodes)t.connectJoints(e);const d=Math.ceil(Math.sqrt(8*e.length));this.jointMatricesArray=new Float32Array(d*d*4),this._jointTextures.addEvent(),this._displacementsTexture.addEvent(),this._displacementWeightsTexture.addEvent()},set_jointTextures__(){const e=this.skinCoordNode?._point.length||1,t=Array.from({length:e},(()=>[])),n=Array.from({length:e},(()=>[]));for(const[e,i]of this.jointNodes.entries()){const s=i._skinCoordWeight.getValue();for(const[o,r]of i._skinCoordIndex.entries()){const i=s[o];0!==i&&(t[r]?.push(e),n[r]?.push(i))}}const i=C().roundToMultiple(t.reduce(((e,t)=>Math.max(e,t.length)),0),4),s=2*i,o=Math.ceil(Math.sqrt(e*s))||1,r=new Float32Array(o*o*4);for(let o=0;o<e;++o)r.set(t[o],o*s),r.set(n[o],o*s+i);this.numJoints=i;const a=this.getBrowser().getContext();a.bindTexture(a.TEXTURE_2D,this.jointsTexture),a.texImage2D(a.TEXTURE_2D,0,a.RGBA32F,o,o,0,a.RGBA,a.FLOAT,r),this.change.enable()},set_displacementsTexture__(){const e=this.skinCoordNode?._point.length||1,t=Array.from({length:e},(()=>[]));for(const[e,n]of this.jointNodes.entries())for(const i of n.getDisplacers()){const n=i._displacements;for(const[s,o]of i._coordIndex.entries())t[o]?.push(...n[s],e)}const n=t.reduce(((e,t)=>Math.max(e,t.length)),0)/4,i=4*n,s=C().roundToMultiple(Math.ceil(Math.sqrt(e*n*2))||1,2),o=new Float32Array(s*s*4);for(let n=0;n<e;++n)o.set(t[n],n*i);this.numDisplacements=n;const r=this.getBrowser().getContext();r.bindTexture(r.TEXTURE_2D,this.displacementsTexture),r.texImage2D(r.TEXTURE_2D,0,r.RGBA32F,s,s,0,r.RGBA,r.FLOAT,o);const a=this.displacementWeights;for(let t=a.length;t<e;++t)a[t]=[];a.length=e,this.displacementWeightsArray=new Float32Array(s*s*2),this.change.enable()},set_displacementWeightsTexture__(){const e=this.skinCoordNode?._point.length||1,t=this.displacementWeights;for(const e of t)e.length=0;for(const e of this.jointNodes)for(const n of e.getDisplacers()){const e=n._weight;for(const i of n._coordIndex)t[i]?.push(e,0,0,0)}const n=this.numDisplacements,i=4*n,s=C().roundToMultiple(Math.ceil(Math.sqrt(e*n*2))||1,2),o=this.displacementWeightsArray;for(let n=0;n<e;++n)o.set(t[n],n*i);const r=this.getBrowser().getContext();r.bindTexture(r.TEXTURE_2D,this.displacementsTexture),r.texSubImage2D(r.TEXTURE_2D,0,0,s/2,s,s/2,r.RGBA,r.FLOAT,o),this.change.enable()},set_skinCoord__(){this.skinCoordNode&&(this.skinCoordNode.removeInterest("addEvent",this._jointTextures),this.skinCoordNode.removeInterest("addEvent",this._displacementsTexture),this.skinCoordNode.removeInterest("addEvent",this._displacementWeightsTexture)),this.skinCoordNode=E()(p().X3DCoordinateNode,this._skinCoord),this.skinCoordNode?(delete this.skinning,this.skinCoordNode.addInterest("addEvent",this._jointTextures),this.skinCoordNode.addInterest("addEvent",this._displacementsTexture),this.skinCoordNode.addInterest("addEvent",this._displacementWeightsTexture)):this.skinning=Function.prototype,this._jointTextures.addEvent(),this._displacementsTexture.addEvent(),this._displacementWeightsTexture.addEvent()},traverse(e,t){this.transformNode.traverse(e,t),this.skinning(e,t)},skinning:(()=>{const e=new(M());return function(t,n){if(t!==N().DISPLAY||this.change.lock())return;e.assign(this.transformNode.getMatrix()).multRight(n.getModelViewMatrix().get()).inverse();const i=this.jointNodes,s=i.length,o=this.jointBindingMatrices,r=this.jointMatricesArray,a=Math.ceil(Math.sqrt(8*s));for(let t=0;t<s;++t){const n=i[t],s=o[t],a=n.getModelViewMatrix().multRight(e).multLeft(s),d=a.submatrix.transpose().inverse();r.set(a,32*t+0),r.set(d,32*t+16)}const d=this.getBrowser().getContext();d.bindTexture(d.TEXTURE_2D,this.jointMatricesTexture),d.texImage2D(d.TEXTURE_2D,0,d.RGBA32F,a,a,0,d.RGBA,d.FLOAT,r)}})(),setShaderUniforms(e,t){const n=this.getBrowser().getTexture2DUnit(),i=this.getBrowser().getTexture2DUnit(),s=this.getBrowser().getTexture2DUnit();e.activeTexture(e.TEXTURE0+n),e.bindTexture(e.TEXTURE_2D,this.jointsTexture),e.uniform1i(t.x3d_JointsTexture,n),e.activeTexture(e.TEXTURE0+i),e.bindTexture(e.TEXTURE_2D,this.displacementsTexture),e.uniform1i(t.x3d_DisplacementsTexture,i),e.activeTexture(e.TEXTURE0+s),e.bindTexture(e.TEXTURE_2D,this.jointMatricesTexture),e.uniform1i(t.x3d_JointMatricesTexture,s)},dispose(){S().prototype.dispose.call(this),I().prototype.dispose.call(this)}}),Object.defineProperties(A,{typeName:{value:"HAnimHumanoid",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"version",new(s().SFString)("2.0")),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"info",new(s().MFString)),new(r())(p().inputOutput,"skeletalConfiguration",new(s().SFString)("BASIC")),new(r())(p().inputOutput,"loa",new(s().SFInt32)(-1)),new(r())(p().inputOutput,"translation",new(s().SFVec3f)),new(r())(p().inputOutput,"rotation",new(s().SFRotation)),new(r())(p().inputOutput,"scale",new(s().SFVec3f)(1,1,1)),new(r())(p().inputOutput,"scaleOrientation",new(s().SFRotation)),new(r())(p().inputOutput,"center",new(s().SFVec3f)),new(r())(p().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(p().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(p().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(p().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(p().inputOutput,"skeleton",new(s().MFNode)),new(r())(p().inputOutput,"viewpoints",new(s().MFNode)),new(r())(p().inputOutput,"sites",new(s().MFNode)),new(r())(p().inputOutput,"segments",new(s().MFNode)),new(r())(p().inputOutput,"motionsEnabled",new(s().MFBool)),new(r())(p().inputOutput,"motions",new(s().MFNode)),new(r())(p().inputOutput,"jointBindingPositions",new(s().MFVec3f)),new(r())(p().inputOutput,"jointBindingRotations",new(s().MFRotation)),new(r())(p().inputOutput,"jointBindingScales",new(s().MFVec3f)),new(r())(p().inputOutput,"joints",new(s().MFNode)),new(r())(p().inputOutput,"skinBindingNormals",new(s().SFNode)),new(r())(p().inputOutput,"skinBindingCoords",new(s().SFNode)),new(r())(p().inputOutput,"skinNormal",new(s().SFNode)),new(r())(p().inputOutput,"skinCoord",new(s().SFNode)),new(r())(p().inputOutput,"skin",new(s().MFNode))]),enumerable:!0}});class X{#e=!0;enable(){this.#e=!1}lock(){const e=this.#e;return this.#e=!0,e}}const k=A;_().add("HAnimHumanoid","x_ite/Components/HAnim/HAnimHumanoid",k);const R=k,V=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Grouping/X3DTransformNode");var B=e.n(V);const H=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Numbers/Vector3");var P=e.n(H);function z(e){B().call(this,e),this.addType(p().HAnimJoint),this.addChildObjects(p().outputOnly,"displacements",new(s().SFTime),p().outputOnly,"displacementWeights",new(s().SFTime)),this.setAllowedTypes(p().HAnimJoint,p().HAnimSegment,p().HAnimSite),this.displacerNodes=[],this.modelViewMatrix=new(M())}Object.assign(Object.setPrototypeOf(z.prototype,B().prototype),{initialize(){B().prototype.initialize.call(this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},getModelViewMatrix(){return this.modelViewMatrix},getDisplacers(){return this.displacerNodes},set_displacers__(){const e=this.displacerNodes;for(const t of e)t._coordIndex.removeInterest("addEvent",this._displacements),t._displacements.removeInterest("addEvent",this._displacements),t._coordIndex.removeInterest("addEvent",this._displacementWeights),t._weight.removeInterest("addEvent",this._displacementWeights);e.length=0;for(const t of this._displacers){const n=E()(p().HAnimDisplacer,t);n&&e.push(n)}for(const t of e)t._coordIndex.addInterest("addEvent",this._displacements),t._displacements.addInterest("addEvent",this._displacements),t._coordIndex.addInterest("addEvent",this._displacementWeights),t._weight.addInterest("addEvent",this._displacementWeights)},traverse(e,t){const n=t.getModelViewMatrix();n.push(),n.multLeft(this.getMatrix()),e===N().DISPLAY&&this.modelViewMatrix.assign(n.get()),B().prototype.groupTraverse.call(this,e,t),n.pop()},groupTraverse(e,t){e===N().DISPLAY&&this.modelViewMatrix.assign(t.getModelViewMatrix().get()),B().prototype.groupTraverse.call(this,e,t)}}),Object.defineProperties(z,{typeName:{value:"HAnimJoint",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"translation",new(s().SFVec3f)),new(r())(p().inputOutput,"rotation",new(s().SFRotation)),new(r())(p().inputOutput,"scale",new(s().SFVec3f)(1,1,1)),new(r())(p().inputOutput,"scaleOrientation",new(s().SFRotation)),new(r())(p().inputOutput,"center",new(s().SFVec3f)),new(r())(p().inputOutput,"llimit",new(s().MFFloat)(0,0,0)),new(r())(p().inputOutput,"ulimit",new(s().MFFloat)(0,0,0)),new(r())(p().inputOutput,"limitOrientation",new(s().SFRotation)),new(r())(p().inputOutput,"stiffness",new(s().MFFloat)(0,0,0)),new(r())(p().inputOutput,"skinCoordIndex",new(s().MFInt32)),new(r())(p().inputOutput,"skinCoordWeight",new(s().MFFloat)),new(r())(p().inputOutput,"displacers",new(s().MFNode)),new(r())(p().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(p().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(p().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(p().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(p().inputOnly,"addChildren",new(s().MFNode)),new(r())(p().inputOnly,"removeChildren",new(s().MFNode)),new(r())(p().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const J=z;_().add("HAnimJoint","x_ite/Components/HAnim/HAnimJoint",J);const U=J,W=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Time/TimeSensor");var q=e.n(W);const G=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Interpolation/PositionInterpolator");var L=e.n(G);const Y=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Interpolation/OrientationInterpolator");var Z=e.n(Y);const $=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Numbers/Rotation4");var K=e.n($);function Q(e){I().call(this,e),this.addType(p().HAnimMotion),this.timeSensor=new(q())(this.getExecutionContext()),this.interpolators=[]}Object.assign(Object.setPrototypeOf(Q.prototype,I().prototype),{initialize(){I().prototype.initialize.call(this),this._loop.addFieldInterest(this.timeSensor._loop),this.timeSensor._cycleTime.addFieldInterest(this._cycleTime),this.timeSensor._elapsedTime.addFieldInterest(this._elapsedTime),this.timeSensor._enabled=!1,this.timeSensor._loop=this._loop,this.timeSensor._stopTime=1,this.timeSensor.setup(),this._enabled.addInterest("set_enabled__",this),this._joints.addInterest("set_joints__",this),this._channels.addInterest("set_interpolators__",this),this._values.addInterest("set_interpolators__",this),this._next.addInterest("set_next_or_previous__",this,1),this._previous.addInterest("set_next_or_previous__",this,-1),this._frameIndex.addInterest("set_frameIndex__",this),this._frameDuration.addInterest("set_frameDuration__",this),this._frameIncrement.addInterest("set_frameIncrement__",this),this._startFrame.addInterest("set_start_or_endFrame__",this),this._endFrame.addInterest("set_start_or_endFrame__",this),this.set_enabled__(),this.set_joints__(),this.set_frameIncrement__(),this.set_interpolators__()},connectJoints(e){const t=this._channelsEnabled,n=this.joints,i=this.getJointsIndex(e);for(const[e,{positionInterpolator:s,orientationInterpolator:o,scaleInterpolator:r}]of this.interpolators.entries()){if(e<t.length&&!t[e])continue;const a=i.get(n[e]);a&&(s?._value_changed.addFieldInterest(a._translation),o?._value_changed.addFieldInterest(a._rotation),r?._value_changed.addFieldInterest(a._scale))}},disconnectJoints(e){const t=this.joints,n=this.getJointsIndex(e);for(const[e,{positionInterpolator:i,orientationInterpolator:s,scaleInterpolator:o}]of this.interpolators.entries()){const r=n.get(t[e]);r&&(i?._value_changed.removeFieldInterest(r._translation),s?._value_changed.removeFieldInterest(r._rotation),o?._value_changed.removeFieldInterest(r._scale))}},getJointsIndex(e){const t=new Map(e.map((e=>[e._name.getValue().trim(),e])));return t.delete("IGNORED"),t.set("HumanoidRoot",t.get("humanoid_root")),t},set_enabled__(){this._enabled.getValue()?this.timeSensor._startTime=Date.now()/1e3:this.timeSensor._stopTime=Date.now()/1e3},set_joints__(){this.joints=this._joints.getValue().replace(/^[\s,]+|[\s,]+$/gs,"").split(/[\s,]+/s);for(const{positionInterpolator:e,orientationInterpolator:t,scaleInterpolator:n}of this.interpolators)e?._value_changed.getFieldInterests().forEach((t=>e._value_changed.removeFieldInterest(t))),t?._value_changed.getFieldInterests().forEach((e=>t._value_changed.removeFieldInterest(e))),n?._value_changed.getFieldInterests().forEach((e=>n._value_changed.removeFieldInterest(e)))},set_interpolators__(){const e=this.timeSensor;e._fraction_changed.getFieldInterests().forEach((t=>e._fraction_changed.removeFieldInterest(t)));const t=this._channels.getValue().replace(/^[\s,\d]+|[\s,\d]+$/gs,"").split(/[\s,]+\d+[\s,]+/s).map((e=>e.split(/[\s,]+/s))),n=this._values,i=t.reduce(((e,t)=>e+t.length),0),s=Math.floor(i?n.length/i:0),o=new Map,r=Array.from({length:t.length},(()=>({})));this.interpolators=r;for(let i=0,a=0;i<s;++i)for(const[d,l]of t.entries()){o.clear();for(const e of l)o.set(e,n[a++]);if(o.has("Xposition")||o.has("Yposition")||o.has("Zposition")){const t=r[d].positionInterpolator??this.createPositionInterpolator(r,d),n=i/(s-1),a=new(P())(o.get("Xposition")??0,o.get("Yposition")??0,o.get("Zposition")??0);t._key.push(n),t._keyValue.push(a),e._fraction_changed.addFieldInterest(t._set_fraction)}if(o.has("Xrotation")||o.has("Yrotation")||o.has("Zrotation")){const t=r[d].orientationInterpolator??this.createOrientationInterpolator(r,d),n=i/(s-1),a=K().fromEuler(C().radians(o.get("Xrotation")??0),C().radians(o.get("Yrotation")??0),C().radians(o.get("Zrotation")??0));t._key.push(n),t._keyValue.push(a),e._fraction_changed.addFieldInterest(t._set_fraction)}if(o.has("Xscale")||o.has("Yscale")||o.has("Zscale")){const t=r[d].scaleInterpolator??this.createScaleInterpolator(r,d),n=i/(s-1),a=new(P())(o.get("Xscale")??1,o.get("Yscale")??1,o.get("Zscale")??1);t._key.push(n),t._keyValue.push(a),e._fraction_changed.addFieldInterest(t._set_fraction)}}for(const{positionInterpolator:e,orientationInterpolator:t,scaleInterpolator:n}of r)e?.setup(),t?.setup(),n?.setup();this._frameIndex=0,this._startFrame=0,this._endFrame=s-1,this._frameCount=s,this.set_frameDuration__()},set_next_or_previous__(e,t){if(!t.getValue())return;const n=this.getFraction(),i=this._frameCount.getValue(),s=this._frameIncrement.getValue(),o=(i>1?Math.floor(n*(i-1)):0)+s*e;if(o>this.endFrame){if(!this._loop.getValue())return;this._frameIndex=this.startFrame}else if(o<this.startFrame){if(!this._loop.getValue())return;this._frameIndex=this.endFrame}else this._frameIndex=o},set_frameIndex__(){const e=this._frameCount.getValue(),t=C().clamp(this._frameIndex.getValue(),0,e),n=e>1?t/(e-1):0;if(this.timeSensor._range[0]=n,!this.timeSensor._isActive.getValue())for(const e of this.timeSensor._fraction_changed.getFieldInterests())e.setValue(n)},set_frameDuration__(){const e=this._frameCount.getValue(),t=Math.max(this._frameDuration.getValue(),0);this.timeSensor._cycleInterval=e>1?(e-1)*t:0},set_frameIncrement__(){this.timeSensor._enabled=this._frameIncrement.getValue()},set_start_or_endFrame__(){const e=this._frameCount.getValue(),t=C().clamp(this._startFrame.getValue(),0,e),n=C().clamp(this._endFrame.getValue(),0,e);this.startFrame=Math.min(t,n),this.endFrame=Math.max(t,n),this.timeSensor._range[1]=e>1?this.startFrame/(e-1):0,this.timeSensor._range[2]=e>1?this.endFrame/(e-1):0},createPositionInterpolator(e,t){return e[t].positionInterpolator=new(L())(this.getExecutionContext())},createOrientationInterpolator(e,t){return e[t].orientationInterpolator=new(Z())(this.getExecutionContext())},createScaleInterpolator(e,t){return e[t].scaleInterpolator=new(L())(this.getExecutionContext())},getFraction(){for(const e of this.timeSensor._fraction_changed.getFieldInterests())return e.getValue();return 0}}),Object.defineProperties(Q,{typeName:{value:"HAnimMotion",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:2}),enumerable:!0},containerField:{value:"motions",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(p().inputOutput,"loa",new(s().SFInt32)(-1)),new(r())(p().inputOutput,"joints",new(s().SFString)),new(r())(p().inputOutput,"channelsEnabled",new(s().MFBool)),new(r())(p().inputOutput,"channels",new(s().SFString)),new(r())(p().inputOutput,"values",new(s().MFFloat)),new(r())(p().inputOutput,"loop",new(s().SFBool)),new(r())(p().inputOnly,"next",new(s().SFBool)),new(r())(p().inputOnly,"previous",new(s().SFBool)),new(r())(p().inputOutput,"frameIndex",new(s().SFInt32)),new(r())(p().inputOutput,"frameDuration",new(s().SFTime)(.1)),new(r())(p().inputOutput,"frameIncrement",new(s().SFInt32)(1)),new(r())(p().inputOutput,"startFrame",new(s().SFInt32)),new(r())(p().inputOutput,"endFrame",new(s().SFInt32)),new(r())(p().outputOnly,"cycleTime",new(s().SFTime)),new(r())(p().outputOnly,"elapsedTime",new(s().SFTime)),new(r())(p().outputOnly,"frameCount",new(s().SFInt32))]),enumerable:!0}});const ee=Q;_().add("HAnimMotion","x_ite/Components/HAnim/HAnimMotion",ee);const te=ee,ne=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Grouping/X3DGroupingNode");var ie=e.n(ne);function se(e){ie().call(this,e),this.addType(p().HAnimSegment),this._mass.setUnit("mass")}Object.setPrototypeOf(se.prototype,ie().prototype),Object.defineProperties(se,{typeName:{value:"HAnimSegment",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"mass",new(s().SFFloat)),new(r())(p().inputOutput,"centerOfMass",new(s().SFVec3f)),new(r())(p().inputOutput,"momentsOfInertia",new(s().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(p().inputOutput,"displacers",new(s().MFNode)),new(r())(p().inputOutput,"coord",new(s().SFNode)),new(r())(p().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(p().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(p().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(p().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(p().inputOnly,"addChildren",new(s().MFNode)),new(r())(p().inputOnly,"removeChildren",new(s().MFNode)),new(r())(p().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const oe=se;_().add("HAnimSegment","x_ite/Components/HAnim/HAnimSegment",oe);const re=oe;function ae(e){B().call(this,e),this.addType(p().HAnimSite)}Object.setPrototypeOf(ae.prototype,B().prototype),Object.defineProperties(ae,{typeName:{value:"HAnimSite",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"translation",new(s().SFVec3f)),new(r())(p().inputOutput,"rotation",new(s().SFRotation)),new(r())(p().inputOutput,"scale",new(s().SFVec3f)(1,1,1)),new(r())(p().inputOutput,"scaleOrientation",new(s().SFRotation)),new(r())(p().inputOutput,"center",new(s().SFVec3f)),new(r())(p().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(p().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(p().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(p().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(p().inputOnly,"addChildren",new(s().MFNode)),new(r())(p().inputOnly,"removeChildren",new(s().MFNode)),new(r())(p().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const de=ae;_().add("HAnimSite","x_ite/Components/HAnim/HAnimSite",de);const le=de;n().add({name:"HAnim",concreteNodes:[f,R,U,te,re,le],abstractNodes:[]});const ue=void 0;_().add("HAnim","assets/components/HAnim",ue)})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v10.0.
|
|
1
|
+
/* X_ITE v10.0.1 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,10 +39,10 @@ var __webpack_exports__ = {};
|
|
|
39
39
|
// UNUSED EXPORTS: default
|
|
40
40
|
|
|
41
41
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
42
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .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/Namespace\")"
|
|
45
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
45
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Namespace");
|
|
46
46
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
47
47
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js
|
|
48
48
|
/*******************************************************************************
|
|
@@ -145,19 +145,19 @@ const __default__ = X3DKeyDeviceSensorContext;
|
|
|
145
145
|
Namespace_default().add ("X3DKeyDeviceSensorContext", "x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext", __default__);
|
|
146
146
|
/* harmony default export */ const KeyDeviceSensor_X3DKeyDeviceSensorContext = (__default__);
|
|
147
147
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
148
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
148
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Fields");
|
|
149
149
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
150
150
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
151
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
151
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
152
152
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
153
153
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
154
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
154
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
155
155
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
156
156
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
|
|
157
|
-
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
157
|
+
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components/Core/X3DSensorNode");
|
|
158
158
|
var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
|
|
159
159
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
160
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
160
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Base/X3DConstants");
|
|
161
161
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
162
162
|
;// CONCATENATED MODULE: ./src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js
|
|
163
163
|
/*******************************************************************************
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v10.0.
|
|
1
|
+
/* X_ITE v10.0.1 */(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var a in s)e.o(s,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:s[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components");var s=e.n(t);const a=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Namespace");var i=e.n(a);const n=Symbol(),o=Symbol(),r=Symbol();function c(){this[n]=new Set}Object.assign(c.prototype,{initialize(){const e=this.getElement();e.on("keydown.X3DKeyDeviceSensorContext",this[o].bind(this)),e.on("keyup.X3DKeyDeviceSensorContext",this[r].bind(this))},addKeyDeviceSensorNode(e){this[n].add(e)},removeKeyDeviceSensorNode(e){this[n].delete(e)},getKeyDeviceSensorNodes(){return this[n]},[o](e){for(const t of this[n])t.keydown(e)},[r](e){for(const t of this[n])t.keyup(e)}});const l=c;i().add("X3DKeyDeviceSensorContext","x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext",l);const y=l,h=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Fields");var _=e.n(h);const b=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Base/X3DFieldDefinition");var d=e.n(b);const u=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Base/FieldDefinitionArray");var k=e.n(u);const p=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Core/X3DSensorNode");var K=e.n(p);const S=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Base/X3DConstants");var v=e.n(S);function w(e){K().call(this,e),this.addType(v().X3DKeyDeviceSensorNode)}Object.assign(Object.setPrototypeOf(w.prototype,K().prototype),{initialize(){K().prototype.initialize.call(this),this.getLive().addInterest("set_live__",this),this.set_live__()},set_live__(){this.getLive().getValue()?(this._enabled.addInterest("set_enabled__",this),this._enabled.getValue()&&this.enable()):(this._enabled.removeInterest("set_enabled__",this),this.disable())},set_enabled__(){this._enabled.getValue()?this.enable():this.disable()},enable(){this.getBrowser().addKeyDeviceSensorNode(this)},disable(){this.getBrowser().removeKeyDeviceSensorNode(this),this.release()},keydown(){},keyup(){},release(){}}),Object.defineProperties(w,{typeName:{value:"X3DKeyDeviceSensorNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"KeyDeviceSensor",level:1}),enumerable:!0}});const f=w;i().add("X3DKeyDeviceSensorNode","x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode",f);const m=f;function g(e){m.call(this,e),this.addType(v().KeySensor)}Object.assign(Object.setPrototypeOf(g.prototype,m.prototype),{keydown(e){switch(e.preventDefault(),this._isActive.getValue()||(this._isActive=!0),e.which){case 16:this._shiftKey=!0;break;case 17:this._controlKey=!0;break;case 18:this._altKey=!0;break;case 112:this._actionKeyPress=1;break;case 113:this._actionKeyPress=2;break;case 114:this._actionKeyPress=3;break;case 115:this._actionKeyPress=4;break;case 116:this._actionKeyPress=5;break;case 117:this._actionKeyPress=6;break;case 118:this._actionKeyPress=7;break;case 119:this._actionKeyPress=8;break;case 120:this._actionKeyPress=9;break;case 121:this._actionKeyPress=10;break;case 122:this._actionKeyPress=11;break;case 123:this._actionKeyPress=12;break;case 36:this._actionKeyPress=13;break;case 35:this._actionKeyPress=14;break;case 33:this._actionKeyPress=15;break;case 34:this._actionKeyPress=16;break;case 38:this._actionKeyPress=17;break;case 40:this._actionKeyPress=18;break;case 37:this._actionKeyPress=19;break;case 39:this._actionKeyPress=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyPress=String.fromCharCode(8);break;case"Delete":this._keyPress=String.fromCharCode(127);break;case"Enter":this._keyPress="\n";break;case"Escape":this._keyPress=String.fromCharCode(27);break;case"Tab":this._keyPress="\t";break;default:1===e.key.length&&(this._keyPress=e.key)}}},keyup(e){switch(e.preventDefault(),e.which){case 16:this._shiftKey=!1;break;case 17:this._controlKey=!1;break;case 18:this._altKey=!1;break;case 112:this._actionKeyRelease=1;break;case 113:this._actionKeyRelease=2;break;case 114:this._actionKeyRelease=3;break;case 115:this._actionKeyRelease=4;break;case 116:this._actionKeyRelease=5;break;case 117:this._actionKeyRelease=6;break;case 118:this._actionKeyRelease=7;break;case 119:this._actionKeyRelease=8;break;case 120:this._actionKeyRelease=9;break;case 121:this._actionKeyRelease=10;break;case 122:this._actionKeyRelease=11;break;case 123:this._actionKeyRelease=12;break;case 36:this._actionKeyRelease=13;break;case 35:this._actionKeyRelease=14;break;case 33:this._actionKeyRelease=15;break;case 34:this._actionKeyRelease=16;break;case 38:this._actionKeyRelease=17;break;case 40:this._actionKeyRelease=18;break;case 37:this._actionKeyRelease=19;break;case 39:this._actionKeyRelease=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyRelease=String.fromCharCode(8);break;case"Delete":this._keyRelease=String.fromCharCode(127);break;case"Enter":this._keyRelease="\n";break;case"Escape":this._keyRelease=String.fromCharCode(27);break;case"Tab":this._keyRelease="\t";break;default:1===e.key.length&&(this._keyRelease=e.key)}}this._isActive.getValue()&&(this._isActive=!1)},release(){this._shiftKey.getValue()&&(this._shiftKey=!1),this._controlKey.getValue()&&(this._controlKey=!1),this._altKey.getValue()&&(this._altKey=!1)}}),Object.defineProperties(g,{typeName:{value:"KeySensor",enumerable:!0},componentInfo:{value:Object.freeze({name:"KeyDeviceSensor",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(k())([new(d())(v().inputOutput,"metadata",new(_().SFNode)),new(d())(v().inputOutput,"description",new(_().SFString)),new(d())(v().inputOutput,"enabled",new(_().SFBool)(!0)),new(d())(v().outputOnly,"controlKey",new(_().SFBool)),new(d())(v().outputOnly,"shiftKey",new(_().SFBool)),new(d())(v().outputOnly,"altKey",new(_().SFBool)),new(d())(v().outputOnly,"actionKeyPress",new(_().SFInt32)),new(d())(v().outputOnly,"actionKeyRelease",new(_().SFInt32)),new(d())(v().outputOnly,"keyPress",new(_().SFString)),new(d())(v().outputOnly,"keyRelease",new(_().SFString)),new(d())(v().outputOnly,"isActive",new(_().SFBool))]),enumerable:!0}});const D=g;i().add("KeySensor","x_ite/Components/KeyDeviceSensor/KeySensor",D);const O=D;function P(e){m.call(this,e),this.addType(v().StringSensor)}Object.assign(Object.setPrototypeOf(P.prototype,m.prototype),{keydown(e){switch(e.preventDefault(),e.key){case"Backspace":this._isActive.getValue()&&this._deletionAllowed.getValue()&&this._enteredText.length&&(this._enteredText=this._enteredText.getValue().substring(0,this._enteredText.length-1));break;case"Enter":this._finalText=this._enteredText,this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Escape":this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Tab":break;default:(e.charCode||e.keyCode)&&1===e.key.length&&(this._isActive.getValue()||(this._isActive=!0,this._enteredText=""),this._enteredText=this._enteredText.getValue()+e.key)}}}),Object.defineProperties(P,{typeName:{value:"StringSensor",enumerable:!0},componentInfo:{value:Object.freeze({name:"KeyDeviceSensor",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(k())([new(d())(v().inputOutput,"metadata",new(_().SFNode)),new(d())(v().inputOutput,"description",new(_().SFString)),new(d())(v().inputOutput,"enabled",new(_().SFBool)(!0)),new(d())(v().inputOutput,"deletionAllowed",new(_().SFBool)(!0)),new(d())(v().outputOnly,"enteredText",new(_().SFString)),new(d())(v().outputOnly,"finalText",new(_().SFString)),new(d())(v().outputOnly,"isActive",new(_().SFBool))]),enumerable:!0}});const C=P;i().add("StringSensor","x_ite/Components/KeyDeviceSensor/StringSensor",C);const R=C;s().add({name:"KeyDeviceSensor",concreteNodes:[O,R],abstractNodes:[m],browserContext:y});const x=void 0;i().add("KeyDeviceSensor","assets/components/KeyDeviceSensor",x)})();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* X_ITE v10.0.
|
|
1
|
+
/* X_ITE v10.0.1 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
5
|
/***/ 823:
|
|
6
6
|
/***/ ((module) => {
|
|
7
7
|
|
|
8
|
-
module.exports = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
8
|
+
module.exports = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("lib/jquery");
|
|
9
9
|
|
|
10
10
|
/***/ })
|
|
11
11
|
|
|
@@ -71,22 +71,22 @@ var __webpack_exports__ = {};
|
|
|
71
71
|
// UNUSED EXPORTS: default
|
|
72
72
|
|
|
73
73
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
74
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
74
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components");
|
|
75
75
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
76
76
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/TextureProperties\")"
|
|
77
|
-
const TextureProperties_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
77
|
+
const TextureProperties_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components/Texturing/TextureProperties");
|
|
78
78
|
var TextureProperties_default = /*#__PURE__*/__webpack_require__.n(TextureProperties_namespaceObject);
|
|
79
79
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
80
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
80
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("standard/Math/Numbers/Vector3");
|
|
81
81
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
82
82
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
83
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
83
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("standard/Math/Numbers/Matrix4");
|
|
84
84
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
85
85
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/ViewVolume\")"
|
|
86
|
-
const ViewVolume_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
86
|
+
const ViewVolume_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("standard/Math/Geometry/ViewVolume");
|
|
87
87
|
var ViewVolume_default = /*#__PURE__*/__webpack_require__.n(ViewVolume_namespaceObject);
|
|
88
88
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
89
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
89
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Namespace");
|
|
90
90
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
91
91
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Layout/X3DLayoutContext.js
|
|
92
92
|
/*******************************************************************************
|
|
@@ -227,19 +227,19 @@ const __default__ = X3DLayoutContext;
|
|
|
227
227
|
Namespace_default().add ("X3DLayoutContext", "x_ite/Browser/Layout/X3DLayoutContext", __default__);
|
|
228
228
|
/* harmony default export */ const Layout_X3DLayoutContext = (__default__);
|
|
229
229
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
230
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
230
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Fields");
|
|
231
231
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
232
232
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
233
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
233
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
234
234
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
235
235
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
236
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
236
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
237
237
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
238
238
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
|
239
|
-
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
239
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components/Core/X3DChildNode");
|
|
240
240
|
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
|
241
241
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
242
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
242
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Base/X3DConstants");
|
|
243
243
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
244
244
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/X3DLayoutNode.js
|
|
245
245
|
/*******************************************************************************
|
|
@@ -321,10 +321,10 @@ const X3DLayoutNode_default_ = X3DLayoutNode;
|
|
|
321
321
|
Namespace_default().add ("X3DLayoutNode", "x_ite/Components/Layout/X3DLayoutNode", X3DLayoutNode_default_);
|
|
322
322
|
/* harmony default export */ const Layout_X3DLayoutNode = (X3DLayoutNode_default_);
|
|
323
323
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector2\")"
|
|
324
|
-
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
324
|
+
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("standard/Math/Numbers/Vector2");
|
|
325
325
|
var Vector2_default = /*#__PURE__*/__webpack_require__.n(Vector2_namespaceObject);
|
|
326
326
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
|
|
327
|
-
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
327
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("standard/Math/Numbers/Rotation4");
|
|
328
328
|
var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
|
|
329
329
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/Layout.js
|
|
330
330
|
/*******************************************************************************
|
|
@@ -973,13 +973,13 @@ const Layout_default_ = Layout;
|
|
|
973
973
|
Namespace_default().add ("Layout", "x_ite/Components/Layout/Layout", Layout_default_);
|
|
974
974
|
/* harmony default export */ const Layout_Layout = (Layout_default_);
|
|
975
975
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
|
|
976
|
-
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
976
|
+
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
|
|
977
977
|
var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
|
|
978
978
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
979
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
979
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Base/X3DCast");
|
|
980
980
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
981
981
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
|
|
982
|
-
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
982
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Rendering/TraverseType");
|
|
983
983
|
var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
|
|
984
984
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/LayoutGroup.js
|
|
985
985
|
/*******************************************************************************
|
|
@@ -1174,10 +1174,10 @@ const LayoutGroup_default_ = LayoutGroup;
|
|
|
1174
1174
|
Namespace_default().add ("LayoutGroup", "x_ite/Components/Layout/LayoutGroup", LayoutGroup_default_);
|
|
1175
1175
|
/* harmony default export */ const Layout_LayoutGroup = (LayoutGroup_default_);
|
|
1176
1176
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Layering/X3DLayerNode\")"
|
|
1177
|
-
const X3DLayerNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
1177
|
+
const X3DLayerNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components/Layering/X3DLayerNode");
|
|
1178
1178
|
var X3DLayerNode_default = /*#__PURE__*/__webpack_require__.n(X3DLayerNode_namespaceObject);
|
|
1179
1179
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Navigation/OrthoViewpoint\")"
|
|
1180
|
-
const OrthoViewpoint_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
1180
|
+
const OrthoViewpoint_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components/Navigation/OrthoViewpoint");
|
|
1181
1181
|
var OrthoViewpoint_default = /*#__PURE__*/__webpack_require__.n(OrthoViewpoint_namespaceObject);
|
|
1182
1182
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/LayoutLayer.js
|
|
1183
1183
|
/*******************************************************************************
|
|
@@ -1313,22 +1313,22 @@ const LayoutLayer_default_ = LayoutLayer;
|
|
|
1313
1313
|
Namespace_default().add ("LayoutLayer", "x_ite/Components/Layout/LayoutLayer", LayoutLayer_default_);
|
|
1314
1314
|
/* harmony default export */ const Layout_LayoutLayer = (LayoutLayer_default_);
|
|
1315
1315
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Text/X3DFontStyleNode\")"
|
|
1316
|
-
const X3DFontStyleNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
1316
|
+
const X3DFontStyleNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components/Text/X3DFontStyleNode");
|
|
1317
1317
|
var X3DFontStyleNode_default = /*#__PURE__*/__webpack_require__.n(X3DFontStyleNode_namespaceObject);
|
|
1318
1318
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Text/X3DTextGeometry\")"
|
|
1319
|
-
const X3DTextGeometry_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
1319
|
+
const X3DTextGeometry_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Browser/Text/X3DTextGeometry");
|
|
1320
1320
|
var X3DTextGeometry_default = /*#__PURE__*/__webpack_require__.n(X3DTextGeometry_namespaceObject);
|
|
1321
1321
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Text/TextAlignment\")"
|
|
1322
|
-
const TextAlignment_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
1322
|
+
const TextAlignment_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Browser/Text/TextAlignment");
|
|
1323
1323
|
var TextAlignment_default = /*#__PURE__*/__webpack_require__.n(TextAlignment_namespaceObject);
|
|
1324
1324
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/PixelTexture\")"
|
|
1325
|
-
const PixelTexture_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
1325
|
+
const PixelTexture_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components/Texturing/PixelTexture");
|
|
1326
1326
|
var PixelTexture_default = /*#__PURE__*/__webpack_require__.n(PixelTexture_namespaceObject);
|
|
1327
1327
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box3\")"
|
|
1328
|
-
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
1328
|
+
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("standard/Math/Geometry/Box3");
|
|
1329
1329
|
var Box3_default = /*#__PURE__*/__webpack_require__.n(Box3_namespaceObject);
|
|
1330
1330
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithm\")"
|
|
1331
|
-
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
1331
|
+
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("standard/Math/Algorithm");
|
|
1332
1332
|
var Algorithm_default = /*#__PURE__*/__webpack_require__.n(Algorithm_namespaceObject);
|
|
1333
1333
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Layout/ScreenText.js
|
|
1334
1334
|
/* provided dependency */ var $ = __webpack_require__(823);
|
|
@@ -1870,7 +1870,7 @@ const ScreenFontStyle_default_ = ScreenFontStyle;
|
|
|
1870
1870
|
Namespace_default().add ("ScreenFontStyle", "x_ite/Components/Layout/ScreenFontStyle", ScreenFontStyle_default_);
|
|
1871
1871
|
/* harmony default export */ const Layout_ScreenFontStyle = (ScreenFontStyle_default_);
|
|
1872
1872
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/X3DProtoDeclaration\")"
|
|
1873
|
-
const X3DProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.
|
|
1873
|
+
const X3DProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Prototype/X3DProtoDeclaration");
|
|
1874
1874
|
var X3DProtoDeclaration_default = /*#__PURE__*/__webpack_require__.n(X3DProtoDeclaration_namespaceObject);
|
|
1875
1875
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/ScreenGroup.js
|
|
1876
1876
|
/*******************************************************************************
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v10.0.0 */(()=>{"use strict";var e={823:e=>{e.exports=window[Symbol.for("X_ITE.X3D-10.0.0")].require("lib/jquery")}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const n=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components");var s=i.n(n);const o=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Texturing/TextureProperties");var r=i.n(o);const a=window[Symbol.for("X_ITE.X3D-10.0.0")].require("standard/Math/Numbers/Vector3");var l=i.n(a);const h=window[Symbol.for("X_ITE.X3D-10.0.0")].require("standard/Math/Numbers/Matrix4");var u=i.n(h);const c=window[Symbol.for("X_ITE.X3D-10.0.0")].require("standard/Math/Geometry/ViewVolume");var d=i.n(c);const p=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Namespace");var y=i.n(p);const f=Symbol();function w(){}Object.assign(w.prototype,{getScreenTextureProperties(){return this[f]=new(r())(this.getPrivateScene()),this[f]._boundaryModeS="CLAMP_TO_EDGE",this[f]._boundaryModeT="CLAMP_TO_EDGE",this[f]._boundaryModeR="CLAMP_TO_EDGE",this[f]._minificationFilter="NEAREST_PIXEL",this[f]._magnificationFilter="NEAREST_PIXEL",this[f]._generateMipMaps=!1,this[f]._textureCompression="DEFAULT",this[f].setup(),this.getScreenTextureProperties=function(){return this[f]},Object.defineProperty(this,"getScreenTextureProperties",{enumerable:!1}),this[f]},getScreenScaleMatrix:(()=>{const e=new(l()),t=new(l()),i=new(u());return function(n,s,o,r){const a=n.getModelViewMatrix().get(),h=n.getProjectionMatrix().get(),u=n.getViewVolume().getViewport();n.getViewpoint().getScreenScale(a.origin,u,e);const c=a.xAxis.normalize().multiply(e.x*o),p=a.yAxis.normalize().multiply(e.y*o),y=a.zAxis.normalize().multiply(e.x*o);i.set(c.x,c.y,c.z,0,p.x,p.y,p.z,0,y.x,y.y,y.z,0,a[12],a[13],a[14],1),r&&(d().projectPoint(l().Zero,i,h,u,t),t.x=Math.round(t.x),t.y=Math.round(t.y),d().unProjectPoint(t.x,t.y,t.z,i,h,u,t),t.z=0,i.translate(t)),s.assign(a).inverse().multLeft(i)}})()});const g=w;y().add("X3DLayoutContext","x_ite/Browser/Layout/X3DLayoutContext",g);const x=g,_=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Fields");var m=i.n(_);const b=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Base/X3DFieldDefinition");var S=i.n(b);const X=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Base/FieldDefinitionArray");var M=i.n(X);const O=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Core/X3DChildNode");var v=i.n(O);const z=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Base/X3DConstants");var T=i.n(z);function N(e){v().call(this,e),this.addType(T().X3DLayoutNode)}Object.setPrototypeOf(N.prototype,v().prototype),Object.defineProperties(N,{typeName:{value:"X3DLayoutNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:1}),enumerable:!0}});const F=N;y().add("X3DLayoutNode","x_ite/Components/Layout/X3DLayoutNode",F);const I=F,L=window[Symbol.for("X_ITE.X3D-10.0.0")].require("standard/Math/Numbers/Vector2");var E=i.n(L);const D=window[Symbol.for("X_ITE.X3D-10.0.0")].require("standard/Math/Numbers/Rotation4");var U=i.n(D);let C=0;const P=C++,B=C++,Y=C++,R=C++,j=C++,V=C++,A=C++,q=C++,G=C++,k=C++;function W(e){I.call(this,e),this.addType(T().Layout),this.alignX=B,this.alignY=B,this.offsetUnitX=V,this.offsetUnitY=V,this.offsetX=0,this.offsetY=0,this.sizeUnitX=V,this.sizeUnitY=V,this.sizeX=1,this.sizeY=1,this.scaleModeX=G,this.scaleModeY=G,this.parent=null,this.rectangleCenter=new(E()),this.rectangleSize=new(E()),this.matrix=new(u())}Object.assign(Object.setPrototypeOf(W.prototype,I.prototype),{viewportPixel:new(E()),pixelSize:new(E()),translation:new(l()),offset:new(l()),scale:new(l())(1,1,1),currentTranslation:new(l()),currentRotation:new(U()),currentScale:new(l()),modelViewMatrix:new(u()),initialize(){I.prototype.initialize.call(this),this._align.addInterest("set_align__",this),this._offsetUnits.addInterest("set_offsetUnits__",this),this._offset.addInterest("set_offset__",this),this._sizeUnits.addInterest("set_sizeUnits__",this),this._size.addInterest("set_size__",this),this._scaleMode.addInterest("set_scaleMode__",this),this.set_align__(),this.set_offsetUnits__(),this.set_offset__(),this.set_sizeUnits__(),this.set_size__(),this.set_scaleMode__()},set_align__(){this._align.length>0?"LEFT"===this._align[0]?this.alignX=P:"RIGHT"===this._align[0]?this.alignX=Y:this.alignX=B:this.alignX=B,this._align.length>1?"BOTTOM"===this._align[1]?this.alignY=R:"TOP"===this._align[1]?this.alignY=j:this.alignY=B:this.alignY=B},set_offsetUnits__(){this._offsetUnits.length>0?("FRACTION"===this._offsetUnits[0]?this.offsetUnitX=A:"PIXEL"===this._offsetUnits[0]?this.offsetUnitX=q:this.offsetUnitX=V,this._offsetUnits.length>1?"FRACTION"===this._offsetUnits[1]?this.offsetUnitY=A:"PIXEL"===this._offsetUnits[1]?this.offsetUnitY=q:this.offsetUnitY=V:this.offsetUnitY=this.offsetUnitX):(this.offsetUnitX=V,this.offsetUnitY=V)},set_offset__(){this._offset.length>0?(this.offsetX=this._offset[0],this._offset.length>1?this.offsetY=this._offset[1]:this.offsetY=offsetX):(this.offsetX=0,this.offsetY=0)},set_sizeUnits__(){this._sizeUnits.length>0?("FRACTION"===this._sizeUnits[0]?this.sizeUnitX=A:"PIXEL"===this._sizeUnits[0]?this.sizeUnitX=q:this.sizeUnitX=V,this._sizeUnits.length>1?"FRACTION"===this._sizeUnits[1]?this.sizeUnitY=A:"PIXEL"===this._sizeUnits[1]?this.sizeUnitY=q:this.sizeUnitY=V:this.sizeUnitY=this.sizeUnitX):(this.sizeUnitX=V,this.sizeUnitY=V)},set_size__(){this._size.length>0?(this.sizeX=this._size[0],this._size.length>1?this.sizeY=this._size[1]:this.sizeY=this.sizeX):(this.sizeX=0,this.sizeY=0)},set_scaleMode__(){this._scaleMode.length>0?("FRACTION"===this._scaleMode[0]?this.scaleModeX=A:"PIXEL"===this._scaleMode[0]?this.scaleModeX=q:"STRETCH"===this._scaleMode[0]?this.scaleModeX=k:this.scaleModeX=G,this._scaleMode.length>1?"FRACTION"===this._scaleMode[1]?this.scaleModeY=A:"PIXEL"===this._scaleMode[1]?this.scaleModeY=q:"STRETCH"===this._scaleMode[1]?this.scaleModeY=k:this.scaleModeY=G:this.scaleModeY=this.scaleModeX):(this.scaleModeX=G,this.scaleModeY=G)},getRectangleCenter(){return this.rectangleCenter},getRectangleSize(){return this.rectangleSize},getAlignX(){return this.alignX},getAlignY(){return this.alignY},getOffsetUnitX(){return this.offsetUnitX===V?this.parent?this.parent.getOffsetUnitX():A:this.offsetUnitX},getOffsetUnitY(){return this.offsetUnitY===V?this.parent?this.parent.getOffsetUnitY():A:this.offsetUnitY},getOffsetX(){return this.offsetX},getOffsetY(){return this.offsetY},getSizeUnitX(){return this.sizeUnitX===V?this.parent?this.parent.getSizeUnitX():A:this.sizeUnitX},getSizeUnitY(){return this.sizeUnitY===V?this.parent?this.parent.getSizeUnitY():A:this.sizeUnitY},getSizeX(){return this.sizeX},getSizeY(){return this.sizeY},getScaleModeX(){return this.parent?this.scaleModeX:this.scaleModeX===G?A:this.scaleModeX},getScaleModeY(){return this.parent?this.scaleModeY:this.scaleModeY===G?A:this.scaleModeY},transform(e,t){const i=this.parent=t.getParentLayout(),n=this.getBrowser().getRenderingProperty("ContentScale"),s=this.matrix,o=t.getViewpoint(),r=t.getNavigationInfo().getNearValue(),a=t.getViewVolume().getScissor(),l=o.getViewportSize(a,r),h=this.viewportPixel,u=this.pixelSize,c=i?i.getRectangleSize():l,d=this.rectangleSize,p=this.rectangleCenter;switch(h.set(a[2],a[3]).divide(n),u.assign(l).divVec(h),this.getSizeUnitX()){case A:d.x=this.sizeX*c.x;break;case q:d.x=this.sizeX*u.x}switch(this.getSizeUnitY()){case A:d.y=this.sizeY*c.y;break;case q:d.y=this.sizeY*u.y}const y=this.translation.set(0,0,0);switch(this.getAlignX()){case P:y.x=-(c.x-d.x)/2;break;case B:this.getSizeUnitX()===q&&1&h.x&&(y.x=-u.x/2);break;case Y:y.x=(c.x-d.x)/2}switch(this.getAlignY()){case R:y.y=-(c.y-d.y)/2;break;case B:this.getSizeUnitX()===q&&1&h.y&&(y.y=-u.y/2);break;case j:y.y=(c.y-d.y)/2}const f=this.offset.set(0,0,0);switch(this.getOffsetUnitX()){case A:f.x=this.offsetX*c.x;break;case q:f.x=this.offsetX*l.x/h.x}switch(this.getOffsetUnitY()){case A:f.y=this.offsetY*c.y;break;case q:f.y=this.offsetY*l.y/h.y}const w=this.scale.set(1,1,1),g=this.currentTranslation,x=this.currentRotation,_=this.currentScale;switch(t.getModelViewMatrix().get().get(g,x,_),this.getScaleModeX()){case G:w.x=_.x;break;case A:w.x=d.x;break;case k:break;case q:w.x=l.x/h.x}switch(this.getScaleModeY()){case G:w.y=_.y;break;case A:w.y=d.y;break;case k:break;case q:w.y=l.y/h.y}return this.getScaleModeX()===k?this.getScaleModeY()===k?d.x>d.y?(w.x=d.x,w.y=w.x):(w.y=d.y,w.x=w.y):w.x=w.y:this.getScaleModeY()===k&&(w.y=w.x),p.assign(y.add(f)),s.set(g,x),s.translate(y),s.scale(w),s}}),Object.defineProperties(W,{typeName:{value:"Layout",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:1}),enumerable:!0},containerField:{value:"layout",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(M())([new(S())(T().inputOutput,"metadata",new(m().SFNode)),new(S())(T().inputOutput,"align",new(m().MFString)("CENTER","CENTER")),new(S())(T().inputOutput,"offsetUnits",new(m().MFString)("WORLD","WORLD")),new(S())(T().inputOutput,"offset",new(m().MFFloat)(0,0)),new(S())(T().inputOutput,"sizeUnits",new(m().MFString)("WORLD","WORLD")),new(S())(T().inputOutput,"size",new(m().MFFloat)(1,1)),new(S())(T().inputOutput,"scaleMode",new(m().MFString)("NONE","NONE"))]),enumerable:!0}});const H=W;y().add("Layout","x_ite/Components/Layout/Layout",H);const K=H,Z=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Grouping/X3DGroupingNode");var Q=i.n(Z);const J=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Base/X3DCast");var $=i.n(J);const ee=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Rendering/TraverseType");var te=i.n(ee);function ie(e){Q().call(this,e),this.addType(T().LayoutGroup),this.viewportNode=null,this.layoutNode=null,this.matrix=new(u()),this.modelViewMatrix=new(u()),this.screenMatrix=new(u())}Object.assign(Object.setPrototypeOf(ie.prototype,Q().prototype),{initialize(){Q().prototype.initialize.call(this),this._viewport.addInterest("set_viewport__",this),this._layout.addInterest("set_layout__",this),this.set_viewport__(),this.set_layout__()},set_viewport__(){this.viewportNode=$()(T().X3DViewportNode,this._viewport)},set_layout__(){this.layoutNode=$()(T().X3DLayoutNode,this._layout)},getBBox(e,t){return Q().prototype.getBBox.call(this,e,t).multRight(this.getMatrix())},getMatrix(){return this.layoutNode?this.matrix.assign(this.modelViewMatrix).inverse().multLeft(this.screenMatrix):this.matrix.identity()},getLayout(){return this.layoutNode},traverse(e,t){if(e!==te().COLLISION){if(this.viewportNode&&this.viewportNode.push(),this.layoutNode){const i=t.getModelViewMatrix();this.modelViewMatrix.assign(i.get()),this.screenMatrix.assign(this.layoutNode.transform(e,t)),i.pushMatrix(this.screenMatrix),t.getLayouts().push(this.layoutNode),Q().prototype.traverse.call(this,e,t),t.getLayouts().pop(),i.pop()}else Q().prototype.traverse.call(this,e,t);this.viewportNode&&this.viewportNode.pop()}}}),Object.defineProperties(ie,{typeName:{value:"LayoutGroup",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(M())([new(S())(T().inputOutput,"metadata",new(m().SFNode)),new(S())(T().inputOutput,"layout",new(m().SFNode)),new(S())(T().inputOutput,"viewport",new(m().SFNode)),new(S())(T().inputOutput,"visible",new(m().SFBool)(!0)),new(S())(T().inputOutput,"bboxDisplay",new(m().SFBool)),new(S())(T().initializeOnly,"bboxSize",new(m().SFVec3f)(-1,-1,-1)),new(S())(T().initializeOnly,"bboxCenter",new(m().SFVec3f)),new(S())(T().inputOnly,"addChildren",new(m().MFNode)),new(S())(T().inputOnly,"removeChildren",new(m().MFNode)),new(S())(T().inputOutput,"children",new(m().MFNode))]),enumerable:!0}});const ne=ie;y().add("LayoutGroup","x_ite/Components/Layout/LayoutGroup",ne);const se=ne,oe=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Layering/X3DLayerNode");var re=i.n(oe);const ae=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Navigation/OrthoViewpoint");var le=i.n(ae);function he(e){re().call(this,e,new(le())(e),new se(e)),this.addType(T().LayoutLayer)}Object.assign(Object.setPrototypeOf(he.prototype,re().prototype),{initialize(){re().prototype.initialize.call(this);const e=this.getGroups()._children[0].getValue();this._layout.addFieldInterest(e._layout),this._addChildren.addFieldInterest(e._addChildren),this._removeChildren.addFieldInterest(e._removeChildren),this._children.addFieldInterest(e._children),e._layout=this._layout,e._children=this._children,e.setPrivate(!0),e.setup(),this.getGroups().setup()}}),Object.defineProperties(he,{typeName:{value:"LayoutLayer",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:1}),enumerable:!0},containerField:{value:"layers",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(M())([new(S())(T().inputOutput,"metadata",new(m().SFNode)),new(S())(T().inputOutput,"pickable",new(m().SFBool)(!0)),new(S())(T().inputOutput,"objectType",new(m().MFString)("ALL")),new(S())(T().inputOutput,"visible",new(m().SFBool)(!0)),new(S())(T().inputOutput,"layout",new(m().SFNode)),new(S())(T().inputOutput,"viewport",new(m().SFNode)),new(S())(T().inputOnly,"addChildren",new(m().MFNode)),new(S())(T().inputOnly,"removeChildren",new(m().MFNode)),new(S())(T().inputOutput,"children",new(m().MFNode))]),enumerable:!0}});const ue=he;y().add("LayoutLayer","x_ite/Components/Layout/LayoutLayer",ue);const ce=ue,de=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Text/X3DFontStyleNode");var pe=i.n(de);const ye=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Browser/Text/X3DTextGeometry");var fe=i.n(ye);const we=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Browser/Text/TextAlignment");var ge=i.n(we);const xe=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Components/Texturing/PixelTexture");var _e=i.n(xe);const me=window[Symbol.for("X_ITE.X3D-10.0.0")].require("standard/Math/Geometry/Box3");var be=i.n(me);const Se=window[Symbol.for("X_ITE.X3D-10.0.0")].require("standard/Math/Algorithm");var Xe=i.n(Se),Me=i(823);function Oe(e,t){fe().call(this,e,t),e.setTransparent(!0),this.textureNode=new(_e())(e.getExecutionContext()),this.canvas=Me("<canvas></canvas>"),this.context=this.canvas[0].getContext("2d",{willReadFrequently:!0}),this.matrix=new(u()),this.textureNode._textureProperties=t.getBrowser().getScreenTextureProperties(),this.textureNode.setup()}Object.assign(Object.setPrototypeOf(Oe.prototype,fe().prototype),{modelViewMatrix:new(u()),isTransparent:()=>!0,getMatrix(){return this.matrix},update:(()=>{const e=new(l()),t=new(l())(1,1,0);return function(){fe().prototype.update.call(this);const i=this.getFontStyle(),n=this.getText();switch(n._textBounds.x=Math.ceil(n._textBounds.x)+1,n._textBounds.y=Math.ceil(n._textBounds.y)+1,this.getBBox().getExtents(e,t),e.x-=1,e.y-=1,i.getMajorAlignment()){case ge().BEGIN:case ge().FIRST:e.x=Math.floor(e.x),t.x=e.x+n._textBounds.x;break;case ge().MIDDLE:e.x=Math.round(e.x),t.x=e.x+n._textBounds.x;break;case ge().END:t.x=Math.ceil(t.x),e.x=t.x-n._textBounds.x}switch(i.getMinorAlignment()){case ge().BEGIN:case ge().FIRST:t.y=Math.ceil(t.y),e.y=t.y-n._textBounds.y;break;case ge().MIDDLE:t.y=Math.round(t.y),e.y=t.y-n._textBounds.y;break;case ge().END:e.y=Math.floor(e.y),t.y=e.y+n._textBounds.y}n._origin.x=e.x,n._origin.y=t.y,this.getBBox().setExtents(e,t)}})(),build:(()=>{const e=new(l()),t=new(l())(1,1,0);return function(){const i=this.getFontStyle(),n=i.getFont();if(!n)return;const s=this.getText(),o=this.getGlyphs(),r=this.getMinorAlignment(),a=this.getTranslations(),l=this.getCharSpacings(),h=i.getScale(),u=h/n.unitsPerEm,c=s.getTexCoords(),d=s.getNormals(),p=s.getVertices(),y=this.canvas[0],f=this.context;s.getMultiTexCoords().push(c),this.getBBox().getExtents(e,t),d.push(0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1),p.push(e.x,e.y,0,1,t.x,e.y,0,1,t.x,t.y,0,1,e.x,e.y,0,1,t.x,t.y,0,1,e.x,t.y,0,1);const w=s._textBounds.x,g=s._textBounds.y;y.width=Xe().nextPowerOfTwo(w),y.height=Xe().nextPowerOfTwo(g);const x=w/y.width,_=1-g/y.height;if(c.push(0,_,0,1,x,_,0,1,x,1,0,1,0,_,0,1,x,1,0,1,0,1,0,1),f.fillStyle="rgba(255,255,255,0)",f.fillRect(0,0,y.width,y.height),f.fillStyle="rgba(255,255,255,1)",f.save(),f.translate(0,y.height),f.scale(1,-1),i._horizontal.getValue())for(let i=0,s=o.length;i<s;++i){const s=o[i],c=l[i],d=a[i];let p=0;for(let i=0,o=s.length;i<o;++i){const o=s[i],a=r.x+d.x+p+i*c-e.x,l=r.y+d.y-t.y;this.drawGlyph(f,n,o,a,l,h);let y=0;i+1<s.length&&(y=n.getKerningValue(o,s[i+1])),p+=(o.advanceWidth+y)*u}}else{const l=i._leftToRight.getValue(),u=i._topToBottom.getValue(),c=l?0:s._string.length-1,d=l?s._string.length:-1,p=l?1:-1;for(let i=c,s=0;i!==d;i+=p){const l=o[i],c=l.length,d=u?c:-1,p=u?1:-1;for(let i=u?0:c-1;i!==d;i+=p,++s){const o=a[s],u=r.x+o.x-e.x,c=r.y+o.y-t.y;this.drawGlyph(f,n,l[i],u,c,h)}}}f.restore();const m=f.getImageData(0,0,y.width,y.height);m?this.textureNode.setTextureData(y.width,y.height,!0,!0,new Uint8Array(m.data.buffer)):this.textureNode.clear()}})(),drawGlyph(e,t,i,n,s,o){const r=i.getPath(n,-s,o),a=r.commands;e.beginPath();for(let t=0,i=a.length;t<i;++t){const i=a[t];switch(i.type){case"M":e.moveTo(i.x,i.y);continue;case"Z":e.closePath();continue;case"L":e.lineTo(i.x,i.y);continue;case"Q":e.quadraticCurveTo(i.x1,i.y1,i.x,i.y);continue;case"C":e.bezierCurveTo(i.x1,i.y1,i.x2,i.y2,i.x,i.y);continue}}r.fill&&e.fill(),r.stroke&&(e.lineWidth=r.strokeWidth,e.stroke())},getGlyphExtents(e,t,i,n,s){const o=e.unitsPerEm;n.set((t.xMin||0)/o,(t.yMin||0)/o,0),s.set((t.xMax||0)/o,(t.yMax||0)/o,0)},traverse:(()=>{const e=new(be());return function(t,i){this.getBrowser().getScreenScaleMatrix(i,this.matrix,1,!0),e.assign(this.getBBox()).multRight(this.matrix),this.getText().setBBox(e)}})(),display(e,t){u().prototype.multLeft.call(t.modelViewMatrix,this.matrix),t.textureNode=this.textureNode},transformLine:(()=>{const e=new(u());return function(t){return t.multLineMatrix(e.assign(this.matrix).inverse())}})(),transformMatrix(e){return e.multLeft(this.matrix)}});const ve=Oe;y().add("ScreenText","x_ite/Browser/Layout/ScreenText",ve);const ze=ve;function Te(e){pe().call(this,e),this.addType(T().ScreenFontStyle)}Object.assign(Object.setPrototypeOf(Te.prototype,pe().prototype),{initialize(){pe().prototype.initialize.call(this),this.getBrowser().getRenderingProperties()._ContentScale.addInterest("addNodeEvent",this)},getTextGeometry(e){return new ze(e,this)},getScale(){return this._pointSize.getValue()*this.getBrowser().getPixelsPerPoint()}}),Object.defineProperties(Te,{typeName:{value:"ScreenFontStyle",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:2}),enumerable:!0},containerField:{value:"fontStyle",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(M())([new(S())(T().inputOutput,"metadata",new(m().SFNode)),new(S())(T().inputOutput,"language",new(m().SFString)),new(S())(T().inputOutput,"family",new(m().MFString)("SERIF")),new(S())(T().inputOutput,"style",new(m().SFString)("PLAIN")),new(S())(T().inputOutput,"pointSize",new(m().SFFloat)(12)),new(S())(T().inputOutput,"spacing",new(m().SFFloat)(1)),new(S())(T().inputOutput,"horizontal",new(m().SFBool)(!0)),new(S())(T().inputOutput,"leftToRight",new(m().SFBool)(!0)),new(S())(T().inputOutput,"topToBottom",new(m().SFBool)(!0)),new(S())(T().inputOutput,"justify",new(m().MFString)("BEGIN"))]),enumerable:!0}});const Ne=Te;y().add("ScreenFontStyle","x_ite/Components/Layout/ScreenFontStyle",Ne);const Fe=Ne,Ie=window[Symbol.for("X_ITE.X3D-10.0.0")].require("x_ite/Prototype/X3DProtoDeclaration");var Le=i.n(Ie);function Ee(e){Q().call(this,e),this.addType(T().ScreenGroup),e.getOuterNode()instanceof Le()?this.matrix=new(u()):this.matrix=new(u())(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}Object.assign(Object.setPrototypeOf(Ee.prototype,Q().prototype),{getBBox(e,t){return this.getSubBBox(e,t).multRight(this.matrix)},getMatrix(){return this.matrix},traverse(e,t){switch(e){case te().CAMERA:case te().PICKING:case te().SHADOW:break;default:{const e=this.getBrowser();e.getScreenScaleMatrix(t,this.matrix,e.getRenderingProperty("ContentScale"),!1);break}}const i=t.getModelViewMatrix();i.push(),i.multLeft(this.matrix),Q().prototype.traverse.call(this,e,t),i.pop()}}),Object.defineProperties(Ee,{typeName:{value:"ScreenGroup",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(M())([new(S())(T().inputOutput,"metadata",new(m().SFNode)),new(S())(T().inputOutput,"visible",new(m().SFBool)(!0)),new(S())(T().inputOutput,"bboxDisplay",new(m().SFBool)),new(S())(T().initializeOnly,"bboxSize",new(m().SFVec3f)(-1,-1,-1)),new(S())(T().initializeOnly,"bboxCenter",new(m().SFVec3f)),new(S())(T().inputOnly,"addChildren",new(m().MFNode)),new(S())(T().inputOnly,"removeChildren",new(m().MFNode)),new(S())(T().inputOutput,"children",new(m().MFNode))]),enumerable:!0}});const De=Ee;y().add("ScreenGroup","x_ite/Components/Layout/ScreenGroup",De);const Ue=De;s().add({name:"Layout",concreteNodes:[K,se,ce,Fe,Ue],abstractNodes:[I],browserContext:x});const Ce=void 0;y().add("Layout","assets/components/Layout",Ce)})();
|
|
1
|
+
/* X_ITE v10.0.1 */(()=>{"use strict";var e={823:e=>{e.exports=window[Symbol.for("X_ITE.X3D-10.0.1")].require("lib/jquery")}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const n=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components");var s=i.n(n);const o=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Texturing/TextureProperties");var r=i.n(o);const a=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Numbers/Vector3");var l=i.n(a);const h=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Numbers/Matrix4");var u=i.n(h);const c=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Geometry/ViewVolume");var d=i.n(c);const p=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Namespace");var y=i.n(p);const f=Symbol();function w(){}Object.assign(w.prototype,{getScreenTextureProperties(){return this[f]=new(r())(this.getPrivateScene()),this[f]._boundaryModeS="CLAMP_TO_EDGE",this[f]._boundaryModeT="CLAMP_TO_EDGE",this[f]._boundaryModeR="CLAMP_TO_EDGE",this[f]._minificationFilter="NEAREST_PIXEL",this[f]._magnificationFilter="NEAREST_PIXEL",this[f]._generateMipMaps=!1,this[f]._textureCompression="DEFAULT",this[f].setup(),this.getScreenTextureProperties=function(){return this[f]},Object.defineProperty(this,"getScreenTextureProperties",{enumerable:!1}),this[f]},getScreenScaleMatrix:(()=>{const e=new(l()),t=new(l()),i=new(u());return function(n,s,o,r){const a=n.getModelViewMatrix().get(),h=n.getProjectionMatrix().get(),u=n.getViewVolume().getViewport();n.getViewpoint().getScreenScale(a.origin,u,e);const c=a.xAxis.normalize().multiply(e.x*o),p=a.yAxis.normalize().multiply(e.y*o),y=a.zAxis.normalize().multiply(e.x*o);i.set(c.x,c.y,c.z,0,p.x,p.y,p.z,0,y.x,y.y,y.z,0,a[12],a[13],a[14],1),r&&(d().projectPoint(l().Zero,i,h,u,t),t.x=Math.round(t.x),t.y=Math.round(t.y),d().unProjectPoint(t.x,t.y,t.z,i,h,u,t),t.z=0,i.translate(t)),s.assign(a).inverse().multLeft(i)}})()});const g=w;y().add("X3DLayoutContext","x_ite/Browser/Layout/X3DLayoutContext",g);const x=g,_=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Fields");var m=i.n(_);const b=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Base/X3DFieldDefinition");var S=i.n(b);const X=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Base/FieldDefinitionArray");var M=i.n(X);const O=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Core/X3DChildNode");var v=i.n(O);const z=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Base/X3DConstants");var T=i.n(z);function N(e){v().call(this,e),this.addType(T().X3DLayoutNode)}Object.setPrototypeOf(N.prototype,v().prototype),Object.defineProperties(N,{typeName:{value:"X3DLayoutNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:1}),enumerable:!0}});const F=N;y().add("X3DLayoutNode","x_ite/Components/Layout/X3DLayoutNode",F);const I=F,L=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Numbers/Vector2");var E=i.n(L);const D=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Numbers/Rotation4");var U=i.n(D);let C=0;const P=C++,B=C++,Y=C++,R=C++,j=C++,V=C++,A=C++,q=C++,G=C++,k=C++;function W(e){I.call(this,e),this.addType(T().Layout),this.alignX=B,this.alignY=B,this.offsetUnitX=V,this.offsetUnitY=V,this.offsetX=0,this.offsetY=0,this.sizeUnitX=V,this.sizeUnitY=V,this.sizeX=1,this.sizeY=1,this.scaleModeX=G,this.scaleModeY=G,this.parent=null,this.rectangleCenter=new(E()),this.rectangleSize=new(E()),this.matrix=new(u())}Object.assign(Object.setPrototypeOf(W.prototype,I.prototype),{viewportPixel:new(E()),pixelSize:new(E()),translation:new(l()),offset:new(l()),scale:new(l())(1,1,1),currentTranslation:new(l()),currentRotation:new(U()),currentScale:new(l()),modelViewMatrix:new(u()),initialize(){I.prototype.initialize.call(this),this._align.addInterest("set_align__",this),this._offsetUnits.addInterest("set_offsetUnits__",this),this._offset.addInterest("set_offset__",this),this._sizeUnits.addInterest("set_sizeUnits__",this),this._size.addInterest("set_size__",this),this._scaleMode.addInterest("set_scaleMode__",this),this.set_align__(),this.set_offsetUnits__(),this.set_offset__(),this.set_sizeUnits__(),this.set_size__(),this.set_scaleMode__()},set_align__(){this._align.length>0?"LEFT"===this._align[0]?this.alignX=P:"RIGHT"===this._align[0]?this.alignX=Y:this.alignX=B:this.alignX=B,this._align.length>1?"BOTTOM"===this._align[1]?this.alignY=R:"TOP"===this._align[1]?this.alignY=j:this.alignY=B:this.alignY=B},set_offsetUnits__(){this._offsetUnits.length>0?("FRACTION"===this._offsetUnits[0]?this.offsetUnitX=A:"PIXEL"===this._offsetUnits[0]?this.offsetUnitX=q:this.offsetUnitX=V,this._offsetUnits.length>1?"FRACTION"===this._offsetUnits[1]?this.offsetUnitY=A:"PIXEL"===this._offsetUnits[1]?this.offsetUnitY=q:this.offsetUnitY=V:this.offsetUnitY=this.offsetUnitX):(this.offsetUnitX=V,this.offsetUnitY=V)},set_offset__(){this._offset.length>0?(this.offsetX=this._offset[0],this._offset.length>1?this.offsetY=this._offset[1]:this.offsetY=offsetX):(this.offsetX=0,this.offsetY=0)},set_sizeUnits__(){this._sizeUnits.length>0?("FRACTION"===this._sizeUnits[0]?this.sizeUnitX=A:"PIXEL"===this._sizeUnits[0]?this.sizeUnitX=q:this.sizeUnitX=V,this._sizeUnits.length>1?"FRACTION"===this._sizeUnits[1]?this.sizeUnitY=A:"PIXEL"===this._sizeUnits[1]?this.sizeUnitY=q:this.sizeUnitY=V:this.sizeUnitY=this.sizeUnitX):(this.sizeUnitX=V,this.sizeUnitY=V)},set_size__(){this._size.length>0?(this.sizeX=this._size[0],this._size.length>1?this.sizeY=this._size[1]:this.sizeY=this.sizeX):(this.sizeX=0,this.sizeY=0)},set_scaleMode__(){this._scaleMode.length>0?("FRACTION"===this._scaleMode[0]?this.scaleModeX=A:"PIXEL"===this._scaleMode[0]?this.scaleModeX=q:"STRETCH"===this._scaleMode[0]?this.scaleModeX=k:this.scaleModeX=G,this._scaleMode.length>1?"FRACTION"===this._scaleMode[1]?this.scaleModeY=A:"PIXEL"===this._scaleMode[1]?this.scaleModeY=q:"STRETCH"===this._scaleMode[1]?this.scaleModeY=k:this.scaleModeY=G:this.scaleModeY=this.scaleModeX):(this.scaleModeX=G,this.scaleModeY=G)},getRectangleCenter(){return this.rectangleCenter},getRectangleSize(){return this.rectangleSize},getAlignX(){return this.alignX},getAlignY(){return this.alignY},getOffsetUnitX(){return this.offsetUnitX===V?this.parent?this.parent.getOffsetUnitX():A:this.offsetUnitX},getOffsetUnitY(){return this.offsetUnitY===V?this.parent?this.parent.getOffsetUnitY():A:this.offsetUnitY},getOffsetX(){return this.offsetX},getOffsetY(){return this.offsetY},getSizeUnitX(){return this.sizeUnitX===V?this.parent?this.parent.getSizeUnitX():A:this.sizeUnitX},getSizeUnitY(){return this.sizeUnitY===V?this.parent?this.parent.getSizeUnitY():A:this.sizeUnitY},getSizeX(){return this.sizeX},getSizeY(){return this.sizeY},getScaleModeX(){return this.parent?this.scaleModeX:this.scaleModeX===G?A:this.scaleModeX},getScaleModeY(){return this.parent?this.scaleModeY:this.scaleModeY===G?A:this.scaleModeY},transform(e,t){const i=this.parent=t.getParentLayout(),n=this.getBrowser().getRenderingProperty("ContentScale"),s=this.matrix,o=t.getViewpoint(),r=t.getNavigationInfo().getNearValue(),a=t.getViewVolume().getScissor(),l=o.getViewportSize(a,r),h=this.viewportPixel,u=this.pixelSize,c=i?i.getRectangleSize():l,d=this.rectangleSize,p=this.rectangleCenter;switch(h.set(a[2],a[3]).divide(n),u.assign(l).divVec(h),this.getSizeUnitX()){case A:d.x=this.sizeX*c.x;break;case q:d.x=this.sizeX*u.x}switch(this.getSizeUnitY()){case A:d.y=this.sizeY*c.y;break;case q:d.y=this.sizeY*u.y}const y=this.translation.set(0,0,0);switch(this.getAlignX()){case P:y.x=-(c.x-d.x)/2;break;case B:this.getSizeUnitX()===q&&1&h.x&&(y.x=-u.x/2);break;case Y:y.x=(c.x-d.x)/2}switch(this.getAlignY()){case R:y.y=-(c.y-d.y)/2;break;case B:this.getSizeUnitX()===q&&1&h.y&&(y.y=-u.y/2);break;case j:y.y=(c.y-d.y)/2}const f=this.offset.set(0,0,0);switch(this.getOffsetUnitX()){case A:f.x=this.offsetX*c.x;break;case q:f.x=this.offsetX*l.x/h.x}switch(this.getOffsetUnitY()){case A:f.y=this.offsetY*c.y;break;case q:f.y=this.offsetY*l.y/h.y}const w=this.scale.set(1,1,1),g=this.currentTranslation,x=this.currentRotation,_=this.currentScale;switch(t.getModelViewMatrix().get().get(g,x,_),this.getScaleModeX()){case G:w.x=_.x;break;case A:w.x=d.x;break;case k:break;case q:w.x=l.x/h.x}switch(this.getScaleModeY()){case G:w.y=_.y;break;case A:w.y=d.y;break;case k:break;case q:w.y=l.y/h.y}return this.getScaleModeX()===k?this.getScaleModeY()===k?d.x>d.y?(w.x=d.x,w.y=w.x):(w.y=d.y,w.x=w.y):w.x=w.y:this.getScaleModeY()===k&&(w.y=w.x),p.assign(y.add(f)),s.set(g,x),s.translate(y),s.scale(w),s}}),Object.defineProperties(W,{typeName:{value:"Layout",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:1}),enumerable:!0},containerField:{value:"layout",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(M())([new(S())(T().inputOutput,"metadata",new(m().SFNode)),new(S())(T().inputOutput,"align",new(m().MFString)("CENTER","CENTER")),new(S())(T().inputOutput,"offsetUnits",new(m().MFString)("WORLD","WORLD")),new(S())(T().inputOutput,"offset",new(m().MFFloat)(0,0)),new(S())(T().inputOutput,"sizeUnits",new(m().MFString)("WORLD","WORLD")),new(S())(T().inputOutput,"size",new(m().MFFloat)(1,1)),new(S())(T().inputOutput,"scaleMode",new(m().MFString)("NONE","NONE"))]),enumerable:!0}});const H=W;y().add("Layout","x_ite/Components/Layout/Layout",H);const K=H,Z=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Grouping/X3DGroupingNode");var Q=i.n(Z);const J=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Base/X3DCast");var $=i.n(J);const ee=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Rendering/TraverseType");var te=i.n(ee);function ie(e){Q().call(this,e),this.addType(T().LayoutGroup),this.viewportNode=null,this.layoutNode=null,this.matrix=new(u()),this.modelViewMatrix=new(u()),this.screenMatrix=new(u())}Object.assign(Object.setPrototypeOf(ie.prototype,Q().prototype),{initialize(){Q().prototype.initialize.call(this),this._viewport.addInterest("set_viewport__",this),this._layout.addInterest("set_layout__",this),this.set_viewport__(),this.set_layout__()},set_viewport__(){this.viewportNode=$()(T().X3DViewportNode,this._viewport)},set_layout__(){this.layoutNode=$()(T().X3DLayoutNode,this._layout)},getBBox(e,t){return Q().prototype.getBBox.call(this,e,t).multRight(this.getMatrix())},getMatrix(){return this.layoutNode?this.matrix.assign(this.modelViewMatrix).inverse().multLeft(this.screenMatrix):this.matrix.identity()},getLayout(){return this.layoutNode},traverse(e,t){if(e!==te().COLLISION){if(this.viewportNode&&this.viewportNode.push(),this.layoutNode){const i=t.getModelViewMatrix();this.modelViewMatrix.assign(i.get()),this.screenMatrix.assign(this.layoutNode.transform(e,t)),i.pushMatrix(this.screenMatrix),t.getLayouts().push(this.layoutNode),Q().prototype.traverse.call(this,e,t),t.getLayouts().pop(),i.pop()}else Q().prototype.traverse.call(this,e,t);this.viewportNode&&this.viewportNode.pop()}}}),Object.defineProperties(ie,{typeName:{value:"LayoutGroup",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(M())([new(S())(T().inputOutput,"metadata",new(m().SFNode)),new(S())(T().inputOutput,"layout",new(m().SFNode)),new(S())(T().inputOutput,"viewport",new(m().SFNode)),new(S())(T().inputOutput,"visible",new(m().SFBool)(!0)),new(S())(T().inputOutput,"bboxDisplay",new(m().SFBool)),new(S())(T().initializeOnly,"bboxSize",new(m().SFVec3f)(-1,-1,-1)),new(S())(T().initializeOnly,"bboxCenter",new(m().SFVec3f)),new(S())(T().inputOnly,"addChildren",new(m().MFNode)),new(S())(T().inputOnly,"removeChildren",new(m().MFNode)),new(S())(T().inputOutput,"children",new(m().MFNode))]),enumerable:!0}});const ne=ie;y().add("LayoutGroup","x_ite/Components/Layout/LayoutGroup",ne);const se=ne,oe=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Layering/X3DLayerNode");var re=i.n(oe);const ae=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Navigation/OrthoViewpoint");var le=i.n(ae);function he(e){re().call(this,e,new(le())(e),new se(e)),this.addType(T().LayoutLayer)}Object.assign(Object.setPrototypeOf(he.prototype,re().prototype),{initialize(){re().prototype.initialize.call(this);const e=this.getGroups()._children[0].getValue();this._layout.addFieldInterest(e._layout),this._addChildren.addFieldInterest(e._addChildren),this._removeChildren.addFieldInterest(e._removeChildren),this._children.addFieldInterest(e._children),e._layout=this._layout,e._children=this._children,e.setPrivate(!0),e.setup(),this.getGroups().setup()}}),Object.defineProperties(he,{typeName:{value:"LayoutLayer",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:1}),enumerable:!0},containerField:{value:"layers",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(M())([new(S())(T().inputOutput,"metadata",new(m().SFNode)),new(S())(T().inputOutput,"pickable",new(m().SFBool)(!0)),new(S())(T().inputOutput,"objectType",new(m().MFString)("ALL")),new(S())(T().inputOutput,"visible",new(m().SFBool)(!0)),new(S())(T().inputOutput,"layout",new(m().SFNode)),new(S())(T().inputOutput,"viewport",new(m().SFNode)),new(S())(T().inputOnly,"addChildren",new(m().MFNode)),new(S())(T().inputOnly,"removeChildren",new(m().MFNode)),new(S())(T().inputOutput,"children",new(m().MFNode))]),enumerable:!0}});const ue=he;y().add("LayoutLayer","x_ite/Components/Layout/LayoutLayer",ue);const ce=ue,de=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Text/X3DFontStyleNode");var pe=i.n(de);const ye=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Browser/Text/X3DTextGeometry");var fe=i.n(ye);const we=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Browser/Text/TextAlignment");var ge=i.n(we);const xe=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Texturing/PixelTexture");var _e=i.n(xe);const me=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Geometry/Box3");var be=i.n(me);const Se=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Algorithm");var Xe=i.n(Se),Me=i(823);function Oe(e,t){fe().call(this,e,t),e.setTransparent(!0),this.textureNode=new(_e())(e.getExecutionContext()),this.canvas=Me("<canvas></canvas>"),this.context=this.canvas[0].getContext("2d",{willReadFrequently:!0}),this.matrix=new(u()),this.textureNode._textureProperties=t.getBrowser().getScreenTextureProperties(),this.textureNode.setup()}Object.assign(Object.setPrototypeOf(Oe.prototype,fe().prototype),{modelViewMatrix:new(u()),isTransparent:()=>!0,getMatrix(){return this.matrix},update:(()=>{const e=new(l()),t=new(l())(1,1,0);return function(){fe().prototype.update.call(this);const i=this.getFontStyle(),n=this.getText();switch(n._textBounds.x=Math.ceil(n._textBounds.x)+1,n._textBounds.y=Math.ceil(n._textBounds.y)+1,this.getBBox().getExtents(e,t),e.x-=1,e.y-=1,i.getMajorAlignment()){case ge().BEGIN:case ge().FIRST:e.x=Math.floor(e.x),t.x=e.x+n._textBounds.x;break;case ge().MIDDLE:e.x=Math.round(e.x),t.x=e.x+n._textBounds.x;break;case ge().END:t.x=Math.ceil(t.x),e.x=t.x-n._textBounds.x}switch(i.getMinorAlignment()){case ge().BEGIN:case ge().FIRST:t.y=Math.ceil(t.y),e.y=t.y-n._textBounds.y;break;case ge().MIDDLE:t.y=Math.round(t.y),e.y=t.y-n._textBounds.y;break;case ge().END:e.y=Math.floor(e.y),t.y=e.y+n._textBounds.y}n._origin.x=e.x,n._origin.y=t.y,this.getBBox().setExtents(e,t)}})(),build:(()=>{const e=new(l()),t=new(l())(1,1,0);return function(){const i=this.getFontStyle(),n=i.getFont();if(!n)return;const s=this.getText(),o=this.getGlyphs(),r=this.getMinorAlignment(),a=this.getTranslations(),l=this.getCharSpacings(),h=i.getScale(),u=h/n.unitsPerEm,c=s.getTexCoords(),d=s.getNormals(),p=s.getVertices(),y=this.canvas[0],f=this.context;s.getMultiTexCoords().push(c),this.getBBox().getExtents(e,t),d.push(0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1),p.push(e.x,e.y,0,1,t.x,e.y,0,1,t.x,t.y,0,1,e.x,e.y,0,1,t.x,t.y,0,1,e.x,t.y,0,1);const w=s._textBounds.x,g=s._textBounds.y;y.width=Xe().nextPowerOfTwo(w),y.height=Xe().nextPowerOfTwo(g);const x=w/y.width,_=1-g/y.height;if(c.push(0,_,0,1,x,_,0,1,x,1,0,1,0,_,0,1,x,1,0,1,0,1,0,1),f.fillStyle="rgba(255,255,255,0)",f.fillRect(0,0,y.width,y.height),f.fillStyle="rgba(255,255,255,1)",f.save(),f.translate(0,y.height),f.scale(1,-1),i._horizontal.getValue())for(let i=0,s=o.length;i<s;++i){const s=o[i],c=l[i],d=a[i];let p=0;for(let i=0,o=s.length;i<o;++i){const o=s[i],a=r.x+d.x+p+i*c-e.x,l=r.y+d.y-t.y;this.drawGlyph(f,n,o,a,l,h);let y=0;i+1<s.length&&(y=n.getKerningValue(o,s[i+1])),p+=(o.advanceWidth+y)*u}}else{const l=i._leftToRight.getValue(),u=i._topToBottom.getValue(),c=l?0:s._string.length-1,d=l?s._string.length:-1,p=l?1:-1;for(let i=c,s=0;i!==d;i+=p){const l=o[i],c=l.length,d=u?c:-1,p=u?1:-1;for(let i=u?0:c-1;i!==d;i+=p,++s){const o=a[s],u=r.x+o.x-e.x,c=r.y+o.y-t.y;this.drawGlyph(f,n,l[i],u,c,h)}}}f.restore();const m=f.getImageData(0,0,y.width,y.height);m?this.textureNode.setTextureData(y.width,y.height,!0,!0,new Uint8Array(m.data.buffer)):this.textureNode.clear()}})(),drawGlyph(e,t,i,n,s,o){const r=i.getPath(n,-s,o),a=r.commands;e.beginPath();for(let t=0,i=a.length;t<i;++t){const i=a[t];switch(i.type){case"M":e.moveTo(i.x,i.y);continue;case"Z":e.closePath();continue;case"L":e.lineTo(i.x,i.y);continue;case"Q":e.quadraticCurveTo(i.x1,i.y1,i.x,i.y);continue;case"C":e.bezierCurveTo(i.x1,i.y1,i.x2,i.y2,i.x,i.y);continue}}r.fill&&e.fill(),r.stroke&&(e.lineWidth=r.strokeWidth,e.stroke())},getGlyphExtents(e,t,i,n,s){const o=e.unitsPerEm;n.set((t.xMin||0)/o,(t.yMin||0)/o,0),s.set((t.xMax||0)/o,(t.yMax||0)/o,0)},traverse:(()=>{const e=new(be());return function(t,i){this.getBrowser().getScreenScaleMatrix(i,this.matrix,1,!0),e.assign(this.getBBox()).multRight(this.matrix),this.getText().setBBox(e)}})(),display(e,t){u().prototype.multLeft.call(t.modelViewMatrix,this.matrix),t.textureNode=this.textureNode},transformLine:(()=>{const e=new(u());return function(t){return t.multLineMatrix(e.assign(this.matrix).inverse())}})(),transformMatrix(e){return e.multLeft(this.matrix)}});const ve=Oe;y().add("ScreenText","x_ite/Browser/Layout/ScreenText",ve);const ze=ve;function Te(e){pe().call(this,e),this.addType(T().ScreenFontStyle)}Object.assign(Object.setPrototypeOf(Te.prototype,pe().prototype),{initialize(){pe().prototype.initialize.call(this),this.getBrowser().getRenderingProperties()._ContentScale.addInterest("addNodeEvent",this)},getTextGeometry(e){return new ze(e,this)},getScale(){return this._pointSize.getValue()*this.getBrowser().getPixelsPerPoint()}}),Object.defineProperties(Te,{typeName:{value:"ScreenFontStyle",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:2}),enumerable:!0},containerField:{value:"fontStyle",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(M())([new(S())(T().inputOutput,"metadata",new(m().SFNode)),new(S())(T().inputOutput,"language",new(m().SFString)),new(S())(T().inputOutput,"family",new(m().MFString)("SERIF")),new(S())(T().inputOutput,"style",new(m().SFString)("PLAIN")),new(S())(T().inputOutput,"pointSize",new(m().SFFloat)(12)),new(S())(T().inputOutput,"spacing",new(m().SFFloat)(1)),new(S())(T().inputOutput,"horizontal",new(m().SFBool)(!0)),new(S())(T().inputOutput,"leftToRight",new(m().SFBool)(!0)),new(S())(T().inputOutput,"topToBottom",new(m().SFBool)(!0)),new(S())(T().inputOutput,"justify",new(m().MFString)("BEGIN"))]),enumerable:!0}});const Ne=Te;y().add("ScreenFontStyle","x_ite/Components/Layout/ScreenFontStyle",Ne);const Fe=Ne,Ie=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Prototype/X3DProtoDeclaration");var Le=i.n(Ie);function Ee(e){Q().call(this,e),this.addType(T().ScreenGroup),e.getOuterNode()instanceof Le()?this.matrix=new(u()):this.matrix=new(u())(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}Object.assign(Object.setPrototypeOf(Ee.prototype,Q().prototype),{getBBox(e,t){return this.getSubBBox(e,t).multRight(this.matrix)},getMatrix(){return this.matrix},traverse(e,t){switch(e){case te().CAMERA:case te().PICKING:case te().SHADOW:break;default:{const e=this.getBrowser();e.getScreenScaleMatrix(t,this.matrix,e.getRenderingProperty("ContentScale"),!1);break}}const i=t.getModelViewMatrix();i.push(),i.multLeft(this.matrix),Q().prototype.traverse.call(this,e,t),i.pop()}}),Object.defineProperties(Ee,{typeName:{value:"ScreenGroup",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(M())([new(S())(T().inputOutput,"metadata",new(m().SFNode)),new(S())(T().inputOutput,"visible",new(m().SFBool)(!0)),new(S())(T().inputOutput,"bboxDisplay",new(m().SFBool)),new(S())(T().initializeOnly,"bboxSize",new(m().SFVec3f)(-1,-1,-1)),new(S())(T().initializeOnly,"bboxCenter",new(m().SFVec3f)),new(S())(T().inputOnly,"addChildren",new(m().MFNode)),new(S())(T().inputOnly,"removeChildren",new(m().MFNode)),new(S())(T().inputOutput,"children",new(m().MFNode))]),enumerable:!0}});const De=Ee;y().add("ScreenGroup","x_ite/Components/Layout/ScreenGroup",De);const Ue=De;s().add({name:"Layout",concreteNodes:[K,se,ce,Fe,Ue],abstractNodes:[I],browserContext:x});const Ce=void 0;y().add("Layout","assets/components/Layout",Ce)})();
|