x_ite 8.11.7 → 8.11.8
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/README.md +4 -0
- 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 +25 -25
- 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 +23 -23
- 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 +26 -26
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +24 -24
- 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 +18 -18
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +19 -19
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +37 -37
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +24 -24
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +14 -14
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +30 -30
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +18 -18
- 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 +154 -145
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/package.json +16 -13
- package/.github/workflows/pages-deploy.yml +0 -64
- package/.vscode/launch.json +0 -15
- package/.vscode/settings.json +0 -44
- package/.vscode/tasks.json +0 -31
- package/Makefile +0 -82
- package/build/bin/bump.pl +0 -21
- package/build/bin/tests.pl +0 -203
- package/build/bin/version.pl +0 -157
- package/build/docs/components.js +0 -218
- package/build/docs/glTF-samples.pl +0 -151
- package/build/docs/nodes.pl +0 -434
- package/build/docs/tags.pl +0 -28
- package/build/src/nodes.pl +0 -41
- package/docs/Gemfile +0 -19
- package/docs/LICENSE +0 -21
- package/docs/README.md +0 -46
- package/docs/_config.yml +0 -203
- package/docs/_data/assets/cross_origin.yml +0 -62
- package/docs/_data/assets/self_host.yml +0 -51
- package/docs/_data/contact.yml +0 -30
- package/docs/_data/locales/bg-BG.yml +0 -83
- package/docs/_data/locales/de-DE.yml +0 -82
- package/docs/_data/locales/en.yml +0 -93
- package/docs/_data/locales/es-ES.yml +0 -79
- package/docs/_data/locales/fr-FR.yml +0 -79
- package/docs/_data/locales/hu-HU.yml +0 -81
- package/docs/_data/locales/id-ID.yml +0 -79
- package/docs/_data/locales/ko-KR.yml +0 -86
- package/docs/_data/locales/my-MM.yml +0 -79
- package/docs/_data/locales/pt-BR.yml +0 -79
- package/docs/_data/locales/ru-RU.yml +0 -79
- package/docs/_data/locales/tr-TR.yml +0 -79
- package/docs/_data/locales/uk-UA.yml +0 -79
- package/docs/_data/locales/vi-VN.yml +0 -77
- package/docs/_data/locales/zh-CN.yml +0 -85
- package/docs/_data/nav/components-CADGeometry.yml +0 -14
- package/docs/_data/nav/components-Core.yml +0 -16
- package/docs/_data/nav/components-CubeMapTexturing.yml +0 -8
- package/docs/_data/nav/components-DIS.yml +0 -14
- package/docs/_data/nav/components-EnvironmentalEffects.yml +0 -12
- package/docs/_data/nav/components-EnvironmentalSensor.yml +0 -8
- package/docs/_data/nav/components-EventUtilities.yml +0 -16
- package/docs/_data/nav/components-Followers.yml +0 -30
- package/docs/_data/nav/components-Geometry2D.yml +0 -18
- package/docs/_data/nav/components-Geometry3D.yml +0 -16
- package/docs/_data/nav/components-Geospatial.yml +0 -24
- package/docs/_data/nav/components-Grouping.yml +0 -10
- package/docs/_data/nav/components-HAnim.yml +0 -14
- package/docs/_data/nav/components-Interpolation.yml +0 -28
- package/docs/_data/nav/components-KeyDeviceSensor.yml +0 -6
- package/docs/_data/nav/components-Layering.yml +0 -8
- package/docs/_data/nav/components-Layout.yml +0 -12
- package/docs/_data/nav/components-Lighting.yml +0 -10
- package/docs/_data/nav/components-NURBS.yml +0 -30
- package/docs/_data/nav/components-Navigation.yml +0 -16
- package/docs/_data/nav/components-Networking.yml +0 -8
- package/docs/_data/nav/components-ParticleSystems.yml +0 -22
- package/docs/_data/nav/components-Picking.yml +0 -12
- package/docs/_data/nav/components-PointingDeviceSensor.yml +0 -10
- package/docs/_data/nav/components-Rendering.yml +0 -30
- package/docs/_data/nav/components-RigidBodyPhysics.yml +0 -30
- package/docs/_data/nav/components-Scripting.yml +0 -4
- package/docs/_data/nav/components-Shaders.yml +0 -18
- package/docs/_data/nav/components-Shape.yml +0 -22
- package/docs/_data/nav/components-Sound.yml +0 -44
- package/docs/_data/nav/components-Text.yml +0 -6
- package/docs/_data/nav/components-TextureProjector.yml +0 -6
- package/docs/_data/nav/components-Texturing.yml +0 -22
- package/docs/_data/nav/components-Texturing3D.yml +0 -18
- package/docs/_data/nav/components-Time.yml +0 -4
- package/docs/_data/nav/components-VolumeRendering.yml +0 -28
- package/docs/_data/nav/components-X_ITE.yml +0 -4
- package/docs/_data/nav/main.yml +0 -26
- package/docs/_data/nav/reference.yml +0 -18
- package/docs/_data/nav/tutorials-animation-sensors-and-geometry.yml +0 -18
- package/docs/_data/nav/tutorials-basic.yml +0 -6
- package/docs/_data/nav/tutorials-optimize-your-scene.yml +0 -6
- package/docs/_data/nav/tutorials-scripts-and-prototypes.yml +0 -12
- package/docs/_data/nav/tutorials-shapes-geometry-and-appearance.yml +0 -16
- package/docs/_data/nav/tutorials-textures-lights-and-environment.yml +0 -20
- package/docs/_data/share.yml +0 -27
- package/docs/_includes/nav.html +0 -19
- package/docs/_includes/scripts.html +0 -3
- package/docs/_layouts/compress.html +0 -11
- package/docs/_layouts/redirect-page.html +0 -6
- package/docs/_layouts/wide.html +0 -52
- package/docs/_layouts/wrap.html +0 -4
- package/docs/_layouts/x_ite.html +0 -8
- package/docs/_plugins/no_date.rb +0 -11
- package/docs/_plugins/posts-lastmod-hook.rb +0 -14
- package/docs/_posts/accessing-the-external-browser.md +0 -312
- package/docs/_posts/browser-support.md +0 -53
- package/docs/_posts/components/CADGeometry/CADAssembly.md +0 -126
- package/docs/_posts/components/CADGeometry/CADFace.md +0 -113
- package/docs/_posts/components/CADGeometry/CADLayer.md +0 -126
- package/docs/_posts/components/CADGeometry/CADPart.md +0 -164
- package/docs/_posts/components/CADGeometry/IndexedQuadSet.md +0 -154
- package/docs/_posts/components/CADGeometry/QuadSet.md +0 -145
- package/docs/_posts/components/Core/MetadataBoolean.md +0 -83
- package/docs/_posts/components/Core/MetadataDouble.md +0 -84
- package/docs/_posts/components/Core/MetadataFloat.md +0 -84
- package/docs/_posts/components/Core/MetadataInteger.md +0 -83
- package/docs/_posts/components/Core/MetadataSet.md +0 -80
- package/docs/_posts/components/Core/MetadataString.md +0 -83
- package/docs/_posts/components/Core/WorldInfo.md +0 -65
- package/docs/_posts/components/CubeMapTexturing/ComposedCubeMapTexture.md +0 -123
- package/docs/_posts/components/CubeMapTexturing/GeneratedCubeMapTexture.md +0 -82
- package/docs/_posts/components/CubeMapTexturing/ImageCubeMapTexture.md +0 -112
- package/docs/_posts/components/DIS/DISEntityManager.md +0 -98
- package/docs/_posts/components/DIS/DISEntityTypeMapping.md +0 -131
- package/docs/_posts/components/DIS/EspduTransform.md +0 -566
- package/docs/_posts/components/DIS/ReceiverPdu.md +0 -235
- package/docs/_posts/components/DIS/SignalPdu.md +0 -239
- package/docs/_posts/components/DIS/TransmitterPdu.md +0 -299
- package/docs/_posts/components/EnvironmentalEffects/Background.md +0 -230
- package/docs/_posts/components/EnvironmentalEffects/Fog.md +0 -118
- package/docs/_posts/components/EnvironmentalEffects/FogCoordinate.md +0 -44
- package/docs/_posts/components/EnvironmentalEffects/LocalFog.md +0 -91
- package/docs/_posts/components/EnvironmentalEffects/TextureBackground.md +0 -194
- package/docs/_posts/components/EnvironmentalSensor/ProximitySensor.md +0 -118
- package/docs/_posts/components/EnvironmentalSensor/TransformSensor.md +0 -115
- package/docs/_posts/components/EnvironmentalSensor/VisibilitySensor.md +0 -89
- package/docs/_posts/components/EventUtilities/BooleanFilter.md +0 -75
- package/docs/_posts/components/EventUtilities/BooleanSequencer.md +0 -115
- package/docs/_posts/components/EventUtilities/BooleanToggle.md +0 -67
- package/docs/_posts/components/EventUtilities/BooleanTrigger.md +0 -64
- package/docs/_posts/components/EventUtilities/IntegerSequencer.md +0 -119
- package/docs/_posts/components/EventUtilities/IntegerTrigger.md +0 -76
- package/docs/_posts/components/EventUtilities/TimeTrigger.md +0 -68
- package/docs/_posts/components/Followers/ColorChaser.md +0 -101
- package/docs/_posts/components/Followers/ColorDamper.md +0 -105
- package/docs/_posts/components/Followers/CoordinateChaser.md +0 -100
- package/docs/_posts/components/Followers/CoordinateDamper.md +0 -100
- package/docs/_posts/components/Followers/OrientationChaser.md +0 -96
- package/docs/_posts/components/Followers/OrientationDamper.md +0 -100
- package/docs/_posts/components/Followers/PositionChaser.md +0 -96
- package/docs/_posts/components/Followers/PositionChaser2D.md +0 -96
- package/docs/_posts/components/Followers/PositionDamper.md +0 -100
- package/docs/_posts/components/Followers/PositionDamper2D.md +0 -100
- package/docs/_posts/components/Followers/ScalarChaser.md +0 -100
- package/docs/_posts/components/Followers/ScalarDamper.md +0 -100
- package/docs/_posts/components/Followers/TexCoordChaser2D.md +0 -96
- package/docs/_posts/components/Followers/TexCoordDamper2D.md +0 -100
- package/docs/_posts/components/Geometry2D/Arc2D.md +0 -96
- package/docs/_posts/components/Geometry2D/ArcClose2D.md +0 -115
- package/docs/_posts/components/Geometry2D/Circle2D.md +0 -66
- package/docs/_posts/components/Geometry2D/Disk2D.md +0 -93
- package/docs/_posts/components/Geometry2D/Polyline2D.md +0 -69
- package/docs/_posts/components/Geometry2D/Polypoint2D.md +0 -62
- package/docs/_posts/components/Geometry2D/Rectangle2D.md +0 -77
- package/docs/_posts/components/Geometry2D/TriangleSet2D.md +0 -77
- package/docs/_posts/components/Geometry3D/Box.md +0 -79
- package/docs/_posts/components/Geometry3D/Cone.md +0 -98
- package/docs/_posts/components/Geometry3D/Cylinder.md +0 -102
- package/docs/_posts/components/Geometry3D/ElevationGrid.md +0 -206
- package/docs/_posts/components/Geometry3D/Extrusion.md +0 -222
- package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +0 -260
- package/docs/_posts/components/Geometry3D/Sphere.md +0 -78
- package/docs/_posts/components/Geospatial/GeoCoordinate.md +0 -81
- package/docs/_posts/components/Geospatial/GeoElevationGrid.md +0 -225
- package/docs/_posts/components/Geospatial/GeoLOD.md +0 -184
- package/docs/_posts/components/Geospatial/GeoLocation.md +0 -148
- package/docs/_posts/components/Geospatial/GeoMetadata.md +0 -117
- package/docs/_posts/components/Geospatial/GeoOrigin.md +0 -84
- package/docs/_posts/components/Geospatial/GeoPositionInterpolator.md +0 -141
- package/docs/_posts/components/Geospatial/GeoProximitySensor.md +0 -158
- package/docs/_posts/components/Geospatial/GeoTouchSensor.md +0 -153
- package/docs/_posts/components/Geospatial/GeoTransform.md +0 -182
- package/docs/_posts/components/Geospatial/GeoViewpoint.md +0 -214
- package/docs/_posts/components/Grouping/Group.md +0 -108
- package/docs/_posts/components/Grouping/StaticGroup.md +0 -103
- package/docs/_posts/components/Grouping/Switch.md +0 -125
- package/docs/_posts/components/Grouping/Transform.md +0 -160
- package/docs/_posts/components/HAnim/HAnimDisplacer.md +0 -108
- package/docs/_posts/components/HAnim/HAnimHumanoid.md +0 -351
- package/docs/_posts/components/HAnim/HAnimJoint.md +0 -256
- package/docs/_posts/components/HAnim/HAnimMotion.md +0 -186
- package/docs/_posts/components/HAnim/HAnimSegment.md +0 -172
- package/docs/_posts/components/HAnim/HAnimSite.md +0 -176
- package/docs/_posts/components/Interpolation/ColorInterpolator.md +0 -103
- package/docs/_posts/components/Interpolation/CoordinateInterpolator.md +0 -102
- package/docs/_posts/components/Interpolation/CoordinateInterpolator2D.md +0 -102
- package/docs/_posts/components/Interpolation/EaseInEaseOut.md +0 -91
- package/docs/_posts/components/Interpolation/NormalInterpolator.md +0 -98
- package/docs/_posts/components/Interpolation/OrientationInterpolator.md +0 -102
- package/docs/_posts/components/Interpolation/PositionInterpolator.md +0 -102
- package/docs/_posts/components/Interpolation/PositionInterpolator2D.md +0 -106
- package/docs/_posts/components/Interpolation/ScalarInterpolator.md +0 -102
- package/docs/_posts/components/Interpolation/SplinePositionInterpolator.md +0 -118
- package/docs/_posts/components/Interpolation/SplinePositionInterpolator2D.md +0 -118
- package/docs/_posts/components/Interpolation/SplineScalarInterpolator.md +0 -122
- package/docs/_posts/components/Interpolation/SquadOrientationInterpolator.md +0 -102
- package/docs/_posts/components/KeyDeviceSensor/KeySensor.md +0 -120
- package/docs/_posts/components/KeyDeviceSensor/StringSensor.md +0 -92
- package/docs/_posts/components/Layering/Layer.md +0 -92
- package/docs/_posts/components/Layering/LayerSet.md +0 -84
- package/docs/_posts/components/Layering/Viewport.md +0 -113
- package/docs/_posts/components/Layout/Layout.md +0 -118
- package/docs/_posts/components/Layout/LayoutGroup.md +0 -118
- package/docs/_posts/components/Layout/LayoutLayer.md +0 -99
- package/docs/_posts/components/Layout/ScreenFontStyle.md +0 -164
- package/docs/_posts/components/Layout/ScreenGroup.md +0 -104
- package/docs/_posts/components/Lighting/DirectionalLight.md +0 -108
- package/docs/_posts/components/Lighting/EnvironmentLight.md +0 -87
- package/docs/_posts/components/Lighting/PointLight.md +0 -115
- package/docs/_posts/components/Lighting/SpotLight.md +0 -145
- package/docs/_posts/components/NURBS/Contour2D.md +0 -65
- package/docs/_posts/components/NURBS/ContourPolyline2D.md +0 -50
- package/docs/_posts/components/NURBS/CoordinateDouble.md +0 -51
- package/docs/_posts/components/NURBS/NurbsCurve.md +0 -75
- package/docs/_posts/components/NURBS/NurbsCurve2D.md +0 -70
- package/docs/_posts/components/NURBS/NurbsOrientationInterpolator.md +0 -86
- package/docs/_posts/components/NURBS/NurbsPatchSurface.md +0 -112
- package/docs/_posts/components/NURBS/NurbsPositionInterpolator.md +0 -86
- package/docs/_posts/components/NURBS/NurbsSet.md +0 -117
- package/docs/_posts/components/NURBS/NurbsSurfaceInterpolator.md +0 -110
- package/docs/_posts/components/NURBS/NurbsSweptSurface.md +0 -86
- package/docs/_posts/components/NURBS/NurbsSwungSurface.md +0 -76
- package/docs/_posts/components/NURBS/NurbsTextureCoordinate.md +0 -81
- package/docs/_posts/components/NURBS/NurbsTrimmedSurface.md +0 -124
- package/docs/_posts/components/Navigation/Billboard.md +0 -121
- package/docs/_posts/components/Navigation/Collision.md +0 -156
- package/docs/_posts/components/Navigation/LOD.md +0 -146
- package/docs/_posts/components/Navigation/NavigationInfo.md +0 -170
- package/docs/_posts/components/Navigation/OrthoViewpoint.md +0 -209
- package/docs/_posts/components/Navigation/Viewpoint.md +0 -213
- package/docs/_posts/components/Navigation/ViewpointGroup.md +0 -91
- package/docs/_posts/components/Networking/Anchor.md +0 -160
- package/docs/_posts/components/Networking/Inline.md +0 -161
- package/docs/_posts/components/Networking/LoadSensor.md +0 -123
- package/docs/_posts/components/ParticleSystems/BoundedPhysicsModel.md +0 -62
- package/docs/_posts/components/ParticleSystems/ConeEmitter.md +0 -95
- package/docs/_posts/components/ParticleSystems/ExplosionEmitter.md +0 -83
- package/docs/_posts/components/ParticleSystems/ForcePhysicsModel.md +0 -65
- package/docs/_posts/components/ParticleSystems/ParticleSystem.md +0 -249
- package/docs/_posts/components/ParticleSystems/PointEmitter.md +0 -87
- package/docs/_posts/components/ParticleSystems/PolylineEmitter.md +0 -106
- package/docs/_posts/components/ParticleSystems/SurfaceEmitter.md +0 -101
- package/docs/_posts/components/ParticleSystems/VolumeEmitter.md +0 -109
- package/docs/_posts/components/ParticleSystems/WindPhysicsModel.md +0 -72
- package/docs/_posts/components/Picking/LinePickSensor.md +0 -151
- package/docs/_posts/components/Picking/PickableGroup.md +0 -128
- package/docs/_posts/components/Picking/PointPickSensor.md +0 -133
- package/docs/_posts/components/Picking/PrimitivePickSensor.md +0 -126
- package/docs/_posts/components/Picking/VolumePickSensor.md +0 -124
- package/docs/_posts/components/PointingDeviceSensor/CylinderSensor.md +0 -147
- package/docs/_posts/components/PointingDeviceSensor/PlaneSensor.md +0 -137
- package/docs/_posts/components/PointingDeviceSensor/SphereSensor.md +0 -111
- package/docs/_posts/components/PointingDeviceSensor/TouchSensor.md +0 -121
- package/docs/_posts/components/Rendering/ClipPlane.md +0 -72
- package/docs/_posts/components/Rendering/Color.md +0 -56
- package/docs/_posts/components/Rendering/ColorRGBA.md +0 -65
- package/docs/_posts/components/Rendering/Coordinate.md +0 -49
- package/docs/_posts/components/Rendering/IndexedLineSet.md +0 -156
- package/docs/_posts/components/Rendering/IndexedTriangleFanSet.md +0 -149
- package/docs/_posts/components/Rendering/IndexedTriangleSet.md +0 -149
- package/docs/_posts/components/Rendering/IndexedTriangleStripSet.md +0 -141
- package/docs/_posts/components/Rendering/LineSet.md +0 -97
- package/docs/_posts/components/Rendering/Normal.md +0 -63
- package/docs/_posts/components/Rendering/PointSet.md +0 -89
- package/docs/_posts/components/Rendering/TriangleFanSet.md +0 -137
- package/docs/_posts/components/Rendering/TriangleSet.md +0 -133
- package/docs/_posts/components/Rendering/TriangleStripSet.md +0 -141
- package/docs/_posts/components/RigidBodyPhysics/BallJoint.md +0 -90
- package/docs/_posts/components/RigidBodyPhysics/CollidableOffset.md +0 -115
- package/docs/_posts/components/RigidBodyPhysics/CollidableShape.md +0 -118
- package/docs/_posts/components/RigidBodyPhysics/CollisionCollection.md +0 -95
- package/docs/_posts/components/RigidBodyPhysics/CollisionSensor.md +0 -74
- package/docs/_posts/components/RigidBodyPhysics/CollisionSpace.md +0 -106
- package/docs/_posts/components/RigidBodyPhysics/Contact.md +0 -121
- package/docs/_posts/components/RigidBodyPhysics/DoubleAxisHingeJoint.md +0 -164
- package/docs/_posts/components/RigidBodyPhysics/MotorJoint.md +0 -235
- package/docs/_posts/components/RigidBodyPhysics/RigidBody.md +0 -185
- package/docs/_posts/components/RigidBodyPhysics/RigidBodyCollection.md +0 -136
- package/docs/_posts/components/RigidBodyPhysics/SingleAxisHingeJoint.md +0 -118
- package/docs/_posts/components/RigidBodyPhysics/SliderJoint.md +0 -118
- package/docs/_posts/components/RigidBodyPhysics/UniversalJoint.md +0 -127
- package/docs/_posts/components/Scripting/Script.md +0 -139
- package/docs/_posts/components/Shaders/ComposedShader.md +0 -94
- package/docs/_posts/components/Shaders/FloatVertexAttribute.md +0 -74
- package/docs/_posts/components/Shaders/Matrix3VertexAttribute.md +0 -62
- package/docs/_posts/components/Shaders/Matrix4VertexAttribute.md +0 -62
- package/docs/_posts/components/Shaders/PackagedShader.md +0 -137
- package/docs/_posts/components/Shaders/ProgramShader.md +0 -91
- package/docs/_posts/components/Shaders/ShaderPart.md +0 -127
- package/docs/_posts/components/Shaders/ShaderProgram.md +0 -121
- package/docs/_posts/components/Shape/AcousticProperties.md +0 -80
- package/docs/_posts/components/Shape/Appearance.md +0 -130
- package/docs/_posts/components/Shape/FillProperties.md +0 -74
- package/docs/_posts/components/Shape/LineProperties.md +0 -71
- package/docs/_posts/components/Shape/Material.md +0 -235
- package/docs/_posts/components/Shape/PhysicalMaterial.md +0 -189
- package/docs/_posts/components/Shape/PointProperties.md +0 -83
- package/docs/_posts/components/Shape/Shape.md +0 -107
- package/docs/_posts/components/Shape/TwoSidedMaterial.md +0 -148
- package/docs/_posts/components/Shape/UnlitMaterial.md +0 -119
- package/docs/_posts/components/Sound/Analyser.md +0 -205
- package/docs/_posts/components/Sound/AudioClip.md +0 -223
- package/docs/_posts/components/Sound/AudioDestination.md +0 -128
- package/docs/_posts/components/Sound/BiquadFilter.md +0 -213
- package/docs/_posts/components/Sound/BufferAudioSource.md +0 -284
- package/docs/_posts/components/Sound/ChannelMerger.md +0 -108
- package/docs/_posts/components/Sound/ChannelSelector.md +0 -112
- package/docs/_posts/components/Sound/ChannelSplitter.md +0 -116
- package/docs/_posts/components/Sound/Convolver.md +0 -190
- package/docs/_posts/components/Sound/Delay.md +0 -185
- package/docs/_posts/components/Sound/DynamicsCompressor.md +0 -201
- package/docs/_posts/components/Sound/Gain.md +0 -177
- package/docs/_posts/components/Sound/ListenerPointSource.md +0 -171
- package/docs/_posts/components/Sound/MicrophoneSource.md +0 -145
- package/docs/_posts/components/Sound/OscillatorSource.md +0 -153
- package/docs/_posts/components/Sound/PeriodicWave.md +0 -83
- package/docs/_posts/components/Sound/Sound.md +0 -139
- package/docs/_posts/components/Sound/SpatialSound.md +0 -187
- package/docs/_posts/components/Sound/StreamAudioDestination.md +0 -132
- package/docs/_posts/components/Sound/StreamAudioSource.md +0 -145
- package/docs/_posts/components/Sound/WaveShaper.md +0 -189
- package/docs/_posts/components/Text/FontStyle.md +0 -171
- package/docs/_posts/components/Text/Text.md +0 -124
- package/docs/_posts/components/TextureProjector/TextureProjector.md +0 -111
- package/docs/_posts/components/TextureProjector/TextureProjectorParallel.md +0 -112
- package/docs/_posts/components/Texturing/ImageTexture.md +0 -138
- package/docs/_posts/components/Texturing/MovieTexture.md +0 -264
- package/docs/_posts/components/Texturing/MultiTexture.md +0 -128
- package/docs/_posts/components/Texturing/MultiTextureCoordinate.md +0 -64
- package/docs/_posts/components/Texturing/MultiTextureTransform.md +0 -69
- package/docs/_posts/components/Texturing/PixelTexture.md +0 -100
- package/docs/_posts/components/Texturing/TextureCoordinate.md +0 -62
- package/docs/_posts/components/Texturing/TextureCoordinateGenerator.md +0 -74
- package/docs/_posts/components/Texturing/TextureProperties.md +0 -162
- package/docs/_posts/components/Texturing/TextureTransform.md +0 -82
- package/docs/_posts/components/Texturing3D/ComposedTexture3D.md +0 -84
- package/docs/_posts/components/Texturing3D/ImageTexture3D.md +0 -141
- package/docs/_posts/components/Texturing3D/ImageTextureAtlas.md +0 -137
- package/docs/_posts/components/Texturing3D/PixelTexture3D.md +0 -87
- package/docs/_posts/components/Texturing3D/TextureCoordinate3D.md +0 -65
- package/docs/_posts/components/Texturing3D/TextureCoordinate4D.md +0 -64
- package/docs/_posts/components/Texturing3D/TextureTransform3D.md +0 -78
- package/docs/_posts/components/Texturing3D/TextureTransformMatrix3D.md +0 -67
- package/docs/_posts/components/Time/TimeSensor.md +0 -187
- package/docs/_posts/components/VolumeRendering/BlendedVolumeStyle.md +0 -113
- package/docs/_posts/components/VolumeRendering/BoundaryEnhancementVolumeStyle.md +0 -63
- package/docs/_posts/components/VolumeRendering/CartoonVolumeStyle.md +0 -86
- package/docs/_posts/components/VolumeRendering/ComposedVolumeStyle.md +0 -59
- package/docs/_posts/components/VolumeRendering/EdgeEnhancementVolumeStyle.md +0 -75
- package/docs/_posts/components/VolumeRendering/IsoSurfaceVolumeData.md +0 -138
- package/docs/_posts/components/VolumeRendering/OpacityMapVolumeStyle.md +0 -59
- package/docs/_posts/components/VolumeRendering/ProjectionVolumeStyle.md +0 -70
- package/docs/_posts/components/VolumeRendering/SegmentedVolumeData.md +0 -130
- package/docs/_posts/components/VolumeRendering/ShadedVolumeStyle.md +0 -83
- package/docs/_posts/components/VolumeRendering/SilhouetteEnhancementVolumeStyle.md +0 -71
- package/docs/_posts/components/VolumeRendering/ToneMappedVolumeStyle.md +0 -80
- package/docs/_posts/components/VolumeRendering/VolumeData.md +0 -105
- package/docs/_posts/components/X_ITE/BlendMode.md +0 -101
- package/docs/_posts/custom-shaders.md +0 -720
- package/docs/_posts/dom-integration.md +0 -237
- package/docs/_posts/features.md +0 -56
- package/docs/_posts/getting-started.md +0 -845
- package/docs/_posts/glossary.md +0 -344
- package/docs/_posts/how-to-configure-your-web-server.md +0 -61
- package/docs/_posts/laboratory/x3d-file-converter.md +0 -188
- package/docs/_posts/reference/browser-services.md +0 -466
- package/docs/_posts/reference/constants-services.md +0 -381
- package/docs/_posts/reference/ecmascript-object-and-function-definitions.md +0 -50
- package/docs/_posts/reference/field-services-and-objects.md +0 -1137
- package/docs/_posts/reference/prototype-services.md +0 -146
- package/docs/_posts/reference/route-services.md +0 -54
- package/docs/_posts/reference/scene-services.md +0 -392
- package/docs/_posts/reference/script-node-authoring-interface.md +0 -347
- package/docs/_posts/report-a-bug.md +0 -17
- package/docs/_posts/setup-a-localhost-server.md +0 -46
- package/docs/_posts/supported-nodes.md +0 -378
- package/docs/_posts/tutorials/adding-backgrounds.md +0 -273
- package/docs/_posts/tutorials/adding-fog.md +0 -72
- package/docs/_posts/tutorials/adding-sound.md +0 -333
- package/docs/_posts/tutorials/animating-transforms.md +0 -390
- package/docs/_posts/tutorials/basic-nodes.md +0 -312
- package/docs/_posts/tutorials/building-a-x3d-world.md +0 -174
- package/docs/_posts/tutorials/building-elevation-grids.md +0 -177
- package/docs/_posts/tutorials/building-extruded-shapes.md +0 -150
- package/docs/_posts/tutorials/building-primitive-shapes.md +0 -211
- package/docs/_posts/tutorials/building-shapes-out-of-points-lines-and-faces.md +0 -315
- package/docs/_posts/tutorials/controlling-appearance-with-materials.md +0 -193
- package/docs/_posts/tutorials/controlling-color-on-coordinate-based-geometry.md +0 -213
- package/docs/_posts/tutorials/controlling-detail.md +0 -137
- package/docs/_posts/tutorials/controlling-how-textures-are-mapped.md +0 -282
- package/docs/_posts/tutorials/controlling-navigation.md +0 -75
- package/docs/_posts/tutorials/controlling-shading-on-coordinate-based-geometry.md +0 -185
- package/docs/_posts/tutorials/controlling-the-viewpoint.md +0 -54
- package/docs/_posts/tutorials/creating-new-node-types.md +0 -340
- package/docs/_posts/tutorials/grouping-nodes.md +0 -242
- package/docs/_posts/tutorials/hello-world.md +0 -198
- package/docs/_posts/tutorials/improving-performance.md +0 -229
- package/docs/_posts/tutorials/increasing-rendering-speed.md +0 -115
- package/docs/_posts/tutorials/introducing-animation.md +0 -216
- package/docs/_posts/tutorials/introducing-script-use.md +0 -132
- package/docs/_posts/tutorials/introducing-x3d.md +0 -100
- package/docs/_posts/tutorials/lighting-your-world.md +0 -144
- package/docs/_posts/tutorials/mapping-textures.md +0 -217
- package/docs/_posts/tutorials/naming-nodes.md +0 -168
- package/docs/_posts/tutorials/overview.md +0 -83
- package/docs/_posts/tutorials/providing-information-about-your-world.md +0 -35
- package/docs/_posts/tutorials/sensing-the-viewer.md +0 -210
- package/docs/_posts/tutorials/sensing-viewer-actions.md +0 -219
- package/docs/_posts/tutorials/transforming-shapes.md +0 -275
- package/docs/_posts/tutorials/writing-program-scripts-with-ecmascript.md +0 -637
- package/docs/_posts/what's-new.md +0 -1115
- package/docs/_tabs/components.md +0 -383
- package/docs/_tabs/laboratory.md +0 -52
- package/docs/_tabs/playground.html +0 -407
- package/docs/_tabs/reference.md +0 -8
- package/docs/_tabs/tags.md +0 -5
- package/docs/_tabs/tutorials.md +0 -7
- package/docs/assets/X3D/teaser/Michroma-Regular.ttf +0 -0
- package/docs/assets/X3D/teaser/peakpx.jpg +0 -0
- package/docs/assets/X3D/teaser/teaser.x3d +0 -55
- package/docs/assets/css/style.scss +0 -320
- package/docs/assets/img/favicons/android-chrome-192x192.png +0 -0
- package/docs/assets/img/favicons/android-chrome-512x512.png +0 -0
- package/docs/assets/img/favicons/apple-touch-icon.png +0 -0
- package/docs/assets/img/favicons/favicon-16x16.png +0 -0
- package/docs/assets/img/favicons/favicon-32x32.png +0 -0
- package/docs/assets/img/favicons/favicon.ico +0 -0
- package/docs/assets/img/favicons/mstile-150x150.png +0 -0
- package/docs/assets/img/favicons/safari-pinned-tab.svg +0 -71
- 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/img/logo.png +0 -0
- package/docs/assets/js/example.js +0 -128
- package/docs/google3696ee938394d7b6.html +0 -1
- package/docs/laboratory/3d-l-system-generator.html +0 -169
- package/docs/laboratory/gltf-sample-viewer.html +0 -811
- package/docs/laboratory/online-dicom-and-nrrd-file-viewer.html +0 -72
- package/docs/laboratory/real-time-earth-quake-information.html +0 -50
- package/docs/laboratory/x3d-visual-blend-mode-editor.html +0 -228
- package/meta/logo/icon.svg +0 -432
- package/meta/logo/logo.png +0 -0
- package/meta/logo/logo.s.svg +0 -470
- package/meta/logo/logo.svg +0 -396
- package/src/LICENSE.txt +0 -46
- package/src/assets/components/Annotation.js +0 -74
- package/src/assets/components/CADGeometry.js +0 -74
- package/src/assets/components/CubeMapTexturing.js +0 -68
- package/src/assets/components/DIS.js +0 -72
- package/src/assets/components/EventUtilities.js +0 -78
- package/src/assets/components/Geometry2D.js +0 -78
- package/src/assets/components/Geospatial.js +0 -84
- package/src/assets/components/HAnim.js +0 -72
- package/src/assets/components/KeyDeviceSensor.js +0 -68
- package/src/assets/components/Layout.js +0 -74
- package/src/assets/components/NURBS.js +0 -94
- package/src/assets/components/ParticleSystems.js +0 -86
- package/src/assets/components/Picking.js +0 -74
- package/src/assets/components/RigidBodyPhysics.js +0 -94
- package/src/assets/components/Scripting.js +0 -64
- package/src/assets/components/Text.js +0 -68
- package/src/assets/components/TextureProjector.js +0 -66
- package/src/assets/components/Texturing3D.js +0 -78
- package/src/assets/components/VolumeRendering.js +0 -94
- package/src/assets/components/X_ITE.js +0 -62
- package/src/assets/fonts/DroidSerif-Bold.ttf +0 -0
- package/src/assets/fonts/DroidSerif-BoldItalic.ttf +0 -0
- package/src/assets/fonts/DroidSerif-Italic.ttf +0 -0
- package/src/assets/fonts/DroidSerif-Regular.ttf +0 -0
- package/src/assets/fonts/Ubuntu-B.ttf +0 -0
- package/src/assets/fonts/Ubuntu-BI.ttf +0 -0
- package/src/assets/fonts/Ubuntu-R.ttf +0 -0
- package/src/assets/fonts/Ubuntu-RI.ttf +0 -0
- package/src/assets/fonts/UbuntuMono-B.ttf +0 -0
- package/src/assets/fonts/UbuntuMono-BI.ttf +0 -0
- package/src/assets/fonts/UbuntuMono-R.ttf +0 -0
- package/src/assets/fonts/UbuntuMono-RI.ttf +0 -0
- package/src/assets/hatching/1.png +0 -0
- package/src/assets/hatching/10.png +0 -0
- package/src/assets/hatching/11.png +0 -0
- package/src/assets/hatching/12.png +0 -0
- package/src/assets/hatching/13.png +0 -0
- package/src/assets/hatching/14.png +0 -0
- package/src/assets/hatching/15.png +0 -0
- package/src/assets/hatching/16.png +0 -0
- package/src/assets/hatching/17.png +0 -0
- package/src/assets/hatching/18.png +0 -0
- package/src/assets/hatching/19.png +0 -0
- package/src/assets/hatching/2.png +0 -0
- package/src/assets/hatching/3.png +0 -0
- package/src/assets/hatching/4.png +0 -0
- package/src/assets/hatching/5.png +0 -0
- package/src/assets/hatching/6.png +0 -0
- package/src/assets/hatching/7.png +0 -0
- package/src/assets/hatching/8.png +0 -0
- package/src/assets/hatching/9.png +0 -0
- package/src/assets/images/ExamineViewer.png +0 -0
- package/src/assets/images/FlyViewer.png +0 -0
- package/src/assets/images/NoneViewer.png +0 -0
- package/src/assets/images/PlaneViewer.png +0 -0
- package/src/assets/images/PrimitiveQuality.png +0 -0
- package/src/assets/images/Shading.png +0 -0
- package/src/assets/images/TextureQuality.png +0 -0
- package/src/assets/images/Time.png +0 -0
- package/src/assets/images/Viewpoint.png +0 -0
- package/src/assets/images/WalkViewer.png +0 -0
- package/src/assets/images/go-next.png +0 -0
- package/src/assets/images/gtk-fullscreen.png +0 -0
- package/src/assets/images/gtk-leave-fullscreen.png +0 -0
- package/src/assets/images/gtk-zoom-fit.png +0 -0
- package/src/assets/images/gtk-zoom-in.png +0 -0
- package/src/assets/images/help-about.png +0 -0
- package/src/assets/images/icon.bw.png +0 -0
- package/src/assets/images/icon.png +0 -0
- package/src/assets/images/logo.128.png +0 -0
- package/src/assets/images/logo.bw.png +0 -0
- package/src/assets/images/logo.png +0 -0
- package/src/assets/lib/draco_decoder_gltf.js +0 -29
- package/src/assets/linetype/linetypes.png +0 -0
- package/src/assets/shaders/Types.glsl.js +0 -312
- package/src/assets/shaders/webgl1/Default.vs.js +0 -14
- package/src/assets/shaders/webgl1/Depth.fs.js +0 -25
- package/src/assets/shaders/webgl1/Depth.vs.js +0 -31
- package/src/assets/shaders/webgl1/Gouraud.fs.js +0 -40
- package/src/assets/shaders/webgl1/Gouraud.vs.js +0 -58
- package/src/assets/shaders/webgl1/PBR.fs.js +0 -366
- package/src/assets/shaders/webgl1/Phong.fs.js +0 -211
- package/src/assets/shaders/webgl1/Pointing.fs.js +0 -40
- package/src/assets/shaders/webgl1/Pointing.vs.js +0 -46
- package/src/assets/shaders/webgl1/Unlit.fs.js +0 -55
- package/src/assets/shaders/webgl1/include/ClipPlanes.glsl.js +0 -17
- package/src/assets/shaders/webgl1/include/Colors.glsl.js +0 -27
- package/src/assets/shaders/webgl1/include/Fog.glsl.js +0 -32
- package/src/assets/shaders/webgl1/include/Fragment.glsl.js +0 -137
- package/src/assets/shaders/webgl1/include/Hatch.glsl.js +0 -22
- package/src/assets/shaders/webgl1/include/Material.glsl.js +0 -59
- package/src/assets/shaders/webgl1/include/Normal.glsl.js +0 -48
- package/src/assets/shaders/webgl1/include/Perlin.glsl.js +0 -41
- package/src/assets/shaders/webgl1/include/Point.glsl.js +0 -47
- package/src/assets/shaders/webgl1/include/PointSize.glsl.js +0 -31
- package/src/assets/shaders/webgl1/include/Shadow.glsl.js +0 -314
- package/src/assets/shaders/webgl1/include/SpotFactor.glsl.js +0 -14
- package/src/assets/shaders/webgl1/include/Texture.glsl.js +0 -532
- package/src/assets/shaders/webgl1/include/Vertex.glsl.js +0 -154
- package/src/assets/shaders/webgl2/Compose.fs.js +0 -29
- package/src/assets/shaders/webgl2/Compose.vs.js +0 -14
- package/src/assets/shaders/webgl2/Default.vs.js +0 -16
- package/src/assets/shaders/webgl2/Depth.fs.js +0 -28
- package/src/assets/shaders/webgl2/Depth.vs.js +0 -37
- package/src/assets/shaders/webgl2/Gouraud.fs.js +0 -42
- package/src/assets/shaders/webgl2/Gouraud.vs.js +0 -60
- package/src/assets/shaders/webgl2/LineTransform.fs.js +0 -7
- package/src/assets/shaders/webgl2/LineTransform.vs.js +0 -90
- package/src/assets/shaders/webgl2/PBR.fs.js +0 -373
- package/src/assets/shaders/webgl2/Phong.fs.js +0 -225
- package/src/assets/shaders/webgl2/Pointing.fs.js +0 -49
- package/src/assets/shaders/webgl2/Pointing.vs.js +0 -68
- package/src/assets/shaders/webgl2/Unlit.fs.js +0 -60
- package/src/assets/shaders/webgl2/include/ClipPlanes.glsl.js +0 -17
- package/src/assets/shaders/webgl2/include/Colors.glsl.js +0 -27
- package/src/assets/shaders/webgl2/include/Fog.glsl.js +0 -32
- package/src/assets/shaders/webgl2/include/Fragment.glsl.js +0 -162
- package/src/assets/shaders/webgl2/include/Hatch.glsl.js +0 -22
- package/src/assets/shaders/webgl2/include/Line2.glsl.js +0 -22
- package/src/assets/shaders/webgl2/include/Material.glsl.js +0 -59
- package/src/assets/shaders/webgl2/include/Normal.glsl.js +0 -50
- package/src/assets/shaders/webgl2/include/Particle.glsl.js +0 -34
- package/src/assets/shaders/webgl2/include/Perlin.glsl.js +0 -41
- package/src/assets/shaders/webgl2/include/Point.glsl.js +0 -47
- package/src/assets/shaders/webgl2/include/PointSize.glsl.js +0 -31
- package/src/assets/shaders/webgl2/include/Shadow.glsl.js +0 -328
- package/src/assets/shaders/webgl2/include/Skin.glsl.js +0 -88
- package/src/assets/shaders/webgl2/include/SpotFactor.glsl.js +0 -14
- package/src/assets/shaders/webgl2/include/Stipple.glsl.js +0 -43
- package/src/assets/shaders/webgl2/include/Texture.glsl.js +0 -527
- package/src/assets/shaders/webgl2/include/Utils.glsl.js +0 -13
- package/src/assets/shaders/webgl2/include/Vertex.glsl.js +0 -180
- package/src/bookmarks.js +0 -297
- package/src/example.html +0 -21
- package/src/examples.js +0 -156
- package/src/lib/ammojs/AmmoClass.js +0 -50
- package/src/lib/ammojs/Makefile +0 -25
- package/src/lib/ammojs/ammo.idl +0 -1031
- package/src/lib/ammojs/ammo.js +0 -35
- package/src/lib/jquery.js +0 -66
- package/src/lib/libgif/libgif.js +0 -1004
- package/src/lib/libtess.js +0 -1
- package/src/lib/nurbs/extras/sample.js +0 -233
- package/src/lib/nurbs/nurbs.js +0 -325
- package/src/lib/nurbs/src/evaluate.js +0 -402
- package/src/lib/nurbs/src/numerical-derivative.js +0 -49
- package/src/lib/nurbs/src/support.js +0 -140
- package/src/lib/nurbs/src/transform.js +0 -70
- package/src/lib/nurbs/src/utils/accessor-preamble.js +0 -27
- package/src/lib/nurbs/src/utils/bisection-search.js +0 -22
- package/src/lib/nurbs/src/utils/cache-key.js +0 -50
- package/src/lib/nurbs/src/utils/create-accessors.js +0 -103
- package/src/lib/nurbs/src/utils/infer-type.js +0 -44
- package/src/lib/nurbs/src/utils/is-array-like.js +0 -5
- package/src/lib/nurbs/src/utils/is-ndarray-like.js +0 -13
- package/src/lib/nurbs/src/utils/is-ndarray.js +0 -16
- package/src/lib/nurbs/src/utils/ndloop.js +0 -18
- package/src/lib/nurbs/src/utils/size-getter.js +0 -16
- package/src/lib/nurbs/src/utils/variable.js +0 -26
- package/src/locale/de.po.js +0 -182
- package/src/locale/fr.po.js +0 -179
- package/src/locale/gettext.js +0 -120
- package/src/shim.js +0 -81
- package/src/standard/Geospatial/Geodetic.js +0 -257
- package/src/standard/Geospatial/ReferenceEllipsoids.js +0 -92
- package/src/standard/Geospatial/UniversalTransverseMercator.js +0 -205
- package/src/standard/Math/Algorithm.js +0 -237
- package/src/standard/Math/Algorithms/Bezier.js +0 -232
- package/src/standard/Math/Algorithms/MergeSort.js +0 -104
- package/src/standard/Math/Algorithms/PartialSort.js +0 -92
- package/src/standard/Math/Algorithms/QuickSort.js +0 -106
- package/src/standard/Math/Algorithms/SAT.js +0 -109
- package/src/standard/Math/Algorithms/eigen_decomposition.js +0 -190
- package/src/standard/Math/Geometry/Box2.js +0 -257
- package/src/standard/Math/Geometry/Box3.js +0 -665
- package/src/standard/Math/Geometry/Camera.js +0 -127
- package/src/standard/Math/Geometry/Cylinder3.js +0 -159
- package/src/standard/Math/Geometry/Line2.js +0 -155
- package/src/standard/Math/Geometry/Line3.js +0 -235
- package/src/standard/Math/Geometry/Plane3.js +0 -163
- package/src/standard/Math/Geometry/Sphere3.js +0 -191
- package/src/standard/Math/Geometry/Spheroid3.js +0 -86
- package/src/standard/Math/Geometry/Triangle2.js +0 -78
- package/src/standard/Math/Geometry/Triangle3.js +0 -140
- package/src/standard/Math/Geometry/ViewVolume.js +0 -422
- package/src/standard/Math/Numbers/Color3.js +0 -258
- package/src/standard/Math/Numbers/Color4.js +0 -188
- package/src/standard/Math/Numbers/Complex.js +0 -246
- package/src/standard/Math/Numbers/Matrix2.js +0 -274
- package/src/standard/Math/Numbers/Matrix3.js +0 -673
- package/src/standard/Math/Numbers/Matrix4.js +0 -794
- package/src/standard/Math/Numbers/Quaternion.js +0 -665
- package/src/standard/Math/Numbers/Rotation4.js +0 -478
- package/src/standard/Math/Numbers/Vector2.js +0 -238
- package/src/standard/Math/Numbers/Vector3.js +0 -292
- package/src/standard/Math/Numbers/Vector4.js +0 -307
- package/src/standard/Math/Utility/BVH.js +0 -378
- package/src/standard/Math/Utility/MatrixStack.js +0 -114
- package/src/standard/Time/StopWatch.js +0 -84
- package/src/standard/Utility/BitSet.js +0 -117
- package/src/standard/Utility/DataStorage.js +0 -132
- package/src/standard/Utility/MapUtilities.js +0 -83
- package/src/standard/Utility/ObjectCache.js +0 -72
- package/src/standard/Utility/Shuffle.js +0 -66
- package/src/tests.js +0 -399
- package/src/x_ite/Base/Events.js +0 -73
- package/src/x_ite/Base/FieldArray.js +0 -70
- package/src/x_ite/Base/FieldDefinitionArray.js +0 -70
- package/src/x_ite/Base/X3DArrayField.js +0 -138
- package/src/x_ite/Base/X3DBaseNode.js +0 -639
- package/src/x_ite/Base/X3DCast.js +0 -75
- package/src/x_ite/Base/X3DChildObject.js +0 -265
- package/src/x_ite/Base/X3DConstants.js +0 -146
- package/src/x_ite/Base/X3DField.js +0 -429
- package/src/x_ite/Base/X3DFieldDefinition.js +0 -75
- package/src/x_ite/Base/X3DInfoArray.js +0 -381
- package/src/x_ite/Base/X3DObject.js +0 -254
- package/src/x_ite/Base/X3DObjectArrayField.js +0 -541
- package/src/x_ite/Base/X3DTypedArrayField.js +0 -1018
- package/src/x_ite/Browser/Core/BrowserOptions.js +0 -388
- package/src/x_ite/Browser/Core/BrowserProperties.js +0 -84
- package/src/x_ite/Browser/Core/BrowserTimings.js +0 -300
- package/src/x_ite/Browser/Core/Context.js +0 -278
- package/src/x_ite/Browser/Core/ContextMenu.js +0 -718
- package/src/x_ite/Browser/Core/Notification.js +0 -117
- package/src/x_ite/Browser/Core/PrimitiveQuality.js +0 -57
- package/src/x_ite/Browser/Core/RenderingProperties.js +0 -104
- package/src/x_ite/Browser/Core/Shading.js +0 -59
- package/src/x_ite/Browser/Core/TextureQuality.js +0 -57
- package/src/x_ite/Browser/Core/X3DCoreContext.js +0 -758
- package/src/x_ite/Browser/DOMIntegration.js +0 -383
- package/src/x_ite/Browser/EnvironmentalEffects/X3DEnvironmentalEffectsContext.js +0 -76
- package/src/x_ite/Browser/Followers/X3DArrayChaserTemplate.js +0 -78
- package/src/x_ite/Browser/Followers/X3DArrayFollowerTemplate.js +0 -176
- package/src/x_ite/Browser/Geometry2D/Arc2DOptions.js +0 -70
- package/src/x_ite/Browser/Geometry2D/ArcClose2DOptions.js +0 -70
- package/src/x_ite/Browser/Geometry2D/Circle2DOptions.js +0 -106
- package/src/x_ite/Browser/Geometry2D/Disk2DOptions.js +0 -159
- package/src/x_ite/Browser/Geometry2D/Rectangle2DOptions.js +0 -112
- package/src/x_ite/Browser/Geometry2D/X3DGeometry2DContext.js +0 -134
- package/src/x_ite/Browser/Geometry3D/BoxOptions.js +0 -123
- package/src/x_ite/Browser/Geometry3D/ConeOptions.js +0 -71
- package/src/x_ite/Browser/Geometry3D/CylinderOptions.js +0 -71
- package/src/x_ite/Browser/Geometry3D/IcoSphere.js +0 -404
- package/src/x_ite/Browser/Geometry3D/IcoSphereOptions.js +0 -115
- package/src/x_ite/Browser/Geometry3D/QuadSphereOptions.js +0 -287
- package/src/x_ite/Browser/Geometry3D/X3DGeometry3DContext.js +0 -128
- package/src/x_ite/Browser/Geospatial/Geocentric.js +0 -75
- package/src/x_ite/Browser/Geospatial/Geospatial.js +0 -205
- package/src/x_ite/Browser/Grouping/X3DGroupingContext.js +0 -84
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator.js +0 -186
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator1.js +0 -87
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator2.js +0 -53
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator3.js +0 -53
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +0 -107
- package/src/x_ite/Browser/Interpolation/SquatInterpolator.js +0 -112
- package/src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js +0 -97
- package/src/x_ite/Browser/Layering/X3DLayeringContext.js +0 -70
- package/src/x_ite/Browser/Layout/ScreenText.js +0 -412
- package/src/x_ite/Browser/Layout/X3DLayoutContext.js +0 -131
- package/src/x_ite/Browser/Legacy.js +0 -84
- package/src/x_ite/Browser/Lighting/X3DLightingContext.js +0 -105
- package/src/x_ite/Browser/NURBS/NURBS.js +0 -471
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +0 -866
- package/src/x_ite/Browser/Navigation/FlyViewer.js +0 -99
- package/src/x_ite/Browser/Navigation/LookAtViewer.js +0 -519
- package/src/x_ite/Browser/Navigation/NoneViewer.js +0 -77
- package/src/x_ite/Browser/Navigation/PlaneViewer.js +0 -243
- package/src/x_ite/Browser/Navigation/WalkViewer.js +0 -130
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +0 -727
- package/src/x_ite/Browser/Navigation/X3DNavigationContext.js +0 -240
- package/src/x_ite/Browser/Navigation/X3DViewer.js +0 -204
- package/src/x_ite/Browser/Networking/URLs.js +0 -103
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +0 -227
- package/src/x_ite/Browser/ParticleSystems/BVH.glsl.js +0 -185
- package/src/x_ite/Browser/ParticleSystems/Box3.glsl.js +0 -49
- package/src/x_ite/Browser/ParticleSystems/GeometryTypes.js +0 -59
- package/src/x_ite/Browser/ParticleSystems/Line3.glsl.js +0 -57
- package/src/x_ite/Browser/ParticleSystems/Plane3.glsl.js +0 -162
- package/src/x_ite/Browser/ParticleSystems/X3DParticleSystemsContext.js +0 -72
- package/src/x_ite/Browser/Picking/IntersectionType.js +0 -56
- package/src/x_ite/Browser/Picking/MatchCriterion.js +0 -57
- package/src/x_ite/Browser/Picking/SortOrder.js +0 -58
- package/src/x_ite/Browser/Picking/VolumePicker.js +0 -177
- package/src/x_ite/Browser/Picking/X3DPickingContext.js +0 -132
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +0 -279
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDeviceSensorContainer.js +0 -85
- package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +0 -395
- package/src/x_ite/Browser/Rendering/GeometryContext.js +0 -83
- package/src/x_ite/Browser/Rendering/X3DRenderingContext.js +0 -270
- package/src/x_ite/Browser/RigidBodyPhysics/AppliedParametersType.js +0 -63
- package/src/x_ite/Browser/Scripting/X3DScriptingContext.js +0 -67
- package/src/x_ite/Browser/Scripting/evaluate.js +0 -68
- package/src/x_ite/Browser/Shaders/ShaderCompiler.js +0 -97
- package/src/x_ite/Browser/Shaders/ShaderSource.js +0 -204
- package/src/x_ite/Browser/Shaders/Shaders.js +0 -191
- package/src/x_ite/Browser/Shaders/X3DShadersContext.js +0 -190
- package/src/x_ite/Browser/Shape/AlphaMode.js +0 -58
- package/src/x_ite/Browser/Shape/X3DShapeContext.js +0 -209
- package/src/x_ite/Browser/Sound/X3DSoundContext.js +0 -57
- package/src/x_ite/Browser/Text/PolygonText.js +0 -360
- package/src/x_ite/Browser/Text/TextAlignment.js +0 -58
- package/src/x_ite/Browser/Text/X3DTextContext.js +0 -134
- package/src/x_ite/Browser/Text/X3DTextGeometry.js +0 -614
- package/src/x_ite/Browser/Texturing/FunctionType.js +0 -57
- package/src/x_ite/Browser/Texturing/GifMedia.js +0 -113
- package/src/x_ite/Browser/Texturing/ModeType.js +0 -74
- package/src/x_ite/Browser/Texturing/SourceType.js +0 -58
- package/src/x_ite/Browser/Texturing/TextureCoordinateGeneratorModeType.js +0 -66
- package/src/x_ite/Browser/Texturing/X3DTexturingContext.js +0 -340
- package/src/x_ite/Browser/Texturing3D/DICOMParser.js +0 -1097
- package/src/x_ite/Browser/Texturing3D/NRRDParser.js +0 -458
- package/src/x_ite/Browser/Time/X3DTimeContext.js +0 -108
- package/src/x_ite/Browser/VERSION.js +0 -48
- package/src/x_ite/Browser/VolumeRendering/VolumeMaterial.js +0 -145
- package/src/x_ite/Browser/VolumeRendering/VolumeStyle.fs.js +0 -60
- package/src/x_ite/Browser/VolumeRendering/VolumeStyle.vs.js +0 -26
- package/src/x_ite/Browser/VolumeRendering/X3DVolumeRenderingContext.js +0 -131
- package/src/x_ite/Browser/X3DBrowser.js +0 -1060
- package/src/x_ite/Browser/X3DBrowserContext.js +0 -436
- package/src/x_ite/Components/Annotation/AnnotationLayer.js +0 -109
- package/src/x_ite/Components/Annotation/AnnotationTarget.js +0 -104
- package/src/x_ite/Components/Annotation/GroupAnnotation.js +0 -119
- package/src/x_ite/Components/Annotation/IconAnnotation.js +0 -117
- package/src/x_ite/Components/Annotation/TextAnnotation.js +0 -105
- package/src/x_ite/Components/Annotation/URLAnnotation.js +0 -104
- package/src/x_ite/Components/Annotation/X3DAnnotationNode.js +0 -80
- package/src/x_ite/Components/CADGeometry/CADAssembly.js +0 -107
- package/src/x_ite/Components/CADGeometry/CADFace.js +0 -252
- package/src/x_ite/Components/CADGeometry/CADLayer.js +0 -102
- package/src/x_ite/Components/CADGeometry/CADPart.js +0 -112
- package/src/x_ite/Components/CADGeometry/IndexedQuadSet.js +0 -132
- package/src/x_ite/Components/CADGeometry/QuadSet.js +0 -127
- package/src/x_ite/Components/CADGeometry/X3DProductStructureChildNode.js +0 -74
- package/src/x_ite/Components/Core/MetadataBoolean.js +0 -119
- package/src/x_ite/Components/Core/MetadataDouble.js +0 -119
- package/src/x_ite/Components/Core/MetadataFloat.js +0 -119
- package/src/x_ite/Components/Core/MetadataInteger.js +0 -119
- package/src/x_ite/Components/Core/MetadataSet.js +0 -119
- package/src/x_ite/Components/Core/MetadataString.js +0 -119
- package/src/x_ite/Components/Core/WorldInfo.js +0 -110
- package/src/x_ite/Components/Core/X3DBindableNode.js +0 -108
- package/src/x_ite/Components/Core/X3DChildNode.js +0 -101
- package/src/x_ite/Components/Core/X3DInfoNode.js +0 -74
- package/src/x_ite/Components/Core/X3DMetadataObject.js +0 -75
- package/src/x_ite/Components/Core/X3DNode.js +0 -1393
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +0 -1012
- package/src/x_ite/Components/Core/X3DSensorNode.js +0 -74
- package/src/x_ite/Components/Core.js +0 -85
- package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +0 -250
- package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +0 -295
- package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +0 -278
- package/src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js +0 -141
- package/src/x_ite/Components/DIS/DISEntityManager.js +0 -104
- package/src/x_ite/Components/DIS/DISEntityTypeMapping.js +0 -120
- package/src/x_ite/Components/DIS/EspduTransform.js +0 -194
- package/src/x_ite/Components/DIS/ReceiverPdu.js +0 -139
- package/src/x_ite/Components/DIS/SignalPdu.js +0 -139
- package/src/x_ite/Components/DIS/TransmitterPdu.js +0 -155
- package/src/x_ite/Components/EnvironmentalEffects/Background.js +0 -159
- package/src/x_ite/Components/EnvironmentalEffects/Fog.js +0 -132
- package/src/x_ite/Components/EnvironmentalEffects/FogCoordinate.js +0 -153
- package/src/x_ite/Components/EnvironmentalEffects/LocalFog.js +0 -129
- package/src/x_ite/Components/EnvironmentalEffects/TextureBackground.js +0 -133
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +0 -613
- package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +0 -176
- package/src/x_ite/Components/EnvironmentalEffects.js +0 -71
- package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +0 -280
- package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +0 -319
- package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +0 -177
- package/src/x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode.js +0 -143
- package/src/x_ite/Components/EnvironmentalSensor.js +0 -65
- package/src/x_ite/Components/EventUtilities/BooleanFilter.js +0 -118
- package/src/x_ite/Components/EventUtilities/BooleanSequencer.js +0 -116
- package/src/x_ite/Components/EventUtilities/BooleanToggle.js +0 -109
- package/src/x_ite/Components/EventUtilities/BooleanTrigger.js +0 -108
- package/src/x_ite/Components/EventUtilities/IntegerSequencer.js +0 -116
- package/src/x_ite/Components/EventUtilities/IntegerTrigger.js +0 -109
- package/src/x_ite/Components/EventUtilities/TimeTrigger.js +0 -108
- package/src/x_ite/Components/EventUtilities/X3DSequencerNode.js +0 -153
- package/src/x_ite/Components/EventUtilities/X3DTriggerNode.js +0 -74
- package/src/x_ite/Components/Followers/ColorChaser.js +0 -147
- package/src/x_ite/Components/Followers/ColorDamper.js +0 -145
- package/src/x_ite/Components/Followers/CoordinateChaser.js +0 -113
- package/src/x_ite/Components/Followers/CoordinateDamper.js +0 -115
- package/src/x_ite/Components/Followers/OrientationChaser.js +0 -134
- package/src/x_ite/Components/Followers/OrientationDamper.js +0 -130
- package/src/x_ite/Components/Followers/PositionChaser.js +0 -108
- package/src/x_ite/Components/Followers/PositionChaser2D.js +0 -108
- package/src/x_ite/Components/Followers/PositionDamper.js +0 -110
- package/src/x_ite/Components/Followers/PositionDamper2D.js +0 -110
- package/src/x_ite/Components/Followers/ScalarChaser.js +0 -136
- package/src/x_ite/Components/Followers/ScalarDamper.js +0 -126
- package/src/x_ite/Components/Followers/TexCoordChaser2D.js +0 -113
- package/src/x_ite/Components/Followers/TexCoordDamper2D.js +0 -115
- package/src/x_ite/Components/Followers/X3DChaserNode.js +0 -241
- package/src/x_ite/Components/Followers/X3DDamperNode.js +0 -176
- package/src/x_ite/Components/Followers/X3DFollowerNode.js +0 -151
- package/src/x_ite/Components/Followers.js +0 -91
- package/src/x_ite/Components/Geometry2D/Arc2D.js +0 -162
- package/src/x_ite/Components/Geometry2D/ArcClose2D.js +0 -227
- package/src/x_ite/Components/Geometry2D/Circle2D.js +0 -130
- package/src/x_ite/Components/Geometry2D/Disk2D.js +0 -257
- package/src/x_ite/Components/Geometry2D/Polyline2D.js +0 -111
- package/src/x_ite/Components/Geometry2D/Polypoint2D.js +0 -110
- package/src/x_ite/Components/Geometry2D/Rectangle2D.js +0 -148
- package/src/x_ite/Components/Geometry2D/TriangleSet2D.js +0 -142
- package/src/x_ite/Components/Geometry3D/Box.js +0 -146
- package/src/x_ite/Components/Geometry3D/Cone.js +0 -248
- package/src/x_ite/Components/Geometry3D/Cylinder.js +0 -309
- package/src/x_ite/Components/Geometry3D/ElevationGrid.js +0 -439
- package/src/x_ite/Components/Geometry3D/Extrusion.js +0 -729
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +0 -473
- package/src/x_ite/Components/Geometry3D/Sphere.js +0 -146
- package/src/x_ite/Components/Geometry3D.js +0 -71
- package/src/x_ite/Components/Geospatial/GeoCoordinate.js +0 -238
- package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +0 -433
- package/src/x_ite/Components/Geospatial/GeoLOD.js +0 -466
- package/src/x_ite/Components/Geospatial/GeoLocation.js +0 -130
- package/src/x_ite/Components/Geospatial/GeoMetadata.js +0 -117
- package/src/x_ite/Components/Geospatial/GeoOrigin.js +0 -118
- package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +0 -156
- package/src/x_ite/Components/Geospatial/GeoProximitySensor.js +0 -163
- package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +0 -135
- package/src/x_ite/Components/Geospatial/GeoTransform.js +0 -145
- package/src/x_ite/Components/Geospatial/GeoViewpoint.js +0 -290
- package/src/x_ite/Components/Geospatial/X3DGeospatialObject.js +0 -272
- package/src/x_ite/Components/Grouping/Group.js +0 -101
- package/src/x_ite/Components/Grouping/StaticGroup.js +0 -244
- package/src/x_ite/Components/Grouping/Switch.js +0 -257
- package/src/x_ite/Components/Grouping/Transform.js +0 -106
- package/src/x_ite/Components/Grouping/X3DBoundedObject.js +0 -150
- package/src/x_ite/Components/Grouping/X3DGroupingNode.js +0 -722
- package/src/x_ite/Components/Grouping/X3DTransformMatrix3DNode.js +0 -135
- package/src/x_ite/Components/Grouping/X3DTransformNode.js +0 -95
- package/src/x_ite/Components/Grouping.js +0 -73
- package/src/x_ite/Components/HAnim/HAnimDisplacer.js +0 -101
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +0 -640
- package/src/x_ite/Components/HAnim/HAnimJoint.js +0 -198
- package/src/x_ite/Components/HAnim/HAnimMotion.js +0 -434
- package/src/x_ite/Components/HAnim/HAnimSegment.js +0 -110
- package/src/x_ite/Components/HAnim/HAnimSite.js +0 -108
- package/src/x_ite/Components/Interpolation/ColorInterpolator.js +0 -132
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator.js +0 -132
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator2D.js +0 -129
- package/src/x_ite/Components/Interpolation/EaseInEaseOut.js +0 -149
- package/src/x_ite/Components/Interpolation/NormalInterpolator.js +0 -158
- package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +0 -134
- package/src/x_ite/Components/Interpolation/PositionInterpolator.js +0 -125
- package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +0 -125
- package/src/x_ite/Components/Interpolation/ScalarInterpolator.js +0 -120
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator.js +0 -147
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator2D.js +0 -147
- package/src/x_ite/Components/Interpolation/SplineScalarInterpolator.js +0 -147
- package/src/x_ite/Components/Interpolation/SquadOrientationInterpolator.js +0 -137
- package/src/x_ite/Components/Interpolation/X3DInterpolatorNode.js +0 -137
- package/src/x_ite/Components/Interpolation.js +0 -85
- package/src/x_ite/Components/KeyDeviceSensor/KeySensor.js +0 -379
- package/src/x_ite/Components/KeyDeviceSensor/StringSensor.js +0 -164
- package/src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js +0 -120
- package/src/x_ite/Components/Layering/Layer.js +0 -120
- package/src/x_ite/Components/Layering/LayerSet.js +0 -208
- package/src/x_ite/Components/Layering/Viewport.js +0 -180
- package/src/x_ite/Components/Layering/X3DLayerNode.js +0 -407
- package/src/x_ite/Components/Layering/X3DViewportNode.js +0 -74
- package/src/x_ite/Components/Layering.js +0 -67
- package/src/x_ite/Components/Layout/Layout.js +0 -642
- package/src/x_ite/Components/Layout/LayoutGroup.js +0 -188
- package/src/x_ite/Components/Layout/LayoutLayer.js +0 -124
- package/src/x_ite/Components/Layout/ScreenFontStyle.js +0 -120
- package/src/x_ite/Components/Layout/ScreenGroup.js +0 -138
- package/src/x_ite/Components/Layout/X3DLayoutNode.js +0 -74
- package/src/x_ite/Components/Lighting/DirectionalLight.js +0 -291
- package/src/x_ite/Components/Lighting/EnvironmentLight.js +0 -157
- package/src/x_ite/Components/Lighting/PointLight.js +0 -341
- package/src/x_ite/Components/Lighting/SpotLight.js +0 -360
- package/src/x_ite/Components/Lighting/X3DLightNode.js +0 -222
- package/src/x_ite/Components/Lighting.js +0 -67
- package/src/x_ite/Components/NURBS/Contour2D.js +0 -170
- package/src/x_ite/Components/NURBS/ContourPolyline2D.js +0 -165
- package/src/x_ite/Components/NURBS/CoordinateDouble.js +0 -95
- package/src/x_ite/Components/NURBS/NurbsCurve.js +0 -234
- package/src/x_ite/Components/NURBS/NurbsCurve2D.js +0 -212
- package/src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js +0 -229
- package/src/x_ite/Components/NURBS/NurbsPatchSurface.js +0 -108
- package/src/x_ite/Components/NURBS/NurbsPositionInterpolator.js +0 -217
- package/src/x_ite/Components/NURBS/NurbsSet.js +0 -186
- package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +0 -189
- package/src/x_ite/Components/NURBS/NurbsSweptSurface.js +0 -181
- package/src/x_ite/Components/NURBS/NurbsSwungSurface.js +0 -181
- package/src/x_ite/Components/NURBS/NurbsTextureCoordinate.js +0 -156
- package/src/x_ite/Components/NURBS/NurbsTrimmedSurface.js +0 -177
- package/src/x_ite/Components/NURBS/X3DNurbsControlCurveNode.js +0 -74
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +0 -393
- package/src/x_ite/Components/NURBS/X3DParametricGeometryNode.js +0 -81
- package/src/x_ite/Components/Navigation/Billboard.js +0 -188
- package/src/x_ite/Components/Navigation/Collision.js +0 -184
- package/src/x_ite/Components/Navigation/LOD.js +0 -335
- package/src/x_ite/Components/Navigation/NavigationInfo.js +0 -344
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +0 -356
- package/src/x_ite/Components/Navigation/Viewpoint.js +0 -200
- package/src/x_ite/Components/Navigation/ViewpointGroup.js +0 -257
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +0 -594
- package/src/x_ite/Components/Navigation.js +0 -73
- package/src/x_ite/Components/Networking/Anchor.js +0 -220
- package/src/x_ite/Components/Networking/Inline.js +0 -314
- package/src/x_ite/Components/Networking/LoadSensor.js +0 -265
- package/src/x_ite/Components/Networking/X3DNetworkSensorNode.js +0 -74
- package/src/x_ite/Components/Networking/X3DUrlObject.js +0 -296
- package/src/x_ite/Components/Networking.js +0 -67
- package/src/x_ite/Components/ParticleSystems/BoundedPhysicsModel.js +0 -132
- package/src/x_ite/Components/ParticleSystems/ConeEmitter.js +0 -162
- package/src/x_ite/Components/ParticleSystems/ExplosionEmitter.js +0 -137
- package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +0 -120
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +0 -1081
- package/src/x_ite/Components/ParticleSystems/PointEmitter.js +0 -153
- package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +0 -244
- package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +0 -252
- package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +0 -289
- package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +0 -142
- package/src/x_ite/Components/ParticleSystems/X3DParticleEmitterNode.js +0 -1004
- package/src/x_ite/Components/ParticleSystems/X3DParticlePhysicsModelNode.js +0 -78
- package/src/x_ite/Components/Picking/LinePickSensor.js +0 -339
- package/src/x_ite/Components/Picking/PickableGroup.js +0 -223
- package/src/x_ite/Components/Picking/PointPickSensor.js +0 -350
- package/src/x_ite/Components/Picking/PrimitivePickSensor.js +0 -270
- package/src/x_ite/Components/Picking/VolumePickSensor.js +0 -245
- package/src/x_ite/Components/Picking/X3DPickSensorNode.js +0 -441
- package/src/x_ite/Components/Picking/X3DPickableObject.js +0 -95
- package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +0 -303
- package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +0 -300
- package/src/x_ite/Components/PointingDeviceSensor/SphereSensor.js +0 -220
- package/src/x_ite/Components/PointingDeviceSensor/TouchSensor.js +0 -104
- package/src/x_ite/Components/PointingDeviceSensor/X3DDragSensorNode.js +0 -76
- package/src/x_ite/Components/PointingDeviceSensor/X3DPointingDeviceSensorNode.js +0 -132
- package/src/x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode.js +0 -106
- package/src/x_ite/Components/PointingDeviceSensor.js +0 -71
- package/src/x_ite/Components/Rendering/ClipPlane.js +0 -180
- package/src/x_ite/Components/Rendering/Color.js +0 -163
- package/src/x_ite/Components/Rendering/ColorRGBA.js +0 -166
- package/src/x_ite/Components/Rendering/Coordinate.js +0 -97
- package/src/x_ite/Components/Rendering/IndexedLineSet.js +0 -307
- package/src/x_ite/Components/Rendering/IndexedTriangleFanSet.js +0 -165
- package/src/x_ite/Components/Rendering/IndexedTriangleSet.js +0 -122
- package/src/x_ite/Components/Rendering/IndexedTriangleStripSet.js +0 -173
- package/src/x_ite/Components/Rendering/LineSet.js +0 -240
- package/src/x_ite/Components/Rendering/Normal.js +0 -193
- package/src/x_ite/Components/Rendering/PointSet.js +0 -222
- package/src/x_ite/Components/Rendering/TriangleFanSet.js +0 -147
- package/src/x_ite/Components/Rendering/TriangleSet.js +0 -117
- package/src/x_ite/Components/Rendering/TriangleStripSet.js +0 -151
- package/src/x_ite/Components/Rendering/X3DColorNode.js +0 -88
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +0 -363
- package/src/x_ite/Components/Rendering/X3DCoordinateNode.js +0 -193
- package/src/x_ite/Components/Rendering/X3DGeometricPropertyNode.js +0 -74
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +0 -1189
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +0 -489
- package/src/x_ite/Components/Rendering/X3DNormalNode.js +0 -74
- package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +0 -182
- package/src/x_ite/Components/Rendering.js +0 -99
- package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +0 -210
- package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +0 -261
- package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +0 -497
- package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +0 -214
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +0 -281
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSpace.js +0 -180
- package/src/x_ite/Components/RigidBodyPhysics/Contact.js +0 -118
- package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +0 -292
- package/src/x_ite/Components/RigidBodyPhysics/MotorJoint.js +0 -132
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +0 -518
- package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +0 -389
- package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +0 -251
- package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +0 -230
- package/src/x_ite/Components/RigidBodyPhysics/UniversalJoint.js +0 -114
- package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js +0 -167
- package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollisionSpaceNode.js +0 -89
- package/src/x_ite/Components/RigidBodyPhysics/X3DRigidJointNode.js +0 -221
- package/src/x_ite/Components/Scripting/Script.js +0 -510
- package/src/x_ite/Components/Scripting/X3DScriptNode.js +0 -89
- package/src/x_ite/Components/Shaders/ComposedShader.js +0 -228
- package/src/x_ite/Components/Shaders/FloatVertexAttribute.js +0 -151
- package/src/x_ite/Components/Shaders/Matrix3VertexAttribute.js +0 -142
- package/src/x_ite/Components/Shaders/Matrix4VertexAttribute.js +0 -141
- package/src/x_ite/Components/Shaders/PackagedShader.js +0 -129
- package/src/x_ite/Components/Shaders/ProgramShader.js +0 -99
- package/src/x_ite/Components/Shaders/ShaderPart.js +0 -238
- package/src/x_ite/Components/Shaders/ShaderProgram.js +0 -126
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +0 -1357
- package/src/x_ite/Components/Shaders/X3DShaderNode.js +0 -105
- package/src/x_ite/Components/Shaders/X3DVertexAttributeNode.js +0 -89
- package/src/x_ite/Components/Shaders.js +0 -79
- package/src/x_ite/Components/Shape/AcousticProperties.js +0 -100
- package/src/x_ite/Components/Shape/Appearance.js +0 -458
- package/src/x_ite/Components/Shape/FillProperties.js +0 -181
- package/src/x_ite/Components/Shape/LineProperties.js +0 -184
- package/src/x_ite/Components/Shape/Material.js +0 -412
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +0 -308
- package/src/x_ite/Components/Shape/PointProperties.js +0 -169
- package/src/x_ite/Components/Shape/Shape.js +0 -205
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +0 -292
- package/src/x_ite/Components/Shape/UnlitMaterial.js +0 -142
- package/src/x_ite/Components/Shape/X3DAppearanceChildNode.js +0 -74
- package/src/x_ite/Components/Shape/X3DAppearanceNode.js +0 -88
- package/src/x_ite/Components/Shape/X3DMaterialNode.js +0 -350
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +0 -212
- package/src/x_ite/Components/Shape/X3DShapeNode.js +0 -211
- package/src/x_ite/Components/Shape.js +0 -87
- package/src/x_ite/Components/Sound/Analyser.js +0 -118
- package/src/x_ite/Components/Sound/AudioClip.js +0 -212
- package/src/x_ite/Components/Sound/AudioDestination.js +0 -107
- package/src/x_ite/Components/Sound/BiquadFilter.js +0 -117
- package/src/x_ite/Components/Sound/BufferAudioSource.js +0 -142
- package/src/x_ite/Components/Sound/ChannelMerger.js +0 -104
- package/src/x_ite/Components/Sound/ChannelSelector.js +0 -105
- package/src/x_ite/Components/Sound/ChannelSplitter.js +0 -105
- package/src/x_ite/Components/Sound/Convolver.js +0 -115
- package/src/x_ite/Components/Sound/Delay.js +0 -115
- package/src/x_ite/Components/Sound/DynamicsCompressor.js +0 -119
- package/src/x_ite/Components/Sound/Gain.js +0 -113
- package/src/x_ite/Components/Sound/ListenerPointSource.js +0 -116
- package/src/x_ite/Components/Sound/MicrophoneSource.js +0 -110
- package/src/x_ite/Components/Sound/OscillatorSource.js +0 -112
- package/src/x_ite/Components/Sound/PeriodicWave.js +0 -99
- package/src/x_ite/Components/Sound/Sound.js +0 -302
- package/src/x_ite/Components/Sound/SpatialSound.js +0 -116
- package/src/x_ite/Components/Sound/StreamAudioDestination.js +0 -107
- package/src/x_ite/Components/Sound/StreamAudioSource.js +0 -110
- package/src/x_ite/Components/Sound/WaveShaper.js +0 -115
- package/src/x_ite/Components/Sound/X3DSoundChannelNode.js +0 -74
- package/src/x_ite/Components/Sound/X3DSoundDestinationNode.js +0 -74
- package/src/x_ite/Components/Sound/X3DSoundNode.js +0 -74
- package/src/x_ite/Components/Sound/X3DSoundProcessingNode.js +0 -92
- package/src/x_ite/Components/Sound/X3DSoundSourceNode.js +0 -227
- package/src/x_ite/Components/Sound.js +0 -109
- package/src/x_ite/Components/Text/FontStyle.js +0 -116
- package/src/x_ite/Components/Text/Text.js +0 -185
- package/src/x_ite/Components/Text/X3DFontStyleNode.js +0 -261
- package/src/x_ite/Components/TextureProjector/TextureProjector.js +0 -213
- package/src/x_ite/Components/TextureProjector/TextureProjectorParallel.js +0 -268
- package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +0 -224
- package/src/x_ite/Components/Texturing/ImageTexture.js +0 -294
- package/src/x_ite/Components/Texturing/MovieTexture.js +0 -287
- package/src/x_ite/Components/Texturing/MultiTexture.js +0 -345
- package/src/x_ite/Components/Texturing/MultiTextureCoordinate.js +0 -200
- package/src/x_ite/Components/Texturing/MultiTextureTransform.js +0 -154
- package/src/x_ite/Components/Texturing/PixelTexture.js +0 -284
- package/src/x_ite/Components/Texturing/TextureCoordinate.js +0 -179
- package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +0 -163
- package/src/x_ite/Components/Texturing/TextureProperties.js +0 -226
- package/src/x_ite/Components/Texturing/TextureTransform.js +0 -162
- package/src/x_ite/Components/Texturing/X3DSingleTextureCoordinateNode.js +0 -101
- package/src/x_ite/Components/Texturing/X3DSingleTextureNode.js +0 -195
- package/src/x_ite/Components/Texturing/X3DSingleTextureTransformNode.js +0 -99
- package/src/x_ite/Components/Texturing/X3DTexture2DNode.js +0 -172
- package/src/x_ite/Components/Texturing/X3DTextureCoordinateNode.js +0 -74
- package/src/x_ite/Components/Texturing/X3DTextureNode.js +0 -88
- package/src/x_ite/Components/Texturing/X3DTextureTransformNode.js +0 -74
- package/src/x_ite/Components/Texturing.js +0 -91
- package/src/x_ite/Components/Texturing3D/ComposedTexture3D.js +0 -201
- package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +0 -183
- package/src/x_ite/Components/Texturing3D/ImageTextureAtlas.js +0 -245
- package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +0 -221
- package/src/x_ite/Components/Texturing3D/TextureCoordinate3D.js +0 -179
- package/src/x_ite/Components/Texturing3D/TextureCoordinate4D.js +0 -179
- package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +0 -151
- package/src/x_ite/Components/Texturing3D/TextureTransformMatrix3D.js +0 -114
- package/src/x_ite/Components/Texturing3D/X3DTexture3DNode.js +0 -173
- package/src/x_ite/Components/Time/TimeSensor.js +0 -223
- package/src/x_ite/Components/Time/X3DTimeDependentNode.js +0 -369
- package/src/x_ite/Components/Time.js +0 -61
- package/src/x_ite/Components/VolumeRendering/BlendedVolumeStyle.js +0 -355
- package/src/x_ite/Components/VolumeRendering/BoundaryEnhancementVolumeStyle.js +0 -154
- package/src/x_ite/Components/VolumeRendering/CartoonVolumeStyle.js +0 -311
- package/src/x_ite/Components/VolumeRendering/ComposedVolumeStyle.js +0 -204
- package/src/x_ite/Components/VolumeRendering/EdgeEnhancementVolumeStyle.js +0 -180
- package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +0 -367
- package/src/x_ite/Components/VolumeRendering/OpacityMapVolumeStyle.js +0 -179
- package/src/x_ite/Components/VolumeRendering/ProjectionVolumeStyle.js +0 -230
- package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +0 -280
- package/src/x_ite/Components/VolumeRendering/ShadedVolumeStyle.js +0 -280
- package/src/x_ite/Components/VolumeRendering/SilhouetteEnhancementVolumeStyle.js +0 -179
- package/src/x_ite/Components/VolumeRendering/ToneMappedVolumeStyle.js +0 -186
- package/src/x_ite/Components/VolumeRendering/VolumeData.js +0 -214
- package/src/x_ite/Components/VolumeRendering/X3DComposableVolumeRenderStyleNode.js +0 -74
- package/src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js +0 -241
- package/src/x_ite/Components/VolumeRendering/X3DVolumeRenderStyleNode.js +0 -138
- package/src/x_ite/Components/X_ITE/BlendMode.js +0 -206
- package/src/x_ite/Components.js +0 -99
- package/src/x_ite/Configuration/AbstractNodes.js +0 -50
- package/src/x_ite/Configuration/AbstractNodesArray.js +0 -78
- package/src/x_ite/Configuration/ComponentInfo.js +0 -137
- package/src/x_ite/Configuration/ComponentInfoArray.js +0 -76
- package/src/x_ite/Configuration/ConcreteNodes.js +0 -50
- package/src/x_ite/Configuration/ConcreteNodesArray.js +0 -87
- package/src/x_ite/Configuration/ProfileInfo.js +0 -92
- package/src/x_ite/Configuration/ProfileInfoArray.js +0 -77
- package/src/x_ite/Configuration/SupportedComponents.js +0 -307
- package/src/x_ite/Configuration/SupportedProfiles.js +0 -245
- package/src/x_ite/Configuration/UnitInfo.js +0 -158
- package/src/x_ite/Configuration/UnitInfoArray.js +0 -70
- package/src/x_ite/DEVELOPMENT.js +0 -50
- package/src/x_ite/Execution/BindableList.js +0 -203
- package/src/x_ite/Execution/BindableStack.js +0 -163
- package/src/x_ite/Execution/ExportedNodesArray.js +0 -70
- package/src/x_ite/Execution/ImportedNodesArray.js +0 -70
- package/src/x_ite/Execution/NamedNodesArray.js +0 -70
- package/src/x_ite/Execution/NamedNodesHandling.js +0 -84
- package/src/x_ite/Execution/X3DExecutionContext.js +0 -1022
- package/src/x_ite/Execution/X3DExportedNode.js +0 -201
- package/src/x_ite/Execution/X3DImportedNode.js +0 -565
- package/src/x_ite/Execution/X3DScene.js +0 -1112
- package/src/x_ite/Execution/X3DWorld.js +0 -160
- package/src/x_ite/Features.js +0 -59
- package/src/x_ite/Fields/ArrayFields.js +0 -492
- package/src/x_ite/Fields/SFBool.js +0 -104
- package/src/x_ite/Fields/SFColor.js +0 -231
- package/src/x_ite/Fields/SFColorRGBA.js +0 -198
- package/src/x_ite/Fields/SFDouble.js +0 -108
- package/src/x_ite/Fields/SFFloat.js +0 -108
- package/src/x_ite/Fields/SFImage.js +0 -370
- package/src/x_ite/Fields/SFInt32.js +0 -104
- package/src/x_ite/Fields/SFMatrix3.js +0 -140
- package/src/x_ite/Fields/SFMatrix4.js +0 -133
- package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +0 -191
- package/src/x_ite/Fields/SFNode.js +0 -435
- package/src/x_ite/Fields/SFNodeCache.js +0 -108
- package/src/x_ite/Fields/SFRotation.js +0 -275
- package/src/x_ite/Fields/SFString.js +0 -134
- package/src/x_ite/Fields/SFTime.js +0 -104
- package/src/x_ite/Fields/SFVec2.js +0 -120
- package/src/x_ite/Fields/SFVec3.js +0 -140
- package/src/x_ite/Fields/SFVec4.js +0 -148
- package/src/x_ite/Fields/SFVecPrototypeTemplate.js +0 -201
- package/src/x_ite/Fields.js +0 -87
- package/src/x_ite/InputOutput/FileLoader.js +0 -340
- package/src/x_ite/InputOutput/Generator.js +0 -592
- package/src/x_ite/Namespace.js +0 -52
- package/src/x_ite/Parser/Expressions.js +0 -85
- package/src/x_ite/Parser/GLB2Parser.js +0 -146
- package/src/x_ite/Parser/GLTF2Parser.js +0 -2800
- package/src/x_ite/Parser/GoldenGate.js +0 -163
- package/src/x_ite/Parser/HTMLSupport.js +0 -74
- package/src/x_ite/Parser/JSONParser.js +0 -414
- package/src/x_ite/Parser/OBJParser.js +0 -1091
- package/src/x_ite/Parser/PLYAParser.js +0 -615
- package/src/x_ite/Parser/PLYBParser.js +0 -222
- package/src/x_ite/Parser/STLAParser.js +0 -377
- package/src/x_ite/Parser/STLBParser.js +0 -155
- package/src/x_ite/Parser/SVGParser.js +0 -2762
- package/src/x_ite/Parser/VRMLParser.js +0 -2548
- package/src/x_ite/Parser/X3DOptimizer.js +0 -220
- package/src/x_ite/Parser/X3DParser.js +0 -152
- package/src/x_ite/Parser/XMLParser.js +0 -1189
- package/src/x_ite/Prototype/ExternProtoDeclarationArray.js +0 -70
- package/src/x_ite/Prototype/ProtoDeclarationArray.js +0 -70
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +0 -446
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +0 -571
- package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +0 -112
- package/src/x_ite/Rendering/DependentRenderer.js +0 -132
- package/src/x_ite/Rendering/MultiSampleFrameBuffer.js +0 -394
- package/src/x_ite/Rendering/PointingBuffer.js +0 -189
- package/src/x_ite/Rendering/TextureBuffer.js +0 -231
- package/src/x_ite/Rendering/TraverseType.js +0 -60
- package/src/x_ite/Rendering/VertexArray.js +0 -95
- package/src/x_ite/Rendering/X3DRenderObject.js +0 -1144
- package/src/x_ite/Routing/RouteArray.js +0 -70
- package/src/x_ite/Routing/X3DRoute.js +0 -316
- package/src/x_ite/Routing/X3DRoutingContext.js +0 -116
- package/src/x_ite/X3D.js +0 -250
- package/src/x_ite/X3DCanvasElement.js +0 -126
- package/src/x_ite.css +0 -587
- package/src/x_ite.html +0 -470
- package/src/x_ite.js +0 -60
- package/webpack.config.js +0 -341
- package/x_ite.min.html +0 -451
|
@@ -1,2548 +0,0 @@
|
|
|
1
|
-
/*******************************************************************************
|
|
2
|
-
*
|
|
3
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4
|
-
*
|
|
5
|
-
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
6
|
-
*
|
|
7
|
-
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
8
|
-
*
|
|
9
|
-
* The copyright notice above does not evidence any actual of intended
|
|
10
|
-
* publication of such source code, and is an unpublished work by create3000.
|
|
11
|
-
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
12
|
-
* create3000.
|
|
13
|
-
*
|
|
14
|
-
* No permission is granted to copy, distribute, or create derivative works from
|
|
15
|
-
* the contents of this software, in whole or in part, without the prior written
|
|
16
|
-
* permission of create3000.
|
|
17
|
-
*
|
|
18
|
-
* NON-MILITARY USE ONLY
|
|
19
|
-
*
|
|
20
|
-
* All create3000 software are effectively free software with a non-military use
|
|
21
|
-
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
22
|
-
* source in any way you please with the exception anything that uses it must be
|
|
23
|
-
* marked to indicate is contains 'non-military use only' components.
|
|
24
|
-
*
|
|
25
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
26
|
-
*
|
|
27
|
-
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
28
|
-
*
|
|
29
|
-
* This file is part of the X_ITE Project.
|
|
30
|
-
*
|
|
31
|
-
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
32
|
-
* terms of the GNU General Public License version 3 only, as published by the
|
|
33
|
-
* Free Software Foundation.
|
|
34
|
-
*
|
|
35
|
-
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
36
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
37
|
-
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
38
|
-
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
39
|
-
*
|
|
40
|
-
* You should have received a copy of the GNU General Public License version 3
|
|
41
|
-
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
42
|
-
* copy of the GPLv3 License.
|
|
43
|
-
*
|
|
44
|
-
* For Silvio, Joy and Adi.
|
|
45
|
-
*
|
|
46
|
-
******************************************************************************/
|
|
47
|
-
|
|
48
|
-
import X3DParser from "./X3DParser.js";
|
|
49
|
-
import Expressions from "./Expressions.js";
|
|
50
|
-
import Fields from "../Fields.js";
|
|
51
|
-
import X3DField from "../Base/X3DField.js";
|
|
52
|
-
import X3DExternProtoDeclaration from "../Prototype/X3DExternProtoDeclaration.js";
|
|
53
|
-
import X3DProtoDeclaration from "../Prototype/X3DProtoDeclaration.js";
|
|
54
|
-
import X3DConstants from "../Base/X3DConstants.js";
|
|
55
|
-
import Color3 from "../../standard/Math/Numbers/Color3.js";
|
|
56
|
-
import Color4 from "../../standard/Math/Numbers/Color4.js";
|
|
57
|
-
import Matrix3 from "../../standard/Math/Numbers/Matrix3.js";
|
|
58
|
-
import Matrix4 from "../../standard/Math/Numbers/Matrix4.js";
|
|
59
|
-
import Rotation4 from "../../standard/Math/Numbers/Rotation4.js";
|
|
60
|
-
import Vector2 from "../../standard/Math/Numbers/Vector2.js";
|
|
61
|
-
import Vector3 from "../../standard/Math/Numbers/Vector3.js";
|
|
62
|
-
import Vector4 from "../../standard/Math/Numbers/Vector4.js";
|
|
63
|
-
|
|
64
|
-
/*
|
|
65
|
-
* Grammar
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
|
-
// VRML lexical elements
|
|
69
|
-
const Grammar = Expressions ({
|
|
70
|
-
// General
|
|
71
|
-
Whitespaces: /([\x20\n,\t\r]+)/gy,
|
|
72
|
-
Comment: /#(.*?)(?=[\n\r])/gy,
|
|
73
|
-
Break: /\r?\n/g,
|
|
74
|
-
|
|
75
|
-
// Header
|
|
76
|
-
Header: /^#(VRML|X3D) V(.*?) (utf8)(?:[ \t]+(.*?))?[ \t]*[\n\r]/gy,
|
|
77
|
-
|
|
78
|
-
// Keywords
|
|
79
|
-
AS: /AS/gy,
|
|
80
|
-
COMPONENT: /COMPONENT/gy,
|
|
81
|
-
DEF: /DEF/gy,
|
|
82
|
-
EXPORT: /EXPORT/gy,
|
|
83
|
-
EXTERNPROTO: /EXTERNPROTO/gy,
|
|
84
|
-
FALSE: /FALSE|false/gy,
|
|
85
|
-
IMPORT: /IMPORT/gy,
|
|
86
|
-
IS: /IS/gy,
|
|
87
|
-
META: /META/gy,
|
|
88
|
-
NULL: /NULL/gy,
|
|
89
|
-
TRUE: /TRUE|true/gy,
|
|
90
|
-
PROFILE: /PROFILE/gy,
|
|
91
|
-
PROTO: /PROTO/gy,
|
|
92
|
-
ROUTE: /ROUTE/gy,
|
|
93
|
-
TO: /TO/gy,
|
|
94
|
-
UNIT: /UNIT/gy,
|
|
95
|
-
USE: /USE/gy,
|
|
96
|
-
|
|
97
|
-
// Terminal symbols
|
|
98
|
-
OpenBrace: /\{/gy,
|
|
99
|
-
CloseBrace: /\}/gy,
|
|
100
|
-
OpenBracket: /\[/gy,
|
|
101
|
-
CloseBracket: /\]/gy,
|
|
102
|
-
Period: /\./gy,
|
|
103
|
-
Colon: /\:/gy,
|
|
104
|
-
|
|
105
|
-
Id: /([^\x30-\x39\x00-\x20\x22\x23\x27\x2b\x2c\x2d\x2e\x5b\x5c\x5d\x7b\x7d\x7f]{1}[^\x00-\x20\x22\x23\x27\x2c\x2e\x5b\x5c\x5d\x7b\x7d\x7f]*)/gy,
|
|
106
|
-
ComponentNameId: /([^\x30-\x39\x00-\x20\x22\x23\x27\x2b\x2c\x2d\x2e\x5b\x5c\x5d\x7b\x7d\x7f\x3a]{1}[^\x00-\x20\x22\x23\x27\x2c\x2e\x5b\x5c\x5d\x7b\x7d\x7f\x3a]*)/gy,
|
|
107
|
-
|
|
108
|
-
initializeOnly: /initializeOnly/gy,
|
|
109
|
-
inputOnly: /inputOnly/gy,
|
|
110
|
-
outputOnly: /outputOnly/gy,
|
|
111
|
-
inputOutput: /inputOutput/gy,
|
|
112
|
-
|
|
113
|
-
field: /field/gy,
|
|
114
|
-
eventIn: /eventIn/gy,
|
|
115
|
-
eventOut: /eventOut/gy,
|
|
116
|
-
exposedField: /exposedField/gy,
|
|
117
|
-
|
|
118
|
-
FieldType: /([SM]F(?:Bool|ColorRGBA|Color|Double|Float|Image|Int32|Matrix3d|Matrix3f|Matrix4d|Matrix4f|Node|Rotation|String|Time|Vec2d|Vec2f|Vec3d|Vec3f|Vec4d|Vec4f))/gy,
|
|
119
|
-
|
|
120
|
-
// Values
|
|
121
|
-
int32: /((?:0[xX][\da-fA-F]+)|(?:[+-]?\d+))/gy,
|
|
122
|
-
double: /([+-]?(?:(?:(?:\d*\.\d+)|(?:\d+(?:\.)?))(?:[eE][+-]?\d+)?))/gy,
|
|
123
|
-
string: /"((?:[^\\"]|\\\\|\\")*)"/gy,
|
|
124
|
-
|
|
125
|
-
CONSTANTS: /([+-]?)\b(NAN|INFINITY|INF|PI|PI2|PI1_4|PI2_4|PI3_4|PI4_4|PI5_4|PI6_4|PI7_4|PI8_4|PI1_2|PI2_2|PI3_2|PI4_2|PI1_3|PI2_3|PI3_3|PI4_3|PI5_3|PI6_3|SQRT1_2|SQRT2)\b/igy,
|
|
126
|
-
HTMLColor: /([a-zA-Z]+|0[xX][\da-fA-F]+|rgba?\(.*?\))/gy,
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
/*
|
|
130
|
-
* Parser
|
|
131
|
-
*/
|
|
132
|
-
|
|
133
|
-
function VRMLParser (scene)
|
|
134
|
-
{
|
|
135
|
-
X3DParser .call (this, scene);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
Object .assign (Object .setPrototypeOf (VRMLParser .prototype, X3DParser .prototype),
|
|
139
|
-
{
|
|
140
|
-
accessTypes:
|
|
141
|
-
{
|
|
142
|
-
field: X3DConstants .initializeOnly,
|
|
143
|
-
eventIn: X3DConstants .inputOnly,
|
|
144
|
-
eventOut: X3DConstants .outputOnly,
|
|
145
|
-
exposedField: X3DConstants .inputOutput,
|
|
146
|
-
initializeOnly: X3DConstants .initializeOnly,
|
|
147
|
-
inputOnly: X3DConstants .inputOnly,
|
|
148
|
-
outputOnly: X3DConstants .outputOnly,
|
|
149
|
-
inputOutput: X3DConstants .inputOutput,
|
|
150
|
-
},
|
|
151
|
-
SFImage: new Fields .SFImage (),
|
|
152
|
-
SFNode: new Fields .SFNode (),
|
|
153
|
-
MFString: new Fields .MFString (),
|
|
154
|
-
Color3: new Color3 (0, 0, 0),
|
|
155
|
-
Color4: new Color4 (0, 0, 0, 0),
|
|
156
|
-
Matrix3: new Matrix3 (),
|
|
157
|
-
Matrix4: new Matrix4 (),
|
|
158
|
-
Rotation4: new Rotation4 (),
|
|
159
|
-
Vector2: new Vector2 (0, 0),
|
|
160
|
-
Vector3: new Vector3 (0, 0, 0),
|
|
161
|
-
Vector4: new Vector4 (0, 0, 0, 0),
|
|
162
|
-
CONSTANTS: {
|
|
163
|
-
NAN: Number .NaN,
|
|
164
|
-
INFINITY: Number .POSITIVE_INFINITY,
|
|
165
|
-
INF: Number .POSITIVE_INFINITY,
|
|
166
|
-
PI: Math .PI,
|
|
167
|
-
PI2: Math .PI * 2,
|
|
168
|
-
PI1_4: Math .PI * 1/4,
|
|
169
|
-
PI2_4: Math .PI * 2/4,
|
|
170
|
-
PI3_4: Math .PI * 3/4,
|
|
171
|
-
PI4_4: Math .PI * 4/4,
|
|
172
|
-
PI5_4: Math .PI * 5/4,
|
|
173
|
-
PI6_4: Math .PI * 6/4,
|
|
174
|
-
PI7_4: Math .PI * 7/4,
|
|
175
|
-
PI8_4: Math .PI * 8/4,
|
|
176
|
-
PI1_2: Math .PI * 1/2,
|
|
177
|
-
PI2_2: Math .PI * 2/2,
|
|
178
|
-
PI3_2: Math .PI * 3/2,
|
|
179
|
-
PI4_2: Math .PI * 4/2,
|
|
180
|
-
PI1_3: Math .PI * 1/3,
|
|
181
|
-
PI2_3: Math .PI * 2/3,
|
|
182
|
-
PI3_3: Math .PI * 3/3,
|
|
183
|
-
PI4_3: Math .PI * 4/3,
|
|
184
|
-
PI5_3: Math .PI * 5/3,
|
|
185
|
-
PI6_3: Math .PI * 6/3,
|
|
186
|
-
SQRT1_2: Math .SQRT1_2,
|
|
187
|
-
SQRT2: Math .SQRT2,
|
|
188
|
-
},
|
|
189
|
-
getEncoding ()
|
|
190
|
-
{
|
|
191
|
-
return "STRING";
|
|
192
|
-
},
|
|
193
|
-
setInput (vrmlSyntax)
|
|
194
|
-
{
|
|
195
|
-
this .input = vrmlSyntax;
|
|
196
|
-
this .lineNumber = 1;
|
|
197
|
-
this .lastIndex = 0;
|
|
198
|
-
},
|
|
199
|
-
isValid ()
|
|
200
|
-
{
|
|
201
|
-
if (!(typeof this .input === "string"))
|
|
202
|
-
return false;
|
|
203
|
-
|
|
204
|
-
return !! this .input .match (/^(?:#X3D|#VRML|(?:[\x20\n,\t\r]*|#.*?[\r\n])*(PROFILE|COMPONENT|META|UNIT|EXTERNPROTO|PROTO|DEF|NULL|IMPORT|EXPORT|ROUTE|\w+(?:[\x20\n,\t\r]*|#.*?[\r\n])\{|$))/);
|
|
205
|
-
},
|
|
206
|
-
parseIntoScene (resolve, reject)
|
|
207
|
-
{
|
|
208
|
-
try
|
|
209
|
-
{
|
|
210
|
-
this .resolve = resolve;
|
|
211
|
-
this .reject = reject;
|
|
212
|
-
|
|
213
|
-
this .getScene () .setEncoding ("VRML");
|
|
214
|
-
this .getScene () .setProfile (this .getBrowser () .getProfile ("Full"));
|
|
215
|
-
this .x3dScene ();
|
|
216
|
-
}
|
|
217
|
-
catch (error)
|
|
218
|
-
{
|
|
219
|
-
//console .error (error);
|
|
220
|
-
throw new Error (this .getError (error));
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
throwOrWarn (string)
|
|
224
|
-
{
|
|
225
|
-
if (this .getBrowser () .isStrict ())
|
|
226
|
-
throw new Error (string);
|
|
227
|
-
|
|
228
|
-
console .warn (string);
|
|
229
|
-
},
|
|
230
|
-
getError (error)
|
|
231
|
-
{
|
|
232
|
-
//console .error (error);
|
|
233
|
-
|
|
234
|
-
const
|
|
235
|
-
string = error .message,
|
|
236
|
-
unexpected = this .lastIndex === this .input .length ? "Unexpected end of file. " : "";
|
|
237
|
-
|
|
238
|
-
let
|
|
239
|
-
rest = this .getLine (),
|
|
240
|
-
line = this .getLastLine (),
|
|
241
|
-
lastLine = this .getLastLine (),
|
|
242
|
-
linePos = line .length - rest .length + 1;
|
|
243
|
-
|
|
244
|
-
if (line .length > 80)
|
|
245
|
-
{
|
|
246
|
-
line = line .substr (linePos - 40, 80);
|
|
247
|
-
lastLine = "";
|
|
248
|
-
linePos = 40;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
// Format error
|
|
252
|
-
|
|
253
|
-
const message = "\n"
|
|
254
|
-
+ `********************************************************************************\n`
|
|
255
|
-
+ `Parser error at line ${this .lineNumber}:${linePos}\n`
|
|
256
|
-
+ `in '${this .getExecutionContext () .getWorldURL ()}'\n`
|
|
257
|
-
+ `\n`
|
|
258
|
-
+ `${lastLine}\n`
|
|
259
|
-
+ `${line}\n`
|
|
260
|
-
+ `${Array (linePos) .join (" ")}^\n`
|
|
261
|
-
+ `${unexpected}${string}\n`
|
|
262
|
-
+ `********************************************************************************\n`
|
|
263
|
-
;
|
|
264
|
-
|
|
265
|
-
return message;
|
|
266
|
-
},
|
|
267
|
-
getLine ()
|
|
268
|
-
{
|
|
269
|
-
let
|
|
270
|
-
input = this .input,
|
|
271
|
-
lastIndex = this .lastIndex,
|
|
272
|
-
line = "";
|
|
273
|
-
|
|
274
|
-
while (lastIndex < input .length && input [lastIndex] !== "\n" && input [lastIndex] !== "\r")
|
|
275
|
-
line += input [lastIndex ++];
|
|
276
|
-
|
|
277
|
-
this .lastIndex = lastIndex;
|
|
278
|
-
|
|
279
|
-
return line;
|
|
280
|
-
},
|
|
281
|
-
getLastLine ()
|
|
282
|
-
{
|
|
283
|
-
let
|
|
284
|
-
input = this .input,
|
|
285
|
-
lastIndex = Math .min (this .lastIndex, this .input .length - 1),
|
|
286
|
-
line = "";
|
|
287
|
-
|
|
288
|
-
if (lastIndex < input .length && (input [lastIndex] !== "\n" || input [lastIndex] !== "\r"))
|
|
289
|
-
-- lastIndex;
|
|
290
|
-
|
|
291
|
-
while (lastIndex >= 0 && input [lastIndex] !== "\n" && input [lastIndex] !== "\r")
|
|
292
|
-
line = input [lastIndex --] + line;
|
|
293
|
-
|
|
294
|
-
this .lastIndex = lastIndex;
|
|
295
|
-
|
|
296
|
-
return line;
|
|
297
|
-
},
|
|
298
|
-
comments ()
|
|
299
|
-
{
|
|
300
|
-
while (this .comment ())
|
|
301
|
-
;
|
|
302
|
-
},
|
|
303
|
-
comment ()
|
|
304
|
-
{
|
|
305
|
-
if (this .whitespaces ())
|
|
306
|
-
return true;
|
|
307
|
-
|
|
308
|
-
return Grammar .Comment .parse (this);
|
|
309
|
-
},
|
|
310
|
-
whitespaces ()
|
|
311
|
-
{
|
|
312
|
-
if (Grammar .Whitespaces .parse (this))
|
|
313
|
-
{
|
|
314
|
-
this .lines (this .result [1]);
|
|
315
|
-
|
|
316
|
-
return true;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
return false;
|
|
320
|
-
},
|
|
321
|
-
lines (string)
|
|
322
|
-
{
|
|
323
|
-
const match = string .match (Grammar .Break);
|
|
324
|
-
|
|
325
|
-
if (match)
|
|
326
|
-
this .lineNumber += match .length;
|
|
327
|
-
},
|
|
328
|
-
x3dScene: (() =>
|
|
329
|
-
{
|
|
330
|
-
const VRML =
|
|
331
|
-
[
|
|
332
|
-
"Core",
|
|
333
|
-
"EnvironmentalEffects",
|
|
334
|
-
"EnvironmentalSensor",
|
|
335
|
-
"Geometry3D",
|
|
336
|
-
"Grouping",
|
|
337
|
-
"Interpolation",
|
|
338
|
-
"Lighting",
|
|
339
|
-
"Navigation",
|
|
340
|
-
"Networking",
|
|
341
|
-
"PointingDeviceSensor",
|
|
342
|
-
"Rendering",
|
|
343
|
-
"Scripting",
|
|
344
|
-
"Shape",
|
|
345
|
-
"Sound",
|
|
346
|
-
"Text",
|
|
347
|
-
"Texturing",
|
|
348
|
-
"Time",
|
|
349
|
-
];
|
|
350
|
-
|
|
351
|
-
return function ()
|
|
352
|
-
{
|
|
353
|
-
this .headerStatement ();
|
|
354
|
-
this .profileStatement ();
|
|
355
|
-
this .componentStatements ();
|
|
356
|
-
this .unitStatements ();
|
|
357
|
-
this .metaStatements ();
|
|
358
|
-
|
|
359
|
-
if (this .getScene () .getSpecificationVersion () === "2.0")
|
|
360
|
-
{
|
|
361
|
-
this .getScene () .setProfile (this .getBrowser () .getProfile ("Core"));
|
|
362
|
-
|
|
363
|
-
for (const componentName of VRML)
|
|
364
|
-
this .getScene () .updateComponent (this .getBrowser () .getComponent (componentName));
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
if (this .resolve)
|
|
368
|
-
{
|
|
369
|
-
this .loadComponents () .then (() =>
|
|
370
|
-
{
|
|
371
|
-
try
|
|
372
|
-
{
|
|
373
|
-
this .statements (this .getExecutionContext () .rootNodes);
|
|
374
|
-
|
|
375
|
-
if (this .lastIndex < this .input .length)
|
|
376
|
-
throw new Error ("Unknown statement.");
|
|
377
|
-
|
|
378
|
-
this .resolve (this .getScene ());
|
|
379
|
-
}
|
|
380
|
-
catch (error)
|
|
381
|
-
{
|
|
382
|
-
console .error (error);
|
|
383
|
-
this .reject (new Error (this .getError (error)));
|
|
384
|
-
}
|
|
385
|
-
})
|
|
386
|
-
.catch (this .reject);
|
|
387
|
-
}
|
|
388
|
-
else
|
|
389
|
-
{
|
|
390
|
-
this .statements (this .getExecutionContext () .rootNodes);
|
|
391
|
-
|
|
392
|
-
if (this .lastIndex < this .input .length)
|
|
393
|
-
throw new Error ("Unknown statement.");
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
})(),
|
|
397
|
-
headerStatement ()
|
|
398
|
-
{
|
|
399
|
-
Grammar .Header .lastIndex = 0;
|
|
400
|
-
|
|
401
|
-
const result = Grammar .Header .exec (this .input);
|
|
402
|
-
|
|
403
|
-
if (result)
|
|
404
|
-
{
|
|
405
|
-
this .getScene () .setSpecificationVersion (result [2]);
|
|
406
|
-
this .getScene () .setEncoding ("VRML");
|
|
407
|
-
return true;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
return false;
|
|
411
|
-
},
|
|
412
|
-
profileStatement ()
|
|
413
|
-
{
|
|
414
|
-
this .comments ();
|
|
415
|
-
|
|
416
|
-
if (Grammar .PROFILE .parse (this))
|
|
417
|
-
{
|
|
418
|
-
if (this .profileNameId ())
|
|
419
|
-
{
|
|
420
|
-
const profile = this .getBrowser () .getProfile (this .result [1]);
|
|
421
|
-
|
|
422
|
-
this .getScene () .setProfile (profile);
|
|
423
|
-
return;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
throw new Error ("Expected a profile name.");
|
|
427
|
-
}
|
|
428
|
-
},
|
|
429
|
-
componentStatements ()
|
|
430
|
-
{
|
|
431
|
-
let component;
|
|
432
|
-
|
|
433
|
-
while (component = this .componentStatement ())
|
|
434
|
-
this .getScene () .updateComponent (component);
|
|
435
|
-
},
|
|
436
|
-
componentStatement ()
|
|
437
|
-
{
|
|
438
|
-
this .comments ();
|
|
439
|
-
|
|
440
|
-
if (Grammar .COMPONENT .parse (this))
|
|
441
|
-
{
|
|
442
|
-
if (this .componentNameId ())
|
|
443
|
-
{
|
|
444
|
-
const componentNameIdCharacters = this .result [1];
|
|
445
|
-
|
|
446
|
-
this .comments ();
|
|
447
|
-
|
|
448
|
-
if (Grammar .Colon .parse (this))
|
|
449
|
-
{
|
|
450
|
-
if (this .componentSupportLevel ())
|
|
451
|
-
{
|
|
452
|
-
const componentSupportLevel = this .value;
|
|
453
|
-
|
|
454
|
-
return this .getBrowser () .getComponent (componentNameIdCharacters, componentSupportLevel);
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
throw new Error ("Expected a component support level.");
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
throw new Error ("Expected a ':' after component name.");
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
throw new Error ("Expected a component name.");
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
return null;
|
|
467
|
-
},
|
|
468
|
-
componentSupportLevel ()
|
|
469
|
-
{
|
|
470
|
-
return this .int32 ();
|
|
471
|
-
},
|
|
472
|
-
unitStatements ()
|
|
473
|
-
{
|
|
474
|
-
while (this .unitStatement ())
|
|
475
|
-
;
|
|
476
|
-
},
|
|
477
|
-
unitStatement ()
|
|
478
|
-
{
|
|
479
|
-
this .comments ();
|
|
480
|
-
|
|
481
|
-
if (Grammar .UNIT .parse (this))
|
|
482
|
-
{
|
|
483
|
-
if (this .categoryNameId ())
|
|
484
|
-
{
|
|
485
|
-
const categoryNameId = this .result [1];
|
|
486
|
-
|
|
487
|
-
if (this .unitNameId ())
|
|
488
|
-
{
|
|
489
|
-
const unitNameId = this .result [1];
|
|
490
|
-
|
|
491
|
-
if (this .unitConversionFactor ())
|
|
492
|
-
{
|
|
493
|
-
const unitConversionFactor = this .value;
|
|
494
|
-
|
|
495
|
-
try
|
|
496
|
-
{
|
|
497
|
-
this .getScene () .updateUnit (categoryNameId, unitNameId, unitConversionFactor);
|
|
498
|
-
return true;
|
|
499
|
-
}
|
|
500
|
-
catch (error)
|
|
501
|
-
{
|
|
502
|
-
console .log (error .message);
|
|
503
|
-
return true;
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
throw new Error ("Expected unit conversion factor.");
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
throw new Error ("Expected unit name identifier.");
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
throw new Error ("Expected category name identifier after UNIT statement.");
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
return false;
|
|
517
|
-
},
|
|
518
|
-
unitConversionFactor ()
|
|
519
|
-
{
|
|
520
|
-
return this .double ();
|
|
521
|
-
},
|
|
522
|
-
metaStatements ()
|
|
523
|
-
{
|
|
524
|
-
while (this .metaStatement ())
|
|
525
|
-
;
|
|
526
|
-
},
|
|
527
|
-
metaStatement ()
|
|
528
|
-
{
|
|
529
|
-
this .comments ();
|
|
530
|
-
|
|
531
|
-
if (Grammar .META .parse (this))
|
|
532
|
-
{
|
|
533
|
-
if (this .metaKey ())
|
|
534
|
-
{
|
|
535
|
-
const metaKey = this .value;
|
|
536
|
-
|
|
537
|
-
if (this .metaValue ())
|
|
538
|
-
{
|
|
539
|
-
const metaValue = this .value;
|
|
540
|
-
|
|
541
|
-
this .getScene () .addMetaData (metaKey, metaValue);
|
|
542
|
-
return true;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
throw new Error ("Expected metadata value.");
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
throw new Error ("Expected metadata key.");
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
return false;
|
|
552
|
-
},
|
|
553
|
-
metaKey ()
|
|
554
|
-
{
|
|
555
|
-
return this .string ();
|
|
556
|
-
},
|
|
557
|
-
metaValue ()
|
|
558
|
-
{
|
|
559
|
-
return this .string ();
|
|
560
|
-
},
|
|
561
|
-
exportStatement ()
|
|
562
|
-
{
|
|
563
|
-
this .comments ();
|
|
564
|
-
|
|
565
|
-
if (Grammar .EXPORT .parse (this))
|
|
566
|
-
{
|
|
567
|
-
if (this .nodeNameId ())
|
|
568
|
-
{
|
|
569
|
-
const localNodeNameId = this .result [1];
|
|
570
|
-
|
|
571
|
-
this .comments ();
|
|
572
|
-
|
|
573
|
-
const node = this .getScene () .getLocalNode (localNodeNameId);
|
|
574
|
-
|
|
575
|
-
if (Grammar .AS .parse (this))
|
|
576
|
-
{
|
|
577
|
-
if (this .exportedNodeNameId ())
|
|
578
|
-
var exportedNodeNameId = this .result [1];
|
|
579
|
-
else
|
|
580
|
-
throw new Error ("No name given after AS.");
|
|
581
|
-
}
|
|
582
|
-
else
|
|
583
|
-
{
|
|
584
|
-
var exportedNodeNameId = localNodeNameId;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
if (this .getScene () === this .getExecutionContext ())
|
|
588
|
-
{
|
|
589
|
-
this .getScene () .updateExportedNode (exportedNodeNameId, node);
|
|
590
|
-
return true;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
throw new Error ("Export statement not allowed here.");
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
throw new Error ("No name given after EXPORT.");
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
return false;
|
|
600
|
-
},
|
|
601
|
-
importStatement ()
|
|
602
|
-
{
|
|
603
|
-
this .comments ();
|
|
604
|
-
|
|
605
|
-
if (Grammar .IMPORT .parse (this))
|
|
606
|
-
{
|
|
607
|
-
if (this .nodeNameId ())
|
|
608
|
-
{
|
|
609
|
-
const
|
|
610
|
-
inlineNodeNameId = this .result [1],
|
|
611
|
-
namedNode = this .getExecutionContext () .getNamedNode (inlineNodeNameId);
|
|
612
|
-
|
|
613
|
-
this .comments ();
|
|
614
|
-
|
|
615
|
-
if (Grammar .Period .parse (this))
|
|
616
|
-
{
|
|
617
|
-
if (this .exportedNodeNameId ())
|
|
618
|
-
{
|
|
619
|
-
const exportedNodeNameId = this .result [1];
|
|
620
|
-
|
|
621
|
-
this .comments ();
|
|
622
|
-
|
|
623
|
-
if (Grammar .AS .parse (this))
|
|
624
|
-
{
|
|
625
|
-
if (this .nodeNameId ())
|
|
626
|
-
var nodeNameId = this .result [1];
|
|
627
|
-
|
|
628
|
-
else
|
|
629
|
-
throw new Error ("No name given after AS.");
|
|
630
|
-
}
|
|
631
|
-
else
|
|
632
|
-
{
|
|
633
|
-
var nodeNameId = exportedNodeNameId;
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
this .getExecutionContext () .updateImportedNode (namedNode, exportedNodeNameId, nodeNameId);
|
|
637
|
-
return true;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
throw new Error ("Expected exported node name.");
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
throw new Error ("Expected a '.' after exported node name.");
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
throw new Error ("No name given after IMPORT statement.");
|
|
647
|
-
}
|
|
648
|
-
return false;
|
|
649
|
-
},
|
|
650
|
-
statements (field)
|
|
651
|
-
{
|
|
652
|
-
while (this .statement (field))
|
|
653
|
-
;
|
|
654
|
-
},
|
|
655
|
-
statement (field)
|
|
656
|
-
{
|
|
657
|
-
if (this .protoStatement ())
|
|
658
|
-
return true;
|
|
659
|
-
|
|
660
|
-
if (this .routeStatement ())
|
|
661
|
-
return true;
|
|
662
|
-
|
|
663
|
-
if (this .importStatement ())
|
|
664
|
-
return true;
|
|
665
|
-
|
|
666
|
-
if (this .exportStatement ())
|
|
667
|
-
return true;
|
|
668
|
-
|
|
669
|
-
const node = this .nodeStatement ();
|
|
670
|
-
|
|
671
|
-
if (node !== false)
|
|
672
|
-
{
|
|
673
|
-
field .push (node);
|
|
674
|
-
return true;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
return false;
|
|
678
|
-
},
|
|
679
|
-
nodeStatement ()
|
|
680
|
-
{
|
|
681
|
-
this .comments ();
|
|
682
|
-
|
|
683
|
-
if (Grammar .DEF .parse (this))
|
|
684
|
-
{
|
|
685
|
-
if (this .nodeNameId ())
|
|
686
|
-
return this .node (this .result [1]);
|
|
687
|
-
|
|
688
|
-
throw new Error ("No name given after DEF.");
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
if (Grammar .USE .parse (this))
|
|
692
|
-
{
|
|
693
|
-
if (this .nodeNameId ())
|
|
694
|
-
return this .getExecutionContext () .getNamedNode (this .result [1]) .getValue ();
|
|
695
|
-
|
|
696
|
-
throw new Error ("No name given after USE.");
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
if (Grammar .NULL .parse (this))
|
|
700
|
-
return null;
|
|
701
|
-
|
|
702
|
-
return this .node ("");
|
|
703
|
-
},
|
|
704
|
-
protoStatement ()
|
|
705
|
-
{
|
|
706
|
-
if (this .proto ())
|
|
707
|
-
return true;
|
|
708
|
-
|
|
709
|
-
if (this .externproto ())
|
|
710
|
-
return true;
|
|
711
|
-
|
|
712
|
-
return false;
|
|
713
|
-
},
|
|
714
|
-
protoStatements ()
|
|
715
|
-
{
|
|
716
|
-
while (this .protoStatement ())
|
|
717
|
-
;
|
|
718
|
-
},
|
|
719
|
-
proto ()
|
|
720
|
-
{
|
|
721
|
-
this .comments ();
|
|
722
|
-
|
|
723
|
-
if (Grammar .PROTO .parse (this))
|
|
724
|
-
{
|
|
725
|
-
if (this .nodeTypeId ())
|
|
726
|
-
{
|
|
727
|
-
const nodeTypeId = this .result [1];
|
|
728
|
-
|
|
729
|
-
this .comments ();
|
|
730
|
-
|
|
731
|
-
if (Grammar .OpenBracket .parse (this))
|
|
732
|
-
{
|
|
733
|
-
const interfaceDeclarations = this .interfaceDeclarations ();
|
|
734
|
-
|
|
735
|
-
this .comments ();
|
|
736
|
-
|
|
737
|
-
if (Grammar .CloseBracket .parse (this))
|
|
738
|
-
{
|
|
739
|
-
this .comments ();
|
|
740
|
-
|
|
741
|
-
if (Grammar .OpenBrace .parse (this))
|
|
742
|
-
{
|
|
743
|
-
const proto = new X3DProtoDeclaration (this .getExecutionContext ());
|
|
744
|
-
|
|
745
|
-
for (const field of interfaceDeclarations)
|
|
746
|
-
proto .addUserDefinedField (field .getAccessType (), field .getName (), field);
|
|
747
|
-
|
|
748
|
-
this .pushPrototype (proto);
|
|
749
|
-
this .pushExecutionContext (proto .getBody ());
|
|
750
|
-
|
|
751
|
-
this .protoBody (proto .getBody () .rootNodes);
|
|
752
|
-
|
|
753
|
-
this .popExecutionContext ();
|
|
754
|
-
this .popPrototype ();
|
|
755
|
-
|
|
756
|
-
this .comments ();
|
|
757
|
-
|
|
758
|
-
if (Grammar .CloseBrace .parse (this))
|
|
759
|
-
{
|
|
760
|
-
proto .setup ();
|
|
761
|
-
|
|
762
|
-
try
|
|
763
|
-
{
|
|
764
|
-
const existingProto = this .getExecutionContext () .getProtoDeclaration (nodeTypeId);
|
|
765
|
-
|
|
766
|
-
this .getExecutionContext () .updateProtoDeclaration (this .getExecutionContext () .getUniqueProtoName (nodeTypeId), existingProto);
|
|
767
|
-
}
|
|
768
|
-
catch
|
|
769
|
-
{ }
|
|
770
|
-
|
|
771
|
-
this .getExecutionContext () .updateProtoDeclaration (nodeTypeId, proto);
|
|
772
|
-
|
|
773
|
-
return true;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
throw new Error ("Expected a '}' at the end of PROTO body.");
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
throw new Error ("Expected a '{' at the beginning of PROTO body.");
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
throw new Error ("Expected a ']' at the end of PROTO interface declaration.");
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
throw new Error ("Expected a '[' at the beginning of PROTO interface declaration.");
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
throw new Error ("Invalid PROTO definition name.");
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
return false;
|
|
792
|
-
},
|
|
793
|
-
protoBody (rootNodes)
|
|
794
|
-
{
|
|
795
|
-
this .protoStatements ();
|
|
796
|
-
|
|
797
|
-
const rootNodeStatement = this .rootNodeStatement ();
|
|
798
|
-
|
|
799
|
-
if (rootNodeStatement !== false)
|
|
800
|
-
rootNodes .push (rootNodeStatement);
|
|
801
|
-
|
|
802
|
-
this .statements (rootNodes);
|
|
803
|
-
},
|
|
804
|
-
rootNodeStatement ()
|
|
805
|
-
{
|
|
806
|
-
this .comments ();
|
|
807
|
-
|
|
808
|
-
if (Grammar .DEF .parse (this))
|
|
809
|
-
{
|
|
810
|
-
if (this .nodeNameId ())
|
|
811
|
-
{
|
|
812
|
-
const
|
|
813
|
-
nodeNameId = this .result [0],
|
|
814
|
-
baseNode = this .node (nodeNameId);
|
|
815
|
-
|
|
816
|
-
if (baseNode !== false)
|
|
817
|
-
return baseNode;
|
|
818
|
-
|
|
819
|
-
throw new Error ("Expected node type name after DEF.");
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
throw new Error ("No name given after DEF.");
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
const baseNode = this .node ("");
|
|
826
|
-
|
|
827
|
-
if (baseNode !== false)
|
|
828
|
-
return baseNode;
|
|
829
|
-
|
|
830
|
-
return false;
|
|
831
|
-
},
|
|
832
|
-
interfaceDeclarations ()
|
|
833
|
-
{
|
|
834
|
-
const interfaceDeclarations = [ ];
|
|
835
|
-
|
|
836
|
-
let field;
|
|
837
|
-
|
|
838
|
-
while (field = this .interfaceDeclaration ())
|
|
839
|
-
interfaceDeclarations .push (field);
|
|
840
|
-
|
|
841
|
-
return interfaceDeclarations;
|
|
842
|
-
},
|
|
843
|
-
restrictedInterfaceDeclaration ()
|
|
844
|
-
{
|
|
845
|
-
this .comments ();
|
|
846
|
-
|
|
847
|
-
if (Grammar .inputOnly .parse (this) || Grammar .eventIn .parse (this))
|
|
848
|
-
{
|
|
849
|
-
if (this .fieldType ())
|
|
850
|
-
{
|
|
851
|
-
const fieldType = this .result [1];
|
|
852
|
-
|
|
853
|
-
if (this .inputOnlyId ())
|
|
854
|
-
{
|
|
855
|
-
const
|
|
856
|
-
fieldId = this .result [1],
|
|
857
|
-
field = new (Fields [fieldType]) ();
|
|
858
|
-
|
|
859
|
-
field .setAccessType (X3DConstants .inputOnly);
|
|
860
|
-
field .setName (fieldId);
|
|
861
|
-
return field;
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
throw new Error ("Expected a name for field.");
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
this .Id ()
|
|
868
|
-
|
|
869
|
-
throw new Error (`Unknown event or field type: '${this .result [1]}'.`);
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
if (Grammar .outputOnly .parse (this) || Grammar .eventOut .parse (this))
|
|
873
|
-
{
|
|
874
|
-
if (this .fieldType ())
|
|
875
|
-
{
|
|
876
|
-
const fieldType = this .result [1];
|
|
877
|
-
|
|
878
|
-
if (this .outputOnlyId ())
|
|
879
|
-
{
|
|
880
|
-
const
|
|
881
|
-
fieldId = this .result [1],
|
|
882
|
-
field = new (Fields [fieldType]) ();
|
|
883
|
-
|
|
884
|
-
field .setAccessType (X3DConstants .outputOnly);
|
|
885
|
-
field .setName (fieldId);
|
|
886
|
-
return field;
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
throw new Error ("Expected a name for field.");
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
this .Id ()
|
|
893
|
-
|
|
894
|
-
throw new Error (`Unknown event or field type: '${this .result [1]}'.`);
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
if (Grammar .initializeOnly .parse (this) || Grammar .field .parse (this))
|
|
898
|
-
{
|
|
899
|
-
if (this .fieldType ())
|
|
900
|
-
{
|
|
901
|
-
const fieldType = this .result [1];
|
|
902
|
-
|
|
903
|
-
if (this .initializeOnlyId ())
|
|
904
|
-
{
|
|
905
|
-
const
|
|
906
|
-
fieldId = this .result [1],
|
|
907
|
-
field = new (Fields [fieldType]) ();
|
|
908
|
-
|
|
909
|
-
if (this .fieldValue (field))
|
|
910
|
-
{
|
|
911
|
-
field .setAccessType (X3DConstants .initializeOnly);
|
|
912
|
-
field .setName (fieldId);
|
|
913
|
-
return field;
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
throw new Error (`Couldn't read value for field '${fieldId}'.`);
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
throw new Error ("Expected a name for field.");
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
this .Id ()
|
|
923
|
-
|
|
924
|
-
throw new Error (`Unknown event or field type: '${this .result [1]}'.`);
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
return null;
|
|
928
|
-
},
|
|
929
|
-
interfaceDeclaration ()
|
|
930
|
-
{
|
|
931
|
-
const field = this .restrictedInterfaceDeclaration ();
|
|
932
|
-
|
|
933
|
-
if (field)
|
|
934
|
-
return field;
|
|
935
|
-
|
|
936
|
-
this .comments ();
|
|
937
|
-
|
|
938
|
-
if (Grammar .inputOutput .parse (this) || Grammar .exposedField .parse (this))
|
|
939
|
-
{
|
|
940
|
-
if (this .fieldType ())
|
|
941
|
-
{
|
|
942
|
-
const fieldType = this .result [1];
|
|
943
|
-
|
|
944
|
-
if (this .inputOutputId ())
|
|
945
|
-
{
|
|
946
|
-
const
|
|
947
|
-
fieldId = this .result [1],
|
|
948
|
-
field = new (Fields [fieldType]) ();
|
|
949
|
-
|
|
950
|
-
if (this .fieldValue (field))
|
|
951
|
-
{
|
|
952
|
-
field .setAccessType (X3DConstants .inputOutput);
|
|
953
|
-
field .setName (fieldId);
|
|
954
|
-
return field;
|
|
955
|
-
}
|
|
956
|
-
|
|
957
|
-
throw new Error (`Couldn't read value for field '${fieldId}'.`);
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
throw new Error ("Expected a name for field.");
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
this .Id ();
|
|
964
|
-
|
|
965
|
-
throw new Error (`Unknown event or field type: '${this .result [1]}'.`);
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
return null;
|
|
969
|
-
},
|
|
970
|
-
externproto ()
|
|
971
|
-
{
|
|
972
|
-
this .comments ();
|
|
973
|
-
|
|
974
|
-
if (Grammar .EXTERNPROTO .parse (this))
|
|
975
|
-
{
|
|
976
|
-
if (this .nodeTypeId ())
|
|
977
|
-
{
|
|
978
|
-
const nodeTypeId = this .result [1];
|
|
979
|
-
|
|
980
|
-
this .comments ();
|
|
981
|
-
|
|
982
|
-
if (Grammar .OpenBracket .parse (this))
|
|
983
|
-
{
|
|
984
|
-
const externInterfaceDeclarations = this .externInterfaceDeclarations ();
|
|
985
|
-
|
|
986
|
-
this .comments ();
|
|
987
|
-
|
|
988
|
-
if (Grammar .CloseBracket .parse (this))
|
|
989
|
-
{
|
|
990
|
-
if (this .URLList (this .MFString))
|
|
991
|
-
{
|
|
992
|
-
const externproto = new X3DExternProtoDeclaration (this .getExecutionContext (), this .MFString);
|
|
993
|
-
|
|
994
|
-
for (const field of externInterfaceDeclarations)
|
|
995
|
-
externproto .addUserDefinedField (field .getAccessType (), field .getName (), field);
|
|
996
|
-
|
|
997
|
-
externproto .setup ();
|
|
998
|
-
|
|
999
|
-
try
|
|
1000
|
-
{
|
|
1001
|
-
const existingExternProto = this .getExecutionContext () .getExternProtoDeclaration (nodeTypeId);
|
|
1002
|
-
|
|
1003
|
-
this .getExecutionContext () .updateExternProtoDeclaration (this .getExecutionContext () .getUniqueExternProtoName (nodeTypeId), existingExternProto);
|
|
1004
|
-
}
|
|
1005
|
-
catch
|
|
1006
|
-
{ }
|
|
1007
|
-
|
|
1008
|
-
this .getExecutionContext () .updateExternProtoDeclaration (nodeTypeId, externproto);
|
|
1009
|
-
return true;
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
throw new Error (`Expected a URL list after EXTERNPROTO interface declaration '${nodeTypeId}'.`);
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
throw new Error ("Expected a ']' at the end of EXTERNPROTO interface declaration.");
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
throw new Error ("Expected a '[' at the beginning of EXTERNPROTO interface declaration.");
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
throw new Error ("Invalid EXTERNPROTO definition name.");
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
return false;
|
|
1025
|
-
},
|
|
1026
|
-
externInterfaceDeclarations ()
|
|
1027
|
-
{
|
|
1028
|
-
const externInterfaceDeclarations = [ ];
|
|
1029
|
-
|
|
1030
|
-
let field;
|
|
1031
|
-
|
|
1032
|
-
while (field = this .externInterfaceDeclaration ())
|
|
1033
|
-
externInterfaceDeclarations .push (field);
|
|
1034
|
-
|
|
1035
|
-
return externInterfaceDeclarations;
|
|
1036
|
-
},
|
|
1037
|
-
externInterfaceDeclaration ()
|
|
1038
|
-
{
|
|
1039
|
-
this .comments ();
|
|
1040
|
-
|
|
1041
|
-
if (Grammar .inputOnly .parse (this) || Grammar .eventIn .parse (this))
|
|
1042
|
-
{
|
|
1043
|
-
if (this .fieldType ())
|
|
1044
|
-
{
|
|
1045
|
-
const fieldType = this .result [1];
|
|
1046
|
-
|
|
1047
|
-
if (this .inputOnlyId ())
|
|
1048
|
-
{
|
|
1049
|
-
const
|
|
1050
|
-
fieldId = this .result [1],
|
|
1051
|
-
field = new (Fields [fieldType]) ();
|
|
1052
|
-
|
|
1053
|
-
field .setAccessType (X3DConstants .inputOnly);
|
|
1054
|
-
field .setName (fieldId);
|
|
1055
|
-
return field;
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
throw new Error ("Expected a name for field.");
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
this .Id ()
|
|
1062
|
-
|
|
1063
|
-
throw new Error (`Unknown event or field type: '${this .result [1]}'.`);
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
if (Grammar .outputOnly .parse (this) || Grammar .eventOut .parse (this))
|
|
1067
|
-
{
|
|
1068
|
-
if (this .fieldType ())
|
|
1069
|
-
{
|
|
1070
|
-
const fieldType = this .result [1];
|
|
1071
|
-
|
|
1072
|
-
if (this .outputOnlyId ())
|
|
1073
|
-
{
|
|
1074
|
-
const
|
|
1075
|
-
fieldId = this .result [1],
|
|
1076
|
-
field = new (Fields [fieldType]) ();
|
|
1077
|
-
|
|
1078
|
-
field .setAccessType (X3DConstants .outputOnly);
|
|
1079
|
-
field .setName (fieldId);
|
|
1080
|
-
return field;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
throw new Error ("Expected a name for field.");
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
this .Id ()
|
|
1087
|
-
|
|
1088
|
-
throw new Error (`Unknown event or field type: '${this .result [1]}'.`);
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
if (Grammar .initializeOnly .parse (this) || Grammar .field .parse (this))
|
|
1092
|
-
{
|
|
1093
|
-
if (this .fieldType ())
|
|
1094
|
-
{
|
|
1095
|
-
const fieldType = this .result [1];
|
|
1096
|
-
|
|
1097
|
-
if (this .initializeOnlyId ())
|
|
1098
|
-
{
|
|
1099
|
-
const
|
|
1100
|
-
fieldId = this .result [1],
|
|
1101
|
-
field = new (Fields [fieldType]) ();
|
|
1102
|
-
|
|
1103
|
-
field .setAccessType (X3DConstants .initializeOnly);
|
|
1104
|
-
field .setName (fieldId);
|
|
1105
|
-
return field;
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
throw new Error ("Expected a name for field.");
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
this .Id ()
|
|
1112
|
-
|
|
1113
|
-
throw new Error (`Unknown event or field type: '${this .result [1]}'.`);
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
if (Grammar .inputOutput .parse (this) || Grammar .exposedField .parse (this))
|
|
1117
|
-
{
|
|
1118
|
-
if (this .fieldType ())
|
|
1119
|
-
{
|
|
1120
|
-
const fieldType = this .result [1];
|
|
1121
|
-
|
|
1122
|
-
if (this .inputOutputId ())
|
|
1123
|
-
{
|
|
1124
|
-
const
|
|
1125
|
-
fieldId = this .result [1],
|
|
1126
|
-
field = new (Fields [fieldType]) ();
|
|
1127
|
-
|
|
1128
|
-
field .setAccessType (X3DConstants .inputOutput);
|
|
1129
|
-
field .setName (fieldId);
|
|
1130
|
-
return field;
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
throw new Error ("Expected a name for field.");
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
this .Id ()
|
|
1137
|
-
|
|
1138
|
-
throw new Error (`Unknown event or field type: '${this .result [1]}'.`);
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
return null;
|
|
1142
|
-
},
|
|
1143
|
-
URLList (field)
|
|
1144
|
-
{
|
|
1145
|
-
return this .mfstringValue (field);
|
|
1146
|
-
},
|
|
1147
|
-
routeStatement ()
|
|
1148
|
-
{
|
|
1149
|
-
this .comments ();
|
|
1150
|
-
|
|
1151
|
-
if (Grammar .ROUTE .parse (this))
|
|
1152
|
-
{
|
|
1153
|
-
if (this .nodeNameId ())
|
|
1154
|
-
{
|
|
1155
|
-
const
|
|
1156
|
-
fromNodeId = this .result [1],
|
|
1157
|
-
fromNode = this .getExecutionContext () .getLocalNode (fromNodeId);
|
|
1158
|
-
|
|
1159
|
-
this .comments ();
|
|
1160
|
-
|
|
1161
|
-
if (Grammar .Period .parse (this))
|
|
1162
|
-
{
|
|
1163
|
-
if (this .outputOnlyId ())
|
|
1164
|
-
{
|
|
1165
|
-
const eventOutId = this .result [1];
|
|
1166
|
-
|
|
1167
|
-
this .comments ();
|
|
1168
|
-
|
|
1169
|
-
if (Grammar .TO .parse (this))
|
|
1170
|
-
{
|
|
1171
|
-
if (this .nodeNameId ())
|
|
1172
|
-
{
|
|
1173
|
-
const
|
|
1174
|
-
toNodeId = this .result [1],
|
|
1175
|
-
toNode = this .getExecutionContext () .getLocalNode (toNodeId);
|
|
1176
|
-
|
|
1177
|
-
this .comments ();
|
|
1178
|
-
|
|
1179
|
-
if (Grammar .Period .parse (this))
|
|
1180
|
-
{
|
|
1181
|
-
if (this .inputOnlyId ())
|
|
1182
|
-
{
|
|
1183
|
-
try
|
|
1184
|
-
{
|
|
1185
|
-
const eventInId = this .result [1];
|
|
1186
|
-
|
|
1187
|
-
this .getExecutionContext () .addRoute (fromNode, eventOutId, toNode, eventInId);
|
|
1188
|
-
return true;
|
|
1189
|
-
}
|
|
1190
|
-
catch (error)
|
|
1191
|
-
{
|
|
1192
|
-
this .throwOrWarn (error .message);
|
|
1193
|
-
|
|
1194
|
-
return true;
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
throw new Error ("Bad ROUTE specification: Expected a field name.");
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
throw new Error ("Bad ROUTE specification: Expected a '.' after node name.");
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
throw new Error ("Bad ROUTE specification: Expected a node name.");
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
throw new Error ("Bad ROUTE specification: Expected a 'TO'.");
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
throw new Error ("Bad ROUTE specification: Expected a field name.");
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
throw new Error ("Bad ROUTE specification: Expected a '.' after node name.");
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
throw new Error ("Bad ROUTE specification: Expected a node name.");
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
return false;
|
|
1220
|
-
},
|
|
1221
|
-
node (nodeNameId)
|
|
1222
|
-
{
|
|
1223
|
-
if (this .nodeTypeId ())
|
|
1224
|
-
{
|
|
1225
|
-
const nodeTypeId = this .result [1];
|
|
1226
|
-
|
|
1227
|
-
const baseNode = this .getExecutionContext () .createNode (nodeTypeId, false)
|
|
1228
|
-
?? this .getExecutionContext () .createProto (nodeTypeId, false);
|
|
1229
|
-
|
|
1230
|
-
if (!baseNode)
|
|
1231
|
-
throw new Error (`Unknown node type or proto '${nodeTypeId}', you probably have insufficient component/profile statements, and/or an inappropriate specification version.`);
|
|
1232
|
-
|
|
1233
|
-
if (nodeNameId .length)
|
|
1234
|
-
{
|
|
1235
|
-
try
|
|
1236
|
-
{
|
|
1237
|
-
const namedNode = this .getExecutionContext () .getNamedNode (nodeNameId);
|
|
1238
|
-
|
|
1239
|
-
this .getExecutionContext () .updateNamedNode (this .getExecutionContext () .getUniqueName (nodeNameId), namedNode);
|
|
1240
|
-
}
|
|
1241
|
-
catch
|
|
1242
|
-
{ }
|
|
1243
|
-
|
|
1244
|
-
this .getExecutionContext () .updateNamedNode (nodeNameId, baseNode);
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
this .comments ();
|
|
1248
|
-
|
|
1249
|
-
if (Grammar .OpenBrace .parse (this))
|
|
1250
|
-
{
|
|
1251
|
-
if (baseNode .canUserDefinedFields ())
|
|
1252
|
-
this .scriptBody (baseNode);
|
|
1253
|
-
|
|
1254
|
-
else
|
|
1255
|
-
this .nodeBody (baseNode);
|
|
1256
|
-
|
|
1257
|
-
this .comments ();
|
|
1258
|
-
|
|
1259
|
-
if (Grammar .CloseBrace .parse (this))
|
|
1260
|
-
{
|
|
1261
|
-
if (!this .isInsideProtoDefinition ())
|
|
1262
|
-
baseNode .setup ();
|
|
1263
|
-
|
|
1264
|
-
return baseNode;
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
throw new Error ("Expected '}' at the end of node body.");
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
throw new Error ("Expected '{' at the beginning of node body.");
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
return false;
|
|
1274
|
-
},
|
|
1275
|
-
scriptBody (baseNode)
|
|
1276
|
-
{
|
|
1277
|
-
while (this .scriptBodyElement (baseNode))
|
|
1278
|
-
;
|
|
1279
|
-
},
|
|
1280
|
-
scriptBodyElement (baseNode)
|
|
1281
|
-
{
|
|
1282
|
-
const
|
|
1283
|
-
lastIndex = this .lastIndex,
|
|
1284
|
-
lineNumber = this .lineNumber;
|
|
1285
|
-
|
|
1286
|
-
if (this .Id ())
|
|
1287
|
-
{
|
|
1288
|
-
const accessType = this .accessTypes [this .result [1]];
|
|
1289
|
-
|
|
1290
|
-
if (accessType)
|
|
1291
|
-
{
|
|
1292
|
-
if (this .fieldType ())
|
|
1293
|
-
{
|
|
1294
|
-
const fieldType = this .result [1];
|
|
1295
|
-
|
|
1296
|
-
if (this .Id ())
|
|
1297
|
-
{
|
|
1298
|
-
const fieldId = this .result [1];
|
|
1299
|
-
|
|
1300
|
-
this .comments ();
|
|
1301
|
-
|
|
1302
|
-
if (Grammar .IS .parse (this))
|
|
1303
|
-
{
|
|
1304
|
-
if (this .isInsideProtoDefinition ())
|
|
1305
|
-
{
|
|
1306
|
-
if (this .Id ())
|
|
1307
|
-
{
|
|
1308
|
-
const isId = this .result [1];
|
|
1309
|
-
|
|
1310
|
-
try
|
|
1311
|
-
{
|
|
1312
|
-
var reference = this .getPrototype () .getField (isId);
|
|
1313
|
-
}
|
|
1314
|
-
catch
|
|
1315
|
-
{
|
|
1316
|
-
this .throwOrWarn (`No such event or field '${isId}' inside PROTO ${this .getPrototype () .getName ()} interface declaration.`);
|
|
1317
|
-
|
|
1318
|
-
return true;
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
if (X3DConstants [fieldType] === reference .getType ())
|
|
1322
|
-
{
|
|
1323
|
-
if (reference .isReference (accessType))
|
|
1324
|
-
{
|
|
1325
|
-
let field = $.try (() => baseNode .getUserDefinedField (fieldId));
|
|
1326
|
-
|
|
1327
|
-
if (!field)
|
|
1328
|
-
{
|
|
1329
|
-
field = new (Fields [fieldType]) ();
|
|
1330
|
-
|
|
1331
|
-
baseNode .addUserDefinedField (accessType, fieldId, field);
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
if (accessType === field .getAccessType () && reference .getType () === field .getType ())
|
|
1335
|
-
{
|
|
1336
|
-
field .addReference (reference);
|
|
1337
|
-
return true;
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
throw new Error (`Couldn't add field '${fieldId}', field already exists with different access type or data type.`);
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
throw new Error (`Field '${fieldId}' and '${reference .getName ()}' in PROTO '${this .getPrototype () .getName ()}' are incompatible as an IS mapping.`);
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
throw new Error (`Field '${fieldId}' and '${reference .getName ()}' in PROTO '${this .getPrototype () .getName ()}' have different types.`);
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
|
-
throw new Error ("No name give after IS statement.");
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
throw new Error ("IS statement outside PROTO definition.");
|
|
1353
|
-
}
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
this .lastIndex = lastIndex;
|
|
1360
|
-
this .lineNumber = lineNumber;
|
|
1361
|
-
|
|
1362
|
-
const field = this .interfaceDeclaration ();
|
|
1363
|
-
|
|
1364
|
-
if (field)
|
|
1365
|
-
{
|
|
1366
|
-
const existingField = $.try (() => baseNode .getUserDefinedField (field .getName ()));
|
|
1367
|
-
|
|
1368
|
-
if (existingField)
|
|
1369
|
-
{
|
|
1370
|
-
if (existingField .getAccessType () === field .getAccessType () && existingField .getType () === field .getType ())
|
|
1371
|
-
{
|
|
1372
|
-
existingField .assign (field);
|
|
1373
|
-
return true;
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
throw new Error (`Couldn't set value for field '${field .getName ()}', field already exists with different access type or data type.`);
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
baseNode .addUserDefinedField (field .getAccessType (), field .getName (), field);
|
|
1380
|
-
return true;
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
return this .nodeBodyElement (baseNode);
|
|
1384
|
-
},
|
|
1385
|
-
nodeBody (baseNode)
|
|
1386
|
-
{
|
|
1387
|
-
while (this .nodeBodyElement (baseNode))
|
|
1388
|
-
;
|
|
1389
|
-
},
|
|
1390
|
-
nodeBodyElement (baseNode)
|
|
1391
|
-
{
|
|
1392
|
-
if (this .protoStatement ())
|
|
1393
|
-
return true;
|
|
1394
|
-
|
|
1395
|
-
if (this .routeStatement ())
|
|
1396
|
-
return true;
|
|
1397
|
-
|
|
1398
|
-
if (this .Id ())
|
|
1399
|
-
{
|
|
1400
|
-
const fieldId = this .result [1];
|
|
1401
|
-
|
|
1402
|
-
try
|
|
1403
|
-
{
|
|
1404
|
-
var field = baseNode .getPredefinedField (fieldId);
|
|
1405
|
-
}
|
|
1406
|
-
catch
|
|
1407
|
-
{
|
|
1408
|
-
throw new Error (`Unknown field '${fieldId}' in class '${baseNode .getTypeName ()}'.`);
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
this .comments ();
|
|
1412
|
-
|
|
1413
|
-
if (Grammar .IS .parse (this))
|
|
1414
|
-
{
|
|
1415
|
-
if (this .isInsideProtoDefinition ())
|
|
1416
|
-
{
|
|
1417
|
-
if (this .Id ())
|
|
1418
|
-
{
|
|
1419
|
-
const isId = this .result [1];
|
|
1420
|
-
|
|
1421
|
-
try
|
|
1422
|
-
{
|
|
1423
|
-
var reference = this .getPrototype () .getField (isId);
|
|
1424
|
-
}
|
|
1425
|
-
catch
|
|
1426
|
-
{
|
|
1427
|
-
this .throwOrWarn (`No such event or field '${isId}' inside PROTO ${this .getPrototype () .getName ()}`);
|
|
1428
|
-
|
|
1429
|
-
return true;
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
if (field .getType () === reference .getType ())
|
|
1433
|
-
{
|
|
1434
|
-
if (reference .isReference (field .getAccessType ()))
|
|
1435
|
-
{
|
|
1436
|
-
field .addReference (reference);
|
|
1437
|
-
return true;
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
throw new Error (`Field '${field .getName ()}' and '${reference .getName ()}' in PROTO ${this .getPrototype () .getName ()} are incompatible as an IS mapping.`);
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
throw new Error (`Field '${field .getName ()}' and '${reference .getName ()}' in PROTO ${this .getPrototype () .getName ()} have different types.`);
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
throw new Error("No name give after IS statement.");
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
throw new Error ("IS statement outside PROTO definition.");
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
if (field .isInitializable ())
|
|
1453
|
-
{
|
|
1454
|
-
if (this .fieldValue (field))
|
|
1455
|
-
return true;
|
|
1456
|
-
|
|
1457
|
-
throw new Error (`Couldn't read value for field '${fieldId}'.`);
|
|
1458
|
-
}
|
|
1459
|
-
|
|
1460
|
-
throw new Error (`Couldn't assign value to ${this .accessTypeToString (field .getAccessType ())} field '${fieldId}'.`);
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
return false;
|
|
1464
|
-
},
|
|
1465
|
-
profileNameId () { return this .Id (); },
|
|
1466
|
-
componentNameId ()
|
|
1467
|
-
{
|
|
1468
|
-
this .comments ();
|
|
1469
|
-
|
|
1470
|
-
return Grammar .ComponentNameId .parse (this);
|
|
1471
|
-
},
|
|
1472
|
-
categoryNameId () { return this .Id (); },
|
|
1473
|
-
unitNameId () { return this .Id (); },
|
|
1474
|
-
exportedNodeNameId () { return this .Id (); },
|
|
1475
|
-
nodeNameId () { return this .Id (); },
|
|
1476
|
-
nodeTypeId () { return this .Id (); },
|
|
1477
|
-
initializeOnlyId () { return this .Id (); },
|
|
1478
|
-
inputOnlyId () { return this .Id (); },
|
|
1479
|
-
outputOnlyId () { return this .Id (); },
|
|
1480
|
-
inputOutputId () { return this .Id (); },
|
|
1481
|
-
Id ()
|
|
1482
|
-
{
|
|
1483
|
-
this .comments ();
|
|
1484
|
-
|
|
1485
|
-
return Grammar .Id .parse (this);
|
|
1486
|
-
},
|
|
1487
|
-
fieldType ()
|
|
1488
|
-
{
|
|
1489
|
-
this .comments ();
|
|
1490
|
-
|
|
1491
|
-
return Grammar .FieldType .parse (this);
|
|
1492
|
-
},
|
|
1493
|
-
fieldValue (field)
|
|
1494
|
-
{
|
|
1495
|
-
return this [field .getType ()] (field, field .getUnit ());
|
|
1496
|
-
},
|
|
1497
|
-
bool ()
|
|
1498
|
-
{
|
|
1499
|
-
this .comments ();
|
|
1500
|
-
|
|
1501
|
-
if (Grammar .TRUE .parse (this))
|
|
1502
|
-
{
|
|
1503
|
-
this .value = true;
|
|
1504
|
-
return true;
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
if (Grammar .FALSE .parse (this))
|
|
1508
|
-
{
|
|
1509
|
-
this .value = false;
|
|
1510
|
-
return true;
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
return false;
|
|
1514
|
-
},
|
|
1515
|
-
double ()
|
|
1516
|
-
{
|
|
1517
|
-
this .comments ();
|
|
1518
|
-
|
|
1519
|
-
if (Grammar .double .parse (this))
|
|
1520
|
-
{
|
|
1521
|
-
this .value = parseFloat (this .result [1]);
|
|
1522
|
-
return true;
|
|
1523
|
-
}
|
|
1524
|
-
|
|
1525
|
-
// Constants
|
|
1526
|
-
|
|
1527
|
-
if (Grammar .CONSTANTS .parse (this))
|
|
1528
|
-
{
|
|
1529
|
-
this .value = this .CONSTANTS [this .result [2] .toUpperCase ()];
|
|
1530
|
-
|
|
1531
|
-
if (this .result [1] === "-")
|
|
1532
|
-
this .value = - this .value;
|
|
1533
|
-
|
|
1534
|
-
return true;
|
|
1535
|
-
}
|
|
1536
|
-
|
|
1537
|
-
return false;
|
|
1538
|
-
},
|
|
1539
|
-
int32 ()
|
|
1540
|
-
{
|
|
1541
|
-
this .comments ();
|
|
1542
|
-
|
|
1543
|
-
if (Grammar .int32 .parse (this))
|
|
1544
|
-
{
|
|
1545
|
-
this .value = parseInt (this .result [1]);
|
|
1546
|
-
return true;
|
|
1547
|
-
}
|
|
1548
|
-
|
|
1549
|
-
return false;
|
|
1550
|
-
},
|
|
1551
|
-
string ()
|
|
1552
|
-
{
|
|
1553
|
-
this .comments ();
|
|
1554
|
-
|
|
1555
|
-
if (Grammar .string .parse (this))
|
|
1556
|
-
{
|
|
1557
|
-
this .value = Fields .SFString .unescape (this .result [1]);
|
|
1558
|
-
|
|
1559
|
-
this .lines (this .value);
|
|
1560
|
-
|
|
1561
|
-
return true;
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
return false;
|
|
1565
|
-
},
|
|
1566
|
-
sfboolValue (field)
|
|
1567
|
-
{
|
|
1568
|
-
if (this .bool ())
|
|
1569
|
-
{
|
|
1570
|
-
field .setValue (this .value);
|
|
1571
|
-
return true;
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
return false;
|
|
1575
|
-
},
|
|
1576
|
-
mfboolValue (field)
|
|
1577
|
-
{
|
|
1578
|
-
field .length = 0;
|
|
1579
|
-
|
|
1580
|
-
if (this .bool ())
|
|
1581
|
-
{
|
|
1582
|
-
field .push (this .value);
|
|
1583
|
-
return true;
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
if (Grammar .OpenBracket .parse (this))
|
|
1587
|
-
{
|
|
1588
|
-
this .sfboolValues (field);
|
|
1589
|
-
|
|
1590
|
-
if (Grammar .CloseBracket .parse (this))
|
|
1591
|
-
return true;
|
|
1592
|
-
|
|
1593
|
-
throw new Error ("Expected ']'.");
|
|
1594
|
-
}
|
|
1595
|
-
|
|
1596
|
-
return false;
|
|
1597
|
-
},
|
|
1598
|
-
sfboolValues (field)
|
|
1599
|
-
{
|
|
1600
|
-
field .length = 0;
|
|
1601
|
-
field = field .getTarget ();
|
|
1602
|
-
|
|
1603
|
-
while (this .bool ())
|
|
1604
|
-
field .push (this .value);
|
|
1605
|
-
},
|
|
1606
|
-
sfcolorValue (field)
|
|
1607
|
-
{
|
|
1608
|
-
const lastIndex = this .lastIndex;
|
|
1609
|
-
|
|
1610
|
-
if (this .double ())
|
|
1611
|
-
{
|
|
1612
|
-
const r = this .value;
|
|
1613
|
-
|
|
1614
|
-
if (this .double ())
|
|
1615
|
-
{
|
|
1616
|
-
const g = this .value;
|
|
1617
|
-
|
|
1618
|
-
if (this .double ())
|
|
1619
|
-
{
|
|
1620
|
-
const b = this .value;
|
|
1621
|
-
|
|
1622
|
-
field .r = r;
|
|
1623
|
-
field .g = g;
|
|
1624
|
-
field .b = b;
|
|
1625
|
-
|
|
1626
|
-
return true;
|
|
1627
|
-
}
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
|
|
1631
|
-
this .lastIndex = lastIndex;
|
|
1632
|
-
|
|
1633
|
-
this .comments ();
|
|
1634
|
-
|
|
1635
|
-
if (Grammar .HTMLColor .parse (this))
|
|
1636
|
-
{
|
|
1637
|
-
const color = this .convertColor (this .result [1] .replace (/0x/i, "#"));
|
|
1638
|
-
|
|
1639
|
-
field .r = color [0];
|
|
1640
|
-
field .g = color [1];
|
|
1641
|
-
field .b = color [2];
|
|
1642
|
-
|
|
1643
|
-
return true;
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
return false;
|
|
1647
|
-
},
|
|
1648
|
-
mfcolorValue (field)
|
|
1649
|
-
{
|
|
1650
|
-
field .length = 0;
|
|
1651
|
-
|
|
1652
|
-
if (this .sfcolorValue (this .Color3))
|
|
1653
|
-
{
|
|
1654
|
-
field .push (this .Color3);
|
|
1655
|
-
return true;
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
if (Grammar .OpenBracket .parse (this))
|
|
1659
|
-
{
|
|
1660
|
-
this .sfcolorValues (field);
|
|
1661
|
-
|
|
1662
|
-
if (Grammar .CloseBracket .parse (this))
|
|
1663
|
-
return true;
|
|
1664
|
-
|
|
1665
|
-
throw new Error ("Expected ']'.");
|
|
1666
|
-
}
|
|
1667
|
-
|
|
1668
|
-
return false;
|
|
1669
|
-
},
|
|
1670
|
-
sfcolorValues (field)
|
|
1671
|
-
{
|
|
1672
|
-
field .length = 0;
|
|
1673
|
-
field = field .getTarget ();
|
|
1674
|
-
|
|
1675
|
-
const value = this .Color3;
|
|
1676
|
-
|
|
1677
|
-
while (this .sfcolorValue (value))
|
|
1678
|
-
field .push (value);
|
|
1679
|
-
},
|
|
1680
|
-
sfcolorrgbaValue (field)
|
|
1681
|
-
{
|
|
1682
|
-
const lastIndex = this .lastIndex;
|
|
1683
|
-
|
|
1684
|
-
if (this .double ())
|
|
1685
|
-
{
|
|
1686
|
-
const r = this .value;
|
|
1687
|
-
|
|
1688
|
-
if (this .double ())
|
|
1689
|
-
{
|
|
1690
|
-
const g = this .value;
|
|
1691
|
-
|
|
1692
|
-
if (this .double ())
|
|
1693
|
-
{
|
|
1694
|
-
const b = this .value;
|
|
1695
|
-
|
|
1696
|
-
if (this .double ())
|
|
1697
|
-
{
|
|
1698
|
-
const a = this .value;
|
|
1699
|
-
|
|
1700
|
-
field .r = r;
|
|
1701
|
-
field .g = g;
|
|
1702
|
-
field .b = b;
|
|
1703
|
-
field .a = a;
|
|
1704
|
-
|
|
1705
|
-
return true;
|
|
1706
|
-
}
|
|
1707
|
-
}
|
|
1708
|
-
}
|
|
1709
|
-
}
|
|
1710
|
-
|
|
1711
|
-
this .lastIndex = lastIndex;
|
|
1712
|
-
|
|
1713
|
-
this .comments ();
|
|
1714
|
-
|
|
1715
|
-
if (Grammar .HTMLColor .parse (this))
|
|
1716
|
-
{
|
|
1717
|
-
const color = this .convertColor (this .result [1] .replace (/0x/i, "#"));
|
|
1718
|
-
|
|
1719
|
-
field .r = color [0];
|
|
1720
|
-
field .g = color [1];
|
|
1721
|
-
field .b = color [2];
|
|
1722
|
-
field .a = color [3];
|
|
1723
|
-
|
|
1724
|
-
return true;
|
|
1725
|
-
}
|
|
1726
|
-
|
|
1727
|
-
return false;
|
|
1728
|
-
},
|
|
1729
|
-
mfcolorrgbaValue (field)
|
|
1730
|
-
{
|
|
1731
|
-
field .length = 0;
|
|
1732
|
-
|
|
1733
|
-
if (this .sfcolorrgbaValue (this .Color4))
|
|
1734
|
-
{
|
|
1735
|
-
field .push (this .Color4);
|
|
1736
|
-
return true;
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1739
|
-
if (Grammar .OpenBracket .parse (this))
|
|
1740
|
-
{
|
|
1741
|
-
this .sfcolorrgbaValues (field);
|
|
1742
|
-
|
|
1743
|
-
if (Grammar .CloseBracket .parse (this))
|
|
1744
|
-
return true;
|
|
1745
|
-
|
|
1746
|
-
throw new Error ("Expected ']'.");
|
|
1747
|
-
}
|
|
1748
|
-
|
|
1749
|
-
return false;
|
|
1750
|
-
},
|
|
1751
|
-
sfcolorrgbaValues (field)
|
|
1752
|
-
{
|
|
1753
|
-
field .length = 0;
|
|
1754
|
-
field = field .getTarget ();
|
|
1755
|
-
|
|
1756
|
-
const value = this .Color4;
|
|
1757
|
-
|
|
1758
|
-
while (this .sfcolorrgbaValue (value))
|
|
1759
|
-
field .push (value);
|
|
1760
|
-
},
|
|
1761
|
-
sfdoubleValue (field)
|
|
1762
|
-
{
|
|
1763
|
-
if (this .double ())
|
|
1764
|
-
{
|
|
1765
|
-
field .setValue (this .fromUnit (field .getUnit (), this .value));
|
|
1766
|
-
return true;
|
|
1767
|
-
}
|
|
1768
|
-
|
|
1769
|
-
return false;
|
|
1770
|
-
},
|
|
1771
|
-
mfdoubleValue (field)
|
|
1772
|
-
{
|
|
1773
|
-
field .length = 0;
|
|
1774
|
-
|
|
1775
|
-
if (this .double ())
|
|
1776
|
-
{
|
|
1777
|
-
field .push (this .fromUnit (field .getUnit (), this .value));
|
|
1778
|
-
return true;
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
|
-
if (Grammar .OpenBracket .parse (this))
|
|
1782
|
-
{
|
|
1783
|
-
this .sfdoubleValues (field);
|
|
1784
|
-
|
|
1785
|
-
if (Grammar .CloseBracket .parse (this))
|
|
1786
|
-
return true;
|
|
1787
|
-
|
|
1788
|
-
throw new Error ("Expected ']'.");
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
return false;
|
|
1792
|
-
},
|
|
1793
|
-
sfdoubleValues (field)
|
|
1794
|
-
{
|
|
1795
|
-
field .length = 0;
|
|
1796
|
-
field = field .getTarget ();
|
|
1797
|
-
|
|
1798
|
-
const unit = field .getUnit ();
|
|
1799
|
-
|
|
1800
|
-
while (this .double ())
|
|
1801
|
-
field .push (this .fromUnit (unit, this .value));
|
|
1802
|
-
},
|
|
1803
|
-
sfimageValue (field)
|
|
1804
|
-
{
|
|
1805
|
-
if (this .int32 ())
|
|
1806
|
-
{
|
|
1807
|
-
const width = this .value;
|
|
1808
|
-
|
|
1809
|
-
if (this .int32 ())
|
|
1810
|
-
{
|
|
1811
|
-
const height = this .value;
|
|
1812
|
-
|
|
1813
|
-
if (this .int32 ())
|
|
1814
|
-
{
|
|
1815
|
-
const
|
|
1816
|
-
comp = this .value,
|
|
1817
|
-
size = width * height;
|
|
1818
|
-
|
|
1819
|
-
field .width = width;
|
|
1820
|
-
field .height = height;
|
|
1821
|
-
field .comp = comp;
|
|
1822
|
-
|
|
1823
|
-
const array = field .array;
|
|
1824
|
-
|
|
1825
|
-
for (let i = 0; i < size; ++ i)
|
|
1826
|
-
{
|
|
1827
|
-
if (this .int32 ())
|
|
1828
|
-
{
|
|
1829
|
-
array [i] = this .value;
|
|
1830
|
-
continue;
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
return false;
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
return true;
|
|
1837
|
-
}
|
|
1838
|
-
}
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
return false;
|
|
1842
|
-
},
|
|
1843
|
-
mfimageValue (field)
|
|
1844
|
-
{
|
|
1845
|
-
field .length = 0;
|
|
1846
|
-
|
|
1847
|
-
if (this .sfimageValue (this .SFImage))
|
|
1848
|
-
{
|
|
1849
|
-
field .push (this .SFImage);
|
|
1850
|
-
return true;
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
if (Grammar .OpenBracket .parse (this))
|
|
1854
|
-
{
|
|
1855
|
-
this .sfimageValues (field);
|
|
1856
|
-
|
|
1857
|
-
if (Grammar .CloseBracket .parse (this))
|
|
1858
|
-
return true;
|
|
1859
|
-
|
|
1860
|
-
throw new Error ("Expected ']'.");
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1863
|
-
return false;
|
|
1864
|
-
},
|
|
1865
|
-
sfimageValues (field)
|
|
1866
|
-
{
|
|
1867
|
-
field .length = 0;
|
|
1868
|
-
field = field .getTarget ();
|
|
1869
|
-
|
|
1870
|
-
const value = this .SFImage;
|
|
1871
|
-
|
|
1872
|
-
while (this .sfimageValue (value))
|
|
1873
|
-
field .push (value);
|
|
1874
|
-
},
|
|
1875
|
-
sfint32Value (field)
|
|
1876
|
-
{
|
|
1877
|
-
if (this .int32 ())
|
|
1878
|
-
{
|
|
1879
|
-
field .setValue (this .value);
|
|
1880
|
-
return true;
|
|
1881
|
-
}
|
|
1882
|
-
|
|
1883
|
-
return false;
|
|
1884
|
-
},
|
|
1885
|
-
mfint32Value (field)
|
|
1886
|
-
{
|
|
1887
|
-
field .length = 0;
|
|
1888
|
-
|
|
1889
|
-
if (this .int32 ())
|
|
1890
|
-
{
|
|
1891
|
-
field .push (this .value);
|
|
1892
|
-
return true;
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
|
-
if (Grammar .OpenBracket .parse (this))
|
|
1896
|
-
{
|
|
1897
|
-
this .sfint32Values (field);
|
|
1898
|
-
|
|
1899
|
-
if (Grammar .CloseBracket .parse (this))
|
|
1900
|
-
return true;
|
|
1901
|
-
|
|
1902
|
-
throw new Error ("Expected ']'.");
|
|
1903
|
-
}
|
|
1904
|
-
|
|
1905
|
-
return false;
|
|
1906
|
-
},
|
|
1907
|
-
sfint32Values (field)
|
|
1908
|
-
{
|
|
1909
|
-
field .length = 0;
|
|
1910
|
-
field = field .getTarget ();
|
|
1911
|
-
|
|
1912
|
-
while (this .int32 ())
|
|
1913
|
-
field .push (this .value);
|
|
1914
|
-
},
|
|
1915
|
-
sfmatrix3Value (field)
|
|
1916
|
-
{
|
|
1917
|
-
if (this .double ())
|
|
1918
|
-
{
|
|
1919
|
-
const m00 = this .value;
|
|
1920
|
-
|
|
1921
|
-
if (this .double ())
|
|
1922
|
-
{
|
|
1923
|
-
const m01 = this .value;
|
|
1924
|
-
|
|
1925
|
-
if (this .double ())
|
|
1926
|
-
{
|
|
1927
|
-
const m02 = this .value;
|
|
1928
|
-
|
|
1929
|
-
if (this .double ())
|
|
1930
|
-
{
|
|
1931
|
-
const m10 = this .value;
|
|
1932
|
-
|
|
1933
|
-
if (this .double ())
|
|
1934
|
-
{
|
|
1935
|
-
const m11 = this .value;
|
|
1936
|
-
|
|
1937
|
-
if (this .double ())
|
|
1938
|
-
{
|
|
1939
|
-
const m12 = this .value;
|
|
1940
|
-
|
|
1941
|
-
if (this .double ())
|
|
1942
|
-
{
|
|
1943
|
-
const m20 = this .value;
|
|
1944
|
-
|
|
1945
|
-
if (this .double ())
|
|
1946
|
-
{
|
|
1947
|
-
const m21 = this .value;
|
|
1948
|
-
|
|
1949
|
-
if (this .double ())
|
|
1950
|
-
{
|
|
1951
|
-
const m22 = this .value;
|
|
1952
|
-
|
|
1953
|
-
field [0] = m00;
|
|
1954
|
-
field [1] = m01;
|
|
1955
|
-
field [2] = m02;
|
|
1956
|
-
field [3] = m10;
|
|
1957
|
-
field [4] = m11;
|
|
1958
|
-
field [5] = m12;
|
|
1959
|
-
field [6] = m20;
|
|
1960
|
-
field [7] = m21;
|
|
1961
|
-
field [8] = m22;
|
|
1962
|
-
|
|
1963
|
-
return true;
|
|
1964
|
-
}
|
|
1965
|
-
}
|
|
1966
|
-
}
|
|
1967
|
-
}
|
|
1968
|
-
}
|
|
1969
|
-
}
|
|
1970
|
-
}
|
|
1971
|
-
}
|
|
1972
|
-
}
|
|
1973
|
-
|
|
1974
|
-
return false;
|
|
1975
|
-
},
|
|
1976
|
-
mfmatrix3Value (field)
|
|
1977
|
-
{
|
|
1978
|
-
field .length = 0;
|
|
1979
|
-
|
|
1980
|
-
if (this .sfmatrix3Value (this .Matrix3))
|
|
1981
|
-
{
|
|
1982
|
-
field .push (this .Matrix3);
|
|
1983
|
-
return true;
|
|
1984
|
-
}
|
|
1985
|
-
|
|
1986
|
-
if (Grammar .OpenBracket .parse (this))
|
|
1987
|
-
{
|
|
1988
|
-
this .sfmatrix3Values (field);
|
|
1989
|
-
|
|
1990
|
-
if (Grammar .CloseBracket .parse (this))
|
|
1991
|
-
return true;
|
|
1992
|
-
|
|
1993
|
-
throw new Error ("Expected ']'.");
|
|
1994
|
-
}
|
|
1995
|
-
|
|
1996
|
-
return false;
|
|
1997
|
-
},
|
|
1998
|
-
sfmatrix3Values (field)
|
|
1999
|
-
{
|
|
2000
|
-
field .length = 0;
|
|
2001
|
-
field = field .getTarget ();
|
|
2002
|
-
|
|
2003
|
-
const value = this .Matrix3;
|
|
2004
|
-
|
|
2005
|
-
while (this .sfmatrix3Value (value))
|
|
2006
|
-
field .push (value);
|
|
2007
|
-
},
|
|
2008
|
-
sfmatrix4Value (field)
|
|
2009
|
-
{
|
|
2010
|
-
if (this .double ())
|
|
2011
|
-
{
|
|
2012
|
-
const m00 = this .value;
|
|
2013
|
-
|
|
2014
|
-
if (this .double ())
|
|
2015
|
-
{
|
|
2016
|
-
const m01 = this .value;
|
|
2017
|
-
|
|
2018
|
-
if (this .double ())
|
|
2019
|
-
{
|
|
2020
|
-
const m02 = this .value;
|
|
2021
|
-
|
|
2022
|
-
if (this .double ())
|
|
2023
|
-
{
|
|
2024
|
-
const m03 = this .value;
|
|
2025
|
-
|
|
2026
|
-
if (this .double ())
|
|
2027
|
-
{
|
|
2028
|
-
const m10 = this .value;
|
|
2029
|
-
|
|
2030
|
-
if (this .double ())
|
|
2031
|
-
{
|
|
2032
|
-
const m11 = this .value;
|
|
2033
|
-
|
|
2034
|
-
if (this .double ())
|
|
2035
|
-
{
|
|
2036
|
-
const m12 = this .value;
|
|
2037
|
-
|
|
2038
|
-
if (this .double ())
|
|
2039
|
-
{
|
|
2040
|
-
const m13 = this .value;
|
|
2041
|
-
|
|
2042
|
-
if (this .double ())
|
|
2043
|
-
{
|
|
2044
|
-
const m20 = this .value;
|
|
2045
|
-
|
|
2046
|
-
if (this .double ())
|
|
2047
|
-
{
|
|
2048
|
-
const m21 = this .value;
|
|
2049
|
-
|
|
2050
|
-
if (this .double ())
|
|
2051
|
-
{
|
|
2052
|
-
const m22 = this .value;
|
|
2053
|
-
|
|
2054
|
-
if (this .double ())
|
|
2055
|
-
{
|
|
2056
|
-
const m23 = this .value;
|
|
2057
|
-
|
|
2058
|
-
if (this .double ())
|
|
2059
|
-
{
|
|
2060
|
-
const m30 = this .value;
|
|
2061
|
-
|
|
2062
|
-
if (this .double ())
|
|
2063
|
-
{
|
|
2064
|
-
const m31 = this .value;
|
|
2065
|
-
|
|
2066
|
-
if (this .double ())
|
|
2067
|
-
{
|
|
2068
|
-
const m32 = this .value;
|
|
2069
|
-
|
|
2070
|
-
if (this .double ())
|
|
2071
|
-
{
|
|
2072
|
-
const m33 = this .value;
|
|
2073
|
-
|
|
2074
|
-
field [ 0] = m00;
|
|
2075
|
-
field [ 1] = m01;
|
|
2076
|
-
field [ 2] = m02;
|
|
2077
|
-
field [ 3] = m03;
|
|
2078
|
-
field [ 4] = m10;
|
|
2079
|
-
field [ 5] = m11;
|
|
2080
|
-
field [ 6] = m12;
|
|
2081
|
-
field [ 7] = m13;
|
|
2082
|
-
field [ 8] = m20;
|
|
2083
|
-
field [ 9] = m21;
|
|
2084
|
-
field [10] = m22;
|
|
2085
|
-
field [11] = m23;
|
|
2086
|
-
field [12] = m30;
|
|
2087
|
-
field [13] = m31;
|
|
2088
|
-
field [14] = m32;
|
|
2089
|
-
field [15] = m33;
|
|
2090
|
-
|
|
2091
|
-
return true;
|
|
2092
|
-
}
|
|
2093
|
-
}
|
|
2094
|
-
}
|
|
2095
|
-
}
|
|
2096
|
-
}
|
|
2097
|
-
}
|
|
2098
|
-
}
|
|
2099
|
-
}
|
|
2100
|
-
}
|
|
2101
|
-
}
|
|
2102
|
-
}
|
|
2103
|
-
}
|
|
2104
|
-
}
|
|
2105
|
-
}
|
|
2106
|
-
}
|
|
2107
|
-
}
|
|
2108
|
-
|
|
2109
|
-
return false;
|
|
2110
|
-
},
|
|
2111
|
-
mfmatrix4Value (field)
|
|
2112
|
-
{
|
|
2113
|
-
field .length = 0;
|
|
2114
|
-
|
|
2115
|
-
if (this .sfmatrix4Value (this .Matrix4))
|
|
2116
|
-
{
|
|
2117
|
-
field .push (this .Matrix4);
|
|
2118
|
-
return true;
|
|
2119
|
-
}
|
|
2120
|
-
|
|
2121
|
-
if (Grammar .OpenBracket .parse (this))
|
|
2122
|
-
{
|
|
2123
|
-
this .sfmatrix4Values (field);
|
|
2124
|
-
|
|
2125
|
-
if (Grammar .CloseBracket .parse (this))
|
|
2126
|
-
return true;
|
|
2127
|
-
|
|
2128
|
-
throw new Error ("Expected ']'.");
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2131
|
-
return false;
|
|
2132
|
-
},
|
|
2133
|
-
sfmatrix4Values (field)
|
|
2134
|
-
{
|
|
2135
|
-
field .length = 0;
|
|
2136
|
-
field = field .getTarget ();
|
|
2137
|
-
|
|
2138
|
-
const value = this .Matrix4;
|
|
2139
|
-
|
|
2140
|
-
while (this .sfmatrix4Value (value))
|
|
2141
|
-
field .push (value);
|
|
2142
|
-
},
|
|
2143
|
-
sfnodeValue (field)
|
|
2144
|
-
{
|
|
2145
|
-
const baseNode = this .nodeStatement ();
|
|
2146
|
-
|
|
2147
|
-
if (baseNode !== false)
|
|
2148
|
-
{
|
|
2149
|
-
field .setValue (baseNode);
|
|
2150
|
-
return true;
|
|
2151
|
-
}
|
|
2152
|
-
|
|
2153
|
-
return false;
|
|
2154
|
-
},
|
|
2155
|
-
mfnodeValue (field)
|
|
2156
|
-
{
|
|
2157
|
-
field .length = 0;
|
|
2158
|
-
|
|
2159
|
-
const node = this .nodeStatement ();
|
|
2160
|
-
|
|
2161
|
-
if (node !== false)
|
|
2162
|
-
{
|
|
2163
|
-
field .push (node);
|
|
2164
|
-
return true;
|
|
2165
|
-
}
|
|
2166
|
-
|
|
2167
|
-
if (Grammar .OpenBracket .parse (this))
|
|
2168
|
-
{
|
|
2169
|
-
this .nodeStatements (field);
|
|
2170
|
-
|
|
2171
|
-
if (Grammar .CloseBracket .parse (this))
|
|
2172
|
-
return true;
|
|
2173
|
-
|
|
2174
|
-
throw new Error ("Expected ']'.");
|
|
2175
|
-
}
|
|
2176
|
-
|
|
2177
|
-
return false;
|
|
2178
|
-
},
|
|
2179
|
-
nodeStatements (field)
|
|
2180
|
-
{
|
|
2181
|
-
this .statements (field);
|
|
2182
|
-
|
|
2183
|
-
// let node = this .nodeStatement ();
|
|
2184
|
-
|
|
2185
|
-
// while (node !== false)
|
|
2186
|
-
// {
|
|
2187
|
-
// field .push (node);
|
|
2188
|
-
|
|
2189
|
-
// node = this .nodeStatement ();
|
|
2190
|
-
// }
|
|
2191
|
-
},
|
|
2192
|
-
sfrotationValue (field)
|
|
2193
|
-
{
|
|
2194
|
-
if (this .double ())
|
|
2195
|
-
{
|
|
2196
|
-
const x = this .value;
|
|
2197
|
-
|
|
2198
|
-
if (this .double ())
|
|
2199
|
-
{
|
|
2200
|
-
const y = this .value;
|
|
2201
|
-
|
|
2202
|
-
if (this .double ())
|
|
2203
|
-
{
|
|
2204
|
-
const z = this .value;
|
|
2205
|
-
|
|
2206
|
-
if (this .double ())
|
|
2207
|
-
{
|
|
2208
|
-
const angle = this .value;
|
|
2209
|
-
|
|
2210
|
-
field .x = x;
|
|
2211
|
-
field .y = y;
|
|
2212
|
-
field .z = z;
|
|
2213
|
-
field .angle = this .fromUnit ("angle", angle);
|
|
2214
|
-
|
|
2215
|
-
return true;
|
|
2216
|
-
}
|
|
2217
|
-
}
|
|
2218
|
-
}
|
|
2219
|
-
}
|
|
2220
|
-
|
|
2221
|
-
return false;
|
|
2222
|
-
},
|
|
2223
|
-
mfrotationValue (field)
|
|
2224
|
-
{
|
|
2225
|
-
field .length = 0;
|
|
2226
|
-
|
|
2227
|
-
if (this .sfrotationValue (this .Rotation4))
|
|
2228
|
-
{
|
|
2229
|
-
field .push (this .Rotation4);
|
|
2230
|
-
return true;
|
|
2231
|
-
}
|
|
2232
|
-
|
|
2233
|
-
if (Grammar .OpenBracket .parse (this))
|
|
2234
|
-
{
|
|
2235
|
-
this .sfrotationValues (field);
|
|
2236
|
-
|
|
2237
|
-
if (Grammar .CloseBracket .parse (this))
|
|
2238
|
-
return true;
|
|
2239
|
-
|
|
2240
|
-
throw new Error ("Expected ']'.");
|
|
2241
|
-
}
|
|
2242
|
-
|
|
2243
|
-
return false;
|
|
2244
|
-
},
|
|
2245
|
-
sfrotationValues (field)
|
|
2246
|
-
{
|
|
2247
|
-
field .length = 0;
|
|
2248
|
-
field = field .getTarget ();
|
|
2249
|
-
|
|
2250
|
-
const value = this .Rotation4;
|
|
2251
|
-
|
|
2252
|
-
while (this .sfrotationValue (value))
|
|
2253
|
-
field .push (value);
|
|
2254
|
-
},
|
|
2255
|
-
sfstringValue (field)
|
|
2256
|
-
{
|
|
2257
|
-
if (this .string ())
|
|
2258
|
-
{
|
|
2259
|
-
field .setValue (this .value);
|
|
2260
|
-
return true;
|
|
2261
|
-
}
|
|
2262
|
-
|
|
2263
|
-
return false;
|
|
2264
|
-
},
|
|
2265
|
-
mfstringValue (field)
|
|
2266
|
-
{
|
|
2267
|
-
field .length = 0;
|
|
2268
|
-
|
|
2269
|
-
if (this .string ())
|
|
2270
|
-
{
|
|
2271
|
-
field .push (this .value);
|
|
2272
|
-
return true;
|
|
2273
|
-
}
|
|
2274
|
-
|
|
2275
|
-
if (Grammar .OpenBracket .parse (this))
|
|
2276
|
-
{
|
|
2277
|
-
this .sfstringValues (field);
|
|
2278
|
-
|
|
2279
|
-
if (Grammar .CloseBracket .parse (this))
|
|
2280
|
-
return true;
|
|
2281
|
-
|
|
2282
|
-
throw new Error ("Expected ']'.");
|
|
2283
|
-
}
|
|
2284
|
-
|
|
2285
|
-
return false;
|
|
2286
|
-
},
|
|
2287
|
-
sfstringValues (field)
|
|
2288
|
-
{
|
|
2289
|
-
field .length = 0;
|
|
2290
|
-
field = field .getTarget ();
|
|
2291
|
-
|
|
2292
|
-
while (this .string ())
|
|
2293
|
-
field .push (this .value);
|
|
2294
|
-
},
|
|
2295
|
-
sfvec2Value (field, unit)
|
|
2296
|
-
{
|
|
2297
|
-
if (this .double ())
|
|
2298
|
-
{
|
|
2299
|
-
const x = this .value;
|
|
2300
|
-
|
|
2301
|
-
if (this .double ())
|
|
2302
|
-
{
|
|
2303
|
-
const y = this .value;
|
|
2304
|
-
|
|
2305
|
-
field .x = this .fromUnit (unit, x);
|
|
2306
|
-
field .y = this .fromUnit (unit, y);
|
|
2307
|
-
|
|
2308
|
-
return true;
|
|
2309
|
-
}
|
|
2310
|
-
}
|
|
2311
|
-
|
|
2312
|
-
return false;
|
|
2313
|
-
},
|
|
2314
|
-
mfvec2Value (field)
|
|
2315
|
-
{
|
|
2316
|
-
field .length = 0;
|
|
2317
|
-
|
|
2318
|
-
if (this .sfvec2Value (this .Vector2, field .getUnit ()))
|
|
2319
|
-
{
|
|
2320
|
-
field .push (this .Vector2);
|
|
2321
|
-
return true;
|
|
2322
|
-
}
|
|
2323
|
-
|
|
2324
|
-
if (Grammar .OpenBracket .parse (this))
|
|
2325
|
-
{
|
|
2326
|
-
this .sfvec2Values (field);
|
|
2327
|
-
|
|
2328
|
-
if (Grammar .CloseBracket .parse (this))
|
|
2329
|
-
return true;
|
|
2330
|
-
|
|
2331
|
-
throw new Error ("Expected ']'.");
|
|
2332
|
-
}
|
|
2333
|
-
|
|
2334
|
-
return false;
|
|
2335
|
-
},
|
|
2336
|
-
sfvec2Values (field)
|
|
2337
|
-
{
|
|
2338
|
-
field .length = 0;
|
|
2339
|
-
field = field .getTarget ();
|
|
2340
|
-
|
|
2341
|
-
const
|
|
2342
|
-
value = this .Vector2,
|
|
2343
|
-
unit = field .getUnit ();
|
|
2344
|
-
|
|
2345
|
-
while (this .sfvec2Value (value, unit))
|
|
2346
|
-
field .push (value);
|
|
2347
|
-
},
|
|
2348
|
-
sfvec3Value (field, unit)
|
|
2349
|
-
{
|
|
2350
|
-
if (this .double ())
|
|
2351
|
-
{
|
|
2352
|
-
const x = this .value;
|
|
2353
|
-
|
|
2354
|
-
if (this .double ())
|
|
2355
|
-
{
|
|
2356
|
-
const y = this .value;
|
|
2357
|
-
|
|
2358
|
-
if (this .double ())
|
|
2359
|
-
{
|
|
2360
|
-
const z = this .value;
|
|
2361
|
-
|
|
2362
|
-
field .x = this .fromUnit (unit, x);
|
|
2363
|
-
field .y = this .fromUnit (unit, y);
|
|
2364
|
-
field .z = this .fromUnit (unit, z);
|
|
2365
|
-
|
|
2366
|
-
return true;
|
|
2367
|
-
}
|
|
2368
|
-
}
|
|
2369
|
-
}
|
|
2370
|
-
|
|
2371
|
-
return false;
|
|
2372
|
-
},
|
|
2373
|
-
mfvec3Value (field)
|
|
2374
|
-
{
|
|
2375
|
-
field .length = 0;
|
|
2376
|
-
|
|
2377
|
-
if (this .sfvec3Value (this .Vector3, field .getUnit ()))
|
|
2378
|
-
{
|
|
2379
|
-
field .push (this .Vector3);
|
|
2380
|
-
return true;
|
|
2381
|
-
}
|
|
2382
|
-
|
|
2383
|
-
if (Grammar .OpenBracket .parse (this))
|
|
2384
|
-
{
|
|
2385
|
-
this .sfvec3Values (field);
|
|
2386
|
-
|
|
2387
|
-
if (Grammar .CloseBracket .parse (this))
|
|
2388
|
-
return true;
|
|
2389
|
-
|
|
2390
|
-
throw new Error ("Expected ']'.");
|
|
2391
|
-
}
|
|
2392
|
-
|
|
2393
|
-
return false;
|
|
2394
|
-
},
|
|
2395
|
-
sfvec3Values (field)
|
|
2396
|
-
{
|
|
2397
|
-
field .length = 0;
|
|
2398
|
-
field = field .getTarget ();
|
|
2399
|
-
|
|
2400
|
-
const
|
|
2401
|
-
value = this .Vector3,
|
|
2402
|
-
unit = field .getUnit ();
|
|
2403
|
-
|
|
2404
|
-
while (this .sfvec3Value (value, unit))
|
|
2405
|
-
field .push (value);
|
|
2406
|
-
},
|
|
2407
|
-
sfvec4Value (field, unit)
|
|
2408
|
-
{
|
|
2409
|
-
if (this .double ())
|
|
2410
|
-
{
|
|
2411
|
-
const x = this .value;
|
|
2412
|
-
|
|
2413
|
-
if (this .double ())
|
|
2414
|
-
{
|
|
2415
|
-
const y = this .value;
|
|
2416
|
-
|
|
2417
|
-
if (this .double ())
|
|
2418
|
-
{
|
|
2419
|
-
const z = this .value;
|
|
2420
|
-
|
|
2421
|
-
if (this .double ())
|
|
2422
|
-
{
|
|
2423
|
-
const w = this .value;
|
|
2424
|
-
|
|
2425
|
-
field .x = this .fromUnit (unit, x);
|
|
2426
|
-
field .y = this .fromUnit (unit, y);
|
|
2427
|
-
field .z = this .fromUnit (unit, z);
|
|
2428
|
-
field .w = this .fromUnit (unit, w);
|
|
2429
|
-
|
|
2430
|
-
return true;
|
|
2431
|
-
}
|
|
2432
|
-
}
|
|
2433
|
-
}
|
|
2434
|
-
}
|
|
2435
|
-
|
|
2436
|
-
return false;
|
|
2437
|
-
},
|
|
2438
|
-
mfvec4Value (field)
|
|
2439
|
-
{
|
|
2440
|
-
field .length = 0;
|
|
2441
|
-
|
|
2442
|
-
if (this .sfvec4Value (this .Vector4, field .getUnit ()))
|
|
2443
|
-
{
|
|
2444
|
-
field .push (this .Vector4);
|
|
2445
|
-
return true;
|
|
2446
|
-
}
|
|
2447
|
-
|
|
2448
|
-
if (Grammar .OpenBracket .parse (this))
|
|
2449
|
-
{
|
|
2450
|
-
this .sfvec4Values (field);
|
|
2451
|
-
|
|
2452
|
-
if (Grammar .CloseBracket .parse (this))
|
|
2453
|
-
return true;
|
|
2454
|
-
|
|
2455
|
-
throw new Error ("Expected ']'.");
|
|
2456
|
-
}
|
|
2457
|
-
|
|
2458
|
-
return false;
|
|
2459
|
-
},
|
|
2460
|
-
sfvec4Values (field)
|
|
2461
|
-
{
|
|
2462
|
-
field .length = 0;
|
|
2463
|
-
field = field .getTarget ();
|
|
2464
|
-
|
|
2465
|
-
const
|
|
2466
|
-
value = this .Vector4,
|
|
2467
|
-
unit = field .getUnit ();
|
|
2468
|
-
|
|
2469
|
-
while (this .sfvec4Value (value, unit))
|
|
2470
|
-
field .push (value);
|
|
2471
|
-
},
|
|
2472
|
-
accessTypeToString (accessType)
|
|
2473
|
-
{
|
|
2474
|
-
switch (accessType)
|
|
2475
|
-
{
|
|
2476
|
-
case X3DConstants .initializeOnly:
|
|
2477
|
-
return "initializeOnly";
|
|
2478
|
-
case X3DConstants .inputOnly:
|
|
2479
|
-
return "inputOnly";
|
|
2480
|
-
case X3DConstants .outputOnly:
|
|
2481
|
-
return "outputOnly";
|
|
2482
|
-
case X3DConstants .inputOutput:
|
|
2483
|
-
return "inputOutput";
|
|
2484
|
-
}
|
|
2485
|
-
},
|
|
2486
|
-
});
|
|
2487
|
-
|
|
2488
|
-
Object .assign (VRMLParser .prototype,
|
|
2489
|
-
{
|
|
2490
|
-
[X3DConstants .SFBool]: VRMLParser .prototype .sfboolValue,
|
|
2491
|
-
[X3DConstants .SFColor]: VRMLParser .prototype .sfcolorValue,
|
|
2492
|
-
[X3DConstants .SFColorRGBA]: VRMLParser .prototype .sfcolorrgbaValue,
|
|
2493
|
-
[X3DConstants .SFDouble]: VRMLParser .prototype .sfdoubleValue,
|
|
2494
|
-
[X3DConstants .SFFloat]: VRMLParser .prototype .sfdoubleValue,
|
|
2495
|
-
[X3DConstants .SFImage]: VRMLParser .prototype .sfimageValue,
|
|
2496
|
-
[X3DConstants .SFInt32]: VRMLParser .prototype .sfint32Value,
|
|
2497
|
-
[X3DConstants .SFMatrix3f]: VRMLParser .prototype .sfmatrix3Value,
|
|
2498
|
-
[X3DConstants .SFMatrix3d]: VRMLParser .prototype .sfmatrix3Value,
|
|
2499
|
-
[X3DConstants .SFMatrix4f]: VRMLParser .prototype .sfmatrix4Value,
|
|
2500
|
-
[X3DConstants .SFMatrix4d]: VRMLParser .prototype .sfmatrix4Value,
|
|
2501
|
-
[X3DConstants .SFNode]: VRMLParser .prototype .sfnodeValue,
|
|
2502
|
-
[X3DConstants .SFRotation]: VRMLParser .prototype .sfrotationValue,
|
|
2503
|
-
[X3DConstants .SFString]: VRMLParser .prototype .sfstringValue,
|
|
2504
|
-
[X3DConstants .SFTime]: VRMLParser .prototype .sfdoubleValue,
|
|
2505
|
-
[X3DConstants .SFVec2d]: VRMLParser .prototype .sfvec2Value,
|
|
2506
|
-
[X3DConstants .SFVec2f]: VRMLParser .prototype .sfvec2Value,
|
|
2507
|
-
[X3DConstants .SFVec3d]: VRMLParser .prototype .sfvec3Value,
|
|
2508
|
-
[X3DConstants .SFVec3f]: VRMLParser .prototype .sfvec3Value,
|
|
2509
|
-
[X3DConstants .SFVec4d]: VRMLParser .prototype .sfvec4Value,
|
|
2510
|
-
[X3DConstants .SFVec4f]: VRMLParser .prototype .sfvec4Value,
|
|
2511
|
-
|
|
2512
|
-
[X3DConstants .MFBool]: VRMLParser .prototype .mfboolValue,
|
|
2513
|
-
[X3DConstants .MFColor]: VRMLParser .prototype .mfcolorValue,
|
|
2514
|
-
[X3DConstants .MFColorRGBA]: VRMLParser .prototype .mfcolorrgbaValue,
|
|
2515
|
-
[X3DConstants .MFDouble]: VRMLParser .prototype .mfdoubleValue,
|
|
2516
|
-
[X3DConstants .MFFloat]: VRMLParser .prototype .mfdoubleValue,
|
|
2517
|
-
[X3DConstants .MFImage]: VRMLParser .prototype .mfimageValue,
|
|
2518
|
-
[X3DConstants .MFInt32]: VRMLParser .prototype .mfint32Value,
|
|
2519
|
-
[X3DConstants .MFMatrix3d]: VRMLParser .prototype .mfmatrix3Value,
|
|
2520
|
-
[X3DConstants .MFMatrix3f]: VRMLParser .prototype .mfmatrix3Value,
|
|
2521
|
-
[X3DConstants .MFMatrix4d]: VRMLParser .prototype .mfmatrix4Value,
|
|
2522
|
-
[X3DConstants .MFMatrix4f]: VRMLParser .prototype .mfmatrix4Value,
|
|
2523
|
-
[X3DConstants .MFNode]: VRMLParser .prototype .mfnodeValue,
|
|
2524
|
-
[X3DConstants .MFRotation]: VRMLParser .prototype .mfrotationValue,
|
|
2525
|
-
[X3DConstants .MFString]: VRMLParser .prototype .mfstringValue,
|
|
2526
|
-
[X3DConstants .MFTime]: VRMLParser .prototype .mfdoubleValue,
|
|
2527
|
-
[X3DConstants .MFVec2d]: VRMLParser .prototype .mfvec2Value,
|
|
2528
|
-
[X3DConstants .MFVec2f]: VRMLParser .prototype .mfvec2Value,
|
|
2529
|
-
[X3DConstants .MFVec3d]: VRMLParser .prototype .mfvec3Value,
|
|
2530
|
-
[X3DConstants .MFVec3f]: VRMLParser .prototype .mfvec3Value,
|
|
2531
|
-
[X3DConstants .MFVec4d]: VRMLParser .prototype .mfvec4Value,
|
|
2532
|
-
[X3DConstants .MFVec4f]: VRMLParser .prototype .mfvec4Value,
|
|
2533
|
-
});
|
|
2534
|
-
|
|
2535
|
-
X3DField .prototype .fromString = function (string, scene)
|
|
2536
|
-
{
|
|
2537
|
-
const parser = new VRMLParser (scene);
|
|
2538
|
-
|
|
2539
|
-
parser .setUnits (!!scene);
|
|
2540
|
-
parser .setInput (string);
|
|
2541
|
-
|
|
2542
|
-
if (parser .fieldValue (this))
|
|
2543
|
-
return;
|
|
2544
|
-
|
|
2545
|
-
throw new Error (`Couldn't read value for field '${this .getName ()}'.`);
|
|
2546
|
-
};
|
|
2547
|
-
|
|
2548
|
-
export default VRMLParser;
|