x_ite 8.8.6 → 8.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Makefile +6 -0
- package/build/docs/nodes.pl +434 -0
- package/dist/assets/components/Annotation.js +14 -14
- 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 -28
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +14 -14
- 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 +52 -40
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +19 -19
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +27 -27
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +26 -26
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +76 -74
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +18 -18
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +29 -30
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +37 -37
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +24 -24
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +23 -23
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +30 -30
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +21 -21
- 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 +1002 -133
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +2 -2
- package/docs/_posts/components/CADGeometry/CADAssembly.md +47 -21
- package/docs/_posts/components/CADGeometry/CADFace.md +47 -21
- package/docs/_posts/components/CADGeometry/CADLayer.md +50 -21
- package/docs/_posts/components/CADGeometry/CADPart.md +56 -26
- package/docs/_posts/components/CADGeometry/IndexedQuadSet.md +55 -26
- package/docs/_posts/components/CADGeometry/QuadSet.md +52 -20
- package/docs/_posts/components/Core/MetadataBoolean.md +27 -36
- package/docs/_posts/components/Core/MetadataDouble.md +31 -16
- package/docs/_posts/components/Core/MetadataFloat.md +31 -16
- package/docs/_posts/components/Core/MetadataInteger.md +31 -16
- package/docs/_posts/components/Core/MetadataSet.md +30 -15
- package/docs/_posts/components/Core/MetadataString.md +31 -16
- package/docs/_posts/components/Core/WorldInfo.md +21 -10
- package/docs/_posts/components/CubeMapTexturing/ComposedCubeMapTexture.md +39 -30
- package/docs/_posts/components/CubeMapTexturing/GeneratedCubeMapTexture.md +19 -10
- package/docs/_posts/components/CubeMapTexturing/ImageCubeMapTexture.md +22 -18
- package/docs/_posts/components/DIS/DISEntityManager.md +43 -18
- package/docs/_posts/components/DIS/DISEntityTypeMapping.md +43 -34
- package/docs/_posts/components/DIS/EspduTransform.md +211 -78
- package/docs/_posts/components/DIS/ReceiverPdu.md +95 -45
- package/docs/_posts/components/DIS/SignalPdu.md +98 -44
- package/docs/_posts/components/DIS/TransmitterPdu.md +118 -68
- package/docs/_posts/components/EnvironmentalEffects/Background.md +80 -39
- package/docs/_posts/components/EnvironmentalEffects/Fog.md +39 -18
- package/docs/_posts/components/EnvironmentalEffects/FogCoordinate.md +10 -6
- package/docs/_posts/components/EnvironmentalEffects/LocalFog.md +21 -14
- package/docs/_posts/components/EnvironmentalEffects/TextureBackground.md +83 -31
- package/docs/_posts/components/EnvironmentalSensor/ProximitySensor.md +36 -8
- package/docs/_posts/components/EnvironmentalSensor/TransformSensor.md +31 -7
- package/docs/_posts/components/EnvironmentalSensor/VisibilitySensor.md +23 -7
- package/docs/_posts/components/EventUtilities/BooleanFilter.md +27 -14
- package/docs/_posts/components/EventUtilities/BooleanSequencer.md +46 -17
- package/docs/_posts/components/EventUtilities/BooleanToggle.md +29 -8
- package/docs/_posts/components/EventUtilities/BooleanTrigger.md +24 -7
- package/docs/_posts/components/EventUtilities/IntegerSequencer.md +46 -17
- package/docs/_posts/components/EventUtilities/IntegerTrigger.md +34 -9
- package/docs/_posts/components/EventUtilities/TimeTrigger.md +30 -9
- package/docs/_posts/components/Followers/ColorChaser.md +35 -11
- package/docs/_posts/components/Followers/ColorDamper.md +32 -12
- package/docs/_posts/components/Followers/CoordinateChaser.md +33 -9
- package/docs/_posts/components/Followers/CoordinateDamper.md +30 -10
- package/docs/_posts/components/Followers/OrientationChaser.md +34 -10
- package/docs/_posts/components/Followers/OrientationDamper.md +31 -11
- package/docs/_posts/components/Followers/PositionChaser.md +33 -9
- package/docs/_posts/components/Followers/PositionChaser2D.md +33 -9
- package/docs/_posts/components/Followers/PositionDamper.md +30 -10
- package/docs/_posts/components/Followers/PositionDamper2D.md +30 -10
- package/docs/_posts/components/Followers/ScalarChaser.md +33 -9
- package/docs/_posts/components/Followers/ScalarDamper.md +30 -10
- package/docs/_posts/components/Followers/TexCoordChaser2D.md +33 -9
- package/docs/_posts/components/Followers/TexCoordDamper2D.md +30 -10
- package/docs/_posts/components/Geometry2D/Arc2D.md +39 -14
- package/docs/_posts/components/Geometry2D/ArcClose2D.md +43 -19
- package/docs/_posts/components/Geometry2D/Circle2D.md +21 -10
- package/docs/_posts/components/Geometry2D/Disk2D.md +32 -14
- package/docs/_posts/components/Geometry2D/Polyline2D.md +25 -10
- package/docs/_posts/components/Geometry2D/Polypoint2D.md +16 -8
- package/docs/_posts/components/Geometry2D/Rectangle2D.md +23 -12
- package/docs/_posts/components/Geometry2D/TriangleSet2D.md +23 -12
- package/docs/_posts/components/Geometry3D/Box.md +26 -13
- package/docs/_posts/components/Geometry3D/Cone.md +31 -23
- package/docs/_posts/components/Geometry3D/Cylinder.md +32 -28
- package/docs/_posts/components/Geometry3D/ElevationGrid.md +75 -31
- package/docs/_posts/components/Geometry3D/Extrusion.md +100 -48
- package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +95 -43
- package/docs/_posts/components/Geometry3D/Sphere.md +25 -13
- package/docs/_posts/components/Geospatial/GeoCoordinate.md +30 -14
- package/docs/_posts/components/Geospatial/GeoElevationGrid.md +85 -40
- package/docs/_posts/components/Geospatial/GeoLOD.md +69 -30
- package/docs/_posts/components/Geospatial/GeoLocation.md +66 -28
- package/docs/_posts/components/Geospatial/GeoMetadata.md +28 -22
- package/docs/_posts/components/Geospatial/GeoOrigin.md +34 -19
- package/docs/_posts/components/Geospatial/GeoPositionInterpolator.md +64 -18
- package/docs/_posts/components/Geospatial/GeoProximitySensor.md +67 -18
- package/docs/_posts/components/Geospatial/GeoTouchSensor.md +66 -21
- package/docs/_posts/components/Geospatial/GeoTransform.md +74 -30
- package/docs/_posts/components/Geospatial/GeoViewpoint.md +88 -41
- package/docs/_posts/components/Grouping/Group.md +34 -18
- package/docs/_posts/components/Grouping/StaticGroup.md +39 -18
- package/docs/_posts/components/Grouping/Switch.md +41 -22
- package/docs/_posts/components/Grouping/Transform.md +47 -30
- package/docs/_posts/components/HAnim/HAnimDisplacer.md +48 -37
- package/docs/_posts/components/HAnim/HAnimHumanoid.md +245 -55
- package/docs/_posts/components/HAnim/HAnimJoint.md +136 -70
- package/docs/_posts/components/HAnim/HAnimMotion.md +128 -18
- package/docs/_posts/components/HAnim/HAnimSegment.md +92 -52
- package/docs/_posts/components/HAnim/HAnimSite.md +95 -52
- package/docs/_posts/components/Interpolation/ColorInterpolator.md +41 -11
- package/docs/_posts/components/Interpolation/CoordinateInterpolator.md +39 -13
- package/docs/_posts/components/Interpolation/CoordinateInterpolator2D.md +43 -14
- package/docs/_posts/components/Interpolation/EaseInEaseOut.md +36 -12
- package/docs/_posts/components/Interpolation/NormalInterpolator.md +40 -10
- package/docs/_posts/components/Interpolation/OrientationInterpolator.md +40 -10
- package/docs/_posts/components/Interpolation/PositionInterpolator.md +40 -10
- package/docs/_posts/components/Interpolation/PositionInterpolator2D.md +43 -14
- package/docs/_posts/components/Interpolation/ScalarInterpolator.md +39 -13
- package/docs/_posts/components/Interpolation/SplinePositionInterpolator.md +41 -16
- package/docs/_posts/components/Interpolation/SplinePositionInterpolator2D.md +41 -16
- package/docs/_posts/components/Interpolation/SplineScalarInterpolator.md +40 -24
- package/docs/_posts/components/Interpolation/SquadOrientationInterpolator.md +35 -11
- package/docs/_posts/components/KeyDeviceSensor/KeySensor.md +51 -9
- package/docs/_posts/components/KeyDeviceSensor/StringSensor.md +31 -9
- package/docs/_posts/components/Layering/Layer.md +39 -14
- package/docs/_posts/components/Layering/LayerSet.md +21 -15
- package/docs/_posts/components/Layering/Viewport.md +34 -18
- package/docs/_posts/components/Layout/Layout.md +28 -17
- package/docs/_posts/components/Layout/LayoutGroup.md +37 -21
- package/docs/_posts/components/Layout/LayoutLayer.md +40 -15
- package/docs/_posts/components/Layout/ScreenFontStyle.md +74 -47
- package/docs/_posts/components/Layout/ScreenGroup.md +35 -19
- package/docs/_posts/components/Lighting/DirectionalLight.md +23 -15
- package/docs/_posts/components/Lighting/EnvironmentLight.md +7 -11
- package/docs/_posts/components/Lighting/PointLight.md +27 -15
- package/docs/_posts/components/Lighting/SpotLight.md +36 -23
- package/docs/_posts/components/NURBS/Contour2D.md +17 -9
- package/docs/_posts/components/NURBS/ContourPolyline2D.md +10 -6
- package/docs/_posts/components/NURBS/CoordinateDouble.md +13 -9
- package/docs/_posts/components/NURBS/NurbsCurve.md +16 -12
- package/docs/_posts/components/NURBS/NurbsCurve2D.md +15 -11
- package/docs/_posts/components/NURBS/NurbsOrientationInterpolator.md +31 -15
- package/docs/_posts/components/NURBS/NurbsPatchSurface.md +29 -23
- package/docs/_posts/components/NURBS/NurbsPositionInterpolator.md +30 -14
- package/docs/_posts/components/NURBS/NurbsSet.md +51 -17
- package/docs/_posts/components/NURBS/NurbsSurfaceInterpolator.md +48 -28
- package/docs/_posts/components/NURBS/NurbsSweptSurface.md +31 -14
- package/docs/_posts/components/NURBS/NurbsSwungSurface.md +25 -14
- package/docs/_posts/components/NURBS/NurbsTextureCoordinate.md +26 -22
- package/docs/_posts/components/NURBS/NurbsTrimmedSurface.md +36 -26
- package/docs/_posts/components/Navigation/Billboard.md +35 -19
- package/docs/_posts/components/Navigation/Collision.md +61 -24
- package/docs/_posts/components/Navigation/LOD.md +55 -25
- package/docs/_posts/components/Navigation/NavigationInfo.md +69 -26
- package/docs/_posts/components/Navigation/OrthoViewpoint.md +89 -38
- package/docs/_posts/components/Navigation/Viewpoint.md +95 -40
- package/docs/_posts/components/Navigation/ViewpointGroup.md +29 -18
- package/docs/_posts/components/Networking/Anchor.md +56 -58
- package/docs/_posts/components/Networking/Inline.md +44 -31
- package/docs/_posts/components/Networking/LoadSensor.md +43 -11
- package/docs/_posts/components/ParticleSystems/BoundedPhysicsModel.md +16 -8
- package/docs/_posts/components/ParticleSystems/ConeEmitter.md +31 -12
- package/docs/_posts/components/ParticleSystems/ExplosionEmitter.md +23 -12
- package/docs/_posts/components/ParticleSystems/ForcePhysicsModel.md +15 -8
- package/docs/_posts/components/ParticleSystems/ParticleSystem.md +110 -55
- package/docs/_posts/components/ParticleSystems/PointEmitter.md +25 -14
- package/docs/_posts/components/ParticleSystems/PolylineEmitter.md +28 -16
- package/docs/_posts/components/ParticleSystems/SurfaceEmitter.md +25 -14
- package/docs/_posts/components/ParticleSystems/VolumeEmitter.md +35 -16
- package/docs/_posts/components/ParticleSystems/WindPhysicsModel.md +12 -8
- package/docs/_posts/components/Picking/LinePickSensor.md +57 -31
- package/docs/_posts/components/Picking/PickableGroup.md +44 -26
- package/docs/_posts/components/Picking/PointPickSensor.md +47 -26
- package/docs/_posts/components/Picking/PrimitivePickSensor.md +43 -31
- package/docs/_posts/components/Picking/VolumePickSensor.md +43 -26
- package/docs/_posts/components/PointingDeviceSensor/CylinderSensor.md +46 -21
- package/docs/_posts/components/PointingDeviceSensor/PlaneSensor.md +43 -20
- package/docs/_posts/components/PointingDeviceSensor/SphereSensor.md +37 -15
- package/docs/_posts/components/PointingDeviceSensor/TouchSensor.md +50 -16
- package/docs/_posts/components/Rendering/ClipPlane.md +21 -16
- package/docs/_posts/components/Rendering/Color.md +14 -14
- package/docs/_posts/components/Rendering/ColorRGBA.md +13 -9
- package/docs/_posts/components/Rendering/Coordinate.md +11 -7
- package/docs/_posts/components/Rendering/IndexedLineSet.md +55 -27
- package/docs/_posts/components/Rendering/IndexedTriangleFanSet.md +44 -23
- package/docs/_posts/components/Rendering/IndexedTriangleSet.md +45 -24
- package/docs/_posts/components/Rendering/IndexedTriangleStripSet.md +45 -20
- package/docs/_posts/components/Rendering/LineSet.md +26 -14
- package/docs/_posts/components/Rendering/Normal.md +28 -6
- package/docs/_posts/components/Rendering/PointSet.md +24 -11
- package/docs/_posts/components/Rendering/TriangleFanSet.md +44 -19
- package/docs/_posts/components/Rendering/TriangleSet.md +44 -19
- package/docs/_posts/components/Rendering/TriangleStripSet.md +45 -20
- package/docs/_posts/components/RigidBodyPhysics/BallJoint.md +24 -12
- package/docs/_posts/components/RigidBodyPhysics/CollidableOffset.md +40 -17
- package/docs/_posts/components/RigidBodyPhysics/CollidableShape.md +37 -19
- package/docs/_posts/components/RigidBodyPhysics/CollisionCollection.md +24 -19
- package/docs/_posts/components/RigidBodyPhysics/CollisionSensor.md +21 -12
- package/docs/_posts/components/RigidBodyPhysics/CollisionSpace.md +36 -17
- package/docs/_posts/components/RigidBodyPhysics/Contact.md +20 -16
- package/docs/_posts/components/RigidBodyPhysics/DoubleAxisHingeJoint.md +43 -41
- package/docs/_posts/components/RigidBodyPhysics/MotorJoint.md +86 -34
- package/docs/_posts/components/RigidBodyPhysics/RigidBody.md +36 -26
- package/docs/_posts/components/RigidBodyPhysics/RigidBodyCollection.md +36 -20
- package/docs/_posts/components/RigidBodyPhysics/SingleAxisHingeJoint.md +33 -23
- package/docs/_posts/components/RigidBodyPhysics/SliderJoint.md +31 -19
- package/docs/_posts/components/RigidBodyPhysics/UniversalJoint.md +31 -23
- package/docs/_posts/components/Scripting/Script.md +43 -27
- package/docs/_posts/components/Shaders/ComposedShader.md +30 -17
- package/docs/_posts/components/Shaders/FloatVertexAttribute.md +18 -9
- package/docs/_posts/components/Shaders/Matrix3VertexAttribute.md +17 -8
- package/docs/_posts/components/Shaders/Matrix4VertexAttribute.md +17 -8
- package/docs/_posts/components/Shaders/PackagedShader.md +52 -46
- package/docs/_posts/components/Shaders/ProgramShader.md +35 -15
- package/docs/_posts/components/Shaders/ShaderPart.md +27 -18
- package/docs/_posts/components/Shaders/ShaderProgram.md +28 -17
- package/docs/_posts/components/Shape/AcousticProperties.md +38 -10
- package/docs/_posts/components/Shape/Appearance.md +30 -23
- package/docs/_posts/components/Shape/FillProperties.md +19 -12
- package/docs/_posts/components/Shape/LineProperties.md +18 -10
- package/docs/_posts/components/Shape/Material.md +64 -38
- package/docs/_posts/components/Shape/PhysicalMaterial.md +49 -25
- package/docs/_posts/components/Shape/PointProperties.md +23 -24
- package/docs/_posts/components/Shape/Shape.md +38 -20
- package/docs/_posts/components/Shape/TwoSidedMaterial.md +35 -36
- package/docs/_posts/components/Shape/UnlitMaterial.md +29 -17
- package/docs/_posts/components/Sound/Analyser.md +151 -18
- package/docs/_posts/components/Sound/AudioClip.md +82 -32
- package/docs/_posts/components/Sound/AudioDestination.md +85 -9
- package/docs/_posts/components/Sound/BiquadFilter.md +160 -17
- package/docs/_posts/components/Sound/BufferAudioSource.md +184 -28
- package/docs/_posts/components/Sound/ChannelMerger.md +70 -8
- package/docs/_posts/components/Sound/ChannelSelector.md +73 -9
- package/docs/_posts/components/Sound/ChannelSplitter.md +77 -9
- package/docs/_posts/components/Sound/Convolver.md +138 -14
- package/docs/_posts/components/Sound/Delay.md +134 -15
- package/docs/_posts/components/Sound/DynamicsCompressor.md +146 -19
- package/docs/_posts/components/Sound/Gain.md +128 -13
- package/docs/_posts/components/Sound/ListenerPointSource.md +121 -12
- package/docs/_posts/components/Sound/MicrophoneSource.md +101 -10
- package/docs/_posts/components/Sound/OscillatorSource.md +107 -12
- package/docs/_posts/components/Sound/PeriodicWave.md +48 -7
- package/docs/_posts/components/Sound/Sound.md +61 -22
- package/docs/_posts/components/Sound/SpatialSound.md +136 -17
- package/docs/_posts/components/Sound/StreamAudioDestination.md +89 -9
- package/docs/_posts/components/Sound/StreamAudioSource.md +101 -10
- package/docs/_posts/components/Sound/WaveShaper.md +138 -15
- package/docs/_posts/components/Text/FontStyle.md +75 -49
- package/docs/_posts/components/Text/Text.md +48 -26
- package/docs/_posts/components/TextureProjector/TextureProjector.md +63 -12
- package/docs/_posts/components/TextureProjector/TextureProjectorParallel.md +64 -12
- package/docs/_posts/components/Texturing/ImageTexture.md +28 -20
- package/docs/_posts/components/Texturing/MovieTexture.md +87 -40
- package/docs/_posts/components/Texturing/MultiTexture.md +47 -19
- package/docs/_posts/components/Texturing/MultiTextureCoordinate.md +27 -10
- package/docs/_posts/components/Texturing/MultiTextureTransform.md +32 -10
- package/docs/_posts/components/Texturing/PixelTexture.md +34 -14
- package/docs/_posts/components/Texturing/TextureCoordinate.md +20 -10
- package/docs/_posts/components/Texturing/TextureCoordinateGenerator.md +22 -12
- package/docs/_posts/components/Texturing/TextureProperties.md +45 -20
- package/docs/_posts/components/Texturing/TextureTransform.md +17 -8
- package/docs/_posts/components/Texturing3D/ComposedTexture3D.md +21 -13
- package/docs/_posts/components/Texturing3D/ImageTexture3D.md +32 -23
- package/docs/_posts/components/Texturing3D/ImageTextureAtlas.md +22 -16
- package/docs/_posts/components/Texturing3D/PixelTexture3D.md +28 -16
- package/docs/_posts/components/Texturing3D/TextureCoordinate3D.md +22 -10
- package/docs/_posts/components/Texturing3D/TextureCoordinate4D.md +21 -9
- package/docs/_posts/components/Texturing3D/TextureTransform3D.md +17 -8
- package/docs/_posts/components/Texturing3D/TextureTransformMatrix3D.md +20 -10
- package/docs/_posts/components/Time/TimeSensor.md +70 -27
- package/docs/_posts/components/VolumeRendering/BlendedVolumeStyle.md +41 -20
- package/docs/_posts/components/VolumeRendering/BoundaryEnhancementVolumeStyle.md +20 -10
- package/docs/_posts/components/VolumeRendering/CartoonVolumeStyle.md +24 -21
- package/docs/_posts/components/VolumeRendering/ComposedVolumeStyle.md +18 -10
- package/docs/_posts/components/VolumeRendering/EdgeEnhancementVolumeStyle.md +22 -14
- package/docs/_posts/components/VolumeRendering/IsoSurfaceVolumeData.md +59 -37
- package/docs/_posts/components/VolumeRendering/OpacityMapVolumeStyle.md +16 -8
- package/docs/_posts/components/VolumeRendering/ProjectionVolumeStyle.md +28 -6
- package/docs/_posts/components/VolumeRendering/SegmentedVolumeData.md +63 -30
- package/docs/_posts/components/VolumeRendering/ShadedVolumeStyle.md +27 -19
- package/docs/_posts/components/VolumeRendering/SilhouetteEnhancementVolumeStyle.md +21 -13
- package/docs/_posts/components/VolumeRendering/ToneMappedVolumeStyle.md +25 -16
- package/docs/_posts/components/VolumeRendering/VolumeData.md +43 -26
- package/docs/_posts/components/X_ITE/BlendMode.md +16 -9
- package/docs/_posts/getting-started.md +1 -0
- package/docs/_posts/laboratory/x3d-file-converter.md +1 -1
- package/docs/_tabs/playground.html +3 -1
- package/docs/assets/css/style.scss +4 -4
- package/package.json +1 -1
- package/src/x_ite/Base/X3DBaseNode.js +1 -1
- package/src/x_ite/Base/X3DInfoArray.js +2 -2
- package/src/x_ite/Browser/Core/X3DCoreContext.js +10 -3
- package/src/x_ite/Browser/DOMIntegration.js +13 -8
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Components/Annotation/GroupAnnotation.js +1 -1
- package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +3 -3
- package/src/x_ite/Components/DIS/DISEntityManager.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoLocation.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoViewpoint.js +18 -6
- package/src/x_ite/Components/Grouping/Switch.js +1 -1
- package/src/x_ite/Components/HAnim/HAnimMotion.js +1 -1
- package/src/x_ite/Components/Layering/X3DLayerNode.js +1 -1
- package/src/x_ite/Components/Lighting/DirectionalLight.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsPatchSurface.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsTrimmedSurface.js +1 -1
- package/src/x_ite/Components/Navigation/Collision.js +1 -1
- package/src/x_ite/Components/Navigation/LOD.js +1 -1
- package/src/x_ite/Components/Navigation/Viewpoint.js +1 -1
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +1 -1
- package/src/x_ite/Components/Networking/LoadSensor.js +1 -1
- package/src/x_ite/Components/ParticleSystems/ConeEmitter.js +9 -9
- package/src/x_ite/Components/ParticleSystems/ExplosionEmitter.js +7 -7
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +1 -1
- package/src/x_ite/Components/ParticleSystems/PointEmitter.js +8 -8
- package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +9 -9
- package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +7 -7
- package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +12 -10
- package/src/x_ite/Components/RigidBodyPhysics/Contact.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/MotorJoint.js +6 -6
- package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +0 -1
- package/src/x_ite/Components/RigidBodyPhysics/UniversalJoint.js +4 -4
- package/src/x_ite/Components/Shape/AcousticProperties.js +1 -1
- package/src/x_ite/Components/Shape/Appearance.js +1 -1
- package/src/x_ite/Components/Shape/FillProperties.js +1 -1
- package/src/x_ite/Components/Shape/Material.js +1 -1
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +1 -1
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +1 -1
- package/src/x_ite/Components/Sound/Analyser.js +2 -2
- package/src/x_ite/Components/Sound/AudioDestination.js +2 -2
- package/src/x_ite/Components/Sound/BiquadFilter.js +3 -3
- package/src/x_ite/Components/Sound/BufferAudioSource.js +2 -2
- package/src/x_ite/Components/Sound/ChannelMerger.js +2 -2
- package/src/x_ite/Components/Sound/ChannelSelector.js +2 -2
- package/src/x_ite/Components/Sound/ChannelSplitter.js +2 -2
- package/src/x_ite/Components/Sound/Convolver.js +2 -2
- package/src/x_ite/Components/Sound/Delay.js +2 -2
- package/src/x_ite/Components/Sound/DynamicsCompressor.js +2 -2
- package/src/x_ite/Components/Sound/Gain.js +2 -2
- package/src/x_ite/Components/Sound/PeriodicWave.js +1 -1
- package/src/x_ite/Components/Sound/StreamAudioDestination.js +2 -2
- package/src/x_ite/Components/Sound/WaveShaper.js +3 -3
- package/src/x_ite/Components/TextureProjector/TextureProjector.js +4 -4
- package/src/x_ite/Components/TextureProjector/TextureProjectorParallel.js +5 -5
- package/src/x_ite/Components/Texturing/PixelTexture.js +1 -1
- package/src/x_ite/Components/Texturing/TextureProperties.js +1 -1
- package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +1 -1
- package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +1 -1
- package/src/x_ite/Components/VolumeRendering/VolumeData.js +1 -1
- package/src/x_ite/Configuration/SupportedComponents.js +2 -2
- package/src/x_ite/Fields/ArrayFields.js +2 -2
- package/src/x_ite/Fields/SFColor.js +1 -1
- package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +1 -1
- package/src/x_ite/Fields/SFRotation.js +3 -3
- package/src/x_ite/Fields/SFVecPrototypeTemplate.js +1 -1
- package/src/x_ite/Parser/GoldenGate.js +16 -5
- package/src/x_ite/Parser/PLYAParser.js +615 -0
- package/src/x_ite/Parser/PLYBParser.js +222 -0
- package/src/x_ite/Parser/STLAParser.js +0 -1
- /package/build/{bin → docs}/components.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.8.6 */(()=>{"use strict";var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components");var i=e.n(t);const n=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Fields");var o=e.n(n);const s=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const a=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Base/FieldDefinitionArray");var l=e.n(a);const h=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Rendering/X3DCoordinateNode");var d=e.n(h);const c=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Base/X3DConstants");var u=e.n(c);const p=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Namespace");var g=e.n(p);function _(e,t){switch(arguments.length){case 0:this.semiMajorAxis=0,this.semiMinorAxis=0;break;case 2:this.semiMajorAxis=e,this.semiMinorAxis=t;break;case 3:const i=arguments[1];this.semiMajorAxis=e,this.semiMinorAxis=e*(1-1/i)}}Object.assign(_.prototype,{getSemiMajorAxis(){return this.semiMajorAxis},getSemiMinorAxis(){return this.semiMinorAxis},toString(){return`${this.semiMajorAxis} ${this.semiMinorAxis}`}});const w=_;g().set("standard/Math/Geometry/Spheroid3",w);const m=w,O={AA:new m(6377563.396,299.3249646,!0),AM:new m(6377340.189,299.3249646,!0),AN:new m(6378160,298.25,!0),BN:new m(6377483.865,299.1528128,!0),BR:new m(6377397.155,299.1528128,!0),CC:new m(6378206.4,294.9786982,!0),CD:new m(6378249.145,293.465,!0),EA:new m(6377276.345,300.8017,!0),EB:new m(6377298.556,300.8017,!0),EC:new m(6377301.243,300.8017,!0),ED:new m(6377295.664,300.8017,!0),EE:new m(6377304.063,300.8017,!0),EF:new m(6377309.613,300.8017,!0),FA:new m(6378155,298.3,!0),HE:new m(6378200,298.3,!0),HO:new m(6378270,297,!0),ID:new m(6378160,298.247,!0),IN:new m(6378388,297,!0),KA:new m(6378245,298.3,!0),RF:new m(6378137,298.257222101,!0),SA:new m(6378160,298.25,!0),WD:new m(6378135,298.26,!0),WE:new m(6378137,298.257223563,!0),SUN:new m(696342e3,1/9e-6,!0),MERCURY:new m(2439700,2439700),VENUS:new m(6051800,6051800),MOON:new m(1738140,1735970),MARS:new m(3395428,3377678),JUPITER:new m(71492e3,66854e3),SATURN:new m(60268e3,54364e3),URANUS:new m(2555e3,24973e3),NEPTUNE:new m(24764e3,24341e3),PLUTO:new m(1153e3,1153e3)};g().set("standard/Geospatial/ReferenceEllipsoids",O);const y=O,b=window[Symbol.for("X_ITE.X3D-8.8.6")].require("standard/Math/Numbers/Vector3");var S=e.n(b);const f=window[Symbol.for("X_ITE.X3D-8.8.6")].require("standard/Math/Algorithm");var v=e.n(f);function I(e,t,i){this.longitudeFirst=!t,this.degrees=!i,this.a=e.getSemiMajorAxis(),this.c=e.getSemiMinorAxis(),this.c2a2=Math.pow(e.getSemiMinorAxis()/this.a,2),this.ecc2=1-this.c2a2}Object.assign(I.prototype,{convert(e,t){const i=e.z;if(this.longitudeFirst)var n=e.y,o=e.x;else n=e.x,o=e.y;return this.degrees&&(n*=Math.PI/180,o*=Math.PI/180),this.convertRadians(n,o,i,t)},convertRadians(e,t,i,n){const o=Math.sin(e),s=Math.pow(o,2),r=Math.cos(e),a=this.a/Math.sqrt(1-this.ecc2*s),l=(a+i)*r;return n.set(l*Math.cos(t),l*Math.sin(t),(a*this.c2a2+i)*o)},apply(e,t){if(this.applyRadians(e,t),this.degrees&&(t.x*=180/Math.PI,t.y*=180/Math.PI),this.longitudeFirst){const e=t.x;t.x=t.y,t.y=e}return t},applyRadians(e,t){const i=e.x,n=e.y,o=e.z,s=Math.sqrt(i*i+n*n);if(0==s)return t.set(Math.PI,0,o-this.c);let r=0,a=Math.atan2(n,i),l=0,h=this.a,d=h,c=this.ecc2;for(let e=0;e<30;++e){const e=l,t=r;r=Math.atan(o/s/(1-c*d/(d+l)));const i=Math.sin(r);if(d=h/Math.sqrt(1-c*i*i),l=s/Math.cos(r)-d,Math.abs(l-e)<.001&&Math.abs(r-t)<1e-10)break}return t.set(r,a,l)},normal(e,t){const i=this.applyRadians(e,t),n=i.x,o=i.y,s=Math.cos(n),r=Math.cos(o)*s,a=Math.sin(o)*s,l=Math.sin(n);return t.set(r,a,l)}});const F=I;g().set("standard/Geospatial/Geodetic",F);const x=F,C=1e7,N=5e5,M=.9996;function j(e,t,i,n){const o=e.getSemiMajorAxis(),s=1-Math.pow(e.getSemiMinorAxis()/o,2),r=s/(1-s),a=(1-Math.sqrt(1-s))/(1+Math.sqrt(1-s));this.southernHemisphere=!i,this.eastingFirst=!n,this.a=o,this.ecc2=s,this.EE=r,this.E8=8*r,this.E9=9*r,this.E252=252*r,this.e1=a,this.A=M*(o*(1-s/4-3*s*s/64-5*s*s*s/256)),this.B=3*a/2-7*a*a*a/32,this.C=21*a*a/16-55*a*a*a*a/32,this.D=151*a*a*a/96,this.E=o*(1-s),this.W=1-s/4-3*s*s/64-5*s*s*s/256,this.X=3*s/8+3*s*s/32+45*s*s*s/1024,this.Y=15*s*s/256+45*s*s*s/1024,this.Z=35*s*s*s/3072,this.longitude0=v().radians(6*t-183),this.geodeticConverter=new x(e,!0,!0)}Object.assign(j.prototype,{convert(e,t){if(this.eastingFirst)var i=e.y,n=e.x;else i=e.x,n=e.y;let o=this.southernHemisphere;i<0&&(o=!this.southernHemisphere,i=-i),o&&(i-=C),n-=N;const s=i/this.A,r=s+this.B*Math.sin(2*s)+this.C*Math.sin(4*s)+this.D*Math.sin(6*s),a=Math.pow(Math.sin(r),2),l=Math.cos(r),h=Math.tan(r),d=this.a/Math.sqrt(1-this.ecc2*a),c=Math.pow(h,2),u=Math.pow(h,8),p=this.EE*c,g=p*p,_=this.E/Math.pow(1-this.ecc2*a,1.5),w=n/(d*M),m=(5+3*c+10*p-4*g-this.E9)*Math.pow(w,4)/24,O=(61+90*c+298*p+45*u-this.E252-3*g)*Math.pow(w,6)/720,y=(5-2*p+28*c-3*g+this.E8+24*u)*Math.pow(w,5)/120,b=r-d*h/_*(w*w/2-m+O),S=this.longitude0+(w-(1+2*c+p)*Math.pow(w,3)/6+y)/l;return this.geodeticConverter.convertRadians(b,S,e.z,t)},apply(e,t){const i=this.geodeticConverter.applyRadians(e,t),n=i.x,o=i.y,s=Math.tan(n),r=Math.cos(n),a=this.EE,l=this.a/Math.sqrt(1-this.ecc2*Math.pow(Math.sin(n),2)),h=s*s,d=h*h*h,c=a*r*r,u=r*(o-this.longitude0),p=this.a*(this.W*n-this.X*Math.sin(2*n)+this.Y*Math.sin(4*n)-this.Z*Math.sin(6*n)),g=M*l*(u+(1-h+c)*Math.pow(u,3)/6+(5-18*d+72*c-58*a)*Math.pow(u,5)/120)+N;let _=M*(p+l*s*(u*u/2+(5-h+9*c+4*c*c)*Math.pow(u,4)/24+(61-58*d+600*c-330*a)*Math.pow(u,6)/720));return n<0?(_+=C,this.southernHemisphere||(_=-_)):this.southernHemisphere&&(_=-_),this.eastingFirst?t.set(g,_,i.z):t.set(_,g,i.z)}});const z=j;g().set("standard/Geospatial/UniversalTransverseMercator",z);const G=z;function V(){}Object.assign(V.prototype,{convert:(e,t)=>t.assign(e),apply:(e,t)=>t.assign(e),slerp(e,t,i){const n=e.magnitude(),o=t.magnitude();return e.normalize(),t.normalize(),v().simpleSlerp(e,t,i).multiply(v().lerp(n,o,i))}});const D=V;g().set("x_ite/Browser/Geospatial/Geocentric",D);const P=D;let E=0;const T=E++,X=E++,k=E++,L={GD:T,GDC:T,UTM:X,GC:k,GCC:k,GS:k},R=/^Z(\d+)$/,A={GD:T,UTM:X,GC:k,getReferenceFrame(e,t){switch(this.getCoordinateSystem(e)){case T:return new x(this.getEllipsoid(e),this.getLatitudeFirst(e),t);case X:return new G(this.getEllipsoid(e),this.getZone(e),this.getNorthernHemisphere(e),this.getNorthingFirst(e));case k:return new P}return new x(y.WE,!0,t)},getElevationFrame(e,t){return new x(this.getEllipsoid(e),!0,t)},getCoordinateSystem(e){for(const t of e){const e=L[t];if(void 0!==e)return e}return T},getEllipsoid(e){for(const t of e){const e=y[t];if(void 0!==e)return e}return y.WE},getEllipsoidString(e){for(const t of e){if(void 0!==y[t])return t}return"WE"},isStandardOrder(e){switch(this.getCoordinateSystem(e)){case T:return this.getLatitudeFirst(e);case X:return this.getNorthingFirst(e);case k:return!0}return this.getLatitudeFirst(e)},getLatitudeFirst(e){for(const t of e)if("longitude_first"===t)return!1;return!0},getNorthingFirst(e){for(const t of e)if("easting_first"===t)return!1;return!0},getZone(e){for(const t of e){const e=t.match(R);if(e)return parseInt(e[1])}return 1},getNorthernHemisphere(e){for(const t of e)if("S"===t)return!1;return!0}};g().set("x_ite/Browser/Geospatial/Geospatial",A);const B=A,U=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Base/X3DCast");var q=e.n(U);const W=window[Symbol.for("X_ITE.X3D-8.8.6")].require("standard/Math/Numbers/Matrix4");var H=e.n(W),Y=new(S())(0,0,0),Z=new(S())(0,0,0),$=new(S())(0,0,0),K=new(S())(0,0,0),J=new(S())(0,0,0),Q=new(S())(0,0,0);function ee(e){this.addType(u().X3DGeospatialObject),this.radians=!1,this.origin=new(S())(0,0,0),this.originMatrix=new(H()),this.invOriginMatrix=new(H())}function te(e,t){return this.invOriginMatrix.multVecMatrix(this.referenceFrame.convert(e,t))}function ie(e,t){return this.referenceFrame.apply(this.originMatrix.multVecMatrix(Y.assign(e)),t)}function ne(e,t){return this.invOriginMatrix.multDirMatrix(this.elevationFrame.normal(this.originMatrix.multVecMatrix(Y.assign(e)),t))}function oe(e,t){return se.call(this,e,t).multRight(this.invOriginMatrix)}function se(e,t){return this.referenceFrame.convert(e,$),this.elevationFrame.normal($,J),K.set(0,0,1).cross(J),K.equals(S().Zero)&&K.set(1,0,0),Q.assign(K).cross(J),K.normalize(),Q.normalize(),t.set(K.x,K.y,K.z,0,J.x,J.y,J.z,0,Q.x,Q.y,Q.z,0,$.x,$.y,$.z,1)}Object.assign(ee.prototype,{initialize(){this._geoSystem.addInterest("set_geoSystem__",this),this._geoOrigin.addInterest("set_geoOrigin__",this),this.set_geoSystem__(),this.set_geoOrigin__()},set_geoSystem__(){this.coordinateSystem=B.getCoordinateSystem(this._geoSystem),this.referenceFrame=B.getReferenceFrame(this._geoSystem,this.radians),this.elevationFrame=B.getElevationFrame(this._geoSystem,this.radians),this.standardOrder=B.isStandardOrder(this._geoSystem)},set_geoOrigin__(){this.geoOriginNode&&(this.geoOriginNode.removeInterest("set_origin__",this),this.geoOriginNode.removeInterest("set_rotateYUp__",this),this.geoOriginNode.removeInterest("addNodeEvent",this)),this.geoOriginNode=q()(u().GeoOrigin,this._geoOrigin),this.geoOriginNode&&(this.geoOriginNode.addInterest("set_origin__",this),this.geoOriginNode.addInterest("set_rotateYUp__",this),this.geoOriginNode.addInterest("addNodeEvent",this)),this.set_origin__(),this.set_rotateYUp__()},set_origin__(){this.geoOriginNode?this.geoOriginNode.getOrigin(this.origin):this.origin.set(0,0,0),this.set_originMatrix__()},set_originMatrix__(){if(this.geoOriginNode){var e=this.origin;this.elevationFrame.normal(e,J),K.set(0,0,1).cross(J),K.equals(S().Zero)&&K.set(1,0,0),Q.assign(K).cross(J),K.normalize(),Q.normalize(),this.originMatrix.set(K.x,K.y,K.z,0,J.x,J.y,J.z,0,Q.x,Q.y,Q.z,0,e.x,e.y,e.z,1),this.invOriginMatrix.assign(this.originMatrix).inverse()}},set_rotateYUp__(){this.geoOriginNode&&this.geoOriginNode._rotateYUp.getValue()?(this.getCoord=te,this.getGeoCoord=ie,this.getGeoUpVector=ne,this.getLocationMatrix=oe):(delete this.getCoord,delete this.getGeoCoord,delete this.getGeoUpVector,delete this.getLocationMatrix)},getReferenceFrame(){return this.referenceFrame},getStandardOrder(){return this.standardOrder},getCoord(e,t){return this.referenceFrame.convert(e,t).subtract(this.origin)},getGeoCoord(e,t){return this.referenceFrame.apply(Y.assign(e).add(this.origin),t)},getGeoElevation(e){return this.getGeoCoord(e,Z).z},getGeoUpVector(e,t){return this.elevationFrame.normal(Y.assign(e).add(this.origin),t)},getLocationMatrix(e,t){var i=this.origin,n=se.call(this,e,t);return n[12]-=i.x,n[13]-=i.y,n[14]-=i.z,n},dispose(){}}),Object.defineProperties(ee,{typeName:{value:"X3DGeospatialObject",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0}});const re=ee;g().set("x_ite/Components/Geospatial/X3DGeospatialObject",re);const ae=re,le=window[Symbol.for("X_ITE.X3D-8.8.6")].require("standard/Math/Geometry/Triangle3");var he=e.n(le);function de(e){d().call(this,e),ae.call(this,e),this.addType(u().GeoCoordinate)}Object.assign(Object.setPrototypeOf(de.prototype,d().prototype),ae.prototype,{initialize(){d().prototype.initialize.call(this),ae.prototype.initialize.call(this)},set1Point:(()=>{const e=new(S())(0,0,0);return function(t,i){this._point[t]=this.getGeoCoord(i,e)}})(),get1Point:(()=>{const e=new(S())(0,0,0);return function(t,i){if(t<this.length){const n=this.point;return t*=3,this.getCoord(e.set(n[t],n[t+1],n[t+2]),i)}return i.set(0,0,0)}})(),addPoint:(()=>{const e=new(S())(0,0,0),t=new(S())(0,0,0);return function(i,n){if(i<this.length){const o=this.point;i*=3,this.getCoord(e.set(o[i],o[i+1],o[i+2]),t),n.push(t[0],t[1],t[2],1)}else n.push(0,0,0,1)}})(),addPoints:(()=>{const e=new(S())(0,0,0),t=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(e.set(o[n],o[n+1],o[n+2]),t),i.push(t[0],t[1],t[2],1);for(let e=3*this.length,t=3*n;e<t;e+=3)i.push(0,0,0,1)}})(),getNormal:(()=>{const e=new(S())(0,0,0),t=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?he().normal(this.get1Point(n,e),this.get1Point(o,t),this.get1Point(s,i),new(S())(0,0,0)):new(S())(0,0,0)}})(),getQuadNormal:(()=>{const e=new(S())(0,0,0),t=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?he().quadNormal(this.get1Point(o,e),this.get1Point(s,t),this.get1Point(r,i),this.get1Point(a,n),new(S())(0,0,0)):new(S())(0,0,0)}})(),dispose(){ae.prototype.dispose.call(this),d().prototype.dispose.call(this)}}),Object.defineProperties(de,{typeName:{value:"GeoCoordinate",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"coord",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"point",new(o().MFVec3d))]),enumerable:!0}});const ce=de;g().set("x_ite/Components/Geospatial/GeoCoordinate",ce);const ue=ce,pe=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Rendering/X3DGeometryNode");var ge=e.n(pe);const _e=window[Symbol.for("X_ITE.X3D-8.8.6")].require("standard/Math/Numbers/Vector2");var we=e.n(_e);function me(e){ge().call(this,e),ae.call(this,e),this.addType(u().GeoElevationGrid),this._creaseAngle.setUnit("angle"),this._height.setUnit("length"),this.colorNode=null,this.texCoordNode=null,this.normalNode=null}Object.assign(Object.setPrototypeOf(me.prototype,ge().prototype),ae.prototype,{initialize(){ge().prototype.initialize.call(this),ae.prototype.initialize.call(this),this._color.addInterest("set_color__",this),this._texCoord.addInterest("set_texCoord__",this),this._normal.addInterest("set_normal__",this),this.set_color__(),this.set_texCoord__(),this.set_normal__()},set_color__(){this.colorNode?.removeInterest("requestRebuild",this),this.colorNode=q()(u().X3DColorNode,this._color),this.colorNode?.addInterest("requestRebuild",this),this.setTransparent(this.colorNode?.isTransparent()??!1)},set_texCoord__(){this.texCoordNode?.removeInterest("requestRebuild",this),this.texCoordNode=q()(u().X3DTextureCoordinateNode,this._texCoord),this.texCoordNode?.addInterest("requestRebuild",this),this.setTextureCoordinate(this.texCoordNode)},set_normal__(){this.normalNode?.removeInterest("requestRebuild",this),this.normalNode=q()(u().X3DNormalNode,this._normal),this.normalNode?.addInterest("requestRebuild",this)},getColor(){return this.colorNode},getTexCoord(){return this.texCoordNode},getNormal(){return this.normalNode},getHeight(e){return e<this._height.length?this._height[e]*this._yScale.getValue():0},createTexCoords(){for(var e=[],t=this._xDimension.getValue(),i=this._zDimension.getValue(),n=t-1,o=i-1,s=0;s<i;++s)for(var r=0;r<t;++r)e.push(new(we())(r/n,s/o));return e},createNormals(e,t,i){for(var n=!this._ccw.getValue(),o=[],s=[],r=0;r<e.length;++r)o[r]=[];for(var a=0;a<t.length;a+=3){var l=t[a],h=t[a+1],d=t[a+2];o[l].push(s.length),o[h].push(s.length+1),o[d].push(s.length+2);var c=he().normal(e[l],e[h],e[d],new(S())(0,0,0));n&&c.negate(),s.push(c),s.push(c),s.push(c)}return this.refineNormals(o,s,this._creaseAngle.getValue())},createCoordIndex(){for(var e=[],t=this._xDimension.getValue(),i=t-1,n=this._zDimension.getValue()-1,o=0;o<n;++o)for(var s=0;s<i;++s){var r=o*t+s,a=(o+1)*t+s,l=(o+1)*t+(s+1),h=o*t+(s+1);e.push(r),e.push(l),e.push(a),e.push(r),e.push(h),e.push(l)}return e},createPoints(){var e=[],t=this._xDimension.getValue(),i=this._zDimension.getValue(),n=this._xSpacing.getValue(),o=this._zSpacing.getValue();if(this.getStandardOrder())for(var s=0;s<i;++s)for(var r=0;r<t;++r){(a=new(S())(o*s,n*r,this.getHeight(r+s*t))).add(this._geoGridOrigin.getValue()),e.push(this.getCoord(a,a))}else for(s=0;s<i;++s)for(r=0;r<t;++r){var a;(a=new(S())(n*r,o*s,this.getHeight(r+s*t))).add(this._geoGridOrigin.getValue()),e.push(this.getCoord(a,a))}return e},build(){if(!(this._xDimension.getValue()<2||this._zDimension.getValue()<2)){var e=this._colorPerVertex.getValue(),t=this._normalPerVertex.getValue(),i=this.createCoordIndex(),n=this.getColor(),o=this.getTexCoord(),s=this.getNormal(),r=this.createPoints(),a=this.getColors(),l=this.getMultiTexCoords(),h=this.getNormals(),d=this.getVertices(),c=0;if(o)o.init(l);else{var u=this.createTexCoords(),p=this.getTexCoords();l.push(p)}for(var g=0;g<i.length;++c)for(var _=0;_<6;++_,++g){var w=i[g],m=r[w];if(n&&(e?n.addColor(w,a):n.addColor(c,a)),o)o.addPoint(w,l);else{var O=u[w];p.push(O.x,O.y,0,1)}s&&(t?s.addVector(w,h):s.addVector(c,h)),d.push(m.x,m.y,m.z,1)}if(!s)for(var y=this.createNormals(r,i),b=0;b<y.length;++b){var S=y[b];h.push(S.x,S.y,S.z)}this.setSolid(this._solid.getValue()),this.setCCW(this._ccw.getValue())}},dispose(){ae.prototype.dispose.call(this),ge().prototype.dispose.call(this)}}),Object.defineProperties(me,{typeName:{value:"GeoElevationGrid",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().initializeOnly,"geoGridOrigin",new(o().SFVec3d)),new(r())(u().initializeOnly,"xDimension",new(o().SFInt32)),new(r())(u().initializeOnly,"zDimension",new(o().SFInt32)),new(r())(u().initializeOnly,"xSpacing",new(o().SFDouble)(1)),new(r())(u().initializeOnly,"zSpacing",new(o().SFDouble)(1)),new(r())(u().inputOutput,"yScale",new(o().SFFloat)(1)),new(r())(u().initializeOnly,"solid",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"ccw",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"creaseAngle",new(o().SFDouble)),new(r())(u().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(r())(u().inputOutput,"color",new(o().SFNode)),new(r())(u().inputOutput,"texCoord",new(o().SFNode)),new(r())(u().inputOutput,"normal",new(o().SFNode)),new(r())(u().inputOutput,"height",new(o().MFDouble)(0,0))]),enumerable:!0}});const Oe=me;g().set("x_ite/Components/Geospatial/GeoElevationGrid",Oe);const ye=Oe,be=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Core/X3DChildNode");var Se=e.n(be);const fe=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Grouping/X3DBoundedObject");var ve=e.n(fe);const Ie=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Rendering/TraverseType");var Fe=e.n(Ie);const xe=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Grouping/Group");var Ce=e.n(xe);const Ne=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Networking/Inline");var Me=e.n(Ne);const je=window[Symbol.for("X_ITE.X3D-8.8.6")].require("standard/Math/Geometry/Box3");var ze=e.n(je),Ge=new(S())(0,0,0);function Ve(e){Se().call(this,e),ve().call(this,e),ae.call(this,e),this.addType(u().GeoLOD),this._range.setUnit("length"),this.unload=!1,this.rootGroup=new(Ce())(this.getBrowser().getPrivateScene()),this.rootInline=new(Me())(e),this.child1Inline=new(Me())(e),this.child2Inline=new(Me())(e),this.child3Inline=new(Me())(e),this.child4Inline=new(Me())(e),this.childrenLoaded=!1,this.childBBox=new(ze()),this.keepCurrentLevel=!1,this.modelViewMatrix=new(H())}Object.assign(Object.setPrototypeOf(Ve.prototype,Se().prototype),ve().prototype,ae.prototype,{initialize(){Se().prototype.initialize.call(this),ve().prototype.initialize.call(this),ae.prototype.initialize.call(this),this._rootNode.addFieldInterest(this.rootGroup._children),this.rootGroup._children=this._rootNode,this.rootGroup.setPrivate(!0),this.rootGroup.setup(),this.rootInline._loadState.addInterest("set_rootLoadState__",this),this.child1Inline._loadState.addInterest("set_childLoadState__",this),this.child2Inline._loadState.addInterest("set_childLoadState__",this),this.child3Inline._loadState.addInterest("set_childLoadState__",this),this.child4Inline._loadState.addInterest("set_childLoadState__",this),this._rootUrl.addFieldInterest(this.rootInline._url),this._child1Url.addFieldInterest(this.child1Inline._url),this._child2Url.addFieldInterest(this.child2Inline._url),this._child3Url.addFieldInterest(this.child3Inline._url),this._child4Url.addFieldInterest(this.child4Inline._url),this.rootInline._load=!0,this.child1Inline._load=!1,this.child2Inline._load=!1,this.child3Inline._load=!1,this.child4Inline._load=!1,this.rootInline._url=this._rootUrl,this.child1Inline._url=this._child1Url,this.child2Inline._url=this._child2Url,this.child3Inline._url=this._child3Url,this.child4Inline._url=this._child4Url,this.rootInline.setup(),this.child1Inline.setup(),this.child2Inline.setup(),this.child3Inline.setup(),this.child4Inline.setup()},getBBox(e,t){if(this._bboxSize.getValue().equals(this.getDefaultBBoxSize())){switch(this.childrenLoaded?this._level_changed.getValue():0){case 0:return this._rootNode.length?this.rootGroup.getBBox(e,t):this.rootInline.getBBox(e,t);case 1:{const i=this.childBBox;return e.set(),e.add(this.child1Inline.getBBox(i,t)),e.add(this.child2Inline.getBBox(i,t)),e.add(this.child3Inline.getBBox(i,t)),e.add(this.child4Inline.getBBox(i,t)),e}}return e.set()}return e.set(this._bboxSize.getValue(),this._bboxCenter.getValue())},set_rootLoadState__(){0===this._level_changed.getValue()&&(this._rootNode.length||this.rootInline.checkLoadState()===u().COMPLETE_STATE&&(this._children=this.rootInline.getInternalScene().getRootNodes(),this.childrenLoaded=!1))},set_childLoadState__(){if(1===this._level_changed.getValue()){var e=0;if(this.child1Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child1Inline.checkLoadState()!==u().FAILED_STATE||++e,this.child2Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child2Inline.checkLoadState()!==u().FAILED_STATE||++e,this.child3Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child3Inline.checkLoadState()!==u().FAILED_STATE||++e,this.child4Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child4Inline.checkLoadState()!==u().FAILED_STATE||++e,4===e){this.childrenLoaded=!0;var t=this._children;t.length=0;for(var i=0,n=(o=this.child1Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i]);for(i=0,n=(o=this.child2Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i]);for(i=0,n=(o=this.child3Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i]);var o;for(i=0,n=(o=this.child4Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i])}}},set_childCameraObject__(){this.setCameraObject(this.child1Inline.isCameraObject()||this.child2Inline.isCameraObject()||this.child3Inline.isCameraObject()||this.child4Inline.isCameraObject())},set_childPickableObject__(){this.setPickableObject(this.child1Inline.isPickableObject()||this.child2Inline.isPickableObject()||this.child3Inline.isPickableObject()||this.child4Inline.isPickableObject())},getLevel(e){return this.getDistance(e)<this._range.getValue()?1:0},getDistance(e){return e.translate(this.getCoord(this._center.getValue(),Ge)),e.origin.magnitude()},traverse(e,t){switch(e){case Fe().PICKING:var i=this.getBrowser().getPickingHierarchy();return i.push(this),this.traverseChildren(e,t),void i.pop();case Fe().DISPLAY:var n=this.getLevel(this.modelViewMatrix.assign(t.getModelViewMatrix().get()));if(n!==this._level_changed.getValue())switch(this._level_changed=n,n){case 0:this.child1Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child2Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child3Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child4Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child1Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child2Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child3Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child4Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this._rootNode.length?(this.rootGroup._isCameraObject.addFieldInterest(this._isCameraObject),this.rootGroup._isPickableObject.addFieldInterest(this._isPickableObject),this.setCameraObject(this.rootGroup.isCameraObject()),this.setPickableObject(this.rootGroup.isPickableObject()),this._children=this._rootNode,this.childrenLoaded=!1):this.rootInline.checkLoadState()==u().COMPLETE_STATE&&(this.rootInline._isCameraObject.addFieldInterest(this._isCameraObject),this.rootInline._isPickableObject.addFieldInterest(this._isPickableObject),this.setCameraObject(this.rootInline.isCameraObject()),this.setPickableObject(this.rootInline.isPickableObject()),this._children=this.rootInline.getInternalScene().getRootNodes(),this.childrenLoaded=!1),this.unload&&(this.child1Inline._load=!1,this.child2Inline._load=!1,this.child3Inline._load=!1,this.child4Inline._load=!1);break;case 1:this._rootNode.length?(this.rootGroup._isCameraObject.removeFieldInterest(this._isCameraObject),this.rootGroup._isPickableObject.removeFieldInterest(this._isPickableObject)):(this.rootInline._isCameraObject.removeFieldInterest(this._isCameraObject),this.rootInline._isPickableObject.removeFieldInterest(this._isPickableObject)),this.child1Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child2Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child3Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child4Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child1Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child2Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child3Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child4Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.set_childCameraObject__(),this.set_childPickableObject__(),this.child1Inline._load.getValue()?this.set_childLoadState__():(this.child1Inline._load=!0,this.child2Inline._load=!0,this.child3Inline._load=!0,this.child4Inline._load=!0)}return void this.traverseChildren(e,t);default:return void this.traverseChildren(e,t)}},traverseChildren(e,t){switch(this.childrenLoaded?this._level_changed.getValue():0){case 0:this._rootNode.length?this.rootGroup.traverse(e,t):this.rootInline.traverse(e,t);break;case 1:this.child1Inline.traverse(e,t),this.child2Inline.traverse(e,t),this.child3Inline.traverse(e,t),this.child4Inline.traverse(e,t)}},dispose(){ae.prototype.dispose.call(this),ve().prototype.dispose.call(this),Se().prototype.dispose.call(this)}}),Object.defineProperties(Ve,{typeName:{value:"GeoLOD",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().initializeOnly,"rootUrl",new(o().MFString)),new(r())(u().initializeOnly,"child1Url",new(o().MFString)),new(r())(u().initializeOnly,"child2Url",new(o().MFString)),new(r())(u().initializeOnly,"child3Url",new(o().MFString)),new(r())(u().initializeOnly,"child4Url",new(o().MFString)),new(r())(u().initializeOnly,"center",new(o().SFVec3d)),new(r())(u().initializeOnly,"range",new(o().SFFloat)(10)),new(r())(u().outputOnly,"level_changed",new(o().SFInt32)(-1)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().initializeOnly,"rootNode",new(o().MFNode)),new(r())(u().outputOnly,"children",new(o().MFNode))]),enumerable:!0}});const De=Ve;g().set("x_ite/Components/Geospatial/GeoLOD",De);const Pe=De,Ee=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Grouping/X3DTransformMatrix3DNode");var Te=e.n(Ee),Xe=new(H());function ke(e){Te().call(this,e),ae.call(this,e),this.addType(u().GeoLocation)}Object.assign(Object.setPrototypeOf(ke.prototype,Te().prototype),ae.prototype,{initialize(){Te().prototype.initialize.call(this),ae.prototype.initialize.call(this),this.addInterest("eventsProcessed",this),this.eventsProcessed()},eventsProcessed(){this.setMatrix(this.getLocationMatrix(this._geoCoords.getValue(),Xe))},dispose(){ae.prototype.dispose.call(this),Te().prototype.dispose.call(this)}}),Object.defineProperties(ke,{typeName:{value:"GeoLocation",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"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))]),enumerable:!0}});const Le=ke;g().set("x_ite/Components/Geospatial/GeoLocation",Le);const Re=Le,Ae=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Core/X3DInfoNode");var Be=e.n(Ae);const Ue=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Networking/X3DUrlObject");var qe=e.n(Ue);function We(e){Be().call(this,e),qe().call(this,e),this.addType(u().GeoMetadata)}Object.assign(Object.setPrototypeOf(We.prototype,Be().prototype),qe().prototype,{initialize(){Be().prototype.initialize.call(this),qe().prototype.initialize.call(this)},requestImmediateLoad(e=!0){},dispose(){qe().prototype.dispose.call(this),Be().prototype.dispose.call(this)}}),Object.defineProperties(We,{typeName:{value:"GeoMetadata",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"load",new(o().SFBool)(!0)),new(r())(u().inputOutput,"url",new(o().MFString)),new(r())(u().inputOutput,"autoRefresh",new(o().SFTime)),new(r())(u().inputOutput,"autoRefreshTimeLimit",new(o().SFTime)(3600)),new(r())(u().inputOutput,"summary",new(o().MFString)),new(r())(u().inputOutput,"data",new(o().MFNode))]),enumerable:!0}});const He=We;g().set("x_ite/Components/Geospatial/GeoMetadata",He);const Ye=He,Ze=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Core/X3DNode");var $e=e.n(Ze);function Ke(e){$e().call(this,e),this.addType(u().GeoOrigin),this.radians=!1}Object.assign(Object.setPrototypeOf(Ke.prototype,$e().prototype),{initialize(){$e().prototype.initialize.call(this),this._geoSystem.addInterest("set_geoSystem__",this),this.set_geoSystem__()},set_geoSystem__(){this.referenceFrame=B.getReferenceFrame(this._geoSystem,this.radians)},getOrigin(e){return this.referenceFrame.convert(this._geoCoords.getValue(),e)}}),Object.defineProperties(Ke,{typeName:{value:"GeoOrigin",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"geoOrigin",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCoords",new(o().SFVec3d)),new(r())(u().initializeOnly,"rotateYUp",new(o().SFBool))]),enumerable:!0}});const Je=Ke;g().set("x_ite/Components/Geospatial/GeoOrigin",Je);const Qe=Je,et=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Interpolation/X3DInterpolatorNode");var tt=e.n(et);function it(e){tt().call(this,e),ae.call(this,e),this.addType(u().GeoPositionInterpolator),this._value_changed.setUnit("length"),this.geocentric=new P}Object.assign(Object.setPrototypeOf(it.prototype,tt().prototype),ae.prototype,{setup(){ae.prototype.initialize.call(this),tt().prototype.setup.call(this)},initialize(){tt().prototype.initialize.call(this),this._keyValue.addInterest("set_keyValue__",this)},set_keyValue__(){const e=this._key,t=this._keyValue;t.length<e.length&&t.resize(e.length,t.length?t[t.length-1]:new(o().SFVec3f))},interpolate:(()=>{const e=new(S())(0,0,0),t=new(S())(0,0,0),i=new(S())(0,0,0);return function(n,o,s){this.getCoord(this._keyValue[n].getValue(),e),this.getCoord(this._keyValue[o].getValue(),t);const r=this.geocentric.slerp(e,t,s);this._geovalue_changed=this.getGeoCoord(r,i),this._value_changed=r}})(),dispose(){ae.prototype.dispose.call(this),tt().prototype.dispose.call(this)}}),Object.defineProperties(it,{typeName:{value:"GeoPositionInterpolator",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOnly,"set_fraction",new(o().SFFloat)),new(r())(u().inputOutput,"key",new(o().MFFloat)),new(r())(u().inputOutput,"keyValue",new(o().MFVec3d)),new(r())(u().outputOnly,"value_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"geovalue_changed",new(o().SFVec3d))]),enumerable:!0}});const nt=it;g().set("x_ite/Components/Geospatial/GeoPositionInterpolator",nt);const ot=nt,st=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode");var rt=e.n(st);const at=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/EnvironmentalSensor/ProximitySensor");var lt=e.n(at),ht=new(S())(0,0,0);function dt(e){rt().call(this,e),ae.call(this,e),this.addType(u().GeoProximitySensor),this._position_changed.setUnit("length"),this._centerOfRotation_changed.setUnit("length"),this.proximitySensor=new(lt())(e),this.setCameraObject(this.proximitySensor.isCameraObject()),this.setPickableObject(this.proximitySensor.isPickableObject())}Object.assign(Object.setPrototypeOf(dt.prototype,rt().prototype),ae.prototype,{initialize(){rt().prototype.initialize.call(this),ae.prototype.initialize.call(this),this._enabled.addFieldInterest(this.proximitySensor._enabled),this._size.addFieldInterest(this.proximitySensor._size),this._center.addFieldInterest(this.proximitySensor._center),this.proximitySensor._isCameraObject.addFieldInterest(this._isCameraObject),this.proximitySensor._isPickableObject.addFieldInterest(this._isPickableObject),this.proximitySensor._isActive.addFieldInterest(this._isActive),this.proximitySensor._enterTime.addFieldInterest(this._enterTime),this.proximitySensor._exitTime.addFieldInterest(this._exitTime),this.proximitySensor._position_changed.addFieldInterest(this._position_changed),this.proximitySensor._orientation_changed.addFieldInterest(this._orientation_changed),this.proximitySensor._centerOfRotation_changed.addFieldInterest(this._centerOfRotation_changed),this.proximitySensor._position_changed.addInterest("set_position__",this),this.proximitySensor._enabled=this._enabled,this.proximitySensor._size=this._size,this.proximitySensor._center=this._center,this.proximitySensor.setup()},set_position__(e){this._geoCoord_changed=this.getGeoCoord(this.proximitySensor._position_changed.getValue(),ht)},traverse(e,t){this.proximitySensor.traverse(e,t)},dispose(){ae.prototype.dispose.call(this),rt().prototype.dispose.call(this)}}),Object.defineProperties(dt,{typeName:{value:"GeoProximitySensor",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"size",new(o().SFVec3f)),new(r())(u().inputOutput,"center",new(o().SFVec3f)),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"enterTime",new(o().SFTime)),new(r())(u().outputOnly,"exitTime",new(o().SFTime)),new(r())(u().outputOnly,"geoCoord_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"position_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"orientation_changed",new(o().SFRotation)),new(r())(u().outputOnly,"centerOfRotation_changed",new(o().SFVec3f))]),enumerable:!0}});const ct=dt;g().set("x_ite/Components/Geospatial/GeoProximitySensor",ct);const ut=ct,pt=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode");var gt=e.n(pt);function _t(e){gt().call(this,e),ae.call(this,e),this.addType(u().GeoTouchSensor),this._hitPoint_changed.setUnit("length")}Object.assign(Object.setPrototypeOf(_t.prototype,gt().prototype),ae.prototype,{initialize(){gt().prototype.initialize.call(this),ae.prototype.initialize.call(this)},set_over__:(()=>{const e=new(S())(0,0,0);return function(t,i,n,o,s){gt().prototype.set_over__.call(this,t,i,n,o,s),this._isOver.getValue()&&(this._hitGeoCoord_changed=this.getGeoCoord(this._hitPoint_changed.getValue(),e))}})(),dispose(){ae.prototype.dispose.call(this),gt().prototype.dispose.call(this)}}),Object.defineProperties(_t,{typeName:{value:"GeoTouchSensor",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().outputOnly,"hitTexCoord_changed",new(o().SFVec2f)),new(r())(u().outputOnly,"hitNormal_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"hitPoint_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"hitGeoCoord_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"isOver",new(o().SFBool)),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"touchTime",new(o().SFTime))]),enumerable:!0}});const wt=_t;g().set("x_ite/Components/Geospatial/GeoTouchSensor",wt);const mt=wt;var Ot=new(H()),yt=new(H());function bt(e){Te().call(this,e),ae.call(this,e),this.addType(u().GeoTransform),this._translation.setUnit("length")}Object.assign(Object.setPrototypeOf(bt.prototype,Te().prototype),ae.prototype,{initialize(){Te().prototype.initialize.call(this),ae.prototype.initialize.call(this),this.addInterest("eventsProcessed",this),this.eventsProcessed()},eventsProcessed(){this.getLocationMatrix(this._geoCenter.getValue(),yt),Ot.set(this._translation.getValue(),this._rotation.getValue(),this._scale.getValue(),this._scaleOrientation.getValue()),this.setMatrix(Ot.multRight(yt).multLeft(yt.inverse()))},dispose(){ae.prototype.dispose.call(this),Te().prototype.dispose.call(this)}}),Object.defineProperties(bt,{typeName:{value:"GeoTransform",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"translation",new(o().SFVec3f)),new(r())(u().inputOutput,"rotation",new(o().SFRotation)),new(r())(u().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(u().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCenter",new(o().SFVec3d)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(o().MFNode)),new(r())(u().inputOnly,"removeChildren",new(o().MFNode)),new(r())(u().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const St=bt;g().set("x_ite/Components/Geospatial/GeoTransform",St);const ft=St,vt=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Navigation/X3DViewpointNode");var It=e.n(vt);const Ft=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Navigation/Viewpoint");var xt=e.n(Ft);const Ct=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Navigation/NavigationInfo");var Nt=e.n(Ct);const Mt=window[Symbol.for("X_ITE.X3D-8.8.6")].require("standard/Math/Numbers/Rotation4");var jt=e.n(Mt);function zt(e){It().call(this,e),ae.call(this,e),this.addType(u().GeoViewpoint),this._centerOfRotation.setUnit("length"),this._fieldOfView.setUnit("angle"),e.getSpecificationVersion()<=3.2&&(this.traverse=Gt),this.geoNavigationInfoNode=new(Nt())(e),this.projectionMatrix=new(H()),this.elevation=0}function Gt(e,t){It().prototype.traverse.call(this,e,t),this.geoNavigationInfoNode.traverse(e,t)}Object.assign(Object.setPrototypeOf(zt.prototype,It().prototype),ae.prototype,{initialize(){It().prototype.initialize.call(this),ae.prototype.initialize.call(this);const e=this.getBrowser().getContext();this.logarithmicDepthBuffer=e.HAS_FEATURE_FRAG_DEPTH,this._position.addInterest("set_position__",this),this._positionOffset.addInterest("set_position__",this),this._navType.addFieldInterest(this.geoNavigationInfoNode._type),this._headlight.addFieldInterest(this.geoNavigationInfoNode._headlight),this.geoNavigationInfoNode.setup(),this.set_position__()},getRelativeTransformation:xt().prototype.getRelativeTransformation,setInterpolators:xt().prototype.setInterpolators,getFieldOfView:xt().prototype.getFieldOfView,getScreenScale:xt().prototype.getScreenScale,getViewportSize:xt().prototype.getViewportSize,getLookAtDistance:xt().prototype.getLookAtDistance,getProjectionMatrixWithLimits:xt().prototype.getProjectionMatrixWithLimits,getLogarithmicDepthBuffer(){return this.logarithmicDepthBuffer},setPosition:(()=>{const e=new(S())(0,0,0);return function(t){this._position.setValue(this.getGeoCoord(t,e))}})(),getPosition:(()=>{const e=new(S())(0,0,0);return function(){return this.getCoord(this._position.getValue(),e)}})(),set_position__:(()=>{const e=new(S())(0,0,0);return function(){this.getCoord(this._position.getValue(),e),this.elevation=this.getGeoElevation(e.add(this._positionOffset.getValue()))}})(),setOrientation:(()=>{const e=new(H()),t=new(jt());return function(i){const n=this.getLocationMatrix(this._position.getValue(),e).submatrix;t.setMatrix(n),this._orientation.setValue(t.inverse().multLeft(i))}})(),getOrientation:(()=>{const e=new(H()),t=new(jt());return function(){const i=this.getLocationMatrix(this._position.getValue(),e).submatrix;return t.setMatrix(i),t.multLeft(this._orientation.getValue())}})(),getCenterOfRotation:(()=>{const e=new(S())(0,0,0);return function(){return this.getCoord(this._centerOfRotation.getValue(),e)}})(),getMaxFarValue:()=>1e9,getUpVector:(()=>{const e=new(S())(0,0,0),t=new(S())(0,0,0);return function(i=!1){return!i||this.getUserPosition().magnitude()<65e5?(this.getCoord(this._position.getValue(),e),this.getGeoUpVector(e.add(this._positionOffset.getValue()),t)):t.assign(S().zAxis)}})(),getSpeedFactor(){return(Math.max(this.elevation,0)+10)/10*this._speedFactor.getValue()},dispose(){ae.prototype.dispose.call(this),It().prototype.dispose.call(this)}}),Object.defineProperties(zt,{typeName:{value:"GeoViewpoint",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOnly,"set_bind",new(o().SFBool)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"position",new(o().SFVec3d)(0,0,1e5)),new(r())(u().inputOutput,"orientation",new(o().SFRotation)),new(r())(u().inputOutput,"centerOfRotation",new(o().SFVec3d)),new(r())(u().inputOutput,"fieldOfView",new(o().SFFloat)(.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)),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))]),enumerable:!0}});const Vt=zt;g().set("x_ite/Components/Geospatial/GeoViewpoint",Vt);const Dt=Vt;i().add({name:"Geospatial",concreteNodes:[ue,ye,Pe,Re,Ye,Qe,ot,ut,mt,ft,Dt],abstractNodes:[ae]});const Pt=void 0;g().set("assets/components/Geospatial",Pt)})();
|
|
1
|
+
/* X_ITE v8.9.0 */(()=>{"use strict";var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components");var i=e.n(t);const n=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Fields");var o=e.n(n);const s=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const a=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Base/FieldDefinitionArray");var l=e.n(a);const h=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Rendering/X3DCoordinateNode");var d=e.n(h);const c=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Base/X3DConstants");var u=e.n(c);const p=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Namespace");var g=e.n(p);function _(e,t){switch(arguments.length){case 0:this.semiMajorAxis=0,this.semiMinorAxis=0;break;case 2:this.semiMajorAxis=e,this.semiMinorAxis=t;break;case 3:const i=arguments[1];this.semiMajorAxis=e,this.semiMinorAxis=e*(1-1/i)}}Object.assign(_.prototype,{getSemiMajorAxis(){return this.semiMajorAxis},getSemiMinorAxis(){return this.semiMinorAxis},toString(){return`${this.semiMajorAxis} ${this.semiMinorAxis}`}});const w=_;g().set("standard/Math/Geometry/Spheroid3",w);const m=w,O={AA:new m(6377563.396,299.3249646,!0),AM:new m(6377340.189,299.3249646,!0),AN:new m(6378160,298.25,!0),BN:new m(6377483.865,299.1528128,!0),BR:new m(6377397.155,299.1528128,!0),CC:new m(6378206.4,294.9786982,!0),CD:new m(6378249.145,293.465,!0),EA:new m(6377276.345,300.8017,!0),EB:new m(6377298.556,300.8017,!0),EC:new m(6377301.243,300.8017,!0),ED:new m(6377295.664,300.8017,!0),EE:new m(6377304.063,300.8017,!0),EF:new m(6377309.613,300.8017,!0),FA:new m(6378155,298.3,!0),HE:new m(6378200,298.3,!0),HO:new m(6378270,297,!0),ID:new m(6378160,298.247,!0),IN:new m(6378388,297,!0),KA:new m(6378245,298.3,!0),RF:new m(6378137,298.257222101,!0),SA:new m(6378160,298.25,!0),WD:new m(6378135,298.26,!0),WE:new m(6378137,298.257223563,!0),SUN:new m(696342e3,1/9e-6,!0),MERCURY:new m(2439700,2439700),VENUS:new m(6051800,6051800),MOON:new m(1738140,1735970),MARS:new m(3395428,3377678),JUPITER:new m(71492e3,66854e3),SATURN:new m(60268e3,54364e3),URANUS:new m(2555e3,24973e3),NEPTUNE:new m(24764e3,24341e3),PLUTO:new m(1153e3,1153e3)};g().set("standard/Geospatial/ReferenceEllipsoids",O);const y=O,b=window[Symbol.for("X_ITE.X3D-8.9.0")].require("standard/Math/Numbers/Vector3");var f=e.n(b);const S=window[Symbol.for("X_ITE.X3D-8.9.0")].require("standard/Math/Algorithm");var v=e.n(S);function I(e,t,i){this.longitudeFirst=!t,this.degrees=!i,this.a=e.getSemiMajorAxis(),this.c=e.getSemiMinorAxis(),this.c2a2=Math.pow(e.getSemiMinorAxis()/this.a,2),this.ecc2=1-this.c2a2}Object.assign(I.prototype,{convert(e,t){const i=e.z;if(this.longitudeFirst)var n=e.y,o=e.x;else n=e.x,o=e.y;return this.degrees&&(n*=Math.PI/180,o*=Math.PI/180),this.convertRadians(n,o,i,t)},convertRadians(e,t,i,n){const o=Math.sin(e),s=Math.pow(o,2),r=Math.cos(e),a=this.a/Math.sqrt(1-this.ecc2*s),l=(a+i)*r;return n.set(l*Math.cos(t),l*Math.sin(t),(a*this.c2a2+i)*o)},apply(e,t){if(this.applyRadians(e,t),this.degrees&&(t.x*=180/Math.PI,t.y*=180/Math.PI),this.longitudeFirst){const e=t.x;t.x=t.y,t.y=e}return t},applyRadians(e,t){const i=e.x,n=e.y,o=e.z,s=Math.sqrt(i*i+n*n);if(0==s)return t.set(Math.PI,0,o-this.c);let r=0,a=Math.atan2(n,i),l=0,h=this.a,d=h,c=this.ecc2;for(let e=0;e<30;++e){const e=l,t=r;r=Math.atan(o/s/(1-c*d/(d+l)));const i=Math.sin(r);if(d=h/Math.sqrt(1-c*i*i),l=s/Math.cos(r)-d,Math.abs(l-e)<.001&&Math.abs(r-t)<1e-10)break}return t.set(r,a,l)},normal(e,t){const i=this.applyRadians(e,t),n=i.x,o=i.y,s=Math.cos(n),r=Math.cos(o)*s,a=Math.sin(o)*s,l=Math.sin(n);return t.set(r,a,l)}});const F=I;g().set("standard/Geospatial/Geodetic",F);const x=F,C=1e7,N=5e5,M=.9996;function j(e,t,i,n){const o=e.getSemiMajorAxis(),s=1-Math.pow(e.getSemiMinorAxis()/o,2),r=s/(1-s),a=(1-Math.sqrt(1-s))/(1+Math.sqrt(1-s));this.southernHemisphere=!i,this.eastingFirst=!n,this.a=o,this.ecc2=s,this.EE=r,this.E8=8*r,this.E9=9*r,this.E252=252*r,this.e1=a,this.A=M*(o*(1-s/4-3*s*s/64-5*s*s*s/256)),this.B=3*a/2-7*a*a*a/32,this.C=21*a*a/16-55*a*a*a*a/32,this.D=151*a*a*a/96,this.E=o*(1-s),this.W=1-s/4-3*s*s/64-5*s*s*s/256,this.X=3*s/8+3*s*s/32+45*s*s*s/1024,this.Y=15*s*s/256+45*s*s*s/1024,this.Z=35*s*s*s/3072,this.longitude0=v().radians(6*t-183),this.geodeticConverter=new x(e,!0,!0)}Object.assign(j.prototype,{convert(e,t){if(this.eastingFirst)var i=e.y,n=e.x;else i=e.x,n=e.y;let o=this.southernHemisphere;i<0&&(o=!this.southernHemisphere,i=-i),o&&(i-=C),n-=N;const s=i/this.A,r=s+this.B*Math.sin(2*s)+this.C*Math.sin(4*s)+this.D*Math.sin(6*s),a=Math.pow(Math.sin(r),2),l=Math.cos(r),h=Math.tan(r),d=this.a/Math.sqrt(1-this.ecc2*a),c=Math.pow(h,2),u=Math.pow(h,8),p=this.EE*c,g=p*p,_=this.E/Math.pow(1-this.ecc2*a,1.5),w=n/(d*M),m=(5+3*c+10*p-4*g-this.E9)*Math.pow(w,4)/24,O=(61+90*c+298*p+45*u-this.E252-3*g)*Math.pow(w,6)/720,y=(5-2*p+28*c-3*g+this.E8+24*u)*Math.pow(w,5)/120,b=r-d*h/_*(w*w/2-m+O),f=this.longitude0+(w-(1+2*c+p)*Math.pow(w,3)/6+y)/l;return this.geodeticConverter.convertRadians(b,f,e.z,t)},apply(e,t){const i=this.geodeticConverter.applyRadians(e,t),n=i.x,o=i.y,s=Math.tan(n),r=Math.cos(n),a=this.EE,l=this.a/Math.sqrt(1-this.ecc2*Math.pow(Math.sin(n),2)),h=s*s,d=h*h*h,c=a*r*r,u=r*(o-this.longitude0),p=this.a*(this.W*n-this.X*Math.sin(2*n)+this.Y*Math.sin(4*n)-this.Z*Math.sin(6*n)),g=M*l*(u+(1-h+c)*Math.pow(u,3)/6+(5-18*d+72*c-58*a)*Math.pow(u,5)/120)+N;let _=M*(p+l*s*(u*u/2+(5-h+9*c+4*c*c)*Math.pow(u,4)/24+(61-58*d+600*c-330*a)*Math.pow(u,6)/720));return n<0?(_+=C,this.southernHemisphere||(_=-_)):this.southernHemisphere&&(_=-_),this.eastingFirst?t.set(g,_,i.z):t.set(_,g,i.z)}});const z=j;g().set("standard/Geospatial/UniversalTransverseMercator",z);const G=z;function V(){}Object.assign(V.prototype,{convert:(e,t)=>t.assign(e),apply:(e,t)=>t.assign(e),slerp(e,t,i){const n=e.magnitude(),o=t.magnitude();return e.normalize(),t.normalize(),v().simpleSlerp(e,t,i).multiply(v().lerp(n,o,i))}});const D=V;g().set("x_ite/Browser/Geospatial/Geocentric",D);const P=D;let E=0;const T=E++,X=E++,k=E++,L={GD:T,GDC:T,UTM:X,GC:k,GCC:k,GS:k},R=/^Z(\d+)$/,A={GD:T,UTM:X,GC:k,getReferenceFrame(e,t){switch(this.getCoordinateSystem(e)){case T:return new x(this.getEllipsoid(e),this.getLatitudeFirst(e),t);case X:return new G(this.getEllipsoid(e),this.getZone(e),this.getNorthernHemisphere(e),this.getNorthingFirst(e));case k:return new P}return new x(y.WE,!0,t)},getElevationFrame(e,t){return new x(this.getEllipsoid(e),!0,t)},getCoordinateSystem(e){for(const t of e){const e=L[t];if(void 0!==e)return e}return T},getEllipsoid(e){for(const t of e){const e=y[t];if(void 0!==e)return e}return y.WE},getEllipsoidString(e){for(const t of e){if(void 0!==y[t])return t}return"WE"},isStandardOrder(e){switch(this.getCoordinateSystem(e)){case T:return this.getLatitudeFirst(e);case X:return this.getNorthingFirst(e);case k:return!0}return this.getLatitudeFirst(e)},getLatitudeFirst(e){for(const t of e)if("longitude_first"===t)return!1;return!0},getNorthingFirst(e){for(const t of e)if("easting_first"===t)return!1;return!0},getZone(e){for(const t of e){const e=t.match(R);if(e)return parseInt(e[1])}return 1},getNorthernHemisphere(e){for(const t of e)if("S"===t)return!1;return!0}};g().set("x_ite/Browser/Geospatial/Geospatial",A);const B=A,U=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Base/X3DCast");var q=e.n(U);const W=window[Symbol.for("X_ITE.X3D-8.9.0")].require("standard/Math/Numbers/Matrix4");var H=e.n(W),Y=new(f())(0,0,0),Z=new(f())(0,0,0),$=new(f())(0,0,0),K=new(f())(0,0,0),J=new(f())(0,0,0),Q=new(f())(0,0,0);function ee(e){this.addType(u().X3DGeospatialObject),this.radians=!1,this.origin=new(f())(0,0,0),this.originMatrix=new(H()),this.invOriginMatrix=new(H())}function te(e,t){return this.invOriginMatrix.multVecMatrix(this.referenceFrame.convert(e,t))}function ie(e,t){return this.referenceFrame.apply(this.originMatrix.multVecMatrix(Y.assign(e)),t)}function ne(e,t){return this.invOriginMatrix.multDirMatrix(this.elevationFrame.normal(this.originMatrix.multVecMatrix(Y.assign(e)),t))}function oe(e,t){return se.call(this,e,t).multRight(this.invOriginMatrix)}function se(e,t){return this.referenceFrame.convert(e,$),this.elevationFrame.normal($,J),K.set(0,0,1).cross(J),K.equals(f().Zero)&&K.set(1,0,0),Q.assign(K).cross(J),K.normalize(),Q.normalize(),t.set(K.x,K.y,K.z,0,J.x,J.y,J.z,0,Q.x,Q.y,Q.z,0,$.x,$.y,$.z,1)}Object.assign(ee.prototype,{initialize(){this._geoSystem.addInterest("set_geoSystem__",this),this._geoOrigin.addInterest("set_geoOrigin__",this),this.set_geoSystem__(),this.set_geoOrigin__()},set_geoSystem__(){this.coordinateSystem=B.getCoordinateSystem(this._geoSystem),this.referenceFrame=B.getReferenceFrame(this._geoSystem,this.radians),this.elevationFrame=B.getElevationFrame(this._geoSystem,this.radians),this.standardOrder=B.isStandardOrder(this._geoSystem)},set_geoOrigin__(){this.geoOriginNode&&(this.geoOriginNode.removeInterest("set_origin__",this),this.geoOriginNode.removeInterest("set_rotateYUp__",this),this.geoOriginNode.removeInterest("addNodeEvent",this)),this.geoOriginNode=q()(u().GeoOrigin,this._geoOrigin),this.geoOriginNode&&(this.geoOriginNode.addInterest("set_origin__",this),this.geoOriginNode.addInterest("set_rotateYUp__",this),this.geoOriginNode.addInterest("addNodeEvent",this)),this.set_origin__(),this.set_rotateYUp__()},set_origin__(){this.geoOriginNode?this.geoOriginNode.getOrigin(this.origin):this.origin.set(0,0,0),this.set_originMatrix__()},set_originMatrix__(){if(this.geoOriginNode){var e=this.origin;this.elevationFrame.normal(e,J),K.set(0,0,1).cross(J),K.equals(f().Zero)&&K.set(1,0,0),Q.assign(K).cross(J),K.normalize(),Q.normalize(),this.originMatrix.set(K.x,K.y,K.z,0,J.x,J.y,J.z,0,Q.x,Q.y,Q.z,0,e.x,e.y,e.z,1),this.invOriginMatrix.assign(this.originMatrix).inverse()}},set_rotateYUp__(){this.geoOriginNode&&this.geoOriginNode._rotateYUp.getValue()?(this.getCoord=te,this.getGeoCoord=ie,this.getGeoUpVector=ne,this.getLocationMatrix=oe):(delete this.getCoord,delete this.getGeoCoord,delete this.getGeoUpVector,delete this.getLocationMatrix)},getReferenceFrame(){return this.referenceFrame},getStandardOrder(){return this.standardOrder},getCoord(e,t){return this.referenceFrame.convert(e,t).subtract(this.origin)},getGeoCoord(e,t){return this.referenceFrame.apply(Y.assign(e).add(this.origin),t)},getGeoElevation(e){return this.getGeoCoord(e,Z).z},getGeoUpVector(e,t){return this.elevationFrame.normal(Y.assign(e).add(this.origin),t)},getLocationMatrix(e,t){var i=this.origin,n=se.call(this,e,t);return n[12]-=i.x,n[13]-=i.y,n[14]-=i.z,n},dispose(){}}),Object.defineProperties(ee,{typeName:{value:"X3DGeospatialObject",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0}});const re=ee;g().set("x_ite/Components/Geospatial/X3DGeospatialObject",re);const ae=re,le=window[Symbol.for("X_ITE.X3D-8.9.0")].require("standard/Math/Geometry/Triangle3");var he=e.n(le);function de(e){d().call(this,e),ae.call(this,e),this.addType(u().GeoCoordinate)}Object.assign(Object.setPrototypeOf(de.prototype,d().prototype),ae.prototype,{initialize(){d().prototype.initialize.call(this),ae.prototype.initialize.call(this)},set1Point:(()=>{const e=new(f())(0,0,0);return function(t,i){this._point[t]=this.getGeoCoord(i,e)}})(),get1Point:(()=>{const e=new(f())(0,0,0);return function(t,i){if(t<this.length){const n=this.point;return t*=3,this.getCoord(e.set(n[t],n[t+1],n[t+2]),i)}return i.set(0,0,0)}})(),addPoint:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0);return function(i,n){if(i<this.length){const o=this.point;i*=3,this.getCoord(e.set(o[i],o[i+1],o[i+2]),t),n.push(t[0],t[1],t[2],1)}else n.push(0,0,0,1)}})(),addPoints:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0);return function(i,n){const o=this.point;for(let n=0,s=3*this.length;n<s;n+=3)this.getCoord(e.set(o[n],o[n+1],o[n+2]),t),i.push(t[0],t[1],t[2],1);for(let e=3*this.length,t=3*n;e<t;e+=3)i.push(0,0,0,1)}})(),getNormal:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0),i=new(f())(0,0,0);return function(n,o,s){const r=this.length;return n<r&&o<r&&s<r?he().normal(this.get1Point(n,e),this.get1Point(o,t),this.get1Point(s,i),new(f())(0,0,0)):new(f())(0,0,0)}})(),getQuadNormal:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0),i=new(f())(0,0,0),n=new(f())(0,0,0);return function(o,s,r,a){const l=this.length;return o<l&&s<l&&r<l&&a<l?he().quadNormal(this.get1Point(o,e),this.get1Point(s,t),this.get1Point(r,i),this.get1Point(a,n),new(f())(0,0,0)):new(f())(0,0,0)}})(),dispose(){ae.prototype.dispose.call(this),d().prototype.dispose.call(this)}}),Object.defineProperties(de,{typeName:{value:"GeoCoordinate",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"coord",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"point",new(o().MFVec3d))]),enumerable:!0}});const ce=de;g().set("x_ite/Components/Geospatial/GeoCoordinate",ce);const ue=ce,pe=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Rendering/X3DGeometryNode");var ge=e.n(pe);const _e=window[Symbol.for("X_ITE.X3D-8.9.0")].require("standard/Math/Numbers/Vector2");var we=e.n(_e);function me(e){ge().call(this,e),ae.call(this,e),this.addType(u().GeoElevationGrid),this._creaseAngle.setUnit("angle"),this._height.setUnit("length"),this.colorNode=null,this.texCoordNode=null,this.normalNode=null}Object.assign(Object.setPrototypeOf(me.prototype,ge().prototype),ae.prototype,{initialize(){ge().prototype.initialize.call(this),ae.prototype.initialize.call(this),this._color.addInterest("set_color__",this),this._texCoord.addInterest("set_texCoord__",this),this._normal.addInterest("set_normal__",this),this.set_color__(),this.set_texCoord__(),this.set_normal__()},set_color__(){this.colorNode?.removeInterest("requestRebuild",this),this.colorNode=q()(u().X3DColorNode,this._color),this.colorNode?.addInterest("requestRebuild",this),this.setTransparent(this.colorNode?.isTransparent()??!1)},set_texCoord__(){this.texCoordNode?.removeInterest("requestRebuild",this),this.texCoordNode=q()(u().X3DTextureCoordinateNode,this._texCoord),this.texCoordNode?.addInterest("requestRebuild",this),this.setTextureCoordinate(this.texCoordNode)},set_normal__(){this.normalNode?.removeInterest("requestRebuild",this),this.normalNode=q()(u().X3DNormalNode,this._normal),this.normalNode?.addInterest("requestRebuild",this)},getColor(){return this.colorNode},getTexCoord(){return this.texCoordNode},getNormal(){return this.normalNode},getHeight(e){return e<this._height.length?this._height[e]*this._yScale.getValue():0},createTexCoords(){for(var e=[],t=this._xDimension.getValue(),i=this._zDimension.getValue(),n=t-1,o=i-1,s=0;s<i;++s)for(var r=0;r<t;++r)e.push(new(we())(r/n,s/o));return e},createNormals(e,t,i){for(var n=!this._ccw.getValue(),o=[],s=[],r=0;r<e.length;++r)o[r]=[];for(var a=0;a<t.length;a+=3){var l=t[a],h=t[a+1],d=t[a+2];o[l].push(s.length),o[h].push(s.length+1),o[d].push(s.length+2);var c=he().normal(e[l],e[h],e[d],new(f())(0,0,0));n&&c.negate(),s.push(c),s.push(c),s.push(c)}return this.refineNormals(o,s,this._creaseAngle.getValue())},createCoordIndex(){for(var e=[],t=this._xDimension.getValue(),i=t-1,n=this._zDimension.getValue()-1,o=0;o<n;++o)for(var s=0;s<i;++s){var r=o*t+s,a=(o+1)*t+s,l=(o+1)*t+(s+1),h=o*t+(s+1);e.push(r),e.push(l),e.push(a),e.push(r),e.push(h),e.push(l)}return e},createPoints(){var e=[],t=this._xDimension.getValue(),i=this._zDimension.getValue(),n=this._xSpacing.getValue(),o=this._zSpacing.getValue();if(this.getStandardOrder())for(var s=0;s<i;++s)for(var r=0;r<t;++r){(a=new(f())(o*s,n*r,this.getHeight(r+s*t))).add(this._geoGridOrigin.getValue()),e.push(this.getCoord(a,a))}else for(s=0;s<i;++s)for(r=0;r<t;++r){var a;(a=new(f())(n*r,o*s,this.getHeight(r+s*t))).add(this._geoGridOrigin.getValue()),e.push(this.getCoord(a,a))}return e},build(){if(!(this._xDimension.getValue()<2||this._zDimension.getValue()<2)){var e=this._colorPerVertex.getValue(),t=this._normalPerVertex.getValue(),i=this.createCoordIndex(),n=this.getColor(),o=this.getTexCoord(),s=this.getNormal(),r=this.createPoints(),a=this.getColors(),l=this.getMultiTexCoords(),h=this.getNormals(),d=this.getVertices(),c=0;if(o)o.init(l);else{var u=this.createTexCoords(),p=this.getTexCoords();l.push(p)}for(var g=0;g<i.length;++c)for(var _=0;_<6;++_,++g){var w=i[g],m=r[w];if(n&&(e?n.addColor(w,a):n.addColor(c,a)),o)o.addPoint(w,l);else{var O=u[w];p.push(O.x,O.y,0,1)}s&&(t?s.addVector(w,h):s.addVector(c,h)),d.push(m.x,m.y,m.z,1)}if(!s)for(var y=this.createNormals(r,i),b=0;b<y.length;++b){var f=y[b];h.push(f.x,f.y,f.z)}this.setSolid(this._solid.getValue()),this.setCCW(this._ccw.getValue())}},dispose(){ae.prototype.dispose.call(this),ge().prototype.dispose.call(this)}}),Object.defineProperties(me,{typeName:{value:"GeoElevationGrid",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"geometry",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().initializeOnly,"geoGridOrigin",new(o().SFVec3d)),new(r())(u().initializeOnly,"xDimension",new(o().SFInt32)),new(r())(u().initializeOnly,"zDimension",new(o().SFInt32)),new(r())(u().initializeOnly,"xSpacing",new(o().SFDouble)(1)),new(r())(u().initializeOnly,"zSpacing",new(o().SFDouble)(1)),new(r())(u().inputOutput,"yScale",new(o().SFFloat)(1)),new(r())(u().initializeOnly,"solid",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"ccw",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"creaseAngle",new(o().SFDouble)),new(r())(u().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(r())(u().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(r())(u().inputOutput,"color",new(o().SFNode)),new(r())(u().inputOutput,"texCoord",new(o().SFNode)),new(r())(u().inputOutput,"normal",new(o().SFNode)),new(r())(u().inputOutput,"height",new(o().MFDouble)(0,0))]),enumerable:!0}});const Oe=me;g().set("x_ite/Components/Geospatial/GeoElevationGrid",Oe);const ye=Oe,be=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Core/X3DChildNode");var fe=e.n(be);const Se=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Grouping/X3DBoundedObject");var ve=e.n(Se);const Ie=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Rendering/TraverseType");var Fe=e.n(Ie);const xe=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Grouping/Group");var Ce=e.n(xe);const Ne=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Networking/Inline");var Me=e.n(Ne);const je=window[Symbol.for("X_ITE.X3D-8.9.0")].require("standard/Math/Geometry/Box3");var ze=e.n(je),Ge=new(f())(0,0,0);function Ve(e){fe().call(this,e),ve().call(this,e),ae.call(this,e),this.addType(u().GeoLOD),this._range.setUnit("length"),this.unload=!1,this.rootGroup=new(Ce())(this.getBrowser().getPrivateScene()),this.rootInline=new(Me())(e),this.child1Inline=new(Me())(e),this.child2Inline=new(Me())(e),this.child3Inline=new(Me())(e),this.child4Inline=new(Me())(e),this.childrenLoaded=!1,this.childBBox=new(ze()),this.keepCurrentLevel=!1,this.modelViewMatrix=new(H())}Object.assign(Object.setPrototypeOf(Ve.prototype,fe().prototype),ve().prototype,ae.prototype,{initialize(){fe().prototype.initialize.call(this),ve().prototype.initialize.call(this),ae.prototype.initialize.call(this),this._rootNode.addFieldInterest(this.rootGroup._children),this.rootGroup._children=this._rootNode,this.rootGroup.setPrivate(!0),this.rootGroup.setup(),this.rootInline._loadState.addInterest("set_rootLoadState__",this),this.child1Inline._loadState.addInterest("set_childLoadState__",this),this.child2Inline._loadState.addInterest("set_childLoadState__",this),this.child3Inline._loadState.addInterest("set_childLoadState__",this),this.child4Inline._loadState.addInterest("set_childLoadState__",this),this._rootUrl.addFieldInterest(this.rootInline._url),this._child1Url.addFieldInterest(this.child1Inline._url),this._child2Url.addFieldInterest(this.child2Inline._url),this._child3Url.addFieldInterest(this.child3Inline._url),this._child4Url.addFieldInterest(this.child4Inline._url),this.rootInline._load=!0,this.child1Inline._load=!1,this.child2Inline._load=!1,this.child3Inline._load=!1,this.child4Inline._load=!1,this.rootInline._url=this._rootUrl,this.child1Inline._url=this._child1Url,this.child2Inline._url=this._child2Url,this.child3Inline._url=this._child3Url,this.child4Inline._url=this._child4Url,this.rootInline.setup(),this.child1Inline.setup(),this.child2Inline.setup(),this.child3Inline.setup(),this.child4Inline.setup()},getBBox(e,t){if(this._bboxSize.getValue().equals(this.getDefaultBBoxSize())){switch(this.childrenLoaded?this._level_changed.getValue():0){case 0:return this._rootNode.length?this.rootGroup.getBBox(e,t):this.rootInline.getBBox(e,t);case 1:{const i=this.childBBox;return e.set(),e.add(this.child1Inline.getBBox(i,t)),e.add(this.child2Inline.getBBox(i,t)),e.add(this.child3Inline.getBBox(i,t)),e.add(this.child4Inline.getBBox(i,t)),e}}return e.set()}return e.set(this._bboxSize.getValue(),this._bboxCenter.getValue())},set_rootLoadState__(){0===this._level_changed.getValue()&&(this._rootNode.length||this.rootInline.checkLoadState()===u().COMPLETE_STATE&&(this._children=this.rootInline.getInternalScene().getRootNodes(),this.childrenLoaded=!1))},set_childLoadState__(){if(1===this._level_changed.getValue()){var e=0;if(this.child1Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child1Inline.checkLoadState()!==u().FAILED_STATE||++e,this.child2Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child2Inline.checkLoadState()!==u().FAILED_STATE||++e,this.child3Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child3Inline.checkLoadState()!==u().FAILED_STATE||++e,this.child4Inline.checkLoadState()!==u().COMPLETE_STATE&&this.child4Inline.checkLoadState()!==u().FAILED_STATE||++e,4===e){this.childrenLoaded=!0;var t=this._children;t.length=0;for(var i=0,n=(o=this.child1Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i]);for(i=0,n=(o=this.child2Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i]);for(i=0,n=(o=this.child3Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i]);var o;for(i=0,n=(o=this.child4Inline.getInternalScene().getRootNodes()).length;i<n;++i)t.push(o[i])}}},set_childCameraObject__(){this.setCameraObject(this.child1Inline.isCameraObject()||this.child2Inline.isCameraObject()||this.child3Inline.isCameraObject()||this.child4Inline.isCameraObject())},set_childPickableObject__(){this.setPickableObject(this.child1Inline.isPickableObject()||this.child2Inline.isPickableObject()||this.child3Inline.isPickableObject()||this.child4Inline.isPickableObject())},getLevel(e){return this.getDistance(e)<this._range.getValue()?1:0},getDistance(e){return e.translate(this.getCoord(this._center.getValue(),Ge)),e.origin.magnitude()},traverse(e,t){switch(e){case Fe().PICKING:var i=this.getBrowser().getPickingHierarchy();return i.push(this),this.traverseChildren(e,t),void i.pop();case Fe().DISPLAY:var n=this.getLevel(this.modelViewMatrix.assign(t.getModelViewMatrix().get()));if(n!==this._level_changed.getValue())switch(this._level_changed=n,n){case 0:this.child1Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child2Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child3Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child4Inline._isCameraObject.removeInterest("set_childCameraObject__",this),this.child1Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child2Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child3Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this.child4Inline._isPickableObject.removeInterest("set_childPickableObject__",this),this._rootNode.length?(this.rootGroup._isCameraObject.addFieldInterest(this._isCameraObject),this.rootGroup._isPickableObject.addFieldInterest(this._isPickableObject),this.setCameraObject(this.rootGroup.isCameraObject()),this.setPickableObject(this.rootGroup.isPickableObject()),this._children=this._rootNode,this.childrenLoaded=!1):this.rootInline.checkLoadState()==u().COMPLETE_STATE&&(this.rootInline._isCameraObject.addFieldInterest(this._isCameraObject),this.rootInline._isPickableObject.addFieldInterest(this._isPickableObject),this.setCameraObject(this.rootInline.isCameraObject()),this.setPickableObject(this.rootInline.isPickableObject()),this._children=this.rootInline.getInternalScene().getRootNodes(),this.childrenLoaded=!1),this.unload&&(this.child1Inline._load=!1,this.child2Inline._load=!1,this.child3Inline._load=!1,this.child4Inline._load=!1);break;case 1:this._rootNode.length?(this.rootGroup._isCameraObject.removeFieldInterest(this._isCameraObject),this.rootGroup._isPickableObject.removeFieldInterest(this._isPickableObject)):(this.rootInline._isCameraObject.removeFieldInterest(this._isCameraObject),this.rootInline._isPickableObject.removeFieldInterest(this._isPickableObject)),this.child1Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child2Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child3Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child4Inline._isCameraObject.addInterest("set_childCameraObject__",this),this.child1Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child2Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child3Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.child4Inline._isPickableObject.addInterest("set_childPickableObject__",this),this.set_childCameraObject__(),this.set_childPickableObject__(),this.child1Inline._load.getValue()?this.set_childLoadState__():(this.child1Inline._load=!0,this.child2Inline._load=!0,this.child3Inline._load=!0,this.child4Inline._load=!0)}return void this.traverseChildren(e,t);default:return void this.traverseChildren(e,t)}},traverseChildren(e,t){switch(this.childrenLoaded?this._level_changed.getValue():0){case 0:this._rootNode.length?this.rootGroup.traverse(e,t):this.rootInline.traverse(e,t);break;case 1:this.child1Inline.traverse(e,t),this.child2Inline.traverse(e,t),this.child3Inline.traverse(e,t),this.child4Inline.traverse(e,t)}},dispose(){ae.prototype.dispose.call(this),ve().prototype.dispose.call(this),fe().prototype.dispose.call(this)}}),Object.defineProperties(Ve,{typeName:{value:"GeoLOD",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().initializeOnly,"rootUrl",new(o().MFString)),new(r())(u().initializeOnly,"child1Url",new(o().MFString)),new(r())(u().initializeOnly,"child2Url",new(o().MFString)),new(r())(u().initializeOnly,"child3Url",new(o().MFString)),new(r())(u().initializeOnly,"child4Url",new(o().MFString)),new(r())(u().initializeOnly,"center",new(o().SFVec3d)),new(r())(u().initializeOnly,"range",new(o().SFFloat)(10)),new(r())(u().outputOnly,"level_changed",new(o().SFInt32)(-1)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().initializeOnly,"rootNode",new(o().MFNode)),new(r())(u().outputOnly,"children",new(o().MFNode))]),enumerable:!0}});const De=Ve;g().set("x_ite/Components/Geospatial/GeoLOD",De);const Pe=De,Ee=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Grouping/X3DTransformMatrix3DNode");var Te=e.n(Ee),Xe=new(H());function ke(e){Te().call(this,e),ae.call(this,e),this.addType(u().GeoLocation)}Object.assign(Object.setPrototypeOf(ke.prototype,Te().prototype),ae.prototype,{initialize(){Te().prototype.initialize.call(this),ae.prototype.initialize.call(this),this.addInterest("eventsProcessed",this),this.eventsProcessed()},eventsProcessed(){this.setMatrix(this.getLocationMatrix(this._geoCoords.getValue(),Xe))},dispose(){ae.prototype.dispose.call(this),Te().prototype.dispose.call(this)}}),Object.defineProperties(ke,{typeName:{value:"GeoLocation",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCoords",new(o().SFVec3d)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(o().MFNode)),new(r())(u().inputOnly,"removeChildren",new(o().MFNode)),new(r())(u().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const Le=ke;g().set("x_ite/Components/Geospatial/GeoLocation",Le);const Re=Le,Ae=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Core/X3DInfoNode");var Be=e.n(Ae);const Ue=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Networking/X3DUrlObject");var qe=e.n(Ue);function We(e){Be().call(this,e),qe().call(this,e),this.addType(u().GeoMetadata)}Object.assign(Object.setPrototypeOf(We.prototype,Be().prototype),qe().prototype,{initialize(){Be().prototype.initialize.call(this),qe().prototype.initialize.call(this)},requestImmediateLoad(e=!0){},dispose(){qe().prototype.dispose.call(this),Be().prototype.dispose.call(this)}}),Object.defineProperties(We,{typeName:{value:"GeoMetadata",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"load",new(o().SFBool)(!0)),new(r())(u().inputOutput,"url",new(o().MFString)),new(r())(u().inputOutput,"autoRefresh",new(o().SFTime)),new(r())(u().inputOutput,"autoRefreshTimeLimit",new(o().SFTime)(3600)),new(r())(u().inputOutput,"summary",new(o().MFString)),new(r())(u().inputOutput,"data",new(o().MFNode))]),enumerable:!0}});const He=We;g().set("x_ite/Components/Geospatial/GeoMetadata",He);const Ye=He,Ze=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Core/X3DNode");var $e=e.n(Ze);function Ke(e){$e().call(this,e),this.addType(u().GeoOrigin),this.radians=!1}Object.assign(Object.setPrototypeOf(Ke.prototype,$e().prototype),{initialize(){$e().prototype.initialize.call(this),this._geoSystem.addInterest("set_geoSystem__",this),this.set_geoSystem__()},set_geoSystem__(){this.referenceFrame=B.getReferenceFrame(this._geoSystem,this.radians)},getOrigin(e){return this.referenceFrame.convert(this._geoCoords.getValue(),e)}}),Object.defineProperties(Ke,{typeName:{value:"GeoOrigin",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"geoOrigin",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCoords",new(o().SFVec3d)),new(r())(u().initializeOnly,"rotateYUp",new(o().SFBool))]),enumerable:!0}});const Je=Ke;g().set("x_ite/Components/Geospatial/GeoOrigin",Je);const Qe=Je,et=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Interpolation/X3DInterpolatorNode");var tt=e.n(et);function it(e){tt().call(this,e),ae.call(this,e),this.addType(u().GeoPositionInterpolator),this._value_changed.setUnit("length"),this.geocentric=new P}Object.assign(Object.setPrototypeOf(it.prototype,tt().prototype),ae.prototype,{setup(){ae.prototype.initialize.call(this),tt().prototype.setup.call(this)},initialize(){tt().prototype.initialize.call(this),this._keyValue.addInterest("set_keyValue__",this)},set_keyValue__(){const e=this._key,t=this._keyValue;t.length<e.length&&t.resize(e.length,t.length?t[t.length-1]:new(o().SFVec3f))},interpolate:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0),i=new(f())(0,0,0);return function(n,o,s){this.getCoord(this._keyValue[n].getValue(),e),this.getCoord(this._keyValue[o].getValue(),t);const r=this.geocentric.slerp(e,t,s);this._geovalue_changed=this.getGeoCoord(r,i),this._value_changed=r}})(),dispose(){ae.prototype.dispose.call(this),tt().prototype.dispose.call(this)}}),Object.defineProperties(it,{typeName:{value:"GeoPositionInterpolator",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOnly,"set_fraction",new(o().SFFloat)),new(r())(u().inputOutput,"key",new(o().MFFloat)),new(r())(u().inputOutput,"keyValue",new(o().MFVec3d)),new(r())(u().outputOnly,"value_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"geovalue_changed",new(o().SFVec3d))]),enumerable:!0}});const nt=it;g().set("x_ite/Components/Geospatial/GeoPositionInterpolator",nt);const ot=nt,st=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode");var rt=e.n(st);const at=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/EnvironmentalSensor/ProximitySensor");var lt=e.n(at),ht=new(f())(0,0,0);function dt(e){rt().call(this,e),ae.call(this,e),this.addType(u().GeoProximitySensor),this._position_changed.setUnit("length"),this._centerOfRotation_changed.setUnit("length"),this.proximitySensor=new(lt())(e),this.setCameraObject(this.proximitySensor.isCameraObject()),this.setPickableObject(this.proximitySensor.isPickableObject())}Object.assign(Object.setPrototypeOf(dt.prototype,rt().prototype),ae.prototype,{initialize(){rt().prototype.initialize.call(this),ae.prototype.initialize.call(this),this._enabled.addFieldInterest(this.proximitySensor._enabled),this._size.addFieldInterest(this.proximitySensor._size),this._center.addFieldInterest(this.proximitySensor._center),this.proximitySensor._isCameraObject.addFieldInterest(this._isCameraObject),this.proximitySensor._isPickableObject.addFieldInterest(this._isPickableObject),this.proximitySensor._isActive.addFieldInterest(this._isActive),this.proximitySensor._enterTime.addFieldInterest(this._enterTime),this.proximitySensor._exitTime.addFieldInterest(this._exitTime),this.proximitySensor._position_changed.addFieldInterest(this._position_changed),this.proximitySensor._orientation_changed.addFieldInterest(this._orientation_changed),this.proximitySensor._centerOfRotation_changed.addFieldInterest(this._centerOfRotation_changed),this.proximitySensor._position_changed.addInterest("set_position__",this),this.proximitySensor._enabled=this._enabled,this.proximitySensor._size=this._size,this.proximitySensor._center=this._center,this.proximitySensor.setup()},set_position__(e){this._geoCoord_changed=this.getGeoCoord(this.proximitySensor._position_changed.getValue(),ht)},traverse(e,t){this.proximitySensor.traverse(e,t)},dispose(){ae.prototype.dispose.call(this),rt().prototype.dispose.call(this)}}),Object.defineProperties(dt,{typeName:{value:"GeoProximitySensor",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"size",new(o().SFVec3f)),new(r())(u().inputOutput,"center",new(o().SFVec3f)),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"enterTime",new(o().SFTime)),new(r())(u().outputOnly,"exitTime",new(o().SFTime)),new(r())(u().outputOnly,"geoCoord_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"position_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"orientation_changed",new(o().SFRotation)),new(r())(u().outputOnly,"centerOfRotation_changed",new(o().SFVec3f))]),enumerable:!0}});const ct=dt;g().set("x_ite/Components/Geospatial/GeoProximitySensor",ct);const ut=ct,pt=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode");var gt=e.n(pt);function _t(e){gt().call(this,e),ae.call(this,e),this.addType(u().GeoTouchSensor),this._hitPoint_changed.setUnit("length")}Object.assign(Object.setPrototypeOf(_t.prototype,gt().prototype),ae.prototype,{initialize(){gt().prototype.initialize.call(this),ae.prototype.initialize.call(this)},set_over__:(()=>{const e=new(f())(0,0,0);return function(t,i,n,o,s){gt().prototype.set_over__.call(this,t,i,n,o,s),this._isOver.getValue()&&(this._hitGeoCoord_changed=this.getGeoCoord(this._hitPoint_changed.getValue(),e))}})(),dispose(){ae.prototype.dispose.call(this),gt().prototype.dispose.call(this)}}),Object.defineProperties(_t,{typeName:{value:"GeoTouchSensor",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().outputOnly,"hitTexCoord_changed",new(o().SFVec2f)),new(r())(u().outputOnly,"hitNormal_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"hitPoint_changed",new(o().SFVec3f)),new(r())(u().outputOnly,"hitGeoCoord_changed",new(o().SFVec3d)),new(r())(u().outputOnly,"isOver",new(o().SFBool)),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"touchTime",new(o().SFTime))]),enumerable:!0}});const wt=_t;g().set("x_ite/Components/Geospatial/GeoTouchSensor",wt);const mt=wt;var Ot=new(H()),yt=new(H());function bt(e){Te().call(this,e),ae.call(this,e),this.addType(u().GeoTransform),this._translation.setUnit("length")}Object.assign(Object.setPrototypeOf(bt.prototype,Te().prototype),ae.prototype,{initialize(){Te().prototype.initialize.call(this),ae.prototype.initialize.call(this),this.addInterest("eventsProcessed",this),this.eventsProcessed()},eventsProcessed(){this.getLocationMatrix(this._geoCenter.getValue(),yt),Ot.set(this._translation.getValue(),this._rotation.getValue(),this._scale.getValue(),this._scaleOrientation.getValue()),this.setMatrix(Ot.multRight(yt).multLeft(yt.inverse()))},dispose(){ae.prototype.dispose.call(this),Te().prototype.dispose.call(this)}}),Object.defineProperties(bt,{typeName:{value:"GeoTransform",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"translation",new(o().SFVec3f)),new(r())(u().inputOutput,"rotation",new(o().SFRotation)),new(r())(u().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(u().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOutput,"geoCenter",new(o().SFVec3d)),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(o().MFNode)),new(r())(u().inputOnly,"removeChildren",new(o().MFNode)),new(r())(u().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const ft=bt;g().set("x_ite/Components/Geospatial/GeoTransform",ft);const St=ft,vt=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Navigation/X3DViewpointNode");var It=e.n(vt);const Ft=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Navigation/Viewpoint");var xt=e.n(Ft);const Ct=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Navigation/NavigationInfo");var Nt=e.n(Ct);const Mt=window[Symbol.for("X_ITE.X3D-8.9.0")].require("standard/Math/Numbers/Rotation4");var jt=e.n(Mt);function zt(e){It().call(this,e),ae.call(this,e),this.addType(u().GeoViewpoint),this.addChildObjects("navType",new(o().MFString)("EXAMINE","ANY"),"headlight",new(o().SFBool)(!0)),e.getSpecificationVersion()<=3.2&&(this.addAlias("navType",this._navType),this.addAlias("headlight",this._headlight),this.traverse=Gt),this._centerOfRotation.setUnit("length"),this._fieldOfView.setUnit("angle"),this.geoNavigationInfoNode=new(Nt())(e),this.projectionMatrix=new(H()),this.elevation=0}function Gt(e,t){It().prototype.traverse.call(this,e,t),this.geoNavigationInfoNode.traverse(e,t)}Object.assign(Object.setPrototypeOf(zt.prototype,It().prototype),ae.prototype,{initialize(){It().prototype.initialize.call(this),ae.prototype.initialize.call(this);const e=this.getBrowser().getContext();this.logarithmicDepthBuffer=e.HAS_FEATURE_FRAG_DEPTH,this._position.addInterest("set_position__",this),this._positionOffset.addInterest("set_position__",this),this._navType.addFieldInterest(this.geoNavigationInfoNode._type),this._headlight.addFieldInterest(this.geoNavigationInfoNode._headlight),this.geoNavigationInfoNode._type=this._navType,this.geoNavigationInfoNode._headlight=this._headlight,this.geoNavigationInfoNode.setup(),this.getExecutionContext().getSpecificationVersion()<=3.2&&(this._navigationInfo=this.geoNavigationInfoNode),this.set_position__()},getRelativeTransformation:xt().prototype.getRelativeTransformation,setInterpolators:xt().prototype.setInterpolators,getFieldOfView:xt().prototype.getFieldOfView,getScreenScale:xt().prototype.getScreenScale,getViewportSize:xt().prototype.getViewportSize,getLookAtDistance:xt().prototype.getLookAtDistance,getProjectionMatrixWithLimits:xt().prototype.getProjectionMatrixWithLimits,getLogarithmicDepthBuffer(){return this.logarithmicDepthBuffer},setPosition:(()=>{const e=new(f())(0,0,0);return function(t){this._position.setValue(this.getGeoCoord(t,e))}})(),getPosition:(()=>{const e=new(f())(0,0,0);return function(){return this.getCoord(this._position.getValue(),e)}})(),set_position__:(()=>{const e=new(f())(0,0,0);return function(){this.getCoord(this._position.getValue(),e),this.elevation=this.getGeoElevation(e.add(this._positionOffset.getValue()))}})(),setOrientation:(()=>{const e=new(H()),t=new(jt());return function(i){const n=this.getLocationMatrix(this._position.getValue(),e).submatrix;t.setMatrix(n),this._orientation.setValue(t.inverse().multLeft(i))}})(),getOrientation:(()=>{const e=new(H()),t=new(jt());return function(){const i=this.getLocationMatrix(this._position.getValue(),e).submatrix;return t.setMatrix(i),t.multLeft(this._orientation.getValue())}})(),getCenterOfRotation:(()=>{const e=new(f())(0,0,0);return function(){return this.getCoord(this._centerOfRotation.getValue(),e)}})(),getMaxFarValue:()=>1e9,getUpVector:(()=>{const e=new(f())(0,0,0),t=new(f())(0,0,0);return function(i=!1){return!i||this.getUserPosition().magnitude()<65e5?(this.getCoord(this._position.getValue(),e),this.getGeoUpVector(e.add(this._positionOffset.getValue()),t)):t.assign(f().zAxis)}})(),getSpeedFactor(){return(Math.max(this.elevation,0)+10)/10*this._speedFactor.getValue()},dispose(){ae.prototype.dispose.call(this),It().prototype.dispose.call(this)}}),Object.defineProperties(zt,{typeName:{value:"GeoViewpoint",enumerable:!0},componentName:{value:"Geospatial",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(l())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().initializeOnly,"geoOrigin",new(o().SFNode)),new(r())(u().initializeOnly,"geoSystem",new(o().MFString)("GD","WE")),new(r())(u().inputOnly,"set_bind",new(o().SFBool)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"position",new(o().SFVec3d)(0,0,1e5)),new(r())(u().inputOutput,"orientation",new(o().SFRotation)),new(r())(u().inputOutput,"centerOfRotation",new(o().SFVec3d)),new(r())(u().inputOutput,"fieldOfView",new(o().SFFloat)(.785398)),new(r())(u().inputOutput,"nearDistance",new(o().SFFloat)(-1)),new(r())(u().inputOutput,"farDistance",new(o().SFFloat)(-1)),new(r())(u().inputOutput,"viewAll",new(o().SFBool)),new(r())(u().inputOutput,"jump",new(o().SFBool)(!0)),new(r())(u().inputOutput,"retainUserOffsets",new(o().SFBool)),new(r())(u().initializeOnly,"speedFactor",new(o().SFFloat)(1)),new(r())(u().outputOnly,"isBound",new(o().SFBool)),new(r())(u().outputOnly,"bindTime",new(o().SFTime)),new(r())(u().inputOutput,"navigationInfo",new(o().SFNode))]),enumerable:!0}});const Vt=zt;g().set("x_ite/Components/Geospatial/GeoViewpoint",Vt);const Dt=Vt;i().add({name:"Geospatial",concreteNodes:[ue,ye,Pe,Re,Ye,Qe,ot,ut,mt,St,Dt],abstractNodes:[ae]});const Pt=void 0;g().set("assets/components/Geospatial",Pt)})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v8.
|
|
1
|
+
/* X_ITE v8.9.0 */(() => { // 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.9.0")] .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.9.0")] .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.9.0")] .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.9.0")] .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.9.0")] .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.9.0")] .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.9.0")] .require ("x_ite/Namespace");
|
|
61
61
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
62
62
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimDisplacer.js
|
|
63
63
|
/*******************************************************************************
|
|
@@ -166,28 +166,28 @@ const __default__ = HAnimDisplacer;
|
|
|
166
166
|
Namespace_default().set ("x_ite/Components/HAnim/HAnimDisplacer", __default__);
|
|
167
167
|
/* harmony default export */ const HAnim_HAnimDisplacer = (__default__);
|
|
168
168
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
|
169
|
-
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
169
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .require ("x_ite/Components/Core/X3DChildNode");
|
|
170
170
|
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
|
171
171
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/Group\")"
|
|
172
|
-
const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
172
|
+
const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .require ("x_ite/Components/Grouping/Group");
|
|
173
173
|
var Group_default = /*#__PURE__*/__webpack_require__.n(Group_namespaceObject);
|
|
174
174
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/Transform\")"
|
|
175
|
-
const Transform_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
175
|
+
const Transform_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .require ("x_ite/Components/Grouping/Transform");
|
|
176
176
|
var Transform_default = /*#__PURE__*/__webpack_require__.n(Transform_namespaceObject);
|
|
177
177
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
|
|
178
|
-
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
178
|
+
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
|
|
179
179
|
var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
|
|
180
180
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
|
|
181
|
-
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
181
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .require ("x_ite/Rendering/TraverseType");
|
|
182
182
|
var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
|
|
183
183
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
184
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
184
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .require ("x_ite/Base/X3DCast");
|
|
185
185
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
186
186
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
187
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
187
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .require ("standard/Math/Numbers/Matrix4");
|
|
188
188
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
189
189
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
190
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
190
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .require ("standard/Math/Numbers/Vector3");
|
|
191
191
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
192
192
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimHumanoid.js
|
|
193
193
|
/*******************************************************************************
|
|
@@ -613,7 +613,7 @@ const HAnimHumanoid_default_ = HAnimHumanoid;
|
|
|
613
613
|
Namespace_default().set ("x_ite/Components/HAnim/HAnimHumanoid", HAnimHumanoid_default_);
|
|
614
614
|
/* harmony default export */ const HAnim_HAnimHumanoid = (HAnimHumanoid_default_);
|
|
615
615
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DTransformNode\")"
|
|
616
|
-
const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
616
|
+
const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .require ("x_ite/Components/Grouping/X3DTransformNode");
|
|
617
617
|
var X3DTransformNode_default = /*#__PURE__*/__webpack_require__.n(X3DTransformNode_namespaceObject);
|
|
618
618
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimJoint.js
|
|
619
619
|
/*******************************************************************************
|
|
@@ -911,7 +911,7 @@ Object .defineProperties (HAnimMotion,
|
|
|
911
911
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "loop", new (Fields_default()).SFBool ()),
|
|
912
912
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "channels", new (Fields_default()).SFString ()),
|
|
913
913
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "channelsEnabled", new (Fields_default()).MFBool ()),
|
|
914
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "joints", new (Fields_default()).
|
|
914
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "joints", new (Fields_default()).SFString ()),
|
|
915
915
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "loa", new (Fields_default()).SFInt32 (-1)),
|
|
916
916
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "startFrame", new (Fields_default()).SFInt32 ()),
|
|
917
917
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "endFrame", new (Fields_default()).SFInt32 ()),
|
|
@@ -930,7 +930,7 @@ const HAnimMotion_default_ = HAnimMotion;
|
|
|
930
930
|
Namespace_default().set ("x_ite/Components/HAnim/HAnimMotion", HAnimMotion_default_);
|
|
931
931
|
/* harmony default export */ const HAnim_HAnimMotion = (HAnimMotion_default_);
|
|
932
932
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
|
|
933
|
-
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
933
|
+
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
|
|
934
934
|
var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
|
|
935
935
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimSegment.js
|
|
936
936
|
/*******************************************************************************
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.8.6 */(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Fields");var o=e.n(i);const s=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const a=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Base/FieldDefinitionArray");var u=e.n(a);const l=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var d=e.n(l);const p=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Base/X3DConstants");var w=e.n(p);const c=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Namespace");var m=e.n(c);function h(e){d().call(this,e),this.addType(w().HAnimDisplacer),this._displacements.setUnit("length")}Object.setPrototypeOf(h.prototype,d().prototype),Object.defineProperties(h,{typeName:{value:"HAnimDisplacer",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"displacers",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"coordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"weight",new(o().SFFloat)),new(r())(w().inputOutput,"displacements",new(o().MFVec3f))]),enumerable:!0}});const _=h;m().set("x_ite/Components/HAnim/HAnimDisplacer",_);const N=_,O=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Core/X3DChildNode");var b=e.n(O);const f=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Grouping/Group");var F=e.n(f);const S=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Grouping/Transform");var g=e.n(S);const y=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Grouping/X3DBoundedObject");var v=e.n(y);const C=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Rendering/TraverseType");var x=e.n(C);const k=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Base/X3DCast");var I=e.n(k);const M=window[Symbol.for("X_ITE.X3D-8.8.6")].require("standard/Math/Numbers/Matrix4");var j=e.n(M);const A=window[Symbol.for("X_ITE.X3D-8.8.6")].require("standard/Math/Numbers/Vector3");var D=e.n(A);function X(e){b().call(this,e),v().call(this,e),this.addType(w().HAnimHumanoid),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),this.skeletonNode=new(F())(e),this.viewpointsNode=new(F())(e),this.skinNode=new(F())(e),this.transformNode=new(g())(e),this.jointNodes=[],this.skinNormalNode=null,this.skinCoordNode=null,this.restNormalNode=null,this.restCoordNode=null,this.changed=!1}Object.assign(Object.setPrototypeOf(X.prototype,b().prototype),v().prototype,{initialize(){b().prototype.initialize.call(this),v().prototype.initialize.call(this),this.skeletonNode.setAllowedTypes(w().HAnimJoint,w().HAnimSite),this.viewpointsNode.setAllowedTypes(w().HAnimSite),this._skeleton.addFieldInterest(this.skeletonNode._children),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skin.addFieldInterest(this.skinNode._children),this.skeletonNode._children=this._skeleton,this.viewpointsNode._children=this._viewpoints,this.skinNode._children=this._skin,this.skeletonNode.setPrivate(!0),this.viewpointsNode.setPrivate(!0),this.skinNode.setPrivate(!0),this._translation.addFieldInterest(this.transformNode._translation),this._rotation.addFieldInterest(this.transformNode._rotation),this._scale.addFieldInterest(this.transformNode._scale),this._scaleOrientation.addFieldInterest(this.transformNode._scaleOrientation),this._center.addFieldInterest(this.transformNode._center),this._visible.addFieldInterest(this.transformNode._visible),this._bboxDisplay.addFieldInterest(this.transformNode._bboxDisplay),this._bboxSize.addFieldInterest(this.transformNode._bboxSize),this._bboxCenter.addFieldInterest(this.transformNode._bboxCenter),this.transformNode._translation=this._translation,this.transformNode._rotation=this._rotation,this.transformNode._scale=this._scale,this.transformNode._scaleOrientation=this._scaleOrientation,this.transformNode._center=this._center,this.transformNode._visible=this._visible,this.transformNode._bboxDisplay=this._bboxDisplay,this.transformNode._bboxSize=this._bboxSize,this.transformNode._bboxCenter=this._bboxCenter,this.transformNode._children=[this.skeletonNode,this.viewpointsNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.skeletonNode.setup(),this.viewpointsNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.isCameraObject()),this.setPickableObject(this.transformNode.isPickableObject()),this._joints.addInterest("set_joints__",this),this._skinNormal.addInterest("set_skinNormal__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_joints__(),this.set_skinNormal__(),this.set_skinCoord__()},getBBox(e,t){return this.transformNode.getBBox(e,t)},set_joints__(){const e=this.jointNodes;for(const t of e)t.removeInterest("set_joint__",this);e.length=0;for(const t of this._joints){const n=I()(w().HAnimJoint,t);n&&e.push(n)}for(const t of e)t.addInterest("set_joint__",this);this.set_joint__()},set_joint__(){this.changed=!0},set_skinNormal__(){this.restNormalNode=null,this.skinNormalNode=I()(w().X3DNormalNode,this._skinNormal),this.skinNormalNode&&(this.restNormalNode=this.skinNormalNode.copy()),this.changed=!0},set_skinCoord__(){this.restCoordNode=null,this.skinCoordNode=I()(w().X3DCoordinateNode,this._skinCoord),this.skinCoordNode?(this.restCoordNode=this.skinCoordNode.copy(),delete this.skinning):this.skinning=Function.prototype,this.changed=!0},traverse(e,t){this.transformNode.traverse(e,t),this.skinning(e,t)},skinning:(()=>{const e=new(j()),t=new(D())(0,0,0),n=new(D())(0,0,0),i=new(D())(0,0,0),o=new(D())(0,0,0);return function(s,r){if(s!==x().CAMERA)return;if(!this.changed)return;this.changed=!1;const a=this.jointNodes,u=this.skinNormalNode,l=this.skinCoordNode,d=this.restNormalNode,p=this.restCoordNode;u&&u._vector.assign(d._vector),l._point.assign(p._point),e.assign(this.transformNode.getMatrix()).multRight(r.getModelViewMatrix().get()).inverse();for(const s of a){const r=s._skinCoordIndex.length,a=s.getModelMatrix().multRight(e),w=s.getDisplacers();for(const e of w){const t=e._coordIndex.getValue(),n=e._coordIndex.length,s=e._weight.getValue(),r=e._displacements.getValue(),u=e._displacements.length;for(let e=0;e<n;++e){const n=3*e,d=t[e],p=e<u?o.set(r[n],r[n+1],r[n+2]):o.assign(D().Zero);l.get1Point(d,i),a.multDirMatrix(p).multiply(s).add(i),l.set1Point(d,p)}}const c=u?a.submatrix.transpose().inverse():null,m=s._skinCoordIndex.getValue(),h=s._skinCoordWeight.getValue(),_=s._skinCoordWeight.length;for(let e=0;e<r;++e){const s=m[e],r=e<_?h[e]:1;u&&(n.assign(d.get1Vector(s,t)),u.get1Vector(s,i),c.multVecMatrix(t).subtract(n).multiply(r).add(i),u.set1Vector(s,t)),n.assign(p.get1Point(s,o)),l.get1Point(s,i),a.multVecMatrix(o).subtract(n).multiply(r).add(i),l.set1Point(s,o)}}}})(),toVRMLStream(e){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),b().prototype.toVRMLStream.call(this,e)},toXMLStream(e){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),b().prototype.toXMLStream.call(this,e)},toJSONStream(e){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),b().prototype.toJSONStream.call(this,e)},dispose(){v().prototype.dispose.call(this),b().prototype.dispose.call(this)}}),Object.defineProperties(X,{typeName:{value:"HAnimHumanoid",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"version",new(o().SFString)),new(r())(w().inputOutput,"info",new(o().MFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"jointBindingPositions",new(o().MFVec3f)),new(r())(w().inputOutput,"jointBindingRotations",new(o().MFRotation)),new(r())(w().inputOutput,"jointBindingScales",new(o().MFVec3f)),new(r())(w().inputOutput,"motionsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"skeletalConfiguration",new(o().SFString)("BASIC")),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOutput,"skeleton",new(o().MFNode)),new(r())(w().inputOutput,"viewpoints",new(o().MFNode)),new(r())(w().inputOutput,"sites",new(o().MFNode)),new(r())(w().inputOutput,"segments",new(o().MFNode)),new(r())(w().inputOutput,"joints",new(o().MFNode)),new(r())(w().inputOutput,"motions",new(o().MFNode)),new(r())(w().inputOutput,"skinBindingNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinBindingCoord",new(o().SFNode)),new(r())(w().inputOutput,"skinNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinCoord",new(o().SFNode)),new(r())(w().inputOutput,"skin",new(o().MFNode))]),enumerable:!0}});const H=X;m().set("x_ite/Components/HAnim/HAnimHumanoid",H);const T=H,V=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Grouping/X3DTransformNode");var z=e.n(V);function B(e){z().call(this,e),this.addType(w().HAnimJoint),this.setAllowedTypes(w().HAnimJoint,w().HAnimSegment,w().HAnimSite),this.displacerNodes=[],this.modelMatrix=new(j())}Object.assign(Object.setPrototypeOf(B.prototype,z().prototype),{initialize(){z().prototype.initialize.call(this),this._skinCoordIndex.addInterest("set_skinCoordIndex__",this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},setCameraObject(e){z().prototype.setCameraObject.call(this,e||!!this._skinCoordIndex.length)},getModelMatrix(){return this.modelMatrix},getDisplacers(){return this.displacerNodes},set_skinCoordIndex__(){this.set_cameraObjects__()},set_displacers__(){const e=this.displacerNodes;e.length=0;for(const t of this._displacers){const n=I()(w().HAnimDisplacer,t);n&&e.push(n)}},traverse(e,t){e===x().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(this.getMatrix()).multRight(t.getModelViewMatrix().get()),z().prototype.traverse.call(this,e,t)},groupTraverse(e,t){e===x().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(t.getModelViewMatrix().get()),z().prototype.groupTraverse.call(this,e,t)}}),Object.defineProperties(B,{typeName:{value:"HAnimJoint",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"llimit",new(o().MFFloat)),new(r())(w().inputOutput,"ulimit",new(o().MFFloat)),new(r())(w().inputOutput,"limitOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"stiffness",new(o().MFFloat)(0,0,0)),new(r())(w().inputOutput,"skinCoordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"skinCoordWeight",new(o().MFFloat)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const P=B;m().set("x_ite/Components/HAnim/HAnimJoint",P);const R=P;function E(e){b().call(this,e),this.addType(w().HAnimMotion)}Object.assign(Object.setPrototypeOf(E.prototype,b().prototype),{initialize(){b().prototype.initialize.call(this)}}),Object.defineProperties(E,{typeName:{value:"HAnimMotion",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["4.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(w().inputOnly,"next",new(o().SFBool)),new(r())(w().inputOnly,"previous",new(o().SFBool)),new(r())(w().inputOutput,"frameDuration",new(o().SFTime)(.1)),new(r())(w().inputOutput,"frameIncrement",new(o().SFInt32)(1)),new(r())(w().inputOutput,"frameIndex",new(o().SFInt32)(0)),new(r())(w().inputOutput,"loop",new(o().SFBool)),new(r())(w().inputOutput,"channels",new(o().SFString)),new(r())(w().inputOutput,"channelsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"joints",new(o().MFString)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"startFrame",new(o().SFInt32)),new(r())(w().inputOutput,"endFrame",new(o().SFInt32)),new(r())(w().inputOutput,"values",new(o().MFFloat)),new(r())(w().outputOnly,"cycleTime",new(o().SFTime)),new(r())(w().outputOnly,"elapsedTime",new(o().SFTime)),new(r())(w().outputOnly,"frameCount",new(o().SFInt32))]),enumerable:!0}});const q=E;m().set("x_ite/Components/HAnim/HAnimMotion",q);const G=q,J=window[Symbol.for("X_ITE.X3D-8.8.6")].require("x_ite/Components/Grouping/X3DGroupingNode");var U=e.n(J);function L(e){U().call(this,e),this.addType(w().HAnimSegment),this._mass.setUnit("mass")}Object.setPrototypeOf(L.prototype,U().prototype),Object.defineProperties(L,{typeName:{value:"HAnimSegment",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"mass",new(o().SFFloat)),new(r())(w().inputOutput,"centerOfMass",new(o().SFVec3f)),new(r())(w().inputOutput,"momentsOfInertia",new(o().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"coord",new(o().SFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const W=L;m().set("x_ite/Components/HAnim/HAnimSegment",W);const Z=W;function K(e){z().call(this,e),this.addType(w().HAnimSite)}Object.setPrototypeOf(K.prototype,z().prototype),Object.defineProperties(K,{typeName:{value:"HAnimSite",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const Q=K;m().set("x_ite/Components/HAnim/HAnimSite",Q);const Y=Q;n().add({name:"HAnim",concreteNodes:[N,T,R,G,Z,Y],abstractNodes:[]});const $=void 0;m().set("assets/components/HAnim",$)})();
|
|
1
|
+
/* X_ITE v8.9.0 */(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Fields");var o=e.n(i);const s=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const a=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Base/FieldDefinitionArray");var u=e.n(a);const l=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var d=e.n(l);const p=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Base/X3DConstants");var w=e.n(p);const c=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Namespace");var m=e.n(c);function h(e){d().call(this,e),this.addType(w().HAnimDisplacer),this._displacements.setUnit("length")}Object.setPrototypeOf(h.prototype,d().prototype),Object.defineProperties(h,{typeName:{value:"HAnimDisplacer",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"displacers",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"coordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"weight",new(o().SFFloat)),new(r())(w().inputOutput,"displacements",new(o().MFVec3f))]),enumerable:!0}});const _=h;m().set("x_ite/Components/HAnim/HAnimDisplacer",_);const N=_,O=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Core/X3DChildNode");var b=e.n(O);const f=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Grouping/Group");var F=e.n(f);const S=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Grouping/Transform");var g=e.n(S);const y=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Grouping/X3DBoundedObject");var v=e.n(y);const C=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Rendering/TraverseType");var x=e.n(C);const k=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Base/X3DCast");var I=e.n(k);const M=window[Symbol.for("X_ITE.X3D-8.9.0")].require("standard/Math/Numbers/Matrix4");var j=e.n(M);const A=window[Symbol.for("X_ITE.X3D-8.9.0")].require("standard/Math/Numbers/Vector3");var D=e.n(A);function X(e){b().call(this,e),v().call(this,e),this.addType(w().HAnimHumanoid),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),this.skeletonNode=new(F())(e),this.viewpointsNode=new(F())(e),this.skinNode=new(F())(e),this.transformNode=new(g())(e),this.jointNodes=[],this.skinNormalNode=null,this.skinCoordNode=null,this.restNormalNode=null,this.restCoordNode=null,this.changed=!1}Object.assign(Object.setPrototypeOf(X.prototype,b().prototype),v().prototype,{initialize(){b().prototype.initialize.call(this),v().prototype.initialize.call(this),this.skeletonNode.setAllowedTypes(w().HAnimJoint,w().HAnimSite),this.viewpointsNode.setAllowedTypes(w().HAnimSite),this._skeleton.addFieldInterest(this.skeletonNode._children),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skin.addFieldInterest(this.skinNode._children),this.skeletonNode._children=this._skeleton,this.viewpointsNode._children=this._viewpoints,this.skinNode._children=this._skin,this.skeletonNode.setPrivate(!0),this.viewpointsNode.setPrivate(!0),this.skinNode.setPrivate(!0),this._translation.addFieldInterest(this.transformNode._translation),this._rotation.addFieldInterest(this.transformNode._rotation),this._scale.addFieldInterest(this.transformNode._scale),this._scaleOrientation.addFieldInterest(this.transformNode._scaleOrientation),this._center.addFieldInterest(this.transformNode._center),this._visible.addFieldInterest(this.transformNode._visible),this._bboxDisplay.addFieldInterest(this.transformNode._bboxDisplay),this._bboxSize.addFieldInterest(this.transformNode._bboxSize),this._bboxCenter.addFieldInterest(this.transformNode._bboxCenter),this.transformNode._translation=this._translation,this.transformNode._rotation=this._rotation,this.transformNode._scale=this._scale,this.transformNode._scaleOrientation=this._scaleOrientation,this.transformNode._center=this._center,this.transformNode._visible=this._visible,this.transformNode._bboxDisplay=this._bboxDisplay,this.transformNode._bboxSize=this._bboxSize,this.transformNode._bboxCenter=this._bboxCenter,this.transformNode._children=[this.skeletonNode,this.viewpointsNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.skeletonNode.setup(),this.viewpointsNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.isCameraObject()),this.setPickableObject(this.transformNode.isPickableObject()),this._joints.addInterest("set_joints__",this),this._skinNormal.addInterest("set_skinNormal__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_joints__(),this.set_skinNormal__(),this.set_skinCoord__()},getBBox(e,t){return this.transformNode.getBBox(e,t)},set_joints__(){const e=this.jointNodes;for(const t of e)t.removeInterest("set_joint__",this);e.length=0;for(const t of this._joints){const n=I()(w().HAnimJoint,t);n&&e.push(n)}for(const t of e)t.addInterest("set_joint__",this);this.set_joint__()},set_joint__(){this.changed=!0},set_skinNormal__(){this.restNormalNode=null,this.skinNormalNode=I()(w().X3DNormalNode,this._skinNormal),this.skinNormalNode&&(this.restNormalNode=this.skinNormalNode.copy()),this.changed=!0},set_skinCoord__(){this.restCoordNode=null,this.skinCoordNode=I()(w().X3DCoordinateNode,this._skinCoord),this.skinCoordNode?(this.restCoordNode=this.skinCoordNode.copy(),delete this.skinning):this.skinning=Function.prototype,this.changed=!0},traverse(e,t){this.transformNode.traverse(e,t),this.skinning(e,t)},skinning:(()=>{const e=new(j()),t=new(D())(0,0,0),n=new(D())(0,0,0),i=new(D())(0,0,0),o=new(D())(0,0,0);return function(s,r){if(s!==x().CAMERA)return;if(!this.changed)return;this.changed=!1;const a=this.jointNodes,u=this.skinNormalNode,l=this.skinCoordNode,d=this.restNormalNode,p=this.restCoordNode;u&&u._vector.assign(d._vector),l._point.assign(p._point),e.assign(this.transformNode.getMatrix()).multRight(r.getModelViewMatrix().get()).inverse();for(const s of a){const r=s._skinCoordIndex.length,a=s.getModelMatrix().multRight(e),w=s.getDisplacers();for(const e of w){const t=e._coordIndex.getValue(),n=e._coordIndex.length,s=e._weight.getValue(),r=e._displacements.getValue(),u=e._displacements.length;for(let e=0;e<n;++e){const n=3*e,d=t[e],p=e<u?o.set(r[n],r[n+1],r[n+2]):o.assign(D().Zero);l.get1Point(d,i),a.multDirMatrix(p).multiply(s).add(i),l.set1Point(d,p)}}const c=u?a.submatrix.transpose().inverse():null,m=s._skinCoordIndex.getValue(),h=s._skinCoordWeight.getValue(),_=s._skinCoordWeight.length;for(let e=0;e<r;++e){const s=m[e],r=e<_?h[e]:1;u&&(n.assign(d.get1Vector(s,t)),u.get1Vector(s,i),c.multVecMatrix(t).subtract(n).multiply(r).add(i),u.set1Vector(s,t)),n.assign(p.get1Point(s,o)),l.get1Point(s,i),a.multVecMatrix(o).subtract(n).multiply(r).add(i),l.set1Point(s,o)}}}})(),toVRMLStream(e){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),b().prototype.toVRMLStream.call(this,e)},toXMLStream(e){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),b().prototype.toXMLStream.call(this,e)},toJSONStream(e){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),b().prototype.toJSONStream.call(this,e)},dispose(){v().prototype.dispose.call(this),b().prototype.dispose.call(this)}}),Object.defineProperties(X,{typeName:{value:"HAnimHumanoid",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"version",new(o().SFString)),new(r())(w().inputOutput,"info",new(o().MFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"jointBindingPositions",new(o().MFVec3f)),new(r())(w().inputOutput,"jointBindingRotations",new(o().MFRotation)),new(r())(w().inputOutput,"jointBindingScales",new(o().MFVec3f)),new(r())(w().inputOutput,"motionsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"skeletalConfiguration",new(o().SFString)("BASIC")),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOutput,"skeleton",new(o().MFNode)),new(r())(w().inputOutput,"viewpoints",new(o().MFNode)),new(r())(w().inputOutput,"sites",new(o().MFNode)),new(r())(w().inputOutput,"segments",new(o().MFNode)),new(r())(w().inputOutput,"joints",new(o().MFNode)),new(r())(w().inputOutput,"motions",new(o().MFNode)),new(r())(w().inputOutput,"skinBindingNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinBindingCoord",new(o().SFNode)),new(r())(w().inputOutput,"skinNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinCoord",new(o().SFNode)),new(r())(w().inputOutput,"skin",new(o().MFNode))]),enumerable:!0}});const H=X;m().set("x_ite/Components/HAnim/HAnimHumanoid",H);const T=H,V=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Grouping/X3DTransformNode");var z=e.n(V);function B(e){z().call(this,e),this.addType(w().HAnimJoint),this.setAllowedTypes(w().HAnimJoint,w().HAnimSegment,w().HAnimSite),this.displacerNodes=[],this.modelMatrix=new(j())}Object.assign(Object.setPrototypeOf(B.prototype,z().prototype),{initialize(){z().prototype.initialize.call(this),this._skinCoordIndex.addInterest("set_skinCoordIndex__",this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},setCameraObject(e){z().prototype.setCameraObject.call(this,e||!!this._skinCoordIndex.length)},getModelMatrix(){return this.modelMatrix},getDisplacers(){return this.displacerNodes},set_skinCoordIndex__(){this.set_cameraObjects__()},set_displacers__(){const e=this.displacerNodes;e.length=0;for(const t of this._displacers){const n=I()(w().HAnimDisplacer,t);n&&e.push(n)}},traverse(e,t){e===x().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(this.getMatrix()).multRight(t.getModelViewMatrix().get()),z().prototype.traverse.call(this,e,t)},groupTraverse(e,t){e===x().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(t.getModelViewMatrix().get()),z().prototype.groupTraverse.call(this,e,t)}}),Object.defineProperties(B,{typeName:{value:"HAnimJoint",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"llimit",new(o().MFFloat)),new(r())(w().inputOutput,"ulimit",new(o().MFFloat)),new(r())(w().inputOutput,"limitOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"stiffness",new(o().MFFloat)(0,0,0)),new(r())(w().inputOutput,"skinCoordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"skinCoordWeight",new(o().MFFloat)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const P=B;m().set("x_ite/Components/HAnim/HAnimJoint",P);const R=P;function E(e){b().call(this,e),this.addType(w().HAnimMotion)}Object.assign(Object.setPrototypeOf(E.prototype,b().prototype),{initialize(){b().prototype.initialize.call(this)}}),Object.defineProperties(E,{typeName:{value:"HAnimMotion",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["4.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(w().inputOnly,"next",new(o().SFBool)),new(r())(w().inputOnly,"previous",new(o().SFBool)),new(r())(w().inputOutput,"frameDuration",new(o().SFTime)(.1)),new(r())(w().inputOutput,"frameIncrement",new(o().SFInt32)(1)),new(r())(w().inputOutput,"frameIndex",new(o().SFInt32)(0)),new(r())(w().inputOutput,"loop",new(o().SFBool)),new(r())(w().inputOutput,"channels",new(o().SFString)),new(r())(w().inputOutput,"channelsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"joints",new(o().SFString)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"startFrame",new(o().SFInt32)),new(r())(w().inputOutput,"endFrame",new(o().SFInt32)),new(r())(w().inputOutput,"values",new(o().MFFloat)),new(r())(w().outputOnly,"cycleTime",new(o().SFTime)),new(r())(w().outputOnly,"elapsedTime",new(o().SFTime)),new(r())(w().outputOnly,"frameCount",new(o().SFInt32))]),enumerable:!0}});const q=E;m().set("x_ite/Components/HAnim/HAnimMotion",q);const G=q,J=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Grouping/X3DGroupingNode");var U=e.n(J);function L(e){U().call(this,e),this.addType(w().HAnimSegment),this._mass.setUnit("mass")}Object.setPrototypeOf(L.prototype,U().prototype),Object.defineProperties(L,{typeName:{value:"HAnimSegment",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"mass",new(o().SFFloat)),new(r())(w().inputOutput,"centerOfMass",new(o().SFVec3f)),new(r())(w().inputOutput,"momentsOfInertia",new(o().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"coord",new(o().SFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const W=L;m().set("x_ite/Components/HAnim/HAnimSegment",W);const Z=W;function K(e){z().call(this,e),this.addType(w().HAnimSite)}Object.setPrototypeOf(K.prototype,z().prototype),Object.defineProperties(K,{typeName:{value:"HAnimSite",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const Q=K;m().set("x_ite/Components/HAnim/HAnimSite",Q);const Y=Q;n().add({name:"HAnim",concreteNodes:[N,T,R,G,Z,Y],abstractNodes:[]});const $=void 0;m().set("assets/components/HAnim",$)})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v8.
|
|
1
|
+
/* X_ITE v8.9.0 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,13 +39,13 @@ var __webpack_exports__ = {};
|
|
|
39
39
|
// UNUSED EXPORTS: default
|
|
40
40
|
|
|
41
41
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
42
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .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.9.0")] .require ("x_ite/Fields");
|
|
46
46
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
47
47
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
48
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
48
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .require ("x_ite/Namespace");
|
|
49
49
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
50
50
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js
|
|
51
51
|
/*******************************************************************************
|
|
@@ -150,16 +150,16 @@ const __default__ = X3DKeyDeviceSensorContext;
|
|
|
150
150
|
Namespace_default().set ("x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext", __default__);
|
|
151
151
|
/* harmony default export */ const KeyDeviceSensor_X3DKeyDeviceSensorContext = (__default__);
|
|
152
152
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
153
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
153
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
154
154
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
155
155
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
156
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
156
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
157
157
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
158
158
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
|
|
159
|
-
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
159
|
+
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .require ("x_ite/Components/Core/X3DSensorNode");
|
|
160
160
|
var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
|
|
161
161
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
162
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
162
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .require ("x_ite/Base/X3DConstants");
|
|
163
163
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
164
164
|
;// CONCATENATED MODULE: ./src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js
|
|
165
165
|
/*******************************************************************************
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.
|
|
1
|
+
/* X_ITE v8.9.0 */(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var a in s)e.o(s,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:s[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components");var s=e.n(t);const a=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Fields");var i=e.n(a);const n=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Namespace");var o=e.n(n);const r=Symbol(),c=Symbol(),l=Symbol();function y(){this[r]=new Set}Object.assign(y.prototype,{initialize(){const e=this.getElement();e.on("keydown.X3DKeyDeviceSensorContext",this[c].bind(this)),e.on("keyup.X3DKeyDeviceSensorContext",this[l].bind(this))},addKeyDeviceSensorNode(e){this[r].add(e)},removeKeyDeviceSensorNode(e){this[r].delete(e)},getKeyDeviceSensorNodes(){return this[r]},[c](e){for(const t of this[r])t.keydown(e)},[l](e){for(const t of this[r])t.keyup(e)}});const h=y;o().set("x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext",h);const _=h,b=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Base/X3DFieldDefinition");var d=e.n(b);const u=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Base/FieldDefinitionArray");var k=e.n(u);const p=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Core/X3DSensorNode");var K=e.n(p);const w=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Base/X3DConstants");var v=e.n(w);function S(e){K().call(this,e),this.addType(v().X3DKeyDeviceSensorNode)}Object.assign(Object.setPrototypeOf(S.prototype,K().prototype),{initialize(){K().prototype.initialize.call(this),this.getLive().addInterest("set_live__",this),this.set_live__()},set_live__(){this.getLive().getValue()?(this._enabled.addInterest("set_enabled__",this),this._enabled.getValue()&&this.enable()):(this._enabled.removeInterest("set_enabled__",this),this.disable())},set_enabled__(){this._enabled.getValue()?this.enable():this.disable()},enable(){this.getBrowser().addKeyDeviceSensorNode(this)},disable(){this.getBrowser().removeKeyDeviceSensorNode(this),this.release()},keydown(){},keyup(){},release(){}}),Object.defineProperties(S,{typeName:{value:"X3DKeyDeviceSensorNode",enumerable:!0},componentName:{value:"KeyDeviceSensor",enumerable:!0}});const f=S;o().set("x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode",f);const m=f;function g(e){m.call(this,e),this.addType(v().KeySensor)}Object.assign(Object.setPrototypeOf(g.prototype,m.prototype),{keydown(e){switch(e.preventDefault(),this._isActive.getValue()||(this._isActive=!0),e.which){case 16:this._shiftKey=!0;break;case 17:this._controlKey=!0;break;case 18:this._altKey=!0;break;case 112:this._actionKeyPress=1;break;case 113:this._actionKeyPress=2;break;case 114:this._actionKeyPress=3;break;case 115:this._actionKeyPress=4;break;case 116:this._actionKeyPress=5;break;case 117:this._actionKeyPress=6;break;case 118:this._actionKeyPress=7;break;case 119:this._actionKeyPress=8;break;case 120:this._actionKeyPress=9;break;case 121:this._actionKeyPress=10;break;case 122:this._actionKeyPress=11;break;case 123:this._actionKeyPress=12;break;case 36:this._actionKeyPress=13;break;case 35:this._actionKeyPress=14;break;case 33:this._actionKeyPress=15;break;case 34:this._actionKeyPress=16;break;case 38:this._actionKeyPress=17;break;case 40:this._actionKeyPress=18;break;case 37:this._actionKeyPress=19;break;case 39:this._actionKeyPress=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyPress=String.fromCharCode(8);break;case"Delete":this._keyPress=String.fromCharCode(127);break;case"Enter":this._keyPress="\n";break;case"Escape":this._keyPress=String.fromCharCode(27);break;case"Tab":this._keyPress="\t";break;default:1===e.key.length&&(this._keyPress=e.key)}}},keyup(e){switch(e.preventDefault(),e.which){case 16:this._shiftKey=!1;break;case 17:this._controlKey=!1;break;case 18:this._altKey=!1;break;case 112:this._actionKeyRelease=1;break;case 113:this._actionKeyRelease=2;break;case 114:this._actionKeyRelease=3;break;case 115:this._actionKeyRelease=4;break;case 116:this._actionKeyRelease=5;break;case 117:this._actionKeyRelease=6;break;case 118:this._actionKeyRelease=7;break;case 119:this._actionKeyRelease=8;break;case 120:this._actionKeyRelease=9;break;case 121:this._actionKeyRelease=10;break;case 122:this._actionKeyRelease=11;break;case 123:this._actionKeyRelease=12;break;case 36:this._actionKeyRelease=13;break;case 35:this._actionKeyRelease=14;break;case 33:this._actionKeyRelease=15;break;case 34:this._actionKeyRelease=16;break;case 38:this._actionKeyRelease=17;break;case 40:this._actionKeyRelease=18;break;case 37:this._actionKeyRelease=19;break;case 39:this._actionKeyRelease=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyRelease=String.fromCharCode(8);break;case"Delete":this._keyRelease=String.fromCharCode(127);break;case"Enter":this._keyRelease="\n";break;case"Escape":this._keyRelease=String.fromCharCode(27);break;case"Tab":this._keyRelease="\t";break;default:1===e.key.length&&(this._keyRelease=e.key)}}this._isActive.getValue()&&(this._isActive=!1)},release(){this._shiftKey.getValue()&&(this._shiftKey=!1),this._controlKey.getValue()&&(this._controlKey=!1),this._altKey.getValue()&&(this._altKey=!1)}}),Object.defineProperties(g,{typeName:{value:"KeySensor",enumerable:!0},componentName:{value:"KeyDeviceSensor",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(k())([new(d())(v().inputOutput,"metadata",new(i().SFNode)),new(d())(v().inputOutput,"enabled",new(i().SFBool)(!0)),new(d())(v().outputOnly,"controlKey",new(i().SFBool)),new(d())(v().outputOnly,"shiftKey",new(i().SFBool)),new(d())(v().outputOnly,"altKey",new(i().SFBool)),new(d())(v().outputOnly,"actionKeyPress",new(i().SFInt32)),new(d())(v().outputOnly,"actionKeyRelease",new(i().SFInt32)),new(d())(v().outputOnly,"keyPress",new(i().SFString)),new(d())(v().outputOnly,"keyRelease",new(i().SFString)),new(d())(v().outputOnly,"isActive",new(i().SFBool))]),enumerable:!0}});const D=g;o().set("x_ite/Components/KeyDeviceSensor/KeySensor",D);const P=D;function O(e){m.call(this,e),this.addType(v().StringSensor)}Object.assign(Object.setPrototypeOf(O.prototype,m.prototype),{keydown(e){switch(e.preventDefault(),e.key){case"Backspace":this._isActive.getValue()&&this._deletionAllowed.getValue()&&this._enteredText.length&&(this._enteredText=this._enteredText.getValue().substr(0,this._enteredText.length-1));break;case"Enter":this._finalText=this._enteredText,this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Escape":this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Tab":break;default:(e.charCode||e.keyCode)&&1===e.key.length&&(this._isActive.getValue()||(this._isActive=!0,this._enteredText=""),this._enteredText=this._enteredText.getValue()+e.key)}}}),Object.defineProperties(O,{typeName:{value:"StringSensor",enumerable:!0},componentName:{value:"KeyDeviceSensor",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(k())([new(d())(v().inputOutput,"metadata",new(i().SFNode)),new(d())(v().inputOutput,"enabled",new(i().SFBool)(!0)),new(d())(v().inputOutput,"deletionAllowed",new(i().SFBool)(!0)),new(d())(v().outputOnly,"enteredText",new(i().SFString)),new(d())(v().outputOnly,"finalText",new(i().SFString)),new(d())(v().outputOnly,"isActive",new(i().SFBool))]),enumerable:!0}});const C=O;o().set("x_ite/Components/KeyDeviceSensor/StringSensor",C);const R=C;s().add({name:"KeyDeviceSensor",concreteNodes:[P,R],abstractNodes:[m],browserContext:_});const x=void 0;o().set("assets/components/KeyDeviceSensor",x)})();
|