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
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
import VERSION from "./VERSION.js";
|
|
49
49
|
import Fields from "../Fields.js";
|
|
50
50
|
import Components from "../Components.js";
|
|
51
|
-
import X3DLayerNode from "../Components/Layering/X3DLayerNode.js";
|
|
52
51
|
import X3DBrowserContext from "./X3DBrowserContext.js";
|
|
53
52
|
import DOMIntegration from "./DOMIntegration.js";
|
|
54
53
|
import legacy from "./Legacy.js";
|
|
@@ -72,7 +71,8 @@ import _ from "../../locale/gettext.js";
|
|
|
72
71
|
|
|
73
72
|
const
|
|
74
73
|
_DOMIntegration = Symbol (),
|
|
75
|
-
|
|
74
|
+
_reject = Symbol (),
|
|
75
|
+
_fileLoader = Symbol (),
|
|
76
76
|
_browserCallbacks = Symbol (),
|
|
77
77
|
_console = Symbol ();
|
|
78
78
|
|
|
@@ -87,6 +87,7 @@ function X3DBrowser (element)
|
|
|
87
87
|
|
|
88
88
|
X3DBrowserContext .call (this, element);
|
|
89
89
|
|
|
90
|
+
this [_reject] = Function .prototype;
|
|
90
91
|
this [_browserCallbacks] = new Map ();
|
|
91
92
|
this [_console] = document .getElementsByClassName ("x_ite-console");
|
|
92
93
|
|
|
@@ -110,14 +111,16 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
110
111
|
},
|
|
111
112
|
initialize: function ()
|
|
112
113
|
{
|
|
113
|
-
X3DBrowserContext .prototype .initialize .call (this);
|
|
114
|
+
const processEvent = X3DBrowserContext .prototype .initialize .call (this);
|
|
114
115
|
|
|
115
|
-
this .replaceWorld (this .createScene ());
|
|
116
|
+
this .replaceWorld (this .createScene ()) .catch (Function .prototype);
|
|
116
117
|
|
|
117
118
|
this [_DOMIntegration] = new DOMIntegration (this);
|
|
118
119
|
|
|
119
120
|
legacy .call (this);
|
|
120
121
|
|
|
122
|
+
processEvent .call (this);
|
|
123
|
+
|
|
121
124
|
// Print welcome message.
|
|
122
125
|
|
|
123
126
|
if (this .getInstanceId () > 1) return;
|
|
@@ -131,6 +134,7 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
131
134
|
" Shading language: " + this .getShadingLanguageVersion () + "\n" +
|
|
132
135
|
" Rendering Properties\n" +
|
|
133
136
|
" Antialiased: " + this .getAntialiased () + "\n" +
|
|
137
|
+
" Max samples: " + this .getMaxSamples () + "\n" +
|
|
134
138
|
" Depth size: " + this .getDepthSize () + " bits\n" +
|
|
135
139
|
" Color depth: " + this .getColorDepth () + " bits\n" +
|
|
136
140
|
" Max clip planes per shape: " + this .getMaxClipPlanes () + "\n" +
|
|
@@ -220,7 +224,7 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
220
224
|
|
|
221
225
|
await loadComponents (browser, $.data (component, "dependencies"), seen);
|
|
222
226
|
|
|
223
|
-
if (
|
|
227
|
+
if (!$.data (component, "external"))
|
|
224
228
|
return;
|
|
225
229
|
|
|
226
230
|
if (Features .NODE_ENV)
|
|
@@ -257,7 +261,7 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
257
261
|
|
|
258
262
|
if (arguments .length)
|
|
259
263
|
{
|
|
260
|
-
if (!
|
|
264
|
+
if (!(profile instanceof ProfileInfo))
|
|
261
265
|
throw new Error ("Couldn't create scene: profile must be of type ProfileInfo.");
|
|
262
266
|
|
|
263
267
|
scene .setProfile (profile);
|
|
@@ -266,7 +270,7 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
266
270
|
{
|
|
267
271
|
const component = arguments [i];
|
|
268
272
|
|
|
269
|
-
if (!
|
|
273
|
+
if (!(component instanceof ComponentInfo))
|
|
270
274
|
throw new Error ("Couldn't create scene: component must be of type ComponentInfo.");
|
|
271
275
|
|
|
272
276
|
scene .addComponent (component);
|
|
@@ -279,69 +283,77 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
279
283
|
},
|
|
280
284
|
replaceWorld: function (scene)
|
|
281
285
|
{
|
|
282
|
-
|
|
283
|
-
|
|
286
|
+
return new Promise ((resolve, reject) =>
|
|
287
|
+
{
|
|
288
|
+
this [_reject] ("Replacing world aborted.");
|
|
284
289
|
|
|
285
|
-
|
|
290
|
+
if (this [_fileLoader])
|
|
291
|
+
this [_fileLoader] .abort ();
|
|
286
292
|
|
|
287
|
-
|
|
288
|
-
{
|
|
289
|
-
this .getExecutionContext () .setLive (false);
|
|
290
|
-
this .shutdown () .processInterests ();
|
|
291
|
-
this .callBrowserCallbacks (X3DConstants .SHUTDOWN_EVENT);
|
|
292
|
-
this .callBrowserEventHandler ("shutdown");
|
|
293
|
-
}
|
|
293
|
+
this [_reject] = reject;
|
|
294
294
|
|
|
295
|
-
|
|
295
|
+
// Remove world.
|
|
296
296
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
297
|
+
if (this .initialized () .getValue ())
|
|
298
|
+
{
|
|
299
|
+
this .getExecutionContext () .setLive (false);
|
|
300
|
+
this .shutdown () .processInterests ();
|
|
301
|
+
this .callBrowserCallbacks (X3DConstants .SHUTDOWN_EVENT);
|
|
302
|
+
this .callBrowserEventHandler ("shutdown");
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// Replace world.
|
|
300
306
|
|
|
301
|
-
|
|
307
|
+
if (scene instanceof Fields .MFNode)
|
|
308
|
+
{
|
|
309
|
+
// VRML version of replaceWorld has a MFNode value as argument.
|
|
302
310
|
|
|
303
|
-
|
|
311
|
+
const rootNodes = scene;
|
|
304
312
|
|
|
305
|
-
|
|
306
|
-
scene .isLive () .addInterest (rootNode .getValue () .getExecutionContext () .isLive ());
|
|
313
|
+
scene = this .createScene ();
|
|
307
314
|
|
|
308
|
-
|
|
309
|
-
|
|
315
|
+
for (const rootNode of rootNodes)
|
|
316
|
+
scene .isLive () .addInterest (rootNode .getValue () .getExecutionContext () .isLive ());
|
|
310
317
|
|
|
311
|
-
|
|
312
|
-
|
|
318
|
+
scene .setRootNodes (rootNodes);
|
|
319
|
+
}
|
|
313
320
|
|
|
314
|
-
|
|
321
|
+
if (!(scene instanceof X3DScene))
|
|
322
|
+
scene = this .createScene ();
|
|
315
323
|
|
|
316
|
-
|
|
317
|
-
scene .setExecutionContext (scene);
|
|
324
|
+
// Detach scene from parent.
|
|
318
325
|
|
|
319
|
-
|
|
326
|
+
scene .getExecutionContext () .isLive () .removeInterest ("setLive", scene);
|
|
327
|
+
scene .setExecutionContext (scene);
|
|
320
328
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
329
|
+
// Replace.
|
|
330
|
+
|
|
331
|
+
this .setDescription ("");
|
|
332
|
+
this .getBrowserOptions () .configure ();
|
|
333
|
+
this .setBrowserLoading (true);
|
|
334
|
+
this ._loadCount .addInterest ("checkLoadCount", this, resolve);
|
|
325
335
|
|
|
326
|
-
|
|
327
|
-
|
|
336
|
+
for (const object of scene .getLoadingObjects ())
|
|
337
|
+
this .addLoadingObject (object);
|
|
328
338
|
|
|
329
|
-
|
|
330
|
-
|
|
339
|
+
this .setExecutionContext (scene);
|
|
340
|
+
this .getWorld () .bindBindables ();
|
|
331
341
|
|
|
332
|
-
|
|
342
|
+
scene .setLive (this .isLive () .getValue ());
|
|
343
|
+
});
|
|
333
344
|
},
|
|
334
|
-
checkLoadCount: function (loadCount)
|
|
345
|
+
checkLoadCount: function (resolve, loadCount)
|
|
335
346
|
{
|
|
336
347
|
if (loadCount .getValue ())
|
|
337
348
|
return;
|
|
338
349
|
|
|
339
350
|
loadCount .removeInterest ("checkLoadCount", this);
|
|
351
|
+
this .setBrowserLoading (false);
|
|
340
352
|
this .initialized () .set (this .getCurrentTime ());
|
|
341
353
|
this .initialized () .processInterests ();
|
|
342
354
|
this .callBrowserCallbacks (X3DConstants .INITIALIZED_EVENT);
|
|
343
355
|
this .callBrowserEventHandler ("initialized load");
|
|
344
|
-
|
|
356
|
+
resolve ();
|
|
345
357
|
},
|
|
346
358
|
createVrmlFromString: function (vrmlSyntax)
|
|
347
359
|
{
|
|
@@ -357,7 +369,7 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
357
369
|
fileLoader = new FileLoader (this .getWorld ()),
|
|
358
370
|
scene = fileLoader .createX3DFromString (currentScene .getWorldURL (), x3dSyntax);
|
|
359
371
|
|
|
360
|
-
if (!
|
|
372
|
+
if (!external)
|
|
361
373
|
{
|
|
362
374
|
currentScene .isLive () .addInterest ("setLive", scene);
|
|
363
375
|
scene .setExecutionContext (currentScene);
|
|
@@ -371,15 +383,15 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
371
383
|
node = X3DCast (X3DConstants .X3DNode, node, false);
|
|
372
384
|
event = String (event);
|
|
373
385
|
|
|
374
|
-
if (!
|
|
386
|
+
if (!(url instanceof Fields .MFString))
|
|
375
387
|
throw new Error ("Browser.createVrmlFromURL: url must be of type MFString.");
|
|
376
388
|
|
|
377
|
-
if (!
|
|
389
|
+
if (!node)
|
|
378
390
|
throw new Error ("Browser.createVrmlFromURL: node must be of type X3DNode.");
|
|
379
391
|
|
|
380
392
|
const field = node .getField (event);
|
|
381
393
|
|
|
382
|
-
if (!
|
|
394
|
+
if (!field .isInput ())
|
|
383
395
|
throw new Error ("Browser.createVrmlFromURL: event named '" + event + "' must be a input field.");
|
|
384
396
|
|
|
385
397
|
if (field .getType () !== X3DConstants .MFNode)
|
|
@@ -388,19 +400,19 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
388
400
|
const
|
|
389
401
|
currentScene = this .currentScene,
|
|
390
402
|
external = this .isExternal (),
|
|
391
|
-
|
|
403
|
+
fileLoader = new FileLoader (this .getWorld ());
|
|
392
404
|
|
|
393
|
-
this .addLoadingObject (
|
|
405
|
+
this .addLoadingObject (fileLoader);
|
|
394
406
|
|
|
395
|
-
|
|
407
|
+
fileLoader .createX3DFromURL (url, null, (scene) =>
|
|
396
408
|
{
|
|
397
|
-
this .removeLoadingObject (
|
|
409
|
+
this .removeLoadingObject (fileLoader);
|
|
398
410
|
|
|
399
411
|
if (scene)
|
|
400
412
|
{
|
|
401
413
|
// Handle isLive for script scenes here:
|
|
402
414
|
|
|
403
|
-
if (!
|
|
415
|
+
if (!external)
|
|
404
416
|
{
|
|
405
417
|
currentScene .isLive () .addInterest ("setLive", scene);
|
|
406
418
|
scene .setExecutionContext (currentScene);
|
|
@@ -419,32 +431,48 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
419
431
|
|
|
420
432
|
// arguments .length === 1
|
|
421
433
|
|
|
422
|
-
if (!
|
|
434
|
+
if (!(url instanceof Fields .MFString))
|
|
423
435
|
throw new Error ("Browser.createX3DFromURL: url must be of type MFString.");
|
|
424
436
|
|
|
425
|
-
|
|
426
|
-
currentScene = this .currentScene,
|
|
427
|
-
external = this .isExternal (),
|
|
428
|
-
fileLoader = new FileLoader (this .getWorld ()),
|
|
429
|
-
scene = fileLoader .createX3DFromURL (url, null);
|
|
430
|
-
|
|
431
|
-
if (! external)
|
|
437
|
+
return new Promise ((resolve, reject) =>
|
|
432
438
|
{
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
439
|
+
const
|
|
440
|
+
currentScene = this .currentScene,
|
|
441
|
+
external = this .isExternal (),
|
|
442
|
+
fileLoader = new FileLoader (this .getWorld ());
|
|
437
443
|
|
|
438
|
-
|
|
444
|
+
this .addLoadingObject (fileLoader);
|
|
445
|
+
|
|
446
|
+
fileLoader .createX3DFromURL (url, null, (scene) =>
|
|
447
|
+
{
|
|
448
|
+
this .removeLoadingObject (fileLoader);
|
|
449
|
+
|
|
450
|
+
if (scene)
|
|
451
|
+
{
|
|
452
|
+
if (!external)
|
|
453
|
+
{
|
|
454
|
+
currentScene .isLive () .addInterest ("setLive", scene);
|
|
455
|
+
scene .setExecutionContext (currentScene);
|
|
456
|
+
scene .setLive (currentScene .getLive ());
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
resolve (scene);
|
|
460
|
+
}
|
|
461
|
+
else
|
|
462
|
+
{
|
|
463
|
+
reject (new Error ("Couldn't load X3D file."));
|
|
464
|
+
}
|
|
465
|
+
})
|
|
466
|
+
});
|
|
439
467
|
},
|
|
440
468
|
loadURL: function (url, parameter = new Fields .MFString ())
|
|
441
469
|
{
|
|
442
470
|
return new Promise ((resolve, reject) =>
|
|
443
471
|
{
|
|
444
|
-
if (!
|
|
472
|
+
if (!(url instanceof Fields .MFString))
|
|
445
473
|
throw new Error ("Browser.loadURL: url must be of type MFString.");
|
|
446
474
|
|
|
447
|
-
if (!
|
|
475
|
+
if (!(parameter instanceof Fields .MFString))
|
|
448
476
|
throw new Error ("Browser.loadURL: parameter must be of type MFString.");
|
|
449
477
|
|
|
450
478
|
// Cancel any loading.
|
|
@@ -452,33 +480,31 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
452
480
|
this ._loadCount .removeInterest ("checkLoadCount", this);
|
|
453
481
|
this .prepareEvents () .removeInterest ("updateInitialized", this);
|
|
454
482
|
|
|
455
|
-
if (this [
|
|
456
|
-
this [
|
|
483
|
+
if (this [_fileLoader])
|
|
484
|
+
this [_fileLoader] .abort ();
|
|
457
485
|
|
|
458
486
|
// Start loading.
|
|
459
487
|
|
|
460
488
|
this .setBrowserLoading (true);
|
|
461
489
|
this .addLoadingObject (this);
|
|
462
490
|
|
|
463
|
-
const
|
|
491
|
+
const fileLoader = this [_fileLoader] = new FileLoader (this .getWorld ());
|
|
464
492
|
|
|
465
|
-
|
|
493
|
+
fileLoader .createX3DFromURL (url, parameter, (scene) =>
|
|
466
494
|
{
|
|
467
|
-
if (
|
|
495
|
+
if (fileLoader !== this [_fileLoader])
|
|
468
496
|
{
|
|
469
|
-
reject ("Loading of X3D file aborted.");
|
|
497
|
+
reject (new Error ("Loading of X3D file aborted."));
|
|
470
498
|
return;
|
|
471
499
|
}
|
|
472
500
|
|
|
473
|
-
if (!
|
|
501
|
+
if (!this .getBrowserOption ("SplashScreen"))
|
|
474
502
|
this .getCanvas () .show ();
|
|
475
503
|
|
|
476
504
|
if (scene)
|
|
477
505
|
{
|
|
478
|
-
this .replaceWorld (scene);
|
|
506
|
+
this .replaceWorld (scene) .then (resolve) .catch (reject);
|
|
479
507
|
this .removeLoadingObject (this);
|
|
480
|
-
|
|
481
|
-
resolve ();
|
|
482
508
|
}
|
|
483
509
|
else
|
|
484
510
|
{
|
|
@@ -492,14 +518,14 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
492
518
|
.text (_ ("Failed loading world."));
|
|
493
519
|
});
|
|
494
520
|
|
|
495
|
-
reject ("Couldn't load X3D file.");
|
|
521
|
+
reject (new Error ("Couldn't load X3D file."));
|
|
496
522
|
}
|
|
497
523
|
},
|
|
498
524
|
(fragment) =>
|
|
499
525
|
{
|
|
500
|
-
if (
|
|
526
|
+
if (fileLoader !== this [_fileLoader])
|
|
501
527
|
{
|
|
502
|
-
reject ("Change viewpoint aborted.");
|
|
528
|
+
reject (new Error ("Change viewpoint aborted."));
|
|
503
529
|
return;
|
|
504
530
|
}
|
|
505
531
|
|
|
@@ -511,9 +537,9 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
511
537
|
},
|
|
512
538
|
(url, target) =>
|
|
513
539
|
{
|
|
514
|
-
if (
|
|
540
|
+
if (fileLoader !== this [_fileLoader])
|
|
515
541
|
{
|
|
516
|
-
reject ("Loading of file aborted.");
|
|
542
|
+
reject (new Error ("Loading of file aborted."));
|
|
517
543
|
return;
|
|
518
544
|
}
|
|
519
545
|
|
|
@@ -564,14 +590,14 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
564
590
|
}
|
|
565
591
|
};
|
|
566
592
|
})(),
|
|
567
|
-
importDocument: function (dom
|
|
593
|
+
importDocument: function (dom)
|
|
568
594
|
{
|
|
569
595
|
const
|
|
570
596
|
currentScene = this .currentScene,
|
|
571
597
|
scene = this .createScene (),
|
|
572
598
|
external = this .isExternal ();
|
|
573
599
|
|
|
574
|
-
if (!
|
|
600
|
+
if (!external)
|
|
575
601
|
{
|
|
576
602
|
currentScene .isLive () .addInterest ("setLive", scene);
|
|
577
603
|
scene .setExecutionContext (currentScene);
|
|
@@ -582,21 +608,16 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
582
608
|
|
|
583
609
|
parser .setInput (dom)
|
|
584
610
|
|
|
585
|
-
|
|
586
|
-
return new Promise (parser .parseIntoScene .bind (parser));
|
|
587
|
-
|
|
588
|
-
parser .parseIntoScene ();
|
|
589
|
-
|
|
590
|
-
return scene;
|
|
611
|
+
return new Promise (parser .parseIntoScene .bind (parser));
|
|
591
612
|
},
|
|
592
|
-
importJS: function (json
|
|
613
|
+
importJS: function (json)
|
|
593
614
|
{
|
|
594
615
|
const
|
|
595
616
|
currentScene = this .currentScene,
|
|
596
617
|
scene = this .createScene (),
|
|
597
618
|
external = this .isExternal ();
|
|
598
619
|
|
|
599
|
-
if (!
|
|
620
|
+
if (!external)
|
|
600
621
|
{
|
|
601
622
|
currentScene .isLive () .addInterest ("setLive", scene);
|
|
602
623
|
scene .setExecutionContext (currentScene);
|
|
@@ -607,12 +628,7 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
607
628
|
|
|
608
629
|
parser .setInput (json);
|
|
609
630
|
|
|
610
|
-
|
|
611
|
-
return new Promise (parser .parseIntoScene .bind (parser));
|
|
612
|
-
|
|
613
|
-
parser .parseIntoScene ();
|
|
614
|
-
|
|
615
|
-
return scene;
|
|
631
|
+
return new Promise (parser .parseIntoScene .bind (parser));
|
|
616
632
|
},
|
|
617
633
|
getBrowserProperty: function (name)
|
|
618
634
|
{
|
|
@@ -630,13 +646,28 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
630
646
|
{
|
|
631
647
|
return this .getRenderingProperties () .getField (name) .getValue ();
|
|
632
648
|
},
|
|
649
|
+
viewAll: function (layerNode)
|
|
650
|
+
{
|
|
651
|
+
layerNode = X3DCast (X3DConstants .X3DLayerNode, layerNode);
|
|
652
|
+
|
|
653
|
+
if (!layerNode)
|
|
654
|
+
layerNode = this .getActiveLayer ();
|
|
655
|
+
|
|
656
|
+
if (!layerNode)
|
|
657
|
+
return;
|
|
658
|
+
|
|
659
|
+
layerNode .getViewpoint () ._viewAll = true;
|
|
660
|
+
},
|
|
633
661
|
firstViewpoint: function (layerNode)
|
|
634
662
|
{
|
|
635
|
-
layerNode = X3DCast (X3DConstants .X3DLayerNode, layerNode
|
|
663
|
+
layerNode = X3DCast (X3DConstants .X3DLayerNode, layerNode);
|
|
636
664
|
|
|
637
|
-
if (!
|
|
665
|
+
if (!layerNode)
|
|
638
666
|
layerNode = this .getActiveLayer ();
|
|
639
667
|
|
|
668
|
+
if (!layerNode)
|
|
669
|
+
return;
|
|
670
|
+
|
|
640
671
|
const viewpoints = layerNode .getUserViewpoints ();
|
|
641
672
|
|
|
642
673
|
if (viewpoints .length)
|
|
@@ -644,11 +675,14 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
644
675
|
},
|
|
645
676
|
previousViewpoint: function (layerNode)
|
|
646
677
|
{
|
|
647
|
-
layerNode = X3DCast (X3DConstants .X3DLayerNode, layerNode
|
|
678
|
+
layerNode = X3DCast (X3DConstants .X3DLayerNode, layerNode);
|
|
648
679
|
|
|
649
|
-
if (!
|
|
680
|
+
if (!layerNode)
|
|
650
681
|
layerNode = this .getActiveLayer ();
|
|
651
682
|
|
|
683
|
+
if (!layerNode)
|
|
684
|
+
return;
|
|
685
|
+
|
|
652
686
|
const viewpoints = layerNode .getUserViewpoints ();
|
|
653
687
|
|
|
654
688
|
if (viewpoints .length === 0)
|
|
@@ -673,11 +707,14 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
673
707
|
},
|
|
674
708
|
nextViewpoint: function (layerNode)
|
|
675
709
|
{
|
|
676
|
-
layerNode = X3DCast (X3DConstants .X3DLayerNode, layerNode
|
|
710
|
+
layerNode = X3DCast (X3DConstants .X3DLayerNode, layerNode);
|
|
677
711
|
|
|
678
|
-
if (!
|
|
712
|
+
if (!layerNode)
|
|
679
713
|
layerNode = this .getActiveLayer ();
|
|
680
714
|
|
|
715
|
+
if (!layerNode)
|
|
716
|
+
return;
|
|
717
|
+
|
|
681
718
|
const viewpoints = layerNode .getUserViewpoints ();
|
|
682
719
|
|
|
683
720
|
if (viewpoints .length === 0)
|
|
@@ -702,11 +739,14 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
702
739
|
},
|
|
703
740
|
lastViewpoint: function (layerNode)
|
|
704
741
|
{
|
|
705
|
-
layerNode = X3DCast (X3DConstants .X3DLayerNode, layerNode
|
|
742
|
+
layerNode = X3DCast (X3DConstants .X3DLayerNode, layerNode);
|
|
706
743
|
|
|
707
|
-
if (!
|
|
744
|
+
if (!layerNode)
|
|
708
745
|
layerNode = this .getActiveLayer ();
|
|
709
746
|
|
|
747
|
+
if (!layerNode)
|
|
748
|
+
return;
|
|
749
|
+
|
|
710
750
|
const viewpoints = layerNode .getUserViewpoints ();
|
|
711
751
|
|
|
712
752
|
if (viewpoints .length)
|
|
@@ -720,32 +760,32 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
720
760
|
layerNode = this .getActiveLayer ();
|
|
721
761
|
}
|
|
722
762
|
|
|
723
|
-
layerNode = X3DCast (X3DConstants .X3DLayerNode, layerNode
|
|
763
|
+
layerNode = X3DCast (X3DConstants .X3DLayerNode, layerNode);
|
|
724
764
|
|
|
725
|
-
if (!
|
|
765
|
+
if (!layerNode)
|
|
726
766
|
layerNode = this .getActiveLayer ();
|
|
727
767
|
|
|
728
|
-
if (layerNode
|
|
768
|
+
if (!layerNode)
|
|
769
|
+
return;
|
|
770
|
+
|
|
771
|
+
for (const viewpointNode of layerNode .getViewpoints () .get ())
|
|
729
772
|
{
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
break;
|
|
736
|
-
}
|
|
737
|
-
}
|
|
773
|
+
if (viewpointNode .getName () !== name)
|
|
774
|
+
continue;
|
|
775
|
+
|
|
776
|
+
this .bindViewpoint (layerNode, viewpointNode);
|
|
777
|
+
break;
|
|
738
778
|
}
|
|
739
779
|
},
|
|
740
780
|
bindViewpoint: function (layerNode, viewpointNode)
|
|
741
781
|
{
|
|
742
|
-
layerNode = X3DCast (X3DConstants .X3DLayerNode, layerNode
|
|
743
|
-
viewpointNode = X3DCast (X3DConstants .X3DViewpointNode, viewpointNode
|
|
782
|
+
layerNode = X3DCast (X3DConstants .X3DLayerNode, layerNode);
|
|
783
|
+
viewpointNode = X3DCast (X3DConstants .X3DViewpointNode, viewpointNode);
|
|
744
784
|
|
|
745
|
-
if (!
|
|
785
|
+
if (!layerNode)
|
|
746
786
|
throw new Error ("Browser.bindViewpoint: layerNode must be of type X3DLayerNode.")
|
|
747
787
|
|
|
748
|
-
if (!
|
|
788
|
+
if (!viewpointNode)
|
|
749
789
|
throw new Error ("Browser.bindViewpoint: viewpointNode must be of type X3DViewpointNode.")
|
|
750
790
|
|
|
751
791
|
viewpointNode .setVRMLTransition (true);
|
|
@@ -179,7 +179,7 @@ X3DBrowserContext .prototype = Object .assign (Object .create (X3DBaseNode .prot
|
|
|
179
179
|
|
|
180
180
|
// Process events from context creation. This will setup nodes like
|
|
181
181
|
// geometry option nodes before any node is created.
|
|
182
|
-
this [_processEvents]
|
|
182
|
+
return this [_processEvents];
|
|
183
183
|
},
|
|
184
184
|
initialized: function ()
|
|
185
185
|
{
|
|
@@ -213,15 +213,15 @@ X3DBrowserContext .prototype = Object .assign (Object .create (X3DBaseNode .prot
|
|
|
213
213
|
{
|
|
214
214
|
return this [_world];
|
|
215
215
|
},
|
|
216
|
+
getExecutionContext: function ()
|
|
217
|
+
{
|
|
218
|
+
return this [_world] .getExecutionContext ();
|
|
219
|
+
},
|
|
216
220
|
setExecutionContext: function (executionContext)
|
|
217
221
|
{
|
|
218
222
|
this [_world] = new X3DWorld (executionContext);
|
|
219
223
|
this [_world] .setup ();
|
|
220
224
|
},
|
|
221
|
-
getExecutionContext: function ()
|
|
222
|
-
{
|
|
223
|
-
return this [_world] .getExecutionContext ();
|
|
224
|
-
},
|
|
225
225
|
addBrowserEvent: function ()
|
|
226
226
|
{
|
|
227
227
|
if (this [_changedTime] === this .getCurrentTime ())
|
|
@@ -280,9 +280,11 @@ X3DBrowserContext .prototype = Object .assign (Object .create (X3DBaseNode .prot
|
|
|
280
280
|
this [_processEvents] ();
|
|
281
281
|
|
|
282
282
|
const t3 = Date .now ();
|
|
283
|
+
this .getFrameBuffer () .bind ();
|
|
283
284
|
gl .clearColor (0, 0, 0, 0);
|
|
284
285
|
gl .clear (gl .COLOR_BUFFER_BIT);
|
|
285
286
|
this [_world] .traverse (TraverseType .DISPLAY, null);
|
|
287
|
+
this .getFrameBuffer () .blit ();
|
|
286
288
|
this [_displayTime] = Date .now () - t3;
|
|
287
289
|
|
|
288
290
|
this [_browserTime] = Date .now () - t0;
|
|
@@ -62,9 +62,9 @@ WorldInfo .prototype = Object .assign (Object .create (X3DInfoNode .prototype),
|
|
|
62
62
|
{
|
|
63
63
|
constructor: WorldInfo,
|
|
64
64
|
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new FieldDefinitionArray ([
|
|
65
|
-
new X3DFieldDefinition (X3DConstants .inputOutput,
|
|
66
|
-
new X3DFieldDefinition (X3DConstants .
|
|
67
|
-
new X3DFieldDefinition (X3DConstants .
|
|
65
|
+
new X3DFieldDefinition (X3DConstants .inputOutput, "metadata", new Fields .SFNode ()),
|
|
66
|
+
new X3DFieldDefinition (X3DConstants .initializeOnly, "title", new Fields .SFString ()),
|
|
67
|
+
new X3DFieldDefinition (X3DConstants .initializeOnly, "info", new Fields .MFString ()),
|
|
68
68
|
]),
|
|
69
69
|
getTypeName: function ()
|
|
70
70
|
{
|
|
@@ -335,9 +335,9 @@ X3DNode .prototype = Object .assign (Object .create (X3DBaseNode .prototype),
|
|
|
335
335
|
if (field .getReferences () .size === 0 || !generator .ExecutionContext () || sharedNode)
|
|
336
336
|
{
|
|
337
337
|
generator .string += generator .Indent ();
|
|
338
|
-
generator .string += generator .
|
|
338
|
+
generator .string += generator .AccessType (field .getAccessType ()) .padEnd (accessTypeLength, " ");
|
|
339
339
|
generator .string += generator .Space ();
|
|
340
|
-
generator .string +=
|
|
340
|
+
generator .string += field .getTypeName () .padEnd (fieldTypeLength, " ");
|
|
341
341
|
generator .string += generator .Space ();
|
|
342
342
|
generator .string += field .getName ();
|
|
343
343
|
|
|
@@ -361,9 +361,9 @@ X3DNode .prototype = Object .assign (Object .create (X3DBaseNode .prototype),
|
|
|
361
361
|
// Output user defined reference field
|
|
362
362
|
|
|
363
363
|
generator .string += generator .Indent ();
|
|
364
|
-
generator .string += generator .
|
|
364
|
+
generator .string += generator .AccessType (field .getAccessType ()) .padEnd (accessTypeLength, " ");
|
|
365
365
|
generator .string += generator .Space ();
|
|
366
|
-
generator .string +=
|
|
366
|
+
generator .string += field .getTypeName () .padEnd (fieldTypeLength, " ");
|
|
367
367
|
generator .string += generator .Space ();
|
|
368
368
|
generator .string += field .getName ();
|
|
369
369
|
generator .string += generator .Space ();
|
|
@@ -381,9 +381,9 @@ X3DNode .prototype = Object .assign (Object .create (X3DBaseNode .prototype),
|
|
|
381
381
|
{
|
|
382
382
|
generator .string += generator .Break ();
|
|
383
383
|
generator .string += generator .Indent ();
|
|
384
|
-
generator .string += generator .
|
|
384
|
+
generator .string += generator .AccessType (field .getAccessType ()) .padEnd (accessTypeLength, " ");
|
|
385
385
|
generator .string += generator .Space ();
|
|
386
|
-
generator .string +=
|
|
386
|
+
generator .string += field .getTypeName () .padEnd (fieldTypeLength, " ");
|
|
387
387
|
generator .string += generator .Space ();
|
|
388
388
|
generator .string += field .getName ();
|
|
389
389
|
|
|
@@ -1225,7 +1225,7 @@ X3DNode .prototype = Object .assign (Object .create (X3DBaseNode .prototype),
|
|
|
1225
1225
|
generator .string += generator .TidyBreak ();
|
|
1226
1226
|
}
|
|
1227
1227
|
|
|
1228
|
-
generator .
|
|
1228
|
+
generator .JSONRemoveComma ();
|
|
1229
1229
|
|
|
1230
1230
|
// End
|
|
1231
1231
|
|