x_ite 8.6.12 → 8.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LICENSE.md +4 -4
- package/dist/assets/components/Annotation.js +37 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +45 -21
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +39 -28
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +37 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +37 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +55 -23
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +84 -40
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +42 -18
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +18 -10
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +47 -27
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +84 -28
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +70 -30
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +42 -22
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +93 -37
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +35 -31
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +33 -25
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +22 -14
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +64 -32
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +80 -28
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +13 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +1697 -1080
- 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/Core/WorldInfo.md +1 -1
- package/docs/_posts/components/EnvironmentalEffects/Background.md +1 -1
- package/docs/_posts/components/EnvironmentalEffects/Fog.md +1 -1
- package/docs/_posts/components/EnvironmentalSensor/ProximitySensor.md +1 -1
- package/docs/_posts/components/EnvironmentalSensor/VisibilitySensor.md +1 -1
- package/docs/_posts/components/Geometry3D/Box.md +1 -1
- package/docs/_posts/components/Geometry3D/Cone.md +1 -1
- package/docs/_posts/components/Geometry3D/Cylinder.md +1 -1
- package/docs/_posts/components/Geometry3D/ElevationGrid.md +1 -1
- package/docs/_posts/components/Geometry3D/Extrusion.md +1 -1
- package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +1 -1
- package/docs/_posts/components/Geometry3D/Sphere.md +1 -1
- package/docs/_posts/components/Grouping/Group.md +1 -1
- package/docs/_posts/components/Grouping/Switch.md +1 -1
- package/docs/_posts/components/Grouping/Transform.md +1 -1
- package/docs/_posts/components/Interpolation/ColorInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/CoordinateInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/NormalInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/OrientationInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/PositionInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/ScalarInterpolator.md +1 -1
- package/docs/_posts/components/Lighting/DirectionalLight.md +1 -1
- package/docs/_posts/components/Lighting/PointLight.md +1 -1
- package/docs/_posts/components/Lighting/SpotLight.md +1 -1
- package/docs/_posts/components/Navigation/Billboard.md +1 -1
- package/docs/_posts/components/Navigation/Collision.md +1 -1
- package/docs/_posts/components/Navigation/LOD.md +1 -1
- package/docs/_posts/components/Navigation/NavigationInfo.md +1 -1
- package/docs/_posts/components/Navigation/Viewpoint.md +1 -1
- package/docs/_posts/components/Networking/Anchor.md +1 -1
- package/docs/_posts/components/Networking/Inline.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/CylinderSensor.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/PlaneSensor.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/SphereSensor.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/TouchSensor.md +1 -1
- package/docs/_posts/components/Rendering/Color.md +1 -1
- package/docs/_posts/components/Rendering/Coordinate.md +1 -1
- package/docs/_posts/components/Rendering/IndexedLineSet.md +1 -1
- package/docs/_posts/components/Rendering/Normal.md +1 -1
- package/docs/_posts/components/Rendering/PointSet.md +1 -1
- package/docs/_posts/components/Scripting/Script.md +1 -1
- package/docs/_posts/components/Shape/Appearance.md +1 -1
- package/docs/_posts/components/Shape/Material.md +1 -9
- package/docs/_posts/components/Shape/PhysicalMaterial.md +0 -8
- package/docs/_posts/components/Shape/Shape.md +1 -1
- package/docs/_posts/components/Shape/UnlitMaterial.md +0 -8
- package/docs/_posts/components/Sound/AudioClip.md +1 -1
- package/docs/_posts/components/Sound/Sound.md +1 -1
- package/docs/_posts/components/Text/FontStyle.md +1 -1
- package/docs/_posts/components/Text/Text.md +1 -1
- package/docs/_posts/components/Texturing/ImageTexture.md +1 -5
- package/docs/_posts/components/Texturing/MovieTexture.md +1 -5
- package/docs/_posts/components/Texturing/PixelTexture.md +1 -1
- package/docs/_posts/components/Texturing/TextureCoordinate.md +1 -1
- package/docs/_posts/components/Texturing/TextureTransform.md +1 -1
- package/docs/_posts/components/Time/TimeSensor.md +1 -1
- package/docs/laboratory/gltf-sample-viewer.html +1 -1
- package/package.json +1 -1
- package/src/standard/Math/Numbers/Matrix2.js +3 -3
- package/src/standard/Math/Numbers/Vector4.js +1 -0
- package/src/tests.js +2 -0
- package/src/x_ite/Base/X3DBaseNode.js +58 -53
- package/src/x_ite/Browser/Core/BrowserOptions.js +2 -1
- package/src/x_ite/Browser/Core/X3DCoreContext.js +3 -6
- package/src/x_ite/Browser/Grouping/X3DGroupingContext.js +9 -15
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +0 -3
- package/src/x_ite/Browser/Navigation/FlyViewer.js +0 -2
- package/src/x_ite/Browser/Navigation/X3DNavigationContext.js +10 -12
- package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +40 -21
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/VolumeRendering/X3DVolumeRenderingContext.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +19 -19
- package/src/x_ite/Components/Annotation/AnnotationLayer.js +4 -0
- package/src/x_ite/Components/Annotation/AnnotationTarget.js +4 -0
- package/src/x_ite/Components/Annotation/GroupAnnotation.js +4 -0
- package/src/x_ite/Components/Annotation/IconAnnotation.js +4 -0
- package/src/x_ite/Components/Annotation/TextAnnotation.js +4 -0
- package/src/x_ite/Components/Annotation/URLAnnotation.js +4 -0
- package/src/x_ite/Components/CADGeometry/CADAssembly.js +4 -0
- package/src/x_ite/Components/CADGeometry/CADFace.js +12 -8
- package/src/x_ite/Components/CADGeometry/CADLayer.js +4 -0
- package/src/x_ite/Components/CADGeometry/CADPart.js +4 -0
- package/src/x_ite/Components/CADGeometry/IndexedQuadSet.js +4 -0
- package/src/x_ite/Components/CADGeometry/QuadSet.js +4 -0
- package/src/x_ite/Components/Core/MetadataBoolean.js +8 -4
- package/src/x_ite/Components/Core/MetadataDouble.js +8 -4
- package/src/x_ite/Components/Core/MetadataFloat.js +8 -4
- package/src/x_ite/Components/Core/MetadataInteger.js +8 -4
- package/src/x_ite/Components/Core/MetadataSet.js +8 -4
- package/src/x_ite/Components/Core/MetadataString.js +8 -4
- package/src/x_ite/Components/Core/WorldInfo.js +4 -0
- package/src/x_ite/Components/Core/X3DNode.js +17 -16
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +11 -14
- package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +4 -1
- package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +4 -0
- package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +6 -2
- package/src/x_ite/Components/DIS/DISEntityManager.js +4 -0
- package/src/x_ite/Components/DIS/DISEntityTypeMapping.js +4 -0
- package/src/x_ite/Components/DIS/EspduTransform.js +4 -0
- package/src/x_ite/Components/DIS/ReceiverPdu.js +4 -0
- package/src/x_ite/Components/DIS/SignalPdu.js +4 -0
- package/src/x_ite/Components/DIS/TransmitterPdu.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/Background.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/Fog.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/FogCoordinate.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/LocalFog.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/TextureBackground.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +1 -1
- package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +4 -0
- package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +6 -2
- package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +4 -0
- package/src/x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode.js +2 -2
- package/src/x_ite/Components/EventUtilities/BooleanFilter.js +4 -0
- package/src/x_ite/Components/EventUtilities/BooleanSequencer.js +4 -0
- package/src/x_ite/Components/EventUtilities/BooleanToggle.js +4 -0
- package/src/x_ite/Components/EventUtilities/BooleanTrigger.js +4 -0
- package/src/x_ite/Components/EventUtilities/IntegerSequencer.js +4 -0
- package/src/x_ite/Components/EventUtilities/IntegerTrigger.js +4 -0
- package/src/x_ite/Components/EventUtilities/TimeTrigger.js +4 -0
- package/src/x_ite/Components/Followers/ColorChaser.js +4 -0
- package/src/x_ite/Components/Followers/ColorDamper.js +4 -0
- package/src/x_ite/Components/Followers/CoordinateChaser.js +4 -0
- package/src/x_ite/Components/Followers/CoordinateDamper.js +4 -0
- package/src/x_ite/Components/Followers/OrientationChaser.js +4 -0
- package/src/x_ite/Components/Followers/OrientationDamper.js +4 -0
- package/src/x_ite/Components/Followers/PositionChaser.js +4 -0
- package/src/x_ite/Components/Followers/PositionChaser2D.js +4 -0
- package/src/x_ite/Components/Followers/PositionDamper.js +4 -0
- package/src/x_ite/Components/Followers/PositionDamper2D.js +4 -0
- package/src/x_ite/Components/Followers/ScalarChaser.js +4 -0
- package/src/x_ite/Components/Followers/ScalarDamper.js +4 -0
- package/src/x_ite/Components/Followers/TexCoordChaser2D.js +4 -0
- package/src/x_ite/Components/Followers/TexCoordDamper2D.js +4 -0
- package/src/x_ite/Components/Followers/X3DFollowerNode.js +2 -2
- package/src/x_ite/Components/Geometry2D/Arc2D.js +5 -1
- package/src/x_ite/Components/Geometry2D/ArcClose2D.js +5 -1
- package/src/x_ite/Components/Geometry2D/Circle2D.js +5 -1
- package/src/x_ite/Components/Geometry2D/Disk2D.js +5 -1
- package/src/x_ite/Components/Geometry2D/Polyline2D.js +4 -0
- package/src/x_ite/Components/Geometry2D/Polypoint2D.js +4 -0
- package/src/x_ite/Components/Geometry2D/Rectangle2D.js +4 -0
- package/src/x_ite/Components/Geometry2D/TriangleSet2D.js +4 -0
- package/src/x_ite/Components/Geometry3D/Box.js +4 -0
- package/src/x_ite/Components/Geometry3D/Cone.js +5 -1
- package/src/x_ite/Components/Geometry3D/Cylinder.js +5 -1
- package/src/x_ite/Components/Geometry3D/ElevationGrid.js +14 -10
- package/src/x_ite/Components/Geometry3D/Extrusion.js +4 -0
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +7 -3
- package/src/x_ite/Components/Geometry3D/Sphere.js +5 -1
- package/src/x_ite/Components/Geospatial/GeoCoordinate.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +11 -7
- package/src/x_ite/Components/Geospatial/GeoLOD.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoLocation.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoMetadata.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoOrigin.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoProximitySensor.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoTransform.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoViewpoint.js +4 -0
- package/src/x_ite/Components/Grouping/Group.js +4 -0
- package/src/x_ite/Components/Grouping/StaticGroup.js +4 -0
- package/src/x_ite/Components/Grouping/Switch.js +11 -7
- package/src/x_ite/Components/Grouping/Transform.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimDisplacer.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimJoint.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimMotion.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimSegment.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimSite.js +4 -0
- package/src/x_ite/Components/Interpolation/ColorInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator2D.js +4 -0
- package/src/x_ite/Components/Interpolation/EaseInEaseOut.js +4 -0
- package/src/x_ite/Components/Interpolation/NormalInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/PositionInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +4 -0
- package/src/x_ite/Components/Interpolation/ScalarInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator2D.js +4 -0
- package/src/x_ite/Components/Interpolation/SplineScalarInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/SquadOrientationInterpolator.js +4 -0
- package/src/x_ite/Components/KeyDeviceSensor/KeySensor.js +4 -0
- package/src/x_ite/Components/KeyDeviceSensor/StringSensor.js +4 -0
- package/src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js +2 -2
- package/src/x_ite/Components/Layering/Layer.js +4 -0
- package/src/x_ite/Components/Layering/LayerSet.js +4 -0
- package/src/x_ite/Components/Layering/Viewport.js +4 -0
- package/src/x_ite/Components/Layering/X3DLayerNode.js +40 -49
- package/src/x_ite/Components/Layout/Layout.js +4 -0
- package/src/x_ite/Components/Layout/LayoutGroup.js +4 -0
- package/src/x_ite/Components/Layout/LayoutLayer.js +4 -0
- package/src/x_ite/Components/Layout/ScreenFontStyle.js +4 -0
- package/src/x_ite/Components/Layout/ScreenGroup.js +4 -0
- package/src/x_ite/Components/Lighting/DirectionalLight.js +4 -0
- package/src/x_ite/Components/Lighting/EnvironmentLight.js +4 -0
- package/src/x_ite/Components/Lighting/PointLight.js +4 -0
- package/src/x_ite/Components/Lighting/SpotLight.js +7 -9
- package/src/x_ite/Components/NURBS/Contour2D.js +4 -0
- package/src/x_ite/Components/NURBS/ContourPolyline2D.js +4 -0
- package/src/x_ite/Components/NURBS/CoordinateDouble.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsCurve.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsCurve2D.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsPatchSurface.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsPositionInterpolator.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsSet.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsSweptSurface.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsSwungSurface.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsTextureCoordinate.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsTrimmedSurface.js +4 -0
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +4 -4
- package/src/x_ite/Components/Navigation/Billboard.js +4 -0
- package/src/x_ite/Components/Navigation/Collision.js +8 -4
- package/src/x_ite/Components/Navigation/LOD.js +11 -7
- package/src/x_ite/Components/Navigation/NavigationInfo.js +4 -0
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +4 -0
- package/src/x_ite/Components/Navigation/Viewpoint.js +4 -0
- package/src/x_ite/Components/Navigation/ViewpointGroup.js +4 -0
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +8 -0
- package/src/x_ite/Components/Networking/Anchor.js +4 -0
- package/src/x_ite/Components/Networking/Inline.js +6 -2
- package/src/x_ite/Components/Networking/LoadSensor.js +42 -29
- package/src/x_ite/Components/Networking/X3DUrlObject.js +2 -2
- package/src/x_ite/Components/ParticleSystems/BoundedPhysicsModel.js +4 -0
- package/src/x_ite/Components/ParticleSystems/ConeEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/ExplosionEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +4 -0
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +12 -8
- package/src/x_ite/Components/ParticleSystems/PointEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +4 -0
- package/src/x_ite/Components/Picking/LinePickSensor.js +4 -0
- package/src/x_ite/Components/Picking/PickableGroup.js +4 -0
- package/src/x_ite/Components/Picking/PointPickSensor.js +4 -0
- package/src/x_ite/Components/Picking/PrimitivePickSensor.js +4 -0
- package/src/x_ite/Components/Picking/VolumePickSensor.js +4 -0
- package/src/x_ite/Components/Picking/X3DPickSensorNode.js +4 -4
- package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +4 -0
- package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +4 -0
- package/src/x_ite/Components/PointingDeviceSensor/SphereSensor.js +4 -0
- package/src/x_ite/Components/PointingDeviceSensor/TouchSensor.js +4 -0
- package/src/x_ite/Components/PointingDeviceSensor/X3DPointingDeviceSensorNode.js +28 -19
- package/src/x_ite/Components/Rendering/ClipPlane.js +4 -0
- package/src/x_ite/Components/Rendering/Color.js +4 -0
- package/src/x_ite/Components/Rendering/ColorRGBA.js +4 -0
- package/src/x_ite/Components/Rendering/Coordinate.js +4 -0
- package/src/x_ite/Components/Rendering/IndexedLineSet.js +15 -11
- package/src/x_ite/Components/Rendering/IndexedTriangleFanSet.js +4 -0
- package/src/x_ite/Components/Rendering/IndexedTriangleSet.js +4 -0
- package/src/x_ite/Components/Rendering/IndexedTriangleStripSet.js +4 -0
- package/src/x_ite/Components/Rendering/LineSet.js +16 -12
- package/src/x_ite/Components/Rendering/Normal.js +4 -0
- package/src/x_ite/Components/Rendering/PointSet.js +15 -11
- package/src/x_ite/Components/Rendering/TriangleFanSet.js +4 -0
- package/src/x_ite/Components/Rendering/TriangleSet.js +4 -0
- package/src/x_ite/Components/Rendering/TriangleStripSet.js +4 -0
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +14 -14
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +6 -6
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +6 -6
- package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +4 -4
- package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +11 -7
- package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +11 -7
- package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +7 -3
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSpace.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/Contact.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/MotorJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +6 -2
- package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/UniversalJoint.js +4 -0
- package/src/x_ite/Components/Scripting/Script.js +7 -3
- package/src/x_ite/Components/Shaders/ComposedShader.js +11 -9
- package/src/x_ite/Components/Shaders/FloatVertexAttribute.js +4 -0
- package/src/x_ite/Components/Shaders/Matrix3VertexAttribute.js +4 -0
- package/src/x_ite/Components/Shaders/Matrix4VertexAttribute.js +4 -0
- package/src/x_ite/Components/Shaders/PackagedShader.js +4 -0
- package/src/x_ite/Components/Shaders/ProgramShader.js +4 -0
- package/src/x_ite/Components/Shaders/ShaderPart.js +4 -2
- package/src/x_ite/Components/Shaders/ShaderProgram.js +4 -0
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +3 -3
- package/src/x_ite/Components/Shape/AcousticProperties.js +4 -0
- package/src/x_ite/Components/Shape/Appearance.js +8 -4
- package/src/x_ite/Components/Shape/FillProperties.js +4 -0
- package/src/x_ite/Components/Shape/LineProperties.js +4 -0
- package/src/x_ite/Components/Shape/Material.js +5 -2
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +5 -2
- package/src/x_ite/Components/Shape/PointProperties.js +4 -0
- package/src/x_ite/Components/Shape/Shape.js +4 -0
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +4 -0
- package/src/x_ite/Components/Shape/UnlitMaterial.js +5 -2
- package/src/x_ite/Components/Shape/X3DMaterialNode.js +1 -1
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +5 -7
- package/src/x_ite/Components/Shape/X3DShapeNode.js +1 -1
- package/src/x_ite/Components/Sound/Analyser.js +4 -0
- package/src/x_ite/Components/Sound/AudioClip.js +6 -2
- package/src/x_ite/Components/Sound/AudioDestination.js +4 -0
- package/src/x_ite/Components/Sound/BiquadFilter.js +4 -0
- package/src/x_ite/Components/Sound/BufferAudioSource.js +4 -0
- package/src/x_ite/Components/Sound/ChannelMerger.js +4 -0
- package/src/x_ite/Components/Sound/ChannelSelector.js +4 -0
- package/src/x_ite/Components/Sound/ChannelSplitter.js +4 -0
- package/src/x_ite/Components/Sound/Convolver.js +4 -0
- package/src/x_ite/Components/Sound/Delay.js +4 -0
- package/src/x_ite/Components/Sound/DynamicsCompressor.js +4 -0
- package/src/x_ite/Components/Sound/Gain.js +4 -0
- package/src/x_ite/Components/Sound/ListenerPointSource.js +4 -0
- package/src/x_ite/Components/Sound/MicrophoneSource.js +4 -0
- package/src/x_ite/Components/Sound/OscillatorSource.js +4 -0
- package/src/x_ite/Components/Sound/PeriodicWave.js +4 -0
- package/src/x_ite/Components/Sound/Sound.js +6 -2
- package/src/x_ite/Components/Sound/SpatialSound.js +4 -0
- package/src/x_ite/Components/Sound/StreamAudioDestination.js +4 -0
- package/src/x_ite/Components/Sound/StreamAudioSource.js +4 -0
- package/src/x_ite/Components/Sound/WaveShaper.js +4 -0
- package/src/x_ite/Components/Text/FontStyle.js +4 -0
- package/src/x_ite/Components/Text/Text.js +5 -1
- package/src/x_ite/Components/TextureProjector/TextureProjector.js +4 -0
- package/src/x_ite/Components/TextureProjector/TextureProjectorParallel.js +4 -0
- package/src/x_ite/Components/Texturing/ImageTexture.js +13 -13
- package/src/x_ite/Components/Texturing/MovieTexture.js +10 -7
- package/src/x_ite/Components/Texturing/MultiTexture.js +4 -0
- package/src/x_ite/Components/Texturing/MultiTextureCoordinate.js +4 -0
- package/src/x_ite/Components/Texturing/MultiTextureTransform.js +4 -0
- package/src/x_ite/Components/Texturing/PixelTexture.js +4 -0
- package/src/x_ite/Components/Texturing/TextureCoordinate.js +4 -0
- package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +4 -0
- package/src/x_ite/Components/Texturing/TextureProperties.js +4 -0
- package/src/x_ite/Components/Texturing/TextureTransform.js +4 -0
- package/src/x_ite/Components/Texturing3D/ComposedTexture3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/ImageTextureAtlas.js +6 -2
- package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/TextureCoordinate3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/TextureCoordinate4D.js +4 -0
- package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/TextureTransformMatrix3D.js +4 -0
- package/src/x_ite/Components/Time/TimeSensor.js +5 -1
- package/src/x_ite/Components/Time/X3DTimeDependentNode.js +6 -6
- package/src/x_ite/Components/VolumeRendering/BlendedVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/BoundaryEnhancementVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/CartoonVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/ComposedVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/EdgeEnhancementVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +4 -0
- package/src/x_ite/Components/VolumeRendering/OpacityMapVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/ProjectionVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +4 -0
- package/src/x_ite/Components/VolumeRendering/ShadedVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/SilhouetteEnhancementVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/ToneMappedVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/VolumeData.js +4 -0
- package/src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js +8 -8
- package/src/x_ite/Components/X_ITE/BlendMode.js +4 -0
- package/src/x_ite/Execution/BindableList.js +16 -19
- package/src/x_ite/Execution/X3DExecutionContext.js +33 -11
- package/src/x_ite/Execution/X3DScene.js +4 -0
- package/src/x_ite/Fields/ArrayFields.js +42 -22
- package/src/x_ite/Fields/SFNode.js +3 -6
- package/src/x_ite/Fields/SFNodeCache.js +34 -19
- package/src/x_ite/InputOutput/FileLoader.js +22 -14
- package/src/x_ite/Parser/GLTF2Parser.js +72 -51
- package/src/x_ite/Parser/VRMLParser.js +66 -34
- package/src/x_ite/Parser/X3DParser.js +9 -36
- package/src/x_ite/Parser/XMLParser.js +8 -8
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +2 -2
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +1 -2
- package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +1 -1
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
|
@@ -136,29 +136,37 @@ MFNode .prototype = Object .assign (Object .create (X3DObjectArrayField .prototy
|
|
|
136
136
|
},
|
|
137
137
|
addCloneCount: function (count)
|
|
138
138
|
{
|
|
139
|
-
this
|
|
139
|
+
const target = this .getTarget ();
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
target [_cloneCount] += count;
|
|
142
|
+
|
|
143
|
+
for (const element of target .getValue ())
|
|
142
144
|
element .addCloneCount (count);
|
|
143
145
|
},
|
|
144
146
|
removeCloneCount: function (count)
|
|
145
147
|
{
|
|
146
|
-
this
|
|
148
|
+
const target = this .getTarget ();
|
|
149
|
+
|
|
150
|
+
target [_cloneCount] -= count;
|
|
147
151
|
|
|
148
|
-
for (const element of
|
|
152
|
+
for (const element of target .getValue ())
|
|
149
153
|
element .removeCloneCount (count);
|
|
150
154
|
},
|
|
151
155
|
addChildObject: function (value)
|
|
152
156
|
{
|
|
153
|
-
|
|
157
|
+
const target = this .getTarget ();
|
|
154
158
|
|
|
155
|
-
|
|
159
|
+
X3DObjectArrayField .prototype .addChildObject .call (target, value);
|
|
160
|
+
|
|
161
|
+
value .addCloneCount (target [_cloneCount]);
|
|
156
162
|
},
|
|
157
163
|
removeChildObject: function (value)
|
|
158
164
|
{
|
|
159
|
-
|
|
165
|
+
const target = this .getTarget ();
|
|
166
|
+
|
|
167
|
+
X3DObjectArrayField .prototype .removeChildObject .call (target, value);
|
|
160
168
|
|
|
161
|
-
value .removeCloneCount (
|
|
169
|
+
value .removeCloneCount (target [_cloneCount]);
|
|
162
170
|
},
|
|
163
171
|
toStream: function (generator)
|
|
164
172
|
{
|
|
@@ -210,11 +218,13 @@ MFNode .prototype = Object .assign (Object .create (X3DObjectArrayField .prototy
|
|
|
210
218
|
},
|
|
211
219
|
toVRMLString: function ()
|
|
212
220
|
{
|
|
213
|
-
this .
|
|
221
|
+
const target = this .getTarget ();
|
|
214
222
|
|
|
215
|
-
|
|
223
|
+
target .addCloneCount (1);
|
|
216
224
|
|
|
217
|
-
|
|
225
|
+
const string = X3DObjectArrayField .prototype .toVRMLString .call (target);
|
|
226
|
+
|
|
227
|
+
target .removeCloneCount (1);
|
|
218
228
|
|
|
219
229
|
return string;
|
|
220
230
|
},
|
|
@@ -268,23 +278,27 @@ MFNode .prototype = Object .assign (Object .create (X3DObjectArrayField .prototy
|
|
|
268
278
|
},
|
|
269
279
|
toXMLString: function ()
|
|
270
280
|
{
|
|
271
|
-
this .
|
|
281
|
+
const target = this .getTarget ();
|
|
282
|
+
|
|
283
|
+
target .addCloneCount (1);
|
|
272
284
|
|
|
273
|
-
const string = X3DObjectArrayField .prototype .toXMLString .call (
|
|
285
|
+
const string = X3DObjectArrayField .prototype .toXMLString .call (target);
|
|
274
286
|
|
|
275
|
-
|
|
287
|
+
target .removeCloneCount (1);
|
|
276
288
|
|
|
277
289
|
return string;
|
|
278
290
|
},
|
|
279
291
|
toXMLStream: function (generator)
|
|
280
292
|
{
|
|
281
|
-
const
|
|
293
|
+
const
|
|
294
|
+
target = this .getTarget (),
|
|
295
|
+
length = target .length;
|
|
282
296
|
|
|
283
297
|
if (length)
|
|
284
298
|
{
|
|
285
299
|
generator .EnterScope ();
|
|
286
300
|
|
|
287
|
-
const array =
|
|
301
|
+
const array = target .getValue ();
|
|
288
302
|
|
|
289
303
|
for (let i = 0, n = length - 1; i < n; ++ i)
|
|
290
304
|
{
|
|
@@ -343,11 +357,13 @@ MFNode .prototype = Object .assign (Object .create (X3DObjectArrayField .prototy
|
|
|
343
357
|
},
|
|
344
358
|
toJSONStream: function (generator)
|
|
345
359
|
{
|
|
346
|
-
const
|
|
360
|
+
const
|
|
361
|
+
target = this .getTarget (),
|
|
362
|
+
length = target .length;
|
|
347
363
|
|
|
348
364
|
if (length)
|
|
349
365
|
{
|
|
350
|
-
const array =
|
|
366
|
+
const array = target .getValue ();
|
|
351
367
|
|
|
352
368
|
generator .EnterScope ();
|
|
353
369
|
|
|
@@ -391,9 +407,11 @@ MFNode .prototype = Object .assign (Object .create (X3DObjectArrayField .prototy
|
|
|
391
407
|
},
|
|
392
408
|
dispose: function ()
|
|
393
409
|
{
|
|
394
|
-
this .
|
|
410
|
+
const target = this .getTarget ();
|
|
395
411
|
|
|
396
|
-
|
|
412
|
+
target .resize (0);
|
|
413
|
+
|
|
414
|
+
X3DObjectArrayField .prototype .dispose .call (target);
|
|
397
415
|
},
|
|
398
416
|
});
|
|
399
417
|
|
|
@@ -434,11 +452,13 @@ MFString .prototype = Object .assign (Object .create (X3DObjectArrayField .proto
|
|
|
434
452
|
},
|
|
435
453
|
toXMLStream: function (generator)
|
|
436
454
|
{
|
|
437
|
-
const
|
|
455
|
+
const
|
|
456
|
+
target = this .getTarget (),
|
|
457
|
+
length = target .length;
|
|
438
458
|
|
|
439
459
|
if (length)
|
|
440
460
|
{
|
|
441
|
-
const value =
|
|
461
|
+
const value = target .getValue ();
|
|
442
462
|
|
|
443
463
|
for (let i = 0, n = length - 1; i < n; ++ i)
|
|
444
464
|
{
|
|
@@ -51,7 +51,7 @@ import Generator from "../InputOutput/Generator.js";
|
|
|
51
51
|
import SFNodeCache from "./SFNodeCache.js";
|
|
52
52
|
|
|
53
53
|
const
|
|
54
|
-
_target = Symbol (),
|
|
54
|
+
_target = Symbol .for ("X_ITE.SFNode.target"),
|
|
55
55
|
_proxy = Symbol (),
|
|
56
56
|
_cloneCount = Symbol ();
|
|
57
57
|
|
|
@@ -469,12 +469,9 @@ SFNode .prototype = Object .assign (Object .create (X3DField .prototype),
|
|
|
469
469
|
},
|
|
470
470
|
dispose: function ()
|
|
471
471
|
{
|
|
472
|
-
const
|
|
473
|
-
target = this [_target],
|
|
474
|
-
value = target .getValue ();
|
|
472
|
+
const target = this [_target];
|
|
475
473
|
|
|
476
|
-
|
|
477
|
-
value .dispose ();
|
|
474
|
+
target .setValue (null);
|
|
478
475
|
|
|
479
476
|
X3DField .prototype .dispose .call (target);
|
|
480
477
|
},
|
|
@@ -45,32 +45,47 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
import SFNode
|
|
48
|
+
import SFNode from "./SFNode.js";
|
|
49
|
+
import X3DField from "../Base/X3DField.js";
|
|
49
50
|
|
|
50
|
-
const
|
|
51
|
+
const cache = new WeakMap ();
|
|
52
|
+
|
|
53
|
+
class SFNodeCache
|
|
51
54
|
{
|
|
52
|
-
get
|
|
55
|
+
static get (baseNode)
|
|
53
56
|
{
|
|
54
|
-
const
|
|
57
|
+
const node = cache .get (baseNode);
|
|
55
58
|
|
|
56
|
-
|
|
59
|
+
if (node)
|
|
60
|
+
{
|
|
61
|
+
return node;
|
|
62
|
+
}
|
|
63
|
+
else
|
|
57
64
|
{
|
|
58
|
-
const node =
|
|
65
|
+
const node = new SFNode (baseNode);
|
|
66
|
+
|
|
67
|
+
node .dispose = dispose;
|
|
68
|
+
|
|
69
|
+
cache .set (baseNode, node);
|
|
70
|
+
|
|
71
|
+
return node;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const _target = Symbol .for ("X_ITE.SFNode.target");
|
|
77
|
+
|
|
78
|
+
function dispose ()
|
|
79
|
+
{
|
|
80
|
+
const
|
|
81
|
+
target = this [_target],
|
|
82
|
+
value = target .getValue ();
|
|
59
83
|
|
|
60
|
-
|
|
61
|
-
{
|
|
62
|
-
return node;
|
|
63
|
-
}
|
|
64
|
-
else
|
|
65
|
-
{
|
|
66
|
-
const node = new SFNode (baseNode);
|
|
84
|
+
cache .delete (value);
|
|
67
85
|
|
|
68
|
-
|
|
86
|
+
value ?.dispose ();
|
|
69
87
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
};
|
|
73
|
-
})(),
|
|
74
|
-
};
|
|
88
|
+
X3DField .prototype .dispose .call (target);
|
|
89
|
+
}
|
|
75
90
|
|
|
76
91
|
export default SFNodeCache;
|
|
@@ -156,6 +156,8 @@ FileLoader .prototype = Object .assign (Object .create (X3DObject .prototype),
|
|
|
156
156
|
},
|
|
157
157
|
set_initLoadCount__: function (scene, success, error, field)
|
|
158
158
|
{
|
|
159
|
+
// Wait for extern protos to be loaded.
|
|
160
|
+
|
|
159
161
|
if (field .getValue ())
|
|
160
162
|
return;
|
|
161
163
|
|
|
@@ -163,22 +165,28 @@ FileLoader .prototype = Object .assign (Object .create (X3DObject .prototype),
|
|
|
163
165
|
|
|
164
166
|
delete scene .loader;
|
|
165
167
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
catch (exception)
|
|
168
|
+
// Wait for instances to be created.
|
|
169
|
+
|
|
170
|
+
setTimeout (function ()
|
|
171
171
|
{
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
172
|
+
try
|
|
173
|
+
{
|
|
174
|
+
success (scene);
|
|
175
|
+
}
|
|
176
|
+
catch (exception)
|
|
177
|
+
{
|
|
178
|
+
if (error)
|
|
179
|
+
error (exception);
|
|
180
|
+
else
|
|
181
|
+
throw exception;
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
0);
|
|
177
185
|
|
|
178
186
|
if (DEBUG)
|
|
179
187
|
{
|
|
180
188
|
if (this .URL .protocol !== "data:")
|
|
181
|
-
console .info (
|
|
189
|
+
console .info (`Done loading scene '${decodeURI (this .URL .href)}'`);
|
|
182
190
|
}
|
|
183
191
|
},
|
|
184
192
|
createX3DFromURL: function (url, parameter, callback, bindViewpoint, foreign)
|
|
@@ -283,7 +291,7 @@ FileLoader .prototype = Object .assign (Object .create (X3DObject .prototype),
|
|
|
283
291
|
const
|
|
284
292
|
options = { cache: this .node .getCache () ? "default" : "reload" },
|
|
285
293
|
response = this .handleErrors (await fetch (this .URL .href, options)),
|
|
286
|
-
contentType = response .headers .get ("content-type")
|
|
294
|
+
contentType = response .headers .get ("content-type") ?.replace (/;.*$/, "");
|
|
287
295
|
|
|
288
296
|
if (this .foreign)
|
|
289
297
|
{
|
|
@@ -323,9 +331,9 @@ FileLoader .prototype = Object .assign (Object .create (X3DObject .prototype),
|
|
|
323
331
|
error: function (exception)
|
|
324
332
|
{
|
|
325
333
|
if (this .URL .protocol === "data:")
|
|
326
|
-
console .warn (
|
|
334
|
+
console .warn (`Couldn't load data URL: ${exception .message}`);
|
|
327
335
|
else
|
|
328
|
-
console .warn (
|
|
336
|
+
console .warn (`Couldn't load URL '${decodeURI (this .URL .href)}': ${exception .message}`);
|
|
329
337
|
|
|
330
338
|
if (DEBUG)
|
|
331
339
|
console .error (exception);
|