x_ite 8.8.3 → 8.8.4
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/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +13 -13
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +29 -29
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +22 -22
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +48 -48
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +19 -19
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +32 -32
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +35 -35
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +33 -33
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +32 -35
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +47 -56
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +38 -45
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +26 -26
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +16 -16
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +37 -37
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +18 -18
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +1762 -1827
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/package.json +2 -2
- package/src/bookmarks.js +1 -1
- package/src/lib/jquery.js +8 -0
- package/src/lib/nurbs/src/utils/create-accessors.js +4 -4
- package/src/lib/nurbs/src/utils/variable.js +1 -1
- package/src/shim.js +1 -1
- package/src/standard/Math/Algorithms/Bezier.js +2 -2
- package/src/standard/Math/Geometry/Box2.js +4 -4
- package/src/standard/Math/Geometry/Box3.js +8 -8
- package/src/standard/Math/Geometry/Camera.js +1 -1
- package/src/standard/Math/Geometry/Line2.js +2 -2
- package/src/standard/Math/Geometry/Line3.js +4 -4
- package/src/standard/Math/Geometry/Sphere3.js +1 -1
- package/src/standard/Math/Geometry/Triangle3.js +2 -2
- package/src/standard/Math/Geometry/ViewVolume.js +10 -10
- package/src/standard/Math/Numbers/Matrix2.js +2 -2
- package/src/standard/Math/Numbers/Matrix3.js +10 -10
- package/src/standard/Math/Numbers/Matrix4.js +12 -12
- package/src/standard/Math/Numbers/Quaternion.js +2 -2
- package/src/standard/Math/Numbers/Rotation4.js +2 -2
- package/src/standard/Math/Numbers/Vector3.js +1 -1
- package/src/standard/Utility/MapUtilities.js +2 -2
- package/src/x_ite/Base/Events.js +6 -33
- package/src/x_ite/Base/FieldArray.js +1 -1
- package/src/x_ite/Base/FieldDefinitionArray.js +1 -1
- package/src/x_ite/Base/X3DArrayField.js +1 -1
- package/src/x_ite/Base/X3DBaseNode.js +58 -69
- package/src/x_ite/Base/X3DChildObject.js +46 -14
- package/src/x_ite/Base/X3DConstants.js +1 -1
- package/src/x_ite/Base/X3DField.js +4 -6
- package/src/x_ite/Base/X3DFieldDefinition.js +1 -1
- package/src/x_ite/Base/X3DInfoArray.js +1 -1
- package/src/x_ite/Base/X3DObject.js +5 -5
- package/src/x_ite/Base/X3DObjectArrayField.js +1 -1
- package/src/x_ite/Base/X3DTypedArrayField.js +1 -1
- package/src/x_ite/Browser/Core/BrowserOptions.js +7 -3
- package/src/x_ite/Browser/Core/BrowserTimings.js +1 -1
- package/src/x_ite/Browser/Core/ContextMenu.js +1 -12
- package/src/x_ite/Browser/Core/X3DCoreContext.js +1 -2
- package/src/x_ite/Browser/Geometry2D/Disk2DOptions.js +1 -1
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator.js +2 -2
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +1 -1
- package/src/x_ite/Browser/Interpolation/SquatInterpolator.js +1 -1
- package/src/x_ite/Browser/Layout/ScreenText.js +4 -4
- package/src/x_ite/Browser/Layout/X3DLayoutContext.js +1 -1
- package/src/x_ite/Browser/NURBS/NURBS.js +3 -3
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +9 -13
- package/src/x_ite/Browser/Navigation/LookAtViewer.js +4 -7
- package/src/x_ite/Browser/Navigation/WalkViewer.js +1 -1
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +5 -6
- package/src/x_ite/Browser/Navigation/X3DViewer.js +2 -2
- package/src/x_ite/Browser/Networking/URLs.js +17 -9
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +0 -2
- package/src/x_ite/Browser/Picking/VolumePicker.js +2 -2
- package/src/x_ite/Browser/Text/PolygonText.js +2 -2
- package/src/x_ite/Browser/Texturing3D/DICOMParser.js +3 -3
- package/src/x_ite/Browser/Texturing3D/NRRDParser.js +2 -2
- package/src/x_ite/Browser/Time/X3DTimeContext.js +1 -1
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +148 -67
- package/src/x_ite/Browser/X3DBrowserContext.js +52 -16
- package/src/x_ite/Components/Core/X3DNode.js +21 -2
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +38 -42
- package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +2 -2
- package/src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +4 -4
- package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +1 -1
- package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +2 -2
- package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +2 -2
- package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +1 -1
- package/src/x_ite/Components/Followers/X3DFollowerNode.js +1 -1
- package/src/x_ite/Components/Geometry2D/ArcClose2D.js +1 -1
- package/src/x_ite/Components/Geometry2D/Rectangle2D.js +1 -1
- package/src/x_ite/Components/Geometry3D/Box.js +1 -1
- package/src/x_ite/Components/Geometry3D/Extrusion.js +3 -3
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +3 -3
- package/src/x_ite/Components/Geospatial/GeoCoordinate.js +6 -6
- package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoViewpoint.js +7 -7
- package/src/x_ite/Components/Grouping/StaticGroup.js +1 -1
- package/src/x_ite/Components/Grouping/X3DBoundedObject.js +2 -2
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +1 -1
- package/src/x_ite/Components/Interpolation/ColorInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/NormalInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/PositionInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +1 -1
- package/src/x_ite/Components/Layering/X3DLayerNode.js +1 -1
- package/src/x_ite/Components/Lighting/X3DLightNode.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +1 -1
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +2 -2
- package/src/x_ite/Components/Navigation/Billboard.js +1 -1
- package/src/x_ite/Components/Navigation/LOD.js +2 -2
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +1 -1
- package/src/x_ite/Components/Navigation/Viewpoint.js +1 -1
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +3 -3
- package/src/x_ite/Components/Networking/Inline.js +0 -4
- package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +1 -1
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +2 -2
- package/src/x_ite/Components/ParticleSystems/PointEmitter.js +1 -1
- package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +2 -2
- package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +1 -1
- package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +2 -2
- package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +1 -1
- package/src/x_ite/Components/Picking/LinePickSensor.js +1 -1
- package/src/x_ite/Components/Picking/PickableGroup.js +1 -1
- package/src/x_ite/Components/Picking/PointPickSensor.js +2 -2
- package/src/x_ite/Components/Picking/PrimitivePickSensor.js +1 -1
- package/src/x_ite/Components/Picking/VolumePickSensor.js +1 -1
- package/src/x_ite/Components/Picking/X3DPickSensorNode.js +6 -9
- package/src/x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode.js +1 -1
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +1 -1
- package/src/x_ite/Components/Rendering/X3DCoordinateNode.js +2 -2
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +8 -11
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +2 -2
- package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +2 -2
- package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +3 -3
- package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +5 -14
- package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +3 -3
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +9 -9
- package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +3 -3
- package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js +1 -1
- package/src/x_ite/Components/Scripting/Script.js +1 -8
- package/src/x_ite/Components/Shaders/ShaderPart.js +2 -2
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +385 -382
- package/src/x_ite/Components/Shape/Appearance.js +1 -1
- package/src/x_ite/Components/Shape/Material.js +1 -1
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +1 -1
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +1 -1
- package/src/x_ite/Components/Sound/Sound.js +2 -2
- package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +2 -2
- package/src/x_ite/Components/Texturing/MultiTexture.js +3 -3
- package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +1 -1
- package/src/x_ite/Components/Texturing/TextureProperties.js +4 -4
- package/src/x_ite/Components/Texturing/TextureTransform.js +1 -1
- package/src/x_ite/Components/Texturing/X3DSingleTextureNode.js +2 -2
- package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +1 -1
- package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +1 -1
- package/src/x_ite/Components.js +1 -20
- package/src/x_ite/Configuration/AbstractNodesArray.js +1 -1
- package/src/x_ite/Configuration/ComponentInfo.js +1 -1
- package/src/x_ite/Configuration/ComponentInfoArray.js +1 -1
- package/src/x_ite/Configuration/ConcreteNodesArray.js +1 -1
- package/src/x_ite/Configuration/ProfileInfo.js +1 -1
- package/src/x_ite/Configuration/ProfileInfoArray.js +1 -1
- package/src/x_ite/Configuration/UnitInfo.js +1 -1
- package/src/x_ite/Configuration/UnitInfoArray.js +1 -1
- package/src/x_ite/Execution/BindableList.js +1 -1
- package/src/x_ite/Execution/BindableStack.js +1 -1
- package/src/x_ite/Execution/ExportedNodesArray.js +1 -1
- package/src/x_ite/Execution/ImportedNodesArray.js +1 -1
- package/src/x_ite/Execution/NamedNodesArray.js +1 -1
- package/src/x_ite/Execution/X3DExecutionContext.js +9 -11
- package/src/x_ite/Execution/X3DExportedNode.js +1 -1
- package/src/x_ite/Execution/X3DImportedNode.js +1 -1
- package/src/x_ite/Execution/X3DScene.js +2 -6
- package/src/x_ite/Execution/X3DWorld.js +1 -2
- package/src/x_ite/{Browser/Networking/Features.js → Features.js} +9 -2
- package/src/x_ite/Fields/ArrayFields.js +9 -51
- package/src/x_ite/Fields/SFBool.js +1 -1
- package/src/x_ite/Fields/SFColor.js +2 -2
- package/src/x_ite/Fields/SFColorRGBA.js +2 -2
- package/src/x_ite/Fields/SFDouble.js +1 -1
- package/src/x_ite/Fields/SFFloat.js +1 -1
- package/src/x_ite/Fields/SFImage.js +2 -2
- package/src/x_ite/Fields/SFInt32.js +1 -1
- package/src/x_ite/Fields/SFMatrix3.js +1 -1
- package/src/x_ite/Fields/SFMatrix4.js +1 -1
- package/src/x_ite/Fields/SFNode.js +3 -25
- package/src/x_ite/Fields/SFNodeCache.js +24 -3
- package/src/x_ite/Fields/SFRotation.js +1 -1
- package/src/x_ite/Fields/SFString.js +1 -1
- package/src/x_ite/Fields/SFTime.js +1 -1
- package/src/x_ite/Fields/SFVec2.js +1 -1
- package/src/x_ite/Fields/SFVec3.js +1 -1
- package/src/x_ite/Fields/SFVec4.js +1 -1
- package/src/x_ite/InputOutput/FileLoader.js +1 -1
- package/src/x_ite/InputOutput/Generator.js +8 -8
- package/src/x_ite/Parser/GLTF2Parser.js +5 -5
- package/src/x_ite/Parser/HTMLSupport.js +3 -0
- package/src/x_ite/Parser/SVGParser.js +2 -2
- package/src/x_ite/Parser/VRMLParser.js +1 -1
- package/src/x_ite/Parser/XMLParser.js +1 -1
- package/src/x_ite/Prototype/ExternProtoDeclarationArray.js +1 -1
- package/src/x_ite/Prototype/ProtoDeclarationArray.js +1 -1
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +1 -3
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +1 -2
- package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +1 -2
- package/src/x_ite/Rendering/DependentRenderer.js +1 -1
- package/src/x_ite/Rendering/TextureBuffer.js +2 -2
- package/src/x_ite/Rendering/X3DRenderObject.js +11 -11
- package/src/x_ite/Routing/RouteArray.js +1 -1
- package/src/x_ite/Routing/X3DRoute.js +1 -1
- package/src/x_ite/X3D.js +2 -2
- package/src/x_ite.html +3 -3
- package/x_ite.min.html +3 -3
- package/src/x_ite/Base/X3DEventObject.js +0 -115
|
@@ -231,7 +231,7 @@ Object .assign (Object .setPrototypeOf (X3DBackgroundNode .prototype, X3DBindabl
|
|
|
231
231
|
|
|
232
232
|
this .transferSphere ();
|
|
233
233
|
},
|
|
234
|
-
buildSphere: (
|
|
234
|
+
buildSphere: (() =>
|
|
235
235
|
{
|
|
236
236
|
const U_DIMENSION = 20;
|
|
237
237
|
|
|
@@ -325,7 +325,7 @@ Object .assign (Object .setPrototypeOf (X3DBackgroundNode .prototype, X3DBindabl
|
|
|
325
325
|
|
|
326
326
|
this .sphereCount = this .sphere .length / 4;
|
|
327
327
|
},
|
|
328
|
-
transferRectangle: (
|
|
328
|
+
transferRectangle: (() =>
|
|
329
329
|
{
|
|
330
330
|
const s = SIZE;
|
|
331
331
|
|
|
@@ -452,7 +452,7 @@ Object .assign (Object .setPrototypeOf (X3DBackgroundNode .prototype, X3DBindabl
|
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
454
|
},
|
|
455
|
-
display: (
|
|
455
|
+
display: (() =>
|
|
456
456
|
{
|
|
457
457
|
const
|
|
458
458
|
modelViewMatrix = new Matrix4 (),
|
|
@@ -534,7 +534,7 @@ Object .assign (Object .setPrototypeOf (X3DBackgroundNode .prototype, X3DBindabl
|
|
|
534
534
|
|
|
535
535
|
gl .drawArrays (gl .TRIANGLES, 0, this .sphereCount);
|
|
536
536
|
},
|
|
537
|
-
drawCube: (
|
|
537
|
+
drawCube: (() =>
|
|
538
538
|
{
|
|
539
539
|
const textureMatrixArray = new Float32Array (Matrix4 .Identity);
|
|
540
540
|
|
|
@@ -114,7 +114,7 @@ Object .assign (Object .setPrototypeOf (ProximitySensor .prototype, X3DEnvironme
|
|
|
114
114
|
this .min .set (cx - sx, cy - sy, cz - sz);
|
|
115
115
|
this .max .set (cx + sx, cy + sy, cz + sz);
|
|
116
116
|
},
|
|
117
|
-
update: (
|
|
117
|
+
update: (() =>
|
|
118
118
|
{
|
|
119
119
|
const
|
|
120
120
|
invModelMatrix = new Matrix4 (),
|
|
@@ -183,7 +183,7 @@ Object .assign (Object .setPrototypeOf (ProximitySensor .prototype, X3DEnvironme
|
|
|
183
183
|
this .setTraversed (false);
|
|
184
184
|
};
|
|
185
185
|
})(),
|
|
186
|
-
traverse: (
|
|
186
|
+
traverse: (() =>
|
|
187
187
|
{
|
|
188
188
|
const
|
|
189
189
|
invModelViewMatrix = new Matrix4 (),
|
|
@@ -180,7 +180,7 @@ Object .assign (Object .setPrototypeOf (TransformSensor .prototype, X3DEnvironme
|
|
|
180
180
|
{
|
|
181
181
|
this .targetMatrices .push (TargetMatrixCache .pop () .assign (targetMatrix));
|
|
182
182
|
},
|
|
183
|
-
process: (
|
|
183
|
+
process: (() =>
|
|
184
184
|
{
|
|
185
185
|
const
|
|
186
186
|
position = new Vector3 (0, 0, 0),
|
|
@@ -232,7 +232,7 @@ Object .assign (Object .setPrototypeOf (TransformSensor .prototype, X3DEnvironme
|
|
|
232
232
|
targetMatrices .length = 0;
|
|
233
233
|
};
|
|
234
234
|
})(),
|
|
235
|
-
intersects: (
|
|
235
|
+
intersects: (() =>
|
|
236
236
|
{
|
|
237
237
|
const infinity = new Vector3 (-1, -1, -1);
|
|
238
238
|
|
|
@@ -115,7 +115,7 @@ Object .assign (Object .setPrototypeOf (X3DFollowerNode .prototype, X3DChildNode
|
|
|
115
115
|
},
|
|
116
116
|
set_live__ ()
|
|
117
117
|
{
|
|
118
|
-
if (
|
|
118
|
+
if (this .getLive () .getValue () && this ._isActive .getValue ())
|
|
119
119
|
{
|
|
120
120
|
this .getBrowser () .prepareEvents () .addInterest ("prepareEvents", this);
|
|
121
121
|
this .getBrowser () .addBrowserEvent ();
|
|
@@ -93,7 +93,7 @@ Object .assign (Object .setPrototypeOf (Extrusion .prototype, X3DGeometryNode .p
|
|
|
93
93
|
|
|
94
94
|
return true;
|
|
95
95
|
},
|
|
96
|
-
createPoints: (
|
|
96
|
+
createPoints: (() =>
|
|
97
97
|
{
|
|
98
98
|
const scale3 = new Vector3 (1, 1, 1);
|
|
99
99
|
|
|
@@ -135,7 +135,7 @@ Object .assign (Object .setPrototypeOf (Extrusion .prototype, X3DGeometryNode .p
|
|
|
135
135
|
return points;
|
|
136
136
|
};
|
|
137
137
|
})(),
|
|
138
|
-
createRotations: (
|
|
138
|
+
createRotations: (() =>
|
|
139
139
|
{
|
|
140
140
|
const rotations = [ ];
|
|
141
141
|
|
|
@@ -327,7 +327,7 @@ Object .assign (Object .setPrototypeOf (Extrusion .prototype, X3DGeometryNode .p
|
|
|
327
327
|
return rotations;
|
|
328
328
|
};
|
|
329
329
|
})(),
|
|
330
|
-
build: (
|
|
330
|
+
build: (() =>
|
|
331
331
|
{
|
|
332
332
|
const
|
|
333
333
|
min = new Vector2 (0, 0, 0),
|
|
@@ -273,7 +273,7 @@ Object .assign (Object .setPrototypeOf (IndexedFaceSet .prototype, X3DComposedGe
|
|
|
273
273
|
|
|
274
274
|
return polygons;
|
|
275
275
|
},
|
|
276
|
-
triangulatePolygon: (
|
|
276
|
+
triangulatePolygon: (() =>
|
|
277
277
|
{
|
|
278
278
|
const polygon = [ ];
|
|
279
279
|
|
|
@@ -319,7 +319,7 @@ Object .assign (Object .setPrototypeOf (IndexedFaceSet .prototype, X3DComposedGe
|
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
},
|
|
322
|
-
createNormals: (
|
|
322
|
+
createNormals: (() =>
|
|
323
323
|
{
|
|
324
324
|
const
|
|
325
325
|
normals = [ ],
|
|
@@ -393,7 +393,7 @@ Object .assign (Object .setPrototypeOf (IndexedFaceSet .prototype, X3DComposedGe
|
|
|
393
393
|
return this .refineNormals (normalIndex, normals, this ._creaseAngle .getValue ());
|
|
394
394
|
};
|
|
395
395
|
})(),
|
|
396
|
-
getPolygonNormal: (
|
|
396
|
+
getPolygonNormal: (() =>
|
|
397
397
|
{
|
|
398
398
|
let
|
|
399
399
|
current = new Vector3 (0, 0, 0),
|
|
@@ -70,7 +70,7 @@ Object .assign (Object .setPrototypeOf (GeoCoordinate .prototype, X3DCoordinateN
|
|
|
70
70
|
X3DCoordinateNode .prototype .initialize .call (this);
|
|
71
71
|
X3DGeospatialObject .prototype .initialize .call (this);
|
|
72
72
|
},
|
|
73
|
-
set1Point: (
|
|
73
|
+
set1Point: (() =>
|
|
74
74
|
{
|
|
75
75
|
const result = new Vector3 (0, 0, 0);
|
|
76
76
|
|
|
@@ -79,7 +79,7 @@ Object .assign (Object .setPrototypeOf (GeoCoordinate .prototype, X3DCoordinateN
|
|
|
79
79
|
this ._point [index] = this .getGeoCoord (point, result);
|
|
80
80
|
};
|
|
81
81
|
})(),
|
|
82
|
-
get1Point: (
|
|
82
|
+
get1Point: (() =>
|
|
83
83
|
{
|
|
84
84
|
const p = new Vector3 (0, 0, 0);
|
|
85
85
|
|
|
@@ -99,7 +99,7 @@ Object .assign (Object .setPrototypeOf (GeoCoordinate .prototype, X3DCoordinateN
|
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
})(),
|
|
102
|
-
addPoint: (
|
|
102
|
+
addPoint: (() =>
|
|
103
103
|
{
|
|
104
104
|
const
|
|
105
105
|
p = new Vector3 (0, 0, 0),
|
|
@@ -123,7 +123,7 @@ Object .assign (Object .setPrototypeOf (GeoCoordinate .prototype, X3DCoordinateN
|
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
})(),
|
|
126
|
-
addPoints: (
|
|
126
|
+
addPoints: (() =>
|
|
127
127
|
{
|
|
128
128
|
const
|
|
129
129
|
p = new Vector3 (0, 0, 0),
|
|
@@ -144,7 +144,7 @@ Object .assign (Object .setPrototypeOf (GeoCoordinate .prototype, X3DCoordinateN
|
|
|
144
144
|
array .push (0, 0, 0, 1);
|
|
145
145
|
};
|
|
146
146
|
})(),
|
|
147
|
-
getNormal: (
|
|
147
|
+
getNormal: (() =>
|
|
148
148
|
{
|
|
149
149
|
const
|
|
150
150
|
point1 = new Vector3 (0, 0, 0),
|
|
@@ -168,7 +168,7 @@ Object .assign (Object .setPrototypeOf (GeoCoordinate .prototype, X3DCoordinateN
|
|
|
168
168
|
return new Vector3 (0, 0, 0);
|
|
169
169
|
};
|
|
170
170
|
})(),
|
|
171
|
-
getQuadNormal: (
|
|
171
|
+
getQuadNormal: (() =>
|
|
172
172
|
{
|
|
173
173
|
const
|
|
174
174
|
point1 = new Vector3 (0, 0, 0),
|
|
@@ -90,7 +90,7 @@ Object .assign (Object .setPrototypeOf (GeoPositionInterpolator .prototype, X3DI
|
|
|
90
90
|
if (keyValue .length < key .length)
|
|
91
91
|
keyValue .resize (key .length, keyValue .length ? keyValue [keyValue .length - 1] : new Fields .SFVec3f ());
|
|
92
92
|
},
|
|
93
|
-
interpolate: (
|
|
93
|
+
interpolate: (() =>
|
|
94
94
|
{
|
|
95
95
|
const
|
|
96
96
|
keyValue0 = new Vector3 (0, 0, 0),
|
|
@@ -71,7 +71,7 @@ Object .assign (Object .setPrototypeOf (GeoTouchSensor .prototype, X3DTouchSenso
|
|
|
71
71
|
X3DTouchSensorNode .prototype .initialize .call (this);
|
|
72
72
|
X3DGeospatialObject .prototype .initialize .call (this);
|
|
73
73
|
},
|
|
74
|
-
set_over__: (
|
|
74
|
+
set_over__: (() =>
|
|
75
75
|
{
|
|
76
76
|
const geoCoords = new Vector3 (0, 0, 0);
|
|
77
77
|
|
|
@@ -111,7 +111,7 @@ Object .assign (Object .setPrototypeOf (GeoViewpoint .prototype, X3DViewpointNod
|
|
|
111
111
|
{
|
|
112
112
|
return this .logarithmicDepthBuffer;
|
|
113
113
|
},
|
|
114
|
-
setPosition: (
|
|
114
|
+
setPosition: (() =>
|
|
115
115
|
{
|
|
116
116
|
const geoPosition = new Vector3 (0, 0, 0);
|
|
117
117
|
|
|
@@ -120,7 +120,7 @@ Object .assign (Object .setPrototypeOf (GeoViewpoint .prototype, X3DViewpointNod
|
|
|
120
120
|
this ._position .setValue (this .getGeoCoord (value, geoPosition));
|
|
121
121
|
};
|
|
122
122
|
})(),
|
|
123
|
-
getPosition: (
|
|
123
|
+
getPosition: (() =>
|
|
124
124
|
{
|
|
125
125
|
const position = new Vector3 (0, 0, 0);
|
|
126
126
|
|
|
@@ -129,7 +129,7 @@ Object .assign (Object .setPrototypeOf (GeoViewpoint .prototype, X3DViewpointNod
|
|
|
129
129
|
return this .getCoord (this ._position .getValue (), position);
|
|
130
130
|
};
|
|
131
131
|
})(),
|
|
132
|
-
set_position__: (
|
|
132
|
+
set_position__: (() =>
|
|
133
133
|
{
|
|
134
134
|
const position = new Vector3 (0, 0, 0);
|
|
135
135
|
|
|
@@ -140,7 +140,7 @@ Object .assign (Object .setPrototypeOf (GeoViewpoint .prototype, X3DViewpointNod
|
|
|
140
140
|
this .elevation = this .getGeoElevation (position .add (this ._positionOffset .getValue ()));
|
|
141
141
|
};
|
|
142
142
|
})(),
|
|
143
|
-
setOrientation: (
|
|
143
|
+
setOrientation: (() =>
|
|
144
144
|
{
|
|
145
145
|
const
|
|
146
146
|
locationMatrix = new Matrix4 (),
|
|
@@ -157,7 +157,7 @@ Object .assign (Object .setPrototypeOf (GeoViewpoint .prototype, X3DViewpointNod
|
|
|
157
157
|
this ._orientation .setValue (geoOrientation .inverse () .multLeft (value));
|
|
158
158
|
};
|
|
159
159
|
})(),
|
|
160
|
-
getOrientation: (
|
|
160
|
+
getOrientation: (() =>
|
|
161
161
|
{
|
|
162
162
|
const
|
|
163
163
|
locationMatrix = new Matrix4 (),
|
|
@@ -174,7 +174,7 @@ Object .assign (Object .setPrototypeOf (GeoViewpoint .prototype, X3DViewpointNod
|
|
|
174
174
|
return orientation .multLeft (this ._orientation .getValue ());
|
|
175
175
|
};
|
|
176
176
|
})(),
|
|
177
|
-
getCenterOfRotation: (
|
|
177
|
+
getCenterOfRotation: (() =>
|
|
178
178
|
{
|
|
179
179
|
const centerOfRotation = new Vector3 (0, 0, 0);
|
|
180
180
|
|
|
@@ -187,7 +187,7 @@ Object .assign (Object .setPrototypeOf (GeoViewpoint .prototype, X3DViewpointNod
|
|
|
187
187
|
{
|
|
188
188
|
return 1e9;
|
|
189
189
|
},
|
|
190
|
-
getUpVector: (
|
|
190
|
+
getUpVector: (() =>
|
|
191
191
|
{
|
|
192
192
|
const
|
|
193
193
|
position = new Vector3 (0, 0, 0),
|
|
@@ -68,7 +68,7 @@ function X3DBoundedObject (executionContext)
|
|
|
68
68
|
Object .assign (X3DBoundedObject .prototype,
|
|
69
69
|
{
|
|
70
70
|
initialize () { },
|
|
71
|
-
getDefaultBBoxSize: (
|
|
71
|
+
getDefaultBBoxSize: (() =>
|
|
72
72
|
{
|
|
73
73
|
const defaultBBoxSize = new Vector3 (-1, -1, -1);
|
|
74
74
|
|
|
@@ -94,7 +94,7 @@ Object .assign (X3DBoundedObject .prototype,
|
|
|
94
94
|
|
|
95
95
|
return bbox;
|
|
96
96
|
},
|
|
97
|
-
displayBBox: (
|
|
97
|
+
displayBBox: (() =>
|
|
98
98
|
{
|
|
99
99
|
const
|
|
100
100
|
bbox = new Box3 (),
|
|
@@ -69,7 +69,7 @@ Object .assign (Object .setPrototypeOf (NormalInterpolator .prototype, X3DInterp
|
|
|
69
69
|
this ._keyValue .addInterest ("set_keyValue__", this);
|
|
70
70
|
},
|
|
71
71
|
set_keyValue__ () { },
|
|
72
|
-
interpolate: (
|
|
72
|
+
interpolate: (() =>
|
|
73
73
|
{
|
|
74
74
|
const
|
|
75
75
|
keyValue0 = new Vector3 (0, 0, 0),
|
|
@@ -79,7 +79,7 @@ Object .assign (Object .setPrototypeOf (OrientationInterpolator .prototype, X3DI
|
|
|
79
79
|
if (keyValue .length < key .length)
|
|
80
80
|
keyValue .resize (key .length, keyValue .length ? keyValue [keyValue .length - 1] : new Fields .SFRotation ());
|
|
81
81
|
},
|
|
82
|
-
interpolate: (
|
|
82
|
+
interpolate: (() =>
|
|
83
83
|
{
|
|
84
84
|
const
|
|
85
85
|
keyValue0 = new Rotation4 (),
|
|
@@ -76,7 +76,7 @@ Object .assign (Object .setPrototypeOf (PositionInterpolator .prototype, X3DInte
|
|
|
76
76
|
if (keyValue .length < key .length)
|
|
77
77
|
keyValue .resize (key .length, keyValue .length ? keyValue [keyValue .length - 1] : new Fields .SFVec3f ());
|
|
78
78
|
},
|
|
79
|
-
interpolate: (
|
|
79
|
+
interpolate: (() =>
|
|
80
80
|
{
|
|
81
81
|
const keyValue = new Vector3 (0, 0, 0);
|
|
82
82
|
|
|
@@ -76,7 +76,7 @@ Object .assign (Object .setPrototypeOf (PositionInterpolator2D .prototype, X3DIn
|
|
|
76
76
|
if (keyValue .length < key .length)
|
|
77
77
|
keyValue .resize (key .length, keyValue .length ? keyValue [keyValue .length - 1] : new Fields .SFVec2f ());
|
|
78
78
|
},
|
|
79
|
-
interpolate: (
|
|
79
|
+
interpolate: (() =>
|
|
80
80
|
{
|
|
81
81
|
const keyValue = new Vector2 (0, 0);
|
|
82
82
|
|
|
@@ -121,7 +121,7 @@ Object .assign (Object .setPrototypeOf (X3DLightNode .prototype, X3DChildNode .p
|
|
|
121
121
|
{
|
|
122
122
|
return Math .min (this ._shadowMapSize .getValue (), this .getBrowser () .getMaxTextureSize ());
|
|
123
123
|
},
|
|
124
|
-
getBiasMatrix: (
|
|
124
|
+
getBiasMatrix: (() =>
|
|
125
125
|
{
|
|
126
126
|
// Transforms normalized coords from range (-1, 1) to (0, 1).
|
|
127
127
|
const biasMatrix = new Matrix4 (0.5, 0.0, 0.0, 0.0,
|
|
@@ -231,7 +231,7 @@ Object .assign (Object .setPrototypeOf (X3DNurbsSurfaceGeometryNode .prototype,
|
|
|
231
231
|
this .setSolid (this ._solid .getValue ());
|
|
232
232
|
this .setCCW (true);
|
|
233
233
|
},
|
|
234
|
-
buildNurbsTexCoords: (
|
|
234
|
+
buildNurbsTexCoords: (() =>
|
|
235
235
|
{
|
|
236
236
|
const
|
|
237
237
|
defaultTexUKnots = [ ],
|
|
@@ -337,7 +337,7 @@ Object .assign (Object .setPrototypeOf (X3DNurbsSurfaceGeometryNode .prototype,
|
|
|
337
337
|
|
|
338
338
|
return this .refineNormals (normalIndex, normals, Algorithm .radians (85));
|
|
339
339
|
},
|
|
340
|
-
createFaceNormals: (
|
|
340
|
+
createFaceNormals: (() =>
|
|
341
341
|
{
|
|
342
342
|
const
|
|
343
343
|
v1 = new Vector3 (0, 0, 0),
|
|
@@ -171,7 +171,7 @@ Object .assign (Object .setPrototypeOf (LOD .prototype, X3DGroupingNode .prototy
|
|
|
171
171
|
this .boundedObject = null;
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
|
-
getLevel: (
|
|
174
|
+
getLevel: (() =>
|
|
175
175
|
{
|
|
176
176
|
const
|
|
177
177
|
FRAMES = 180, // Number of frames after wich a level change takes in affect.
|
|
@@ -208,7 +208,7 @@ Object .assign (Object .setPrototypeOf (LOD .prototype, X3DGroupingNode .prototy
|
|
|
208
208
|
return Algorithm .upperBound (this ._range, 0, this ._range .length, distance);
|
|
209
209
|
};
|
|
210
210
|
})(),
|
|
211
|
-
traverse: (
|
|
211
|
+
traverse: (() =>
|
|
212
212
|
{
|
|
213
213
|
const modelViewMatrix = new Matrix4 ();
|
|
214
214
|
|
|
@@ -122,7 +122,7 @@ Object .assign (Object .setPrototypeOf (Viewpoint .prototype, X3DViewpointNode .
|
|
|
122
122
|
|
|
123
123
|
return screenScale .set (size, size, size);
|
|
124
124
|
},
|
|
125
|
-
getViewportSize: (
|
|
125
|
+
getViewportSize: (() =>
|
|
126
126
|
{
|
|
127
127
|
const viewportSize = new Vector2 (0, 0);
|
|
128
128
|
|
|
@@ -379,7 +379,7 @@ Object .assign (Object .setPrototypeOf (X3DViewpointNode .prototype, X3DBindable
|
|
|
379
379
|
this .set_nearDistance__ ();
|
|
380
380
|
this .set_farDistance__ ();
|
|
381
381
|
},
|
|
382
|
-
getRelativeTransformation: (
|
|
382
|
+
getRelativeTransformation: (() =>
|
|
383
383
|
{
|
|
384
384
|
const
|
|
385
385
|
position = new Vector3 (0, 0, 0),
|
|
@@ -404,7 +404,7 @@ Object .assign (Object .setPrototypeOf (X3DViewpointNode .prototype, X3DBindable
|
|
|
404
404
|
};
|
|
405
405
|
};
|
|
406
406
|
})(),
|
|
407
|
-
getLookAtRotation: (
|
|
407
|
+
getLookAtRotation: (() =>
|
|
408
408
|
{
|
|
409
409
|
const
|
|
410
410
|
x = new Vector3 (0, 0, 0),
|
|
@@ -509,7 +509,7 @@ Object .assign (Object .setPrototypeOf (X3DViewpointNode .prototype, X3DBindable
|
|
|
509
509
|
|
|
510
510
|
this .setInterpolators (this, relative);
|
|
511
511
|
},
|
|
512
|
-
straightenHorizon: (
|
|
512
|
+
straightenHorizon: (() =>
|
|
513
513
|
{
|
|
514
514
|
const
|
|
515
515
|
localXAxis = new Vector3 (0, 0, 0),
|
|
@@ -102,9 +102,6 @@ Object .assign (Object .setPrototypeOf (Inline .prototype, X3DChildNode .prototy
|
|
|
102
102
|
{
|
|
103
103
|
X3DUrlObject .prototype .set_live__ .call (this);
|
|
104
104
|
|
|
105
|
-
if (this .isPrivate ())
|
|
106
|
-
return;
|
|
107
|
-
|
|
108
105
|
this .scene .setLive (this .getLive () .getValue ());
|
|
109
106
|
},
|
|
110
107
|
unloadData ()
|
|
@@ -156,7 +153,6 @@ Object .assign (Object .setPrototypeOf (Inline .prototype, X3DChildNode .prototy
|
|
|
156
153
|
|
|
157
154
|
this .scene = scene;
|
|
158
155
|
this .scene .setExecutionContext (this .getExecutionContext ());
|
|
159
|
-
this .scene .setPrivate (this .getExecutionContext () .isPrivate ());
|
|
160
156
|
|
|
161
157
|
this .scene .rootNodes .addFieldInterest (this .groupNode ._children);
|
|
162
158
|
this .groupNode ._children = this .scene .rootNodes;
|
|
@@ -63,7 +63,7 @@ function ForcePhysicsModel (executionContext)
|
|
|
63
63
|
|
|
64
64
|
Object .assign (Object .setPrototypeOf (ForcePhysicsModel .prototype, X3DParticlePhysicsModelNode .prototype),
|
|
65
65
|
{
|
|
66
|
-
addForce: (
|
|
66
|
+
addForce: (() =>
|
|
67
67
|
{
|
|
68
68
|
const force = new Vector3 (0, 0, 0);
|
|
69
69
|
|
|
@@ -774,7 +774,7 @@ Object .assign (Object .setPrototypeOf (ParticleSystem .prototype, X3DShapeNode
|
|
|
774
774
|
|
|
775
775
|
browser .addBrowserEvent ();
|
|
776
776
|
},
|
|
777
|
-
updateSprite: (
|
|
777
|
+
updateSprite: (() =>
|
|
778
778
|
{
|
|
779
779
|
const data = new Float32Array (QuadGeometry);
|
|
780
780
|
|
|
@@ -997,7 +997,7 @@ Object .assign (Object .setPrototypeOf (ParticleSystem .prototype, X3DShapeNode
|
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
999
|
},
|
|
1000
|
-
getScreenAlignedRotation: (
|
|
1000
|
+
getScreenAlignedRotation: (() =>
|
|
1001
1001
|
{
|
|
1002
1002
|
const
|
|
1003
1003
|
invModelViewMatrix = new Matrix4 (),
|
|
@@ -99,7 +99,7 @@ Object .assign (Object .setPrototypeOf (PointEmitter .prototype, X3DParticleEmit
|
|
|
99
99
|
|
|
100
100
|
this .setUniform ("uniform3f", "position", position .x, position .y, position .z);
|
|
101
101
|
},
|
|
102
|
-
set_direction__: (
|
|
102
|
+
set_direction__: (() =>
|
|
103
103
|
{
|
|
104
104
|
const direction = new Vector3 (0, 0, 0);
|
|
105
105
|
|
|
@@ -141,7 +141,7 @@ Object .assign (Object .setPrototypeOf (PolylineEmitter .prototype, X3DParticleE
|
|
|
141
141
|
this .set_direction__ ();
|
|
142
142
|
this .set_polyline ();
|
|
143
143
|
},
|
|
144
|
-
set_direction__: (
|
|
144
|
+
set_direction__: (() =>
|
|
145
145
|
{
|
|
146
146
|
const direction = new Vector3 (0, 0, 0);
|
|
147
147
|
|
|
@@ -152,7 +152,7 @@ Object .assign (Object .setPrototypeOf (PolylineEmitter .prototype, X3DParticleE
|
|
|
152
152
|
this .setUniform ("uniform3f", "direction", direction .x, direction .y, direction .z);
|
|
153
153
|
};
|
|
154
154
|
})(),
|
|
155
|
-
set_polyline: (
|
|
155
|
+
set_polyline: (() =>
|
|
156
156
|
{
|
|
157
157
|
const
|
|
158
158
|
vertex1 = new Vector3 (0, 0, 0),
|
|
@@ -140,7 +140,7 @@ Object .assign (Object .setPrototypeOf (SurfaceEmitter .prototype, X3DParticleEm
|
|
|
140
140
|
if (this .surfaceNode)
|
|
141
141
|
this .setUniform ("uniform1i", "solid", this .surfaceNode ._solid .getValue ());
|
|
142
142
|
},
|
|
143
|
-
set_geometry__: (
|
|
143
|
+
set_geometry__: (() =>
|
|
144
144
|
{
|
|
145
145
|
const
|
|
146
146
|
vertex1 = new Vector3 (0, 0, 0),
|
|
@@ -162,7 +162,7 @@ Object .assign (Object .setPrototypeOf (VolumeEmitter .prototype, X3DParticleEmi
|
|
|
162
162
|
this .set_direction__ ();
|
|
163
163
|
this .set_geometry__ ();
|
|
164
164
|
},
|
|
165
|
-
set_direction__: (
|
|
165
|
+
set_direction__: (() =>
|
|
166
166
|
{
|
|
167
167
|
const direction = new Vector3 (0, 0, 0);
|
|
168
168
|
|
|
@@ -173,7 +173,7 @@ Object .assign (Object .setPrototypeOf (VolumeEmitter .prototype, X3DParticleEmi
|
|
|
173
173
|
this .setUniform ("uniform3f", "direction", direction .x, direction .y, direction .z);
|
|
174
174
|
};
|
|
175
175
|
})(),
|
|
176
|
-
set_geometry__: (
|
|
176
|
+
set_geometry__: (() =>
|
|
177
177
|
{
|
|
178
178
|
const
|
|
179
179
|
vertex1 = new Vector3 (0, 0, 0),
|
|
@@ -72,7 +72,7 @@ Object .assign (Object .setPrototypeOf (WindPhysicsModel .prototype, X3DParticle
|
|
|
72
72
|
|
|
73
73
|
return emitterNode .getRandomValue (Math .max (0, speed - variation), speed + variation);
|
|
74
74
|
},
|
|
75
|
-
addForce: (
|
|
75
|
+
addForce: (() =>
|
|
76
76
|
{
|
|
77
77
|
const force = new Vector3 (0, 0, 0);
|
|
78
78
|
|