x_ite 8.4.3 → 8.5.3
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/.vscode/settings.json +5 -1
- package/Makefile +0 -3
- package/build/bin/components.js +173 -0
- package/build/bin/tags.pl +28 -0
- package/build/bin/tests.pl +80 -2
- package/build/bin/version.pl +12 -7
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +13 -13
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +28 -29
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +19 -19
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +33 -33
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +63 -42
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +37 -29
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +29 -31
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +23 -23
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +19 -19
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +24 -19
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +30 -30
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +172 -594
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +31 -47
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +367 -346
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +19 -19
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +12174 -3553
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +5 -136
- package/docs/_data/nav/components-CADGeometry.yml +14 -0
- package/docs/_data/nav/components-Core.yml +16 -0
- package/docs/_data/nav/components-CubeMapTexturing.yml +8 -0
- package/docs/_data/nav/components-DIS.yml +14 -0
- package/docs/_data/nav/components-EnvironmentalEffects.yml +12 -0
- package/docs/_data/nav/components-EnvironmentalSensor.yml +8 -0
- package/docs/_data/nav/components-EventUtilities.yml +16 -0
- package/docs/_data/nav/components-Followers.yml +30 -0
- package/docs/_data/nav/components-Geometry2D.yml +18 -0
- package/docs/_data/nav/components-Geometry3D.yml +16 -0
- package/docs/_data/nav/components-Geospatial.yml +24 -0
- package/docs/_data/nav/components-Grouping.yml +10 -0
- package/docs/_data/nav/components-HAnim.yml +14 -0
- package/docs/_data/nav/components-Interpolation.yml +28 -0
- package/docs/_data/nav/components-KeyDeviceSensor.yml +6 -0
- package/docs/_data/nav/components-Layering.yml +8 -0
- package/docs/_data/nav/components-Layout.yml +12 -0
- package/docs/_data/nav/components-Lighting.yml +10 -0
- package/docs/_data/nav/components-NURBS.yml +30 -0
- package/docs/_data/nav/components-Navigation.yml +16 -0
- package/docs/_data/nav/components-Networking.yml +8 -0
- package/docs/_data/nav/components-ParticleSystems.yml +22 -0
- package/docs/_data/nav/components-Picking.yml +12 -0
- package/docs/_data/nav/components-PointingDeviceSensor.yml +10 -0
- package/docs/_data/nav/components-Rendering.yml +30 -0
- package/docs/_data/nav/components-RigidBodyPhysics.yml +30 -0
- package/docs/_data/nav/components-Scripting.yml +4 -0
- package/docs/_data/nav/components-Shaders.yml +18 -0
- package/docs/_data/nav/components-Shape.yml +22 -0
- package/docs/_data/nav/components-Sound.yml +44 -0
- package/docs/_data/nav/components-Text.yml +6 -0
- package/docs/_data/nav/components-TextureProjector.yml +6 -0
- package/docs/_data/nav/components-Texturing.yml +22 -0
- package/docs/_data/nav/components-Texturing3D.yml +18 -0
- package/docs/_data/nav/components-Time.yml +4 -0
- package/docs/_data/nav/components-VolumeRendering.yml +28 -0
- package/docs/_data/nav/components-X_ITE.yml +4 -0
- package/docs/_data/nav/main.yml +26 -0
- package/docs/_data/nav/reference.yml +18 -0
- package/docs/_data/nav/tutorials-animation-sensors-and-geometry.yml +18 -0
- package/docs/_data/nav/tutorials-basic.yml +6 -0
- package/docs/_data/nav/tutorials-optimize-your-scene.yml +6 -0
- package/docs/_data/nav/tutorials-scripts-and-prototypes.yml +12 -0
- package/docs/_data/nav/tutorials-shapes-geometry-and-appearance.yml +16 -0
- package/docs/_data/nav/tutorials-textures-lights-and-environment.yml +20 -0
- package/docs/_includes/nav.html +2 -2
- package/docs/_includes/scripts.html +2 -1
- package/docs/_posts/accessing-the-external-browser.md +1 -1
- package/docs/_posts/browser-support.md +1 -1
- package/docs/_posts/components/CADGeometry/CADAssembly.md +83 -0
- package/docs/_posts/components/CADGeometry/CADFace.md +70 -0
- package/docs/_posts/components/CADGeometry/CADLayer.md +84 -0
- package/docs/_posts/components/CADGeometry/CADPart.md +117 -0
- package/docs/_posts/components/CADGeometry/IndexedQuadSet.md +125 -0
- package/docs/_posts/components/CADGeometry/QuadSet.md +113 -0
- package/docs/_posts/components/Core/MetadataBoolean.md +90 -0
- package/docs/_posts/components/Core/MetadataDouble.md +67 -0
- package/docs/_posts/components/Core/MetadataFloat.md +67 -0
- package/docs/_posts/components/Core/MetadataInteger.md +66 -0
- package/docs/_posts/components/Core/MetadataSet.md +63 -0
- package/docs/_posts/components/Core/MetadataString.md +66 -0
- package/docs/_posts/components/Core/WorldInfo.md +54 -0
- package/docs/_posts/components/CubeMapTexturing/ComposedCubeMapTexture.md +76 -0
- package/docs/_posts/components/CubeMapTexturing/GeneratedCubeMapTexture.md +65 -0
- package/docs/_posts/components/CubeMapTexturing/ImageCubeMapTexture.md +66 -0
- package/docs/_posts/components/DIS/DISEntityManager.md +73 -0
- package/docs/_posts/components/DIS/DISEntityTypeMapping.md +88 -0
- package/docs/_posts/components/DIS/EspduTransform.md +416 -0
- package/docs/_posts/components/DIS/ReceiverPdu.md +168 -0
- package/docs/_posts/components/DIS/SignalPdu.md +168 -0
- package/docs/_posts/components/DIS/TransmitterPdu.md +232 -0
- package/docs/_posts/components/EnvironmentalEffects/Background.md +189 -0
- package/docs/_posts/components/EnvironmentalEffects/Fog.md +97 -0
- package/docs/_posts/components/EnvironmentalEffects/FogCoordinate.md +40 -0
- package/docs/_posts/components/EnvironmentalEffects/LocalFog.md +84 -0
- package/docs/_posts/components/EnvironmentalEffects/TextureBackground.md +142 -0
- package/docs/_posts/components/EnvironmentalSensor/ProximitySensor.md +90 -0
- package/docs/_posts/components/EnvironmentalSensor/TransformSensor.md +91 -0
- package/docs/_posts/components/EnvironmentalSensor/VisibilitySensor.md +73 -0
- package/docs/_posts/components/EventUtilities/BooleanFilter.md +62 -0
- package/docs/_posts/components/EventUtilities/BooleanSequencer.md +86 -0
- package/docs/_posts/components/EventUtilities/BooleanToggle.md +46 -0
- package/docs/_posts/components/EventUtilities/BooleanTrigger.md +47 -0
- package/docs/_posts/components/EventUtilities/IntegerSequencer.md +90 -0
- package/docs/_posts/components/EventUtilities/IntegerTrigger.md +51 -0
- package/docs/_posts/components/EventUtilities/TimeTrigger.md +47 -0
- package/docs/_posts/components/Followers/ColorChaser.md +77 -0
- package/docs/_posts/components/Followers/ColorDamper.md +85 -0
- package/docs/_posts/components/Followers/CoordinateChaser.md +76 -0
- package/docs/_posts/components/Followers/CoordinateDamper.md +80 -0
- package/docs/_posts/components/Followers/OrientationChaser.md +72 -0
- package/docs/_posts/components/Followers/OrientationDamper.md +80 -0
- package/docs/_posts/components/Followers/PositionChaser.md +72 -0
- package/docs/_posts/components/Followers/PositionChaser2D.md +72 -0
- package/docs/_posts/components/Followers/PositionDamper.md +80 -0
- package/docs/_posts/components/Followers/PositionDamper2D.md +80 -0
- package/docs/_posts/components/Followers/ScalarChaser.md +76 -0
- package/docs/_posts/components/Followers/ScalarDamper.md +80 -0
- package/docs/_posts/components/Followers/TexCoordChaser2D.md +72 -0
- package/docs/_posts/components/Followers/TexCoordDamper2D.md +80 -0
- package/docs/_posts/components/Geometry2D/Arc2D.md +71 -0
- package/docs/_posts/components/Geometry2D/ArcClose2D.md +91 -0
- package/docs/_posts/components/Geometry2D/Circle2D.md +55 -0
- package/docs/_posts/components/Geometry2D/Disk2D.md +75 -0
- package/docs/_posts/components/Geometry2D/Polyline2D.md +54 -0
- package/docs/_posts/components/Geometry2D/Polypoint2D.md +54 -0
- package/docs/_posts/components/Geometry2D/Rectangle2D.md +66 -0
- package/docs/_posts/components/Geometry2D/TriangleSet2D.md +66 -0
- package/docs/_posts/components/Geometry3D/Box.md +66 -0
- package/docs/_posts/components/Geometry3D/Cone.md +90 -0
- package/docs/_posts/components/Geometry3D/Cylinder.md +98 -0
- package/docs/_posts/components/Geometry3D/ElevationGrid.md +162 -0
- package/docs/_posts/components/Geometry3D/Extrusion.md +170 -0
- package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +208 -0
- package/docs/_posts/components/Geometry3D/Sphere.md +66 -0
- package/docs/_posts/components/Geospatial/GeoCoordinate.md +65 -0
- package/docs/_posts/components/Geospatial/GeoElevationGrid.md +180 -0
- package/docs/_posts/components/Geospatial/GeoLOD.md +128 -0
- package/docs/_posts/components/Geospatial/GeoLocation.md +93 -0
- package/docs/_posts/components/Geospatial/GeoMetadata.md +75 -0
- package/docs/_posts/components/Geospatial/GeoOrigin.md +69 -0
- package/docs/_posts/components/Geospatial/GeoPositionInterpolator.md +95 -0
- package/docs/_posts/components/Geospatial/GeoProximitySensor.md +109 -0
- package/docs/_posts/components/Geospatial/GeoTouchSensor.md +108 -0
- package/docs/_posts/components/Geospatial/GeoTransform.md +121 -0
- package/docs/_posts/components/Geospatial/GeoViewpoint.md +126 -0
- package/docs/_posts/components/Grouping/Group.md +75 -0
- package/docs/_posts/components/Grouping/StaticGroup.md +65 -0
- package/docs/_posts/components/Grouping/Switch.md +89 -0
- package/docs/_posts/components/Grouping/Transform.md +126 -0
- package/docs/_posts/components/HAnim/HAnimDisplacer.md +89 -0
- package/docs/_posts/components/HAnim/HAnimHumanoid.md +136 -0
- package/docs/_posts/components/HAnim/HAnimJoint.md +165 -0
- package/docs/_posts/components/HAnim/HAnimMotion.md +68 -0
- package/docs/_posts/components/HAnim/HAnimSegment.md +107 -0
- package/docs/_posts/components/HAnim/HAnimSite.md +108 -0
- package/docs/_posts/components/Interpolation/ColorInterpolator.md +73 -0
- package/docs/_posts/components/Interpolation/CoordinateInterpolator.md +76 -0
- package/docs/_posts/components/Interpolation/CoordinateInterpolator2D.md +73 -0
- package/docs/_posts/components/Interpolation/EaseInEaseOut.md +67 -0
- package/docs/_posts/components/Interpolation/NormalInterpolator.md +68 -0
- package/docs/_posts/components/Interpolation/OrientationInterpolator.md +72 -0
- package/docs/_posts/components/Interpolation/PositionInterpolator.md +72 -0
- package/docs/_posts/components/Interpolation/PositionInterpolator2D.md +77 -0
- package/docs/_posts/components/Interpolation/ScalarInterpolator.md +76 -0
- package/docs/_posts/components/Interpolation/SplinePositionInterpolator.md +93 -0
- package/docs/_posts/components/Interpolation/SplinePositionInterpolator2D.md +93 -0
- package/docs/_posts/components/Interpolation/SplineScalarInterpolator.md +106 -0
- package/docs/_posts/components/Interpolation/SquadOrientationInterpolator.md +78 -0
- package/docs/_posts/components/KeyDeviceSensor/KeySensor.md +78 -0
- package/docs/_posts/components/KeyDeviceSensor/StringSensor.md +70 -0
- package/docs/_posts/components/Layering/Layer.md +67 -0
- package/docs/_posts/components/Layering/LayerSet.md +78 -0
- package/docs/_posts/components/Layering/Viewport.md +80 -0
- package/docs/_posts/components/Layout/Layout.md +107 -0
- package/docs/_posts/components/Layout/LayoutGroup.md +85 -0
- package/docs/_posts/components/Layout/LayoutLayer.md +74 -0
- package/docs/_posts/components/Layout/ScreenFontStyle.md +137 -0
- package/docs/_posts/components/Layout/ScreenGroup.md +71 -0
- package/docs/_posts/components/Lighting/DirectionalLight.md +100 -0
- package/docs/_posts/components/Lighting/EnvironmentLight.md +91 -0
- package/docs/_posts/components/Lighting/PointLight.md +103 -0
- package/docs/_posts/components/Lighting/SpotLight.md +132 -0
- package/docs/_posts/components/NURBS/Contour2D.md +57 -0
- package/docs/_posts/components/NURBS/ContourPolyline2D.md +46 -0
- package/docs/_posts/components/NURBS/CoordinateDouble.md +47 -0
- package/docs/_posts/components/NURBS/NurbsCurve.md +71 -0
- package/docs/_posts/components/NURBS/NurbsCurve2D.md +66 -0
- package/docs/_posts/components/NURBS/NurbsOrientationInterpolator.md +70 -0
- package/docs/_posts/components/NURBS/NurbsPatchSurface.md +106 -0
- package/docs/_posts/components/NURBS/NurbsPositionInterpolator.md +70 -0
- package/docs/_posts/components/NURBS/NurbsSet.md +66 -0
- package/docs/_posts/components/NURBS/NurbsSurfaceInterpolator.md +90 -0
- package/docs/_posts/components/NURBS/NurbsSweptSurface.md +69 -0
- package/docs/_posts/components/NURBS/NurbsSwungSurface.md +65 -0
- package/docs/_posts/components/NURBS/NurbsTextureCoordinate.md +77 -0
- package/docs/_posts/components/NURBS/NurbsTrimmedSurface.md +114 -0
- package/docs/_posts/components/Navigation/Billboard.md +88 -0
- package/docs/_posts/components/Navigation/Collision.md +102 -0
- package/docs/_posts/components/Navigation/LOD.md +99 -0
- package/docs/_posts/components/Navigation/NavigationInfo.md +122 -0
- package/docs/_posts/components/Navigation/OrthoViewpoint.md +117 -0
- package/docs/_posts/components/Navigation/Viewpoint.md +117 -0
- package/docs/_posts/components/Navigation/ViewpointGroup.md +80 -0
- package/docs/_posts/components/Networking/Anchor.md +111 -0
- package/docs/_posts/components/Networking/Inline.md +115 -0
- package/docs/_posts/components/Networking/LoadSensor.md +91 -0
- package/docs/_posts/components/ParticleSystems/BoundedPhysicsModel.md +54 -0
- package/docs/_posts/components/ParticleSystems/ConeEmitter.md +76 -0
- package/docs/_posts/components/ParticleSystems/ExplosionEmitter.md +72 -0
- package/docs/_posts/components/ParticleSystems/ForcePhysicsModel.md +58 -0
- package/docs/_posts/components/ParticleSystems/ParticleSystem.md +177 -0
- package/docs/_posts/components/ParticleSystems/PointEmitter.md +76 -0
- package/docs/_posts/components/ParticleSystems/PolylineEmitter.md +94 -0
- package/docs/_posts/components/ParticleSystems/SurfaceEmitter.md +90 -0
- package/docs/_posts/components/ParticleSystems/VolumeEmitter.md +90 -0
- package/docs/_posts/components/ParticleSystems/WindPhysicsModel.md +68 -0
- package/docs/_posts/components/Picking/LinePickSensor.md +125 -0
- package/docs/_posts/components/Picking/PickableGroup.md +93 -0
- package/docs/_posts/components/Picking/PointPickSensor.md +112 -0
- package/docs/_posts/components/Picking/PrimitivePickSensor.md +114 -0
- package/docs/_posts/components/Picking/VolumePickSensor.md +107 -0
- package/docs/_posts/components/PointingDeviceSensor/CylinderSensor.md +122 -0
- package/docs/_posts/components/PointingDeviceSensor/PlaneSensor.md +114 -0
- package/docs/_posts/components/PointingDeviceSensor/SphereSensor.md +89 -0
- package/docs/_posts/components/PointingDeviceSensor/TouchSensor.md +87 -0
- package/docs/_posts/components/Rendering/ClipPlane.md +67 -0
- package/docs/_posts/components/Rendering/Color.md +56 -0
- package/docs/_posts/components/Rendering/ColorRGBA.md +61 -0
- package/docs/_posts/components/Rendering/Coordinate.md +45 -0
- package/docs/_posts/components/Rendering/IndexedLineSet.md +128 -0
- package/docs/_posts/components/Rendering/IndexedTriangleFanSet.md +128 -0
- package/docs/_posts/components/Rendering/IndexedTriangleSet.md +128 -0
- package/docs/_posts/components/Rendering/IndexedTriangleStripSet.md +116 -0
- package/docs/_posts/components/Rendering/LineSet.md +85 -0
- package/docs/_posts/components/Rendering/Normal.md +41 -0
- package/docs/_posts/components/Rendering/PointSet.md +76 -0
- package/docs/_posts/components/Rendering/TriangleFanSet.md +112 -0
- package/docs/_posts/components/Rendering/TriangleSet.md +108 -0
- package/docs/_posts/components/Rendering/TriangleStripSet.md +116 -0
- package/docs/_posts/components/RigidBodyPhysics/BallJoint.md +78 -0
- package/docs/_posts/components/RigidBodyPhysics/CollidableOffset.md +75 -0
- package/docs/_posts/components/RigidBodyPhysics/CollidableShape.md +83 -0
- package/docs/_posts/components/RigidBodyPhysics/CollisionCollection.md +90 -0
- package/docs/_posts/components/RigidBodyPhysics/CollisionSensor.md +65 -0
- package/docs/_posts/components/RigidBodyPhysics/CollisionSpace.md +70 -0
- package/docs/_posts/components/RigidBodyPhysics/Contact.md +117 -0
- package/docs/_posts/components/RigidBodyPhysics/DoubleAxisHingeJoint.md +162 -0
- package/docs/_posts/components/RigidBodyPhysics/MotorJoint.md +183 -0
- package/docs/_posts/components/RigidBodyPhysics/RigidBody.md +175 -0
- package/docs/_posts/components/RigidBodyPhysics/RigidBodyCollection.md +120 -0
- package/docs/_posts/components/RigidBodyPhysics/SingleAxisHingeJoint.md +108 -0
- package/docs/_posts/components/RigidBodyPhysics/SliderJoint.md +106 -0
- package/docs/_posts/components/RigidBodyPhysics/UniversalJoint.md +119 -0
- package/docs/_posts/components/Scripting/Script.md +81 -0
- package/docs/_posts/components/Shaders/ComposedShader.md +81 -0
- package/docs/_posts/components/Shaders/FloatVertexAttribute.md +65 -0
- package/docs/_posts/components/Shaders/Matrix3VertexAttribute.md +53 -0
- package/docs/_posts/components/Shaders/Matrix4VertexAttribute.md +53 -0
- package/docs/_posts/components/Shaders/PackagedShader.md +77 -0
- package/docs/_posts/components/Shaders/ProgramShader.md +71 -0
- package/docs/_posts/components/Shaders/ShaderPart.md +76 -0
- package/docs/_posts/components/Shaders/ShaderProgram.md +68 -0
- package/docs/_posts/components/Shape/AcousticProperties.md +52 -0
- package/docs/_posts/components/Shape/Appearance.md +123 -0
- package/docs/_posts/components/Shape/FillProperties.md +67 -0
- package/docs/_posts/components/Shape/LineProperties.md +63 -0
- package/docs/_posts/components/Shape/Material.md +217 -0
- package/docs/_posts/components/Shape/PhysicalMaterial.md +173 -0
- package/docs/_posts/components/Shape/PointProperties.md +84 -0
- package/docs/_posts/components/Shape/Shape.md +63 -0
- package/docs/_posts/components/Shape/TwoSidedMaterial.md +149 -0
- package/docs/_posts/components/Shape/UnlitMaterial.md +115 -0
- package/docs/_posts/components/Sound/Analyser.md +72 -0
- package/docs/_posts/components/Sound/AudioClip.md +139 -0
- package/docs/_posts/components/Sound/AudioDestination.md +52 -0
- package/docs/_posts/components/Sound/BiquadFilter.md +70 -0
- package/docs/_posts/components/Sound/BufferAudioSource.md +86 -0
- package/docs/_posts/components/Sound/ChannelMerger.md +46 -0
- package/docs/_posts/components/Sound/ChannelSelector.md +48 -0
- package/docs/_posts/components/Sound/ChannelSplitter.md +48 -0
- package/docs/_posts/components/Sound/Convolver.md +66 -0
- package/docs/_posts/components/Sound/Delay.md +66 -0
- package/docs/_posts/components/Sound/DynamicsCompressor.md +74 -0
- package/docs/_posts/components/Sound/Gain.md +62 -0
- package/docs/_posts/components/Sound/ListenerPointSource.md +62 -0
- package/docs/_posts/components/Sound/MicrophoneSource.md +54 -0
- package/docs/_posts/components/Sound/OscillatorSource.md +58 -0
- package/docs/_posts/components/Sound/PeriodicWave.md +42 -0
- package/docs/_posts/components/Sound/Sound.md +92 -0
- package/docs/_posts/components/Sound/SpatialSound.md +68 -0
- package/docs/_posts/components/Sound/StreamAudioDestination.md +52 -0
- package/docs/_posts/components/Sound/StreamAudioSource.md +54 -0
- package/docs/_posts/components/Sound/WaveShaper.md +66 -0
- package/docs/_posts/components/Text/FontStyle.md +145 -0
- package/docs/_posts/components/Text/Text.md +102 -0
- package/docs/_posts/components/TextureProjector/TextureProjector.md +52 -0
- package/docs/_posts/components/TextureProjector/TextureProjectorParallel.md +52 -0
- package/docs/_posts/components/Texturing/ImageTexture.md +134 -0
- package/docs/_posts/components/Texturing/MovieTexture.md +221 -0
- package/docs/_posts/components/Texturing/MultiTexture.md +100 -0
- package/docs/_posts/components/Texturing/MultiTextureCoordinate.md +47 -0
- package/docs/_posts/components/Texturing/MultiTextureTransform.md +47 -0
- package/docs/_posts/components/Texturing/PixelTexture.md +80 -0
- package/docs/_posts/components/Texturing/TextureCoordinate.md +52 -0
- package/docs/_posts/components/Texturing/TextureCoordinateGenerator.md +64 -0
- package/docs/_posts/components/Texturing/TextureProperties.md +137 -0
- package/docs/_posts/components/Texturing/TextureTransform.md +73 -0
- package/docs/_posts/components/Texturing3D/ComposedTexture3D.md +76 -0
- package/docs/_posts/components/Texturing3D/ImageTexture3D.md +132 -0
- package/docs/_posts/components/Texturing3D/ImageTextureAtlas.md +131 -0
- package/docs/_posts/components/Texturing3D/PixelTexture3D.md +75 -0
- package/docs/_posts/components/Texturing3D/TextureCoordinate3D.md +53 -0
- package/docs/_posts/components/Texturing3D/TextureCoordinate4D.md +52 -0
- package/docs/_posts/components/Texturing3D/TextureTransform3D.md +69 -0
- package/docs/_posts/components/Texturing3D/TextureTransformMatrix3D.md +57 -0
- package/docs/_posts/components/Time/TimeSensor.md +136 -0
- package/docs/_posts/components/VolumeRendering/BlendedVolumeStyle.md +92 -0
- package/docs/_posts/components/VolumeRendering/BoundaryEnhancementVolumeStyle.md +53 -0
- package/docs/_posts/components/VolumeRendering/CartoonVolumeStyle.md +83 -0
- package/docs/_posts/components/VolumeRendering/ComposedVolumeStyle.md +51 -0
- package/docs/_posts/components/VolumeRendering/EdgeEnhancementVolumeStyle.md +67 -0
- package/docs/_posts/components/VolumeRendering/IsoSurfaceVolumeData.md +99 -0
- package/docs/_posts/components/VolumeRendering/OpacityMapVolumeStyle.md +51 -0
- package/docs/_posts/components/VolumeRendering/ProjectionVolumeStyle.md +48 -0
- package/docs/_posts/components/VolumeRendering/SegmentedVolumeData.md +80 -0
- package/docs/_posts/components/VolumeRendering/ShadedVolumeStyle.md +75 -0
- package/docs/_posts/components/VolumeRendering/SilhouetteEnhancementVolumeStyle.md +63 -0
- package/docs/_posts/components/VolumeRendering/ToneMappedVolumeStyle.md +71 -0
- package/docs/_posts/components/VolumeRendering/VolumeData.md +71 -0
- package/docs/_posts/components/X_ITE/BlendMode.md +94 -0
- package/docs/_posts/custom-shaders.md +9 -4
- package/docs/_posts/dom-integration.md +1 -6
- package/docs/_posts/features.md +2 -2
- package/docs/_posts/getting-started.md +100 -57
- package/docs/_posts/glossary.md +1 -1
- package/docs/_posts/how-to-configure-your-web-server.md +1 -1
- package/docs/_posts/reference/browser-services.md +78 -18
- package/docs/_posts/reference/constants-services.md +1 -1
- package/docs/_posts/reference/ecmascript-object-and-function-definitions.md +1 -1
- package/docs/_posts/reference/field-services-and-objects.md +8 -8
- package/docs/_posts/reference/prototype-services.md +7 -7
- package/docs/_posts/reference/route-services.md +1 -1
- package/docs/_posts/reference/scene-services.md +5 -5
- package/docs/_posts/reference/script-node-authoring-interface.md +1 -1
- package/docs/_posts/report-a-bug.md +1 -1
- package/docs/_posts/setup-a-localhost-server.md +5 -1
- package/docs/_posts/supported-nodes.md +239 -238
- package/docs/_posts/tutorials/adding-backgrounds.md +3 -3
- package/docs/_posts/tutorials/adding-fog.md +2 -2
- package/docs/_posts/tutorials/adding-sound.md +19 -19
- package/docs/_posts/tutorials/animating-transforms.md +17 -17
- package/docs/_posts/tutorials/basic-nodes.md +30 -30
- package/docs/_posts/tutorials/building-a-x3d-world.md +3 -3
- package/docs/_posts/tutorials/building-elevation-grids.md +7 -7
- package/docs/_posts/tutorials/building-extruded-shapes.md +7 -7
- package/docs/_posts/tutorials/building-primitive-shapes.md +13 -13
- package/docs/_posts/tutorials/building-shapes-out-of-points-lines-and-faces.md +21 -21
- package/docs/_posts/tutorials/controlling-appearance-with-materials.md +7 -7
- package/docs/_posts/tutorials/controlling-color-on-coordinate-based-geometry.md +11 -11
- package/docs/_posts/tutorials/controlling-detail.md +4 -4
- package/docs/_posts/tutorials/controlling-how-textures-are-mapped.md +7 -7
- package/docs/_posts/tutorials/controlling-navigation.md +3 -3
- package/docs/_posts/tutorials/controlling-shading-on-coordinate-based-geometry.md +13 -13
- package/docs/_posts/tutorials/controlling-the-viewpoint.md +3 -3
- package/docs/_posts/tutorials/creating-new-node-types.md +4 -4
- package/docs/_posts/tutorials/grouping-nodes.md +13 -13
- package/docs/_posts/tutorials/hello-world.md +1 -1
- package/docs/_posts/tutorials/improving-performance.md +1 -1
- package/docs/_posts/tutorials/increasing-rendering-speed.md +1 -1
- package/docs/_posts/tutorials/introducing-animation.md +10 -10
- package/docs/_posts/tutorials/introducing-script-use.md +3 -3
- package/docs/_posts/tutorials/introducing-x3d.md +1 -1
- package/docs/_posts/tutorials/lighting-your-world.md +4 -4
- package/docs/_posts/tutorials/mapping-textures.md +7 -7
- package/docs/_posts/tutorials/naming-nodes.md +1 -1
- package/docs/_posts/tutorials/overview.md +1 -1
- package/docs/_posts/tutorials/providing-information-about-your-world.md +2 -2
- package/docs/_posts/tutorials/sensing-the-viewer.md +15 -15
- package/docs/_posts/tutorials/sensing-viewer-actions.md +10 -10
- package/docs/_posts/tutorials/transforming-shapes.md +4 -4
- package/docs/_posts/tutorials/writing-program-scripts-with-ecmascript.md +5 -5
- package/docs/_posts/what's-new.md +40 -2
- package/docs/_tabs/components.md +383 -0
- package/docs/_tabs/imprint.md +1 -1
- package/docs/_tabs/laboratory.md +38 -6
- package/docs/_tabs/playground.html +22 -66
- package/docs/_tabs/reference.md +2 -1
- package/docs/_tabs/tags.md +1 -1
- package/docs/_tabs/tutorials.md +1 -1
- package/docs/assets/X3D/Michroma-Regular.ttf +0 -0
- package/docs/assets/X3D/peakpx.jpg +0 -0
- package/docs/assets/X3D/teaser.x3d +55 -0
- package/docs/assets/css/style.scss +120 -11
- package/docs/assets/img/laboratory/blend-mode.png +0 -0
- package/docs/assets/img/laboratory/dicom-nrrd.png +0 -0
- package/docs/assets/img/laboratory/earthquake.png +0 -0
- package/docs/assets/img/laboratory/gltf.png +0 -0
- package/docs/assets/img/laboratory/l-system.png +0 -0
- package/docs/assets/js/autoupdate.js +25 -0
- package/docs/laboratory/gltf-sample-viewer.html +318 -0
- package/docs/laboratory/x3d-visual-blend-mode-editor.html +1 -0
- package/package.json +9 -2
- package/src/assets/components/Texturing3D.js +5 -3
- package/src/assets/shaders/Types.glsl.js +5 -5
- package/src/assets/shaders/webgl1/PBR.fs.js +1 -1
- package/src/assets/shaders/webgl1/include/Colors.glsl.js +5 -7
- package/src/assets/shaders/webgl1/include/Fragment.glsl.js +4 -0
- package/src/assets/shaders/webgl1/include/Hatch.glsl.js +1 -1
- package/src/assets/shaders/webgl1/include/Texture.glsl.js +3 -3
- package/src/assets/shaders/webgl2/include/Colors.glsl.js +5 -7
- package/src/assets/shaders/webgl2/include/Hatch.glsl.js +1 -1
- package/src/assets/shaders/webgl2/include/Particle.glsl.js +2 -2
- package/src/assets/shaders/webgl2/include/Texture.glsl.js +2 -2
- package/src/bookmarks.js +12 -8
- package/src/examples.js +3 -0
- package/src/lib/jquery.js +20 -0
- package/src/lib/libgif/libgif.js +1004 -0
- package/src/lib/libtess.js +1 -0
- package/src/lib/nurbs/extras/sample.js +5 -7
- package/src/standard/Math/Algorithms/Bezier.js +175 -33
- package/src/standard/Math/Geometry/Box2.js +15 -55
- package/src/standard/Math/Geometry/Box3.js +19 -66
- package/src/standard/Math/Geometry/Triangle3.js +14 -79
- package/src/standard/Math/Numbers/Color3.js +4 -0
- package/src/standard/Math/Numbers/Color4.js +4 -0
- package/src/standard/Math/Numbers/Matrix3.js +11 -3
- package/src/standard/Math/Numbers/Matrix4.js +9 -6
- package/src/standard/Math/Numbers/Rotation4.js +72 -65
- package/src/tests.js +3 -0
- package/src/x_ite/Base/X3DArrayField.js +0 -2
- package/src/x_ite/Base/X3DInfoArray.js +2 -2
- package/src/x_ite/Base/X3DObjectArrayField.js +19 -0
- package/src/x_ite/Base/X3DTypedArrayField.js +149 -0
- package/src/x_ite/Browser/Core/BrowserOptions.js +108 -64
- package/src/x_ite/Browser/Core/Context.js +1 -1
- package/src/x_ite/Browser/Core/ContextMenu.js +2 -2
- package/src/x_ite/Browser/Core/Notification.js +1 -1
- package/src/x_ite/Browser/Core/RenderingProperties.js +4 -0
- package/src/x_ite/Browser/Core/X3DCoreContext.js +99 -54
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +4 -14
- package/src/x_ite/Browser/Navigation/LookAtViewer.js +3 -13
- package/src/x_ite/Browser/Navigation/PlaneViewer.js +3 -12
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +25 -22
- package/src/x_ite/Browser/Navigation/X3DViewer.js +12 -3
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +2 -2
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +19 -15
- package/src/x_ite/Browser/Rendering/X3DRenderingContext.js +30 -10
- package/src/x_ite/Browser/Shaders/X3DShadersContext.js +1 -1
- package/src/x_ite/Browser/Shape/X3DShapeContext.js +30 -3
- package/src/x_ite/Browser/Text/PolygonText.js +137 -134
- package/src/x_ite/Browser/Texturing/GifMedia.js +113 -0
- package/src/x_ite/Browser/Texturing3D/DICOMParser.js +1 -6
- package/src/x_ite/Browser/Texturing3D/NRRDParser.js +81 -310
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +162 -122
- package/src/x_ite/Browser/X3DBrowserContext.js +7 -5
- package/src/x_ite/Components/Core/WorldInfo.js +3 -3
- package/src/x_ite/Components/Core/X3DNode.js +7 -7
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +1 -1
- package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +2 -3
- package/src/x_ite/Components/Geometry3D/Extrusion.js +27 -23
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +10 -19
- package/src/x_ite/Components/Grouping/X3DBoundedObject.js +1 -3
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +39 -15
- package/src/x_ite/Components/HAnim/HAnimJoint.js +6 -9
- package/src/x_ite/Components/Layering/X3DLayerNode.js +21 -2
- package/src/x_ite/Components/Layout/Layout.js +4 -2
- package/src/x_ite/Components/Layout/ScreenFontStyle.js +6 -0
- package/src/x_ite/Components/Lighting/DirectionalLight.js +4 -11
- package/src/x_ite/Components/Lighting/EnvironmentLight.js +1 -1
- package/src/x_ite/Components/Lighting/PointLight.js +4 -11
- package/src/x_ite/Components/Lighting/SpotLight.js +4 -11
- package/src/x_ite/Components/Lighting/X3DLightNode.js +7 -9
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +2 -2
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +14 -6
- package/src/x_ite/Components/Networking/Inline.js +48 -59
- package/src/x_ite/Components/Networking/X3DUrlObject.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +2 -2
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +7 -13
- package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +4 -2
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +4 -2
- package/src/x_ite/Components/Scripting/Script.js +2 -2
- package/src/x_ite/Components/Shaders/ShaderPart.js +1 -1
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +1 -3
- package/src/x_ite/Components/Shape/Appearance.js +27 -1
- package/src/x_ite/Components/Shape/FillProperties.js +1 -0
- package/src/x_ite/Components/Shape/LineProperties.js +15 -9
- package/src/x_ite/Components/Shape/Material.js +33 -22
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +22 -15
- package/src/x_ite/Components/Shape/PointProperties.js +23 -7
- package/src/x_ite/Components/Shape/UnlitMaterial.js +3 -2
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +25 -19
- package/src/x_ite/Components/Sound/AudioClip.js +5 -5
- package/src/x_ite/Components/Sound/X3DSoundSourceNode.js +26 -34
- package/src/x_ite/Components/Text/X3DFontStyleNode.js +1 -1
- package/src/x_ite/Components/TextureProjector/TextureProjector.js +4 -12
- package/src/x_ite/Components/TextureProjector/TextureProjectorParallel.js +6 -14
- package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +7 -7
- package/src/x_ite/Components/Texturing/ImageTexture.js +15 -10
- package/src/x_ite/Components/Texturing/MovieTexture.js +51 -11
- package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +2 -2
- package/src/x_ite/Components/Texturing3D/ImageTextureAtlas.js +230 -0
- package/src/x_ite/Components/Time/X3DTimeDependentNode.js +12 -10
- package/src/x_ite/Execution/BindableList.js +35 -37
- package/src/x_ite/Execution/BindableStack.js +25 -7
- package/src/x_ite/Execution/X3DScene.js +2 -2
- package/src/x_ite/Execution/X3DWorld.js +1 -1
- package/src/x_ite/Fields/SFRotation.js +2 -1
- package/src/x_ite/Fields/SFString.js +1 -1
- package/src/x_ite/InputOutput/FileLoader.js +105 -236
- package/src/x_ite/InputOutput/Generator.js +12 -8
- package/src/x_ite/Parser/Expressions.js +85 -0
- package/src/x_ite/Parser/GLB2Parser.js +147 -0
- package/src/x_ite/Parser/GLTF2Parser.js +2221 -0
- package/src/x_ite/Parser/GoldenGate.js +64 -13
- package/src/x_ite/Parser/JSONParser.js +7 -36
- package/src/x_ite/Parser/OBJParser.js +1076 -0
- package/src/x_ite/Parser/STLAParser.js +376 -0
- package/src/x_ite/Parser/STLBParser.js +156 -0
- package/src/x_ite/Parser/SVGParser.js +2476 -0
- package/src/x_ite/Parser/VRMLParser.js +127 -183
- package/src/x_ite/Parser/X3DOptimizer.js +191 -0
- package/src/x_ite/Parser/X3DParser.js +34 -0
- package/src/x_ite/Parser/XMLParser.js +11 -109
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +2 -2
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +3 -3
- package/src/x_ite/Rendering/DependentRenderer.js +1 -1
- package/src/x_ite/Rendering/MultiSampleFrameBuffer.js +150 -0
- package/src/x_ite/Rendering/TextureBuffer.js +3 -5
- package/src/x_ite/Rendering/X3DRenderObject.js +2 -7
- package/src/x_ite/X3D.js +1 -0
- package/src/x_ite/X3DCanvas.js +10 -0
- package/src/x_ite.html +39 -17
- package/webpack.config.js +1 -0
- package/x_ite.min.html +38 -17
- package/src/standard/Networking/BinaryTransport.js +0 -116
|
@@ -575,6 +575,8 @@ Matrix3 .prototype =
|
|
|
575
575
|
this [0] = 1; this [1] = 0; this [2] = 0;
|
|
576
576
|
this [3] = 0; this [4] = 1; this [5] = 0;
|
|
577
577
|
this [6] = 0; this [7] = 0; this [8] = 1;
|
|
578
|
+
|
|
579
|
+
return this;
|
|
578
580
|
},
|
|
579
581
|
translate: function (translation)
|
|
580
582
|
{
|
|
@@ -589,9 +591,7 @@ Matrix3 .prototype =
|
|
|
589
591
|
},
|
|
590
592
|
rotate: function (rotation)
|
|
591
593
|
{
|
|
592
|
-
this .multLeft (Matrix3 .Rotation (rotation));
|
|
593
|
-
|
|
594
|
-
return this;
|
|
594
|
+
return this .multLeft (Matrix3 .Rotation (rotation));
|
|
595
595
|
},
|
|
596
596
|
scale: function (scale)
|
|
597
597
|
{
|
|
@@ -607,6 +607,14 @@ Matrix3 .prototype =
|
|
|
607
607
|
|
|
608
608
|
return this;
|
|
609
609
|
},
|
|
610
|
+
skewX: function (angle)
|
|
611
|
+
{
|
|
612
|
+
return this .multLeft (m .set (1, 0, 0, Math .tan (angle), 1, 0, 0, 0, 1));
|
|
613
|
+
},
|
|
614
|
+
skewY: function (angle)
|
|
615
|
+
{
|
|
616
|
+
return this .multLeft (m .set (1, Math .tan (angle), 0, 0, 1, 0, 0, 0, 1));
|
|
617
|
+
},
|
|
610
618
|
toString: function ()
|
|
611
619
|
{
|
|
612
620
|
return this [0] + " " + this [1] + " " + this [2] + " " +
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
import Vector3 from "./Vector3.js";
|
|
49
49
|
import Vector4 from "./Vector4.js";
|
|
50
|
+
import Quaternion from "./Quaternion.js";
|
|
50
51
|
import Rotation4 from "./Rotation4.js";
|
|
51
52
|
import Matrix3 from "./Matrix3.js";
|
|
52
53
|
import eigen_decomposition from "../Algorithms/eigen_decomposition.js";
|
|
@@ -363,7 +364,7 @@ Matrix4 .prototype =
|
|
|
363
364
|
})(),
|
|
364
365
|
setRotation: function (rotation)
|
|
365
366
|
{
|
|
366
|
-
return this .setQuaternion (rotation .
|
|
367
|
+
return this .setQuaternion (rotation .getQuaternion (q));
|
|
367
368
|
},
|
|
368
369
|
setQuaternion: function (quaternion)
|
|
369
370
|
{
|
|
@@ -735,6 +736,8 @@ Matrix4 .prototype =
|
|
|
735
736
|
this [ 4] = 0; this [ 5] = 1; this [ 6] = 0; this [ 7] = 0;
|
|
736
737
|
this [ 8] = 0; this [ 9] = 0; this [10] = 1; this [11] = 0;
|
|
737
738
|
this [12] = 0; this [13] = 0; this [14] = 0; this [15] = 1;
|
|
739
|
+
|
|
740
|
+
return this;
|
|
738
741
|
},
|
|
739
742
|
translate: function (translation)
|
|
740
743
|
{
|
|
@@ -751,9 +754,7 @@ Matrix4 .prototype =
|
|
|
751
754
|
},
|
|
752
755
|
rotate: function (rotation)
|
|
753
756
|
{
|
|
754
|
-
this .multLeft (m .setQuaternion (rotation .
|
|
755
|
-
|
|
756
|
-
return this;
|
|
757
|
+
return this .multLeft (m .setQuaternion (rotation .getQuaternion (q)));
|
|
757
758
|
},
|
|
758
759
|
scale: function (scale)
|
|
759
760
|
{
|
|
@@ -914,7 +915,7 @@ Object .assign (Matrix4,
|
|
|
914
915
|
Identity: new Matrix4 (),
|
|
915
916
|
Rotation: function (rotation)
|
|
916
917
|
{
|
|
917
|
-
return Object .create (this .prototype) .setQuaternion (rotation .
|
|
918
|
+
return Object .create (this .prototype) .setQuaternion (rotation .getQuaternion (q));
|
|
918
919
|
},
|
|
919
920
|
Quaternion: function (quaternion)
|
|
920
921
|
{
|
|
@@ -945,6 +946,8 @@ Object .assign (Matrix4,
|
|
|
945
946
|
},
|
|
946
947
|
});
|
|
947
948
|
|
|
948
|
-
const
|
|
949
|
+
const
|
|
950
|
+
q = new Quaternion (),
|
|
951
|
+
m = new Matrix4 ();
|
|
949
952
|
|
|
950
953
|
export default Matrix4;
|
|
@@ -51,10 +51,11 @@ import Vector4 from "./Vector4.js";
|
|
|
51
51
|
import Algorithm from "../Algorithm.js";
|
|
52
52
|
|
|
53
53
|
const
|
|
54
|
-
_x
|
|
55
|
-
_y
|
|
56
|
-
_z
|
|
57
|
-
_angle
|
|
54
|
+
_x = Symbol (),
|
|
55
|
+
_y = Symbol (),
|
|
56
|
+
_z = Symbol (),
|
|
57
|
+
_angle = Symbol (),
|
|
58
|
+
_quaternion = Symbol ();
|
|
58
59
|
|
|
59
60
|
function Rotation4 (x, y, z, angle)
|
|
60
61
|
{
|
|
@@ -67,12 +68,12 @@ function Rotation4 (x, y, z, angle)
|
|
|
67
68
|
{
|
|
68
69
|
case 0:
|
|
69
70
|
{
|
|
70
|
-
this
|
|
71
|
+
this [_quaternion] = new Quaternion (0, 0, 0, 1);
|
|
71
72
|
return;
|
|
72
73
|
}
|
|
73
74
|
case 1:
|
|
74
75
|
{
|
|
75
|
-
this
|
|
76
|
+
this [_quaternion] = arguments [0];
|
|
76
77
|
this .update ();
|
|
77
78
|
return;
|
|
78
79
|
}
|
|
@@ -82,7 +83,7 @@ function Rotation4 (x, y, z, angle)
|
|
|
82
83
|
arg0 = arguments [0],
|
|
83
84
|
arg1 = arguments [1];
|
|
84
85
|
|
|
85
|
-
this
|
|
86
|
+
this [_quaternion] = new Quaternion (0, 0, 0, 1);
|
|
86
87
|
|
|
87
88
|
if (arg1 instanceof Vector3)
|
|
88
89
|
return this .setFromToVec (arg0, arg1);
|
|
@@ -96,7 +97,7 @@ function Rotation4 (x, y, z, angle)
|
|
|
96
97
|
}
|
|
97
98
|
case 4:
|
|
98
99
|
{
|
|
99
|
-
this
|
|
100
|
+
this [_quaternion] = new Quaternion (0, 0, 0, 1);
|
|
100
101
|
this .set (x, y, z, angle);
|
|
101
102
|
return;
|
|
102
103
|
}
|
|
@@ -134,7 +135,7 @@ Rotation4 .prototype =
|
|
|
134
135
|
copy [_z] = this [_z];
|
|
135
136
|
copy [_angle] = this [_angle];
|
|
136
137
|
|
|
137
|
-
copy
|
|
138
|
+
copy [_quaternion] = this [_quaternion] .copy ();
|
|
138
139
|
|
|
139
140
|
return copy;
|
|
140
141
|
},
|
|
@@ -145,7 +146,7 @@ Rotation4 .prototype =
|
|
|
145
146
|
this [_z] = rotation [_z];
|
|
146
147
|
this [_angle] = rotation [_angle];
|
|
147
148
|
|
|
148
|
-
this
|
|
149
|
+
this [_quaternion] .assign (rotation [_quaternion]);
|
|
149
150
|
|
|
150
151
|
return this;
|
|
151
152
|
},
|
|
@@ -160,7 +161,7 @@ Rotation4 .prototype =
|
|
|
160
161
|
|
|
161
162
|
if (scale === 0)
|
|
162
163
|
{
|
|
163
|
-
this
|
|
164
|
+
this [_quaternion] .set (0, 0, 0, 1);
|
|
164
165
|
return this;
|
|
165
166
|
}
|
|
166
167
|
|
|
@@ -170,10 +171,10 @@ Rotation4 .prototype =
|
|
|
170
171
|
halfTheta = Algorithm .interval (angle / 2, 0, Math .PI),
|
|
171
172
|
ascale = Math .sin (halfTheta) / scale;
|
|
172
173
|
|
|
173
|
-
this
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
this [_quaternion] .set (x * ascale,
|
|
175
|
+
y * ascale,
|
|
176
|
+
z * ascale,
|
|
177
|
+
Math .cos (halfTheta));
|
|
177
178
|
return this;
|
|
178
179
|
},
|
|
179
180
|
get: (function ()
|
|
@@ -182,16 +183,16 @@ Rotation4 .prototype =
|
|
|
182
183
|
|
|
183
184
|
return function ()
|
|
184
185
|
{
|
|
185
|
-
const
|
|
186
|
+
const quaternion = this [_quaternion];
|
|
186
187
|
|
|
187
|
-
if (Math .abs (
|
|
188
|
+
if (Math .abs (quaternion .w) > 1)
|
|
188
189
|
{
|
|
189
190
|
return Vector4 .zAxis;
|
|
190
191
|
}
|
|
191
192
|
else
|
|
192
193
|
{
|
|
193
194
|
const
|
|
194
|
-
angle = Math .acos (
|
|
195
|
+
angle = Math .acos (quaternion .w) * 2,
|
|
195
196
|
scale = Math .sin (angle / 2);
|
|
196
197
|
|
|
197
198
|
if (scale === 0)
|
|
@@ -200,7 +201,7 @@ Rotation4 .prototype =
|
|
|
200
201
|
}
|
|
201
202
|
else
|
|
202
203
|
{
|
|
203
|
-
const axis =
|
|
204
|
+
const axis = quaternion .imag .divide (scale);
|
|
204
205
|
|
|
205
206
|
return result .set (axis .x,
|
|
206
207
|
axis .y,
|
|
@@ -239,7 +240,7 @@ Rotation4 .prototype =
|
|
|
239
240
|
// Parallel vectors
|
|
240
241
|
// Check if they are pointing in the same direction.
|
|
241
242
|
if (cos_angle > 0)
|
|
242
|
-
this
|
|
243
|
+
this [_quaternion] .set (0, 0, 0, 1); // standard rotation
|
|
243
244
|
|
|
244
245
|
// Ok, so they are parallel and pointing in the opposite direction
|
|
245
246
|
// of each other.
|
|
@@ -254,7 +255,7 @@ Rotation4 .prototype =
|
|
|
254
255
|
|
|
255
256
|
t .normalize ();
|
|
256
257
|
|
|
257
|
-
this
|
|
258
|
+
this [_quaternion] .set (t .x, t .y, t .z, 0);
|
|
258
259
|
}
|
|
259
260
|
}
|
|
260
261
|
else
|
|
@@ -264,10 +265,10 @@ Rotation4 .prototype =
|
|
|
264
265
|
// which can lead to sqrt () returning NaN.
|
|
265
266
|
crossvec .multiply (Math .sqrt (Math .abs (1 - cos_angle) / 2));
|
|
266
267
|
|
|
267
|
-
this
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
268
|
+
this [_quaternion] .set (crossvec .x,
|
|
269
|
+
crossvec .y,
|
|
270
|
+
crossvec .z,
|
|
271
|
+
Math .sqrt (Math .abs (1 + cos_angle) / 2));
|
|
271
272
|
}
|
|
272
273
|
|
|
273
274
|
this .update ();
|
|
@@ -279,76 +280,82 @@ Rotation4 .prototype =
|
|
|
279
280
|
{
|
|
280
281
|
this .set (vector .x, vector .y, vector .z, this [_angle]);
|
|
281
282
|
},
|
|
282
|
-
getAxis:
|
|
283
|
+
getAxis: function (axis)
|
|
283
284
|
{
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
285
|
+
return axis .set (this [_x], this [_y], this [_z]);
|
|
286
|
+
},
|
|
287
|
+
setQuaternion: function (quaternion)
|
|
288
|
+
{
|
|
289
|
+
this [_quaternion] .assign (quaternion) .normalize ();
|
|
290
|
+
this .update ();
|
|
291
|
+
return this;
|
|
292
|
+
},
|
|
293
|
+
getQuaternion: function (quaternion)
|
|
294
|
+
{
|
|
295
|
+
quaternion .assign (this [_quaternion]);
|
|
296
|
+
return quaternion;
|
|
297
|
+
},
|
|
291
298
|
setMatrix: function (matrix)
|
|
292
299
|
{
|
|
293
|
-
this
|
|
300
|
+
this [_quaternion] .setMatrix (matrix) .normalize ();
|
|
294
301
|
this .update ();
|
|
295
302
|
return this;
|
|
296
303
|
},
|
|
297
304
|
getMatrix: function (matrix)
|
|
298
305
|
{
|
|
299
|
-
return this
|
|
306
|
+
return this [_quaternion] .getMatrix (matrix);
|
|
300
307
|
},
|
|
301
|
-
equals: function (
|
|
308
|
+
equals: function (rotation)
|
|
302
309
|
{
|
|
303
|
-
return this
|
|
310
|
+
return this [_quaternion] .equals (rotation [_quaternion]);
|
|
304
311
|
},
|
|
305
312
|
inverse: function ()
|
|
306
313
|
{
|
|
307
|
-
this
|
|
314
|
+
this [_quaternion] .inverse ();
|
|
308
315
|
this .update ();
|
|
309
316
|
return this;
|
|
310
317
|
},
|
|
311
318
|
multLeft: function (rotation)
|
|
312
319
|
{
|
|
313
|
-
this
|
|
320
|
+
this [_quaternion] .multLeft (rotation [_quaternion]) .normalize ();
|
|
314
321
|
this .update ();
|
|
315
322
|
return this;
|
|
316
323
|
},
|
|
317
324
|
multRight: function (rotation)
|
|
318
325
|
{
|
|
319
|
-
this
|
|
326
|
+
this [_quaternion] .multRight (rotation [_quaternion]) .normalize ();
|
|
320
327
|
this .update ();
|
|
321
328
|
return this;
|
|
322
329
|
},
|
|
323
330
|
multVecRot: function (vector)
|
|
324
331
|
{
|
|
325
|
-
return this
|
|
332
|
+
return this [_quaternion] .multVecQuat (vector);
|
|
326
333
|
},
|
|
327
334
|
multRotVec: function (vector)
|
|
328
335
|
{
|
|
329
|
-
return this
|
|
336
|
+
return this [_quaternion] .multQuatVec (vector);
|
|
330
337
|
},
|
|
331
338
|
normalize: function ()
|
|
332
339
|
{
|
|
333
|
-
this
|
|
340
|
+
this [_quaternion] .normalize ();
|
|
334
341
|
this .update ();
|
|
335
342
|
return this;
|
|
336
343
|
},
|
|
337
344
|
pow: function (exponent)
|
|
338
345
|
{
|
|
339
|
-
this
|
|
346
|
+
this [_quaternion] .pow (exponent);
|
|
340
347
|
this .update ();
|
|
341
348
|
return this;
|
|
342
349
|
},
|
|
343
350
|
slerp: function (dest, t)
|
|
344
351
|
{
|
|
345
|
-
this
|
|
352
|
+
this [_quaternion] .slerp (dest [_quaternion], t);
|
|
346
353
|
this .update ();
|
|
347
354
|
return this;
|
|
348
355
|
},
|
|
349
|
-
squad: function (a
|
|
356
|
+
squad: function (a, b, dest, t)
|
|
350
357
|
{
|
|
351
|
-
this
|
|
358
|
+
this [_quaternion] .squad (a [_quaternion], b [_quaternion], dest [_quaternion], t);
|
|
352
359
|
this .update ();
|
|
353
360
|
return this;
|
|
354
361
|
},
|
|
@@ -366,10 +373,10 @@ const x = {
|
|
|
366
373
|
{
|
|
367
374
|
return this [_x];
|
|
368
375
|
},
|
|
369
|
-
set: function (
|
|
376
|
+
set: function (x)
|
|
370
377
|
{
|
|
371
|
-
this [_x] =
|
|
372
|
-
this .set (
|
|
378
|
+
this [_x] = x;
|
|
379
|
+
this .set (x, this [_y], this [_z], this [_angle]);
|
|
373
380
|
},
|
|
374
381
|
enumerable: true,
|
|
375
382
|
configurable: false
|
|
@@ -380,10 +387,10 @@ const y = {
|
|
|
380
387
|
{
|
|
381
388
|
return this [_y];
|
|
382
389
|
},
|
|
383
|
-
set: function (
|
|
390
|
+
set: function (y)
|
|
384
391
|
{
|
|
385
|
-
this [_y] =
|
|
386
|
-
this .set (this [_x],
|
|
392
|
+
this [_y] = y;
|
|
393
|
+
this .set (this [_x], y, this [_z], this [_angle]);
|
|
387
394
|
},
|
|
388
395
|
enumerable: true,
|
|
389
396
|
configurable: false
|
|
@@ -394,10 +401,10 @@ const z = {
|
|
|
394
401
|
{
|
|
395
402
|
return this [_z];
|
|
396
403
|
},
|
|
397
|
-
set: function (
|
|
404
|
+
set: function (z)
|
|
398
405
|
{
|
|
399
|
-
this [_z] =
|
|
400
|
-
this .set (this [_x], this [_y],
|
|
406
|
+
this [_z] = z;
|
|
407
|
+
this .set (this [_x], this [_y], z, this [_angle]);
|
|
401
408
|
},
|
|
402
409
|
enumerable: true,
|
|
403
410
|
configurable: false
|
|
@@ -408,18 +415,18 @@ const angle = {
|
|
|
408
415
|
{
|
|
409
416
|
return this [_angle];
|
|
410
417
|
},
|
|
411
|
-
set: function (
|
|
418
|
+
set: function (angle)
|
|
412
419
|
{
|
|
413
|
-
this [_angle] =
|
|
414
|
-
this .set (this [_x], this [_y], this [_z],
|
|
420
|
+
this [_angle] = angle;
|
|
421
|
+
this .set (this [_x], this [_y], this [_z], angle);
|
|
415
422
|
},
|
|
416
423
|
enumerable: true,
|
|
417
424
|
configurable: false
|
|
418
425
|
};
|
|
419
426
|
|
|
420
|
-
Object .defineProperty (Rotation4 .prototype, "x",
|
|
421
|
-
Object .defineProperty (Rotation4 .prototype, "y",
|
|
422
|
-
Object .defineProperty (Rotation4 .prototype, "z",
|
|
427
|
+
Object .defineProperty (Rotation4 .prototype, "x", x);
|
|
428
|
+
Object .defineProperty (Rotation4 .prototype, "y", y);
|
|
429
|
+
Object .defineProperty (Rotation4 .prototype, "z", z);
|
|
423
430
|
Object .defineProperty (Rotation4 .prototype, "angle", angle);
|
|
424
431
|
|
|
425
432
|
x .enumerable = false;
|
|
@@ -459,15 +466,15 @@ Object .assign (Rotation4,
|
|
|
459
466
|
bezier: function (source, a, b, destination, t)
|
|
460
467
|
{
|
|
461
468
|
const copy = Object .create (this .prototype);
|
|
462
|
-
copy
|
|
469
|
+
copy [_quaternion] = Quaternion .bezier (source [_quaternion], a, b, destination [_quaternion], t);
|
|
463
470
|
copy .update ();
|
|
464
471
|
return copy;
|
|
465
472
|
},
|
|
466
473
|
*/
|
|
467
|
-
spline: function (
|
|
474
|
+
spline: function (r0, r1, r2)
|
|
468
475
|
{
|
|
469
476
|
const copy = Object .create (this .prototype);
|
|
470
|
-
copy
|
|
477
|
+
copy [_quaternion] = Quaternion .spline (r0 [_quaternion], r1 [_quaternion], r2 [_quaternion]);
|
|
471
478
|
copy .update ();
|
|
472
479
|
return copy;
|
|
473
480
|
},
|
package/src/tests.js
CHANGED
|
@@ -141,6 +141,7 @@ const X_ITE_TESTS = [
|
|
|
141
141
|
{ component: "Networking" },
|
|
142
142
|
{ path: "Networking/Anchor.x3d" },
|
|
143
143
|
{ path: "Networking/autoRefresh.x3dv" },
|
|
144
|
+
{ path: "Networking/BoxWithLight.x3d" },
|
|
144
145
|
{ path: "Networking/InlineGlobal.x3d" },
|
|
145
146
|
{ path: "Networking/LoadSensor.x3d" },
|
|
146
147
|
{ component: "NURBS" },
|
|
@@ -218,6 +219,7 @@ const X_ITE_TESTS = [
|
|
|
218
219
|
{ component: "PROTO" },
|
|
219
220
|
{ path: "PROTO/27cubes.x3d" },
|
|
220
221
|
{ path: "PROTO/cbx.wrl" },
|
|
222
|
+
{ path: "PROTO/CustomBox.x3dv" },
|
|
221
223
|
{ path: "PROTO/Double.x3dv" },
|
|
222
224
|
{ path: "PROTO/ExternProto.x3d" },
|
|
223
225
|
{ path: "PROTO/ExternProto.x3dv" },
|
|
@@ -327,6 +329,7 @@ const X_ITE_TESTS = [
|
|
|
327
329
|
{ path: "TextureProjector/Parallel.x3d" },
|
|
328
330
|
{ path: "TextureProjector/Perspective.x3d" },
|
|
329
331
|
{ component: "Texturing" },
|
|
332
|
+
{ path: "Texturing/AnimatedGIF.x3dv" },
|
|
330
333
|
{ path: "Texturing/ColorManagement.x3d" },
|
|
331
334
|
{ path: "Texturing/ColorMaterial.x3d" },
|
|
332
335
|
{ path: "Texturing/DataURL.x3d" },
|
|
@@ -77,10 +77,8 @@ X3DArrayField .prototype = Object .assign (Object .create (X3DField .prototype),
|
|
|
77
77
|
map: Array .prototype .map,
|
|
78
78
|
reduce: Array .prototype .reduce,
|
|
79
79
|
reduceRight: Array .prototype .reduceRight,
|
|
80
|
-
//Array.prototype.reverse
|
|
81
80
|
slice: Array .prototype .slice,
|
|
82
81
|
some: Array .prototype .some,
|
|
83
|
-
//Array.prototype.sort
|
|
84
82
|
values: Array .prototype .values,
|
|
85
83
|
});
|
|
86
84
|
|
|
@@ -277,7 +277,7 @@ X3DInfoArray .prototype = {
|
|
|
277
277
|
{
|
|
278
278
|
let lastProperty = false;
|
|
279
279
|
|
|
280
|
-
for (const value of this [_array])
|
|
280
|
+
for (const [i, value] of this [_array] .entries ())
|
|
281
281
|
{
|
|
282
282
|
try
|
|
283
283
|
{
|
|
@@ -295,7 +295,7 @@ X3DInfoArray .prototype = {
|
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
if (lastProperty && !comma)
|
|
298
|
-
generator .
|
|
298
|
+
generator .JSONRemoveComma ();
|
|
299
299
|
|
|
300
300
|
return lastProperty;
|
|
301
301
|
},
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
import X3DField from "./X3DField.js";
|
|
49
49
|
import X3DArrayField from "./X3DArrayField.js";
|
|
50
|
+
import Algorithm from "../../standard/Math/Algorithm.js";
|
|
50
51
|
|
|
51
52
|
const
|
|
52
53
|
_target = Symbol (),
|
|
@@ -444,6 +445,24 @@ X3DObjectArrayField .prototype = Object .assign (Object .create (X3DArrayField .
|
|
|
444
445
|
target .addEvent ();
|
|
445
446
|
}
|
|
446
447
|
},
|
|
448
|
+
reverse: function ()
|
|
449
|
+
{
|
|
450
|
+
const target = this [_target];
|
|
451
|
+
|
|
452
|
+
target .getValue () .reverse ();
|
|
453
|
+
target .addEvent ();
|
|
454
|
+
|
|
455
|
+
return this;
|
|
456
|
+
},
|
|
457
|
+
sort: function ()
|
|
458
|
+
{
|
|
459
|
+
const target = this [_target];
|
|
460
|
+
|
|
461
|
+
target .getValue () .sort ((a, b) => Algorithm .cmp (a .valueOf (), b .valueOf ()));
|
|
462
|
+
target .addEvent ();
|
|
463
|
+
|
|
464
|
+
return this;
|
|
465
|
+
},
|
|
447
466
|
addChildObject: function (value)
|
|
448
467
|
{
|
|
449
468
|
value .addParent (this [_proxy]);
|
|
@@ -687,6 +687,155 @@ X3DTypedArrayField .prototype = Object .assign (Object .create (X3DArrayField .p
|
|
|
687
687
|
|
|
688
688
|
return newArray;
|
|
689
689
|
},
|
|
690
|
+
includes: function (searchElement, fromIndex)
|
|
691
|
+
{
|
|
692
|
+
const
|
|
693
|
+
target = this [_target],
|
|
694
|
+
components = target .getComponents (),
|
|
695
|
+
length = target [_length];
|
|
696
|
+
|
|
697
|
+
if (components === 1)
|
|
698
|
+
{
|
|
699
|
+
return Array .prototype .includes .call (this, searchElement, fromIndex);
|
|
700
|
+
}
|
|
701
|
+
else
|
|
702
|
+
{
|
|
703
|
+
for (let i = fromIndex === undefined ? 0 : fromIndex; i < length; ++ i)
|
|
704
|
+
{
|
|
705
|
+
if (this [i] .equals (searchElement))
|
|
706
|
+
return true;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
return false;
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
indexOf: function (searchElement, fromIndex)
|
|
713
|
+
{
|
|
714
|
+
const
|
|
715
|
+
target = this [_target],
|
|
716
|
+
components = target .getComponents (),
|
|
717
|
+
length = target [_length];
|
|
718
|
+
|
|
719
|
+
if (components === 1)
|
|
720
|
+
{
|
|
721
|
+
return Array .prototype .indexOf .call (this, searchElement, fromIndex);
|
|
722
|
+
}
|
|
723
|
+
else
|
|
724
|
+
{
|
|
725
|
+
for (let i = fromIndex === undefined ? 0 : fromIndex; i < length; ++ i)
|
|
726
|
+
{
|
|
727
|
+
if (this [i] .equals (searchElement))
|
|
728
|
+
return i;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
return -1;
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
lastIndexOf: function (searchElement, fromIndex)
|
|
735
|
+
{
|
|
736
|
+
const
|
|
737
|
+
target = this [_target],
|
|
738
|
+
components = target .getComponents (),
|
|
739
|
+
length = target [_length];
|
|
740
|
+
|
|
741
|
+
if (components === 1)
|
|
742
|
+
{
|
|
743
|
+
return Array .prototype .lastIndexOf .call (this, searchElement, fromIndex);
|
|
744
|
+
}
|
|
745
|
+
else
|
|
746
|
+
{
|
|
747
|
+
for (let i = fromIndex === undefined ? length - 1 : fromIndex; i >= 0; -- i)
|
|
748
|
+
{
|
|
749
|
+
if (this [i] .equals (searchElement))
|
|
750
|
+
return i;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
return -1;
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
reverse: function ()
|
|
757
|
+
{
|
|
758
|
+
const
|
|
759
|
+
target = this [_target],
|
|
760
|
+
array = target .getValue (),
|
|
761
|
+
components = target .getComponents (),
|
|
762
|
+
length = target [_length] * components,
|
|
763
|
+
length1_2 = Math .floor (target [_length] / 2) * components;
|
|
764
|
+
|
|
765
|
+
if (components === 1)
|
|
766
|
+
{
|
|
767
|
+
for (let i = 0; i < length1_2; ++ i)
|
|
768
|
+
{
|
|
769
|
+
const
|
|
770
|
+
i2 = length - i - 1,
|
|
771
|
+
t = array [i];
|
|
772
|
+
|
|
773
|
+
array [i] = array [i2];
|
|
774
|
+
array [i2] = t;
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
else
|
|
778
|
+
{
|
|
779
|
+
for (let i = 0; i < length1_2; i += components)
|
|
780
|
+
{
|
|
781
|
+
for (let c = 0; c < components; ++ c)
|
|
782
|
+
{
|
|
783
|
+
const
|
|
784
|
+
i1 = i + c,
|
|
785
|
+
i2 = length - (components - i - c - 1) - 1,
|
|
786
|
+
t = array [i1];
|
|
787
|
+
|
|
788
|
+
array [i1] = array [i2];
|
|
789
|
+
array [i2] = t;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
target .addEvent ();
|
|
795
|
+
|
|
796
|
+
return this;
|
|
797
|
+
},
|
|
798
|
+
sort: function (compareFunction)
|
|
799
|
+
{
|
|
800
|
+
const
|
|
801
|
+
target = this [_target],
|
|
802
|
+
array = target .getValue (),
|
|
803
|
+
components = target .getComponents (),
|
|
804
|
+
length = target [_length];
|
|
805
|
+
|
|
806
|
+
if (components === 1)
|
|
807
|
+
{
|
|
808
|
+
target .set (array .subarray (0, length) .sort (compareFunction));
|
|
809
|
+
}
|
|
810
|
+
else
|
|
811
|
+
{
|
|
812
|
+
const result = this .map (value => value .copy ()) .sort (compareFunction !== undefined ? compareFunction : function (a, b)
|
|
813
|
+
{
|
|
814
|
+
for (let c = 0; c < components; ++ c)
|
|
815
|
+
{
|
|
816
|
+
if (a [c] < b [c])
|
|
817
|
+
return -1;
|
|
818
|
+
|
|
819
|
+
if (b [c] < a [c])
|
|
820
|
+
return 1;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
return 0;
|
|
824
|
+
});
|
|
825
|
+
|
|
826
|
+
for (let i = 0; i < length; ++ i)
|
|
827
|
+
{
|
|
828
|
+
const value = result [i];
|
|
829
|
+
|
|
830
|
+
for (let c = 0, first = i * components; c < components; ++ c, ++ first)
|
|
831
|
+
array [first] = value [c];
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
target .addEvent ();
|
|
836
|
+
|
|
837
|
+
return this;
|
|
838
|
+
},
|
|
690
839
|
toStream: function (generator)
|
|
691
840
|
{
|
|
692
841
|
const
|