x_ite 8.6.11 → 8.6.13
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 -45
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +37 -26
- 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 +51 -19
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +77 -33
- 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 +16 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +68 -42
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +80 -24
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +176 -26
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +152 -22
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +88 -76
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +32 -28
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +32 -24
- 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 +62 -30
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +71 -19
- 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 +1450 -971
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- 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 +2 -2
- 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 +5 -5
- package/docs/_posts/components/Lighting/EnvironmentLight.md +4 -4
- package/docs/_posts/components/Lighting/PointLight.md +5 -5
- package/docs/_posts/components/Lighting/SpotLight.md +5 -5
- 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 +2 -2
- package/docs/_posts/components/Rendering/IndexedTriangleFanSet.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/RigidBodyPhysics/RigidBody.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/RigidBodyCollection.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/SingleAxisHingeJoint.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/SliderJoint.md +3 -3
- 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/_posts/components/X_ITE/BlendMode.md +1 -1
- package/docs/_posts/getting-started.md +8 -3
- package/docs/_posts/reference/browser-services.md +1 -1
- package/docs/_posts/reference/ecmascript-object-and-function-definitions.md +16 -99
- package/docs/_posts/what's-new.md +1 -1
- package/docs/laboratory/gltf-sample-viewer.html +1 -1
- package/package.json +3 -3
- package/src/lib/jquery.js +6 -1
- package/src/standard/Math/Geometry/Box3.js +2 -5
- package/src/tests.js +2 -0
- package/src/x_ite/Base/X3DBaseNode.js +8 -0
- package/src/x_ite/Base/X3DObject.js +14 -1
- package/src/x_ite/Browser/Core/BrowserOptions.js +27 -29
- package/src/x_ite/Browser/Core/BrowserTimings.js +2 -16
- package/src/x_ite/Browser/Core/X3DCoreContext.js +6 -3
- package/src/x_ite/Browser/Grouping/X3DGroupingContext.js +9 -15
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +3 -3
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +20 -15
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +3 -3
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +2 -2
- package/src/x_ite/Browser/X3DBrowserContext.js +21 -12
- 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 -32
- 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 +4 -0
- package/src/x_ite/Components/Core/MetadataDouble.js +4 -0
- package/src/x_ite/Components/Core/MetadataFloat.js +4 -0
- package/src/x_ite/Components/Core/MetadataInteger.js +4 -0
- package/src/x_ite/Components/Core/MetadataSet.js +4 -0
- package/src/x_ite/Components/Core/MetadataString.js +4 -0
- package/src/x_ite/Components/Core/WorldInfo.js +4 -0
- package/src/x_ite/Components/Core/X3DNode.js +1 -1
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +1 -1
- 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 +4 -0
- 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/EnvironmentalSensor/ProximitySensor.js +4 -0
- package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +4 -0
- package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +4 -0
- 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/Geometry2D/Arc2D.js +4 -0
- package/src/x_ite/Components/Geometry2D/ArcClose2D.js +4 -0
- package/src/x_ite/Components/Geometry2D/Circle2D.js +4 -0
- package/src/x_ite/Components/Geometry2D/Disk2D.js +4 -0
- 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 +4 -0
- package/src/x_ite/Components/Geometry3D/Cylinder.js +4 -0
- package/src/x_ite/Components/Geometry3D/ElevationGrid.js +4 -0
- package/src/x_ite/Components/Geometry3D/Extrusion.js +4 -0
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +4 -0
- package/src/x_ite/Components/Geometry3D/Sphere.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoCoordinate.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +4 -0
- 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 +23 -0
- package/src/x_ite/Components/Grouping/Switch.js +11 -25
- package/src/x_ite/Components/Grouping/Transform.js +4 -0
- package/src/x_ite/Components/Grouping/X3DBoundedObject.js +0 -1
- 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/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/Layout/Layout.js +16 -10
- package/src/x_ite/Components/Layout/LayoutGroup.js +13 -5
- 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/Navigation/Billboard.js +4 -0
- package/src/x_ite/Components/Navigation/Collision.js +4 -0
- package/src/x_ite/Components/Navigation/LOD.js +11 -25
- 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 +9 -1
- package/src/x_ite/Components/Networking/Anchor.js +4 -0
- package/src/x_ite/Components/Networking/Inline.js +4 -0
- package/src/x_ite/Components/Networking/LoadSensor.js +42 -29
- 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 +4 -0
- 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/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/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 +4 -0
- 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 +4 -0
- package/src/x_ite/Components/Rendering/Normal.js +4 -0
- package/src/x_ite/Components/Rendering/PointSet.js +4 -0
- 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/X3DLineGeometryNode.js +15 -8
- package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +11 -29
- package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +11 -29
- package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +4 -0
- 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 +4 -0
- 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 +4 -0
- package/src/x_ite/Components/Shaders/ComposedShader.js +7 -3
- 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 -0
- package/src/x_ite/Components/Shaders/ShaderProgram.js +4 -0
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +3 -8
- package/src/x_ite/Components/Shape/AcousticProperties.js +4 -0
- package/src/x_ite/Components/Shape/Appearance.js +4 -0
- 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 +4 -1
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +4 -1
- package/src/x_ite/Components/Shape/PointProperties.js +4 -0
- package/src/x_ite/Components/Shape/Shape.js +4 -5
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +4 -0
- package/src/x_ite/Components/Shape/UnlitMaterial.js +4 -1
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +5 -7
- package/src/x_ite/Components/Shape/X3DShapeNode.js +21 -17
- package/src/x_ite/Components/Sound/Analyser.js +4 -0
- package/src/x_ite/Components/Sound/AudioClip.js +4 -0
- 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 +4 -0
- 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 +4 -0
- 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 +11 -11
- package/src/x_ite/Components/Texturing/MovieTexture.js +8 -5
- 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 +4 -0
- 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 +4 -0
- 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/X_ITE/BlendMode.js +4 -0
- package/src/x_ite/Execution/X3DExecutionContext.js +16 -0
- package/src/x_ite/Fields/SFNode.js +8 -0
- package/src/x_ite/InputOutput/FileLoader.js +1 -1
- package/src/x_ite/Parser/GLTF2Parser.js +26 -5
- package/src/x_ite/Parser/VRMLParser.js +3 -3
- package/src/x_ite/Parser/XMLParser.js +3 -3
- package/src/x_ite/{X3DCanvas.js → X3DCanvasElement.js} +23 -4
- package/src/x_ite.js +4 -4
|
@@ -15,7 +15,7 @@ tags: [Script, Scripting]
|
|
|
15
15
|
|
|
16
16
|
Script provides programmed behavior for a scene. Define the script interface with `<field>` elements. Scripting code is embedded in a child CDATA node or (deprecated) in the url field. Optionally supported programming languages: ECMAScript (JavaScript) and (via url to a myNode.class file) Java.
|
|
17
17
|
|
|
18
|
-
The Script node belongs to the **Scripting** component and its default container field is *children.* It is available since X3D version
|
|
18
|
+
The Script node belongs to the **Scripting** component and its default container field is *children.* It is available since X3D version 2.0 or later.
|
|
19
19
|
|
|
20
20
|
## Hierarchy
|
|
21
21
|
|
|
@@ -15,7 +15,7 @@ tags: [Appearance, Shape]
|
|
|
15
15
|
|
|
16
16
|
Appearance specifies the visual properties of geometry by containing the Material, ImageTexture/MovieTexture/PixelTexture, FillProperties, LineProperties, and TextureTransform nodes.
|
|
17
17
|
|
|
18
|
-
The Appearance node belongs to the **Shape** component and its default container field is *appearance.* It is available since X3D version
|
|
18
|
+
The Appearance node belongs to the **Shape** component and its default container field is *appearance.* It is available since X3D version 2.0 or later.
|
|
19
19
|
|
|
20
20
|
## Hierarchy
|
|
21
21
|
|
|
@@ -15,7 +15,7 @@ tags: [Material, Shape]
|
|
|
15
15
|
|
|
16
16
|
Material specifies surface rendering properties for associated geometry nodes. Material attributes are used by the X3D lighting equations during rendering.
|
|
17
17
|
|
|
18
|
-
The Material node belongs to the **Shape** component and its default container field is *material.* It is available since X3D version
|
|
18
|
+
The Material node belongs to the **Shape** component and its default container field is *material.* It is available since X3D version 2.0 or later.
|
|
19
19
|
|
|
20
20
|
## Hierarchy
|
|
21
21
|
|
|
@@ -100,14 +100,6 @@ How much glowing light is emitted from this object.
|
|
|
100
100
|
|
|
101
101
|
- Bright emissiveColor values can wash out other colors and some textures.
|
|
102
102
|
|
|
103
|
-
### SFFloat [in, out] **emissiveStrength** 1 <small>[0,∞) <span class="yellow">non standard</span></small>
|
|
104
|
-
|
|
105
|
-
A multiplier for emissiveColor and emissiveTexture values.
|
|
106
|
-
|
|
107
|
-
#### Hint
|
|
108
|
-
|
|
109
|
-
- [glTF version 2 KHR materials emissive strength](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_emissive_strength){:target="_blank"}
|
|
110
|
-
|
|
111
103
|
### SFString [in, out] **emissiveTextureMapping** ""
|
|
112
104
|
|
|
113
105
|
The mapping label identifies which texture coordinates and transformations are used to compute texture effects from corresponding geometry on a given material.
|
|
@@ -64,14 +64,6 @@ How much glowing light is emitted from this object.
|
|
|
64
64
|
|
|
65
65
|
- Bright emissiveColor values can wash out other colors and some textures.
|
|
66
66
|
|
|
67
|
-
### SFFloat [in, out] **emissiveStrength** 1 <small>[0,∞) <span class="yellow">non standard</span></small>
|
|
68
|
-
|
|
69
|
-
A multiplier for emissiveColor and emissiveTexture values.
|
|
70
|
-
|
|
71
|
-
#### Hint
|
|
72
|
-
|
|
73
|
-
- [glTF version 2 KHR materials emissive strength](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_emissive_strength){:target="_blank"}
|
|
74
|
-
|
|
75
67
|
### SFString [in, out] **emissiveTextureMapping** ""
|
|
76
68
|
|
|
77
69
|
The mapping label identifies which texture coordinates and transformations are used to compute texture effects from corresponding geometry on a given material.
|
|
@@ -15,7 +15,7 @@ tags: [Shape, Shape]
|
|
|
15
15
|
|
|
16
16
|
Shape can appear under any grouping node. Shape can contain an Appearance node and a geometry node (Box Cone Cylinder ElevationGrid Extrusion IndexedFaceSet IndexedLineSet LineSet PointSet Sphere Text).
|
|
17
17
|
|
|
18
|
-
The Shape node belongs to the **Shape** component and its default container field is *children.* It is available since X3D version
|
|
18
|
+
The Shape node belongs to the **Shape** component and its default container field is *children.* It is available since X3D version 2.0 or later.
|
|
19
19
|
|
|
20
20
|
## Hierarchy
|
|
21
21
|
|
|
@@ -47,14 +47,6 @@ How much glowing light is emitted from this object.
|
|
|
47
47
|
|
|
48
48
|
- Bright emissiveColor values can wash out other colors and some textures.
|
|
49
49
|
|
|
50
|
-
### SFFloat [in, out] **emissiveStrength** 1 <small>[0,∞) <span class="yellow">non standard</span></small>
|
|
51
|
-
|
|
52
|
-
A multiplier for emissiveColor and emissiveTexture values.
|
|
53
|
-
|
|
54
|
-
#### Hint
|
|
55
|
-
|
|
56
|
-
- [glTF version 2 KHR materials emissive strength](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_emissive_strength){:target="_blank"}
|
|
57
|
-
|
|
58
50
|
### SFString [in, out] **emissiveTextureMapping** ""
|
|
59
51
|
|
|
60
52
|
The mapping label identifies which texture coordinates and transformations are used to compute texture effects from corresponding geometry on a given material.
|
|
@@ -15,7 +15,7 @@ tags: [AudioClip, Sound]
|
|
|
15
15
|
|
|
16
16
|
AudioClip provides audio data used by parent Sound nodes.
|
|
17
17
|
|
|
18
|
-
The AudioClip node belongs to the **Sound** component and its default container field is *source.* It is available since X3D version
|
|
18
|
+
The AudioClip node belongs to the **Sound** component and its default container field is *source.* It is available since X3D version 2.0 or later.
|
|
19
19
|
|
|
20
20
|
## Hierarchy
|
|
21
21
|
|
|
@@ -15,7 +15,7 @@ tags: [Sound, Sound]
|
|
|
15
15
|
|
|
16
16
|
The Sound node controls the 3D spatialization of sound playback by a child AudioClip or MovieTexture node. Sound intensity includes stereo support, varying according to user location and view direction in the scene.
|
|
17
17
|
|
|
18
|
-
The Sound node belongs to the **Sound** component and its default container field is *children.* It is available since X3D version
|
|
18
|
+
The Sound node belongs to the **Sound** component and its default container field is *children.* It is available since X3D version 2.0 or later.
|
|
19
19
|
|
|
20
20
|
## Hierarchy
|
|
21
21
|
|
|
@@ -15,7 +15,7 @@ tags: [FontStyle, Text]
|
|
|
15
15
|
|
|
16
16
|
FontStyle is an X3DFontStyleNode that defines the size, family, justification, and other styles used by Text nodes.
|
|
17
17
|
|
|
18
|
-
The FontStyle node belongs to the **Text** component and its default container field is *fontStyle.* It is available since X3D version
|
|
18
|
+
The FontStyle node belongs to the **Text** component and its default container field is *fontStyle.* It is available since X3D version 2.0 or later.
|
|
19
19
|
|
|
20
20
|
## Hierarchy
|
|
21
21
|
|
|
@@ -15,7 +15,7 @@ tags: [Text, Text]
|
|
|
15
15
|
|
|
16
16
|
Text is a 2D (flat) geometry node that can contain multiple lines of string values. Layout and styling is controlled by a contained FontStyle node.
|
|
17
17
|
|
|
18
|
-
The Text node belongs to the **Text** component and its default container field is *geometry.* It is available since X3D version
|
|
18
|
+
The Text node belongs to the **Text** component and its default container field is *geometry.* It is available since X3D version 2.0 or later.
|
|
19
19
|
|
|
20
20
|
## Hierarchy
|
|
21
21
|
|
|
@@ -15,7 +15,7 @@ tags: [ImageTexture, Texturing]
|
|
|
15
15
|
|
|
16
16
|
ImageTexture maps a 2D-image file onto a geometric shape. Texture maps have a 2D coordinate system (s, t) horizontal and vertical, with (s, t) values in range [0.0, 1.0] for opposite corners of the image.
|
|
17
17
|
|
|
18
|
-
The ImageTexture node belongs to the **Texturing** component and its default container field is *texture.* It is available since X3D version
|
|
18
|
+
The ImageTexture node belongs to the **Texturing** component and its default container field is *texture.* It is available since X3D version 2.0 or later.
|
|
19
19
|
|
|
20
20
|
## Hierarchy
|
|
21
21
|
|
|
@@ -94,10 +94,6 @@ Location and filename of image. Multiple locations are more reliable, and includ
|
|
|
94
94
|
|
|
95
95
|
- Automatically reloading content has security considerations and needs to be considered carefully.
|
|
96
96
|
|
|
97
|
-
### SFBool [ ] **flipVertically** FALSE
|
|
98
|
-
|
|
99
|
-
Whether to flip the image vertically. This parameter is in particular useful when using a model with [PhysicalMaterial](../Shape/PhysicalMaterial).
|
|
100
|
-
|
|
101
97
|
### SFBool [ ] **repeatS** TRUE
|
|
102
98
|
|
|
103
99
|
Whether to horizontally repeat texture along S axis.
|
|
@@ -15,7 +15,7 @@ tags: [MovieTexture, Texturing]
|
|
|
15
15
|
|
|
16
16
|
MovieTexture applies a 2D movie image to surface geometry, or provides audio for a Sound node. First define as texture, then USE as Sound source to see it/hear it/save memory. Texture maps have a 2D coordinate system (s, t) horizontal and vertical, with (s, t) values in range [0.0, 1.0] for opposite corners of the image.
|
|
17
17
|
|
|
18
|
-
The MovieTexture node belongs to the **Texturing** component and its default container field is *texture.* It is available since X3D version
|
|
18
|
+
The MovieTexture node belongs to the **Texturing** component and its default container field is *texture.* It is available since X3D version 2.0 or later.
|
|
19
19
|
|
|
20
20
|
## Hierarchy
|
|
21
21
|
|
|
@@ -178,10 +178,6 @@ Current elapsed time since MovieTexture activated/running, cumulative in seconds
|
|
|
178
178
|
|
|
179
179
|
Length of time in seconds for one cycle of movie.
|
|
180
180
|
|
|
181
|
-
### SFBool [ ] **flipVertically** FALSE
|
|
182
|
-
|
|
183
|
-
Whether to flip the image vertically. This parameter is in particular useful when using a model with [PhysicalMaterial](../Shape/PhysicalMaterial).
|
|
184
|
-
|
|
185
181
|
### SFBool [ ] **repeatS** TRUE
|
|
186
182
|
|
|
187
183
|
Whether to horizontally repeat texture along S axis.
|
|
@@ -15,7 +15,7 @@ tags: [PixelTexture, Texturing]
|
|
|
15
15
|
|
|
16
16
|
PixelTexture creates a 2D-image texture map using a numeric array of pixel values. Texture maps have a 2D coordinate system (s, t) horizontal and vertical, with (s, t) values in range [0.0, 1.0] for opposite corners of the image.
|
|
17
17
|
|
|
18
|
-
The PixelTexture node belongs to the **Texturing** component and its default container field is *texture.* It is available since X3D version
|
|
18
|
+
The PixelTexture node belongs to the **Texturing** component and its default container field is *texture.* It is available since X3D version 2.0 or later.
|
|
19
19
|
|
|
20
20
|
## Hierarchy
|
|
21
21
|
|
|
@@ -15,7 +15,7 @@ tags: [TextureCoordinate, Texturing]
|
|
|
15
15
|
|
|
16
16
|
TextureCoordinate specifies 2D (s,t) texture-coordinate points, used by vertex-based geometry nodes (such as IndexedFaceSet or ElevationGrid) to map textures to vertices (and patches to polygons).
|
|
17
17
|
|
|
18
|
-
The TextureCoordinate node belongs to the **Texturing** component and its default container field is *texCoord.* It is available since X3D version
|
|
18
|
+
The TextureCoordinate node belongs to the **Texturing** component and its default container field is *texCoord.* It is available since X3D version 2.0 or later.
|
|
19
19
|
|
|
20
20
|
## Hierarchy
|
|
21
21
|
|
|
@@ -15,7 +15,7 @@ tags: [TextureTransform, Texturing]
|
|
|
15
15
|
|
|
16
16
|
TextureTransform shifts 2D texture coordinates for positioning, orienting and scaling image textures on geometry.
|
|
17
17
|
|
|
18
|
-
The TextureTransform node belongs to the **Texturing** component and its default container field is *textureTransform.* It is available since X3D version
|
|
18
|
+
The TextureTransform node belongs to the **Texturing** component and its default container field is *textureTransform.* It is available since X3D version 2.0 or later.
|
|
19
19
|
|
|
20
20
|
## Hierarchy
|
|
21
21
|
|
|
@@ -15,7 +15,7 @@ tags: [TimeSensor, Time]
|
|
|
15
15
|
|
|
16
16
|
TimeSensor continuously generates events as time passes. Typical use: ROUTE thisTimeSensor.fraction_changed TO someInterpolator.set_fraction. Interchange profile hint: TimeSensor may be ignored if cycleInterval < 0.01 second.
|
|
17
17
|
|
|
18
|
-
The TimeSensor node belongs to the **Time** component and its default container field is *children.* It is available since X3D version
|
|
18
|
+
The TimeSensor node belongs to the **Time** component and its default container field is *children.* It is available since X3D version 2.0 or later.
|
|
19
19
|
|
|
20
20
|
## Hierarchy
|
|
21
21
|
|
|
@@ -32,7 +32,7 @@ The BlendMode node belongs to the **X_ITE** component and its default container
|
|
|
32
32
|
|
|
33
33
|
Metadata are not part of the X3D world and not interpreted by the X3D browser, but they can be accessed via the ECMAScript interface.
|
|
34
34
|
|
|
35
|
-
### SFColorRGBA [in, out] **blendColor** 0 0 0 0 <small
|
|
35
|
+
### SFColorRGBA [in, out] **blendColor** 0 0 0 0 <small>[0,1]</small><small></small>
|
|
36
36
|
|
|
37
37
|
The *blendColor* may be used to calculate the source and destination blending factors.
|
|
38
38
|
|
|
@@ -12,7 +12,8 @@ x_ite: true
|
|
|
12
12
|
src="/x_ite/assets/X3D/teaser/teaser.x3d"
|
|
13
13
|
splashScreen="false"
|
|
14
14
|
contextMenu="false"
|
|
15
|
-
notifications="false"
|
|
15
|
+
notifications="false"
|
|
16
|
+
timings="false">
|
|
16
17
|
</x3d-canvas>
|
|
17
18
|
|
|
18
19
|
## Overview
|
|
@@ -724,11 +725,15 @@ A Boolean value (`true` or `false`) to indicate whether the splash screen should
|
|
|
724
725
|
|
|
725
726
|
### src
|
|
726
727
|
|
|
727
|
-
A String value
|
|
728
|
+
A String value containing the URL to load on page load. If no *src* attribute is specified or the *src* attribute is empty, an empty scene will be displayed.
|
|
729
|
+
|
|
730
|
+
### timings
|
|
731
|
+
|
|
732
|
+
A Boolean value (`true` or `false`) to indicate whether the Timings Panel should be displayed. The default value for the *timings* attribute is restored from the previous session, otherwise it is `false`.
|
|
728
733
|
|
|
729
734
|
### url
|
|
730
735
|
|
|
731
|
-
A MFString value
|
|
736
|
+
A MFString value of URLs to load on page load. If no *url* attribute is specified or the attribute is empty, an empty scene will be displayed. If both src and *url* attributes are specified, the *src* attribute takes precedence.
|
|
732
737
|
|
|
733
738
|
### Example
|
|
734
739
|
|
|
@@ -363,7 +363,7 @@ Adds a browser *callback* function associated with *key,* where *key* can be of
|
|
|
363
363
|
|
|
364
364
|
Removes a browser callback function associated with *key*.
|
|
365
365
|
|
|
366
|
-
#### void **viewAll** (*[SFNode layerNode]*)
|
|
366
|
+
#### void **viewAll** (*[SFNode layerNode]*) <small><span class="yellow">non standard</span></small>
|
|
367
367
|
|
|
368
368
|
Modifies the current view to show the entire visible scene. If *layerNode* is omitted, the active layer is used.
|
|
369
369
|
|
|
@@ -9,6 +9,7 @@ tags: [Ecmascript, Object, Function, Definitions]
|
|
|
9
9
|
|
|
10
10
|
There are a fixed set of objects in ECMAScript, each of which have a fixed set of properties (i.e. values) and methods (i.e. functions). For all object types except Math, there are functions to create an instance of the object. The supported set of objects are:
|
|
11
11
|
|
|
12
|
+
* [X3DCanvasElement](#x3dcanvaselement)
|
|
12
13
|
* [Browser Services](browser-services)
|
|
13
14
|
* [Scene Services](scene-services)
|
|
14
15
|
* [Field Services and Objects](field-services-and-objects)
|
|
@@ -16,118 +17,34 @@ There are a fixed set of objects in ECMAScript, each of which have a fixed set o
|
|
|
16
17
|
* [Prototype Services](prototype-services)
|
|
17
18
|
* [Constants Services](constants-services)
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
## X3DCanvasElement
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
#### Number **parseInt** (*s, [radix]*)
|
|
24
|
-
|
|
25
|
-
Converts the passed String, 's', to an integer valued number, using the optional passed numeric 'radix' as the base. If the radix is omitted base 10 is assumed. Numbers can be in decimal (123), hexadecimal (0x5C) or octal (0177) notation and may be preceded by a minus sign ('-'). Conversion stops at the first unrecognized character. If the string begins with an unrecognized character, 0 is returned.
|
|
26
|
-
|
|
27
|
-
#### Number **parseFloat** (*s*)
|
|
28
|
-
|
|
29
|
-
Converts the passed String, 's', to a floating point valued number. Numbers can be in fixed (1.23) or exponential (12E3) notation and both the mantissa and exponent may be preceded by a minus sign ('-'). Conversion stops at the first unrecognized character. If the string begins with an unrecognized character, 0 is returned.
|
|
30
|
-
|
|
31
|
-
## Math Object
|
|
32
|
-
|
|
33
|
-
The Math object is unique in ECMAScript in that there is exactly one globally available instance of the object, named Math. Properties can be accessed using the syntax Math.\<property-name\>. Methods can be invoked using the syntax Math.\<function-name\> ( \<argument-list\> ).
|
|
22
|
+
The X3DCanvasElement, \<x3d-canvas\>, is the main element that displays the X3D content. It defines some functions to be used with this object.
|
|
34
23
|
|
|
35
24
|
### Instance Creation Method\(s\)
|
|
36
25
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
### Properties
|
|
40
|
-
|
|
41
|
-
#### **E**
|
|
42
|
-
|
|
43
|
-
Euler's constant, e, approximately 2.718.
|
|
44
|
-
|
|
45
|
-
#### **LN10**
|
|
46
|
-
|
|
47
|
-
Natural logarithm of 10, approximately 2.302.
|
|
26
|
+
An \<x3d-canvas\> can be created with the `document.createElement` function to get a reference to an X3DCanvasElement.
|
|
48
27
|
|
|
49
|
-
|
|
28
|
+
```js
|
|
29
|
+
const canvas = document .createElement ("x3d-canvas")
|
|
30
|
+
```
|
|
50
31
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
#### **PI**
|
|
54
|
-
|
|
55
|
-
Ratio of the circumference of a circle to its diameter, approximately 3.1415.
|
|
56
|
-
|
|
57
|
-
#### **SQRT1_2**
|
|
58
|
-
|
|
59
|
-
Square root of ½, approximately 0.707.
|
|
32
|
+
### Properties
|
|
60
33
|
|
|
61
|
-
#### **
|
|
34
|
+
#### **browser**
|
|
62
35
|
|
|
63
|
-
|
|
36
|
+
A reference to the X3DBrowser object that is associated with this element.
|
|
64
37
|
|
|
65
38
|
### Methods
|
|
66
39
|
|
|
67
|
-
#### **
|
|
68
|
-
|
|
69
|
-
Returns the absolute value of *number.*
|
|
70
|
-
|
|
71
|
-
#### **acos** (number)
|
|
72
|
-
|
|
73
|
-
Returns the arc cosine (in radians) of *number.*
|
|
74
|
-
|
|
75
|
-
#### **asin** (number)
|
|
76
|
-
|
|
77
|
-
Returns the arc sine (in radians) of *number.*
|
|
78
|
-
|
|
79
|
-
#### **atan** (number)
|
|
80
|
-
|
|
81
|
-
Returns the arc tangent (in radians) of *number.*
|
|
82
|
-
|
|
83
|
-
#### **ceil** (number)
|
|
84
|
-
|
|
85
|
-
Returns the least integer greater than or equal to *number.*
|
|
86
|
-
|
|
87
|
-
#### **cos** (number)
|
|
88
|
-
|
|
89
|
-
Returns the cosine of *number* where *number* is expressed in radians.
|
|
90
|
-
|
|
91
|
-
#### **exp** (*number*)
|
|
92
|
-
|
|
93
|
-
Returns *e,* to the power of *number* (i.e. *e*<sup>*number*</sup>).
|
|
94
|
-
|
|
95
|
-
#### **floor** (*number*)
|
|
96
|
-
|
|
97
|
-
Returns the greatest integer less than or equal to its argument.
|
|
98
|
-
|
|
99
|
-
#### **log** (*number)*
|
|
100
|
-
|
|
101
|
-
Returns the natural logarithm (base *e*) of *number.*
|
|
102
|
-
|
|
103
|
-
#### **max** (*number1*, *number2*)
|
|
104
|
-
|
|
105
|
-
Returns the greater of *number1* and *number2.*
|
|
106
|
-
|
|
107
|
-
#### **min** (*number1*, *number2*)
|
|
108
|
-
|
|
109
|
-
Returns the lesser of *number1* and *number2.*
|
|
110
|
-
|
|
111
|
-
#### **pow** (*base*, *exponent*)
|
|
112
|
-
|
|
113
|
-
Returns *base* to the *exponent* power (i.e. *base*<sup>*exponent*</sup>).
|
|
114
|
-
|
|
115
|
-
#### **random** ()
|
|
116
|
-
|
|
117
|
-
Returns a pseudo-random number between zero and one.
|
|
118
|
-
|
|
119
|
-
#### **round** (*number*)
|
|
120
|
-
|
|
121
|
-
Returns the value of *number* rounded to the nearest integer.
|
|
122
|
-
|
|
123
|
-
#### **sin** (*number*)
|
|
40
|
+
#### MediaStream **captureStream** (*[Number frameRate]*)
|
|
124
41
|
|
|
125
|
-
|
|
42
|
+
See [HTMLCanvasElement.captureStream()](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/captureStream){:target="_blank"}.
|
|
126
43
|
|
|
127
|
-
#### **
|
|
44
|
+
#### Blob **toBlob** (*Function callback, [String type, Number quality]*)
|
|
128
45
|
|
|
129
|
-
|
|
46
|
+
See [HTMLCanvasElement.toBlob()](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob){:target="_blank"}.
|
|
130
47
|
|
|
131
|
-
#### **
|
|
48
|
+
#### String **toDataURL** (*[String type, Number encoderOptions]*)
|
|
132
49
|
|
|
133
|
-
|
|
50
|
+
See [HTMLCanvasElement.toDataURL()](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL){:target="_blank"}.
|
|
@@ -906,7 +906,7 @@ You can tune the *shadowIntensity*. It is the intensity of the shadow. 0 means n
|
|
|
906
906
|
|
|
907
907
|

|
|
908
908
|
|
|
909
|
-
<small
|
|
909
|
+
<small>Dynamic shadows in X_ITE</small>
|
|
910
910
|
|
|
911
911
|
## X_ITE v4.1.7 Released
|
|
912
912
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x_ite",
|
|
3
|
-
"version": "8.6.
|
|
3
|
+
"version": "8.6.13",
|
|
4
4
|
"description": "X_ITE X3D Browser, view and manipulate X3D and VRML scenes in HTML.",
|
|
5
5
|
"homepage": "https://create3000.github.io/x_ite/",
|
|
6
6
|
"author": "Holger Seelig <holger.seelig@gmail.com>",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"dicom-parser": "^1.8.21",
|
|
61
61
|
"jpeg-js": "^0.4.4",
|
|
62
62
|
"jpeg-lossless-decoder-js": "^2.0.4",
|
|
63
|
-
"jquery": "^3.6.
|
|
63
|
+
"jquery": "^3.6.4",
|
|
64
64
|
"jquery-fullscreen-plugin": "^1.1.5",
|
|
65
65
|
"jquery-mousewheel": "^3.1.13",
|
|
66
66
|
"libgif": "^0.0.3",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"opentype.js": "^1.3.4",
|
|
72
72
|
"pako": "^2.1.0",
|
|
73
73
|
"string-replace-webpack-plugin": "^0.1.3",
|
|
74
|
-
"webpack": "^5.
|
|
74
|
+
"webpack": "^5.76.3",
|
|
75
75
|
"webpack-cli": "^5.0.1",
|
|
76
76
|
"webpack-shell-plugin-next": "^2.3.1"
|
|
77
77
|
},
|
package/src/lib/jquery.js
CHANGED
|
@@ -157,11 +157,8 @@ Box3 .prototype =
|
|
|
157
157
|
p2 = r1 .subtract (x),
|
|
158
158
|
p3 = r2 .subtract (x);
|
|
159
159
|
|
|
160
|
-
min .assign (p1);
|
|
161
|
-
max .assign (p1);
|
|
162
|
-
|
|
163
|
-
min .min (p2, p3, p4);
|
|
164
|
-
max .max (p2, p3, p4);
|
|
160
|
+
min .assign (p1) .min (p2, p3, p4);
|
|
161
|
+
max .assign (p1) .max (p2, p3, p4);
|
|
165
162
|
|
|
166
163
|
p1 .negate ();
|
|
167
164
|
p2 .negate ();
|
package/src/tests.js
CHANGED
|
@@ -22,6 +22,7 @@ const X_ITE_TESTS = [
|
|
|
22
22
|
{ path: "Core/Statements.x3d" },
|
|
23
23
|
{ path: "Core/units.x3d" },
|
|
24
24
|
{ path: "Core/units.x3dv" },
|
|
25
|
+
{ path: "Core/VRML.wrl" },
|
|
25
26
|
{ component: "EnvironmentalEffects" },
|
|
26
27
|
{ path: "EnvironmentalEffects/BackgroundClipPlane.x3dv" },
|
|
27
28
|
{ path: "EnvironmentalEffects/FogCoordinate.x3d" },
|
|
@@ -311,6 +312,7 @@ const X_ITE_TESTS = [
|
|
|
311
312
|
{ path: "Shape/Connectors.x3d" },
|
|
312
313
|
{ path: "Shape/CopperGold.x3d" },
|
|
313
314
|
{ path: "Shape/FillProperties.x3d" },
|
|
315
|
+
{ path: "Shape/flower-extreme/sphereflowers.x3d" },
|
|
314
316
|
{ path: "Shape/LineProperties.x3dv" },
|
|
315
317
|
{ path: "Shape/MaterialGeometries.x3d" },
|
|
316
318
|
{ path: "Shape/NormalTexture.x3d" },
|
|
@@ -149,6 +149,14 @@ X3DBaseNode .prototype = Object .assign (Object .create (X3DEventObject .prototy
|
|
|
149
149
|
{
|
|
150
150
|
return this;
|
|
151
151
|
},
|
|
152
|
+
beginUpdate: function ()
|
|
153
|
+
{
|
|
154
|
+
this .setLive (true);
|
|
155
|
+
},
|
|
156
|
+
endUpdate: function ()
|
|
157
|
+
{
|
|
158
|
+
this .setLive (false);
|
|
159
|
+
},
|
|
152
160
|
isLive: (function ()
|
|
153
161
|
{
|
|
154
162
|
function isLive ()
|
|
@@ -51,7 +51,8 @@ import MapUtilities from "../../standard/Utility/MapUtilities.js";
|
|
|
51
51
|
const
|
|
52
52
|
_name = Symbol (),
|
|
53
53
|
_interests = Symbol (),
|
|
54
|
-
_values = Symbol ()
|
|
54
|
+
_values = Symbol (),
|
|
55
|
+
_userData = Symbol ();
|
|
55
56
|
|
|
56
57
|
function X3DObject () { }
|
|
57
58
|
|
|
@@ -61,6 +62,7 @@ X3DObject .prototype =
|
|
|
61
62
|
[_name]: "",
|
|
62
63
|
[_interests]: new Map (),
|
|
63
64
|
[_values]: [ ],
|
|
65
|
+
[_userData]: new Map (),
|
|
64
66
|
getId: function ()
|
|
65
67
|
{
|
|
66
68
|
return X3DObject .getId (this);
|
|
@@ -122,6 +124,17 @@ X3DObject .prototype =
|
|
|
122
124
|
interest ();
|
|
123
125
|
}
|
|
124
126
|
},
|
|
127
|
+
getUserData: function (key)
|
|
128
|
+
{
|
|
129
|
+
return this [_userData] .get (key);
|
|
130
|
+
},
|
|
131
|
+
setUserData: function (key, value)
|
|
132
|
+
{
|
|
133
|
+
if (this [_userData] === X3DObject .prototype [_userData])
|
|
134
|
+
this [_userData] = new Map ();
|
|
135
|
+
|
|
136
|
+
this [_userData] .set (key, value);
|
|
137
|
+
},
|
|
125
138
|
toString: function (options = Object .prototype)
|
|
126
139
|
{
|
|
127
140
|
const generator = new Generator (options);
|
|
@@ -91,6 +91,7 @@ BrowserOptions .prototype = Object .assign (Object .create (X3DBaseNode .prototy
|
|
|
91
91
|
new X3DFieldDefinition (X3DConstants .inputOutput, "LogarithmicDepthBuffer", new Fields .SFBool ()),
|
|
92
92
|
new X3DFieldDefinition (X3DConstants .inputOutput, "Notifications", new Fields .SFBool (true)),
|
|
93
93
|
new X3DFieldDefinition (X3DConstants .inputOutput, "Multisampling", new Fields .SFInt32 (4)),
|
|
94
|
+
new X3DFieldDefinition (X3DConstants .inputOutput, "OptimizeStaticGroup", new Fields .SFBool (true)),
|
|
94
95
|
new X3DFieldDefinition (X3DConstants .inputOutput, "StraightenHorizon", new Fields .SFBool (true)),
|
|
95
96
|
new X3DFieldDefinition (X3DConstants .inputOutput, "Timings", new Fields .SFBool ()),
|
|
96
97
|
]),
|
|
@@ -133,7 +134,7 @@ BrowserOptions .prototype = Object .assign (Object .create (X3DBaseNode .prototy
|
|
|
133
134
|
},
|
|
134
135
|
configure: (function ()
|
|
135
136
|
{
|
|
136
|
-
const
|
|
137
|
+
const attributes = new Set ([
|
|
137
138
|
"Antialiased",
|
|
138
139
|
"Cache",
|
|
139
140
|
"ContentScale",
|
|
@@ -144,6 +145,14 @@ BrowserOptions .prototype = Object .assign (Object .create (X3DBaseNode .prototy
|
|
|
144
145
|
"SplashScreen",
|
|
145
146
|
]);
|
|
146
147
|
|
|
148
|
+
const restorable = new Set ([
|
|
149
|
+
"PrimitiveQuality",
|
|
150
|
+
"Rubberband",
|
|
151
|
+
"StraightenHorizon",
|
|
152
|
+
"TextureQuality",
|
|
153
|
+
"Timings",
|
|
154
|
+
]);
|
|
155
|
+
|
|
147
156
|
return function ()
|
|
148
157
|
{
|
|
149
158
|
const
|
|
@@ -152,15 +161,28 @@ BrowserOptions .prototype = Object .assign (Object .create (X3DBaseNode .prototy
|
|
|
152
161
|
|
|
153
162
|
for (const { name, value } of this .getFieldDefinitions ())
|
|
154
163
|
{
|
|
155
|
-
if (
|
|
164
|
+
if (attributes .has (name))
|
|
156
165
|
{
|
|
157
|
-
const
|
|
158
|
-
|
|
166
|
+
const
|
|
167
|
+
attribute = $.toLowerCaseFirst (name),
|
|
168
|
+
value = browser .getElement () .attr (attribute);
|
|
169
|
+
|
|
170
|
+
browser .attributeChangedCallback (attribute, null, value);
|
|
171
|
+
|
|
159
172
|
continue;
|
|
160
173
|
}
|
|
161
174
|
|
|
162
|
-
if (
|
|
175
|
+
if (restorable .has (name))
|
|
176
|
+
{
|
|
177
|
+
const
|
|
178
|
+
value = localStorage [name],
|
|
179
|
+
field = this .getField (name);
|
|
180
|
+
|
|
181
|
+
if (value !== field .getValue ())
|
|
182
|
+
field .setValue (value);
|
|
183
|
+
|
|
163
184
|
continue;
|
|
185
|
+
}
|
|
164
186
|
|
|
165
187
|
const field = this .getField (name);
|
|
166
188
|
|
|
@@ -169,28 +191,6 @@ BrowserOptions .prototype = Object .assign (Object .create (X3DBaseNode .prototy
|
|
|
169
191
|
|
|
170
192
|
field .assign (value);
|
|
171
193
|
}
|
|
172
|
-
|
|
173
|
-
const
|
|
174
|
-
rubberband = localStorage .Rubberband,
|
|
175
|
-
primitiveQuality = localStorage .PrimitiveQuality,
|
|
176
|
-
textureQuality = localStorage .TextureQuality,
|
|
177
|
-
straightenHorizon = localStorage .StraightenHorizon,
|
|
178
|
-
timings = localStorage .Timings;
|
|
179
|
-
|
|
180
|
-
if (rubberband !== this ._Rubberband .getValue ())
|
|
181
|
-
this ._Rubberband = rubberband;
|
|
182
|
-
|
|
183
|
-
if (primitiveQuality !== this ._PrimitiveQuality .getValue ())
|
|
184
|
-
this ._PrimitiveQuality = primitiveQuality;
|
|
185
|
-
|
|
186
|
-
if (textureQuality !== this ._TextureQuality .getValue ())
|
|
187
|
-
this ._TextureQuality = textureQuality;
|
|
188
|
-
|
|
189
|
-
if (straightenHorizon !== this ._StraightenHorizon .getValue ())
|
|
190
|
-
this ._StraightenHorizon = straightenHorizon;
|
|
191
|
-
|
|
192
|
-
if (timings !== this ._Timings .getValue ())
|
|
193
|
-
this ._Timings = timings;
|
|
194
194
|
};
|
|
195
195
|
})(),
|
|
196
196
|
getPrimitiveQuality: function ()
|
|
@@ -323,8 +323,6 @@ BrowserOptions .prototype = Object .assign (Object .create (X3DBaseNode .prototy
|
|
|
323
323
|
set_timings__: function (timings)
|
|
324
324
|
{
|
|
325
325
|
this .localStorage .Timings = timings .getValue ();
|
|
326
|
-
|
|
327
|
-
this .getBrowser () .getBrowserTimings () .setEnabled (timings .getValue ());
|
|
328
326
|
},
|
|
329
327
|
});
|
|
330
328
|
|