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
|
@@ -62,36 +62,9 @@ function BlendMode (executionContext)
|
|
|
62
62
|
this .equationTypes = new Map ();
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
Object .assign (Object .setPrototypeOf (BlendMode .prototype, X3DAppearanceChildNode .prototype),
|
|
66
66
|
{
|
|
67
|
-
|
|
68
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new FieldDefinitionArray ([
|
|
69
|
-
new X3DFieldDefinition (X3DConstants .inputOutput, "metadata", new Fields .SFNode ()),
|
|
70
|
-
new X3DFieldDefinition (X3DConstants .inputOutput, "blendColor", new Fields .SFColorRGBA ()),
|
|
71
|
-
new X3DFieldDefinition (X3DConstants .inputOutput, "sourceColorFactor", new Fields .SFString ("SRC_ALPHA")),
|
|
72
|
-
new X3DFieldDefinition (X3DConstants .inputOutput, "sourceAlphaFactor", new Fields .SFString ("ONE")),
|
|
73
|
-
new X3DFieldDefinition (X3DConstants .inputOutput, "destinationColorFactor", new Fields .SFString ("ONE_MINUS_SRC_ALPHA")),
|
|
74
|
-
new X3DFieldDefinition (X3DConstants .inputOutput, "destinationAlphaFactor", new Fields .SFString ("ONE_MINUS_SRC_ALPHA")),
|
|
75
|
-
new X3DFieldDefinition (X3DConstants .inputOutput, "colorEquation", new Fields .SFString ("FUNC_ADD")),
|
|
76
|
-
new X3DFieldDefinition (X3DConstants .inputOutput, "alphaEquation", new Fields .SFString ("FUNC_ADD")),
|
|
77
|
-
]),
|
|
78
|
-
getTypeName: function ()
|
|
79
|
-
{
|
|
80
|
-
return "BlendMode";
|
|
81
|
-
},
|
|
82
|
-
getComponentName: function ()
|
|
83
|
-
{
|
|
84
|
-
return "X_ITE";
|
|
85
|
-
},
|
|
86
|
-
getContainerField: function ()
|
|
87
|
-
{
|
|
88
|
-
return "blendMode";
|
|
89
|
-
},
|
|
90
|
-
getSpecificationRange: function ()
|
|
91
|
-
{
|
|
92
|
-
return ["3.3", "Infinity"];
|
|
93
|
-
},
|
|
94
|
-
initialize: function ()
|
|
67
|
+
initialize ()
|
|
95
68
|
{
|
|
96
69
|
X3DAppearanceChildNode .prototype .initialize .call (this);
|
|
97
70
|
|
|
@@ -135,49 +108,49 @@ BlendMode .prototype = Object .assign (Object .create (X3DAppearanceChildNode .p
|
|
|
135
108
|
this .set_colorEquation__ ();
|
|
136
109
|
this .set_alphaEquation__ ();
|
|
137
110
|
},
|
|
138
|
-
set_sourceColorFactor__
|
|
111
|
+
set_sourceColorFactor__ ()
|
|
139
112
|
{
|
|
140
113
|
this .sourceColorFactorType = this .factorTypes .get (this ._sourceColorFactor .getValue ());
|
|
141
114
|
|
|
142
115
|
if (this .sourceColorFactorType === undefined)
|
|
143
116
|
this .sourceColorFactorType = this .factorTypes .get ("SRC_ALPHA");
|
|
144
117
|
},
|
|
145
|
-
set_sourceAlphaFactor__
|
|
118
|
+
set_sourceAlphaFactor__ ()
|
|
146
119
|
{
|
|
147
120
|
this .sourceAlphaFactorType = this .factorTypes .get (this ._sourceAlphaFactor .getValue ());
|
|
148
121
|
|
|
149
122
|
if (this .sourceAlphaFactorType === undefined)
|
|
150
123
|
this .sourceAlphaFactorType = this .factorTypes .get ("ONE");
|
|
151
124
|
},
|
|
152
|
-
set_destinationColorFactor__
|
|
125
|
+
set_destinationColorFactor__ ()
|
|
153
126
|
{
|
|
154
127
|
this .destinationColorFactorType = this .factorTypes .get (this ._destinationColorFactor .getValue ());
|
|
155
128
|
|
|
156
129
|
if (this .destinationColorFactorType === undefined)
|
|
157
130
|
this .destinationColorFactorType = this .factorTypes .get ("ONE_MINUS_SRC_ALPHA");
|
|
158
131
|
},
|
|
159
|
-
set_destinationAlphaFactor__
|
|
132
|
+
set_destinationAlphaFactor__ ()
|
|
160
133
|
{
|
|
161
134
|
this .destinationAlphaFactorType = this .factorTypes .get (this ._destinationAlphaFactor .getValue ());
|
|
162
135
|
|
|
163
136
|
if (this .destinationAlphaFactorType === undefined)
|
|
164
137
|
this .destinationAlphaFactorType = this .factorTypes .get ("ONE_MINUS_SRC_ALPHA");
|
|
165
138
|
},
|
|
166
|
-
set_colorEquation__
|
|
139
|
+
set_colorEquation__ ()
|
|
167
140
|
{
|
|
168
141
|
this .colorEquationType = this .equationTypes .get (this ._colorEquation .getValue ());
|
|
169
142
|
|
|
170
143
|
if (this .colorEquationType === undefined)
|
|
171
144
|
this .colorEquationType = this .equationTypes .get ("FUNC_ADD");
|
|
172
145
|
},
|
|
173
|
-
set_alphaEquation__
|
|
146
|
+
set_alphaEquation__ ()
|
|
174
147
|
{
|
|
175
148
|
this .alphaEquationType = this .equationTypes .get (this ._alphaEquation .getValue ());
|
|
176
149
|
|
|
177
150
|
if (this .alphaEquationType === undefined)
|
|
178
151
|
this .alphaEquationType = this .equationTypes .get ("FUNC_ADD");
|
|
179
152
|
},
|
|
180
|
-
enable
|
|
153
|
+
enable (gl)
|
|
181
154
|
{
|
|
182
155
|
const color = this ._blendColor .getValue ();
|
|
183
156
|
|
|
@@ -185,11 +158,49 @@ BlendMode .prototype = Object .assign (Object .create (X3DAppearanceChildNode .p
|
|
|
185
158
|
gl .blendFuncSeparate (this .sourceColorFactorType, this .destinationColorFactorType, this .sourceAlphaFactorType, this .destinationAlphaFactorType);
|
|
186
159
|
gl .blendEquationSeparate (this .colorEquationType, this .alphaEquationType);
|
|
187
160
|
},
|
|
188
|
-
disable
|
|
161
|
+
disable (gl)
|
|
189
162
|
{
|
|
190
163
|
gl .blendFuncSeparate (gl .SRC_ALPHA, gl .ONE_MINUS_SRC_ALPHA, gl .ONE, gl .ONE_MINUS_SRC_ALPHA);
|
|
191
164
|
gl .blendEquationSeparate (gl .FUNC_ADD, gl .FUNC_ADD);
|
|
192
165
|
},
|
|
193
166
|
});
|
|
194
167
|
|
|
168
|
+
Object .defineProperties (BlendMode,
|
|
169
|
+
{
|
|
170
|
+
typeName:
|
|
171
|
+
{
|
|
172
|
+
value: "BlendMode",
|
|
173
|
+
enumerable: true,
|
|
174
|
+
},
|
|
175
|
+
componentName:
|
|
176
|
+
{
|
|
177
|
+
value: "X_ITE",
|
|
178
|
+
enumerable: true,
|
|
179
|
+
},
|
|
180
|
+
containerField:
|
|
181
|
+
{
|
|
182
|
+
value: "blendMode",
|
|
183
|
+
enumerable: true,
|
|
184
|
+
},
|
|
185
|
+
specificationRange:
|
|
186
|
+
{
|
|
187
|
+
value: Object .freeze (["3.3", "Infinity"]),
|
|
188
|
+
enumerable: true,
|
|
189
|
+
},
|
|
190
|
+
fieldDefinitions:
|
|
191
|
+
{
|
|
192
|
+
value: new FieldDefinitionArray ([
|
|
193
|
+
new X3DFieldDefinition (X3DConstants .inputOutput, "metadata", new Fields .SFNode ()),
|
|
194
|
+
new X3DFieldDefinition (X3DConstants .inputOutput, "blendColor", new Fields .SFColorRGBA ()),
|
|
195
|
+
new X3DFieldDefinition (X3DConstants .inputOutput, "sourceColorFactor", new Fields .SFString ("SRC_ALPHA")),
|
|
196
|
+
new X3DFieldDefinition (X3DConstants .inputOutput, "sourceAlphaFactor", new Fields .SFString ("ONE")),
|
|
197
|
+
new X3DFieldDefinition (X3DConstants .inputOutput, "destinationColorFactor", new Fields .SFString ("ONE_MINUS_SRC_ALPHA")),
|
|
198
|
+
new X3DFieldDefinition (X3DConstants .inputOutput, "destinationAlphaFactor", new Fields .SFString ("ONE_MINUS_SRC_ALPHA")),
|
|
199
|
+
new X3DFieldDefinition (X3DConstants .inputOutput, "colorEquation", new Fields .SFString ("FUNC_ADD")),
|
|
200
|
+
new X3DFieldDefinition (X3DConstants .inputOutput, "alphaEquation", new Fields .SFString ("FUNC_ADD")),
|
|
201
|
+
]),
|
|
202
|
+
enumerable: true,
|
|
203
|
+
},
|
|
204
|
+
});
|
|
205
|
+
|
|
195
206
|
export default BlendMode;
|
package/src/x_ite/Components.js
CHANGED
|
@@ -45,8 +45,6 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
import X3DBrowserContext from "./Browser/X3DBrowserContext.js";
|
|
49
|
-
import SupportedNodes from "./Configuration/SupportedNodes.js";
|
|
50
48
|
import Core from "./Components/Core.js";
|
|
51
49
|
import EnvironmentalEffects from "./Components/EnvironmentalEffects.js";
|
|
52
50
|
import EnvironmentalSensor from "./Components/EnvironmentalSensor.js";
|
|
@@ -65,30 +63,56 @@ import Shape from "./Components/Shape.js";
|
|
|
65
63
|
import Sound from "./Components/Sound.js";
|
|
66
64
|
import Texturing from "./Components/Texturing.js";
|
|
67
65
|
import Time from "./Components/Time.js";
|
|
68
|
-
import
|
|
66
|
+
import AbstractNodes from "./Configuration/AbstractNodes.js"
|
|
67
|
+
import ConcreteNodes from "./Configuration/ConcreteNodes.js"
|
|
68
|
+
import X3DBrowserContext from "./Browser/X3DBrowserContext.js";
|
|
69
|
+
import DEVELOPMENT from "./DEVELOPMENT.js";
|
|
70
|
+
|
|
71
|
+
let external = false;
|
|
69
72
|
|
|
70
|
-
|
|
73
|
+
const Components =
|
|
71
74
|
{
|
|
72
|
-
|
|
75
|
+
add ({ name, concreteNodes, abstractNodes, browserContext })
|
|
73
76
|
{
|
|
74
|
-
if (
|
|
77
|
+
if (concreteNodes)
|
|
75
78
|
{
|
|
76
|
-
for (const
|
|
77
|
-
|
|
79
|
+
for (const ConcreteNode of concreteNodes)
|
|
80
|
+
ConcreteNodes .add (ConcreteNode .typeName, ConcreteNode);
|
|
78
81
|
}
|
|
79
82
|
|
|
80
|
-
if (
|
|
83
|
+
if (abstractNodes)
|
|
81
84
|
{
|
|
82
|
-
for (const
|
|
83
|
-
|
|
85
|
+
for (const AbstractNode of abstractNodes)
|
|
86
|
+
AbstractNodes .add (AbstractNode .typeName, AbstractNode);
|
|
84
87
|
}
|
|
85
88
|
|
|
86
89
|
if (browserContext)
|
|
87
90
|
X3DBrowserContext .addBrowserContext (browserContext);
|
|
88
91
|
|
|
89
|
-
if (
|
|
92
|
+
if (DEVELOPMENT && external)
|
|
90
93
|
console .info (`Done loading external component '${name}'.`);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
Components .add (Core);
|
|
98
|
+
Components .add (EnvironmentalEffects);
|
|
99
|
+
Components .add (EnvironmentalSensor);
|
|
100
|
+
Components .add (Followers);
|
|
101
|
+
Components .add (Geometry3D);
|
|
102
|
+
Components .add (Grouping);
|
|
103
|
+
Components .add (Interpolation);
|
|
104
|
+
Components .add (Layering);
|
|
105
|
+
Components .add (Lighting);
|
|
106
|
+
Components .add (Navigation);
|
|
107
|
+
Components .add (Networking);
|
|
108
|
+
Components .add (PointingDeviceSensor);
|
|
109
|
+
Components .add (Rendering);
|
|
110
|
+
Components .add (Shaders);
|
|
111
|
+
Components .add (Shape);
|
|
112
|
+
Components .add (Sound);
|
|
113
|
+
Components .add (Texturing);
|
|
114
|
+
Components .add (Time);
|
|
115
|
+
|
|
116
|
+
external = true;
|
|
93
117
|
|
|
94
118
|
export default Components;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*******************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4
|
+
*
|
|
5
|
+
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
6
|
+
*
|
|
7
|
+
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
8
|
+
*
|
|
9
|
+
* The copyright notice above does not evidence any actual of intended
|
|
10
|
+
* publication of such source code, and is an unpublished work by create3000.
|
|
11
|
+
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
12
|
+
* create3000.
|
|
13
|
+
*
|
|
14
|
+
* No permission is granted to copy, distribute, or create derivative works from
|
|
15
|
+
* the contents of this software, in whole or in part, without the prior written
|
|
16
|
+
* permission of create3000.
|
|
17
|
+
*
|
|
18
|
+
* NON-MILITARY USE ONLY
|
|
19
|
+
*
|
|
20
|
+
* All create3000 software are effectively free software with a non-military use
|
|
21
|
+
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
22
|
+
* source in any way you please with the exception anything that uses it must be
|
|
23
|
+
* marked to indicate is contains 'non-military use only' components.
|
|
24
|
+
*
|
|
25
|
+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
26
|
+
*
|
|
27
|
+
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
28
|
+
*
|
|
29
|
+
* This file is part of the X_ITE Project.
|
|
30
|
+
*
|
|
31
|
+
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
32
|
+
* terms of the GNU General Public License version 3 only, as published by the
|
|
33
|
+
* Free Software Foundation.
|
|
34
|
+
*
|
|
35
|
+
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
36
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
37
|
+
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
38
|
+
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
39
|
+
*
|
|
40
|
+
* You should have received a copy of the GNU General Public License version 3
|
|
41
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
42
|
+
* copy of the GPLv3 License.
|
|
43
|
+
*
|
|
44
|
+
* For Silvio, Joy and Adi.
|
|
45
|
+
*
|
|
46
|
+
******************************************************************************/
|
|
47
|
+
|
|
48
|
+
import AbstractNodesArray from "./AbstractNodesArray.js"
|
|
49
|
+
|
|
50
|
+
export default new AbstractNodesArray ();
|
|
@@ -45,41 +45,34 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
import X3DInfoArray from "../Base/X3DInfoArray.js";
|
|
49
|
+
import X3DConstants from "../Base/X3DConstants.js";
|
|
49
50
|
|
|
50
|
-
|
|
51
|
+
function AbstractNodesArray (values = [ ])
|
|
51
52
|
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
$(function ()
|
|
55
|
-
{
|
|
56
|
-
const elements = $("x3d-canvas, X3DCanvas");
|
|
53
|
+
return X3DInfoArray .call (this, Array .from (values, value => [value .typeName, value]), Function);
|
|
54
|
+
}
|
|
57
55
|
|
|
58
|
-
|
|
56
|
+
Object .assign (Object .setPrototypeOf (AbstractNodesArray .prototype, X3DInfoArray .prototype),
|
|
57
|
+
{
|
|
58
|
+
add (typeName, AbstractNode)
|
|
59
|
+
{
|
|
60
|
+
X3DConstants .addNode (AbstractNode);
|
|
59
61
|
|
|
60
|
-
|
|
61
|
-
{
|
|
62
|
-
if (typeof fallback === "function")
|
|
63
|
-
fallback (elements, error);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
.bind (this));
|
|
62
|
+
X3DInfoArray .prototype .add .call (this, typeName, AbstractNode);
|
|
67
63
|
},
|
|
68
|
-
|
|
69
|
-
{
|
|
70
|
-
console .error (error);
|
|
64
|
+
});
|
|
71
65
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
elements .children (":not(.x_ite-private-browser)") .show ();
|
|
66
|
+
for (const key of Reflect .ownKeys (AbstractNodesArray .prototype))
|
|
67
|
+
Object .defineProperty (AbstractNodesArray .prototype, key, { enumerable: false });
|
|
75
68
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
69
|
+
Object .defineProperties (AbstractNodesArray,
|
|
70
|
+
{
|
|
71
|
+
typeName:
|
|
72
|
+
{
|
|
73
|
+
value: "AbstractNodesArray",
|
|
74
|
+
enumerable: true,
|
|
82
75
|
},
|
|
83
|
-
};
|
|
76
|
+
});
|
|
84
77
|
|
|
85
|
-
export default
|
|
78
|
+
export default AbstractNodesArray;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
import X3DObject from "../Base/X3DObject.js";
|
|
49
49
|
import URLs from "../Browser/Networking/URLs.js";
|
|
50
50
|
|
|
51
|
-
function ComponentInfo (
|
|
51
|
+
function ComponentInfo (name, level, title, providerUrl, external = false, dependencies = [ ])
|
|
52
52
|
{
|
|
53
53
|
Object .defineProperties (this,
|
|
54
54
|
{
|
|
@@ -61,14 +61,9 @@ function ComponentInfo ({ name, level, title, providerUrl, external = false, dep
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
Object .assign (Object .setPrototypeOf (ComponentInfo .prototype, X3DObject .prototype),
|
|
65
65
|
{
|
|
66
|
-
|
|
67
|
-
getTypeName: function ()
|
|
68
|
-
{
|
|
69
|
-
return "ComponentInfo";
|
|
70
|
-
},
|
|
71
|
-
toVRMLStream: function (generator)
|
|
66
|
+
toVRMLStream (generator)
|
|
72
67
|
{
|
|
73
68
|
generator .string += generator .Indent ();
|
|
74
69
|
generator .string += "COMPONENT";
|
|
@@ -79,7 +74,7 @@ ComponentInfo .prototype = Object .assign (Object .create (X3DObject .prototype)
|
|
|
79
74
|
generator .string += generator .TidySpace ();
|
|
80
75
|
generator .string += this .level;
|
|
81
76
|
},
|
|
82
|
-
toXMLStream
|
|
77
|
+
toXMLStream (generator)
|
|
83
78
|
{
|
|
84
79
|
generator .string += generator .Indent ();
|
|
85
80
|
generator .string += "<component";
|
|
@@ -93,7 +88,7 @@ ComponentInfo .prototype = Object .assign (Object .create (X3DObject .prototype)
|
|
|
93
88
|
generator .string += "'";
|
|
94
89
|
generator .string += generator .closingTags ? "></component>" : "/>";
|
|
95
90
|
},
|
|
96
|
-
toJSONStream
|
|
91
|
+
toJSONStream (generator)
|
|
97
92
|
{
|
|
98
93
|
generator .string += generator .Indent ();
|
|
99
94
|
generator .string += '{';
|
|
@@ -130,4 +125,13 @@ ComponentInfo .prototype = Object .assign (Object .create (X3DObject .prototype)
|
|
|
130
125
|
for (const key of Reflect .ownKeys (ComponentInfo .prototype))
|
|
131
126
|
Object .defineProperty (ComponentInfo .prototype, key, { enumerable: false });
|
|
132
127
|
|
|
128
|
+
Object .defineProperties (ComponentInfo,
|
|
129
|
+
{
|
|
130
|
+
typeName:
|
|
131
|
+
{
|
|
132
|
+
value: "ComponentInfo",
|
|
133
|
+
enumerable: true,
|
|
134
|
+
},
|
|
135
|
+
});
|
|
136
|
+
|
|
133
137
|
export default ComponentInfo;
|
|
@@ -48,25 +48,29 @@
|
|
|
48
48
|
import X3DInfoArray from "../Base/X3DInfoArray.js";
|
|
49
49
|
import ComponentInfo from "./ComponentInfo.js";
|
|
50
50
|
|
|
51
|
-
function ComponentInfoArray (values)
|
|
51
|
+
function ComponentInfoArray (values = [ ])
|
|
52
52
|
{
|
|
53
|
-
return X3DInfoArray .call (this, values, ComponentInfo);
|
|
53
|
+
return X3DInfoArray .call (this, Array .from (values, value => [value .name, value]), ComponentInfo);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
Object .assign (Object .setPrototypeOf (ComponentInfoArray .prototype, X3DInfoArray .prototype),
|
|
57
57
|
{
|
|
58
|
-
|
|
59
|
-
getTypeName: function ()
|
|
58
|
+
add (name, { level, title, providerUrl, external = false, dependencies = [ ] })
|
|
60
59
|
{
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
addComponent: function (value)
|
|
64
|
-
{
|
|
65
|
-
this .add (value .name, new ComponentInfo (value));
|
|
60
|
+
X3DInfoArray .prototype .add .call (this, name, new ComponentInfo (name, level, title, providerUrl, external, dependencies));
|
|
66
61
|
},
|
|
67
62
|
});
|
|
68
63
|
|
|
69
64
|
for (const key of Reflect .ownKeys (ComponentInfoArray .prototype))
|
|
70
65
|
Object .defineProperty (ComponentInfoArray .prototype, key, { enumerable: false });
|
|
71
66
|
|
|
67
|
+
Object .defineProperties (ComponentInfoArray,
|
|
68
|
+
{
|
|
69
|
+
typeName:
|
|
70
|
+
{
|
|
71
|
+
value: "ComponentInfoArray",
|
|
72
|
+
enumerable: true,
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
|
|
72
76
|
export default ComponentInfoArray;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*******************************************************************************
|
|
2
|
+
*
|
|
3
|
+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4
|
+
*
|
|
5
|
+
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
6
|
+
*
|
|
7
|
+
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
8
|
+
*
|
|
9
|
+
* The copyright notice above does not evidence any actual of intended
|
|
10
|
+
* publication of such source code, and is an unpublished work by create3000.
|
|
11
|
+
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
12
|
+
* create3000.
|
|
13
|
+
*
|
|
14
|
+
* No permission is granted to copy, distribute, or create derivative works from
|
|
15
|
+
* the contents of this software, in whole or in part, without the prior written
|
|
16
|
+
* permission of create3000.
|
|
17
|
+
*
|
|
18
|
+
* NON-MILITARY USE ONLY
|
|
19
|
+
*
|
|
20
|
+
* All create3000 software are effectively free software with a non-military use
|
|
21
|
+
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
22
|
+
* source in any way you please with the exception anything that uses it must be
|
|
23
|
+
* marked to indicate is contains 'non-military use only' components.
|
|
24
|
+
*
|
|
25
|
+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
26
|
+
*
|
|
27
|
+
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
28
|
+
*
|
|
29
|
+
* This file is part of the X_ITE Project.
|
|
30
|
+
*
|
|
31
|
+
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
32
|
+
* terms of the GNU General Public License version 3 only, as published by the
|
|
33
|
+
* Free Software Foundation.
|
|
34
|
+
*
|
|
35
|
+
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
36
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
37
|
+
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
38
|
+
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
39
|
+
*
|
|
40
|
+
* You should have received a copy of the GNU General Public License version 3
|
|
41
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
42
|
+
* copy of the GPLv3 License.
|
|
43
|
+
*
|
|
44
|
+
* For Silvio, Joy and Adi.
|
|
45
|
+
*
|
|
46
|
+
******************************************************************************/
|
|
47
|
+
|
|
48
|
+
import ConcreteNodesArray from "./ConcreteNodesArray.js"
|
|
49
|
+
|
|
50
|
+
export default new ConcreteNodesArray ();
|
|
@@ -45,57 +45,43 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
+
import X3DInfoArray from "../Base/X3DInfoArray.js";
|
|
48
49
|
import X3DConstants from "../Base/X3DConstants.js";
|
|
49
50
|
import HTMLSupport from "../Parser/HTMLSupport.js";
|
|
50
51
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
abstractTypes = new Map ();
|
|
56
|
-
|
|
57
|
-
let nodeType = X3DConstants .X3DBaseNode;
|
|
52
|
+
function ConcreteNodesArray (values = [ ])
|
|
53
|
+
{
|
|
54
|
+
return X3DInfoArray .call (this, Array .from (values, value => [value .typeName, value]), Function);
|
|
55
|
+
}
|
|
58
56
|
|
|
59
|
-
|
|
57
|
+
Object .assign (Object .setPrototypeOf (ConcreteNodesArray .prototype, X3DInfoArray .prototype),
|
|
60
58
|
{
|
|
61
|
-
|
|
59
|
+
add (typeName, ConcreteNode)
|
|
62
60
|
{
|
|
63
|
-
X3DConstants
|
|
64
|
-
|
|
65
|
-
types .set (typeName, Type);
|
|
61
|
+
X3DConstants .addNode (ConcreteNode);
|
|
62
|
+
HTMLSupport .addConcreteNode (ConcreteNode);
|
|
66
63
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
// HTML Support
|
|
70
|
-
|
|
71
|
-
for (const { name, accessType } of Type .prototype [_fieldDefinitions])
|
|
72
|
-
{
|
|
73
|
-
if (accessType & X3DConstants .initializeOnly)
|
|
74
|
-
HTMLSupport .addFieldName (name)
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
getType: function (typeName)
|
|
78
|
-
{
|
|
79
|
-
return types .get (typeName);
|
|
64
|
+
X3DInfoArray .prototype .add .call (this, typeName, ConcreteNode);
|
|
80
65
|
},
|
|
81
|
-
|
|
66
|
+
update (oldTypeName, typeName, ConcreteNode)
|
|
82
67
|
{
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
addAbstractType: function (typeName, Type)
|
|
86
|
-
{
|
|
87
|
-
X3DConstants [typeName] = ++ nodeType;
|
|
68
|
+
X3DConstants .addNode (ConcreteNode);
|
|
69
|
+
HTMLSupport .addConcreteNode (ConcreteNode);
|
|
88
70
|
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
getAbstractType: function (typeName)
|
|
92
|
-
{
|
|
93
|
-
return abstractTypes .get (typeName);
|
|
71
|
+
X3DInfoArray .prototype .update .call (this, oldTypeName, typeName, ConcreteNode);
|
|
94
72
|
},
|
|
95
|
-
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
for (const key of Reflect .ownKeys (ConcreteNodesArray .prototype))
|
|
76
|
+
Object .defineProperty (ConcreteNodesArray .prototype, key, { enumerable: false });
|
|
77
|
+
|
|
78
|
+
Object .defineProperties (ConcreteNodesArray,
|
|
79
|
+
{
|
|
80
|
+
typeName:
|
|
96
81
|
{
|
|
97
|
-
|
|
82
|
+
value: "ConcreteNodesArray",
|
|
83
|
+
enumerable: true,
|
|
98
84
|
},
|
|
99
|
-
};
|
|
85
|
+
});
|
|
100
86
|
|
|
101
|
-
export default
|
|
87
|
+
export default ConcreteNodesArray;
|
|
@@ -58,25 +58,20 @@ function ProfileInfo (name, title, providerUrl, components)
|
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
Object .assign (Object .setPrototypeOf (ProfileInfo .prototype, X3DObject .prototype),
|
|
62
62
|
{
|
|
63
|
-
|
|
64
|
-
getTypeName: function ()
|
|
65
|
-
{
|
|
66
|
-
return "ProfileInfo";
|
|
67
|
-
},
|
|
68
|
-
toVRMLStream: function (generator)
|
|
63
|
+
toVRMLStream (generator)
|
|
69
64
|
{
|
|
70
65
|
generator .string += generator .Indent ();
|
|
71
66
|
generator .string += "PROFILE";
|
|
72
67
|
generator .string += generator .Space ();
|
|
73
68
|
generator .string += this .name;
|
|
74
69
|
},
|
|
75
|
-
toXMLStream
|
|
70
|
+
toXMLStream (generator)
|
|
76
71
|
{
|
|
77
72
|
generator .string += this .name;
|
|
78
73
|
},
|
|
79
|
-
toJSONStream
|
|
74
|
+
toJSONStream (generator)
|
|
80
75
|
{
|
|
81
76
|
generator .string += this .name;
|
|
82
77
|
},
|
|
@@ -85,4 +80,13 @@ ProfileInfo .prototype = Object .assign (Object .create (X3DObject .prototype),
|
|
|
85
80
|
for (const key of Reflect .ownKeys (ProfileInfo .prototype))
|
|
86
81
|
Object .defineProperty (ProfileInfo .prototype, key, { enumerable: false });
|
|
87
82
|
|
|
83
|
+
Object .defineProperties (ProfileInfo,
|
|
84
|
+
{
|
|
85
|
+
typeName:
|
|
86
|
+
{
|
|
87
|
+
value: "ProfileInfo",
|
|
88
|
+
enumerable: true,
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
|
|
88
92
|
export default ProfileInfo;
|
|
@@ -49,28 +49,29 @@ import X3DInfoArray from "../Base/X3DInfoArray.js";
|
|
|
49
49
|
import ComponentInfoArray from "./ComponentInfoArray.js";
|
|
50
50
|
import ProfileInfo from "./ProfileInfo.js";
|
|
51
51
|
|
|
52
|
-
function ProfileInfoArray (values)
|
|
52
|
+
function ProfileInfoArray (values = [ ])
|
|
53
53
|
{
|
|
54
|
-
return X3DInfoArray .call (this, values,
|
|
54
|
+
return X3DInfoArray .call (this, Array .from (values, value => [value .name, value]), ProfileInfo);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
Object .assign (Object .setPrototypeOf (ProfileInfoArray .prototype, X3DInfoArray .prototype),
|
|
58
58
|
{
|
|
59
|
-
|
|
60
|
-
getTypeName: function ()
|
|
59
|
+
add (name, { title, providerUrl, components })
|
|
61
60
|
{
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
addProfile: function (profile)
|
|
65
|
-
{
|
|
66
|
-
this .add (profile .name, new ProfileInfo (profile .name,
|
|
67
|
-
profile .title,
|
|
68
|
-
profile .providerUrl,
|
|
69
|
-
new ComponentInfoArray (profile .components)));
|
|
61
|
+
X3DInfoArray .prototype .add .call (this, name, new ProfileInfo (name, title, providerUrl, new ComponentInfoArray (components)));
|
|
70
62
|
},
|
|
71
63
|
});
|
|
72
64
|
|
|
73
65
|
for (const key of Reflect .ownKeys (ProfileInfoArray .prototype))
|
|
74
66
|
Object .defineProperty (ProfileInfoArray .prototype, key, { enumerable: false });
|
|
75
67
|
|
|
68
|
+
Object .defineProperties (ProfileInfoArray,
|
|
69
|
+
{
|
|
70
|
+
typeName:
|
|
71
|
+
{
|
|
72
|
+
value: "ProfileInfoArray",
|
|
73
|
+
enumerable: true,
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
|
|
76
77
|
export default ProfileInfoArray;
|