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
|
@@ -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);
|
|
@@ -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);
|
|
@@ -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);
|
|
@@ -172,6 +172,14 @@ 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
|
+
|
|
175
183
|
return new Type (this);
|
|
176
184
|
}
|
|
177
185
|
else
|
|
@@ -181,6 +189,14 @@ X3DExecutionContext .prototype = Object .assign (Object .create (X3DBaseNode .pr
|
|
|
181
189
|
if (! Type)
|
|
182
190
|
throw new Error ("Unknown node type '" + typeName + "'.");
|
|
183
191
|
|
|
192
|
+
const specificationRange = Type .prototype .getSpecificationRange ();
|
|
193
|
+
|
|
194
|
+
if (this .getSpecificationVersion () < specificationRange [0])
|
|
195
|
+
throw new Error ("Node type '" + typeName + "' does not match specification version.");
|
|
196
|
+
|
|
197
|
+
if (this .getSpecificationVersion () > specificationRange [1])
|
|
198
|
+
throw new Error ("Node type '" + typeName + "' does not match specification version.");
|
|
199
|
+
|
|
184
200
|
const baseNode = new Type (this);
|
|
185
201
|
|
|
186
202
|
baseNode .setup ();
|
|
@@ -361,6 +361,14 @@ SFNode .prototype = Object .assign (Object .create (X3DField .prototype),
|
|
|
361
361
|
if (value)
|
|
362
362
|
value .removeCloneCount (count);
|
|
363
363
|
},
|
|
364
|
+
getNodeUserData: function (key)
|
|
365
|
+
{
|
|
366
|
+
return this [_target] .getValue () .getUserData (key);
|
|
367
|
+
},
|
|
368
|
+
setNodeUserData: function (key, value)
|
|
369
|
+
{
|
|
370
|
+
this [_target] .getValue () .setUserData (key, value);
|
|
371
|
+
},
|
|
364
372
|
valueOf: function ()
|
|
365
373
|
{
|
|
366
374
|
const
|
|
@@ -283,7 +283,7 @@ FileLoader .prototype = Object .assign (Object .create (X3DObject .prototype),
|
|
|
283
283
|
const
|
|
284
284
|
options = { cache: this .node .getCache () ? "default" : "reload" },
|
|
285
285
|
response = this .handleErrors (await fetch (this .URL .href, options)),
|
|
286
|
-
contentType = response .headers .get ("content-type")
|
|
286
|
+
contentType = response .headers .get ("content-type")?.replace (/;.*$/, "");
|
|
287
287
|
|
|
288
288
|
if (this .foreign)
|
|
289
289
|
{
|
|
@@ -704,8 +704,7 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
704
704
|
scene .addExportedNode (scene .getUniqueExportName (name), textureNode);
|
|
705
705
|
}
|
|
706
706
|
|
|
707
|
-
textureNode ._url
|
|
708
|
-
textureNode ._flipVertically = true;
|
|
707
|
+
textureNode ._url = [image .uri];
|
|
709
708
|
|
|
710
709
|
const sampler = this .samplers [texture .sampler];
|
|
711
710
|
|
|
@@ -767,7 +766,10 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
767
766
|
{
|
|
768
767
|
const textureTransformNode = scene .createNode ("TextureTransform", false);
|
|
769
768
|
|
|
770
|
-
textureTransformNode ._mapping
|
|
769
|
+
textureTransformNode ._mapping = mapping;
|
|
770
|
+
textureTransformNode ._translation .y = -1;
|
|
771
|
+
textureTransformNode ._scale .y = -1;
|
|
772
|
+
|
|
771
773
|
textureTransformNode .setup ();
|
|
772
774
|
|
|
773
775
|
this .textureTransformNodes .push (textureTransformNode);
|
|
@@ -975,7 +977,11 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
975
977
|
if (!(KHR_materials_emissive_strength instanceof Object))
|
|
976
978
|
return;
|
|
977
979
|
|
|
978
|
-
|
|
980
|
+
const emissiveStrength = this .numberValue (KHR_materials_emissive_strength .emissiveStrength, 1);
|
|
981
|
+
|
|
982
|
+
materialNode ._emissiveColor .r *= emissiveStrength;
|
|
983
|
+
materialNode ._emissiveColor .g *= emissiveStrength;
|
|
984
|
+
materialNode ._emissiveColor .b *= emissiveStrength;
|
|
979
985
|
},
|
|
980
986
|
textureTransformObject: function (KHR_texture_transform, texCoord)
|
|
981
987
|
{
|
|
@@ -995,6 +1001,9 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
995
1001
|
scale = new Vector2 (1, 1),
|
|
996
1002
|
matrix = new Matrix4 ();
|
|
997
1003
|
|
|
1004
|
+
matrix .translate (new Vector3 (0, 1, 0));
|
|
1005
|
+
matrix .scale (new Vector3 (1, -1, 1));
|
|
1006
|
+
|
|
998
1007
|
if (this .vectorValue (KHR_texture_transform .offset, translation))
|
|
999
1008
|
matrix .translate (new Vector3 (... translation, 0));
|
|
1000
1009
|
|
|
@@ -1755,7 +1764,19 @@ GLTF2Parser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
1755
1764
|
{
|
|
1756
1765
|
case 0:
|
|
1757
1766
|
{
|
|
1758
|
-
|
|
1767
|
+
if (this .textureTransformNode)
|
|
1768
|
+
return this .textureTransformNode;
|
|
1769
|
+
|
|
1770
|
+
const
|
|
1771
|
+
scene = this .getExecutionContext (),
|
|
1772
|
+
textureTransformNode = scene .createNode ("TextureTransform", false);
|
|
1773
|
+
|
|
1774
|
+
textureTransformNode ._translation .y = -1;
|
|
1775
|
+
textureTransformNode ._scale .y = -1;
|
|
1776
|
+
|
|
1777
|
+
textureTransformNode .setup ();
|
|
1778
|
+
|
|
1779
|
+
return this .textureTransformNode = textureTransformNode;
|
|
1759
1780
|
}
|
|
1760
1781
|
case 1:
|
|
1761
1782
|
{
|
|
@@ -1233,14 +1233,14 @@ VRMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
1233
1233
|
{
|
|
1234
1234
|
var
|
|
1235
1235
|
nodeTypeId = this .result [1],
|
|
1236
|
-
baseNode = this .getExecutionContext () .
|
|
1236
|
+
baseNode = this .getExecutionContext () .createNode (nodeTypeId, false);
|
|
1237
1237
|
|
|
1238
1238
|
if (! baseNode)
|
|
1239
1239
|
{
|
|
1240
|
-
baseNode = this .getExecutionContext () .
|
|
1240
|
+
baseNode = this .getExecutionContext () .createProto (nodeTypeId, false);
|
|
1241
1241
|
|
|
1242
1242
|
if (! baseNode)
|
|
1243
|
-
throw new Error ("Unknown node type or proto '" + nodeTypeId + "', you probably have insufficient component/profile statements.");
|
|
1243
|
+
throw new Error ("Unknown node type or proto '" + nodeTypeId + "', you probably have insufficient component/profile statements, and/or an inappropriate specification version.");
|
|
1244
1244
|
}
|
|
1245
1245
|
|
|
1246
1246
|
if (nodeNameId .length)
|
|
@@ -780,13 +780,13 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
780
780
|
if (this .useAttribute (xmlElement))
|
|
781
781
|
return;
|
|
782
782
|
|
|
783
|
-
var node = this .getExecutionContext () .
|
|
783
|
+
var node = this .getExecutionContext () .createNode (this .nodeNameToCamelCase (xmlElement .nodeName), false);
|
|
784
784
|
|
|
785
785
|
if (! node)
|
|
786
|
-
node = this .getExecutionContext () .
|
|
786
|
+
node = this .getExecutionContext () .createProto (this .protoNameToCamelCase (xmlElement .nodeName), false);
|
|
787
787
|
|
|
788
788
|
if (! node)
|
|
789
|
-
throw new Error ("Unknown node type '" + xmlElement .nodeName + "', you probably have insufficient component/profile statements.");
|
|
789
|
+
throw new Error ("Unknown node type '" + xmlElement .nodeName + "', you probably have insufficient component/profile statements and/or an inappropriate specification version.");
|
|
790
790
|
|
|
791
791
|
///DOMIntegration: attach node to DOM xmlElement for access from DOM.
|
|
792
792
|
$.data (xmlElement, "node", node);
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
import X3DBrowser from "./Browser/X3DBrowser.js";
|
|
49
49
|
import URLs from "./Browser/Networking/URLs.js";
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class X3DCanvasElement extends HTMLElement
|
|
52
52
|
{
|
|
53
53
|
static define ()
|
|
54
54
|
{
|
|
55
|
-
customElements .define ("x3d-canvas",
|
|
55
|
+
customElements .define ("x3d-canvas", X3DCanvasElement);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
constructor ()
|
|
@@ -76,7 +76,10 @@ class X3DCanvas extends HTMLElement
|
|
|
76
76
|
|
|
77
77
|
shadow .appendChild (link);
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
Object .defineProperty (this, "browser",
|
|
80
|
+
{
|
|
81
|
+
value: new X3DBrowser (this),
|
|
82
|
+
})
|
|
80
83
|
}
|
|
81
84
|
|
|
82
85
|
connectedCallback ()
|
|
@@ -99,6 +102,7 @@ class X3DCanvas extends HTMLElement
|
|
|
99
102
|
"splashScreen",
|
|
100
103
|
"splashscreen",
|
|
101
104
|
"src",
|
|
105
|
+
"timings",
|
|
102
106
|
"url",
|
|
103
107
|
];
|
|
104
108
|
}
|
|
@@ -107,9 +111,24 @@ class X3DCanvas extends HTMLElement
|
|
|
107
111
|
{
|
|
108
112
|
this .browser .attributeChangedCallback (name, oldValue, newValue);
|
|
109
113
|
}
|
|
114
|
+
|
|
115
|
+
captureStream (... args)
|
|
116
|
+
{
|
|
117
|
+
return this .browser .getCanvas () [0] .captureStream (... args);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
toBlob (... args)
|
|
121
|
+
{
|
|
122
|
+
return this .browser .getCanvas () [0] .toBlob (... args);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
toDataURL (... args)
|
|
126
|
+
{
|
|
127
|
+
return this .browser .getCanvas () [0] .toDataURL (... args);
|
|
128
|
+
}
|
|
110
129
|
}
|
|
111
130
|
|
|
112
131
|
// IE fix.
|
|
113
132
|
document .createElement ("X3DCanvas");
|
|
114
133
|
|
|
115
|
-
export default
|
|
134
|
+
export default X3DCanvasElement;
|
package/src/x_ite.js
CHANGED
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
import X3D
|
|
49
|
-
import
|
|
50
|
-
import shim
|
|
48
|
+
import X3D from "./x_ite/X3D.js";
|
|
49
|
+
import X3DCanvasElement from "./x_ite/X3DCanvasElement.js";
|
|
50
|
+
import shim from "./shim.js";
|
|
51
51
|
|
|
52
52
|
// Assign X3D to global namespace.
|
|
53
53
|
|
|
54
54
|
window [Symbol .for ("X_ITE.X3D")] = X3D;
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
X3DCanvasElement .define ();
|
|
57
57
|
|
|
58
58
|
X3D ();
|
|
59
59
|
|