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
|
@@ -54,7 +54,6 @@ function BrowserTimings (executionContext)
|
|
|
54
54
|
X3DBaseNode .call (this, executionContext);
|
|
55
55
|
|
|
56
56
|
this .localStorage = this .getBrowser () .getLocalStorage () .addNameSpace ("BrowserTimings.");
|
|
57
|
-
this .enabled = false;
|
|
58
57
|
this .fps = new StopWatch ();
|
|
59
58
|
this .localeOptions = { minimumFractionDigits: 2, maximumFractionDigits: 2 };
|
|
60
59
|
}
|
|
@@ -78,7 +77,7 @@ BrowserTimings .prototype = Object .assign (Object .create (X3DBaseNode .prototy
|
|
|
78
77
|
{
|
|
79
78
|
X3DBaseNode .prototype .initialize .call (this);
|
|
80
79
|
|
|
81
|
-
this .getBrowser () .getBrowserOptions () .
|
|
80
|
+
this .getBrowser () .getBrowserOptions () ._Timings .addInterest ("set_enabled__", this);
|
|
82
81
|
|
|
83
82
|
this .localStorage .addDefaultValues ({ type: "LESS" });
|
|
84
83
|
|
|
@@ -94,22 +93,9 @@ BrowserTimings .prototype = Object .assign (Object .create (X3DBaseNode .prototy
|
|
|
94
93
|
|
|
95
94
|
this .set_button__ ();
|
|
96
95
|
},
|
|
97
|
-
getEnabled: function ()
|
|
98
|
-
{
|
|
99
|
-
return this .enabled;
|
|
100
|
-
},
|
|
101
|
-
setEnabled: function (enabled)
|
|
102
|
-
{
|
|
103
|
-
if (this .enabled === enabled)
|
|
104
|
-
return;
|
|
105
|
-
|
|
106
|
-
this .enabled = enabled;
|
|
107
|
-
|
|
108
|
-
this .set_enabled__ ();
|
|
109
|
-
},
|
|
110
96
|
set_enabled__: function ()
|
|
111
97
|
{
|
|
112
|
-
if (this .
|
|
98
|
+
if (this .getBrowser () .getBrowserOption ("Timings"))
|
|
113
99
|
{
|
|
114
100
|
this .element .stop (true, true) .fadeIn ();
|
|
115
101
|
this .fps .reset ();
|
|
@@ -325,6 +325,11 @@ X3DCoreContext .prototype =
|
|
|
325
325
|
this .loadURL (new Fields .MFString (newValue), new Fields .MFString ());
|
|
326
326
|
break;
|
|
327
327
|
}
|
|
328
|
+
case "timings":
|
|
329
|
+
{
|
|
330
|
+
this .setBrowserOption ("Timings", this .parseBooleanAttribute (newValue, false));
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
328
333
|
case "url":
|
|
329
334
|
{
|
|
330
335
|
this .loadURL (this .parseUrlAttribute (newValue), new Fields .MFString ());
|
|
@@ -352,9 +357,7 @@ X3DCoreContext .prototype =
|
|
|
352
357
|
},
|
|
353
358
|
callBrowserEventHandler: function (events)
|
|
354
359
|
{
|
|
355
|
-
const element =
|
|
356
|
-
? window .jQuery (this .getElement () .get (0))
|
|
357
|
-
: this .getElement ();
|
|
360
|
+
const element = this .getElement ();
|
|
358
361
|
|
|
359
362
|
for (const event of events .split (" "))
|
|
360
363
|
element .trigger (event);
|
|
@@ -45,13 +45,11 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
import Fields from "../../Fields.js";
|
|
49
48
|
import Shape from "../../Components/Shape/Shape.js";
|
|
50
49
|
import IndexedLineSet from "../../Components/Rendering/IndexedLineSet.js";
|
|
51
|
-
import Color from "../../Components/Rendering/Color.js";
|
|
52
50
|
import Coordinate from "../../Components/Rendering/Coordinate.js";
|
|
53
51
|
|
|
54
|
-
const
|
|
52
|
+
const _bboxShape = Symbol ();
|
|
55
53
|
|
|
56
54
|
function X3DGroupingContext () { }
|
|
57
55
|
|
|
@@ -61,30 +59,26 @@ X3DGroupingContext .prototype =
|
|
|
61
59
|
getBBoxNode: function ()
|
|
62
60
|
{
|
|
63
61
|
const
|
|
64
|
-
|
|
62
|
+
bboxShape = new Shape (this .getPrivateScene ()),
|
|
65
63
|
bboxGeometry = new IndexedLineSet (this .getPrivateScene ()),
|
|
66
|
-
bboxColor = new Color (this .getPrivateScene ()),
|
|
67
64
|
bboxCoordinate = new Coordinate (this .getPrivateScene ());
|
|
68
65
|
|
|
69
|
-
|
|
70
|
-
bboxGeometry ._coordIndex =
|
|
71
|
-
bboxGeometry ._color = bboxColor;
|
|
66
|
+
bboxShape ._geometry = bboxGeometry;
|
|
67
|
+
bboxGeometry ._coordIndex = [0, 1, 2, 3, 0, -1, 4, 5, 6, 7, 4, -1, 0, 4, -1, 1, 5, -1, 2, 6, -1, 3, 7, -1];
|
|
72
68
|
bboxGeometry ._coord = bboxCoordinate;
|
|
73
|
-
|
|
74
|
-
bboxCoordinate ._point = new Fields .MFVec3f (new Fields .SFVec3f (0.5, 0.5, 0.5), new Fields .SFVec3f (-0.5, 0.5, 0.5), new Fields .SFVec3f (-0.5, -0.5, 0.5), new Fields .SFVec3f (0.5, -0.5, 0.5), new Fields .SFVec3f (0.5, 0.5, -0.5), new Fields .SFVec3f (-0.5, 0.5, -0.5), new Fields .SFVec3f (-0.5, -0.5, -0.5), new Fields .SFVec3f (0.5, -0.5, -0.5));
|
|
69
|
+
bboxCoordinate ._point = [0.5, 0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5];
|
|
75
70
|
|
|
76
71
|
bboxCoordinate .setup ();
|
|
77
|
-
bboxColor .setup ();
|
|
78
72
|
bboxGeometry .setup ();
|
|
79
|
-
|
|
73
|
+
bboxShape .setup ();
|
|
80
74
|
|
|
81
|
-
this [
|
|
75
|
+
this [_bboxShape] = bboxShape;
|
|
82
76
|
|
|
83
|
-
this .getBBoxNode = function () { return this [
|
|
77
|
+
this .getBBoxNode = function () { return this [_bboxShape]; };
|
|
84
78
|
|
|
85
79
|
Object .defineProperty (this, "getBBoxNode", { enumerable: false });
|
|
86
80
|
|
|
87
|
-
return
|
|
81
|
+
return bboxShape;
|
|
88
82
|
}
|
|
89
83
|
};
|
|
90
84
|
|
|
@@ -184,7 +184,7 @@ X3DFlyViewer .prototype = Object .assign (Object .create (X3DViewer .prototype),
|
|
|
184
184
|
this .addFly ();
|
|
185
185
|
|
|
186
186
|
if (this .getBrowser () .getBrowserOption ("Rubberband"))
|
|
187
|
-
this .getBrowser () .
|
|
187
|
+
this .getBrowser () .finishedEvents () .addInterest ("display", this, MOVE);
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
this ._isActive = true;
|
|
@@ -215,7 +215,7 @@ X3DFlyViewer .prototype = Object .assign (Object .create (X3DViewer .prototype),
|
|
|
215
215
|
this .addPan ();
|
|
216
216
|
|
|
217
217
|
if (this .getBrowser () .getBrowserOption ("Rubberband"))
|
|
218
|
-
this .getBrowser () .
|
|
218
|
+
this .getBrowser () .finishedEvents () .addInterest ("display", this, PAN);
|
|
219
219
|
|
|
220
220
|
this ._isActive = true;
|
|
221
221
|
break;
|
|
@@ -704,7 +704,7 @@ X3DFlyViewer .prototype = Object .assign (Object .create (X3DViewer .prototype),
|
|
|
704
704
|
|
|
705
705
|
browser .prepareEvents () .removeInterest ("fly", this);
|
|
706
706
|
browser .prepareEvents () .removeInterest ("pan", this);
|
|
707
|
-
browser .
|
|
707
|
+
browser .finishedEvents () .removeInterest ("display", this);
|
|
708
708
|
|
|
709
709
|
this .orientationChaser ._value_changed .removeInterest ("set_orientationOffset__", this);
|
|
710
710
|
|
|
@@ -55,7 +55,8 @@ const
|
|
|
55
55
|
_loadingObjects = Symbol (),
|
|
56
56
|
_loading = Symbol (),
|
|
57
57
|
_location = Symbol (),
|
|
58
|
-
_defaultScene = Symbol ()
|
|
58
|
+
_defaultScene = Symbol (),
|
|
59
|
+
_set_loadCount = Symbol ();
|
|
59
60
|
|
|
60
61
|
function getBaseURI (element)
|
|
61
62
|
{
|
|
@@ -82,7 +83,9 @@ function X3DNetworkingContext ()
|
|
|
82
83
|
X3DNetworkingContext .prototype =
|
|
83
84
|
{
|
|
84
85
|
initialize: function ()
|
|
85
|
-
{
|
|
86
|
+
{
|
|
87
|
+
this ._loadCount .addInterest (_set_loadCount, this);
|
|
88
|
+
},
|
|
86
89
|
getProviderUrl: function ()
|
|
87
90
|
{
|
|
88
91
|
return URLs .getProviderUrl ();
|
|
@@ -163,12 +166,25 @@ X3DNetworkingContext .prototype =
|
|
|
163
166
|
setLoadCount: function (value)
|
|
164
167
|
{
|
|
165
168
|
this ._loadCount = value;
|
|
169
|
+
},
|
|
170
|
+
resetLoadCount: function ()
|
|
171
|
+
{
|
|
172
|
+
this ._loadCount = 0;
|
|
173
|
+
this [_loadingDisplay] = 0;
|
|
174
|
+
this [_loadingTotal] = 0;
|
|
175
|
+
|
|
176
|
+
this [_loadingObjects] .clear ();
|
|
166
177
|
|
|
178
|
+
for (const object of this .getPrivateScene () .getLoadingObjects ())
|
|
179
|
+
this .addLoadingObject (object);
|
|
180
|
+
},
|
|
181
|
+
[_set_loadCount]: function ()
|
|
182
|
+
{
|
|
167
183
|
const loadingDisplay = [... this [_loadingObjects]]
|
|
168
184
|
.filter (o => o .isPrivate)
|
|
169
185
|
.reduce ((v, o) => v + !o .isPrivate (), 0);
|
|
170
186
|
|
|
171
|
-
if (
|
|
187
|
+
if (this ._loadCount .getValue () || this [_loading])
|
|
172
188
|
{
|
|
173
189
|
var string = ((loadingDisplay || 1) === 1
|
|
174
190
|
? _ ("Loading %1 file")
|
|
@@ -184,7 +200,7 @@ X3DNetworkingContext .prototype =
|
|
|
184
200
|
{
|
|
185
201
|
this .getSplashScreen () .find (".x_ite-private-spinner-text") .text (string);
|
|
186
202
|
this .getSplashScreen () .find (".x_ite-private-progressbar div")
|
|
187
|
-
.css ("width", (100 - 100 *
|
|
203
|
+
.css ("width", (100 - 100 * this ._loadCount .getValue () / this [_loadingTotal]) + "%");
|
|
188
204
|
}
|
|
189
205
|
else
|
|
190
206
|
{
|
|
@@ -194,17 +210,6 @@ X3DNetworkingContext .prototype =
|
|
|
194
210
|
|
|
195
211
|
this [_loadingDisplay] = loadingDisplay;
|
|
196
212
|
},
|
|
197
|
-
resetLoadCount: function ()
|
|
198
|
-
{
|
|
199
|
-
this ._loadCount = 0;
|
|
200
|
-
this [_loadingDisplay] = 0;
|
|
201
|
-
this [_loadingTotal] = 0;
|
|
202
|
-
|
|
203
|
-
this [_loadingObjects] .clear ();
|
|
204
|
-
|
|
205
|
-
for (const object of this .getPrivateScene () .getLoadingObjects ())
|
|
206
|
-
this .addLoadingObject (object);
|
|
207
|
-
},
|
|
208
213
|
};
|
|
209
214
|
|
|
210
215
|
export default X3DNetworkingContext;
|
|
@@ -124,7 +124,7 @@ PointingDevice .prototype = Object .assign (Object .create (X3DBaseNode .prototy
|
|
|
124
124
|
event .stopImmediatePropagation (); // Keeps the rest of the handlers from being executed
|
|
125
125
|
|
|
126
126
|
browser .setCursor ("HAND");
|
|
127
|
-
browser .
|
|
127
|
+
browser .finishedEvents () .addInterest ("onverifymotion", this, x, y);
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
},
|
|
@@ -145,7 +145,7 @@ PointingDevice .prototype = Object .assign (Object .create (X3DBaseNode .prototy
|
|
|
145
145
|
|
|
146
146
|
browser .buttonReleaseEvent ();
|
|
147
147
|
browser .setCursor (this .isOver ? "HAND" : "DEFAULT");
|
|
148
|
-
browser .
|
|
148
|
+
browser .finishedEvents () .addInterest ("onverifymotion", this, x, y);
|
|
149
149
|
browser .addBrowserEvent ();
|
|
150
150
|
|
|
151
151
|
this .cursor = "DEFAULT";
|
|
@@ -272,7 +272,7 @@ PointingDevice .prototype = Object .assign (Object .create (X3DBaseNode .prototy
|
|
|
272
272
|
// and the new child has a sensor node inside. This sensor node must be update to
|
|
273
273
|
// reflect the correct isOver state.
|
|
274
274
|
|
|
275
|
-
this .getBrowser () .
|
|
275
|
+
this .getBrowser () .finishedEvents () .removeInterest ("onverifymotion", this);
|
|
276
276
|
|
|
277
277
|
this .onmotion (x, y);
|
|
278
278
|
},
|
|
@@ -813,14 +813,14 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
813
813
|
beginUpdate: function ()
|
|
814
814
|
{
|
|
815
815
|
this .setLive (true);
|
|
816
|
-
this .getExecutionContext () .
|
|
816
|
+
this .getExecutionContext () .beginUpdate ();
|
|
817
817
|
this .advanceTime ();
|
|
818
818
|
this .addBrowserEvent ();
|
|
819
819
|
},
|
|
820
820
|
endUpdate: function ()
|
|
821
821
|
{
|
|
822
822
|
this .setLive (false);
|
|
823
|
-
this .getExecutionContext () .
|
|
823
|
+
this .getExecutionContext () .endUpdate ();
|
|
824
824
|
},
|
|
825
825
|
print: function ()
|
|
826
826
|
{
|
|
@@ -114,12 +114,13 @@ function X3DBrowserContext (element)
|
|
|
114
114
|
for (const browserContext of browserContexts)
|
|
115
115
|
browserContext .call (this);
|
|
116
116
|
|
|
117
|
-
this .addChildObjects ("initialized",
|
|
118
|
-
"shutdown",
|
|
119
|
-
"prepareEvents",
|
|
120
|
-
"timeEvents",
|
|
121
|
-
"sensorEvents",
|
|
122
|
-
"
|
|
117
|
+
this .addChildObjects ("initialized", new SFTime (),
|
|
118
|
+
"shutdown", new SFTime (),
|
|
119
|
+
"prepareEvents", new SFTime (),
|
|
120
|
+
"timeEvents", new SFTime (),
|
|
121
|
+
"sensorEvents", new SFTime (),
|
|
122
|
+
"displayEvents", new SFTime (),
|
|
123
|
+
"finishedEvents", new SFTime ());
|
|
123
124
|
|
|
124
125
|
this [_changedTime] = 0;
|
|
125
126
|
this [_previousTime] = 0;
|
|
@@ -204,9 +205,13 @@ X3DBrowserContext .prototype = Object .assign (Object .create (X3DBaseNode .prot
|
|
|
204
205
|
{
|
|
205
206
|
return this ._sensorEvents;
|
|
206
207
|
},
|
|
207
|
-
|
|
208
|
+
displayEvents: function ()
|
|
208
209
|
{
|
|
209
|
-
return this .
|
|
210
|
+
return this ._displayEvents;
|
|
211
|
+
},
|
|
212
|
+
finishedEvents: function ()
|
|
213
|
+
{
|
|
214
|
+
return this ._finishedEvents;
|
|
210
215
|
},
|
|
211
216
|
getBrowser: function ()
|
|
212
217
|
{
|
|
@@ -267,10 +272,10 @@ X3DBrowserContext .prototype = Object .assign (Object .create (X3DBaseNode .prot
|
|
|
267
272
|
|
|
268
273
|
// Events
|
|
269
274
|
|
|
270
|
-
this .
|
|
275
|
+
this .addTaintedField (this ._prepareEvents);
|
|
271
276
|
this [_processEvents] ();
|
|
272
277
|
|
|
273
|
-
this .
|
|
278
|
+
this .addTaintedField (this ._timeEvents);
|
|
274
279
|
this [_processEvents] ();
|
|
275
280
|
|
|
276
281
|
// Camera
|
|
@@ -290,13 +295,16 @@ X3DBrowserContext .prototype = Object .assign (Object .create (X3DBaseNode .prot
|
|
|
290
295
|
|
|
291
296
|
// Events
|
|
292
297
|
|
|
293
|
-
this .
|
|
298
|
+
this .addTaintedField (this ._sensorEvents);
|
|
294
299
|
this [_processEvents] ();
|
|
295
300
|
|
|
296
301
|
// Display
|
|
297
302
|
|
|
298
303
|
this [_displayTime] .start ()
|
|
299
304
|
|
|
305
|
+
this .addTaintedField (this ._displayEvents);
|
|
306
|
+
this [_processEvents] ();
|
|
307
|
+
|
|
300
308
|
const gl = this .getContext ();
|
|
301
309
|
|
|
302
310
|
this .getFrameBuffer () .bind ();
|
|
@@ -312,7 +320,8 @@ X3DBrowserContext .prototype = Object .assign (Object .create (X3DBaseNode .prot
|
|
|
312
320
|
|
|
313
321
|
// Finish
|
|
314
322
|
|
|
315
|
-
this .
|
|
323
|
+
this .addTaintedField (this ._finishedEvents);
|
|
324
|
+
this [_processEvents] ();
|
|
316
325
|
|
|
317
326
|
this [_browserTime] .stop ();
|
|
318
327
|
this [_systemTime] .start ();
|
|
@@ -85,6 +85,10 @@ AnnotationLayer .prototype = Object .assign (Object .create (X3DLayerNode .proto
|
|
|
85
85
|
{
|
|
86
86
|
return "layers";
|
|
87
87
|
},
|
|
88
|
+
getSpecificationRange: function ()
|
|
89
|
+
{
|
|
90
|
+
return ["4.0", "Infinity"];
|
|
91
|
+
},
|
|
88
92
|
initialize: function ()
|
|
89
93
|
{
|
|
90
94
|
X3DLayerNode .prototype .initialize .call (this);
|
|
@@ -80,6 +80,10 @@ AnnotationTarget .prototype = Object .assign (Object .create (X3DChildNode .prot
|
|
|
80
80
|
{
|
|
81
81
|
return "children";
|
|
82
82
|
},
|
|
83
|
+
getSpecificationRange: function ()
|
|
84
|
+
{
|
|
85
|
+
return ["4.0", "Infinity"];
|
|
86
|
+
},
|
|
83
87
|
initialize: function ()
|
|
84
88
|
{
|
|
85
89
|
X3DChildNode .prototype .initialize .call (this);
|
|
@@ -89,6 +89,10 @@ GroupAnnotation .prototype = Object .assign (Object .create (X3DGroupingNode .pr
|
|
|
89
89
|
{
|
|
90
90
|
return "children";
|
|
91
91
|
},
|
|
92
|
+
getSpecificationRange: function ()
|
|
93
|
+
{
|
|
94
|
+
return ["4.0", "Infinity"];
|
|
95
|
+
},
|
|
92
96
|
initialize: function ()
|
|
93
97
|
{
|
|
94
98
|
X3DGroupingNode .prototype .initialize .call (this);
|
|
@@ -85,6 +85,10 @@ IconAnnotation .prototype = Object .assign (Object .create (X3DAnnotationNode .p
|
|
|
85
85
|
{
|
|
86
86
|
return "children";
|
|
87
87
|
},
|
|
88
|
+
getSpecificationRange: function ()
|
|
89
|
+
{
|
|
90
|
+
return ["4.0", "Infinity"];
|
|
91
|
+
},
|
|
88
92
|
initialize: function ()
|
|
89
93
|
{
|
|
90
94
|
X3DAnnotationNode .prototype .initialize .call (this);
|
|
@@ -81,6 +81,10 @@ TextAnnotation .prototype = Object .assign (Object .create (X3DAnnotationNode .p
|
|
|
81
81
|
{
|
|
82
82
|
return "children";
|
|
83
83
|
},
|
|
84
|
+
getSpecificationRange: function ()
|
|
85
|
+
{
|
|
86
|
+
return ["4.0", "Infinity"];
|
|
87
|
+
},
|
|
84
88
|
initialize: function ()
|
|
85
89
|
{
|
|
86
90
|
X3DAnnotationNode .prototype .initialize .call (this);
|
|
@@ -80,6 +80,10 @@ URLAnnotation .prototype = Object .assign (Object .create (X3DAnnotationNode .pr
|
|
|
80
80
|
{
|
|
81
81
|
return "children";
|
|
82
82
|
},
|
|
83
|
+
getSpecificationRange: function ()
|
|
84
|
+
{
|
|
85
|
+
return ["4.0", "Infinity"];
|
|
86
|
+
},
|
|
83
87
|
initialize: function ()
|
|
84
88
|
{
|
|
85
89
|
X3DAnnotationNode .prototype .initialize .call (this);
|
|
@@ -90,6 +90,10 @@ CADFace .prototype = Object .assign (Object .create (X3DProductStructureChildNod
|
|
|
90
90
|
{
|
|
91
91
|
return "children";
|
|
92
92
|
},
|
|
93
|
+
getSpecificationRange: function ()
|
|
94
|
+
{
|
|
95
|
+
return ["3.1", "Infinity"];
|
|
96
|
+
},
|
|
93
97
|
initialize: function ()
|
|
94
98
|
{
|
|
95
99
|
X3DProductStructureChildNode .prototype .initialize .call (this);
|
|
@@ -102,14 +106,7 @@ CADFace .prototype = Object .assign (Object .create (X3DProductStructureChildNod
|
|
|
102
106
|
getBBox: function (bbox, shadows)
|
|
103
107
|
{
|
|
104
108
|
if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
|
|
105
|
-
|
|
106
|
-
const boundedObject = this .visibleNode;
|
|
107
|
-
|
|
108
|
-
if (boundedObject)
|
|
109
|
-
return boundedObject .getBBox (bbox, shadows);
|
|
110
|
-
|
|
111
|
-
return bbox .set ();
|
|
112
|
-
}
|
|
109
|
+
return this .visibleNode?.getBBox (bbox, shadows) ?? bbox .set ();
|
|
113
110
|
|
|
114
111
|
return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
|
|
115
112
|
},
|
|
@@ -173,11 +170,11 @@ CADFace .prototype = Object .assign (Object .create (X3DProductStructureChildNod
|
|
|
173
170
|
},
|
|
174
171
|
set_cameraObject__: function ()
|
|
175
172
|
{
|
|
176
|
-
this .setCameraObject (!!
|
|
173
|
+
this .setCameraObject (!!this .visibleNode?.isCameraObject ());
|
|
177
174
|
},
|
|
178
175
|
set_transformSensors__: function ()
|
|
179
176
|
{
|
|
180
|
-
this .setPickableObject (!!
|
|
177
|
+
this .setPickableObject (!!this .visibleNode?.isPickableObject ());
|
|
181
178
|
},
|
|
182
179
|
set_visible__: function ()
|
|
183
180
|
{
|
|
@@ -204,11 +201,7 @@ CADFace .prototype = Object .assign (Object .create (X3DProductStructureChildNod
|
|
|
204
201
|
case TraverseType .CAMERA:
|
|
205
202
|
case TraverseType .SHADOW:
|
|
206
203
|
{
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
if (visibleNode)
|
|
210
|
-
visibleNode .traverse (type, renderObject);
|
|
211
|
-
|
|
204
|
+
this .visibleNode?.traverse (type, renderObject);
|
|
212
205
|
return;
|
|
213
206
|
}
|
|
214
207
|
case TraverseType .PICKING:
|
|
@@ -219,34 +212,21 @@ CADFace .prototype = Object .assign (Object .create (X3DProductStructureChildNod
|
|
|
219
212
|
|
|
220
213
|
pickingHierarchy .push (this);
|
|
221
214
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
if (visibleNode)
|
|
225
|
-
visibleNode .traverse (type, renderObject);
|
|
215
|
+
this .visibleNode?.traverse (type, renderObject);
|
|
226
216
|
|
|
227
217
|
pickingHierarchy .pop ();
|
|
228
218
|
return;
|
|
229
219
|
}
|
|
230
220
|
case TraverseType .COLLISION:
|
|
231
221
|
{
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
if (visibleNode)
|
|
235
|
-
visibleNode .traverse (type, renderObject);
|
|
222
|
+
this .visibleNode?.traverse (type, renderObject);
|
|
236
223
|
return;
|
|
237
224
|
}
|
|
238
225
|
case TraverseType .DISPLAY:
|
|
239
226
|
{
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
if (visibleNode)
|
|
243
|
-
visibleNode .traverse (type, renderObject);
|
|
244
|
-
|
|
245
|
-
const boundedObject = this .boundedObject;
|
|
246
|
-
|
|
247
|
-
if (boundedObject)
|
|
248
|
-
boundedObject .displayBBox (type, renderObject);
|
|
227
|
+
this .visibleNode?.traverse (type, renderObject);
|
|
249
228
|
|
|
229
|
+
this .boundedObject?.displayBBox (type, renderObject);
|
|
250
230
|
return;
|
|
251
231
|
}
|
|
252
232
|
}
|
|
@@ -88,6 +88,10 @@ IndexedQuadSet .prototype = Object .assign (Object .create (X3DComposedGeometryN
|
|
|
88
88
|
{
|
|
89
89
|
return "geometry";
|
|
90
90
|
},
|
|
91
|
+
getSpecificationRange: function ()
|
|
92
|
+
{
|
|
93
|
+
return ["3.1", "Infinity"];
|
|
94
|
+
},
|
|
91
95
|
initialize: function ()
|
|
92
96
|
{
|
|
93
97
|
X3DComposedGeometryNode .prototype .initialize .call (this);
|
|
@@ -86,6 +86,10 @@ QuadSet .prototype = Object .assign (Object .create (X3DComposedGeometryNode .pr
|
|
|
86
86
|
{
|
|
87
87
|
return "geometry";
|
|
88
88
|
},
|
|
89
|
+
getSpecificationRange: function ()
|
|
90
|
+
{
|
|
91
|
+
return ["3.1", "Infinity"];
|
|
92
|
+
},
|
|
89
93
|
getTriangleIndex: (function ()
|
|
90
94
|
{
|
|
91
95
|
// Define two triangles.
|
|
@@ -82,6 +82,10 @@ MetadataBoolean .prototype = Object .assign (Object .create (X3DNode .prototype)
|
|
|
82
82
|
{
|
|
83
83
|
return "metadata";
|
|
84
84
|
},
|
|
85
|
+
getSpecificationRange: function ()
|
|
86
|
+
{
|
|
87
|
+
return ["3.3", "Infinity"];
|
|
88
|
+
},
|
|
85
89
|
initialize: function ()
|
|
86
90
|
{
|
|
87
91
|
X3DNode .prototype .initialize .call ();
|
|
@@ -82,6 +82,10 @@ MetadataDouble .prototype = Object .assign (Object .create (X3DNode .prototype),
|
|
|
82
82
|
{
|
|
83
83
|
return "metadata";
|
|
84
84
|
},
|
|
85
|
+
getSpecificationRange: function ()
|
|
86
|
+
{
|
|
87
|
+
return ["3.0", "Infinity"];
|
|
88
|
+
},
|
|
85
89
|
initialize: function ()
|
|
86
90
|
{
|
|
87
91
|
X3DNode .prototype .initialize .call ();
|
|
@@ -82,6 +82,10 @@ MetadataFloat .prototype = Object .assign (Object .create (X3DNode .prototype),
|
|
|
82
82
|
{
|
|
83
83
|
return "metadata";
|
|
84
84
|
},
|
|
85
|
+
getSpecificationRange: function ()
|
|
86
|
+
{
|
|
87
|
+
return ["3.0", "Infinity"];
|
|
88
|
+
},
|
|
85
89
|
initialize: function ()
|
|
86
90
|
{
|
|
87
91
|
X3DNode .prototype .initialize .call ();
|
|
@@ -82,6 +82,10 @@ MetadataInteger .prototype = Object .assign (Object .create (X3DNode .prototype)
|
|
|
82
82
|
{
|
|
83
83
|
return "metadata";
|
|
84
84
|
},
|
|
85
|
+
getSpecificationRange: function ()
|
|
86
|
+
{
|
|
87
|
+
return ["3.0", "Infinity"];
|
|
88
|
+
},
|
|
85
89
|
initialize: function ()
|
|
86
90
|
{
|
|
87
91
|
X3DNode .prototype .initialize .call ();
|
|
@@ -82,6 +82,10 @@ MetadataSet .prototype = Object .assign (Object .create (X3DNode .prototype),
|
|
|
82
82
|
{
|
|
83
83
|
return "metadata";
|
|
84
84
|
},
|
|
85
|
+
getSpecificationRange: function ()
|
|
86
|
+
{
|
|
87
|
+
return ["3.0", "Infinity"];
|
|
88
|
+
},
|
|
85
89
|
initialize: function ()
|
|
86
90
|
{
|
|
87
91
|
X3DNode .prototype .initialize .call ();
|
|
@@ -82,6 +82,10 @@ MetadataString .prototype = Object .assign (Object .create (X3DNode .prototype),
|
|
|
82
82
|
{
|
|
83
83
|
return "metadata";
|
|
84
84
|
},
|
|
85
|
+
getSpecificationRange: function ()
|
|
86
|
+
{
|
|
87
|
+
return ["3.0", "Infinity"];
|
|
88
|
+
},
|
|
85
89
|
initialize: function ()
|
|
86
90
|
{
|
|
87
91
|
X3DNode .prototype .initialize .call ();
|
|
@@ -78,6 +78,10 @@ WorldInfo .prototype = Object .assign (Object .create (X3DInfoNode .prototype),
|
|
|
78
78
|
{
|
|
79
79
|
return "children";
|
|
80
80
|
},
|
|
81
|
+
getSpecificationRange: function ()
|
|
82
|
+
{
|
|
83
|
+
return ["2.0", "Infinity"];
|
|
84
|
+
},
|
|
81
85
|
initialize: function ()
|
|
82
86
|
{
|
|
83
87
|
X3DInfoNode .prototype .initialize .call (this);
|