x_ite 8.7.8 → 8.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Makefile +3 -0
- package/build/bin/version.pl +1 -1
- package/dist/assets/components/Annotation.js +248 -169
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +296 -233
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +217 -172
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +451 -387
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +309 -208
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +397 -333
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +705 -575
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +319 -259
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +134 -99
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +305 -240
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +781 -626
- 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 +173 -103
- 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 +61554 -59658
- 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/assets/shaders/webgl1/include/Shadow.glsl.js +21 -25
- package/src/assets/shaders/webgl2/include/Shadow.glsl.js +23 -27
- 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 +219 -181
- 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 +59 -29
- package/src/x_ite/Base/X3DObjectArrayField.js +51 -117
- package/src/x_ite/Base/X3DTypedArrayField.js +48 -42
- 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 +170 -136
- 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 +66 -34
- 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 -221
- 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 -45
- 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 -52
- 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 -59
- 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 +83 -53
- 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/AbstractNodes.js +50 -0
- 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} +26 -40
- 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 +181 -152
- 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 +36 -40
- 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 +35 -19
- 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
|
@@ -1,7 +1,39 @@
|
|
|
1
|
-
/* X_ITE v8.
|
|
1
|
+
/* X_ITE v8.8.0 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
|
-
/******/
|
|
4
|
-
|
|
3
|
+
/******/ var __webpack_modules__ = ({
|
|
4
|
+
|
|
5
|
+
/***/ 355:
|
|
6
|
+
/***/ ((module) => {
|
|
7
|
+
|
|
8
|
+
module.exports = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("lib/jquery");
|
|
9
|
+
|
|
10
|
+
/***/ })
|
|
11
|
+
|
|
12
|
+
/******/ });
|
|
13
|
+
/************************************************************************/
|
|
14
|
+
/******/ // The module cache
|
|
15
|
+
/******/ var __webpack_module_cache__ = {};
|
|
16
|
+
/******/
|
|
17
|
+
/******/ // The require function
|
|
18
|
+
/******/ function __webpack_require__(moduleId) {
|
|
19
|
+
/******/ // Check if module is in cache
|
|
20
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
21
|
+
/******/ if (cachedModule !== undefined) {
|
|
22
|
+
/******/ return cachedModule.exports;
|
|
23
|
+
/******/ }
|
|
24
|
+
/******/ // Create a new module (and put it into the cache)
|
|
25
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
26
|
+
/******/ // no module.id needed
|
|
27
|
+
/******/ // no module.loaded needed
|
|
28
|
+
/******/ exports: {}
|
|
29
|
+
/******/ };
|
|
30
|
+
/******/
|
|
31
|
+
/******/ // Execute the module function
|
|
32
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
33
|
+
/******/
|
|
34
|
+
/******/ // Return the exports of the module
|
|
35
|
+
/******/ return module.exports;
|
|
36
|
+
/******/ }
|
|
5
37
|
/******/
|
|
6
38
|
/************************************************************************/
|
|
7
39
|
/******/ /* webpack/runtime/compat get default export */
|
|
@@ -35,26 +67,28 @@
|
|
|
35
67
|
/******/
|
|
36
68
|
/************************************************************************/
|
|
37
69
|
var __webpack_exports__ = {};
|
|
70
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
71
|
+
(() => {
|
|
38
72
|
|
|
39
73
|
// UNUSED EXPORTS: default
|
|
40
74
|
|
|
41
75
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
42
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
76
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components");
|
|
43
77
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
44
78
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
45
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
79
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Fields");
|
|
46
80
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
47
81
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
48
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
82
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
49
83
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
50
84
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
51
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
85
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
52
86
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
53
87
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DNode\")"
|
|
54
|
-
const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
88
|
+
const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Core/X3DNode");
|
|
55
89
|
var X3DNode_default = /*#__PURE__*/__webpack_require__.n(X3DNode_namespaceObject);
|
|
56
90
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
57
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
91
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Namespace");
|
|
58
92
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
59
93
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/ParticleSystems/GeometryTypes.js
|
|
60
94
|
/*******************************************************************************
|
|
@@ -121,7 +155,7 @@ const __default__ = GeometryTypes;
|
|
|
121
155
|
Namespace_default().set ("x_ite/Browser/ParticleSystems/GeometryTypes", __default__);
|
|
122
156
|
/* harmony default export */ const ParticleSystems_GeometryTypes = (__default__);
|
|
123
157
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
124
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
158
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Base/X3DConstants");
|
|
125
159
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
126
160
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/ParticleSystems/Line3.glsl.js
|
|
127
161
|
const Line3_glsl_default_ = /* glsl*/ `
|
|
@@ -681,12 +715,11 @@ function X3DParticleEmitterNode (executionContext)
|
|
|
681
715
|
this .addFunction (BVH_glsl);
|
|
682
716
|
}
|
|
683
717
|
|
|
684
|
-
|
|
718
|
+
Object .assign (Object .setPrototypeOf (X3DParticleEmitterNode .prototype, (X3DNode_default()).prototype),
|
|
685
719
|
{
|
|
686
|
-
|
|
687
|
-
initialize: function ()
|
|
720
|
+
initialize ()
|
|
688
721
|
{
|
|
689
|
-
X3DNode_default().prototype.initialize.call (this);
|
|
722
|
+
X3DNode_default().prototype .initialize .call (this);
|
|
690
723
|
|
|
691
724
|
const gl = this .getBrowser () .getContext ();
|
|
692
725
|
|
|
@@ -710,35 +743,35 @@ X3DParticleEmitterNode .prototype = Object .assign (Object .create ((X3DNode_def
|
|
|
710
743
|
this .set_variation__ ();
|
|
711
744
|
this .set_mass__ ();
|
|
712
745
|
},
|
|
713
|
-
isExplosive
|
|
746
|
+
isExplosive ()
|
|
714
747
|
{
|
|
715
748
|
return false;
|
|
716
749
|
},
|
|
717
|
-
getMass
|
|
750
|
+
getMass ()
|
|
718
751
|
{
|
|
719
752
|
return this .mass;
|
|
720
753
|
},
|
|
721
|
-
set_on__
|
|
754
|
+
set_on__ ()
|
|
722
755
|
{
|
|
723
756
|
this .on = this ._on .getValue ();
|
|
724
757
|
},
|
|
725
|
-
set_speed__
|
|
758
|
+
set_speed__ ()
|
|
726
759
|
{
|
|
727
760
|
this .setUniform ("uniform1f", "speed", this ._speed .getValue ());
|
|
728
761
|
},
|
|
729
|
-
set_variation__
|
|
762
|
+
set_variation__ ()
|
|
730
763
|
{
|
|
731
764
|
this .setUniform ("uniform1f", "variation", this ._variation .getValue ());
|
|
732
765
|
},
|
|
733
|
-
set_mass__
|
|
766
|
+
set_mass__ ()
|
|
734
767
|
{
|
|
735
768
|
this .mass = this ._mass .getValue ();
|
|
736
769
|
},
|
|
737
|
-
getRandomValue
|
|
770
|
+
getRandomValue (min, max)
|
|
738
771
|
{
|
|
739
772
|
return Math .random () * (max - min) + min;
|
|
740
773
|
},
|
|
741
|
-
getRandomNormal
|
|
774
|
+
getRandomNormal (normal)
|
|
742
775
|
{
|
|
743
776
|
const
|
|
744
777
|
theta = this .getRandomValue (-1, 1) * Math .PI,
|
|
@@ -750,7 +783,7 @@ X3DParticleEmitterNode .prototype = Object .assign (Object .create ((X3DNode_def
|
|
|
750
783
|
Math .cos (theta) * r,
|
|
751
784
|
cphi);
|
|
752
785
|
},
|
|
753
|
-
animate
|
|
786
|
+
animate (particleSystem, deltaTime)
|
|
754
787
|
{
|
|
755
788
|
const
|
|
756
789
|
browser = this .getBrowser (),
|
|
@@ -859,15 +892,15 @@ X3DParticleEmitterNode .prototype = Object .assign (Object .create ((X3DNode_def
|
|
|
859
892
|
// gl .getBufferSubData (gl .ARRAY_BUFFER, 0, data);
|
|
860
893
|
// console .log (data .slice (0, particleStride / 4));
|
|
861
894
|
},
|
|
862
|
-
addSampler
|
|
895
|
+
addSampler (name)
|
|
863
896
|
{
|
|
864
897
|
this .samplers .push (name);
|
|
865
898
|
},
|
|
866
|
-
addUniform
|
|
899
|
+
addUniform (name, uniform)
|
|
867
900
|
{
|
|
868
901
|
this .uniforms [name] = uniform;
|
|
869
902
|
},
|
|
870
|
-
setUniform
|
|
903
|
+
setUniform (func, name, value1, value2, value3)
|
|
871
904
|
{
|
|
872
905
|
const
|
|
873
906
|
gl = this .getBrowser () .getContext (),
|
|
@@ -876,11 +909,11 @@ X3DParticleEmitterNode .prototype = Object .assign (Object .create ((X3DNode_def
|
|
|
876
909
|
gl .useProgram (program);
|
|
877
910
|
gl [func] (program [name], value1, value2, value3);
|
|
878
911
|
},
|
|
879
|
-
addFunction
|
|
912
|
+
addFunction (func)
|
|
880
913
|
{
|
|
881
914
|
this .functions .push (func);
|
|
882
915
|
},
|
|
883
|
-
createProgram
|
|
916
|
+
createProgram ()
|
|
884
917
|
{
|
|
885
918
|
const
|
|
886
919
|
browser = this .getBrowser (),
|
|
@@ -1551,9 +1584,9 @@ X3DParticleEmitterNode .prototype = Object .assign (Object .create ((X3DNode_def
|
|
|
1551
1584
|
|
|
1552
1585
|
return program;
|
|
1553
1586
|
},
|
|
1554
|
-
activateTextures
|
|
1587
|
+
activateTextures ()
|
|
1555
1588
|
{ },
|
|
1556
|
-
createTexture
|
|
1589
|
+
createTexture ()
|
|
1557
1590
|
{
|
|
1558
1591
|
const
|
|
1559
1592
|
gl = this .getBrowser () .getContext (),
|
|
@@ -1570,7 +1603,7 @@ X3DParticleEmitterNode .prototype = Object .assign (Object .create ((X3DNode_def
|
|
|
1570
1603
|
|
|
1571
1604
|
return texture;
|
|
1572
1605
|
},
|
|
1573
|
-
getTexture2DUnit
|
|
1606
|
+
getTexture2DUnit (browser, object, property)
|
|
1574
1607
|
{
|
|
1575
1608
|
const textureUnit = object [property];
|
|
1576
1609
|
|
|
@@ -1581,13 +1614,27 @@ X3DParticleEmitterNode .prototype = Object .assign (Object .create ((X3DNode_def
|
|
|
1581
1614
|
},
|
|
1582
1615
|
});
|
|
1583
1616
|
|
|
1617
|
+
Object .defineProperties (X3DParticleEmitterNode,
|
|
1618
|
+
{
|
|
1619
|
+
typeName:
|
|
1620
|
+
{
|
|
1621
|
+
value: "X3DParticleEmitterNode",
|
|
1622
|
+
enumerable: true,
|
|
1623
|
+
},
|
|
1624
|
+
componentName:
|
|
1625
|
+
{
|
|
1626
|
+
value: "ParticleSystems",
|
|
1627
|
+
enumerable: true,
|
|
1628
|
+
},
|
|
1629
|
+
});
|
|
1630
|
+
|
|
1584
1631
|
const X3DParticleEmitterNode_default_ = X3DParticleEmitterNode;
|
|
1585
1632
|
;
|
|
1586
1633
|
|
|
1587
1634
|
Namespace_default().set ("x_ite/Components/ParticleSystems/X3DParticleEmitterNode", X3DParticleEmitterNode_default_);
|
|
1588
1635
|
/* harmony default export */ const ParticleSystems_X3DParticleEmitterNode = (X3DParticleEmitterNode_default_);
|
|
1589
1636
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
1590
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
1637
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Math/Numbers/Vector3");
|
|
1591
1638
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
1592
1639
|
;// CONCATENATED MODULE: ./src/x_ite/Components/ParticleSystems/PointEmitter.js
|
|
1593
1640
|
/*******************************************************************************
|
|
@@ -1646,7 +1693,7 @@ var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject
|
|
|
1646
1693
|
|
|
1647
1694
|
function PointEmitter (executionContext)
|
|
1648
1695
|
{
|
|
1649
|
-
ParticleSystems_X3DParticleEmitterNode.call (this, executionContext);
|
|
1696
|
+
ParticleSystems_X3DParticleEmitterNode .call (this, executionContext);
|
|
1650
1697
|
|
|
1651
1698
|
this .addType ((X3DConstants_default()).PointEmitter);
|
|
1652
1699
|
|
|
@@ -1670,38 +1717,11 @@ function PointEmitter (executionContext)
|
|
|
1670
1717
|
}`);
|
|
1671
1718
|
}
|
|
1672
1719
|
|
|
1673
|
-
|
|
1720
|
+
Object .assign (Object .setPrototypeOf (PointEmitter .prototype, ParticleSystems_X3DParticleEmitterNode .prototype),
|
|
1674
1721
|
{
|
|
1675
|
-
|
|
1676
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
1677
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
1678
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "on", new (Fields_default()).SFBool (true)),
|
|
1679
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "position", new (Fields_default()).SFVec3f ()),
|
|
1680
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "direction", new (Fields_default()).SFVec3f (0, 1, 0)),
|
|
1681
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "speed", new (Fields_default()).SFFloat ()),
|
|
1682
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "variation", new (Fields_default()).SFFloat (0.25)),
|
|
1683
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "mass", new (Fields_default()).SFFloat ()),
|
|
1684
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceArea", new (Fields_default()).SFFloat ()),
|
|
1685
|
-
]),
|
|
1686
|
-
getTypeName: function ()
|
|
1687
|
-
{
|
|
1688
|
-
return "PointEmitter";
|
|
1689
|
-
},
|
|
1690
|
-
getComponentName: function ()
|
|
1691
|
-
{
|
|
1692
|
-
return "ParticleSystems";
|
|
1693
|
-
},
|
|
1694
|
-
getContainerField: function ()
|
|
1695
|
-
{
|
|
1696
|
-
return "emitter";
|
|
1697
|
-
},
|
|
1698
|
-
getSpecificationRange: function ()
|
|
1722
|
+
initialize ()
|
|
1699
1723
|
{
|
|
1700
|
-
|
|
1701
|
-
},
|
|
1702
|
-
initialize: function ()
|
|
1703
|
-
{
|
|
1704
|
-
ParticleSystems_X3DParticleEmitterNode.prototype.initialize.call (this);
|
|
1724
|
+
ParticleSystems_X3DParticleEmitterNode .prototype .initialize .call (this);
|
|
1705
1725
|
|
|
1706
1726
|
if (this .getBrowser () .getContext () .getVersion () < 2)
|
|
1707
1727
|
return;
|
|
@@ -1712,7 +1732,7 @@ PointEmitter .prototype = Object .assign (Object .create (ParticleSystems_X3DPar
|
|
|
1712
1732
|
this .set_position__ ();
|
|
1713
1733
|
this .set_direction__ ();
|
|
1714
1734
|
},
|
|
1715
|
-
set_position__
|
|
1735
|
+
set_position__ ()
|
|
1716
1736
|
{
|
|
1717
1737
|
const position = this ._position .getValue ();
|
|
1718
1738
|
|
|
@@ -1731,6 +1751,44 @@ PointEmitter .prototype = Object .assign (Object .create (ParticleSystems_X3DPar
|
|
|
1731
1751
|
})(),
|
|
1732
1752
|
});
|
|
1733
1753
|
|
|
1754
|
+
Object .defineProperties (PointEmitter,
|
|
1755
|
+
{
|
|
1756
|
+
typeName:
|
|
1757
|
+
{
|
|
1758
|
+
value: "PointEmitter",
|
|
1759
|
+
enumerable: true,
|
|
1760
|
+
},
|
|
1761
|
+
componentName:
|
|
1762
|
+
{
|
|
1763
|
+
value: "ParticleSystems",
|
|
1764
|
+
enumerable: true,
|
|
1765
|
+
},
|
|
1766
|
+
containerField:
|
|
1767
|
+
{
|
|
1768
|
+
value: "emitter",
|
|
1769
|
+
enumerable: true,
|
|
1770
|
+
},
|
|
1771
|
+
specificationRange:
|
|
1772
|
+
{
|
|
1773
|
+
value: Object .freeze (["3.2", "Infinity"]),
|
|
1774
|
+
enumerable: true,
|
|
1775
|
+
},
|
|
1776
|
+
fieldDefinitions:
|
|
1777
|
+
{
|
|
1778
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
1779
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
1780
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "on", new (Fields_default()).SFBool (true)),
|
|
1781
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "position", new (Fields_default()).SFVec3f ()),
|
|
1782
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "direction", new (Fields_default()).SFVec3f (0, 1, 0)),
|
|
1783
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "speed", new (Fields_default()).SFFloat ()),
|
|
1784
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "variation", new (Fields_default()).SFFloat (0.25)),
|
|
1785
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "mass", new (Fields_default()).SFFloat ()),
|
|
1786
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceArea", new (Fields_default()).SFFloat ()),
|
|
1787
|
+
]),
|
|
1788
|
+
enumerable: true,
|
|
1789
|
+
},
|
|
1790
|
+
});
|
|
1791
|
+
|
|
1734
1792
|
const PointEmitter_default_ = PointEmitter;
|
|
1735
1793
|
;
|
|
1736
1794
|
|
|
@@ -1792,9 +1850,9 @@ const
|
|
|
1792
1850
|
|
|
1793
1851
|
function X3DParticleSystemsContext () { }
|
|
1794
1852
|
|
|
1795
|
-
X3DParticleSystemsContext .prototype
|
|
1853
|
+
Object .assign (X3DParticleSystemsContext .prototype,
|
|
1796
1854
|
{
|
|
1797
|
-
getDefaultEmitter
|
|
1855
|
+
getDefaultEmitter ()
|
|
1798
1856
|
{
|
|
1799
1857
|
this [_defaultEmitter] = new ParticleSystems_PointEmitter (this .getPrivateScene ());
|
|
1800
1858
|
this [_defaultEmitter] .setPrivate (true);
|
|
@@ -1806,7 +1864,7 @@ X3DParticleSystemsContext .prototype =
|
|
|
1806
1864
|
|
|
1807
1865
|
return this [_defaultEmitter];
|
|
1808
1866
|
},
|
|
1809
|
-
};
|
|
1867
|
+
});
|
|
1810
1868
|
|
|
1811
1869
|
const X3DParticleSystemsContext_default_ = X3DParticleSystemsContext;
|
|
1812
1870
|
;
|
|
@@ -1871,20 +1929,33 @@ function X3DParticlePhysicsModelNode (executionContext)
|
|
|
1871
1929
|
this .addType ((X3DConstants_default()).X3DParticlePhysicsModelNode);
|
|
1872
1930
|
}
|
|
1873
1931
|
|
|
1874
|
-
|
|
1932
|
+
Object .assign (Object .setPrototypeOf (X3DParticlePhysicsModelNode .prototype, (X3DNode_default()).prototype),
|
|
1875
1933
|
{
|
|
1876
|
-
|
|
1877
|
-
addForce: function ()
|
|
1934
|
+
addForce ()
|
|
1878
1935
|
{ },
|
|
1879
1936
|
});
|
|
1880
1937
|
|
|
1938
|
+
Object .defineProperties (X3DParticlePhysicsModelNode,
|
|
1939
|
+
{
|
|
1940
|
+
typeName:
|
|
1941
|
+
{
|
|
1942
|
+
value: "X3DParticlePhysicsModelNode",
|
|
1943
|
+
enumerable: true,
|
|
1944
|
+
},
|
|
1945
|
+
componentName:
|
|
1946
|
+
{
|
|
1947
|
+
value: "ParticleSystems",
|
|
1948
|
+
enumerable: true,
|
|
1949
|
+
},
|
|
1950
|
+
});
|
|
1951
|
+
|
|
1881
1952
|
const X3DParticlePhysicsModelNode_default_ = X3DParticlePhysicsModelNode;
|
|
1882
1953
|
;
|
|
1883
1954
|
|
|
1884
1955
|
Namespace_default().set ("x_ite/Components/ParticleSystems/X3DParticlePhysicsModelNode", X3DParticlePhysicsModelNode_default_);
|
|
1885
1956
|
/* harmony default export */ const ParticleSystems_X3DParticlePhysicsModelNode = (X3DParticlePhysicsModelNode_default_);
|
|
1886
1957
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
1887
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
1958
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Base/X3DCast");
|
|
1888
1959
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
1889
1960
|
;// CONCATENATED MODULE: ./src/x_ite/Components/ParticleSystems/BoundedPhysicsModel.js
|
|
1890
1961
|
/*******************************************************************************
|
|
@@ -1943,44 +2014,22 @@ var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject
|
|
|
1943
2014
|
|
|
1944
2015
|
function BoundedPhysicsModel (executionContext)
|
|
1945
2016
|
{
|
|
1946
|
-
ParticleSystems_X3DParticlePhysicsModelNode.call (this, executionContext);
|
|
2017
|
+
ParticleSystems_X3DParticlePhysicsModelNode .call (this, executionContext);
|
|
1947
2018
|
|
|
1948
2019
|
this .addType ((X3DConstants_default()).BoundedPhysicsModel);
|
|
1949
2020
|
}
|
|
1950
2021
|
|
|
1951
|
-
|
|
2022
|
+
Object .assign (Object .setPrototypeOf (BoundedPhysicsModel .prototype, ParticleSystems_X3DParticlePhysicsModelNode .prototype),
|
|
1952
2023
|
{
|
|
1953
|
-
|
|
1954
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
1955
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
1956
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
1957
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "geometry", new (Fields_default()).SFNode ()),
|
|
1958
|
-
]),
|
|
1959
|
-
getTypeName: function ()
|
|
1960
|
-
{
|
|
1961
|
-
return "BoundedPhysicsModel";
|
|
1962
|
-
},
|
|
1963
|
-
getComponentName: function ()
|
|
1964
|
-
{
|
|
1965
|
-
return "ParticleSystems";
|
|
1966
|
-
},
|
|
1967
|
-
getContainerField: function ()
|
|
1968
|
-
{
|
|
1969
|
-
return "physics";
|
|
1970
|
-
},
|
|
1971
|
-
getSpecificationRange: function ()
|
|
2024
|
+
initialize ()
|
|
1972
2025
|
{
|
|
1973
|
-
|
|
1974
|
-
},
|
|
1975
|
-
initialize: function ()
|
|
1976
|
-
{
|
|
1977
|
-
ParticleSystems_X3DParticlePhysicsModelNode.prototype.initialize.call (this);
|
|
2026
|
+
ParticleSystems_X3DParticlePhysicsModelNode .prototype .initialize .call (this);
|
|
1978
2027
|
|
|
1979
2028
|
this ._geometry .addInterest ("set_geometry__", this);
|
|
1980
2029
|
|
|
1981
2030
|
this .set_geometry__ ();
|
|
1982
2031
|
},
|
|
1983
|
-
set_geometry__
|
|
2032
|
+
set_geometry__ ()
|
|
1984
2033
|
{
|
|
1985
2034
|
if (this .geometryNode)
|
|
1986
2035
|
this .geometryNode ._rebuild .removeInterest ("addNodeEvent", this);
|
|
@@ -1990,7 +2039,7 @@ BoundedPhysicsModel .prototype = Object .assign (Object .create (ParticleSystems
|
|
|
1990
2039
|
if (this .geometryNode)
|
|
1991
2040
|
this .geometryNode ._rebuild .addInterest ("addNodeEvent", this);
|
|
1992
2041
|
},
|
|
1993
|
-
addGeometry
|
|
2042
|
+
addGeometry (boundedNormals, boundedVertices)
|
|
1994
2043
|
{
|
|
1995
2044
|
if (this .geometryNode && this ._enabled .getValue ())
|
|
1996
2045
|
{
|
|
@@ -2007,6 +2056,39 @@ BoundedPhysicsModel .prototype = Object .assign (Object .create (ParticleSystems
|
|
|
2007
2056
|
},
|
|
2008
2057
|
});
|
|
2009
2058
|
|
|
2059
|
+
Object .defineProperties (BoundedPhysicsModel,
|
|
2060
|
+
{
|
|
2061
|
+
typeName:
|
|
2062
|
+
{
|
|
2063
|
+
value: "BoundedPhysicsModel",
|
|
2064
|
+
enumerable: true,
|
|
2065
|
+
},
|
|
2066
|
+
componentName:
|
|
2067
|
+
{
|
|
2068
|
+
value: "ParticleSystems",
|
|
2069
|
+
enumerable: true,
|
|
2070
|
+
},
|
|
2071
|
+
containerField:
|
|
2072
|
+
{
|
|
2073
|
+
value: "physics",
|
|
2074
|
+
enumerable: true,
|
|
2075
|
+
},
|
|
2076
|
+
specificationRange:
|
|
2077
|
+
{
|
|
2078
|
+
value: Object .freeze (["3.2", "Infinity"]),
|
|
2079
|
+
enumerable: true,
|
|
2080
|
+
},
|
|
2081
|
+
fieldDefinitions:
|
|
2082
|
+
{
|
|
2083
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
2084
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2085
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
2086
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "geometry", new (Fields_default()).SFNode ()),
|
|
2087
|
+
]),
|
|
2088
|
+
enumerable: true,
|
|
2089
|
+
},
|
|
2090
|
+
});
|
|
2091
|
+
|
|
2010
2092
|
const BoundedPhysicsModel_default_ = BoundedPhysicsModel;
|
|
2011
2093
|
;
|
|
2012
2094
|
|
|
@@ -2068,7 +2150,7 @@ Namespace_default().set ("x_ite/Components/ParticleSystems/BoundedPhysicsModel",
|
|
|
2068
2150
|
|
|
2069
2151
|
function ConeEmitter (executionContext)
|
|
2070
2152
|
{
|
|
2071
|
-
ParticleSystems_X3DParticleEmitterNode.call (this, executionContext);
|
|
2153
|
+
ParticleSystems_X3DParticleEmitterNode .call (this, executionContext);
|
|
2072
2154
|
|
|
2073
2155
|
this .addType ((X3DConstants_default()).ConeEmitter);
|
|
2074
2156
|
|
|
@@ -2100,39 +2182,11 @@ function ConeEmitter (executionContext)
|
|
|
2100
2182
|
}`);
|
|
2101
2183
|
}
|
|
2102
2184
|
|
|
2103
|
-
|
|
2185
|
+
Object .assign (Object .setPrototypeOf (ConeEmitter .prototype, ParticleSystems_X3DParticleEmitterNode .prototype),
|
|
2104
2186
|
{
|
|
2105
|
-
|
|
2106
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
2107
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2108
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "on", new (Fields_default()).SFBool (true)),
|
|
2109
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "position", new (Fields_default()).SFVec3f ()),
|
|
2110
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "direction", new (Fields_default()).SFVec3f (0, 1, 0)),
|
|
2111
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "angle", new (Fields_default()).SFFloat (0.7854)),
|
|
2112
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "speed", new (Fields_default()).SFFloat ()),
|
|
2113
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "variation", new (Fields_default()).SFFloat (0.25)),
|
|
2114
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "mass", new (Fields_default()).SFFloat ()),
|
|
2115
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceArea", new (Fields_default()).SFFloat ()),
|
|
2116
|
-
]),
|
|
2117
|
-
getTypeName: function ()
|
|
2118
|
-
{
|
|
2119
|
-
return "ConeEmitter";
|
|
2120
|
-
},
|
|
2121
|
-
getComponentName: function ()
|
|
2122
|
-
{
|
|
2123
|
-
return "ParticleSystems";
|
|
2124
|
-
},
|
|
2125
|
-
getContainerField: function ()
|
|
2126
|
-
{
|
|
2127
|
-
return "emitter";
|
|
2128
|
-
},
|
|
2129
|
-
getSpecificationRange: function ()
|
|
2130
|
-
{
|
|
2131
|
-
return ["3.2", "Infinity"];
|
|
2132
|
-
},
|
|
2133
|
-
initialize: function ()
|
|
2187
|
+
initialize ()
|
|
2134
2188
|
{
|
|
2135
|
-
ParticleSystems_X3DParticleEmitterNode.prototype.initialize.call (this);
|
|
2189
|
+
ParticleSystems_X3DParticleEmitterNode .prototype .initialize .call (this);
|
|
2136
2190
|
|
|
2137
2191
|
if (this .getBrowser () .getContext () .getVersion () < 2)
|
|
2138
2192
|
return;
|
|
@@ -2145,24 +2199,63 @@ ConeEmitter .prototype = Object .assign (Object .create (ParticleSystems_X3DPart
|
|
|
2145
2199
|
this .set_direction__ ();
|
|
2146
2200
|
this .set_angle__ ();
|
|
2147
2201
|
},
|
|
2148
|
-
set_position__
|
|
2202
|
+
set_position__ ()
|
|
2149
2203
|
{
|
|
2150
2204
|
const position = this ._position .getValue ();
|
|
2151
2205
|
|
|
2152
2206
|
this .setUniform ("uniform3f", "position", position .x, position .y, position .z);
|
|
2153
2207
|
},
|
|
2154
|
-
set_direction__
|
|
2208
|
+
set_direction__ ()
|
|
2155
2209
|
{
|
|
2156
2210
|
const direction = this ._direction .getValue ();
|
|
2157
2211
|
|
|
2158
2212
|
this .setUniform ("uniform3f", "direction", direction .x, direction .y, direction .z);
|
|
2159
2213
|
},
|
|
2160
|
-
set_angle__
|
|
2214
|
+
set_angle__ ()
|
|
2161
2215
|
{
|
|
2162
2216
|
this .setUniform ("uniform1f", "angle", this ._angle .getValue ());
|
|
2163
2217
|
},
|
|
2164
2218
|
});
|
|
2165
2219
|
|
|
2220
|
+
Object .defineProperties (ConeEmitter,
|
|
2221
|
+
{
|
|
2222
|
+
typeName:
|
|
2223
|
+
{
|
|
2224
|
+
value: "ConeEmitter",
|
|
2225
|
+
enumerable: true,
|
|
2226
|
+
},
|
|
2227
|
+
componentName:
|
|
2228
|
+
{
|
|
2229
|
+
value: "ParticleSystems",
|
|
2230
|
+
enumerable: true,
|
|
2231
|
+
},
|
|
2232
|
+
containerField:
|
|
2233
|
+
{
|
|
2234
|
+
value: "emitter",
|
|
2235
|
+
enumerable: true,
|
|
2236
|
+
},
|
|
2237
|
+
specificationRange:
|
|
2238
|
+
{
|
|
2239
|
+
value: Object .freeze (["3.2", "Infinity"]),
|
|
2240
|
+
enumerable: true,
|
|
2241
|
+
},
|
|
2242
|
+
fieldDefinitions:
|
|
2243
|
+
{
|
|
2244
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
2245
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2246
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "on", new (Fields_default()).SFBool (true)),
|
|
2247
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "position", new (Fields_default()).SFVec3f ()),
|
|
2248
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "direction", new (Fields_default()).SFVec3f (0, 1, 0)),
|
|
2249
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "angle", new (Fields_default()).SFFloat (0.7854)),
|
|
2250
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "speed", new (Fields_default()).SFFloat ()),
|
|
2251
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "variation", new (Fields_default()).SFFloat (0.25)),
|
|
2252
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "mass", new (Fields_default()).SFFloat ()),
|
|
2253
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceArea", new (Fields_default()).SFFloat ()),
|
|
2254
|
+
]),
|
|
2255
|
+
enumerable: true,
|
|
2256
|
+
},
|
|
2257
|
+
});
|
|
2258
|
+
|
|
2166
2259
|
const ConeEmitter_default_ = ConeEmitter;
|
|
2167
2260
|
;
|
|
2168
2261
|
|
|
@@ -2224,7 +2317,7 @@ Namespace_default().set ("x_ite/Components/ParticleSystems/ConeEmitter", ConeEmi
|
|
|
2224
2317
|
|
|
2225
2318
|
function ExplosionEmitter (executionContext)
|
|
2226
2319
|
{
|
|
2227
|
-
ParticleSystems_X3DParticleEmitterNode.call (this, executionContext);
|
|
2320
|
+
ParticleSystems_X3DParticleEmitterNode .call (this, executionContext);
|
|
2228
2321
|
|
|
2229
2322
|
this .addType ((X3DConstants_default()).ExplosionEmitter);
|
|
2230
2323
|
|
|
@@ -2243,37 +2336,11 @@ function ExplosionEmitter (executionContext)
|
|
|
2243
2336
|
}`);
|
|
2244
2337
|
}
|
|
2245
2338
|
|
|
2246
|
-
|
|
2339
|
+
Object .assign (Object .setPrototypeOf (ExplosionEmitter .prototype, ParticleSystems_X3DParticleEmitterNode .prototype),
|
|
2247
2340
|
{
|
|
2248
|
-
|
|
2249
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
2250
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2251
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "on", new (Fields_default()).SFBool (true)),
|
|
2252
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "position", new (Fields_default()).SFVec3f ()),
|
|
2253
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "speed", new (Fields_default()).SFFloat ()),
|
|
2254
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "variation", new (Fields_default()).SFFloat (0.25)),
|
|
2255
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "mass", new (Fields_default()).SFFloat ()),
|
|
2256
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceArea", new (Fields_default()).SFFloat ()),
|
|
2257
|
-
]),
|
|
2258
|
-
getTypeName: function ()
|
|
2259
|
-
{
|
|
2260
|
-
return "ExplosionEmitter";
|
|
2261
|
-
},
|
|
2262
|
-
getComponentName: function ()
|
|
2341
|
+
initialize ()
|
|
2263
2342
|
{
|
|
2264
|
-
|
|
2265
|
-
},
|
|
2266
|
-
getContainerField: function ()
|
|
2267
|
-
{
|
|
2268
|
-
return "emitter";
|
|
2269
|
-
},
|
|
2270
|
-
getSpecificationRange: function ()
|
|
2271
|
-
{
|
|
2272
|
-
return ["3.2", "Infinity"];
|
|
2273
|
-
},
|
|
2274
|
-
initialize: function ()
|
|
2275
|
-
{
|
|
2276
|
-
ParticleSystems_X3DParticleEmitterNode.prototype.initialize.call (this);
|
|
2343
|
+
ParticleSystems_X3DParticleEmitterNode .prototype .initialize .call (this);
|
|
2277
2344
|
|
|
2278
2345
|
if (this .getBrowser () .getContext () .getVersion () < 2)
|
|
2279
2346
|
return;
|
|
@@ -2282,11 +2349,11 @@ ExplosionEmitter .prototype = Object .assign (Object .create (ParticleSystems_X3
|
|
|
2282
2349
|
|
|
2283
2350
|
this .set_position__ ();
|
|
2284
2351
|
},
|
|
2285
|
-
isExplosive
|
|
2352
|
+
isExplosive ()
|
|
2286
2353
|
{
|
|
2287
2354
|
return true;
|
|
2288
2355
|
},
|
|
2289
|
-
set_position__
|
|
2356
|
+
set_position__ ()
|
|
2290
2357
|
{
|
|
2291
2358
|
const position = this ._position .getValue ();
|
|
2292
2359
|
|
|
@@ -2294,6 +2361,43 @@ ExplosionEmitter .prototype = Object .assign (Object .create (ParticleSystems_X3
|
|
|
2294
2361
|
},
|
|
2295
2362
|
});
|
|
2296
2363
|
|
|
2364
|
+
Object .defineProperties (ExplosionEmitter,
|
|
2365
|
+
{
|
|
2366
|
+
typeName:
|
|
2367
|
+
{
|
|
2368
|
+
value: "ExplosionEmitter",
|
|
2369
|
+
enumerable: true,
|
|
2370
|
+
},
|
|
2371
|
+
componentName:
|
|
2372
|
+
{
|
|
2373
|
+
value: "ParticleSystems",
|
|
2374
|
+
enumerable: true,
|
|
2375
|
+
},
|
|
2376
|
+
containerField:
|
|
2377
|
+
{
|
|
2378
|
+
value: "emitter",
|
|
2379
|
+
enumerable: true,
|
|
2380
|
+
},
|
|
2381
|
+
specificationRange:
|
|
2382
|
+
{
|
|
2383
|
+
value: Object .freeze (["3.2", "Infinity"]),
|
|
2384
|
+
enumerable: true,
|
|
2385
|
+
},
|
|
2386
|
+
fieldDefinitions:
|
|
2387
|
+
{
|
|
2388
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
2389
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2390
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "on", new (Fields_default()).SFBool (true)),
|
|
2391
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "position", new (Fields_default()).SFVec3f ()),
|
|
2392
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "speed", new (Fields_default()).SFFloat ()),
|
|
2393
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "variation", new (Fields_default()).SFFloat (0.25)),
|
|
2394
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "mass", new (Fields_default()).SFFloat ()),
|
|
2395
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceArea", new (Fields_default()).SFFloat ()),
|
|
2396
|
+
]),
|
|
2397
|
+
enumerable: true,
|
|
2398
|
+
},
|
|
2399
|
+
});
|
|
2400
|
+
|
|
2297
2401
|
const ExplosionEmitter_default_ = ExplosionEmitter;
|
|
2298
2402
|
;
|
|
2299
2403
|
|
|
@@ -2356,37 +2460,15 @@ Namespace_default().set ("x_ite/Components/ParticleSystems/ExplosionEmitter", Ex
|
|
|
2356
2460
|
|
|
2357
2461
|
function ForcePhysicsModel (executionContext)
|
|
2358
2462
|
{
|
|
2359
|
-
ParticleSystems_X3DParticlePhysicsModelNode.call (this, executionContext);
|
|
2463
|
+
ParticleSystems_X3DParticlePhysicsModelNode .call (this, executionContext);
|
|
2360
2464
|
|
|
2361
2465
|
this .addType ((X3DConstants_default()).ForcePhysicsModel);
|
|
2362
2466
|
|
|
2363
2467
|
this ._force .setUnit ("force");
|
|
2364
2468
|
}
|
|
2365
2469
|
|
|
2366
|
-
|
|
2470
|
+
Object .assign (Object .setPrototypeOf (ForcePhysicsModel .prototype, ParticleSystems_X3DParticlePhysicsModelNode .prototype),
|
|
2367
2471
|
{
|
|
2368
|
-
constructor: ForcePhysicsModel,
|
|
2369
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
2370
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2371
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
2372
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "force", new (Fields_default()).SFVec3f (0, -9.8, 0)),
|
|
2373
|
-
]),
|
|
2374
|
-
getTypeName: function ()
|
|
2375
|
-
{
|
|
2376
|
-
return "ForcePhysicsModel";
|
|
2377
|
-
},
|
|
2378
|
-
getComponentName: function ()
|
|
2379
|
-
{
|
|
2380
|
-
return "ParticleSystems";
|
|
2381
|
-
},
|
|
2382
|
-
getContainerField: function ()
|
|
2383
|
-
{
|
|
2384
|
-
return "physics";
|
|
2385
|
-
},
|
|
2386
|
-
getSpecificationRange: function ()
|
|
2387
|
-
{
|
|
2388
|
-
return ["3.2", "Infinity"];
|
|
2389
|
-
},
|
|
2390
2472
|
addForce: (function ()
|
|
2391
2473
|
{
|
|
2392
2474
|
const force = new (Vector3_default()) (0, 0, 0);
|
|
@@ -2408,34 +2490,67 @@ ForcePhysicsModel .prototype = Object .assign (Object .create (ParticleSystems_X
|
|
|
2408
2490
|
})(),
|
|
2409
2491
|
});
|
|
2410
2492
|
|
|
2493
|
+
Object .defineProperties (ForcePhysicsModel,
|
|
2494
|
+
{
|
|
2495
|
+
typeName:
|
|
2496
|
+
{
|
|
2497
|
+
value: "ForcePhysicsModel",
|
|
2498
|
+
enumerable: true,
|
|
2499
|
+
},
|
|
2500
|
+
componentName:
|
|
2501
|
+
{
|
|
2502
|
+
value: "ParticleSystems",
|
|
2503
|
+
enumerable: true,
|
|
2504
|
+
},
|
|
2505
|
+
containerField:
|
|
2506
|
+
{
|
|
2507
|
+
value: "physics",
|
|
2508
|
+
enumerable: true,
|
|
2509
|
+
},
|
|
2510
|
+
specificationRange:
|
|
2511
|
+
{
|
|
2512
|
+
value: Object .freeze (["3.2", "Infinity"]),
|
|
2513
|
+
enumerable: true,
|
|
2514
|
+
},
|
|
2515
|
+
fieldDefinitions:
|
|
2516
|
+
{
|
|
2517
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
2518
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2519
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
2520
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "force", new (Fields_default()).SFVec3f (0, -9.8, 0)),
|
|
2521
|
+
]),
|
|
2522
|
+
enumerable: true,
|
|
2523
|
+
},
|
|
2524
|
+
});
|
|
2525
|
+
|
|
2411
2526
|
const ForcePhysicsModel_default_ = ForcePhysicsModel;
|
|
2412
2527
|
;
|
|
2413
2528
|
|
|
2414
2529
|
Namespace_default().set ("x_ite/Components/ParticleSystems/ForcePhysicsModel", ForcePhysicsModel_default_);
|
|
2415
2530
|
/* harmony default export */ const ParticleSystems_ForcePhysicsModel = (ForcePhysicsModel_default_);
|
|
2416
2531
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Shape/X3DShapeNode\")"
|
|
2417
|
-
const X3DShapeNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
2532
|
+
const X3DShapeNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Shape/X3DShapeNode");
|
|
2418
2533
|
var X3DShapeNode_default = /*#__PURE__*/__webpack_require__.n(X3DShapeNode_namespaceObject);
|
|
2419
2534
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Rendering/GeometryContext\")"
|
|
2420
|
-
const GeometryContext_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
2535
|
+
const GeometryContext_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Browser/Rendering/GeometryContext");
|
|
2421
2536
|
var GeometryContext_default = /*#__PURE__*/__webpack_require__.n(GeometryContext_namespaceObject);
|
|
2422
2537
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/VertexArray\")"
|
|
2423
|
-
const VertexArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
2538
|
+
const VertexArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Rendering/VertexArray");
|
|
2424
2539
|
var VertexArray_default = /*#__PURE__*/__webpack_require__.n(VertexArray_namespaceObject);
|
|
2425
2540
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
|
|
2426
|
-
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
2541
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Rendering/TraverseType");
|
|
2427
2542
|
var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
|
|
2428
2543
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Shape/AlphaMode\")"
|
|
2429
|
-
const AlphaMode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
2544
|
+
const AlphaMode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Browser/Shape/AlphaMode");
|
|
2430
2545
|
var AlphaMode_default = /*#__PURE__*/__webpack_require__.n(AlphaMode_namespaceObject);
|
|
2431
2546
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
2432
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
2547
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Math/Numbers/Matrix4");
|
|
2433
2548
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
2434
2549
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix3\")"
|
|
2435
|
-
const Matrix3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
2550
|
+
const Matrix3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Math/Numbers/Matrix3");
|
|
2436
2551
|
var Matrix3_default = /*#__PURE__*/__webpack_require__.n(Matrix3_namespaceObject);
|
|
2437
2552
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Plane3\")"
|
|
2438
|
-
const Plane3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
2553
|
+
const Plane3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Math/Geometry/Plane3");
|
|
2439
2554
|
var Plane3_default = /*#__PURE__*/__webpack_require__.n(Plane3_namespaceObject);
|
|
2440
2555
|
;// CONCATENATED MODULE: ./src/standard/Math/Algorithms/QuickSort.js
|
|
2441
2556
|
/*******************************************************************************
|
|
@@ -2493,18 +2608,18 @@ function QuickSort (array, compare)
|
|
|
2493
2608
|
this .compare = compare;
|
|
2494
2609
|
}
|
|
2495
2610
|
|
|
2496
|
-
QuickSort .prototype
|
|
2611
|
+
Object .assign (QuickSort .prototype,
|
|
2497
2612
|
{
|
|
2498
|
-
compare
|
|
2613
|
+
compare (lhs, rhs)
|
|
2499
2614
|
{
|
|
2500
2615
|
return lhs < rhs;
|
|
2501
2616
|
},
|
|
2502
|
-
sort
|
|
2617
|
+
sort (first, last)
|
|
2503
2618
|
{
|
|
2504
2619
|
if (last - first > 1)
|
|
2505
2620
|
this .quicksort (first, last - 1);
|
|
2506
2621
|
},
|
|
2507
|
-
quicksort
|
|
2622
|
+
quicksort (lo, hi)
|
|
2508
2623
|
{
|
|
2509
2624
|
let
|
|
2510
2625
|
i = lo,
|
|
@@ -2541,7 +2656,7 @@ QuickSort .prototype =
|
|
|
2541
2656
|
if (lo < j) this .quicksort (lo, j);
|
|
2542
2657
|
if (i < hi) this .quicksort (i, hi);
|
|
2543
2658
|
},
|
|
2544
|
-
};
|
|
2659
|
+
});
|
|
2545
2660
|
|
|
2546
2661
|
const QuickSort_default_ = QuickSort;
|
|
2547
2662
|
;
|
|
@@ -2638,9 +2753,9 @@ function Triangle (tree, triangle)
|
|
|
2638
2753
|
this .i3 = triangle * 9;
|
|
2639
2754
|
}
|
|
2640
2755
|
|
|
2641
|
-
Triangle .prototype
|
|
2756
|
+
Object .assign (Triangle .prototype,
|
|
2642
2757
|
{
|
|
2643
|
-
intersectsLine
|
|
2758
|
+
intersectsLine (line, intersections, intersectionNormals)
|
|
2644
2759
|
{
|
|
2645
2760
|
const
|
|
2646
2761
|
vertices = this .vertices,
|
|
@@ -2683,7 +2798,7 @@ Triangle .prototype =
|
|
|
2683
2798
|
}
|
|
2684
2799
|
}
|
|
2685
2800
|
},
|
|
2686
|
-
toArray
|
|
2801
|
+
toArray (array)
|
|
2687
2802
|
{
|
|
2688
2803
|
const index = array .length / 4;
|
|
2689
2804
|
|
|
@@ -2691,7 +2806,7 @@ Triangle .prototype =
|
|
|
2691
2806
|
|
|
2692
2807
|
return index;
|
|
2693
2808
|
},
|
|
2694
|
-
};
|
|
2809
|
+
});
|
|
2695
2810
|
|
|
2696
2811
|
function Node (tree, triangles, first, size)
|
|
2697
2812
|
{
|
|
@@ -2761,9 +2876,9 @@ function Node (tree, triangles, first, size)
|
|
|
2761
2876
|
this .right = new Triangle (tree, triangles [first + leftSize]);
|
|
2762
2877
|
}
|
|
2763
2878
|
|
|
2764
|
-
Node .prototype
|
|
2879
|
+
Object .assign (Node .prototype,
|
|
2765
2880
|
{
|
|
2766
|
-
intersectsLine
|
|
2881
|
+
intersectsLine (line, intersections, intersectionNormals)
|
|
2767
2882
|
{
|
|
2768
2883
|
if (this .intersectsBBox (line))
|
|
2769
2884
|
{
|
|
@@ -2771,7 +2886,7 @@ Node .prototype =
|
|
|
2771
2886
|
this .right .intersectsLine (line, intersections, intersectionNormals);
|
|
2772
2887
|
}
|
|
2773
2888
|
},
|
|
2774
|
-
intersectsBBox
|
|
2889
|
+
intersectsBBox (line)
|
|
2775
2890
|
{
|
|
2776
2891
|
const
|
|
2777
2892
|
planes = this .planes,
|
|
@@ -2827,7 +2942,7 @@ Node .prototype =
|
|
|
2827
2942
|
|
|
2828
2943
|
return false;
|
|
2829
2944
|
},
|
|
2830
|
-
getLongestAxis
|
|
2945
|
+
getLongestAxis (min, max)
|
|
2831
2946
|
{
|
|
2832
2947
|
const
|
|
2833
2948
|
x = max .x - min .x,
|
|
@@ -2849,7 +2964,7 @@ Node .prototype =
|
|
|
2849
2964
|
return 0;
|
|
2850
2965
|
}
|
|
2851
2966
|
},
|
|
2852
|
-
toArray
|
|
2967
|
+
toArray (array)
|
|
2853
2968
|
{
|
|
2854
2969
|
const
|
|
2855
2970
|
left = this .left .toArray (array),
|
|
@@ -2864,7 +2979,7 @@ Node .prototype =
|
|
|
2864
2979
|
|
|
2865
2980
|
return index;
|
|
2866
2981
|
},
|
|
2867
|
-
};
|
|
2982
|
+
});
|
|
2868
2983
|
|
|
2869
2984
|
function BVH (vertices, normals)
|
|
2870
2985
|
{
|
|
@@ -2899,10 +3014,9 @@ function BVH (vertices, normals)
|
|
|
2899
3014
|
}
|
|
2900
3015
|
}
|
|
2901
3016
|
|
|
2902
|
-
BVH .prototype
|
|
3017
|
+
Object .assign (BVH .prototype,
|
|
2903
3018
|
{
|
|
2904
|
-
|
|
2905
|
-
intersectsLine: function (line, intersections, intersectionNormals)
|
|
3019
|
+
intersectsLine (line, intersections, intersectionNormals)
|
|
2906
3020
|
{
|
|
2907
3021
|
intersections .size = 0;
|
|
2908
3022
|
|
|
@@ -2914,7 +3028,7 @@ BVH .prototype =
|
|
|
2914
3028
|
|
|
2915
3029
|
return 0;
|
|
2916
3030
|
},
|
|
2917
|
-
toArray
|
|
3031
|
+
toArray (array)
|
|
2918
3032
|
{
|
|
2919
3033
|
if (this .root)
|
|
2920
3034
|
{
|
|
@@ -2925,7 +3039,7 @@ BVH .prototype =
|
|
|
2925
3039
|
|
|
2926
3040
|
return array;
|
|
2927
3041
|
},
|
|
2928
|
-
};
|
|
3042
|
+
});
|
|
2929
3043
|
|
|
2930
3044
|
const BVH_default_ = BVH;
|
|
2931
3045
|
;
|
|
@@ -2933,6 +3047,7 @@ const BVH_default_ = BVH;
|
|
|
2933
3047
|
Namespace_default().set ("standard/Math/Utility/BVH", BVH_default_);
|
|
2934
3048
|
/* harmony default export */ const Utility_BVH = (BVH_default_);
|
|
2935
3049
|
;// CONCATENATED MODULE: ./src/x_ite/Components/ParticleSystems/ParticleSystem.js
|
|
3050
|
+
/* provided dependency */ var $ = __webpack_require__(355);
|
|
2936
3051
|
/*******************************************************************************
|
|
2937
3052
|
*
|
|
2938
3053
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -3070,52 +3185,11 @@ function ParticleSystem (executionContext)
|
|
|
3070
3185
|
this .texCoordOffset = 0;
|
|
3071
3186
|
}
|
|
3072
3187
|
|
|
3073
|
-
|
|
3188
|
+
Object .assign (Object .setPrototypeOf (ParticleSystem .prototype, (X3DShapeNode_default()).prototype),
|
|
3074
3189
|
{
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
3079
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "createParticles", new (Fields_default()).SFBool (true)),
|
|
3080
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "geometryType", new (Fields_default()).SFString ("QUAD")),
|
|
3081
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxParticles", new (Fields_default()).SFInt32 (200)),
|
|
3082
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "particleLifetime", new (Fields_default()).SFFloat (5)),
|
|
3083
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "lifetimeVariation", new (Fields_default()).SFFloat (0.25)),
|
|
3084
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "particleSize", new (Fields_default()).SFVec2f (0.02, 0.02)),
|
|
3085
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "emitter", new (Fields_default()).SFNode ()),
|
|
3086
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "physics", new (Fields_default()).MFNode ()),
|
|
3087
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "colorKey", new (Fields_default()).MFFloat ()),
|
|
3088
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "color", new (Fields_default()).SFNode ()),
|
|
3089
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "texCoordKey", new (Fields_default()).MFFloat ()),
|
|
3090
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "texCoord", new (Fields_default()).SFNode ()),
|
|
3091
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "isActive", new (Fields_default()).SFBool ()),
|
|
3092
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
|
|
3093
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "castShadow", new (Fields_default()).SFBool (true)),
|
|
3094
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
|
|
3095
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
|
|
3096
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f ()),
|
|
3097
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "appearance", new (Fields_default()).SFNode ()),
|
|
3098
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "geometry", new (Fields_default()).SFNode ()),
|
|
3099
|
-
]),
|
|
3100
|
-
getTypeName: function ()
|
|
3101
|
-
{
|
|
3102
|
-
return "ParticleSystem";
|
|
3103
|
-
},
|
|
3104
|
-
getComponentName: function ()
|
|
3105
|
-
{
|
|
3106
|
-
return "ParticleSystems";
|
|
3107
|
-
},
|
|
3108
|
-
getContainerField: function ()
|
|
3109
|
-
{
|
|
3110
|
-
return "children";
|
|
3111
|
-
},
|
|
3112
|
-
getSpecificationRange: function ()
|
|
3113
|
-
{
|
|
3114
|
-
return ["3.2", "Infinity"];
|
|
3115
|
-
},
|
|
3116
|
-
initialize: function ()
|
|
3117
|
-
{
|
|
3118
|
-
X3DShapeNode_default().prototype.initialize.call (this);
|
|
3190
|
+
initialize ()
|
|
3191
|
+
{
|
|
3192
|
+
X3DShapeNode_default().prototype .initialize .call (this);
|
|
3119
3193
|
|
|
3120
3194
|
const
|
|
3121
3195
|
browser = this .getBrowser (),
|
|
@@ -3177,21 +3251,21 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3177
3251
|
this .set_colorRamp__ ();
|
|
3178
3252
|
this .set_texCoordRamp__ ();
|
|
3179
3253
|
},
|
|
3180
|
-
getShapeKey
|
|
3254
|
+
getShapeKey ()
|
|
3181
3255
|
{
|
|
3182
3256
|
return this .numTexCoords ? 2 : 1;
|
|
3183
3257
|
},
|
|
3184
|
-
getGeometryContext
|
|
3258
|
+
getGeometryContext ()
|
|
3185
3259
|
{
|
|
3186
3260
|
switch (this .geometryType)
|
|
3187
3261
|
{
|
|
3188
|
-
case ParticleSystems_GeometryTypes.GEOMETRY:
|
|
3262
|
+
case ParticleSystems_GeometryTypes .GEOMETRY:
|
|
3189
3263
|
return this .getGeometry ();
|
|
3190
3264
|
default:
|
|
3191
3265
|
return this .geometryContext;
|
|
3192
3266
|
}
|
|
3193
3267
|
},
|
|
3194
|
-
set_bbox__
|
|
3268
|
+
set_bbox__ ()
|
|
3195
3269
|
{
|
|
3196
3270
|
if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
|
|
3197
3271
|
this .bbox .set ();
|
|
@@ -3201,13 +3275,13 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3201
3275
|
this .bboxSize .assign (this .bbox .size);
|
|
3202
3276
|
this .bboxCenter .assign (this .bbox .center);
|
|
3203
3277
|
},
|
|
3204
|
-
set_transparent__
|
|
3278
|
+
set_transparent__ ()
|
|
3205
3279
|
{
|
|
3206
3280
|
if (this .getAppearance () .getAlphaMode () === (AlphaMode_default()).AUTO)
|
|
3207
3281
|
{
|
|
3208
3282
|
switch (this .geometryType)
|
|
3209
3283
|
{
|
|
3210
|
-
case ParticleSystems_GeometryTypes.POINT:
|
|
3284
|
+
case ParticleSystems_GeometryTypes .POINT:
|
|
3211
3285
|
{
|
|
3212
3286
|
this .setTransparent (true);
|
|
3213
3287
|
break;
|
|
@@ -3216,7 +3290,7 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3216
3290
|
{
|
|
3217
3291
|
this .setTransparent (!!(this .getAppearance () .isTransparent () ||
|
|
3218
3292
|
this .colorRampNode ?.isTransparent () ||
|
|
3219
|
-
(this .geometryType === ParticleSystems_GeometryTypes.GEOMETRY &&
|
|
3293
|
+
(this .geometryType === ParticleSystems_GeometryTypes .GEOMETRY &&
|
|
3220
3294
|
this .geometryNode ?.isTransparent ())));
|
|
3221
3295
|
break;
|
|
3222
3296
|
}
|
|
@@ -3227,7 +3301,7 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3227
3301
|
this .setTransparent (this .getAppearance () .isTransparent ());
|
|
3228
3302
|
}
|
|
3229
3303
|
},
|
|
3230
|
-
set_live__
|
|
3304
|
+
set_live__ ()
|
|
3231
3305
|
{
|
|
3232
3306
|
if (this .getLive () .getValue ())
|
|
3233
3307
|
{
|
|
@@ -3253,7 +3327,7 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3253
3327
|
}
|
|
3254
3328
|
}
|
|
3255
3329
|
},
|
|
3256
|
-
set_enabled__
|
|
3330
|
+
set_enabled__ ()
|
|
3257
3331
|
{
|
|
3258
3332
|
if (this ._enabled .getValue () && this ._maxParticles .getValue ())
|
|
3259
3333
|
{
|
|
@@ -3291,11 +3365,11 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3291
3365
|
|
|
3292
3366
|
this .set_maxParticles__ ();
|
|
3293
3367
|
},
|
|
3294
|
-
set_createParticles__
|
|
3368
|
+
set_createParticles__ ()
|
|
3295
3369
|
{
|
|
3296
3370
|
this .createParticles = this ._createParticles .getValue ();
|
|
3297
3371
|
},
|
|
3298
|
-
set_geometryType__
|
|
3372
|
+
set_geometryType__ ()
|
|
3299
3373
|
{
|
|
3300
3374
|
const
|
|
3301
3375
|
browser = this .getBrowser (),
|
|
@@ -3303,13 +3377,13 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3303
3377
|
|
|
3304
3378
|
// Get geometryType.
|
|
3305
3379
|
|
|
3306
|
-
this .geometryType =
|
|
3380
|
+
this .geometryType = $.enum (ParticleSystems_GeometryTypes, this ._geometryType .getValue (), ParticleSystems_GeometryTypes .QUAD);
|
|
3307
3381
|
|
|
3308
3382
|
// Create buffers.
|
|
3309
3383
|
|
|
3310
3384
|
switch (this .geometryType)
|
|
3311
3385
|
{
|
|
3312
|
-
case ParticleSystems_GeometryTypes.POINT:
|
|
3386
|
+
case ParticleSystems_GeometryTypes .POINT:
|
|
3313
3387
|
{
|
|
3314
3388
|
this .geometryContext .geometryType = 0;
|
|
3315
3389
|
this .geometryContext .hasNormals = false;
|
|
@@ -3325,7 +3399,7 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3325
3399
|
|
|
3326
3400
|
break;
|
|
3327
3401
|
}
|
|
3328
|
-
case ParticleSystems_GeometryTypes.LINE:
|
|
3402
|
+
case ParticleSystems_GeometryTypes .LINE:
|
|
3329
3403
|
{
|
|
3330
3404
|
this .geometryContext .geometryType = 1;
|
|
3331
3405
|
this .geometryContext .hasNormals = false;
|
|
@@ -3342,9 +3416,9 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3342
3416
|
|
|
3343
3417
|
break;
|
|
3344
3418
|
}
|
|
3345
|
-
case ParticleSystems_GeometryTypes.TRIANGLE:
|
|
3346
|
-
case ParticleSystems_GeometryTypes.QUAD:
|
|
3347
|
-
case ParticleSystems_GeometryTypes.SPRITE:
|
|
3419
|
+
case ParticleSystems_GeometryTypes .TRIANGLE:
|
|
3420
|
+
case ParticleSystems_GeometryTypes .QUAD:
|
|
3421
|
+
case ParticleSystems_GeometryTypes .SPRITE:
|
|
3348
3422
|
{
|
|
3349
3423
|
this .geometryContext .geometryType = 2;
|
|
3350
3424
|
this .geometryContext .hasNormals = true;
|
|
@@ -3362,7 +3436,7 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3362
3436
|
|
|
3363
3437
|
break;
|
|
3364
3438
|
}
|
|
3365
|
-
case ParticleSystems_GeometryTypes.GEOMETRY:
|
|
3439
|
+
case ParticleSystems_GeometryTypes .GEOMETRY:
|
|
3366
3440
|
{
|
|
3367
3441
|
this .texCoordCount = 0;
|
|
3368
3442
|
break;
|
|
@@ -3374,7 +3448,7 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3374
3448
|
|
|
3375
3449
|
this .set_transparent__ ();
|
|
3376
3450
|
},
|
|
3377
|
-
set_maxParticles__
|
|
3451
|
+
set_maxParticles__ ()
|
|
3378
3452
|
{
|
|
3379
3453
|
const
|
|
3380
3454
|
lastNumParticles = this .numParticles,
|
|
@@ -3389,15 +3463,15 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3389
3463
|
this .resizeBuffers (lastNumParticles);
|
|
3390
3464
|
this .updateVertexArrays ();
|
|
3391
3465
|
},
|
|
3392
|
-
set_particleLifetime__
|
|
3466
|
+
set_particleLifetime__ ()
|
|
3393
3467
|
{
|
|
3394
3468
|
this .particleLifetime = this ._particleLifetime .getValue ();
|
|
3395
3469
|
},
|
|
3396
|
-
set_lifetimeVariation__
|
|
3470
|
+
set_lifetimeVariation__ ()
|
|
3397
3471
|
{
|
|
3398
3472
|
this .lifetimeVariation = this ._lifetimeVariation .getValue ();
|
|
3399
3473
|
},
|
|
3400
|
-
set_emitter__
|
|
3474
|
+
set_emitter__ ()
|
|
3401
3475
|
{
|
|
3402
3476
|
this .emitterNode = X3DCast_default() ((X3DConstants_default()).X3DParticleEmitterNode, this ._emitter);
|
|
3403
3477
|
|
|
@@ -3406,7 +3480,7 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3406
3480
|
|
|
3407
3481
|
this .createParticles = this ._createParticles .getValue ();
|
|
3408
3482
|
},
|
|
3409
|
-
set_physics__
|
|
3483
|
+
set_physics__ ()
|
|
3410
3484
|
{
|
|
3411
3485
|
const
|
|
3412
3486
|
physics = this ._physics .getValue (),
|
|
@@ -3450,13 +3524,13 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3450
3524
|
break;
|
|
3451
3525
|
}
|
|
3452
3526
|
}
|
|
3453
|
-
catch
|
|
3527
|
+
catch
|
|
3454
3528
|
{ }
|
|
3455
3529
|
}
|
|
3456
3530
|
|
|
3457
3531
|
this .set_boundedPhysics__ ();
|
|
3458
3532
|
},
|
|
3459
|
-
set_boundedPhysics__
|
|
3533
|
+
set_boundedPhysics__ ()
|
|
3460
3534
|
{
|
|
3461
3535
|
const
|
|
3462
3536
|
gl = this .getBrowser () .getContext (),
|
|
@@ -3504,7 +3578,7 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3504
3578
|
gl .texImage2D (gl .TEXTURE_2D, 0, gl .RGBA32F, boundedArraySize, boundedArraySize, 0, gl .RGBA, gl .FLOAT, boundedArray);
|
|
3505
3579
|
}
|
|
3506
3580
|
},
|
|
3507
|
-
set_colorRamp__
|
|
3581
|
+
set_colorRamp__ ()
|
|
3508
3582
|
{
|
|
3509
3583
|
if (this .colorRampNode)
|
|
3510
3584
|
this .colorRampNode .removeInterest ("set_color__", this);
|
|
@@ -3517,7 +3591,7 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3517
3591
|
this .set_color__ ();
|
|
3518
3592
|
this .set_transparent__ ();
|
|
3519
3593
|
},
|
|
3520
|
-
set_color__
|
|
3594
|
+
set_color__ ()
|
|
3521
3595
|
{
|
|
3522
3596
|
const
|
|
3523
3597
|
gl = this .getBrowser () .getContext (),
|
|
@@ -3550,7 +3624,7 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3550
3624
|
this .geometryContext .updateGeometryKey ();
|
|
3551
3625
|
this .updateVertexArrays ();
|
|
3552
3626
|
},
|
|
3553
|
-
set_texCoordRamp__
|
|
3627
|
+
set_texCoordRamp__ ()
|
|
3554
3628
|
{
|
|
3555
3629
|
if (this .texCoordRampNode)
|
|
3556
3630
|
this .texCoordRampNode .removeInterest ("set_texCoord__", this);
|
|
@@ -3562,7 +3636,7 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3562
3636
|
|
|
3563
3637
|
this .set_texCoord__ ();
|
|
3564
3638
|
},
|
|
3565
|
-
set_texCoord__
|
|
3639
|
+
set_texCoord__ ()
|
|
3566
3640
|
{
|
|
3567
3641
|
const
|
|
3568
3642
|
gl = this .getBrowser () .getContext (),
|
|
@@ -3593,12 +3667,12 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3593
3667
|
|
|
3594
3668
|
this .updateVertexArrays ();
|
|
3595
3669
|
},
|
|
3596
|
-
updateVertexArrays
|
|
3670
|
+
updateVertexArrays ()
|
|
3597
3671
|
{
|
|
3598
3672
|
this .inputParticles .vertexArrayObject .update ();
|
|
3599
3673
|
this .outputParticles .vertexArrayObject .update ();
|
|
3600
3674
|
},
|
|
3601
|
-
createTexture
|
|
3675
|
+
createTexture ()
|
|
3602
3676
|
{
|
|
3603
3677
|
const
|
|
3604
3678
|
gl = this .getBrowser () .getContext (),
|
|
@@ -3615,7 +3689,7 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3615
3689
|
|
|
3616
3690
|
return texture;
|
|
3617
3691
|
},
|
|
3618
|
-
createBuffer
|
|
3692
|
+
createBuffer ()
|
|
3619
3693
|
{
|
|
3620
3694
|
const
|
|
3621
3695
|
gl = this .getBrowser () .getContext (),
|
|
@@ -3626,7 +3700,7 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3626
3700
|
|
|
3627
3701
|
return buffer;
|
|
3628
3702
|
},
|
|
3629
|
-
resizeBuffers
|
|
3703
|
+
resizeBuffers (lastNumParticles)
|
|
3630
3704
|
{
|
|
3631
3705
|
const
|
|
3632
3706
|
gl = this .getBrowser () .getContext (),
|
|
@@ -3650,7 +3724,7 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3650
3724
|
|
|
3651
3725
|
this .outputParticles = outputParticles;
|
|
3652
3726
|
},
|
|
3653
|
-
animateParticles
|
|
3727
|
+
animateParticles ()
|
|
3654
3728
|
{
|
|
3655
3729
|
const
|
|
3656
3730
|
browser = this .getBrowser (),
|
|
@@ -3793,9 +3867,9 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3793
3867
|
gl .bufferData (gl .ARRAY_BUFFER, data, gl .DYNAMIC_DRAW);
|
|
3794
3868
|
};
|
|
3795
3869
|
})(),
|
|
3796
|
-
intersectsBox
|
|
3870
|
+
intersectsBox (box, clipPlanes)
|
|
3797
3871
|
{ },
|
|
3798
|
-
traverse
|
|
3872
|
+
traverse (type, renderObject)
|
|
3799
3873
|
{
|
|
3800
3874
|
switch (type)
|
|
3801
3875
|
{
|
|
@@ -3825,13 +3899,13 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3825
3899
|
}
|
|
3826
3900
|
}
|
|
3827
3901
|
|
|
3828
|
-
if (this .geometryType === ParticleSystems_GeometryTypes.GEOMETRY)
|
|
3902
|
+
if (this .geometryType === ParticleSystems_GeometryTypes .GEOMETRY)
|
|
3829
3903
|
{
|
|
3830
3904
|
if (this .getGeometry ())
|
|
3831
3905
|
this .getGeometry () .traverse (type, renderObject); // Currently used for ScreenText.
|
|
3832
3906
|
}
|
|
3833
3907
|
},
|
|
3834
|
-
displaySimple
|
|
3908
|
+
displaySimple (gl, renderContext, shaderNode)
|
|
3835
3909
|
{
|
|
3836
3910
|
if (this .numParticles)
|
|
3837
3911
|
{
|
|
@@ -3839,7 +3913,7 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3839
3913
|
|
|
3840
3914
|
switch (this .geometryType)
|
|
3841
3915
|
{
|
|
3842
|
-
case ParticleSystems_GeometryTypes.GEOMETRY:
|
|
3916
|
+
case ParticleSystems_GeometryTypes .GEOMETRY:
|
|
3843
3917
|
{
|
|
3844
3918
|
const geometryNode = this .getGeometry ();
|
|
3845
3919
|
|
|
@@ -3848,7 +3922,7 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3848
3922
|
|
|
3849
3923
|
break;
|
|
3850
3924
|
}
|
|
3851
|
-
case ParticleSystems_GeometryTypes.SPRITE:
|
|
3925
|
+
case ParticleSystems_GeometryTypes .SPRITE:
|
|
3852
3926
|
{
|
|
3853
3927
|
this .updateSprite (gl, this .getScreenAlignedRotation (renderContext .modelViewMatrix));
|
|
3854
3928
|
// [fall trough]
|
|
@@ -3873,13 +3947,13 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3873
3947
|
}
|
|
3874
3948
|
}
|
|
3875
3949
|
},
|
|
3876
|
-
display
|
|
3950
|
+
display (gl, renderContext)
|
|
3877
3951
|
{
|
|
3878
3952
|
// Display geometry.
|
|
3879
3953
|
|
|
3880
3954
|
switch (this .geometryType)
|
|
3881
3955
|
{
|
|
3882
|
-
case ParticleSystems_GeometryTypes.GEOMETRY:
|
|
3956
|
+
case ParticleSystems_GeometryTypes .GEOMETRY:
|
|
3883
3957
|
{
|
|
3884
3958
|
if (this .numParticles)
|
|
3885
3959
|
{
|
|
@@ -3891,15 +3965,15 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
3891
3965
|
|
|
3892
3966
|
break;
|
|
3893
3967
|
}
|
|
3894
|
-
case ParticleSystems_GeometryTypes.SPRITE:
|
|
3968
|
+
case ParticleSystems_GeometryTypes .SPRITE:
|
|
3895
3969
|
{
|
|
3896
3970
|
this .updateSprite (gl, this .getScreenAlignedRotation (renderContext .modelViewMatrix));
|
|
3897
3971
|
// [fall trough]
|
|
3898
3972
|
}
|
|
3899
|
-
case ParticleSystems_GeometryTypes.QUAD:
|
|
3900
|
-
case ParticleSystems_GeometryTypes.TRIANGLE:
|
|
3973
|
+
case ParticleSystems_GeometryTypes .QUAD:
|
|
3974
|
+
case ParticleSystems_GeometryTypes .TRIANGLE:
|
|
3901
3975
|
{
|
|
3902
|
-
const positiveScale = Matrix4_default().prototype.determinant3.call (renderContext .modelViewMatrix) > 0;
|
|
3976
|
+
const positiveScale = Matrix4_default().prototype .determinant3 .call (renderContext .modelViewMatrix) > 0;
|
|
3903
3977
|
|
|
3904
3978
|
gl .frontFace (positiveScale ? gl .CCW : gl .CW);
|
|
3905
3979
|
gl .enable (gl .CULL_FACE);
|
|
@@ -4007,13 +4081,65 @@ ParticleSystem .prototype = Object .assign (Object .create ((X3DShapeNode_defaul
|
|
|
4007
4081
|
})(),
|
|
4008
4082
|
});
|
|
4009
4083
|
|
|
4084
|
+
Object .defineProperties (ParticleSystem,
|
|
4085
|
+
{
|
|
4086
|
+
typeName:
|
|
4087
|
+
{
|
|
4088
|
+
value: "ParticleSystem",
|
|
4089
|
+
enumerable: true,
|
|
4090
|
+
},
|
|
4091
|
+
componentName:
|
|
4092
|
+
{
|
|
4093
|
+
value: "ParticleSystems",
|
|
4094
|
+
enumerable: true,
|
|
4095
|
+
},
|
|
4096
|
+
containerField:
|
|
4097
|
+
{
|
|
4098
|
+
value: "children",
|
|
4099
|
+
enumerable: true,
|
|
4100
|
+
},
|
|
4101
|
+
specificationRange:
|
|
4102
|
+
{
|
|
4103
|
+
value: Object .freeze (["3.2", "Infinity"]),
|
|
4104
|
+
enumerable: true,
|
|
4105
|
+
},
|
|
4106
|
+
fieldDefinitions:
|
|
4107
|
+
{
|
|
4108
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
4109
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
4110
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
4111
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "createParticles", new (Fields_default()).SFBool (true)),
|
|
4112
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "geometryType", new (Fields_default()).SFString ("QUAD")),
|
|
4113
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxParticles", new (Fields_default()).SFInt32 (200)),
|
|
4114
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "particleLifetime", new (Fields_default()).SFFloat (5)),
|
|
4115
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "lifetimeVariation", new (Fields_default()).SFFloat (0.25)),
|
|
4116
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "particleSize", new (Fields_default()).SFVec2f (0.02, 0.02)),
|
|
4117
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "emitter", new (Fields_default()).SFNode ()),
|
|
4118
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "physics", new (Fields_default()).MFNode ()),
|
|
4119
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "colorKey", new (Fields_default()).MFFloat ()),
|
|
4120
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "color", new (Fields_default()).SFNode ()),
|
|
4121
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "texCoordKey", new (Fields_default()).MFFloat ()),
|
|
4122
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "texCoord", new (Fields_default()).SFNode ()),
|
|
4123
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "isActive", new (Fields_default()).SFBool ()),
|
|
4124
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
|
|
4125
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "castShadow", new (Fields_default()).SFBool (true)),
|
|
4126
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
|
|
4127
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
|
|
4128
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f ()),
|
|
4129
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "appearance", new (Fields_default()).SFNode ()),
|
|
4130
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "geometry", new (Fields_default()).SFNode ()),
|
|
4131
|
+
]),
|
|
4132
|
+
enumerable: true,
|
|
4133
|
+
},
|
|
4134
|
+
});
|
|
4135
|
+
|
|
4010
4136
|
const ParticleSystem_default_ = ParticleSystem;
|
|
4011
4137
|
;
|
|
4012
4138
|
|
|
4013
4139
|
Namespace_default().set ("x_ite/Components/ParticleSystems/ParticleSystem", ParticleSystem_default_);
|
|
4014
4140
|
/* harmony default export */ const ParticleSystems_ParticleSystem = (ParticleSystem_default_);
|
|
4015
4141
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/IndexedLineSet\")"
|
|
4016
|
-
const IndexedLineSet_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
4142
|
+
const IndexedLineSet_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Rendering/IndexedLineSet");
|
|
4017
4143
|
var IndexedLineSet_default = /*#__PURE__*/__webpack_require__.n(IndexedLineSet_namespaceObject);
|
|
4018
4144
|
;// CONCATENATED MODULE: ./src/x_ite/Components/ParticleSystems/PolylineEmitter.js
|
|
4019
4145
|
/*******************************************************************************
|
|
@@ -4073,7 +4199,7 @@ var IndexedLineSet_default = /*#__PURE__*/__webpack_require__.n(IndexedLineSet_n
|
|
|
4073
4199
|
|
|
4074
4200
|
function PolylineEmitter (executionContext)
|
|
4075
4201
|
{
|
|
4076
|
-
ParticleSystems_X3DParticleEmitterNode.call (this, executionContext);
|
|
4202
|
+
ParticleSystems_X3DParticleEmitterNode .call (this, executionContext);
|
|
4077
4203
|
|
|
4078
4204
|
this .addType ((X3DConstants_default()).PolylineEmitter);
|
|
4079
4205
|
|
|
@@ -4127,39 +4253,11 @@ function PolylineEmitter (executionContext)
|
|
|
4127
4253
|
}`);
|
|
4128
4254
|
}
|
|
4129
4255
|
|
|
4130
|
-
|
|
4256
|
+
Object .assign (Object .setPrototypeOf (PolylineEmitter .prototype, ParticleSystems_X3DParticleEmitterNode .prototype),
|
|
4131
4257
|
{
|
|
4132
|
-
|
|
4133
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
4134
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
4135
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "on", new (Fields_default()).SFBool (true)),
|
|
4136
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "direction", new (Fields_default()).SFVec3f (0, 1, 0)),
|
|
4137
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "speed", new (Fields_default()).SFFloat ()),
|
|
4138
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "variation", new (Fields_default()).SFFloat (0.25)),
|
|
4139
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "mass", new (Fields_default()).SFFloat ()),
|
|
4140
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceArea", new (Fields_default()).SFFloat ()),
|
|
4141
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "coordIndex", new (Fields_default()).MFInt32 (-1)),
|
|
4142
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "coord", new (Fields_default()).SFNode ()),
|
|
4143
|
-
]),
|
|
4144
|
-
getTypeName: function ()
|
|
4145
|
-
{
|
|
4146
|
-
return "PolylineEmitter";
|
|
4147
|
-
},
|
|
4148
|
-
getComponentName: function ()
|
|
4149
|
-
{
|
|
4150
|
-
return "ParticleSystems";
|
|
4151
|
-
},
|
|
4152
|
-
getContainerField: function ()
|
|
4153
|
-
{
|
|
4154
|
-
return "emitter";
|
|
4155
|
-
},
|
|
4156
|
-
getSpecificationRange: function ()
|
|
4258
|
+
initialize ()
|
|
4157
4259
|
{
|
|
4158
|
-
|
|
4159
|
-
},
|
|
4160
|
-
initialize: function ()
|
|
4161
|
-
{
|
|
4162
|
-
ParticleSystems_X3DParticleEmitterNode.prototype.initialize.call (this);
|
|
4260
|
+
ParticleSystems_X3DParticleEmitterNode .prototype .initialize .call (this);
|
|
4163
4261
|
|
|
4164
4262
|
const browser = this .getBrowser ();
|
|
4165
4263
|
|
|
@@ -4241,20 +4339,59 @@ PolylineEmitter .prototype = Object .assign (Object .create (ParticleSystems_X3D
|
|
|
4241
4339
|
}
|
|
4242
4340
|
};
|
|
4243
4341
|
})(),
|
|
4244
|
-
activateTextures
|
|
4342
|
+
activateTextures (gl, program)
|
|
4245
4343
|
{
|
|
4246
4344
|
gl .activeTexture (gl .TEXTURE0 + program .polylinesTextureUnit);
|
|
4247
4345
|
gl .bindTexture (gl .TEXTURE_2D, this .polylinesTexture);
|
|
4248
4346
|
},
|
|
4249
4347
|
});
|
|
4250
4348
|
|
|
4349
|
+
Object .defineProperties (PolylineEmitter,
|
|
4350
|
+
{
|
|
4351
|
+
typeName:
|
|
4352
|
+
{
|
|
4353
|
+
value: "PolylineEmitter",
|
|
4354
|
+
enumerable: true,
|
|
4355
|
+
},
|
|
4356
|
+
componentName:
|
|
4357
|
+
{
|
|
4358
|
+
value: "ParticleSystems",
|
|
4359
|
+
enumerable: true,
|
|
4360
|
+
},
|
|
4361
|
+
containerField:
|
|
4362
|
+
{
|
|
4363
|
+
value: "emitter",
|
|
4364
|
+
enumerable: true,
|
|
4365
|
+
},
|
|
4366
|
+
specificationRange:
|
|
4367
|
+
{
|
|
4368
|
+
value: Object .freeze (["3.2", "Infinity"]),
|
|
4369
|
+
enumerable: true,
|
|
4370
|
+
},
|
|
4371
|
+
fieldDefinitions:
|
|
4372
|
+
{
|
|
4373
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
4374
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
4375
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "on", new (Fields_default()).SFBool (true)),
|
|
4376
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "direction", new (Fields_default()).SFVec3f (0, 1, 0)),
|
|
4377
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "speed", new (Fields_default()).SFFloat ()),
|
|
4378
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "variation", new (Fields_default()).SFFloat (0.25)),
|
|
4379
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "mass", new (Fields_default()).SFFloat ()),
|
|
4380
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceArea", new (Fields_default()).SFFloat ()),
|
|
4381
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "coordIndex", new (Fields_default()).MFInt32 (-1)),
|
|
4382
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "coord", new (Fields_default()).SFNode ()),
|
|
4383
|
+
]),
|
|
4384
|
+
enumerable: true,
|
|
4385
|
+
},
|
|
4386
|
+
});
|
|
4387
|
+
|
|
4251
4388
|
const PolylineEmitter_default_ = PolylineEmitter;
|
|
4252
4389
|
;
|
|
4253
4390
|
|
|
4254
4391
|
Namespace_default().set ("x_ite/Components/ParticleSystems/PolylineEmitter", PolylineEmitter_default_);
|
|
4255
4392
|
/* harmony default export */ const ParticleSystems_PolylineEmitter = (PolylineEmitter_default_);
|
|
4256
4393
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Triangle3\")"
|
|
4257
|
-
const Triangle3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
4394
|
+
const Triangle3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Math/Geometry/Triangle3");
|
|
4258
4395
|
var Triangle3_default = /*#__PURE__*/__webpack_require__.n(Triangle3_namespaceObject);
|
|
4259
4396
|
;// CONCATENATED MODULE: ./src/x_ite/Components/ParticleSystems/SurfaceEmitter.js
|
|
4260
4397
|
/*******************************************************************************
|
|
@@ -4315,7 +4452,7 @@ var Triangle3_default = /*#__PURE__*/__webpack_require__.n(Triangle3_namespaceOb
|
|
|
4315
4452
|
|
|
4316
4453
|
function SurfaceEmitter (executionContext)
|
|
4317
4454
|
{
|
|
4318
|
-
ParticleSystems_X3DParticleEmitterNode.call (this, executionContext);
|
|
4455
|
+
ParticleSystems_X3DParticleEmitterNode .call (this, executionContext);
|
|
4319
4456
|
|
|
4320
4457
|
this .addType ((X3DConstants_default()).SurfaceEmitter);
|
|
4321
4458
|
|
|
@@ -4354,37 +4491,11 @@ function SurfaceEmitter (executionContext)
|
|
|
4354
4491
|
}`);
|
|
4355
4492
|
}
|
|
4356
4493
|
|
|
4357
|
-
|
|
4494
|
+
Object .assign (Object .setPrototypeOf (SurfaceEmitter .prototype, ParticleSystems_X3DParticleEmitterNode .prototype),
|
|
4358
4495
|
{
|
|
4359
|
-
|
|
4360
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
4361
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
4362
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "on", new (Fields_default()).SFBool (true)),
|
|
4363
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "speed", new (Fields_default()).SFFloat ()),
|
|
4364
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "variation", new (Fields_default()).SFFloat (0.25)),
|
|
4365
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "mass", new (Fields_default()).SFFloat ()),
|
|
4366
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceArea", new (Fields_default()).SFFloat ()),
|
|
4367
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surface", new (Fields_default()).SFNode ()),
|
|
4368
|
-
]),
|
|
4369
|
-
getTypeName: function ()
|
|
4370
|
-
{
|
|
4371
|
-
return "SurfaceEmitter";
|
|
4372
|
-
},
|
|
4373
|
-
getComponentName: function ()
|
|
4374
|
-
{
|
|
4375
|
-
return "ParticleSystems";
|
|
4376
|
-
},
|
|
4377
|
-
getContainerField: function ()
|
|
4378
|
-
{
|
|
4379
|
-
return "emitter";
|
|
4380
|
-
},
|
|
4381
|
-
getSpecificationRange: function ()
|
|
4382
|
-
{
|
|
4383
|
-
return ["3.2", "Infinity"];
|
|
4384
|
-
},
|
|
4385
|
-
initialize: function ()
|
|
4496
|
+
initialize ()
|
|
4386
4497
|
{
|
|
4387
|
-
ParticleSystems_X3DParticleEmitterNode.prototype.initialize.call (this);
|
|
4498
|
+
ParticleSystems_X3DParticleEmitterNode .prototype .initialize .call (this);
|
|
4388
4499
|
|
|
4389
4500
|
const browser = this .getBrowser ();
|
|
4390
4501
|
|
|
@@ -4401,7 +4512,7 @@ SurfaceEmitter .prototype = Object .assign (Object .create (ParticleSystems_X3DP
|
|
|
4401
4512
|
|
|
4402
4513
|
this .set_surface__ ();
|
|
4403
4514
|
},
|
|
4404
|
-
set_surface__
|
|
4515
|
+
set_surface__ ()
|
|
4405
4516
|
{
|
|
4406
4517
|
if (this .surfaceNode)
|
|
4407
4518
|
{
|
|
@@ -4420,7 +4531,7 @@ SurfaceEmitter .prototype = Object .assign (Object .create (ParticleSystems_X3DP
|
|
|
4420
4531
|
this .set_solid__ ();
|
|
4421
4532
|
this .set_geometry__ ();
|
|
4422
4533
|
},
|
|
4423
|
-
set_solid__
|
|
4534
|
+
set_solid__ ()
|
|
4424
4535
|
{
|
|
4425
4536
|
if (this .surfaceNode)
|
|
4426
4537
|
this .setUniform ("uniform1i", "solid", this .surfaceNode ._solid .getValue ());
|
|
@@ -4490,20 +4601,57 @@ SurfaceEmitter .prototype = Object .assign (Object .create (ParticleSystems_X3DP
|
|
|
4490
4601
|
}
|
|
4491
4602
|
};
|
|
4492
4603
|
})(),
|
|
4493
|
-
activateTextures
|
|
4604
|
+
activateTextures (gl, program)
|
|
4494
4605
|
{
|
|
4495
4606
|
gl .activeTexture (gl .TEXTURE0 + program .surfaceTextureUnit);
|
|
4496
4607
|
gl .bindTexture (gl .TEXTURE_2D, this .surfaceTexture);
|
|
4497
4608
|
},
|
|
4498
4609
|
});
|
|
4499
4610
|
|
|
4611
|
+
Object .defineProperties (SurfaceEmitter,
|
|
4612
|
+
{
|
|
4613
|
+
typeName:
|
|
4614
|
+
{
|
|
4615
|
+
value: "SurfaceEmitter",
|
|
4616
|
+
enumerable: true,
|
|
4617
|
+
},
|
|
4618
|
+
componentName:
|
|
4619
|
+
{
|
|
4620
|
+
value: "ParticleSystems",
|
|
4621
|
+
enumerable: true,
|
|
4622
|
+
},
|
|
4623
|
+
containerField:
|
|
4624
|
+
{
|
|
4625
|
+
value: "emitter",
|
|
4626
|
+
enumerable: true,
|
|
4627
|
+
},
|
|
4628
|
+
specificationRange:
|
|
4629
|
+
{
|
|
4630
|
+
value: Object .freeze (["3.2", "Infinity"]),
|
|
4631
|
+
enumerable: true,
|
|
4632
|
+
},
|
|
4633
|
+
fieldDefinitions:
|
|
4634
|
+
{
|
|
4635
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
4636
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
4637
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "on", new (Fields_default()).SFBool (true)),
|
|
4638
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "speed", new (Fields_default()).SFFloat ()),
|
|
4639
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "variation", new (Fields_default()).SFFloat (0.25)),
|
|
4640
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "mass", new (Fields_default()).SFFloat ()),
|
|
4641
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceArea", new (Fields_default()).SFFloat ()),
|
|
4642
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surface", new (Fields_default()).SFNode ()),
|
|
4643
|
+
]),
|
|
4644
|
+
enumerable: true,
|
|
4645
|
+
},
|
|
4646
|
+
});
|
|
4647
|
+
|
|
4500
4648
|
const SurfaceEmitter_default_ = SurfaceEmitter;
|
|
4501
4649
|
;
|
|
4502
4650
|
|
|
4503
4651
|
Namespace_default().set ("x_ite/Components/ParticleSystems/SurfaceEmitter", SurfaceEmitter_default_);
|
|
4504
4652
|
/* harmony default export */ const ParticleSystems_SurfaceEmitter = (SurfaceEmitter_default_);
|
|
4505
4653
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Geometry3D/IndexedFaceSet\")"
|
|
4506
|
-
const IndexedFaceSet_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
4654
|
+
const IndexedFaceSet_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Geometry3D/IndexedFaceSet");
|
|
4507
4655
|
var IndexedFaceSet_default = /*#__PURE__*/__webpack_require__.n(IndexedFaceSet_namespaceObject);
|
|
4508
4656
|
;// CONCATENATED MODULE: ./src/x_ite/Components/ParticleSystems/VolumeEmitter.js
|
|
4509
4657
|
/*******************************************************************************
|
|
@@ -4565,7 +4713,7 @@ var IndexedFaceSet_default = /*#__PURE__*/__webpack_require__.n(IndexedFaceSet_n
|
|
|
4565
4713
|
|
|
4566
4714
|
function VolumeEmitter (executionContext)
|
|
4567
4715
|
{
|
|
4568
|
-
ParticleSystems_X3DParticleEmitterNode.call (this, executionContext);
|
|
4716
|
+
ParticleSystems_X3DParticleEmitterNode .call (this, executionContext);
|
|
4569
4717
|
|
|
4570
4718
|
this .addType ((X3DConstants_default()).VolumeEmitter);
|
|
4571
4719
|
|
|
@@ -4636,40 +4784,11 @@ function VolumeEmitter (executionContext)
|
|
|
4636
4784
|
}`);
|
|
4637
4785
|
}
|
|
4638
4786
|
|
|
4639
|
-
|
|
4787
|
+
Object .assign (Object .setPrototypeOf (VolumeEmitter .prototype, ParticleSystems_X3DParticleEmitterNode .prototype),
|
|
4640
4788
|
{
|
|
4641
|
-
|
|
4642
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
4643
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
4644
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "on", new (Fields_default()).SFBool (true)),
|
|
4645
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "internal", new (Fields_default()).SFBool (true)),
|
|
4646
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "direction", new (Fields_default()).SFVec3f (0, 1, 0)),
|
|
4647
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "speed", new (Fields_default()).SFFloat ()),
|
|
4648
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "variation", new (Fields_default()).SFFloat (0.25)),
|
|
4649
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "mass", new (Fields_default()).SFFloat ()),
|
|
4650
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceArea", new (Fields_default()).SFFloat ()),
|
|
4651
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "coordIndex", new (Fields_default()).MFInt32 (-1)),
|
|
4652
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "coord", new (Fields_default()).SFNode ()),
|
|
4653
|
-
]),
|
|
4654
|
-
getTypeName: function ()
|
|
4789
|
+
initialize ()
|
|
4655
4790
|
{
|
|
4656
|
-
|
|
4657
|
-
},
|
|
4658
|
-
getComponentName: function ()
|
|
4659
|
-
{
|
|
4660
|
-
return "ParticleSystems";
|
|
4661
|
-
},
|
|
4662
|
-
getContainerField: function ()
|
|
4663
|
-
{
|
|
4664
|
-
return "emitter";
|
|
4665
|
-
},
|
|
4666
|
-
getSpecificationRange: function ()
|
|
4667
|
-
{
|
|
4668
|
-
return ["3.2", "Infinity"];
|
|
4669
|
-
},
|
|
4670
|
-
initialize: function ()
|
|
4671
|
-
{
|
|
4672
|
-
ParticleSystems_X3DParticleEmitterNode.prototype.initialize.call (this);
|
|
4791
|
+
ParticleSystems_X3DParticleEmitterNode .prototype .initialize .call (this);
|
|
4673
4792
|
|
|
4674
4793
|
const browser = this .getBrowser ();
|
|
4675
4794
|
|
|
@@ -4774,20 +4893,60 @@ VolumeEmitter .prototype = Object .assign (Object .create (ParticleSystems_X3DPa
|
|
|
4774
4893
|
}
|
|
4775
4894
|
};
|
|
4776
4895
|
})(),
|
|
4777
|
-
activateTextures
|
|
4896
|
+
activateTextures (gl, program)
|
|
4778
4897
|
{
|
|
4779
4898
|
gl .activeTexture (gl .TEXTURE0 + program .volumeTextureUnit);
|
|
4780
4899
|
gl .bindTexture (gl .TEXTURE_2D, this .volumeTexture);
|
|
4781
4900
|
},
|
|
4782
4901
|
});
|
|
4783
4902
|
|
|
4903
|
+
Object .defineProperties (VolumeEmitter,
|
|
4904
|
+
{
|
|
4905
|
+
typeName:
|
|
4906
|
+
{
|
|
4907
|
+
value: "VolumeEmitter",
|
|
4908
|
+
enumerable: true,
|
|
4909
|
+
},
|
|
4910
|
+
componentName:
|
|
4911
|
+
{
|
|
4912
|
+
value: "ParticleSystems",
|
|
4913
|
+
enumerable: true,
|
|
4914
|
+
},
|
|
4915
|
+
containerField:
|
|
4916
|
+
{
|
|
4917
|
+
value: "emitter",
|
|
4918
|
+
enumerable: true,
|
|
4919
|
+
},
|
|
4920
|
+
specificationRange:
|
|
4921
|
+
{
|
|
4922
|
+
value: Object .freeze (["3.2", "Infinity"]),
|
|
4923
|
+
enumerable: true,
|
|
4924
|
+
},
|
|
4925
|
+
fieldDefinitions:
|
|
4926
|
+
{
|
|
4927
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
4928
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
4929
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "on", new (Fields_default()).SFBool (true)),
|
|
4930
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "internal", new (Fields_default()).SFBool (true)),
|
|
4931
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "direction", new (Fields_default()).SFVec3f (0, 1, 0)),
|
|
4932
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "speed", new (Fields_default()).SFFloat ()),
|
|
4933
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "variation", new (Fields_default()).SFFloat (0.25)),
|
|
4934
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "mass", new (Fields_default()).SFFloat ()),
|
|
4935
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceArea", new (Fields_default()).SFFloat ()),
|
|
4936
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "coordIndex", new (Fields_default()).MFInt32 (-1)),
|
|
4937
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "coord", new (Fields_default()).SFNode ()),
|
|
4938
|
+
]),
|
|
4939
|
+
enumerable: true,
|
|
4940
|
+
},
|
|
4941
|
+
});
|
|
4942
|
+
|
|
4784
4943
|
const VolumeEmitter_default_ = VolumeEmitter;
|
|
4785
4944
|
;
|
|
4786
4945
|
|
|
4787
4946
|
Namespace_default().set ("x_ite/Components/ParticleSystems/VolumeEmitter", VolumeEmitter_default_);
|
|
4788
4947
|
/* harmony default export */ const ParticleSystems_VolumeEmitter = (VolumeEmitter_default_);
|
|
4789
4948
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithm\")"
|
|
4790
|
-
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
4949
|
+
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Math/Algorithm");
|
|
4791
4950
|
var Algorithm_default = /*#__PURE__*/__webpack_require__.n(Algorithm_namespaceObject);
|
|
4792
4951
|
;// CONCATENATED MODULE: ./src/x_ite/Components/ParticleSystems/WindPhysicsModel.js
|
|
4793
4952
|
/*******************************************************************************
|
|
@@ -4847,41 +5006,16 @@ var Algorithm_default = /*#__PURE__*/__webpack_require__.n(Algorithm_namespaceOb
|
|
|
4847
5006
|
|
|
4848
5007
|
function WindPhysicsModel (executionContext)
|
|
4849
5008
|
{
|
|
4850
|
-
ParticleSystems_X3DParticlePhysicsModelNode.call (this, executionContext);
|
|
5009
|
+
ParticleSystems_X3DParticlePhysicsModelNode .call (this, executionContext);
|
|
4851
5010
|
|
|
4852
5011
|
this .addType ((X3DConstants_default()).WindPhysicsModel);
|
|
4853
5012
|
|
|
4854
5013
|
this ._speed .setUnit ("speed");
|
|
4855
5014
|
}
|
|
4856
5015
|
|
|
4857
|
-
|
|
5016
|
+
Object .assign (Object .setPrototypeOf (WindPhysicsModel .prototype, ParticleSystems_X3DParticlePhysicsModelNode .prototype),
|
|
4858
5017
|
{
|
|
4859
|
-
|
|
4860
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
4861
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
4862
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
4863
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "direction", new (Fields_default()).SFVec3f ()),
|
|
4864
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "speed", new (Fields_default()).SFFloat (0.1)),
|
|
4865
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "gustiness", new (Fields_default()).SFFloat (0.1)),
|
|
4866
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "turbulence", new (Fields_default()).SFFloat ()),
|
|
4867
|
-
]),
|
|
4868
|
-
getTypeName: function ()
|
|
4869
|
-
{
|
|
4870
|
-
return "WindPhysicsModel";
|
|
4871
|
-
},
|
|
4872
|
-
getComponentName: function ()
|
|
4873
|
-
{
|
|
4874
|
-
return "ParticleSystems";
|
|
4875
|
-
},
|
|
4876
|
-
getContainerField: function ()
|
|
4877
|
-
{
|
|
4878
|
-
return "physics";
|
|
4879
|
-
},
|
|
4880
|
-
getSpecificationRange: function ()
|
|
4881
|
-
{
|
|
4882
|
-
return ["3.2", "Infinity"];
|
|
4883
|
-
},
|
|
4884
|
-
getRandomSpeed: function (emitterNode)
|
|
5018
|
+
getRandomSpeed (emitterNode)
|
|
4885
5019
|
{
|
|
4886
5020
|
const
|
|
4887
5021
|
speed = Math .max (0, this ._speed .getValue ()),
|
|
@@ -4920,6 +5054,42 @@ WindPhysicsModel .prototype = Object .assign (Object .create (ParticleSystems_X3
|
|
|
4920
5054
|
})(),
|
|
4921
5055
|
});
|
|
4922
5056
|
|
|
5057
|
+
Object .defineProperties (WindPhysicsModel,
|
|
5058
|
+
{
|
|
5059
|
+
typeName:
|
|
5060
|
+
{
|
|
5061
|
+
value: "WindPhysicsModel",
|
|
5062
|
+
enumerable: true,
|
|
5063
|
+
},
|
|
5064
|
+
componentName:
|
|
5065
|
+
{
|
|
5066
|
+
value: "ParticleSystems",
|
|
5067
|
+
enumerable: true,
|
|
5068
|
+
},
|
|
5069
|
+
containerField:
|
|
5070
|
+
{
|
|
5071
|
+
value: "physics",
|
|
5072
|
+
enumerable: true,
|
|
5073
|
+
},
|
|
5074
|
+
specificationRange:
|
|
5075
|
+
{
|
|
5076
|
+
value: Object .freeze (["3.2", "Infinity"]),
|
|
5077
|
+
enumerable: true,
|
|
5078
|
+
},
|
|
5079
|
+
fieldDefinitions:
|
|
5080
|
+
{
|
|
5081
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
5082
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
5083
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
5084
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "direction", new (Fields_default()).SFVec3f ()),
|
|
5085
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "speed", new (Fields_default()).SFFloat (0.1)),
|
|
5086
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "gustiness", new (Fields_default()).SFFloat (0.1)),
|
|
5087
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "turbulence", new (Fields_default()).SFFloat ()),
|
|
5088
|
+
]),
|
|
5089
|
+
enumerable: true,
|
|
5090
|
+
},
|
|
5091
|
+
});
|
|
5092
|
+
|
|
4923
5093
|
const WindPhysicsModel_default_ = WindPhysicsModel;
|
|
4924
5094
|
;
|
|
4925
5095
|
|
|
@@ -4988,26 +5158,26 @@ Namespace_default().set ("x_ite/Components/ParticleSystems/WindPhysicsModel", Wi
|
|
|
4988
5158
|
|
|
4989
5159
|
|
|
4990
5160
|
|
|
4991
|
-
Components_default().
|
|
5161
|
+
Components_default().add ({
|
|
4992
5162
|
name: "ParticleSystems",
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5163
|
+
concreteNodes:
|
|
5164
|
+
[
|
|
5165
|
+
ParticleSystems_BoundedPhysicsModel,
|
|
5166
|
+
ParticleSystems_ConeEmitter,
|
|
5167
|
+
ParticleSystems_ExplosionEmitter,
|
|
5168
|
+
ParticleSystems_ForcePhysicsModel,
|
|
5169
|
+
ParticleSystems_ParticleSystem,
|
|
5170
|
+
ParticleSystems_PointEmitter,
|
|
5171
|
+
ParticleSystems_PolylineEmitter,
|
|
5172
|
+
ParticleSystems_SurfaceEmitter,
|
|
5173
|
+
ParticleSystems_VolumeEmitter,
|
|
5174
|
+
ParticleSystems_WindPhysicsModel,
|
|
5175
|
+
],
|
|
5176
|
+
abstractNodes:
|
|
5177
|
+
[
|
|
5178
|
+
ParticleSystems_X3DParticleEmitterNode,
|
|
5179
|
+
ParticleSystems_X3DParticlePhysicsModelNode,
|
|
5180
|
+
],
|
|
5011
5181
|
browserContext: ParticleSystems_X3DParticleSystemsContext,
|
|
5012
5182
|
});
|
|
5013
5183
|
|
|
@@ -5016,5 +5186,7 @@ const ParticleSystems_default_ = undefined;
|
|
|
5016
5186
|
|
|
5017
5187
|
Namespace_default().set ("assets/components/ParticleSystems", ParticleSystems_default_);
|
|
5018
5188
|
/* harmony default export */ const ParticleSystems = ((/* unused pure expression or super */ null && (ParticleSystems_default_)));
|
|
5189
|
+
})();
|
|
5190
|
+
|
|
5019
5191
|
/******/ })()
|
|
5020
5192
|
;
|