x_ite 8.7.9 → 8.8.1
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 +61527 -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 +218 -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
|
@@ -45,10 +45,9 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
import X3DField
|
|
49
|
-
import ArrayFields
|
|
50
|
-
import
|
|
51
|
-
import Algorithm from "../../standard/Math/Algorithm.js";
|
|
48
|
+
import X3DField from "../Base/X3DField.js";
|
|
49
|
+
import ArrayFields from "./ArrayFields.js";
|
|
50
|
+
import Algorithm from "../../standard/Math/Algorithm.js";
|
|
52
51
|
|
|
53
52
|
const MFInt32 = ArrayFields .MFInt32;
|
|
54
53
|
|
|
@@ -66,70 +65,69 @@ function Image (width, height, comp, array)
|
|
|
66
65
|
this .array .length = this .width * this .height;
|
|
67
66
|
}
|
|
68
67
|
|
|
69
|
-
Image .prototype
|
|
68
|
+
Object .assign (Image .prototype,
|
|
70
69
|
{
|
|
71
|
-
|
|
72
|
-
copy: function ()
|
|
70
|
+
copy ()
|
|
73
71
|
{
|
|
74
72
|
return new Image (this .width, this .height, this .comp, this .array);
|
|
75
73
|
},
|
|
76
|
-
equals
|
|
74
|
+
equals (image)
|
|
77
75
|
{
|
|
78
76
|
return this .width === image .width &&
|
|
79
77
|
this .height === image .height &&
|
|
80
78
|
this .comp === image .comp &&
|
|
81
79
|
this .array .equals (image .array);
|
|
82
80
|
},
|
|
83
|
-
assign
|
|
81
|
+
assign (image)
|
|
84
82
|
{
|
|
85
83
|
this .width = image .width;
|
|
86
84
|
this .height = image .height;
|
|
87
85
|
this .comp = image .comp;
|
|
88
86
|
this .array .assign (image .array);
|
|
89
87
|
},
|
|
90
|
-
set
|
|
88
|
+
set (width, height, comp, array)
|
|
91
89
|
{
|
|
92
90
|
this .width = width|0;
|
|
93
91
|
this .height = height|0;
|
|
94
92
|
this .comp = comp|0;
|
|
95
93
|
this .array .assign (array);
|
|
96
94
|
},
|
|
97
|
-
setWidth
|
|
95
|
+
setWidth (value)
|
|
98
96
|
{
|
|
99
97
|
this .width = Math .max (value|0, 0);
|
|
100
98
|
this .array .length = this .width * this .height;
|
|
101
99
|
},
|
|
102
|
-
getWidth
|
|
100
|
+
getWidth ()
|
|
103
101
|
{
|
|
104
102
|
return this .width;
|
|
105
103
|
},
|
|
106
|
-
setHeight
|
|
104
|
+
setHeight (value)
|
|
107
105
|
{
|
|
108
106
|
this .height = Math .max (value|0, 0);
|
|
109
107
|
this .array .length = this .width * this .height;
|
|
110
108
|
},
|
|
111
|
-
getHeight
|
|
109
|
+
getHeight ()
|
|
112
110
|
{
|
|
113
111
|
return this .height;
|
|
114
112
|
},
|
|
115
|
-
setComp
|
|
113
|
+
setComp (value)
|
|
116
114
|
{
|
|
117
115
|
this .comp = Algorithm .clamp (value|0, 0, 4);
|
|
118
116
|
},
|
|
119
|
-
getComp
|
|
117
|
+
getComp ()
|
|
120
118
|
{
|
|
121
119
|
return this .comp;
|
|
122
120
|
},
|
|
123
|
-
setArray
|
|
121
|
+
setArray (value)
|
|
124
122
|
{
|
|
125
123
|
this .array .setValue (value);
|
|
126
124
|
this .array .length = this .width * this .height;
|
|
127
125
|
},
|
|
128
|
-
getArray
|
|
126
|
+
getArray ()
|
|
129
127
|
{
|
|
130
128
|
return this .array;
|
|
131
129
|
},
|
|
132
|
-
};
|
|
130
|
+
});
|
|
133
131
|
|
|
134
132
|
/*
|
|
135
133
|
* SFImage
|
|
@@ -144,15 +142,19 @@ function SFImage (width, height, comp, array)
|
|
|
144
142
|
case 0:
|
|
145
143
|
X3DField .call (this, new Image (0, 0, 0, new MFInt32 ()));
|
|
146
144
|
break;
|
|
145
|
+
|
|
147
146
|
case 1:
|
|
148
147
|
X3DField .call (this, arguments [0]);
|
|
149
148
|
break;
|
|
149
|
+
|
|
150
150
|
case 3:
|
|
151
151
|
X3DField .call (this, new Image (width, height, comp, new MFInt32 ()));
|
|
152
152
|
break;
|
|
153
|
+
|
|
153
154
|
case 4:
|
|
154
155
|
X3DField .call (this, new Image (width, height, comp, array));
|
|
155
156
|
break;
|
|
157
|
+
|
|
156
158
|
default:
|
|
157
159
|
throw new Error ("Invalid arguments.");
|
|
158
160
|
}
|
|
@@ -161,48 +163,39 @@ function SFImage (width, height, comp, array)
|
|
|
161
163
|
this .addInterest (_set_size, this);
|
|
162
164
|
}
|
|
163
165
|
|
|
164
|
-
|
|
166
|
+
Object .assign (Object .setPrototypeOf (SFImage .prototype, X3DField .prototype),
|
|
165
167
|
{
|
|
166
|
-
|
|
167
|
-
[_set_size]: function ()
|
|
168
|
+
[_set_size] ()
|
|
168
169
|
{
|
|
169
170
|
this .getValue () .getArray () .length = this .width * this .height;
|
|
170
171
|
},
|
|
171
|
-
[Symbol .iterator]
|
|
172
|
+
*[Symbol .iterator] ()
|
|
172
173
|
{
|
|
173
174
|
yield this .width;
|
|
174
175
|
yield this .height;
|
|
175
176
|
yield this .comp;
|
|
176
177
|
yield this .array;
|
|
177
178
|
},
|
|
178
|
-
copy
|
|
179
|
+
copy ()
|
|
179
180
|
{
|
|
180
181
|
return new SFImage (this .getValue () .copy ());
|
|
181
182
|
},
|
|
182
|
-
equals
|
|
183
|
+
equals (image)
|
|
183
184
|
{
|
|
184
185
|
return this .getValue () .equals (image .getValue ());
|
|
185
186
|
},
|
|
186
|
-
isDefaultValue
|
|
187
|
+
isDefaultValue ()
|
|
187
188
|
{
|
|
188
189
|
return (
|
|
189
190
|
this .width === 0 &&
|
|
190
191
|
this .height === 0 &&
|
|
191
192
|
this .comp === 0);
|
|
192
193
|
},
|
|
193
|
-
set
|
|
194
|
+
set (image)
|
|
194
195
|
{
|
|
195
196
|
this .getValue () .assign (image);
|
|
196
197
|
},
|
|
197
|
-
|
|
198
|
-
{
|
|
199
|
-
return "SFImage";
|
|
200
|
-
},
|
|
201
|
-
getType: function ()
|
|
202
|
-
{
|
|
203
|
-
return X3DConstants .SFImage;
|
|
204
|
-
},
|
|
205
|
-
toStream: function (generator)
|
|
198
|
+
toStream (generator)
|
|
206
199
|
{
|
|
207
200
|
const array = this .array;
|
|
208
201
|
|
|
@@ -236,15 +229,15 @@ SFImage .prototype = Object .assign (Object .create (X3DField .prototype),
|
|
|
236
229
|
|
|
237
230
|
generator .DecIndent ();
|
|
238
231
|
},
|
|
239
|
-
toVRMLStream
|
|
232
|
+
toVRMLStream (generator)
|
|
240
233
|
{
|
|
241
234
|
this .toStream (generator);
|
|
242
235
|
},
|
|
243
|
-
toXMLStream
|
|
236
|
+
toXMLStream (generator)
|
|
244
237
|
{
|
|
245
238
|
this .toStream (generator);
|
|
246
239
|
},
|
|
247
|
-
toJSONStream
|
|
240
|
+
toJSONStream (generator)
|
|
248
241
|
{
|
|
249
242
|
generator .string += '[';
|
|
250
243
|
generator .string += generator .ListBreak ();
|
|
@@ -258,7 +251,7 @@ SFImage .prototype = Object .assign (Object .create (X3DField .prototype),
|
|
|
258
251
|
generator .string += generator .ListIndent ();
|
|
259
252
|
generator .string += ']';
|
|
260
253
|
},
|
|
261
|
-
toJSONStreamValue
|
|
254
|
+
toJSONStreamValue (generator)
|
|
262
255
|
{
|
|
263
256
|
const
|
|
264
257
|
array = this .array,
|
|
@@ -308,11 +301,11 @@ for (const key of Reflect .ownKeys (SFImage .prototype))
|
|
|
308
301
|
Object .defineProperty (SFImage .prototype, key, { enumerable: false });
|
|
309
302
|
|
|
310
303
|
const width = {
|
|
311
|
-
get
|
|
304
|
+
get ()
|
|
312
305
|
{
|
|
313
306
|
return this .getValue () .getWidth ();
|
|
314
307
|
},
|
|
315
|
-
set
|
|
308
|
+
set (value)
|
|
316
309
|
{
|
|
317
310
|
this .getValue () .setWidth (value);
|
|
318
311
|
this .addEvent ();
|
|
@@ -320,11 +313,11 @@ const width = {
|
|
|
320
313
|
};
|
|
321
314
|
|
|
322
315
|
const height = {
|
|
323
|
-
get
|
|
316
|
+
get ()
|
|
324
317
|
{
|
|
325
318
|
return this .getValue () .getHeight ();
|
|
326
319
|
},
|
|
327
|
-
set
|
|
320
|
+
set (value)
|
|
328
321
|
{
|
|
329
322
|
this .getValue () .setHeight (value);
|
|
330
323
|
this .addEvent ();
|
|
@@ -332,11 +325,11 @@ const height = {
|
|
|
332
325
|
};
|
|
333
326
|
|
|
334
327
|
const comp = {
|
|
335
|
-
get
|
|
328
|
+
get ()
|
|
336
329
|
{
|
|
337
330
|
return this .getValue () .getComp ();
|
|
338
331
|
},
|
|
339
|
-
set
|
|
332
|
+
set (value)
|
|
340
333
|
{
|
|
341
334
|
this .getValue () .setComp (value);
|
|
342
335
|
this .addEvent ();
|
|
@@ -344,11 +337,11 @@ const comp = {
|
|
|
344
337
|
};
|
|
345
338
|
|
|
346
339
|
const array = {
|
|
347
|
-
get
|
|
340
|
+
get ()
|
|
348
341
|
{
|
|
349
342
|
return this .getValue () .getArray ();
|
|
350
343
|
},
|
|
351
|
-
set
|
|
344
|
+
set (value)
|
|
352
345
|
{
|
|
353
346
|
this .getValue () .setArray (value);
|
|
354
347
|
this .addEvent ();
|
|
@@ -365,4 +358,13 @@ Object .defineProperties (SFImage .prototype,
|
|
|
365
358
|
array: Object .assign ({ enumerable: true }, array),
|
|
366
359
|
});
|
|
367
360
|
|
|
361
|
+
Object .defineProperties (SFImage,
|
|
362
|
+
{
|
|
363
|
+
typeName:
|
|
364
|
+
{
|
|
365
|
+
value: "SFImage",
|
|
366
|
+
enumerable: true,
|
|
367
|
+
},
|
|
368
|
+
});
|
|
369
|
+
|
|
368
370
|
export default SFImage;
|
|
@@ -45,55 +45,45 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
import X3DField
|
|
49
|
-
import X3DConstants from "../Base/X3DConstants.js";
|
|
48
|
+
import X3DField from "../Base/X3DField.js";
|
|
50
49
|
|
|
51
50
|
function SFInt32 (value)
|
|
52
51
|
{
|
|
53
|
-
|
|
52
|
+
X3DField .call (this, value|0);
|
|
54
53
|
}
|
|
55
54
|
|
|
56
|
-
|
|
55
|
+
Object .assign (Object .setPrototypeOf (SFInt32 .prototype, X3DField .prototype),
|
|
57
56
|
{
|
|
58
|
-
|
|
59
|
-
copy: function ()
|
|
57
|
+
copy ()
|
|
60
58
|
{
|
|
61
59
|
return new SFInt32 (this .getValue ());
|
|
62
60
|
},
|
|
63
|
-
|
|
64
|
-
{
|
|
65
|
-
return "SFInt32";
|
|
66
|
-
},
|
|
67
|
-
getType: function ()
|
|
68
|
-
{
|
|
69
|
-
return X3DConstants .SFInt32;
|
|
70
|
-
},
|
|
71
|
-
isDefaultValue: function ()
|
|
61
|
+
isDefaultValue ()
|
|
72
62
|
{
|
|
73
63
|
return this .getValue () === 0;
|
|
74
64
|
},
|
|
75
|
-
set
|
|
65
|
+
set (value)
|
|
76
66
|
{
|
|
77
67
|
X3DField .prototype .set .call (this, value|0);
|
|
78
68
|
},
|
|
79
69
|
valueOf: X3DField .prototype .getValue,
|
|
80
|
-
toStream
|
|
70
|
+
toStream (generator)
|
|
81
71
|
{
|
|
82
72
|
generator .string += this .getValue () .toString ();
|
|
83
73
|
},
|
|
84
|
-
toVRMLStream
|
|
74
|
+
toVRMLStream (generator)
|
|
85
75
|
{
|
|
86
76
|
this .toStream (generator);
|
|
87
77
|
},
|
|
88
|
-
toXMLStream
|
|
78
|
+
toXMLStream (generator)
|
|
89
79
|
{
|
|
90
80
|
this .toStream (generator);
|
|
91
81
|
},
|
|
92
|
-
toJSONStream
|
|
82
|
+
toJSONStream (generator)
|
|
93
83
|
{
|
|
94
84
|
this .toStream (generator);
|
|
95
85
|
},
|
|
96
|
-
toJSONStreamValue
|
|
86
|
+
toJSONStreamValue (generator)
|
|
97
87
|
{
|
|
98
88
|
this .toStream (generator);
|
|
99
89
|
},
|
|
@@ -102,4 +92,13 @@ SFInt32 .prototype = Object .assign (Object .create (X3DField .prototype),
|
|
|
102
92
|
for (const key of Reflect .ownKeys (SFInt32 .prototype))
|
|
103
93
|
Object .defineProperty (SFInt32 .prototype, key, { enumerable: false });
|
|
104
94
|
|
|
95
|
+
Object .defineProperties (SFInt32,
|
|
96
|
+
{
|
|
97
|
+
typeName:
|
|
98
|
+
{
|
|
99
|
+
value: "SFInt32",
|
|
100
|
+
enumerable: true,
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
|
|
105
104
|
export default SFInt32;
|
|
@@ -48,10 +48,9 @@
|
|
|
48
48
|
import X3DField from "../Base/X3DField.js";
|
|
49
49
|
import SFMatrixPrototypeTemplate from "./SFMatrixPrototypeTemplate.js";
|
|
50
50
|
import SFVec2 from "./SFVec2.js";
|
|
51
|
-
import X3DConstants from "../Base/X3DConstants.js";
|
|
52
51
|
import Matrix3 from "../../standard/Math/Numbers/Matrix3.js";
|
|
53
52
|
|
|
54
|
-
function SFMatrix3Template (TypeName,
|
|
53
|
+
function SFMatrix3Template (TypeName, SFVec2, double)
|
|
55
54
|
{
|
|
56
55
|
function SFMatrix3 (m00, m01, m02,
|
|
57
56
|
m10, m11, m12,
|
|
@@ -60,10 +59,12 @@ function SFMatrix3Template (TypeName, Type, SFVec2, double)
|
|
|
60
59
|
switch (arguments .length)
|
|
61
60
|
{
|
|
62
61
|
case 0:
|
|
63
|
-
|
|
62
|
+
X3DField .call (this, new Matrix3 ());
|
|
63
|
+
break;
|
|
64
64
|
|
|
65
65
|
case 1:
|
|
66
|
-
|
|
66
|
+
X3DField .call (this, arguments [0]);
|
|
67
|
+
break;
|
|
67
68
|
|
|
68
69
|
case 3:
|
|
69
70
|
{
|
|
@@ -72,22 +73,28 @@ function SFMatrix3Template (TypeName, Type, SFVec2, double)
|
|
|
72
73
|
r1 = arguments [1],
|
|
73
74
|
r2 = arguments [2];
|
|
74
75
|
|
|
75
|
-
|
|
76
|
+
X3DField .call (this, new Matrix3 (r0 .x, r0 .y, r0 .z,
|
|
76
77
|
r1 .x, r1 .y, r1 .z,
|
|
77
78
|
r2 .x, r2 .y, r2 .z));
|
|
79
|
+
|
|
80
|
+
break;
|
|
78
81
|
}
|
|
79
82
|
case 9:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
{
|
|
84
|
+
X3DField .call (this, new Matrix3 (+m00, +m01, +m02,
|
|
85
|
+
+m10, +m11, +m12,
|
|
86
|
+
+m20, +m21, +m22));
|
|
84
87
|
|
|
85
|
-
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
default:
|
|
91
|
+
throw new Error ("Invalid arguments.");
|
|
92
|
+
}
|
|
86
93
|
}
|
|
87
94
|
|
|
88
|
-
|
|
95
|
+
Object .assign (SFMatrixPrototypeTemplate (SFMatrix3, TypeName, Matrix3, SFVec2, double),
|
|
89
96
|
{
|
|
90
|
-
setTransform
|
|
97
|
+
setTransform (translation, rotation, scale, scaleOrientation, center)
|
|
91
98
|
{
|
|
92
99
|
translation = translation ? translation .getValue () : null;
|
|
93
100
|
rotation = rotation ? rotation : 0;
|
|
@@ -106,11 +113,11 @@ function SFMatrix3Template (TypeName, Type, SFVec2, double)
|
|
|
106
113
|
{
|
|
107
114
|
Object .defineProperty (SFMatrix3 .prototype, i,
|
|
108
115
|
{
|
|
109
|
-
get
|
|
116
|
+
get ()
|
|
110
117
|
{
|
|
111
118
|
return this .getValue () [i];
|
|
112
119
|
},
|
|
113
|
-
set
|
|
120
|
+
set (value)
|
|
114
121
|
{
|
|
115
122
|
this .getValue () [i] = +value;
|
|
116
123
|
this .addEvent ();
|
|
@@ -126,8 +133,8 @@ function SFMatrix3Template (TypeName, Type, SFVec2, double)
|
|
|
126
133
|
}
|
|
127
134
|
|
|
128
135
|
const SFMatrix3 = {
|
|
129
|
-
SFMatrix3d: SFMatrix3Template ("SFMatrix3d",
|
|
130
|
-
SFMatrix3f: SFMatrix3Template ("SFMatrix3f",
|
|
136
|
+
SFMatrix3d: SFMatrix3Template ("SFMatrix3d", SFVec2 .SFVec2d, true),
|
|
137
|
+
SFMatrix3f: SFMatrix3Template ("SFMatrix3f", SFVec2 .SFVec2f, false),
|
|
131
138
|
};
|
|
132
139
|
|
|
133
140
|
export default SFMatrix3;
|
|
@@ -48,10 +48,9 @@
|
|
|
48
48
|
import X3DField from "../Base/X3DField.js";
|
|
49
49
|
import SFMatrixPrototypeTemplate from "./SFMatrixPrototypeTemplate.js";
|
|
50
50
|
import SFVec3 from "./SFVec3.js";
|
|
51
|
-
import X3DConstants from "../Base/X3DConstants.js";
|
|
52
51
|
import Matrix4 from "../../standard/Math/Numbers/Matrix4.js";
|
|
53
52
|
|
|
54
|
-
function SFMatrix4Template (TypeName,
|
|
53
|
+
function SFMatrix4Template (TypeName, SFVec3, double)
|
|
55
54
|
{
|
|
56
55
|
function SFMatrix4 (m00, m01, m02, m03,
|
|
57
56
|
m10, m11, m12, m13,
|
|
@@ -61,10 +60,12 @@ function SFMatrix4Template (TypeName, Type, SFVec3, double)
|
|
|
61
60
|
switch (arguments .length)
|
|
62
61
|
{
|
|
63
62
|
case 0:
|
|
64
|
-
|
|
63
|
+
X3DField .call (this, new Matrix4 ());
|
|
64
|
+
break;
|
|
65
65
|
|
|
66
66
|
case 1:
|
|
67
|
-
|
|
67
|
+
X3DField .call (this, arguments [0]);
|
|
68
|
+
break;
|
|
68
69
|
|
|
69
70
|
case 4:
|
|
70
71
|
{
|
|
@@ -74,22 +75,28 @@ function SFMatrix4Template (TypeName, Type, SFVec3, double)
|
|
|
74
75
|
r2 = arguments [2],
|
|
75
76
|
r3 = arguments [3];
|
|
76
77
|
|
|
77
|
-
|
|
78
|
+
X3DField .call (this, new Matrix4 (r0 .x, r0 .y, r0 .z, r0 .w,
|
|
78
79
|
r1 .x, r1 .y, r1 .z, r1 .w,
|
|
79
80
|
r2 .x, r2 .y, r2 .z, r2 .w,
|
|
80
81
|
r3 .x, r3 .y, r3 .z, r3 .w));
|
|
82
|
+
|
|
83
|
+
break;
|
|
81
84
|
}
|
|
82
85
|
case 16:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
{
|
|
87
|
+
X3DField .call (this, new Matrix4 (+m00, +m01, +m02, +m03,
|
|
88
|
+
+m10, +m11, +m12, +m13,
|
|
89
|
+
+m20, +m21, +m22, +m23,
|
|
90
|
+
+m30, +m31, +m32, +m33));
|
|
88
91
|
|
|
89
|
-
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
default:
|
|
95
|
+
throw new Error ("Invalid arguments.");
|
|
96
|
+
}
|
|
90
97
|
}
|
|
91
98
|
|
|
92
|
-
|
|
99
|
+
SFMatrixPrototypeTemplate (SFMatrix4, TypeName, Matrix4, SFVec3, double);
|
|
93
100
|
|
|
94
101
|
for (const key of Reflect .ownKeys (SFMatrix4 .prototype))
|
|
95
102
|
Object .defineProperty (SFMatrix4 .prototype, key, { enumerable: false });
|
|
@@ -98,11 +105,11 @@ function SFMatrix4Template (TypeName, Type, SFVec3, double)
|
|
|
98
105
|
{
|
|
99
106
|
Object .defineProperty (SFMatrix4 .prototype, i,
|
|
100
107
|
{
|
|
101
|
-
get
|
|
108
|
+
get ()
|
|
102
109
|
{
|
|
103
110
|
return this .getValue () [i];
|
|
104
111
|
},
|
|
105
|
-
set
|
|
112
|
+
set (value)
|
|
106
113
|
{
|
|
107
114
|
this .getValue () [i] = value;
|
|
108
115
|
this .addEvent ();
|
|
@@ -118,9 +125,9 @@ function SFMatrix4Template (TypeName, Type, SFVec3, double)
|
|
|
118
125
|
}
|
|
119
126
|
|
|
120
127
|
const SFMatrix4 = {
|
|
121
|
-
SFMatrix4d: SFMatrix4Template ("SFMatrix4d",
|
|
122
|
-
SFMatrix4f: SFMatrix4Template ("SFMatrix4f",
|
|
123
|
-
VrmlMatrix: SFMatrix4Template ("VrmlMatrix",
|
|
128
|
+
SFMatrix4d: SFMatrix4Template ("SFMatrix4d", SFVec3 .SFVec3d, true),
|
|
129
|
+
SFMatrix4f: SFMatrix4Template ("SFMatrix4f", SFVec3 .SFVec3f, false),
|
|
130
|
+
VrmlMatrix: SFMatrix4Template ("VrmlMatrix", SFVec3 .SFVec3f, false),
|
|
124
131
|
};
|
|
125
132
|
|
|
126
133
|
export default SFMatrix4;
|
|
@@ -47,42 +47,42 @@
|
|
|
47
47
|
|
|
48
48
|
import X3DField from "../Base/X3DField.js";
|
|
49
49
|
|
|
50
|
-
function SFMatrixPrototypeTemplate (Constructor, TypeName,
|
|
50
|
+
function SFMatrixPrototypeTemplate (Constructor, TypeName, Matrix, SFVec, double)
|
|
51
51
|
{
|
|
52
52
|
const _formatter = double ? "DoubleFormat" : "FloatFormat";
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
Object .defineProperties (Constructor,
|
|
55
55
|
{
|
|
56
|
-
|
|
57
|
-
[Symbol .iterator]: function* ()
|
|
56
|
+
typeName:
|
|
58
57
|
{
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
getTypeName: function ()
|
|
62
|
-
{
|
|
63
|
-
return TypeName;
|
|
58
|
+
value: TypeName,
|
|
59
|
+
enumerable: true,
|
|
64
60
|
},
|
|
65
|
-
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
return Object .assign (Object .setPrototypeOf (Constructor .prototype, X3DField .prototype),
|
|
64
|
+
{
|
|
65
|
+
*[Symbol .iterator] ()
|
|
66
66
|
{
|
|
67
|
-
|
|
67
|
+
yield* this .getValue ();
|
|
68
68
|
},
|
|
69
|
-
copy
|
|
69
|
+
copy ()
|
|
70
70
|
{
|
|
71
71
|
return new (this .constructor) (this .getValue () .copy ());
|
|
72
72
|
},
|
|
73
|
-
equals
|
|
73
|
+
equals (matrix)
|
|
74
74
|
{
|
|
75
75
|
return this .getValue () .equals (matrix .getValue ());
|
|
76
76
|
},
|
|
77
|
-
isDefaultValue
|
|
77
|
+
isDefaultValue ()
|
|
78
78
|
{
|
|
79
79
|
return this .getValue () .equals (Matrix .Identity);
|
|
80
80
|
},
|
|
81
|
-
set
|
|
81
|
+
set (value)
|
|
82
82
|
{
|
|
83
83
|
this .getValue () .assign (value);
|
|
84
84
|
},
|
|
85
|
-
setTransform
|
|
85
|
+
setTransform (translation, rotation, scale, scaleOrientation, center)
|
|
86
86
|
{
|
|
87
87
|
translation = translation ? translation .getValue () : null;
|
|
88
88
|
rotation = rotation ? rotation .getValue () : null;
|
|
@@ -92,7 +92,7 @@ function SFMatrixPrototypeTemplate (Constructor, TypeName, Type, Matrix, SFVec,
|
|
|
92
92
|
|
|
93
93
|
this .getValue () .set (translation, rotation, scale, scaleOrientation, center);
|
|
94
94
|
},
|
|
95
|
-
getTransform
|
|
95
|
+
getTransform (translation, rotation, scale, scaleOrientation, center)
|
|
96
96
|
{
|
|
97
97
|
translation = translation ? translation .getValue () : null;
|
|
98
98
|
rotation = rotation ? rotation .getValue () : null;
|
|
@@ -102,43 +102,43 @@ function SFMatrixPrototypeTemplate (Constructor, TypeName, Type, Matrix, SFVec,
|
|
|
102
102
|
|
|
103
103
|
this .getValue () .get (translation, rotation, scale, scaleOrientation, center);
|
|
104
104
|
},
|
|
105
|
-
determinant
|
|
105
|
+
determinant ()
|
|
106
106
|
{
|
|
107
107
|
return this .getValue () .determinant ();
|
|
108
108
|
},
|
|
109
|
-
transpose
|
|
109
|
+
transpose ()
|
|
110
110
|
{
|
|
111
111
|
return new (this .constructor) (this .getValue () .copy () .transpose ());
|
|
112
112
|
},
|
|
113
|
-
inverse
|
|
113
|
+
inverse ()
|
|
114
114
|
{
|
|
115
115
|
return new (this .constructor) (this .getValue () .copy () .inverse ());
|
|
116
116
|
},
|
|
117
|
-
multLeft
|
|
117
|
+
multLeft (matrix)
|
|
118
118
|
{
|
|
119
119
|
return new (this .constructor) (this .getValue () .copy () .multLeft (matrix .getValue ()));
|
|
120
120
|
},
|
|
121
|
-
multRight
|
|
121
|
+
multRight (matrix)
|
|
122
122
|
{
|
|
123
123
|
return new (this .constructor) (this .getValue () .copy () .multRight (matrix .getValue ()));
|
|
124
124
|
},
|
|
125
|
-
multVecMatrix
|
|
125
|
+
multVecMatrix (vector)
|
|
126
126
|
{
|
|
127
127
|
return new SFVec (this .getValue () .multVecMatrix (vector .getValue () .copy ()));
|
|
128
128
|
},
|
|
129
|
-
multMatrixVec
|
|
129
|
+
multMatrixVec (vector)
|
|
130
130
|
{
|
|
131
131
|
return new SFVec (this .getValue () .multMatrixVec (vector .getValue () .copy ()));
|
|
132
132
|
},
|
|
133
|
-
multDirMatrix
|
|
133
|
+
multDirMatrix (vector)
|
|
134
134
|
{
|
|
135
135
|
return new SFVec (this .getValue () .multDirMatrix (vector .getValue () .copy ()));
|
|
136
136
|
},
|
|
137
|
-
multMatrixDir
|
|
137
|
+
multMatrixDir (vector)
|
|
138
138
|
{
|
|
139
139
|
return new SFVec (this .getValue () .multMatrixDir (vector .getValue () .copy ()));
|
|
140
140
|
},
|
|
141
|
-
toStream
|
|
141
|
+
toStream (generator)
|
|
142
142
|
{
|
|
143
143
|
const
|
|
144
144
|
value = this .getValue (),
|
|
@@ -152,15 +152,15 @@ function SFMatrixPrototypeTemplate (Constructor, TypeName, Type, Matrix, SFVec,
|
|
|
152
152
|
|
|
153
153
|
generator .string += generator [_formatter] (value [last]);
|
|
154
154
|
},
|
|
155
|
-
toVRMLStream
|
|
155
|
+
toVRMLStream (generator)
|
|
156
156
|
{
|
|
157
157
|
this .toStream (generator);
|
|
158
158
|
},
|
|
159
|
-
toXMLStream
|
|
159
|
+
toXMLStream (generator)
|
|
160
160
|
{
|
|
161
161
|
this .toStream (generator);
|
|
162
162
|
},
|
|
163
|
-
toJSONStream
|
|
163
|
+
toJSONStream (generator)
|
|
164
164
|
{
|
|
165
165
|
generator .string += '[';
|
|
166
166
|
generator .string += generator .TidySpace ();
|
|
@@ -170,7 +170,7 @@ function SFMatrixPrototypeTemplate (Constructor, TypeName, Type, Matrix, SFVec,
|
|
|
170
170
|
generator .string += generator .TidySpace ();
|
|
171
171
|
generator .string += ']';
|
|
172
172
|
},
|
|
173
|
-
toJSONStreamValue
|
|
173
|
+
toJSONStreamValue (generator)
|
|
174
174
|
{
|
|
175
175
|
const
|
|
176
176
|
value = this .getValue (),
|