x_ite 8.7.9 → 8.8.0
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/Makefile +3 -0
- package/build/bin/version.pl +1 -1
- package/dist/assets/components/Annotation.js +248 -169
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +296 -233
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +217 -172
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +451 -387
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +309 -208
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +397 -333
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +705 -575
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +319 -259
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +134 -99
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +305 -240
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +781 -620
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +632 -460
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +376 -295
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +936 -749
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +166 -96
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +241 -207
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +162 -129
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +485 -384
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +741 -547
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +66 -54
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +61526 -59688
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +2 -2
- package/package.json +4 -4
- package/src/assets/components/Annotation.js +14 -14
- package/src/assets/components/CADGeometry.js +14 -14
- package/src/assets/components/CubeMapTexturing.js +11 -11
- package/src/assets/components/DIS.js +13 -13
- package/src/assets/components/EventUtilities.js +16 -16
- package/src/assets/components/Geometry2D.js +15 -15
- package/src/assets/components/Geospatial.js +19 -19
- package/src/assets/components/HAnim.js +13 -13
- package/src/assets/components/KeyDeviceSensor.js +10 -10
- package/src/assets/components/Layout.js +13 -13
- package/src/assets/components/NURBS.js +24 -24
- package/src/assets/components/ParticleSystems.js +19 -19
- package/src/assets/components/Picking.js +14 -14
- package/src/assets/components/RigidBodyPhysics.js +24 -24
- package/src/assets/components/Scripting.js +9 -9
- package/src/assets/components/Text.js +10 -10
- package/src/assets/components/TextureProjector.js +10 -10
- package/src/assets/components/Texturing3D.js +16 -16
- package/src/assets/components/VolumeRendering.js +23 -23
- package/src/assets/components/X_ITE.js +8 -7
- package/src/bookmarks.js +2 -2
- package/src/lib/jquery.js +42 -30
- package/src/standard/Geospatial/Geodetic.js +8 -9
- package/src/standard/Geospatial/UniversalTransverseMercator.js +4 -5
- package/src/standard/Math/Algorithm.js +41 -56
- package/src/standard/Math/Algorithms/Bezier.js +2 -2
- package/src/standard/Math/Algorithms/MergeSort.js +6 -6
- package/src/standard/Math/Algorithms/PartialSort.js +5 -5
- package/src/standard/Math/Algorithms/QuickSort.js +5 -5
- package/src/standard/Math/Geometry/Box2.js +16 -17
- package/src/standard/Math/Geometry/Box3.js +18 -19
- package/src/standard/Math/Geometry/Camera.js +6 -5
- package/src/standard/Math/Geometry/Cylinder3.js +6 -7
- package/src/standard/Math/Geometry/Line2.js +20 -18
- package/src/standard/Math/Geometry/Line3.js +20 -18
- package/src/standard/Math/Geometry/Plane3.js +11 -12
- package/src/standard/Math/Geometry/Sphere3.js +6 -7
- package/src/standard/Math/Geometry/Spheroid3.js +6 -7
- package/src/standard/Math/Geometry/Triangle2.js +4 -3
- package/src/standard/Math/Geometry/Triangle3.js +5 -4
- package/src/standard/Math/Geometry/ViewVolume.js +6 -7
- package/src/standard/Math/Numbers/Color3.js +18 -19
- package/src/standard/Math/Numbers/Color4.js +20 -21
- package/src/standard/Math/Numbers/Complex.js +28 -29
- package/src/standard/Math/Numbers/Matrix2.js +22 -23
- package/src/standard/Math/Numbers/Matrix3.js +28 -29
- package/src/standard/Math/Numbers/Matrix4.js +29 -30
- package/src/standard/Math/Numbers/Quaternion.js +40 -41
- package/src/standard/Math/Numbers/Rotation4.js +34 -35
- package/src/standard/Math/Numbers/Vector2.js +29 -30
- package/src/standard/Math/Numbers/Vector3.js +32 -33
- package/src/standard/Math/Numbers/Vector4.js +34 -35
- package/src/standard/Math/Utility/BVH.js +14 -15
- package/src/standard/Math/Utility/MatrixStack.js +12 -12
- package/src/standard/Time/MicroTime.js +4 -3
- package/src/standard/Utility/BitSet.js +10 -11
- package/src/standard/Utility/DataStorage.js +10 -10
- package/src/standard/Utility/MapUtilities.js +2 -1
- package/src/standard/Utility/ObjectCache.js +3 -3
- package/src/tests.js +10 -0
- package/src/x_ite/Base/Events.js +3 -3
- package/src/x_ite/Base/FieldArray.js +11 -9
- package/src/x_ite/Base/FieldDefinitionArray.js +11 -9
- package/src/x_ite/Base/X3DArrayField.js +13 -14
- package/src/x_ite/Base/X3DBaseNode.js +217 -178
- package/src/x_ite/Base/X3DCast.js +1 -1
- package/src/x_ite/Base/X3DChildObject.js +162 -53
- package/src/x_ite/Base/X3DConstants.js +74 -60
- package/src/x_ite/Base/X3DEventObject.js +6 -12
- package/src/x_ite/Base/X3DField.js +45 -42
- package/src/x_ite/Base/X3DFieldDefinition.js +9 -7
- package/src/x_ite/Base/X3DInfoArray.js +75 -65
- package/src/x_ite/Base/X3DObject.js +60 -30
- package/src/x_ite/Base/X3DObjectArrayField.js +48 -83
- package/src/x_ite/Base/X3DTypedArrayField.js +46 -40
- package/src/x_ite/Browser/Core/BrowserOptions.js +55 -57
- package/src/x_ite/Browser/Core/BrowserProperties.js +18 -20
- package/src/x_ite/Browser/Core/BrowserTimings.js +29 -33
- package/src/x_ite/Browser/Core/Context.js +7 -7
- package/src/x_ite/Browser/Core/ContextMenu.js +61 -83
- package/src/x_ite/Browser/Core/Notification.js +12 -12
- package/src/x_ite/Browser/Core/RenderingProperties.js +28 -28
- package/src/x_ite/Browser/Core/X3DCoreContext.js +45 -37
- package/src/x_ite/Browser/DOMIntegration.js +4 -1
- package/src/x_ite/Browser/EnvironmentalEffects/X3DEnvironmentalEffectsContext.js +3 -3
- package/src/x_ite/Browser/Followers/X3DArrayChaserTemplate.js +1 -1
- package/src/x_ite/Browser/Followers/X3DArrayFollowerTemplate.js +12 -12
- package/src/x_ite/Browser/Geometry2D/Arc2DOptions.js +8 -14
- package/src/x_ite/Browser/Geometry2D/ArcClose2DOptions.js +8 -14
- package/src/x_ite/Browser/Geometry2D/Circle2DOptions.js +13 -17
- package/src/x_ite/Browser/Geometry2D/Disk2DOptions.js +15 -19
- package/src/x_ite/Browser/Geometry2D/Rectangle2DOptions.js +12 -16
- package/src/x_ite/Browser/Geometry2D/X3DGeometry2DContext.js +9 -9
- package/src/x_ite/Browser/Geometry3D/BoxOptions.js +12 -16
- package/src/x_ite/Browser/Geometry3D/ConeOptions.js +6 -12
- package/src/x_ite/Browser/Geometry3D/CylinderOptions.js +6 -12
- package/src/x_ite/Browser/Geometry3D/IcoSphereOptions.js +13 -17
- package/src/x_ite/Browser/Geometry3D/QuadSphereOptions.js +17 -21
- package/src/x_ite/Browser/Geometry3D/X3DGeometry3DContext.js +8 -8
- package/src/x_ite/Browser/Geospatial/Geocentric.js +5 -6
- package/src/x_ite/Browser/Geospatial/Geospatial.js +10 -10
- package/src/x_ite/Browser/Grouping/X3DGroupingContext.js +3 -3
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator.js +2 -3
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator1.js +8 -9
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +7 -8
- package/src/x_ite/Browser/Interpolation/SquatInterpolator.js +3 -4
- package/src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js +8 -8
- package/src/x_ite/Browser/Layering/X3DLayeringContext.js +4 -4
- package/src/x_ite/Browser/Layout/ScreenText.js +7 -8
- package/src/x_ite/Browser/Layout/X3DLayoutContext.js +3 -3
- package/src/x_ite/Browser/Legacy.js +32 -12
- package/src/x_ite/Browser/Lighting/X3DLightingContext.js +5 -5
- package/src/x_ite/Browser/NURBS/NURBS.js +10 -10
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +32 -20
- package/src/x_ite/Browser/Navigation/FlyViewer.js +22 -10
- package/src/x_ite/Browser/Navigation/LookAtViewer.js +29 -17
- package/src/x_ite/Browser/Navigation/NoneViewer.js +15 -5
- package/src/x_ite/Browser/Navigation/PlaneViewer.js +24 -12
- package/src/x_ite/Browser/Navigation/WalkViewer.js +22 -10
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +17 -18
- package/src/x_ite/Browser/Navigation/X3DNavigationContext.js +19 -19
- package/src/x_ite/Browser/Navigation/X3DViewer.js +13 -19
- package/src/x_ite/Browser/Networking/URLs.js +5 -5
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +16 -16
- package/src/x_ite/Browser/ParticleSystems/X3DParticleSystemsContext.js +3 -3
- package/src/x_ite/Browser/Picking/VolumePicker.js +8 -8
- package/src/x_ite/Browser/Picking/X3DPickingContext.js +12 -12
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +24 -20
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDeviceSensorContainer.js +6 -6
- package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +21 -21
- package/src/x_ite/Browser/Rendering/GeometryContext.js +4 -5
- package/src/x_ite/Browser/Rendering/X3DRenderingContext.js +18 -18
- package/src/x_ite/Browser/Scripting/X3DScriptingContext.js +4 -4
- package/src/x_ite/Browser/Shaders/ShaderCompiler.js +4 -4
- package/src/x_ite/Browser/Shaders/ShaderSource.js +1 -1
- package/src/x_ite/Browser/Shaders/X3DShadersContext.js +13 -13
- package/src/x_ite/Browser/Shape/X3DShapeContext.js +12 -12
- package/src/x_ite/Browser/Sound/X3DSoundContext.js +0 -2
- package/src/x_ite/Browser/Text/PolygonText.js +10 -11
- package/src/x_ite/Browser/Text/X3DTextContext.js +6 -6
- package/src/x_ite/Browser/Text/X3DTextGeometry.js +18 -19
- package/src/x_ite/Browser/Texturing/GifMedia.js +7 -7
- package/src/x_ite/Browser/Texturing/X3DTexturingContext.js +24 -24
- package/src/x_ite/Browser/Texturing3D/DICOMParser.js +38 -38
- package/src/x_ite/Browser/Texturing3D/NRRDParser.js +14 -14
- package/src/x_ite/Browser/Time/X3DTimeContext.js +5 -5
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/VolumeRendering/VolumeMaterial.js +39 -22
- package/src/x_ite/Browser/VolumeRendering/X3DVolumeRenderingContext.js +6 -6
- package/src/x_ite/Browser/X3DBrowser.js +166 -140
- package/src/x_ite/Browser/X3DBrowserContext.js +23 -24
- package/src/x_ite/Components/Annotation/AnnotationLayer.js +30 -19
- package/src/x_ite/Components/Annotation/AnnotationTarget.js +30 -19
- package/src/x_ite/Components/Annotation/GroupAnnotation.js +40 -29
- package/src/x_ite/Components/Annotation/IconAnnotation.js +38 -27
- package/src/x_ite/Components/Annotation/TextAnnotation.js +31 -20
- package/src/x_ite/Components/Annotation/URLAnnotation.js +30 -19
- package/src/x_ite/Components/Annotation/X3DAnnotationNode.js +16 -3
- package/src/x_ite/Components/CADGeometry/CADAssembly.js +32 -21
- package/src/x_ite/Components/CADGeometry/CADFace.js +48 -37
- package/src/x_ite/Components/CADGeometry/CADLayer.js +30 -21
- package/src/x_ite/Components/CADGeometry/CADPart.js +37 -26
- package/src/x_ite/Components/CADGeometry/IndexedQuadSet.js +51 -46
- package/src/x_ite/Components/CADGeometry/QuadSet.js +48 -43
- package/src/x_ite/Components/CADGeometry/X3DProductStructureChildNode.js +13 -2
- package/src/x_ite/Components/Core/MetadataBoolean.js +33 -22
- package/src/x_ite/Components/Core/MetadataDouble.js +33 -22
- package/src/x_ite/Components/Core/MetadataFloat.js +33 -22
- package/src/x_ite/Components/Core/MetadataInteger.js +33 -22
- package/src/x_ite/Components/Core/MetadataSet.js +33 -22
- package/src/x_ite/Components/Core/MetadataString.js +33 -22
- package/src/x_ite/Components/Core/WorldInfo.js +34 -23
- package/src/x_ite/Components/Core/X3DBindableNode.js +17 -4
- package/src/x_ite/Components/Core/X3DChildNode.js +19 -6
- package/src/x_ite/Components/Core/X3DInfoNode.js +13 -2
- package/src/x_ite/Components/Core/X3DMetadataObject.js +18 -5
- package/src/x_ite/Components/Core/X3DNode.js +53 -21
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +68 -77
- package/src/x_ite/Components/Core/X3DSensorNode.js +13 -2
- package/src/x_ite/Components/Core.js +22 -29
- package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +46 -35
- package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +39 -28
- package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +47 -36
- package/src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js +21 -8
- package/src/x_ite/Components/DIS/DISEntityManager.js +29 -20
- package/src/x_ite/Components/DIS/DISEntityTypeMapping.js +41 -30
- package/src/x_ite/Components/DIS/EspduTransform.js +117 -106
- package/src/x_ite/Components/DIS/ReceiverPdu.js +60 -49
- package/src/x_ite/Components/DIS/SignalPdu.js +60 -49
- package/src/x_ite/Components/DIS/TransmitterPdu.js +76 -65
- package/src/x_ite/Components/EnvironmentalEffects/Background.js +47 -36
- package/src/x_ite/Components/EnvironmentalEffects/Fog.js +42 -31
- package/src/x_ite/Components/EnvironmentalEffects/FogCoordinate.js +39 -28
- package/src/x_ite/Components/EnvironmentalEffects/LocalFog.js +40 -29
- package/src/x_ite/Components/EnvironmentalEffects/TextureBackground.js +48 -37
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +28 -15
- package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +30 -18
- package/src/x_ite/Components/EnvironmentalEffects.js +15 -22
- package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +45 -34
- package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +50 -39
- package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +41 -30
- package/src/x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode.js +22 -9
- package/src/x_ite/Components/EnvironmentalSensor.js +12 -19
- package/src/x_ite/Components/EventUtilities/BooleanFilter.js +38 -27
- package/src/x_ite/Components/EventUtilities/BooleanSequencer.js +38 -27
- package/src/x_ite/Components/EventUtilities/BooleanToggle.js +33 -22
- package/src/x_ite/Components/EventUtilities/BooleanTrigger.js +32 -21
- package/src/x_ite/Components/EventUtilities/IntegerSequencer.js +38 -27
- package/src/x_ite/Components/EventUtilities/IntegerTrigger.js +33 -22
- package/src/x_ite/Components/EventUtilities/TimeTrigger.js +32 -21
- package/src/x_ite/Components/EventUtilities/X3DSequencerNode.js +20 -7
- package/src/x_ite/Components/EventUtilities/X3DTriggerNode.js +13 -2
- package/src/x_ite/Components/Followers/ColorChaser.js +47 -36
- package/src/x_ite/Components/Followers/ColorDamper.js +49 -38
- package/src/x_ite/Components/Followers/CoordinateChaser.js +33 -22
- package/src/x_ite/Components/Followers/CoordinateDamper.js +35 -24
- package/src/x_ite/Components/Followers/OrientationChaser.js +43 -32
- package/src/x_ite/Components/Followers/OrientationDamper.js +41 -30
- package/src/x_ite/Components/Followers/PositionChaser.js +33 -22
- package/src/x_ite/Components/Followers/PositionChaser2D.js +33 -22
- package/src/x_ite/Components/Followers/PositionDamper.js +35 -24
- package/src/x_ite/Components/Followers/PositionDamper2D.js +35 -24
- package/src/x_ite/Components/Followers/ScalarChaser.js +47 -36
- package/src/x_ite/Components/Followers/ScalarDamper.js +43 -32
- package/src/x_ite/Components/Followers/TexCoordChaser2D.js +33 -22
- package/src/x_ite/Components/Followers/TexCoordDamper2D.js +35 -24
- package/src/x_ite/Components/Followers/X3DChaserNode.js +27 -14
- package/src/x_ite/Components/Followers/X3DDamperNode.js +22 -9
- package/src/x_ite/Components/Followers/X3DFollowerNode.js +29 -16
- package/src/x_ite/Components/Followers.js +25 -32
- package/src/x_ite/Components/Geometry2D/Arc2D.js +38 -27
- package/src/x_ite/Components/Geometry2D/ArcClose2D.js +39 -28
- package/src/x_ite/Components/Geometry2D/Circle2D.js +35 -24
- package/src/x_ite/Components/Geometry2D/Disk2D.js +40 -29
- package/src/x_ite/Components/Geometry2D/Polyline2D.js +34 -23
- package/src/x_ite/Components/Geometry2D/Polypoint2D.js +34 -23
- package/src/x_ite/Components/Geometry2D/Rectangle2D.js +34 -23
- package/src/x_ite/Components/Geometry2D/TriangleSet2D.js +36 -25
- package/src/x_ite/Components/Geometry3D/Box.js +34 -23
- package/src/x_ite/Components/Geometry3D/Cone.js +40 -29
- package/src/x_ite/Components/Geometry3D/Cylinder.js +41 -30
- package/src/x_ite/Components/Geometry3D/ElevationGrid.js +63 -52
- package/src/x_ite/Components/Geometry3D/Extrusion.js +49 -38
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +98 -95
- package/src/x_ite/Components/Geometry3D/Sphere.js +36 -25
- package/src/x_ite/Components/Geometry3D.js +15 -22
- package/src/x_ite/Components/Geospatial/GeoCoordinate.js +37 -26
- package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +63 -52
- package/src/x_ite/Components/Geospatial/GeoLOD.js +59 -48
- package/src/x_ite/Components/Geospatial/GeoLocation.js +45 -34
- package/src/x_ite/Components/Geospatial/GeoMetadata.js +38 -27
- package/src/x_ite/Components/Geospatial/GeoOrigin.js +37 -26
- package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +43 -32
- package/src/x_ite/Components/Geospatial/GeoProximitySensor.js +48 -37
- package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +45 -34
- package/src/x_ite/Components/Geospatial/GeoTransform.js +49 -38
- package/src/x_ite/Components/Geospatial/GeoViewpoint.js +56 -45
- package/src/x_ite/Components/Geospatial/X3DGeospatialObject.js +30 -17
- package/src/x_ite/Components/Grouping/Group.js +29 -20
- package/src/x_ite/Components/Grouping/StaticGroup.js +40 -48
- package/src/x_ite/Components/Grouping/Switch.js +51 -40
- package/src/x_ite/Components/Grouping/Transform.js +34 -25
- package/src/x_ite/Components/Grouping/X3DBoundedObject.js +22 -9
- package/src/x_ite/Components/Grouping/X3DGroupingNode.js +224 -219
- package/src/x_ite/Components/Grouping/X3DTransformMatrix3DNode.js +20 -7
- package/src/x_ite/Components/Grouping/X3DTransformNode.js +17 -4
- package/src/x_ite/Components/Grouping.js +16 -23
- package/src/x_ite/Components/HAnim/HAnimDisplacer.js +27 -18
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +73 -62
- package/src/x_ite/Components/HAnim/HAnimJoint.js +61 -50
- package/src/x_ite/Components/HAnim/HAnimMotion.js +44 -33
- package/src/x_ite/Components/HAnim/HAnimSegment.js +36 -27
- package/src/x_ite/Components/HAnim/HAnimSite.js +36 -27
- package/src/x_ite/Components/Interpolation/ColorInterpolator.js +38 -27
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator.js +38 -27
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator2D.js +38 -27
- package/src/x_ite/Components/Interpolation/EaseInEaseOut.js +39 -28
- package/src/x_ite/Components/Interpolation/NormalInterpolator.js +38 -27
- package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +38 -27
- package/src/x_ite/Components/Interpolation/PositionInterpolator.js +38 -27
- package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +38 -27
- package/src/x_ite/Components/Interpolation/ScalarInterpolator.js +39 -28
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator.js +44 -33
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator2D.js +44 -33
- package/src/x_ite/Components/Interpolation/SplineScalarInterpolator.js +44 -33
- package/src/x_ite/Components/Interpolation/SquadOrientationInterpolator.js +40 -29
- package/src/x_ite/Components/Interpolation/X3DInterpolatorNode.js +21 -8
- package/src/x_ite/Components/Interpolation.js +22 -29
- package/src/x_ite/Components/KeyDeviceSensor/KeySensor.js +44 -33
- package/src/x_ite/Components/KeyDeviceSensor/StringSensor.js +38 -27
- package/src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js +23 -10
- package/src/x_ite/Components/Layering/Layer.js +40 -29
- package/src/x_ite/Components/Layering/LayerSet.js +44 -33
- package/src/x_ite/Components/Layering/Viewport.js +48 -37
- package/src/x_ite/Components/Layering/X3DLayerNode.js +45 -32
- package/src/x_ite/Components/Layering/X3DViewportNode.js +13 -2
- package/src/x_ite/Components/Layering.js +13 -20
- package/src/x_ite/Components/Layout/Layout.js +60 -49
- package/src/x_ite/Components/Layout/LayoutGroup.js +48 -37
- package/src/x_ite/Components/Layout/LayoutLayer.js +41 -30
- package/src/x_ite/Components/Layout/ScreenFontStyle.js +41 -30
- package/src/x_ite/Components/Layout/ScreenGroup.js +42 -31
- package/src/x_ite/Components/Layout/X3DLayoutNode.js +13 -2
- package/src/x_ite/Components/Lighting/DirectionalLight.js +45 -35
- package/src/x_ite/Components/Lighting/EnvironmentLight.js +51 -41
- package/src/x_ite/Components/Lighting/PointLight.js +53 -43
- package/src/x_ite/Components/Lighting/SpotLight.js +62 -52
- package/src/x_ite/Components/Lighting/X3DLightNode.js +29 -16
- package/src/x_ite/Components/Lighting.js +13 -20
- package/src/x_ite/Components/NURBS/Contour2D.js +45 -43
- package/src/x_ite/Components/NURBS/ContourPolyline2D.js +34 -23
- package/src/x_ite/Components/NURBS/CoordinateDouble.js +23 -14
- package/src/x_ite/Components/NURBS/NurbsCurve.js +47 -36
- package/src/x_ite/Components/NURBS/NurbsCurve2D.js +44 -33
- package/src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js +46 -35
- package/src/x_ite/Components/NURBS/NurbsPatchSurface.js +36 -27
- package/src/x_ite/Components/NURBS/NurbsPositionInterpolator.js +46 -35
- package/src/x_ite/Components/NURBS/NurbsSet.js +52 -50
- package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +44 -33
- package/src/x_ite/Components/NURBS/NurbsSweptSurface.js +40 -29
- package/src/x_ite/Components/NURBS/NurbsSwungSurface.js +40 -29
- package/src/x_ite/Components/NURBS/NurbsTextureCoordinate.js +43 -32
- package/src/x_ite/Components/NURBS/NurbsTrimmedSurface.js +59 -57
- package/src/x_ite/Components/NURBS/X3DNurbsControlCurveNode.js +13 -2
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +30 -17
- package/src/x_ite/Components/NURBS/X3DParametricGeometryNode.js +16 -3
- package/src/x_ite/Components/Navigation/Billboard.js +43 -32
- package/src/x_ite/Components/Navigation/Collision.js +49 -38
- package/src/x_ite/Components/Navigation/LOD.js +54 -43
- package/src/x_ite/Components/Navigation/NavigationInfo.js +58 -47
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +69 -58
- package/src/x_ite/Components/Navigation/Viewpoint.js +53 -42
- package/src/x_ite/Components/Navigation/ViewpointGroup.js +44 -33
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +48 -35
- package/src/x_ite/Components/Navigation.js +16 -23
- package/src/x_ite/Components/Networking/Anchor.js +51 -40
- package/src/x_ite/Components/Networking/Inline.js +54 -43
- package/src/x_ite/Components/Networking/LoadSensor.js +49 -38
- package/src/x_ite/Components/Networking/X3DNetworkSensorNode.js +13 -2
- package/src/x_ite/Components/Networking/X3DUrlObject.js +35 -22
- package/src/x_ite/Components/Networking.js +13 -20
- package/src/x_ite/Components/ParticleSystems/BoundedPhysicsModel.js +37 -26
- package/src/x_ite/Components/ParticleSystems/ConeEmitter.js +44 -33
- package/src/x_ite/Components/ParticleSystems/ExplosionEmitter.js +41 -30
- package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +34 -23
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +83 -72
- package/src/x_ite/Components/ParticleSystems/PointEmitter.js +41 -30
- package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +42 -31
- package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +42 -31
- package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +43 -32
- package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +38 -27
- package/src/x_ite/Components/ParticleSystems/X3DParticleEmitterNode.js +33 -20
- package/src/x_ite/Components/ParticleSystems/X3DParticlePhysicsModelNode.js +16 -3
- package/src/x_ite/Components/Picking/LinePickSensor.js +49 -38
- package/src/x_ite/Components/Picking/PickableGroup.js +45 -34
- package/src/x_ite/Components/Picking/PointPickSensor.js +46 -35
- package/src/x_ite/Components/Picking/PrimitivePickSensor.js +46 -35
- package/src/x_ite/Components/Picking/VolumePickSensor.js +45 -34
- package/src/x_ite/Components/Picking/X3DPickSensorNode.js +31 -18
- package/src/x_ite/Components/Picking/X3DPickableObject.js +20 -7
- package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +50 -39
- package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +52 -45
- package/src/x_ite/Components/PointingDeviceSensor/SphereSensor.js +44 -33
- package/src/x_ite/Components/PointingDeviceSensor/TouchSensor.js +30 -21
- package/src/x_ite/Components/PointingDeviceSensor/X3DDragSensorNode.js +13 -2
- package/src/x_ite/Components/PointingDeviceSensor/X3DPointingDeviceSensorNode.js +22 -11
- package/src/x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode.js +16 -3
- package/src/x_ite/Components/PointingDeviceSensor.js +15 -22
- package/src/x_ite/Components/Rendering/ClipPlane.js +44 -34
- package/src/x_ite/Components/Rendering/Color.js +37 -26
- package/src/x_ite/Components/Rendering/ColorRGBA.js +37 -26
- package/src/x_ite/Components/Rendering/Coordinate.js +23 -14
- package/src/x_ite/Components/Rendering/IndexedLineSet.js +52 -41
- package/src/x_ite/Components/Rendering/IndexedTriangleFanSet.js +48 -37
- package/src/x_ite/Components/Rendering/IndexedTriangleSet.js +44 -33
- package/src/x_ite/Components/Rendering/IndexedTriangleStripSet.js +48 -37
- package/src/x_ite/Components/Rendering/LineSet.js +45 -34
- package/src/x_ite/Components/Rendering/Normal.js +39 -28
- package/src/x_ite/Components/Rendering/PointSet.js +45 -34
- package/src/x_ite/Components/Rendering/TriangleFanSet.js +47 -36
- package/src/x_ite/Components/Rendering/TriangleSet.js +41 -30
- package/src/x_ite/Components/Rendering/TriangleStripSet.js +47 -36
- package/src/x_ite/Components/Rendering/X3DColorNode.js +17 -4
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +33 -20
- package/src/x_ite/Components/Rendering/X3DCoordinateNode.js +23 -10
- package/src/x_ite/Components/Rendering/X3DGeometricPropertyNode.js +13 -2
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +96 -80
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +21 -8
- package/src/x_ite/Components/Rendering/X3DNormalNode.js +13 -2
- package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +20 -7
- package/src/x_ite/Components/Rendering.js +29 -36
- package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +43 -32
- package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +48 -37
- package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +52 -41
- package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +47 -36
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +41 -30
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSpace.js +44 -33
- package/src/x_ite/Components/RigidBodyPhysics/Contact.js +38 -29
- package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +60 -49
- package/src/x_ite/Components/RigidBodyPhysics/MotorJoint.js +48 -39
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +69 -58
- package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +61 -50
- package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +49 -38
- package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +47 -36
- package/src/x_ite/Components/RigidBodyPhysics/UniversalJoint.js +36 -27
- package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js +24 -11
- package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollisionSpaceNode.js +17 -4
- package/src/x_ite/Components/RigidBodyPhysics/X3DRigidJointNode.js +34 -21
- package/src/x_ite/Components/Scripting/Script.js +76 -46
- package/src/x_ite/Components/Scripting/X3DScriptNode.js +17 -4
- package/src/x_ite/Components/Shaders/ComposedShader.js +46 -35
- package/src/x_ite/Components/Shaders/FloatVertexAttribute.js +40 -29
- package/src/x_ite/Components/Shaders/Matrix3VertexAttribute.js +38 -27
- package/src/x_ite/Components/Shaders/Matrix4VertexAttribute.js +38 -27
- package/src/x_ite/Components/Shaders/PackagedShader.js +45 -34
- package/src/x_ite/Components/Shaders/ProgramShader.js +27 -18
- package/src/x_ite/Components/Shaders/ShaderPart.js +47 -36
- package/src/x_ite/Components/Shaders/ShaderProgram.js +42 -31
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +51 -38
- package/src/x_ite/Components/Shaders/X3DShaderNode.js +19 -6
- package/src/x_ite/Components/Shaders/X3DVertexAttributeNode.js +17 -4
- package/src/x_ite/Components/Shaders.js +19 -26
- package/src/x_ite/Components/Shape/AcousticProperties.js +28 -19
- package/src/x_ite/Components/Shape/Appearance.js +79 -68
- package/src/x_ite/Components/Shape/FillProperties.js +44 -33
- package/src/x_ite/Components/Shape/LineProperties.js +44 -33
- package/src/x_ite/Components/Shape/Material.js +75 -64
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +65 -54
- package/src/x_ite/Components/Shape/PointProperties.js +43 -32
- package/src/x_ite/Components/Shape/Shape.js +48 -37
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +60 -49
- package/src/x_ite/Components/Shape/UnlitMaterial.js +44 -33
- package/src/x_ite/Components/Shape/X3DAppearanceChildNode.js +13 -2
- package/src/x_ite/Components/Shape/X3DAppearanceNode.js +17 -4
- package/src/x_ite/Components/Shape/X3DMaterialNode.js +41 -33
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +29 -16
- package/src/x_ite/Components/Shape/X3DShapeNode.js +28 -15
- package/src/x_ite/Components/Shape.js +23 -30
- package/src/x_ite/Components/Sound/Analyser.js +46 -37
- package/src/x_ite/Components/Sound/AudioClip.js +61 -50
- package/src/x_ite/Components/Sound/AudioDestination.js +35 -26
- package/src/x_ite/Components/Sound/BiquadFilter.js +45 -36
- package/src/x_ite/Components/Sound/BufferAudioSource.js +61 -50
- package/src/x_ite/Components/Sound/ChannelMerger.js +32 -23
- package/src/x_ite/Components/Sound/ChannelSelector.js +33 -24
- package/src/x_ite/Components/Sound/ChannelSplitter.js +33 -24
- package/src/x_ite/Components/Sound/Convolver.js +43 -34
- package/src/x_ite/Components/Sound/Delay.js +43 -34
- package/src/x_ite/Components/Sound/DynamicsCompressor.js +47 -38
- package/src/x_ite/Components/Sound/Gain.js +41 -32
- package/src/x_ite/Components/Sound/ListenerPointSource.js +39 -30
- package/src/x_ite/Components/Sound/MicrophoneSource.js +35 -26
- package/src/x_ite/Components/Sound/OscillatorSource.js +37 -28
- package/src/x_ite/Components/Sound/PeriodicWave.js +27 -18
- package/src/x_ite/Components/Sound/Sound.js +51 -40
- package/src/x_ite/Components/Sound/SpatialSound.js +42 -33
- package/src/x_ite/Components/Sound/StreamAudioDestination.js +35 -26
- package/src/x_ite/Components/Sound/StreamAudioSource.js +35 -26
- package/src/x_ite/Components/Sound/WaveShaper.js +43 -34
- package/src/x_ite/Components/Sound/X3DSoundChannelNode.js +13 -2
- package/src/x_ite/Components/Sound/X3DSoundDestinationNode.js +13 -2
- package/src/x_ite/Components/Sound/X3DSoundNode.js +13 -2
- package/src/x_ite/Components/Sound/X3DSoundProcessingNode.js +17 -4
- package/src/x_ite/Components/Sound/X3DSoundSourceNode.js +30 -17
- package/src/x_ite/Components/Sound.js +34 -41
- package/src/x_ite/Components/Text/FontStyle.js +37 -26
- package/src/x_ite/Components/Text/Text.js +50 -39
- package/src/x_ite/Components/Text/X3DFontStyleNode.js +32 -18
- package/src/x_ite/Components/TextureProjector/TextureProjector.js +49 -39
- package/src/x_ite/Components/TextureProjector/TextureProjectorParallel.js +58 -48
- package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +27 -14
- package/src/x_ite/Components/Texturing/ImageTexture.js +50 -39
- package/src/x_ite/Components/Texturing/MovieTexture.js +67 -56
- package/src/x_ite/Components/Texturing/MultiTexture.js +52 -41
- package/src/x_ite/Components/Texturing/MultiTextureCoordinate.js +44 -33
- package/src/x_ite/Components/Texturing/MultiTextureTransform.js +39 -28
- package/src/x_ite/Components/Texturing/PixelTexture.js +42 -31
- package/src/x_ite/Components/Texturing/TextureCoordinate.js +41 -30
- package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +41 -30
- package/src/x_ite/Components/Texturing/TextureProperties.js +47 -36
- package/src/x_ite/Components/Texturing/TextureTransform.js +39 -28
- package/src/x_ite/Components/Texturing/X3DSingleTextureCoordinateNode.js +20 -7
- package/src/x_ite/Components/Texturing/X3DSingleTextureNode.js +21 -8
- package/src/x_ite/Components/Texturing/X3DSingleTextureTransformNode.js +20 -7
- package/src/x_ite/Components/Texturing/X3DTexture2DNode.js +26 -13
- package/src/x_ite/Components/Texturing/X3DTextureCoordinateNode.js +13 -2
- package/src/x_ite/Components/Texturing/X3DTextureNode.js +17 -4
- package/src/x_ite/Components/Texturing/X3DTextureTransformNode.js +13 -2
- package/src/x_ite/Components/Texturing.js +25 -32
- package/src/x_ite/Components/Texturing3D/ComposedTexture3D.js +44 -33
- package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +46 -35
- package/src/x_ite/Components/Texturing3D/ImageTextureAtlas.js +54 -43
- package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +40 -29
- package/src/x_ite/Components/Texturing3D/TextureCoordinate3D.js +41 -30
- package/src/x_ite/Components/Texturing3D/TextureCoordinate4D.js +41 -30
- package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +39 -28
- package/src/x_ite/Components/Texturing3D/TextureTransformMatrix3D.js +36 -25
- package/src/x_ite/Components/Texturing3D/X3DTexture3DNode.js +26 -13
- package/src/x_ite/Components/Time/TimeSensor.js +55 -44
- package/src/x_ite/Components/Time/X3DTimeDependentNode.js +38 -25
- package/src/x_ite/Components/Time.js +10 -17
- package/src/x_ite/Components/VolumeRendering/BlendedVolumeStyle.js +51 -41
- package/src/x_ite/Components/VolumeRendering/BoundaryEnhancementVolumeStyle.js +39 -28
- package/src/x_ite/Components/VolumeRendering/CartoonVolumeStyle.js +42 -31
- package/src/x_ite/Components/VolumeRendering/ComposedVolumeStyle.js +41 -30
- package/src/x_ite/Components/VolumeRendering/EdgeEnhancementVolumeStyle.js +41 -30
- package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +50 -39
- package/src/x_ite/Components/VolumeRendering/OpacityMapVolumeStyle.js +39 -28
- package/src/x_ite/Components/VolumeRendering/ProjectionVolumeStyle.js +38 -27
- package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +49 -38
- package/src/x_ite/Components/VolumeRendering/ShadedVolumeStyle.js +44 -33
- package/src/x_ite/Components/VolumeRendering/SilhouetteEnhancementVolumeStyle.js +42 -31
- package/src/x_ite/Components/VolumeRendering/ToneMappedVolumeStyle.js +41 -30
- package/src/x_ite/Components/VolumeRendering/VolumeData.js +45 -34
- package/src/x_ite/Components/VolumeRendering/X3DComposableVolumeRenderStyleNode.js +13 -2
- package/src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js +25 -12
- package/src/x_ite/Components/VolumeRendering/X3DVolumeRenderStyleNode.js +22 -9
- package/src/x_ite/Components/X_ITE/BlendMode.js +48 -37
- package/src/x_ite/Components.js +38 -14
- package/src/x_ite/Configuration/{NodeTypeArray.js → AbstractNodes.js} +2 -20
- package/src/x_ite/{Fallback.js → Configuration/AbstractNodesArray.js} +22 -29
- package/src/x_ite/Configuration/ComponentInfo.js +14 -10
- package/src/x_ite/Configuration/ComponentInfoArray.js +14 -10
- package/src/x_ite/Configuration/ConcreteNodes.js +50 -0
- package/src/x_ite/Configuration/{SupportedNodes.js → ConcreteNodesArray.js} +28 -35
- package/src/x_ite/Configuration/ProfileInfo.js +13 -9
- package/src/x_ite/Configuration/ProfileInfoArray.js +14 -13
- package/src/x_ite/Configuration/SupportedComponents.js +40 -78
- package/src/x_ite/Configuration/SupportedProfiles.js +16 -16
- package/src/x_ite/Configuration/UnitInfo.js +14 -10
- package/src/x_ite/Configuration/UnitInfoArray.js +10 -21
- package/src/x_ite/Execution/BindableList.js +14 -10
- package/src/x_ite/Execution/BindableStack.js +14 -10
- package/src/x_ite/Execution/ExportedNodesArray.js +11 -9
- package/src/x_ite/Execution/ImportedNodesArray.js +11 -9
- package/src/x_ite/Execution/NamedNodesArray.js +11 -22
- package/src/x_ite/Execution/X3DExecutionContext.js +121 -110
- package/src/x_ite/Execution/X3DExportedNode.js +18 -10
- package/src/x_ite/Execution/X3DImportedNode.js +35 -22
- package/src/x_ite/Execution/X3DScene.js +93 -64
- package/src/x_ite/Execution/X3DWorld.js +21 -17
- package/src/x_ite/Fields/ArrayFields.js +87 -153
- package/src/x_ite/Fields/SFBool.js +21 -25
- package/src/x_ite/Fields/SFColor.js +43 -39
- package/src/x_ite/Fields/SFColorRGBA.js +39 -35
- package/src/x_ite/Fields/SFDouble.js +20 -21
- package/src/x_ite/Fields/SFFloat.js +20 -21
- package/src/x_ite/Fields/SFImage.js +50 -48
- package/src/x_ite/Fields/SFInt32.js +20 -21
- package/src/x_ite/Fields/SFMatrix3.js +23 -16
- package/src/x_ite/Fields/SFMatrix4.js +24 -17
- package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +31 -31
- package/src/x_ite/Fields/SFNode.js +57 -88
- package/src/x_ite/Fields/SFNodeCache.js +7 -11
- package/src/x_ite/Fields/SFRotation.js +73 -62
- package/src/x_ite/Fields/SFString.js +35 -36
- package/src/x_ite/Fields/SFTime.js +20 -21
- package/src/x_ite/Fields/SFVec2.js +17 -14
- package/src/x_ite/Fields/SFVec3.js +20 -17
- package/src/x_ite/Fields/SFVec4.js +21 -18
- package/src/x_ite/Fields/SFVecPrototypeTemplate.js +36 -36
- package/src/x_ite/Fields.js +6 -13
- package/src/x_ite/InputOutput/FileLoader.js +37 -41
- package/src/x_ite/InputOutput/Generator.js +50 -51
- package/src/x_ite/Parser/GLB2Parser.js +12 -13
- package/src/x_ite/Parser/GLTF2Parser.js +111 -112
- package/src/x_ite/Parser/GoldenGate.js +11 -13
- package/src/x_ite/Parser/HTMLSupport.js +15 -5
- package/src/x_ite/Parser/JSONParser.js +21 -22
- package/src/x_ite/Parser/OBJParser.js +56 -57
- package/src/x_ite/Parser/STLAParser.js +22 -23
- package/src/x_ite/Parser/STLBParser.js +12 -13
- package/src/x_ite/Parser/SVGParser.js +85 -86
- package/src/x_ite/Parser/VRMLParser.js +495 -878
- package/src/x_ite/Parser/X3DOptimizer.js +7 -7
- package/src/x_ite/Parser/X3DParser.js +17 -17
- package/src/x_ite/Parser/XMLParser.js +215 -269
- package/src/x_ite/Prototype/ExternProtoDeclarationArray.js +11 -9
- package/src/x_ite/Prototype/ProtoDeclarationArray.js +11 -9
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +35 -27
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +28 -20
- package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +18 -10
- package/src/x_ite/Rendering/DependentRenderer.js +11 -12
- package/src/x_ite/Rendering/MultiSampleFrameBuffer.js +9 -10
- package/src/x_ite/Rendering/PointingBuffer.js +6 -7
- package/src/x_ite/Rendering/TextureBuffer.js +11 -12
- package/src/x_ite/Rendering/VertexArray.js +5 -5
- package/src/x_ite/Rendering/X3DRenderObject.js +51 -52
- package/src/x_ite/Routing/RouteArray.js +11 -9
- package/src/x_ite/Routing/X3DRoute.js +29 -21
- package/src/x_ite/Routing/X3DRoutingContext.js +8 -9
- package/src/x_ite/X3D.js +27 -26
- package/src/x_ite/X3DCanvasElement.js +18 -7
- package/src/x_ite.css +2 -1
- package/webpack.config.js +2 -2
- /package/src/x_ite/{DEBUG.js → DEVELOPMENT.js} +0 -0
|
@@ -56,7 +56,7 @@ import HTMLSupport from "./HTMLSupport.js";
|
|
|
56
56
|
import X3DExternProtoDeclaration from "../Prototype/X3DExternProtoDeclaration.js";
|
|
57
57
|
import X3DProtoDeclaration from "../Prototype/X3DProtoDeclaration.js";
|
|
58
58
|
import X3DConstants from "../Base/X3DConstants.js";
|
|
59
|
-
import
|
|
59
|
+
import DEVELOPMENT from "../DEVELOPMENT.js";
|
|
60
60
|
|
|
61
61
|
const AccessType =
|
|
62
62
|
{
|
|
@@ -78,17 +78,12 @@ function XMLParser (scene)
|
|
|
78
78
|
this .protoFields = new WeakMap ();
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
Object .assign (Object .setPrototypeOf (XMLParser .prototype, X3DParser .prototype),
|
|
82
82
|
{
|
|
83
|
-
|
|
84
|
-
getEncoding: function ()
|
|
83
|
+
getEncoding ()
|
|
85
84
|
{
|
|
86
85
|
return "XML";
|
|
87
86
|
},
|
|
88
|
-
isValid: function ()
|
|
89
|
-
{
|
|
90
|
-
return (this .input instanceof XMLDocument) || (this .input instanceof HTMLElement) || (this .input === null);
|
|
91
|
-
},
|
|
92
87
|
setInput (xmlElement)
|
|
93
88
|
{
|
|
94
89
|
try
|
|
@@ -102,35 +97,36 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
102
97
|
if (!this .xml)
|
|
103
98
|
Object .assign (this, HTMLParser);
|
|
104
99
|
}
|
|
105
|
-
catch
|
|
100
|
+
catch
|
|
106
101
|
{
|
|
107
102
|
this .input = undefined;
|
|
108
103
|
}
|
|
109
104
|
},
|
|
110
|
-
|
|
105
|
+
isValid ()
|
|
106
|
+
{
|
|
107
|
+
return (this .input instanceof XMLDocument) || (this .input instanceof HTMLElement) || (this .input === null);
|
|
108
|
+
},
|
|
109
|
+
isXML (element)
|
|
111
110
|
{
|
|
112
111
|
if (element instanceof HTMLElement)
|
|
113
112
|
return false;
|
|
114
113
|
else
|
|
115
114
|
return true;
|
|
116
115
|
},
|
|
117
|
-
parseIntoScene
|
|
116
|
+
parseIntoScene (resolve, reject)
|
|
118
117
|
{
|
|
119
|
-
this .
|
|
120
|
-
this .
|
|
118
|
+
this .resolve = resolve;
|
|
119
|
+
this .reject = reject;
|
|
121
120
|
|
|
122
121
|
this .getScene () .setEncoding ("XML");
|
|
123
122
|
this .getScene () .setProfile (this .getBrowser () .getProfile ("Full"));
|
|
124
123
|
|
|
125
124
|
this .xmlElement (this .input);
|
|
126
125
|
},
|
|
127
|
-
xmlElement
|
|
126
|
+
xmlElement (xmlElement)
|
|
128
127
|
{
|
|
129
128
|
if (xmlElement === null)
|
|
130
|
-
|
|
131
|
-
if (this .success)
|
|
132
|
-
return this .success (this .getScene ());
|
|
133
|
-
}
|
|
129
|
+
return this .resolve ?.(this .getScene ());
|
|
134
130
|
|
|
135
131
|
switch (xmlElement .nodeName)
|
|
136
132
|
{
|
|
@@ -145,18 +141,14 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
145
141
|
}
|
|
146
142
|
else
|
|
147
143
|
{
|
|
148
|
-
if (this .
|
|
144
|
+
if (this .resolve)
|
|
149
145
|
{
|
|
150
146
|
this .loadComponents () .then (() =>
|
|
151
147
|
{
|
|
152
148
|
this .childrenElements (xmlElement);
|
|
153
|
-
this .
|
|
149
|
+
this .resolve (this .getScene ());
|
|
154
150
|
})
|
|
155
|
-
.catch (
|
|
156
|
-
{
|
|
157
|
-
if (this .error)
|
|
158
|
-
this .error (error);
|
|
159
|
-
});
|
|
151
|
+
.catch (this .reject);
|
|
160
152
|
}
|
|
161
153
|
else
|
|
162
154
|
{
|
|
@@ -174,18 +166,14 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
174
166
|
case "Scene":
|
|
175
167
|
case "SCENE":
|
|
176
168
|
{
|
|
177
|
-
if (this .
|
|
169
|
+
if (this .resolve)
|
|
178
170
|
{
|
|
179
171
|
this .loadComponents () .then (() =>
|
|
180
172
|
{
|
|
181
173
|
this .sceneElement (xmlElement);
|
|
182
|
-
this .
|
|
174
|
+
this .resolve (this .getScene ());
|
|
183
175
|
})
|
|
184
|
-
.catch (
|
|
185
|
-
{
|
|
186
|
-
if (this .error)
|
|
187
|
-
this .error (error);
|
|
188
|
-
});
|
|
176
|
+
.catch (this .reject);
|
|
189
177
|
}
|
|
190
178
|
else
|
|
191
179
|
{
|
|
@@ -196,18 +184,14 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
196
184
|
}
|
|
197
185
|
default:
|
|
198
186
|
{
|
|
199
|
-
if (this .
|
|
187
|
+
if (this .resolve)
|
|
200
188
|
{
|
|
201
189
|
this .loadComponents () .then (() =>
|
|
202
190
|
{
|
|
203
191
|
this .childrenElements (xmlElement);
|
|
204
|
-
this .
|
|
192
|
+
this .resolve (this .getScene ());
|
|
205
193
|
})
|
|
206
|
-
.catch (
|
|
207
|
-
{
|
|
208
|
-
if (this .error)
|
|
209
|
-
this .error (error);
|
|
210
|
-
});
|
|
194
|
+
.catch (this .reject);
|
|
211
195
|
}
|
|
212
196
|
else
|
|
213
197
|
{
|
|
@@ -218,13 +202,13 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
218
202
|
}
|
|
219
203
|
}
|
|
220
204
|
},
|
|
221
|
-
x3dElement
|
|
205
|
+
x3dElement (xmlElement)
|
|
222
206
|
{
|
|
223
207
|
try
|
|
224
208
|
{
|
|
225
209
|
// Profile
|
|
226
210
|
|
|
227
|
-
|
|
211
|
+
const
|
|
228
212
|
profileNameId = xmlElement .getAttribute ("profile"),
|
|
229
213
|
profile = this .getBrowser () .getProfile (profileNameId || "Full");
|
|
230
214
|
|
|
@@ -239,45 +223,37 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
239
223
|
|
|
240
224
|
// Specification version
|
|
241
225
|
|
|
242
|
-
|
|
226
|
+
const specificationVersion = xmlElement .getAttribute ("version");
|
|
243
227
|
|
|
244
228
|
if (specificationVersion)
|
|
245
229
|
this .getScene () .setSpecificationVersion (specificationVersion);
|
|
246
230
|
|
|
247
231
|
// Process child nodes
|
|
248
232
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
for (var i = 0; i < childNodes .length; ++ i)
|
|
252
|
-
this .x3dElementChildHead (childNodes [i])
|
|
233
|
+
for (const childNode of xmlElement .childNodes)
|
|
234
|
+
this .x3dElementChildHead (childNode)
|
|
253
235
|
|
|
254
236
|
if (!this .xml)
|
|
255
237
|
this .headElement (xmlElement);
|
|
256
238
|
|
|
257
|
-
if (this .
|
|
239
|
+
if (this .resolve)
|
|
258
240
|
{
|
|
259
|
-
this .loadComponents () .then (
|
|
241
|
+
this .loadComponents () .then (() =>
|
|
260
242
|
{
|
|
261
|
-
for (
|
|
262
|
-
this .x3dElementChildScene (
|
|
243
|
+
for (const childNode of xmlElement .childNodes)
|
|
244
|
+
this .x3dElementChildScene (childNode)
|
|
263
245
|
|
|
264
|
-
this .
|
|
265
|
-
}
|
|
266
|
-
.
|
|
267
|
-
.catch (function (error)
|
|
268
|
-
{
|
|
269
|
-
if (this .error)
|
|
270
|
-
this .error (error);
|
|
271
|
-
}
|
|
272
|
-
.bind (this));
|
|
246
|
+
this .resolve (this .getScene ());
|
|
247
|
+
})
|
|
248
|
+
.catch (this .reject);
|
|
273
249
|
}
|
|
274
250
|
else
|
|
275
251
|
{
|
|
276
|
-
for (
|
|
277
|
-
this .x3dElementChildScene (
|
|
252
|
+
for (const childNode of xmlElement .childNodes)
|
|
253
|
+
this .x3dElementChildScene (childNode)
|
|
278
254
|
}
|
|
279
255
|
},
|
|
280
|
-
x3dElementChildHead
|
|
256
|
+
x3dElementChildHead (xmlElement)
|
|
281
257
|
{
|
|
282
258
|
switch (xmlElement .nodeName)
|
|
283
259
|
{
|
|
@@ -287,7 +263,7 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
287
263
|
return;
|
|
288
264
|
}
|
|
289
265
|
},
|
|
290
|
-
x3dElementChildScene
|
|
266
|
+
x3dElementChildScene (xmlElement)
|
|
291
267
|
{
|
|
292
268
|
switch (xmlElement .nodeName)
|
|
293
269
|
{
|
|
@@ -297,14 +273,12 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
297
273
|
return;
|
|
298
274
|
}
|
|
299
275
|
},
|
|
300
|
-
headElement
|
|
276
|
+
headElement (xmlElement)
|
|
301
277
|
{
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
for (var i = 0; i < childNodes .length; ++ i)
|
|
305
|
-
this .headElementChild (childNodes [i]);
|
|
278
|
+
for (const childNode of xmlElement .childNodes)
|
|
279
|
+
this .headElementChild (childNode);
|
|
306
280
|
},
|
|
307
|
-
headElementChild
|
|
281
|
+
headElementChild (xmlElement)
|
|
308
282
|
{
|
|
309
283
|
switch (xmlElement .nodeName)
|
|
310
284
|
{
|
|
@@ -322,11 +296,11 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
322
296
|
return;
|
|
323
297
|
}
|
|
324
298
|
},
|
|
325
|
-
componentElement
|
|
299
|
+
componentElement (xmlElement)
|
|
326
300
|
{
|
|
327
301
|
try
|
|
328
302
|
{
|
|
329
|
-
|
|
303
|
+
const
|
|
330
304
|
componentNameIdCharacters = xmlElement .getAttribute ("name"),
|
|
331
305
|
componentSupportLevel = parseInt (xmlElement .getAttribute ("level"));
|
|
332
306
|
|
|
@@ -336,18 +310,18 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
336
310
|
if (componentSupportLevel === null)
|
|
337
311
|
return console .warn ("XML Parser Error: Bad component statement. Expected level attribute.");
|
|
338
312
|
|
|
339
|
-
|
|
313
|
+
const component = this .getBrowser () .getComponent (componentNameIdCharacters, componentSupportLevel);
|
|
340
314
|
|
|
341
|
-
this .getScene () .
|
|
315
|
+
this .getScene () .updateComponent (component);
|
|
342
316
|
}
|
|
343
317
|
catch (error)
|
|
344
318
|
{
|
|
345
319
|
console .log (error .message);
|
|
346
320
|
}
|
|
347
321
|
},
|
|
348
|
-
unitElement
|
|
322
|
+
unitElement (xmlElement)
|
|
349
323
|
{
|
|
350
|
-
|
|
324
|
+
const
|
|
351
325
|
category = xmlElement .getAttribute ("category"),
|
|
352
326
|
name = xmlElement .getAttribute ("name"),
|
|
353
327
|
conversionFactor = xmlElement .getAttribute ("conversionFactor"); //works for html5 as well
|
|
@@ -363,9 +337,9 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
363
337
|
|
|
364
338
|
this .getScene () .updateUnit (category, name, parseFloat (conversionFactor));
|
|
365
339
|
},
|
|
366
|
-
metaElement
|
|
340
|
+
metaElement (xmlElement)
|
|
367
341
|
{
|
|
368
|
-
|
|
342
|
+
const
|
|
369
343
|
metakey = xmlElement .getAttribute ("name"),
|
|
370
344
|
metavalue = xmlElement .getAttribute ("content");
|
|
371
345
|
|
|
@@ -377,20 +351,18 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
377
351
|
|
|
378
352
|
this .getScene () .addMetaData (metakey, metavalue);
|
|
379
353
|
},
|
|
380
|
-
sceneElement
|
|
354
|
+
sceneElement (xmlElement)
|
|
381
355
|
{
|
|
382
356
|
$.data (xmlElement, "node", this .scene);
|
|
383
357
|
|
|
384
358
|
this .childrenElements (xmlElement);
|
|
385
359
|
},
|
|
386
|
-
childrenElements
|
|
360
|
+
childrenElements (xmlElement)
|
|
387
361
|
{
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
for (var i = 0; i < childNodes .length; ++ i)
|
|
391
|
-
this .childElement (childNodes [i]);
|
|
362
|
+
for (const childNode of xmlElement .childNodes)
|
|
363
|
+
this .childElement (childNode);
|
|
392
364
|
},
|
|
393
|
-
childElement
|
|
365
|
+
childElement (xmlElement)
|
|
394
366
|
{
|
|
395
367
|
switch (xmlElement .nodeName)
|
|
396
368
|
{
|
|
@@ -448,7 +420,7 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
448
420
|
return;
|
|
449
421
|
}
|
|
450
422
|
},
|
|
451
|
-
externProtoDeclareElement
|
|
423
|
+
externProtoDeclareElement (xmlElement)
|
|
452
424
|
{
|
|
453
425
|
const name = xmlElement .getAttribute ("name");
|
|
454
426
|
|
|
@@ -477,7 +449,7 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
477
449
|
|
|
478
450
|
this .getExecutionContext () .updateExternProtoDeclaration (this .getExecutionContext () .getUniqueExternProtoName (name), existingExternProto);
|
|
479
451
|
}
|
|
480
|
-
catch
|
|
452
|
+
catch
|
|
481
453
|
{ }
|
|
482
454
|
|
|
483
455
|
this .getExecutionContext () .updateExternProtoDeclaration (name, externproto);
|
|
@@ -485,27 +457,23 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
485
457
|
this .addProtoName (name);
|
|
486
458
|
}
|
|
487
459
|
},
|
|
488
|
-
protoDeclareElement
|
|
460
|
+
protoDeclareElement (xmlElement)
|
|
489
461
|
{
|
|
490
|
-
|
|
462
|
+
const name = xmlElement .getAttribute ("name");
|
|
491
463
|
|
|
492
464
|
if (this .id (name))
|
|
493
465
|
{
|
|
494
|
-
|
|
495
|
-
proto = new X3DProtoDeclaration (this .getExecutionContext ()),
|
|
496
|
-
childNodes = xmlElement .childNodes;
|
|
466
|
+
const proto = new X3DProtoDeclaration (this .getExecutionContext ());
|
|
497
467
|
|
|
498
|
-
for (
|
|
468
|
+
for (const childNode of xmlElement .childNodes)
|
|
499
469
|
{
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
switch (child .nodeName)
|
|
470
|
+
switch (childNode .nodeName)
|
|
503
471
|
{
|
|
504
472
|
case "ProtoInterface":
|
|
505
473
|
case "PROTOINTERFACE":
|
|
506
474
|
{
|
|
507
475
|
this .pushParent (proto);
|
|
508
|
-
this .protoInterfaceElement (
|
|
476
|
+
this .protoInterfaceElement (childNode);
|
|
509
477
|
this .popParent ();
|
|
510
478
|
this .addProtoFieldNames (proto);
|
|
511
479
|
break;
|
|
@@ -517,11 +485,9 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
517
485
|
break;
|
|
518
486
|
}
|
|
519
487
|
|
|
520
|
-
for (
|
|
488
|
+
for (const childNode of xmlElement .childNodes)
|
|
521
489
|
{
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
switch (child .nodeName)
|
|
490
|
+
switch (childNode .nodeName)
|
|
525
491
|
{
|
|
526
492
|
case "ProtoBody":
|
|
527
493
|
case "PROTOBODY":
|
|
@@ -529,7 +495,7 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
529
495
|
this .pushPrototype (proto);
|
|
530
496
|
this .pushExecutionContext (proto .getBody ());
|
|
531
497
|
this .pushParent (proto);
|
|
532
|
-
this .protoBodyElement (
|
|
498
|
+
this .protoBodyElement (childNode);
|
|
533
499
|
this .popParent ();
|
|
534
500
|
this .popExecutionContext ();
|
|
535
501
|
this .popPrototype ();
|
|
@@ -550,7 +516,7 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
550
516
|
|
|
551
517
|
this .getExecutionContext () .updateProtoDeclaration (this .getExecutionContext () .getUniqueProtoName (name), existingProto);
|
|
552
518
|
}
|
|
553
|
-
catch
|
|
519
|
+
catch
|
|
554
520
|
{ }
|
|
555
521
|
|
|
556
522
|
this .getExecutionContext () .updateProtoDeclaration (name, proto);
|
|
@@ -558,14 +524,12 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
558
524
|
this .addProtoName (name);
|
|
559
525
|
}
|
|
560
526
|
},
|
|
561
|
-
protoInterfaceElement
|
|
527
|
+
protoInterfaceElement (xmlElement)
|
|
562
528
|
{
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
for (var i = 0; i < childNodes .length; ++ i)
|
|
566
|
-
this .protoInterfaceElementChild (childNodes [i]);
|
|
529
|
+
for (const childNode of xmlElement .childNodes)
|
|
530
|
+
this .protoInterfaceElementChild (childNode);
|
|
567
531
|
},
|
|
568
|
-
protoInterfaceElementChild
|
|
532
|
+
protoInterfaceElementChild (xmlElement)
|
|
569
533
|
{
|
|
570
534
|
switch (xmlElement .nodeName)
|
|
571
535
|
{
|
|
@@ -575,37 +539,34 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
575
539
|
return;
|
|
576
540
|
}
|
|
577
541
|
},
|
|
578
|
-
fieldElement
|
|
542
|
+
fieldElement (xmlElement)
|
|
579
543
|
{
|
|
580
544
|
try
|
|
581
545
|
{
|
|
582
546
|
if (this .getParents () .length === 0)
|
|
583
547
|
return;
|
|
584
548
|
|
|
585
|
-
|
|
549
|
+
const node = this .getParent ();
|
|
586
550
|
|
|
587
|
-
if (!
|
|
551
|
+
if (!(node instanceof X3DBaseNode))
|
|
588
552
|
return;
|
|
589
553
|
|
|
590
|
-
if (!
|
|
554
|
+
if (!node .canUserDefinedFields ())
|
|
591
555
|
return;
|
|
592
556
|
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
accessType = X3DConstants .initializeOnly;
|
|
597
|
-
|
|
598
|
-
var type = Fields [xmlElement .getAttribute ("type")];
|
|
557
|
+
const
|
|
558
|
+
accessType = AccessType [xmlElement .getAttribute ("accessType")] || X3DConstants .initializeOnly,
|
|
559
|
+
Field = Fields [xmlElement .getAttribute ("type")];
|
|
599
560
|
|
|
600
|
-
if (
|
|
561
|
+
if (!Field)
|
|
601
562
|
return;
|
|
602
563
|
|
|
603
|
-
|
|
564
|
+
const name = xmlElement .getAttribute ("name");
|
|
604
565
|
|
|
605
|
-
if (!
|
|
566
|
+
if (!this .id (name))
|
|
606
567
|
return;
|
|
607
568
|
|
|
608
|
-
|
|
569
|
+
const field = new Field ();
|
|
609
570
|
|
|
610
571
|
if (accessType & X3DConstants .initializeOnly)
|
|
611
572
|
{
|
|
@@ -620,24 +581,22 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
620
581
|
}
|
|
621
582
|
catch (error)
|
|
622
583
|
{
|
|
623
|
-
|
|
584
|
+
console .error (error);
|
|
624
585
|
}
|
|
625
586
|
},
|
|
626
|
-
protoBodyElement
|
|
587
|
+
protoBodyElement (xmlElement)
|
|
627
588
|
{
|
|
628
589
|
this .childrenElements (xmlElement);
|
|
629
590
|
},
|
|
630
|
-
isElement
|
|
591
|
+
isElement (xmlElement)
|
|
631
592
|
{
|
|
632
593
|
if (this .isInsideProtoDefinition ())
|
|
633
594
|
{
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
for (var i = 0; i < childNodes .length; ++ i)
|
|
637
|
-
this .isElementChild (childNodes [i]);
|
|
595
|
+
for (const childNode of xmlElement .childNodes)
|
|
596
|
+
this .isElementChild (childNode);
|
|
638
597
|
}
|
|
639
598
|
},
|
|
640
|
-
isElementChild
|
|
599
|
+
isElementChild (xmlElement)
|
|
641
600
|
{
|
|
642
601
|
switch (xmlElement .nodeName)
|
|
643
602
|
{
|
|
@@ -647,9 +606,9 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
647
606
|
return;
|
|
648
607
|
}
|
|
649
608
|
},
|
|
650
|
-
connectElement
|
|
609
|
+
connectElement (xmlElement)
|
|
651
610
|
{
|
|
652
|
-
|
|
611
|
+
const
|
|
653
612
|
nodeFieldName = xmlElement .getAttribute ("nodeField"),
|
|
654
613
|
protoFieldName = xmlElement .getAttribute ("protoField");
|
|
655
614
|
|
|
@@ -664,14 +623,14 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
664
623
|
if (this .getParents () .length === 0)
|
|
665
624
|
return;
|
|
666
625
|
|
|
667
|
-
|
|
626
|
+
const
|
|
668
627
|
node = this .getParent (),
|
|
669
628
|
proto = this .getPrototype ();
|
|
670
629
|
|
|
671
|
-
if (!
|
|
630
|
+
if (!(node instanceof X3DNode))
|
|
672
631
|
return;
|
|
673
632
|
|
|
674
|
-
|
|
633
|
+
const
|
|
675
634
|
nodeField = node .getField (nodeFieldName),
|
|
676
635
|
protoField = proto .getField (protoFieldName);
|
|
677
636
|
|
|
@@ -680,31 +639,31 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
680
639
|
if (protoField .isReference (nodeField .getAccessType ()))
|
|
681
640
|
nodeField .addReference (protoField);
|
|
682
641
|
else
|
|
683
|
-
throw new Error (
|
|
642
|
+
throw new Error (`Field '${nodeField .getName ()}' and '${protoField .getName ()}' in PROTO ${proto .getName ()} are incompatible as an IS mapping.`);
|
|
684
643
|
}
|
|
685
644
|
else
|
|
686
|
-
throw new Error (
|
|
645
|
+
throw new Error (`Field '${nodeField .getName ()}' and '${protoField .getName ()}' in PROTO ${this .proto .getName()} have different types.`);
|
|
687
646
|
}
|
|
688
647
|
catch (error)
|
|
689
648
|
{
|
|
690
|
-
console .warn (
|
|
649
|
+
console .warn (`XML Parser Error: Couldn't create IS reference. ${error .message}`);
|
|
691
650
|
}
|
|
692
651
|
},
|
|
693
|
-
protoInstanceElement
|
|
652
|
+
protoInstanceElement (xmlElement)
|
|
694
653
|
{
|
|
695
654
|
try
|
|
696
655
|
{
|
|
697
656
|
if (this .useAttribute (xmlElement))
|
|
698
657
|
return;
|
|
699
658
|
|
|
700
|
-
|
|
659
|
+
const name = xmlElement .getAttribute ("name");
|
|
701
660
|
|
|
702
661
|
if (this .id (name))
|
|
703
662
|
{
|
|
704
|
-
|
|
663
|
+
const node = this .getExecutionContext () .createProto (name, false);
|
|
705
664
|
|
|
706
|
-
if (!
|
|
707
|
-
throw new Error (
|
|
665
|
+
if (!node)
|
|
666
|
+
throw new Error (`Unknown proto or externproto type '${name}'.`);
|
|
708
667
|
|
|
709
668
|
///DOMIntegration: attach node to DOM xmlElement for access from DOM.
|
|
710
669
|
$.data (xmlElement, "node", node);
|
|
@@ -714,7 +673,7 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
714
673
|
this .pushParent (node);
|
|
715
674
|
this .childrenElements (xmlElement);
|
|
716
675
|
|
|
717
|
-
if (!
|
|
676
|
+
if (!this .isInsideProtoDefinition ())
|
|
718
677
|
node .setup ();
|
|
719
678
|
|
|
720
679
|
this .popParent ();
|
|
@@ -724,28 +683,28 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
724
683
|
{
|
|
725
684
|
console .warn ("XML Parser Error: ", error .message);
|
|
726
685
|
|
|
727
|
-
if (
|
|
686
|
+
if (DEVELOPMENT)
|
|
728
687
|
console .error (error);
|
|
729
688
|
}
|
|
730
689
|
},
|
|
731
|
-
fieldValueElement
|
|
690
|
+
fieldValueElement (xmlElement)
|
|
732
691
|
{
|
|
733
692
|
try
|
|
734
693
|
{
|
|
735
694
|
if (this .getParents () .length === 0)
|
|
736
695
|
return;
|
|
737
696
|
|
|
738
|
-
|
|
697
|
+
const
|
|
739
698
|
node = this .getParent (),
|
|
740
699
|
name = xmlElement .getAttribute ("name");
|
|
741
700
|
|
|
742
|
-
if (!
|
|
701
|
+
if (!(node instanceof X3DPrototypeInstance))
|
|
743
702
|
return;
|
|
744
703
|
|
|
745
|
-
if (!
|
|
704
|
+
if (!this .id (name))
|
|
746
705
|
return;
|
|
747
706
|
|
|
748
|
-
|
|
707
|
+
const
|
|
749
708
|
field = node .getField (name),
|
|
750
709
|
accessType = field .getAccessType ();
|
|
751
710
|
|
|
@@ -765,20 +724,18 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
765
724
|
}
|
|
766
725
|
catch (error)
|
|
767
726
|
{
|
|
768
|
-
console .warn (
|
|
727
|
+
console .warn (`XML Parser Error: Couldn't assign field value. ${error .message}`);
|
|
769
728
|
}
|
|
770
729
|
},
|
|
771
|
-
nodeElement
|
|
730
|
+
nodeElement (xmlElement)
|
|
772
731
|
{
|
|
773
732
|
try
|
|
774
733
|
{
|
|
775
734
|
if (this .useAttribute (xmlElement))
|
|
776
735
|
return;
|
|
777
736
|
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
if (!node)
|
|
781
|
-
node = this .getExecutionContext () .createProto (this .protoNameToCamelCase (xmlElement .nodeName), false);
|
|
737
|
+
const node = this .getExecutionContext () .createNode (this .nodeNameToCamelCase (xmlElement .nodeName), false)
|
|
738
|
+
?? this .getExecutionContext () .createProto (this .protoNameToCamelCase (xmlElement .nodeName), false);
|
|
782
739
|
|
|
783
740
|
if (!node)
|
|
784
741
|
throw new Error (`Unknown node type '${xmlElement .nodeName}', you probably have insufficient component/profile statements and/or an inappropriate specification version.`);
|
|
@@ -796,7 +753,7 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
796
753
|
this .nodeAttributes (xmlElement, node);
|
|
797
754
|
this .childrenElements (xmlElement);
|
|
798
755
|
|
|
799
|
-
if (!
|
|
756
|
+
if (!this .isInsideProtoDefinition ())
|
|
800
757
|
node .setup ();
|
|
801
758
|
|
|
802
759
|
this .popParent ();
|
|
@@ -811,10 +768,10 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
811
768
|
return;
|
|
812
769
|
}
|
|
813
770
|
|
|
814
|
-
if (
|
|
771
|
+
if (DEVELOPMENT)
|
|
815
772
|
console .error (error);
|
|
816
773
|
else
|
|
817
|
-
console .error (
|
|
774
|
+
console .error (`XML Parser Error: ${error .message}`);
|
|
818
775
|
}
|
|
819
776
|
},
|
|
820
777
|
scriptElement (element)
|
|
@@ -833,11 +790,11 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
833
790
|
element .appendChild (childNode);
|
|
834
791
|
}
|
|
835
792
|
},
|
|
836
|
-
routeElement
|
|
793
|
+
routeElement (xmlElement)
|
|
837
794
|
{
|
|
838
795
|
try
|
|
839
796
|
{
|
|
840
|
-
|
|
797
|
+
const
|
|
841
798
|
sourceNodeName = xmlElement .getAttribute ("fromNode"),
|
|
842
799
|
sourceField = xmlElement .getAttribute ("fromField"),
|
|
843
800
|
destinationNodeName = xmlElement .getAttribute ("toNode"),
|
|
@@ -855,7 +812,7 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
855
812
|
if (destinationField === null)
|
|
856
813
|
throw new Error ("Bad ROUTE statement: Expected toField attribute.");
|
|
857
814
|
|
|
858
|
-
|
|
815
|
+
const
|
|
859
816
|
executionContext = this .getExecutionContext (),
|
|
860
817
|
sourceNode = executionContext .getLocalNode (sourceNodeName),
|
|
861
818
|
destinationNode = executionContext .getLocalNode (destinationNodeName),
|
|
@@ -866,20 +823,20 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
866
823
|
}
|
|
867
824
|
catch (error)
|
|
868
825
|
{
|
|
869
|
-
console .warn (
|
|
826
|
+
console .warn (`XML Parser Error: ${error .message}`);
|
|
870
827
|
|
|
871
|
-
if (
|
|
828
|
+
if (DEVELOPMENT)
|
|
872
829
|
console .error (error);
|
|
873
830
|
}
|
|
874
831
|
},
|
|
875
|
-
importElement
|
|
832
|
+
importElement (xmlElement)
|
|
876
833
|
{
|
|
877
834
|
try
|
|
878
835
|
{
|
|
879
|
-
|
|
836
|
+
const
|
|
880
837
|
inlineNodeName = xmlElement .getAttribute ("inlineDEF"),
|
|
881
838
|
exportedNodeName = xmlElement .getAttribute ("importedDEF") || xmlElement .getAttribute ("exportedDEF"),
|
|
882
|
-
localNodeName = xmlElement .getAttribute ("AS");
|
|
839
|
+
localNodeName = xmlElement .getAttribute ("AS") || exportedNodeName;
|
|
883
840
|
|
|
884
841
|
if (inlineNodeName === null)
|
|
885
842
|
throw new Error ("Bad IMPORT statement: Expected inlineDEF attribute.");
|
|
@@ -887,19 +844,16 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
887
844
|
if (exportedNodeName === null)
|
|
888
845
|
throw new Error ("Bad IMPORT statement: Expected importedDEF attribute.");
|
|
889
846
|
|
|
890
|
-
|
|
891
|
-
localNodeName = exportedNodeName;
|
|
892
|
-
|
|
893
|
-
var inlineNode = this .getExecutionContext () .getNamedNode (inlineNodeName);
|
|
847
|
+
const inlineNode = this .getExecutionContext () .getNamedNode (inlineNodeName);
|
|
894
848
|
|
|
895
849
|
this .getExecutionContext () .updateImportedNode (inlineNode, exportedNodeName, localNodeName);
|
|
896
850
|
}
|
|
897
851
|
catch (error)
|
|
898
852
|
{
|
|
899
|
-
console .warn (
|
|
853
|
+
console .warn (`XML Parser Error: ${error .message}`);
|
|
900
854
|
}
|
|
901
855
|
},
|
|
902
|
-
exportElement
|
|
856
|
+
exportElement (xmlElement)
|
|
903
857
|
{
|
|
904
858
|
try
|
|
905
859
|
{
|
|
@@ -909,26 +863,23 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
909
863
|
return;
|
|
910
864
|
}
|
|
911
865
|
|
|
912
|
-
|
|
866
|
+
const
|
|
913
867
|
localNodeName = xmlElement .getAttribute ("localDEF"),
|
|
914
|
-
exportedNodeName = xmlElement .getAttribute ("AS");
|
|
868
|
+
exportedNodeName = xmlElement .getAttribute ("AS") || localNodeName;
|
|
915
869
|
|
|
916
870
|
if (localNodeName === null)
|
|
917
871
|
throw new Error ("Bad EXPORT statement: Expected localDEF attribute.");
|
|
918
872
|
|
|
919
|
-
|
|
920
|
-
exportedNodeName = localNodeName;
|
|
921
|
-
|
|
922
|
-
var localNode = this .getExecutionContext () .getLocalNode (localNodeName);
|
|
873
|
+
const localNode = this .getExecutionContext () .getLocalNode (localNodeName);
|
|
923
874
|
|
|
924
875
|
this .getScene () .updateExportedNode (exportedNodeName, localNode);
|
|
925
876
|
}
|
|
926
877
|
catch (error)
|
|
927
878
|
{
|
|
928
|
-
console .warn (
|
|
879
|
+
console .warn (`XML Parser Error: ${error .message}`);
|
|
929
880
|
}
|
|
930
881
|
},
|
|
931
|
-
cdataNode
|
|
882
|
+
cdataNode (xmlElement)
|
|
932
883
|
{
|
|
933
884
|
if (this .getParents () .length === 0)
|
|
934
885
|
return;
|
|
@@ -938,15 +889,15 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
938
889
|
if (node instanceof X3DNode)
|
|
939
890
|
node .getSourceText () ?.push (xmlElement .data);
|
|
940
891
|
},
|
|
941
|
-
useAttribute
|
|
892
|
+
useAttribute (xmlElement)
|
|
942
893
|
{
|
|
943
894
|
try
|
|
944
895
|
{
|
|
945
|
-
|
|
896
|
+
const name = xmlElement .getAttribute ("USE");
|
|
946
897
|
|
|
947
898
|
if (this .id (name))
|
|
948
899
|
{
|
|
949
|
-
|
|
900
|
+
const node = this .getExecutionContext () .getNamedNode (name);
|
|
950
901
|
|
|
951
902
|
this .addNode (xmlElement, node .getValue ());
|
|
952
903
|
return true;
|
|
@@ -954,26 +905,26 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
954
905
|
}
|
|
955
906
|
catch (error)
|
|
956
907
|
{
|
|
957
|
-
console .warn (
|
|
908
|
+
console .warn (`Invalid USE name: ${error .message}`);
|
|
958
909
|
}
|
|
959
910
|
|
|
960
911
|
return false;
|
|
961
912
|
},
|
|
962
|
-
defAttribute
|
|
913
|
+
defAttribute (xmlElement, node)
|
|
963
914
|
{
|
|
964
915
|
try
|
|
965
916
|
{
|
|
966
|
-
|
|
917
|
+
const name = xmlElement .getAttribute ("DEF");
|
|
967
918
|
|
|
968
919
|
if (name)
|
|
969
920
|
{
|
|
970
921
|
try
|
|
971
922
|
{
|
|
972
|
-
|
|
923
|
+
const namedNode = this .getExecutionContext () .getNamedNode (name);
|
|
973
924
|
|
|
974
925
|
this .getExecutionContext () .updateNamedNode (this .getExecutionContext () .getUniqueName (name), namedNode);
|
|
975
926
|
}
|
|
976
|
-
catch
|
|
927
|
+
catch
|
|
977
928
|
{ }
|
|
978
929
|
|
|
979
930
|
this .getExecutionContext () .updateNamedNode (name, node);
|
|
@@ -981,21 +932,19 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
981
932
|
}
|
|
982
933
|
catch (error)
|
|
983
934
|
{
|
|
984
|
-
console .warn (
|
|
935
|
+
console .warn (`Invalid DEF name: ${error .message}`);
|
|
985
936
|
}
|
|
986
937
|
},
|
|
987
|
-
nodeAttributes
|
|
938
|
+
nodeAttributes (xmlElement, node)
|
|
988
939
|
{
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
for (var i = 0; i < xmlAttributes .length; ++ i)
|
|
992
|
-
this .nodeAttribute (xmlAttributes [i], node);
|
|
940
|
+
for (const xmlAttribute of xmlElement .attributes)
|
|
941
|
+
this .nodeAttribute (xmlAttribute, node);
|
|
993
942
|
},
|
|
994
|
-
nodeAttribute
|
|
943
|
+
nodeAttribute (xmlAttribute, node)
|
|
995
944
|
{
|
|
996
945
|
try
|
|
997
946
|
{
|
|
998
|
-
const field = node .
|
|
947
|
+
const field = node .getPredefinedField (this .attributeToCamelCase (node, xmlAttribute .name));
|
|
999
948
|
|
|
1000
949
|
if (field .isInitializable ())
|
|
1001
950
|
this .fieldValue (field, xmlAttribute .value);
|
|
@@ -1005,7 +954,7 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
1005
954
|
//console .error (error);
|
|
1006
955
|
}
|
|
1007
956
|
},
|
|
1008
|
-
fieldValue
|
|
957
|
+
fieldValue (field, value)
|
|
1009
958
|
{
|
|
1010
959
|
if (value === null)
|
|
1011
960
|
return;
|
|
@@ -1013,11 +962,11 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
1013
962
|
this .parser .pushExecutionContext (this .getExecutionContext ());
|
|
1014
963
|
|
|
1015
964
|
this .parser .setInput (value);
|
|
1016
|
-
this
|
|
965
|
+
this [field .getType ()] .call (this .parser, field, field .getUnit ());
|
|
1017
966
|
|
|
1018
967
|
this .parser .popExecutionContext ();
|
|
1019
968
|
},
|
|
1020
|
-
id
|
|
969
|
+
id (string)
|
|
1021
970
|
{
|
|
1022
971
|
if (string === null)
|
|
1023
972
|
return false;
|
|
@@ -1027,23 +976,23 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
1027
976
|
|
|
1028
977
|
return true;
|
|
1029
978
|
},
|
|
1030
|
-
getParents
|
|
979
|
+
getParents ()
|
|
1031
980
|
{
|
|
1032
981
|
return this .parents;
|
|
1033
982
|
},
|
|
1034
|
-
getParent
|
|
983
|
+
getParent ()
|
|
1035
984
|
{
|
|
1036
985
|
return this .parents .at (-1);
|
|
1037
986
|
},
|
|
1038
|
-
pushParent
|
|
987
|
+
pushParent (parent)
|
|
1039
988
|
{
|
|
1040
989
|
return this .parents .push (parent);
|
|
1041
990
|
},
|
|
1042
|
-
popParent
|
|
991
|
+
popParent ()
|
|
1043
992
|
{
|
|
1044
993
|
this .parents .pop ();
|
|
1045
994
|
},
|
|
1046
|
-
addNode
|
|
995
|
+
addNode (xmlElement, node)
|
|
1047
996
|
{
|
|
1048
997
|
if (this .parents .length === 0 || this .getParent () instanceof X3DProtoDeclaration)
|
|
1049
998
|
{
|
|
@@ -1051,7 +1000,7 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
1051
1000
|
return;
|
|
1052
1001
|
}
|
|
1053
1002
|
|
|
1054
|
-
|
|
1003
|
+
const parent = this .getParent ();
|
|
1055
1004
|
|
|
1056
1005
|
if (parent instanceof X3DField)
|
|
1057
1006
|
{
|
|
@@ -1073,17 +1022,12 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
1073
1022
|
|
|
1074
1023
|
try
|
|
1075
1024
|
{
|
|
1076
|
-
|
|
1025
|
+
const containerField = xmlElement .getAttribute ("containerField") || node ?.getContainerField ();
|
|
1077
1026
|
|
|
1078
|
-
if (!
|
|
1079
|
-
|
|
1080
|
-
if (node)
|
|
1081
|
-
containerField = node .getContainerField ();
|
|
1082
|
-
else
|
|
1083
|
-
throw new Error ("NULL node must have a container field attribute.");
|
|
1084
|
-
}
|
|
1027
|
+
if (!containerField)
|
|
1028
|
+
throw new Error ("Node must have a container field attribute.");
|
|
1085
1029
|
|
|
1086
|
-
|
|
1030
|
+
const field = parent .getField (containerField);
|
|
1087
1031
|
|
|
1088
1032
|
switch (field .getType ())
|
|
1089
1033
|
{
|
|
@@ -1098,78 +1042,80 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
1098
1042
|
}
|
|
1099
1043
|
catch (error)
|
|
1100
1044
|
{
|
|
1101
|
-
//console .
|
|
1045
|
+
// console .error (error);
|
|
1102
1046
|
}
|
|
1103
1047
|
},
|
|
1104
1048
|
// Overloaded by HTMLParser.
|
|
1105
|
-
addProtoName
|
|
1049
|
+
addProtoName (name)
|
|
1106
1050
|
{ },
|
|
1107
|
-
addProtoFieldNames
|
|
1051
|
+
addProtoFieldNames (protoNode)
|
|
1108
1052
|
{ },
|
|
1109
|
-
protoNameToCamelCase
|
|
1053
|
+
protoNameToCamelCase (typeName)
|
|
1110
1054
|
{
|
|
1111
1055
|
return typeName;
|
|
1112
1056
|
},
|
|
1113
|
-
nodeNameToCamelCase
|
|
1057
|
+
nodeNameToCamelCase (typeName)
|
|
1114
1058
|
{
|
|
1115
1059
|
return typeName;
|
|
1116
1060
|
},
|
|
1117
|
-
attributeToCamelCase
|
|
1061
|
+
attributeToCamelCase (node, name)
|
|
1118
1062
|
{
|
|
1119
1063
|
return name;
|
|
1120
1064
|
},
|
|
1121
1065
|
});
|
|
1122
1066
|
|
|
1123
|
-
XMLParser .prototype
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1067
|
+
Object .assign (XMLParser .prototype,
|
|
1068
|
+
{
|
|
1069
|
+
[X3DConstants .SFBool]: VRMLParser .prototype .sfboolValue,
|
|
1070
|
+
[X3DConstants .SFColor]: VRMLParser .prototype .sfcolorValue,
|
|
1071
|
+
[X3DConstants .SFColorRGBA]: VRMLParser .prototype .sfcolorrgbaValue,
|
|
1072
|
+
[X3DConstants .SFDouble]: VRMLParser .prototype .sfdoubleValue,
|
|
1073
|
+
[X3DConstants .SFFloat]: VRMLParser .prototype .sfdoubleValue,
|
|
1074
|
+
[X3DConstants .SFImage]: VRMLParser .prototype .sfimageValue,
|
|
1075
|
+
[X3DConstants .SFInt32]: VRMLParser .prototype .sfint32Value,
|
|
1076
|
+
[X3DConstants .SFMatrix3f]: VRMLParser .prototype .sfmatrix3Value,
|
|
1077
|
+
[X3DConstants .SFMatrix3d]: VRMLParser .prototype .sfmatrix3Value,
|
|
1078
|
+
[X3DConstants .SFMatrix4f]: VRMLParser .prototype .sfmatrix4Value,
|
|
1079
|
+
[X3DConstants .SFMatrix4d]: VRMLParser .prototype .sfmatrix4Value,
|
|
1080
|
+
[X3DConstants .SFNode] (field) { field .setValue (null); },
|
|
1081
|
+
[X3DConstants .SFRotation]: VRMLParser .prototype .sfrotationValue,
|
|
1082
|
+
[X3DConstants .SFString] (field) { field .setValue (Fields .SFString .unescape (this .input)); },
|
|
1083
|
+
[X3DConstants .SFTime]: VRMLParser .prototype .sfdoubleValue,
|
|
1084
|
+
[X3DConstants .SFVec2d]: VRMLParser .prototype .sfvec2Value,
|
|
1085
|
+
[X3DConstants .SFVec2f]: VRMLParser .prototype .sfvec2Value,
|
|
1086
|
+
[X3DConstants .SFVec3d]: VRMLParser .prototype .sfvec3Value,
|
|
1087
|
+
[X3DConstants .SFVec3f]: VRMLParser .prototype .sfvec3Value,
|
|
1088
|
+
[X3DConstants .SFVec4d]: VRMLParser .prototype .sfvec4Value,
|
|
1089
|
+
[X3DConstants .SFVec4f]: VRMLParser .prototype .sfvec4Value,
|
|
1090
|
+
|
|
1091
|
+
[X3DConstants .MFBool]: VRMLParser .prototype .sfboolValues,
|
|
1092
|
+
[X3DConstants .MFColor]: VRMLParser .prototype .sfcolorValues,
|
|
1093
|
+
[X3DConstants .MFColorRGBA]: VRMLParser .prototype .sfcolorrgbaValues,
|
|
1094
|
+
[X3DConstants .MFDouble]: VRMLParser .prototype .sfdoubleValues,
|
|
1095
|
+
[X3DConstants .MFFloat]: VRMLParser .prototype .sfdoubleValues,
|
|
1096
|
+
[X3DConstants .MFImage]: VRMLParser .prototype .sfimageValues,
|
|
1097
|
+
[X3DConstants .MFInt32]: VRMLParser .prototype .sfint32Values,
|
|
1098
|
+
[X3DConstants .MFMatrix3d]: VRMLParser .prototype .sfmatrix3Values,
|
|
1099
|
+
[X3DConstants .MFMatrix3f]: VRMLParser .prototype .sfmatrix3Values,
|
|
1100
|
+
[X3DConstants .MFMatrix4d]: VRMLParser .prototype .sfmatrix4Values,
|
|
1101
|
+
[X3DConstants .MFMatrix4f]: VRMLParser .prototype .sfmatrix4Values,
|
|
1102
|
+
[X3DConstants .MFNode] (field) { field .length = 0; },
|
|
1103
|
+
[X3DConstants .MFRotation]: VRMLParser .prototype .sfrotationValues,
|
|
1104
|
+
[X3DConstants .MFString]: VRMLParser .prototype .sfstringValues,
|
|
1105
|
+
[X3DConstants .MFTime]: VRMLParser .prototype .sfdoubleValues,
|
|
1106
|
+
[X3DConstants .MFVec2d]: VRMLParser .prototype .sfvec2Values,
|
|
1107
|
+
[X3DConstants .MFVec2f]: VRMLParser .prototype .sfvec2Values,
|
|
1108
|
+
[X3DConstants .MFVec3d]: VRMLParser .prototype .sfvec3Values,
|
|
1109
|
+
[X3DConstants .MFVec3f]: VRMLParser .prototype .sfvec3Values,
|
|
1110
|
+
[X3DConstants .MFVec4d]: VRMLParser .prototype .sfvec4Values,
|
|
1111
|
+
[X3DConstants .MFVec4f]: VRMLParser .prototype .sfvec4Values,
|
|
1112
|
+
});
|
|
1167
1113
|
|
|
1168
1114
|
// HTML Support
|
|
1169
1115
|
|
|
1170
1116
|
const HTMLParser =
|
|
1171
1117
|
{
|
|
1172
|
-
addProtoName
|
|
1118
|
+
addProtoName (name)
|
|
1173
1119
|
{
|
|
1174
1120
|
//DOMIntegration: add uppercase versions of proto name.
|
|
1175
1121
|
|
|
@@ -1209,17 +1155,17 @@ const HTMLParser =
|
|
|
1209
1155
|
}
|
|
1210
1156
|
};
|
|
1211
1157
|
})(),
|
|
1212
|
-
protoNameToCamelCase
|
|
1158
|
+
protoNameToCamelCase (typeName)
|
|
1213
1159
|
{
|
|
1214
1160
|
//DOMIntegration: handle uppercase versions of node names.
|
|
1215
1161
|
return this .protoNames .get (typeName);
|
|
1216
1162
|
},
|
|
1217
|
-
nodeNameToCamelCase
|
|
1163
|
+
nodeNameToCamelCase (typeName)
|
|
1218
1164
|
{
|
|
1219
1165
|
//DOMIntegration: handle uppercase versions of node names.
|
|
1220
1166
|
return HTMLSupport .getNodeTypeName (typeName);
|
|
1221
1167
|
},
|
|
1222
|
-
attributeToCamelCase
|
|
1168
|
+
attributeToCamelCase (node, name)
|
|
1223
1169
|
{
|
|
1224
1170
|
//DOMIntegration: handle lowercase versions of field names.
|
|
1225
1171
|
|