x_ite 10.1.0 → 10.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -18
- package/dist/LICENSE.md +4 -0
- package/dist/X3DUOM.xml +69 -11
- package/dist/assets/components/{Annotation.js → AnnotationComponent.js} +138 -260
- package/dist/assets/components/AnnotationComponent.min.js +2 -0
- package/dist/assets/components/{CADGeometry.js → CADGeometryComponent.js} +177 -299
- package/dist/assets/components/CADGeometryComponent.min.js +2 -0
- package/dist/assets/components/{CubeMapTexturing.js → CubeMapTexturingComponent.js} +218 -257
- package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -0
- package/dist/assets/components/DISComponent.js +994 -0
- package/dist/assets/components/DISComponent.min.js +2 -0
- package/dist/assets/components/{EventUtilities.js → EventUtilitiesComponent.js} +121 -274
- package/dist/assets/components/EventUtilitiesComponent.min.js +2 -0
- package/dist/assets/components/{Geometry2D.js → Geometry2DComponent.js} +233 -371
- package/dist/assets/components/Geometry2DComponent.min.js +2 -0
- package/dist/assets/components/{Geospatial.js → GeospatialComponent.js} +449 -676
- package/dist/assets/components/GeospatialComponent.min.js +2 -0
- package/dist/assets/components/{HAnim.js → HAnimComponent.js} +277 -387
- package/dist/assets/components/HAnimComponent.min.js +2 -0
- package/dist/assets/components/{KeyDeviceSensor.js → KeyDeviceSensorComponent.js} +71 -114
- package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -0
- package/dist/assets/components/{Layout.js → LayoutComponent.js} +234 -339
- package/dist/assets/components/LayoutComponent.min.js +2 -0
- package/dist/assets/components/{NURBS.js → NURBSComponent.js} +351 -654
- package/dist/assets/components/NURBSComponent.min.js +2 -0
- package/dist/assets/components/{ParticleSystems.js → ParticleSystemsComponent.js} +345 -674
- package/dist/assets/components/ParticleSystemsComponent.min.js +2 -0
- package/dist/assets/components/{Picking.js → PickingComponent.js} +245 -472
- package/dist/assets/components/PickingComponent.min.js +2 -0
- package/dist/assets/components/{RigidBodyPhysics.js → RigidBodyPhysicsComponent.js} +496 -804
- package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -0
- package/dist/assets/components/ScriptingComponent.js +899 -0
- package/dist/assets/components/ScriptingComponent.min.js +2 -0
- package/dist/assets/components/{Text.js → TextComponent.js} +199 -251
- package/dist/assets/components/TextComponent.min.js +2 -0
- package/dist/assets/components/{TextureProjection.js → TextureProjectionComponent.js} +144 -190
- package/dist/assets/components/TextureProjectionComponent.min.js +2 -0
- package/dist/assets/components/{Texturing3D.js → Texturing3DComponent.js} +224 -386
- package/dist/assets/components/Texturing3DComponent.min.js +2 -0
- package/dist/assets/components/{VolumeRendering.js → VolumeRenderingComponent.js} +316 -603
- package/dist/assets/components/VolumeRenderingComponent.min.js +2 -0
- package/dist/assets/components/{X_ITE.js → X_ITEComponent.js} +1250 -1347
- package/dist/assets/components/X_ITEComponent.min.js +2 -0
- package/dist/assets/fonts/PT_Sans/OFL.txt +94 -0
- package/dist/assets/fonts/PT_Sans/PTSans-Bold.ttf +0 -0
- package/dist/assets/fonts/PT_Sans/PTSans-BoldItalic.ttf +0 -0
- package/dist/assets/fonts/PT_Sans/PTSans-Italic.ttf +0 -0
- package/dist/assets/fonts/PT_Sans/PTSans-Regular.ttf +0 -0
- package/dist/assets/images/XR.svg +74 -0
- package/dist/assets/lib/mikktspace_bg.wasm +0 -0
- package/dist/example.html +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.d.ts +128 -22
- package/dist/x_ite.js +3575 -6278
- package/dist/x_ite.min.js +2 -1
- package/dist/x_ite.min.mjs +2 -1
- package/dist/x_ite.mjs +3575 -6278
- package/dist/x_ite.zip +0 -0
- package/package.json +7 -5
- package/dist/assets/components/Annotation.min.js +0 -1
- package/dist/assets/components/CADGeometry.min.js +0 -1
- package/dist/assets/components/CubeMapTexturing.min.js +0 -1
- package/dist/assets/components/DIS.js +0 -1104
- package/dist/assets/components/DIS.min.js +0 -1
- package/dist/assets/components/EventUtilities.min.js +0 -1
- package/dist/assets/components/Geometry2D.min.js +0 -1
- package/dist/assets/components/Geospatial.min.js +0 -1
- package/dist/assets/components/HAnim.min.js +0 -1
- package/dist/assets/components/KeyDeviceSensor.min.js +0 -1
- package/dist/assets/components/Layout.min.js +0 -1
- package/dist/assets/components/NURBS.min.js +0 -1
- package/dist/assets/components/ParticleSystems.min.js +0 -1
- package/dist/assets/components/Picking.min.js +0 -1
- package/dist/assets/components/RigidBodyPhysics.min.js +0 -1
- package/dist/assets/components/Scripting.js +0 -927
- package/dist/assets/components/Scripting.min.js +0 -1
- package/dist/assets/components/Text.min.js +0 -1
- package/dist/assets/components/TextureProjection.min.js +0 -1
- package/dist/assets/components/Texturing3D.min.js +0 -1
- package/dist/assets/components/VolumeRendering.min.js +0 -1
- package/dist/assets/components/X_ITE.min.js +0 -1
- /package/dist/assets/fonts/{DroidSerif Apache License.txt → Droid/DroidSerif Apache License.txt} +0 -0
- /package/dist/assets/fonts/{DroidSerif-Bold.ttf → Droid/DroidSerif-Bold.ttf} +0 -0
- /package/dist/assets/fonts/{DroidSerif-BoldItalic.ttf → Droid/DroidSerif-BoldItalic.ttf} +0 -0
- /package/dist/assets/fonts/{DroidSerif-Italic.ttf → Droid/DroidSerif-Italic.ttf} +0 -0
- /package/dist/assets/fonts/{DroidSerif-Regular.ttf → Droid/DroidSerif-Regular.ttf} +0 -0
- /package/dist/assets/fonts/{Ubuntu LICENCE.txt → Ubuntu/Ubuntu LICENCE.txt} +0 -0
- /package/dist/assets/fonts/{Ubuntu-B.ttf → Ubuntu/Ubuntu-B.ttf} +0 -0
- /package/dist/assets/fonts/{Ubuntu-BI.ttf → Ubuntu/Ubuntu-BI.ttf} +0 -0
- /package/dist/assets/fonts/{Ubuntu-R.ttf → Ubuntu/Ubuntu-R.ttf} +0 -0
- /package/dist/assets/fonts/{Ubuntu-RI.ttf → Ubuntu/Ubuntu-RI.ttf} +0 -0
- /package/dist/assets/fonts/{UbuntuMono-B.ttf → Ubuntu/UbuntuMono-B.ttf} +0 -0
- /package/dist/assets/fonts/{UbuntuMono-BI.ttf → Ubuntu/UbuntuMono-BI.ttf} +0 -0
- /package/dist/assets/fonts/{UbuntuMono-R.ttf → Ubuntu/UbuntuMono-R.ttf} +0 -0
- /package/dist/assets/fonts/{UbuntuMono-RI.ttf → Ubuntu/UbuntuMono-RI.ttf} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* X_ITE v10.1.0 */(()=>{"use strict";var t={n:e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components");var n=t.n(e);const i=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Fields");var u=t.n(i);const o=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DFieldDefinition");var p=t.n(o);const a=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/FieldDefinitionArray");var w=t.n(a);const r=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Core/X3DChildNode");var l=t.n(r);const S=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DConstants");var s=t.n(S);const c=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Namespace");var O=t.n(c);function F(t){l().call(this,t),this.addType(s().DISEntityManager),t.getSpecificationVersion()<=3.3&&this.addAlias("mapping",this._children)}Object.setPrototypeOf(F.prototype,l().prototype),Object.defineProperties(F,{typeName:{value:"DISEntityManager",enumerable:!0},componentInfo:{value:Object.freeze({name:"DIS",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(w())([new(p())(s().inputOutput,"metadata",new(u().SFNode)),new(p())(s().inputOutput,"address",new(u().SFString)("localhost")),new(p())(s().inputOutput,"applicationID",new(u().SFInt32)),new(p())(s().inputOutput,"children",new(u().MFNode)),new(p())(s().inputOutput,"port",new(u().SFInt32)),new(p())(s().inputOutput,"siteID",new(u().SFInt32)),new(p())(s().outputOnly,"addedEntities",new(u().MFNode)),new(p())(s().outputOnly,"removedEntities",new(u().MFNode))]),enumerable:!0}});const d=F;O().add("DISEntityManager","x_ite/Components/DIS/DISEntityManager",d);const y=d,m=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Core/X3DInfoNode");var I=t.n(m);const f=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Networking/X3DUrlObject");var b=t.n(f);function D(t){I().call(this,t),b().call(this,t),this.addType(s().DISEntityTypeMapping)}Object.assign(Object.setPrototypeOf(D.prototype,I().prototype),b().prototype,{initialize(){I().prototype.initialize.call(this),b().prototype.initialize.call(this)},dispose(){b().prototype.dispose.call(this),I().prototype.dispose.call(this)}}),Object.defineProperties(D,{typeName:{value:"DISEntityTypeMapping",enumerable:!0},componentInfo:{value:Object.freeze({name:"DIS",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(w())([new(p())(s().inputOutput,"metadata",new(u().SFNode)),new(p())(s().inputOutput,"description",new(u().SFString)),new(p())(s().inputOutput,"load",new(u().SFBool)(!0)),new(p())(s().inputOutput,"url",new(u().MFString)),new(p())(s().inputOutput,"autoRefresh",new(u().SFTime)),new(p())(s().inputOutput,"autoRefreshTimeLimit",new(u().SFTime)(3600)),new(p())(s().initializeOnly,"category",new(u().SFInt32)),new(p())(s().initializeOnly,"country",new(u().SFInt32)),new(p())(s().initializeOnly,"domain",new(u().SFInt32)),new(p())(s().initializeOnly,"extra",new(u().SFInt32)),new(p())(s().initializeOnly,"kind",new(u().SFInt32)),new(p())(s().initializeOnly,"specific",new(u().SFInt32)),new(p())(s().initializeOnly,"subcategory",new(u().SFInt32))]),enumerable:!0}});const g=D;O().add("DISEntityTypeMapping","x_ite/Components/DIS/DISEntityTypeMapping",g);const h=g,v=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Grouping/X3DGroupingNode");var T=t.n(v);const P=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Core/X3DSensorNode");var _=t.n(P);function z(t){T().call(this,t),_().call(this,t),this.addType(s().EspduTransform),t.getSpecificationVersion()<=3.3&&(this._applicationID=1,this._munitionApplicationID=1)}Object.assign(Object.setPrototypeOf(z.prototype,T().prototype),_().prototype,{initialize(){T().prototype.initialize.call(this),_().prototype.initialize.call(this)}}),Object.defineProperties(z,{typeName:{value:"EspduTransform",enumerable:!0},componentInfo:{value:Object.freeze({name:"DIS",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(w())([new(p())(s().inputOutput,"metadata",new(u().SFNode)),new(p())(s().inputOutput,"description",new(u().SFString)),new(p())(s().inputOutput,"enabled",new(u().SFBool)(!0)),new(p())(s().inputOutput,"visible",new(u().SFBool)(!0)),new(p())(s().inputOutput,"bboxDisplay",new(u().SFBool)),new(p())(s().initializeOnly,"bboxSize",new(u().SFVec3f)(-1,-1,-1)),new(p())(s().initializeOnly,"bboxCenter",new(u().SFVec3f)),new(p())(s().inputOnly,"addChildren",new(u().MFNode)),new(p())(s().inputOnly,"removeChildren",new(u().MFNode)),new(p())(s().inputOutput,"children",new(u().MFNode)),new(p())(s().outputOnly,"isActive",new(u().SFBool)),new(p())(s().inputOnly,"set_articulationParameterValue0",new(u().SFFloat)),new(p())(s().inputOnly,"set_articulationParameterValue1",new(u().SFFloat)),new(p())(s().inputOnly,"set_articulationParameterValue2",new(u().SFFloat)),new(p())(s().inputOnly,"set_articulationParameterValue3",new(u().SFFloat)),new(p())(s().inputOnly,"set_articulationParameterValue4",new(u().SFFloat)),new(p())(s().inputOnly,"set_articulationParameterValue5",new(u().SFFloat)),new(p())(s().inputOnly,"set_articulationParameterValue6",new(u().SFFloat)),new(p())(s().inputOnly,"set_articulationParameterValue7",new(u().SFFloat)),new(p())(s().inputOutput,"address",new(u().SFString)("localhost")),new(p())(s().inputOutput,"applicationID",new(u().SFInt32)),new(p())(s().inputOutput,"articulationParameterCount",new(u().SFInt32)),new(p())(s().inputOutput,"articulationParameterDesignatorArray",new(u().MFInt32)),new(p())(s().inputOutput,"articulationParameterChangeIndicatorArray",new(u().MFInt32)),new(p())(s().inputOutput,"articulationParameterIdPartAttachedToArray",new(u().MFInt32)),new(p())(s().inputOutput,"articulationParameterTypeArray",new(u().MFInt32)),new(p())(s().inputOutput,"articulationParameterArray",new(u().MFFloat)),new(p())(s().inputOutput,"center",new(u().SFVec3f)),new(p())(s().inputOutput,"collisionType",new(u().SFInt32)),new(p())(s().inputOutput,"deadReckoning",new(u().SFInt32)),new(p())(s().inputOutput,"detonationLocation",new(u().SFVec3f)),new(p())(s().inputOutput,"detonationRelativeLocation",new(u().SFVec3f)),new(p())(s().inputOutput,"detonationResult",new(u().SFInt32)),new(p())(s().inputOutput,"entityCategory",new(u().SFInt32)),new(p())(s().inputOutput,"entityCountry",new(u().SFInt32)),new(p())(s().inputOutput,"entityDomain",new(u().SFInt32)),new(p())(s().inputOutput,"entityExtra",new(u().SFInt32)),new(p())(s().inputOutput,"entityID",new(u().SFInt32)),new(p())(s().inputOutput,"entityKind",new(u().SFInt32)),new(p())(s().inputOutput,"entitySpecific",new(u().SFInt32)),new(p())(s().inputOutput,"entitySubcategory",new(u().SFInt32)),new(p())(s().inputOutput,"eventApplicationID",new(u().SFInt32)),new(p())(s().inputOutput,"eventEntityID",new(u().SFInt32)),new(p())(s().inputOutput,"eventNumber",new(u().SFInt32)),new(p())(s().inputOutput,"eventSiteID",new(u().SFInt32)),new(p())(s().inputOutput,"fired1",new(u().SFBool)),new(p())(s().inputOutput,"fired2",new(u().SFBool)),new(p())(s().inputOutput,"fireMissionIndex",new(u().SFInt32)),new(p())(s().inputOutput,"firingRange",new(u().SFFloat)),new(p())(s().inputOutput,"firingRate",new(u().SFInt32)),new(p())(s().inputOutput,"forceID",new(u().SFInt32)),new(p())(s().inputOutput,"fuse",new(u().SFInt32)),new(p())(s().inputOutput,"linearVelocity",new(u().SFVec3f)),new(p())(s().inputOutput,"linearAcceleration",new(u().SFVec3f)),new(p())(s().inputOutput,"marking",new(u().SFString)),new(p())(s().inputOutput,"multicastRelayHost",new(u().SFString)),new(p())(s().inputOutput,"multicastRelayPort",new(u().SFInt32)),new(p())(s().inputOutput,"munitionApplicationID",new(u().SFInt32)),new(p())(s().inputOutput,"munitionEndPoint",new(u().SFVec3f)),new(p())(s().inputOutput,"munitionEntityID",new(u().SFInt32)),new(p())(s().inputOutput,"munitionQuantity",new(u().SFInt32)),new(p())(s().inputOutput,"munitionSiteID",new(u().SFInt32)),new(p())(s().inputOutput,"munitionStartPoint",new(u().SFVec3f)),new(p())(s().inputOutput,"networkMode",new(u().SFString)("standAlone")),new(p())(s().inputOutput,"port",new(u().SFInt32)),new(p())(s().inputOutput,"readInterval",new(u().SFTime)(.1)),new(p())(s().inputOutput,"rotation",new(u().SFRotation)),new(p())(s().inputOutput,"scale",new(u().SFVec3f)(1,1,1)),new(p())(s().inputOutput,"scaleOrientation",new(u().SFRotation)),new(p())(s().inputOutput,"siteID",new(u().SFInt32)),new(p())(s().inputOutput,"translation",new(u().SFVec3f)),new(p())(s().inputOutput,"warhead",new(u().SFInt32)),new(p())(s().inputOutput,"writeInterval",new(u().SFTime)(1)),new(p())(s().outputOnly,"articulationParameterValue0_changed",new(u().SFFloat)),new(p())(s().outputOnly,"articulationParameterValue1_changed",new(u().SFFloat)),new(p())(s().outputOnly,"articulationParameterValue2_changed",new(u().SFFloat)),new(p())(s().outputOnly,"articulationParameterValue3_changed",new(u().SFFloat)),new(p())(s().outputOnly,"articulationParameterValue4_changed",new(u().SFFloat)),new(p())(s().outputOnly,"articulationParameterValue5_changed",new(u().SFFloat)),new(p())(s().outputOnly,"articulationParameterValue6_changed",new(u().SFFloat)),new(p())(s().outputOnly,"articulationParameterValue7_changed",new(u().SFFloat)),new(p())(s().outputOnly,"collideTime",new(u().SFTime)),new(p())(s().outputOnly,"detonateTime",new(u().SFTime)),new(p())(s().outputOnly,"firedTime",new(u().SFTime)),new(p())(s().outputOnly,"isCollided",new(u().SFBool)),new(p())(s().outputOnly,"isDetonated",new(u().SFBool)),new(p())(s().outputOnly,"isNetworkReader",new(u().SFBool)),new(p())(s().outputOnly,"isNetworkWriter",new(u().SFBool)),new(p())(s().outputOnly,"isRtpHeaderHeard",new(u().SFBool)),new(p())(s().outputOnly,"isStandAlone",new(u().SFBool)),new(p())(s().outputOnly,"timestamp",new(u().SFTime)),new(p())(s().inputOutput,"rtpHeaderExpected",new(u().SFBool)),new(p())(s().inputOutput,"geoCoords",new(u().SFVec3d)),new(p())(s().initializeOnly,"geoSystem",new(u().MFString)("GD","WE"))]),enumerable:!0}});const B=z;O().add("EspduTransform","x_ite/Components/DIS/EspduTransform",B);const V=B,E=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Grouping/X3DBoundedObject");var x=t.n(E);function N(t){_().call(this,t),x().call(this,t),this.addType(s().ReceiverPdu),t.getSpecificationVersion()<=3.3&&(this._applicationID=1,this._transmitterApplicationID=1)}Object.assign(Object.setPrototypeOf(N.prototype,_().prototype),x().prototype,{initialize(){_().prototype.initialize.call(this),x().prototype.initialize.call(this)},dispose(){x().prototype.dispose.call(this),_().prototype.dispose.call(this)}}),Object.defineProperties(N,{typeName:{value:"ReceiverPdu",enumerable:!0},componentInfo:{value:Object.freeze({name:"DIS",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(w())([new(p())(s().inputOutput,"metadata",new(u().SFNode)),new(p())(s().inputOutput,"description",new(u().SFString)),new(p())(s().inputOutput,"visible",new(u().SFBool)(!0)),new(p())(s().inputOutput,"bboxDisplay",new(u().SFBool)),new(p())(s().initializeOnly,"bboxSize",new(u().SFVec3f)(-1,-1,-1)),new(p())(s().initializeOnly,"bboxCenter",new(u().SFVec3f)),new(p())(s().inputOutput,"enabled",new(u().SFBool)(!0)),new(p())(s().outputOnly,"isActive",new(u().SFBool)),new(p())(s().inputOutput,"address",new(u().SFString)("localhost")),new(p())(s().inputOutput,"applicationID",new(u().SFInt32)),new(p())(s().inputOutput,"entityID",new(u().SFInt32)),new(p())(s().inputOutput,"multicastRelayHost",new(u().SFString)),new(p())(s().inputOutput,"multicastRelayPort",new(u().SFInt32)),new(p())(s().inputOutput,"networkMode",new(u().SFString)("standAlone")),new(p())(s().inputOutput,"port",new(u().SFInt32)),new(p())(s().inputOutput,"radioID",new(u().SFInt32)),new(p())(s().inputOutput,"readInterval",new(u().SFTime)(.1)),new(p())(s().inputOutput,"receivedPower",new(u().SFFloat)),new(p())(s().inputOutput,"receiverState",new(u().SFInt32)),new(p())(s().inputOutput,"rtpHeaderExpected",new(u().SFBool)),new(p())(s().inputOutput,"siteID",new(u().SFInt32)),new(p())(s().inputOutput,"transmitterApplicationID",new(u().SFInt32)),new(p())(s().inputOutput,"transmitterEntityID",new(u().SFInt32)),new(p())(s().inputOutput,"transmitterRadioID",new(u().SFInt32)),new(p())(s().inputOutput,"transmitterSiteID",new(u().SFInt32)),new(p())(s().inputOutput,"whichGeometry",new(u().SFInt32)(1)),new(p())(s().inputOutput,"writeInterval",new(u().SFTime)(1)),new(p())(s().outputOnly,"isNetworkReader",new(u().SFBool)),new(p())(s().outputOnly,"isNetworkWriter",new(u().SFBool)),new(p())(s().outputOnly,"isRtpHeaderHeard",new(u().SFBool)),new(p())(s().outputOnly,"isStandAlone",new(u().SFBool)),new(p())(s().outputOnly,"timestamp",new(u().SFTime)),new(p())(s().inputOutput,"geoCoords",new(u().SFVec3d)),new(p())(s().initializeOnly,"geoSystem",new(u().MFString)("GD","WE"))]),enumerable:!0}});const R=N;O().add("ReceiverPdu","x_ite/Components/DIS/ReceiverPdu",R);const C=R;function j(t){_().call(this,t),x().call(this,t),this.addType(s().SignalPdu),t.getSpecificationVersion()<=3.3&&(this._applicationID=1)}Object.assign(Object.setPrototypeOf(j.prototype,_().prototype),x().prototype,{initialize(){_().prototype.initialize.call(this),x().prototype.initialize.call(this)},dispose(){x().prototype.dispose.call(this),_().prototype.dispose.call(this)}}),Object.defineProperties(j,{typeName:{value:"SignalPdu",enumerable:!0},componentInfo:{value:Object.freeze({name:"DIS",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(w())([new(p())(s().inputOutput,"metadata",new(u().SFNode)),new(p())(s().inputOutput,"description",new(u().SFString)),new(p())(s().inputOutput,"visible",new(u().SFBool)(!0)),new(p())(s().inputOutput,"bboxDisplay",new(u().SFBool)),new(p())(s().initializeOnly,"bboxSize",new(u().SFVec3f)(-1,-1,-1)),new(p())(s().initializeOnly,"bboxCenter",new(u().SFVec3f)),new(p())(s().inputOutput,"enabled",new(u().SFBool)(!0)),new(p())(s().outputOnly,"isActive",new(u().SFBool)),new(p())(s().inputOutput,"address",new(u().SFString)("localhost")),new(p())(s().inputOutput,"applicationID",new(u().SFInt32)),new(p())(s().inputOutput,"data",new(u().MFInt32)),new(p())(s().inputOutput,"dataLength",new(u().SFInt32)),new(p())(s().inputOutput,"encodingScheme",new(u().SFInt32)),new(p())(s().inputOutput,"entityID",new(u().SFInt32)),new(p())(s().inputOutput,"multicastRelayHost",new(u().SFString)),new(p())(s().inputOutput,"multicastRelayPort",new(u().SFInt32)),new(p())(s().inputOutput,"networkMode",new(u().SFString)("standAlone")),new(p())(s().inputOutput,"port",new(u().SFInt32)),new(p())(s().inputOutput,"radioID",new(u().SFInt32)),new(p())(s().inputOutput,"readInterval",new(u().SFTime)(.1)),new(p())(s().inputOutput,"rtpHeaderExpected",new(u().SFBool)),new(p())(s().inputOutput,"sampleRate",new(u().SFInt32)),new(p())(s().inputOutput,"samples",new(u().SFInt32)),new(p())(s().inputOutput,"siteID",new(u().SFInt32)),new(p())(s().inputOutput,"tdlType",new(u().SFInt32)),new(p())(s().inputOutput,"whichGeometry",new(u().SFInt32)(1)),new(p())(s().inputOutput,"writeInterval",new(u().SFTime)(1)),new(p())(s().outputOnly,"isNetworkReader",new(u().SFBool)),new(p())(s().outputOnly,"isNetworkWriter",new(u().SFBool)),new(p())(s().outputOnly,"isRtpHeaderHeard",new(u().SFBool)),new(p())(s().outputOnly,"isStandAlone",new(u().SFBool)),new(p())(s().outputOnly,"timestamp",new(u().SFTime)),new(p())(s().inputOutput,"geoCoords",new(u().SFVec3d)),new(p())(s().initializeOnly,"geoSystem",new(u().MFString)("GD","WE"))]),enumerable:!0}});const M=j;O().add("SignalPdu","x_ite/Components/DIS/SignalPdu",M);const X=M;function A(t){_().call(this,t),x().call(this,t),this.addType(s().TransmitterPdu),t.getSpecificationVersion()<=3.3&&(this._applicationID=1)}Object.assign(Object.setPrototypeOf(A.prototype,_().prototype),x().prototype,{initialize(){_().prototype.initialize.call(this),x().prototype.initialize.call(this)},dispose(){x().prototype.dispose.call(this),_().prototype.dispose.call(this)}}),Object.defineProperties(A,{typeName:{value:"TransmitterPdu",enumerable:!0},componentInfo:{value:Object.freeze({name:"DIS",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(w())([new(p())(s().inputOutput,"metadata",new(u().SFNode)),new(p())(s().inputOutput,"description",new(u().SFString)),new(p())(s().inputOutput,"visible",new(u().SFBool)(!0)),new(p())(s().inputOutput,"bboxDisplay",new(u().SFBool)),new(p())(s().initializeOnly,"bboxSize",new(u().SFVec3f)(-1,-1,-1)),new(p())(s().initializeOnly,"bboxCenter",new(u().SFVec3f)),new(p())(s().inputOutput,"enabled",new(u().SFBool)(!0)),new(p())(s().outputOnly,"isActive",new(u().SFBool)),new(p())(s().inputOutput,"address",new(u().SFString)("localhost")),new(p())(s().inputOutput,"antennaLocation",new(u().SFVec3f)),new(p())(s().inputOutput,"antennaPatternLength",new(u().SFInt32)),new(p())(s().inputOutput,"antennaPatternType",new(u().SFInt32)),new(p())(s().inputOutput,"applicationID",new(u().SFInt32)),new(p())(s().inputOutput,"cryptoKeyID",new(u().SFInt32)),new(p())(s().inputOutput,"cryptoSystem",new(u().SFInt32)),new(p())(s().inputOutput,"entityID",new(u().SFInt32)),new(p())(s().inputOutput,"frequency",new(u().SFInt32)),new(p())(s().inputOutput,"inputSource",new(u().SFInt32)),new(p())(s().inputOutput,"lengthOfModulationParameters",new(u().SFInt32)),new(p())(s().inputOutput,"modulationTypeDetail",new(u().SFInt32)),new(p())(s().inputOutput,"modulationTypeMajor",new(u().SFInt32)),new(p())(s().inputOutput,"modulationTypeSpreadSpectrum",new(u().SFInt32)),new(p())(s().inputOutput,"modulationTypeSystem",new(u().SFInt32)),new(p())(s().inputOutput,"multicastRelayHost",new(u().SFString)),new(p())(s().inputOutput,"multicastRelayPort",new(u().SFInt32)),new(p())(s().inputOutput,"networkMode",new(u().SFString)("standAlone")),new(p())(s().inputOutput,"port",new(u().SFInt32)),new(p())(s().inputOutput,"power",new(u().SFFloat)),new(p())(s().inputOutput,"radioEntityTypeCategory",new(u().SFInt32)),new(p())(s().inputOutput,"radioEntityTypeCountry",new(u().SFInt32)),new(p())(s().inputOutput,"radioEntityTypeDomain",new(u().SFInt32)),new(p())(s().inputOutput,"radioEntityTypeKind",new(u().SFInt32)),new(p())(s().inputOutput,"radioEntityTypeNomenclature",new(u().SFInt32)),new(p())(s().inputOutput,"radioEntityTypeNomenclatureVersion",new(u().SFInt32)),new(p())(s().inputOutput,"radioID",new(u().SFInt32)),new(p())(s().inputOutput,"readInterval",new(u().SFTime)(.1)),new(p())(s().inputOutput,"relativeAntennaLocation",new(u().SFVec3f)),new(p())(s().inputOutput,"rtpHeaderExpected",new(u().SFBool)),new(p())(s().inputOutput,"siteID",new(u().SFInt32)),new(p())(s().inputOutput,"transmitFrequencyBandwidth",new(u().SFFloat)),new(p())(s().inputOutput,"transmitState",new(u().SFInt32)),new(p())(s().inputOutput,"whichGeometry",new(u().SFInt32)(1)),new(p())(s().inputOutput,"writeInterval",new(u().SFTime)(1)),new(p())(s().outputOnly,"isNetworkReader",new(u().SFBool)),new(p())(s().outputOnly,"isNetworkWriter",new(u().SFBool)),new(p())(s().outputOnly,"isRtpHeaderHeard",new(u().SFBool)),new(p())(s().outputOnly,"isStandAlone",new(u().SFBool)),new(p())(s().outputOnly,"timestamp",new(u().SFTime)),new(p())(s().inputOutput,"geoCoords",new(u().SFVec3d)),new(p())(s().initializeOnly,"geoSystem",new(u().MFString)("GD","WE"))]),enumerable:!0}});const k=A;O().add("TransmitterPdu","x_ite/Components/DIS/TransmitterPdu",k);const H=k;n().add({name:"DIS",concreteNodes:[y,h,V,C,X,H],abstractNodes:[]});const q=void 0;O().add("DIS","assets/components/DIS",q)})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* X_ITE v10.1.0 */(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Fields");var o=e.n(i);const l=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DFieldDefinition");var a=e.n(l);const r=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/FieldDefinitionArray");var s=e.n(r);const u=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Core/X3DChildNode");var p=e.n(u);const c=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DConstants");var d=e.n(c);const _=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Namespace");var g=e.n(_);function m(e){p().call(this,e),this.addType(d().BooleanFilter)}Object.assign(Object.setPrototypeOf(m.prototype,p().prototype),{initialize(){p().prototype.initialize.call(this),this._set_boolean.addInterest("set_boolean__",this)},set_boolean__(){const e=this._set_boolean.getValue();e?this._inputTrue=!0:this._inputFalse=!1,this._inputNegate=!e}}),Object.defineProperties(m,{typeName:{value:"BooleanFilter",enumerable:!0},componentInfo:{value:Object.freeze({name:"EventUtilities",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(d().inputOutput,"metadata",new(o().SFNode)),new(a())(d().inputOnly,"set_boolean",new(o().SFBool)),new(a())(d().outputOnly,"inputTrue",new(o().SFBool)),new(a())(d().outputOnly,"inputFalse",new(o().SFBool)),new(a())(d().outputOnly,"inputNegate",new(o().SFBool))]),enumerable:!0}});const b=m;g().add("BooleanFilter","x_ite/Components/EventUtilities/BooleanFilter",b);const h=b,f=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Algorithm");var y=e.n(f);function v(e){p().call(this,e),this.addType(d().X3DSequencerNode),this.index=-1}Object.assign(Object.setPrototypeOf(v.prototype,p().prototype),{initialize(){p().prototype.initialize.call(this),this._set_fraction.addInterest("set_fraction__",this),this._previous.addInterest("set_previous__",this),this._next.addInterest("set_next__",this),this._key.addInterest("set_index__",this)},set_fraction__(){const e=this._set_fraction.getValue(),t=this._key,n=t.length;if(0===n)return;let i=0;if(1===n||e<=t[0])i=0;else if(e>=t[n-1])i=this.getSize()-1;else{i=y().upperBound(t,0,n,e)-1}i!==this.index&&i<this.getSize()&&this.sequence(this.index=i)},set_previous__(){this._previous.getValue()&&(this.index<=0?this.index=this.getSize()-1:--this.index,this.index<this.getSize()&&this.sequence(this.index))},set_next__(){this._next.getValue()&&(this.index>=this.getSize()-1?this.index=0:++this.index,this.index<this.getSize()&&this.sequence(this.index))},set_index__(){this.index=-1}}),Object.defineProperties(v,{typeName:{value:"X3DSequencerNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"EventUtilities",level:1}),enumerable:!0}});const w=v;g().add("X3DSequencerNode","x_ite/Components/EventUtilities/X3DSequencerNode",w);const O=w;function S(e){O.call(this,e),this.addType(d().BooleanSequencer)}Object.assign(Object.setPrototypeOf(S.prototype,O.prototype),{initialize(){O.prototype.initialize.call(this),this._keyValue.addInterest("set_index__",this)},getSize(){return this._keyValue.length},sequence(e){this._value_changed=this._keyValue[e]}}),Object.defineProperties(S,{typeName:{value:"BooleanSequencer",enumerable:!0},componentInfo:{value:Object.freeze({name:"EventUtilities",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(d().inputOutput,"metadata",new(o().SFNode)),new(a())(d().inputOnly,"set_fraction",new(o().SFFloat)),new(a())(d().inputOnly,"previous",new(o().SFBool)),new(a())(d().inputOnly,"next",new(o().SFBool)),new(a())(d().inputOutput,"key",new(o().MFFloat)),new(a())(d().inputOutput,"keyValue",new(o().MFBool)),new(a())(d().outputOnly,"value_changed",new(o().SFBool))]),enumerable:!0}});const T=S;g().add("BooleanSequencer","x_ite/Components/EventUtilities/BooleanSequencer",T);const F=T;function I(e){p().call(this,e),this.addType(d().BooleanToggle)}Object.assign(Object.setPrototypeOf(I.prototype,p().prototype),{initialize(){p().prototype.initialize.call(this),this._set_boolean.addInterest("set_boolean__",this)},set_boolean__(){this._set_boolean.getValue()&&(this._toggle=!this._toggle.getValue())}}),Object.defineProperties(I,{typeName:{value:"BooleanToggle",enumerable:!0},componentInfo:{value:Object.freeze({name:"EventUtilities",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(d().inputOutput,"metadata",new(o().SFNode)),new(a())(d().inputOnly,"set_boolean",new(o().SFBool)),new(a())(d().inputOutput,"toggle",new(o().SFBool))]),enumerable:!0}});const j=I;g().add("BooleanToggle","x_ite/Components/EventUtilities/BooleanToggle",j);const x=j;function z(e){p().call(this,e),this.addType(d().X3DTriggerNode)}Object.setPrototypeOf(z.prototype,p().prototype),Object.defineProperties(z,{typeName:{value:"X3DTriggerNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"EventUtilities",level:1}),enumerable:!0}});const B=z;g().add("X3DTriggerNode","x_ite/Components/EventUtilities/X3DTriggerNode",B);const N=B;function E(e){N.call(this,e),this.addType(d().BooleanTrigger)}Object.assign(Object.setPrototypeOf(E.prototype,N.prototype),{initialize(){N.prototype.initialize.call(this),this._set_triggerTime.addInterest("set_triggerTime__",this)},set_triggerTime__(){this._triggerTrue=!0}}),Object.defineProperties(E,{typeName:{value:"BooleanTrigger",enumerable:!0},componentInfo:{value:Object.freeze({name:"EventUtilities",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(d().inputOutput,"metadata",new(o().SFNode)),new(a())(d().inputOnly,"set_triggerTime",new(o().SFTime)),new(a())(d().outputOnly,"triggerTrue",new(o().SFBool))]),enumerable:!0}});const D=E;g().add("BooleanTrigger","x_ite/Components/EventUtilities/BooleanTrigger",D);const X=D;function q(e){O.call(this,e),this.addType(d().IntegerSequencer)}Object.assign(Object.setPrototypeOf(q.prototype,O.prototype),{initialize(){O.prototype.initialize.call(this),this._keyValue.addInterest("set_index__",this)},getSize(){return this._keyValue.length},sequence(e){this._value_changed=this._keyValue[e]}}),Object.defineProperties(q,{typeName:{value:"IntegerSequencer",enumerable:!0},componentInfo:{value:Object.freeze({name:"EventUtilities",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(d().inputOutput,"metadata",new(o().SFNode)),new(a())(d().inputOnly,"set_fraction",new(o().SFFloat)),new(a())(d().inputOnly,"previous",new(o().SFBool)),new(a())(d().inputOnly,"next",new(o().SFBool)),new(a())(d().inputOutput,"key",new(o().MFFloat)),new(a())(d().inputOutput,"keyValue",new(o().MFInt32)),new(a())(d().outputOnly,"value_changed",new(o().SFInt32))]),enumerable:!0}});const U=q;g().add("IntegerSequencer","x_ite/Components/EventUtilities/IntegerSequencer",U);const P=U;function V(e){N.call(this,e),this.addType(d().IntegerTrigger)}Object.assign(Object.setPrototypeOf(V.prototype,N.prototype),{initialize(){N.prototype.initialize.call(this),this._set_boolean.addInterest("set_boolean__",this)},set_boolean__(){this._triggerValue=this._integerKey}}),Object.defineProperties(V,{typeName:{value:"IntegerTrigger",enumerable:!0},componentInfo:{value:Object.freeze({name:"EventUtilities",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(d().inputOutput,"metadata",new(o().SFNode)),new(a())(d().inputOnly,"set_boolean",new(o().SFBool)),new(a())(d().inputOutput,"integerKey",new(o().SFInt32)(-1)),new(a())(d().outputOnly,"triggerValue",new(o().SFInt32))]),enumerable:!0}});const C=V;g().add("IntegerTrigger","x_ite/Components/EventUtilities/IntegerTrigger",C);const k=C;function R(e){N.call(this,e),this.addType(d().TimeTrigger)}Object.assign(Object.setPrototypeOf(R.prototype,N.prototype),{initialize(){N.prototype.initialize.call(this),this._set_boolean.addInterest("set_boolean__",this)},set_boolean__(){this._triggerTime=this.getBrowser().getCurrentTime()}}),Object.defineProperties(R,{typeName:{value:"TimeTrigger",enumerable:!0},componentInfo:{value:Object.freeze({name:"EventUtilities",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(s())([new(a())(d().inputOutput,"metadata",new(o().SFNode)),new(a())(d().inputOnly,"set_boolean",new(o().SFBool)),new(a())(d().outputOnly,"triggerTime",new(o().SFTime))]),enumerable:!0}});const M=R;g().add("TimeTrigger","x_ite/Components/EventUtilities/TimeTrigger",M);const A=M;n().add({name:"EventUtilities",concreteNodes:[h,F,x,X,P,k,A],abstractNodes:[O,N]});const K=void 0;g().add("EventUtilities","assets/components/EventUtilities",K)})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* X_ITE v10.1.0 */(()=>{"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 s in i)e.o(i,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:i[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components");var i=e.n(t);const s=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DBaseNode");var n=e.n(s);const o=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DConstants");var r=e.n(o);const a=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Fields");var l=e.n(a);const c=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Namespace");var u=e.n(c);function h(e){n().call(this,e),this.addChildObjects(r().inputOutput,"dimension",new(l().SFInt32)(40))}Object.setPrototypeOf(h.prototype,n().prototype),Object.defineProperties(h,{typeName:{value:"Arc2DOptions",enumerable:!0}});const p=h;u().add("Arc2DOptions","x_ite/Browser/Geometry2D/Arc2DOptions",p);const d=p;function g(e){n().call(this,e),this.addChildObjects(r().inputOutput,"dimension",new(l().SFInt32)(40))}Object.setPrototypeOf(g.prototype,n().prototype),Object.defineProperties(g,{typeName:{value:"ArcClose2DOptions",enumerable:!0}});const m=g;u().add("ArcClose2DOptions","x_ite/Browser/Geometry2D/ArcClose2DOptions",m);const y=m,b=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Rendering/X3DGeometryNode");var f=e.n(b);const D=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Numbers/Complex");var O=e.n(D);function w(e){n().call(this,e),this.addChildObjects(r().inputOutput,"dimension",new(l().SFInt32)(40)),this.vertices=f().createArray()}Object.assign(Object.setPrototypeOf(w.prototype,n().prototype),{initialize(){this.addInterest("build",this),this.build()},getVertices(){return this.vertices},build(){const e=this._dimension.getValue(),t=2*Math.PI/e,i=this.vertices;i.length=0;for(let s=0;s<e;++s){const e=O().Polar(1,t*s),n=O().Polar(1,t*(s+1));i.push(e.real,e.imag,0,1),i.push(n.real,n.imag,0,1)}i.shrinkToFit()}}),Object.defineProperties(w,{typeName:{value:"Circle2DOptions",enumerable:!0}});const _=w;u().add("Circle2DOptions","x_ite/Browser/Geometry2D/Circle2DOptions",_);const v=_;function C(e){n().call(this,e),this.addChildObjects(r().inputOutput,"dimension",new(l().SFInt32)(40)),this.circleVertices=f().createArray(),this.diskTexCoords=f().createArray(),this.diskNormals=f().createArray(),this.diskVertices=f().createArray()}Object.assign(Object.setPrototypeOf(C.prototype,n().prototype),{initialize(){this.addInterest("build",this),this.build()},getCircleVertices(){return this.circleVertices},getDiskTexCoords(){return this.diskTexCoords},getDiskNormals(){return this.diskNormals},getDiskVertices(){return this.diskVertices},build:(()=>{const e=new(O())(.5,.5),t=new(O()),i=new(O()),s=new(O()),n=new(O());return function(){const o=this._dimension.getValue(),r=2*Math.PI/o,a=this.circleVertices,l=this.diskTexCoords,c=this.diskNormals,u=this.diskVertices;a.length=0,l.length=0,c.length=0,u.length=0;for(let h=0;h<o;++h){const o=r*h,p=r*(h+1);t.setPolar(.5,o).add(e),i.setPolar(.5,p).add(e),s.setPolar(1,o),n.setPolar(1,p),a.push(s.real,s.imag,0,1),a.push(n.real,n.imag,0,1),l.push(.5,.5,0,1,t.real,t.imag,0,1,i.real,i.imag,0,1),c.push(0,0,1,0,0,1,0,0,1),u.push(0,0,0,1,s.real,s.imag,0,1,n.real,n.imag,0,1)}a.shrinkToFit(),l.shrinkToFit(),c.shrinkToFit(),u.shrinkToFit()}})()}),Object.defineProperties(C,{typeName:{value:"Disk2DOptions",enumerable:!0}});const x=C;u().add("Disk2DOptions","x_ite/Browser/Geometry2D/Disk2DOptions",x);const V=x,S=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Geometry3D/IndexedFaceSet");var I=e.n(S);const P=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Rendering/Coordinate");var T=e.n(P);const M=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Texturing/TextureCoordinate");var j=e.n(M);function F(e){n().call(this,e)}Object.assign(Object.setPrototypeOf(F.prototype,n().prototype),{initialize(){n().prototype.initialize.call(this)},getGeometry(){if(this.geometry)return this.geometry;this.geometry=new(I())(this.getExecutionContext()),this.geometry._texCoord=new(j())(this.getExecutionContext()),this.geometry._coord=new(T())(this.getExecutionContext());const e=this.geometry,t=this.geometry._texCoord.getValue(),i=this.geometry._coord.getValue();return t._point=[1,1,0,1,0,0,1,0],i._point=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],e._coordIndex=[0,1,2,3,-1],t.setup(),i.setup(),e.setup(),this.geometry}}),Object.defineProperties(F,{typeName:{value:"Rectangle2DOptions",enumerable:!0}});const A=F;u().add("Rectangle2DOptions","x_ite/Browser/Geometry2D/Rectangle2DOptions",A);const N=A,G=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Browser/Core/PrimitiveQuality");var B=e.n(G);function z(){}function R(e,t){const i=new t(this.getPrivateScene());return i.setup(),this[e]=function(){return i},Object.defineProperty(this,e,{enumerable:!1}),i}Object.assign(z.prototype,{initialize(){this.setPrimitiveQuality2D(this.getBrowserOptions().getPrimitiveQuality())},getArc2DOptions(){return R.call(this,"getArc2DOptions",d)},getArcClose2DOptions(){return R.call(this,"getArcClose2DOptions",y)},getCircle2DOptions(){return R.call(this,"getCircle2DOptions",v)},getDisk2DOptions(){return R.call(this,"getDisk2DOptions",V)},getRectangle2DOptions(){return R.call(this,"getRectangle2DOptions",N)},setPrimitiveQuality2D(e){const t=this.getArc2DOptions(),i=this.getArcClose2DOptions(),s=this.getCircle2DOptions(),n=this.getDisk2DOptions();switch(e){case B().LOW:t._dimension=20,i._dimension=20,s._dimension=20,n._dimension=20;break;case B().MEDIUM:t._dimension=40,i._dimension=40,s._dimension=40,n._dimension=40;break;case B().HIGH:t._dimension=80,i._dimension=80,s._dimension=80,n._dimension=80}}});const X=z;u().add("X3DGeometry2DContext","x_ite/Browser/Geometry2D/X3DGeometry2DContext",X);const k=X,q=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DFieldDefinition");var E=e.n(q);const U=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/FieldDefinitionArray");var L=e.n(U);const Q=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Rendering/X3DLineGeometryNode");var H=e.n(Q);const W=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Algorithm");var J=e.n(W);function K(e){H().call(this,e),this.addType(r().Arc2D),this._startAngle.setUnit("angle"),this._endAngle.setUnit("angle"),this._radius.setUnit("length")}Object.assign(Object.setPrototypeOf(K.prototype,H().prototype),{set_live__(){H().prototype.set_live__.call(this);const e=this.isLive()&&this.getBrowser().getBrowserOption("AlwaysUpdateGeometries");this.getLive().getValue()||e?this.getBrowser().getArc2DOptions().addInterest("requestRebuild",this):this.getBrowser().getArc2DOptions().removeInterest("requestRebuild",this)},getSweepAngle(){const e=J().interval(this._startAngle.getValue(),0,2*Math.PI),t=J().interval(this._endAngle.getValue(),0,2*Math.PI);if(e===t)return 2*Math.PI;const i=Math.abs(t-e);return e>t?2*Math.PI-i:isNaN(i)?0:i},build(){const e=this.getBrowser().getArc2DOptions()._dimension.getValue(),t=this._startAngle.getValue(),i=Math.abs(this._radius.getValue()),s=this.getSweepAngle(),n=Math.max(3,Math.floor(s*e/(2*Math.PI))),o=this.getVertices();for(let e=0;e<n;++e){const r=t+s*(e/n),a=O().Polar(i,r),l=t+s*((e+1)/n),c=O().Polar(i,l);o.push(a.real,a.imag,0,1),o.push(c.real,c.imag,0,1)}this.getMin().set(-i,-i,0),this.getMax().set(i,i,0)}}),Object.defineProperties(K,{typeName:{value:"Arc2D",enumerable:!0},componentInfo:{value:Object.freeze({name:"Geometry2D",level:2}),enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(L())([new(E())(r().inputOutput,"metadata",new(l().SFNode)),new(E())(r().initializeOnly,"startAngle",new(l().SFFloat)),new(E())(r().initializeOnly,"endAngle",new(l().SFFloat)(1.570796)),new(E())(r().initializeOnly,"radius",new(l().SFFloat)(1))]),enumerable:!0}});const Y=K;u().add("Arc2D","x_ite/Components/Geometry2D/Arc2D",Y);const Z=Y;function $(e){f().call(this,e),this.addType(r().ArcClose2D),this.setGeometryType(2),this._startAngle.setUnit("angle"),this._endAngle.setUnit("angle"),this._radius.setUnit("length")}Object.assign(Object.setPrototypeOf($.prototype,f().prototype),{set_live__(){f().prototype.set_live__.call(this);const e=this.isLive()&&this.getBrowser().getBrowserOption("AlwaysUpdateGeometries");this.getLive().getValue()||e?this.getBrowser().getArcClose2DOptions().addInterest("requestRebuild",this):this.getBrowser().getArcClose2DOptions().removeInterest("requestRebuild",this)},getSweepAngle(){const e=J().interval(this._startAngle.getValue(),0,2*Math.PI),t=J().interval(this._endAngle.getValue(),0,2*Math.PI);if(e===t)return 2*Math.PI;const i=Math.abs(t-e);return e>t?2*Math.PI-i:isNaN(i)?0:i},build:(()=>{const e=new(O())(.5,.5);return function(){const t=this.getBrowser().getArcClose2DOptions(),i="CHORD"===this._closureType.getValue(),s=t._dimension.getValue(),n=this._startAngle.getValue(),o=Math.abs(this._radius.getValue()),r=this.getSweepAngle(),a=Math.max(4,Math.floor(r*s/(2*Math.PI))),l=this.getTexCoords(),c=this.getNormals(),u=this.getVertices(),h=[],p=[];this.getMultiTexCoords().push(l);const d=a-1;for(let t=0;t<a;++t){const i=n+r*(t/d);h.push(O().Polar(.5,i).add(e)),p.push(O().Polar(o,i))}if(i){const e=h[0],t=p[0];for(let i=1;i<d;++i){const s=h[i],n=h[i+1],o=p[i],r=p[i+1];l.push(e.real,e.imag,0,1,s.real,s.imag,0,1,n.real,n.imag,0,1),c.push(0,0,1,0,0,1,0,0,1),u.push(t.real,t.imag,0,1,o.real,o.imag,0,1,r.real,r.imag,0,1)}}else for(let e=0;e<d;++e){const t=h[e],i=h[e+1],s=p[e],n=p[e+1];l.push(.5,.5,0,1,t.real,t.imag,0,1,i.real,i.imag,0,1),c.push(0,0,1,0,0,1,0,0,1),u.push(0,0,0,1,s.real,s.imag,0,1,n.real,n.imag,0,1)}this.getMin().set(-o,-o,0),this.getMax().set(o,o,0),this.setSolid(this._solid.getValue())}})()}),Object.defineProperties($,{typeName:{value:"ArcClose2D",enumerable:!0},componentInfo:{value:Object.freeze({name:"Geometry2D",level:2}),enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(L())([new(E())(r().inputOutput,"metadata",new(l().SFNode)),new(E())(r().initializeOnly,"closureType",new(l().SFString)("PIE")),new(E())(r().initializeOnly,"startAngle",new(l().SFFloat)),new(E())(r().initializeOnly,"endAngle",new(l().SFFloat)(1.570796)),new(E())(r().initializeOnly,"radius",new(l().SFFloat)(1)),new(E())(r().initializeOnly,"solid",new(l().SFBool))]),enumerable:!0}});const ee=$;u().add("ArcClose2D","x_ite/Components/Geometry2D/ArcClose2D",ee);const te=ee;function ie(e){H().call(this,e),this.addType(r().Circle2D),this._radius.setUnit("length")}Object.assign(Object.setPrototypeOf(ie.prototype,H().prototype),{set_live__(){H().prototype.set_live__.call(this);const e=this.isLive()&&this.getBrowser().getBrowserOption("AlwaysUpdateGeometries");this.getLive().getValue()||e?this.getBrowser().getCircle2DOptions().addInterest("requestRebuild",this):this.getBrowser().getCircle2DOptions().removeInterest("requestRebuild",this)},build(){const e=this.getBrowser().getCircle2DOptions(),t=this.getVertices(),i=this._radius.getValue();if(1===i)this.setVertices(e.getVertices());else{const s=e.getVertices().getValue();for(let e=0,n=s.length;e<n;e+=4)t.push(s[e]*i,s[e+1]*i,0,1)}this.getMin().set(-i,-i,0),this.getMax().set(i,i,0)}}),Object.defineProperties(ie,{typeName:{value:"Circle2D",enumerable:!0},componentInfo:{value:Object.freeze({name:"Geometry2D",level:2}),enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(L())([new(E())(r().inputOutput,"metadata",new(l().SFNode)),new(E())(r().initializeOnly,"radius",new(l().SFFloat)(1))]),enumerable:!0}});const se=ie;u().add("Circle2D","x_ite/Components/Geometry2D/Circle2D",se);const ne=se,oe=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Rendering/X3DPointGeometryNode");var re=e.n(oe);function ae(e){H().call(this,e),this.addType(r().Disk2D),this._innerRadius.setUnit("length"),this._outerRadius.setUnit("length")}Object.assign(Object.setPrototypeOf(ae.prototype,f().prototype),{initialize(){f().prototype.initialize.call(this)},set_live__(){f().prototype.set_live__.call(this);const e=this.isLive()&&this.getBrowser().getBrowserOption("AlwaysUpdateGeometries");this.getLive().getValue()||e?this.getBrowser().getDisk2DOptions().addInterest("requestRebuild",this):this.getBrowser().getDisk2DOptions().removeInterest("requestRebuild",this)},build(){const e=this.getBrowser(),t=e.getContext(),i=e.getDisk2DOptions(),s=Math.min(Math.abs(this._innerRadius.getValue()),Math.abs(this._outerRadius.getValue())),n=Math.max(Math.abs(this._innerRadius.getValue()),Math.abs(this._outerRadius.getValue()));if(s===n){const e=this.getVertices();if(0===n)return e.push(0,0,0,1),this.getMin().set(0,0,0),this.getMax().set(0,0,0),this.setGeometryType(0),this.setPrimitiveMode(t.POINTS),this.setTransparent(!0),void this.setBase(re());if(1===n)this.setVertices(i.getCircleVertices());else{const t=i.getCircleVertices().getValue();for(let i=0,s=t.length;i<s;i+=4)e.push(t[i]*n,t[i+1]*n,0,1)}return this.getMin().set(-n,-n,0),this.getMax().set(n,n,0),this.setGeometryType(1),this.setPrimitiveMode(t.LINES),this.setTransparent(!1),void this.setBase(H())}if(0===s){if(this.getMultiTexCoords().push(i.getDiskTexCoords()),this.setNormals(i.getDiskNormals()),1===n)this.setVertices(i.getDiskVertices());else{const e=i.getDiskVertices().getValue(),t=this.getVertices();for(let i=0,s=e.length;i<s;i+=4)t.push(e[i]*n,e[i+1]*n,0,1)}return this.getMin().set(-n,-n,0),this.getMax().set(n,n,0),this.setGeometryType(2),this.setPrimitiveMode(t.TRIANGLES),this.setTransparent(!1),this.setSolid(this._solid.getValue()),void this.setBase(f())}const o=s/n,r=(1-o)/2,a=i.getDiskTexCoords().getValue(),l=i.getDiskVertices().getValue(),c=this.getTexCoords(),u=this.getNormals(),h=this.getVertices();this.getMultiTexCoords().push(c);for(let e=0,t=l.length;e<t;e+=12)c.push(a[e+4]*o+r,a[e+5]*o+r,0,1,a[e+4],a[e+5],0,1,a[e+8],a[e+9],0,1,a[e+4]*o+r,a[e+5]*o+r,0,1,a[e+8],a[e+9],0,1,a[e+8]*o+r,a[e+9]*o+r,0,1),u.push(0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1),h.push(l[e+4]*s,l[e+5]*s,0,1,l[e+4]*n,l[e+5]*n,0,1,l[e+8]*n,l[e+9]*n,0,1,l[e+4]*s,l[e+5]*s,0,1,l[e+8]*n,l[e+9]*n,0,1,l[e+8]*s,l[e+9]*s,0,1);this.getMin().set(-n,-n,0),this.getMax().set(n,n,0),this.setGeometryType(2),this.setPrimitiveMode(t.TRIANGLES),this.setTransparent(!1),this.setSolid(this._solid.getValue()),this.setBase(f())},setBase(e){this.intersectsLine=e.prototype.intersectsLine,this.intersectsBox=e.prototype.intersectsBox,this.buildTexCoords=e.prototype.buildTexCoords,this.displaySimple=e.prototype.displaySimple,this.display=e.prototype.display,this.displaySimpleInstanced=e.prototype.displaySimpleInstanced,this.displayInstanced=e.prototype.displayInstanced},updateRenderFunctions(){}}),Object.defineProperties(ae,{typeName:{value:"Disk2D",enumerable:!0},componentInfo:{value:Object.freeze({name:"Geometry2D",level:2}),enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(L())([new(E())(r().inputOutput,"metadata",new(l().SFNode)),new(E())(r().initializeOnly,"innerRadius",new(l().SFFloat)),new(E())(r().initializeOnly,"outerRadius",new(l().SFFloat)(1)),new(E())(r().initializeOnly,"solid",new(l().SFBool))]),enumerable:!0}});const le=ae;u().add("Disk2D","x_ite/Components/Geometry2D/Disk2D",le);const ce=le;function ue(e){H().call(this,e),this.addType(r().Polyline2D),this._lineSegments.setUnit("length")}Object.assign(Object.setPrototypeOf(ue.prototype,H().prototype),{build(){const e=this._lineSegments.getValue(),t=this.getVertices();for(let i=0,s=2*(this._lineSegments.length-1);i<s;i+=2)t.push(e[i+0],e[i+1],0,1),t.push(e[i+2],e[i+3],0,1)}}),Object.defineProperties(ue,{typeName:{value:"Polyline2D",enumerable:!0},componentInfo:{value:Object.freeze({name:"Geometry2D",level:1}),enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(L())([new(E())(r().inputOutput,"metadata",new(l().SFNode)),new(E())(r().initializeOnly,"lineSegments",new(l().MFVec2f))]),enumerable:!0}});const he=ue;u().add("Polyline2D","x_ite/Components/Geometry2D/Polyline2D",he);const pe=he;function de(e){re().call(this,e),this.addType(r().Polypoint2D),this._point.setUnit("length")}Object.assign(Object.setPrototypeOf(de.prototype,re().prototype),{build(){const e=this._point.getValue(),t=this.getVertices();for(let i=0,s=2*this._point.length;i<s;i+=2)t.push(e[i],e[i+1],0,1)}}),Object.defineProperties(de,{typeName:{value:"Polypoint2D",enumerable:!0},componentInfo:{value:Object.freeze({name:"Geometry2D",level:1}),enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(L())([new(E())(r().inputOutput,"metadata",new(l().SFNode)),new(E())(r().inputOutput,"point",new(l().MFVec2f))]),enumerable:!0}});const ge=de;u().add("Polypoint2D","x_ite/Components/Geometry2D/Polypoint2D",ge);const me=ge,ye=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Numbers/Vector2");var be=e.n(ye);function fe(e){f().call(this,e),this.addType(r().Rectangle2D),this.setGeometryType(2),this._size.setUnit("length")}Object.assign(Object.setPrototypeOf(fe.prototype,f().prototype),{build:(()=>{const e=new(be())(2,2);return function(){const t=this.getBrowser().getRectangle2DOptions().getGeometry(),i=this._size.getValue();if(this.setMultiTexCoords(t.getMultiTexCoords()),this.setNormals(t.getNormals()),i.equals(e))this.setVertices(t.getVertices()),this.getMin().assign(t.getMin()),this.getMax().assign(t.getMax());else{const e=Math.abs(i.x/2),s=Math.abs(i.y/2),n=t.getVertices().getValue(),o=this.getVertices();for(let t=0;t<n.length;t+=4)o.push(e*n[t],s*n[t+1],0,1);this.getMin().set(-e,-s,0),this.getMax().set(e,s,0)}this.setSolid(this._solid.getValue())}})()}),Object.defineProperties(fe,{typeName:{value:"Rectangle2D",enumerable:!0},componentInfo:{value:Object.freeze({name:"Geometry2D",level:1}),enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(L())([new(E())(r().inputOutput,"metadata",new(l().SFNode)),new(E())(r().initializeOnly,"size",new(l().SFVec2f)(2,2)),new(E())(r().initializeOnly,"solid",new(l().SFBool))]),enumerable:!0}});const De=fe;u().add("Rectangle2D","x_ite/Components/Geometry2D/Rectangle2D",De);const Oe=De;function we(e){f().call(this,e),this.addType(r().TriangleSet2D),this.setGeometryType(2),this._vertices.setUnit("length")}Object.assign(Object.setPrototypeOf(we.prototype,f().prototype),{build(){const e=this._vertices.getValue(),t=this.getNormals(),i=this.getVertices();for(let s=0,n=2*this._vertices.length;s<n;s+=2)t.push(0,0,1),i.push(e[s],e[s+1],0,1);this.setSolid(this._solid.getValue())},buildTexCoords(){const e=this.getTexCoords();if(0===e.length){const t=this.getTexCoordParams(),i=t.min,s=t.Ssize,n=this.getVertices().getValue();for(let t=0,o=n.length;t<o;t+=4)e.push((n[t]-i[0])/s,(n[t+1]-i[1])/s,0,1);e.shrinkToFit()}this.getMultiTexCoords().push(e)}}),Object.defineProperties(we,{typeName:{value:"TriangleSet2D",enumerable:!0},componentInfo:{value:Object.freeze({name:"Geometry2D",level:1}),enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(L())([new(E())(r().inputOutput,"metadata",new(l().SFNode)),new(E())(r().inputOutput,"vertices",new(l().MFVec2f)),new(E())(r().initializeOnly,"solid",new(l().SFBool))]),enumerable:!0}});const _e=we;u().add("TriangleSet2D","x_ite/Components/Geometry2D/TriangleSet2D",_e);const ve=_e;i().add({name:"Geometry2D",concreteNodes:[Z,te,ne,ce,pe,me,Oe,ve],abstractNodes:[],browserContext:k});const Ce=void 0;u().add("Geometry2D","assets/components/Geometry2D",Ce)})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* X_ITE v10.1.0 */(()=>{"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-10.1.0")].require("x_ite/Components");var i=e.n(t);const n=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Fields");var o=e.n(n);const s=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const a=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/FieldDefinitionArray");var l=e.n(a);const h=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Rendering/X3DCoordinateNode");var d=e.n(h);const c=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DConstants");var u=e.n(c);const p=window[Symbol.for("X_ITE.X3D-10.1.0")].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().add("Spheroid3","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().add("ReferenceEllipsoids","standard/Geospatial/ReferenceEllipsoids",O);const y=O;function f(e,t,i){this.longitudeFirst=!t,this.degrees=!i,this.a=e.getSemiMajorAxis(),this.c=e.getSemiMinorAxis(),this.c2a2=(e.getSemiMinorAxis()/this.a)**2,this.ecc2=1-this.c2a2}Object.assign(f.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=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 b=f;g().add("Geodetic","standard/Geospatial/Geodetic",b);const S=b,I=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Algorithm");var v=e.n(I);const F=1e7,x=5e5,C=.9996;function N(e,t,i,n){const o=e.getSemiMajorAxis(),s=1-(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=C*(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 S(e,!0,!0)}Object.assign(N.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-=F),n-=x;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.sin(r)**2,l=Math.cos(r),h=Math.tan(r),d=this.a/Math.sqrt(1-this.ecc2*a),c=h**2,u=h**8,p=this.EE*c,g=p*p,_=this.E/(1-this.ecc2*a)**1.5,w=n/(d*C),m=(5+3*c+10*p-4*g-this.E9)*w**4/24,O=(61+90*c+298*p+45*u-this.E252-3*g)*w**6/720,y=(5-2*p+28*c-3*g+this.E8+24*u)*w**5/120,f=r-d*h/_*(w*w/2-m+O),b=this.longitude0+(w-(1+2*c+p)*w**3/6+y)/l;return this.geodeticConverter.convertRadians(f,b,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.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=C*l*(u+(1-h+c)*u**3/6+(5-18*d+72*c-58*a)*u**5/120)+x;let _=C*(p+l*s*(u*u/2+(5-h+9*c+4*c*c)*u**4/24+(61-58*d+600*c-330*a)*u**6/720));return n<0?(_+=F,this.southernHemisphere||(_=-_)):this.southernHemisphere&&(_=-_),this.eastingFirst?t.set(g,_,i.z):t.set(_,g,i.z)}});const j=N;g().add("UniversalTransverseMercator","standard/Geospatial/UniversalTransverseMercator",j);const M=j;function G(){}Object.assign(G.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 z=G;g().add("Geocentric","x_ite/Browser/Geospatial/Geocentric",z);const V=z;let T=0;const D=T++,P=T++,E=T++,X={GD:D,GDC:D,UTM:P,GC:E,GCC:E,GS:E},R=/^Z(\d+)$/,k={GD:D,UTM:P,GC:E,getReferenceFrame(e,t){switch(this.getCoordinateSystem(e)){case D:return new S(this.getEllipsoid(e),this.getLatitudeFirst(e),t);case P:return new M(this.getEllipsoid(e),this.getZone(e),this.getNorthernHemisphere(e),this.getNorthingFirst(e));case E:return new V}return new S(y.WE,!0,t)},getElevationFrame(e,t){return new S(this.getEllipsoid(e),!0,t)},getCoordinateSystem(e){for(const t of e){const e=X[t];if(void 0!==e)return e}return D},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 D:return this.getLatitudeFirst(e);case P:return this.getNorthingFirst(e);case E: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().add("GeospatialObject","x_ite/Browser/Geospatial/GeospatialObject",k);const L=k,A=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DCast");var B=e.n(A);const U=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Numbers/Vector3");var q=e.n(U);const W=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Numbers/Matrix4");var H=e.n(W);const Y=new(q()),Z=new(q()),$=new(q()),K=new(q()),J=new(q()),Q=new(q());function ee(e){this.addType(u().X3DGeospatialObject),this.radians=!1,this.origin=new(q()),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(q().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=L.getCoordinateSystem(this._geoSystem),this.referenceFrame=L.getReferenceFrame(this._geoSystem,this.radians),this.elevationFrame=L.getElevationFrame(this._geoSystem,this.radians),this.standardOrder=L.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=B()(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(q().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},componentInfo:{value:Object.freeze({name:"Geospatial",level:1}),enumerable:!0}});const re=ee;g().add("X3DGeospatialObject","x_ite/Components/Geospatial/X3DGeospatialObject",re);const ae=re,le=window[Symbol.for("X_ITE.X3D-10.1.0")].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(q());return function(t,i){this._point[t]=this.getGeoCoord(i,e)}})(),get1Point:(()=>{const e=new(q());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(q()),t=new(q());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(q()),t=new(q());return function(i){const n=this.point,o=3*this.length;for(let s=0;s<o;s+=3)this.getCoord(e.set(n[s],n[s+1],n[s+2]),t),i.push(t[0],t[1],t[2],1);return i}})(),getNormal:(()=>{const e=new(q()),t=new(q()),i=new(q());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(q())):new(q())}})(),getQuadNormal:(()=>{const e=new(q()),t=new(q()),i=new(q()),n=new(q());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(q())):new(q())}})(),dispose(){ae.prototype.dispose.call(this),d().prototype.dispose.call(this)}}),Object.defineProperties(de,{typeName:{value:"GeoCoordinate",enumerable:!0},componentInfo:{value:Object.freeze({name:"Geospatial",level:1}),enumerable:!0},containerField:{value:"coord",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"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().add("GeoCoordinate","x_ite/Components/Geospatial/GeoCoordinate",ce);const ue=ce,pe=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Rendering/X3DGeometryNode");var ge=e.n(pe);const _e=window[Symbol.for("X_ITE.X3D-10.1.0")].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._set_height.setUnit("length"),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._set_height.addFieldInterest(this._height),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=B()(u().X3DColorNode,this._color),this.colorNode?.addInterest("requestRebuild",this),this.setTransparent(this.colorNode?.isTransparent())},set_texCoord__(){this.texCoordNode?.removeInterest("requestRebuild",this),this.texCoordNode=B()(u().X3DTextureCoordinateNode,this._texCoord),this.texCoordNode?.addInterest("requestRebuild",this),this.setTextureCoordinate(this.texCoordNode)},set_normal__(){this.normalNode?.removeInterest("requestRebuild",this),this.normalNode=B()(u().X3DNormalNode,this._normal),this.normalNode?.addInterest("requestRebuild",this)},getColor(){return this.colorNode},getTexCoord(){return this.texCoordNode},getNormal(){return this.normalNode},getTangent(){return this.tangentNode},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(q()));n&&h.negate(),s.push(h),s.push(h),s.push(h)}return this._normalPerVertex.getValue()?this.refineNormals(o,s,i??this._creaseAngle.getValue()):s},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(q())(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(q())(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.getTangent(),a=this.createPoints(),l=this.getColors(),h=this.getMultiTexCoords(),d=this.getNormals(),c=this.getTangent(),u=this.getVertices();let p=0;if(o)o.init(h);else{var g=this.createTexCoords(),_=this.getTexCoords();h.push(_)}for(let w=0;w<i.length;++p)for(let m=0;m<6;++m,++w){const m=i[w],{x:O,y,z:f}=a[m];if(n?.addColor(e?m:p,l),o)o.addPoint(m,h);else{const{x:e,y:t}=g[m];_.push(e,t,0,1)}s?.addVector(t?m:p,d),r?.addVector(t?m:p,c),u.push(O,y,f,1)}if(!s){const e=this.createNormals(a,i);for(const{x:t,y:i,z:n}of e)d.push(t,i,n)}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},componentInfo:{value:Object.freeze({name:"Geospatial",level:1}),enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"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_height",new(o().MFDouble)),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,"tangent",new(o().SFNode)),new(r())(u().initializeOnly,"height",new(o().MFDouble)(0,0))]),enumerable:!0}});const Oe=me;g().add("GeoElevationGrid","x_ite/Components/Geospatial/GeoElevationGrid",Oe);const ye=Oe,fe=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Core/X3DChildNode");var be=e.n(fe);const Se=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Grouping/X3DBoundedObject");var Ie=e.n(Se);const ve=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Rendering/TraverseType");var Fe=e.n(ve);const xe=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Grouping/Group");var Ce=e.n(xe);const Ne=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Networking/Inline");var je=e.n(Ne);const Me=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Geometry/Box3");var Ge=e.n(Me),ze=new(q());function Ve(e){be().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(je())(e),this.child1Inline=new(je())(e),this.child2Inline=new(je())(e),this.child3Inline=new(je())(e),this.child4Inline=new(je())(e),this.childrenLoaded=!1,this.childBBox=new(Ge()),this.keepCurrentLevel=!1,this.modelViewMatrix=new(H())}Object.assign(Object.setPrototypeOf(Ve.prototype,be().prototype),Ie().prototype,ae.prototype,{initialize(){be().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(),ze)),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),be().prototype.dispose.call(this)}}),Object.defineProperties(Ve,{typeName:{value:"GeoLOD",enumerable:!0},componentInfo:{value:Object.freeze({name:"Geospatial",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"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 Te=Ve;g().add("GeoLOD","x_ite/Components/Geospatial/GeoLOD",Te);const De=Te,Pe=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Grouping/X3DTransformMatrix3DNode");var Ee=e.n(Pe),Xe=new(H());function Re(e){Ee().call(this,e),ae.call(this,e),this.addType(u().GeoLocation)}Object.assign(Object.setPrototypeOf(Re.prototype,Ee().prototype),ae.prototype,{initialize(){Ee().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),Ee().prototype.dispose.call(this)}}),Object.defineProperties(Re,{typeName:{value:"GeoLocation",enumerable:!0},componentInfo:{value:Object.freeze({name:"Geospatial",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"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 ke=Re;g().add("GeoLocation","x_ite/Components/Geospatial/GeoLocation",ke);const Le=ke,Ae=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Core/X3DInfoNode");var Be=e.n(Ae);const Ue=window[Symbol.for("X_ITE.X3D-10.1.0")].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},componentInfo:{value:Object.freeze({name:"Geospatial",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"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().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().add("GeoMetadata","x_ite/Components/Geospatial/GeoMetadata",He);const Ye=He,Ze=window[Symbol.for("X_ITE.X3D-10.1.0")].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=L.getReferenceFrame(this._geoSystem,this.radians)},getOrigin(e){return this.referenceFrame.convert(this._geoCoords.getValue(),e)}}),Object.defineProperties(Ke,{typeName:{value:"GeoOrigin",enumerable:!0},componentInfo:{value:Object.freeze({name:"Geospatial",level:1}),enumerable:!0},containerField:{value:"geoOrigin",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"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().add("GeoOrigin","x_ite/Components/Geospatial/GeoOrigin",Je);const Qe=Je,et=window[Symbol.for("X_ITE.X3D-10.1.0")].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 V}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(q()),t=new(q()),i=new(q());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},componentInfo:{value:Object.freeze({name:"Geospatial",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"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().SFVec3f)),new(r())(u().outputOnly,"geovalue_changed",new(o().SFVec3d))]),enumerable:!0}});const nt=it;g().add("GeoPositionInterpolator","x_ite/Components/Geospatial/GeoPositionInterpolator",nt);const ot=nt,st=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode");var rt=e.n(st);const at=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/EnvironmentalSensor/ProximitySensor");var lt=e.n(at),ht=new(q());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._geoCenter.addFieldInterest(this._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},componentInfo:{value:Object.freeze({name:"Geospatial",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"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().inputOutput,"size",new(o().SFVec3f)),new(r())(u().inputOutput,"center",new(o().SFVec3d)),new(r())(u().inputOutput,"geoCenter",new(o().SFVec3d)),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().add("GeoProximitySensor","x_ite/Components/Geospatial/GeoProximitySensor",ct);const ut=ct,pt=window[Symbol.for("X_ITE.X3D-10.1.0")].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(q());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},componentInfo:{value:Object.freeze({name:"Geospatial",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"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().add("GeoTouchSensor","x_ite/Components/Geospatial/GeoTouchSensor",wt);const mt=wt;var Ot=new(H()),yt=new(H());function ft(e){Ee().call(this,e),ae.call(this,e),this.addType(u().GeoTransform),this._translation.setUnit("length")}Object.assign(Object.setPrototypeOf(ft.prototype,Ee().prototype),ae.prototype,{initialize(){Ee().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),Ee().prototype.dispose.call(this)}}),Object.defineProperties(ft,{typeName:{value:"GeoTransform",enumerable:!0},componentInfo:{value:Object.freeze({name:"Geospatial",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"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 bt=ft;g().add("GeoTransform","x_ite/Components/Geospatial/GeoTransform",bt);const St=bt,It=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Navigation/X3DViewpointNode");var vt=e.n(It);const Ft=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Navigation/Viewpoint");var xt=e.n(Ft);const Ct=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Navigation/NavigationInfo");var Nt=e.n(Ct);const jt=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Numbers/Rotation4");var Mt=e.n(jt);function Gt(e){vt().call(this,e),ae.call(this,e),this.addType(u().GeoViewpoint),this.addChildObjects(u().inputOutput,"navType",new(o().MFString)("EXAMINE","ANY"),u().inputOutput,"headlight",new(o().SFBool)(!0)),this._centerOfRotation.setUnit("length"),this._fieldOfView.setUnit("angle"),e.getSpecificationVersion()<=3.2&&(this.addAlias("navType",this._navType),this.addAlias("headlight",this._headlight),this.traverse=zt),this.geoNavigationInfoNode=new(Nt())(e),this.projectionMatrix=new(H()),this.elevation=0}function zt(e,t){vt().prototype.traverse.call(this,e,t),this.geoNavigationInfoNode.traverse(e,t)}Object.assign(Object.setPrototypeOf(Gt.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,setFieldOfView:xt().prototype.setFieldOfView,getUserFieldOfView:xt().prototype.getUserFieldOfView,getScreenScale:xt().prototype.getScreenScale,getViewportSize:xt().prototype.getViewportSize,getLookAtDistance:xt().prototype.getLookAtDistance,getProjectionMatrixWithLimits:xt().prototype.getProjectionMatrixWithLimits,getLogarithmicDepthBuffer(){return this.logarithmicDepthBuffer},getPosition:(()=>{const e=new(q());return function(){return this.getCoord(this._position.getValue(),e)}})(),setPosition:(()=>{const e=new(q());return function(t){this._position.setValue(this.getGeoCoord(t,e))}})(),set_position__:(()=>{const e=new(q());return function(){this.getCoord(this._position.getValue(),e),this.elevation=this.getGeoElevation(e.add(this._positionOffset.getValue()))}})(),getOrientation:(()=>{const e=new(H()),t=new(Mt());return function(){const i=this.getLocationMatrix(this._position.getValue(),e).submatrix;return t.setMatrix(i),t.multLeft(this._orientation.getValue())}})(),setOrientation:(()=>{const e=new(H()),t=new(Mt());return function(i){const n=this.getLocationMatrix(this._position.getValue(),e).submatrix;t.setMatrix(n),this._orientation.setValue(t.inverse().multLeft(i))}})(),getCenterOfRotation:(()=>{const e=new(q());return function(){return this.getCoord(this._centerOfRotation.getValue(),e)}})(),setCenterOfRotation:(()=>{const e=new(q());return function(t){this._centerOfRotation.setValue(this.getGeoCoord(t,e))}})(),getMaxFarValue:()=>1e9,getUpVector:(()=>{const e=new(q()),t=new(q());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(q().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(Gt,{typeName:{value:"GeoViewpoint",enumerable:!0},componentInfo:{value:Object.freeze({name:"Geospatial",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"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=Gt;g().add("GeoViewpoint","x_ite/Components/Geospatial/GeoViewpoint",Vt);const Tt=Vt;i().add({name:"Geospatial",concreteNodes:[ue,ye,De,Le,Ye,Qe,ot,ut,mt,St,Tt],abstractNodes:[ae]});const Dt=void 0;g().add("Geospatial","assets/components/Geospatial",Dt)})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* X_ITE v10.1.0 */(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Fields");var s=e.n(i);const o=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(o);const a=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/FieldDefinitionArray");var d=e.n(a);const l=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var u=e.n(l);const h=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DConstants");var p=e.n(h);const c=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Namespace");var _=e.n(c);function m(e){u().call(this,e),this.addType(p().HAnimDisplacer),this._displacements.setUnit("length")}Object.setPrototypeOf(m.prototype,u().prototype),Object.defineProperties(m,{typeName:{value:"HAnimDisplacer",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:1}),enumerable:!0},containerField:{value:"displacers",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"weight",new(s().SFFloat)),new(r())(p().inputOutput,"coordIndex",new(s().MFInt32)),new(r())(p().inputOutput,"displacements",new(s().MFVec3f))]),enumerable:!0}});const w=m;_().add("HAnimDisplacer","x_ite/Components/HAnim/HAnimDisplacer",w);const f=w,g=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Core/X3DChildNode");var I=e.n(g);const F=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Grouping/Group");var b=e.n(F);const x=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Grouping/Transform");var O=e.n(x);const T=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Grouping/X3DBoundedObject");var S=e.n(T);const v=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Rendering/TraverseType");var y=e.n(v);const N=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DCast");var E=e.n(N);const j=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Numbers/Matrix4");var M=e.n(j);const D=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Algorithm");var C=e.n(D);function A(e){I().call(this,e),S().call(this,e),this.addType(p().HAnimHumanoid),this.addChildObjects(p().inputOutput,"jointTextures",new(s().SFTime),p().inputOutput,"displacementsTexture",new(s().SFTime),p().inputOutput,"displacementWeightsTexture",new(s().SFTime)),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),e.getSpecificationVersion()<=3.3&&(this._version=""),this.skeletonNode=new(b())(e),this.viewpointsNode=new(b())(e),this.skinNode=new(b())(e),this.transformNode=new(O())(e),this.motionNodes=[],this.jointNodes=[],this.jointBindingMatrices=[],this.displacementWeights=[],this.numJoints=0,this.numDisplacements=0,this.skinCoordNode=null,this.change=new X,this.skinning=Function.prototype}Object.assign(Object.setPrototypeOf(A.prototype,I().prototype),S().prototype,{initialize(){I().prototype.initialize.call(this),S().prototype.initialize.call(this),this.skeletonNode.setAllowedTypes(p().HAnimJoint,p().HAnimSite),this.viewpointsNode.setAllowedTypes(p().HAnimSite),this._skeleton.addFieldInterest(this.skeletonNode._children),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skin.addFieldInterest(this.skinNode._children),this.skeletonNode._children=this._skeleton,this.viewpointsNode._children=this._viewpoints,this.skinNode._children=this._skin,this.skeletonNode.setPrivate(!0),this.viewpointsNode.setPrivate(!0),this.skinNode.setPrivate(!0),this._translation.addFieldInterest(this.transformNode._translation),this._rotation.addFieldInterest(this.transformNode._rotation),this._scale.addFieldInterest(this.transformNode._scale),this._scaleOrientation.addFieldInterest(this.transformNode._scaleOrientation),this._center.addFieldInterest(this.transformNode._center),this._bboxDisplay.addFieldInterest(this.transformNode._bboxDisplay),this._bboxSize.addFieldInterest(this.transformNode._bboxSize),this._bboxCenter.addFieldInterest(this.transformNode._bboxCenter),this.transformNode._translation=this._translation,this.transformNode._rotation=this._rotation,this.transformNode._scale=this._scale,this.transformNode._scaleOrientation=this._scaleOrientation,this.transformNode._center=this._center,this.transformNode._bboxDisplay=this._bboxDisplay,this.transformNode._bboxSize=this._bboxSize,this.transformNode._bboxCenter=this._bboxCenter,this.transformNode._children=[this.skeletonNode,this.viewpointsNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.skeletonNode.setup(),this.viewpointsNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.isCameraObject()),this.setPickableObject(this.transformNode.isPickableObject());const e=this.getBrowser().getContext();if(1!==e.getVersion()){this.skinNode.traverse=function(e,t,n){n.getHumanoids().push(e),b().prototype.traverse.call(this,t,n),n.getHumanoids().pop()}.bind(this.skinNode,this),this.jointsTexture=e.createTexture(),this.displacementsTexture=e.createTexture(),this.jointMatricesTexture=e.createTexture();for(const t of[this.jointsTexture,this.displacementsTexture,this.jointMatricesTexture])e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR);this._motionsEnabled.addInterest("set_motions__",this),this._motions.addInterest("set_motions__",this),this._jointBindingPositions.addInterest("set_joints__",this),this._jointBindingRotations.addInterest("set_joints__",this),this._jointBindingScales.addInterest("set_joints__",this),this._joints.addInterest("set_joints__",this),this._jointTextures.addInterest("set_jointTextures__",this),this._displacementsTexture.addInterest("set_displacementsTexture__",this),this._displacementWeightsTexture.addInterest("set_displacementWeightsTexture__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_motions__(),this.set_joints__(),this.set_skinCoord__()}},getBBox(e,t){return this.transformNode.getBBox(e,t)},getSubBBox(e,t){return this.transformNode.getSubBBox(e,t)},getMatrix(){return this.transformNode.getMatrix()},getHumanoidKey(){return this.humanoidKey},getNumJoints(){return this.numJoints},getNumDisplacements(){return this.numDisplacements},set_humanoidKey__(){this.humanoidKey=`[${this.numJoints}.${this.numDisplacements}]`},set_motions__(){const e=this._motionsEnabled,t=this.motionNodes;for(const e of t)e._joints.removeInterest("set_connectJoints__",this),e._channelsEnabled.removeInterest("set_connectJoints__",this),e._channels.removeInterest("set_connectJoints__",this),e._values.removeInterest("set_connectJoints__",this),e.disconnectJoints(this.jointNodes);t.length=0;for(const[n,i]of this._motions.entries()){if(n<e.length&&!e[n])continue;const s=E()(p().HAnimMotion,i);s&&t.push(s)}for(const e of t)e._joints.addInterest("set_connectJoints__",this,e),e._channelsEnabled.addInterest("set_connectJoints__",this,e),e._channels.addInterest("set_connectJoints__",this,e),e._values.addInterest("set_connectJoints__",this,e),e.connectJoints(this.jointNodes)},set_connectJoints__(e){e.disconnectJoints(this.jointNodes),e.connectJoints(this.jointNodes)},set_joints__(){const e=this.jointNodes,t=this.jointBindingMatrices,n=this._jointBindingPositions,i=this._jointBindingRotations,s=this._jointBindingScales,o=n.length,r=i.length,a=s.length;for(const t of this.motionNodes)t.disconnectJoints(e);for(const t of e)t.removeInterest("enable",this.change),t._skinCoordIndex.removeInterest("addEvent",this._jointTextures),t._skinCoordWeight.removeInterest("addEvent",this._jointTextures),t._displacements.removeInterest("addEvent",this._displacementsTexture),t._displacementWeights.removeInterest("addEvent",this._displacementWeightsTexture);e.length=0,t.length=0;for(const[d,l]of this._joints.entries()){const u=E()(p().HAnimJoint,l);if(!u)continue;const h=o?n[Math.min(d,o-1)].getValue():null,c=r?i[Math.min(d,r-1)].getValue():null,_=a?s[Math.min(d,a-1)].getValue():null;e.push(u),t.push((new(M())).set(h,c,_))}for(const t of e)t.addInterest("enable",this.change),t._skinCoordIndex.addInterest("addEvent",this._jointTextures),t._skinCoordWeight.addInterest("addEvent",this._jointTextures),t._displacements.addInterest("addEvent",this._displacementsTexture),t._displacementWeights.addInterest("addEvent",this._displacementWeightsTexture);for(const t of this.motionNodes)t.connectJoints(e);const d=Math.ceil(Math.sqrt(8*e.length));this.jointMatricesArray=new Float32Array(d*d*4),this._jointTextures.addEvent(),this._displacementsTexture.addEvent(),this._displacementWeightsTexture.addEvent()},set_jointTextures__(){const e=this.skinCoordNode?._point.length||1,t=Array.from({length:e},(()=>[])),n=Array.from({length:e},(()=>[]));for(const[e,i]of this.jointNodes.entries()){const s=i._skinCoordWeight.getValue();for(const[o,r]of i._skinCoordIndex.entries()){const i=s[o];0!==i&&(t[r]?.push(e),n[r]?.push(i))}}const i=C().roundToMultiple(t.reduce(((e,t)=>Math.max(e,t.length)),0),4),s=2*i,o=Math.ceil(Math.sqrt(e*s))||1,r=new Float32Array(o*o*4);for(let o=0;o<e;++o)r.set(t[o],o*s),r.set(n[o],o*s+i);this.numJoints=i;const a=this.getBrowser().getContext();a.bindTexture(a.TEXTURE_2D,this.jointsTexture),a.texImage2D(a.TEXTURE_2D,0,a.RGBA32F,o,o,0,a.RGBA,a.FLOAT,r),this.change.enable(),this.set_humanoidKey__()},set_displacementsTexture__(){const e=this.skinCoordNode?._point.length||1,t=Array.from({length:e},(()=>[]));for(const[e,n]of this.jointNodes.entries())for(const i of n.getDisplacers()){const n=i._displacements;for(const[s,o]of i._coordIndex.entries())t[o]?.push(...n[s],e)}const n=t.reduce(((e,t)=>Math.max(e,t.length)),0)/4,i=4*n,s=C().roundToMultiple(Math.ceil(Math.sqrt(e*n*2))||1,2),o=new Float32Array(s*s*4);for(let n=0;n<e;++n)o.set(t[n],n*i);this.numDisplacements=n;const r=this.getBrowser().getContext();r.bindTexture(r.TEXTURE_2D,this.displacementsTexture),r.texImage2D(r.TEXTURE_2D,0,r.RGBA32F,s,s,0,r.RGBA,r.FLOAT,o);const a=this.displacementWeights;for(let t=a.length;t<e;++t)a[t]=[];a.length=e,this.displacementWeightsArray=new Float32Array(s*s*2),this.change.enable(),this.set_humanoidKey__()},set_displacementWeightsTexture__(){const e=this.skinCoordNode?._point.length||1,t=this.displacementWeights;for(const e of t)e.length=0;for(const e of this.jointNodes)for(const n of e.getDisplacers()){const e=n._weight;for(const i of n._coordIndex)t[i]?.push(e,0,0,0)}const n=this.numDisplacements,i=4*n,s=C().roundToMultiple(Math.ceil(Math.sqrt(e*n*2))||1,2),o=this.displacementWeightsArray;for(let n=0;n<e;++n)o.set(t[n],n*i);const r=this.getBrowser().getContext();r.bindTexture(r.TEXTURE_2D,this.displacementsTexture),r.texSubImage2D(r.TEXTURE_2D,0,0,s/2,s,s/2,r.RGBA,r.FLOAT,o),this.change.enable()},set_skinCoord__(){this.skinCoordNode&&(this.skinCoordNode.removeInterest("addEvent",this._jointTextures),this.skinCoordNode.removeInterest("addEvent",this._displacementsTexture),this.skinCoordNode.removeInterest("addEvent",this._displacementWeightsTexture)),this.skinCoordNode=E()(p().X3DCoordinateNode,this._skinCoord),this.skinCoordNode?(delete this.skinning,this.skinCoordNode.addInterest("addEvent",this._jointTextures),this.skinCoordNode.addInterest("addEvent",this._displacementsTexture),this.skinCoordNode.addInterest("addEvent",this._displacementWeightsTexture)):this.skinning=Function.prototype,this._jointTextures.addEvent(),this._displacementsTexture.addEvent(),this._displacementWeightsTexture.addEvent()},traverse(e,t){this.transformNode.traverse(e,t),this.skinning(e,t)},skinning:(()=>{const e=new(M());return function(t,n){if(t!==y().DISPLAY||this.change.lock())return;e.assign(this.transformNode.getMatrix()).multRight(n.getModelViewMatrix().get()).inverse();const i=this.jointNodes,s=i.length,o=this.jointBindingMatrices,r=this.jointMatricesArray,a=Math.ceil(Math.sqrt(8*s));for(let t=0;t<s;++t){const n=i[t],s=o[t],a=n.getModelViewMatrix().multRight(e).multLeft(s),d=a.submatrix.transpose().inverse();r.set(a,32*t+0),r.set(d,32*t+16)}const d=this.getBrowser().getContext();d.bindTexture(d.TEXTURE_2D,this.jointMatricesTexture),d.texImage2D(d.TEXTURE_2D,0,d.RGBA32F,a,a,0,d.RGBA,d.FLOAT,r)}})(),setShaderUniforms(e,t){const n=this.getBrowser().getTexture2DUnit(),i=this.getBrowser().getTexture2DUnit(),s=this.getBrowser().getTexture2DUnit();e.activeTexture(e.TEXTURE0+n),e.bindTexture(e.TEXTURE_2D,this.jointsTexture),e.uniform1i(t.x3d_JointsTexture,n),e.activeTexture(e.TEXTURE0+i),e.bindTexture(e.TEXTURE_2D,this.displacementsTexture),e.uniform1i(t.x3d_DisplacementsTexture,i),e.activeTexture(e.TEXTURE0+s),e.bindTexture(e.TEXTURE_2D,this.jointMatricesTexture),e.uniform1i(t.x3d_JointMatricesTexture,s)},dispose(){S().prototype.dispose.call(this),I().prototype.dispose.call(this)}}),Object.defineProperties(A,{typeName:{value:"HAnimHumanoid",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"version",new(s().SFString)("2.0")),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"info",new(s().MFString)),new(r())(p().inputOutput,"skeletalConfiguration",new(s().SFString)("BASIC")),new(r())(p().inputOutput,"loa",new(s().SFInt32)(-1)),new(r())(p().inputOutput,"translation",new(s().SFVec3f)),new(r())(p().inputOutput,"rotation",new(s().SFRotation)),new(r())(p().inputOutput,"scale",new(s().SFVec3f)(1,1,1)),new(r())(p().inputOutput,"scaleOrientation",new(s().SFRotation)),new(r())(p().inputOutput,"center",new(s().SFVec3f)),new(r())(p().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(p().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(p().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(p().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(p().inputOutput,"skeleton",new(s().MFNode)),new(r())(p().inputOutput,"viewpoints",new(s().MFNode)),new(r())(p().inputOutput,"sites",new(s().MFNode)),new(r())(p().inputOutput,"segments",new(s().MFNode)),new(r())(p().inputOutput,"motionsEnabled",new(s().MFBool)),new(r())(p().inputOutput,"motions",new(s().MFNode)),new(r())(p().inputOutput,"jointBindingPositions",new(s().MFVec3f)),new(r())(p().inputOutput,"jointBindingRotations",new(s().MFRotation)),new(r())(p().inputOutput,"jointBindingScales",new(s().MFVec3f)),new(r())(p().inputOutput,"joints",new(s().MFNode)),new(r())(p().inputOutput,"skinBindingNormals",new(s().SFNode)),new(r())(p().inputOutput,"skinBindingCoords",new(s().SFNode)),new(r())(p().inputOutput,"skinNormal",new(s().SFNode)),new(r())(p().inputOutput,"skinCoord",new(s().SFNode)),new(r())(p().inputOutput,"skin",new(s().MFNode))]),enumerable:!0}});class X{#e=!0;enable(){this.#e=!1}lock(){const e=this.#e;return this.#e=!0,e}}const k=A;_().add("HAnimHumanoid","x_ite/Components/HAnim/HAnimHumanoid",k);const R=k,V=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Grouping/X3DTransformNode");var B=e.n(V);const H=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Numbers/Vector3");var P=e.n(H);function z(e){B().call(this,e),this.addType(p().HAnimJoint),this.addChildObjects(p().outputOnly,"displacements",new(s().SFTime),p().outputOnly,"displacementWeights",new(s().SFTime)),this.setAllowedTypes(p().HAnimJoint,p().HAnimSegment,p().HAnimSite),this.displacerNodes=[],this.modelViewMatrix=new(M())}Object.assign(Object.setPrototypeOf(z.prototype,B().prototype),{initialize(){B().prototype.initialize.call(this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},getModelViewMatrix(){return this.modelViewMatrix},getDisplacers(){return this.displacerNodes},set_displacers__(){const e=this.displacerNodes;for(const t of e)t._coordIndex.removeInterest("addEvent",this._displacements),t._displacements.removeInterest("addEvent",this._displacements),t._coordIndex.removeInterest("addEvent",this._displacementWeights),t._weight.removeInterest("addEvent",this._displacementWeights);e.length=0;for(const t of this._displacers){const n=E()(p().HAnimDisplacer,t);n&&e.push(n)}for(const t of e)t._coordIndex.addInterest("addEvent",this._displacements),t._displacements.addInterest("addEvent",this._displacements),t._coordIndex.addInterest("addEvent",this._displacementWeights),t._weight.addInterest("addEvent",this._displacementWeights)},traverse(e,t){const n=t.getModelViewMatrix();n.push(),n.multLeft(this.getMatrix()),e===y().DISPLAY&&this.modelViewMatrix.assign(n.get()),B().prototype.groupTraverse.call(this,e,t),n.pop()},groupTraverse(e,t){e===y().DISPLAY&&this.modelViewMatrix.assign(t.getModelViewMatrix().get()),B().prototype.groupTraverse.call(this,e,t)}}),Object.defineProperties(z,{typeName:{value:"HAnimJoint",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"translation",new(s().SFVec3f)),new(r())(p().inputOutput,"rotation",new(s().SFRotation)),new(r())(p().inputOutput,"scale",new(s().SFVec3f)(1,1,1)),new(r())(p().inputOutput,"scaleOrientation",new(s().SFRotation)),new(r())(p().inputOutput,"center",new(s().SFVec3f)),new(r())(p().inputOutput,"llimit",new(s().MFFloat)(0,0,0)),new(r())(p().inputOutput,"ulimit",new(s().MFFloat)(0,0,0)),new(r())(p().inputOutput,"limitOrientation",new(s().SFRotation)),new(r())(p().inputOutput,"stiffness",new(s().MFFloat)(0,0,0)),new(r())(p().inputOutput,"skinCoordIndex",new(s().MFInt32)),new(r())(p().inputOutput,"skinCoordWeight",new(s().MFFloat)),new(r())(p().inputOutput,"displacers",new(s().MFNode)),new(r())(p().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(p().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(p().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(p().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(p().inputOnly,"addChildren",new(s().MFNode)),new(r())(p().inputOnly,"removeChildren",new(s().MFNode)),new(r())(p().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const J=z;_().add("HAnimJoint","x_ite/Components/HAnim/HAnimJoint",J);const U=J,W=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Time/TimeSensor");var q=e.n(W);const G=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Interpolation/PositionInterpolator");var L=e.n(G);const Y=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Interpolation/OrientationInterpolator");var K=e.n(Y);const Z=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Numbers/Rotation4");var $=e.n(Z);function Q(e){I().call(this,e),this.addType(p().HAnimMotion),this.timeSensor=new(q())(this.getExecutionContext()),this.interpolators=[]}Object.assign(Object.setPrototypeOf(Q.prototype,I().prototype),{initialize(){I().prototype.initialize.call(this),this._loop.addFieldInterest(this.timeSensor._loop),this.timeSensor._cycleTime.addFieldInterest(this._cycleTime),this.timeSensor._elapsedTime.addFieldInterest(this._elapsedTime),this.timeSensor._enabled=!1,this.timeSensor._loop=this._loop,this.timeSensor._stopTime=1,this.timeSensor.setup(),this._enabled.addInterest("set_enabled__",this),this._joints.addInterest("set_joints__",this),this._channels.addInterest("set_interpolators__",this),this._values.addInterest("set_interpolators__",this),this._next.addInterest("set_next_or_previous__",this,1),this._previous.addInterest("set_next_or_previous__",this,-1),this._frameIndex.addInterest("set_frameIndex__",this),this._frameDuration.addInterest("set_frameDuration__",this),this._frameIncrement.addInterest("set_frameIncrement__",this),this._startFrame.addInterest("set_start_or_endFrame__",this),this._endFrame.addInterest("set_start_or_endFrame__",this),this.set_enabled__(),this.set_joints__(),this.set_frameIncrement__(),this.set_interpolators__()},connectJoints(e){const t=this._channelsEnabled,n=this.joints,i=this.getJointsIndex(e);for(const[e,{positionInterpolator:s,orientationInterpolator:o,scaleInterpolator:r}]of this.interpolators.entries()){if(e<t.length&&!t[e])continue;const a=i.get(n[e]);a&&(s?._value_changed.addFieldInterest(a._translation),o?._value_changed.addFieldInterest(a._rotation),r?._value_changed.addFieldInterest(a._scale))}},disconnectJoints(e){const t=this.joints,n=this.getJointsIndex(e);for(const[e,{positionInterpolator:i,orientationInterpolator:s,scaleInterpolator:o}]of this.interpolators.entries()){const r=n.get(t[e]);r&&(i?._value_changed.removeFieldInterest(r._translation),s?._value_changed.removeFieldInterest(r._rotation),o?._value_changed.removeFieldInterest(r._scale))}},getJointsIndex(e){const t=new Map(e.map((e=>[e._name.getValue().trim(),e])));return t.delete("IGNORED"),t.set("HumanoidRoot",t.get("humanoid_root")),t},set_enabled__(){this._enabled.getValue()?this.timeSensor._startTime=Date.now()/1e3:this.timeSensor._stopTime=Date.now()/1e3},set_joints__(){this.joints=this._joints.getValue().replace(/^[\s,]+|[\s,]+$/gs,"").split(/[\s,]+/s);for(const{positionInterpolator:e,orientationInterpolator:t,scaleInterpolator:n}of this.interpolators)e?._value_changed.getFieldInterests().forEach((t=>e._value_changed.removeFieldInterest(t))),t?._value_changed.getFieldInterests().forEach((e=>t._value_changed.removeFieldInterest(e))),n?._value_changed.getFieldInterests().forEach((e=>n._value_changed.removeFieldInterest(e)))},set_interpolators__(){const e=this.timeSensor;e._fraction_changed.getFieldInterests().forEach((t=>e._fraction_changed.removeFieldInterest(t)));const t=this._channels.getValue().replace(/^[\s,\d]+|[\s,\d]+$/gs,"").split(/[\s,]+\d+[\s,]+/s).map((e=>e.split(/[\s,]+/s))),n=this._values,i=t.reduce(((e,t)=>e+t.length),0),s=Math.floor(i?n.length/i:0),o=new Map,r=Array.from({length:t.length},(()=>({})));this.interpolators=r;for(let i=0,a=0;i<s;++i)for(const[d,l]of t.entries()){o.clear();for(const e of l)o.set(e,n[a++]);if(o.has("Xposition")||o.has("Yposition")||o.has("Zposition")){const t=r[d].positionInterpolator??this.createPositionInterpolator(r,d),n=i/(s-1),a=new(P())(o.get("Xposition")??0,o.get("Yposition")??0,o.get("Zposition")??0);t._key.push(n),t._keyValue.push(a),e._fraction_changed.addFieldInterest(t._set_fraction)}if(o.has("Xrotation")||o.has("Yrotation")||o.has("Zrotation")){const t=r[d].orientationInterpolator??this.createOrientationInterpolator(r,d),n=i/(s-1),a=$().fromEuler(C().radians(o.get("Xrotation")??0),C().radians(o.get("Yrotation")??0),C().radians(o.get("Zrotation")??0));t._key.push(n),t._keyValue.push(a),e._fraction_changed.addFieldInterest(t._set_fraction)}if(o.has("Xscale")||o.has("Yscale")||o.has("Zscale")){const t=r[d].scaleInterpolator??this.createScaleInterpolator(r,d),n=i/(s-1),a=new(P())(o.get("Xscale")??1,o.get("Yscale")??1,o.get("Zscale")??1);t._key.push(n),t._keyValue.push(a),e._fraction_changed.addFieldInterest(t._set_fraction)}}for(const{positionInterpolator:e,orientationInterpolator:t,scaleInterpolator:n}of r)e?.setup(),t?.setup(),n?.setup();this._frameIndex=0,this._startFrame=0,this._endFrame=s-1,this._frameCount=s,this.set_frameDuration__()},set_next_or_previous__(e,t){if(!t.getValue())return;const n=this.getFraction(),i=this._frameCount.getValue(),s=this._frameIncrement.getValue(),o=(i>1?Math.floor(n*(i-1)):0)+s*e;if(o>this.endFrame){if(!this._loop.getValue())return;this._frameIndex=this.startFrame}else if(o<this.startFrame){if(!this._loop.getValue())return;this._frameIndex=this.endFrame}else this._frameIndex=o},set_frameIndex__(){const e=this._frameCount.getValue(),t=C().clamp(this._frameIndex.getValue(),0,e),n=e>1?t/(e-1):0;if(this.timeSensor._range[0]=n,!this.timeSensor._isActive.getValue())for(const e of this.timeSensor._fraction_changed.getFieldInterests())e.setValue(n)},set_frameDuration__(){const e=this._frameCount.getValue(),t=Math.max(this._frameDuration.getValue(),0);this.timeSensor._cycleInterval=e>1?(e-1)*t:0},set_frameIncrement__(){this.timeSensor._enabled=this._frameIncrement.getValue()},set_start_or_endFrame__(){const e=this._frameCount.getValue(),t=C().clamp(this._startFrame.getValue(),0,e),n=C().clamp(this._endFrame.getValue(),0,e);this.startFrame=Math.min(t,n),this.endFrame=Math.max(t,n),this.timeSensor._range[1]=e>1?this.startFrame/(e-1):0,this.timeSensor._range[2]=e>1?this.endFrame/(e-1):0},createPositionInterpolator(e,t){return e[t].positionInterpolator=new(L())(this.getExecutionContext())},createOrientationInterpolator(e,t){return e[t].orientationInterpolator=new(K())(this.getExecutionContext())},createScaleInterpolator(e,t){return e[t].scaleInterpolator=new(L())(this.getExecutionContext())},getFraction(){for(const e of this.timeSensor._fraction_changed.getFieldInterests())return e.getValue();return 0}}),Object.defineProperties(Q,{typeName:{value:"HAnimMotion",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:2}),enumerable:!0},containerField:{value:"motions",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(p().inputOutput,"loa",new(s().SFInt32)(-1)),new(r())(p().inputOutput,"joints",new(s().SFString)),new(r())(p().inputOutput,"channelsEnabled",new(s().MFBool)),new(r())(p().inputOutput,"channels",new(s().SFString)),new(r())(p().inputOutput,"values",new(s().MFFloat)),new(r())(p().inputOutput,"loop",new(s().SFBool)),new(r())(p().inputOnly,"next",new(s().SFBool)),new(r())(p().inputOnly,"previous",new(s().SFBool)),new(r())(p().inputOutput,"frameIndex",new(s().SFInt32)),new(r())(p().inputOutput,"frameDuration",new(s().SFTime)(.1)),new(r())(p().inputOutput,"frameIncrement",new(s().SFInt32)(1)),new(r())(p().inputOutput,"startFrame",new(s().SFInt32)),new(r())(p().inputOutput,"endFrame",new(s().SFInt32)),new(r())(p().outputOnly,"cycleTime",new(s().SFTime)),new(r())(p().outputOnly,"elapsedTime",new(s().SFTime)),new(r())(p().outputOnly,"frameCount",new(s().SFInt32))]),enumerable:!0}});const ee=Q;_().add("HAnimMotion","x_ite/Components/HAnim/HAnimMotion",ee);const te=ee,ne=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Grouping/X3DGroupingNode");var ie=e.n(ne);function se(e){ie().call(this,e),this.addType(p().HAnimSegment),this._mass.setUnit("mass")}Object.setPrototypeOf(se.prototype,ie().prototype),Object.defineProperties(se,{typeName:{value:"HAnimSegment",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"mass",new(s().SFFloat)),new(r())(p().inputOutput,"centerOfMass",new(s().SFVec3f)),new(r())(p().inputOutput,"momentsOfInertia",new(s().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(p().inputOutput,"displacers",new(s().MFNode)),new(r())(p().inputOutput,"coord",new(s().SFNode)),new(r())(p().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(p().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(p().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(p().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(p().inputOnly,"addChildren",new(s().MFNode)),new(r())(p().inputOnly,"removeChildren",new(s().MFNode)),new(r())(p().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const oe=se;_().add("HAnimSegment","x_ite/Components/HAnim/HAnimSegment",oe);const re=oe;function ae(e){B().call(this,e),this.addType(p().HAnimSite)}Object.setPrototypeOf(ae.prototype,B().prototype),Object.defineProperties(ae,{typeName:{value:"HAnimSite",enumerable:!0},componentInfo:{value:Object.freeze({name:"HAnim",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(p().inputOutput,"metadata",new(s().SFNode)),new(r())(p().inputOutput,"description",new(s().SFString)),new(r())(p().inputOutput,"name",new(s().SFString)),new(r())(p().inputOutput,"translation",new(s().SFVec3f)),new(r())(p().inputOutput,"rotation",new(s().SFRotation)),new(r())(p().inputOutput,"scale",new(s().SFVec3f)(1,1,1)),new(r())(p().inputOutput,"scaleOrientation",new(s().SFRotation)),new(r())(p().inputOutput,"center",new(s().SFVec3f)),new(r())(p().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(p().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(p().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(p().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(p().inputOnly,"addChildren",new(s().MFNode)),new(r())(p().inputOnly,"removeChildren",new(s().MFNode)),new(r())(p().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const de=ae;_().add("HAnimSite","x_ite/Components/HAnim/HAnimSite",de);const le=de;n().add({name:"HAnim",concreteNodes:[f,R,U,te,re,le],abstractNodes:[]});const ue=void 0;_().add("HAnim","assets/components/HAnim",ue)})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* X_ITE v10.1.0 */(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var a in s)e.o(s,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:s[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components");var s=e.n(t);const a=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Namespace");var i=e.n(a);const n=Symbol(),o=Symbol(),r=Symbol();function c(){this[n]=new Set}Object.assign(c.prototype,{initialize(){const e=this.getElement();e.on("keydown.X3DKeyDeviceSensorContext",this[o].bind(this)),e.on("keyup.X3DKeyDeviceSensorContext",this[r].bind(this))},addKeyDeviceSensorNode(e){this[n].add(e)},removeKeyDeviceSensorNode(e){this[n].delete(e)},getKeyDeviceSensorNodes(){return this[n]},[o](e){for(const t of this[n])t.keydown(e)},[r](e){for(const t of this[n])t.keyup(e)}});const l=c;i().add("X3DKeyDeviceSensorContext","x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext",l);const y=l,h=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Fields");var _=e.n(h);const b=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DFieldDefinition");var d=e.n(b);const u=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/FieldDefinitionArray");var k=e.n(u);const p=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Core/X3DSensorNode");var K=e.n(p);const S=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DConstants");var v=e.n(S);function w(e){K().call(this,e),this.addType(v().X3DKeyDeviceSensorNode)}Object.assign(Object.setPrototypeOf(w.prototype,K().prototype),{initialize(){K().prototype.initialize.call(this),this.getLive().addInterest("set_live__",this),this.set_live__()},set_live__(){this.getLive().getValue()?(this._enabled.addInterest("set_enabled__",this),this._enabled.getValue()&&this.enable()):(this._enabled.removeInterest("set_enabled__",this),this.disable())},set_enabled__(){this._enabled.getValue()?this.enable():this.disable()},enable(){this.getBrowser().addKeyDeviceSensorNode(this)},disable(){this.getBrowser().removeKeyDeviceSensorNode(this),this.release()},keydown(){},keyup(){},release(){}}),Object.defineProperties(w,{typeName:{value:"X3DKeyDeviceSensorNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"KeyDeviceSensor",level:1}),enumerable:!0}});const f=w;i().add("X3DKeyDeviceSensorNode","x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode",f);const m=f;function g(e){m.call(this,e),this.addType(v().KeySensor)}Object.assign(Object.setPrototypeOf(g.prototype,m.prototype),{keydown(e){switch(e.preventDefault(),this._isActive.getValue()||(this._isActive=!0),e.which){case 16:this._shiftKey=!0;break;case 17:this._controlKey=!0;break;case 18:this._altKey=!0;break;case 112:this._actionKeyPress=1;break;case 113:this._actionKeyPress=2;break;case 114:this._actionKeyPress=3;break;case 115:this._actionKeyPress=4;break;case 116:this._actionKeyPress=5;break;case 117:this._actionKeyPress=6;break;case 118:this._actionKeyPress=7;break;case 119:this._actionKeyPress=8;break;case 120:this._actionKeyPress=9;break;case 121:this._actionKeyPress=10;break;case 122:this._actionKeyPress=11;break;case 123:this._actionKeyPress=12;break;case 36:this._actionKeyPress=13;break;case 35:this._actionKeyPress=14;break;case 33:this._actionKeyPress=15;break;case 34:this._actionKeyPress=16;break;case 38:this._actionKeyPress=17;break;case 40:this._actionKeyPress=18;break;case 37:this._actionKeyPress=19;break;case 39:this._actionKeyPress=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyPress=String.fromCharCode(8);break;case"Delete":this._keyPress=String.fromCharCode(127);break;case"Enter":this._keyPress="\n";break;case"Escape":this._keyPress=String.fromCharCode(27);break;case"Tab":this._keyPress="\t";break;default:1===e.key.length&&(this._keyPress=e.key)}}},keyup(e){switch(e.preventDefault(),e.which){case 16:this._shiftKey=!1;break;case 17:this._controlKey=!1;break;case 18:this._altKey=!1;break;case 112:this._actionKeyRelease=1;break;case 113:this._actionKeyRelease=2;break;case 114:this._actionKeyRelease=3;break;case 115:this._actionKeyRelease=4;break;case 116:this._actionKeyRelease=5;break;case 117:this._actionKeyRelease=6;break;case 118:this._actionKeyRelease=7;break;case 119:this._actionKeyRelease=8;break;case 120:this._actionKeyRelease=9;break;case 121:this._actionKeyRelease=10;break;case 122:this._actionKeyRelease=11;break;case 123:this._actionKeyRelease=12;break;case 36:this._actionKeyRelease=13;break;case 35:this._actionKeyRelease=14;break;case 33:this._actionKeyRelease=15;break;case 34:this._actionKeyRelease=16;break;case 38:this._actionKeyRelease=17;break;case 40:this._actionKeyRelease=18;break;case 37:this._actionKeyRelease=19;break;case 39:this._actionKeyRelease=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyRelease=String.fromCharCode(8);break;case"Delete":this._keyRelease=String.fromCharCode(127);break;case"Enter":this._keyRelease="\n";break;case"Escape":this._keyRelease=String.fromCharCode(27);break;case"Tab":this._keyRelease="\t";break;default:1===e.key.length&&(this._keyRelease=e.key)}}this._isActive.getValue()&&(this._isActive=!1)},release(){this._shiftKey.getValue()&&(this._shiftKey=!1),this._controlKey.getValue()&&(this._controlKey=!1),this._altKey.getValue()&&(this._altKey=!1)}}),Object.defineProperties(g,{typeName:{value:"KeySensor",enumerable:!0},componentInfo:{value:Object.freeze({name:"KeyDeviceSensor",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(k())([new(d())(v().inputOutput,"metadata",new(_().SFNode)),new(d())(v().inputOutput,"description",new(_().SFString)),new(d())(v().inputOutput,"enabled",new(_().SFBool)(!0)),new(d())(v().outputOnly,"controlKey",new(_().SFBool)),new(d())(v().outputOnly,"shiftKey",new(_().SFBool)),new(d())(v().outputOnly,"altKey",new(_().SFBool)),new(d())(v().outputOnly,"actionKeyPress",new(_().SFInt32)),new(d())(v().outputOnly,"actionKeyRelease",new(_().SFInt32)),new(d())(v().outputOnly,"keyPress",new(_().SFString)),new(d())(v().outputOnly,"keyRelease",new(_().SFString)),new(d())(v().outputOnly,"isActive",new(_().SFBool))]),enumerable:!0}});const D=g;i().add("KeySensor","x_ite/Components/KeyDeviceSensor/KeySensor",D);const O=D;function P(e){m.call(this,e),this.addType(v().StringSensor)}Object.assign(Object.setPrototypeOf(P.prototype,m.prototype),{keydown(e){switch(e.preventDefault(),e.key){case"Backspace":this._isActive.getValue()&&this._deletionAllowed.getValue()&&this._enteredText.length&&(this._enteredText=this._enteredText.getValue().substring(0,this._enteredText.length-1));break;case"Enter":this._finalText=this._enteredText,this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Escape":this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Tab":break;default:(e.charCode||e.keyCode)&&1===e.key.length&&(this._isActive.getValue()||(this._isActive=!0,this._enteredText=""),this._enteredText=this._enteredText.getValue()+e.key)}}}),Object.defineProperties(P,{typeName:{value:"StringSensor",enumerable:!0},componentInfo:{value:Object.freeze({name:"KeyDeviceSensor",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(k())([new(d())(v().inputOutput,"metadata",new(_().SFNode)),new(d())(v().inputOutput,"description",new(_().SFString)),new(d())(v().inputOutput,"enabled",new(_().SFBool)(!0)),new(d())(v().inputOutput,"deletionAllowed",new(_().SFBool)(!0)),new(d())(v().outputOnly,"enteredText",new(_().SFString)),new(d())(v().outputOnly,"finalText",new(_().SFString)),new(d())(v().outputOnly,"isActive",new(_().SFBool))]),enumerable:!0}});const C=P;i().add("StringSensor","x_ite/Components/KeyDeviceSensor/StringSensor",C);const R=C;s().add({name:"KeyDeviceSensor",concreteNodes:[O,R],abstractNodes:[m],browserContext:y});const x=void 0;i().add("KeyDeviceSensor","assets/components/KeyDeviceSensor",x)})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* X_ITE v10.1.0 */(()=>{"use strict";var e={823:e=>{e.exports=window[Symbol.for("X_ITE.X3D-10.1.0")].require("lib/jquery")}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const n=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components");var s=i.n(n);const o=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Texturing/TextureProperties");var r=i.n(o);const a=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Numbers/Vector3");var l=i.n(a);const h=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Numbers/Matrix4");var u=i.n(h);const c=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Geometry/ViewVolume");var d=i.n(c);const p=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Namespace");var y=i.n(p);const f=Symbol();function g(){}Object.assign(g.prototype,{getScreenTextureProperties(){return this[f]=new(r())(this.getPrivateScene()),this[f]._boundaryModeS="CLAMP_TO_EDGE",this[f]._boundaryModeT="CLAMP_TO_EDGE",this[f]._boundaryModeR="CLAMP_TO_EDGE",this[f]._minificationFilter="NEAREST_PIXEL",this[f]._magnificationFilter="NEAREST_PIXEL",this[f]._generateMipMaps=!1,this[f]._textureCompression="DEFAULT",this[f].setup(),this.getScreenTextureProperties=function(){return this[f]},Object.defineProperty(this,"getScreenTextureProperties",{enumerable:!1}),this[f]},getScreenScaleMatrix:(()=>{const e=new(l()),t=new(l()),i=new(u());return function(n,s,o,r){const a=n.getModelViewMatrix().get(),h=n.getProjectionMatrix().get(),u=n.getViewVolume().getViewport();n.getViewpoint().getScreenScale(a.origin,u,e);const c=a.xAxis.normalize().multiply(e.x*o),p=a.yAxis.normalize().multiply(e.y*o),y=a.zAxis.normalize().multiply(e.x*o);i.set(c.x,c.y,c.z,0,p.x,p.y,p.z,0,y.x,y.y,y.z,0,a[12],a[13],a[14],1),r&&(d().projectPoint(l().Zero,i,h,u,t),t.x=Math.round(t.x),t.y=Math.round(t.y),d().unProjectPoint(t.x,t.y,t.z,i,h,u,t),t.z=0,i.translate(t)),s.assign(a).inverse().multLeft(i)}})()});const w=g;y().add("X3DLayoutContext","x_ite/Browser/Layout/X3DLayoutContext",w);const x=w,_=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Fields");var m=i.n(_);const S=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DFieldDefinition");var b=i.n(S);const X=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/FieldDefinitionArray");var M=i.n(X);const O=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Core/X3DChildNode");var v=i.n(O);const z=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DConstants");var T=i.n(z);function N(e){v().call(this,e),this.addType(T().X3DLayoutNode)}Object.setPrototypeOf(N.prototype,v().prototype),Object.defineProperties(N,{typeName:{value:"X3DLayoutNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:1}),enumerable:!0}});const F=N;y().add("X3DLayoutNode","x_ite/Components/Layout/X3DLayoutNode",F);const I=F,L=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Numbers/Vector2");var E=i.n(L);const D=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Numbers/Rotation4");var U=i.n(D);let C=0;const P=C++,B=C++,Y=C++,R=C++,j=C++,V=C++,A=C++,q=C++,G=C++,k=C++;function W(e){I.call(this,e),this.addType(T().Layout),this.alignX=B,this.alignY=B,this.offsetUnitX=V,this.offsetUnitY=V,this.offsetX=0,this.offsetY=0,this.sizeUnitX=V,this.sizeUnitY=V,this.sizeX=1,this.sizeY=1,this.scaleModeX=G,this.scaleModeY=G,this.parent=null,this.rectangleCenter=new(E()),this.rectangleSize=new(E()),this.matrix=new(u())}Object.assign(Object.setPrototypeOf(W.prototype,I.prototype),{viewportPixel:new(E()),pixelSize:new(E()),translation:new(l()),offset:new(l()),scale:new(l())(1,1,1),currentTranslation:new(l()),currentRotation:new(U()),currentScale:new(l()),modelViewMatrix:new(u()),initialize(){I.prototype.initialize.call(this),this._align.addInterest("set_align__",this),this._offsetUnits.addInterest("set_offsetUnits__",this),this._offset.addInterest("set_offset__",this),this._sizeUnits.addInterest("set_sizeUnits__",this),this._size.addInterest("set_size__",this),this._scaleMode.addInterest("set_scaleMode__",this),this.set_align__(),this.set_offsetUnits__(),this.set_offset__(),this.set_sizeUnits__(),this.set_size__(),this.set_scaleMode__()},set_align__(){this._align.length>0?"LEFT"===this._align[0]?this.alignX=P:"RIGHT"===this._align[0]?this.alignX=Y:this.alignX=B:this.alignX=B,this._align.length>1?"BOTTOM"===this._align[1]?this.alignY=R:"TOP"===this._align[1]?this.alignY=j:this.alignY=B:this.alignY=B},set_offsetUnits__(){this._offsetUnits.length>0?("FRACTION"===this._offsetUnits[0]?this.offsetUnitX=A:"PIXEL"===this._offsetUnits[0]?this.offsetUnitX=q:this.offsetUnitX=V,this._offsetUnits.length>1?"FRACTION"===this._offsetUnits[1]?this.offsetUnitY=A:"PIXEL"===this._offsetUnits[1]?this.offsetUnitY=q:this.offsetUnitY=V:this.offsetUnitY=this.offsetUnitX):(this.offsetUnitX=V,this.offsetUnitY=V)},set_offset__(){this._offset.length>0?(this.offsetX=this._offset[0],this._offset.length>1?this.offsetY=this._offset[1]:this.offsetY=offsetX):(this.offsetX=0,this.offsetY=0)},set_sizeUnits__(){this._sizeUnits.length>0?("FRACTION"===this._sizeUnits[0]?this.sizeUnitX=A:"PIXEL"===this._sizeUnits[0]?this.sizeUnitX=q:this.sizeUnitX=V,this._sizeUnits.length>1?"FRACTION"===this._sizeUnits[1]?this.sizeUnitY=A:"PIXEL"===this._sizeUnits[1]?this.sizeUnitY=q:this.sizeUnitY=V:this.sizeUnitY=this.sizeUnitX):(this.sizeUnitX=V,this.sizeUnitY=V)},set_size__(){this._size.length>0?(this.sizeX=this._size[0],this._size.length>1?this.sizeY=this._size[1]:this.sizeY=this.sizeX):(this.sizeX=0,this.sizeY=0)},set_scaleMode__(){this._scaleMode.length>0?("FRACTION"===this._scaleMode[0]?this.scaleModeX=A:"PIXEL"===this._scaleMode[0]?this.scaleModeX=q:"STRETCH"===this._scaleMode[0]?this.scaleModeX=k:this.scaleModeX=G,this._scaleMode.length>1?"FRACTION"===this._scaleMode[1]?this.scaleModeY=A:"PIXEL"===this._scaleMode[1]?this.scaleModeY=q:"STRETCH"===this._scaleMode[1]?this.scaleModeY=k:this.scaleModeY=G:this.scaleModeY=this.scaleModeX):(this.scaleModeX=G,this.scaleModeY=G)},getRectangleCenter(){return this.rectangleCenter},getRectangleSize(){return this.rectangleSize},getAlignX(){return this.alignX},getAlignY(){return this.alignY},getOffsetUnitX(){return this.offsetUnitX===V?this.parent?this.parent.getOffsetUnitX():A:this.offsetUnitX},getOffsetUnitY(){return this.offsetUnitY===V?this.parent?this.parent.getOffsetUnitY():A:this.offsetUnitY},getOffsetX(){return this.offsetX},getOffsetY(){return this.offsetY},getSizeUnitX(){return this.sizeUnitX===V?this.parent?this.parent.getSizeUnitX():A:this.sizeUnitX},getSizeUnitY(){return this.sizeUnitY===V?this.parent?this.parent.getSizeUnitY():A:this.sizeUnitY},getSizeX(){return this.sizeX},getSizeY(){return this.sizeY},getScaleModeX(){return this.parent?this.scaleModeX:this.scaleModeX===G?A:this.scaleModeX},getScaleModeY(){return this.parent?this.scaleModeY:this.scaleModeY===G?A:this.scaleModeY},transform(e,t){const i=this.parent=t.getParentLayout(),n=this.getBrowser().getRenderingProperty("ContentScale"),s=this.matrix,o=t.getViewpoint(),r=t.getNavigationInfo().getNearValue(),a=t.getViewVolume().getScissor(),l=o.getViewportSize(a,r),h=this.viewportPixel,u=this.pixelSize,c=i?i.getRectangleSize():l,d=this.rectangleSize,p=this.rectangleCenter;switch(h.set(a[2],a[3]).divide(n),u.assign(l).divVec(h),this.getSizeUnitX()){case A:d.x=this.sizeX*c.x;break;case q:d.x=this.sizeX*u.x}switch(this.getSizeUnitY()){case A:d.y=this.sizeY*c.y;break;case q:d.y=this.sizeY*u.y}const y=this.translation.set(0,0,0);switch(this.getAlignX()){case P:y.x=-(c.x-d.x)/2;break;case B:this.getSizeUnitX()===q&&1&h.x&&(y.x=-u.x/2);break;case Y:y.x=(c.x-d.x)/2}switch(this.getAlignY()){case R:y.y=-(c.y-d.y)/2;break;case B:this.getSizeUnitX()===q&&1&h.y&&(y.y=-u.y/2);break;case j:y.y=(c.y-d.y)/2}const f=this.offset.set(0,0,0);switch(this.getOffsetUnitX()){case A:f.x=this.offsetX*c.x;break;case q:f.x=this.offsetX*l.x/h.x}switch(this.getOffsetUnitY()){case A:f.y=this.offsetY*c.y;break;case q:f.y=this.offsetY*l.y/h.y}const g=this.scale.set(1,1,1),w=this.currentTranslation,x=this.currentRotation,_=this.currentScale;switch(t.getModelViewMatrix().get().get(w,x,_),this.getScaleModeX()){case G:g.x=_.x;break;case A:g.x=d.x;break;case k:break;case q:g.x=l.x/h.x}switch(this.getScaleModeY()){case G:g.y=_.y;break;case A:g.y=d.y;break;case k:break;case q:g.y=l.y/h.y}return this.getScaleModeX()===k?this.getScaleModeY()===k?d.x>d.y?(g.x=d.x,g.y=g.x):(g.y=d.y,g.x=g.y):g.x=g.y:this.getScaleModeY()===k&&(g.y=g.x),p.assign(y.add(f)),s.set(w,x),s.translate(y),s.scale(g),s}}),Object.defineProperties(W,{typeName:{value:"Layout",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:1}),enumerable:!0},containerField:{value:"layout",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(M())([new(b())(T().inputOutput,"metadata",new(m().SFNode)),new(b())(T().inputOutput,"align",new(m().MFString)("CENTER","CENTER")),new(b())(T().inputOutput,"offsetUnits",new(m().MFString)("WORLD","WORLD")),new(b())(T().inputOutput,"offset",new(m().MFFloat)(0,0)),new(b())(T().inputOutput,"sizeUnits",new(m().MFString)("WORLD","WORLD")),new(b())(T().inputOutput,"size",new(m().MFFloat)(1,1)),new(b())(T().inputOutput,"scaleMode",new(m().MFString)("NONE","NONE"))]),enumerable:!0}});const H=W;y().add("Layout","x_ite/Components/Layout/Layout",H);const K=H,Z=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Grouping/X3DGroupingNode");var Q=i.n(Z);const J=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Base/X3DCast");var $=i.n(J);const ee=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Rendering/TraverseType");var te=i.n(ee);function ie(e){Q().call(this,e),this.addType(T().LayoutGroup),this.viewportNode=null,this.layoutNode=null,this.matrix=new(u()),this.modelViewMatrix=new(u()),this.screenMatrix=new(u())}Object.assign(Object.setPrototypeOf(ie.prototype,Q().prototype),{initialize(){Q().prototype.initialize.call(this),this._viewport.addInterest("set_viewport__",this),this._layout.addInterest("set_layout__",this),this.set_viewport__(),this.set_layout__()},set_viewport__(){this.viewportNode=$()(T().X3DViewportNode,this._viewport)},set_layout__(){this.layoutNode=$()(T().X3DLayoutNode,this._layout)},getBBox(e,t){return Q().prototype.getBBox.call(this,e,t).multRight(this.getMatrix())},getMatrix(){return this.layoutNode?this.matrix.assign(this.modelViewMatrix).inverse().multLeft(this.screenMatrix):this.matrix.identity()},getLayout(){return this.layoutNode},traverse(e,t){if(e!==te().COLLISION){if(this.viewportNode&&this.viewportNode.push(),this.layoutNode){const i=t.getModelViewMatrix();this.modelViewMatrix.assign(i.get()),this.screenMatrix.assign(this.layoutNode.transform(e,t)),i.pushMatrix(this.screenMatrix),t.getLayouts().push(this.layoutNode),Q().prototype.traverse.call(this,e,t),t.getLayouts().pop(),i.pop()}else Q().prototype.traverse.call(this,e,t);this.viewportNode&&this.viewportNode.pop()}}}),Object.defineProperties(ie,{typeName:{value:"LayoutGroup",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(M())([new(b())(T().inputOutput,"metadata",new(m().SFNode)),new(b())(T().inputOutput,"layout",new(m().SFNode)),new(b())(T().inputOutput,"viewport",new(m().SFNode)),new(b())(T().inputOutput,"visible",new(m().SFBool)(!0)),new(b())(T().inputOutput,"bboxDisplay",new(m().SFBool)),new(b())(T().initializeOnly,"bboxSize",new(m().SFVec3f)(-1,-1,-1)),new(b())(T().initializeOnly,"bboxCenter",new(m().SFVec3f)),new(b())(T().inputOnly,"addChildren",new(m().MFNode)),new(b())(T().inputOnly,"removeChildren",new(m().MFNode)),new(b())(T().inputOutput,"children",new(m().MFNode))]),enumerable:!0}});const ne=ie;y().add("LayoutGroup","x_ite/Components/Layout/LayoutGroup",ne);const se=ne,oe=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Layering/X3DLayerNode");var re=i.n(oe);const ae=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Navigation/OrthoViewpoint");var le=i.n(ae);function he(e){re().call(this,e,new(le())(e),new se(e)),this.addType(T().LayoutLayer)}Object.assign(Object.setPrototypeOf(he.prototype,re().prototype),{initialize(){re().prototype.initialize.call(this);const e=this.getGroups()._children[0].getValue();this._layout.addFieldInterest(e._layout),this._addChildren.addFieldInterest(e._addChildren),this._removeChildren.addFieldInterest(e._removeChildren),this._children.addFieldInterest(e._children),e._layout=this._layout,e._children=this._children,e.setPrivate(!0),e.setup(),this.getGroups().setup()}}),Object.defineProperties(he,{typeName:{value:"LayoutLayer",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:1}),enumerable:!0},containerField:{value:"layers",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(M())([new(b())(T().inputOutput,"metadata",new(m().SFNode)),new(b())(T().inputOutput,"pickable",new(m().SFBool)(!0)),new(b())(T().inputOutput,"objectType",new(m().MFString)("ALL")),new(b())(T().inputOutput,"visible",new(m().SFBool)(!0)),new(b())(T().inputOutput,"layout",new(m().SFNode)),new(b())(T().inputOutput,"viewport",new(m().SFNode)),new(b())(T().inputOnly,"addChildren",new(m().MFNode)),new(b())(T().inputOnly,"removeChildren",new(m().MFNode)),new(b())(T().inputOutput,"children",new(m().MFNode))]),enumerable:!0}});const ue=he;y().add("LayoutLayer","x_ite/Components/Layout/LayoutLayer",ue);const ce=ue,de=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Text/X3DFontStyleNode");var pe=i.n(de);const ye=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Browser/Text/X3DTextGeometry");var fe=i.n(ye);const ge=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Browser/Text/TextAlignment");var we=i.n(ge);const xe=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Components/Texturing/PixelTexture");var _e=i.n(xe);const me=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Geometry/Box3");var Se=i.n(me);const be=window[Symbol.for("X_ITE.X3D-10.1.0")].require("standard/Math/Algorithm");var Xe=i.n(be),Me=i(823);function Oe(e,t){fe().call(this,e,t),e.setTransparent(!0),this.textureNode=new(_e())(e.getExecutionContext()),this.canvas=Me("<canvas></canvas>"),this.context=this.canvas[0].getContext("2d",{willReadFrequently:!0}),this.matrix=new(u()),this.textureNode._textureProperties=t.getBrowser().getScreenTextureProperties(),this.textureNode.setup()}Object.assign(Object.setPrototypeOf(Oe.prototype,fe().prototype),{modelViewMatrix:new(u()),isTransparent:()=>!0,getMatrix(){return this.matrix},update:(()=>{const e=new(l()),t=new(l())(1,1,0);return function(){fe().prototype.update.call(this);const i=this.getFontStyle(),n=this.getText();switch(n._textBounds.x=Math.ceil(n._textBounds.x)+1,n._textBounds.y=Math.ceil(n._textBounds.y)+1,this.getBBox().getExtents(e,t),e.x-=1,e.y-=1,i.getMajorAlignment()){case we().BEGIN:case we().FIRST:e.x=Math.floor(e.x),t.x=e.x+n._textBounds.x;break;case we().MIDDLE:e.x=Math.round(e.x),t.x=e.x+n._textBounds.x;break;case we().END:t.x=Math.ceil(t.x),e.x=t.x-n._textBounds.x}switch(i.getMinorAlignment()){case we().BEGIN:case we().FIRST:t.y=Math.ceil(t.y),e.y=t.y-n._textBounds.y;break;case we().MIDDLE:t.y=Math.round(t.y),e.y=t.y-n._textBounds.y;break;case we().END:e.y=Math.floor(e.y),t.y=e.y+n._textBounds.y}n._origin.x=e.x,n._origin.y=t.y,this.getBBox().setExtents(e,t)}})(),build:(()=>{const e=new(l()),t=new(l())(1,1,0);return function(){const i=this.getFontStyle(),n=i.getFont();if(!n)return;const s=this.getText(),o=this.getGlyphs(),r=this.getMinorAlignment(),a=this.getTranslations(),l=this.getCharSpacings(),h=this.getScales(),u=i.getScale(),c=u/n.unitsPerEm,d=s.getTexCoords(),p=s.getNormals(),y=s.getVertices(),f=this.canvas[0],g=this.context;s.getMultiTexCoords().push(d),this.getBBox().getExtents(e,t),p.push(0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1),y.push(e.x,e.y,0,1,t.x,e.y,0,1,t.x,t.y,0,1,e.x,e.y,0,1,t.x,t.y,0,1,e.x,t.y,0,1);const w=s._textBounds.x,x=s._textBounds.y;f.width=Xe().nextPowerOfTwo(w),f.height=Xe().nextPowerOfTwo(x);const _=w/f.width,m=1-x/f.height;if(d.push(0,m,0,1,_,m,0,1,_,1,0,1,0,m,0,1,_,1,0,1,0,1,0,1),g.fillStyle="rgba(255,255,255,0)",g.fillRect(0,0,f.width,f.height),g.fillStyle="rgba(255,255,255,1)",g.save(),g.translate(0,f.height),g.scale(1,-1),i._horizontal.getValue())for(let i=0,s=o.length;i<s;++i){const s=o[i],d=a[i],p=l[i],y=h[i];let f=0;for(let i=0,o=s.length;i<o;++i){const o=s[i],a=r.x+d.x+f*y+i*p-e.x,l=r.y+d.y-t.y;g.save(),g.translate(a,-l),g.scale(y,1),this.drawGlyph(g,n,o,u),g.restore();let h=0;i+1<s.length&&(h=n.getKerningValue(o,s[i+1])),f+=(o.advanceWidth+h)*c}}else{const c=i._leftToRight.getValue(),d=i._topToBottom.getValue(),p=c?0:s._string.length-1,y=c?s._string.length:-1,f=c?1:-1;for(let i=p,s=0;i!==y;i+=f){const c=o[i],p=c.length,y=d?0:p-1,f=d?p:-1,w=d?1:-1,x=l[i],_=h[i];for(let i=y;i!==f;i+=w,++s){const o=a[s],l=r.x+o.x-e.x,h=r.y+o.y*_-i*x-t.y;g.save(),g.translate(l,-h),g.scale(1,_),this.drawGlyph(g,n,c[i],u),g.restore()}}}g.restore();const S=g.getImageData(0,0,f.width,f.height);S?this.textureNode.setTextureData(f.width,f.height,!0,!0,new Uint8Array(S.data.buffer)):this.textureNode.clear()}})(),drawGlyph(e,t,i,n){const s=i.getPath(0,0,n),o=s.commands;e.beginPath();for(let t=0,i=o.length;t<i;++t){const i=o[t];switch(i.type){case"M":e.moveTo(i.x,i.y);continue;case"Z":e.closePath();continue;case"L":e.lineTo(i.x,i.y);continue;case"Q":e.quadraticCurveTo(i.x1,i.y1,i.x,i.y);continue;case"C":e.bezierCurveTo(i.x1,i.y1,i.x2,i.y2,i.x,i.y);continue}}s.fill&&e.fill(),s.stroke&&(e.lineWidth=s.strokeWidth,e.stroke())},getGlyphExtents(e,t,i,n,s){const o=e.unitsPerEm;n.set((t.xMin||0)/o,(t.yMin||0)/o,0),s.set((t.xMax||0)/o,(t.yMax||0)/o,0)},traverse:(()=>{const e=new(Se());return function(t,i){this.getBrowser().getScreenScaleMatrix(i,this.matrix,1,!0),e.assign(this.getBBox()).multRight(this.matrix),this.getText().setBBox(e)}})(),display(e,t){u().prototype.multLeft.call(t.modelViewMatrix,this.matrix),t.textureNode=this.textureNode},transformLine:(()=>{const e=new(u());return function(t){return t.multLineMatrix(e.assign(this.matrix).inverse())}})(),transformMatrix(e){return e.multLeft(this.matrix)}});const ve=Oe;y().add("ScreenText","x_ite/Browser/Layout/ScreenText",ve);const ze=ve;function Te(e){pe().call(this,e),this.addType(T().ScreenFontStyle)}Object.assign(Object.setPrototypeOf(Te.prototype,pe().prototype),{initialize(){pe().prototype.initialize.call(this),this.getBrowser().getRenderingProperties()._ContentScale.addInterest("addNodeEvent",this)},getTextGeometry(e){return new ze(e,this)},getScale(){return this._pointSize.getValue()*this.getBrowser().getPixelsPerPoint()}}),Object.defineProperties(Te,{typeName:{value:"ScreenFontStyle",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:2}),enumerable:!0},containerField:{value:"fontStyle",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(M())([new(b())(T().inputOutput,"metadata",new(m().SFNode)),new(b())(T().inputOutput,"language",new(m().SFString)),new(b())(T().inputOutput,"family",new(m().MFString)("SERIF")),new(b())(T().inputOutput,"style",new(m().SFString)("PLAIN")),new(b())(T().inputOutput,"pointSize",new(m().SFFloat)(12)),new(b())(T().inputOutput,"spacing",new(m().SFFloat)(1)),new(b())(T().inputOutput,"horizontal",new(m().SFBool)(!0)),new(b())(T().inputOutput,"leftToRight",new(m().SFBool)(!0)),new(b())(T().inputOutput,"topToBottom",new(m().SFBool)(!0)),new(b())(T().inputOutput,"justify",new(m().MFString)("BEGIN"))]),enumerable:!0}});const Ne=Te;y().add("ScreenFontStyle","x_ite/Components/Layout/ScreenFontStyle",Ne);const Fe=Ne,Ie=window[Symbol.for("X_ITE.X3D-10.1.0")].require("x_ite/Prototype/X3DProtoDeclaration");var Le=i.n(Ie);function Ee(e){Q().call(this,e),this.addType(T().ScreenGroup),e.getOuterNode()instanceof Le()?this.matrix=new(u()):this.matrix=new(u())(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}Object.assign(Object.setPrototypeOf(Ee.prototype,Q().prototype),{getBBox(e,t){return this.getSubBBox(e,t).multRight(this.matrix)},getMatrix(){return this.matrix},traverse(e,t){switch(e){case te().CAMERA:case te().PICKING:case te().SHADOW:break;default:{const e=this.getBrowser();e.getScreenScaleMatrix(t,this.matrix,e.getRenderingProperty("ContentScale"),!1);break}}const i=t.getModelViewMatrix();i.push(),i.multLeft(this.matrix),Q().prototype.traverse.call(this,e,t),i.pop()}}),Object.defineProperties(Ee,{typeName:{value:"ScreenGroup",enumerable:!0},componentInfo:{value:Object.freeze({name:"Layout",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(M())([new(b())(T().inputOutput,"metadata",new(m().SFNode)),new(b())(T().inputOutput,"visible",new(m().SFBool)(!0)),new(b())(T().inputOutput,"bboxDisplay",new(m().SFBool)),new(b())(T().initializeOnly,"bboxSize",new(m().SFVec3f)(-1,-1,-1)),new(b())(T().initializeOnly,"bboxCenter",new(m().SFVec3f)),new(b())(T().inputOnly,"addChildren",new(m().MFNode)),new(b())(T().inputOnly,"removeChildren",new(m().MFNode)),new(b())(T().inputOutput,"children",new(m().MFNode))]),enumerable:!0}});const De=Ee;y().add("ScreenGroup","x_ite/Components/Layout/ScreenGroup",De);const Ue=De;s().add({name:"Layout",concreteNodes:[K,se,ce,Fe,Ue],abstractNodes:[I],browserContext:x});const Ce=void 0;y().add("Layout","assets/components/Layout",Ce)})();
|