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
|
@@ -82,7 +82,7 @@ Object .assign (Object .setPrototypeOf (PickableGroup .prototype, X3DGroupingNod
|
|
|
82
82
|
{
|
|
83
83
|
this .setPickableObject (!!(this ._pickable .getValue () || this .getTransformSensors () .size));
|
|
84
84
|
},
|
|
85
|
-
traverse: (
|
|
85
|
+
traverse: (() =>
|
|
86
86
|
{
|
|
87
87
|
const pickSensorNodes = new Set ();
|
|
88
88
|
|
|
@@ -91,7 +91,7 @@ Object .assign (Object .setPrototypeOf (PointPickSensor .prototype, X3DPickSenso
|
|
|
91
91
|
|
|
92
92
|
this .set_geometry__ ();
|
|
93
93
|
},
|
|
94
|
-
set_geometry__: (
|
|
94
|
+
set_geometry__: (() =>
|
|
95
95
|
{
|
|
96
96
|
var
|
|
97
97
|
defaultScale = new Ammo .btVector3 (1, 1, 1),
|
|
@@ -152,7 +152,7 @@ Object .assign (Object .setPrototypeOf (PointPickSensor .prototype, X3DPickSenso
|
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
})(),
|
|
155
|
-
process: (
|
|
155
|
+
process: (() =>
|
|
156
156
|
{
|
|
157
157
|
var
|
|
158
158
|
pickingBBox = new Box3 (),
|
|
@@ -80,7 +80,7 @@ Object .assign (Object .setPrototypeOf (VolumePickSensor .prototype, X3DPickSens
|
|
|
80
80
|
{
|
|
81
81
|
this .pickingGeometryNode = X3DCast (X3DConstants .X3DGeometryNode, this ._pickingGeometry);
|
|
82
82
|
},
|
|
83
|
-
process: (
|
|
83
|
+
process: (() =>
|
|
84
84
|
{
|
|
85
85
|
var
|
|
86
86
|
pickingBBox = new Box3 (),
|
|
@@ -121,7 +121,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, X3DSensorN
|
|
|
121
121
|
{
|
|
122
122
|
return this .targets;
|
|
123
123
|
},
|
|
124
|
-
getPickShape: (
|
|
124
|
+
getPickShape: (() =>
|
|
125
125
|
{
|
|
126
126
|
const pickShapes = new WeakMap ();
|
|
127
127
|
|
|
@@ -152,7 +152,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, X3DSensorN
|
|
|
152
152
|
return collidableShapeNode;
|
|
153
153
|
};
|
|
154
154
|
})(),
|
|
155
|
-
getPickedGeometries: (
|
|
155
|
+
getPickedGeometries: (() =>
|
|
156
156
|
{
|
|
157
157
|
return function ()
|
|
158
158
|
{
|
|
@@ -285,7 +285,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, X3DSensorN
|
|
|
285
285
|
|
|
286
286
|
this .set_live__ ();
|
|
287
287
|
},
|
|
288
|
-
set_matchCriterion__: (
|
|
288
|
+
set_matchCriterion__: (() =>
|
|
289
289
|
{
|
|
290
290
|
var matchCriterions = new Map ([
|
|
291
291
|
["MATCH_ANY", MatchCriterion .MATCH_ANY],
|
|
@@ -301,7 +301,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, X3DSensorN
|
|
|
301
301
|
this .matchCriterion = MatchCriterionType .MATCH_ANY;
|
|
302
302
|
};
|
|
303
303
|
})(),
|
|
304
|
-
set_intersectionType__: (
|
|
304
|
+
set_intersectionType__: (() =>
|
|
305
305
|
{
|
|
306
306
|
var intersectionTypes = new Map ([
|
|
307
307
|
["BOUNDS", IntersectionType .BOUNDS],
|
|
@@ -316,7 +316,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, X3DSensorN
|
|
|
316
316
|
this .intersectionType = IntersectionType .BOUNDS;
|
|
317
317
|
};
|
|
318
318
|
})(),
|
|
319
|
-
set_sortOrder__: (
|
|
319
|
+
set_sortOrder__: (() =>
|
|
320
320
|
{
|
|
321
321
|
var sortOrders = new Map ([
|
|
322
322
|
["ANY", SortOrder .ANY],
|
|
@@ -379,10 +379,7 @@ Object .assign (Object .setPrototypeOf (X3DPickSensorNode .prototype, X3DSensorN
|
|
|
379
379
|
{
|
|
380
380
|
var pickTargetNodes = this .pickTargetNodes;
|
|
381
381
|
|
|
382
|
-
var haveTarget = pickingHierarchy .some (
|
|
383
|
-
{
|
|
384
|
-
return pickTargetNodes .has (node);
|
|
385
|
-
});
|
|
382
|
+
var haveTarget = pickingHierarchy .some (node => pickTargetNodes .has (node));
|
|
386
383
|
|
|
387
384
|
if (haveTarget)
|
|
388
385
|
{
|
|
@@ -66,7 +66,7 @@ Object .assign (Object .setPrototypeOf (X3DTouchSensorNode .prototype, X3DPointi
|
|
|
66
66
|
if (this ._enabled .getValue () && this ._isOver .getValue () && ! active)
|
|
67
67
|
this ._touchTime = this .getBrowser () .getCurrentTime ();
|
|
68
68
|
},
|
|
69
|
-
set_over__: (
|
|
69
|
+
set_over__: (() =>
|
|
70
70
|
{
|
|
71
71
|
const
|
|
72
72
|
invModelViewMatrix = new Matrix4 (),
|
|
@@ -124,7 +124,7 @@ Object .assign (Object .setPrototypeOf (X3DCoordinateNode .prototype, X3DGeometr
|
|
|
124
124
|
for (var index = length, length = min * 3; index < length; index += 3)
|
|
125
125
|
array .push (0, 0, 0, 1);
|
|
126
126
|
},
|
|
127
|
-
getNormal: (
|
|
127
|
+
getNormal: (() =>
|
|
128
128
|
{
|
|
129
129
|
const
|
|
130
130
|
point1 = new Vector3 (0, 0, 0),
|
|
@@ -148,7 +148,7 @@ Object .assign (Object .setPrototypeOf (X3DCoordinateNode .prototype, X3DGeometr
|
|
|
148
148
|
return new Vector3 (0, 0, 0);
|
|
149
149
|
};
|
|
150
150
|
})(),
|
|
151
|
-
getQuadNormal: (
|
|
151
|
+
getQuadNormal: (() =>
|
|
152
152
|
{
|
|
153
153
|
const
|
|
154
154
|
point1 = new Vector3 (0, 0, 0),
|
|
@@ -382,7 +382,7 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, X3DNode .pro
|
|
|
382
382
|
|
|
383
383
|
this .getMultiTexCoords () .push (texCoords);
|
|
384
384
|
},
|
|
385
|
-
getTexCoordParams: (
|
|
385
|
+
getTexCoordParams: (() =>
|
|
386
386
|
{
|
|
387
387
|
const texCoordParams = { min: new Vector3 (0, 0, 0), Ssize: 0, Sindex: 0, Tindex: 0 };
|
|
388
388
|
|
|
@@ -477,12 +477,9 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, X3DNode .pro
|
|
|
477
477
|
},
|
|
478
478
|
isClipped (point, clipPlanes)
|
|
479
479
|
{
|
|
480
|
-
return clipPlanes .some (
|
|
481
|
-
{
|
|
482
|
-
return clipPlane .isClipped (point);
|
|
483
|
-
});
|
|
480
|
+
return clipPlanes .some (clipPlane => clipPlane .isClipped (point));
|
|
484
481
|
},
|
|
485
|
-
intersectsLine: (
|
|
482
|
+
intersectsLine: (() =>
|
|
486
483
|
{
|
|
487
484
|
const
|
|
488
485
|
modelViewMatrix = new Matrix4 (),
|
|
@@ -551,7 +548,7 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, X3DNode .pro
|
|
|
551
548
|
return intersections .length;
|
|
552
549
|
};
|
|
553
550
|
})(),
|
|
554
|
-
getPlanesWithOffset: (
|
|
551
|
+
getPlanesWithOffset: (() =>
|
|
555
552
|
{
|
|
556
553
|
const
|
|
557
554
|
min = new Vector3 (0, 0, 0),
|
|
@@ -572,7 +569,7 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, X3DNode .pro
|
|
|
572
569
|
return planes;
|
|
573
570
|
};
|
|
574
571
|
})(),
|
|
575
|
-
intersectsBBox: (
|
|
572
|
+
intersectsBBox: (() =>
|
|
576
573
|
{
|
|
577
574
|
const intersection = new Vector3 (0, 0, 0);
|
|
578
575
|
|
|
@@ -648,7 +645,7 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, X3DNode .pro
|
|
|
648
645
|
return false;
|
|
649
646
|
};
|
|
650
647
|
})(),
|
|
651
|
-
intersectsBox: (
|
|
648
|
+
intersectsBox: (() =>
|
|
652
649
|
{
|
|
653
650
|
const
|
|
654
651
|
v0 = new Vector3 (0, 0, 0),
|
|
@@ -704,7 +701,7 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, X3DNode .pro
|
|
|
704
701
|
else
|
|
705
702
|
this .getBrowser () .getBrowserOptions () ._Shading .removeInterest ("set_shading__", this);
|
|
706
703
|
},
|
|
707
|
-
set_shading__: (
|
|
704
|
+
set_shading__: (() =>
|
|
708
705
|
{
|
|
709
706
|
const
|
|
710
707
|
v0 = new Vector3 (0, 0, 0),
|
|
@@ -773,7 +770,7 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, X3DNode .pro
|
|
|
773
770
|
{
|
|
774
771
|
this ._rebuild .addEvent ();
|
|
775
772
|
},
|
|
776
|
-
rebuild: (
|
|
773
|
+
rebuild: (() =>
|
|
777
774
|
{
|
|
778
775
|
const point = new Vector3 (0, 0, 0);
|
|
779
776
|
|
|
@@ -106,7 +106,7 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, X3DGeome
|
|
|
106
106
|
gl .bindBuffer (gl .ARRAY_BUFFER, this .trianglesBuffer);
|
|
107
107
|
gl .bufferData (gl .ARRAY_BUFFER, new Float32Array (15 * 6 * numLines), gl .DYNAMIC_DRAW);
|
|
108
108
|
},
|
|
109
|
-
updateLengthSoFar: (
|
|
109
|
+
updateLengthSoFar: (() =>
|
|
110
110
|
{
|
|
111
111
|
const
|
|
112
112
|
modelViewProjectionMatrix = new Matrix4 (),
|
|
@@ -199,7 +199,7 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, X3DGeome
|
|
|
199
199
|
gl .drawArrays (this .primitiveMode, 0, this .vertexCount);
|
|
200
200
|
gl .lineWidth (1);
|
|
201
201
|
},
|
|
202
|
-
display: (
|
|
202
|
+
display: (() =>
|
|
203
203
|
{
|
|
204
204
|
const
|
|
205
205
|
matrix = new Matrix4 (),
|
|
@@ -149,7 +149,7 @@ Object .assign (Object .setPrototypeOf (BallJoint .prototype, X3DRigidJointNode
|
|
|
149
149
|
this .joint .setPivotB (new Ammo .btVector3 (localAnchorPoint2 .x, localAnchorPoint2 .y, localAnchorPoint2 .z));
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
|
-
update1: (
|
|
152
|
+
update1: (() =>
|
|
153
153
|
{
|
|
154
154
|
var localAnchorPoint1 = new Vector3 (0, 0, 0);
|
|
155
155
|
|
|
@@ -159,7 +159,7 @@ Object .assign (Object .setPrototypeOf (BallJoint .prototype, X3DRigidJointNode
|
|
|
159
159
|
this ._body1AnchorPoint = this .getBody1 () .getMatrix () .multVecMatrix (this .getInitialInverseMatrix1 () .multVecMatrix (localAnchorPoint1 .assign (this .localAnchorPoint1)));
|
|
160
160
|
};
|
|
161
161
|
})(),
|
|
162
|
-
update2: (
|
|
162
|
+
update2: (() =>
|
|
163
163
|
{
|
|
164
164
|
var localAnchorPoint2 = new Vector3 (0, 0, 0);
|
|
165
165
|
|
|
@@ -95,7 +95,7 @@ Object .assign (Object .setPrototypeOf (CollidableShape .prototype, X3DNBodyColl
|
|
|
95
95
|
{
|
|
96
96
|
return this .convex;
|
|
97
97
|
},
|
|
98
|
-
createConvexGeometry: (
|
|
98
|
+
createConvexGeometry: (() =>
|
|
99
99
|
{
|
|
100
100
|
var p = new Ammo .btVector3 ();
|
|
101
101
|
|
|
@@ -119,7 +119,7 @@ Object .assign (Object .setPrototypeOf (CollidableShape .prototype, X3DNBodyColl
|
|
|
119
119
|
return convexHull;
|
|
120
120
|
};
|
|
121
121
|
})(),
|
|
122
|
-
createConcaveGeometry: (
|
|
122
|
+
createConcaveGeometry: (() =>
|
|
123
123
|
{
|
|
124
124
|
var
|
|
125
125
|
p1 = new Ammo .btVector3 (),
|
|
@@ -224,7 +224,7 @@ Object .assign (Object .setPrototypeOf (CollidableShape .prototype, X3DNBodyColl
|
|
|
224
224
|
|
|
225
225
|
this .set_collidableGeometry__ ();
|
|
226
226
|
},
|
|
227
|
-
set_collidableGeometry__: (
|
|
227
|
+
set_collidableGeometry__: (() =>
|
|
228
228
|
{
|
|
229
229
|
var
|
|
230
230
|
localScaling = new Ammo .btVector3 (),
|
|
@@ -88,7 +88,7 @@ Object .assign (Object .setPrototypeOf (CollisionCollection .prototype, X3DChild
|
|
|
88
88
|
{
|
|
89
89
|
return this .collidableNodes;
|
|
90
90
|
},
|
|
91
|
-
set_appliedParameters__: (
|
|
91
|
+
set_appliedParameters__: (() =>
|
|
92
92
|
{
|
|
93
93
|
var appliedParametersIndex = new Map ([
|
|
94
94
|
["BOUNCE", AppliedParametersType .BOUNCE],
|
|
@@ -92,7 +92,7 @@ Object .assign (Object .setPrototypeOf (CollisionSensor .prototype, X3DSensorNod
|
|
|
92
92
|
|
|
93
93
|
this .set_live__ ();
|
|
94
94
|
},
|
|
95
|
-
update: (
|
|
95
|
+
update: (() =>
|
|
96
96
|
{
|
|
97
97
|
var
|
|
98
98
|
collidableNodesIndex = new Map (),
|
|
@@ -131,7 +131,7 @@ Object .assign (Object .setPrototypeOf (CollisionSensor .prototype, X3DSensorNod
|
|
|
131
131
|
intersectionNodes .clear ();
|
|
132
132
|
contactNodes .length = 0;
|
|
133
133
|
|
|
134
|
-
collisionWorlds .forEach (
|
|
134
|
+
collisionWorlds .forEach (collisionWorld =>
|
|
135
135
|
{
|
|
136
136
|
//collisionWorld .performDiscreteCollisionDetection ();
|
|
137
137
|
|
|
@@ -197,8 +197,7 @@ Object .assign (Object .setPrototypeOf (CollisionSensor .prototype, X3DSensorNod
|
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
}
|
|
201
|
-
this);
|
|
200
|
+
});
|
|
202
201
|
|
|
203
202
|
var active = !! contactNodes .length;
|
|
204
203
|
|
|
@@ -209,11 +208,7 @@ Object .assign (Object .setPrototypeOf (CollisionSensor .prototype, X3DSensorNod
|
|
|
209
208
|
{
|
|
210
209
|
var i = 0;
|
|
211
210
|
|
|
212
|
-
intersectionNodes .forEach (
|
|
213
|
-
{
|
|
214
|
-
this ._intersections [i ++] = intersectionNode;
|
|
215
|
-
},
|
|
216
|
-
this);
|
|
211
|
+
intersectionNodes .forEach (intersectionNode => this ._intersections [i ++] = intersectionNode);
|
|
217
212
|
|
|
218
213
|
this ._intersections .length = i;
|
|
219
214
|
}
|
|
@@ -222,11 +217,7 @@ Object .assign (Object .setPrototypeOf (CollisionSensor .prototype, X3DSensorNod
|
|
|
222
217
|
{
|
|
223
218
|
var i = 0;
|
|
224
219
|
|
|
225
|
-
contactNodes .forEach (
|
|
226
|
-
{
|
|
227
|
-
this ._contacts [i ++] = contactNode;
|
|
228
|
-
},
|
|
229
|
-
this);
|
|
220
|
+
contactNodes .forEach (contactNode => this ._contacts [i ++] = contactNode);
|
|
230
221
|
|
|
231
222
|
this ._contacts .length = i;
|
|
232
223
|
}
|
|
@@ -87,7 +87,7 @@ Object .assign (Object .setPrototypeOf (DoubleAxisHingeJoint .prototype, X3DRigi
|
|
|
87
87
|
this ._axis1 .addInterest ("set_joint__", this);
|
|
88
88
|
this ._axis2 .addInterest ("set_joint__", this);
|
|
89
89
|
},
|
|
90
|
-
addJoint: (
|
|
90
|
+
addJoint: (() =>
|
|
91
91
|
{
|
|
92
92
|
var
|
|
93
93
|
localAnchorPoint1 = new Vector3 (0, 0, 0),
|
|
@@ -172,7 +172,7 @@ Object .assign (Object .setPrototypeOf (DoubleAxisHingeJoint .prototype, X3DRigi
|
|
|
172
172
|
|
|
173
173
|
this .setOutput (! $.isEmptyObject (this .outputs));
|
|
174
174
|
},
|
|
175
|
-
update1: (
|
|
175
|
+
update1: (() =>
|
|
176
176
|
{
|
|
177
177
|
var
|
|
178
178
|
localAnchorPoint1 = new Vector3 (0, 0, 0),
|
|
@@ -202,7 +202,7 @@ Object .assign (Object .setPrototypeOf (DoubleAxisHingeJoint .prototype, X3DRigi
|
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
204
|
})(),
|
|
205
|
-
update2: (
|
|
205
|
+
update2: (() =>
|
|
206
206
|
{
|
|
207
207
|
var
|
|
208
208
|
localAnchorPoint2 = new Vector3 (0, 0, 0),
|
|
@@ -145,7 +145,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
|
|
|
145
145
|
for (var i = 0, length = this .geometryNodes .length; i < length; ++ i)
|
|
146
146
|
this .geometryNodes [i] ._rotation = this ._orientation;
|
|
147
147
|
},
|
|
148
|
-
set_transform__: (
|
|
148
|
+
set_transform__: (() =>
|
|
149
149
|
{
|
|
150
150
|
var
|
|
151
151
|
o = new Ammo .btVector3 (0, 0, 0),
|
|
@@ -196,7 +196,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
|
|
|
196
196
|
this .rigidBody .setMotionState (this .motionState);
|
|
197
197
|
};
|
|
198
198
|
})(),
|
|
199
|
-
set_linearVelocity__: (
|
|
199
|
+
set_linearVelocity__: (() =>
|
|
200
200
|
{
|
|
201
201
|
var lv = new Ammo .btVector3 (0, 0, 0);
|
|
202
202
|
|
|
@@ -211,7 +211,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
|
|
|
211
211
|
this .rigidBody .activate ();
|
|
212
212
|
};
|
|
213
213
|
}) (),
|
|
214
|
-
set_angularVelocity__: (
|
|
214
|
+
set_angularVelocity__: (() =>
|
|
215
215
|
{
|
|
216
216
|
var av = new Ammo .btVector3 (0, 0, 0);
|
|
217
217
|
|
|
@@ -226,7 +226,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
|
|
|
226
226
|
this .rigidBody .activate ();
|
|
227
227
|
};
|
|
228
228
|
})(),
|
|
229
|
-
set_finiteRotationAxis__: (
|
|
229
|
+
set_finiteRotationAxis__: (() =>
|
|
230
230
|
{
|
|
231
231
|
var angularFactor = new Ammo .btVector3 (1, 1, 1);
|
|
232
232
|
|
|
@@ -249,7 +249,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
|
|
|
249
249
|
|
|
250
250
|
this .rigidBody .activate ();
|
|
251
251
|
},
|
|
252
|
-
set_centerOfMass__: (
|
|
252
|
+
set_centerOfMass__: (() =>
|
|
253
253
|
{
|
|
254
254
|
var
|
|
255
255
|
rotation = new Ammo .btQuaternion (0, 0, 0, 1),
|
|
@@ -264,7 +264,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
|
|
|
264
264
|
this .rigidBody .setCenterOfMassTransform (centerOfMass);
|
|
265
265
|
};
|
|
266
266
|
})(),
|
|
267
|
-
set_massProps__: (
|
|
267
|
+
set_massProps__: (() =>
|
|
268
268
|
{
|
|
269
269
|
var localInertia = new Ammo .btVector3 (0, 0, 0);
|
|
270
270
|
|
|
@@ -370,7 +370,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
|
|
|
370
370
|
{
|
|
371
371
|
this ._otherGeometry .addEvent ();
|
|
372
372
|
},
|
|
373
|
-
set_compoundShape__: (
|
|
373
|
+
set_compoundShape__: (() =>
|
|
374
374
|
{
|
|
375
375
|
var transform = new Ammo .btTransform ();
|
|
376
376
|
|
|
@@ -396,7 +396,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
|
|
|
396
396
|
this .set_disable__ ();
|
|
397
397
|
};
|
|
398
398
|
})(),
|
|
399
|
-
applyForces: (
|
|
399
|
+
applyForces: (() =>
|
|
400
400
|
{
|
|
401
401
|
var
|
|
402
402
|
g = new Ammo .btVector3 (0, 0, 0),
|
|
@@ -422,7 +422,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, X3DNode .prototype
|
|
|
422
422
|
this .rigidBody .applyTorque (t);
|
|
423
423
|
};
|
|
424
424
|
})(),
|
|
425
|
-
update: (
|
|
425
|
+
update: (() =>
|
|
426
426
|
{
|
|
427
427
|
var
|
|
428
428
|
transform = new Ammo .btTransform (),
|
|
@@ -84,7 +84,7 @@ Object .assign (Object .setPrototypeOf (SingleAxisHingeJoint .prototype, X3DRigi
|
|
|
84
84
|
this ._anchorPoint .addInterest ("set_joint__", this);
|
|
85
85
|
this ._axis .addInterest ("set_joint__", this);
|
|
86
86
|
},
|
|
87
|
-
addJoint: (
|
|
87
|
+
addJoint: (() =>
|
|
88
88
|
{
|
|
89
89
|
var
|
|
90
90
|
localAxis1 = new Vector3 (0, 0, 0),
|
|
@@ -167,7 +167,7 @@ Object .assign (Object .setPrototypeOf (SingleAxisHingeJoint .prototype, X3DRigi
|
|
|
167
167
|
|
|
168
168
|
this .setOutput (! $.isEmptyObject (this .outputs));
|
|
169
169
|
},
|
|
170
|
-
update1: (
|
|
170
|
+
update1: (() =>
|
|
171
171
|
{
|
|
172
172
|
var localAnchorPoint1 = new Vector3 (0, 0, 0);
|
|
173
173
|
|
|
@@ -177,7 +177,7 @@ Object .assign (Object .setPrototypeOf (SingleAxisHingeJoint .prototype, X3DRigi
|
|
|
177
177
|
this ._body1AnchorPoint = this .getBody1 () .getMatrix () .multVecMatrix (this .getInitialInverseMatrix1 () .multVecMatrix (localAnchorPoint1 .assign (this .localAnchorPoint1)));
|
|
178
178
|
};
|
|
179
179
|
})(),
|
|
180
|
-
update2: (
|
|
180
|
+
update2: (() =>
|
|
181
181
|
{
|
|
182
182
|
var
|
|
183
183
|
localAnchorPoint2 = new Vector3 (0, 0, 0),
|
|
@@ -81,7 +81,7 @@ Object .assign (Object .setPrototypeOf (SliderJoint .prototype, X3DRigidJointNod
|
|
|
81
81
|
this ._minSeparation .addInterest ("set_separation__", this);
|
|
82
82
|
this ._maxSeparation .addInterest ("set_separation__", this);
|
|
83
83
|
},
|
|
84
|
-
addJoint: (
|
|
84
|
+
addJoint: (() =>
|
|
85
85
|
{
|
|
86
86
|
var
|
|
87
87
|
axisRotation = new Rotation4 (),
|
|
@@ -167,11 +167,7 @@ Object .assign (Object .setPrototypeOf (Script .prototype, X3DScriptNode .protot
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
sourceText += "\n[" + callbacks .map (
|
|
171
|
-
{
|
|
172
|
-
return `typeof ${c} !== "undefined" ? ${c} : undefined`;
|
|
173
|
-
})
|
|
174
|
-
.join (",") + "];";
|
|
170
|
+
sourceText += "\n[" + callbacks .map (c => `typeof ${c} !== "undefined" ? ${c} : undefined`) .join (",") + "];";
|
|
175
171
|
|
|
176
172
|
this .globalObject = this .getGlobalObject ();
|
|
177
173
|
|
|
@@ -212,9 +208,6 @@ Object .assign (Object .setPrototypeOf (Script .prototype, X3DScriptNode .protot
|
|
|
212
208
|
|
|
213
209
|
function SFNode (vrmlSyntax)
|
|
214
210
|
{
|
|
215
|
-
if (browser .currentScene .specificationVersion > 2.0)
|
|
216
|
-
throw new Error ("SFNode cannot be instantiated directly.");
|
|
217
|
-
|
|
218
211
|
const nodes = browser .createVrmlFromString (vrmlSyntax);
|
|
219
212
|
|
|
220
213
|
if (nodes .length && nodes [0])
|
|
@@ -87,7 +87,7 @@ Object .assign (Object .setPrototypeOf (ShaderPart .prototype, X3DNode .prototyp
|
|
|
87
87
|
X3DNode .prototype .initialize .call (this);
|
|
88
88
|
X3DUrlObject .prototype .initialize .call (this);
|
|
89
89
|
|
|
90
|
-
if (!
|
|
90
|
+
if (!this .isPrivate ())
|
|
91
91
|
this .options = customOptions .slice ();
|
|
92
92
|
|
|
93
93
|
this ._type .addInterest ("set_type__", this);
|
|
@@ -116,7 +116,7 @@ Object .assign (Object .setPrototypeOf (ShaderPart .prototype, X3DNode .prototyp
|
|
|
116
116
|
{
|
|
117
117
|
return this .shader;
|
|
118
118
|
},
|
|
119
|
-
getShaderType: (
|
|
119
|
+
getShaderType: (() =>
|
|
120
120
|
{
|
|
121
121
|
const shaderTypes = new Map ([
|
|
122
122
|
["VERTEX", "VERTEX_SHADER"],
|