x_ite 8.4.3 → 8.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +5 -1
- package/Makefile +0 -3
- package/build/bin/components.js +173 -0
- package/build/bin/tags.pl +28 -0
- package/build/bin/tests.pl +80 -2
- package/build/bin/version.pl +12 -7
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +13 -13
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +28 -29
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +19 -19
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +33 -33
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +63 -42
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +37 -29
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +29 -31
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +23 -23
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +19 -19
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +24 -19
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +30 -30
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +172 -594
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +31 -47
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +367 -346
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +19 -19
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +12174 -3553
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +5 -136
- package/docs/_data/nav/components-CADGeometry.yml +14 -0
- package/docs/_data/nav/components-Core.yml +16 -0
- package/docs/_data/nav/components-CubeMapTexturing.yml +8 -0
- package/docs/_data/nav/components-DIS.yml +14 -0
- package/docs/_data/nav/components-EnvironmentalEffects.yml +12 -0
- package/docs/_data/nav/components-EnvironmentalSensor.yml +8 -0
- package/docs/_data/nav/components-EventUtilities.yml +16 -0
- package/docs/_data/nav/components-Followers.yml +30 -0
- package/docs/_data/nav/components-Geometry2D.yml +18 -0
- package/docs/_data/nav/components-Geometry3D.yml +16 -0
- package/docs/_data/nav/components-Geospatial.yml +24 -0
- package/docs/_data/nav/components-Grouping.yml +10 -0
- package/docs/_data/nav/components-HAnim.yml +14 -0
- package/docs/_data/nav/components-Interpolation.yml +28 -0
- package/docs/_data/nav/components-KeyDeviceSensor.yml +6 -0
- package/docs/_data/nav/components-Layering.yml +8 -0
- package/docs/_data/nav/components-Layout.yml +12 -0
- package/docs/_data/nav/components-Lighting.yml +10 -0
- package/docs/_data/nav/components-NURBS.yml +30 -0
- package/docs/_data/nav/components-Navigation.yml +16 -0
- package/docs/_data/nav/components-Networking.yml +8 -0
- package/docs/_data/nav/components-ParticleSystems.yml +22 -0
- package/docs/_data/nav/components-Picking.yml +12 -0
- package/docs/_data/nav/components-PointingDeviceSensor.yml +10 -0
- package/docs/_data/nav/components-Rendering.yml +30 -0
- package/docs/_data/nav/components-RigidBodyPhysics.yml +30 -0
- package/docs/_data/nav/components-Scripting.yml +4 -0
- package/docs/_data/nav/components-Shaders.yml +18 -0
- package/docs/_data/nav/components-Shape.yml +22 -0
- package/docs/_data/nav/components-Sound.yml +44 -0
- package/docs/_data/nav/components-Text.yml +6 -0
- package/docs/_data/nav/components-TextureProjector.yml +6 -0
- package/docs/_data/nav/components-Texturing.yml +22 -0
- package/docs/_data/nav/components-Texturing3D.yml +18 -0
- package/docs/_data/nav/components-Time.yml +4 -0
- package/docs/_data/nav/components-VolumeRendering.yml +28 -0
- package/docs/_data/nav/components-X_ITE.yml +4 -0
- package/docs/_data/nav/main.yml +26 -0
- package/docs/_data/nav/reference.yml +18 -0
- package/docs/_data/nav/tutorials-animation-sensors-and-geometry.yml +18 -0
- package/docs/_data/nav/tutorials-basic.yml +6 -0
- package/docs/_data/nav/tutorials-optimize-your-scene.yml +6 -0
- package/docs/_data/nav/tutorials-scripts-and-prototypes.yml +12 -0
- package/docs/_data/nav/tutorials-shapes-geometry-and-appearance.yml +16 -0
- package/docs/_data/nav/tutorials-textures-lights-and-environment.yml +20 -0
- package/docs/_includes/nav.html +2 -2
- package/docs/_includes/scripts.html +2 -1
- package/docs/_posts/accessing-the-external-browser.md +1 -1
- package/docs/_posts/browser-support.md +1 -1
- package/docs/_posts/components/CADGeometry/CADAssembly.md +83 -0
- package/docs/_posts/components/CADGeometry/CADFace.md +70 -0
- package/docs/_posts/components/CADGeometry/CADLayer.md +84 -0
- package/docs/_posts/components/CADGeometry/CADPart.md +117 -0
- package/docs/_posts/components/CADGeometry/IndexedQuadSet.md +125 -0
- package/docs/_posts/components/CADGeometry/QuadSet.md +113 -0
- package/docs/_posts/components/Core/MetadataBoolean.md +90 -0
- package/docs/_posts/components/Core/MetadataDouble.md +67 -0
- package/docs/_posts/components/Core/MetadataFloat.md +67 -0
- package/docs/_posts/components/Core/MetadataInteger.md +66 -0
- package/docs/_posts/components/Core/MetadataSet.md +63 -0
- package/docs/_posts/components/Core/MetadataString.md +66 -0
- package/docs/_posts/components/Core/WorldInfo.md +54 -0
- package/docs/_posts/components/CubeMapTexturing/ComposedCubeMapTexture.md +76 -0
- package/docs/_posts/components/CubeMapTexturing/GeneratedCubeMapTexture.md +65 -0
- package/docs/_posts/components/CubeMapTexturing/ImageCubeMapTexture.md +66 -0
- package/docs/_posts/components/DIS/DISEntityManager.md +73 -0
- package/docs/_posts/components/DIS/DISEntityTypeMapping.md +88 -0
- package/docs/_posts/components/DIS/EspduTransform.md +416 -0
- package/docs/_posts/components/DIS/ReceiverPdu.md +168 -0
- package/docs/_posts/components/DIS/SignalPdu.md +168 -0
- package/docs/_posts/components/DIS/TransmitterPdu.md +232 -0
- package/docs/_posts/components/EnvironmentalEffects/Background.md +189 -0
- package/docs/_posts/components/EnvironmentalEffects/Fog.md +97 -0
- package/docs/_posts/components/EnvironmentalEffects/FogCoordinate.md +40 -0
- package/docs/_posts/components/EnvironmentalEffects/LocalFog.md +84 -0
- package/docs/_posts/components/EnvironmentalEffects/TextureBackground.md +142 -0
- package/docs/_posts/components/EnvironmentalSensor/ProximitySensor.md +90 -0
- package/docs/_posts/components/EnvironmentalSensor/TransformSensor.md +91 -0
- package/docs/_posts/components/EnvironmentalSensor/VisibilitySensor.md +73 -0
- package/docs/_posts/components/EventUtilities/BooleanFilter.md +62 -0
- package/docs/_posts/components/EventUtilities/BooleanSequencer.md +86 -0
- package/docs/_posts/components/EventUtilities/BooleanToggle.md +46 -0
- package/docs/_posts/components/EventUtilities/BooleanTrigger.md +47 -0
- package/docs/_posts/components/EventUtilities/IntegerSequencer.md +90 -0
- package/docs/_posts/components/EventUtilities/IntegerTrigger.md +51 -0
- package/docs/_posts/components/EventUtilities/TimeTrigger.md +47 -0
- package/docs/_posts/components/Followers/ColorChaser.md +77 -0
- package/docs/_posts/components/Followers/ColorDamper.md +85 -0
- package/docs/_posts/components/Followers/CoordinateChaser.md +76 -0
- package/docs/_posts/components/Followers/CoordinateDamper.md +80 -0
- package/docs/_posts/components/Followers/OrientationChaser.md +72 -0
- package/docs/_posts/components/Followers/OrientationDamper.md +80 -0
- package/docs/_posts/components/Followers/PositionChaser.md +72 -0
- package/docs/_posts/components/Followers/PositionChaser2D.md +72 -0
- package/docs/_posts/components/Followers/PositionDamper.md +80 -0
- package/docs/_posts/components/Followers/PositionDamper2D.md +80 -0
- package/docs/_posts/components/Followers/ScalarChaser.md +76 -0
- package/docs/_posts/components/Followers/ScalarDamper.md +80 -0
- package/docs/_posts/components/Followers/TexCoordChaser2D.md +72 -0
- package/docs/_posts/components/Followers/TexCoordDamper2D.md +80 -0
- package/docs/_posts/components/Geometry2D/Arc2D.md +71 -0
- package/docs/_posts/components/Geometry2D/ArcClose2D.md +91 -0
- package/docs/_posts/components/Geometry2D/Circle2D.md +55 -0
- package/docs/_posts/components/Geometry2D/Disk2D.md +75 -0
- package/docs/_posts/components/Geometry2D/Polyline2D.md +54 -0
- package/docs/_posts/components/Geometry2D/Polypoint2D.md +54 -0
- package/docs/_posts/components/Geometry2D/Rectangle2D.md +66 -0
- package/docs/_posts/components/Geometry2D/TriangleSet2D.md +66 -0
- package/docs/_posts/components/Geometry3D/Box.md +66 -0
- package/docs/_posts/components/Geometry3D/Cone.md +90 -0
- package/docs/_posts/components/Geometry3D/Cylinder.md +98 -0
- package/docs/_posts/components/Geometry3D/ElevationGrid.md +162 -0
- package/docs/_posts/components/Geometry3D/Extrusion.md +170 -0
- package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +208 -0
- package/docs/_posts/components/Geometry3D/Sphere.md +66 -0
- package/docs/_posts/components/Geospatial/GeoCoordinate.md +65 -0
- package/docs/_posts/components/Geospatial/GeoElevationGrid.md +180 -0
- package/docs/_posts/components/Geospatial/GeoLOD.md +128 -0
- package/docs/_posts/components/Geospatial/GeoLocation.md +93 -0
- package/docs/_posts/components/Geospatial/GeoMetadata.md +75 -0
- package/docs/_posts/components/Geospatial/GeoOrigin.md +69 -0
- package/docs/_posts/components/Geospatial/GeoPositionInterpolator.md +95 -0
- package/docs/_posts/components/Geospatial/GeoProximitySensor.md +109 -0
- package/docs/_posts/components/Geospatial/GeoTouchSensor.md +108 -0
- package/docs/_posts/components/Geospatial/GeoTransform.md +121 -0
- package/docs/_posts/components/Geospatial/GeoViewpoint.md +126 -0
- package/docs/_posts/components/Grouping/Group.md +75 -0
- package/docs/_posts/components/Grouping/StaticGroup.md +65 -0
- package/docs/_posts/components/Grouping/Switch.md +89 -0
- package/docs/_posts/components/Grouping/Transform.md +126 -0
- package/docs/_posts/components/HAnim/HAnimDisplacer.md +89 -0
- package/docs/_posts/components/HAnim/HAnimHumanoid.md +136 -0
- package/docs/_posts/components/HAnim/HAnimJoint.md +165 -0
- package/docs/_posts/components/HAnim/HAnimMotion.md +68 -0
- package/docs/_posts/components/HAnim/HAnimSegment.md +107 -0
- package/docs/_posts/components/HAnim/HAnimSite.md +108 -0
- package/docs/_posts/components/Interpolation/ColorInterpolator.md +73 -0
- package/docs/_posts/components/Interpolation/CoordinateInterpolator.md +76 -0
- package/docs/_posts/components/Interpolation/CoordinateInterpolator2D.md +73 -0
- package/docs/_posts/components/Interpolation/EaseInEaseOut.md +67 -0
- package/docs/_posts/components/Interpolation/NormalInterpolator.md +68 -0
- package/docs/_posts/components/Interpolation/OrientationInterpolator.md +72 -0
- package/docs/_posts/components/Interpolation/PositionInterpolator.md +72 -0
- package/docs/_posts/components/Interpolation/PositionInterpolator2D.md +77 -0
- package/docs/_posts/components/Interpolation/ScalarInterpolator.md +76 -0
- package/docs/_posts/components/Interpolation/SplinePositionInterpolator.md +93 -0
- package/docs/_posts/components/Interpolation/SplinePositionInterpolator2D.md +93 -0
- package/docs/_posts/components/Interpolation/SplineScalarInterpolator.md +106 -0
- package/docs/_posts/components/Interpolation/SquadOrientationInterpolator.md +78 -0
- package/docs/_posts/components/KeyDeviceSensor/KeySensor.md +78 -0
- package/docs/_posts/components/KeyDeviceSensor/StringSensor.md +70 -0
- package/docs/_posts/components/Layering/Layer.md +67 -0
- package/docs/_posts/components/Layering/LayerSet.md +78 -0
- package/docs/_posts/components/Layering/Viewport.md +80 -0
- package/docs/_posts/components/Layout/Layout.md +107 -0
- package/docs/_posts/components/Layout/LayoutGroup.md +85 -0
- package/docs/_posts/components/Layout/LayoutLayer.md +74 -0
- package/docs/_posts/components/Layout/ScreenFontStyle.md +137 -0
- package/docs/_posts/components/Layout/ScreenGroup.md +71 -0
- package/docs/_posts/components/Lighting/DirectionalLight.md +100 -0
- package/docs/_posts/components/Lighting/EnvironmentLight.md +91 -0
- package/docs/_posts/components/Lighting/PointLight.md +103 -0
- package/docs/_posts/components/Lighting/SpotLight.md +132 -0
- package/docs/_posts/components/NURBS/Contour2D.md +57 -0
- package/docs/_posts/components/NURBS/ContourPolyline2D.md +46 -0
- package/docs/_posts/components/NURBS/CoordinateDouble.md +47 -0
- package/docs/_posts/components/NURBS/NurbsCurve.md +71 -0
- package/docs/_posts/components/NURBS/NurbsCurve2D.md +66 -0
- package/docs/_posts/components/NURBS/NurbsOrientationInterpolator.md +70 -0
- package/docs/_posts/components/NURBS/NurbsPatchSurface.md +106 -0
- package/docs/_posts/components/NURBS/NurbsPositionInterpolator.md +70 -0
- package/docs/_posts/components/NURBS/NurbsSet.md +66 -0
- package/docs/_posts/components/NURBS/NurbsSurfaceInterpolator.md +90 -0
- package/docs/_posts/components/NURBS/NurbsSweptSurface.md +69 -0
- package/docs/_posts/components/NURBS/NurbsSwungSurface.md +65 -0
- package/docs/_posts/components/NURBS/NurbsTextureCoordinate.md +77 -0
- package/docs/_posts/components/NURBS/NurbsTrimmedSurface.md +114 -0
- package/docs/_posts/components/Navigation/Billboard.md +88 -0
- package/docs/_posts/components/Navigation/Collision.md +102 -0
- package/docs/_posts/components/Navigation/LOD.md +99 -0
- package/docs/_posts/components/Navigation/NavigationInfo.md +122 -0
- package/docs/_posts/components/Navigation/OrthoViewpoint.md +117 -0
- package/docs/_posts/components/Navigation/Viewpoint.md +117 -0
- package/docs/_posts/components/Navigation/ViewpointGroup.md +80 -0
- package/docs/_posts/components/Networking/Anchor.md +111 -0
- package/docs/_posts/components/Networking/Inline.md +115 -0
- package/docs/_posts/components/Networking/LoadSensor.md +91 -0
- package/docs/_posts/components/ParticleSystems/BoundedPhysicsModel.md +54 -0
- package/docs/_posts/components/ParticleSystems/ConeEmitter.md +76 -0
- package/docs/_posts/components/ParticleSystems/ExplosionEmitter.md +72 -0
- package/docs/_posts/components/ParticleSystems/ForcePhysicsModel.md +58 -0
- package/docs/_posts/components/ParticleSystems/ParticleSystem.md +177 -0
- package/docs/_posts/components/ParticleSystems/PointEmitter.md +76 -0
- package/docs/_posts/components/ParticleSystems/PolylineEmitter.md +94 -0
- package/docs/_posts/components/ParticleSystems/SurfaceEmitter.md +90 -0
- package/docs/_posts/components/ParticleSystems/VolumeEmitter.md +90 -0
- package/docs/_posts/components/ParticleSystems/WindPhysicsModel.md +68 -0
- package/docs/_posts/components/Picking/LinePickSensor.md +125 -0
- package/docs/_posts/components/Picking/PickableGroup.md +93 -0
- package/docs/_posts/components/Picking/PointPickSensor.md +112 -0
- package/docs/_posts/components/Picking/PrimitivePickSensor.md +114 -0
- package/docs/_posts/components/Picking/VolumePickSensor.md +107 -0
- package/docs/_posts/components/PointingDeviceSensor/CylinderSensor.md +122 -0
- package/docs/_posts/components/PointingDeviceSensor/PlaneSensor.md +114 -0
- package/docs/_posts/components/PointingDeviceSensor/SphereSensor.md +89 -0
- package/docs/_posts/components/PointingDeviceSensor/TouchSensor.md +87 -0
- package/docs/_posts/components/Rendering/ClipPlane.md +67 -0
- package/docs/_posts/components/Rendering/Color.md +56 -0
- package/docs/_posts/components/Rendering/ColorRGBA.md +61 -0
- package/docs/_posts/components/Rendering/Coordinate.md +45 -0
- package/docs/_posts/components/Rendering/IndexedLineSet.md +128 -0
- package/docs/_posts/components/Rendering/IndexedTriangleFanSet.md +128 -0
- package/docs/_posts/components/Rendering/IndexedTriangleSet.md +128 -0
- package/docs/_posts/components/Rendering/IndexedTriangleStripSet.md +116 -0
- package/docs/_posts/components/Rendering/LineSet.md +85 -0
- package/docs/_posts/components/Rendering/Normal.md +41 -0
- package/docs/_posts/components/Rendering/PointSet.md +76 -0
- package/docs/_posts/components/Rendering/TriangleFanSet.md +112 -0
- package/docs/_posts/components/Rendering/TriangleSet.md +108 -0
- package/docs/_posts/components/Rendering/TriangleStripSet.md +116 -0
- package/docs/_posts/components/RigidBodyPhysics/BallJoint.md +78 -0
- package/docs/_posts/components/RigidBodyPhysics/CollidableOffset.md +75 -0
- package/docs/_posts/components/RigidBodyPhysics/CollidableShape.md +83 -0
- package/docs/_posts/components/RigidBodyPhysics/CollisionCollection.md +90 -0
- package/docs/_posts/components/RigidBodyPhysics/CollisionSensor.md +65 -0
- package/docs/_posts/components/RigidBodyPhysics/CollisionSpace.md +70 -0
- package/docs/_posts/components/RigidBodyPhysics/Contact.md +117 -0
- package/docs/_posts/components/RigidBodyPhysics/DoubleAxisHingeJoint.md +162 -0
- package/docs/_posts/components/RigidBodyPhysics/MotorJoint.md +183 -0
- package/docs/_posts/components/RigidBodyPhysics/RigidBody.md +175 -0
- package/docs/_posts/components/RigidBodyPhysics/RigidBodyCollection.md +120 -0
- package/docs/_posts/components/RigidBodyPhysics/SingleAxisHingeJoint.md +108 -0
- package/docs/_posts/components/RigidBodyPhysics/SliderJoint.md +106 -0
- package/docs/_posts/components/RigidBodyPhysics/UniversalJoint.md +119 -0
- package/docs/_posts/components/Scripting/Script.md +81 -0
- package/docs/_posts/components/Shaders/ComposedShader.md +81 -0
- package/docs/_posts/components/Shaders/FloatVertexAttribute.md +65 -0
- package/docs/_posts/components/Shaders/Matrix3VertexAttribute.md +53 -0
- package/docs/_posts/components/Shaders/Matrix4VertexAttribute.md +53 -0
- package/docs/_posts/components/Shaders/PackagedShader.md +77 -0
- package/docs/_posts/components/Shaders/ProgramShader.md +71 -0
- package/docs/_posts/components/Shaders/ShaderPart.md +76 -0
- package/docs/_posts/components/Shaders/ShaderProgram.md +68 -0
- package/docs/_posts/components/Shape/AcousticProperties.md +52 -0
- package/docs/_posts/components/Shape/Appearance.md +123 -0
- package/docs/_posts/components/Shape/FillProperties.md +67 -0
- package/docs/_posts/components/Shape/LineProperties.md +63 -0
- package/docs/_posts/components/Shape/Material.md +217 -0
- package/docs/_posts/components/Shape/PhysicalMaterial.md +173 -0
- package/docs/_posts/components/Shape/PointProperties.md +84 -0
- package/docs/_posts/components/Shape/Shape.md +63 -0
- package/docs/_posts/components/Shape/TwoSidedMaterial.md +149 -0
- package/docs/_posts/components/Shape/UnlitMaterial.md +115 -0
- package/docs/_posts/components/Sound/Analyser.md +72 -0
- package/docs/_posts/components/Sound/AudioClip.md +139 -0
- package/docs/_posts/components/Sound/AudioDestination.md +52 -0
- package/docs/_posts/components/Sound/BiquadFilter.md +70 -0
- package/docs/_posts/components/Sound/BufferAudioSource.md +86 -0
- package/docs/_posts/components/Sound/ChannelMerger.md +46 -0
- package/docs/_posts/components/Sound/ChannelSelector.md +48 -0
- package/docs/_posts/components/Sound/ChannelSplitter.md +48 -0
- package/docs/_posts/components/Sound/Convolver.md +66 -0
- package/docs/_posts/components/Sound/Delay.md +66 -0
- package/docs/_posts/components/Sound/DynamicsCompressor.md +74 -0
- package/docs/_posts/components/Sound/Gain.md +62 -0
- package/docs/_posts/components/Sound/ListenerPointSource.md +62 -0
- package/docs/_posts/components/Sound/MicrophoneSource.md +54 -0
- package/docs/_posts/components/Sound/OscillatorSource.md +58 -0
- package/docs/_posts/components/Sound/PeriodicWave.md +42 -0
- package/docs/_posts/components/Sound/Sound.md +92 -0
- package/docs/_posts/components/Sound/SpatialSound.md +68 -0
- package/docs/_posts/components/Sound/StreamAudioDestination.md +52 -0
- package/docs/_posts/components/Sound/StreamAudioSource.md +54 -0
- package/docs/_posts/components/Sound/WaveShaper.md +66 -0
- package/docs/_posts/components/Text/FontStyle.md +145 -0
- package/docs/_posts/components/Text/Text.md +102 -0
- package/docs/_posts/components/TextureProjector/TextureProjector.md +52 -0
- package/docs/_posts/components/TextureProjector/TextureProjectorParallel.md +52 -0
- package/docs/_posts/components/Texturing/ImageTexture.md +134 -0
- package/docs/_posts/components/Texturing/MovieTexture.md +221 -0
- package/docs/_posts/components/Texturing/MultiTexture.md +100 -0
- package/docs/_posts/components/Texturing/MultiTextureCoordinate.md +47 -0
- package/docs/_posts/components/Texturing/MultiTextureTransform.md +47 -0
- package/docs/_posts/components/Texturing/PixelTexture.md +80 -0
- package/docs/_posts/components/Texturing/TextureCoordinate.md +52 -0
- package/docs/_posts/components/Texturing/TextureCoordinateGenerator.md +64 -0
- package/docs/_posts/components/Texturing/TextureProperties.md +137 -0
- package/docs/_posts/components/Texturing/TextureTransform.md +73 -0
- package/docs/_posts/components/Texturing3D/ComposedTexture3D.md +76 -0
- package/docs/_posts/components/Texturing3D/ImageTexture3D.md +132 -0
- package/docs/_posts/components/Texturing3D/ImageTextureAtlas.md +131 -0
- package/docs/_posts/components/Texturing3D/PixelTexture3D.md +75 -0
- package/docs/_posts/components/Texturing3D/TextureCoordinate3D.md +53 -0
- package/docs/_posts/components/Texturing3D/TextureCoordinate4D.md +52 -0
- package/docs/_posts/components/Texturing3D/TextureTransform3D.md +69 -0
- package/docs/_posts/components/Texturing3D/TextureTransformMatrix3D.md +57 -0
- package/docs/_posts/components/Time/TimeSensor.md +136 -0
- package/docs/_posts/components/VolumeRendering/BlendedVolumeStyle.md +92 -0
- package/docs/_posts/components/VolumeRendering/BoundaryEnhancementVolumeStyle.md +53 -0
- package/docs/_posts/components/VolumeRendering/CartoonVolumeStyle.md +83 -0
- package/docs/_posts/components/VolumeRendering/ComposedVolumeStyle.md +51 -0
- package/docs/_posts/components/VolumeRendering/EdgeEnhancementVolumeStyle.md +67 -0
- package/docs/_posts/components/VolumeRendering/IsoSurfaceVolumeData.md +99 -0
- package/docs/_posts/components/VolumeRendering/OpacityMapVolumeStyle.md +51 -0
- package/docs/_posts/components/VolumeRendering/ProjectionVolumeStyle.md +48 -0
- package/docs/_posts/components/VolumeRendering/SegmentedVolumeData.md +80 -0
- package/docs/_posts/components/VolumeRendering/ShadedVolumeStyle.md +75 -0
- package/docs/_posts/components/VolumeRendering/SilhouetteEnhancementVolumeStyle.md +63 -0
- package/docs/_posts/components/VolumeRendering/ToneMappedVolumeStyle.md +71 -0
- package/docs/_posts/components/VolumeRendering/VolumeData.md +71 -0
- package/docs/_posts/components/X_ITE/BlendMode.md +94 -0
- package/docs/_posts/custom-shaders.md +9 -4
- package/docs/_posts/dom-integration.md +1 -6
- package/docs/_posts/features.md +2 -2
- package/docs/_posts/getting-started.md +100 -57
- package/docs/_posts/glossary.md +1 -1
- package/docs/_posts/how-to-configure-your-web-server.md +1 -1
- package/docs/_posts/reference/browser-services.md +78 -18
- package/docs/_posts/reference/constants-services.md +1 -1
- package/docs/_posts/reference/ecmascript-object-and-function-definitions.md +1 -1
- package/docs/_posts/reference/field-services-and-objects.md +8 -8
- package/docs/_posts/reference/prototype-services.md +7 -7
- package/docs/_posts/reference/route-services.md +1 -1
- package/docs/_posts/reference/scene-services.md +5 -5
- package/docs/_posts/reference/script-node-authoring-interface.md +1 -1
- package/docs/_posts/report-a-bug.md +1 -1
- package/docs/_posts/setup-a-localhost-server.md +5 -1
- package/docs/_posts/supported-nodes.md +239 -238
- package/docs/_posts/tutorials/adding-backgrounds.md +3 -3
- package/docs/_posts/tutorials/adding-fog.md +2 -2
- package/docs/_posts/tutorials/adding-sound.md +19 -19
- package/docs/_posts/tutorials/animating-transforms.md +17 -17
- package/docs/_posts/tutorials/basic-nodes.md +30 -30
- package/docs/_posts/tutorials/building-a-x3d-world.md +3 -3
- package/docs/_posts/tutorials/building-elevation-grids.md +7 -7
- package/docs/_posts/tutorials/building-extruded-shapes.md +7 -7
- package/docs/_posts/tutorials/building-primitive-shapes.md +13 -13
- package/docs/_posts/tutorials/building-shapes-out-of-points-lines-and-faces.md +21 -21
- package/docs/_posts/tutorials/controlling-appearance-with-materials.md +7 -7
- package/docs/_posts/tutorials/controlling-color-on-coordinate-based-geometry.md +11 -11
- package/docs/_posts/tutorials/controlling-detail.md +4 -4
- package/docs/_posts/tutorials/controlling-how-textures-are-mapped.md +7 -7
- package/docs/_posts/tutorials/controlling-navigation.md +3 -3
- package/docs/_posts/tutorials/controlling-shading-on-coordinate-based-geometry.md +13 -13
- package/docs/_posts/tutorials/controlling-the-viewpoint.md +3 -3
- package/docs/_posts/tutorials/creating-new-node-types.md +4 -4
- package/docs/_posts/tutorials/grouping-nodes.md +13 -13
- package/docs/_posts/tutorials/hello-world.md +1 -1
- package/docs/_posts/tutorials/improving-performance.md +1 -1
- package/docs/_posts/tutorials/increasing-rendering-speed.md +1 -1
- package/docs/_posts/tutorials/introducing-animation.md +10 -10
- package/docs/_posts/tutorials/introducing-script-use.md +3 -3
- package/docs/_posts/tutorials/introducing-x3d.md +1 -1
- package/docs/_posts/tutorials/lighting-your-world.md +4 -4
- package/docs/_posts/tutorials/mapping-textures.md +7 -7
- package/docs/_posts/tutorials/naming-nodes.md +1 -1
- package/docs/_posts/tutorials/overview.md +1 -1
- package/docs/_posts/tutorials/providing-information-about-your-world.md +2 -2
- package/docs/_posts/tutorials/sensing-the-viewer.md +15 -15
- package/docs/_posts/tutorials/sensing-viewer-actions.md +10 -10
- package/docs/_posts/tutorials/transforming-shapes.md +4 -4
- package/docs/_posts/tutorials/writing-program-scripts-with-ecmascript.md +5 -5
- package/docs/_posts/what's-new.md +40 -2
- package/docs/_tabs/components.md +383 -0
- package/docs/_tabs/imprint.md +1 -1
- package/docs/_tabs/laboratory.md +38 -6
- package/docs/_tabs/playground.html +22 -66
- package/docs/_tabs/reference.md +2 -1
- package/docs/_tabs/tags.md +1 -1
- package/docs/_tabs/tutorials.md +1 -1
- package/docs/assets/X3D/Michroma-Regular.ttf +0 -0
- package/docs/assets/X3D/peakpx.jpg +0 -0
- package/docs/assets/X3D/teaser.x3d +55 -0
- package/docs/assets/css/style.scss +120 -11
- package/docs/assets/img/laboratory/blend-mode.png +0 -0
- package/docs/assets/img/laboratory/dicom-nrrd.png +0 -0
- package/docs/assets/img/laboratory/earthquake.png +0 -0
- package/docs/assets/img/laboratory/gltf.png +0 -0
- package/docs/assets/img/laboratory/l-system.png +0 -0
- package/docs/assets/js/autoupdate.js +25 -0
- package/docs/laboratory/gltf-sample-viewer.html +318 -0
- package/docs/laboratory/x3d-visual-blend-mode-editor.html +1 -0
- package/package.json +9 -2
- package/src/assets/components/Texturing3D.js +5 -3
- package/src/assets/shaders/Types.glsl.js +5 -5
- package/src/assets/shaders/webgl1/PBR.fs.js +1 -1
- package/src/assets/shaders/webgl1/include/Colors.glsl.js +5 -7
- package/src/assets/shaders/webgl1/include/Fragment.glsl.js +4 -0
- package/src/assets/shaders/webgl1/include/Hatch.glsl.js +1 -1
- package/src/assets/shaders/webgl1/include/Texture.glsl.js +3 -3
- package/src/assets/shaders/webgl2/include/Colors.glsl.js +5 -7
- package/src/assets/shaders/webgl2/include/Hatch.glsl.js +1 -1
- package/src/assets/shaders/webgl2/include/Particle.glsl.js +2 -2
- package/src/assets/shaders/webgl2/include/Texture.glsl.js +2 -2
- package/src/bookmarks.js +12 -8
- package/src/examples.js +3 -0
- package/src/lib/jquery.js +20 -0
- package/src/lib/libgif/libgif.js +1004 -0
- package/src/lib/libtess.js +1 -0
- package/src/lib/nurbs/extras/sample.js +5 -7
- package/src/standard/Math/Algorithms/Bezier.js +175 -33
- package/src/standard/Math/Geometry/Box2.js +15 -55
- package/src/standard/Math/Geometry/Box3.js +19 -66
- package/src/standard/Math/Geometry/Triangle3.js +14 -79
- package/src/standard/Math/Numbers/Color3.js +4 -0
- package/src/standard/Math/Numbers/Color4.js +4 -0
- package/src/standard/Math/Numbers/Matrix3.js +11 -3
- package/src/standard/Math/Numbers/Matrix4.js +9 -6
- package/src/standard/Math/Numbers/Rotation4.js +72 -65
- package/src/tests.js +3 -0
- package/src/x_ite/Base/X3DArrayField.js +0 -2
- package/src/x_ite/Base/X3DInfoArray.js +2 -2
- package/src/x_ite/Base/X3DObjectArrayField.js +19 -0
- package/src/x_ite/Base/X3DTypedArrayField.js +149 -0
- package/src/x_ite/Browser/Core/BrowserOptions.js +108 -64
- package/src/x_ite/Browser/Core/Context.js +1 -1
- package/src/x_ite/Browser/Core/ContextMenu.js +2 -2
- package/src/x_ite/Browser/Core/Notification.js +1 -1
- package/src/x_ite/Browser/Core/RenderingProperties.js +4 -0
- package/src/x_ite/Browser/Core/X3DCoreContext.js +99 -54
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +4 -14
- package/src/x_ite/Browser/Navigation/LookAtViewer.js +3 -13
- package/src/x_ite/Browser/Navigation/PlaneViewer.js +3 -12
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +25 -22
- package/src/x_ite/Browser/Navigation/X3DViewer.js +12 -3
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +2 -2
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +19 -15
- package/src/x_ite/Browser/Rendering/X3DRenderingContext.js +30 -10
- package/src/x_ite/Browser/Shaders/X3DShadersContext.js +1 -1
- package/src/x_ite/Browser/Shape/X3DShapeContext.js +30 -3
- package/src/x_ite/Browser/Text/PolygonText.js +137 -134
- package/src/x_ite/Browser/Texturing/GifMedia.js +113 -0
- package/src/x_ite/Browser/Texturing3D/DICOMParser.js +1 -6
- package/src/x_ite/Browser/Texturing3D/NRRDParser.js +81 -310
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +162 -122
- package/src/x_ite/Browser/X3DBrowserContext.js +7 -5
- package/src/x_ite/Components/Core/WorldInfo.js +3 -3
- package/src/x_ite/Components/Core/X3DNode.js +7 -7
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +1 -1
- package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +2 -3
- package/src/x_ite/Components/Geometry3D/Extrusion.js +27 -23
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +10 -19
- package/src/x_ite/Components/Grouping/X3DBoundedObject.js +1 -3
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +39 -15
- package/src/x_ite/Components/HAnim/HAnimJoint.js +6 -9
- package/src/x_ite/Components/Layering/X3DLayerNode.js +21 -2
- package/src/x_ite/Components/Layout/Layout.js +4 -2
- package/src/x_ite/Components/Layout/ScreenFontStyle.js +6 -0
- package/src/x_ite/Components/Lighting/DirectionalLight.js +4 -11
- package/src/x_ite/Components/Lighting/EnvironmentLight.js +1 -1
- package/src/x_ite/Components/Lighting/PointLight.js +4 -11
- package/src/x_ite/Components/Lighting/SpotLight.js +4 -11
- package/src/x_ite/Components/Lighting/X3DLightNode.js +7 -9
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +2 -2
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +14 -6
- package/src/x_ite/Components/Networking/Inline.js +48 -59
- package/src/x_ite/Components/Networking/X3DUrlObject.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +2 -2
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +7 -13
- package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +4 -2
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +4 -2
- package/src/x_ite/Components/Scripting/Script.js +2 -2
- package/src/x_ite/Components/Shaders/ShaderPart.js +1 -1
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +1 -3
- package/src/x_ite/Components/Shape/Appearance.js +27 -1
- package/src/x_ite/Components/Shape/FillProperties.js +1 -0
- package/src/x_ite/Components/Shape/LineProperties.js +15 -9
- package/src/x_ite/Components/Shape/Material.js +33 -22
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +22 -15
- package/src/x_ite/Components/Shape/PointProperties.js +23 -7
- package/src/x_ite/Components/Shape/UnlitMaterial.js +3 -2
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +25 -19
- package/src/x_ite/Components/Sound/AudioClip.js +5 -5
- package/src/x_ite/Components/Sound/X3DSoundSourceNode.js +26 -34
- package/src/x_ite/Components/Text/X3DFontStyleNode.js +1 -1
- package/src/x_ite/Components/TextureProjector/TextureProjector.js +4 -12
- package/src/x_ite/Components/TextureProjector/TextureProjectorParallel.js +6 -14
- package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +7 -7
- package/src/x_ite/Components/Texturing/ImageTexture.js +15 -10
- package/src/x_ite/Components/Texturing/MovieTexture.js +51 -11
- package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +2 -2
- package/src/x_ite/Components/Texturing3D/ImageTextureAtlas.js +230 -0
- package/src/x_ite/Components/Time/X3DTimeDependentNode.js +12 -10
- package/src/x_ite/Execution/BindableList.js +35 -37
- package/src/x_ite/Execution/BindableStack.js +25 -7
- package/src/x_ite/Execution/X3DScene.js +2 -2
- package/src/x_ite/Execution/X3DWorld.js +1 -1
- package/src/x_ite/Fields/SFRotation.js +2 -1
- package/src/x_ite/Fields/SFString.js +1 -1
- package/src/x_ite/InputOutput/FileLoader.js +105 -236
- package/src/x_ite/InputOutput/Generator.js +12 -8
- package/src/x_ite/Parser/Expressions.js +85 -0
- package/src/x_ite/Parser/GLB2Parser.js +147 -0
- package/src/x_ite/Parser/GLTF2Parser.js +2221 -0
- package/src/x_ite/Parser/GoldenGate.js +64 -13
- package/src/x_ite/Parser/JSONParser.js +7 -36
- package/src/x_ite/Parser/OBJParser.js +1076 -0
- package/src/x_ite/Parser/STLAParser.js +376 -0
- package/src/x_ite/Parser/STLBParser.js +156 -0
- package/src/x_ite/Parser/SVGParser.js +2476 -0
- package/src/x_ite/Parser/VRMLParser.js +127 -183
- package/src/x_ite/Parser/X3DOptimizer.js +191 -0
- package/src/x_ite/Parser/X3DParser.js +34 -0
- package/src/x_ite/Parser/XMLParser.js +11 -109
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +2 -2
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +3 -3
- package/src/x_ite/Rendering/DependentRenderer.js +1 -1
- package/src/x_ite/Rendering/MultiSampleFrameBuffer.js +150 -0
- package/src/x_ite/Rendering/TextureBuffer.js +3 -5
- package/src/x_ite/Rendering/X3DRenderObject.js +2 -7
- package/src/x_ite/X3D.js +1 -0
- package/src/x_ite/X3DCanvas.js +10 -0
- package/src/x_ite.html +39 -17
- package/webpack.config.js +1 -0
- package/x_ite.min.html +38 -17
- package/src/standard/Networking/BinaryTransport.js +0 -116
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.4.3 */(()=>{"use strict";var t={n:e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return t.d(i,{a:i}),i},d:(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components");var i=t.n(e);const n=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Fields");var o=t.n(n);const s=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Base/X3DFieldDefinition");var r=t.n(s);const a=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Base/FieldDefinitionArray");var l=t.n(a);const h=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Rendering/X3DCoordinateNode");var c=t.n(h);const d=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Base/X3DConstants");var u=t.n(d);const p=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Namespace");var g=t.n(p);function _(t,e){switch(arguments.length){case 0:this.semiMajorAxis=0,this.semiMinorAxis=0;break;case 2:this.semiMajorAxis=t,this.semiMinorAxis=e;break;case 3:const i=arguments[1];this.semiMajorAxis=t,this.semiMinorAxis=t*(1-1/i)}}_.prototype={constructor:_,getSemiMajorAxis:function(){return this.semiMajorAxis},getSemiMinorAxis:function(){return this.semiMinorAxis},toString:function(){return this.semiMajorAxis+" "+this.semiMinorAxis}};const w=_;g().set("standard/Math/Geometry/Spheroid3",w);const m=w,f={AA:new m(6377563.396,299.3249646,!0),AM:new m(6377340.189,299.3249646,!0),AN:new m(6378160,298.25,!0),BN:new m(6377483.865,299.1528128,!0),BR:new m(6377397.155,299.1528128,!0),CC:new m(6378206.4,294.9786982,!0),CD:new m(6378249.145,293.465,!0),EA:new m(6377276.345,300.8017,!0),EB:new m(6377298.556,300.8017,!0),EC:new m(6377301.243,300.8017,!0),ED:new m(6377295.664,300.8017,!0),EE:new m(6377304.063,300.8017,!0),EF:new m(6377309.613,300.8017,!0),FA:new m(6378155,298.3,!0),HE:new m(6378200,298.3,!0),HO:new m(6378270,297,!0),ID:new m(6378160,298.247,!0),IN:new m(6378388,297,!0),KA:new m(6378245,298.3,!0),RF:new m(6378137,298.257222101,!0),SA:new m(6378160,298.25,!0),WD:new m(6378135,298.26,!0),WE:new m(6378137,298.257223563,!0),SUN:new m(696342e3,1/9e-6,!0),MERCURY:new m(2439700,2439700),VENUS:new m(6051800,6051800),MOON:new m(1738140,1735970),MARS:new m(3395428,3377678),JUPITER:new m(71492e3,66854e3),SATURN:new m(60268e3,54364e3),URANUS:new m(2555e3,24973e3),NEPTUNE:new m(24764e3,24341e3),PLUTO:new m(1153e3,1153e3)};g().set("standard/Geospatial/ReferenceEllipsoids",f);const y=f,O=window[Symbol.for("X_ITE.X3D-8.4.3")].require("standard/Math/Numbers/Vector3");var S=t.n(O);const I=window[Symbol.for("X_ITE.X3D-8.4.3")].require("standard/Math/Algorithm");var b=t.n(I);function F(t,e,i){this.longitudeFirst=!e,this.degrees=!i,this.a=t.getSemiMajorAxis(),this.c=t.getSemiMinorAxis(),this.c2a2=Math.pow(t.getSemiMinorAxis()/this.a,2),this.ecc2=1-this.c2a2}F.prototype={constructor:F,convert:function(t,e){const i=t.z;if(this.longitudeFirst)var n=t.y,o=t.x;else n=t.x,o=t.y;return this.degrees&&(n*=Math.PI/180,o*=Math.PI/180),this.convertRadians(n,o,i,e)},convertRadians:function(t,e,i,n){const o=Math.sin(t),s=Math.pow(o,2),r=Math.cos(t),a=this.a/Math.sqrt(1-this.ecc2*s),l=(a+i)*r;return n.set(l*Math.cos(e),l*Math.sin(e),(a*this.c2a2+i)*o)},apply:function(t,e){if(this.applyRadians(t,e),this.degrees&&(e.x*=180/Math.PI,e.y*=180/Math.PI),this.longitudeFirst){const t=e.x;e.x=e.y,e.y=t}return e},applyRadians:function(t,e){const i=t.x,n=t.y,o=t.z,s=Math.sqrt(i*i+n*n);if(0==s)return e.set(Math.PI,0,o-this.c);let r=0,a=Math.atan2(n,i),l=0,h=this.a,c=h,d=this.ecc2;for(let t=0;t<30;++t){const t=l,e=r;r=Math.atan(o/s/(1-d*c/(c+l)));const i=Math.sin(r);if(c=h/Math.sqrt(1-d*i*i),l=s/Math.cos(r)-c,Math.abs(l-t)<.001&&Math.abs(r-e)<1e-10)break}return e.set(r,a,l)},normal:function(t,e){const i=this.applyRadians(t,e),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 e.set(r,a,l)}};const C=F;g().set("standard/Geospatial/Geodetic",C);const x=C,v=1e7,N=5e5,M=.9996;function T(t,e,i,n){const o=t.getSemiMajorAxis(),s=1-Math.pow(t.getSemiMinorAxis()/o,2),r=s/(1-s),a=(1-Math.sqrt(1-s))/(1+Math.sqrt(1-s));this.southernHemisphere=!i,this.eastingFirst=!n,this.a=o,this.ecc2=s,this.EE=r,this.E8=8*r,this.E9=9*r,this.E252=252*r,this.e1=a,this.A=M*(o*(1-s/4-3*s*s/64-5*s*s*s/256)),this.B=3*a/2-7*a*a*a/32,this.C=21*a*a/16-55*a*a*a*a/32,this.D=151*a*a*a/96,this.E=o*(1-s),this.W=1-s/4-3*s*s/64-5*s*s*s/256,this.X=3*s/8+3*s*s/32+45*s*s*s/1024,this.Y=15*s*s/256+45*s*s*s/1024,this.Z=35*s*s*s/3072,this.longitude0=b().radians(6*e-183),this.geodeticConverter=new x(t,!0,!0)}T.prototype={constructor:T,convert:function(t,e){if(this.eastingFirst)var i=t.y,n=t.x;else i=t.x,n=t.y;let o=this.southernHemisphere;i<0&&(o=!this.southernHemisphere,i=-i),o&&(i-=v),n-=N;const s=i/this.A,r=s+this.B*Math.sin(2*s)+this.C*Math.sin(4*s)+this.D*Math.sin(6*s),a=Math.pow(Math.sin(r),2),l=Math.cos(r),h=Math.tan(r),c=this.a/Math.sqrt(1-this.ecc2*a),d=Math.pow(h,2),u=Math.pow(h,8),p=this.EE*d,g=p*p,_=this.E/Math.pow(1-this.ecc2*a,1.5),w=n/(c*M),m=(5+3*d+10*p-4*g-this.E9)*Math.pow(w,4)/24,f=(61+90*d+298*p+45*u-this.E252-3*g)*Math.pow(w,6)/720,y=(5-2*p+28*d-3*g+this.E8+24*u)*Math.pow(w,5)/120,O=r-c*h/_*(w*w/2-m+f),S=this.longitude0+(w-(1+2*d+p)*Math.pow(w,3)/6+y)/l;return this.geodeticConverter.convertRadians(O,S,t.z,e)},apply:function(t,e){const i=this.geodeticConverter.applyRadians(t,e),n=i.x,o=i.y,s=Math.tan(n),r=Math.cos(n),a=this.EE,l=this.a/Math.sqrt(1-this.ecc2*Math.pow(Math.sin(n),2)),h=s*s,c=h*h*h,d=a*r*r,u=r*(o-this.longitude0),p=this.a*(this.W*n-this.X*Math.sin(2*n)+this.Y*Math.sin(4*n)-this.Z*Math.sin(6*n)),g=M*l*(u+(1-h+d)*Math.pow(u,3)/6+(5-18*c+72*d-58*a)*Math.pow(u,5)/120)+N;let _=M*(p+l*s*(u*u/2+(5-h+9*d+4*d*d)*Math.pow(u,4)/24+(61-58*c+600*d-330*a)*Math.pow(u,6)/720));return n<0?(_+=v,this.southernHemisphere||(_=-_)):this.southernHemisphere&&(_=-_),this.eastingFirst?e.set(g,_,i.z):e.set(_,g,i.z)}};const G=T;g().set("standard/Geospatial/UniversalTransverseMercator",G);const D=G;function E(){}E.prototype={constructor:E,convert:function(t,e){return e.assign(t)},apply:function(t,e){return e.assign(t)},slerp:function(t,e,i){const n=t.magnitude(),o=e.magnitude();return t.normalize(),e.normalize(),b().simpleSlerp(t,e,i).multiply(b().lerp(n,o,i))}};const V=E;g().set("x_ite/Browser/Geospatial/Geocentric",V);const z=V;let j=0;const X=j++,P=j++,B=j++,k={GD:X,GDC:X,UTM:P,GC:B,GCC:B,GS:B},L=/^Z(\d+)$/,A={GD:X,UTM:P,GC:B,getReferenceFrame:function(t,e){switch(this.getCoordinateSystem(t)){case X:return new x(this.getEllipsoid(t),this.getLatitudeFirst(t),e);case P:return new D(this.getEllipsoid(t),this.getZone(t),this.getNorthernHemisphere(t),this.getNorthingFirst(t));case B:return new z}return new x(y.WE,!0,e)},getElevationFrame:function(t,e){return new x(this.getEllipsoid(t),!0,e)},getCoordinateSystem:function(t){for(const e of t){const t=k[e];if(void 0!==t)return t}return X},getEllipsoid:function(t){for(const e of t){const t=y[e];if(void 0!==t)return t}return y.WE},getEllipsoidString:function(t){for(const e of t){if(void 0!==y[e])return e}return"WE"},isStandardOrder:function(t){switch(this.getCoordinateSystem(t)){case X:return this.getLatitudeFirst(t);case P:return this.getNorthingFirst(t);case B:return!0}return this.getLatitudeFirst(t)},getLatitudeFirst:function(t){for(const e of t)if("longitude_first"===e)return!1;return!0},getNorthingFirst:function(t){for(const e of t)if("easting_first"===e)return!1;return!0},getZone:function(t){for(const e of t){const t=e.match(L);if(t)return parseInt(t[1])}return 1},getNorthernHemisphere:function(t){for(const e of t)if("S"===e)return!1;return!0}};g().set("x_ite/Browser/Geospatial/Geospatial",A);const R=A,U=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Base/X3DCast");var q=t.n(U);const W=window[Symbol.for("X_ITE.X3D-8.4.3")].require("standard/Math/Numbers/Matrix4");var H=t.n(W),Y=new(S())(0,0,0),Z=new(S())(0,0,0),K=new(S())(0,0,0),J=new(S())(0,0,0),Q=new(S())(0,0,0),$=new(S())(0,0,0);function tt(t){this.addType(u().X3DGeospatialObject),this.radians=!1,this.origin=new(S())(0,0,0),this.originMatrix=new(H()),this.invOriginMatrix=new(H())}function et(t,e){return this.invOriginMatrix.multVecMatrix(this.referenceFrame.convert(t,e))}function it(t,e){return this.referenceFrame.apply(this.originMatrix.multVecMatrix(Y.assign(t)),e)}function nt(t,e){return this.invOriginMatrix.multDirMatrix(this.elevationFrame.normal(this.originMatrix.multVecMatrix(Y.assign(t)),e))}function ot(t,e){return st.call(this,t,e).multRight(this.invOriginMatrix)}function st(t,e){return this.referenceFrame.convert(t,K),this.elevationFrame.normal(K,Q),J.set(0,0,1).cross(Q),J.equals(S().Zero)&&J.set(1,0,0),$.assign(J).cross(Q),J.normalize(),$.normalize(),e.set(J.x,J.y,J.z,0,Q.x,Q.y,Q.z,0,$.x,$.y,$.z,0,K.x,K.y,K.z,1)}tt.prototype={constructor:tt,initialize:function(){this._geoSystem.addInterest("set_geoSystem__",this),this._geoOrigin.addInterest("set_geoOrigin__",this),this.set_geoSystem__(),this.set_geoOrigin__()},set_geoSystem__:function(){this.coordinateSystem=R.getCoordinateSystem(this._geoSystem),this.referenceFrame=R.getReferenceFrame(this._geoSystem,this.radians),this.elevationFrame=R.getElevationFrame(this._geoSystem,this.radians),this.standardOrder=R.isStandardOrder(this._geoSystem)},set_geoOrigin__:function(){this.geoOriginNode&&(this.geoOriginNode.removeInterest("set_origin__",this),this.geoOriginNode.removeInterest("set_rotateYUp__",this),this.geoOriginNode.removeInterest("addNodeEvent",this)),this.geoOriginNode=q()(u().GeoOrigin,this._geoOrigin),this.geoOriginNode&&(this.geoOriginNode.addInterest("set_origin__",this),this.geoOriginNode.addInterest("set_rotateYUp__",this),this.geoOriginNode.addInterest("addNodeEvent",this)),this.set_origin__(),this.set_rotateYUp__()},set_origin__:function(){this.geoOriginNode?this.geoOriginNode.getOrigin(this.origin):this.origin.set(0,0,0),this.set_originMatrix__()},set_originMatrix__:function(){if(this.geoOriginNode){var t=this.origin;this.elevationFrame.normal(t,Q),J.set(0,0,1).cross(Q),J.equals(S().Zero)&&J.set(1,0,0),$.assign(J).cross(Q),J.normalize(),$.normalize(),this.originMatrix.set(J.x,J.y,J.z,0,Q.x,Q.y,Q.z,0,$.x,$.y,$.z,0,t.x,t.y,t.z,1),this.invOriginMatrix.assign(this.originMatrix).inverse()}},set_rotateYUp__:function(){this.geoOriginNode&&this.geoOriginNode._rotateYUp.getValue()?(this.getCoord=et,this.getGeoCoord=it,this.getGeoUpVector=nt,this.getLocationMatrix=ot):(delete this.getCoord,delete this.getGeoCoord,delete this.getGeoUpVector,delete this.getLocationMatrix)},getReferenceFrame:function(){return this.referenceFrame},getStandardOrder:function(){return this.standardOrder},getCoord:function(t,e){return this.referenceFrame.convert(t,e).subtract(this.origin)},getGeoCoord:function(t,e){return this.referenceFrame.apply(Y.assign(t).add(this.origin),e)},getGeoElevation:function(t){return this.getGeoCoord(t,Z).z},getGeoUpVector:function(t,e){return this.elevationFrame.normal(Y.assign(t).add(this.origin),e)},getLocationMatrix:function(t,e){var i=this.origin,n=st.call(this,t,e);return n[12]-=i.x,n[13]-=i.y,n[14]-=i.z,n},dispose:function(){}};const rt=tt;g().set("x_ite/Components/Geospatial/X3DGeospatialObject",rt);const at=rt,lt=window[Symbol.for("X_ITE.X3D-8.4.3")].require("standard/Math/Geometry/Triangle3");var ht=t.n(lt);function ct(t){c().call(this,t),at.call(this,t),this.addType(u().GeoCoordinate)}ct.prototype=Object.assign(Object.create(c().prototype),at.prototype,{constructor:ct,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]: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))]),getTypeName:function(){return"GeoCoordinate"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"coord"},initialize:function(){c().prototype.initialize.call(this),at.prototype.initialize.call(this)},set1Point:function(){const t=new(S())(0,0,0);return function(e,i){this._point[e]=this.getGeoCoord(i,t)}}(),get1Point:function(){const t=new(S())(0,0,0);return function(e,i){if(e<this.length){const n=this.point;return e*=3,this.getCoord(t.set(n[e],n[e+1],n[e+2]),i)}return i.set(0,0,0)}}(),addPoint:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0);return function(i,n){if(i<this.length){const o=this.point;i*=3,this.getCoord(t.set(o[i],o[i+1],o[i+2]),e),n.push(e[0],e[1],e[2],1)}else n.push(0,0,0,1)}}(),addPoints:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0);return function(i,n){const o=this.point;for(let n=0,s=3*this.length;n<s;n+=3)this.getCoord(t.set(o[n],o[n+1],o[n+2]),e),i.push(e[0],e[1],e[2],1);for(let t=3*this.length,e=3*n;t<e;t+=3)i.push(0,0,0,1)}}(),getNormal:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0),i=new(S())(0,0,0);return function(n,o,s){const r=this.length;return n<r&&o<r&&s<r?ht().normal(this.get1Point(n,t),this.get1Point(o,e),this.get1Point(s,i),new(S())(0,0,0)):new(S())(0,0,0)}}(),getQuadNormal:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0),i=new(S())(0,0,0),n=new(S())(0,0,0);return function(o,s,r,a){const l=this.length;return o<l&&s<l&&r<l&&a<l?ht().quadNormal(this.get1Point(o,t),this.get1Point(s,e),this.get1Point(r,i),this.get1Point(a,n),new(S())(0,0,0)):new(S())(0,0,0)}}(),dispose:function(){at.prototype.dispose.call(this),c().prototype.dispose.call(this)}});const dt=ct;g().set("x_ite/Components/Geospatial/GeoCoordinate",dt);const ut=dt,pt=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Rendering/X3DGeometryNode");var gt=t.n(pt);const _t=window[Symbol.for("X_ITE.X3D-8.4.3")].require("standard/Math/Numbers/Vector2");var wt=t.n(_t);function mt(t){gt().call(this,t),at.call(this,t),this.addType(u().GeoElevationGrid),this._creaseAngle.setUnit("angle"),this._height.setUnit("length"),this.colorNode=null,this.texCoordNode=null,this.normalNode=null}mt.prototype=Object.assign(Object.create(gt().prototype),at.prototype,{constructor:mt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().initializeOnly,"geoGridOrigin",new(o().SFVec3d)),new(r())(u().initializeOnly,"xDimension",new(o().SFInt32)),new(r())(u().initializeOnly,"zDimension",new(o().SFInt32)),new(r())(u().initializeOnly,"xSpacing",new(o().SFDouble)(1)),new(r())(u().initializeOnly,"zSpacing",new(o().SFDouble)(1)),new(r())(u().inputOutput,"yScale",new(o().SFFloat)(1)),new(r())(u().initializeOnly,"solid",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"ccw",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"creaseAngle",new(o().SFDouble)),new(r())(u().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(r())(u().inputOutput,"color",new(o().SFNode)),new(r())(u().inputOutput,"texCoord",new(o().SFNode)),new(r())(u().inputOutput,"normal",new(o().SFNode)),new(r())(u().inputOutput,"height",new(o().MFDouble)(0,0))]),getTypeName:function(){return"GeoElevationGrid"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"geometry"},initialize:function(){gt().prototype.initialize.call(this),at.prototype.initialize.call(this),this._color.addInterest("set_color__",this),this._texCoord.addInterest("set_texCoord__",this),this._normal.addInterest("set_normal__",this),this.set_color__(),this.set_texCoord__(),this.set_normal__()},set_color__:function(){this.colorNode&&(this.colorNode.removeInterest("requestRebuild",this),this.colorNode._transparent.removeInterest("set_transparent__",this)),this.colorNode=q()(u().X3DColorNode,this._color),this.colorNode?(this.colorNode.addInterest("requestRebuild",this),this.colorNode._transparent.addInterest("set_transparent__",this),this.set_transparent__()):this.setTransparent(!1)},set_transparent__:function(){this.setTransparent(this.colorNode.getTransparent())},set_texCoord__:function(){this.texCoordNode&&this.texCoordNode.removeInterest("requestRebuild",this),this.texCoordNode=q()(u().X3DTextureCoordinateNode,this._texCoord),this.texCoordNode&&this.texCoordNode.addInterest("requestRebuild",this),this.setTextureCoordinate(this.texCoordNode)},set_normal__:function(){this.normalNode&&this.normalNode.removeInterest("requestRebuild",this),this.normalNode=q()(u().X3DNormalNode,this._normal),this.normalNode&&this.normalNode.addInterest("requestRebuild",this)},getColor:function(){return this.colorNode},getTexCoord:function(){return this.texCoordNode},getNormal:function(){return this.normalNode},getHeight:function(t){return t<this._height.length?this._height[t]*this._yScale.getValue():0},createTexCoords:function(){for(var t=[],e=this._xDimension.getValue(),i=this._zDimension.getValue(),n=e-1,o=i-1,s=0;s<i;++s)for(var r=0;r<e;++r)t.push(new(wt())(r/n,s/o));return t},createNormals:function(t,e,i){for(var n=!this._ccw.getValue(),o=[],s=[],r=0;r<t.length;++r)o[r]=[];for(var a=0;a<e.length;a+=3){var l=e[a],h=e[a+1],c=e[a+2];o[l].push(s.length),o[h].push(s.length+1),o[c].push(s.length+2);var d=ht().normal(t[l],t[h],t[c],new(S())(0,0,0));n&&d.negate(),s.push(d),s.push(d),s.push(d)}return this.refineNormals(o,s,this._creaseAngle.getValue())},createCoordIndex:function(){for(var t=[],e=this._xDimension.getValue(),i=e-1,n=this._zDimension.getValue()-1,o=0;o<n;++o)for(var s=0;s<i;++s){var r=o*e+s,a=(o+1)*e+s,l=(o+1)*e+(s+1),h=o*e+(s+1);t.push(r),t.push(l),t.push(a),t.push(r),t.push(h),t.push(l)}return t},createPoints:function(){var t=[],e=this._xDimension.getValue(),i=this._zDimension.getValue(),n=this._xSpacing.getValue(),o=this._zSpacing.getValue();if(this.getStandardOrder())for(var s=0;s<i;++s)for(var r=0;r<e;++r){(a=new(S())(o*s,n*r,this.getHeight(r+s*e))).add(this._geoGridOrigin.getValue()),t.push(this.getCoord(a,a))}else for(s=0;s<i;++s)for(r=0;r<e;++r){var a;(a=new(S())(n*r,o*s,this.getHeight(r+s*e))).add(this._geoGridOrigin.getValue()),t.push(this.getCoord(a,a))}return t},build:function(){if(!(this._xDimension.getValue()<2||this._zDimension.getValue()<2)){var t=this._colorPerVertex.getValue(),e=this._normalPerVertex.getValue(),i=this.createCoordIndex(),n=this.getColor(),o=this.getTexCoord(),s=this.getNormal(),r=this.createPoints(),a=this.getColors(),l=this.getMultiTexCoords(),h=this.getNormals(),c=this.getVertices(),d=0;if(o)o.init(l);else{var u=this.createTexCoords(),p=this.getTexCoords();l.push(p)}for(var g=0;g<i.length;++d)for(var _=0;_<6;++_,++g){var w=i[g],m=r[w];if(n&&(t?n.addColor(w,a):n.addColor(d,a)),o)o.addTexCoord(w,l);else{var f=u[w];p.push(f.x,f.y,0,1)}s&&(e?s.addVector(w,h):s.addVector(d,h)),c.push(m.x,m.y,m.z,1)}if(!s)for(var y=this.createNormals(r,i),O=0;O<y.length;++O){var S=y[O];h.push(S.x,S.y,S.z)}this.setSolid(this._solid.getValue()),this.setCCW(this._ccw.getValue())}},dispose:function(){at.prototype.dispose.call(this),gt().prototype.dispose.call(this)}});const ft=mt;g().set("x_ite/Components/Geospatial/GeoElevationGrid",ft);const yt=ft,Ot=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Core/X3DChildNode");var St=t.n(Ot);const It=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Grouping/X3DBoundedObject");var bt=t.n(It);const Ft=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Rendering/TraverseType");var Ct=t.n(Ft);const xt=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Grouping/Group");var vt=t.n(xt);const Nt=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Networking/Inline");var Mt=t.n(Nt);const Tt=window[Symbol.for("X_ITE.X3D-8.4.3")].require("standard/Math/Geometry/Box3");var Gt=t.n(Tt),Dt=new(S())(0,0,0);function Et(t){St().call(this,t),bt().call(this,t),at.call(this,t),this.addType(u().GeoLOD),this._range.setUnit("length"),this.unload=!1,this.rootGroup=new(vt())(this.getBrowser().getPrivateScene()),this.rootInline=new(Mt())(t),this.child1Inline=new(Mt())(t),this.child2Inline=new(Mt())(t),this.child3Inline=new(Mt())(t),this.child4Inline=new(Mt())(t),this.childrenLoaded=!1,this.childBBox=new(Gt()),this.keepCurrentLevel=!1,this.modelViewMatrix=new(H())}Et.prototype=Object.assign(Object.create(St().prototype),bt().prototype,at.prototype,{constructor:Et,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]: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))]),getTypeName:function(){return"GeoLOD"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){St().prototype.initialize.call(this),bt().prototype.initialize.call(this),at.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:function(t,e){if(this._bboxSize.getValue().equals(this.getDefaultBBoxSize())){switch(this.childrenLoaded?this._level_changed.getValue():0){case 0:return this._rootNode.length?this.rootGroup.getBBox(t,e):this.rootInline.getBBox(t,e);case 1:{const i=this.childBBox;return t.set(),t.add(this.child1Inline.getBBox(i,e)),t.add(this.child2Inline.getBBox(i,e)),t.add(this.child3Inline.getBBox(i,e)),t.add(this.child4Inline.getBBox(i,e)),t}}return t.set()}return t.set(this._bboxSize.getValue(),this._bboxCenter.getValue())},set_rootLoadState__:function(){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__:function(){if(1===this._level_changed.getValue()){var t=0;if(this.child1Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child1Inline.checkLoadState()!==u().FAILED_STATE||++t,this.child2Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child2Inline.checkLoadState()!==u().FAILED_STATE||++t,this.child3Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child3Inline.checkLoadState()!==u().FAILED_STATE||++t,this.child4Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child4Inline.checkLoadState()!==u().FAILED_STATE||++t,4===t){this.childrenLoaded=!0;var e=this._children;e.length=0;for(var i=0,n=(o=this.child1Inline.getInternalScene().getRootNodes()).length;i<n;++i)e.push(o[i]);for(i=0,n=(o=this.child2Inline.getInternalScene().getRootNodes()).length;i<n;++i)e.push(o[i]);for(i=0,n=(o=this.child3Inline.getInternalScene().getRootNodes()).length;i<n;++i)e.push(o[i]);var o;for(i=0,n=(o=this.child4Inline.getInternalScene().getRootNodes()).length;i<n;++i)e.push(o[i])}}},set_childCameraObject__:function(){this.setCameraObject(this.child1Inline.getCameraObject()||this.child2Inline.getCameraObject()||this.child3Inline.getCameraObject()||this.child4Inline.getCameraObject())},set_childPickableObject__:function(){this.setPickableObject(this.child1Inline.getPickableObject()||this.child2Inline.getPickableObject()||this.child3Inline.getPickableObject()||this.child4Inline.getPickableObject())},getLevel:function(t){return this.getDistance(t)<this._range.getValue()?1:0},getDistance:function(t){return t.translate(this.getCoord(this._center.getValue(),Dt)),t.origin.magnitude()},traverse:function(t,e){switch(t){case Ct().PICKING:var i=this.getBrowser().getPickingHierarchy();return i.push(this),this.traverseChildren(t,e),void i.pop();case Ct().DISPLAY:var n=this.getLevel(this.modelViewMatrix.assign(e.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.getCameraObject()),this.setPickableObject(this.rootGroup.getPickableObject()),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.getCameraObject()),this.setPickableObject(this.rootInline.getPickableObject()),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(t,e);default:return void this.traverseChildren(t,e)}},traverseChildren:function(t,e){switch(this.childrenLoaded?this._level_changed.getValue():0){case 0:this._rootNode.length?this.rootGroup.traverse(t,e):this.rootInline.traverse(t,e);break;case 1:this.child1Inline.traverse(t,e),this.child2Inline.traverse(t,e),this.child3Inline.traverse(t,e),this.child4Inline.traverse(t,e)}},dispose:function(){at.prototype.dispose.call(this),bt().prototype.dispose.call(this),St().prototype.dispose.call(this)}});const Vt=Et;g().set("x_ite/Components/Geospatial/GeoLOD",Vt);const zt=Vt,jt=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Grouping/X3DTransformMatrix3DNode");var Xt=t.n(jt),Pt=new(H());function Bt(t){Xt().call(this,t),at.call(this,t),this.addType(u().GeoLocation)}Bt.prototype=Object.assign(Object.create(Xt().prototype),at.prototype,{constructor:Bt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]: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,"geoOrigin",new(o().SFNode)),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))]),getTypeName:function(){return"GeoLocation"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){Xt().prototype.initialize.call(this),at.prototype.initialize.call(this),this.addInterest("eventsProcessed",this),this.eventsProcessed()},eventsProcessed:function(){this.setMatrix(this.getLocationMatrix(this._geoCoords.getValue(),Pt))},dispose:function(){at.prototype.dispose.call(this),Xt().prototype.dispose.call(this)}});const kt=Bt;g().set("x_ite/Components/Geospatial/GeoLocation",kt);const Lt=kt,At=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Core/X3DInfoNode");var Rt=t.n(At);const Ut=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Networking/X3DUrlObject");var qt=t.n(Ut);function Wt(t){Rt().call(this,t),qt().call(this,t),this.addType(u().GeoMetadata)}Wt.prototype=Object.assign(Object.create(Rt().prototype),qt().prototype,{constructor:Wt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"url",new(o().MFString)),new(r())(u().inputOutput,"load",new(o().SFBool)(!0)),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))]),getTypeName:function(){return"GeoMetadata"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){Rt().prototype.initialize.call(this),qt().prototype.initialize.call(this)},requestImmediateLoad:function(t=!0){},requestUnload:function(){},set_load__:function(){},set_url__:function(){},dispose:function(){qt().prototype.dispose.call(this),Rt().prototype.dispose.call(this)}});const Ht=Wt;g().set("x_ite/Components/Geospatial/GeoMetadata",Ht);const Yt=Ht,Zt=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Core/X3DNode");var Kt=t.n(Zt);function Jt(t){Kt().call(this,t),this.addType(u().GeoOrigin),this.radians=!1}Jt.prototype=Object.assign(Object.create(Kt().prototype),{constructor:Jt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]: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))]),getTypeName:function(){return"GeoOrigin"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"geoOrigin"},initialize:function(){Kt().prototype.initialize.call(this),this._geoSystem.addInterest("set_geoSystem__",this),this.set_geoSystem__()},set_geoSystem__:function(){this.referenceFrame=R.getReferenceFrame(this._geoSystem,this.radians)},getOrigin:function(t){return this.referenceFrame.convert(this._geoCoords.getValue(),t)}});const Qt=Jt;g().set("x_ite/Components/Geospatial/GeoOrigin",Qt);const $t=Qt,te=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Interpolation/X3DInterpolatorNode");var ee=t.n(te);function ie(t){ee().call(this,t),at.call(this,t),this.addType(u().GeoPositionInterpolator),this._value_changed.setUnit("length"),this.geocentric=new z}ie.prototype=Object.assign(Object.create(ee().prototype),at.prototype,{constructor:ie,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOnly,"set_fraction",new(o().SFFloat)),new(r())(u().inputOutput,"key",new(o().MFFloat)),new(r())(u().inputOutput,"keyValue",new(o().MFVec3d)),new(r())(u().outputOnly,"value_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"geovalue_changed",new(o().SFVec3d))]),getTypeName:function(){return"GeoPositionInterpolator"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},setup:function(){at.prototype.initialize.call(this),ee().prototype.setup.call(this)},initialize:function(){ee().prototype.initialize.call(this),this._keyValue.addInterest("set_keyValue__",this)},set_keyValue__:function(){const t=this._key,e=this._keyValue;e.length<t.length&&e.resize(t.length,e.length?e[e.length-1]:new(o().SFVec3f))},interpolate:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0),i=new(S())(0,0,0);return function(n,o,s){this.getCoord(this._keyValue[n].getValue(),t),this.getCoord(this._keyValue[o].getValue(),e);const r=this.geocentric.slerp(t,e,s);this._geovalue_changed=this.getGeoCoord(r,i),this._value_changed=r}}(),dispose:function(){at.prototype.dispose.call(this),ee().prototype.dispose.call(this)}});const ne=ie;g().set("x_ite/Components/Geospatial/GeoPositionInterpolator",ne);const oe=ne,se=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode");var re=t.n(se);const ae=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/EnvironmentalSensor/ProximitySensor");var le=t.n(ae),he=new(S())(0,0,0);function ce(t){re().call(this,t),at.call(this,t),this.addType(u().GeoProximitySensor),this._position_changed.setUnit("length"),this._centerOfRotation_changed.setUnit("length"),this.proximitySensor=new(le())(t),this.setCameraObject(this.proximitySensor.getCameraObject()),this.setPickableObject(this.proximitySensor.getPickableObject())}ce.prototype=Object.assign(Object.create(re().prototype),at.prototype,{constructor:ce,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"size",new(o().SFVec3f)),new(r())(u().inputOutput,"center",new(o().SFVec3f)),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"enterTime",new(o().SFTime)),new(r())(u().outputOnly,"exitTime",new(o().SFTime)),new(r())(u().outputOnly,"geoCoord_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"position_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"orientation_changed",new(o().SFRotation)),new(r())(u().outputOnly,"centerOfRotation_changed",new(o().SFVec3f))]),getTypeName:function(){return"GeoProximitySensor"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){re().prototype.initialize.call(this),at.prototype.initialize.call(this),this._enabled.addFieldInterest(this.proximitySensor._enabled),this._size.addFieldInterest(this.proximitySensor._size),this._center.addFieldInterest(this.proximitySensor._center),this.proximitySensor._isCameraObject.addFieldInterest(this._isCameraObject),this.proximitySensor._isPickableObject.addFieldInterest(this._isPickableObject),this.proximitySensor._isActive.addFieldInterest(this._isActive),this.proximitySensor._enterTime.addFieldInterest(this._enterTime),this.proximitySensor._exitTime.addFieldInterest(this._exitTime),this.proximitySensor._position_changed.addFieldInterest(this._position_changed),this.proximitySensor._orientation_changed.addFieldInterest(this._orientation_changed),this.proximitySensor._centerOfRotation_changed.addFieldInterest(this._centerOfRotation_changed),this.proximitySensor._position_changed.addInterest("set_position__",this),this.proximitySensor._enabled=this._enabled,this.proximitySensor._size=this._size,this.proximitySensor._center=this._center,this.proximitySensor.setup()},set_position__:function(t){this._geoCoord_changed=this.getGeoCoord(this.proximitySensor._position_changed.getValue(),he)},traverse:function(t,e){this.proximitySensor.traverse(t,e)},dispose:function(){at.prototype.dispose.call(this),re().prototype.dispose.call(this)}});const de=ce;g().set("x_ite/Components/Geospatial/GeoProximitySensor",de);const ue=de,pe=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode");var ge=t.n(pe),_e=new(H()),we=new(S())(0,0,0);function me(t){ge().call(this,t),at.call(this,t),this.addType(u().GeoTouchSensor),this._hitPoint_changed.setUnit("length")}me.prototype=Object.assign(Object.create(ge().prototype),at.prototype,{constructor:me,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]: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))]),getTypeName:function(){return"GeoTouchSensor"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){ge().prototype.initialize.call(this),at.prototype.initialize.call(this)},set_over__:function(t,e,i,n,o){if(ge().prototype.set_over__.call(this,t,e,i,n,o),this._isOver.getValue()){var s=e.intersection;_e.assign(i).inverse(),this._hitTexCoord_changed=s.texCoord,this._hitNormal_changed=i.multMatrixDir(s.normal.copy()).normalize(),this._hitPoint_changed=_e.multVecMatrix(s.point.copy()),this._hitGeoCoord_changed=this.getGeoCoord(this._hitPoint_changed.getValue(),we)}},dispose:function(){at.prototype.dispose.call(this),ge().prototype.dispose.call(this)}});const fe=me;g().set("x_ite/Components/Geospatial/GeoTouchSensor",fe);const ye=fe;var Oe=new(H()),Se=new(H());function Ie(t){Xt().call(this,t),at.call(this,t),this.addType(u().GeoTransform),this._translation.setUnit("length")}Ie.prototype=Object.assign(Object.create(Xt().prototype),at.prototype,{constructor:Ie,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]: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))]),getTypeName:function(){return"GeoTransform"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){Xt().prototype.initialize.call(this),at.prototype.initialize.call(this),this.addInterest("eventsProcessed",this),this.eventsProcessed()},eventsProcessed:function(){this.getLocationMatrix(this._geoCenter.getValue(),Se),Oe.set(this._translation.getValue(),this._rotation.getValue(),this._scale.getValue(),this._scaleOrientation.getValue()),this.setMatrix(Oe.multRight(Se).multLeft(Se.inverse()))},dispose:function(){at.prototype.dispose.call(this),Xt().prototype.dispose.call(this)}});const be=Ie;g().set("x_ite/Components/Geospatial/GeoTransform",be);const Fe=be,Ce=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Navigation/X3DViewpointNode");var xe=t.n(Ce);const ve=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Navigation/Viewpoint");var Ne=t.n(ve);const Me=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Navigation/NavigationInfo");var Te=t.n(Me);const Ge=window[Symbol.for("X_ITE.X3D-8.4.3")].require("standard/Math/Numbers/Rotation4");var De=t.n(Ge);function Ee(t){xe().call(this,t),at.call(this,t),this.addType(u().GeoViewpoint),this._centerOfRotation.setUnit("length"),this._fieldOfView.setUnit("angle"),t.getSpecificationVersion()<=3.2&&(this.traverse=Ve),this.geoNavigationInfoNode=new(Te())(t),this.projectionMatrix=new(H()),this.elevation=0}function Ve(t,e){xe().prototype.traverse.call(this,t,e),this.geoNavigationInfoNode.traverse(t,e)}Ee.prototype=Object.assign(Object.create(xe().prototype),at.prototype,{constructor:Ee,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]: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)(.7854)),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)(!1)),new(r())(u().inputOutput,"jump",new(o().SFBool)(!0)),new(r())(u().inputOutput,"retainUserOffsets",new(o().SFBool)),new(r())(u().inputOutput,"navType",new(o().MFString)("EXAMINE","ANY")),new(r())(u().inputOutput,"headlight",new(o().SFBool)(!0)),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))]),getTypeName:function(){return"GeoViewpoint"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){xe().prototype.initialize.call(this),at.prototype.initialize.call(this);const t=this.getBrowser().getContext();this.logarithmicDepthBuffer=t.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.setup(),this.set_position__()},getRelativeTransformation:Ne().prototype.getRelativeTransformation,setInterpolators:Ne().prototype.setInterpolators,getFieldOfView:Ne().prototype.getFieldOfView,getScreenScale:Ne().prototype.getScreenScale,getViewportSize:Ne().prototype.getViewportSize,getLookAtDistance:Ne().prototype.getLookAtDistance,getProjectionMatrixWithLimits:Ne().prototype.getProjectionMatrixWithLimits,getLogarithmicDepthBuffer:function(){return this.logarithmicDepthBuffer},setPosition:function(){const t=new(S())(0,0,0);return function(e){this._position.setValue(this.getGeoCoord(e,t))}}(),getPosition:function(){const t=new(S())(0,0,0);return function(){return this.getCoord(this._position.getValue(),t)}}(),set_position__:function(){const t=new(S())(0,0,0);return function(){this.getCoord(this._position.getValue(),t),this.elevation=this.getGeoElevation(t.add(this._positionOffset.getValue()))}}(),setOrientation:function(){const t=new(H()),e=new(De())(0,0,1,0);return function(i){const n=this.getLocationMatrix(this._position.getValue(),t).submatrix;e.setMatrix(n),this._orientation.setValue(e.inverse().multLeft(i))}}(),getOrientation:function(){const t=new(H()),e=new(De())(0,0,1,0);return function(){const i=this.getLocationMatrix(this._position.getValue(),t).submatrix;return e.setMatrix(i),e.multLeft(this._orientation.getValue())}}(),getCenterOfRotation:function(){const t=new(S())(0,0,0);return function(){return this.getCoord(this._centerOfRotation.getValue(),t)}}(),getMaxFarValue:function(){return 1e10},getUpVector:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0);return function(i=!1){return!i||this.getUserPosition().magnitude()<65e5?(this.getCoord(this._position.getValue(),t),this.getGeoUpVector(t.add(this._positionOffset.getValue()),e)):e.assign(S().zAxis)}}(),getSpeedFactor:function(){return(Math.max(this.elevation,0)+10)/10*this._speedFactor.getValue()},dispose:function(){at.prototype.dispose.call(this),xe().prototype.dispose.call(this)}});const ze=Ee;g().set("x_ite/Components/Geospatial/GeoViewpoint",ze);const je=ze;i().addComponent({name:"Geospatial",types:{GeoCoordinate:ut,GeoElevationGrid:yt,GeoLOD:zt,GeoLocation:Lt,GeoMetadata:Yt,GeoOrigin:$t,GeoPositionInterpolator:oe,GeoProximitySensor:ue,GeoTouchSensor:ye,GeoTransform:Fe,GeoViewpoint:je},abstractTypes:{X3DGeospatialObject:at}});const Xe=void 0;g().set("assets/components/Geospatial",Xe)})();
|
|
1
|
+
/* X_ITE v8.5.3 */(()=>{"use strict";var t={n:e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return t.d(i,{a:i}),i},d:(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components");var i=t.n(e);const n=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Fields");var o=t.n(n);const s=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Base/X3DFieldDefinition");var r=t.n(s);const a=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Base/FieldDefinitionArray");var l=t.n(a);const h=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Rendering/X3DCoordinateNode");var c=t.n(h);const d=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Base/X3DConstants");var u=t.n(d);const p=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Namespace");var g=t.n(p);function _(t,e){switch(arguments.length){case 0:this.semiMajorAxis=0,this.semiMinorAxis=0;break;case 2:this.semiMajorAxis=t,this.semiMinorAxis=e;break;case 3:const i=arguments[1];this.semiMajorAxis=t,this.semiMinorAxis=t*(1-1/i)}}_.prototype={constructor:_,getSemiMajorAxis:function(){return this.semiMajorAxis},getSemiMinorAxis:function(){return this.semiMinorAxis},toString:function(){return this.semiMajorAxis+" "+this.semiMinorAxis}};const w=_;g().set("standard/Math/Geometry/Spheroid3",w);const m=w,f={AA:new m(6377563.396,299.3249646,!0),AM:new m(6377340.189,299.3249646,!0),AN:new m(6378160,298.25,!0),BN:new m(6377483.865,299.1528128,!0),BR:new m(6377397.155,299.1528128,!0),CC:new m(6378206.4,294.9786982,!0),CD:new m(6378249.145,293.465,!0),EA:new m(6377276.345,300.8017,!0),EB:new m(6377298.556,300.8017,!0),EC:new m(6377301.243,300.8017,!0),ED:new m(6377295.664,300.8017,!0),EE:new m(6377304.063,300.8017,!0),EF:new m(6377309.613,300.8017,!0),FA:new m(6378155,298.3,!0),HE:new m(6378200,298.3,!0),HO:new m(6378270,297,!0),ID:new m(6378160,298.247,!0),IN:new m(6378388,297,!0),KA:new m(6378245,298.3,!0),RF:new m(6378137,298.257222101,!0),SA:new m(6378160,298.25,!0),WD:new m(6378135,298.26,!0),WE:new m(6378137,298.257223563,!0),SUN:new m(696342e3,1/9e-6,!0),MERCURY:new m(2439700,2439700),VENUS:new m(6051800,6051800),MOON:new m(1738140,1735970),MARS:new m(3395428,3377678),JUPITER:new m(71492e3,66854e3),SATURN:new m(60268e3,54364e3),URANUS:new m(2555e3,24973e3),NEPTUNE:new m(24764e3,24341e3),PLUTO:new m(1153e3,1153e3)};g().set("standard/Geospatial/ReferenceEllipsoids",f);const y=f,O=window[Symbol.for("X_ITE.X3D-8.5.3")].require("standard/Math/Numbers/Vector3");var S=t.n(O);const I=window[Symbol.for("X_ITE.X3D-8.5.3")].require("standard/Math/Algorithm");var b=t.n(I);function F(t,e,i){this.longitudeFirst=!e,this.degrees=!i,this.a=t.getSemiMajorAxis(),this.c=t.getSemiMinorAxis(),this.c2a2=Math.pow(t.getSemiMinorAxis()/this.a,2),this.ecc2=1-this.c2a2}F.prototype={constructor:F,convert:function(t,e){const i=t.z;if(this.longitudeFirst)var n=t.y,o=t.x;else n=t.x,o=t.y;return this.degrees&&(n*=Math.PI/180,o*=Math.PI/180),this.convertRadians(n,o,i,e)},convertRadians:function(t,e,i,n){const o=Math.sin(t),s=Math.pow(o,2),r=Math.cos(t),a=this.a/Math.sqrt(1-this.ecc2*s),l=(a+i)*r;return n.set(l*Math.cos(e),l*Math.sin(e),(a*this.c2a2+i)*o)},apply:function(t,e){if(this.applyRadians(t,e),this.degrees&&(e.x*=180/Math.PI,e.y*=180/Math.PI),this.longitudeFirst){const t=e.x;e.x=e.y,e.y=t}return e},applyRadians:function(t,e){const i=t.x,n=t.y,o=t.z,s=Math.sqrt(i*i+n*n);if(0==s)return e.set(Math.PI,0,o-this.c);let r=0,a=Math.atan2(n,i),l=0,h=this.a,c=h,d=this.ecc2;for(let t=0;t<30;++t){const t=l,e=r;r=Math.atan(o/s/(1-d*c/(c+l)));const i=Math.sin(r);if(c=h/Math.sqrt(1-d*i*i),l=s/Math.cos(r)-c,Math.abs(l-t)<.001&&Math.abs(r-e)<1e-10)break}return e.set(r,a,l)},normal:function(t,e){const i=this.applyRadians(t,e),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 e.set(r,a,l)}};const C=F;g().set("standard/Geospatial/Geodetic",C);const x=C,v=1e7,N=5e5,M=.9996;function T(t,e,i,n){const o=t.getSemiMajorAxis(),s=1-Math.pow(t.getSemiMinorAxis()/o,2),r=s/(1-s),a=(1-Math.sqrt(1-s))/(1+Math.sqrt(1-s));this.southernHemisphere=!i,this.eastingFirst=!n,this.a=o,this.ecc2=s,this.EE=r,this.E8=8*r,this.E9=9*r,this.E252=252*r,this.e1=a,this.A=M*(o*(1-s/4-3*s*s/64-5*s*s*s/256)),this.B=3*a/2-7*a*a*a/32,this.C=21*a*a/16-55*a*a*a*a/32,this.D=151*a*a*a/96,this.E=o*(1-s),this.W=1-s/4-3*s*s/64-5*s*s*s/256,this.X=3*s/8+3*s*s/32+45*s*s*s/1024,this.Y=15*s*s/256+45*s*s*s/1024,this.Z=35*s*s*s/3072,this.longitude0=b().radians(6*e-183),this.geodeticConverter=new x(t,!0,!0)}T.prototype={constructor:T,convert:function(t,e){if(this.eastingFirst)var i=t.y,n=t.x;else i=t.x,n=t.y;let o=this.southernHemisphere;i<0&&(o=!this.southernHemisphere,i=-i),o&&(i-=v),n-=N;const s=i/this.A,r=s+this.B*Math.sin(2*s)+this.C*Math.sin(4*s)+this.D*Math.sin(6*s),a=Math.pow(Math.sin(r),2),l=Math.cos(r),h=Math.tan(r),c=this.a/Math.sqrt(1-this.ecc2*a),d=Math.pow(h,2),u=Math.pow(h,8),p=this.EE*d,g=p*p,_=this.E/Math.pow(1-this.ecc2*a,1.5),w=n/(c*M),m=(5+3*d+10*p-4*g-this.E9)*Math.pow(w,4)/24,f=(61+90*d+298*p+45*u-this.E252-3*g)*Math.pow(w,6)/720,y=(5-2*p+28*d-3*g+this.E8+24*u)*Math.pow(w,5)/120,O=r-c*h/_*(w*w/2-m+f),S=this.longitude0+(w-(1+2*d+p)*Math.pow(w,3)/6+y)/l;return this.geodeticConverter.convertRadians(O,S,t.z,e)},apply:function(t,e){const i=this.geodeticConverter.applyRadians(t,e),n=i.x,o=i.y,s=Math.tan(n),r=Math.cos(n),a=this.EE,l=this.a/Math.sqrt(1-this.ecc2*Math.pow(Math.sin(n),2)),h=s*s,c=h*h*h,d=a*r*r,u=r*(o-this.longitude0),p=this.a*(this.W*n-this.X*Math.sin(2*n)+this.Y*Math.sin(4*n)-this.Z*Math.sin(6*n)),g=M*l*(u+(1-h+d)*Math.pow(u,3)/6+(5-18*c+72*d-58*a)*Math.pow(u,5)/120)+N;let _=M*(p+l*s*(u*u/2+(5-h+9*d+4*d*d)*Math.pow(u,4)/24+(61-58*c+600*d-330*a)*Math.pow(u,6)/720));return n<0?(_+=v,this.southernHemisphere||(_=-_)):this.southernHemisphere&&(_=-_),this.eastingFirst?e.set(g,_,i.z):e.set(_,g,i.z)}};const G=T;g().set("standard/Geospatial/UniversalTransverseMercator",G);const D=G;function E(){}E.prototype={constructor:E,convert:function(t,e){return e.assign(t)},apply:function(t,e){return e.assign(t)},slerp:function(t,e,i){const n=t.magnitude(),o=e.magnitude();return t.normalize(),e.normalize(),b().simpleSlerp(t,e,i).multiply(b().lerp(n,o,i))}};const V=E;g().set("x_ite/Browser/Geospatial/Geocentric",V);const z=V;let j=0;const X=j++,P=j++,B=j++,k={GD:X,GDC:X,UTM:P,GC:B,GCC:B,GS:B},L=/^Z(\d+)$/,A={GD:X,UTM:P,GC:B,getReferenceFrame:function(t,e){switch(this.getCoordinateSystem(t)){case X:return new x(this.getEllipsoid(t),this.getLatitudeFirst(t),e);case P:return new D(this.getEllipsoid(t),this.getZone(t),this.getNorthernHemisphere(t),this.getNorthingFirst(t));case B:return new z}return new x(y.WE,!0,e)},getElevationFrame:function(t,e){return new x(this.getEllipsoid(t),!0,e)},getCoordinateSystem:function(t){for(const e of t){const t=k[e];if(void 0!==t)return t}return X},getEllipsoid:function(t){for(const e of t){const t=y[e];if(void 0!==t)return t}return y.WE},getEllipsoidString:function(t){for(const e of t){if(void 0!==y[e])return e}return"WE"},isStandardOrder:function(t){switch(this.getCoordinateSystem(t)){case X:return this.getLatitudeFirst(t);case P:return this.getNorthingFirst(t);case B:return!0}return this.getLatitudeFirst(t)},getLatitudeFirst:function(t){for(const e of t)if("longitude_first"===e)return!1;return!0},getNorthingFirst:function(t){for(const e of t)if("easting_first"===e)return!1;return!0},getZone:function(t){for(const e of t){const t=e.match(L);if(t)return parseInt(t[1])}return 1},getNorthernHemisphere:function(t){for(const e of t)if("S"===e)return!1;return!0}};g().set("x_ite/Browser/Geospatial/Geospatial",A);const R=A,U=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Base/X3DCast");var q=t.n(U);const W=window[Symbol.for("X_ITE.X3D-8.5.3")].require("standard/Math/Numbers/Matrix4");var H=t.n(W),Y=new(S())(0,0,0),Z=new(S())(0,0,0),K=new(S())(0,0,0),J=new(S())(0,0,0),Q=new(S())(0,0,0),$=new(S())(0,0,0);function tt(t){this.addType(u().X3DGeospatialObject),this.radians=!1,this.origin=new(S())(0,0,0),this.originMatrix=new(H()),this.invOriginMatrix=new(H())}function et(t,e){return this.invOriginMatrix.multVecMatrix(this.referenceFrame.convert(t,e))}function it(t,e){return this.referenceFrame.apply(this.originMatrix.multVecMatrix(Y.assign(t)),e)}function nt(t,e){return this.invOriginMatrix.multDirMatrix(this.elevationFrame.normal(this.originMatrix.multVecMatrix(Y.assign(t)),e))}function ot(t,e){return st.call(this,t,e).multRight(this.invOriginMatrix)}function st(t,e){return this.referenceFrame.convert(t,K),this.elevationFrame.normal(K,Q),J.set(0,0,1).cross(Q),J.equals(S().Zero)&&J.set(1,0,0),$.assign(J).cross(Q),J.normalize(),$.normalize(),e.set(J.x,J.y,J.z,0,Q.x,Q.y,Q.z,0,$.x,$.y,$.z,0,K.x,K.y,K.z,1)}tt.prototype={constructor:tt,initialize:function(){this._geoSystem.addInterest("set_geoSystem__",this),this._geoOrigin.addInterest("set_geoOrigin__",this),this.set_geoSystem__(),this.set_geoOrigin__()},set_geoSystem__:function(){this.coordinateSystem=R.getCoordinateSystem(this._geoSystem),this.referenceFrame=R.getReferenceFrame(this._geoSystem,this.radians),this.elevationFrame=R.getElevationFrame(this._geoSystem,this.radians),this.standardOrder=R.isStandardOrder(this._geoSystem)},set_geoOrigin__:function(){this.geoOriginNode&&(this.geoOriginNode.removeInterest("set_origin__",this),this.geoOriginNode.removeInterest("set_rotateYUp__",this),this.geoOriginNode.removeInterest("addNodeEvent",this)),this.geoOriginNode=q()(u().GeoOrigin,this._geoOrigin),this.geoOriginNode&&(this.geoOriginNode.addInterest("set_origin__",this),this.geoOriginNode.addInterest("set_rotateYUp__",this),this.geoOriginNode.addInterest("addNodeEvent",this)),this.set_origin__(),this.set_rotateYUp__()},set_origin__:function(){this.geoOriginNode?this.geoOriginNode.getOrigin(this.origin):this.origin.set(0,0,0),this.set_originMatrix__()},set_originMatrix__:function(){if(this.geoOriginNode){var t=this.origin;this.elevationFrame.normal(t,Q),J.set(0,0,1).cross(Q),J.equals(S().Zero)&&J.set(1,0,0),$.assign(J).cross(Q),J.normalize(),$.normalize(),this.originMatrix.set(J.x,J.y,J.z,0,Q.x,Q.y,Q.z,0,$.x,$.y,$.z,0,t.x,t.y,t.z,1),this.invOriginMatrix.assign(this.originMatrix).inverse()}},set_rotateYUp__:function(){this.geoOriginNode&&this.geoOriginNode._rotateYUp.getValue()?(this.getCoord=et,this.getGeoCoord=it,this.getGeoUpVector=nt,this.getLocationMatrix=ot):(delete this.getCoord,delete this.getGeoCoord,delete this.getGeoUpVector,delete this.getLocationMatrix)},getReferenceFrame:function(){return this.referenceFrame},getStandardOrder:function(){return this.standardOrder},getCoord:function(t,e){return this.referenceFrame.convert(t,e).subtract(this.origin)},getGeoCoord:function(t,e){return this.referenceFrame.apply(Y.assign(t).add(this.origin),e)},getGeoElevation:function(t){return this.getGeoCoord(t,Z).z},getGeoUpVector:function(t,e){return this.elevationFrame.normal(Y.assign(t).add(this.origin),e)},getLocationMatrix:function(t,e){var i=this.origin,n=st.call(this,t,e);return n[12]-=i.x,n[13]-=i.y,n[14]-=i.z,n},dispose:function(){}};const rt=tt;g().set("x_ite/Components/Geospatial/X3DGeospatialObject",rt);const at=rt,lt=window[Symbol.for("X_ITE.X3D-8.5.3")].require("standard/Math/Geometry/Triangle3");var ht=t.n(lt);function ct(t){c().call(this,t),at.call(this,t),this.addType(u().GeoCoordinate)}ct.prototype=Object.assign(Object.create(c().prototype),at.prototype,{constructor:ct,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]: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))]),getTypeName:function(){return"GeoCoordinate"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"coord"},initialize:function(){c().prototype.initialize.call(this),at.prototype.initialize.call(this)},set1Point:function(){const t=new(S())(0,0,0);return function(e,i){this._point[e]=this.getGeoCoord(i,t)}}(),get1Point:function(){const t=new(S())(0,0,0);return function(e,i){if(e<this.length){const n=this.point;return e*=3,this.getCoord(t.set(n[e],n[e+1],n[e+2]),i)}return i.set(0,0,0)}}(),addPoint:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0);return function(i,n){if(i<this.length){const o=this.point;i*=3,this.getCoord(t.set(o[i],o[i+1],o[i+2]),e),n.push(e[0],e[1],e[2],1)}else n.push(0,0,0,1)}}(),addPoints:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0);return function(i,n){const o=this.point;for(let n=0,s=3*this.length;n<s;n+=3)this.getCoord(t.set(o[n],o[n+1],o[n+2]),e),i.push(e[0],e[1],e[2],1);for(let t=3*this.length,e=3*n;t<e;t+=3)i.push(0,0,0,1)}}(),getNormal:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0),i=new(S())(0,0,0);return function(n,o,s){const r=this.length;return n<r&&o<r&&s<r?ht().normal(this.get1Point(n,t),this.get1Point(o,e),this.get1Point(s,i),new(S())(0,0,0)):new(S())(0,0,0)}}(),getQuadNormal:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0),i=new(S())(0,0,0),n=new(S())(0,0,0);return function(o,s,r,a){const l=this.length;return o<l&&s<l&&r<l&&a<l?ht().quadNormal(this.get1Point(o,t),this.get1Point(s,e),this.get1Point(r,i),this.get1Point(a,n),new(S())(0,0,0)):new(S())(0,0,0)}}(),dispose:function(){at.prototype.dispose.call(this),c().prototype.dispose.call(this)}});const dt=ct;g().set("x_ite/Components/Geospatial/GeoCoordinate",dt);const ut=dt,pt=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Rendering/X3DGeometryNode");var gt=t.n(pt);const _t=window[Symbol.for("X_ITE.X3D-8.5.3")].require("standard/Math/Numbers/Vector2");var wt=t.n(_t);function mt(t){gt().call(this,t),at.call(this,t),this.addType(u().GeoElevationGrid),this._creaseAngle.setUnit("angle"),this._height.setUnit("length"),this.colorNode=null,this.texCoordNode=null,this.normalNode=null}mt.prototype=Object.assign(Object.create(gt().prototype),at.prototype,{constructor:mt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().initializeOnly,"geoGridOrigin",new(o().SFVec3d)),new(r())(u().initializeOnly,"xDimension",new(o().SFInt32)),new(r())(u().initializeOnly,"zDimension",new(o().SFInt32)),new(r())(u().initializeOnly,"xSpacing",new(o().SFDouble)(1)),new(r())(u().initializeOnly,"zSpacing",new(o().SFDouble)(1)),new(r())(u().inputOutput,"yScale",new(o().SFFloat)(1)),new(r())(u().initializeOnly,"solid",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"ccw",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"creaseAngle",new(o().SFDouble)),new(r())(u().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(r())(u().inputOutput,"color",new(o().SFNode)),new(r())(u().inputOutput,"texCoord",new(o().SFNode)),new(r())(u().inputOutput,"normal",new(o().SFNode)),new(r())(u().inputOutput,"height",new(o().MFDouble)(0,0))]),getTypeName:function(){return"GeoElevationGrid"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"geometry"},initialize:function(){gt().prototype.initialize.call(this),at.prototype.initialize.call(this),this._color.addInterest("set_color__",this),this._texCoord.addInterest("set_texCoord__",this),this._normal.addInterest("set_normal__",this),this.set_color__(),this.set_texCoord__(),this.set_normal__()},set_color__:function(){this.colorNode&&(this.colorNode.removeInterest("requestRebuild",this),this.colorNode._transparent.removeInterest("set_transparent__",this)),this.colorNode=q()(u().X3DColorNode,this._color),this.colorNode?(this.colorNode.addInterest("requestRebuild",this),this.colorNode._transparent.addInterest("set_transparent__",this),this.set_transparent__()):this.setTransparent(!1)},set_transparent__:function(){this.setTransparent(this.colorNode.getTransparent())},set_texCoord__:function(){this.texCoordNode&&this.texCoordNode.removeInterest("requestRebuild",this),this.texCoordNode=q()(u().X3DTextureCoordinateNode,this._texCoord),this.texCoordNode&&this.texCoordNode.addInterest("requestRebuild",this),this.setTextureCoordinate(this.texCoordNode)},set_normal__:function(){this.normalNode&&this.normalNode.removeInterest("requestRebuild",this),this.normalNode=q()(u().X3DNormalNode,this._normal),this.normalNode&&this.normalNode.addInterest("requestRebuild",this)},getColor:function(){return this.colorNode},getTexCoord:function(){return this.texCoordNode},getNormal:function(){return this.normalNode},getHeight:function(t){return t<this._height.length?this._height[t]*this._yScale.getValue():0},createTexCoords:function(){for(var t=[],e=this._xDimension.getValue(),i=this._zDimension.getValue(),n=e-1,o=i-1,s=0;s<i;++s)for(var r=0;r<e;++r)t.push(new(wt())(r/n,s/o));return t},createNormals:function(t,e,i){for(var n=!this._ccw.getValue(),o=[],s=[],r=0;r<t.length;++r)o[r]=[];for(var a=0;a<e.length;a+=3){var l=e[a],h=e[a+1],c=e[a+2];o[l].push(s.length),o[h].push(s.length+1),o[c].push(s.length+2);var d=ht().normal(t[l],t[h],t[c],new(S())(0,0,0));n&&d.negate(),s.push(d),s.push(d),s.push(d)}return this.refineNormals(o,s,this._creaseAngle.getValue())},createCoordIndex:function(){for(var t=[],e=this._xDimension.getValue(),i=e-1,n=this._zDimension.getValue()-1,o=0;o<n;++o)for(var s=0;s<i;++s){var r=o*e+s,a=(o+1)*e+s,l=(o+1)*e+(s+1),h=o*e+(s+1);t.push(r),t.push(l),t.push(a),t.push(r),t.push(h),t.push(l)}return t},createPoints:function(){var t=[],e=this._xDimension.getValue(),i=this._zDimension.getValue(),n=this._xSpacing.getValue(),o=this._zSpacing.getValue();if(this.getStandardOrder())for(var s=0;s<i;++s)for(var r=0;r<e;++r){(a=new(S())(o*s,n*r,this.getHeight(r+s*e))).add(this._geoGridOrigin.getValue()),t.push(this.getCoord(a,a))}else for(s=0;s<i;++s)for(r=0;r<e;++r){var a;(a=new(S())(n*r,o*s,this.getHeight(r+s*e))).add(this._geoGridOrigin.getValue()),t.push(this.getCoord(a,a))}return t},build:function(){if(!(this._xDimension.getValue()<2||this._zDimension.getValue()<2)){var t=this._colorPerVertex.getValue(),e=this._normalPerVertex.getValue(),i=this.createCoordIndex(),n=this.getColor(),o=this.getTexCoord(),s=this.getNormal(),r=this.createPoints(),a=this.getColors(),l=this.getMultiTexCoords(),h=this.getNormals(),c=this.getVertices(),d=0;if(o)o.init(l);else{var u=this.createTexCoords(),p=this.getTexCoords();l.push(p)}for(var g=0;g<i.length;++d)for(var _=0;_<6;++_,++g){var w=i[g],m=r[w];if(n&&(t?n.addColor(w,a):n.addColor(d,a)),o)o.addTexCoord(w,l);else{var f=u[w];p.push(f.x,f.y,0,1)}s&&(e?s.addVector(w,h):s.addVector(d,h)),c.push(m.x,m.y,m.z,1)}if(!s)for(var y=this.createNormals(r,i),O=0;O<y.length;++O){var S=y[O];h.push(S.x,S.y,S.z)}this.setSolid(this._solid.getValue()),this.setCCW(this._ccw.getValue())}},dispose:function(){at.prototype.dispose.call(this),gt().prototype.dispose.call(this)}});const ft=mt;g().set("x_ite/Components/Geospatial/GeoElevationGrid",ft);const yt=ft,Ot=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Core/X3DChildNode");var St=t.n(Ot);const It=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Grouping/X3DBoundedObject");var bt=t.n(It);const Ft=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Rendering/TraverseType");var Ct=t.n(Ft);const xt=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Grouping/Group");var vt=t.n(xt);const Nt=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Networking/Inline");var Mt=t.n(Nt);const Tt=window[Symbol.for("X_ITE.X3D-8.5.3")].require("standard/Math/Geometry/Box3");var Gt=t.n(Tt),Dt=new(S())(0,0,0);function Et(t){St().call(this,t),bt().call(this,t),at.call(this,t),this.addType(u().GeoLOD),this._range.setUnit("length"),this.unload=!1,this.rootGroup=new(vt())(this.getBrowser().getPrivateScene()),this.rootInline=new(Mt())(t),this.child1Inline=new(Mt())(t),this.child2Inline=new(Mt())(t),this.child3Inline=new(Mt())(t),this.child4Inline=new(Mt())(t),this.childrenLoaded=!1,this.childBBox=new(Gt()),this.keepCurrentLevel=!1,this.modelViewMatrix=new(H())}Et.prototype=Object.assign(Object.create(St().prototype),bt().prototype,at.prototype,{constructor:Et,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]: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))]),getTypeName:function(){return"GeoLOD"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){St().prototype.initialize.call(this),bt().prototype.initialize.call(this),at.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:function(t,e){if(this._bboxSize.getValue().equals(this.getDefaultBBoxSize())){switch(this.childrenLoaded?this._level_changed.getValue():0){case 0:return this._rootNode.length?this.rootGroup.getBBox(t,e):this.rootInline.getBBox(t,e);case 1:{const i=this.childBBox;return t.set(),t.add(this.child1Inline.getBBox(i,e)),t.add(this.child2Inline.getBBox(i,e)),t.add(this.child3Inline.getBBox(i,e)),t.add(this.child4Inline.getBBox(i,e)),t}}return t.set()}return t.set(this._bboxSize.getValue(),this._bboxCenter.getValue())},set_rootLoadState__:function(){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__:function(){if(1===this._level_changed.getValue()){var t=0;if(this.child1Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child1Inline.checkLoadState()!==u().FAILED_STATE||++t,this.child2Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child2Inline.checkLoadState()!==u().FAILED_STATE||++t,this.child3Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child3Inline.checkLoadState()!==u().FAILED_STATE||++t,this.child4Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child4Inline.checkLoadState()!==u().FAILED_STATE||++t,4===t){this.childrenLoaded=!0;var e=this._children;e.length=0;for(var i=0,n=(o=this.child1Inline.getInternalScene().getRootNodes()).length;i<n;++i)e.push(o[i]);for(i=0,n=(o=this.child2Inline.getInternalScene().getRootNodes()).length;i<n;++i)e.push(o[i]);for(i=0,n=(o=this.child3Inline.getInternalScene().getRootNodes()).length;i<n;++i)e.push(o[i]);var o;for(i=0,n=(o=this.child4Inline.getInternalScene().getRootNodes()).length;i<n;++i)e.push(o[i])}}},set_childCameraObject__:function(){this.setCameraObject(this.child1Inline.getCameraObject()||this.child2Inline.getCameraObject()||this.child3Inline.getCameraObject()||this.child4Inline.getCameraObject())},set_childPickableObject__:function(){this.setPickableObject(this.child1Inline.getPickableObject()||this.child2Inline.getPickableObject()||this.child3Inline.getPickableObject()||this.child4Inline.getPickableObject())},getLevel:function(t){return this.getDistance(t)<this._range.getValue()?1:0},getDistance:function(t){return t.translate(this.getCoord(this._center.getValue(),Dt)),t.origin.magnitude()},traverse:function(t,e){switch(t){case Ct().PICKING:var i=this.getBrowser().getPickingHierarchy();return i.push(this),this.traverseChildren(t,e),void i.pop();case Ct().DISPLAY:var n=this.getLevel(this.modelViewMatrix.assign(e.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.getCameraObject()),this.setPickableObject(this.rootGroup.getPickableObject()),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.getCameraObject()),this.setPickableObject(this.rootInline.getPickableObject()),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(t,e);default:return void this.traverseChildren(t,e)}},traverseChildren:function(t,e){switch(this.childrenLoaded?this._level_changed.getValue():0){case 0:this._rootNode.length?this.rootGroup.traverse(t,e):this.rootInline.traverse(t,e);break;case 1:this.child1Inline.traverse(t,e),this.child2Inline.traverse(t,e),this.child3Inline.traverse(t,e),this.child4Inline.traverse(t,e)}},dispose:function(){at.prototype.dispose.call(this),bt().prototype.dispose.call(this),St().prototype.dispose.call(this)}});const Vt=Et;g().set("x_ite/Components/Geospatial/GeoLOD",Vt);const zt=Vt,jt=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Grouping/X3DTransformMatrix3DNode");var Xt=t.n(jt),Pt=new(H());function Bt(t){Xt().call(this,t),at.call(this,t),this.addType(u().GeoLocation)}Bt.prototype=Object.assign(Object.create(Xt().prototype),at.prototype,{constructor:Bt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]: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,"geoOrigin",new(o().SFNode)),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))]),getTypeName:function(){return"GeoLocation"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){Xt().prototype.initialize.call(this),at.prototype.initialize.call(this),this.addInterest("eventsProcessed",this),this.eventsProcessed()},eventsProcessed:function(){this.setMatrix(this.getLocationMatrix(this._geoCoords.getValue(),Pt))},dispose:function(){at.prototype.dispose.call(this),Xt().prototype.dispose.call(this)}});const kt=Bt;g().set("x_ite/Components/Geospatial/GeoLocation",kt);const Lt=kt,At=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Core/X3DInfoNode");var Rt=t.n(At);const Ut=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Networking/X3DUrlObject");var qt=t.n(Ut);function Wt(t){Rt().call(this,t),qt().call(this,t),this.addType(u().GeoMetadata)}Wt.prototype=Object.assign(Object.create(Rt().prototype),qt().prototype,{constructor:Wt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"url",new(o().MFString)),new(r())(u().inputOutput,"load",new(o().SFBool)(!0)),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))]),getTypeName:function(){return"GeoMetadata"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){Rt().prototype.initialize.call(this),qt().prototype.initialize.call(this)},requestImmediateLoad:function(t=!0){},requestUnload:function(){},set_load__:function(){},set_url__:function(){},dispose:function(){qt().prototype.dispose.call(this),Rt().prototype.dispose.call(this)}});const Ht=Wt;g().set("x_ite/Components/Geospatial/GeoMetadata",Ht);const Yt=Ht,Zt=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Core/X3DNode");var Kt=t.n(Zt);function Jt(t){Kt().call(this,t),this.addType(u().GeoOrigin),this.radians=!1}Jt.prototype=Object.assign(Object.create(Kt().prototype),{constructor:Jt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]: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))]),getTypeName:function(){return"GeoOrigin"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"geoOrigin"},initialize:function(){Kt().prototype.initialize.call(this),this._geoSystem.addInterest("set_geoSystem__",this),this.set_geoSystem__()},set_geoSystem__:function(){this.referenceFrame=R.getReferenceFrame(this._geoSystem,this.radians)},getOrigin:function(t){return this.referenceFrame.convert(this._geoCoords.getValue(),t)}});const Qt=Jt;g().set("x_ite/Components/Geospatial/GeoOrigin",Qt);const $t=Qt,te=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Interpolation/X3DInterpolatorNode");var ee=t.n(te);function ie(t){ee().call(this,t),at.call(this,t),this.addType(u().GeoPositionInterpolator),this._value_changed.setUnit("length"),this.geocentric=new z}ie.prototype=Object.assign(Object.create(ee().prototype),at.prototype,{constructor:ie,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOnly,"set_fraction",new(o().SFFloat)),new(r())(u().inputOutput,"key",new(o().MFFloat)),new(r())(u().inputOutput,"keyValue",new(o().MFVec3d)),new(r())(u().outputOnly,"value_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"geovalue_changed",new(o().SFVec3d))]),getTypeName:function(){return"GeoPositionInterpolator"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},setup:function(){at.prototype.initialize.call(this),ee().prototype.setup.call(this)},initialize:function(){ee().prototype.initialize.call(this),this._keyValue.addInterest("set_keyValue__",this)},set_keyValue__:function(){const t=this._key,e=this._keyValue;e.length<t.length&&e.resize(t.length,e.length?e[e.length-1]:new(o().SFVec3f))},interpolate:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0),i=new(S())(0,0,0);return function(n,o,s){this.getCoord(this._keyValue[n].getValue(),t),this.getCoord(this._keyValue[o].getValue(),e);const r=this.geocentric.slerp(t,e,s);this._geovalue_changed=this.getGeoCoord(r,i),this._value_changed=r}}(),dispose:function(){at.prototype.dispose.call(this),ee().prototype.dispose.call(this)}});const ne=ie;g().set("x_ite/Components/Geospatial/GeoPositionInterpolator",ne);const oe=ne,se=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode");var re=t.n(se);const ae=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/EnvironmentalSensor/ProximitySensor");var le=t.n(ae),he=new(S())(0,0,0);function ce(t){re().call(this,t),at.call(this,t),this.addType(u().GeoProximitySensor),this._position_changed.setUnit("length"),this._centerOfRotation_changed.setUnit("length"),this.proximitySensor=new(le())(t),this.setCameraObject(this.proximitySensor.getCameraObject()),this.setPickableObject(this.proximitySensor.getPickableObject())}ce.prototype=Object.assign(Object.create(re().prototype),at.prototype,{constructor:ce,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"size",new(o().SFVec3f)),new(r())(u().inputOutput,"center",new(o().SFVec3f)),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"enterTime",new(o().SFTime)),new(r())(u().outputOnly,"exitTime",new(o().SFTime)),new(r())(u().outputOnly,"geoCoord_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"position_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"orientation_changed",new(o().SFRotation)),new(r())(u().outputOnly,"centerOfRotation_changed",new(o().SFVec3f))]),getTypeName:function(){return"GeoProximitySensor"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){re().prototype.initialize.call(this),at.prototype.initialize.call(this),this._enabled.addFieldInterest(this.proximitySensor._enabled),this._size.addFieldInterest(this.proximitySensor._size),this._center.addFieldInterest(this.proximitySensor._center),this.proximitySensor._isCameraObject.addFieldInterest(this._isCameraObject),this.proximitySensor._isPickableObject.addFieldInterest(this._isPickableObject),this.proximitySensor._isActive.addFieldInterest(this._isActive),this.proximitySensor._enterTime.addFieldInterest(this._enterTime),this.proximitySensor._exitTime.addFieldInterest(this._exitTime),this.proximitySensor._position_changed.addFieldInterest(this._position_changed),this.proximitySensor._orientation_changed.addFieldInterest(this._orientation_changed),this.proximitySensor._centerOfRotation_changed.addFieldInterest(this._centerOfRotation_changed),this.proximitySensor._position_changed.addInterest("set_position__",this),this.proximitySensor._enabled=this._enabled,this.proximitySensor._size=this._size,this.proximitySensor._center=this._center,this.proximitySensor.setup()},set_position__:function(t){this._geoCoord_changed=this.getGeoCoord(this.proximitySensor._position_changed.getValue(),he)},traverse:function(t,e){this.proximitySensor.traverse(t,e)},dispose:function(){at.prototype.dispose.call(this),re().prototype.dispose.call(this)}});const de=ce;g().set("x_ite/Components/Geospatial/GeoProximitySensor",de);const ue=de,pe=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode");var ge=t.n(pe),_e=new(H()),we=new(S())(0,0,0);function me(t){ge().call(this,t),at.call(this,t),this.addType(u().GeoTouchSensor),this._hitPoint_changed.setUnit("length")}me.prototype=Object.assign(Object.create(ge().prototype),at.prototype,{constructor:me,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]: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))]),getTypeName:function(){return"GeoTouchSensor"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){ge().prototype.initialize.call(this),at.prototype.initialize.call(this)},set_over__:function(t,e,i,n,o){if(ge().prototype.set_over__.call(this,t,e,i,n,o),this._isOver.getValue()){var s=e.intersection;_e.assign(i).inverse(),this._hitTexCoord_changed=s.texCoord,this._hitNormal_changed=i.multMatrixDir(s.normal.copy()).normalize(),this._hitPoint_changed=_e.multVecMatrix(s.point.copy()),this._hitGeoCoord_changed=this.getGeoCoord(this._hitPoint_changed.getValue(),we)}},dispose:function(){at.prototype.dispose.call(this),ge().prototype.dispose.call(this)}});const fe=me;g().set("x_ite/Components/Geospatial/GeoTouchSensor",fe);const ye=fe;var Oe=new(H()),Se=new(H());function Ie(t){Xt().call(this,t),at.call(this,t),this.addType(u().GeoTransform),this._translation.setUnit("length")}Ie.prototype=Object.assign(Object.create(Xt().prototype),at.prototype,{constructor:Ie,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]: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))]),getTypeName:function(){return"GeoTransform"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){Xt().prototype.initialize.call(this),at.prototype.initialize.call(this),this.addInterest("eventsProcessed",this),this.eventsProcessed()},eventsProcessed:function(){this.getLocationMatrix(this._geoCenter.getValue(),Se),Oe.set(this._translation.getValue(),this._rotation.getValue(),this._scale.getValue(),this._scaleOrientation.getValue()),this.setMatrix(Oe.multRight(Se).multLeft(Se.inverse()))},dispose:function(){at.prototype.dispose.call(this),Xt().prototype.dispose.call(this)}});const be=Ie;g().set("x_ite/Components/Geospatial/GeoTransform",be);const Fe=be,Ce=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Navigation/X3DViewpointNode");var xe=t.n(Ce);const ve=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Navigation/Viewpoint");var Ne=t.n(ve);const Me=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Navigation/NavigationInfo");var Te=t.n(Me);const Ge=window[Symbol.for("X_ITE.X3D-8.5.3")].require("standard/Math/Numbers/Rotation4");var De=t.n(Ge);function Ee(t){xe().call(this,t),at.call(this,t),this.addType(u().GeoViewpoint),this._centerOfRotation.setUnit("length"),this._fieldOfView.setUnit("angle"),t.getSpecificationVersion()<=3.2&&(this.traverse=Ve),this.geoNavigationInfoNode=new(Te())(t),this.projectionMatrix=new(H()),this.elevation=0}function Ve(t,e){xe().prototype.traverse.call(this,t,e),this.geoNavigationInfoNode.traverse(t,e)}Ee.prototype=Object.assign(Object.create(xe().prototype),at.prototype,{constructor:Ee,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]: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)(.7854)),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)(!1)),new(r())(u().inputOutput,"jump",new(o().SFBool)(!0)),new(r())(u().inputOutput,"retainUserOffsets",new(o().SFBool)),new(r())(u().inputOutput,"navType",new(o().MFString)("EXAMINE","ANY")),new(r())(u().inputOutput,"headlight",new(o().SFBool)(!0)),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))]),getTypeName:function(){return"GeoViewpoint"},getComponentName:function(){return"Geospatial"},getContainerField:function(){return"children"},initialize:function(){xe().prototype.initialize.call(this),at.prototype.initialize.call(this);const t=this.getBrowser().getContext();this.logarithmicDepthBuffer=t.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.setup(),this.set_position__()},getRelativeTransformation:Ne().prototype.getRelativeTransformation,setInterpolators:Ne().prototype.setInterpolators,getFieldOfView:Ne().prototype.getFieldOfView,getScreenScale:Ne().prototype.getScreenScale,getViewportSize:Ne().prototype.getViewportSize,getLookAtDistance:Ne().prototype.getLookAtDistance,getProjectionMatrixWithLimits:Ne().prototype.getProjectionMatrixWithLimits,getLogarithmicDepthBuffer:function(){return this.logarithmicDepthBuffer},setPosition:function(){const t=new(S())(0,0,0);return function(e){this._position.setValue(this.getGeoCoord(e,t))}}(),getPosition:function(){const t=new(S())(0,0,0);return function(){return this.getCoord(this._position.getValue(),t)}}(),set_position__:function(){const t=new(S())(0,0,0);return function(){this.getCoord(this._position.getValue(),t),this.elevation=this.getGeoElevation(t.add(this._positionOffset.getValue()))}}(),setOrientation:function(){const t=new(H()),e=new(De())(0,0,1,0);return function(i){const n=this.getLocationMatrix(this._position.getValue(),t).submatrix;e.setMatrix(n),this._orientation.setValue(e.inverse().multLeft(i))}}(),getOrientation:function(){const t=new(H()),e=new(De())(0,0,1,0);return function(){const i=this.getLocationMatrix(this._position.getValue(),t).submatrix;return e.setMatrix(i),e.multLeft(this._orientation.getValue())}}(),getCenterOfRotation:function(){const t=new(S())(0,0,0);return function(){return this.getCoord(this._centerOfRotation.getValue(),t)}}(),getMaxFarValue:function(){return 1e10},getUpVector:function(){const t=new(S())(0,0,0),e=new(S())(0,0,0);return function(i=!1){return!i||this.getUserPosition().magnitude()<65e5?(this.getCoord(this._position.getValue(),t),this.getGeoUpVector(t.add(this._positionOffset.getValue()),e)):e.assign(S().zAxis)}}(),getSpeedFactor:function(){return(Math.max(this.elevation,0)+10)/10*this._speedFactor.getValue()},dispose:function(){at.prototype.dispose.call(this),xe().prototype.dispose.call(this)}});const ze=Ee;g().set("x_ite/Components/Geospatial/GeoViewpoint",ze);const je=ze;i().addComponent({name:"Geospatial",types:{GeoCoordinate:ut,GeoElevationGrid:yt,GeoLOD:zt,GeoLocation:Lt,GeoMetadata:Yt,GeoOrigin:$t,GeoPositionInterpolator:oe,GeoProximitySensor:ue,GeoTouchSensor:ye,GeoTransform:Fe,GeoViewpoint:je},abstractTypes:{X3DGeospatialObject:at}});const Xe=void 0;g().set("assets/components/Geospatial",Xe)})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v8.
|
|
1
|
+
/* X_ITE v8.5.3 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,25 +39,25 @@ var __webpack_exports__ = {};
|
|
|
39
39
|
// UNUSED EXPORTS: default
|
|
40
40
|
|
|
41
41
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
42
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components");
|
|
43
43
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
44
44
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
45
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
45
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Fields");
|
|
46
46
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
47
47
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
48
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
48
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
49
49
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
50
50
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
51
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
51
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
52
52
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
53
53
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DGeometricPropertyNode\")"
|
|
54
|
-
const X3DGeometricPropertyNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
54
|
+
const X3DGeometricPropertyNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Rendering/X3DGeometricPropertyNode");
|
|
55
55
|
var X3DGeometricPropertyNode_default = /*#__PURE__*/__webpack_require__.n(X3DGeometricPropertyNode_namespaceObject);
|
|
56
56
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
57
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
57
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Base/X3DConstants");
|
|
58
58
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
59
59
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
60
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
60
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Namespace");
|
|
61
61
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
62
62
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimDisplacer.js
|
|
63
63
|
/*******************************************************************************
|
|
@@ -153,28 +153,28 @@ const __default__ = HAnimDisplacer;
|
|
|
153
153
|
Namespace_default().set ("x_ite/Components/HAnim/HAnimDisplacer", __default__);
|
|
154
154
|
/* harmony default export */ const HAnim_HAnimDisplacer = (__default__);
|
|
155
155
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
|
156
|
-
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
156
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Core/X3DChildNode");
|
|
157
157
|
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
|
158
158
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/Group\")"
|
|
159
|
-
const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
159
|
+
const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Grouping/Group");
|
|
160
160
|
var Group_default = /*#__PURE__*/__webpack_require__.n(Group_namespaceObject);
|
|
161
161
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/Transform\")"
|
|
162
|
-
const Transform_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
162
|
+
const Transform_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Grouping/Transform");
|
|
163
163
|
var Transform_default = /*#__PURE__*/__webpack_require__.n(Transform_namespaceObject);
|
|
164
164
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
|
|
165
|
-
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
165
|
+
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
|
|
166
166
|
var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
|
|
167
167
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
|
|
168
|
-
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
168
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Rendering/TraverseType");
|
|
169
169
|
var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
|
|
170
170
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
171
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
171
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Base/X3DCast");
|
|
172
172
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
173
173
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
174
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
174
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("standard/Math/Numbers/Matrix4");
|
|
175
175
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
176
176
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
177
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
177
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("standard/Math/Numbers/Vector3");
|
|
178
178
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
179
179
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimHumanoid.js
|
|
180
180
|
/*******************************************************************************
|
|
@@ -249,8 +249,8 @@ function HAnimHumanoid (executionContext)
|
|
|
249
249
|
this ._bboxSize .setUnit ("length");
|
|
250
250
|
this ._bboxCenter .setUnit ("length");
|
|
251
251
|
|
|
252
|
-
this .viewpointsNode = new (Group_default()) (executionContext);
|
|
253
252
|
this .skeletonNode = new (Group_default()) (executionContext);
|
|
253
|
+
this .viewpointsNode = new (Group_default()) (executionContext);
|
|
254
254
|
this .skinNode = new (Group_default()) (executionContext);
|
|
255
255
|
this .transformNode = new (Transform_default()) (executionContext);
|
|
256
256
|
this .jointNodes = [ ];
|
|
@@ -258,6 +258,7 @@ function HAnimHumanoid (executionContext)
|
|
|
258
258
|
this .skinCoordNode = null;
|
|
259
259
|
this .restNormalNode = null;
|
|
260
260
|
this .restCoordNode = null;
|
|
261
|
+
this .changed = false;
|
|
261
262
|
}
|
|
262
263
|
|
|
263
264
|
HAnimHumanoid .prototype = Object .assign (Object .create ((X3DChildNode_default()).prototype),
|
|
@@ -285,12 +286,12 @@ HAnimHumanoid .prototype = Object .assign (Object .create ((X3DChildNode_default
|
|
|
285
286
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
|
|
286
287
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
|
|
287
288
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f ()),
|
|
289
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "skeleton", new (Fields_default()).MFNode ()),
|
|
288
290
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "viewpoints", new (Fields_default()).MFNode ()),
|
|
289
291
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "sites", new (Fields_default()).MFNode ()),
|
|
290
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "joints", new (Fields_default()).MFNode ()),
|
|
291
292
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "segments", new (Fields_default()).MFNode ()),
|
|
293
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "joints", new (Fields_default()).MFNode ()),
|
|
292
294
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "motions", new (Fields_default()).MFNode ()),
|
|
293
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "skeleton", new (Fields_default()).MFNode ()),
|
|
294
295
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "skinBindingNormal", new (Fields_default()).SFNode ()),
|
|
295
296
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "skinBindingCoord", new (Fields_default()).SFNode ()),
|
|
296
297
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "skinNormal", new (Fields_default()).SFNode ()),
|
|
@@ -316,19 +317,19 @@ HAnimHumanoid .prototype = Object .assign (Object .create ((X3DChildNode_default
|
|
|
316
317
|
|
|
317
318
|
// Groups
|
|
318
319
|
|
|
319
|
-
this .viewpointsNode .setAllowedTypes ((X3DConstants_default()).HAnimSite);
|
|
320
320
|
this .skeletonNode .setAllowedTypes ((X3DConstants_default()).HAnimJoint, (X3DConstants_default()).HAnimSite);
|
|
321
|
+
this .viewpointsNode .setAllowedTypes ((X3DConstants_default()).HAnimSite);
|
|
321
322
|
|
|
322
|
-
this ._viewpoints .addFieldInterest (this .viewpointsNode ._children);
|
|
323
323
|
this ._skeleton .addFieldInterest (this .skeletonNode ._children);
|
|
324
|
+
this ._viewpoints .addFieldInterest (this .viewpointsNode ._children);
|
|
324
325
|
this ._skin .addFieldInterest (this .skinNode ._children);
|
|
325
326
|
|
|
326
|
-
this .viewpointsNode ._children = this ._viewpoints;
|
|
327
327
|
this .skeletonNode ._children = this ._skeleton;
|
|
328
|
+
this .viewpointsNode ._children = this ._viewpoints;
|
|
328
329
|
this .skinNode ._children = this ._skin;
|
|
329
330
|
|
|
330
|
-
this .viewpointsNode .setPrivate (true);
|
|
331
331
|
this .skeletonNode .setPrivate (true);
|
|
332
|
+
this .viewpointsNode .setPrivate (true);
|
|
332
333
|
this .skinNode .setPrivate (true);
|
|
333
334
|
|
|
334
335
|
// Transform
|
|
@@ -352,15 +353,15 @@ HAnimHumanoid .prototype = Object .assign (Object .create ((X3DChildNode_default
|
|
|
352
353
|
this .transformNode ._bboxDisplay = this ._bboxDisplay;
|
|
353
354
|
this .transformNode ._bboxSize = this ._bboxSize;
|
|
354
355
|
this .transformNode ._bboxCenter = this ._bboxCenter;
|
|
355
|
-
this .transformNode ._children = [ this .
|
|
356
|
+
this .transformNode ._children = [ this .skeletonNode, this .viewpointsNode, this .skinNode ];
|
|
356
357
|
|
|
357
358
|
this .transformNode ._isCameraObject .addFieldInterest (this ._isCameraObject);
|
|
358
359
|
this .transformNode ._isPickableObject .addFieldInterest (this ._isPickableObject);
|
|
359
360
|
|
|
360
361
|
// Setup
|
|
361
362
|
|
|
362
|
-
this .viewpointsNode .setup ();
|
|
363
363
|
this .skeletonNode .setup ();
|
|
364
|
+
this .viewpointsNode .setup ();
|
|
364
365
|
this .skinNode .setup ();
|
|
365
366
|
this .transformNode .setup ();
|
|
366
367
|
|
|
@@ -385,6 +386,9 @@ HAnimHumanoid .prototype = Object .assign (Object .create ((X3DChildNode_default
|
|
|
385
386
|
{
|
|
386
387
|
const jointNodes = this .jointNodes;
|
|
387
388
|
|
|
389
|
+
for (const jointNode of jointNodes)
|
|
390
|
+
jointNode .removeInterest ("set_joint__", this);
|
|
391
|
+
|
|
388
392
|
jointNodes .length = 0;
|
|
389
393
|
|
|
390
394
|
for (const node of this ._joints)
|
|
@@ -394,6 +398,15 @@ HAnimHumanoid .prototype = Object .assign (Object .create ((X3DChildNode_default
|
|
|
394
398
|
if (jointNode)
|
|
395
399
|
jointNodes .push (jointNode);
|
|
396
400
|
}
|
|
401
|
+
|
|
402
|
+
for (const jointNode of jointNodes)
|
|
403
|
+
jointNode .addInterest ("set_joint__", this);
|
|
404
|
+
|
|
405
|
+
this .set_joint__ ();
|
|
406
|
+
},
|
|
407
|
+
set_joint__: function ()
|
|
408
|
+
{
|
|
409
|
+
this .changed = true;
|
|
397
410
|
},
|
|
398
411
|
set_skinNormal__: function ()
|
|
399
412
|
{
|
|
@@ -403,6 +416,8 @@ HAnimHumanoid .prototype = Object .assign (Object .create ((X3DChildNode_default
|
|
|
403
416
|
|
|
404
417
|
if (this .skinNormalNode)
|
|
405
418
|
this .restNormalNode = this .skinNormalNode .copy ();
|
|
419
|
+
|
|
420
|
+
this .changed = true;
|
|
406
421
|
},
|
|
407
422
|
set_skinCoord__: function ()
|
|
408
423
|
{
|
|
@@ -411,16 +426,23 @@ HAnimHumanoid .prototype = Object .assign (Object .create ((X3DChildNode_default
|
|
|
411
426
|
this .skinCoordNode = X3DCast_default() ((X3DConstants_default()).X3DCoordinateNode, this ._skinCoord);
|
|
412
427
|
|
|
413
428
|
if (this .skinCoordNode)
|
|
429
|
+
{
|
|
414
430
|
this .restCoordNode = this .skinCoordNode .copy ();
|
|
431
|
+
|
|
432
|
+
delete this .skinning;
|
|
433
|
+
}
|
|
434
|
+
else
|
|
435
|
+
{
|
|
436
|
+
this .skinning = Function .prototype
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
this .changed = true;
|
|
415
440
|
},
|
|
416
441
|
traverse: function (type, renderObject)
|
|
417
442
|
{
|
|
418
|
-
renderObject .getJoints () .length = 0;
|
|
419
|
-
|
|
420
443
|
this .transformNode .traverse (type, renderObject);
|
|
421
444
|
|
|
422
|
-
|
|
423
|
-
this .skinning (type, renderObject);
|
|
445
|
+
this .skinning (type, renderObject);
|
|
424
446
|
},
|
|
425
447
|
skinning: (function ()
|
|
426
448
|
{
|
|
@@ -436,11 +458,13 @@ HAnimHumanoid .prototype = Object .assign (Object .create ((X3DChildNode_default
|
|
|
436
458
|
if (type !== (TraverseType_default()).CAMERA)
|
|
437
459
|
return;
|
|
438
460
|
|
|
439
|
-
if (!
|
|
461
|
+
if (!this .changed)
|
|
440
462
|
return;
|
|
441
463
|
|
|
464
|
+
this .changed = false;
|
|
465
|
+
|
|
442
466
|
const
|
|
443
|
-
jointNodes = this .jointNodes
|
|
467
|
+
jointNodes = this .jointNodes,
|
|
444
468
|
skinNormalNode = this .skinNormalNode,
|
|
445
469
|
skinCoordNode = this .skinCoordNode,
|
|
446
470
|
restNormalNode = this .restNormalNode,
|
|
@@ -531,7 +555,7 @@ const HAnimHumanoid_default_ = HAnimHumanoid;
|
|
|
531
555
|
Namespace_default().set ("x_ite/Components/HAnim/HAnimHumanoid", HAnimHumanoid_default_);
|
|
532
556
|
/* harmony default export */ const HAnim_HAnimHumanoid = (HAnimHumanoid_default_);
|
|
533
557
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DTransformNode\")"
|
|
534
|
-
const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
558
|
+
const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Grouping/X3DTransformNode");
|
|
535
559
|
var X3DTransformNode_default = /*#__PURE__*/__webpack_require__.n(X3DTransformNode_namespaceObject);
|
|
536
560
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimJoint.js
|
|
537
561
|
/*******************************************************************************
|
|
@@ -647,7 +671,8 @@ HAnimJoint .prototype = Object .assign (Object .create ((X3DTransformNode_defaul
|
|
|
647
671
|
{
|
|
648
672
|
X3DTransformNode_default().prototype.initialize.call (this);
|
|
649
673
|
|
|
650
|
-
this .
|
|
674
|
+
this ._skinCoordIndex .addInterest ("set_skinCoordIndex__", this);
|
|
675
|
+
this ._displacers .addInterest ("set_displacers__", this);
|
|
651
676
|
|
|
652
677
|
this .set_displacers__ ();
|
|
653
678
|
},
|
|
@@ -663,6 +688,10 @@ HAnimJoint .prototype = Object .assign (Object .create ((X3DTransformNode_defaul
|
|
|
663
688
|
{
|
|
664
689
|
return this .displacerNodes;
|
|
665
690
|
},
|
|
691
|
+
set_skinCoordIndex__: function ()
|
|
692
|
+
{
|
|
693
|
+
this .set_cameraObjects__ ();
|
|
694
|
+
},
|
|
666
695
|
set_displacers__: function ()
|
|
667
696
|
{
|
|
668
697
|
const displacerNodes = this .displacerNodes;
|
|
@@ -682,11 +711,7 @@ HAnimJoint .prototype = Object .assign (Object .create ((X3DTransformNode_defaul
|
|
|
682
711
|
if (type === (TraverseType_default()).CAMERA)
|
|
683
712
|
{
|
|
684
713
|
if (this ._skinCoordIndex .length)
|
|
685
|
-
{
|
|
686
|
-
renderObject .getJoints () .push (this);
|
|
687
|
-
|
|
688
714
|
this .modelMatrix .assign (this .getMatrix ()) .multRight (renderObject .getModelViewMatrix () .get ());
|
|
689
|
-
}
|
|
690
715
|
}
|
|
691
716
|
|
|
692
717
|
X3DTransformNode_default().prototype.traverse.call (this, type, renderObject);
|
|
@@ -696,11 +721,7 @@ HAnimJoint .prototype = Object .assign (Object .create ((X3DTransformNode_defaul
|
|
|
696
721
|
if (type === (TraverseType_default()).CAMERA)
|
|
697
722
|
{
|
|
698
723
|
if (this ._skinCoordIndex .length)
|
|
699
|
-
{
|
|
700
|
-
renderObject .getJoints () .push (this);
|
|
701
|
-
|
|
702
724
|
this .modelMatrix .assign (renderObject .getModelViewMatrix () .get ());
|
|
703
|
-
}
|
|
704
725
|
}
|
|
705
726
|
|
|
706
727
|
X3DTransformNode_default().prototype.groupTraverse.call (this, type, renderObject);
|
|
@@ -821,7 +842,7 @@ const HAnimMotion_default_ = HAnimMotion;
|
|
|
821
842
|
Namespace_default().set ("x_ite/Components/HAnim/HAnimMotion", HAnimMotion_default_);
|
|
822
843
|
/* harmony default export */ const HAnim_HAnimMotion = (HAnimMotion_default_);
|
|
823
844
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
|
|
824
|
-
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
845
|
+
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
|
|
825
846
|
var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
|
|
826
847
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimSegment.js
|
|
827
848
|
/*******************************************************************************
|