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,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v8.
|
|
1
|
+
/* X_ITE v8.8.0 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,28 +39,28 @@ var __webpack_exports__ = {};
|
|
|
39
39
|
// UNUSED EXPORTS: default
|
|
40
40
|
|
|
41
41
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
42
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components");
|
|
43
43
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
44
44
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
45
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
45
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Fields");
|
|
46
46
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
47
47
|
;// 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.
|
|
48
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
49
49
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
50
50
|
;// 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.
|
|
51
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
52
52
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
53
53
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
|
|
54
|
-
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
54
|
+
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Core/X3DSensorNode");
|
|
55
55
|
var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
|
|
56
56
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
|
|
57
|
-
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
57
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Rendering/TraverseType");
|
|
58
58
|
var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
|
|
59
59
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
60
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
60
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Base/X3DConstants");
|
|
61
61
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
62
62
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
63
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
63
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Namespace");
|
|
64
64
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
65
65
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Picking/MatchCriterion.js
|
|
66
66
|
/*******************************************************************************
|
|
@@ -249,7 +249,7 @@ const SortOrder_default_ = SortOrder;
|
|
|
249
249
|
Namespace_default().set ("x_ite/Browser/Picking/SortOrder", SortOrder_default_);
|
|
250
250
|
/* harmony default export */ const Picking_SortOrder = (SortOrder_default_);
|
|
251
251
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
252
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
252
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Math/Numbers/Matrix4");
|
|
253
253
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
254
254
|
;// CONCATENATED MODULE: ./src/standard/Math/Algorithms/QuickSort.js
|
|
255
255
|
/*******************************************************************************
|
|
@@ -307,18 +307,18 @@ function QuickSort (array, compare)
|
|
|
307
307
|
this .compare = compare;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
QuickSort .prototype
|
|
310
|
+
Object .assign (QuickSort .prototype,
|
|
311
311
|
{
|
|
312
|
-
compare
|
|
312
|
+
compare (lhs, rhs)
|
|
313
313
|
{
|
|
314
314
|
return lhs < rhs;
|
|
315
315
|
},
|
|
316
|
-
sort
|
|
316
|
+
sort (first, last)
|
|
317
317
|
{
|
|
318
318
|
if (last - first > 1)
|
|
319
319
|
this .quicksort (first, last - 1);
|
|
320
320
|
},
|
|
321
|
-
quicksort
|
|
321
|
+
quicksort (lo, hi)
|
|
322
322
|
{
|
|
323
323
|
let
|
|
324
324
|
i = lo,
|
|
@@ -355,7 +355,7 @@ QuickSort .prototype =
|
|
|
355
355
|
if (lo < j) this .quicksort (lo, j);
|
|
356
356
|
if (i < hi) this .quicksort (i, hi);
|
|
357
357
|
},
|
|
358
|
-
};
|
|
358
|
+
});
|
|
359
359
|
|
|
360
360
|
const QuickSort_default_ = QuickSort;
|
|
361
361
|
;
|
|
@@ -363,7 +363,7 @@ const QuickSort_default_ = QuickSort;
|
|
|
363
363
|
Namespace_default().set ("standard/Math/Algorithms/QuickSort", QuickSort_default_);
|
|
364
364
|
/* harmony default export */ const Algorithms_QuickSort = (QuickSort_default_);
|
|
365
365
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Utility/ObjectCache\")"
|
|
366
|
-
const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
366
|
+
const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Utility/ObjectCache");
|
|
367
367
|
var ObjectCache_default = /*#__PURE__*/__webpack_require__.n(ObjectCache_namespaceObject);
|
|
368
368
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/X3DPickSensorNode.js
|
|
369
369
|
/*******************************************************************************
|
|
@@ -435,8 +435,8 @@ function X3DPickSensorNode (executionContext)
|
|
|
435
435
|
this .addType ((X3DConstants_default()).X3DPickSensorNode);
|
|
436
436
|
|
|
437
437
|
this .objectType = new Set ();
|
|
438
|
-
this .intersectionType = Picking_IntersectionType.BOUNDS;
|
|
439
|
-
this .sortOrder = Picking_SortOrder.CLOSEST;
|
|
438
|
+
this .intersectionType = Picking_IntersectionType .BOUNDS;
|
|
439
|
+
this .sortOrder = Picking_SortOrder .CLOSEST;
|
|
440
440
|
this .pickTargetNodes = new Set ();
|
|
441
441
|
this .modelMatrices = [ ];
|
|
442
442
|
this .targets = [ ];
|
|
@@ -446,10 +446,9 @@ function X3DPickSensorNode (executionContext)
|
|
|
446
446
|
this .pickedGeometries = new (Fields_default()).MFNode (); // Must be unique for each X3DPickSensorNode.
|
|
447
447
|
}
|
|
448
448
|
|
|
449
|
-
|
|
449
|
+
Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, (X3DSensorNode_default()).prototype),
|
|
450
450
|
{
|
|
451
|
-
|
|
452
|
-
initialize: function ()
|
|
451
|
+
initialize ()
|
|
453
452
|
{
|
|
454
453
|
this .getLive () .addInterest ("set_live__", this);
|
|
455
454
|
|
|
@@ -466,27 +465,27 @@ X3DPickSensorNode .prototype = Object .assign (Object .create ((X3DSensorNode_de
|
|
|
466
465
|
this .set_sortOrder__ ();
|
|
467
466
|
this .set_pickTarget__ ();
|
|
468
467
|
},
|
|
469
|
-
getObjectType
|
|
468
|
+
getObjectType ()
|
|
470
469
|
{
|
|
471
470
|
return this .objectType;
|
|
472
471
|
},
|
|
473
|
-
getMatchCriterion
|
|
472
|
+
getMatchCriterion ()
|
|
474
473
|
{
|
|
475
474
|
return this .matchCriterion;
|
|
476
475
|
},
|
|
477
|
-
getIntersectionType
|
|
476
|
+
getIntersectionType ()
|
|
478
477
|
{
|
|
479
478
|
return this .intersectionType;
|
|
480
479
|
},
|
|
481
|
-
getSortOrder
|
|
480
|
+
getSortOrder ()
|
|
482
481
|
{
|
|
483
482
|
return this .sortOrder;
|
|
484
483
|
},
|
|
485
|
-
getModelMatrices
|
|
484
|
+
getModelMatrices ()
|
|
486
485
|
{
|
|
487
486
|
return this .modelMatrices;
|
|
488
487
|
},
|
|
489
|
-
getTargets
|
|
488
|
+
getTargets ()
|
|
490
489
|
{
|
|
491
490
|
return this .targets;
|
|
492
491
|
},
|
|
@@ -556,14 +555,14 @@ X3DPickSensorNode .prototype = Object .assign (Object .create ((X3DSensorNode_de
|
|
|
556
555
|
|
|
557
556
|
switch (this .sortOrder)
|
|
558
557
|
{
|
|
559
|
-
case Picking_SortOrder.ANY:
|
|
558
|
+
case Picking_SortOrder .ANY:
|
|
560
559
|
{
|
|
561
560
|
pickedTargets .length = 1;
|
|
562
561
|
pickedGeometries [0] = this .getPickedGeometry (pickedTargets [0]);
|
|
563
562
|
pickedGeometries .length = 1;
|
|
564
563
|
break;
|
|
565
564
|
}
|
|
566
|
-
case Picking_SortOrder.CLOSEST:
|
|
565
|
+
case Picking_SortOrder .CLOSEST:
|
|
567
566
|
{
|
|
568
567
|
this .pickedTargetsSorter .sort (0, pickedTargets .length);
|
|
569
568
|
|
|
@@ -572,7 +571,7 @@ X3DPickSensorNode .prototype = Object .assign (Object .create ((X3DSensorNode_de
|
|
|
572
571
|
pickedGeometries .length = 1;
|
|
573
572
|
break;
|
|
574
573
|
}
|
|
575
|
-
case Picking_SortOrder.ALL:
|
|
574
|
+
case Picking_SortOrder .ALL:
|
|
576
575
|
{
|
|
577
576
|
for (var i = 0, length = pickedTargets .length; i < length; ++ i)
|
|
578
577
|
pickedGeometries [i] = this .getPickedGeometry (pickedTargets [i]);
|
|
@@ -580,7 +579,7 @@ X3DPickSensorNode .prototype = Object .assign (Object .create ((X3DSensorNode_de
|
|
|
580
579
|
pickedGeometries .length = length;
|
|
581
580
|
break;
|
|
582
581
|
}
|
|
583
|
-
case Picking_SortOrder.ALL_SORTED:
|
|
582
|
+
case Picking_SortOrder .ALL_SORTED:
|
|
584
583
|
{
|
|
585
584
|
this .pickedTargetsSorter .sort (0, pickedTargets .length);
|
|
586
585
|
|
|
@@ -595,7 +594,7 @@ X3DPickSensorNode .prototype = Object .assign (Object .create ((X3DSensorNode_de
|
|
|
595
594
|
return pickedGeometries;
|
|
596
595
|
};
|
|
597
596
|
})(),
|
|
598
|
-
getPickedGeometry
|
|
597
|
+
getPickedGeometry (target)
|
|
599
598
|
{
|
|
600
599
|
var
|
|
601
600
|
executionContext = this .getExecutionContext (),
|
|
@@ -626,11 +625,11 @@ X3DPickSensorNode .prototype = Object .assign (Object .create ((X3DSensorNode_de
|
|
|
626
625
|
|
|
627
626
|
return null;
|
|
628
627
|
},
|
|
629
|
-
getPickedTargets
|
|
628
|
+
getPickedTargets ()
|
|
630
629
|
{
|
|
631
630
|
return this .pickedTargets;
|
|
632
631
|
},
|
|
633
|
-
set_live__
|
|
632
|
+
set_live__ ()
|
|
634
633
|
{
|
|
635
634
|
if (this .getLive () .getValue () && this ._enabled .getValue () && ! this .objectType .has ("NONE"))
|
|
636
635
|
{
|
|
@@ -643,7 +642,7 @@ X3DPickSensorNode .prototype = Object .assign (Object .create ((X3DSensorNode_de
|
|
|
643
642
|
this .setPickableObject (false);
|
|
644
643
|
}
|
|
645
644
|
},
|
|
646
|
-
set_objectType__
|
|
645
|
+
set_objectType__ ()
|
|
647
646
|
{
|
|
648
647
|
this .objectType .clear ();
|
|
649
648
|
|
|
@@ -657,9 +656,9 @@ X3DPickSensorNode .prototype = Object .assign (Object .create ((X3DSensorNode_de
|
|
|
657
656
|
set_matchCriterion__: (function ()
|
|
658
657
|
{
|
|
659
658
|
var matchCriterions = new Map ([
|
|
660
|
-
["MATCH_ANY", Picking_MatchCriterion.MATCH_ANY],
|
|
661
|
-
["MATCH_EVERY", Picking_MatchCriterion.MATCH_EVERY],
|
|
662
|
-
["MATCH_ONLY_ONE", Picking_MatchCriterion.MATCH_ONLY_ONE],
|
|
659
|
+
["MATCH_ANY", Picking_MatchCriterion .MATCH_ANY],
|
|
660
|
+
["MATCH_EVERY", Picking_MatchCriterion .MATCH_EVERY],
|
|
661
|
+
["MATCH_ONLY_ONE", Picking_MatchCriterion .MATCH_ONLY_ONE],
|
|
663
662
|
]);
|
|
664
663
|
|
|
665
664
|
return function ()
|
|
@@ -673,8 +672,8 @@ X3DPickSensorNode .prototype = Object .assign (Object .create ((X3DSensorNode_de
|
|
|
673
672
|
set_intersectionType__: (function ()
|
|
674
673
|
{
|
|
675
674
|
var intersectionTypes = new Map ([
|
|
676
|
-
["BOUNDS", Picking_IntersectionType.BOUNDS],
|
|
677
|
-
["GEOMETRY", Picking_IntersectionType.GEOMETRY],
|
|
675
|
+
["BOUNDS", Picking_IntersectionType .BOUNDS],
|
|
676
|
+
["GEOMETRY", Picking_IntersectionType .GEOMETRY],
|
|
678
677
|
]);
|
|
679
678
|
|
|
680
679
|
return function ()
|
|
@@ -682,16 +681,16 @@ X3DPickSensorNode .prototype = Object .assign (Object .create ((X3DSensorNode_de
|
|
|
682
681
|
this .intersectionType = intersectionTypes .get (this ._intersectionType .getValue ());
|
|
683
682
|
|
|
684
683
|
if (this .intersectionType === undefined)
|
|
685
|
-
this .intersectionType = Picking_IntersectionType.BOUNDS;
|
|
684
|
+
this .intersectionType = Picking_IntersectionType .BOUNDS;
|
|
686
685
|
};
|
|
687
686
|
})(),
|
|
688
687
|
set_sortOrder__: (function ()
|
|
689
688
|
{
|
|
690
689
|
var sortOrders = new Map ([
|
|
691
|
-
["ANY", Picking_SortOrder.ANY],
|
|
692
|
-
["CLOSEST", Picking_SortOrder.CLOSEST],
|
|
693
|
-
["ALL", Picking_SortOrder.ALL],
|
|
694
|
-
["ALL_SORTED", Picking_SortOrder.ALL_SORTED],
|
|
690
|
+
["ANY", Picking_SortOrder .ANY],
|
|
691
|
+
["CLOSEST", Picking_SortOrder .CLOSEST],
|
|
692
|
+
["ALL", Picking_SortOrder .ALL],
|
|
693
|
+
["ALL_SORTED", Picking_SortOrder .ALL_SORTED],
|
|
695
694
|
]);
|
|
696
695
|
|
|
697
696
|
return function ()
|
|
@@ -699,10 +698,10 @@ X3DPickSensorNode .prototype = Object .assign (Object .create ((X3DSensorNode_de
|
|
|
699
698
|
this .sortOrder = sortOrders .get (this ._sortOrder .getValue ());
|
|
700
699
|
|
|
701
700
|
if (this .sortOrder === undefined)
|
|
702
|
-
this .sortOrder = Picking_SortOrder.CLOSEST;
|
|
701
|
+
this .sortOrder = Picking_SortOrder .CLOSEST;
|
|
703
702
|
};
|
|
704
703
|
})(),
|
|
705
|
-
set_pickTarget__
|
|
704
|
+
set_pickTarget__ ()
|
|
706
705
|
{
|
|
707
706
|
this .pickTargetNodes .clear ();
|
|
708
707
|
|
|
@@ -730,11 +729,11 @@ X3DPickSensorNode .prototype = Object .assign (Object .create ((X3DSensorNode_de
|
|
|
730
729
|
}
|
|
731
730
|
}
|
|
732
731
|
}
|
|
733
|
-
catch
|
|
732
|
+
catch
|
|
734
733
|
{ }
|
|
735
734
|
}
|
|
736
735
|
},
|
|
737
|
-
traverse
|
|
736
|
+
traverse (type, renderObject)
|
|
738
737
|
{
|
|
739
738
|
// X3DPickSensorNode nodes are sorted out and only traversed during PICKING, except if is child of a LOD or Switch node.
|
|
740
739
|
|
|
@@ -744,7 +743,7 @@ X3DPickSensorNode .prototype = Object .assign (Object .create ((X3DSensorNode_de
|
|
|
744
743
|
if (this .isPickableObject ())
|
|
745
744
|
this .modelMatrices .push (ModelMatrixCache .pop () .assign (renderObject .getModelViewMatrix () .get ()));
|
|
746
745
|
},
|
|
747
|
-
collect
|
|
746
|
+
collect (geometryNode, modelMatrix, pickingHierarchy)
|
|
748
747
|
{
|
|
749
748
|
var pickTargetNodes = this .pickTargetNodes;
|
|
750
749
|
|
|
@@ -784,7 +783,7 @@ X3DPickSensorNode .prototype = Object .assign (Object .create ((X3DSensorNode_de
|
|
|
784
783
|
destPickingHierarchy .length = length;
|
|
785
784
|
}
|
|
786
785
|
},
|
|
787
|
-
process
|
|
786
|
+
process ()
|
|
788
787
|
{
|
|
789
788
|
var modelMatrices = this .modelMatrices;
|
|
790
789
|
|
|
@@ -796,19 +795,33 @@ X3DPickSensorNode .prototype = Object .assign (Object .create ((X3DSensorNode_de
|
|
|
796
795
|
},
|
|
797
796
|
});
|
|
798
797
|
|
|
798
|
+
Object .defineProperties (X3DPickSensorNode,
|
|
799
|
+
{
|
|
800
|
+
typeName:
|
|
801
|
+
{
|
|
802
|
+
value: "X3DPickSensorNode",
|
|
803
|
+
enumerable: true,
|
|
804
|
+
},
|
|
805
|
+
componentName:
|
|
806
|
+
{
|
|
807
|
+
value: "Picking",
|
|
808
|
+
enumerable: true,
|
|
809
|
+
},
|
|
810
|
+
});
|
|
811
|
+
|
|
799
812
|
const X3DPickSensorNode_default_ = X3DPickSensorNode;
|
|
800
813
|
;
|
|
801
814
|
|
|
802
815
|
Namespace_default().set ("x_ite/Components/Picking/X3DPickSensorNode", X3DPickSensorNode_default_);
|
|
803
816
|
/* harmony default export */ const Picking_X3DPickSensorNode = (X3DPickSensorNode_default_);
|
|
804
817
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
805
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
818
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Math/Numbers/Vector3");
|
|
806
819
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
807
820
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box3\")"
|
|
808
|
-
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
821
|
+
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Math/Geometry/Box3");
|
|
809
822
|
var Box3_default = /*#__PURE__*/__webpack_require__.n(Box3_namespaceObject);
|
|
810
823
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Line3\")"
|
|
811
|
-
const Line3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
824
|
+
const Line3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Math/Geometry/Line3");
|
|
812
825
|
var Line3_default = /*#__PURE__*/__webpack_require__.n(Line3_namespaceObject);
|
|
813
826
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/LinePickSensor.js
|
|
814
827
|
/*******************************************************************************
|
|
@@ -871,56 +884,24 @@ var Line3_default = /*#__PURE__*/__webpack_require__.n(Line3_namespaceObject);
|
|
|
871
884
|
|
|
872
885
|
function LinePickSensor (executionContext)
|
|
873
886
|
{
|
|
874
|
-
Picking_X3DPickSensorNode.call (this, executionContext);
|
|
887
|
+
Picking_X3DPickSensorNode .call (this, executionContext);
|
|
875
888
|
|
|
876
889
|
this .addType ((X3DConstants_default()).LinePickSensor);
|
|
877
890
|
|
|
878
891
|
this .pickingGeometryNode = null;
|
|
879
892
|
}
|
|
880
893
|
|
|
881
|
-
|
|
894
|
+
Object .assign (Object .setPrototypeOf (LinePickSensor .prototype, Picking_X3DPickSensorNode .prototype),
|
|
882
895
|
{
|
|
883
|
-
|
|
884
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
885
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
886
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
887
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "objectType", new (Fields_default()).MFString ("ALL")),
|
|
888
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "matchCriterion", new (Fields_default()).SFString ("MATCH_ANY")),
|
|
889
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "intersectionType", new (Fields_default()).SFString ("BOUNDS")),
|
|
890
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "sortOrder", new (Fields_default()).SFString ("CLOSEST")),
|
|
891
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "isActive", new (Fields_default()).SFBool ()),
|
|
892
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "pickedTextureCoordinate", new (Fields_default()).MFVec3f ()),
|
|
893
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "pickedNormal", new (Fields_default()).MFVec3f ()),
|
|
894
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "pickedPoint", new (Fields_default()).MFVec3f ()),
|
|
895
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickingGeometry", new (Fields_default()).SFNode ()),
|
|
896
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickTarget", new (Fields_default()).MFNode ()),
|
|
897
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "pickedGeometry", new (Fields_default()).MFNode ()),
|
|
898
|
-
]),
|
|
899
|
-
getTypeName: function ()
|
|
900
|
-
{
|
|
901
|
-
return "LinePickSensor";
|
|
902
|
-
},
|
|
903
|
-
getComponentName: function ()
|
|
904
|
-
{
|
|
905
|
-
return "Picking";
|
|
906
|
-
},
|
|
907
|
-
getContainerField: function ()
|
|
908
|
-
{
|
|
909
|
-
return "children";
|
|
910
|
-
},
|
|
911
|
-
getSpecificationRange: function ()
|
|
896
|
+
initialize ()
|
|
912
897
|
{
|
|
913
|
-
|
|
914
|
-
},
|
|
915
|
-
initialize: function ()
|
|
916
|
-
{
|
|
917
|
-
Picking_X3DPickSensorNode.prototype.initialize.call (this);
|
|
898
|
+
Picking_X3DPickSensorNode .prototype .initialize .call (this);
|
|
918
899
|
|
|
919
900
|
this ._pickingGeometry .addInterest ("set_pickingGeometry__", this);
|
|
920
901
|
|
|
921
902
|
this .set_pickingGeometry__ ();
|
|
922
903
|
},
|
|
923
|
-
set_pickingGeometry__
|
|
904
|
+
set_pickingGeometry__ ()
|
|
924
905
|
{
|
|
925
906
|
this .pickingGeometryNode = null;
|
|
926
907
|
|
|
@@ -945,7 +926,7 @@ LinePickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSenso
|
|
|
945
926
|
}
|
|
946
927
|
}
|
|
947
928
|
}
|
|
948
|
-
catch
|
|
929
|
+
catch
|
|
949
930
|
{ }
|
|
950
931
|
},
|
|
951
932
|
process: (function ()
|
|
@@ -978,7 +959,7 @@ LinePickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSenso
|
|
|
978
959
|
|
|
979
960
|
switch (this .getIntersectionType ())
|
|
980
961
|
{
|
|
981
|
-
case Picking_IntersectionType.BOUNDS:
|
|
962
|
+
case Picking_IntersectionType .BOUNDS:
|
|
982
963
|
{
|
|
983
964
|
// Intersect bboxes.
|
|
984
965
|
|
|
@@ -1011,7 +992,7 @@ LinePickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSenso
|
|
|
1011
992
|
pickedGeometries = this .getPickedGeometries (),
|
|
1012
993
|
active = !! pickedGeometries .length;
|
|
1013
994
|
|
|
1014
|
-
pickedGeometries .
|
|
995
|
+
pickedGeometries .assign (pickedGeometries .filter (node => node));
|
|
1015
996
|
|
|
1016
997
|
if (active !== this ._isActive .getValue ())
|
|
1017
998
|
this ._isActive = active;
|
|
@@ -1021,7 +1002,7 @@ LinePickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSenso
|
|
|
1021
1002
|
|
|
1022
1003
|
break;
|
|
1023
1004
|
}
|
|
1024
|
-
case Picking_IntersectionType.GEOMETRY:
|
|
1005
|
+
case Picking_IntersectionType .GEOMETRY:
|
|
1025
1006
|
{
|
|
1026
1007
|
// Intersect geometry.
|
|
1027
1008
|
|
|
@@ -1087,7 +1068,7 @@ LinePickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSenso
|
|
|
1087
1068
|
pickedGeometries = this .getPickedGeometries (),
|
|
1088
1069
|
active = !! pickedGeometries .length;
|
|
1089
1070
|
|
|
1090
|
-
pickedGeometries .
|
|
1071
|
+
pickedGeometries .assign (pickedGeometries .filter (node => node));
|
|
1091
1072
|
|
|
1092
1073
|
if (active !== this ._isActive .getValue ())
|
|
1093
1074
|
this ._isActive = active;
|
|
@@ -1133,18 +1114,61 @@ LinePickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSenso
|
|
|
1133
1114
|
}
|
|
1134
1115
|
}
|
|
1135
1116
|
|
|
1136
|
-
Picking_X3DPickSensorNode.prototype.process.call (this);
|
|
1117
|
+
Picking_X3DPickSensorNode .prototype .process .call (this);
|
|
1137
1118
|
};
|
|
1138
1119
|
})(),
|
|
1139
1120
|
});
|
|
1140
1121
|
|
|
1122
|
+
Object .defineProperties (LinePickSensor,
|
|
1123
|
+
{
|
|
1124
|
+
typeName:
|
|
1125
|
+
{
|
|
1126
|
+
value: "LinePickSensor",
|
|
1127
|
+
enumerable: true,
|
|
1128
|
+
},
|
|
1129
|
+
componentName:
|
|
1130
|
+
{
|
|
1131
|
+
value: "Picking",
|
|
1132
|
+
enumerable: true,
|
|
1133
|
+
},
|
|
1134
|
+
containerField:
|
|
1135
|
+
{
|
|
1136
|
+
value: "children",
|
|
1137
|
+
enumerable: true,
|
|
1138
|
+
},
|
|
1139
|
+
specificationRange:
|
|
1140
|
+
{
|
|
1141
|
+
value: Object .freeze (["3.2", "Infinity"]),
|
|
1142
|
+
enumerable: true,
|
|
1143
|
+
},
|
|
1144
|
+
fieldDefinitions:
|
|
1145
|
+
{
|
|
1146
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
1147
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
1148
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
1149
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "objectType", new (Fields_default()).MFString ("ALL")),
|
|
1150
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "matchCriterion", new (Fields_default()).SFString ("MATCH_ANY")),
|
|
1151
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "intersectionType", new (Fields_default()).SFString ("BOUNDS")),
|
|
1152
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "sortOrder", new (Fields_default()).SFString ("CLOSEST")),
|
|
1153
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "isActive", new (Fields_default()).SFBool ()),
|
|
1154
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "pickedTextureCoordinate", new (Fields_default()).MFVec3f ()),
|
|
1155
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "pickedNormal", new (Fields_default()).MFVec3f ()),
|
|
1156
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "pickedPoint", new (Fields_default()).MFVec3f ()),
|
|
1157
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickingGeometry", new (Fields_default()).SFNode ()),
|
|
1158
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickTarget", new (Fields_default()).MFNode ()),
|
|
1159
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "pickedGeometry", new (Fields_default()).MFNode ()),
|
|
1160
|
+
]),
|
|
1161
|
+
enumerable: true,
|
|
1162
|
+
},
|
|
1163
|
+
});
|
|
1164
|
+
|
|
1141
1165
|
const LinePickSensor_default_ = LinePickSensor;
|
|
1142
1166
|
;
|
|
1143
1167
|
|
|
1144
1168
|
Namespace_default().set ("x_ite/Components/Picking/LinePickSensor", LinePickSensor_default_);
|
|
1145
1169
|
/* harmony default export */ const Picking_LinePickSensor = (LinePickSensor_default_);
|
|
1146
1170
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
|
|
1147
|
-
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
1171
|
+
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
|
|
1148
1172
|
var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
|
|
1149
1173
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/X3DPickableObject.js
|
|
1150
1174
|
/*******************************************************************************
|
|
@@ -1203,20 +1227,19 @@ function X3DPickableObject (executionContext)
|
|
|
1203
1227
|
this .objectType = new Set ();
|
|
1204
1228
|
}
|
|
1205
1229
|
|
|
1206
|
-
X3DPickableObject .prototype
|
|
1230
|
+
Object .assign (X3DPickableObject .prototype,
|
|
1207
1231
|
{
|
|
1208
|
-
|
|
1209
|
-
initialize: function ()
|
|
1232
|
+
initialize ()
|
|
1210
1233
|
{
|
|
1211
1234
|
this ._objectType .addInterest ("set_objectType__", this);
|
|
1212
1235
|
|
|
1213
1236
|
this .set_objectType__ ();
|
|
1214
1237
|
},
|
|
1215
|
-
getObjectType
|
|
1238
|
+
getObjectType ()
|
|
1216
1239
|
{
|
|
1217
1240
|
return this .objectType;
|
|
1218
1241
|
},
|
|
1219
|
-
set_objectType__
|
|
1242
|
+
set_objectType__ ()
|
|
1220
1243
|
{
|
|
1221
1244
|
this .objectType .clear ();
|
|
1222
1245
|
|
|
@@ -1225,8 +1248,22 @@ X3DPickableObject .prototype =
|
|
|
1225
1248
|
this .objectType .add (this ._objectType [i]);
|
|
1226
1249
|
}
|
|
1227
1250
|
},
|
|
1228
|
-
dispose
|
|
1229
|
-
};
|
|
1251
|
+
dispose () { },
|
|
1252
|
+
});
|
|
1253
|
+
|
|
1254
|
+
Object .defineProperties (X3DPickableObject,
|
|
1255
|
+
{
|
|
1256
|
+
typeName:
|
|
1257
|
+
{
|
|
1258
|
+
value: "X3DPickableObject",
|
|
1259
|
+
enumerable: true,
|
|
1260
|
+
},
|
|
1261
|
+
componentName:
|
|
1262
|
+
{
|
|
1263
|
+
value: "Picking",
|
|
1264
|
+
enumerable: true,
|
|
1265
|
+
},
|
|
1266
|
+
});
|
|
1230
1267
|
|
|
1231
1268
|
const X3DPickableObject_default_ = X3DPickableObject;
|
|
1232
1269
|
;
|
|
@@ -1293,57 +1330,28 @@ Namespace_default().set ("x_ite/Components/Picking/X3DPickableObject", X3DPickab
|
|
|
1293
1330
|
function PickableGroup (executionContext)
|
|
1294
1331
|
{
|
|
1295
1332
|
X3DGroupingNode_default().call (this, executionContext);
|
|
1296
|
-
Picking_X3DPickableObject.call (this, executionContext);
|
|
1333
|
+
Picking_X3DPickableObject .call (this, executionContext);
|
|
1297
1334
|
|
|
1298
1335
|
this .addType ((X3DConstants_default()).PickableGroup);
|
|
1299
1336
|
}
|
|
1300
1337
|
|
|
1301
|
-
|
|
1302
|
-
Picking_X3DPickableObject.prototype,
|
|
1338
|
+
Object .assign (Object .setPrototypeOf (PickableGroup .prototype, (X3DGroupingNode_default()).prototype),
|
|
1339
|
+
Picking_X3DPickableObject .prototype,
|
|
1303
1340
|
{
|
|
1304
|
-
|
|
1305
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
1306
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
1307
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickable", new (Fields_default()).SFBool (true)),
|
|
1308
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "objectType", new (Fields_default()).MFString ("ALL")),
|
|
1309
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
|
|
1310
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
|
|
1311
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
|
|
1312
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f ()),
|
|
1313
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOnly, "addChildren", new (Fields_default()).MFNode ()),
|
|
1314
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOnly, "removeChildren", new (Fields_default()).MFNode ()),
|
|
1315
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "children", new (Fields_default()).MFNode ()),
|
|
1316
|
-
]),
|
|
1317
|
-
getTypeName: function ()
|
|
1318
|
-
{
|
|
1319
|
-
return "PickableGroup";
|
|
1320
|
-
},
|
|
1321
|
-
getComponentName: function ()
|
|
1322
|
-
{
|
|
1323
|
-
return "Picking";
|
|
1324
|
-
},
|
|
1325
|
-
getContainerField: function ()
|
|
1326
|
-
{
|
|
1327
|
-
return "children";
|
|
1328
|
-
},
|
|
1329
|
-
getSpecificationRange: function ()
|
|
1330
|
-
{
|
|
1331
|
-
return ["3.2", "Infinity"];
|
|
1332
|
-
},
|
|
1333
|
-
initialize: function ()
|
|
1341
|
+
initialize ()
|
|
1334
1342
|
{
|
|
1335
|
-
X3DGroupingNode_default().prototype.initialize.call (this);
|
|
1336
|
-
Picking_X3DPickableObject.prototype.initialize.call (this);
|
|
1343
|
+
X3DGroupingNode_default().prototype .initialize .call (this);
|
|
1344
|
+
Picking_X3DPickableObject .prototype .initialize .call (this);
|
|
1337
1345
|
|
|
1338
1346
|
this ._pickable .addInterest ("set_pickable__", this);
|
|
1339
1347
|
|
|
1340
1348
|
this .set_pickable__ ();
|
|
1341
1349
|
},
|
|
1342
|
-
set_pickableObjects__
|
|
1350
|
+
set_pickableObjects__ ()
|
|
1343
1351
|
{
|
|
1344
1352
|
this .set_pickable__ ();
|
|
1345
1353
|
},
|
|
1346
|
-
set_pickable__
|
|
1354
|
+
set_pickable__ ()
|
|
1347
1355
|
{
|
|
1348
1356
|
this .setPickableObject (!!(this ._pickable .getValue () || this .getTransformSensors () .size));
|
|
1349
1357
|
},
|
|
@@ -1367,7 +1375,7 @@ PickableGroup .prototype = Object .assign (Object .create ((X3DGroupingNode_defa
|
|
|
1367
1375
|
if (this .getObjectType () .has ("ALL"))
|
|
1368
1376
|
{
|
|
1369
1377
|
pickableStack .push (true);
|
|
1370
|
-
X3DGroupingNode_default().prototype.traverse.call (this, type, renderObject);
|
|
1378
|
+
X3DGroupingNode_default().prototype .traverse .call (this, type, renderObject);
|
|
1371
1379
|
pickableStack .pop ();
|
|
1372
1380
|
}
|
|
1373
1381
|
else
|
|
@@ -1393,21 +1401,21 @@ PickableGroup .prototype = Object .assign (Object .create ((X3DGroupingNode_defa
|
|
|
1393
1401
|
|
|
1394
1402
|
switch (pickSensorNode .getMatchCriterion ())
|
|
1395
1403
|
{
|
|
1396
|
-
case Picking_MatchCriterion.MATCH_ANY:
|
|
1404
|
+
case Picking_MatchCriterion .MATCH_ANY:
|
|
1397
1405
|
{
|
|
1398
1406
|
if (intersection === 0)
|
|
1399
1407
|
continue;
|
|
1400
1408
|
|
|
1401
1409
|
break;
|
|
1402
1410
|
}
|
|
1403
|
-
case Picking_MatchCriterion.MATCH_EVERY:
|
|
1411
|
+
case Picking_MatchCriterion .MATCH_EVERY:
|
|
1404
1412
|
{
|
|
1405
1413
|
if (intersection !== pickSensor .getObjectType () .size)
|
|
1406
1414
|
continue;
|
|
1407
1415
|
|
|
1408
1416
|
break;
|
|
1409
1417
|
}
|
|
1410
|
-
case Picking_MatchCriterion.MATCH_ONLY_ONE:
|
|
1418
|
+
case Picking_MatchCriterion .MATCH_ONLY_ONE:
|
|
1411
1419
|
{
|
|
1412
1420
|
if (intersection !== 1)
|
|
1413
1421
|
continue;
|
|
@@ -1423,7 +1431,7 @@ PickableGroup .prototype = Object .assign (Object .create ((X3DGroupingNode_defa
|
|
|
1423
1431
|
pickableStack .push (true);
|
|
1424
1432
|
pickSensorStack .push (pickSensorNodes);
|
|
1425
1433
|
|
|
1426
|
-
X3DGroupingNode_default().prototype.traverse.call (this, type, renderObject);
|
|
1434
|
+
X3DGroupingNode_default().prototype .traverse .call (this, type, renderObject);
|
|
1427
1435
|
|
|
1428
1436
|
pickSensorStack .pop ();
|
|
1429
1437
|
pickableStack .pop ();
|
|
@@ -1434,14 +1442,54 @@ PickableGroup .prototype = Object .assign (Object .create ((X3DGroupingNode_defa
|
|
|
1434
1442
|
}
|
|
1435
1443
|
else
|
|
1436
1444
|
{
|
|
1437
|
-
X3DGroupingNode_default().prototype.traverse.call (this, type, renderObject);
|
|
1445
|
+
X3DGroupingNode_default().prototype .traverse .call (this, type, renderObject);
|
|
1438
1446
|
}
|
|
1439
1447
|
};
|
|
1440
1448
|
})(),
|
|
1441
|
-
dispose
|
|
1449
|
+
dispose ()
|
|
1442
1450
|
{
|
|
1443
|
-
Picking_X3DPickableObject.prototype.dispose.call (this);
|
|
1444
|
-
X3DGroupingNode_default().prototype.dispose.call (this);
|
|
1451
|
+
Picking_X3DPickableObject .prototype .dispose .call (this);
|
|
1452
|
+
X3DGroupingNode_default().prototype .dispose .call (this);
|
|
1453
|
+
},
|
|
1454
|
+
});
|
|
1455
|
+
|
|
1456
|
+
Object .defineProperties (PickableGroup,
|
|
1457
|
+
{
|
|
1458
|
+
typeName:
|
|
1459
|
+
{
|
|
1460
|
+
value: "PickableGroup",
|
|
1461
|
+
enumerable: true,
|
|
1462
|
+
},
|
|
1463
|
+
componentName:
|
|
1464
|
+
{
|
|
1465
|
+
value: "Picking",
|
|
1466
|
+
enumerable: true,
|
|
1467
|
+
},
|
|
1468
|
+
containerField:
|
|
1469
|
+
{
|
|
1470
|
+
value: "children",
|
|
1471
|
+
enumerable: true,
|
|
1472
|
+
},
|
|
1473
|
+
specificationRange:
|
|
1474
|
+
{
|
|
1475
|
+
value: Object .freeze (["3.2", "Infinity"]),
|
|
1476
|
+
enumerable: true,
|
|
1477
|
+
},
|
|
1478
|
+
fieldDefinitions:
|
|
1479
|
+
{
|
|
1480
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
1481
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
1482
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickable", new (Fields_default()).SFBool (true)),
|
|
1483
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "objectType", new (Fields_default()).MFString ("ALL")),
|
|
1484
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
|
|
1485
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
|
|
1486
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
|
|
1487
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f ()),
|
|
1488
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOnly, "addChildren", new (Fields_default()).MFNode ()),
|
|
1489
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOnly, "removeChildren", new (Fields_default()).MFNode ()),
|
|
1490
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "children", new (Fields_default()).MFNode ()),
|
|
1491
|
+
]),
|
|
1492
|
+
enumerable: true,
|
|
1445
1493
|
},
|
|
1446
1494
|
});
|
|
1447
1495
|
|
|
@@ -1451,13 +1499,13 @@ const PickableGroup_default_ = PickableGroup;
|
|
|
1451
1499
|
Namespace_default().set ("x_ite/Components/Picking/PickableGroup", PickableGroup_default_);
|
|
1452
1500
|
/* harmony default export */ const Picking_PickableGroup = (PickableGroup_default_);
|
|
1453
1501
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
1454
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
1502
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Base/X3DCast");
|
|
1455
1503
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
1456
1504
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
|
|
1457
|
-
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
1505
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Math/Numbers/Rotation4");
|
|
1458
1506
|
var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
|
|
1459
1507
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"lib/ammojs/AmmoClass\")"
|
|
1460
|
-
const AmmoClass_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
1508
|
+
const AmmoClass_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("lib/ammojs/AmmoClass");
|
|
1461
1509
|
var AmmoClass_default = /*#__PURE__*/__webpack_require__.n(AmmoClass_namespaceObject);
|
|
1462
1510
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Picking/VolumePicker.js
|
|
1463
1511
|
/*******************************************************************************
|
|
@@ -1533,22 +1581,22 @@ function VolumePicker ()
|
|
|
1533
1581
|
this .collisionWorld .addCollisionObject (this .rigidBody2);
|
|
1534
1582
|
}
|
|
1535
1583
|
|
|
1536
|
-
VolumePicker .prototype
|
|
1584
|
+
Object .assign (VolumePicker .prototype,
|
|
1537
1585
|
{
|
|
1538
1586
|
constuctor: VolumePicker,
|
|
1539
|
-
setChildShape1
|
|
1587
|
+
setChildShape1 (matrix, childShape)
|
|
1540
1588
|
{
|
|
1541
1589
|
this .setChildShape (this .compoundShape1, matrix, childShape);
|
|
1542
1590
|
},
|
|
1543
|
-
setChildShape2
|
|
1591
|
+
setChildShape2 (matrix, childShape)
|
|
1544
1592
|
{
|
|
1545
1593
|
this .setChildShape (this .compoundShape2, matrix, childShape);
|
|
1546
1594
|
},
|
|
1547
|
-
setChildShape1Components
|
|
1595
|
+
setChildShape1Components (transform, localScaling, childShape)
|
|
1548
1596
|
{
|
|
1549
1597
|
this .setChildShapeComponents (this .compoundShape1, transform, localScaling, childShape);
|
|
1550
1598
|
},
|
|
1551
|
-
setChildShape2Components
|
|
1599
|
+
setChildShape2Components (transform, localScaling, childShape)
|
|
1552
1600
|
{
|
|
1553
1601
|
this .setChildShapeComponents (this .compoundShape2, transform, localScaling, childShape);
|
|
1554
1602
|
},
|
|
@@ -1576,7 +1624,7 @@ VolumePicker .prototype =
|
|
|
1576
1624
|
}
|
|
1577
1625
|
};
|
|
1578
1626
|
})(),
|
|
1579
|
-
setChildShapeComponents
|
|
1627
|
+
setChildShapeComponents (compoundShape, transform, localScaling, childShape)
|
|
1580
1628
|
{
|
|
1581
1629
|
if (compoundShape .getNumChildShapes ())
|
|
1582
1630
|
compoundShape .removeChildShapeByIndex (0);
|
|
@@ -1587,7 +1635,7 @@ VolumePicker .prototype =
|
|
|
1587
1635
|
compoundShape .addChildShape (transform, childShape);
|
|
1588
1636
|
}
|
|
1589
1637
|
},
|
|
1590
|
-
contactTest
|
|
1638
|
+
contactTest ()
|
|
1591
1639
|
{
|
|
1592
1640
|
this .collisionWorld .performDiscreteCollisionDetection ();
|
|
1593
1641
|
|
|
@@ -1634,7 +1682,7 @@ VolumePicker .prototype =
|
|
|
1634
1682
|
return t;
|
|
1635
1683
|
};
|
|
1636
1684
|
})(),
|
|
1637
|
-
};
|
|
1685
|
+
});
|
|
1638
1686
|
|
|
1639
1687
|
const VolumePicker_default_ = VolumePicker;
|
|
1640
1688
|
;
|
|
@@ -1704,7 +1752,7 @@ Namespace_default().set ("x_ite/Browser/Picking/VolumePicker", VolumePicker_defa
|
|
|
1704
1752
|
|
|
1705
1753
|
function PointPickSensor (executionContext)
|
|
1706
1754
|
{
|
|
1707
|
-
Picking_X3DPickSensorNode.call (this, executionContext);
|
|
1755
|
+
Picking_X3DPickSensorNode .call (this, executionContext);
|
|
1708
1756
|
|
|
1709
1757
|
this .addType ((X3DConstants_default()).PointPickSensor);
|
|
1710
1758
|
|
|
@@ -1713,47 +1761,17 @@ function PointPickSensor (executionContext)
|
|
|
1713
1761
|
this .compoundShapes = [ ];
|
|
1714
1762
|
}
|
|
1715
1763
|
|
|
1716
|
-
|
|
1764
|
+
Object .assign (Object .setPrototypeOf (PointPickSensor .prototype, Picking_X3DPickSensorNode .prototype),
|
|
1717
1765
|
{
|
|
1718
|
-
|
|
1719
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
1720
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
1721
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
1722
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "objectType", new (Fields_default()).MFString ("ALL")),
|
|
1723
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "matchCriterion", new (Fields_default()).SFString ("MATCH_ANY")),
|
|
1724
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "intersectionType", new (Fields_default()).SFString ("BOUNDS")),
|
|
1725
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "sortOrder", new (Fields_default()).SFString ("CLOSEST")),
|
|
1726
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "isActive", new (Fields_default()).SFBool ()),
|
|
1727
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "pickedPoint", new (Fields_default()).MFVec3f ()),
|
|
1728
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickingGeometry", new (Fields_default()).SFNode ()),
|
|
1729
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickTarget", new (Fields_default()).MFNode ()),
|
|
1730
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "pickedGeometry", new (Fields_default()).MFNode ()),
|
|
1731
|
-
]),
|
|
1732
|
-
getTypeName: function ()
|
|
1733
|
-
{
|
|
1734
|
-
return "PointPickSensor";
|
|
1735
|
-
},
|
|
1736
|
-
getComponentName: function ()
|
|
1766
|
+
initialize ()
|
|
1737
1767
|
{
|
|
1738
|
-
|
|
1739
|
-
},
|
|
1740
|
-
getContainerField: function ()
|
|
1741
|
-
{
|
|
1742
|
-
return "children";
|
|
1743
|
-
},
|
|
1744
|
-
getSpecificationRange: function ()
|
|
1745
|
-
{
|
|
1746
|
-
return ["3.2", "Infinity"];
|
|
1747
|
-
},
|
|
1748
|
-
initialize: function ()
|
|
1749
|
-
{
|
|
1750
|
-
Picking_X3DPickSensorNode.prototype.initialize.call (this);
|
|
1768
|
+
Picking_X3DPickSensorNode .prototype .initialize .call (this);
|
|
1751
1769
|
|
|
1752
1770
|
this ._pickingGeometry .addInterest ("set_pickingGeometry__", this);
|
|
1753
1771
|
|
|
1754
1772
|
this .set_pickingGeometry__ ();
|
|
1755
1773
|
},
|
|
1756
|
-
set_pickingGeometry__
|
|
1774
|
+
set_pickingGeometry__ ()
|
|
1757
1775
|
{
|
|
1758
1776
|
if (this .pickingGeometryNode)
|
|
1759
1777
|
this .pickingGeometryNode ._rebuild .removeInterest ("set_geometry__", this);
|
|
@@ -1850,7 +1868,7 @@ PointPickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSens
|
|
|
1850
1868
|
|
|
1851
1869
|
switch (this .getIntersectionType ())
|
|
1852
1870
|
{
|
|
1853
|
-
case Picking_IntersectionType.BOUNDS:
|
|
1871
|
+
case Picking_IntersectionType .BOUNDS:
|
|
1854
1872
|
{
|
|
1855
1873
|
// Intersect bboxes.
|
|
1856
1874
|
|
|
@@ -1883,7 +1901,7 @@ PointPickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSens
|
|
|
1883
1901
|
pickedGeometries = this .getPickedGeometries (),
|
|
1884
1902
|
active = !! pickedGeometries .length;
|
|
1885
1903
|
|
|
1886
|
-
pickedGeometries .
|
|
1904
|
+
pickedGeometries .assign (pickedGeometries .filter (node => node));
|
|
1887
1905
|
|
|
1888
1906
|
if (active !== this ._isActive .getValue ())
|
|
1889
1907
|
this ._isActive = active;
|
|
@@ -1893,7 +1911,7 @@ PointPickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSens
|
|
|
1893
1911
|
|
|
1894
1912
|
break;
|
|
1895
1913
|
}
|
|
1896
|
-
case Picking_IntersectionType.GEOMETRY:
|
|
1914
|
+
case Picking_IntersectionType .GEOMETRY:
|
|
1897
1915
|
{
|
|
1898
1916
|
// Intersect geometry.
|
|
1899
1917
|
|
|
@@ -1947,7 +1965,7 @@ PointPickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSens
|
|
|
1947
1965
|
pickedGeometries = this .getPickedGeometries (),
|
|
1948
1966
|
active = !! pickedGeometries .length;
|
|
1949
1967
|
|
|
1950
|
-
pickedGeometries .
|
|
1968
|
+
pickedGeometries .assign (pickedGeometries .filter (node => node));
|
|
1951
1969
|
|
|
1952
1970
|
if (active !== this ._isActive .getValue ())
|
|
1953
1971
|
this ._isActive = active;
|
|
@@ -1975,11 +1993,52 @@ PointPickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSens
|
|
|
1975
1993
|
}
|
|
1976
1994
|
}
|
|
1977
1995
|
|
|
1978
|
-
Picking_X3DPickSensorNode.prototype.process.call (this);
|
|
1996
|
+
Picking_X3DPickSensorNode .prototype .process .call (this);
|
|
1979
1997
|
};
|
|
1980
1998
|
})(),
|
|
1981
1999
|
});
|
|
1982
2000
|
|
|
2001
|
+
Object .defineProperties (PointPickSensor,
|
|
2002
|
+
{
|
|
2003
|
+
typeName:
|
|
2004
|
+
{
|
|
2005
|
+
value: "PointPickSensor",
|
|
2006
|
+
enumerable: true,
|
|
2007
|
+
},
|
|
2008
|
+
componentName:
|
|
2009
|
+
{
|
|
2010
|
+
value: "Picking",
|
|
2011
|
+
enumerable: true,
|
|
2012
|
+
},
|
|
2013
|
+
containerField:
|
|
2014
|
+
{
|
|
2015
|
+
value: "children",
|
|
2016
|
+
enumerable: true,
|
|
2017
|
+
},
|
|
2018
|
+
specificationRange:
|
|
2019
|
+
{
|
|
2020
|
+
value: Object .freeze (["3.2", "Infinity"]),
|
|
2021
|
+
enumerable: true,
|
|
2022
|
+
},
|
|
2023
|
+
fieldDefinitions:
|
|
2024
|
+
{
|
|
2025
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
2026
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2027
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
2028
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "objectType", new (Fields_default()).MFString ("ALL")),
|
|
2029
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "matchCriterion", new (Fields_default()).SFString ("MATCH_ANY")),
|
|
2030
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "intersectionType", new (Fields_default()).SFString ("BOUNDS")),
|
|
2031
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "sortOrder", new (Fields_default()).SFString ("CLOSEST")),
|
|
2032
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "isActive", new (Fields_default()).SFBool ()),
|
|
2033
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "pickedPoint", new (Fields_default()).MFVec3f ()),
|
|
2034
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickingGeometry", new (Fields_default()).SFNode ()),
|
|
2035
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickTarget", new (Fields_default()).MFNode ()),
|
|
2036
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "pickedGeometry", new (Fields_default()).MFNode ()),
|
|
2037
|
+
]),
|
|
2038
|
+
enumerable: true,
|
|
2039
|
+
},
|
|
2040
|
+
});
|
|
2041
|
+
|
|
1983
2042
|
const PointPickSensor_default_ = PointPickSensor;
|
|
1984
2043
|
;
|
|
1985
2044
|
|
|
@@ -2045,7 +2104,7 @@ Namespace_default().set ("x_ite/Components/Picking/PointPickSensor", PointPickSe
|
|
|
2045
2104
|
|
|
2046
2105
|
function PrimitivePickSensor (executionContext)
|
|
2047
2106
|
{
|
|
2048
|
-
Picking_X3DPickSensorNode.call (this, executionContext);
|
|
2107
|
+
Picking_X3DPickSensorNode .call (this, executionContext);
|
|
2049
2108
|
|
|
2050
2109
|
this .addType ((X3DConstants_default()).PrimitivePickSensor);
|
|
2051
2110
|
|
|
@@ -2053,46 +2112,17 @@ function PrimitivePickSensor (executionContext)
|
|
|
2053
2112
|
this .picker = new Picking_VolumePicker ();
|
|
2054
2113
|
}
|
|
2055
2114
|
|
|
2056
|
-
|
|
2115
|
+
Object .assign (Object .setPrototypeOf (PrimitivePickSensor .prototype, Picking_X3DPickSensorNode .prototype),
|
|
2057
2116
|
{
|
|
2058
|
-
|
|
2059
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
2060
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2061
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
2062
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "objectType", new (Fields_default()).MFString ("ALL")),
|
|
2063
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "matchCriterion", new (Fields_default()).SFString ("MATCH_ANY")),
|
|
2064
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "intersectionType", new (Fields_default()).SFString ("BOUNDS")),
|
|
2065
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "sortOrder", new (Fields_default()).SFString ("CLOSEST")),
|
|
2066
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "isActive", new (Fields_default()).SFBool ()),
|
|
2067
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickingGeometry", new (Fields_default()).SFNode ()),
|
|
2068
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickTarget", new (Fields_default()).MFNode ()),
|
|
2069
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "pickedGeometry", new (Fields_default()).MFNode ()),
|
|
2070
|
-
]),
|
|
2071
|
-
getTypeName: function ()
|
|
2072
|
-
{
|
|
2073
|
-
return "PrimitivePickSensor";
|
|
2074
|
-
},
|
|
2075
|
-
getComponentName: function ()
|
|
2076
|
-
{
|
|
2077
|
-
return "Picking";
|
|
2078
|
-
},
|
|
2079
|
-
getContainerField: function ()
|
|
2080
|
-
{
|
|
2081
|
-
return "children";
|
|
2082
|
-
},
|
|
2083
|
-
getSpecificationRange: function ()
|
|
2117
|
+
initialize ()
|
|
2084
2118
|
{
|
|
2085
|
-
|
|
2086
|
-
},
|
|
2087
|
-
initialize: function ()
|
|
2088
|
-
{
|
|
2089
|
-
Picking_X3DPickSensorNode.prototype.initialize.call (this);
|
|
2119
|
+
Picking_X3DPickSensorNode .prototype .initialize .call (this);
|
|
2090
2120
|
|
|
2091
2121
|
this ._pickingGeometry .addInterest ("set_pickingGeometry__", this);
|
|
2092
2122
|
|
|
2093
2123
|
this .set_pickingGeometry__ ();
|
|
2094
2124
|
},
|
|
2095
|
-
set_pickingGeometry__
|
|
2125
|
+
set_pickingGeometry__ ()
|
|
2096
2126
|
{
|
|
2097
2127
|
this .pickingGeometryNode = null;
|
|
2098
2128
|
|
|
@@ -2119,7 +2149,7 @@ PrimitivePickSensor .prototype = Object .assign (Object .create (Picking_X3DPick
|
|
|
2119
2149
|
}
|
|
2120
2150
|
}
|
|
2121
2151
|
}
|
|
2122
|
-
catch
|
|
2152
|
+
catch
|
|
2123
2153
|
{ }
|
|
2124
2154
|
},
|
|
2125
2155
|
process: (function ()
|
|
@@ -2140,7 +2170,7 @@ PrimitivePickSensor .prototype = Object .assign (Object .create (Picking_X3DPick
|
|
|
2140
2170
|
|
|
2141
2171
|
switch (this .getIntersectionType ())
|
|
2142
2172
|
{
|
|
2143
|
-
case Picking_IntersectionType.BOUNDS:
|
|
2173
|
+
case Picking_IntersectionType .BOUNDS:
|
|
2144
2174
|
{
|
|
2145
2175
|
// Intersect bboxes.
|
|
2146
2176
|
|
|
@@ -2173,7 +2203,7 @@ PrimitivePickSensor .prototype = Object .assign (Object .create (Picking_X3DPick
|
|
|
2173
2203
|
pickedGeometries = this .getPickedGeometries (),
|
|
2174
2204
|
active = !! pickedGeometries .length;
|
|
2175
2205
|
|
|
2176
|
-
pickedGeometries .
|
|
2206
|
+
pickedGeometries .assign (pickedGeometries .filter (node => node));
|
|
2177
2207
|
|
|
2178
2208
|
if (active !== this ._isActive .getValue ())
|
|
2179
2209
|
this ._isActive = active;
|
|
@@ -2183,7 +2213,7 @@ PrimitivePickSensor .prototype = Object .assign (Object .create (Picking_X3DPick
|
|
|
2183
2213
|
|
|
2184
2214
|
break;
|
|
2185
2215
|
}
|
|
2186
|
-
case Picking_IntersectionType.GEOMETRY:
|
|
2216
|
+
case Picking_IntersectionType .GEOMETRY:
|
|
2187
2217
|
{
|
|
2188
2218
|
// Intersect geometry.
|
|
2189
2219
|
|
|
@@ -2226,7 +2256,7 @@ PrimitivePickSensor .prototype = Object .assign (Object .create (Picking_X3DPick
|
|
|
2226
2256
|
pickedGeometries = this .getPickedGeometries (),
|
|
2227
2257
|
active = !! pickedGeometries .length;
|
|
2228
2258
|
|
|
2229
|
-
pickedGeometries .
|
|
2259
|
+
pickedGeometries .assign (pickedGeometries .filter (node => node));
|
|
2230
2260
|
|
|
2231
2261
|
if (active !== this ._isActive .getValue ())
|
|
2232
2262
|
this ._isActive = active;
|
|
@@ -2239,11 +2269,51 @@ PrimitivePickSensor .prototype = Object .assign (Object .create (Picking_X3DPick
|
|
|
2239
2269
|
}
|
|
2240
2270
|
}
|
|
2241
2271
|
|
|
2242
|
-
Picking_X3DPickSensorNode.prototype.process.call (this);
|
|
2272
|
+
Picking_X3DPickSensorNode .prototype .process .call (this);
|
|
2243
2273
|
};
|
|
2244
2274
|
})(),
|
|
2245
2275
|
});
|
|
2246
2276
|
|
|
2277
|
+
Object .defineProperties (PrimitivePickSensor,
|
|
2278
|
+
{
|
|
2279
|
+
typeName:
|
|
2280
|
+
{
|
|
2281
|
+
value: "PrimitivePickSensor",
|
|
2282
|
+
enumerable: true,
|
|
2283
|
+
},
|
|
2284
|
+
componentName:
|
|
2285
|
+
{
|
|
2286
|
+
value: "Picking",
|
|
2287
|
+
enumerable: true,
|
|
2288
|
+
},
|
|
2289
|
+
containerField:
|
|
2290
|
+
{
|
|
2291
|
+
value: "children",
|
|
2292
|
+
enumerable: true,
|
|
2293
|
+
},
|
|
2294
|
+
specificationRange:
|
|
2295
|
+
{
|
|
2296
|
+
value: Object .freeze (["3.2", "Infinity"]),
|
|
2297
|
+
enumerable: true,
|
|
2298
|
+
},
|
|
2299
|
+
fieldDefinitions:
|
|
2300
|
+
{
|
|
2301
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
2302
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2303
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
2304
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "objectType", new (Fields_default()).MFString ("ALL")),
|
|
2305
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "matchCriterion", new (Fields_default()).SFString ("MATCH_ANY")),
|
|
2306
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "intersectionType", new (Fields_default()).SFString ("BOUNDS")),
|
|
2307
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "sortOrder", new (Fields_default()).SFString ("CLOSEST")),
|
|
2308
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "isActive", new (Fields_default()).SFBool ()),
|
|
2309
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickingGeometry", new (Fields_default()).SFNode ()),
|
|
2310
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickTarget", new (Fields_default()).MFNode ()),
|
|
2311
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "pickedGeometry", new (Fields_default()).MFNode ()),
|
|
2312
|
+
]),
|
|
2313
|
+
enumerable: true,
|
|
2314
|
+
},
|
|
2315
|
+
});
|
|
2316
|
+
|
|
2247
2317
|
const PrimitivePickSensor_default_ = PrimitivePickSensor;
|
|
2248
2318
|
;
|
|
2249
2319
|
|
|
@@ -2310,7 +2380,7 @@ Namespace_default().set ("x_ite/Components/Picking/PrimitivePickSensor", Primiti
|
|
|
2310
2380
|
|
|
2311
2381
|
function VolumePickSensor (executionContext)
|
|
2312
2382
|
{
|
|
2313
|
-
Picking_X3DPickSensorNode.call (this, executionContext);
|
|
2383
|
+
Picking_X3DPickSensorNode .call (this, executionContext);
|
|
2314
2384
|
|
|
2315
2385
|
this .addType ((X3DConstants_default()).VolumePickSensor);
|
|
2316
2386
|
|
|
@@ -2318,46 +2388,17 @@ function VolumePickSensor (executionContext)
|
|
|
2318
2388
|
this .picker = new Picking_VolumePicker ();
|
|
2319
2389
|
}
|
|
2320
2390
|
|
|
2321
|
-
|
|
2391
|
+
Object .assign (Object .setPrototypeOf (VolumePickSensor .prototype, Picking_X3DPickSensorNode .prototype),
|
|
2322
2392
|
{
|
|
2323
|
-
|
|
2324
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
2325
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2326
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
2327
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "objectType", new (Fields_default()).MFString ("ALL")),
|
|
2328
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "matchCriterion", new (Fields_default()).SFString ("MATCH_ANY")),
|
|
2329
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "intersectionType", new (Fields_default()).SFString ("BOUNDS")),
|
|
2330
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "sortOrder", new (Fields_default()).SFString ("CLOSEST")),
|
|
2331
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "isActive", new (Fields_default()).SFBool ()),
|
|
2332
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickingGeometry", new (Fields_default()).SFNode ()),
|
|
2333
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickTarget", new (Fields_default()).MFNode ()),
|
|
2334
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "pickedGeometry", new (Fields_default()).MFNode ()),
|
|
2335
|
-
]),
|
|
2336
|
-
getTypeName: function ()
|
|
2337
|
-
{
|
|
2338
|
-
return "VolumePickSensor";
|
|
2339
|
-
},
|
|
2340
|
-
getComponentName: function ()
|
|
2341
|
-
{
|
|
2342
|
-
return "Picking";
|
|
2343
|
-
},
|
|
2344
|
-
getContainerField: function ()
|
|
2345
|
-
{
|
|
2346
|
-
return "children";
|
|
2347
|
-
},
|
|
2348
|
-
getSpecificationRange: function ()
|
|
2349
|
-
{
|
|
2350
|
-
return ["3.2", "Infinity"];
|
|
2351
|
-
},
|
|
2352
|
-
initialize: function ()
|
|
2393
|
+
initialize ()
|
|
2353
2394
|
{
|
|
2354
|
-
Picking_X3DPickSensorNode.prototype.initialize.call (this);
|
|
2395
|
+
Picking_X3DPickSensorNode .prototype .initialize .call (this);
|
|
2355
2396
|
|
|
2356
2397
|
this ._pickingGeometry .addInterest ("set_pickingGeometry__", this);
|
|
2357
2398
|
|
|
2358
2399
|
this .set_pickingGeometry__ ();
|
|
2359
2400
|
},
|
|
2360
|
-
set_pickingGeometry__
|
|
2401
|
+
set_pickingGeometry__ ()
|
|
2361
2402
|
{
|
|
2362
2403
|
this .pickingGeometryNode = X3DCast_default() ((X3DConstants_default()).X3DGeometryNode, this ._pickingGeometry);
|
|
2363
2404
|
},
|
|
@@ -2379,7 +2420,7 @@ VolumePickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSen
|
|
|
2379
2420
|
|
|
2380
2421
|
switch (this .getIntersectionType ())
|
|
2381
2422
|
{
|
|
2382
|
-
case Picking_IntersectionType.BOUNDS:
|
|
2423
|
+
case Picking_IntersectionType .BOUNDS:
|
|
2383
2424
|
{
|
|
2384
2425
|
// Intersect bboxes.
|
|
2385
2426
|
|
|
@@ -2412,7 +2453,7 @@ VolumePickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSen
|
|
|
2412
2453
|
pickedGeometries = this .getPickedGeometries (),
|
|
2413
2454
|
active = !! pickedGeometries .length;
|
|
2414
2455
|
|
|
2415
|
-
pickedGeometries .
|
|
2456
|
+
pickedGeometries .assign (pickedGeometries .filter (node => node));
|
|
2416
2457
|
|
|
2417
2458
|
if (active !== this ._isActive .getValue ())
|
|
2418
2459
|
this ._isActive = active;
|
|
@@ -2422,7 +2463,7 @@ VolumePickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSen
|
|
|
2422
2463
|
|
|
2423
2464
|
break;
|
|
2424
2465
|
}
|
|
2425
|
-
case Picking_IntersectionType.GEOMETRY:
|
|
2466
|
+
case Picking_IntersectionType .GEOMETRY:
|
|
2426
2467
|
{
|
|
2427
2468
|
// Intersect geometry.
|
|
2428
2469
|
|
|
@@ -2465,7 +2506,7 @@ VolumePickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSen
|
|
|
2465
2506
|
pickedGeometries = this .getPickedGeometries (),
|
|
2466
2507
|
active = !! pickedGeometries .length;
|
|
2467
2508
|
|
|
2468
|
-
pickedGeometries .
|
|
2509
|
+
pickedGeometries .assign (pickedGeometries .filter (node => node));
|
|
2469
2510
|
|
|
2470
2511
|
if (active !== this ._isActive .getValue ())
|
|
2471
2512
|
this ._isActive = active;
|
|
@@ -2478,11 +2519,51 @@ VolumePickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSen
|
|
|
2478
2519
|
}
|
|
2479
2520
|
}
|
|
2480
2521
|
|
|
2481
|
-
Picking_X3DPickSensorNode.prototype.process.call (this);
|
|
2522
|
+
Picking_X3DPickSensorNode .prototype .process .call (this);
|
|
2482
2523
|
};
|
|
2483
2524
|
})(),
|
|
2484
2525
|
});
|
|
2485
2526
|
|
|
2527
|
+
Object .defineProperties (VolumePickSensor,
|
|
2528
|
+
{
|
|
2529
|
+
typeName:
|
|
2530
|
+
{
|
|
2531
|
+
value: "VolumePickSensor",
|
|
2532
|
+
enumerable: true,
|
|
2533
|
+
},
|
|
2534
|
+
componentName:
|
|
2535
|
+
{
|
|
2536
|
+
value: "Picking",
|
|
2537
|
+
enumerable: true,
|
|
2538
|
+
},
|
|
2539
|
+
containerField:
|
|
2540
|
+
{
|
|
2541
|
+
value: "children",
|
|
2542
|
+
enumerable: true,
|
|
2543
|
+
},
|
|
2544
|
+
specificationRange:
|
|
2545
|
+
{
|
|
2546
|
+
value: Object .freeze (["3.2", "Infinity"]),
|
|
2547
|
+
enumerable: true,
|
|
2548
|
+
},
|
|
2549
|
+
fieldDefinitions:
|
|
2550
|
+
{
|
|
2551
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
2552
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2553
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
2554
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "objectType", new (Fields_default()).MFString ("ALL")),
|
|
2555
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "matchCriterion", new (Fields_default()).SFString ("MATCH_ANY")),
|
|
2556
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "intersectionType", new (Fields_default()).SFString ("BOUNDS")),
|
|
2557
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "sortOrder", new (Fields_default()).SFString ("CLOSEST")),
|
|
2558
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "isActive", new (Fields_default()).SFBool ()),
|
|
2559
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickingGeometry", new (Fields_default()).SFNode ()),
|
|
2560
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickTarget", new (Fields_default()).MFNode ()),
|
|
2561
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "pickedGeometry", new (Fields_default()).MFNode ()),
|
|
2562
|
+
]),
|
|
2563
|
+
enumerable: true,
|
|
2564
|
+
},
|
|
2565
|
+
});
|
|
2566
|
+
|
|
2486
2567
|
const VolumePickSensor_default_ = VolumePickSensor;
|
|
2487
2568
|
;
|
|
2488
2569
|
|
|
@@ -2545,21 +2626,21 @@ Namespace_default().set ("x_ite/Components/Picking/VolumePickSensor", VolumePick
|
|
|
2545
2626
|
|
|
2546
2627
|
|
|
2547
2628
|
|
|
2548
|
-
Components_default().
|
|
2629
|
+
Components_default().add ({
|
|
2549
2630
|
name: "Picking",
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2631
|
+
concreteNodes:
|
|
2632
|
+
[
|
|
2633
|
+
Picking_LinePickSensor,
|
|
2634
|
+
Picking_PickableGroup,
|
|
2635
|
+
Picking_PointPickSensor,
|
|
2636
|
+
Picking_PrimitivePickSensor,
|
|
2637
|
+
Picking_VolumePickSensor,
|
|
2638
|
+
],
|
|
2639
|
+
abstractNodes:
|
|
2640
|
+
[
|
|
2641
|
+
Picking_X3DPickSensorNode,
|
|
2642
|
+
Picking_X3DPickableObject,
|
|
2643
|
+
],
|
|
2563
2644
|
});
|
|
2564
2645
|
|
|
2565
2646
|
const Picking_default_ = undefined;
|