x_ite 8.6.12 → 8.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LICENSE.md +4 -4
- package/dist/assets/components/Annotation.js +37 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +45 -21
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +39 -28
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +37 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +37 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +55 -23
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +84 -40
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +42 -18
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +18 -10
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +47 -27
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +84 -28
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +70 -30
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +42 -22
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +93 -37
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +35 -31
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +33 -25
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +22 -14
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +64 -32
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +80 -28
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +13 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +1697 -1080
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +2 -2
- package/docs/_posts/components/Core/WorldInfo.md +1 -1
- package/docs/_posts/components/EnvironmentalEffects/Background.md +1 -1
- package/docs/_posts/components/EnvironmentalEffects/Fog.md +1 -1
- package/docs/_posts/components/EnvironmentalSensor/ProximitySensor.md +1 -1
- package/docs/_posts/components/EnvironmentalSensor/VisibilitySensor.md +1 -1
- package/docs/_posts/components/Geometry3D/Box.md +1 -1
- package/docs/_posts/components/Geometry3D/Cone.md +1 -1
- package/docs/_posts/components/Geometry3D/Cylinder.md +1 -1
- package/docs/_posts/components/Geometry3D/ElevationGrid.md +1 -1
- package/docs/_posts/components/Geometry3D/Extrusion.md +1 -1
- package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +1 -1
- package/docs/_posts/components/Geometry3D/Sphere.md +1 -1
- package/docs/_posts/components/Grouping/Group.md +1 -1
- package/docs/_posts/components/Grouping/Switch.md +1 -1
- package/docs/_posts/components/Grouping/Transform.md +1 -1
- package/docs/_posts/components/Interpolation/ColorInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/CoordinateInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/NormalInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/OrientationInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/PositionInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/ScalarInterpolator.md +1 -1
- package/docs/_posts/components/Lighting/DirectionalLight.md +1 -1
- package/docs/_posts/components/Lighting/PointLight.md +1 -1
- package/docs/_posts/components/Lighting/SpotLight.md +1 -1
- package/docs/_posts/components/Navigation/Billboard.md +1 -1
- package/docs/_posts/components/Navigation/Collision.md +1 -1
- package/docs/_posts/components/Navigation/LOD.md +1 -1
- package/docs/_posts/components/Navigation/NavigationInfo.md +1 -1
- package/docs/_posts/components/Navigation/Viewpoint.md +1 -1
- package/docs/_posts/components/Networking/Anchor.md +1 -1
- package/docs/_posts/components/Networking/Inline.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/CylinderSensor.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/PlaneSensor.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/SphereSensor.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/TouchSensor.md +1 -1
- package/docs/_posts/components/Rendering/Color.md +1 -1
- package/docs/_posts/components/Rendering/Coordinate.md +1 -1
- package/docs/_posts/components/Rendering/IndexedLineSet.md +1 -1
- package/docs/_posts/components/Rendering/Normal.md +1 -1
- package/docs/_posts/components/Rendering/PointSet.md +1 -1
- package/docs/_posts/components/Scripting/Script.md +1 -1
- package/docs/_posts/components/Shape/Appearance.md +1 -1
- package/docs/_posts/components/Shape/Material.md +1 -9
- package/docs/_posts/components/Shape/PhysicalMaterial.md +0 -8
- package/docs/_posts/components/Shape/Shape.md +1 -1
- package/docs/_posts/components/Shape/UnlitMaterial.md +0 -8
- package/docs/_posts/components/Sound/AudioClip.md +1 -1
- package/docs/_posts/components/Sound/Sound.md +1 -1
- package/docs/_posts/components/Text/FontStyle.md +1 -1
- package/docs/_posts/components/Text/Text.md +1 -1
- package/docs/_posts/components/Texturing/ImageTexture.md +1 -5
- package/docs/_posts/components/Texturing/MovieTexture.md +1 -5
- package/docs/_posts/components/Texturing/PixelTexture.md +1 -1
- package/docs/_posts/components/Texturing/TextureCoordinate.md +1 -1
- package/docs/_posts/components/Texturing/TextureTransform.md +1 -1
- package/docs/_posts/components/Time/TimeSensor.md +1 -1
- package/docs/laboratory/gltf-sample-viewer.html +1 -1
- package/package.json +1 -1
- package/src/standard/Math/Numbers/Matrix2.js +3 -3
- package/src/standard/Math/Numbers/Vector4.js +1 -0
- package/src/tests.js +2 -0
- package/src/x_ite/Base/X3DBaseNode.js +58 -53
- package/src/x_ite/Browser/Core/BrowserOptions.js +2 -1
- package/src/x_ite/Browser/Core/X3DCoreContext.js +3 -6
- package/src/x_ite/Browser/Grouping/X3DGroupingContext.js +9 -15
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +0 -3
- package/src/x_ite/Browser/Navigation/FlyViewer.js +0 -2
- package/src/x_ite/Browser/Navigation/X3DNavigationContext.js +10 -12
- package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +40 -21
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/VolumeRendering/X3DVolumeRenderingContext.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +19 -19
- package/src/x_ite/Components/Annotation/AnnotationLayer.js +4 -0
- package/src/x_ite/Components/Annotation/AnnotationTarget.js +4 -0
- package/src/x_ite/Components/Annotation/GroupAnnotation.js +4 -0
- package/src/x_ite/Components/Annotation/IconAnnotation.js +4 -0
- package/src/x_ite/Components/Annotation/TextAnnotation.js +4 -0
- package/src/x_ite/Components/Annotation/URLAnnotation.js +4 -0
- package/src/x_ite/Components/CADGeometry/CADAssembly.js +4 -0
- package/src/x_ite/Components/CADGeometry/CADFace.js +12 -8
- package/src/x_ite/Components/CADGeometry/CADLayer.js +4 -0
- package/src/x_ite/Components/CADGeometry/CADPart.js +4 -0
- package/src/x_ite/Components/CADGeometry/IndexedQuadSet.js +4 -0
- package/src/x_ite/Components/CADGeometry/QuadSet.js +4 -0
- package/src/x_ite/Components/Core/MetadataBoolean.js +8 -4
- package/src/x_ite/Components/Core/MetadataDouble.js +8 -4
- package/src/x_ite/Components/Core/MetadataFloat.js +8 -4
- package/src/x_ite/Components/Core/MetadataInteger.js +8 -4
- package/src/x_ite/Components/Core/MetadataSet.js +8 -4
- package/src/x_ite/Components/Core/MetadataString.js +8 -4
- package/src/x_ite/Components/Core/WorldInfo.js +4 -0
- package/src/x_ite/Components/Core/X3DNode.js +17 -16
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +11 -14
- package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +4 -1
- package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +4 -0
- package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +6 -2
- package/src/x_ite/Components/DIS/DISEntityManager.js +4 -0
- package/src/x_ite/Components/DIS/DISEntityTypeMapping.js +4 -0
- package/src/x_ite/Components/DIS/EspduTransform.js +4 -0
- package/src/x_ite/Components/DIS/ReceiverPdu.js +4 -0
- package/src/x_ite/Components/DIS/SignalPdu.js +4 -0
- package/src/x_ite/Components/DIS/TransmitterPdu.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/Background.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/Fog.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/FogCoordinate.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/LocalFog.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/TextureBackground.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +1 -1
- package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +4 -0
- package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +6 -2
- package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +4 -0
- package/src/x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode.js +2 -2
- package/src/x_ite/Components/EventUtilities/BooleanFilter.js +4 -0
- package/src/x_ite/Components/EventUtilities/BooleanSequencer.js +4 -0
- package/src/x_ite/Components/EventUtilities/BooleanToggle.js +4 -0
- package/src/x_ite/Components/EventUtilities/BooleanTrigger.js +4 -0
- package/src/x_ite/Components/EventUtilities/IntegerSequencer.js +4 -0
- package/src/x_ite/Components/EventUtilities/IntegerTrigger.js +4 -0
- package/src/x_ite/Components/EventUtilities/TimeTrigger.js +4 -0
- package/src/x_ite/Components/Followers/ColorChaser.js +4 -0
- package/src/x_ite/Components/Followers/ColorDamper.js +4 -0
- package/src/x_ite/Components/Followers/CoordinateChaser.js +4 -0
- package/src/x_ite/Components/Followers/CoordinateDamper.js +4 -0
- package/src/x_ite/Components/Followers/OrientationChaser.js +4 -0
- package/src/x_ite/Components/Followers/OrientationDamper.js +4 -0
- package/src/x_ite/Components/Followers/PositionChaser.js +4 -0
- package/src/x_ite/Components/Followers/PositionChaser2D.js +4 -0
- package/src/x_ite/Components/Followers/PositionDamper.js +4 -0
- package/src/x_ite/Components/Followers/PositionDamper2D.js +4 -0
- package/src/x_ite/Components/Followers/ScalarChaser.js +4 -0
- package/src/x_ite/Components/Followers/ScalarDamper.js +4 -0
- package/src/x_ite/Components/Followers/TexCoordChaser2D.js +4 -0
- package/src/x_ite/Components/Followers/TexCoordDamper2D.js +4 -0
- package/src/x_ite/Components/Followers/X3DFollowerNode.js +2 -2
- package/src/x_ite/Components/Geometry2D/Arc2D.js +5 -1
- package/src/x_ite/Components/Geometry2D/ArcClose2D.js +5 -1
- package/src/x_ite/Components/Geometry2D/Circle2D.js +5 -1
- package/src/x_ite/Components/Geometry2D/Disk2D.js +5 -1
- package/src/x_ite/Components/Geometry2D/Polyline2D.js +4 -0
- package/src/x_ite/Components/Geometry2D/Polypoint2D.js +4 -0
- package/src/x_ite/Components/Geometry2D/Rectangle2D.js +4 -0
- package/src/x_ite/Components/Geometry2D/TriangleSet2D.js +4 -0
- package/src/x_ite/Components/Geometry3D/Box.js +4 -0
- package/src/x_ite/Components/Geometry3D/Cone.js +5 -1
- package/src/x_ite/Components/Geometry3D/Cylinder.js +5 -1
- package/src/x_ite/Components/Geometry3D/ElevationGrid.js +14 -10
- package/src/x_ite/Components/Geometry3D/Extrusion.js +4 -0
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +7 -3
- package/src/x_ite/Components/Geometry3D/Sphere.js +5 -1
- package/src/x_ite/Components/Geospatial/GeoCoordinate.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +11 -7
- package/src/x_ite/Components/Geospatial/GeoLOD.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoLocation.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoMetadata.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoOrigin.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoProximitySensor.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoTransform.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoViewpoint.js +4 -0
- package/src/x_ite/Components/Grouping/Group.js +4 -0
- package/src/x_ite/Components/Grouping/StaticGroup.js +4 -0
- package/src/x_ite/Components/Grouping/Switch.js +11 -7
- package/src/x_ite/Components/Grouping/Transform.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimDisplacer.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimJoint.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimMotion.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimSegment.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimSite.js +4 -0
- package/src/x_ite/Components/Interpolation/ColorInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator2D.js +4 -0
- package/src/x_ite/Components/Interpolation/EaseInEaseOut.js +4 -0
- package/src/x_ite/Components/Interpolation/NormalInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/PositionInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +4 -0
- package/src/x_ite/Components/Interpolation/ScalarInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator2D.js +4 -0
- package/src/x_ite/Components/Interpolation/SplineScalarInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/SquadOrientationInterpolator.js +4 -0
- package/src/x_ite/Components/KeyDeviceSensor/KeySensor.js +4 -0
- package/src/x_ite/Components/KeyDeviceSensor/StringSensor.js +4 -0
- package/src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js +2 -2
- package/src/x_ite/Components/Layering/Layer.js +4 -0
- package/src/x_ite/Components/Layering/LayerSet.js +4 -0
- package/src/x_ite/Components/Layering/Viewport.js +4 -0
- package/src/x_ite/Components/Layering/X3DLayerNode.js +40 -49
- package/src/x_ite/Components/Layout/Layout.js +4 -0
- package/src/x_ite/Components/Layout/LayoutGroup.js +4 -0
- package/src/x_ite/Components/Layout/LayoutLayer.js +4 -0
- package/src/x_ite/Components/Layout/ScreenFontStyle.js +4 -0
- package/src/x_ite/Components/Layout/ScreenGroup.js +4 -0
- package/src/x_ite/Components/Lighting/DirectionalLight.js +4 -0
- package/src/x_ite/Components/Lighting/EnvironmentLight.js +4 -0
- package/src/x_ite/Components/Lighting/PointLight.js +4 -0
- package/src/x_ite/Components/Lighting/SpotLight.js +7 -9
- package/src/x_ite/Components/NURBS/Contour2D.js +4 -0
- package/src/x_ite/Components/NURBS/ContourPolyline2D.js +4 -0
- package/src/x_ite/Components/NURBS/CoordinateDouble.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsCurve.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsCurve2D.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsPatchSurface.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsPositionInterpolator.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsSet.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsSweptSurface.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsSwungSurface.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsTextureCoordinate.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsTrimmedSurface.js +4 -0
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +4 -4
- package/src/x_ite/Components/Navigation/Billboard.js +4 -0
- package/src/x_ite/Components/Navigation/Collision.js +8 -4
- package/src/x_ite/Components/Navigation/LOD.js +11 -7
- package/src/x_ite/Components/Navigation/NavigationInfo.js +4 -0
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +4 -0
- package/src/x_ite/Components/Navigation/Viewpoint.js +4 -0
- package/src/x_ite/Components/Navigation/ViewpointGroup.js +4 -0
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +8 -0
- package/src/x_ite/Components/Networking/Anchor.js +4 -0
- package/src/x_ite/Components/Networking/Inline.js +6 -2
- package/src/x_ite/Components/Networking/LoadSensor.js +42 -29
- package/src/x_ite/Components/Networking/X3DUrlObject.js +2 -2
- package/src/x_ite/Components/ParticleSystems/BoundedPhysicsModel.js +4 -0
- package/src/x_ite/Components/ParticleSystems/ConeEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/ExplosionEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +4 -0
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +12 -8
- package/src/x_ite/Components/ParticleSystems/PointEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +4 -0
- package/src/x_ite/Components/Picking/LinePickSensor.js +4 -0
- package/src/x_ite/Components/Picking/PickableGroup.js +4 -0
- package/src/x_ite/Components/Picking/PointPickSensor.js +4 -0
- package/src/x_ite/Components/Picking/PrimitivePickSensor.js +4 -0
- package/src/x_ite/Components/Picking/VolumePickSensor.js +4 -0
- package/src/x_ite/Components/Picking/X3DPickSensorNode.js +4 -4
- package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +4 -0
- package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +4 -0
- package/src/x_ite/Components/PointingDeviceSensor/SphereSensor.js +4 -0
- package/src/x_ite/Components/PointingDeviceSensor/TouchSensor.js +4 -0
- package/src/x_ite/Components/PointingDeviceSensor/X3DPointingDeviceSensorNode.js +28 -19
- package/src/x_ite/Components/Rendering/ClipPlane.js +4 -0
- package/src/x_ite/Components/Rendering/Color.js +4 -0
- package/src/x_ite/Components/Rendering/ColorRGBA.js +4 -0
- package/src/x_ite/Components/Rendering/Coordinate.js +4 -0
- package/src/x_ite/Components/Rendering/IndexedLineSet.js +15 -11
- package/src/x_ite/Components/Rendering/IndexedTriangleFanSet.js +4 -0
- package/src/x_ite/Components/Rendering/IndexedTriangleSet.js +4 -0
- package/src/x_ite/Components/Rendering/IndexedTriangleStripSet.js +4 -0
- package/src/x_ite/Components/Rendering/LineSet.js +16 -12
- package/src/x_ite/Components/Rendering/Normal.js +4 -0
- package/src/x_ite/Components/Rendering/PointSet.js +15 -11
- package/src/x_ite/Components/Rendering/TriangleFanSet.js +4 -0
- package/src/x_ite/Components/Rendering/TriangleSet.js +4 -0
- package/src/x_ite/Components/Rendering/TriangleStripSet.js +4 -0
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +14 -14
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +6 -6
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +6 -6
- package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +4 -4
- package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +11 -7
- package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +11 -7
- package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +7 -3
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSpace.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/Contact.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/MotorJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +6 -2
- package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/UniversalJoint.js +4 -0
- package/src/x_ite/Components/Scripting/Script.js +7 -3
- package/src/x_ite/Components/Shaders/ComposedShader.js +11 -9
- package/src/x_ite/Components/Shaders/FloatVertexAttribute.js +4 -0
- package/src/x_ite/Components/Shaders/Matrix3VertexAttribute.js +4 -0
- package/src/x_ite/Components/Shaders/Matrix4VertexAttribute.js +4 -0
- package/src/x_ite/Components/Shaders/PackagedShader.js +4 -0
- package/src/x_ite/Components/Shaders/ProgramShader.js +4 -0
- package/src/x_ite/Components/Shaders/ShaderPart.js +4 -2
- package/src/x_ite/Components/Shaders/ShaderProgram.js +4 -0
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +3 -3
- package/src/x_ite/Components/Shape/AcousticProperties.js +4 -0
- package/src/x_ite/Components/Shape/Appearance.js +8 -4
- package/src/x_ite/Components/Shape/FillProperties.js +4 -0
- package/src/x_ite/Components/Shape/LineProperties.js +4 -0
- package/src/x_ite/Components/Shape/Material.js +5 -2
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +5 -2
- package/src/x_ite/Components/Shape/PointProperties.js +4 -0
- package/src/x_ite/Components/Shape/Shape.js +4 -0
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +4 -0
- package/src/x_ite/Components/Shape/UnlitMaterial.js +5 -2
- package/src/x_ite/Components/Shape/X3DMaterialNode.js +1 -1
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +5 -7
- package/src/x_ite/Components/Shape/X3DShapeNode.js +1 -1
- package/src/x_ite/Components/Sound/Analyser.js +4 -0
- package/src/x_ite/Components/Sound/AudioClip.js +6 -2
- package/src/x_ite/Components/Sound/AudioDestination.js +4 -0
- package/src/x_ite/Components/Sound/BiquadFilter.js +4 -0
- package/src/x_ite/Components/Sound/BufferAudioSource.js +4 -0
- package/src/x_ite/Components/Sound/ChannelMerger.js +4 -0
- package/src/x_ite/Components/Sound/ChannelSelector.js +4 -0
- package/src/x_ite/Components/Sound/ChannelSplitter.js +4 -0
- package/src/x_ite/Components/Sound/Convolver.js +4 -0
- package/src/x_ite/Components/Sound/Delay.js +4 -0
- package/src/x_ite/Components/Sound/DynamicsCompressor.js +4 -0
- package/src/x_ite/Components/Sound/Gain.js +4 -0
- package/src/x_ite/Components/Sound/ListenerPointSource.js +4 -0
- package/src/x_ite/Components/Sound/MicrophoneSource.js +4 -0
- package/src/x_ite/Components/Sound/OscillatorSource.js +4 -0
- package/src/x_ite/Components/Sound/PeriodicWave.js +4 -0
- package/src/x_ite/Components/Sound/Sound.js +6 -2
- package/src/x_ite/Components/Sound/SpatialSound.js +4 -0
- package/src/x_ite/Components/Sound/StreamAudioDestination.js +4 -0
- package/src/x_ite/Components/Sound/StreamAudioSource.js +4 -0
- package/src/x_ite/Components/Sound/WaveShaper.js +4 -0
- package/src/x_ite/Components/Text/FontStyle.js +4 -0
- package/src/x_ite/Components/Text/Text.js +5 -1
- package/src/x_ite/Components/TextureProjector/TextureProjector.js +4 -0
- package/src/x_ite/Components/TextureProjector/TextureProjectorParallel.js +4 -0
- package/src/x_ite/Components/Texturing/ImageTexture.js +13 -13
- package/src/x_ite/Components/Texturing/MovieTexture.js +10 -7
- package/src/x_ite/Components/Texturing/MultiTexture.js +4 -0
- package/src/x_ite/Components/Texturing/MultiTextureCoordinate.js +4 -0
- package/src/x_ite/Components/Texturing/MultiTextureTransform.js +4 -0
- package/src/x_ite/Components/Texturing/PixelTexture.js +4 -0
- package/src/x_ite/Components/Texturing/TextureCoordinate.js +4 -0
- package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +4 -0
- package/src/x_ite/Components/Texturing/TextureProperties.js +4 -0
- package/src/x_ite/Components/Texturing/TextureTransform.js +4 -0
- package/src/x_ite/Components/Texturing3D/ComposedTexture3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/ImageTextureAtlas.js +6 -2
- package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/TextureCoordinate3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/TextureCoordinate4D.js +4 -0
- package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/TextureTransformMatrix3D.js +4 -0
- package/src/x_ite/Components/Time/TimeSensor.js +5 -1
- package/src/x_ite/Components/Time/X3DTimeDependentNode.js +6 -6
- package/src/x_ite/Components/VolumeRendering/BlendedVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/BoundaryEnhancementVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/CartoonVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/ComposedVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/EdgeEnhancementVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +4 -0
- package/src/x_ite/Components/VolumeRendering/OpacityMapVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/ProjectionVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +4 -0
- package/src/x_ite/Components/VolumeRendering/ShadedVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/SilhouetteEnhancementVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/ToneMappedVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/VolumeData.js +4 -0
- package/src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js +8 -8
- package/src/x_ite/Components/X_ITE/BlendMode.js +4 -0
- package/src/x_ite/Execution/BindableList.js +16 -19
- package/src/x_ite/Execution/X3DExecutionContext.js +33 -11
- package/src/x_ite/Execution/X3DScene.js +4 -0
- package/src/x_ite/Fields/ArrayFields.js +42 -22
- package/src/x_ite/Fields/SFNode.js +3 -6
- package/src/x_ite/Fields/SFNodeCache.js +34 -19
- package/src/x_ite/InputOutput/FileLoader.js +22 -14
- package/src/x_ite/Parser/GLTF2Parser.js +72 -51
- package/src/x_ite/Parser/VRMLParser.js +66 -34
- package/src/x_ite/Parser/X3DParser.js +9 -36
- package/src/x_ite/Parser/XMLParser.js +8 -8
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +2 -2
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +1 -2
- package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +1 -1
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
|
@@ -83,6 +83,10 @@ TextureCoordinateGenerator .prototype = Object .assign (Object .create (X3DSingl
|
|
|
83
83
|
{
|
|
84
84
|
return "texCoord";
|
|
85
85
|
},
|
|
86
|
+
getSpecificationRange: function ()
|
|
87
|
+
{
|
|
88
|
+
return ["3.0", "Infinity"];
|
|
89
|
+
},
|
|
86
90
|
initialize: function ()
|
|
87
91
|
{
|
|
88
92
|
X3DSingleTextureCoordinateNode .prototype .initialize .call (this);
|
|
@@ -95,6 +95,10 @@ TextureProperties .prototype = Object .assign (Object .create (X3DNode .prototyp
|
|
|
95
95
|
{
|
|
96
96
|
return "textureProperties";
|
|
97
97
|
},
|
|
98
|
+
getSpecificationRange: function ()
|
|
99
|
+
{
|
|
100
|
+
return ["3.0", "Infinity"];
|
|
101
|
+
},
|
|
98
102
|
getBorderWidth: function ()
|
|
99
103
|
{
|
|
100
104
|
// https://stackoverflow.com/questions/27760277/webgl-border-color-shader?lq=1
|
|
@@ -88,6 +88,10 @@ TextureTransform .prototype = Object .assign (Object .create (X3DSingleTextureTr
|
|
|
88
88
|
{
|
|
89
89
|
return "textureTransform";
|
|
90
90
|
},
|
|
91
|
+
getSpecificationRange: function ()
|
|
92
|
+
{
|
|
93
|
+
return ["2.0", "Infinity"];
|
|
94
|
+
},
|
|
91
95
|
initialize: function ()
|
|
92
96
|
{
|
|
93
97
|
X3DSingleTextureTransformNode .prototype .initialize .call (this);
|
|
@@ -88,6 +88,10 @@ ComposedTexture3D .prototype = Object .assign (Object .create (X3DTexture3DNode
|
|
|
88
88
|
{
|
|
89
89
|
return "texture";
|
|
90
90
|
},
|
|
91
|
+
getSpecificationRange: function ()
|
|
92
|
+
{
|
|
93
|
+
return ["3.1", "Infinity"];
|
|
94
|
+
},
|
|
91
95
|
initialize: function ()
|
|
92
96
|
{
|
|
93
97
|
X3DTexture3DNode .prototype .initialize .call (this);
|
|
@@ -91,6 +91,10 @@ ImageTexture3D .prototype = Object .assign (Object .create (X3DTexture3DNode .pr
|
|
|
91
91
|
{
|
|
92
92
|
return "texture";
|
|
93
93
|
},
|
|
94
|
+
getSpecificationRange: function ()
|
|
95
|
+
{
|
|
96
|
+
return ["3.1", "Infinity"];
|
|
97
|
+
},
|
|
94
98
|
initialize: function ()
|
|
95
99
|
{
|
|
96
100
|
X3DTexture3DNode .prototype .initialize .call (this);
|
|
@@ -96,6 +96,10 @@ ImageTextureAtlas .prototype = Object .assign (Object .create (X3DTexture3DNode
|
|
|
96
96
|
{
|
|
97
97
|
return "texture";
|
|
98
98
|
},
|
|
99
|
+
getSpecificationRange: function ()
|
|
100
|
+
{
|
|
101
|
+
return ["4.0", "Infinity"];
|
|
102
|
+
},
|
|
99
103
|
initialize: function ()
|
|
100
104
|
{
|
|
101
105
|
X3DTexture3DNode .prototype .initialize .call (this);
|
|
@@ -140,7 +144,7 @@ ImageTextureAtlas .prototype = Object .assign (Object .create (X3DTexture3DNode
|
|
|
140
144
|
setError: function (event)
|
|
141
145
|
{
|
|
142
146
|
if (this .URL .protocol !== "data:")
|
|
143
|
-
console .warn (
|
|
147
|
+
console .warn (`Error loading image '${decodeURI (this .URL .href)}'`, event .type);
|
|
144
148
|
|
|
145
149
|
this .loadNext ();
|
|
146
150
|
},
|
|
@@ -149,7 +153,7 @@ ImageTextureAtlas .prototype = Object .assign (Object .create (X3DTexture3DNode
|
|
|
149
153
|
if (DEBUG)
|
|
150
154
|
{
|
|
151
155
|
if (this .URL .protocol !== "data:")
|
|
152
|
-
console .info (
|
|
156
|
+
console .info (`Done loading image '${decodeURI (this .URL .href)}'`);
|
|
153
157
|
}
|
|
154
158
|
|
|
155
159
|
try
|
|
@@ -84,6 +84,10 @@ PixelTexture3D .prototype = Object .assign (Object .create (X3DTexture3DNode .pr
|
|
|
84
84
|
{
|
|
85
85
|
return "texture";
|
|
86
86
|
},
|
|
87
|
+
getSpecificationRange: function ()
|
|
88
|
+
{
|
|
89
|
+
return ["3.1", "Infinity"];
|
|
90
|
+
},
|
|
87
91
|
initialize: function ()
|
|
88
92
|
{
|
|
89
93
|
X3DTexture3DNode .prototype .initialize .call (this);
|
|
@@ -79,6 +79,10 @@ TextureCoordinate3D .prototype = Object .assign (Object .create (X3DSingleTextur
|
|
|
79
79
|
{
|
|
80
80
|
return "texCoord";
|
|
81
81
|
},
|
|
82
|
+
getSpecificationRange: function ()
|
|
83
|
+
{
|
|
84
|
+
return ["3.1", "Infinity"];
|
|
85
|
+
},
|
|
82
86
|
initialize: function ()
|
|
83
87
|
{
|
|
84
88
|
X3DSingleTextureCoordinateNode .prototype .initialize .call (this);
|
|
@@ -79,6 +79,10 @@ TextureCoordinate4D .prototype = Object .assign (Object .create (X3DSingleTextur
|
|
|
79
79
|
{
|
|
80
80
|
return "texCoord";
|
|
81
81
|
},
|
|
82
|
+
getSpecificationRange: function ()
|
|
83
|
+
{
|
|
84
|
+
return ["3.1", "Infinity"];
|
|
85
|
+
},
|
|
82
86
|
initialize: function ()
|
|
83
87
|
{
|
|
84
88
|
X3DSingleTextureCoordinateNode .prototype .initialize .call (this);
|
|
@@ -86,6 +86,10 @@ TextureTransform3D .prototype = Object .assign (Object .create (X3DSingleTexture
|
|
|
86
86
|
{
|
|
87
87
|
return "textureTransform";
|
|
88
88
|
},
|
|
89
|
+
getSpecificationRange: function ()
|
|
90
|
+
{
|
|
91
|
+
return ["3.1", "Infinity"];
|
|
92
|
+
},
|
|
89
93
|
initialize: function ()
|
|
90
94
|
{
|
|
91
95
|
X3DSingleTextureTransformNode .prototype .initialize .call (this);
|
|
@@ -78,6 +78,10 @@ TextureTransformMatrix3D .prototype = Object .assign (Object .create (X3DSingleT
|
|
|
78
78
|
{
|
|
79
79
|
return "textureTransform";
|
|
80
80
|
},
|
|
81
|
+
getSpecificationRange: function ()
|
|
82
|
+
{
|
|
83
|
+
return ["3.1", "Infinity"];
|
|
84
|
+
},
|
|
81
85
|
initialize: function ()
|
|
82
86
|
{
|
|
83
87
|
X3DSingleTextureTransformNode .prototype .initialize .call (this);
|
|
@@ -103,6 +103,10 @@ TimeSensor .prototype = Object .assign (Object .create (X3DSensorNode .prototype
|
|
|
103
103
|
{
|
|
104
104
|
return "children";
|
|
105
105
|
},
|
|
106
|
+
getSpecificationRange: function ()
|
|
107
|
+
{
|
|
108
|
+
return ["2.0", "Infinity"];
|
|
109
|
+
},
|
|
106
110
|
initialize: function ()
|
|
107
111
|
{
|
|
108
112
|
X3DSensorNode .prototype .initialize .call (this);
|
|
@@ -144,7 +148,7 @@ TimeSensor .prototype = Object .assign (Object .create (X3DSensorNode .prototype
|
|
|
144
148
|
{
|
|
145
149
|
this .setRange (this ._range [0], this ._range [1], this ._range [2]);
|
|
146
150
|
|
|
147
|
-
if (this .
|
|
151
|
+
if (this .getLive () .getValue ())
|
|
148
152
|
{
|
|
149
153
|
this ._fraction_changed = this .fraction;
|
|
150
154
|
this ._time = this .getBrowser () .getCurrentTime ();
|
|
@@ -75,7 +75,7 @@ X3DTimeDependentNode .prototype = Object .assign (Object .create (X3DChildNode .
|
|
|
75
75
|
constructor: X3DTimeDependentNode,
|
|
76
76
|
initialize: function ()
|
|
77
77
|
{
|
|
78
|
-
this .
|
|
78
|
+
this .getLive () .addInterest ("set_live__", this);
|
|
79
79
|
this ._isEvenLive .addInterest ("set_live__", this);
|
|
80
80
|
|
|
81
81
|
this ._initialized .addInterest ("set_loop__", this);
|
|
@@ -101,7 +101,7 @@ X3DTimeDependentNode .prototype = Object .assign (Object .create (X3DChildNode .
|
|
|
101
101
|
{
|
|
102
102
|
/// Determines the live state of this node.
|
|
103
103
|
|
|
104
|
-
return this .
|
|
104
|
+
return this .isLive () && (this .getExecutionContext () .getLive () .getValue () || this ._isEvenLive .getValue ());
|
|
105
105
|
},
|
|
106
106
|
getElapsedTime: function ()
|
|
107
107
|
{
|
|
@@ -115,7 +115,7 @@ X3DTimeDependentNode .prototype = Object .assign (Object .create (X3DChildNode .
|
|
|
115
115
|
},
|
|
116
116
|
set_live__: function ()
|
|
117
117
|
{
|
|
118
|
-
if (this .
|
|
118
|
+
if (this .getLive () .getValue () || this ._isEvenLive .getValue ())
|
|
119
119
|
{
|
|
120
120
|
if (this .disabled)
|
|
121
121
|
{
|
|
@@ -241,7 +241,7 @@ X3DTimeDependentNode .prototype = Object .assign (Object .create (X3DChildNode .
|
|
|
241
241
|
|
|
242
242
|
this .set_start ();
|
|
243
243
|
|
|
244
|
-
if (this .
|
|
244
|
+
if (this .getLive () .getValue ())
|
|
245
245
|
{
|
|
246
246
|
this .getBrowser () .timeEvents () .addInterest ("set_time" ,this);
|
|
247
247
|
}
|
|
@@ -261,7 +261,7 @@ X3DTimeDependentNode .prototype = Object .assign (Object .create (X3DChildNode .
|
|
|
261
261
|
if (this .pauseTimeValue !== this .getBrowser () .getCurrentTime ())
|
|
262
262
|
this .pauseTimeValue = this .getBrowser () .getCurrentTime ();
|
|
263
263
|
|
|
264
|
-
if (this .
|
|
264
|
+
if (this .getLive () .getValue ())
|
|
265
265
|
this .real_pause ();
|
|
266
266
|
}
|
|
267
267
|
},
|
|
@@ -282,7 +282,7 @@ X3DTimeDependentNode .prototype = Object .assign (Object .create (X3DChildNode .
|
|
|
282
282
|
if (this .resumeTimeValue !== this .getBrowser () .getCurrentTime ())
|
|
283
283
|
this .resumeTimeValue = this .getBrowser () .getCurrentTime ();
|
|
284
284
|
|
|
285
|
-
if (this .
|
|
285
|
+
if (this .getLive () .getValue ())
|
|
286
286
|
this .real_resume ();
|
|
287
287
|
}
|
|
288
288
|
},
|
|
@@ -87,6 +87,10 @@ BlendedVolumeStyle .prototype = Object .assign (Object .create (X3DComposableVol
|
|
|
87
87
|
{
|
|
88
88
|
return "renderStyle";
|
|
89
89
|
},
|
|
90
|
+
getSpecificationRange: function ()
|
|
91
|
+
{
|
|
92
|
+
return ["3.3", "Infinity"];
|
|
93
|
+
},
|
|
90
94
|
initialize: function ()
|
|
91
95
|
{
|
|
92
96
|
X3DComposableVolumeRenderStyleNode .prototype .initialize .call (this);
|
|
@@ -80,6 +80,10 @@ BoundaryEnhancementVolumeStyle .prototype = Object .assign (Object .create (X3DC
|
|
|
80
80
|
{
|
|
81
81
|
return "renderStyle";
|
|
82
82
|
},
|
|
83
|
+
getSpecificationRange: function ()
|
|
84
|
+
{
|
|
85
|
+
return ["3.3", "Infinity"];
|
|
86
|
+
},
|
|
83
87
|
addShaderFields: function (shaderNode)
|
|
84
88
|
{
|
|
85
89
|
if (! this ._enabled .getValue ())
|
|
@@ -82,6 +82,10 @@ CartoonVolumeStyle .prototype = Object .assign (Object .create (X3DComposableVol
|
|
|
82
82
|
{
|
|
83
83
|
return "renderStyle";
|
|
84
84
|
},
|
|
85
|
+
getSpecificationRange: function ()
|
|
86
|
+
{
|
|
87
|
+
return ["3.3", "Infinity"];
|
|
88
|
+
},
|
|
85
89
|
initialize: function ()
|
|
86
90
|
{
|
|
87
91
|
X3DComposableVolumeRenderStyleNode .prototype .initialize .call (this);
|
|
@@ -81,6 +81,10 @@ ComposedVolumeStyle .prototype = Object .assign (Object .create (X3DComposableVo
|
|
|
81
81
|
{
|
|
82
82
|
return "renderStyle";
|
|
83
83
|
},
|
|
84
|
+
getSpecificationRange: function ()
|
|
85
|
+
{
|
|
86
|
+
return ["3.3", "Infinity"];
|
|
87
|
+
},
|
|
84
88
|
initialize: function ()
|
|
85
89
|
{
|
|
86
90
|
X3DComposableVolumeRenderStyleNode .prototype .initialize .call (this);
|
|
@@ -81,6 +81,10 @@ EdgeEnhancementVolumeStyle .prototype = Object .assign (Object .create (X3DCompo
|
|
|
81
81
|
{
|
|
82
82
|
return "renderStyle";
|
|
83
83
|
},
|
|
84
|
+
getSpecificationRange: function ()
|
|
85
|
+
{
|
|
86
|
+
return ["3.3", "Infinity"];
|
|
87
|
+
},
|
|
84
88
|
initialize: function ()
|
|
85
89
|
{
|
|
86
90
|
X3DComposableVolumeRenderStyleNode .prototype .initialize .call (this);
|
|
@@ -92,6 +92,10 @@ IsoSurfaceVolumeData .prototype = Object .assign (Object .create (X3DVolumeDataN
|
|
|
92
92
|
{
|
|
93
93
|
return "children";
|
|
94
94
|
},
|
|
95
|
+
getSpecificationRange: function ()
|
|
96
|
+
{
|
|
97
|
+
return ["3.3", "Infinity"];
|
|
98
|
+
},
|
|
95
99
|
initialize: function ()
|
|
96
100
|
{
|
|
97
101
|
X3DVolumeDataNode .prototype .initialize .call (this);
|
|
@@ -79,6 +79,10 @@ OpacityMapVolumeStyle .prototype = Object .assign (Object .create (X3DComposable
|
|
|
79
79
|
{
|
|
80
80
|
return "renderStyle";
|
|
81
81
|
},
|
|
82
|
+
getSpecificationRange: function ()
|
|
83
|
+
{
|
|
84
|
+
return ["3.3", "Infinity"];
|
|
85
|
+
},
|
|
82
86
|
initialize: function ()
|
|
83
87
|
{
|
|
84
88
|
X3DComposableVolumeRenderStyleNode .prototype .initialize .call (this);
|
|
@@ -79,6 +79,10 @@ ProjectionVolumeStyle .prototype = Object .assign (Object .create (X3DVolumeRend
|
|
|
79
79
|
{
|
|
80
80
|
return "renderStyle";
|
|
81
81
|
},
|
|
82
|
+
getSpecificationRange: function ()
|
|
83
|
+
{
|
|
84
|
+
return ["3.3", "Infinity"];
|
|
85
|
+
},
|
|
82
86
|
addShaderFields: function (shaderNode)
|
|
83
87
|
{
|
|
84
88
|
if (! this ._enabled .getValue ())
|
|
@@ -91,6 +91,10 @@ SegmentedVolumeData .prototype = Object .assign (Object .create (X3DVolumeDataNo
|
|
|
91
91
|
{
|
|
92
92
|
return "children";
|
|
93
93
|
},
|
|
94
|
+
getSpecificationRange: function ()
|
|
95
|
+
{
|
|
96
|
+
return ["3.3", "Infinity"];
|
|
97
|
+
},
|
|
94
98
|
initialize: function ()
|
|
95
99
|
{
|
|
96
100
|
X3DVolumeDataNode .prototype .initialize .call (this);
|
|
@@ -83,6 +83,10 @@ ShadedVolumeStyle .prototype = Object .assign (Object .create (X3DComposableVolu
|
|
|
83
83
|
{
|
|
84
84
|
return "renderStyle";
|
|
85
85
|
},
|
|
86
|
+
getSpecificationRange: function ()
|
|
87
|
+
{
|
|
88
|
+
return ["3.3", "Infinity"];
|
|
89
|
+
},
|
|
86
90
|
initialize: function ()
|
|
87
91
|
{
|
|
88
92
|
X3DComposableVolumeRenderStyleNode .prototype .initialize .call (this);
|
|
@@ -82,6 +82,10 @@ SilhouetteEnhancementVolumeStyle .prototype = Object .assign (Object .create (X3
|
|
|
82
82
|
{
|
|
83
83
|
return "renderStyle";
|
|
84
84
|
},
|
|
85
|
+
getSpecificationRange: function ()
|
|
86
|
+
{
|
|
87
|
+
return ["3.3", "Infinity"];
|
|
88
|
+
},
|
|
85
89
|
initialize: function ()
|
|
86
90
|
{
|
|
87
91
|
X3DComposableVolumeRenderStyleNode .prototype .initialize .call (this);
|
|
@@ -81,6 +81,10 @@ ToneMappedVolumeStyle .prototype = Object .assign (Object .create (X3DComposable
|
|
|
81
81
|
{
|
|
82
82
|
return "renderStyle";
|
|
83
83
|
},
|
|
84
|
+
getSpecificationRange: function ()
|
|
85
|
+
{
|
|
86
|
+
return ["3.3", "Infinity"];
|
|
87
|
+
},
|
|
84
88
|
initialize: function ()
|
|
85
89
|
{
|
|
86
90
|
X3DComposableVolumeRenderStyleNode .prototype .initialize .call (this);
|
|
@@ -88,6 +88,10 @@ VolumeData .prototype = Object .assign (Object .create (X3DVolumeDataNode .proto
|
|
|
88
88
|
{
|
|
89
89
|
return "children";
|
|
90
90
|
},
|
|
91
|
+
getSpecificationRange: function ()
|
|
92
|
+
{
|
|
93
|
+
return ["3.3", "Infinity"];
|
|
94
|
+
},
|
|
91
95
|
initialize: function ()
|
|
92
96
|
{
|
|
93
97
|
X3DVolumeDataNode .prototype .initialize .call (this);
|
|
@@ -60,14 +60,14 @@ function X3DVolumeDataNode (executionContext)
|
|
|
60
60
|
|
|
61
61
|
this .addType (X3DConstants .X3DVolumeDataNode);
|
|
62
62
|
|
|
63
|
-
this .proximitySensorNode = executionContext .createNode ("ProximitySensor", false);
|
|
64
|
-
this .transformNode = executionContext .createNode ("Transform", false);
|
|
65
|
-
this .shapeNode = executionContext .createNode ("Shape", false);
|
|
66
|
-
this .appearanceNode = executionContext .createNode ("Appearance", false);
|
|
67
|
-
this .textureTransformNode = executionContext .createNode ("TextureTransform3D", false);
|
|
68
|
-
this .geometryNode = executionContext .createNode ("QuadSet", false);
|
|
69
|
-
this .textureCoordinateNode = executionContext .createNode ("TextureCoordinate3D", false);
|
|
70
|
-
this .coordinateNode = executionContext .createNode ("Coordinate", false);
|
|
63
|
+
this .proximitySensorNode = executionContext .createNode ("ProximitySensor", { setup: false, warn: false });
|
|
64
|
+
this .transformNode = executionContext .createNode ("Transform", { setup: false, warn: false });
|
|
65
|
+
this .shapeNode = executionContext .createNode ("Shape", { setup: false, warn: false });
|
|
66
|
+
this .appearanceNode = executionContext .createNode ("Appearance", { setup: false, warn: false });
|
|
67
|
+
this .textureTransformNode = executionContext .createNode ("TextureTransform3D", { setup: false, warn: false });
|
|
68
|
+
this .geometryNode = executionContext .createNode ("QuadSet", { setup: false, warn: false });
|
|
69
|
+
this .textureCoordinateNode = executionContext .createNode ("TextureCoordinate3D", { setup: false, warn: false });
|
|
70
|
+
this .coordinateNode = executionContext .createNode ("Coordinate", { setup: false, warn: false });
|
|
71
71
|
this .volumeMaterialNode = new VolumeMaterial (executionContext, this);
|
|
72
72
|
this .textureNormalMatrixArray = new Float32Array (9);
|
|
73
73
|
|
|
@@ -87,6 +87,10 @@ BlendMode .prototype = Object .assign (Object .create (X3DAppearanceChildNode .p
|
|
|
87
87
|
{
|
|
88
88
|
return "blendMode";
|
|
89
89
|
},
|
|
90
|
+
getSpecificationRange: function ()
|
|
91
|
+
{
|
|
92
|
+
return ["3.3", "Infinity"];
|
|
93
|
+
},
|
|
90
94
|
initialize: function ()
|
|
91
95
|
{
|
|
92
96
|
X3DAppearanceChildNode .prototype .initialize .call (this);
|
|
@@ -71,25 +71,24 @@ BindableList .prototype = Object .assign (Object .create (X3DBaseNode .prototype
|
|
|
71
71
|
},
|
|
72
72
|
getBound: function (name)
|
|
73
73
|
{
|
|
74
|
-
|
|
74
|
+
const length = this .array .length;
|
|
75
|
+
|
|
76
|
+
if (length === 1)
|
|
75
77
|
return this .array [0]; // Return default viewpoint.
|
|
76
78
|
|
|
77
|
-
const
|
|
78
|
-
enableInlineBindables = false,
|
|
79
|
-
mainScene = this .getMainScene ();
|
|
79
|
+
const enableInlineBindables = false;
|
|
80
80
|
|
|
81
81
|
if (name)
|
|
82
82
|
{
|
|
83
83
|
// Return first viewpoint with @name.
|
|
84
84
|
|
|
85
|
-
for (let i = 1
|
|
85
|
+
for (let i = 1; i < length; ++ i)
|
|
86
86
|
{
|
|
87
87
|
const
|
|
88
|
-
node
|
|
89
|
-
|
|
90
|
-
scene = outerNode instanceof X3DPrototypeInstance ? outerNode .getScene () : node .getScene ();
|
|
88
|
+
node = this .array [i],
|
|
89
|
+
scene = node .getExecutionContext () .getOuterNode () ?.getScene () ?? node .getScene ();
|
|
91
90
|
|
|
92
|
-
if (!enableInlineBindables && scene
|
|
91
|
+
if (!enableInlineBindables && !scene .isMainScene ())
|
|
93
92
|
continue;
|
|
94
93
|
|
|
95
94
|
if (node .getName () == name)
|
|
@@ -99,14 +98,13 @@ BindableList .prototype = Object .assign (Object .create (X3DBaseNode .prototype
|
|
|
99
98
|
|
|
100
99
|
// Return first bound viewpoint in scene.
|
|
101
100
|
|
|
102
|
-
for (let i = 1
|
|
101
|
+
for (let i = 1; i < length; ++ i)
|
|
103
102
|
{
|
|
104
103
|
const
|
|
105
|
-
node
|
|
106
|
-
|
|
107
|
-
scene = outerNode instanceof X3DPrototypeInstance ? outerNode .getScene () : node .getScene ();
|
|
104
|
+
node = this .array [i],
|
|
105
|
+
scene = node .getExecutionContext () .getOuterNode () ?.getScene () ?? node .getScene ();
|
|
108
106
|
|
|
109
|
-
if (!enableInlineBindables && scene
|
|
107
|
+
if (!enableInlineBindables && !scene .isMainScene ())
|
|
110
108
|
continue;
|
|
111
109
|
|
|
112
110
|
if (node ._isBound .getValue ())
|
|
@@ -115,14 +113,13 @@ BindableList .prototype = Object .assign (Object .create (X3DBaseNode .prototype
|
|
|
115
113
|
|
|
116
114
|
// Return first viewpoint in scene.
|
|
117
115
|
|
|
118
|
-
for (let i = 1
|
|
116
|
+
for (let i = 1; i < length; ++ i)
|
|
119
117
|
{
|
|
120
118
|
const
|
|
121
|
-
node
|
|
122
|
-
|
|
123
|
-
scene = outerNode instanceof X3DPrototypeInstance ? outerNode .getScene () : node .getScene ();
|
|
119
|
+
node = this .array [i],
|
|
120
|
+
scene = node .getExecutionContext () .getOuterNode () ?.getScene () ?? node .getScene ();
|
|
124
121
|
|
|
125
|
-
if (!enableInlineBindables && scene
|
|
122
|
+
if (!enableInlineBindables && !scene .isMainScene ())
|
|
126
123
|
continue;
|
|
127
124
|
|
|
128
125
|
return node;
|
|
@@ -72,7 +72,7 @@ const
|
|
|
72
72
|
_routes = Symbol (),
|
|
73
73
|
_outerNode = Symbol ();
|
|
74
74
|
|
|
75
|
-
function X3DExecutionContext (executionContext)
|
|
75
|
+
function X3DExecutionContext (executionContext, outerNode = null)
|
|
76
76
|
{
|
|
77
77
|
X3DBaseNode .call (this, executionContext);
|
|
78
78
|
|
|
@@ -90,6 +90,7 @@ function X3DExecutionContext (executionContext)
|
|
|
90
90
|
this ._rootNodes .setAccessType (X3DConstants .initializeOnly);
|
|
91
91
|
this ._rootNodes .addCloneCount (1);
|
|
92
92
|
|
|
93
|
+
this [_outerNode] = outerNode;
|
|
93
94
|
this [_namedNodes] = new NamedNodesArray ();
|
|
94
95
|
this [_importedNodes] = new ImportedNodesArray ();
|
|
95
96
|
this [_protos] = new ProtoDeclarationArray ();
|
|
@@ -119,16 +120,11 @@ X3DExecutionContext .prototype = Object .assign (Object .create (X3DBaseNode .pr
|
|
|
119
120
|
{
|
|
120
121
|
return "X3DExecutionContext";
|
|
121
122
|
},
|
|
122
|
-
[_outerNode]: null,
|
|
123
123
|
getOuterNode: function ()
|
|
124
124
|
{
|
|
125
125
|
// Can be either of type X3DProtoDeclaration or X3DPrototypeInstance, or null.
|
|
126
126
|
return this [_outerNode];
|
|
127
127
|
},
|
|
128
|
-
setOuterNode: function (value)
|
|
129
|
-
{
|
|
130
|
-
this [_outerNode] = value;
|
|
131
|
-
},
|
|
132
128
|
getSpecificationVersion: function ()
|
|
133
129
|
{
|
|
134
130
|
return this .getExecutionContext () .getSpecificationVersion ();
|
|
@@ -149,6 +145,10 @@ X3DExecutionContext .prototype = Object .assign (Object .create (X3DBaseNode .pr
|
|
|
149
145
|
{
|
|
150
146
|
return this .getExecutionContext () .getComponents ();
|
|
151
147
|
},
|
|
148
|
+
hasComponent: function (componentName)
|
|
149
|
+
{
|
|
150
|
+
return this .getExecutionContext () .hasComponent (componentName);
|
|
151
|
+
},
|
|
152
152
|
fromUnit: function (category, value)
|
|
153
153
|
{
|
|
154
154
|
return this .getExecutionContext () .fromUnit (category, value);
|
|
@@ -161,7 +161,7 @@ X3DExecutionContext .prototype = Object .assign (Object .create (X3DBaseNode .pr
|
|
|
161
161
|
{
|
|
162
162
|
return this .getExecutionContext () .getUnits ();
|
|
163
163
|
},
|
|
164
|
-
createNode: function (typeName, setup = true)
|
|
164
|
+
createNode: function (typeName, { setup = true, warn = true } = { })
|
|
165
165
|
{
|
|
166
166
|
typeName = String (typeName);
|
|
167
167
|
|
|
@@ -172,6 +172,17 @@ X3DExecutionContext .prototype = Object .assign (Object .create (X3DBaseNode .pr
|
|
|
172
172
|
if (! Type)
|
|
173
173
|
return null;
|
|
174
174
|
|
|
175
|
+
const specificationRange = Type .prototype .getSpecificationRange ();
|
|
176
|
+
|
|
177
|
+
if (this .getSpecificationVersion () < specificationRange [0])
|
|
178
|
+
return null;
|
|
179
|
+
|
|
180
|
+
if (this .getSpecificationVersion () > specificationRange [1])
|
|
181
|
+
return null;
|
|
182
|
+
|
|
183
|
+
if (warn && !this .hasComponent (Type .prototype .getComponentName ()))
|
|
184
|
+
console .warn (`Node type '${typeName}' does not match component/profile statements in '${this .getWorldURL ()}'.`);
|
|
185
|
+
|
|
175
186
|
return new Type (this);
|
|
176
187
|
}
|
|
177
188
|
else
|
|
@@ -179,7 +190,18 @@ X3DExecutionContext .prototype = Object .assign (Object .create (X3DBaseNode .pr
|
|
|
179
190
|
const Type = this .getBrowser () .getSupportedNode (typeName);
|
|
180
191
|
|
|
181
192
|
if (! Type)
|
|
182
|
-
throw new Error (
|
|
193
|
+
throw new Error (`Unknown node type '${typeName}'.`);
|
|
194
|
+
|
|
195
|
+
const specificationRange = Type .prototype .getSpecificationRange ();
|
|
196
|
+
|
|
197
|
+
if (this .getSpecificationVersion () < specificationRange [0])
|
|
198
|
+
throw new Error (`Node type '${typeName}' does not match specification version in '${this .getWorldURL ()}.`);
|
|
199
|
+
|
|
200
|
+
if (this .getSpecificationVersion () > specificationRange [1])
|
|
201
|
+
throw new Error (`Node type '${typeName}' does not match specification version in '${this .getWorldURL ()}.`);
|
|
202
|
+
|
|
203
|
+
if (warn && !this .hasComponent (Type .prototype .getComponentName ()))
|
|
204
|
+
console .warn (`Node type '${typeName}' does not match component/profile statements in '${this .getWorldURL ()}'.`);
|
|
183
205
|
|
|
184
206
|
const baseNode = new Type (this);
|
|
185
207
|
|
|
@@ -188,7 +210,7 @@ X3DExecutionContext .prototype = Object .assign (Object .create (X3DBaseNode .pr
|
|
|
188
210
|
return SFNodeCache .get (baseNode);
|
|
189
211
|
}
|
|
190
212
|
},
|
|
191
|
-
createProto: function (name, setup = true)
|
|
213
|
+
createProto: function (name, { setup = true } = { })
|
|
192
214
|
{
|
|
193
215
|
name = String (name);
|
|
194
216
|
|
|
@@ -199,12 +221,12 @@ X3DExecutionContext .prototype = Object .assign (Object .create (X3DBaseNode .pr
|
|
|
199
221
|
const proto = executionContext .protos .get (name);
|
|
200
222
|
|
|
201
223
|
if (proto)
|
|
202
|
-
return proto .createInstance (this, setup);
|
|
224
|
+
return proto .createInstance (this, { setup: setup });
|
|
203
225
|
|
|
204
226
|
const externproto = executionContext .externprotos .get (name);
|
|
205
227
|
|
|
206
228
|
if (externproto)
|
|
207
|
-
return externproto .createInstance (this, setup);
|
|
229
|
+
return externproto .createInstance (this, { setup: setup });
|
|
208
230
|
|
|
209
231
|
if (executionContext .isScene ())
|
|
210
232
|
break;
|
|
@@ -169,6 +169,10 @@ X3DScene .prototype = Object .assign (Object .create (X3DExecutionContext .proto
|
|
|
169
169
|
{
|
|
170
170
|
return this [_components];
|
|
171
171
|
},
|
|
172
|
+
hasComponent: function (componentName)
|
|
173
|
+
{
|
|
174
|
+
return (this [_profile] ?.components .has (componentName) ?? true) || this [_components] .has (componentName);
|
|
175
|
+
},
|
|
172
176
|
updateUnit: function (category, name, conversionFactor)
|
|
173
177
|
{
|
|
174
178
|
// Private function.
|