x_ite 8.9.1 → 8.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +13 -13
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +25 -25
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +19 -19
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +77 -73
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +19 -19
- 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 +31 -30
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +23 -23
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +18 -18
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +18 -18
- 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/TextureProjector.js +14 -14
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +30 -30
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +18 -18
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +144 -157
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/package.json +2 -2
- package/src/tests.js +360 -0
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Components/Geometry3D/ElevationGrid.js +8 -5
- package/src/x_ite/Components/Geometry3D/Extrusion.js +10 -12
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +46 -56
- package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +44 -40
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +7 -6
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +11 -13
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +4 -6
- package/src/x_ite/Components/Scripting/Script.js +1 -1
- package/src/x_ite/Parser/GLTF2Parser.js +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.9.1 */(()=>{"use strict";var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components");var i=e.n(t);const n=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Fields");var o=e.n(n);const s=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const a=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Base/FieldDefinitionArray");var l=e.n(a);const h=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Rendering/X3DCoordinateNode");var d=e.n(h);const c=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Base/X3DConstants");var u=e.n(c);const p=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Namespace");var g=e.n(p);function _(e,t){switch(arguments.length){case 0:this.semiMajorAxis=0,this.semiMinorAxis=0;break;case 2:this.semiMajorAxis=e,this.semiMinorAxis=t;break;case 3:const i=arguments[1];this.semiMajorAxis=e,this.semiMinorAxis=e*(1-1/i)}}Object.assign(_.prototype,{getSemiMajorAxis(){return this.semiMajorAxis},getSemiMinorAxis(){return this.semiMinorAxis},toString(){return`${this.semiMajorAxis} ${this.semiMinorAxis}`}});const w=_;g().set("standard/Math/Geometry/Spheroid3",w);const m=w,O={AA:new m(6377563.396,299.3249646,!0),AM:new m(6377340.189,299.3249646,!0),AN:new m(6378160,298.25,!0),BN:new m(6377483.865,299.1528128,!0),BR:new m(6377397.155,299.1528128,!0),CC:new m(6378206.4,294.9786982,!0),CD:new m(6378249.145,293.465,!0),EA:new m(6377276.345,300.8017,!0),EB:new m(6377298.556,300.8017,!0),EC:new m(6377301.243,300.8017,!0),ED:new m(6377295.664,300.8017,!0),EE:new m(6377304.063,300.8017,!0),EF:new m(6377309.613,300.8017,!0),FA:new m(6378155,298.3,!0),HE:new m(6378200,298.3,!0),HO:new m(6378270,297,!0),ID:new m(6378160,298.247,!0),IN:new m(6378388,297,!0),KA:new m(6378245,298.3,!0),RF:new m(6378137,298.257222101,!0),SA:new m(6378160,298.25,!0),WD:new m(6378135,298.26,!0),WE:new m(6378137,298.257223563,!0),SUN:new m(696342e3,1/9e-6,!0),MERCURY:new m(2439700,2439700),VENUS:new m(6051800,6051800),MOON:new m(1738140,1735970),MARS:new m(3395428,3377678),JUPITER:new m(71492e3,66854e3),SATURN:new m(60268e3,54364e3),URANUS:new m(2555e3,24973e3),NEPTUNE:new m(24764e3,24341e3),PLUTO:new m(1153e3,1153e3)};g().set("standard/Geospatial/ReferenceEllipsoids",O);const y=O,b=window[Symbol.for("X_ITE.X3D-8.9.1")].require("standard/Math/Numbers/Vector3");var f=e.n(b);const S=window[Symbol.for("X_ITE.X3D-8.9.1")].require("standard/Math/Algorithm");var v=e.n(S);function I(e,t,i){this.longitudeFirst=!t,this.degrees=!i,this.a=e.getSemiMajorAxis(),this.c=e.getSemiMinorAxis(),this.c2a2=Math.pow(e.getSemiMinorAxis()/this.a,2),this.ecc2=1-this.c2a2}Object.assign(I.prototype,{convert(e,t){const i=e.z;if(this.longitudeFirst)var n=e.y,o=e.x;else n=e.x,o=e.y;return this.degrees&&(n*=Math.PI/180,o*=Math.PI/180),this.convertRadians(n,o,i,t)},convertRadians(e,t,i,n){const o=Math.sin(e),s=Math.pow(o,2),r=Math.cos(e),a=this.a/Math.sqrt(1-this.ecc2*s),l=(a+i)*r;return n.set(l*Math.cos(t),l*Math.sin(t),(a*this.c2a2+i)*o)},apply(e,t){if(this.applyRadians(e,t),this.degrees&&(t.x*=180/Math.PI,t.y*=180/Math.PI),this.longitudeFirst){const e=t.x;t.x=t.y,t.y=e}return t},applyRadians(e,t){const i=e.x,n=e.y,o=e.z,s=Math.sqrt(i*i+n*n);if(0==s)return t.set(Math.PI,0,o-this.c);let r=0,a=Math.atan2(n,i),l=0,h=this.a,d=h,c=this.ecc2;for(let e=0;e<30;++e){const e=l,t=r;r=Math.atan(o/s/(1-c*d/(d+l)));const i=Math.sin(r);if(d=h/Math.sqrt(1-c*i*i),l=s/Math.cos(r)-d,Math.abs(l-e)<.001&&Math.abs(r-t)<1e-10)break}return t.set(r,a,l)},normal(e,t){const i=this.applyRadians(e,t),n=i.x,o=i.y,s=Math.cos(n),r=Math.cos(o)*s,a=Math.sin(o)*s,l=Math.sin(n);return t.set(r,a,l)}});const F=I;g().set("standard/Geospatial/Geodetic",F);const x=F,C=1e7,N=5e5,M=.9996;function j(e,t,i,n){const o=e.getSemiMajorAxis(),s=1-Math.pow(e.getSemiMinorAxis()/o,2),r=s/(1-s),a=(1-Math.sqrt(1-s))/(1+Math.sqrt(1-s));this.southernHemisphere=!i,this.eastingFirst=!n,this.a=o,this.ecc2=s,this.EE=r,this.E8=8*r,this.E9=9*r,this.E252=252*r,this.e1=a,this.A=M*(o*(1-s/4-3*s*s/64-5*s*s*s/256)),this.B=3*a/2-7*a*a*a/32,this.C=21*a*a/16-55*a*a*a*a/32,this.D=151*a*a*a/96,this.E=o*(1-s),this.W=1-s/4-3*s*s/64-5*s*s*s/256,this.X=3*s/8+3*s*s/32+45*s*s*s/1024,this.Y=15*s*s/256+45*s*s*s/1024,this.Z=35*s*s*s/3072,this.longitude0=v().radians(6*t-183),this.geodeticConverter=new x(e,!0,!0)}Object.assign(j.prototype,{convert(e,t){if(this.eastingFirst)var i=e.y,n=e.x;else i=e.x,n=e.y;let o=this.southernHemisphere;i<0&&(o=!this.southernHemisphere,i=-i),o&&(i-=C),n-=N;const s=i/this.A,r=s+this.B*Math.sin(2*s)+this.C*Math.sin(4*s)+this.D*Math.sin(6*s),a=Math.pow(Math.sin(r),2),l=Math.cos(r),h=Math.tan(r),d=this.a/Math.sqrt(1-this.ecc2*a),c=Math.pow(h,2),u=Math.pow(h,8),p=this.EE*c,g=p*p,_=this.E/Math.pow(1-this.ecc2*a,1.5),w=n/(d*M),m=(5+3*c+10*p-4*g-this.E9)*Math.pow(w,4)/24,O=(61+90*c+298*p+45*u-this.E252-3*g)*Math.pow(w,6)/720,y=(5-2*p+28*c-3*g+this.E8+24*u)*Math.pow(w,5)/120,b=r-d*h/_*(w*w/2-m+O),f=this.longitude0+(w-(1+2*c+p)*Math.pow(w,3)/6+y)/l;return this.geodeticConverter.convertRadians(b,f,e.z,t)},apply(e,t){const i=this.geodeticConverter.applyRadians(e,t),n=i.x,o=i.y,s=Math.tan(n),r=Math.cos(n),a=this.EE,l=this.a/Math.sqrt(1-this.ecc2*Math.pow(Math.sin(n),2)),h=s*s,d=h*h*h,c=a*r*r,u=r*(o-this.longitude0),p=this.a*(this.W*n-this.X*Math.sin(2*n)+this.Y*Math.sin(4*n)-this.Z*Math.sin(6*n)),g=M*l*(u+(1-h+c)*Math.pow(u,3)/6+(5-18*d+72*c-58*a)*Math.pow(u,5)/120)+N;let _=M*(p+l*s*(u*u/2+(5-h+9*c+4*c*c)*Math.pow(u,4)/24+(61-58*d+600*c-330*a)*Math.pow(u,6)/720));return n<0?(_+=C,this.southernHemisphere||(_=-_)):this.southernHemisphere&&(_=-_),this.eastingFirst?t.set(g,_,i.z):t.set(_,g,i.z)}});const z=j;g().set("standard/Geospatial/UniversalTransverseMercator",z);const G=z;function V(){}Object.assign(V.prototype,{convert:(e,t)=>t.assign(e),apply:(e,t)=>t.assign(e),slerp(e,t,i){const n=e.magnitude(),o=t.magnitude();return e.normalize(),t.normalize(),v().simpleSlerp(e,t,i).multiply(v().lerp(n,o,i))}});const D=V;g().set("x_ite/Browser/Geospatial/Geocentric",D);const P=D;let E=0;const T=E++,X=E++,k=E++,L={GD:T,GDC:T,UTM:X,GC:k,GCC:k,GS:k},R=/^Z(\d+)$/,A={GD:T,UTM:X,GC:k,getReferenceFrame(e,t){switch(this.getCoordinateSystem(e)){case T:return new x(this.getEllipsoid(e),this.getLatitudeFirst(e),t);case X:return new G(this.getEllipsoid(e),this.getZone(e),this.getNorthernHemisphere(e),this.getNorthingFirst(e));case k:return new P}return new x(y.WE,!0,t)},getElevationFrame(e,t){return new x(this.getEllipsoid(e),!0,t)},getCoordinateSystem(e){for(const t of e){const e=L[t];if(void 0!==e)return e}return T},getEllipsoid(e){for(const t of e){const e=y[t];if(void 0!==e)return e}return y.WE},getEllipsoidString(e){for(const t of e){if(void 0!==y[t])return t}return"WE"},isStandardOrder(e){switch(this.getCoordinateSystem(e)){case T:return this.getLatitudeFirst(e);case X:return this.getNorthingFirst(e);case k:return!0}return this.getLatitudeFirst(e)},getLatitudeFirst(e){for(const t of e)if("longitude_first"===t)return!1;return!0},getNorthingFirst(e){for(const t of e)if("easting_first"===t)return!1;return!0},getZone(e){for(const t of e){const e=t.match(R);if(e)return parseInt(e[1])}return 1},getNorthernHemisphere(e){for(const t of e)if("S"===t)return!1;return!0}};g().set("x_ite/Browser/Geospatial/Geospatial",A);const B=A,U=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Base/X3DCast");var q=e.n(U);const W=window[Symbol.for("X_ITE.X3D-8.9.1")].require("standard/Math/Numbers/Matrix4");var H=e.n(W),Y=new(f())(0,0,0),Z=new(f())(0,0,0),$=new(f())(0,0,0),K=new(f())(0,0,0),J=new(f())(0,0,0),Q=new(f())(0,0,0);function ee(e){this.addType(u().X3DGeospatialObject),this.radians=!1,this.origin=new(f())(0,0,0),this.originMatrix=new(H()),this.invOriginMatrix=new(H())}function te(e,t){return this.invOriginMatrix.multVecMatrix(this.referenceFrame.convert(e,t))}function ie(e,t){return this.referenceFrame.apply(this.originMatrix.multVecMatrix(Y.assign(e)),t)}function ne(e,t){return this.invOriginMatrix.multDirMatrix(this.elevationFrame.normal(this.originMatrix.multVecMatrix(Y.assign(e)),t))}function oe(e,t){return se.call(this,e,t).multRight(this.invOriginMatrix)}function se(e,t){return this.referenceFrame.convert(e,$),this.elevationFrame.normal($,J),K.set(0,0,1).cross(J),K.equals(f().Zero)&&K.set(1,0,0),Q.assign(K).cross(J),K.normalize(),Q.normalize(),t.set(K.x,K.y,K.z,0,J.x,J.y,J.z,0,Q.x,Q.y,Q.z,0,$.x,$.y,$.z,1)}Object.assign(ee.prototype,{initialize(){this._geoSystem.addInterest("set_geoSystem__",this),this._geoOrigin.addInterest("set_geoOrigin__",this),this.set_geoSystem__(),this.set_geoOrigin__()},set_geoSystem__(){this.coordinateSystem=B.getCoordinateSystem(this._geoSystem),this.referenceFrame=B.getReferenceFrame(this._geoSystem,this.radians),this.elevationFrame=B.getElevationFrame(this._geoSystem,this.radians),this.standardOrder=B.isStandardOrder(this._geoSystem)},set_geoOrigin__(){this.geoOriginNode&&(this.geoOriginNode.removeInterest("set_origin__",this),this.geoOriginNode.removeInterest("set_rotateYUp__",this),this.geoOriginNode.removeInterest("addNodeEvent",this)),this.geoOriginNode=q()(u().GeoOrigin,this._geoOrigin),this.geoOriginNode&&(this.geoOriginNode.addInterest("set_origin__",this),this.geoOriginNode.addInterest("set_rotateYUp__",this),this.geoOriginNode.addInterest("addNodeEvent",this)),this.set_origin__(),this.set_rotateYUp__()},set_origin__(){this.geoOriginNode?this.geoOriginNode.getOrigin(this.origin):this.origin.set(0,0,0),this.set_originMatrix__()},set_originMatrix__(){if(this.geoOriginNode){var e=this.origin;this.elevationFrame.normal(e,J),K.set(0,0,1).cross(J),K.equals(f().Zero)&&K.set(1,0,0),Q.assign(K).cross(J),K.normalize(),Q.normalize(),this.originMatrix.set(K.x,K.y,K.z,0,J.x,J.y,J.z,0,Q.x,Q.y,Q.z,0,e.x,e.y,e.z,1),this.invOriginMatrix.assign(this.originMatrix).inverse()}},set_rotateYUp__(){this.geoOriginNode&&this.geoOriginNode._rotateYUp.getValue()?(this.getCoord=te,this.getGeoCoord=ie,this.getGeoUpVector=ne,this.getLocationMatrix=oe):(delete this.getCoord,delete this.getGeoCoord,delete this.getGeoUpVector,delete this.getLocationMatrix)},getReferenceFrame(){return this.referenceFrame},getStandardOrder(){return this.standardOrder},getCoord(e,t){return this.referenceFrame.convert(e,t).subtract(this.origin)},getGeoCoord(e,t){return this.referenceFrame.apply(Y.assign(e).add(this.origin),t)},getGeoElevation(e){return this.getGeoCoord(e,Z).z},getGeoUpVector(e,t){return this.elevationFrame.normal(Y.assign(e).add(this.origin),t)},getLocationMatrix(e,t){var i=this.origin,n=se.call(this,e,t);return n[12]-=i.x,n[13]-=i.y,n[14]-=i.z,n},dispose(){}}),Object.defineProperties(ee,{typeName:{value:"X3DGeospatialObject",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0}});const re=ee;g().set("x_ite/Components/Geospatial/X3DGeospatialObject",re);const ae=re,le=window[Symbol.for("X_ITE.X3D-8.9.1")].require("standard/Math/Geometry/Triangle3");var he=e.n(le);function de(e){d().call(this,e),ae.call(this,e),this.addType(u().GeoCoordinate)}Object.assign(Object.setPrototypeOf(de.prototype,d().prototype),ae.prototype,{initialize(){d().prototype.initialize.call(this),ae.prototype.initialize.call(this)},set1Point:(()=>{const e=new(f())(0,0,0);return function(t,i){this._point[t]=this.getGeoCoord(i,e)}})(),get1Point:(()=>{const e=new(f())(0,0,0);return function(t,i){if(t<this.length){const n=this.point;return t*=3,this.getCoord(e.set(n[t],n[t+1],n[t+2]),i)}return i.set(0,0,0)}})(),addPoint:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0);return function(i,n){if(i<this.length){const o=this.point;i*=3,this.getCoord(e.set(o[i],o[i+1],o[i+2]),t),n.push(t[0],t[1],t[2],1)}else n.push(0,0,0,1)}})(),addPoints:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0);return function(i,n){const o=this.point;for(let n=0,s=3*this.length;n<s;n+=3)this.getCoord(e.set(o[n],o[n+1],o[n+2]),t),i.push(t[0],t[1],t[2],1);for(let e=3*this.length,t=3*n;e<t;e+=3)i.push(0,0,0,1)}})(),getNormal:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0),i=new(f())(0,0,0);return function(n,o,s){const r=this.length;return n<r&&o<r&&s<r?he().normal(this.get1Point(n,e),this.get1Point(o,t),this.get1Point(s,i),new(f())(0,0,0)):new(f())(0,0,0)}})(),getQuadNormal:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0),i=new(f())(0,0,0),n=new(f())(0,0,0);return function(o,s,r,a){const l=this.length;return o<l&&s<l&&r<l&&a<l?he().quadNormal(this.get1Point(o,e),this.get1Point(s,t),this.get1Point(r,i),this.get1Point(a,n),new(f())(0,0,0)):new(f())(0,0,0)}})(),dispose(){ae.prototype.dispose.call(this),d().prototype.dispose.call(this)}}),Object.defineProperties(de,{typeName:{value:"GeoCoordinate",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"coord",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"point",new(o().MFVec3d))]),enumerable:!0}});const ce=de;g().set("x_ite/Components/Geospatial/GeoCoordinate",ce);const ue=ce,pe=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Rendering/X3DGeometryNode");var ge=e.n(pe);const _e=window[Symbol.for("X_ITE.X3D-8.9.1")].require("standard/Math/Numbers/Vector2");var we=e.n(_e);function me(e){ge().call(this,e),ae.call(this,e),this.addType(u().GeoElevationGrid),this._creaseAngle.setUnit("angle"),this._height.setUnit("length"),this.colorNode=null,this.texCoordNode=null,this.normalNode=null}Object.assign(Object.setPrototypeOf(me.prototype,ge().prototype),ae.prototype,{initialize(){ge().prototype.initialize.call(this),ae.prototype.initialize.call(this),this._color.addInterest("set_color__",this),this._texCoord.addInterest("set_texCoord__",this),this._normal.addInterest("set_normal__",this),this.set_color__(),this.set_texCoord__(),this.set_normal__()},set_color__(){this.colorNode?.removeInterest("requestRebuild",this),this.colorNode=q()(u().X3DColorNode,this._color),this.colorNode?.addInterest("requestRebuild",this),this.setTransparent(this.colorNode?.isTransparent()??!1)},set_texCoord__(){this.texCoordNode?.removeInterest("requestRebuild",this),this.texCoordNode=q()(u().X3DTextureCoordinateNode,this._texCoord),this.texCoordNode?.addInterest("requestRebuild",this),this.setTextureCoordinate(this.texCoordNode)},set_normal__(){this.normalNode?.removeInterest("requestRebuild",this),this.normalNode=q()(u().X3DNormalNode,this._normal),this.normalNode?.addInterest("requestRebuild",this)},getColor(){return this.colorNode},getTexCoord(){return this.texCoordNode},getNormal(){return this.normalNode},getHeight(e){return e<this._height.length?this._height[e]*this._yScale.getValue():0},createTexCoords(){for(var e=[],t=this._xDimension.getValue(),i=this._zDimension.getValue(),n=t-1,o=i-1,s=0;s<i;++s)for(var r=0;r<t;++r)e.push(new(we())(r/n,s/o));return e},createNormals(e,t,i){for(var n=!this._ccw.getValue(),o=[],s=[],r=0;r<e.length;++r)o[r]=[];for(var a=0;a<t.length;a+=3){var l=t[a],h=t[a+1],d=t[a+2];o[l].push(s.length),o[h].push(s.length+1),o[d].push(s.length+2);var c=he().normal(e[l],e[h],e[d],new(f())(0,0,0));n&&c.negate(),s.push(c),s.push(c),s.push(c)}return this.refineNormals(o,s,this._creaseAngle.getValue())},createCoordIndex(){for(var e=[],t=this._xDimension.getValue(),i=t-1,n=this._zDimension.getValue()-1,o=0;o<n;++o)for(var s=0;s<i;++s){var r=o*t+s,a=(o+1)*t+s,l=(o+1)*t+(s+1),h=o*t+(s+1);e.push(r),e.push(l),e.push(a),e.push(r),e.push(h),e.push(l)}return e},createPoints(){var e=[],t=this._xDimension.getValue(),i=this._zDimension.getValue(),n=this._xSpacing.getValue(),o=this._zSpacing.getValue();if(this.getStandardOrder())for(var s=0;s<i;++s)for(var r=0;r<t;++r){(a=new(f())(o*s,n*r,this.getHeight(r+s*t))).add(this._geoGridOrigin.getValue()),e.push(this.getCoord(a,a))}else for(s=0;s<i;++s)for(r=0;r<t;++r){var a;(a=new(f())(n*r,o*s,this.getHeight(r+s*t))).add(this._geoGridOrigin.getValue()),e.push(this.getCoord(a,a))}return e},build(){if(!(this._xDimension.getValue()<2||this._zDimension.getValue()<2)){var e=this._colorPerVertex.getValue(),t=this._normalPerVertex.getValue(),i=this.createCoordIndex(),n=this.getColor(),o=this.getTexCoord(),s=this.getNormal(),r=this.createPoints(),a=this.getColors(),l=this.getMultiTexCoords(),h=this.getNormals(),d=this.getVertices(),c=0;if(o)o.init(l);else{var u=this.createTexCoords(),p=this.getTexCoords();l.push(p)}for(var g=0;g<i.length;++c)for(var _=0;_<6;++_,++g){var w=i[g],m=r[w];if(n&&(e?n.addColor(w,a):n.addColor(c,a)),o)o.addPoint(w,l);else{var O=u[w];p.push(O.x,O.y,0,1)}s&&(t?s.addVector(w,h):s.addVector(c,h)),d.push(m.x,m.y,m.z,1)}if(!s)for(var y=this.createNormals(r,i),b=0;b<y.length;++b){var f=y[b];h.push(f.x,f.y,f.z)}this.setSolid(this._solid.getValue()),this.setCCW(this._ccw.getValue())}},dispose(){ae.prototype.dispose.call(this),ge().prototype.dispose.call(this)}}),Object.defineProperties(me,{typeName:{value:"GeoElevationGrid",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().initializeOnly,"geoGridOrigin",new(o().SFVec3d)),new(r())(u().initializeOnly,"xDimension",new(o().SFInt32)),new(r())(u().initializeOnly,"zDimension",new(o().SFInt32)),new(r())(u().initializeOnly,"xSpacing",new(o().SFDouble)(1)),new(r())(u().initializeOnly,"zSpacing",new(o().SFDouble)(1)),new(r())(u().inputOutput,"yScale",new(o().SFFloat)(1)),new(r())(u().initializeOnly,"solid",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"ccw",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"creaseAngle",new(o().SFDouble)),new(r())(u().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(r())(u().inputOutput,"color",new(o().SFNode)),new(r())(u().inputOutput,"texCoord",new(o().SFNode)),new(r())(u().inputOutput,"normal",new(o().SFNode)),new(r())(u().inputOutput,"height",new(o().MFDouble)(0,0))]),enumerable:!0}});const Oe=me;g().set("x_ite/Components/Geospatial/GeoElevationGrid",Oe);const ye=Oe,be=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Core/X3DChildNode");var fe=e.n(be);const Se=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Grouping/X3DBoundedObject");var ve=e.n(Se);const Ie=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Rendering/TraverseType");var Fe=e.n(Ie);const xe=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Grouping/Group");var Ce=e.n(xe);const Ne=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Networking/Inline");var Me=e.n(Ne);const je=window[Symbol.for("X_ITE.X3D-8.9.1")].require("standard/Math/Geometry/Box3");var ze=e.n(je),Ge=new(f())(0,0,0);function Ve(e){fe().call(this,e),ve().call(this,e),ae.call(this,e),this.addType(u().GeoLOD),this._range.setUnit("length"),this.unload=!1,this.rootGroup=new(Ce())(this.getBrowser().getPrivateScene()),this.rootInline=new(Me())(e),this.child1Inline=new(Me())(e),this.child2Inline=new(Me())(e),this.child3Inline=new(Me())(e),this.child4Inline=new(Me())(e),this.childrenLoaded=!1,this.childBBox=new(ze()),this.keepCurrentLevel=!1,this.modelViewMatrix=new(H())}Object.assign(Object.setPrototypeOf(Ve.prototype,fe().prototype),ve().prototype,ae.prototype,{initialize(){fe().prototype.initialize.call(this),ve().prototype.initialize.call(this),ae.prototype.initialize.call(this),this._rootNode.addFieldInterest(this.rootGroup._children),this.rootGroup._children=this._rootNode,this.rootGroup.setPrivate(!0),this.rootGroup.setup(),this.rootInline._loadState.addInterest("set_rootLoadState__",this),this.child1Inline._loadState.addInterest("set_childLoadState__",this),this.child2Inline._loadState.addInterest("set_childLoadState__",this),this.child3Inline._loadState.addInterest("set_childLoadState__",this),this.child4Inline._loadState.addInterest("set_childLoadState__",this),this._rootUrl.addFieldInterest(this.rootInline._url),this._child1Url.addFieldInterest(this.child1Inline._url),this._child2Url.addFieldInterest(this.child2Inline._url),this._child3Url.addFieldInterest(this.child3Inline._url),this._child4Url.addFieldInterest(this.child4Inline._url),this.rootInline._load=!0,this.child1Inline._load=!1,this.child2Inline._load=!1,this.child3Inline._load=!1,this.child4Inline._load=!1,this.rootInline._url=this._rootUrl,this.child1Inline._url=this._child1Url,this.child2Inline._url=this._child2Url,this.child3Inline._url=this._child3Url,this.child4Inline._url=this._child4Url,this.rootInline.setup(),this.child1Inline.setup(),this.child2Inline.setup(),this.child3Inline.setup(),this.child4Inline.setup()},getBBox(e,t){if(this._bboxSize.getValue().equals(this.getDefaultBBoxSize())){switch(this.childrenLoaded?this._level_changed.getValue():0){case 0:return this._rootNode.length?this.rootGroup.getBBox(e,t):this.rootInline.getBBox(e,t);case 1:{const i=this.childBBox;return e.set(),e.add(this.child1Inline.getBBox(i,t)),e.add(this.child2Inline.getBBox(i,t)),e.add(this.child3Inline.getBBox(i,t)),e.add(this.child4Inline.getBBox(i,t)),e}}return e.set()}return e.set(this._bboxSize.getValue(),this._bboxCenter.getValue())},set_rootLoadState__(){0===this._level_changed.getValue()&&(this._rootNode.length||this.rootInline.checkLoadState()===u().COMPLETE_STATE&&(this._children=this.rootInline.getInternalScene().getRootNodes(),this.childrenLoaded=!1))},set_childLoadState__(){if(1===this._level_changed.getValue()){var e=0;if(this.child1Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child1Inline.checkLoadState()!==u().FAILED_STATE||++e,this.child2Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child2Inline.checkLoadState()!==u().FAILED_STATE||++e,this.child3Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child3Inline.checkLoadState()!==u().FAILED_STATE||++e,this.child4Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child4Inline.checkLoadState()!==u().FAILED_STATE||++e,4===e){this.childrenLoaded=!0;var t=this._children;t.length=0;for(var i=0,n=(o=this.child1Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i]);for(i=0,n=(o=this.child2Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i]);for(i=0,n=(o=this.child3Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i]);var o;for(i=0,n=(o=this.child4Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i])}}},set_childCameraObject__(){this.setCameraObject(this.child1Inline.isCameraObject()||this.child2Inline.isCameraObject()||this.child3Inline.isCameraObject()||this.child4Inline.isCameraObject())},set_childPickableObject__(){this.setPickableObject(this.child1Inline.isPickableObject()||this.child2Inline.isPickableObject()||this.child3Inline.isPickableObject()||this.child4Inline.isPickableObject())},getLevel(e){return this.getDistance(e)<this._range.getValue()?1:0},getDistance(e){return e.translate(this.getCoord(this._center.getValue(),Ge)),e.origin.magnitude()},traverse(e,t){switch(e){case Fe().PICKING:var i=this.getBrowser().getPickingHierarchy();return i.push(this),this.traverseChildren(e,t),void i.pop();case Fe().DISPLAY:var n=this.getLevel(this.modelViewMatrix.assign(t.getModelViewMatrix().get()));if(n!==this._level_changed.getValue())switch(this._level_changed=n,n){case 0:this.child1Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child2Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child3Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child4Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child1Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child2Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child3Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child4Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this._rootNode.length?(this.rootGroup._isCameraObject.addFieldInterest(this._isCameraObject),this.rootGroup._isPickableObject.addFieldInterest(this._isPickableObject),this.setCameraObject(this.rootGroup.isCameraObject()),this.setPickableObject(this.rootGroup.isPickableObject()),this._children=this._rootNode,this.childrenLoaded=!1):this.rootInline.checkLoadState()==u().COMPLETE_STATE&&(this.rootInline._isCameraObject.addFieldInterest(this._isCameraObject),this.rootInline._isPickableObject.addFieldInterest(this._isPickableObject),this.setCameraObject(this.rootInline.isCameraObject()),this.setPickableObject(this.rootInline.isPickableObject()),this._children=this.rootInline.getInternalScene().getRootNodes(),this.childrenLoaded=!1),this.unload&&(this.child1Inline._load=!1,this.child2Inline._load=!1,this.child3Inline._load=!1,this.child4Inline._load=!1);break;case 1:this._rootNode.length?(this.rootGroup._isCameraObject.removeFieldInterest(this._isCameraObject),this.rootGroup._isPickableObject.removeFieldInterest(this._isPickableObject)):(this.rootInline._isCameraObject.removeFieldInterest(this._isCameraObject),this.rootInline._isPickableObject.removeFieldInterest(this._isPickableObject)),this.child1Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child2Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child3Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child4Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child1Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child2Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child3Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child4Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.set_childCameraObject__(),this.set_childPickableObject__(),this.child1Inline._load.getValue()?this.set_childLoadState__():(this.child1Inline._load=!0,this.child2Inline._load=!0,this.child3Inline._load=!0,this.child4Inline._load=!0)}return void this.traverseChildren(e,t);default:return void this.traverseChildren(e,t)}},traverseChildren(e,t){switch(this.childrenLoaded?this._level_changed.getValue():0){case 0:this._rootNode.length?this.rootGroup.traverse(e,t):this.rootInline.traverse(e,t);break;case 1:this.child1Inline.traverse(e,t),this.child2Inline.traverse(e,t),this.child3Inline.traverse(e,t),this.child4Inline.traverse(e,t)}},dispose(){ae.prototype.dispose.call(this),ve().prototype.dispose.call(this),fe().prototype.dispose.call(this)}}),Object.defineProperties(Ve,{typeName:{value:"GeoLOD",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().initializeOnly,"rootUrl",new(o().MFString)),new(r())(u().initializeOnly,"child1Url",new(o().MFString)),new(r())(u().initializeOnly,"child2Url",new(o().MFString)),new(r())(u().initializeOnly,"child3Url",new(o().MFString)),new(r())(u().initializeOnly,"child4Url",new(o().MFString)),new(r())(u().initializeOnly,"center",new(o().SFVec3d)),new(r())(u().initializeOnly,"range",new(o().SFFloat)(10)),new(r())(u().outputOnly,"level_changed",new(o().SFInt32)(-1)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().initializeOnly,"rootNode",new(o().MFNode)),new(r())(u().outputOnly,"children",new(o().MFNode))]),enumerable:!0}});const De=Ve;g().set("x_ite/Components/Geospatial/GeoLOD",De);const Pe=De,Ee=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Grouping/X3DTransformMatrix3DNode");var Te=e.n(Ee),Xe=new(H());function ke(e){Te().call(this,e),ae.call(this,e),this.addType(u().GeoLocation)}Object.assign(Object.setPrototypeOf(ke.prototype,Te().prototype),ae.prototype,{initialize(){Te().prototype.initialize.call(this),ae.prototype.initialize.call(this),this.addInterest("eventsProcessed",this),this.eventsProcessed()},eventsProcessed(){this.setMatrix(this.getLocationMatrix(this._geoCoords.getValue(),Xe))},dispose(){ae.prototype.dispose.call(this),Te().prototype.dispose.call(this)}}),Object.defineProperties(ke,{typeName:{value:"GeoLocation",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCoords",new(o().SFVec3d)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(o().MFNode)),new(r())(u().inputOnly,"removeChildren",new(o().MFNode)),new(r())(u().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const Le=ke;g().set("x_ite/Components/Geospatial/GeoLocation",Le);const Re=Le,Ae=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Core/X3DInfoNode");var Be=e.n(Ae);const Ue=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Networking/X3DUrlObject");var qe=e.n(Ue);function We(e){Be().call(this,e),qe().call(this,e),this.addType(u().GeoMetadata)}Object.assign(Object.setPrototypeOf(We.prototype,Be().prototype),qe().prototype,{initialize(){Be().prototype.initialize.call(this),qe().prototype.initialize.call(this)},requestImmediateLoad(e=!0){},dispose(){qe().prototype.dispose.call(this),Be().prototype.dispose.call(this)}}),Object.defineProperties(We,{typeName:{value:"GeoMetadata",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"load",new(o().SFBool)(!0)),new(r())(u().inputOutput,"url",new(o().MFString)),new(r())(u().inputOutput,"autoRefresh",new(o().SFTime)),new(r())(u().inputOutput,"autoRefreshTimeLimit",new(o().SFTime)(3600)),new(r())(u().inputOutput,"summary",new(o().MFString)),new(r())(u().inputOutput,"data",new(o().MFNode))]),enumerable:!0}});const He=We;g().set("x_ite/Components/Geospatial/GeoMetadata",He);const Ye=He,Ze=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Core/X3DNode");var $e=e.n(Ze);function Ke(e){$e().call(this,e),this.addType(u().GeoOrigin),this.radians=!1}Object.assign(Object.setPrototypeOf(Ke.prototype,$e().prototype),{initialize(){$e().prototype.initialize.call(this),this._geoSystem.addInterest("set_geoSystem__",this),this.set_geoSystem__()},set_geoSystem__(){this.referenceFrame=B.getReferenceFrame(this._geoSystem,this.radians)},getOrigin(e){return this.referenceFrame.convert(this._geoCoords.getValue(),e)}}),Object.defineProperties(Ke,{typeName:{value:"GeoOrigin",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"geoOrigin",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCoords",new(o().SFVec3d)),new(r())(u().initializeOnly,"rotateYUp",new(o().SFBool))]),enumerable:!0}});const Je=Ke;g().set("x_ite/Components/Geospatial/GeoOrigin",Je);const Qe=Je,et=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Interpolation/X3DInterpolatorNode");var tt=e.n(et);function it(e){tt().call(this,e),ae.call(this,e),this.addType(u().GeoPositionInterpolator),this._value_changed.setUnit("length"),this.geocentric=new P}Object.assign(Object.setPrototypeOf(it.prototype,tt().prototype),ae.prototype,{setup(){ae.prototype.initialize.call(this),tt().prototype.setup.call(this)},initialize(){tt().prototype.initialize.call(this),this._keyValue.addInterest("set_keyValue__",this)},set_keyValue__(){const e=this._key,t=this._keyValue;t.length<e.length&&t.resize(e.length,t.length?t[t.length-1]:new(o().SFVec3f))},interpolate:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0),i=new(f())(0,0,0);return function(n,o,s){this.getCoord(this._keyValue[n].getValue(),e),this.getCoord(this._keyValue[o].getValue(),t);const r=this.geocentric.slerp(e,t,s);this._geovalue_changed=this.getGeoCoord(r,i),this._value_changed=r}})(),dispose(){ae.prototype.dispose.call(this),tt().prototype.dispose.call(this)}}),Object.defineProperties(it,{typeName:{value:"GeoPositionInterpolator",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOnly,"set_fraction",new(o().SFFloat)),new(r())(u().inputOutput,"key",new(o().MFFloat)),new(r())(u().inputOutput,"keyValue",new(o().MFVec3d)),new(r())(u().outputOnly,"value_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"geovalue_changed",new(o().SFVec3d))]),enumerable:!0}});const nt=it;g().set("x_ite/Components/Geospatial/GeoPositionInterpolator",nt);const ot=nt,st=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode");var rt=e.n(st);const at=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/EnvironmentalSensor/ProximitySensor");var lt=e.n(at),ht=new(f())(0,0,0);function dt(e){rt().call(this,e),ae.call(this,e),this.addType(u().GeoProximitySensor),this._position_changed.setUnit("length"),this._centerOfRotation_changed.setUnit("length"),this.proximitySensor=new(lt())(e),this.setCameraObject(this.proximitySensor.isCameraObject()),this.setPickableObject(this.proximitySensor.isPickableObject())}Object.assign(Object.setPrototypeOf(dt.prototype,rt().prototype),ae.prototype,{initialize(){rt().prototype.initialize.call(this),ae.prototype.initialize.call(this),this._enabled.addFieldInterest(this.proximitySensor._enabled),this._size.addFieldInterest(this.proximitySensor._size),this._center.addFieldInterest(this.proximitySensor._center),this.proximitySensor._isCameraObject.addFieldInterest(this._isCameraObject),this.proximitySensor._isPickableObject.addFieldInterest(this._isPickableObject),this.proximitySensor._isActive.addFieldInterest(this._isActive),this.proximitySensor._enterTime.addFieldInterest(this._enterTime),this.proximitySensor._exitTime.addFieldInterest(this._exitTime),this.proximitySensor._position_changed.addFieldInterest(this._position_changed),this.proximitySensor._orientation_changed.addFieldInterest(this._orientation_changed),this.proximitySensor._centerOfRotation_changed.addFieldInterest(this._centerOfRotation_changed),this.proximitySensor._position_changed.addInterest("set_position__",this),this.proximitySensor._enabled=this._enabled,this.proximitySensor._size=this._size,this.proximitySensor._center=this._center,this.proximitySensor.setup()},set_position__(e){this._geoCoord_changed=this.getGeoCoord(this.proximitySensor._position_changed.getValue(),ht)},traverse(e,t){this.proximitySensor.traverse(e,t)},dispose(){ae.prototype.dispose.call(this),rt().prototype.dispose.call(this)}}),Object.defineProperties(dt,{typeName:{value:"GeoProximitySensor",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"size",new(o().SFVec3f)),new(r())(u().inputOutput,"center",new(o().SFVec3f)),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"enterTime",new(o().SFTime)),new(r())(u().outputOnly,"exitTime",new(o().SFTime)),new(r())(u().outputOnly,"geoCoord_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"position_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"orientation_changed",new(o().SFRotation)),new(r())(u().outputOnly,"centerOfRotation_changed",new(o().SFVec3f))]),enumerable:!0}});const ct=dt;g().set("x_ite/Components/Geospatial/GeoProximitySensor",ct);const ut=ct,pt=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode");var gt=e.n(pt);function _t(e){gt().call(this,e),ae.call(this,e),this.addType(u().GeoTouchSensor),this._hitPoint_changed.setUnit("length")}Object.assign(Object.setPrototypeOf(_t.prototype,gt().prototype),ae.prototype,{initialize(){gt().prototype.initialize.call(this),ae.prototype.initialize.call(this)},set_over__:(()=>{const e=new(f())(0,0,0);return function(t,i,n,o,s){gt().prototype.set_over__.call(this,t,i,n,o,s),this._isOver.getValue()&&(this._hitGeoCoord_changed=this.getGeoCoord(this._hitPoint_changed.getValue(),e))}})(),dispose(){ae.prototype.dispose.call(this),gt().prototype.dispose.call(this)}}),Object.defineProperties(_t,{typeName:{value:"GeoTouchSensor",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().outputOnly,"hitTexCoord_changed",new(o().SFVec2f)),new(r())(u().outputOnly,"hitNormal_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"hitPoint_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"hitGeoCoord_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"isOver",new(o().SFBool)),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"touchTime",new(o().SFTime))]),enumerable:!0}});const wt=_t;g().set("x_ite/Components/Geospatial/GeoTouchSensor",wt);const mt=wt;var Ot=new(H()),yt=new(H());function bt(e){Te().call(this,e),ae.call(this,e),this.addType(u().GeoTransform),this._translation.setUnit("length")}Object.assign(Object.setPrototypeOf(bt.prototype,Te().prototype),ae.prototype,{initialize(){Te().prototype.initialize.call(this),ae.prototype.initialize.call(this),this.addInterest("eventsProcessed",this),this.eventsProcessed()},eventsProcessed(){this.getLocationMatrix(this._geoCenter.getValue(),yt),Ot.set(this._translation.getValue(),this._rotation.getValue(),this._scale.getValue(),this._scaleOrientation.getValue()),this.setMatrix(Ot.multRight(yt).multLeft(yt.inverse()))},dispose(){ae.prototype.dispose.call(this),Te().prototype.dispose.call(this)}}),Object.defineProperties(bt,{typeName:{value:"GeoTransform",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"translation",new(o().SFVec3f)),new(r())(u().inputOutput,"rotation",new(o().SFRotation)),new(r())(u().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(u().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCenter",new(o().SFVec3d)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(o().MFNode)),new(r())(u().inputOnly,"removeChildren",new(o().MFNode)),new(r())(u().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const ft=bt;g().set("x_ite/Components/Geospatial/GeoTransform",ft);const St=ft,vt=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Navigation/X3DViewpointNode");var It=e.n(vt);const Ft=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Navigation/Viewpoint");var xt=e.n(Ft);const Ct=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Navigation/NavigationInfo");var Nt=e.n(Ct);const Mt=window[Symbol.for("X_ITE.X3D-8.9.1")].require("standard/Math/Numbers/Rotation4");var jt=e.n(Mt);function zt(e){It().call(this,e),ae.call(this,e),this.addType(u().GeoViewpoint),this.addChildObjects("navType",new(o().MFString)("EXAMINE","ANY"),"headlight",new(o().SFBool)(!0)),e.getSpecificationVersion()<=3.2&&(this.addAlias("navType",this._navType),this.addAlias("headlight",this._headlight),this.traverse=Gt),this._centerOfRotation.setUnit("length"),this._fieldOfView.setUnit("angle"),this.geoNavigationInfoNode=new(Nt())(e),this.projectionMatrix=new(H()),this.elevation=0}function Gt(e,t){It().prototype.traverse.call(this,e,t),this.geoNavigationInfoNode.traverse(e,t)}Object.assign(Object.setPrototypeOf(zt.prototype,It().prototype),ae.prototype,{initialize(){It().prototype.initialize.call(this),ae.prototype.initialize.call(this);const e=this.getBrowser().getContext();this.logarithmicDepthBuffer=e.HAS_FEATURE_FRAG_DEPTH,this._position.addInterest("set_position__",this),this._positionOffset.addInterest("set_position__",this),this._navType.addFieldInterest(this.geoNavigationInfoNode._type),this._headlight.addFieldInterest(this.geoNavigationInfoNode._headlight),this.geoNavigationInfoNode._type=this._navType,this.geoNavigationInfoNode._headlight=this._headlight,this.geoNavigationInfoNode.setup(),this.getExecutionContext().getSpecificationVersion()<=3.2&&(this._navigationInfo=this.geoNavigationInfoNode),this.set_position__()},getRelativeTransformation:xt().prototype.getRelativeTransformation,setInterpolators:xt().prototype.setInterpolators,getFieldOfView:xt().prototype.getFieldOfView,getScreenScale:xt().prototype.getScreenScale,getViewportSize:xt().prototype.getViewportSize,getLookAtDistance:xt().prototype.getLookAtDistance,getProjectionMatrixWithLimits:xt().prototype.getProjectionMatrixWithLimits,getLogarithmicDepthBuffer(){return this.logarithmicDepthBuffer},setPosition:(()=>{const e=new(f())(0,0,0);return function(t){this._position.setValue(this.getGeoCoord(t,e))}})(),getPosition:(()=>{const e=new(f())(0,0,0);return function(){return this.getCoord(this._position.getValue(),e)}})(),set_position__:(()=>{const e=new(f())(0,0,0);return function(){this.getCoord(this._position.getValue(),e),this.elevation=this.getGeoElevation(e.add(this._positionOffset.getValue()))}})(),setOrientation:(()=>{const e=new(H()),t=new(jt());return function(i){const n=this.getLocationMatrix(this._position.getValue(),e).submatrix;t.setMatrix(n),this._orientation.setValue(t.inverse().multLeft(i))}})(),getOrientation:(()=>{const e=new(H()),t=new(jt());return function(){const i=this.getLocationMatrix(this._position.getValue(),e).submatrix;return t.setMatrix(i),t.multLeft(this._orientation.getValue())}})(),getCenterOfRotation:(()=>{const e=new(f())(0,0,0);return function(){return this.getCoord(this._centerOfRotation.getValue(),e)}})(),getMaxFarValue:()=>1e9,getUpVector:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0);return function(i=!1){return!i||this.getUserPosition().magnitude()<65e5?(this.getCoord(this._position.getValue(),e),this.getGeoUpVector(e.add(this._positionOffset.getValue()),t)):t.assign(f().zAxis)}})(),getSpeedFactor(){return(Math.max(this.elevation,0)+10)/10*this._speedFactor.getValue()},dispose(){ae.prototype.dispose.call(this),It().prototype.dispose.call(this)}}),Object.defineProperties(zt,{typeName:{value:"GeoViewpoint",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOnly,"set_bind",new(o().SFBool)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"position",new(o().SFVec3d)(0,0,1e5)),new(r())(u().inputOutput,"orientation",new(o().SFRotation)),new(r())(u().inputOutput,"centerOfRotation",new(o().SFVec3d)),new(r())(u().inputOutput,"fieldOfView",new(o().SFFloat)(.785398)),new(r())(u().inputOutput,"nearDistance",new(o().SFFloat)(-1)),new(r())(u().inputOutput,"farDistance",new(o().SFFloat)(-1)),new(r())(u().inputOutput,"viewAll",new(o().SFBool)),new(r())(u().inputOutput,"jump",new(o().SFBool)(!0)),new(r())(u().inputOutput,"retainUserOffsets",new(o().SFBool)),new(r())(u().initializeOnly,"speedFactor",new(o().SFFloat)(1)),new(r())(u().outputOnly,"isBound",new(o().SFBool)),new(r())(u().outputOnly,"bindTime",new(o().SFTime)),new(r())(u().inputOutput,"navigationInfo",new(o().SFNode))]),enumerable:!0}});const Vt=zt;g().set("x_ite/Components/Geospatial/GeoViewpoint",Vt);const Dt=Vt;i().add({name:"Geospatial",concreteNodes:[ue,ye,Pe,Re,Ye,Qe,ot,ut,mt,St,Dt],abstractNodes:[ae]});const Pt=void 0;g().set("assets/components/Geospatial",Pt)})();
|
|
1
|
+
/* X_ITE v8.9.3 */(()=>{"use strict";var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components");var i=e.n(t);const n=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Fields");var o=e.n(n);const s=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const a=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Base/FieldDefinitionArray");var l=e.n(a);const h=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Rendering/X3DCoordinateNode");var d=e.n(h);const c=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Base/X3DConstants");var u=e.n(c);const p=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Namespace");var g=e.n(p);function _(e,t){switch(arguments.length){case 0:this.semiMajorAxis=0,this.semiMinorAxis=0;break;case 2:this.semiMajorAxis=e,this.semiMinorAxis=t;break;case 3:const i=arguments[1];this.semiMajorAxis=e,this.semiMinorAxis=e*(1-1/i)}}Object.assign(_.prototype,{getSemiMajorAxis(){return this.semiMajorAxis},getSemiMinorAxis(){return this.semiMinorAxis},toString(){return`${this.semiMajorAxis} ${this.semiMinorAxis}`}});const w=_;g().set("standard/Math/Geometry/Spheroid3",w);const m=w,O={AA:new m(6377563.396,299.3249646,!0),AM:new m(6377340.189,299.3249646,!0),AN:new m(6378160,298.25,!0),BN:new m(6377483.865,299.1528128,!0),BR:new m(6377397.155,299.1528128,!0),CC:new m(6378206.4,294.9786982,!0),CD:new m(6378249.145,293.465,!0),EA:new m(6377276.345,300.8017,!0),EB:new m(6377298.556,300.8017,!0),EC:new m(6377301.243,300.8017,!0),ED:new m(6377295.664,300.8017,!0),EE:new m(6377304.063,300.8017,!0),EF:new m(6377309.613,300.8017,!0),FA:new m(6378155,298.3,!0),HE:new m(6378200,298.3,!0),HO:new m(6378270,297,!0),ID:new m(6378160,298.247,!0),IN:new m(6378388,297,!0),KA:new m(6378245,298.3,!0),RF:new m(6378137,298.257222101,!0),SA:new m(6378160,298.25,!0),WD:new m(6378135,298.26,!0),WE:new m(6378137,298.257223563,!0),SUN:new m(696342e3,1/9e-6,!0),MERCURY:new m(2439700,2439700),VENUS:new m(6051800,6051800),MOON:new m(1738140,1735970),MARS:new m(3395428,3377678),JUPITER:new m(71492e3,66854e3),SATURN:new m(60268e3,54364e3),URANUS:new m(2555e3,24973e3),NEPTUNE:new m(24764e3,24341e3),PLUTO:new m(1153e3,1153e3)};g().set("standard/Geospatial/ReferenceEllipsoids",O);const y=O,b=window[Symbol.for("X_ITE.X3D-8.9.3")].require("standard/Math/Numbers/Vector3");var f=e.n(b);const S=window[Symbol.for("X_ITE.X3D-8.9.3")].require("standard/Math/Algorithm");var I=e.n(S);function v(e,t,i){this.longitudeFirst=!t,this.degrees=!i,this.a=e.getSemiMajorAxis(),this.c=e.getSemiMinorAxis(),this.c2a2=Math.pow(e.getSemiMinorAxis()/this.a,2),this.ecc2=1-this.c2a2}Object.assign(v.prototype,{convert(e,t){const i=e.z;if(this.longitudeFirst)var n=e.y,o=e.x;else n=e.x,o=e.y;return this.degrees&&(n*=Math.PI/180,o*=Math.PI/180),this.convertRadians(n,o,i,t)},convertRadians(e,t,i,n){const o=Math.sin(e),s=Math.pow(o,2),r=Math.cos(e),a=this.a/Math.sqrt(1-this.ecc2*s),l=(a+i)*r;return n.set(l*Math.cos(t),l*Math.sin(t),(a*this.c2a2+i)*o)},apply(e,t){if(this.applyRadians(e,t),this.degrees&&(t.x*=180/Math.PI,t.y*=180/Math.PI),this.longitudeFirst){const e=t.x;t.x=t.y,t.y=e}return t},applyRadians(e,t){const i=e.x,n=e.y,o=e.z,s=Math.sqrt(i*i+n*n);if(0==s)return t.set(Math.PI,0,o-this.c);let r=0,a=Math.atan2(n,i),l=0,h=this.a,d=h,c=this.ecc2;for(let e=0;e<30;++e){const e=l,t=r;r=Math.atan(o/s/(1-c*d/(d+l)));const i=Math.sin(r);if(d=h/Math.sqrt(1-c*i*i),l=s/Math.cos(r)-d,Math.abs(l-e)<.001&&Math.abs(r-t)<1e-10)break}return t.set(r,a,l)},normal(e,t){const i=this.applyRadians(e,t),n=i.x,o=i.y,s=Math.cos(n),r=Math.cos(o)*s,a=Math.sin(o)*s,l=Math.sin(n);return t.set(r,a,l)}});const F=v;g().set("standard/Geospatial/Geodetic",F);const x=F,C=1e7,N=5e5,M=.9996;function j(e,t,i,n){const o=e.getSemiMajorAxis(),s=1-Math.pow(e.getSemiMinorAxis()/o,2),r=s/(1-s),a=(1-Math.sqrt(1-s))/(1+Math.sqrt(1-s));this.southernHemisphere=!i,this.eastingFirst=!n,this.a=o,this.ecc2=s,this.EE=r,this.E8=8*r,this.E9=9*r,this.E252=252*r,this.e1=a,this.A=M*(o*(1-s/4-3*s*s/64-5*s*s*s/256)),this.B=3*a/2-7*a*a*a/32,this.C=21*a*a/16-55*a*a*a*a/32,this.D=151*a*a*a/96,this.E=o*(1-s),this.W=1-s/4-3*s*s/64-5*s*s*s/256,this.X=3*s/8+3*s*s/32+45*s*s*s/1024,this.Y=15*s*s/256+45*s*s*s/1024,this.Z=35*s*s*s/3072,this.longitude0=I().radians(6*t-183),this.geodeticConverter=new x(e,!0,!0)}Object.assign(j.prototype,{convert(e,t){if(this.eastingFirst)var i=e.y,n=e.x;else i=e.x,n=e.y;let o=this.southernHemisphere;i<0&&(o=!this.southernHemisphere,i=-i),o&&(i-=C),n-=N;const s=i/this.A,r=s+this.B*Math.sin(2*s)+this.C*Math.sin(4*s)+this.D*Math.sin(6*s),a=Math.pow(Math.sin(r),2),l=Math.cos(r),h=Math.tan(r),d=this.a/Math.sqrt(1-this.ecc2*a),c=Math.pow(h,2),u=Math.pow(h,8),p=this.EE*c,g=p*p,_=this.E/Math.pow(1-this.ecc2*a,1.5),w=n/(d*M),m=(5+3*c+10*p-4*g-this.E9)*Math.pow(w,4)/24,O=(61+90*c+298*p+45*u-this.E252-3*g)*Math.pow(w,6)/720,y=(5-2*p+28*c-3*g+this.E8+24*u)*Math.pow(w,5)/120,b=r-d*h/_*(w*w/2-m+O),f=this.longitude0+(w-(1+2*c+p)*Math.pow(w,3)/6+y)/l;return this.geodeticConverter.convertRadians(b,f,e.z,t)},apply(e,t){const i=this.geodeticConverter.applyRadians(e,t),n=i.x,o=i.y,s=Math.tan(n),r=Math.cos(n),a=this.EE,l=this.a/Math.sqrt(1-this.ecc2*Math.pow(Math.sin(n),2)),h=s*s,d=h*h*h,c=a*r*r,u=r*(o-this.longitude0),p=this.a*(this.W*n-this.X*Math.sin(2*n)+this.Y*Math.sin(4*n)-this.Z*Math.sin(6*n)),g=M*l*(u+(1-h+c)*Math.pow(u,3)/6+(5-18*d+72*c-58*a)*Math.pow(u,5)/120)+N;let _=M*(p+l*s*(u*u/2+(5-h+9*c+4*c*c)*Math.pow(u,4)/24+(61-58*d+600*c-330*a)*Math.pow(u,6)/720));return n<0?(_+=C,this.southernHemisphere||(_=-_)):this.southernHemisphere&&(_=-_),this.eastingFirst?t.set(g,_,i.z):t.set(_,g,i.z)}});const z=j;g().set("standard/Geospatial/UniversalTransverseMercator",z);const G=z;function V(){}Object.assign(V.prototype,{convert:(e,t)=>t.assign(e),apply:(e,t)=>t.assign(e),slerp(e,t,i){const n=e.magnitude(),o=t.magnitude();return e.normalize(),t.normalize(),I().simpleSlerp(e,t,i).multiply(I().lerp(n,o,i))}});const D=V;g().set("x_ite/Browser/Geospatial/Geocentric",D);const P=D;let E=0;const T=E++,X=E++,k=E++,L={GD:T,GDC:T,UTM:X,GC:k,GCC:k,GS:k},R=/^Z(\d+)$/,A={GD:T,UTM:X,GC:k,getReferenceFrame(e,t){switch(this.getCoordinateSystem(e)){case T:return new x(this.getEllipsoid(e),this.getLatitudeFirst(e),t);case X:return new G(this.getEllipsoid(e),this.getZone(e),this.getNorthernHemisphere(e),this.getNorthingFirst(e));case k:return new P}return new x(y.WE,!0,t)},getElevationFrame(e,t){return new x(this.getEllipsoid(e),!0,t)},getCoordinateSystem(e){for(const t of e){const e=L[t];if(void 0!==e)return e}return T},getEllipsoid(e){for(const t of e){const e=y[t];if(void 0!==e)return e}return y.WE},getEllipsoidString(e){for(const t of e){if(void 0!==y[t])return t}return"WE"},isStandardOrder(e){switch(this.getCoordinateSystem(e)){case T:return this.getLatitudeFirst(e);case X:return this.getNorthingFirst(e);case k:return!0}return this.getLatitudeFirst(e)},getLatitudeFirst(e){for(const t of e)if("longitude_first"===t)return!1;return!0},getNorthingFirst(e){for(const t of e)if("easting_first"===t)return!1;return!0},getZone(e){for(const t of e){const e=t.match(R);if(e)return parseInt(e[1])}return 1},getNorthernHemisphere(e){for(const t of e)if("S"===t)return!1;return!0}};g().set("x_ite/Browser/Geospatial/Geospatial",A);const B=A,U=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Base/X3DCast");var q=e.n(U);const W=window[Symbol.for("X_ITE.X3D-8.9.3")].require("standard/Math/Numbers/Matrix4");var H=e.n(W),Y=new(f())(0,0,0),Z=new(f())(0,0,0),$=new(f())(0,0,0),K=new(f())(0,0,0),J=new(f())(0,0,0),Q=new(f())(0,0,0);function ee(e){this.addType(u().X3DGeospatialObject),this.radians=!1,this.origin=new(f())(0,0,0),this.originMatrix=new(H()),this.invOriginMatrix=new(H())}function te(e,t){return this.invOriginMatrix.multVecMatrix(this.referenceFrame.convert(e,t))}function ie(e,t){return this.referenceFrame.apply(this.originMatrix.multVecMatrix(Y.assign(e)),t)}function ne(e,t){return this.invOriginMatrix.multDirMatrix(this.elevationFrame.normal(this.originMatrix.multVecMatrix(Y.assign(e)),t))}function oe(e,t){return se.call(this,e,t).multRight(this.invOriginMatrix)}function se(e,t){return this.referenceFrame.convert(e,$),this.elevationFrame.normal($,J),K.set(0,0,1).cross(J),K.equals(f().Zero)&&K.set(1,0,0),Q.assign(K).cross(J),K.normalize(),Q.normalize(),t.set(K.x,K.y,K.z,0,J.x,J.y,J.z,0,Q.x,Q.y,Q.z,0,$.x,$.y,$.z,1)}Object.assign(ee.prototype,{initialize(){this._geoSystem.addInterest("set_geoSystem__",this),this._geoOrigin.addInterest("set_geoOrigin__",this),this.set_geoSystem__(),this.set_geoOrigin__()},set_geoSystem__(){this.coordinateSystem=B.getCoordinateSystem(this._geoSystem),this.referenceFrame=B.getReferenceFrame(this._geoSystem,this.radians),this.elevationFrame=B.getElevationFrame(this._geoSystem,this.radians),this.standardOrder=B.isStandardOrder(this._geoSystem)},set_geoOrigin__(){this.geoOriginNode&&(this.geoOriginNode.removeInterest("set_origin__",this),this.geoOriginNode.removeInterest("set_rotateYUp__",this),this.geoOriginNode.removeInterest("addNodeEvent",this)),this.geoOriginNode=q()(u().GeoOrigin,this._geoOrigin),this.geoOriginNode&&(this.geoOriginNode.addInterest("set_origin__",this),this.geoOriginNode.addInterest("set_rotateYUp__",this),this.geoOriginNode.addInterest("addNodeEvent",this)),this.set_origin__(),this.set_rotateYUp__()},set_origin__(){this.geoOriginNode?this.geoOriginNode.getOrigin(this.origin):this.origin.set(0,0,0),this.set_originMatrix__()},set_originMatrix__(){if(this.geoOriginNode){var e=this.origin;this.elevationFrame.normal(e,J),K.set(0,0,1).cross(J),K.equals(f().Zero)&&K.set(1,0,0),Q.assign(K).cross(J),K.normalize(),Q.normalize(),this.originMatrix.set(K.x,K.y,K.z,0,J.x,J.y,J.z,0,Q.x,Q.y,Q.z,0,e.x,e.y,e.z,1),this.invOriginMatrix.assign(this.originMatrix).inverse()}},set_rotateYUp__(){this.geoOriginNode&&this.geoOriginNode._rotateYUp.getValue()?(this.getCoord=te,this.getGeoCoord=ie,this.getGeoUpVector=ne,this.getLocationMatrix=oe):(delete this.getCoord,delete this.getGeoCoord,delete this.getGeoUpVector,delete this.getLocationMatrix)},getReferenceFrame(){return this.referenceFrame},getStandardOrder(){return this.standardOrder},getCoord(e,t){return this.referenceFrame.convert(e,t).subtract(this.origin)},getGeoCoord(e,t){return this.referenceFrame.apply(Y.assign(e).add(this.origin),t)},getGeoElevation(e){return this.getGeoCoord(e,Z).z},getGeoUpVector(e,t){return this.elevationFrame.normal(Y.assign(e).add(this.origin),t)},getLocationMatrix(e,t){var i=this.origin,n=se.call(this,e,t);return n[12]-=i.x,n[13]-=i.y,n[14]-=i.z,n},dispose(){}}),Object.defineProperties(ee,{typeName:{value:"X3DGeospatialObject",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0}});const re=ee;g().set("x_ite/Components/Geospatial/X3DGeospatialObject",re);const ae=re,le=window[Symbol.for("X_ITE.X3D-8.9.3")].require("standard/Math/Geometry/Triangle3");var he=e.n(le);function de(e){d().call(this,e),ae.call(this,e),this.addType(u().GeoCoordinate)}Object.assign(Object.setPrototypeOf(de.prototype,d().prototype),ae.prototype,{initialize(){d().prototype.initialize.call(this),ae.prototype.initialize.call(this)},set1Point:(()=>{const e=new(f())(0,0,0);return function(t,i){this._point[t]=this.getGeoCoord(i,e)}})(),get1Point:(()=>{const e=new(f())(0,0,0);return function(t,i){if(t<this.length){const n=this.point;return t*=3,this.getCoord(e.set(n[t],n[t+1],n[t+2]),i)}return i.set(0,0,0)}})(),addPoint:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0);return function(i,n){if(i<this.length){const o=this.point;i*=3,this.getCoord(e.set(o[i],o[i+1],o[i+2]),t),n.push(t[0],t[1],t[2],1)}else n.push(0,0,0,1)}})(),addPoints:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0);return function(i,n){const o=this.point;for(let n=0,s=3*this.length;n<s;n+=3)this.getCoord(e.set(o[n],o[n+1],o[n+2]),t),i.push(t[0],t[1],t[2],1);for(let e=3*this.length,t=3*n;e<t;e+=3)i.push(0,0,0,1)}})(),getNormal:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0),i=new(f())(0,0,0);return function(n,o,s){const r=this.length;return n<r&&o<r&&s<r?he().normal(this.get1Point(n,e),this.get1Point(o,t),this.get1Point(s,i),new(f())(0,0,0)):new(f())(0,0,0)}})(),getQuadNormal:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0),i=new(f())(0,0,0),n=new(f())(0,0,0);return function(o,s,r,a){const l=this.length;return o<l&&s<l&&r<l&&a<l?he().quadNormal(this.get1Point(o,e),this.get1Point(s,t),this.get1Point(r,i),this.get1Point(a,n),new(f())(0,0,0)):new(f())(0,0,0)}})(),dispose(){ae.prototype.dispose.call(this),d().prototype.dispose.call(this)}}),Object.defineProperties(de,{typeName:{value:"GeoCoordinate",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"coord",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"point",new(o().MFVec3d))]),enumerable:!0}});const ce=de;g().set("x_ite/Components/Geospatial/GeoCoordinate",ce);const ue=ce,pe=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Rendering/X3DGeometryNode");var ge=e.n(pe);const _e=window[Symbol.for("X_ITE.X3D-8.9.3")].require("standard/Math/Numbers/Vector2");var we=e.n(_e);function me(e){ge().call(this,e),ae.call(this,e),this.addType(u().GeoElevationGrid),this._creaseAngle.setUnit("angle"),this._height.setUnit("length"),this.colorNode=null,this.texCoordNode=null,this.normalNode=null}Object.assign(Object.setPrototypeOf(me.prototype,ge().prototype),ae.prototype,{initialize(){ge().prototype.initialize.call(this),ae.prototype.initialize.call(this),this._color.addInterest("set_color__",this),this._texCoord.addInterest("set_texCoord__",this),this._normal.addInterest("set_normal__",this),this.set_color__(),this.set_texCoord__(),this.set_normal__()},set_color__(){this.colorNode?.removeInterest("requestRebuild",this),this.colorNode=q()(u().X3DColorNode,this._color),this.colorNode?.addInterest("requestRebuild",this),this.setTransparent(this.colorNode?.isTransparent()??!1)},set_texCoord__(){this.texCoordNode?.removeInterest("requestRebuild",this),this.texCoordNode=q()(u().X3DTextureCoordinateNode,this._texCoord),this.texCoordNode?.addInterest("requestRebuild",this),this.setTextureCoordinate(this.texCoordNode)},set_normal__(){this.normalNode?.removeInterest("requestRebuild",this),this.normalNode=q()(u().X3DNormalNode,this._normal),this.normalNode?.addInterest("requestRebuild",this)},getColor(){return this.colorNode},getTexCoord(){return this.texCoordNode},getNormal(){return this.normalNode},getHeight(e){return e<this._height.length?this._height[e]*this._yScale.getValue():0},createTexCoords(){const e=[],t=this._xDimension.getValue(),i=this._zDimension.getValue(),n=t-1,o=i-1;for(let s=0;s<i;++s)for(let i=0;i<t;++i)e.push(new(we())(i/n,s/o));return e},createNormals(e,t,i){const n=!this._ccw.getValue(),o=new Map,s=[];for(let t=0;t<e.length;++t)o.set(t,[]);for(let i=0;i<t.length;i+=3){const r=t[i],a=t[i+1],l=t[i+2];o.get(r).push(s.length),o.get(a).push(s.length+1),o.get(l).push(s.length+2);const h=he().normal(e[r],e[a],e[l],new(f())(0,0,0));n&&h.negate(),s.push(h),s.push(h),s.push(h)}return this.refineNormals(o,s,this._creaseAngle.getValue())},createCoordIndex(){const e=[],t=this._xDimension.getValue(),i=t-1,n=this._zDimension.getValue()-1;for(let o=0;o<n;++o)for(let n=0;n<i;++n){const i=o*t+n,s=(o+1)*t+n,r=(o+1)*t+(n+1),a=o*t+(n+1);e.push(i),e.push(r),e.push(s),e.push(i),e.push(a),e.push(r)}return e},createPoints(){const e=[],t=this._xDimension.getValue(),i=this._zDimension.getValue(),n=this._xSpacing.getValue(),o=this._zSpacing.getValue();if(this.getStandardOrder())for(let s=0;s<i;++s)for(let i=0;i<t;++i){const r=new(f())(o*s,n*i,this.getHeight(i+s*t));r.add(this._geoGridOrigin.getValue()),e.push(this.getCoord(r,r))}else for(let s=0;s<i;++s)for(let i=0;i<t;++i){const r=new(f())(n*i,o*s,this.getHeight(i+s*t));r.add(this._geoGridOrigin.getValue()),e.push(this.getCoord(r,r))}return e},build(){if(this._xDimension.getValue()<2||this._zDimension.getValue()<2)return;const e=this._colorPerVertex.getValue(),t=this._normalPerVertex.getValue(),i=this.createCoordIndex(),n=this.getColor(),o=this.getTexCoord(),s=this.getNormal(),r=this.createPoints(),a=this.getColors(),l=this.getMultiTexCoords(),h=this.getNormals(),d=this.getVertices();let c=0;if(o)o.init(l);else{var u=this.createTexCoords(),p=this.getTexCoords();l.push(p)}for(let g=0;g<i.length;++c)for(let _=0;_<6;++_,++g){const _=i[g],w=r[_];if(n&&(e?n.addColor(_,a):n.addColor(c,a)),o)o.addPoint(_,l);else{const e=u[_];p.push(e.x,e.y,0,1)}s&&(t?s.addVector(_,h):s.addVector(c,h)),d.push(w.x,w.y,w.z,1)}if(!s){const e=this.createNormals(r,i);for(let t=0;t<e.length;++t){const i=e[t];h.push(i.x,i.y,i.z)}}this.setSolid(this._solid.getValue()),this.setCCW(this._ccw.getValue())},dispose(){ae.prototype.dispose.call(this),ge().prototype.dispose.call(this)}}),Object.defineProperties(me,{typeName:{value:"GeoElevationGrid",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().initializeOnly,"geoGridOrigin",new(o().SFVec3d)),new(r())(u().initializeOnly,"xDimension",new(o().SFInt32)),new(r())(u().initializeOnly,"zDimension",new(o().SFInt32)),new(r())(u().initializeOnly,"xSpacing",new(o().SFDouble)(1)),new(r())(u().initializeOnly,"zSpacing",new(o().SFDouble)(1)),new(r())(u().inputOutput,"yScale",new(o().SFFloat)(1)),new(r())(u().initializeOnly,"solid",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"ccw",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"creaseAngle",new(o().SFDouble)),new(r())(u().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(r())(u().inputOutput,"color",new(o().SFNode)),new(r())(u().inputOutput,"texCoord",new(o().SFNode)),new(r())(u().inputOutput,"normal",new(o().SFNode)),new(r())(u().inputOutput,"height",new(o().MFDouble)(0,0))]),enumerable:!0}});const Oe=me;g().set("x_ite/Components/Geospatial/GeoElevationGrid",Oe);const ye=Oe,be=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Core/X3DChildNode");var fe=e.n(be);const Se=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Grouping/X3DBoundedObject");var Ie=e.n(Se);const ve=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Rendering/TraverseType");var Fe=e.n(ve);const xe=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Grouping/Group");var Ce=e.n(xe);const Ne=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Networking/Inline");var Me=e.n(Ne);const je=window[Symbol.for("X_ITE.X3D-8.9.3")].require("standard/Math/Geometry/Box3");var ze=e.n(je),Ge=new(f())(0,0,0);function Ve(e){fe().call(this,e),Ie().call(this,e),ae.call(this,e),this.addType(u().GeoLOD),this._range.setUnit("length"),this.unload=!1,this.rootGroup=new(Ce())(this.getBrowser().getPrivateScene()),this.rootInline=new(Me())(e),this.child1Inline=new(Me())(e),this.child2Inline=new(Me())(e),this.child3Inline=new(Me())(e),this.child4Inline=new(Me())(e),this.childrenLoaded=!1,this.childBBox=new(ze()),this.keepCurrentLevel=!1,this.modelViewMatrix=new(H())}Object.assign(Object.setPrototypeOf(Ve.prototype,fe().prototype),Ie().prototype,ae.prototype,{initialize(){fe().prototype.initialize.call(this),Ie().prototype.initialize.call(this),ae.prototype.initialize.call(this),this._rootNode.addFieldInterest(this.rootGroup._children),this.rootGroup._children=this._rootNode,this.rootGroup.setPrivate(!0),this.rootGroup.setup(),this.rootInline._loadState.addInterest("set_rootLoadState__",this),this.child1Inline._loadState.addInterest("set_childLoadState__",this),this.child2Inline._loadState.addInterest("set_childLoadState__",this),this.child3Inline._loadState.addInterest("set_childLoadState__",this),this.child4Inline._loadState.addInterest("set_childLoadState__",this),this._rootUrl.addFieldInterest(this.rootInline._url),this._child1Url.addFieldInterest(this.child1Inline._url),this._child2Url.addFieldInterest(this.child2Inline._url),this._child3Url.addFieldInterest(this.child3Inline._url),this._child4Url.addFieldInterest(this.child4Inline._url),this.rootInline._load=!0,this.child1Inline._load=!1,this.child2Inline._load=!1,this.child3Inline._load=!1,this.child4Inline._load=!1,this.rootInline._url=this._rootUrl,this.child1Inline._url=this._child1Url,this.child2Inline._url=this._child2Url,this.child3Inline._url=this._child3Url,this.child4Inline._url=this._child4Url,this.rootInline.setup(),this.child1Inline.setup(),this.child2Inline.setup(),this.child3Inline.setup(),this.child4Inline.setup()},getBBox(e,t){if(this._bboxSize.getValue().equals(this.getDefaultBBoxSize())){switch(this.childrenLoaded?this._level_changed.getValue():0){case 0:return this._rootNode.length?this.rootGroup.getBBox(e,t):this.rootInline.getBBox(e,t);case 1:{const i=this.childBBox;return e.set(),e.add(this.child1Inline.getBBox(i,t)),e.add(this.child2Inline.getBBox(i,t)),e.add(this.child3Inline.getBBox(i,t)),e.add(this.child4Inline.getBBox(i,t)),e}}return e.set()}return e.set(this._bboxSize.getValue(),this._bboxCenter.getValue())},set_rootLoadState__(){0===this._level_changed.getValue()&&(this._rootNode.length||this.rootInline.checkLoadState()===u().COMPLETE_STATE&&(this._children=this.rootInline.getInternalScene().getRootNodes(),this.childrenLoaded=!1))},set_childLoadState__(){if(1===this._level_changed.getValue()){var e=0;if(this.child1Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child1Inline.checkLoadState()!==u().FAILED_STATE||++e,this.child2Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child2Inline.checkLoadState()!==u().FAILED_STATE||++e,this.child3Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child3Inline.checkLoadState()!==u().FAILED_STATE||++e,this.child4Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child4Inline.checkLoadState()!==u().FAILED_STATE||++e,4===e){this.childrenLoaded=!0;var t=this._children;t.length=0;for(var i=0,n=(o=this.child1Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i]);for(i=0,n=(o=this.child2Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i]);for(i=0,n=(o=this.child3Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i]);var o;for(i=0,n=(o=this.child4Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i])}}},set_childCameraObject__(){this.setCameraObject(this.child1Inline.isCameraObject()||this.child2Inline.isCameraObject()||this.child3Inline.isCameraObject()||this.child4Inline.isCameraObject())},set_childPickableObject__(){this.setPickableObject(this.child1Inline.isPickableObject()||this.child2Inline.isPickableObject()||this.child3Inline.isPickableObject()||this.child4Inline.isPickableObject())},getLevel(e){return this.getDistance(e)<this._range.getValue()?1:0},getDistance(e){return e.translate(this.getCoord(this._center.getValue(),Ge)),e.origin.magnitude()},traverse(e,t){switch(e){case Fe().PICKING:var i=this.getBrowser().getPickingHierarchy();return i.push(this),this.traverseChildren(e,t),void i.pop();case Fe().DISPLAY:var n=this.getLevel(this.modelViewMatrix.assign(t.getModelViewMatrix().get()));if(n!==this._level_changed.getValue())switch(this._level_changed=n,n){case 0:this.child1Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child2Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child3Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child4Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child1Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child2Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child3Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child4Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this._rootNode.length?(this.rootGroup._isCameraObject.addFieldInterest(this._isCameraObject),this.rootGroup._isPickableObject.addFieldInterest(this._isPickableObject),this.setCameraObject(this.rootGroup.isCameraObject()),this.setPickableObject(this.rootGroup.isPickableObject()),this._children=this._rootNode,this.childrenLoaded=!1):this.rootInline.checkLoadState()==u().COMPLETE_STATE&&(this.rootInline._isCameraObject.addFieldInterest(this._isCameraObject),this.rootInline._isPickableObject.addFieldInterest(this._isPickableObject),this.setCameraObject(this.rootInline.isCameraObject()),this.setPickableObject(this.rootInline.isPickableObject()),this._children=this.rootInline.getInternalScene().getRootNodes(),this.childrenLoaded=!1),this.unload&&(this.child1Inline._load=!1,this.child2Inline._load=!1,this.child3Inline._load=!1,this.child4Inline._load=!1);break;case 1:this._rootNode.length?(this.rootGroup._isCameraObject.removeFieldInterest(this._isCameraObject),this.rootGroup._isPickableObject.removeFieldInterest(this._isPickableObject)):(this.rootInline._isCameraObject.removeFieldInterest(this._isCameraObject),this.rootInline._isPickableObject.removeFieldInterest(this._isPickableObject)),this.child1Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child2Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child3Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child4Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child1Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child2Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child3Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child4Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.set_childCameraObject__(),this.set_childPickableObject__(),this.child1Inline._load.getValue()?this.set_childLoadState__():(this.child1Inline._load=!0,this.child2Inline._load=!0,this.child3Inline._load=!0,this.child4Inline._load=!0)}return void this.traverseChildren(e,t);default:return void this.traverseChildren(e,t)}},traverseChildren(e,t){switch(this.childrenLoaded?this._level_changed.getValue():0){case 0:this._rootNode.length?this.rootGroup.traverse(e,t):this.rootInline.traverse(e,t);break;case 1:this.child1Inline.traverse(e,t),this.child2Inline.traverse(e,t),this.child3Inline.traverse(e,t),this.child4Inline.traverse(e,t)}},dispose(){ae.prototype.dispose.call(this),Ie().prototype.dispose.call(this),fe().prototype.dispose.call(this)}}),Object.defineProperties(Ve,{typeName:{value:"GeoLOD",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().initializeOnly,"rootUrl",new(o().MFString)),new(r())(u().initializeOnly,"child1Url",new(o().MFString)),new(r())(u().initializeOnly,"child2Url",new(o().MFString)),new(r())(u().initializeOnly,"child3Url",new(o().MFString)),new(r())(u().initializeOnly,"child4Url",new(o().MFString)),new(r())(u().initializeOnly,"center",new(o().SFVec3d)),new(r())(u().initializeOnly,"range",new(o().SFFloat)(10)),new(r())(u().outputOnly,"level_changed",new(o().SFInt32)(-1)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().initializeOnly,"rootNode",new(o().MFNode)),new(r())(u().outputOnly,"children",new(o().MFNode))]),enumerable:!0}});const De=Ve;g().set("x_ite/Components/Geospatial/GeoLOD",De);const Pe=De,Ee=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Grouping/X3DTransformMatrix3DNode");var Te=e.n(Ee),Xe=new(H());function ke(e){Te().call(this,e),ae.call(this,e),this.addType(u().GeoLocation)}Object.assign(Object.setPrototypeOf(ke.prototype,Te().prototype),ae.prototype,{initialize(){Te().prototype.initialize.call(this),ae.prototype.initialize.call(this),this.addInterest("eventsProcessed",this),this.eventsProcessed()},eventsProcessed(){this.setMatrix(this.getLocationMatrix(this._geoCoords.getValue(),Xe))},dispose(){ae.prototype.dispose.call(this),Te().prototype.dispose.call(this)}}),Object.defineProperties(ke,{typeName:{value:"GeoLocation",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCoords",new(o().SFVec3d)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(o().MFNode)),new(r())(u().inputOnly,"removeChildren",new(o().MFNode)),new(r())(u().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const Le=ke;g().set("x_ite/Components/Geospatial/GeoLocation",Le);const Re=Le,Ae=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Core/X3DInfoNode");var Be=e.n(Ae);const Ue=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Networking/X3DUrlObject");var qe=e.n(Ue);function We(e){Be().call(this,e),qe().call(this,e),this.addType(u().GeoMetadata)}Object.assign(Object.setPrototypeOf(We.prototype,Be().prototype),qe().prototype,{initialize(){Be().prototype.initialize.call(this),qe().prototype.initialize.call(this)},requestImmediateLoad(e=!0){},dispose(){qe().prototype.dispose.call(this),Be().prototype.dispose.call(this)}}),Object.defineProperties(We,{typeName:{value:"GeoMetadata",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"load",new(o().SFBool)(!0)),new(r())(u().inputOutput,"url",new(o().MFString)),new(r())(u().inputOutput,"autoRefresh",new(o().SFTime)),new(r())(u().inputOutput,"autoRefreshTimeLimit",new(o().SFTime)(3600)),new(r())(u().inputOutput,"summary",new(o().MFString)),new(r())(u().inputOutput,"data",new(o().MFNode))]),enumerable:!0}});const He=We;g().set("x_ite/Components/Geospatial/GeoMetadata",He);const Ye=He,Ze=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Core/X3DNode");var $e=e.n(Ze);function Ke(e){$e().call(this,e),this.addType(u().GeoOrigin),this.radians=!1}Object.assign(Object.setPrototypeOf(Ke.prototype,$e().prototype),{initialize(){$e().prototype.initialize.call(this),this._geoSystem.addInterest("set_geoSystem__",this),this.set_geoSystem__()},set_geoSystem__(){this.referenceFrame=B.getReferenceFrame(this._geoSystem,this.radians)},getOrigin(e){return this.referenceFrame.convert(this._geoCoords.getValue(),e)}}),Object.defineProperties(Ke,{typeName:{value:"GeoOrigin",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"geoOrigin",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCoords",new(o().SFVec3d)),new(r())(u().initializeOnly,"rotateYUp",new(o().SFBool))]),enumerable:!0}});const Je=Ke;g().set("x_ite/Components/Geospatial/GeoOrigin",Je);const Qe=Je,et=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Interpolation/X3DInterpolatorNode");var tt=e.n(et);function it(e){tt().call(this,e),ae.call(this,e),this.addType(u().GeoPositionInterpolator),this._value_changed.setUnit("length"),this.geocentric=new P}Object.assign(Object.setPrototypeOf(it.prototype,tt().prototype),ae.prototype,{setup(){ae.prototype.initialize.call(this),tt().prototype.setup.call(this)},initialize(){tt().prototype.initialize.call(this),this._keyValue.addInterest("set_keyValue__",this)},set_keyValue__(){const e=this._key,t=this._keyValue;t.length<e.length&&t.resize(e.length,t.length?t[t.length-1]:new(o().SFVec3f))},interpolate:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0),i=new(f())(0,0,0);return function(n,o,s){this.getCoord(this._keyValue[n].getValue(),e),this.getCoord(this._keyValue[o].getValue(),t);const r=this.geocentric.slerp(e,t,s);this._geovalue_changed=this.getGeoCoord(r,i),this._value_changed=r}})(),dispose(){ae.prototype.dispose.call(this),tt().prototype.dispose.call(this)}}),Object.defineProperties(it,{typeName:{value:"GeoPositionInterpolator",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOnly,"set_fraction",new(o().SFFloat)),new(r())(u().inputOutput,"key",new(o().MFFloat)),new(r())(u().inputOutput,"keyValue",new(o().MFVec3d)),new(r())(u().outputOnly,"value_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"geovalue_changed",new(o().SFVec3d))]),enumerable:!0}});const nt=it;g().set("x_ite/Components/Geospatial/GeoPositionInterpolator",nt);const ot=nt,st=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode");var rt=e.n(st);const at=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/EnvironmentalSensor/ProximitySensor");var lt=e.n(at),ht=new(f())(0,0,0);function dt(e){rt().call(this,e),ae.call(this,e),this.addType(u().GeoProximitySensor),this._position_changed.setUnit("length"),this._centerOfRotation_changed.setUnit("length"),this.proximitySensor=new(lt())(e),this.setCameraObject(this.proximitySensor.isCameraObject()),this.setPickableObject(this.proximitySensor.isPickableObject())}Object.assign(Object.setPrototypeOf(dt.prototype,rt().prototype),ae.prototype,{initialize(){rt().prototype.initialize.call(this),ae.prototype.initialize.call(this),this._enabled.addFieldInterest(this.proximitySensor._enabled),this._size.addFieldInterest(this.proximitySensor._size),this._center.addFieldInterest(this.proximitySensor._center),this.proximitySensor._isCameraObject.addFieldInterest(this._isCameraObject),this.proximitySensor._isPickableObject.addFieldInterest(this._isPickableObject),this.proximitySensor._isActive.addFieldInterest(this._isActive),this.proximitySensor._enterTime.addFieldInterest(this._enterTime),this.proximitySensor._exitTime.addFieldInterest(this._exitTime),this.proximitySensor._position_changed.addFieldInterest(this._position_changed),this.proximitySensor._orientation_changed.addFieldInterest(this._orientation_changed),this.proximitySensor._centerOfRotation_changed.addFieldInterest(this._centerOfRotation_changed),this.proximitySensor._position_changed.addInterest("set_position__",this),this.proximitySensor._enabled=this._enabled,this.proximitySensor._size=this._size,this.proximitySensor._center=this._center,this.proximitySensor.setup()},set_position__(e){this._geoCoord_changed=this.getGeoCoord(this.proximitySensor._position_changed.getValue(),ht)},traverse(e,t){this.proximitySensor.traverse(e,t)},dispose(){ae.prototype.dispose.call(this),rt().prototype.dispose.call(this)}}),Object.defineProperties(dt,{typeName:{value:"GeoProximitySensor",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"size",new(o().SFVec3f)),new(r())(u().inputOutput,"center",new(o().SFVec3f)),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"enterTime",new(o().SFTime)),new(r())(u().outputOnly,"exitTime",new(o().SFTime)),new(r())(u().outputOnly,"geoCoord_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"position_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"orientation_changed",new(o().SFRotation)),new(r())(u().outputOnly,"centerOfRotation_changed",new(o().SFVec3f))]),enumerable:!0}});const ct=dt;g().set("x_ite/Components/Geospatial/GeoProximitySensor",ct);const ut=ct,pt=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode");var gt=e.n(pt);function _t(e){gt().call(this,e),ae.call(this,e),this.addType(u().GeoTouchSensor),this._hitPoint_changed.setUnit("length")}Object.assign(Object.setPrototypeOf(_t.prototype,gt().prototype),ae.prototype,{initialize(){gt().prototype.initialize.call(this),ae.prototype.initialize.call(this)},set_over__:(()=>{const e=new(f())(0,0,0);return function(t,i,n,o,s){gt().prototype.set_over__.call(this,t,i,n,o,s),this._isOver.getValue()&&(this._hitGeoCoord_changed=this.getGeoCoord(this._hitPoint_changed.getValue(),e))}})(),dispose(){ae.prototype.dispose.call(this),gt().prototype.dispose.call(this)}}),Object.defineProperties(_t,{typeName:{value:"GeoTouchSensor",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().outputOnly,"hitTexCoord_changed",new(o().SFVec2f)),new(r())(u().outputOnly,"hitNormal_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"hitPoint_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"hitGeoCoord_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"isOver",new(o().SFBool)),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"touchTime",new(o().SFTime))]),enumerable:!0}});const wt=_t;g().set("x_ite/Components/Geospatial/GeoTouchSensor",wt);const mt=wt;var Ot=new(H()),yt=new(H());function bt(e){Te().call(this,e),ae.call(this,e),this.addType(u().GeoTransform),this._translation.setUnit("length")}Object.assign(Object.setPrototypeOf(bt.prototype,Te().prototype),ae.prototype,{initialize(){Te().prototype.initialize.call(this),ae.prototype.initialize.call(this),this.addInterest("eventsProcessed",this),this.eventsProcessed()},eventsProcessed(){this.getLocationMatrix(this._geoCenter.getValue(),yt),Ot.set(this._translation.getValue(),this._rotation.getValue(),this._scale.getValue(),this._scaleOrientation.getValue()),this.setMatrix(Ot.multRight(yt).multLeft(yt.inverse()))},dispose(){ae.prototype.dispose.call(this),Te().prototype.dispose.call(this)}}),Object.defineProperties(bt,{typeName:{value:"GeoTransform",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"translation",new(o().SFVec3f)),new(r())(u().inputOutput,"rotation",new(o().SFRotation)),new(r())(u().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(u().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCenter",new(o().SFVec3d)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(o().MFNode)),new(r())(u().inputOnly,"removeChildren",new(o().MFNode)),new(r())(u().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const ft=bt;g().set("x_ite/Components/Geospatial/GeoTransform",ft);const St=ft,It=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Navigation/X3DViewpointNode");var vt=e.n(It);const Ft=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Navigation/Viewpoint");var xt=e.n(Ft);const Ct=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Navigation/NavigationInfo");var Nt=e.n(Ct);const Mt=window[Symbol.for("X_ITE.X3D-8.9.3")].require("standard/Math/Numbers/Rotation4");var jt=e.n(Mt);function zt(e){vt().call(this,e),ae.call(this,e),this.addType(u().GeoViewpoint),this.addChildObjects("navType",new(o().MFString)("EXAMINE","ANY"),"headlight",new(o().SFBool)(!0)),e.getSpecificationVersion()<=3.2&&(this.addAlias("navType",this._navType),this.addAlias("headlight",this._headlight),this.traverse=Gt),this._centerOfRotation.setUnit("length"),this._fieldOfView.setUnit("angle"),this.geoNavigationInfoNode=new(Nt())(e),this.projectionMatrix=new(H()),this.elevation=0}function Gt(e,t){vt().prototype.traverse.call(this,e,t),this.geoNavigationInfoNode.traverse(e,t)}Object.assign(Object.setPrototypeOf(zt.prototype,vt().prototype),ae.prototype,{initialize(){vt().prototype.initialize.call(this),ae.prototype.initialize.call(this);const e=this.getBrowser().getContext();this.logarithmicDepthBuffer=e.HAS_FEATURE_FRAG_DEPTH,this._position.addInterest("set_position__",this),this._positionOffset.addInterest("set_position__",this),this._navType.addFieldInterest(this.geoNavigationInfoNode._type),this._headlight.addFieldInterest(this.geoNavigationInfoNode._headlight),this.geoNavigationInfoNode._type=this._navType,this.geoNavigationInfoNode._headlight=this._headlight,this.geoNavigationInfoNode.setup(),this.getExecutionContext().getSpecificationVersion()<=3.2&&(this._navigationInfo=this.geoNavigationInfoNode),this.set_position__()},getRelativeTransformation:xt().prototype.getRelativeTransformation,setInterpolators:xt().prototype.setInterpolators,getFieldOfView:xt().prototype.getFieldOfView,getScreenScale:xt().prototype.getScreenScale,getViewportSize:xt().prototype.getViewportSize,getLookAtDistance:xt().prototype.getLookAtDistance,getProjectionMatrixWithLimits:xt().prototype.getProjectionMatrixWithLimits,getLogarithmicDepthBuffer(){return this.logarithmicDepthBuffer},setPosition:(()=>{const e=new(f())(0,0,0);return function(t){this._position.setValue(this.getGeoCoord(t,e))}})(),getPosition:(()=>{const e=new(f())(0,0,0);return function(){return this.getCoord(this._position.getValue(),e)}})(),set_position__:(()=>{const e=new(f())(0,0,0);return function(){this.getCoord(this._position.getValue(),e),this.elevation=this.getGeoElevation(e.add(this._positionOffset.getValue()))}})(),setOrientation:(()=>{const e=new(H()),t=new(jt());return function(i){const n=this.getLocationMatrix(this._position.getValue(),e).submatrix;t.setMatrix(n),this._orientation.setValue(t.inverse().multLeft(i))}})(),getOrientation:(()=>{const e=new(H()),t=new(jt());return function(){const i=this.getLocationMatrix(this._position.getValue(),e).submatrix;return t.setMatrix(i),t.multLeft(this._orientation.getValue())}})(),getCenterOfRotation:(()=>{const e=new(f())(0,0,0);return function(){return this.getCoord(this._centerOfRotation.getValue(),e)}})(),getMaxFarValue:()=>1e9,getUpVector:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0);return function(i=!1){return!i||this.getUserPosition().magnitude()<65e5?(this.getCoord(this._position.getValue(),e),this.getGeoUpVector(e.add(this._positionOffset.getValue()),t)):t.assign(f().zAxis)}})(),getSpeedFactor(){return(Math.max(this.elevation,0)+10)/10*this._speedFactor.getValue()},dispose(){ae.prototype.dispose.call(this),vt().prototype.dispose.call(this)}}),Object.defineProperties(zt,{typeName:{value:"GeoViewpoint",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOnly,"set_bind",new(o().SFBool)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"position",new(o().SFVec3d)(0,0,1e5)),new(r())(u().inputOutput,"orientation",new(o().SFRotation)),new(r())(u().inputOutput,"centerOfRotation",new(o().SFVec3d)),new(r())(u().inputOutput,"fieldOfView",new(o().SFFloat)(.785398)),new(r())(u().inputOutput,"nearDistance",new(o().SFFloat)(-1)),new(r())(u().inputOutput,"farDistance",new(o().SFFloat)(-1)),new(r())(u().inputOutput,"viewAll",new(o().SFBool)),new(r())(u().inputOutput,"jump",new(o().SFBool)(!0)),new(r())(u().inputOutput,"retainUserOffsets",new(o().SFBool)),new(r())(u().initializeOnly,"speedFactor",new(o().SFFloat)(1)),new(r())(u().outputOnly,"isBound",new(o().SFBool)),new(r())(u().outputOnly,"bindTime",new(o().SFTime)),new(r())(u().inputOutput,"navigationInfo",new(o().SFNode))]),enumerable:!0}});const Vt=zt;g().set("x_ite/Components/Geospatial/GeoViewpoint",Vt);const Dt=Vt;i().add({name:"Geospatial",concreteNodes:[ue,ye,Pe,Re,Ye,Qe,ot,ut,mt,St,Dt],abstractNodes:[ae]});const Pt=void 0;g().set("assets/components/Geospatial",Pt)})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v8.9.
|
|
1
|
+
/* X_ITE v8.9.3 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,25 +39,25 @@ var __webpack_exports__ = {};
|
|
|
39
39
|
// UNUSED EXPORTS: default
|
|
40
40
|
|
|
41
41
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
42
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Components");
|
|
43
43
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
44
44
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
45
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
45
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Fields");
|
|
46
46
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
47
47
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
48
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
48
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
49
49
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
50
50
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
51
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
51
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
52
52
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
53
53
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DGeometricPropertyNode\")"
|
|
54
|
-
const X3DGeometricPropertyNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
54
|
+
const X3DGeometricPropertyNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Components/Rendering/X3DGeometricPropertyNode");
|
|
55
55
|
var X3DGeometricPropertyNode_default = /*#__PURE__*/__webpack_require__.n(X3DGeometricPropertyNode_namespaceObject);
|
|
56
56
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
57
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
57
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Base/X3DConstants");
|
|
58
58
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
59
59
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
60
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
60
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Namespace");
|
|
61
61
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
62
62
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimDisplacer.js
|
|
63
63
|
/*******************************************************************************
|
|
@@ -166,30 +166,30 @@ const __default__ = HAnimDisplacer;
|
|
|
166
166
|
Namespace_default().set ("x_ite/Components/HAnim/HAnimDisplacer", __default__);
|
|
167
167
|
/* harmony default export */ const HAnim_HAnimDisplacer = (__default__);
|
|
168
168
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
|
169
|
-
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
169
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Components/Core/X3DChildNode");
|
|
170
170
|
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
|
171
171
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/Group\")"
|
|
172
|
-
const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
172
|
+
const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Components/Grouping/Group");
|
|
173
173
|
var Group_default = /*#__PURE__*/__webpack_require__.n(Group_namespaceObject);
|
|
174
174
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/Transform\")"
|
|
175
|
-
const Transform_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
175
|
+
const Transform_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Components/Grouping/Transform");
|
|
176
176
|
var Transform_default = /*#__PURE__*/__webpack_require__.n(Transform_namespaceObject);
|
|
177
177
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
|
|
178
|
-
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
178
|
+
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
|
|
179
179
|
var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
|
|
180
180
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
|
|
181
|
-
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
181
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Rendering/TraverseType");
|
|
182
182
|
var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
|
|
183
183
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
184
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
184
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Base/X3DCast");
|
|
185
185
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
186
186
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
187
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
187
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("standard/Math/Numbers/Vector3");
|
|
188
188
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
189
189
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
|
|
190
|
-
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
190
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("standard/Math/Numbers/Rotation4");
|
|
191
191
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
192
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
192
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("standard/Math/Numbers/Matrix4");
|
|
193
193
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
194
194
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimHumanoid.js
|
|
195
195
|
/*******************************************************************************
|
|
@@ -652,7 +652,7 @@ const HAnimHumanoid_default_ = HAnimHumanoid;
|
|
|
652
652
|
Namespace_default().set ("x_ite/Components/HAnim/HAnimHumanoid", HAnimHumanoid_default_);
|
|
653
653
|
/* harmony default export */ const HAnim_HAnimHumanoid = (HAnimHumanoid_default_);
|
|
654
654
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DTransformNode\")"
|
|
655
|
-
const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
655
|
+
const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Components/Grouping/X3DTransformNode");
|
|
656
656
|
var X3DTransformNode_default = /*#__PURE__*/__webpack_require__.n(X3DTransformNode_namespaceObject);
|
|
657
657
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimJoint.js
|
|
658
658
|
/*******************************************************************************
|
|
@@ -969,7 +969,7 @@ const HAnimMotion_default_ = HAnimMotion;
|
|
|
969
969
|
Namespace_default().set ("x_ite/Components/HAnim/HAnimMotion", HAnimMotion_default_);
|
|
970
970
|
/* harmony default export */ const HAnim_HAnimMotion = (HAnimMotion_default_);
|
|
971
971
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
|
|
972
|
-
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
972
|
+
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
|
|
973
973
|
var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
|
|
974
974
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimSegment.js
|
|
975
975
|
/*******************************************************************************
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.9.1 */(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Fields");var o=e.n(i);const s=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const a=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Base/FieldDefinitionArray");var d=e.n(a);const u=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var l=e.n(u);const p=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Base/X3DConstants");var w=e.n(p);const h=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Namespace");var m=e.n(h);function c(e){l().call(this,e),this.addType(w().HAnimDisplacer),this._displacements.setUnit("length")}Object.setPrototypeOf(c.prototype,l().prototype),Object.defineProperties(c,{typeName:{value:"HAnimDisplacer",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"displacers",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"coordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"weight",new(o().SFFloat)),new(r())(w().inputOutput,"displacements",new(o().MFVec3f))]),enumerable:!0}});const _=c;m().set("x_ite/Components/HAnim/HAnimDisplacer",_);const N=_,O=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Core/X3DChildNode");var b=e.n(O);const g=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Grouping/Group");var f=e.n(g);const F=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Grouping/Transform");var S=e.n(F);const y=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Grouping/X3DBoundedObject");var k=e.n(y);const v=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Rendering/TraverseType");var C=e.n(v);const x=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Base/X3DCast");var I=e.n(x);const M=window[Symbol.for("X_ITE.X3D-8.9.1")].require("standard/Math/Numbers/Vector3");var j=e.n(M);window[Symbol.for("X_ITE.X3D-8.9.1")].require("standard/Math/Numbers/Rotation4");const B=window[Symbol.for("X_ITE.X3D-8.9.1")].require("standard/Math/Numbers/Matrix4");var D=e.n(B);function A(e){b().call(this,e),k().call(this,e),this.addType(w().HAnimHumanoid),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),this.skeletonNode=new(f())(e),this.viewpointsNode=new(f())(e),this.skinNode=new(f())(e),this.transformNode=new(S())(e),this.jointNodes=[],this.jointBindingMatrices=[],this.skinBindingNormal=null,this.skinBindingCoord=null,this.skinNormalNode=null,this.skinCoordNode=null,this.changed=!1}Object.assign(Object.setPrototypeOf(A.prototype,b().prototype),k().prototype,{initialize(){b().prototype.initialize.call(this),k().prototype.initialize.call(this),this.skeletonNode.setAllowedTypes(w().HAnimJoint,w().HAnimSite),this.viewpointsNode.setAllowedTypes(w().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._visible.addFieldInterest(this.transformNode._visible),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._visible=this._visible,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()),this._joints.addInterest("set_joints__",this),this._jointBindingPositions.addInterest("set_joints__",this),this._jointBindingRotations.addInterest("set_joints__",this),this._jointBindingScales.addInterest("set_joints__",this),this._skinBindingNormal.addInterest("set_skinBindingNormal__",this),this._skinBindingCoord.addInterest("set_skinBindingCoord__",this),this._skinNormal.addInterest("set_skinNormal__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_joints__(),this.set_skinBindingNormal__(),this.set_skinBindingCoord__()},getBBox(e,t){return this.transformNode.getBBox(e,t)},set_joints__(){const e=this.jointNodes,t=this.jointBindingMatrices,n=this._jointBindingPositions,i=this._jointBindingRotations,o=this._jointBindingScales;for(const t of e)t.removeInterest("set_joint__",this);e.length=0,t.length=0;for(const[s,r]of this._joints.entries()){const a=I()(w().HAnimJoint,r);if(a){const r=new(D());n.length&&r.translate(n[Math.min(s,n.length-1)].getValue()),i.length&&r.rotate(i[Math.min(s,i.length-1)].getValue()),o.length&&r.scale(o[Math.min(s,o.length-1)].getValue()),e.push(a),t.push(r)}}for(const t of e)t.addInterest("set_joint__",this);this.set_joint__()},set_joint__(){this.changed=!0},set_skinBindingNormal__(){this.skinBindingNormal=I()(w().X3DNormalNode,this._skinBindingNormal),this.set_skinNormal__()},set_skinBindingCoord__(){this.skinBindingCoord=I()(w().X3DCoordinateNode,this._skinBindingCoord),this.set_skinCoord__()},set_skinNormal__(){this.skinNormalNode=I()(w().X3DNormalNode,this._skinNormal),!this.skinBindingNormal&&this.skinNormalNode&&(this.skinBindingNormal=this.skinNormalNode.copy()),this.changed=!0},set_skinCoord__(){this.skinCoordNode=I()(w().X3DCoordinateNode,this._skinCoord),!this.skinBindingCoord&&this.skinCoordNode&&(this.skinBindingCoord=this.skinCoordNode.copy()),this.skinCoordNode?delete this.skinning:this.skinning=Function.prototype,this.changed=!0},traverse(e,t){this.transformNode.traverse(e,t),this.skinning(e,t)},skinning:(()=>{const e=new(D()),t=new(j())(0,0,0),n=new(j())(0,0,0),i=new(j())(0,0,0),o=new(j())(0,0,0);return function(s,r){if(s!==C().CAMERA)return;if(!this.changed)return;this.changed=!1;const a=this.jointNodes,d=a.length,u=this.jointBindingMatrices,l=this.skinBindingNormal,p=this.skinBindingCoord,w=this.skinNormalNode,h=this.skinCoordNode;w&&w._vector.assign(l._vector),h._point.assign(p._point),e.assign(this.transformNode.getMatrix()).multRight(r.getModelViewMatrix().get()).inverse();for(let s=0;s<d;++s){const r=a[s],d=u[s],m=r.getModelMatrix().multRight(e).multLeft(d),c=r.getDisplacers(),_=r._skinCoordIndex.length;for(const e of c){const t=e._coordIndex.getValue(),i=e._coordIndex.length,s=e._weight.getValue(),r=e._displacements.getValue(),a=e._displacements.length;for(let e=0;e<i;++e){const i=3*e,d=t[e],u=e<a?o.set(r[i],r[i+1],r[i+2]):o.assign(j().Zero);h.get1Point(d,n),m.multDirMatrix(u).multiply(s).add(n),h.set1Point(d,u)}}const N=w?m.submatrix.transpose().inverse():null,O=r._skinCoordIndex.getValue(),b=r._skinCoordWeight.getValue(),g=r._skinCoordWeight.length;for(let e=0;e<_;++e){const s=O[e],r=e<g?b[e]:1;w&&(t.assign(l.get1Vector(s,i)),w.get1Vector(s,n),N.multVecMatrix(i).subtract(t).multiply(r).add(n),w.set1Vector(s,i)),t.assign(p.get1Point(s,o)),h.get1Point(s,n),m.multVecMatrix(o).subtract(t).multiply(r).add(n),h.set1Point(s,o)}}}})(),toVRMLStream(e){this.skinNormalNode&&(this.skinNormalNode._vector=this.skinBindingNormal._vector),this.skinCoordNode&&(this.skinCoordNode._point=this.skinBindingCoord._point),b().prototype.toVRMLStream.call(this,e)},toXMLStream(e){this.skinNormalNode&&(this.skinNormalNode._vector=this.skinBindingNormal._vector),this.skinCoordNode&&(this.skinCoordNode._point=this.skinBindingCoord._point),b().prototype.toXMLStream.call(this,e)},toJSONStream(e){this.skinNormalNode&&(this.skinNormalNode._vector=this.skinBindingNormal._vector),this.skinCoordNode&&(this.skinCoordNode._point=this.skinBindingCoord._point),b().prototype.toJSONStream.call(this,e)},dispose(){k().prototype.dispose.call(this),b().prototype.dispose.call(this)}}),Object.defineProperties(A,{typeName:{value:"HAnimHumanoid",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"version",new(o().SFString)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"info",new(o().MFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"skeletalConfiguration",new(o().SFString)("BASIC")),new(r())(w().inputOutput,"skeleton",new(o().MFNode)),new(r())(w().inputOutput,"viewpoints",new(o().MFNode)),new(r())(w().inputOutput,"sites",new(o().MFNode)),new(r())(w().inputOutput,"segments",new(o().MFNode)),new(r())(w().inputOutput,"motionsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"motions",new(o().MFNode)),new(r())(w().inputOutput,"jointBindingPositions",new(o().MFVec3f)),new(r())(w().inputOutput,"jointBindingRotations",new(o().MFRotation)),new(r())(w().inputOutput,"jointBindingScales",new(o().MFVec3f)),new(r())(w().inputOutput,"joints",new(o().MFNode)),new(r())(w().inputOutput,"skinBindingNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinBindingCoord",new(o().SFNode)),new(r())(w().inputOutput,"skinNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinCoord",new(o().SFNode)),new(r())(w().inputOutput,"skin",new(o().MFNode))]),enumerable:!0}});const X=A;m().set("x_ite/Components/HAnim/HAnimHumanoid",X);const H=X,V=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Grouping/X3DTransformNode");var T=e.n(V);function z(e){T().call(this,e),this.addType(w().HAnimJoint),this.setAllowedTypes(w().HAnimJoint,w().HAnimSegment,w().HAnimSite),this.displacerNodes=[],this.modelMatrix=new(D())}Object.assign(Object.setPrototypeOf(z.prototype,T().prototype),{initialize(){T().prototype.initialize.call(this),this._skinCoordIndex.addInterest("set_skinCoordIndex__",this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},setCameraObject(e){T().prototype.setCameraObject.call(this,e||!!this._skinCoordIndex.length)},getModelMatrix(){return this.modelMatrix},getDisplacers(){return this.displacerNodes},set_skinCoordIndex__(){this.set_cameraObjects__()},set_displacers__(){const e=this.displacerNodes;e.length=0;for(const t of this._displacers){const n=I()(w().HAnimDisplacer,t);n&&e.push(n)}},traverse(e,t){e===C().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(this.getMatrix()).multRight(t.getModelViewMatrix().get()),T().prototype.traverse.call(this,e,t)},groupTraverse(e,t){e===C().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(t.getModelViewMatrix().get()),T().prototype.groupTraverse.call(this,e,t)}}),Object.defineProperties(z,{typeName:{value:"HAnimJoint",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"llimit",new(o().MFFloat)),new(r())(w().inputOutput,"ulimit",new(o().MFFloat)),new(r())(w().inputOutput,"limitOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"stiffness",new(o().MFFloat)(0,0,0)),new(r())(w().inputOutput,"skinCoordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"skinCoordWeight",new(o().MFFloat)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const P=z;m().set("x_ite/Components/HAnim/HAnimJoint",P);const R=P;function E(e){b().call(this,e),this.addType(w().HAnimMotion)}Object.assign(Object.setPrototypeOf(E.prototype,b().prototype),{initialize(){b().prototype.initialize.call(this)}}),Object.defineProperties(E,{typeName:{value:"HAnimMotion",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["4.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(w().inputOnly,"next",new(o().SFBool)),new(r())(w().inputOnly,"previous",new(o().SFBool)),new(r())(w().inputOutput,"startFrame",new(o().SFInt32)),new(r())(w().inputOutput,"endFrame",new(o().SFInt32)),new(r())(w().inputOutput,"frameDuration",new(o().SFTime)(.1)),new(r())(w().inputOutput,"frameIncrement",new(o().SFInt32)(1)),new(r())(w().inputOutput,"frameIndex",new(o().SFInt32)(0)),new(r())(w().inputOutput,"loop",new(o().SFBool)),new(r())(w().inputOutput,"channelsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"channels",new(o().SFString)),new(r())(w().inputOutput,"joints",new(o().SFString)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"values",new(o().MFFloat)),new(r())(w().outputOnly,"cycleTime",new(o().SFTime)),new(r())(w().outputOnly,"elapsedTime",new(o().SFTime)),new(r())(w().outputOnly,"frameCount",new(o().SFInt32))]),enumerable:!0}});const q=E;m().set("x_ite/Components/HAnim/HAnimMotion",q);const G=q,J=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Grouping/X3DGroupingNode");var U=e.n(J);function L(e){U().call(this,e),this.addType(w().HAnimSegment),this._mass.setUnit("mass")}Object.setPrototypeOf(L.prototype,U().prototype),Object.defineProperties(L,{typeName:{value:"HAnimSegment",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"mass",new(o().SFFloat)),new(r())(w().inputOutput,"centerOfMass",new(o().SFVec3f)),new(r())(w().inputOutput,"momentsOfInertia",new(o().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"coord",new(o().SFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const W=L;m().set("x_ite/Components/HAnim/HAnimSegment",W);const Z=W;function K(e){T().call(this,e),this.addType(w().HAnimSite)}Object.setPrototypeOf(K.prototype,T().prototype),Object.defineProperties(K,{typeName:{value:"HAnimSite",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const Q=K;m().set("x_ite/Components/HAnim/HAnimSite",Q);const Y=Q;n().add({name:"HAnim",concreteNodes:[N,H,R,G,Z,Y],abstractNodes:[]});const $=void 0;m().set("assets/components/HAnim",$)})();
|
|
1
|
+
/* X_ITE v8.9.3 */(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Fields");var o=e.n(i);const s=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const a=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Base/FieldDefinitionArray");var d=e.n(a);const u=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var l=e.n(u);const p=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Base/X3DConstants");var w=e.n(p);const h=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Namespace");var m=e.n(h);function c(e){l().call(this,e),this.addType(w().HAnimDisplacer),this._displacements.setUnit("length")}Object.setPrototypeOf(c.prototype,l().prototype),Object.defineProperties(c,{typeName:{value:"HAnimDisplacer",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"displacers",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"coordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"weight",new(o().SFFloat)),new(r())(w().inputOutput,"displacements",new(o().MFVec3f))]),enumerable:!0}});const _=c;m().set("x_ite/Components/HAnim/HAnimDisplacer",_);const N=_,O=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Core/X3DChildNode");var b=e.n(O);const g=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Grouping/Group");var f=e.n(g);const F=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Grouping/Transform");var S=e.n(F);const y=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Grouping/X3DBoundedObject");var k=e.n(y);const v=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Rendering/TraverseType");var C=e.n(v);const x=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Base/X3DCast");var I=e.n(x);const M=window[Symbol.for("X_ITE.X3D-8.9.3")].require("standard/Math/Numbers/Vector3");var j=e.n(M);window[Symbol.for("X_ITE.X3D-8.9.3")].require("standard/Math/Numbers/Rotation4");const B=window[Symbol.for("X_ITE.X3D-8.9.3")].require("standard/Math/Numbers/Matrix4");var D=e.n(B);function A(e){b().call(this,e),k().call(this,e),this.addType(w().HAnimHumanoid),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),this.skeletonNode=new(f())(e),this.viewpointsNode=new(f())(e),this.skinNode=new(f())(e),this.transformNode=new(S())(e),this.jointNodes=[],this.jointBindingMatrices=[],this.skinBindingNormal=null,this.skinBindingCoord=null,this.skinNormalNode=null,this.skinCoordNode=null,this.changed=!1}Object.assign(Object.setPrototypeOf(A.prototype,b().prototype),k().prototype,{initialize(){b().prototype.initialize.call(this),k().prototype.initialize.call(this),this.skeletonNode.setAllowedTypes(w().HAnimJoint,w().HAnimSite),this.viewpointsNode.setAllowedTypes(w().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._visible.addFieldInterest(this.transformNode._visible),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._visible=this._visible,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()),this._joints.addInterest("set_joints__",this),this._jointBindingPositions.addInterest("set_joints__",this),this._jointBindingRotations.addInterest("set_joints__",this),this._jointBindingScales.addInterest("set_joints__",this),this._skinBindingNormal.addInterest("set_skinBindingNormal__",this),this._skinBindingCoord.addInterest("set_skinBindingCoord__",this),this._skinNormal.addInterest("set_skinNormal__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_joints__(),this.set_skinBindingNormal__(),this.set_skinBindingCoord__()},getBBox(e,t){return this.transformNode.getBBox(e,t)},set_joints__(){const e=this.jointNodes,t=this.jointBindingMatrices,n=this._jointBindingPositions,i=this._jointBindingRotations,o=this._jointBindingScales;for(const t of e)t.removeInterest("set_joint__",this);e.length=0,t.length=0;for(const[s,r]of this._joints.entries()){const a=I()(w().HAnimJoint,r);if(a){const r=new(D());n.length&&r.translate(n[Math.min(s,n.length-1)].getValue()),i.length&&r.rotate(i[Math.min(s,i.length-1)].getValue()),o.length&&r.scale(o[Math.min(s,o.length-1)].getValue()),e.push(a),t.push(r)}}for(const t of e)t.addInterest("set_joint__",this);this.set_joint__()},set_joint__(){this.changed=!0},set_skinBindingNormal__(){this.skinBindingNormal=I()(w().X3DNormalNode,this._skinBindingNormal),this.set_skinNormal__()},set_skinBindingCoord__(){this.skinBindingCoord=I()(w().X3DCoordinateNode,this._skinBindingCoord),this.set_skinCoord__()},set_skinNormal__(){this.skinNormalNode=I()(w().X3DNormalNode,this._skinNormal),!this.skinBindingNormal&&this.skinNormalNode&&(this.skinBindingNormal=this.skinNormalNode.copy()),this.changed=!0},set_skinCoord__(){this.skinCoordNode=I()(w().X3DCoordinateNode,this._skinCoord),!this.skinBindingCoord&&this.skinCoordNode&&(this.skinBindingCoord=this.skinCoordNode.copy()),this.skinCoordNode?delete this.skinning:this.skinning=Function.prototype,this.changed=!0},traverse(e,t){this.transformNode.traverse(e,t),this.skinning(e,t)},skinning:(()=>{const e=new(D()),t=new(j())(0,0,0),n=new(j())(0,0,0),i=new(j())(0,0,0),o=new(j())(0,0,0);return function(s,r){if(s!==C().CAMERA)return;if(!this.changed)return;this.changed=!1;const a=this.jointNodes,d=a.length,u=this.jointBindingMatrices,l=this.skinBindingNormal,p=this.skinBindingCoord,w=this.skinNormalNode,h=this.skinCoordNode;w&&w._vector.assign(l._vector),h._point.assign(p._point),e.assign(this.transformNode.getMatrix()).multRight(r.getModelViewMatrix().get()).inverse();for(let s=0;s<d;++s){const r=a[s],d=u[s],m=r.getModelMatrix().multRight(e).multLeft(d),c=r.getDisplacers(),_=r._skinCoordIndex.length;for(const e of c){const t=e._coordIndex.getValue(),i=e._coordIndex.length,s=e._weight.getValue(),r=e._displacements.getValue(),a=e._displacements.length;for(let e=0;e<i;++e){const i=3*e,d=t[e],u=e<a?o.set(r[i],r[i+1],r[i+2]):o.assign(j().Zero);h.get1Point(d,n),m.multDirMatrix(u).multiply(s).add(n),h.set1Point(d,u)}}const N=w?m.submatrix.transpose().inverse():null,O=r._skinCoordIndex.getValue(),b=r._skinCoordWeight.getValue(),g=r._skinCoordWeight.length;for(let e=0;e<_;++e){const s=O[e],r=e<g?b[e]:1;w&&(t.assign(l.get1Vector(s,i)),w.get1Vector(s,n),N.multVecMatrix(i).subtract(t).multiply(r).add(n),w.set1Vector(s,i)),t.assign(p.get1Point(s,o)),h.get1Point(s,n),m.multVecMatrix(o).subtract(t).multiply(r).add(n),h.set1Point(s,o)}}}})(),toVRMLStream(e){this.skinNormalNode&&(this.skinNormalNode._vector=this.skinBindingNormal._vector),this.skinCoordNode&&(this.skinCoordNode._point=this.skinBindingCoord._point),b().prototype.toVRMLStream.call(this,e)},toXMLStream(e){this.skinNormalNode&&(this.skinNormalNode._vector=this.skinBindingNormal._vector),this.skinCoordNode&&(this.skinCoordNode._point=this.skinBindingCoord._point),b().prototype.toXMLStream.call(this,e)},toJSONStream(e){this.skinNormalNode&&(this.skinNormalNode._vector=this.skinBindingNormal._vector),this.skinCoordNode&&(this.skinCoordNode._point=this.skinBindingCoord._point),b().prototype.toJSONStream.call(this,e)},dispose(){k().prototype.dispose.call(this),b().prototype.dispose.call(this)}}),Object.defineProperties(A,{typeName:{value:"HAnimHumanoid",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"version",new(o().SFString)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"info",new(o().MFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"skeletalConfiguration",new(o().SFString)("BASIC")),new(r())(w().inputOutput,"skeleton",new(o().MFNode)),new(r())(w().inputOutput,"viewpoints",new(o().MFNode)),new(r())(w().inputOutput,"sites",new(o().MFNode)),new(r())(w().inputOutput,"segments",new(o().MFNode)),new(r())(w().inputOutput,"motionsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"motions",new(o().MFNode)),new(r())(w().inputOutput,"jointBindingPositions",new(o().MFVec3f)),new(r())(w().inputOutput,"jointBindingRotations",new(o().MFRotation)),new(r())(w().inputOutput,"jointBindingScales",new(o().MFVec3f)),new(r())(w().inputOutput,"joints",new(o().MFNode)),new(r())(w().inputOutput,"skinBindingNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinBindingCoord",new(o().SFNode)),new(r())(w().inputOutput,"skinNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinCoord",new(o().SFNode)),new(r())(w().inputOutput,"skin",new(o().MFNode))]),enumerable:!0}});const X=A;m().set("x_ite/Components/HAnim/HAnimHumanoid",X);const H=X,V=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Grouping/X3DTransformNode");var T=e.n(V);function z(e){T().call(this,e),this.addType(w().HAnimJoint),this.setAllowedTypes(w().HAnimJoint,w().HAnimSegment,w().HAnimSite),this.displacerNodes=[],this.modelMatrix=new(D())}Object.assign(Object.setPrototypeOf(z.prototype,T().prototype),{initialize(){T().prototype.initialize.call(this),this._skinCoordIndex.addInterest("set_skinCoordIndex__",this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},setCameraObject(e){T().prototype.setCameraObject.call(this,e||!!this._skinCoordIndex.length)},getModelMatrix(){return this.modelMatrix},getDisplacers(){return this.displacerNodes},set_skinCoordIndex__(){this.set_cameraObjects__()},set_displacers__(){const e=this.displacerNodes;e.length=0;for(const t of this._displacers){const n=I()(w().HAnimDisplacer,t);n&&e.push(n)}},traverse(e,t){e===C().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(this.getMatrix()).multRight(t.getModelViewMatrix().get()),T().prototype.traverse.call(this,e,t)},groupTraverse(e,t){e===C().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(t.getModelViewMatrix().get()),T().prototype.groupTraverse.call(this,e,t)}}),Object.defineProperties(z,{typeName:{value:"HAnimJoint",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"llimit",new(o().MFFloat)),new(r())(w().inputOutput,"ulimit",new(o().MFFloat)),new(r())(w().inputOutput,"limitOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"stiffness",new(o().MFFloat)(0,0,0)),new(r())(w().inputOutput,"skinCoordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"skinCoordWeight",new(o().MFFloat)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const P=z;m().set("x_ite/Components/HAnim/HAnimJoint",P);const R=P;function E(e){b().call(this,e),this.addType(w().HAnimMotion)}Object.assign(Object.setPrototypeOf(E.prototype,b().prototype),{initialize(){b().prototype.initialize.call(this)}}),Object.defineProperties(E,{typeName:{value:"HAnimMotion",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["4.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(w().inputOnly,"next",new(o().SFBool)),new(r())(w().inputOnly,"previous",new(o().SFBool)),new(r())(w().inputOutput,"startFrame",new(o().SFInt32)),new(r())(w().inputOutput,"endFrame",new(o().SFInt32)),new(r())(w().inputOutput,"frameDuration",new(o().SFTime)(.1)),new(r())(w().inputOutput,"frameIncrement",new(o().SFInt32)(1)),new(r())(w().inputOutput,"frameIndex",new(o().SFInt32)(0)),new(r())(w().inputOutput,"loop",new(o().SFBool)),new(r())(w().inputOutput,"channelsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"channels",new(o().SFString)),new(r())(w().inputOutput,"joints",new(o().SFString)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"values",new(o().MFFloat)),new(r())(w().outputOnly,"cycleTime",new(o().SFTime)),new(r())(w().outputOnly,"elapsedTime",new(o().SFTime)),new(r())(w().outputOnly,"frameCount",new(o().SFInt32))]),enumerable:!0}});const q=E;m().set("x_ite/Components/HAnim/HAnimMotion",q);const G=q,J=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Grouping/X3DGroupingNode");var U=e.n(J);function L(e){U().call(this,e),this.addType(w().HAnimSegment),this._mass.setUnit("mass")}Object.setPrototypeOf(L.prototype,U().prototype),Object.defineProperties(L,{typeName:{value:"HAnimSegment",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"mass",new(o().SFFloat)),new(r())(w().inputOutput,"centerOfMass",new(o().SFVec3f)),new(r())(w().inputOutput,"momentsOfInertia",new(o().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"coord",new(o().SFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const W=L;m().set("x_ite/Components/HAnim/HAnimSegment",W);const Z=W;function K(e){T().call(this,e),this.addType(w().HAnimSite)}Object.setPrototypeOf(K.prototype,T().prototype),Object.defineProperties(K,{typeName:{value:"HAnimSite",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const Q=K;m().set("x_ite/Components/HAnim/HAnimSite",Q);const Y=Q;n().add({name:"HAnim",concreteNodes:[N,H,R,G,Z,Y],abstractNodes:[]});const $=void 0;m().set("assets/components/HAnim",$)})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v8.9.
|
|
1
|
+
/* X_ITE v8.9.3 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,13 +39,13 @@ var __webpack_exports__ = {};
|
|
|
39
39
|
// UNUSED EXPORTS: default
|
|
40
40
|
|
|
41
41
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
42
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Components");
|
|
43
43
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
44
44
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
45
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
45
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Fields");
|
|
46
46
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
47
47
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
48
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
48
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Namespace");
|
|
49
49
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
50
50
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js
|
|
51
51
|
/*******************************************************************************
|
|
@@ -150,16 +150,16 @@ const __default__ = X3DKeyDeviceSensorContext;
|
|
|
150
150
|
Namespace_default().set ("x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext", __default__);
|
|
151
151
|
/* harmony default export */ const KeyDeviceSensor_X3DKeyDeviceSensorContext = (__default__);
|
|
152
152
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
153
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
153
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
154
154
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
155
155
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
156
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
156
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
157
157
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
158
158
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
|
|
159
|
-
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
159
|
+
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Components/Core/X3DSensorNode");
|
|
160
160
|
var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
|
|
161
161
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
162
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
162
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.3")] .require ("x_ite/Base/X3DConstants");
|
|
163
163
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
164
164
|
;// CONCATENATED MODULE: ./src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js
|
|
165
165
|
/*******************************************************************************
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.9.
|
|
1
|
+
/* X_ITE v8.9.3 */(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var a in s)e.o(s,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:s[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components");var s=e.n(t);const a=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Fields");var i=e.n(a);const n=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Namespace");var o=e.n(n);const r=Symbol(),c=Symbol(),l=Symbol();function y(){this[r]=new Set}Object.assign(y.prototype,{initialize(){const e=this.getElement();e.on("keydown.X3DKeyDeviceSensorContext",this[c].bind(this)),e.on("keyup.X3DKeyDeviceSensorContext",this[l].bind(this))},addKeyDeviceSensorNode(e){this[r].add(e)},removeKeyDeviceSensorNode(e){this[r].delete(e)},getKeyDeviceSensorNodes(){return this[r]},[c](e){for(const t of this[r])t.keydown(e)},[l](e){for(const t of this[r])t.keyup(e)}});const h=y;o().set("x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext",h);const _=h,b=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Base/X3DFieldDefinition");var d=e.n(b);const u=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Base/FieldDefinitionArray");var k=e.n(u);const p=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Components/Core/X3DSensorNode");var K=e.n(p);const w=window[Symbol.for("X_ITE.X3D-8.9.3")].require("x_ite/Base/X3DConstants");var v=e.n(w);function S(e){K().call(this,e),this.addType(v().X3DKeyDeviceSensorNode)}Object.assign(Object.setPrototypeOf(S.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(S,{typeName:{value:"X3DKeyDeviceSensorNode",enumerable:!0},componentName:{value:"KeyDeviceSensor",enumerable:!0}});const f=S;o().set("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},componentName:{value:"KeyDeviceSensor",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(k())([new(d())(v().inputOutput,"metadata",new(i().SFNode)),new(d())(v().inputOutput,"enabled",new(i().SFBool)(!0)),new(d())(v().outputOnly,"controlKey",new(i().SFBool)),new(d())(v().outputOnly,"shiftKey",new(i().SFBool)),new(d())(v().outputOnly,"altKey",new(i().SFBool)),new(d())(v().outputOnly,"actionKeyPress",new(i().SFInt32)),new(d())(v().outputOnly,"actionKeyRelease",new(i().SFInt32)),new(d())(v().outputOnly,"keyPress",new(i().SFString)),new(d())(v().outputOnly,"keyRelease",new(i().SFString)),new(d())(v().outputOnly,"isActive",new(i().SFBool))]),enumerable:!0}});const D=g;o().set("x_ite/Components/KeyDeviceSensor/KeySensor",D);const P=D;function O(e){m.call(this,e),this.addType(v().StringSensor)}Object.assign(Object.setPrototypeOf(O.prototype,m.prototype),{keydown(e){switch(e.preventDefault(),e.key){case"Backspace":this._isActive.getValue()&&this._deletionAllowed.getValue()&&this._enteredText.length&&(this._enteredText=this._enteredText.getValue().substr(0,this._enteredText.length-1));break;case"Enter":this._finalText=this._enteredText,this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Escape":this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Tab":break;default:(e.charCode||e.keyCode)&&1===e.key.length&&(this._isActive.getValue()||(this._isActive=!0,this._enteredText=""),this._enteredText=this._enteredText.getValue()+e.key)}}}),Object.defineProperties(O,{typeName:{value:"StringSensor",enumerable:!0},componentName:{value:"KeyDeviceSensor",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(k())([new(d())(v().inputOutput,"metadata",new(i().SFNode)),new(d())(v().inputOutput,"enabled",new(i().SFBool)(!0)),new(d())(v().inputOutput,"deletionAllowed",new(i().SFBool)(!0)),new(d())(v().outputOnly,"enteredText",new(i().SFString)),new(d())(v().outputOnly,"finalText",new(i().SFString)),new(d())(v().outputOnly,"isActive",new(i().SFBool))]),enumerable:!0}});const C=O;o().set("x_ite/Components/KeyDeviceSensor/StringSensor",C);const R=C;s().add({name:"KeyDeviceSensor",concreteNodes:[P,R],abstractNodes:[m],browserContext:_});const x=void 0;o().set("assets/components/KeyDeviceSensor",x)})();
|