x_ite 8.8.2 → 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 +46 -56
- 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 +9 -19
- 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
package/src/x_ite/Base/Events.js
CHANGED
|
@@ -49,52 +49,25 @@ const Events = Object .assign ([ ],
|
|
|
49
49
|
{
|
|
50
50
|
create (field)
|
|
51
51
|
{
|
|
52
|
-
|
|
53
|
-
{
|
|
54
|
-
const event = this .pop ();
|
|
55
|
-
|
|
56
|
-
event .field = field;
|
|
57
|
-
event .clear ();
|
|
58
|
-
|
|
59
|
-
return event;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const event = new Set ();
|
|
52
|
+
const event = this .pop () ?? new Set ();
|
|
63
53
|
|
|
64
54
|
event .field = field;
|
|
55
|
+
event .clear ();
|
|
65
56
|
|
|
66
57
|
return event;
|
|
67
58
|
},
|
|
68
59
|
copy (event)
|
|
69
60
|
{
|
|
70
|
-
|
|
71
|
-
{
|
|
72
|
-
const copy = this .pop ();
|
|
73
|
-
|
|
74
|
-
copy .field = event .field;
|
|
75
|
-
copy .clear ();
|
|
76
|
-
|
|
77
|
-
for (const source of event)
|
|
78
|
-
{
|
|
79
|
-
copy .add (source);
|
|
80
|
-
}
|
|
61
|
+
const copy = this .create (event .field);
|
|
81
62
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
const copy = new Set (event);
|
|
86
|
-
|
|
87
|
-
copy .field = event .field;
|
|
63
|
+
for (const source of event)
|
|
64
|
+
copy .add (source);
|
|
88
65
|
|
|
89
66
|
return copy;
|
|
90
67
|
},
|
|
91
|
-
clear ()
|
|
92
|
-
{
|
|
93
|
-
this .length = 0;
|
|
94
|
-
},
|
|
95
68
|
});
|
|
96
69
|
|
|
97
|
-
for (const key of
|
|
70
|
+
for (const key of Object .keys (Events))
|
|
98
71
|
Object .defineProperty (Events, key, { enumerable: false });
|
|
99
72
|
|
|
100
73
|
export default Events;
|
|
@@ -55,7 +55,7 @@ function FieldArray (values = [ ])
|
|
|
55
55
|
|
|
56
56
|
Object .setPrototypeOf (FieldArray .prototype, X3DInfoArray .prototype);
|
|
57
57
|
|
|
58
|
-
for (const key of
|
|
58
|
+
for (const key of Object .keys (FieldArray .prototype))
|
|
59
59
|
Object .defineProperty (FieldArray .prototype, key, { enumerable: false });
|
|
60
60
|
|
|
61
61
|
Object .defineProperties (FieldArray,
|
|
@@ -55,7 +55,7 @@ function FieldDefinitionArray (values = [ ])
|
|
|
55
55
|
|
|
56
56
|
Object .setPrototypeOf (FieldDefinitionArray .prototype, X3DInfoArray .prototype);
|
|
57
57
|
|
|
58
|
-
for (const key of
|
|
58
|
+
for (const key of Object .keys (FieldDefinitionArray .prototype))
|
|
59
59
|
Object .defineProperty (FieldDefinitionArray .prototype, key, { enumerable: false });
|
|
60
60
|
|
|
61
61
|
Object .defineProperties (FieldDefinitionArray,
|
|
@@ -117,7 +117,7 @@ Object .assign (Object .setPrototypeOf (X3DArrayField .prototype, X3DField .prot
|
|
|
117
117
|
},
|
|
118
118
|
});
|
|
119
119
|
|
|
120
|
-
for (const key of
|
|
120
|
+
for (const key of Object .keys (X3DArrayField .prototype))
|
|
121
121
|
Object .defineProperty (X3DArrayField .prototype, key, { enumerable: false });
|
|
122
122
|
|
|
123
123
|
export default X3DArrayField;
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
import
|
|
48
|
+
import X3DChildObject from "./X3DChildObject.js";
|
|
49
|
+
import Events from "./Events.js";
|
|
49
50
|
import X3DFieldDefinition from "./X3DFieldDefinition.js";
|
|
50
51
|
import FieldDefinitionArray from "./FieldDefinitionArray.js";
|
|
51
52
|
import FieldArray from "./FieldArray.js";
|
|
@@ -54,6 +55,7 @@ import X3DConstants from "./X3DConstants.js";
|
|
|
54
55
|
import HTMLSupport from "../Parser/HTMLSupport.js";
|
|
55
56
|
|
|
56
57
|
const
|
|
58
|
+
_browser = Symbol (),
|
|
57
59
|
_executionContext = Symbol (),
|
|
58
60
|
_type = Symbol (),
|
|
59
61
|
_fieldDefinitions = Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions"),
|
|
@@ -62,17 +64,16 @@ const
|
|
|
62
64
|
_childObjects = Symbol (),
|
|
63
65
|
_initialized = Symbol (),
|
|
64
66
|
_live = Symbol (),
|
|
65
|
-
_set_live__ = Symbol ()
|
|
66
|
-
_private = Symbol (),
|
|
67
|
-
_cloneCount = Symbol ();
|
|
67
|
+
_set_live__ = Symbol ();
|
|
68
68
|
|
|
69
|
-
function X3DBaseNode (executionContext)
|
|
69
|
+
function X3DBaseNode (executionContext, browser = executionContext .getBrowser ())
|
|
70
70
|
{
|
|
71
71
|
if (this [_executionContext])
|
|
72
72
|
return;
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
X3DChildObject .call (this);
|
|
75
75
|
|
|
76
|
+
this [_browser] = browser;
|
|
76
77
|
this [_executionContext] = executionContext;
|
|
77
78
|
this [_type] = [ X3DConstants .X3DBaseNode ];
|
|
78
79
|
this [_fieldDefinitions] = this .constructor .fieldDefinitions ?? this [_fieldDefinitions];
|
|
@@ -81,36 +82,38 @@ function X3DBaseNode (executionContext)
|
|
|
81
82
|
this [_childObjects] = [ ];
|
|
82
83
|
this [_live] = true;
|
|
83
84
|
this [_initialized] = false;
|
|
84
|
-
this [_private] = false;
|
|
85
|
-
this [_cloneCount] = 0;
|
|
86
85
|
|
|
87
86
|
if (this .canUserDefinedFields ())
|
|
88
87
|
this [_fieldDefinitions] = new FieldDefinitionArray (this [_fieldDefinitions]);
|
|
89
88
|
|
|
90
89
|
// Create fields.
|
|
91
90
|
|
|
92
|
-
this .addChildObjects ("name_changed",
|
|
93
|
-
"typeName_changed",
|
|
94
|
-
"
|
|
91
|
+
this .addChildObjects ("name_changed", new Fields .SFTime (),
|
|
92
|
+
"typeName_changed", new Fields .SFTime (),
|
|
93
|
+
"parents_changed", new Fields .SFTime ())
|
|
95
94
|
|
|
96
95
|
for (const fieldDefinition of this [_fieldDefinitions])
|
|
97
96
|
this .addPredefinedField (fieldDefinition);
|
|
98
97
|
}
|
|
99
98
|
|
|
100
|
-
Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype,
|
|
99
|
+
Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype, X3DChildObject .prototype),
|
|
101
100
|
{
|
|
102
101
|
[_fieldDefinitions]: new FieldDefinitionArray ([ ]),
|
|
103
102
|
setName (value)
|
|
104
103
|
{
|
|
105
|
-
|
|
104
|
+
X3DChildObject .prototype .setName .call (this, value)
|
|
106
105
|
|
|
107
|
-
this ._name_changed = this
|
|
106
|
+
this ._name_changed = this [_browser] .getCurrentTime ();
|
|
107
|
+
},
|
|
108
|
+
getBrowser ()
|
|
109
|
+
{
|
|
110
|
+
return this [_browser];
|
|
108
111
|
},
|
|
109
112
|
getMainScene ()
|
|
110
113
|
{
|
|
111
114
|
let scene = this [_executionContext] .getScene ();
|
|
112
115
|
|
|
113
|
-
while (!
|
|
116
|
+
while (!scene .isMainScene ())
|
|
114
117
|
scene = scene .getScene ();
|
|
115
118
|
|
|
116
119
|
return scene;
|
|
@@ -119,7 +122,7 @@ Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype, X3DEventObject .
|
|
|
119
122
|
{
|
|
120
123
|
let executionContext = this [_executionContext];
|
|
121
124
|
|
|
122
|
-
while (!
|
|
125
|
+
while (!executionContext .isScene ())
|
|
123
126
|
executionContext = executionContext .getExecutionContext ();
|
|
124
127
|
|
|
125
128
|
return executionContext;
|
|
@@ -160,7 +163,7 @@ Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype, X3DEventObject .
|
|
|
160
163
|
|
|
161
164
|
this [_set_live__] ();
|
|
162
165
|
},
|
|
163
|
-
getLive: (
|
|
166
|
+
getLive: (() =>
|
|
164
167
|
{
|
|
165
168
|
function getLive ()
|
|
166
169
|
{
|
|
@@ -333,9 +336,6 @@ Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype, X3DEventObject .
|
|
|
333
336
|
set (value) { field .setValue (value); },
|
|
334
337
|
configurable: true,
|
|
335
338
|
});
|
|
336
|
-
|
|
337
|
-
if (!this .isPrivate ())
|
|
338
|
-
field .addCloneCount (1);
|
|
339
339
|
},
|
|
340
340
|
addAlias (alias, field)
|
|
341
341
|
{
|
|
@@ -356,9 +356,6 @@ Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype, X3DEventObject .
|
|
|
356
356
|
this [_predefinedFields] .remove (name);
|
|
357
357
|
|
|
358
358
|
delete this [`_${field .getName ()}`];
|
|
359
|
-
|
|
360
|
-
if (!this .isPrivate ())
|
|
361
|
-
field .removeCloneCount (1);
|
|
362
359
|
},
|
|
363
360
|
getPredefinedField (name)
|
|
364
361
|
{
|
|
@@ -394,9 +391,6 @@ Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype, X3DEventObject .
|
|
|
394
391
|
|
|
395
392
|
this [_fieldDefinitions] .add (name, new X3DFieldDefinition (accessType, name, field));
|
|
396
393
|
this [_userDefinedFields] .add (name, field);
|
|
397
|
-
|
|
398
|
-
if (!this .isPrivate ())
|
|
399
|
-
field .addCloneCount (1);
|
|
400
394
|
},
|
|
401
395
|
removeUserDefinedField (name)
|
|
402
396
|
{
|
|
@@ -409,9 +403,6 @@ Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype, X3DEventObject .
|
|
|
409
403
|
|
|
410
404
|
this [_fieldDefinitions] .remove (name);
|
|
411
405
|
this [_userDefinedFields] .remove (name);
|
|
412
|
-
|
|
413
|
-
if (!this .isPrivate ())
|
|
414
|
-
field .removeCloneCount (1);
|
|
415
406
|
},
|
|
416
407
|
getUserDefinedField (name)
|
|
417
408
|
{
|
|
@@ -501,58 +492,56 @@ Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype, X3DEventObject .
|
|
|
501
492
|
|
|
502
493
|
return false;
|
|
503
494
|
},
|
|
504
|
-
|
|
495
|
+
getExtendedEventHandling ()
|
|
505
496
|
{
|
|
506
|
-
|
|
497
|
+
// Whether initializeOnly field are treated like inputOnly and inputOutput fields.
|
|
498
|
+
return true;
|
|
507
499
|
},
|
|
508
|
-
|
|
500
|
+
addEvent (field)
|
|
509
501
|
{
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
if (value)
|
|
513
|
-
{
|
|
514
|
-
for (const field of this [_predefinedFields])
|
|
515
|
-
field .removeCloneCount (1);
|
|
502
|
+
if (field .isTainted ())
|
|
503
|
+
return;
|
|
516
504
|
|
|
517
|
-
|
|
518
|
-
field .removeCloneCount (1);
|
|
519
|
-
}
|
|
520
|
-
else
|
|
521
|
-
{
|
|
522
|
-
for (const field of this [_predefinedFields])
|
|
523
|
-
field .addCloneCount (1);
|
|
505
|
+
field .setTainted (true);
|
|
524
506
|
|
|
525
|
-
|
|
526
|
-
field .addCloneCount (1);
|
|
527
|
-
}
|
|
528
|
-
},
|
|
529
|
-
getCloneCount ()
|
|
530
|
-
{
|
|
531
|
-
return this [_cloneCount];
|
|
507
|
+
this .addEventObject (field, Events .create (field));
|
|
532
508
|
},
|
|
533
|
-
|
|
509
|
+
addEventObject (field, event)
|
|
534
510
|
{
|
|
535
|
-
|
|
536
|
-
return;
|
|
511
|
+
const browser = this [_browser];
|
|
537
512
|
|
|
538
|
-
|
|
513
|
+
// Register for processEvent
|
|
539
514
|
|
|
540
|
-
|
|
515
|
+
browser .addTaintedField (field, event);
|
|
516
|
+
browser .addBrowserEvent ();
|
|
541
517
|
|
|
542
|
-
|
|
543
|
-
|
|
518
|
+
// Register for eventsProcessed
|
|
519
|
+
|
|
520
|
+
if (this .isTainted ())
|
|
521
|
+
return;
|
|
522
|
+
|
|
523
|
+
if (field .isInput () || (this .getExtendedEventHandling () && field .isInitializable ()))
|
|
524
|
+
{
|
|
525
|
+
this .addNodeEvent ();
|
|
526
|
+
}
|
|
544
527
|
},
|
|
545
|
-
|
|
528
|
+
addNodeEvent ()
|
|
546
529
|
{
|
|
547
|
-
if (
|
|
530
|
+
if (this .isTainted ())
|
|
548
531
|
return;
|
|
549
532
|
|
|
550
|
-
const
|
|
533
|
+
const browser = this [_browser];
|
|
551
534
|
|
|
552
|
-
this
|
|
535
|
+
this .setTainted (true);
|
|
536
|
+
browser .addTaintedNode (this);
|
|
537
|
+
browser .addBrowserEvent ();
|
|
538
|
+
},
|
|
539
|
+
parentsChanged ()
|
|
540
|
+
{
|
|
541
|
+
const time = this [_browser] .getCurrentTime ();
|
|
553
542
|
|
|
554
543
|
this [_executionContext] ._sceneGraph_changed = time;
|
|
555
|
-
this .
|
|
544
|
+
this ._parents_changed = time;
|
|
556
545
|
},
|
|
557
546
|
dispose ()
|
|
558
547
|
{
|
|
@@ -567,11 +556,11 @@ Object .assign (Object .setPrototypeOf (X3DBaseNode .prototype, X3DEventObject .
|
|
|
567
556
|
for (const field of this [_userDefinedFields])
|
|
568
557
|
field .dispose ();
|
|
569
558
|
|
|
570
|
-
|
|
559
|
+
X3DChildObject .prototype .dispose .call (this);
|
|
571
560
|
},
|
|
572
561
|
});
|
|
573
562
|
|
|
574
|
-
const getFieldFromArray = (
|
|
563
|
+
const getFieldFromArray = (() =>
|
|
575
564
|
{
|
|
576
565
|
const
|
|
577
566
|
set_field = /^set_(.*?)$/,
|
|
@@ -608,7 +597,7 @@ const getFieldFromArray = (function ()
|
|
|
608
597
|
};
|
|
609
598
|
})();
|
|
610
599
|
|
|
611
|
-
for (const key of
|
|
600
|
+
for (const key of Object .keys (X3DBaseNode .prototype))
|
|
612
601
|
Object .defineProperty (X3DBaseNode .prototype, key, { enumerable: false });
|
|
613
602
|
|
|
614
603
|
Object .defineProperties (X3DBaseNode .prototype,
|
|
@@ -623,9 +612,9 @@ Object .defineProperties (X3DBaseNode .prototype,
|
|
|
623
612
|
get () { return this ._typeName_changed; },
|
|
624
613
|
enumerable: false,
|
|
625
614
|
},
|
|
626
|
-
|
|
615
|
+
parents_changed:
|
|
627
616
|
{
|
|
628
|
-
get () { return this .
|
|
617
|
+
get () { return this ._parents_changed; },
|
|
629
618
|
enumerable: false,
|
|
630
619
|
},
|
|
631
620
|
});
|
|
@@ -66,7 +66,7 @@ if (DEVELOPMENT)
|
|
|
66
66
|
[_modificationTime]: 0,
|
|
67
67
|
[_tainted]: false,
|
|
68
68
|
[_parents]: new Map (),
|
|
69
|
-
[_registry]:
|
|
69
|
+
[_registry]: new FinalizationRegistry (Function .prototype),
|
|
70
70
|
isInitializable ()
|
|
71
71
|
{
|
|
72
72
|
return true;
|
|
@@ -109,21 +109,43 @@ if (DEVELOPMENT)
|
|
|
109
109
|
for (const parent of this [_parents] .values ())
|
|
110
110
|
parent .deref () .addEventObject (this, event);
|
|
111
111
|
},
|
|
112
|
+
processEvent ()
|
|
113
|
+
{
|
|
114
|
+
this .setTainted (false);
|
|
115
|
+
this .processInterests ();
|
|
116
|
+
},
|
|
117
|
+
collectCloneCount ()
|
|
118
|
+
{
|
|
119
|
+
let cloneCount = 0;
|
|
120
|
+
|
|
121
|
+
for (const weakRef of this [_parents] .values ())
|
|
122
|
+
cloneCount += weakRef .deref () .collectCloneCount ();
|
|
123
|
+
|
|
124
|
+
return cloneCount;
|
|
125
|
+
},
|
|
112
126
|
addParent (parent)
|
|
113
127
|
{
|
|
114
128
|
if (this [_parents] === X3DChildObject .prototype [_parents])
|
|
115
129
|
{
|
|
116
130
|
this [_parents] = new Map ();
|
|
117
|
-
this [_registry] = new FinalizationRegistry (id =>
|
|
131
|
+
this [_registry] = new FinalizationRegistry (id =>
|
|
132
|
+
{
|
|
133
|
+
this [_parents] .delete (id);
|
|
134
|
+
this .parentsChanged ();
|
|
135
|
+
});
|
|
118
136
|
}
|
|
119
137
|
|
|
120
138
|
this [_parents] .set (parent .getId (), new WeakRef (parent));
|
|
121
139
|
this [_registry] .register (parent, parent .getId (), parent);
|
|
140
|
+
|
|
141
|
+
this .parentsChanged ();
|
|
122
142
|
},
|
|
123
143
|
removeParent (parent)
|
|
124
144
|
{
|
|
125
145
|
this [_parents] .delete (parent .getId ());
|
|
126
|
-
this [_registry]
|
|
146
|
+
this [_registry] .unregister (parent);
|
|
147
|
+
|
|
148
|
+
this .parentsChanged ();
|
|
127
149
|
},
|
|
128
150
|
getParents ()
|
|
129
151
|
{
|
|
@@ -134,11 +156,7 @@ if (DEVELOPMENT)
|
|
|
134
156
|
|
|
135
157
|
return parents;
|
|
136
158
|
},
|
|
137
|
-
|
|
138
|
-
{
|
|
139
|
-
this .setTainted (false);
|
|
140
|
-
this .processInterests ();
|
|
141
|
-
},
|
|
159
|
+
parentsChanged () { },
|
|
142
160
|
dispose ()
|
|
143
161
|
{
|
|
144
162
|
this [_parents] .clear ();
|
|
@@ -196,26 +214,40 @@ else
|
|
|
196
214
|
for (const parent of this [_parents])
|
|
197
215
|
parent .addEventObject (this, event);
|
|
198
216
|
},
|
|
217
|
+
processEvent ()
|
|
218
|
+
{
|
|
219
|
+
this .setTainted (false);
|
|
220
|
+
this .processInterests ();
|
|
221
|
+
},
|
|
222
|
+
collectCloneCount ()
|
|
223
|
+
{
|
|
224
|
+
let cloneCount = 0;
|
|
225
|
+
|
|
226
|
+
for (const parent of this [_parents])
|
|
227
|
+
cloneCount += parent .collectCloneCount ();
|
|
228
|
+
|
|
229
|
+
return cloneCount;
|
|
230
|
+
},
|
|
199
231
|
addParent (parent)
|
|
200
232
|
{
|
|
201
233
|
if (this [_parents] === X3DChildObject .prototype [_parents])
|
|
202
234
|
this [_parents] = new Set ();
|
|
203
235
|
|
|
204
236
|
this [_parents] .add (parent);
|
|
237
|
+
|
|
238
|
+
this .parentsChanged ();
|
|
205
239
|
},
|
|
206
240
|
removeParent (parent)
|
|
207
241
|
{
|
|
208
242
|
this [_parents] .delete (parent);
|
|
243
|
+
|
|
244
|
+
this .parentsChanged ();
|
|
209
245
|
},
|
|
210
246
|
getParents ()
|
|
211
247
|
{
|
|
212
248
|
return this [_parents];
|
|
213
249
|
},
|
|
214
|
-
|
|
215
|
-
{
|
|
216
|
-
this .setTainted (false);
|
|
217
|
-
this .processInterests ();
|
|
218
|
-
},
|
|
250
|
+
parentsChanged () { },
|
|
219
251
|
dispose ()
|
|
220
252
|
{
|
|
221
253
|
this [_parents] .clear ();
|
|
@@ -225,7 +257,7 @@ else
|
|
|
225
257
|
});
|
|
226
258
|
}
|
|
227
259
|
|
|
228
|
-
for (const key of
|
|
260
|
+
for (const key of Object .keys (X3DChildObject .prototype))
|
|
229
261
|
Object .defineProperty (X3DChildObject .prototype, key, { enumerable: false });
|
|
230
262
|
|
|
231
263
|
export default X3DChildObject;
|
|
@@ -239,7 +239,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, X3DChildObject .pro
|
|
|
239
239
|
{
|
|
240
240
|
return this [_referencesCallbacks];
|
|
241
241
|
},
|
|
242
|
-
processReferencesCallbacks: (
|
|
242
|
+
processReferencesCallbacks: (() =>
|
|
243
243
|
{
|
|
244
244
|
const referencesCallbacksTemp = [ ];
|
|
245
245
|
|
|
@@ -337,7 +337,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, X3DChildObject .pro
|
|
|
337
337
|
{
|
|
338
338
|
return this [_routeCallbacks];
|
|
339
339
|
},
|
|
340
|
-
processRouteCallbacks: (
|
|
340
|
+
processRouteCallbacks: (() =>
|
|
341
341
|
{
|
|
342
342
|
const routeCallbacksTemp = [ ];
|
|
343
343
|
|
|
@@ -350,7 +350,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, X3DChildObject .pro
|
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
352
|
})(),
|
|
353
|
-
processEvent: (
|
|
353
|
+
processEvent: (() =>
|
|
354
354
|
{
|
|
355
355
|
const fieldCallbacksTemp = [ ];
|
|
356
356
|
|
|
@@ -401,8 +401,6 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, X3DChildObject .pro
|
|
|
401
401
|
}
|
|
402
402
|
};
|
|
403
403
|
})(),
|
|
404
|
-
addCloneCount: Function .prototype,
|
|
405
|
-
removeCloneCount: Function .prototype,
|
|
406
404
|
fromString (string, scene)
|
|
407
405
|
{
|
|
408
406
|
// Function will be overridden in VRMLParser.
|
|
@@ -425,7 +423,7 @@ Object .assign (Object .setPrototypeOf (X3DField .prototype, X3DChildObject .pro
|
|
|
425
423
|
}
|
|
426
424
|
});
|
|
427
425
|
|
|
428
|
-
for (const key of
|
|
426
|
+
for (const key of Object .keys (X3DField .prototype))
|
|
429
427
|
Object .defineProperty (X3DField .prototype, key, { enumerable: false });
|
|
430
428
|
|
|
431
429
|
export default X3DField;
|
|
@@ -60,7 +60,7 @@ function X3DFieldDefinition (accessType, name, value)
|
|
|
60
60
|
|
|
61
61
|
Object .setPrototypeOf (X3DFieldDefinition .prototype, X3DObject .prototype);
|
|
62
62
|
|
|
63
|
-
for (const key of
|
|
63
|
+
for (const key of Object .keys (X3DFieldDefinition .prototype))
|
|
64
64
|
Object .defineProperty (X3DFieldDefinition .prototype, key, { enumerable: false });
|
|
65
65
|
|
|
66
66
|
Object .defineProperties (X3DFieldDefinition,
|
|
@@ -367,7 +367,7 @@ Object .assign (Object .setPrototypeOf (X3DInfoArray .prototype, X3DChildObject
|
|
|
367
367
|
},
|
|
368
368
|
});
|
|
369
369
|
|
|
370
|
-
for (const key of
|
|
370
|
+
for (const key of Object .keys (X3DInfoArray .prototype))
|
|
371
371
|
Object .defineProperty (X3DInfoArray .prototype, key, { enumerable: false });
|
|
372
372
|
|
|
373
373
|
Object .defineProperties (X3DInfoArray .prototype,
|
|
@@ -143,7 +143,7 @@ Object .assign (X3DObject .prototype,
|
|
|
143
143
|
|
|
144
144
|
return generator .string;
|
|
145
145
|
},
|
|
146
|
-
toVRMLString
|
|
146
|
+
toVRMLString (options = Object .prototype)
|
|
147
147
|
{
|
|
148
148
|
const generator = new Generator (options);
|
|
149
149
|
|
|
@@ -154,7 +154,7 @@ Object .assign (X3DObject .prototype,
|
|
|
154
154
|
|
|
155
155
|
return generator .string;
|
|
156
156
|
},
|
|
157
|
-
toXMLString
|
|
157
|
+
toXMLString (options = Object .prototype)
|
|
158
158
|
{
|
|
159
159
|
const generator = new Generator (options);
|
|
160
160
|
|
|
@@ -187,7 +187,7 @@ Object .assign (X3DObject .prototype,
|
|
|
187
187
|
},
|
|
188
188
|
});
|
|
189
189
|
|
|
190
|
-
for (const key of
|
|
190
|
+
for (const key of Object .keys (X3DObject .prototype))
|
|
191
191
|
Object .defineProperty (X3DObject .prototype, key, { enumerable: false });
|
|
192
192
|
|
|
193
193
|
Object .defineProperties (X3DObject .prototype,
|
|
@@ -200,7 +200,7 @@ Object .defineProperties (X3DObject .prototype,
|
|
|
200
200
|
|
|
201
201
|
Object .assign (X3DObject,
|
|
202
202
|
{
|
|
203
|
-
getId: DEVELOPMENT ? (
|
|
203
|
+
getId: DEVELOPMENT ? (() =>
|
|
204
204
|
{
|
|
205
205
|
const
|
|
206
206
|
map = new WeakMap (),
|
|
@@ -227,7 +227,7 @@ Object .assign (X3DObject,
|
|
|
227
227
|
return id;
|
|
228
228
|
}
|
|
229
229
|
};
|
|
230
|
-
})() : (
|
|
230
|
+
})() : (() =>
|
|
231
231
|
{
|
|
232
232
|
const map = new WeakMap ();
|
|
233
233
|
|
|
@@ -526,7 +526,7 @@ Object .assign (Object .setPrototypeOf (X3DObjectArrayField .prototype, X3DArray
|
|
|
526
526
|
},
|
|
527
527
|
});
|
|
528
528
|
|
|
529
|
-
for (const key of
|
|
529
|
+
for (const key of Object .keys (X3DObjectArrayField .prototype))
|
|
530
530
|
Object .defineProperty (X3DObjectArrayField .prototype, key, { enumerable: false });
|
|
531
531
|
|
|
532
532
|
Object .defineProperty (X3DObjectArrayField .prototype, "length",
|
|
@@ -970,7 +970,7 @@ Object .assign (Object .setPrototypeOf (X3DTypedArrayField .prototype, X3DArrayF
|
|
|
970
970
|
},
|
|
971
971
|
});
|
|
972
972
|
|
|
973
|
-
for (const key of
|
|
973
|
+
for (const key of Object .keys (X3DTypedArrayField .prototype))
|
|
974
974
|
Object .defineProperty (X3DTypedArrayField .prototype, key, { enumerable: false });
|
|
975
975
|
|
|
976
976
|
Object .defineProperty (X3DTypedArrayField .prototype, "length",
|
|
@@ -103,7 +103,7 @@ Object .assign (Object .setPrototypeOf (BrowserOptions .prototype, X3DBaseNode .
|
|
|
103
103
|
|
|
104
104
|
this .configure ();
|
|
105
105
|
},
|
|
106
|
-
configure: (
|
|
106
|
+
configure: (() =>
|
|
107
107
|
{
|
|
108
108
|
const attributes = new Set ([
|
|
109
109
|
"Antialiased",
|
|
@@ -117,6 +117,10 @@ Object .assign (Object .setPrototypeOf (BrowserOptions .prototype, X3DBaseNode .
|
|
|
117
117
|
"SplashScreen",
|
|
118
118
|
]);
|
|
119
119
|
|
|
120
|
+
const mappings = new Map ([
|
|
121
|
+
["AutoUpdate", "Update"],
|
|
122
|
+
]);
|
|
123
|
+
|
|
120
124
|
const restorable = new Set ([
|
|
121
125
|
"PrimitiveQuality",
|
|
122
126
|
"Rubberband",
|
|
@@ -136,7 +140,7 @@ Object .assign (Object .setPrototypeOf (BrowserOptions .prototype, X3DBaseNode .
|
|
|
136
140
|
if (attributes .has (name))
|
|
137
141
|
{
|
|
138
142
|
const
|
|
139
|
-
attribute = $.toLowerCaseFirst (name),
|
|
143
|
+
attribute = $.toLowerCaseFirst (mappings .get (name) ?? name),
|
|
140
144
|
value = browser .getElement () .attr (attribute);
|
|
141
145
|
|
|
142
146
|
if (value !== undefined)
|
|
@@ -214,7 +218,7 @@ Object .assign (Object .setPrototypeOf (BrowserOptions .prototype, X3DBaseNode .
|
|
|
214
218
|
if (typeof browser .setTextureQuality === "function")
|
|
215
219
|
browser .setTextureQuality (this .textureQuality);
|
|
216
220
|
},
|
|
217
|
-
set_shading__: (
|
|
221
|
+
set_shading__: (() =>
|
|
218
222
|
{
|
|
219
223
|
const strings = {
|
|
220
224
|
[Shading .POINT]: "POINT",
|