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
|
@@ -54,16 +54,15 @@ function Vector3 (x, y, z)
|
|
|
54
54
|
this .z = z;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
Vector3 .prototype
|
|
57
|
+
Object .assign (Vector3 .prototype,
|
|
58
58
|
{
|
|
59
|
-
|
|
60
|
-
[Symbol .iterator]: function* ()
|
|
59
|
+
*[Symbol .iterator] ()
|
|
61
60
|
{
|
|
62
61
|
yield this .x;
|
|
63
62
|
yield this .y;
|
|
64
63
|
yield this .z;
|
|
65
64
|
},
|
|
66
|
-
copy
|
|
65
|
+
copy ()
|
|
67
66
|
{
|
|
68
67
|
const copy = Object .create (Vector3 .prototype);
|
|
69
68
|
copy .x = this .x;
|
|
@@ -71,83 +70,83 @@ Vector3 .prototype =
|
|
|
71
70
|
copy .z = this .z;
|
|
72
71
|
return copy;
|
|
73
72
|
},
|
|
74
|
-
assign
|
|
73
|
+
assign (vector)
|
|
75
74
|
{
|
|
76
75
|
this .x = vector .x;
|
|
77
76
|
this .y = vector .y;
|
|
78
77
|
this .z = vector .z;
|
|
79
78
|
return this;
|
|
80
79
|
},
|
|
81
|
-
set
|
|
80
|
+
set (x, y, z)
|
|
82
81
|
{
|
|
83
82
|
this .x = x;
|
|
84
83
|
this .y = y;
|
|
85
84
|
this .z = z;
|
|
86
85
|
return this;
|
|
87
86
|
},
|
|
88
|
-
equals
|
|
87
|
+
equals (vector)
|
|
89
88
|
{
|
|
90
89
|
return this .x === vector .x &&
|
|
91
90
|
this .y === vector .y &&
|
|
92
91
|
this .z === vector .z;
|
|
93
92
|
},
|
|
94
|
-
negate
|
|
93
|
+
negate ()
|
|
95
94
|
{
|
|
96
95
|
this .x = -this .x;
|
|
97
96
|
this .y = -this .y;
|
|
98
97
|
this .z = -this .z;
|
|
99
98
|
return this;
|
|
100
99
|
},
|
|
101
|
-
inverse
|
|
100
|
+
inverse ()
|
|
102
101
|
{
|
|
103
102
|
this .x = 1 / this .x;
|
|
104
103
|
this .y = 1 / this .y;
|
|
105
104
|
this .z = 1 / this .z;
|
|
106
105
|
return this;
|
|
107
106
|
},
|
|
108
|
-
add
|
|
107
|
+
add (vector)
|
|
109
108
|
{
|
|
110
109
|
this .x += vector .x;
|
|
111
110
|
this .y += vector .y;
|
|
112
111
|
this .z += vector .z;
|
|
113
112
|
return this;
|
|
114
113
|
},
|
|
115
|
-
subtract
|
|
114
|
+
subtract (vector)
|
|
116
115
|
{
|
|
117
116
|
this .x -= vector .x;
|
|
118
117
|
this .y -= vector .y;
|
|
119
118
|
this .z -= vector .z;
|
|
120
119
|
return this;
|
|
121
120
|
},
|
|
122
|
-
multiply
|
|
121
|
+
multiply (value)
|
|
123
122
|
{
|
|
124
123
|
this .x *= value;
|
|
125
124
|
this .y *= value;
|
|
126
125
|
this .z *= value;
|
|
127
126
|
return this;
|
|
128
127
|
},
|
|
129
|
-
multVec
|
|
128
|
+
multVec (vector)
|
|
130
129
|
{
|
|
131
130
|
this .x *= vector .x;
|
|
132
131
|
this .y *= vector .y;
|
|
133
132
|
this .z *= vector .z;
|
|
134
133
|
return this;
|
|
135
134
|
},
|
|
136
|
-
divide
|
|
135
|
+
divide (value)
|
|
137
136
|
{
|
|
138
137
|
this .x /= value;
|
|
139
138
|
this .y /= value;
|
|
140
139
|
this .z /= value;
|
|
141
140
|
return this;
|
|
142
141
|
},
|
|
143
|
-
divVec
|
|
142
|
+
divVec (vector)
|
|
144
143
|
{
|
|
145
144
|
this .x /= vector .x;
|
|
146
145
|
this .y /= vector .y;
|
|
147
146
|
this .z /= vector .z;
|
|
148
147
|
return this;
|
|
149
148
|
},
|
|
150
|
-
cross
|
|
149
|
+
cross (vector)
|
|
151
150
|
{
|
|
152
151
|
const
|
|
153
152
|
{ x: ax, y: ay, z: az } = this,
|
|
@@ -159,7 +158,7 @@ Vector3 .prototype =
|
|
|
159
158
|
|
|
160
159
|
return this;
|
|
161
160
|
},
|
|
162
|
-
normalize
|
|
161
|
+
normalize ()
|
|
163
162
|
{
|
|
164
163
|
const length = Math .hypot (this .x, this .y, this .z);
|
|
165
164
|
|
|
@@ -172,13 +171,13 @@ Vector3 .prototype =
|
|
|
172
171
|
|
|
173
172
|
return this;
|
|
174
173
|
},
|
|
175
|
-
dot
|
|
174
|
+
dot (vector)
|
|
176
175
|
{
|
|
177
176
|
return this .x * vector .x +
|
|
178
177
|
this .y * vector .y +
|
|
179
178
|
this .z * vector .z;
|
|
180
179
|
},
|
|
181
|
-
norm
|
|
180
|
+
norm ()
|
|
182
181
|
{
|
|
183
182
|
const { x, y, z } = this;
|
|
184
183
|
|
|
@@ -186,17 +185,17 @@ Vector3 .prototype =
|
|
|
186
185
|
y * y +
|
|
187
186
|
z * z;
|
|
188
187
|
},
|
|
189
|
-
magnitude
|
|
188
|
+
magnitude ()
|
|
190
189
|
{
|
|
191
190
|
return Math .hypot (this .x, this .y, this .z);
|
|
192
191
|
},
|
|
193
|
-
distance
|
|
192
|
+
distance (vector)
|
|
194
193
|
{
|
|
195
194
|
return Math .hypot (this .x - vector .x,
|
|
196
195
|
this .y - vector .y,
|
|
197
196
|
this .z - vector .z);
|
|
198
197
|
},
|
|
199
|
-
lerp
|
|
198
|
+
lerp (destination, t)
|
|
200
199
|
{
|
|
201
200
|
const { x, y, z } = this;
|
|
202
201
|
|
|
@@ -214,14 +213,14 @@ Vector3 .prototype =
|
|
|
214
213
|
return Algorithm .simpleSlerp (this, tmp .assign (destination), t);
|
|
215
214
|
};
|
|
216
215
|
})(),
|
|
217
|
-
abs
|
|
216
|
+
abs ()
|
|
218
217
|
{
|
|
219
218
|
this .x = Math .abs (this .x);
|
|
220
219
|
this .y = Math .abs (this .y);
|
|
221
220
|
this .z = Math .abs (this .z);
|
|
222
221
|
return this;
|
|
223
222
|
},
|
|
224
|
-
min
|
|
223
|
+
min (vector)
|
|
225
224
|
{
|
|
226
225
|
let { x, y, z } = this;
|
|
227
226
|
|
|
@@ -237,7 +236,7 @@ Vector3 .prototype =
|
|
|
237
236
|
this .z = z;
|
|
238
237
|
return this;
|
|
239
238
|
},
|
|
240
|
-
max
|
|
239
|
+
max (vector)
|
|
241
240
|
{
|
|
242
241
|
let { x, y, z } = this;
|
|
243
242
|
|
|
@@ -253,31 +252,31 @@ Vector3 .prototype =
|
|
|
253
252
|
this .z = z;
|
|
254
253
|
return this;
|
|
255
254
|
},
|
|
256
|
-
toString
|
|
255
|
+
toString ()
|
|
257
256
|
{
|
|
258
257
|
return this .x + " " +
|
|
259
258
|
this .y + " " +
|
|
260
259
|
this .z;
|
|
261
260
|
}
|
|
262
|
-
};
|
|
261
|
+
});
|
|
263
262
|
|
|
264
263
|
Object .defineProperties (Vector3 .prototype,
|
|
265
264
|
{
|
|
266
265
|
length: { value: 3 },
|
|
267
266
|
0:
|
|
268
267
|
{
|
|
269
|
-
get
|
|
270
|
-
set
|
|
268
|
+
get () { return this .x; },
|
|
269
|
+
set (value) { this .x = value; },
|
|
271
270
|
},
|
|
272
271
|
1:
|
|
273
272
|
{
|
|
274
|
-
get
|
|
275
|
-
set
|
|
273
|
+
get () { return this .y; },
|
|
274
|
+
set (value) { this .y = value; },
|
|
276
275
|
},
|
|
277
276
|
2:
|
|
278
277
|
{
|
|
279
|
-
get
|
|
280
|
-
set
|
|
278
|
+
get () { return this .z; },
|
|
279
|
+
set (value) { this .z = value; },
|
|
281
280
|
},
|
|
282
281
|
});
|
|
283
282
|
|
|
@@ -53,17 +53,16 @@ function Vector4 (x, y, z, w)
|
|
|
53
53
|
this .w = w;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
Vector4 .prototype
|
|
56
|
+
Object .assign (Vector4 .prototype,
|
|
57
57
|
{
|
|
58
|
-
|
|
59
|
-
[Symbol .iterator]: function* ()
|
|
58
|
+
*[Symbol .iterator] ()
|
|
60
59
|
{
|
|
61
60
|
yield this .x;
|
|
62
61
|
yield this .y;
|
|
63
62
|
yield this .z;
|
|
64
63
|
yield this .w;
|
|
65
64
|
},
|
|
66
|
-
copy
|
|
65
|
+
copy ()
|
|
67
66
|
{
|
|
68
67
|
const copy = Object .create (Vector4 .prototype);
|
|
69
68
|
copy .x = this .x;
|
|
@@ -72,7 +71,7 @@ Vector4 .prototype =
|
|
|
72
71
|
copy .w = this .w;
|
|
73
72
|
return copy;
|
|
74
73
|
},
|
|
75
|
-
assign
|
|
74
|
+
assign (vector)
|
|
76
75
|
{
|
|
77
76
|
this .x = vector .x;
|
|
78
77
|
this .y = vector .y;
|
|
@@ -80,7 +79,7 @@ Vector4 .prototype =
|
|
|
80
79
|
this .w = vector .w;
|
|
81
80
|
return this;
|
|
82
81
|
},
|
|
83
|
-
set
|
|
82
|
+
set (x, y, z, w)
|
|
84
83
|
{
|
|
85
84
|
this .x = x;
|
|
86
85
|
this .y = y;
|
|
@@ -88,21 +87,21 @@ Vector4 .prototype =
|
|
|
88
87
|
this .w = w;
|
|
89
88
|
return this;
|
|
90
89
|
},
|
|
91
|
-
equals
|
|
90
|
+
equals (vector)
|
|
92
91
|
{
|
|
93
92
|
return this .x === vector .x &&
|
|
94
93
|
this .y === vector .y &&
|
|
95
94
|
this .z === vector .z &&
|
|
96
95
|
this .w === vector .w;
|
|
97
96
|
},
|
|
98
|
-
getReal
|
|
97
|
+
getReal (vector)
|
|
99
98
|
{
|
|
100
99
|
vector .x = this .x / this .w;
|
|
101
100
|
vector .y = this .y / this .w;
|
|
102
101
|
vector .z = this .z / this .w;
|
|
103
102
|
return vector;
|
|
104
103
|
},
|
|
105
|
-
negate
|
|
104
|
+
negate ()
|
|
106
105
|
{
|
|
107
106
|
this .x = -this .x;
|
|
108
107
|
this .y = -this .y;
|
|
@@ -110,7 +109,7 @@ Vector4 .prototype =
|
|
|
110
109
|
this .w = -this .w;
|
|
111
110
|
return this;
|
|
112
111
|
},
|
|
113
|
-
inverse
|
|
112
|
+
inverse ()
|
|
114
113
|
{
|
|
115
114
|
this .x = 1 / this .x;
|
|
116
115
|
this .y = 1 / this .y;
|
|
@@ -118,7 +117,7 @@ Vector4 .prototype =
|
|
|
118
117
|
this .w = 1 / this .w;
|
|
119
118
|
return this;
|
|
120
119
|
},
|
|
121
|
-
add
|
|
120
|
+
add (vector)
|
|
122
121
|
{
|
|
123
122
|
this .x += vector .x;
|
|
124
123
|
this .y += vector .y;
|
|
@@ -126,7 +125,7 @@ Vector4 .prototype =
|
|
|
126
125
|
this .w += vector .w;
|
|
127
126
|
return this;
|
|
128
127
|
},
|
|
129
|
-
subtract
|
|
128
|
+
subtract (vector)
|
|
130
129
|
{
|
|
131
130
|
this .x -= vector .x;
|
|
132
131
|
this .y -= vector .y;
|
|
@@ -134,7 +133,7 @@ Vector4 .prototype =
|
|
|
134
133
|
this .w -= vector .w;
|
|
135
134
|
return this;
|
|
136
135
|
},
|
|
137
|
-
multiply
|
|
136
|
+
multiply (value)
|
|
138
137
|
{
|
|
139
138
|
this .x *= value;
|
|
140
139
|
this .y *= value;
|
|
@@ -142,7 +141,7 @@ Vector4 .prototype =
|
|
|
142
141
|
this .w *= value;
|
|
143
142
|
return this;
|
|
144
143
|
},
|
|
145
|
-
multVec
|
|
144
|
+
multVec (vector)
|
|
146
145
|
{
|
|
147
146
|
this .x *= vector .x;
|
|
148
147
|
this .y *= vector .y;
|
|
@@ -150,7 +149,7 @@ Vector4 .prototype =
|
|
|
150
149
|
this .w *= vector .w;
|
|
151
150
|
return this;
|
|
152
151
|
},
|
|
153
|
-
divide
|
|
152
|
+
divide (value)
|
|
154
153
|
{
|
|
155
154
|
this .x /= value;
|
|
156
155
|
this .y /= value;
|
|
@@ -158,7 +157,7 @@ Vector4 .prototype =
|
|
|
158
157
|
this .w /= value;
|
|
159
158
|
return this;
|
|
160
159
|
},
|
|
161
|
-
divVec
|
|
160
|
+
divVec (vector)
|
|
162
161
|
{
|
|
163
162
|
this .x /= vector .x;
|
|
164
163
|
this .y /= vector .y;
|
|
@@ -166,7 +165,7 @@ Vector4 .prototype =
|
|
|
166
165
|
this .w /= vector .w;
|
|
167
166
|
return this;
|
|
168
167
|
},
|
|
169
|
-
normalize
|
|
168
|
+
normalize ()
|
|
170
169
|
{
|
|
171
170
|
const length = Math .hypot (this .x, this .y, this .z, this .w);
|
|
172
171
|
|
|
@@ -180,14 +179,14 @@ Vector4 .prototype =
|
|
|
180
179
|
|
|
181
180
|
return this;
|
|
182
181
|
},
|
|
183
|
-
dot
|
|
182
|
+
dot (vector)
|
|
184
183
|
{
|
|
185
184
|
return this .x * vector .x +
|
|
186
185
|
this .y * vector .y +
|
|
187
186
|
this .z * vector .z +
|
|
188
187
|
this .w * vector .w;
|
|
189
188
|
},
|
|
190
|
-
norm
|
|
189
|
+
norm ()
|
|
191
190
|
{
|
|
192
191
|
const { x, y, z, w } = this;
|
|
193
192
|
|
|
@@ -196,18 +195,18 @@ Vector4 .prototype =
|
|
|
196
195
|
z * z +
|
|
197
196
|
w * w;
|
|
198
197
|
},
|
|
199
|
-
magnitude
|
|
198
|
+
magnitude ()
|
|
200
199
|
{
|
|
201
200
|
return Math .hypot (this .x, this .y, this .z, this .w);
|
|
202
201
|
},
|
|
203
|
-
distance
|
|
202
|
+
distance (vector)
|
|
204
203
|
{
|
|
205
204
|
return Math .hypot (this .x - vector .x,
|
|
206
205
|
this .y - vector .y,
|
|
207
206
|
this .z - vector .z,
|
|
208
207
|
this .w - vector .w);
|
|
209
208
|
},
|
|
210
|
-
lerp
|
|
209
|
+
lerp (destination, t)
|
|
211
210
|
{
|
|
212
211
|
const { x, y, z, w } = this;
|
|
213
212
|
|
|
@@ -217,7 +216,7 @@ Vector4 .prototype =
|
|
|
217
216
|
this .w = w + t * (destination .w - w);
|
|
218
217
|
return this;
|
|
219
218
|
},
|
|
220
|
-
abs
|
|
219
|
+
abs ()
|
|
221
220
|
{
|
|
222
221
|
this .x = Math .abs (this .x);
|
|
223
222
|
this .y = Math .abs (this .y);
|
|
@@ -225,7 +224,7 @@ Vector4 .prototype =
|
|
|
225
224
|
this .w = Math .abs (this .w);
|
|
226
225
|
return this;
|
|
227
226
|
},
|
|
228
|
-
min
|
|
227
|
+
min (vector)
|
|
229
228
|
{
|
|
230
229
|
let { x, y, z, w } = this;
|
|
231
230
|
|
|
@@ -243,7 +242,7 @@ Vector4 .prototype =
|
|
|
243
242
|
this .w = w;
|
|
244
243
|
return this;
|
|
245
244
|
},
|
|
246
|
-
max
|
|
245
|
+
max (vector)
|
|
247
246
|
{
|
|
248
247
|
let { x, y, z, w } = this;
|
|
249
248
|
|
|
@@ -261,37 +260,37 @@ Vector4 .prototype =
|
|
|
261
260
|
this .w = w;
|
|
262
261
|
return this;
|
|
263
262
|
},
|
|
264
|
-
toString
|
|
263
|
+
toString ()
|
|
265
264
|
{
|
|
266
265
|
return this .x + " " +
|
|
267
266
|
this .y + " " +
|
|
268
267
|
this .z + " " +
|
|
269
268
|
this .w;
|
|
270
269
|
},
|
|
271
|
-
};
|
|
270
|
+
});
|
|
272
271
|
|
|
273
272
|
Object .defineProperties (Vector4 .prototype,
|
|
274
273
|
{
|
|
275
274
|
length: { value: 4 },
|
|
276
275
|
0:
|
|
277
276
|
{
|
|
278
|
-
get
|
|
279
|
-
set
|
|
277
|
+
get () { return this .x; },
|
|
278
|
+
set (value) { this .x = value; },
|
|
280
279
|
},
|
|
281
280
|
1:
|
|
282
281
|
{
|
|
283
|
-
get
|
|
284
|
-
set
|
|
282
|
+
get () { return this .y; },
|
|
283
|
+
set (value) { this .y = value; },
|
|
285
284
|
},
|
|
286
285
|
2:
|
|
287
286
|
{
|
|
288
|
-
get
|
|
289
|
-
set
|
|
287
|
+
get () { return this .z; },
|
|
288
|
+
set (value) { this .z = value; },
|
|
290
289
|
},
|
|
291
290
|
3:
|
|
292
291
|
{
|
|
293
|
-
get
|
|
294
|
-
set
|
|
292
|
+
get () { return this .w; },
|
|
293
|
+
set (value) { this .w = value; },
|
|
295
294
|
},
|
|
296
295
|
});
|
|
297
296
|
|
|
@@ -87,9 +87,9 @@ function Triangle (tree, triangle)
|
|
|
87
87
|
this .i3 = triangle * 9;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
Triangle .prototype
|
|
90
|
+
Object .assign (Triangle .prototype,
|
|
91
91
|
{
|
|
92
|
-
intersectsLine
|
|
92
|
+
intersectsLine (line, intersections, intersectionNormals)
|
|
93
93
|
{
|
|
94
94
|
const
|
|
95
95
|
vertices = this .vertices,
|
|
@@ -132,7 +132,7 @@ Triangle .prototype =
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
|
-
toArray
|
|
135
|
+
toArray (array)
|
|
136
136
|
{
|
|
137
137
|
const index = array .length / 4;
|
|
138
138
|
|
|
@@ -140,7 +140,7 @@ Triangle .prototype =
|
|
|
140
140
|
|
|
141
141
|
return index;
|
|
142
142
|
},
|
|
143
|
-
};
|
|
143
|
+
});
|
|
144
144
|
|
|
145
145
|
function Node (tree, triangles, first, size)
|
|
146
146
|
{
|
|
@@ -210,9 +210,9 @@ function Node (tree, triangles, first, size)
|
|
|
210
210
|
this .right = new Triangle (tree, triangles [first + leftSize]);
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
Node .prototype
|
|
213
|
+
Object .assign (Node .prototype,
|
|
214
214
|
{
|
|
215
|
-
intersectsLine
|
|
215
|
+
intersectsLine (line, intersections, intersectionNormals)
|
|
216
216
|
{
|
|
217
217
|
if (this .intersectsBBox (line))
|
|
218
218
|
{
|
|
@@ -220,7 +220,7 @@ Node .prototype =
|
|
|
220
220
|
this .right .intersectsLine (line, intersections, intersectionNormals);
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
|
-
intersectsBBox
|
|
223
|
+
intersectsBBox (line)
|
|
224
224
|
{
|
|
225
225
|
const
|
|
226
226
|
planes = this .planes,
|
|
@@ -276,7 +276,7 @@ Node .prototype =
|
|
|
276
276
|
|
|
277
277
|
return false;
|
|
278
278
|
},
|
|
279
|
-
getLongestAxis
|
|
279
|
+
getLongestAxis (min, max)
|
|
280
280
|
{
|
|
281
281
|
const
|
|
282
282
|
x = max .x - min .x,
|
|
@@ -298,7 +298,7 @@ Node .prototype =
|
|
|
298
298
|
return 0;
|
|
299
299
|
}
|
|
300
300
|
},
|
|
301
|
-
toArray
|
|
301
|
+
toArray (array)
|
|
302
302
|
{
|
|
303
303
|
const
|
|
304
304
|
left = this .left .toArray (array),
|
|
@@ -313,7 +313,7 @@ Node .prototype =
|
|
|
313
313
|
|
|
314
314
|
return index;
|
|
315
315
|
},
|
|
316
|
-
};
|
|
316
|
+
});
|
|
317
317
|
|
|
318
318
|
function BVH (vertices, normals)
|
|
319
319
|
{
|
|
@@ -348,10 +348,9 @@ function BVH (vertices, normals)
|
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
BVH .prototype
|
|
351
|
+
Object .assign (BVH .prototype,
|
|
352
352
|
{
|
|
353
|
-
|
|
354
|
-
intersectsLine: function (line, intersections, intersectionNormals)
|
|
353
|
+
intersectsLine (line, intersections, intersectionNormals)
|
|
355
354
|
{
|
|
356
355
|
intersections .size = 0;
|
|
357
356
|
|
|
@@ -363,7 +362,7 @@ BVH .prototype =
|
|
|
363
362
|
|
|
364
363
|
return 0;
|
|
365
364
|
},
|
|
366
|
-
toArray
|
|
365
|
+
toArray (array)
|
|
367
366
|
{
|
|
368
367
|
if (this .root)
|
|
369
368
|
{
|
|
@@ -374,6 +373,6 @@ BVH .prototype =
|
|
|
374
373
|
|
|
375
374
|
return array;
|
|
376
375
|
},
|
|
377
|
-
};
|
|
376
|
+
});
|
|
378
377
|
|
|
379
378
|
export default BVH;
|
|
@@ -50,15 +50,15 @@ function MatrixStack (Type)
|
|
|
50
50
|
return Object .assign ([ new Type () ],
|
|
51
51
|
{
|
|
52
52
|
top: 0,
|
|
53
|
-
set
|
|
53
|
+
set (matrix)
|
|
54
54
|
{
|
|
55
55
|
this [this .top] .assign (matrix);
|
|
56
56
|
},
|
|
57
|
-
get
|
|
57
|
+
get ()
|
|
58
58
|
{
|
|
59
59
|
return this [this .top];
|
|
60
60
|
},
|
|
61
|
-
push
|
|
61
|
+
push ()
|
|
62
62
|
{
|
|
63
63
|
const top = ++ this .top;
|
|
64
64
|
|
|
@@ -67,7 +67,7 @@ function MatrixStack (Type)
|
|
|
67
67
|
else
|
|
68
68
|
this [top] = this [top - 1] .copy ();
|
|
69
69
|
},
|
|
70
|
-
pushMatrix
|
|
70
|
+
pushMatrix (matrix)
|
|
71
71
|
{
|
|
72
72
|
const top = ++ this .top;
|
|
73
73
|
|
|
@@ -76,35 +76,35 @@ function MatrixStack (Type)
|
|
|
76
76
|
else
|
|
77
77
|
this [top] = matrix .copy ();
|
|
78
78
|
},
|
|
79
|
-
pop
|
|
79
|
+
pop ()
|
|
80
80
|
{
|
|
81
81
|
-- this .top;
|
|
82
82
|
},
|
|
83
|
-
clear
|
|
83
|
+
clear ()
|
|
84
84
|
{
|
|
85
85
|
this .top = 0;
|
|
86
86
|
},
|
|
87
|
-
size
|
|
87
|
+
size ()
|
|
88
88
|
{
|
|
89
89
|
return this .top + 1;
|
|
90
90
|
},
|
|
91
|
-
identity
|
|
91
|
+
identity ()
|
|
92
92
|
{
|
|
93
93
|
this [this .top] .identity ();
|
|
94
94
|
},
|
|
95
|
-
multLeft
|
|
95
|
+
multLeft (matrix)
|
|
96
96
|
{
|
|
97
97
|
this [this .top] .multLeft (matrix);
|
|
98
98
|
},
|
|
99
|
-
translate
|
|
99
|
+
translate (vector)
|
|
100
100
|
{
|
|
101
101
|
this [this .top] .translate (vector);
|
|
102
102
|
},
|
|
103
|
-
rotate
|
|
103
|
+
rotate (rotation)
|
|
104
104
|
{
|
|
105
105
|
this [this .top] .rotate (rotation);
|
|
106
106
|
},
|
|
107
|
-
scale
|
|
107
|
+
scale (vector)
|
|
108
108
|
{
|
|
109
109
|
this [this .top] .scale (vector);
|
|
110
110
|
},
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
// Return a pseudo accurate timestamp.
|
|
49
49
|
|
|
50
|
-
function
|
|
50
|
+
function microTime (now)
|
|
51
51
|
{
|
|
52
52
|
let
|
|
53
53
|
offset = 0,
|
|
@@ -73,8 +73,9 @@ function micro_time (now)
|
|
|
73
73
|
|
|
74
74
|
for (const object of [performance, Date])
|
|
75
75
|
{
|
|
76
|
-
Object .defineProperty (object, "now",
|
|
77
|
-
|
|
76
|
+
Object .defineProperty (object, "now",
|
|
77
|
+
{
|
|
78
|
+
value: microTime (object .now),
|
|
78
79
|
configurable: true,
|
|
79
80
|
writable: true,
|
|
80
81
|
});
|