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
|
@@ -100,7 +100,7 @@ Object .assign (Object .setPrototypeOf (SFColor .prototype, X3DField .prototype)
|
|
|
100
100
|
this .getValue () .setHSV (h, s, v);
|
|
101
101
|
this .addEvent ();
|
|
102
102
|
},
|
|
103
|
-
lerp: (
|
|
103
|
+
lerp: (() =>
|
|
104
104
|
{
|
|
105
105
|
const
|
|
106
106
|
s = [ ],
|
|
@@ -170,7 +170,7 @@ Object .assign (Object .setPrototypeOf (SFColor .prototype, X3DField .prototype)
|
|
|
170
170
|
},
|
|
171
171
|
});
|
|
172
172
|
|
|
173
|
-
for (const key of
|
|
173
|
+
for (const key of Object .keys (SFColor .prototype))
|
|
174
174
|
Object .defineProperty (SFColor .prototype, key, { enumerable: false });
|
|
175
175
|
|
|
176
176
|
const r = {
|
|
@@ -95,7 +95,7 @@ Object .assign (Object .setPrototypeOf (SFColorRGBA .prototype, X3DField .protot
|
|
|
95
95
|
this .getValue () .setHSVA (h, s, v, a);
|
|
96
96
|
this .addEvent ();
|
|
97
97
|
},
|
|
98
|
-
lerp: (
|
|
98
|
+
lerp: (() =>
|
|
99
99
|
{
|
|
100
100
|
const
|
|
101
101
|
s = [ ],
|
|
@@ -123,7 +123,7 @@ Object .assign (Object .setPrototypeOf (SFColorRGBA .prototype, X3DField .protot
|
|
|
123
123
|
toJSONStreamValue: SFColor .prototype .toJSONStreamValue,
|
|
124
124
|
});
|
|
125
125
|
|
|
126
|
-
for (const key of
|
|
126
|
+
for (const key of Object .keys (SFColorRGBA .prototype))
|
|
127
127
|
Object .defineProperty (SFColorRGBA .prototype, key, { enumerable: false });
|
|
128
128
|
|
|
129
129
|
const r = {
|
|
@@ -93,7 +93,7 @@ Object .assign (Object .setPrototypeOf (SFDouble .prototype, X3DField .prototype
|
|
|
93
93
|
},
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
for (const key of
|
|
96
|
+
for (const key of Object .keys (SFDouble .prototype))
|
|
97
97
|
Object .defineProperty (SFDouble .prototype, key, { enumerable: false });
|
|
98
98
|
|
|
99
99
|
Object .defineProperties (SFDouble,
|
|
@@ -93,7 +93,7 @@ Object .assign (Object .setPrototypeOf (SFFloat .prototype, X3DField .prototype)
|
|
|
93
93
|
},
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
for (const key of
|
|
96
|
+
for (const key of Object .keys (SFFloat .prototype))
|
|
97
97
|
Object .defineProperty (SFFloat .prototype, key, { enumerable: false });
|
|
98
98
|
|
|
99
99
|
Object .defineProperties (SFFloat,
|
|
@@ -154,7 +154,7 @@ function SFImage (width, height, comp, array)
|
|
|
154
154
|
case 4:
|
|
155
155
|
X3DField .call (this, new Image (width, height, comp, array));
|
|
156
156
|
break;
|
|
157
|
-
|
|
157
|
+
|
|
158
158
|
default:
|
|
159
159
|
throw new Error ("Invalid arguments.");
|
|
160
160
|
}
|
|
@@ -297,7 +297,7 @@ Object .assign (Object .setPrototypeOf (SFImage .prototype, X3DField .prototype)
|
|
|
297
297
|
},
|
|
298
298
|
});
|
|
299
299
|
|
|
300
|
-
for (const key of
|
|
300
|
+
for (const key of Object .keys (SFImage .prototype))
|
|
301
301
|
Object .defineProperty (SFImage .prototype, key, { enumerable: false });
|
|
302
302
|
|
|
303
303
|
const width = {
|
|
@@ -89,7 +89,7 @@ Object .assign (Object .setPrototypeOf (SFInt32 .prototype, X3DField .prototype)
|
|
|
89
89
|
},
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
for (const key of
|
|
92
|
+
for (const key of Object .keys (SFInt32 .prototype))
|
|
93
93
|
Object .defineProperty (SFInt32 .prototype, key, { enumerable: false });
|
|
94
94
|
|
|
95
95
|
Object .defineProperties (SFInt32,
|
|
@@ -106,7 +106,7 @@ function SFMatrix3Template (TypeName, SFVec2, double)
|
|
|
106
106
|
},
|
|
107
107
|
});
|
|
108
108
|
|
|
109
|
-
for (const key of
|
|
109
|
+
for (const key of Object .keys (SFMatrix3 .prototype))
|
|
110
110
|
Object .defineProperty (SFMatrix3 .prototype, key, { enumerable: false });
|
|
111
111
|
|
|
112
112
|
function defineProperty (i)
|
|
@@ -98,7 +98,7 @@ function SFMatrix4Template (TypeName, SFVec3, double)
|
|
|
98
98
|
|
|
99
99
|
SFMatrixPrototypeTemplate (SFMatrix4, TypeName, Matrix4, SFVec3, double);
|
|
100
100
|
|
|
101
|
-
for (const key of
|
|
101
|
+
for (const key of Object .keys (SFMatrix4 .prototype))
|
|
102
102
|
Object .defineProperty (SFMatrix4 .prototype, key, { enumerable: false });
|
|
103
103
|
|
|
104
104
|
function defineProperty (i)
|
|
@@ -51,9 +51,8 @@ import Generator from "../InputOutput/Generator.js";
|
|
|
51
51
|
import SFNodeCache from "./SFNodeCache.js";
|
|
52
52
|
|
|
53
53
|
const
|
|
54
|
-
_target
|
|
55
|
-
_proxy
|
|
56
|
-
_cloneCount = Symbol ();
|
|
54
|
+
_target = Symbol (),
|
|
55
|
+
_proxy = Symbol ();
|
|
57
56
|
|
|
58
57
|
const handler =
|
|
59
58
|
{
|
|
@@ -182,7 +181,6 @@ Object .assign (Object .setPrototypeOf (SFNode .prototype, X3DField .prototype),
|
|
|
182
181
|
{
|
|
183
182
|
[_target]: null,
|
|
184
183
|
[_proxy]: null,
|
|
185
|
-
[_cloneCount]: 0,
|
|
186
184
|
copy (instance)
|
|
187
185
|
{
|
|
188
186
|
const
|
|
@@ -216,17 +214,13 @@ Object .assign (Object .setPrototypeOf (SFNode .prototype, X3DField .prototype),
|
|
|
216
214
|
current = target .getValue ();
|
|
217
215
|
|
|
218
216
|
if (current)
|
|
219
|
-
{
|
|
220
|
-
current .removeCloneCount (target [_cloneCount]);
|
|
221
217
|
current .removeParent (target [_proxy]);
|
|
222
|
-
}
|
|
223
218
|
|
|
224
219
|
// No need to test for X3DBaseNode, because there is a special version of SFNode in Script.
|
|
225
220
|
|
|
226
221
|
if (value)
|
|
227
222
|
{
|
|
228
223
|
value .addParent (target [_proxy]);
|
|
229
|
-
value .addCloneCount (target [_cloneCount]);
|
|
230
224
|
|
|
231
225
|
X3DField .prototype .set .call (target, value);
|
|
232
226
|
}
|
|
@@ -332,22 +326,6 @@ Object .assign (Object .setPrototypeOf (SFNode .prototype, X3DField .prototype),
|
|
|
332
326
|
}
|
|
333
327
|
}
|
|
334
328
|
},
|
|
335
|
-
addCloneCount (count)
|
|
336
|
-
{
|
|
337
|
-
const target = this [_target];
|
|
338
|
-
|
|
339
|
-
target [_cloneCount] += count;
|
|
340
|
-
|
|
341
|
-
target .getValue () ?.addCloneCount (count);
|
|
342
|
-
},
|
|
343
|
-
removeCloneCount (count)
|
|
344
|
-
{
|
|
345
|
-
const target = this [_target];
|
|
346
|
-
|
|
347
|
-
target [_cloneCount] -= count;
|
|
348
|
-
|
|
349
|
-
target .getValue () ?.removeCloneCount (count);
|
|
350
|
-
},
|
|
351
329
|
getNodeUserData (key)
|
|
352
330
|
{
|
|
353
331
|
const value = this [_target] .getValue ();
|
|
@@ -442,7 +420,7 @@ Object .assign (Object .setPrototypeOf (SFNode .prototype, X3DField .prototype),
|
|
|
442
420
|
},
|
|
443
421
|
});
|
|
444
422
|
|
|
445
|
-
for (const key of
|
|
423
|
+
for (const key of Object .keys (SFNode .prototype))
|
|
446
424
|
Object .defineProperty (SFNode .prototype, key, { enumerable: false });
|
|
447
425
|
|
|
448
426
|
Object .defineProperties (SFNode,
|
|
@@ -45,12 +45,33 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
import SFNode
|
|
49
|
-
import
|
|
48
|
+
import SFNode from "./SFNode.js";
|
|
49
|
+
import DEVELOPMENT from "../DEVELOPMENT.js";
|
|
50
50
|
|
|
51
51
|
const cache = new WeakMap ();
|
|
52
52
|
|
|
53
|
-
const SFNodeCache =
|
|
53
|
+
const SFNodeCache = DEVELOPMENT ?
|
|
54
|
+
{
|
|
55
|
+
get (baseNode)
|
|
56
|
+
{
|
|
57
|
+
const node = cache .get (baseNode) ?.deref ();
|
|
58
|
+
|
|
59
|
+
if (node)
|
|
60
|
+
{
|
|
61
|
+
return node;
|
|
62
|
+
}
|
|
63
|
+
else
|
|
64
|
+
{
|
|
65
|
+
const node = new SFNode (baseNode);
|
|
66
|
+
|
|
67
|
+
node .dispose = dispose;
|
|
68
|
+
|
|
69
|
+
cache .set (baseNode, new WeakRef (node));
|
|
70
|
+
|
|
71
|
+
return node;
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
} :
|
|
54
75
|
{
|
|
55
76
|
get (baseNode)
|
|
56
77
|
{
|
|
@@ -200,7 +200,7 @@ Object .assign (Object .setPrototypeOf (SFRotation .prototype, X3DField .prototy
|
|
|
200
200
|
},
|
|
201
201
|
});
|
|
202
202
|
|
|
203
|
-
for (const key of
|
|
203
|
+
for (const key of Object .keys (SFRotation .prototype))
|
|
204
204
|
Object .defineProperty (SFRotation .prototype, key, { enumerable: false });
|
|
205
205
|
|
|
206
206
|
const x = {
|
|
@@ -99,7 +99,7 @@ Object .assign (Object .setPrototypeOf (SFString .prototype, X3DField .prototype
|
|
|
99
99
|
},
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
-
for (const key of
|
|
102
|
+
for (const key of Object .keys (SFString .prototype))
|
|
103
103
|
Object .defineProperty (SFString .prototype, key, { enumerable: false });
|
|
104
104
|
|
|
105
105
|
Object .defineProperty (SFString .prototype, "length",
|
|
@@ -89,7 +89,7 @@ Object .assign (Object .setPrototypeOf (SFTime .prototype, X3DField .prototype),
|
|
|
89
89
|
},
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
for (const key of
|
|
92
|
+
for (const key of Object .keys (SFTime .prototype))
|
|
93
93
|
Object .defineProperty (SFTime .prototype, key, { enumerable: false });
|
|
94
94
|
|
|
95
95
|
Object .defineProperties (SFTime,
|
|
@@ -74,7 +74,7 @@ function SFVec2Template (TypeName, double)
|
|
|
74
74
|
|
|
75
75
|
SFVecPrototypeTemplate (SFVec2, TypeName, Vector2, double);
|
|
76
76
|
|
|
77
|
-
for (const key of
|
|
77
|
+
for (const key of Object .keys (SFVec2 .prototype))
|
|
78
78
|
Object .defineProperty (SFVec2 .prototype, key, { enumerable: false });
|
|
79
79
|
|
|
80
80
|
const x = {
|
|
@@ -80,7 +80,7 @@ function SFVec3Template (TypeName, double)
|
|
|
80
80
|
},
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
for (const key of
|
|
83
|
+
for (const key of Object .keys (SFVec3 .prototype))
|
|
84
84
|
Object .defineProperty (SFVec3 .prototype, key, { enumerable: false });
|
|
85
85
|
|
|
86
86
|
const x = {
|
|
@@ -74,7 +74,7 @@ function SFVec4Template (TypeName, double)
|
|
|
74
74
|
|
|
75
75
|
SFVecPrototypeTemplate (SFVec4, TypeName, Vector4, double);
|
|
76
76
|
|
|
77
|
-
for (const key of
|
|
77
|
+
for (const key of Object .keys (SFVec4 .prototype))
|
|
78
78
|
Object .defineProperty (SFVec4 .prototype, key, { enumerable: false });
|
|
79
79
|
|
|
80
80
|
const x = {
|
|
@@ -330,7 +330,7 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, X3DObject .protot
|
|
|
330
330
|
},
|
|
331
331
|
});
|
|
332
332
|
|
|
333
|
-
for (const key of
|
|
333
|
+
for (const key of Object .keys (FileLoader .prototype))
|
|
334
334
|
Object .defineProperty (FileLoader .prototype, key, { enumerable: false });
|
|
335
335
|
|
|
336
336
|
export default FileLoader;
|
|
@@ -308,7 +308,7 @@ Object .assign (Generator .prototype,
|
|
|
308
308
|
{
|
|
309
309
|
const index = this .exportedNodesIndex .get (this .ExecutionContext ());
|
|
310
310
|
|
|
311
|
-
|
|
311
|
+
for (const exportedNode of exportedNodes)
|
|
312
312
|
{
|
|
313
313
|
try
|
|
314
314
|
{
|
|
@@ -316,13 +316,13 @@ Object .assign (Generator .prototype,
|
|
|
316
316
|
}
|
|
317
317
|
catch
|
|
318
318
|
{ }
|
|
319
|
-
}
|
|
319
|
+
}
|
|
320
320
|
},
|
|
321
321
|
ImportedNodes (importedNodes)
|
|
322
322
|
{
|
|
323
323
|
const index = this .importedNodesIndex .get (this .ExecutionContext ());
|
|
324
324
|
|
|
325
|
-
|
|
325
|
+
for (const importedNode of importedNodes)
|
|
326
326
|
{
|
|
327
327
|
try
|
|
328
328
|
{
|
|
@@ -330,7 +330,7 @@ Object .assign (Generator .prototype,
|
|
|
330
330
|
}
|
|
331
331
|
catch
|
|
332
332
|
{ }
|
|
333
|
-
}
|
|
333
|
+
}
|
|
334
334
|
},
|
|
335
335
|
AddImportedNode (exportedNode, importedName)
|
|
336
336
|
{
|
|
@@ -505,7 +505,7 @@ Object .assign (Generator .prototype,
|
|
|
505
505
|
|
|
506
506
|
return value;
|
|
507
507
|
},
|
|
508
|
-
XMLEncode: (
|
|
508
|
+
XMLEncode: (() =>
|
|
509
509
|
{
|
|
510
510
|
const map = {
|
|
511
511
|
"\\": "\\\\",
|
|
@@ -526,7 +526,7 @@ Object .assign (Generator .prototype,
|
|
|
526
526
|
return string .replace (regex, char => map [char]);
|
|
527
527
|
};
|
|
528
528
|
})(),
|
|
529
|
-
XMLEncodeSourceText: (
|
|
529
|
+
XMLEncodeSourceText: (() =>
|
|
530
530
|
{
|
|
531
531
|
const map = {
|
|
532
532
|
"\\": "\\\\",
|
|
@@ -544,7 +544,7 @@ Object .assign (Generator .prototype,
|
|
|
544
544
|
return string .replace (regex, char => map [char]);
|
|
545
545
|
};
|
|
546
546
|
})(),
|
|
547
|
-
JSONEncode: (
|
|
547
|
+
JSONEncode: (() =>
|
|
548
548
|
{
|
|
549
549
|
const map = {
|
|
550
550
|
"\\": "\\\\",
|
|
@@ -586,7 +586,7 @@ Object .assign (Generator .prototype,
|
|
|
586
586
|
},
|
|
587
587
|
});
|
|
588
588
|
|
|
589
|
-
for (const key of
|
|
589
|
+
for (const key of Object .keys (Generator .prototype))
|
|
590
590
|
Object .defineProperty (Generator .prototype, key, { enumerable: false });
|
|
591
591
|
|
|
592
592
|
export default Generator;
|
|
@@ -112,7 +112,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, X3DParser .proto
|
|
|
112
112
|
this .input = undefined;
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
|
-
isValid: (
|
|
115
|
+
isValid: (() =>
|
|
116
116
|
{
|
|
117
117
|
const keys = new Set ([
|
|
118
118
|
"asset",
|
|
@@ -433,7 +433,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, X3DParser .proto
|
|
|
433
433
|
for (const accessor of accessors)
|
|
434
434
|
this .accessorObject (accessor);
|
|
435
435
|
},
|
|
436
|
-
accessorObject: (
|
|
436
|
+
accessorObject: (() =>
|
|
437
437
|
{
|
|
438
438
|
const TypedArrays = new Map ([
|
|
439
439
|
[5120, Int8Array],
|
|
@@ -506,7 +506,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, X3DParser .proto
|
|
|
506
506
|
});
|
|
507
507
|
};
|
|
508
508
|
})(),
|
|
509
|
-
sparseObject: (
|
|
509
|
+
sparseObject: (() =>
|
|
510
510
|
{
|
|
511
511
|
const TypedArrays = new Map ([
|
|
512
512
|
[5121, Uint8Array],
|
|
@@ -560,7 +560,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, X3DParser .proto
|
|
|
560
560
|
for (const sampler of samplers)
|
|
561
561
|
this .samplerObject (sampler);
|
|
562
562
|
},
|
|
563
|
-
samplerObject: (
|
|
563
|
+
samplerObject: (() =>
|
|
564
564
|
{
|
|
565
565
|
const MinificationFilters = new Map ([
|
|
566
566
|
[9728, ["NEAREST_PIXEL", false]],
|
|
@@ -2062,7 +2062,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, X3DParser .proto
|
|
|
2062
2062
|
|
|
2063
2063
|
return geometryNode;
|
|
2064
2064
|
},
|
|
2065
|
-
createColor: (
|
|
2065
|
+
createColor: (() =>
|
|
2066
2066
|
{
|
|
2067
2067
|
const TypeNames = new Map ([
|
|
2068
2068
|
["VEC3", "Color"],
|
|
@@ -889,7 +889,7 @@ Object .assign (Object .setPrototypeOf (SVGParser .prototype, X3DParser .prototy
|
|
|
889
889
|
|
|
890
890
|
const EPSILON = 1e-9; // Min point distance.
|
|
891
891
|
|
|
892
|
-
contours = contours .map (
|
|
892
|
+
contours = contours .map (points =>
|
|
893
893
|
{
|
|
894
894
|
if (points .closed)
|
|
895
895
|
{
|
|
@@ -2480,7 +2480,7 @@ Object .assign (Object .setPrototypeOf (SVGParser .prototype, X3DParser .prototy
|
|
|
2480
2480
|
|
|
2481
2481
|
return false;
|
|
2482
2482
|
},
|
|
2483
|
-
colorValue: (
|
|
2483
|
+
colorValue: (() =>
|
|
2484
2484
|
{
|
|
2485
2485
|
const color = new Color4 (0, 0, 0, 0);
|
|
2486
2486
|
|
|
@@ -1122,7 +1122,7 @@ const HTMLParser =
|
|
|
1122
1122
|
this .protoNames .set (name, name);
|
|
1123
1123
|
this .protoNames .set (name .toUpperCase (), name);
|
|
1124
1124
|
},
|
|
1125
|
-
addProtoFieldNames: (
|
|
1125
|
+
addProtoFieldNames: (() =>
|
|
1126
1126
|
{
|
|
1127
1127
|
const reservedAttributes = new Set ();
|
|
1128
1128
|
|
|
@@ -55,7 +55,7 @@ function ExternProtoDeclarationArray (values = [ ])
|
|
|
55
55
|
|
|
56
56
|
Object .setPrototypeOf (ExternProtoDeclarationArray .prototype, X3DInfoArray .prototype);
|
|
57
57
|
|
|
58
|
-
for (const key of
|
|
58
|
+
for (const key of Object .keys (ExternProtoDeclarationArray .prototype))
|
|
59
59
|
Object .defineProperty (ExternProtoDeclarationArray .prototype, key, { enumerable: false });
|
|
60
60
|
|
|
61
61
|
Object .defineProperties (ExternProtoDeclarationArray,
|
|
@@ -55,7 +55,7 @@ function ProtoDeclarationArray (values = [ ])
|
|
|
55
55
|
|
|
56
56
|
Object .setPrototypeOf (ProtoDeclarationArray .prototype, X3DInfoArray .prototype);
|
|
57
57
|
|
|
58
|
-
for (const key of
|
|
58
|
+
for (const key of Object .keys (ProtoDeclarationArray .prototype))
|
|
59
59
|
Object .defineProperty (ProtoDeclarationArray .prototype, key, { enumerable: false });
|
|
60
60
|
|
|
61
61
|
Object .defineProperties (ProtoDeclarationArray,
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
import AbstractNodes from "../Configuration/AbstractNodes.js";
|
|
49
48
|
import Fields from "../Fields.js";
|
|
50
49
|
import X3DFieldDefinition from "../Base/X3DFieldDefinition.js";
|
|
51
50
|
import FieldDefinitionArray from "../Base/FieldDefinitionArray.js";
|
|
@@ -141,7 +140,6 @@ Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, X3
|
|
|
141
140
|
throw new Error ("PROTO not found");
|
|
142
141
|
|
|
143
142
|
this [_scene] .setLive (this .getLive () .getValue ());
|
|
144
|
-
this [_scene] .setPrivate (this .getScene () .isPrivate ());
|
|
145
143
|
this [_scene] .setExecutionContext (this .getExecutionContext ());
|
|
146
144
|
|
|
147
145
|
this .setLoadState (X3DConstants .COMPLETE_STATE);
|
|
@@ -395,7 +393,7 @@ Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, X3
|
|
|
395
393
|
},
|
|
396
394
|
});
|
|
397
395
|
|
|
398
|
-
for (const key of
|
|
396
|
+
for (const key of Object .keys (X3DExternProtoDeclaration .prototype))
|
|
399
397
|
Object .defineProperty (X3DExternProtoDeclaration .prototype, key, { enumerable: false });
|
|
400
398
|
|
|
401
399
|
Object .defineProperties (X3DExternProtoDeclaration .prototype,
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
import AbstractNodes from "../Configuration/AbstractNodes.js";
|
|
49
48
|
import Fields from "../Fields.js";
|
|
50
49
|
import X3DFieldDefinition from "../Base/X3DFieldDefinition.js";
|
|
51
50
|
import FieldDefinitionArray from "../Base/FieldDefinitionArray.js";
|
|
@@ -529,7 +528,7 @@ Object .assign (Object .setPrototypeOf (X3DProtoDeclaration .prototype, X3DProto
|
|
|
529
528
|
},
|
|
530
529
|
});
|
|
531
530
|
|
|
532
|
-
for (const key of
|
|
531
|
+
for (const key of Object .keys (X3DProtoDeclaration .prototype))
|
|
533
532
|
Object .defineProperty (X3DProtoDeclaration .prototype, key, { enumerable: false });
|
|
534
533
|
|
|
535
534
|
Object .defineProperties (X3DProtoDeclaration .prototype,
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
import AbstractNodes from "../Configuration/AbstractNodes.js";
|
|
49
48
|
import Fields from "../Fields.js";
|
|
50
49
|
import X3DBaseNode from "../Base/X3DBaseNode.js";
|
|
51
50
|
import X3DPrototypeInstance from "../Components/Core/X3DPrototypeInstance.js";
|
|
@@ -96,7 +95,7 @@ Object .assign (Object .setPrototypeOf (X3DProtoDeclarationNode .prototype, X3DB
|
|
|
96
95
|
},
|
|
97
96
|
});
|
|
98
97
|
|
|
99
|
-
for (const key of
|
|
98
|
+
for (const key of Object .keys (X3DProtoDeclarationNode .prototype))
|
|
100
99
|
Object .defineProperty (X3DProtoDeclarationNode .prototype, key, { enumerable: false });
|
|
101
100
|
|
|
102
101
|
Object .defineProperties (X3DProtoDeclarationNode,
|
|
@@ -126,7 +126,7 @@ Object .assign (Object .setPrototypeOf (DependentRenderer .prototype, X3DBaseNod
|
|
|
126
126
|
},
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
-
for (const key of
|
|
129
|
+
for (const key of Object .keys (DependentRenderer .prototype))
|
|
130
130
|
Object .defineProperty (DependentRenderer .prototype, key, { enumerable: false });
|
|
131
131
|
|
|
132
132
|
export default DependentRenderer;
|
|
@@ -162,7 +162,7 @@ Object .assign (TextureBuffer .prototype,
|
|
|
162
162
|
|
|
163
163
|
return array;
|
|
164
164
|
},
|
|
165
|
-
readDepth: (
|
|
165
|
+
readDepth: (() =>
|
|
166
166
|
{
|
|
167
167
|
const
|
|
168
168
|
invProjectionMatrix = new Matrix4 (),
|
|
@@ -233,7 +233,7 @@ Object .assign (TextureBuffer .prototype,
|
|
|
233
233
|
},
|
|
234
234
|
});
|
|
235
235
|
|
|
236
|
-
for (const key of
|
|
236
|
+
for (const key of Object .keys (TextureBuffer .prototype))
|
|
237
237
|
Object .defineProperty (TextureBuffer .prototype, key, { enumerable: false });
|
|
238
238
|
|
|
239
239
|
export default TextureBuffer;
|
|
@@ -199,7 +199,7 @@ Object .assign (X3DRenderObject .prototype,
|
|
|
199
199
|
{
|
|
200
200
|
this .localShadows .pop ();
|
|
201
201
|
},
|
|
202
|
-
setGlobalFog: (
|
|
202
|
+
setGlobalFog: (() =>
|
|
203
203
|
{
|
|
204
204
|
const modelViewMatrix = new Matrix4 ();
|
|
205
205
|
|
|
@@ -343,7 +343,7 @@ Object .assign (X3DRenderObject .prototype,
|
|
|
343
343
|
|
|
344
344
|
return translation .assign (Vector3 .Zero);
|
|
345
345
|
},
|
|
346
|
-
getDistance: (
|
|
346
|
+
getDistance: (() =>
|
|
347
347
|
{
|
|
348
348
|
const
|
|
349
349
|
projectionMatrix = new Matrix4 (),
|
|
@@ -402,7 +402,7 @@ Object .assign (X3DRenderObject .prototype,
|
|
|
402
402
|
return -depth;
|
|
403
403
|
};
|
|
404
404
|
})(),
|
|
405
|
-
getDepth: (
|
|
405
|
+
getDepth: (() =>
|
|
406
406
|
{
|
|
407
407
|
const
|
|
408
408
|
depthBufferViewport = new Vector4 (0, 0, DEPTH_BUFFER_SIZE, DEPTH_BUFFER_SIZE),
|
|
@@ -475,7 +475,7 @@ Object .assign (X3DRenderObject .prototype,
|
|
|
475
475
|
{
|
|
476
476
|
ViewVolume .unProjectRay (pointer .x, pointer .y, Matrix4 .Identity, projectionMatrix, viewport, this .hitRay);
|
|
477
477
|
},
|
|
478
|
-
addPointingShape: (
|
|
478
|
+
addPointingShape: (() =>
|
|
479
479
|
{
|
|
480
480
|
const
|
|
481
481
|
bboxSize = new Vector3 (0, 0, 0),
|
|
@@ -518,7 +518,7 @@ Object .assign (X3DRenderObject .prototype,
|
|
|
518
518
|
return false;
|
|
519
519
|
};
|
|
520
520
|
})(),
|
|
521
|
-
addCollisionShape: (
|
|
521
|
+
addCollisionShape: (() =>
|
|
522
522
|
{
|
|
523
523
|
const
|
|
524
524
|
bboxSize = new Vector3 (0, 0, 0),
|
|
@@ -564,7 +564,7 @@ Object .assign (X3DRenderObject .prototype,
|
|
|
564
564
|
return false;
|
|
565
565
|
};
|
|
566
566
|
})(),
|
|
567
|
-
addShadowShape: (
|
|
567
|
+
addShadowShape: (() =>
|
|
568
568
|
{
|
|
569
569
|
const
|
|
570
570
|
bboxSize = new Vector3 (0, 0, 0),
|
|
@@ -606,7 +606,7 @@ Object .assign (X3DRenderObject .prototype,
|
|
|
606
606
|
return false;
|
|
607
607
|
};
|
|
608
608
|
})(),
|
|
609
|
-
addDisplayShape: (
|
|
609
|
+
addDisplayShape: (() =>
|
|
610
610
|
{
|
|
611
611
|
const
|
|
612
612
|
bboxSize = new Vector3 (0, 0, 0),
|
|
@@ -675,7 +675,7 @@ Object .assign (X3DRenderObject .prototype,
|
|
|
675
675
|
objectsCount: [0, 0, 0], // [clip planes, lights, texture projectors]
|
|
676
676
|
};
|
|
677
677
|
},
|
|
678
|
-
pointing: (
|
|
678
|
+
pointing: (() =>
|
|
679
679
|
{
|
|
680
680
|
const projectionMatrixArray = new Float32Array (16);
|
|
681
681
|
|
|
@@ -741,7 +741,7 @@ Object .assign (X3DRenderObject .prototype,
|
|
|
741
741
|
}
|
|
742
742
|
};
|
|
743
743
|
})(),
|
|
744
|
-
collide: (
|
|
744
|
+
collide: (() =>
|
|
745
745
|
{
|
|
746
746
|
const
|
|
747
747
|
invModelViewMatrix = new Matrix4 (),
|
|
@@ -798,7 +798,7 @@ Object .assign (X3DRenderObject .prototype,
|
|
|
798
798
|
collision .set_active (true);
|
|
799
799
|
};
|
|
800
800
|
})(),
|
|
801
|
-
gravite: (
|
|
801
|
+
gravite: (() =>
|
|
802
802
|
{
|
|
803
803
|
const
|
|
804
804
|
projectionMatrix = new Matrix4 (),
|
|
@@ -917,7 +917,7 @@ Object .assign (X3DRenderObject .prototype,
|
|
|
917
917
|
}
|
|
918
918
|
};
|
|
919
919
|
})(),
|
|
920
|
-
depth: (
|
|
920
|
+
depth: (() =>
|
|
921
921
|
{
|
|
922
922
|
const projectionMatrixArray = new Float32Array (16);
|
|
923
923
|
|
|
@@ -55,7 +55,7 @@ function RouteArray (values = [ ])
|
|
|
55
55
|
|
|
56
56
|
Object .setPrototypeOf (RouteArray .prototype, X3DInfoArray .prototype);
|
|
57
57
|
|
|
58
|
-
for (const key of
|
|
58
|
+
for (const key of Object .keys (RouteArray .prototype))
|
|
59
59
|
Object .defineProperty (RouteArray .prototype, key, { enumerable: false });
|
|
60
60
|
|
|
61
61
|
Object .defineProperties (RouteArray,
|