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
|
@@ -137,7 +137,7 @@ Object .assign (Object .setPrototypeOf (Sound .prototype, X3DSoundNode .prototyp
|
|
|
137
137
|
|
|
138
138
|
this .setTraversed (false);
|
|
139
139
|
},
|
|
140
|
-
traverse: (
|
|
140
|
+
traverse: (() =>
|
|
141
141
|
{
|
|
142
142
|
const
|
|
143
143
|
min = { distance: 0, intersection: new Vector3 (0, 0, 0) },
|
|
@@ -192,7 +192,7 @@ Object .assign (Object .setPrototypeOf (Sound .prototype, X3DSoundNode .prototyp
|
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
194
|
})(),
|
|
195
|
-
getEllipsoidParameter: (
|
|
195
|
+
getEllipsoidParameter: (() =>
|
|
196
196
|
{
|
|
197
197
|
const
|
|
198
198
|
location = new Vector3 (0, 0, 0),
|
|
@@ -98,7 +98,7 @@ Object .assign (Object .setPrototypeOf (X3DTextureProjectorNode .prototype, X3DC
|
|
|
98
98
|
{
|
|
99
99
|
return this .textureNode;
|
|
100
100
|
},
|
|
101
|
-
getBiasMatrix: (
|
|
101
|
+
getBiasMatrix: (() =>
|
|
102
102
|
{
|
|
103
103
|
// Transforms normalized coords from range (-1, 1) to (0, 1).
|
|
104
104
|
const biasMatrix = new Matrix4 (0.5, 0.0, 0.0, 0.0,
|
|
@@ -111,7 +111,7 @@ Object .assign (Object .setPrototypeOf (X3DTextureProjectorNode .prototype, X3DC
|
|
|
111
111
|
return biasMatrix;
|
|
112
112
|
};
|
|
113
113
|
})(),
|
|
114
|
-
straightenHorizon: (
|
|
114
|
+
straightenHorizon: (() =>
|
|
115
115
|
{
|
|
116
116
|
const
|
|
117
117
|
localXAxis = new Vector3 (0, 0, 0),
|
|
@@ -138,7 +138,7 @@ Object .assign (Object .setPrototypeOf (MultiTexture .prototype, X3DTextureNode
|
|
|
138
138
|
{
|
|
139
139
|
this .color [3] = this ._alpha;
|
|
140
140
|
},
|
|
141
|
-
set_mode__: (
|
|
141
|
+
set_mode__: (() =>
|
|
142
142
|
{
|
|
143
143
|
const modeTypes = new Map ([
|
|
144
144
|
["REPLACE", ModeType .REPLACE],
|
|
@@ -201,7 +201,7 @@ Object .assign (Object .setPrototypeOf (MultiTexture .prototype, X3DTextureNode
|
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
})(),
|
|
204
|
-
set_source__: (
|
|
204
|
+
set_source__: (() =>
|
|
205
205
|
{
|
|
206
206
|
const sourceTypes = new Map ([
|
|
207
207
|
["DIFFUSE", SourceType .DIFFUSE],
|
|
@@ -224,7 +224,7 @@ Object .assign (Object .setPrototypeOf (MultiTexture .prototype, X3DTextureNode
|
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
226
|
})(),
|
|
227
|
-
set_function__: (
|
|
227
|
+
set_function__: (() =>
|
|
228
228
|
{
|
|
229
229
|
const functionsTypes = new Map ([
|
|
230
230
|
["COMPLEMENT", FunctionType .COMPLEMENT],
|
|
@@ -73,7 +73,7 @@ Object .assign (Object .setPrototypeOf (TextureProperties .prototype, X3DNode .p
|
|
|
73
73
|
// https://stackoverflow.com/questions/27760277/webgl-border-color-shader?lq=1
|
|
74
74
|
return Algorithm .clamp (this ._borderWidth .getValue (), 0, 1);
|
|
75
75
|
},
|
|
76
|
-
getBoundaryMode: (
|
|
76
|
+
getBoundaryMode: (() =>
|
|
77
77
|
{
|
|
78
78
|
const boundaryModes = new Map ([
|
|
79
79
|
["CLAMP", "CLAMP_TO_EDGE"], // "CLAMP"
|
|
@@ -105,7 +105,7 @@ Object .assign (Object .setPrototypeOf (TextureProperties .prototype, X3DNode .p
|
|
|
105
105
|
{
|
|
106
106
|
return this .getBoundaryMode (this ._boundaryModeR .getValue ());
|
|
107
107
|
},
|
|
108
|
-
getMinificationFilter: (
|
|
108
|
+
getMinificationFilter: (() =>
|
|
109
109
|
{
|
|
110
110
|
const minificationFilters = new Map ([
|
|
111
111
|
["AVG_PIXEL_AVG_MIPMAP", "LINEAR_MIPMAP_LINEAR"],
|
|
@@ -133,7 +133,7 @@ Object .assign (Object .setPrototypeOf (TextureProperties .prototype, X3DNode .p
|
|
|
133
133
|
return "LINEAR";
|
|
134
134
|
};
|
|
135
135
|
})(),
|
|
136
|
-
getMagnificationFilter: (
|
|
136
|
+
getMagnificationFilter: (() =>
|
|
137
137
|
{
|
|
138
138
|
const magnificationFilters = new Map ([
|
|
139
139
|
["AVG_PIXEL", "LINEAR"],
|
|
@@ -153,7 +153,7 @@ Object .assign (Object .setPrototypeOf (TextureProperties .prototype, X3DNode .p
|
|
|
153
153
|
return this .getBrowser () .getDefaultTextureProperties () .getMagnificationFilter ();
|
|
154
154
|
};
|
|
155
155
|
})(),
|
|
156
|
-
getTextureCompression: (
|
|
156
|
+
getTextureCompression: (() =>
|
|
157
157
|
{
|
|
158
158
|
const textureCompressions = new Map ([
|
|
159
159
|
["DEFAULT", "RGBA"],
|
|
@@ -93,7 +93,7 @@ Object .assign (Object .setPrototypeOf (X3DSingleTextureNode .prototype, X3DText
|
|
|
93
93
|
{
|
|
94
94
|
return this .texture;
|
|
95
95
|
},
|
|
96
|
-
updateTextureParameters: (
|
|
96
|
+
updateTextureParameters: (() =>
|
|
97
97
|
{
|
|
98
98
|
// Anisotropic Filtering in WebGL is handled by an extension, use one of getExtension depending on browser:
|
|
99
99
|
|
|
@@ -163,7 +163,7 @@ Object .assign (Object .setPrototypeOf (X3DSingleTextureNode .prototype, X3DText
|
|
|
163
163
|
textureBits .set (channel * 2 + 0, textureType & 0b01);
|
|
164
164
|
textureBits .set (channel * 2 + 1, textureType & 0b10);
|
|
165
165
|
},
|
|
166
|
-
getShaderOptions: (
|
|
166
|
+
getShaderOptions: (() =>
|
|
167
167
|
{
|
|
168
168
|
const textureTypes = {
|
|
169
169
|
2: "2D",
|
package/src/x_ite/Components.js
CHANGED
|
@@ -63,10 +63,7 @@ import Shape from "./Components/Shape.js";
|
|
|
63
63
|
import Sound from "./Components/Sound.js";
|
|
64
64
|
import Texturing from "./Components/Texturing.js";
|
|
65
65
|
import Time from "./Components/Time.js";
|
|
66
|
-
import AbstractNodes from "./Configuration/AbstractNodes.js"
|
|
67
|
-
import ConcreteNodes from "./Configuration/ConcreteNodes.js"
|
|
68
66
|
import X3DBrowserContext from "./Browser/X3DBrowserContext.js";
|
|
69
|
-
import DEVELOPMENT from "./DEVELOPMENT.js";
|
|
70
67
|
|
|
71
68
|
let external = false;
|
|
72
69
|
|
|
@@ -74,23 +71,7 @@ const Components =
|
|
|
74
71
|
{
|
|
75
72
|
add ({ name, concreteNodes, abstractNodes, browserContext })
|
|
76
73
|
{
|
|
77
|
-
|
|
78
|
-
{
|
|
79
|
-
for (const ConcreteNode of concreteNodes)
|
|
80
|
-
ConcreteNodes .add (ConcreteNode .typeName, ConcreteNode);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
if (abstractNodes)
|
|
84
|
-
{
|
|
85
|
-
for (const AbstractNode of abstractNodes)
|
|
86
|
-
AbstractNodes .add (AbstractNode .typeName, AbstractNode);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
if (browserContext)
|
|
90
|
-
X3DBrowserContext .addBrowserContext (browserContext);
|
|
91
|
-
|
|
92
|
-
if (DEVELOPMENT && external)
|
|
93
|
-
console .info (`Done loading external component '${name}'.`);
|
|
74
|
+
X3DBrowserContext .addComponent ({ name, concreteNodes, abstractNodes, browserContext, external });
|
|
94
75
|
},
|
|
95
76
|
};
|
|
96
77
|
|
|
@@ -63,7 +63,7 @@ Object .assign (Object .setPrototypeOf (AbstractNodesArray .prototype, X3DInfoAr
|
|
|
63
63
|
},
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
for (const key of
|
|
66
|
+
for (const key of Object .keys (AbstractNodesArray .prototype))
|
|
67
67
|
Object .defineProperty (AbstractNodesArray .prototype, key, { enumerable: false });
|
|
68
68
|
|
|
69
69
|
Object .defineProperties (AbstractNodesArray,
|
|
@@ -122,7 +122,7 @@ Object .assign (Object .setPrototypeOf (ComponentInfo .prototype, X3DObject .pro
|
|
|
122
122
|
},
|
|
123
123
|
});
|
|
124
124
|
|
|
125
|
-
for (const key of
|
|
125
|
+
for (const key of Object .keys (ComponentInfo .prototype))
|
|
126
126
|
Object .defineProperty (ComponentInfo .prototype, key, { enumerable: false });
|
|
127
127
|
|
|
128
128
|
Object .defineProperties (ComponentInfo,
|
|
@@ -61,7 +61,7 @@ Object .assign (Object .setPrototypeOf (ComponentInfoArray .prototype, X3DInfoAr
|
|
|
61
61
|
},
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
for (const key of
|
|
64
|
+
for (const key of Object .keys (ComponentInfoArray .prototype))
|
|
65
65
|
Object .defineProperty (ComponentInfoArray .prototype, key, { enumerable: false });
|
|
66
66
|
|
|
67
67
|
Object .defineProperties (ComponentInfoArray,
|
|
@@ -72,7 +72,7 @@ Object .assign (Object .setPrototypeOf (ConcreteNodesArray .prototype, X3DInfoAr
|
|
|
72
72
|
},
|
|
73
73
|
});
|
|
74
74
|
|
|
75
|
-
for (const key of
|
|
75
|
+
for (const key of Object .keys (ConcreteNodesArray .prototype))
|
|
76
76
|
Object .defineProperty (ConcreteNodesArray .prototype, key, { enumerable: false });
|
|
77
77
|
|
|
78
78
|
Object .defineProperties (ConcreteNodesArray,
|
|
@@ -77,7 +77,7 @@ Object .assign (Object .setPrototypeOf (ProfileInfo .prototype, X3DObject .proto
|
|
|
77
77
|
},
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
for (const key of
|
|
80
|
+
for (const key of Object .keys (ProfileInfo .prototype))
|
|
81
81
|
Object .defineProperty (ProfileInfo .prototype, key, { enumerable: false });
|
|
82
82
|
|
|
83
83
|
Object .defineProperties (ProfileInfo,
|
|
@@ -62,7 +62,7 @@ Object .assign (Object .setPrototypeOf (ProfileInfoArray .prototype, X3DInfoArra
|
|
|
62
62
|
},
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
-
for (const key of
|
|
65
|
+
for (const key of Object .keys (ProfileInfoArray .prototype))
|
|
66
66
|
Object .defineProperty (ProfileInfoArray .prototype, key, { enumerable: false });
|
|
67
67
|
|
|
68
68
|
Object .defineProperties (ProfileInfoArray,
|
|
@@ -138,7 +138,7 @@ Object .assign (Object .setPrototypeOf (UnitInfo .prototype, X3DObject .prototyp
|
|
|
138
138
|
},
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
-
for (const key of
|
|
141
|
+
for (const key of Object .keys (UnitInfo .prototype))
|
|
142
142
|
Object .defineProperty (UnitInfo .prototype, key, { enumerable: false });
|
|
143
143
|
|
|
144
144
|
Object .defineProperty (UnitInfo .prototype, "conversion_factor",
|
|
@@ -55,7 +55,7 @@ function UnitInfoArray (values = [ ])
|
|
|
55
55
|
|
|
56
56
|
Object .setPrototypeOf (UnitInfoArray .prototype, X3DInfoArray .prototype);
|
|
57
57
|
|
|
58
|
-
for (const key of
|
|
58
|
+
for (const key of Object .keys (UnitInfoArray .prototype))
|
|
59
59
|
Object .defineProperty (UnitInfoArray .prototype, key, { enumerable: false });
|
|
60
60
|
|
|
61
61
|
Object .defineProperties (UnitInfoArray,
|
|
@@ -175,7 +175,7 @@ Object .assign (Object .setPrototypeOf (BindableList .prototype, X3DBaseNode .pr
|
|
|
175
175
|
},
|
|
176
176
|
});
|
|
177
177
|
|
|
178
|
-
for (const key of
|
|
178
|
+
for (const key of Object .keys (BindableList .prototype))
|
|
179
179
|
Object .defineProperty (BindableList .prototype, key, { enumerable: false });
|
|
180
180
|
|
|
181
181
|
// Compares two nodess.
|
|
@@ -150,7 +150,7 @@ Object .assign (Object .setPrototypeOf (BindableStack .prototype, X3DBaseNode .p
|
|
|
150
150
|
},
|
|
151
151
|
});
|
|
152
152
|
|
|
153
|
-
for (const key of
|
|
153
|
+
for (const key of Object .keys (BindableStack .prototype))
|
|
154
154
|
Object .defineProperty (BindableStack .prototype, key, { enumerable: false });
|
|
155
155
|
|
|
156
156
|
Object .defineProperties (BindableStack,
|
|
@@ -55,7 +55,7 @@ function ExportedNodesArray (values = [ ])
|
|
|
55
55
|
|
|
56
56
|
Object .setPrototypeOf (ExportedNodesArray .prototype, X3DInfoArray .prototype);
|
|
57
57
|
|
|
58
|
-
for (const key of
|
|
58
|
+
for (const key of Object .keys (ExportedNodesArray .prototype))
|
|
59
59
|
Object .defineProperty (ExportedNodesArray .prototype, key, { enumerable: false });
|
|
60
60
|
|
|
61
61
|
Object .defineProperties (ExportedNodesArray,
|
|
@@ -55,7 +55,7 @@ function ImportedNodesArray (values = [ ])
|
|
|
55
55
|
|
|
56
56
|
Object .setPrototypeOf (ImportedNodesArray .prototype, X3DInfoArray .prototype);
|
|
57
57
|
|
|
58
|
-
for (const key of
|
|
58
|
+
for (const key of Object .keys (ImportedNodesArray .prototype))
|
|
59
59
|
Object .defineProperty (ImportedNodesArray .prototype, key, { enumerable: false });
|
|
60
60
|
|
|
61
61
|
Object .defineProperties (ImportedNodesArray,
|
|
@@ -55,7 +55,7 @@ function NamedNodesArray (values = [ ])
|
|
|
55
55
|
|
|
56
56
|
Object .setPrototypeOf (NamedNodesArray .prototype, X3DInfoArray .prototype);
|
|
57
57
|
|
|
58
|
-
for (const key of
|
|
58
|
+
for (const key of Object .keys (NamedNodesArray .prototype))
|
|
59
59
|
Object .defineProperty (NamedNodesArray .prototype, key, { enumerable: false });
|
|
60
60
|
|
|
61
61
|
Object .defineProperties (NamedNodesArray,
|
|
@@ -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 { getUniqueName } from "./NamedNodesHandling.js";
|
|
@@ -70,9 +69,9 @@ const
|
|
|
70
69
|
_routes = Symbol (),
|
|
71
70
|
_outerNode = Symbol ();
|
|
72
71
|
|
|
73
|
-
function X3DExecutionContext (executionContext, outerNode = null)
|
|
72
|
+
function X3DExecutionContext (executionContext, outerNode = null, browser = executionContext .getBrowser ())
|
|
74
73
|
{
|
|
75
|
-
X3DBaseNode .call (this, executionContext);
|
|
74
|
+
X3DBaseNode .call (this, executionContext, browser);
|
|
76
75
|
|
|
77
76
|
this .addType (X3DConstants .X3DExecutionContext)
|
|
78
77
|
|
|
@@ -81,7 +80,7 @@ function X3DExecutionContext (executionContext, outerNode = null)
|
|
|
81
80
|
"sceneGraph_changed", new Fields .SFTime ())
|
|
82
81
|
|
|
83
82
|
this ._rootNodes .setAccessType (X3DConstants .initializeOnly);
|
|
84
|
-
this ._rootNodes .
|
|
83
|
+
this ._rootNodes .collectCloneCount = () => 1;
|
|
85
84
|
|
|
86
85
|
this [_outerNode] = outerNode;
|
|
87
86
|
this [_namedNodes] = new NamedNodesArray ();
|
|
@@ -161,7 +160,7 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, X3DBaseN
|
|
|
161
160
|
|
|
162
161
|
if (setup === false)
|
|
163
162
|
{
|
|
164
|
-
const ConcreteNode = this .getBrowser () .
|
|
163
|
+
const ConcreteNode = this .getBrowser () .getConcreteNodes () .get (typeName);
|
|
165
164
|
|
|
166
165
|
if (!ConcreteNode)
|
|
167
166
|
return null;
|
|
@@ -181,7 +180,7 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, X3DBaseN
|
|
|
181
180
|
}
|
|
182
181
|
else
|
|
183
182
|
{
|
|
184
|
-
const ConcreteNode = this .getBrowser () .
|
|
183
|
+
const ConcreteNode = this .getBrowser () .getConcreteNodes () .get (typeName);
|
|
185
184
|
|
|
186
185
|
if (!ConcreteNode)
|
|
187
186
|
throw new Error (`Unknown node type '${typeName}'.`);
|
|
@@ -208,11 +207,10 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, X3DBaseN
|
|
|
208
207
|
{
|
|
209
208
|
name = String (name);
|
|
210
209
|
|
|
211
|
-
let executionContext = this
|
|
212
|
-
|
|
213
|
-
for (;;)
|
|
210
|
+
for (let executionContext = this;;)
|
|
214
211
|
{
|
|
215
|
-
const protoNode = executionContext .protos .get (name)
|
|
212
|
+
const protoNode = executionContext .protos .get (name)
|
|
213
|
+
?? executionContext .externprotos .get (name);
|
|
216
214
|
|
|
217
215
|
if (protoNode)
|
|
218
216
|
return protoNode .createInstance (this, setup);
|
|
@@ -945,7 +943,7 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, X3DBaseN
|
|
|
945
943
|
},
|
|
946
944
|
});
|
|
947
945
|
|
|
948
|
-
for (const key of
|
|
946
|
+
for (const key of Object .keys (X3DExecutionContext .prototype))
|
|
949
947
|
Object .defineProperty (X3DExecutionContext .prototype, key, { enumerable: false });
|
|
950
948
|
|
|
951
949
|
Object .defineProperties (X3DExecutionContext .prototype,
|
|
@@ -166,7 +166,7 @@ Object .assign (Object .setPrototypeOf (X3DExportedNode .prototype, X3DObject .p
|
|
|
166
166
|
},
|
|
167
167
|
});
|
|
168
168
|
|
|
169
|
-
for (const key of
|
|
169
|
+
for (const key of Object .keys (X3DExportedNode .prototype))
|
|
170
170
|
Object .defineProperty (X3DExportedNode .prototype, key, { enumerable: false });
|
|
171
171
|
|
|
172
172
|
Object .defineProperties (X3DExportedNode .prototype,
|
|
@@ -514,7 +514,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, X3DNode .pro
|
|
|
514
514
|
},
|
|
515
515
|
});
|
|
516
516
|
|
|
517
|
-
for (const key of
|
|
517
|
+
for (const key of Object .keys (X3DImportedNode .prototype))
|
|
518
518
|
Object .defineProperty (X3DImportedNode .prototype, key, { enumerable: false });
|
|
519
519
|
|
|
520
520
|
Object .defineProperties (X3DImportedNode .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 X3DExecutionContext from "./X3DExecutionContext.js";
|
|
51
50
|
import { getUniqueName } from "./NamedNodesHandling.js";
|
|
@@ -59,7 +58,6 @@ import X3DConstants from "../Base/X3DConstants.js";
|
|
|
59
58
|
import SFNodeCache from "../Fields/SFNodeCache.js";
|
|
60
59
|
|
|
61
60
|
const
|
|
62
|
-
_browser = Symbol .for ("X_ITE.X3DEventObject.browser"),
|
|
63
61
|
_specificationVersion = Symbol (),
|
|
64
62
|
_encoding = Symbol (),
|
|
65
63
|
_profile = Symbol (),
|
|
@@ -74,9 +72,7 @@ const X3D_LATEST_VERSION = "4.0";
|
|
|
74
72
|
|
|
75
73
|
function X3DScene (browser)
|
|
76
74
|
{
|
|
77
|
-
this
|
|
78
|
-
|
|
79
|
-
X3DExecutionContext .call (this, this);
|
|
75
|
+
X3DExecutionContext .call (this, this, null, browser);
|
|
80
76
|
|
|
81
77
|
this .addType (X3DConstants .X3DScene)
|
|
82
78
|
|
|
@@ -1037,7 +1033,7 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, X3DExecutionContext
|
|
|
1037
1033
|
},
|
|
1038
1034
|
});
|
|
1039
1035
|
|
|
1040
|
-
for (const key of
|
|
1036
|
+
for (const key of Object .keys (X3DScene .prototype))
|
|
1041
1037
|
Object .defineProperty (X3DScene .prototype, key, { enumerable: false });
|
|
1042
1038
|
|
|
1043
1039
|
Object .defineProperties (X3DScene .prototype,
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
import AbstractNodes from "../Configuration/AbstractNodes.js";
|
|
49
48
|
import SFNode from "../Fields/SFNode.js";
|
|
50
49
|
import X3DBaseNode from "../Base/X3DBaseNode.js";
|
|
51
50
|
import LayerSet from "../Components/Layering/LayerSet.js";
|
|
@@ -144,7 +143,7 @@ Object .assign (Object .setPrototypeOf (X3DWorld .prototype, X3DBaseNode .protot
|
|
|
144
143
|
},
|
|
145
144
|
});
|
|
146
145
|
|
|
147
|
-
for (const key of
|
|
146
|
+
for (const key of Object .keys (X3DWorld .prototype))
|
|
148
147
|
Object .defineProperty (X3DWorld .prototype, key, { enumerable: false });
|
|
149
148
|
|
|
150
149
|
Object .defineProperties (X3DWorld,
|
|
@@ -45,8 +45,15 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
const Features =
|
|
49
|
-
|
|
48
|
+
const Features =
|
|
49
|
+
{
|
|
50
|
+
get ENVIRONMENT ()
|
|
51
|
+
{
|
|
52
|
+
if ((typeof process === "object") && (process .release .name .search (/node|io.js/) !== -1))
|
|
53
|
+
return "NODE";
|
|
54
|
+
|
|
55
|
+
return "BROWSER";
|
|
56
|
+
},
|
|
50
57
|
};
|
|
51
58
|
|
|
52
59
|
export default Features;
|
|
@@ -65,23 +65,16 @@ import X3DObjectArrayField from "../Base/X3DObjectArrayField.js";
|
|
|
65
65
|
import X3DTypedArrayField from "../Base/X3DTypedArrayField.js";
|
|
66
66
|
|
|
67
67
|
const
|
|
68
|
-
SFMatrix3d = SFMatrix3
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
SFVec2f = SFVec2 .SFVec2f,
|
|
74
|
-
SFVec3d = SFVec3 .SFVec3d,
|
|
75
|
-
SFVec3f = SFVec3 .SFVec3f,
|
|
76
|
-
SFVec4d = SFVec4 .SFVec4d,
|
|
77
|
-
SFVec4f = SFVec4 .SFVec4f;
|
|
68
|
+
{ SFMatrix3d, SFMatrix3f } = SFMatrix3,
|
|
69
|
+
{ SFMatrix4d, SFMatrix4f } = SFMatrix4,
|
|
70
|
+
{ SFVec2d, SFVec2f } = SFVec2,
|
|
71
|
+
{ SFVec3d, SFVec3f } = SFVec3,
|
|
72
|
+
{ SFVec4d, SFVec4f } = SFVec4;
|
|
78
73
|
|
|
79
74
|
/*
|
|
80
75
|
* MFNode
|
|
81
76
|
*/
|
|
82
77
|
|
|
83
|
-
const _cloneCount = Symbol ();
|
|
84
|
-
|
|
85
78
|
function MFNode (... args)
|
|
86
79
|
{
|
|
87
80
|
return X3DObjectArrayField .call (this, args);
|
|
@@ -89,7 +82,6 @@ function MFNode (... args)
|
|
|
89
82
|
|
|
90
83
|
Object .assign (Object .setPrototypeOf (MFNode .prototype, X3DObjectArrayField .prototype),
|
|
91
84
|
{
|
|
92
|
-
[_cloneCount]: 0,
|
|
93
85
|
getSingleType ()
|
|
94
86
|
{
|
|
95
87
|
return SFNode;
|
|
@@ -112,40 +104,6 @@ Object .assign (Object .setPrototypeOf (MFNode .prototype, X3DObjectArrayField .
|
|
|
112
104
|
return X3DObjectArrayField .prototype .copy .call (this);
|
|
113
105
|
}
|
|
114
106
|
},
|
|
115
|
-
addCloneCount (count)
|
|
116
|
-
{
|
|
117
|
-
const target = this .getTarget ();
|
|
118
|
-
|
|
119
|
-
target [_cloneCount] += count;
|
|
120
|
-
|
|
121
|
-
for (const element of target .getValue ())
|
|
122
|
-
element .addCloneCount (count);
|
|
123
|
-
},
|
|
124
|
-
removeCloneCount (count)
|
|
125
|
-
{
|
|
126
|
-
const target = this .getTarget ();
|
|
127
|
-
|
|
128
|
-
target [_cloneCount] -= count;
|
|
129
|
-
|
|
130
|
-
for (const element of target .getValue ())
|
|
131
|
-
element .removeCloneCount (count);
|
|
132
|
-
},
|
|
133
|
-
addChildObject (value)
|
|
134
|
-
{
|
|
135
|
-
const target = this .getTarget ();
|
|
136
|
-
|
|
137
|
-
X3DObjectArrayField .prototype .addChildObject .call (target, value);
|
|
138
|
-
|
|
139
|
-
value .addCloneCount (target [_cloneCount]);
|
|
140
|
-
},
|
|
141
|
-
removeChildObject (value)
|
|
142
|
-
{
|
|
143
|
-
const target = this .getTarget ();
|
|
144
|
-
|
|
145
|
-
X3DObjectArrayField .prototype .removeChildObject .call (target, value);
|
|
146
|
-
|
|
147
|
-
value .removeCloneCount (target [_cloneCount]);
|
|
148
|
-
},
|
|
149
107
|
toStream (generator)
|
|
150
108
|
{
|
|
151
109
|
const
|
|
@@ -370,7 +328,7 @@ Object .assign (Object .setPrototypeOf (MFNode .prototype, X3DObjectArrayField .
|
|
|
370
328
|
},
|
|
371
329
|
});
|
|
372
330
|
|
|
373
|
-
for (const key of
|
|
331
|
+
for (const key of Object .keys (MFNode .prototype))
|
|
374
332
|
Object .defineProperty (MFNode .prototype, key, { enumerable: false });
|
|
375
333
|
|
|
376
334
|
Object .defineProperties (MFNode,
|
|
@@ -419,7 +377,7 @@ Object .assign (Object .setPrototypeOf (MFString .prototype, X3DObjectArrayField
|
|
|
419
377
|
},
|
|
420
378
|
});
|
|
421
379
|
|
|
422
|
-
for (const key of
|
|
380
|
+
for (const key of Object .keys (MFString .prototype))
|
|
423
381
|
Object .defineProperty (MFString .prototype, key, { enumerable: false });
|
|
424
382
|
|
|
425
383
|
Object .defineProperties (MFString,
|
|
@@ -448,7 +406,7 @@ Object .assign (Object .setPrototypeOf (MFImage .prototype, X3DObjectArrayField
|
|
|
448
406
|
},
|
|
449
407
|
});
|
|
450
408
|
|
|
451
|
-
for (const key of
|
|
409
|
+
for (const key of Object .keys (MFImage .prototype))
|
|
452
410
|
Object .defineProperty (MFImage .prototype, key, { enumerable: false });
|
|
453
411
|
|
|
454
412
|
Object .defineProperties (MFImage,
|
|
@@ -487,7 +445,7 @@ function TypedArrayTemplate (TypeName, SingleType, ValueType, ArrayType, Compone
|
|
|
487
445
|
},
|
|
488
446
|
});
|
|
489
447
|
|
|
490
|
-
for (const key of
|
|
448
|
+
for (const key of Object .keys (ArrayField .prototype))
|
|
491
449
|
Object .defineProperty (ArrayField .prototype, key, { enumerable: false });
|
|
492
450
|
|
|
493
451
|
Object .defineProperties (ArrayField,
|
|
@@ -89,7 +89,7 @@ Object .assign (Object .setPrototypeOf (SFBool .prototype, X3DField .prototype),
|
|
|
89
89
|
},
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
for (const key of
|
|
92
|
+
for (const key of Object .keys (SFBool .prototype))
|
|
93
93
|
Object .defineProperty (SFBool .prototype, key, { enumerable: false });
|
|
94
94
|
|
|
95
95
|
Object .defineProperties (SFBool,
|