x_ite 8.7.3 → 8.7.5
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/.vscode/tasks.json +1 -1
- package/build/bin/bump.pl +2 -0
- 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 +25 -25
- 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 +19 -19
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +33 -33
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +18 -18
- 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 +36 -31
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +24 -24
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +22 -22
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +20 -20
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +18 -18
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +28 -28
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +24 -24
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +14 -14
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +31 -31
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +19 -19
- 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 +1297 -1436
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/docs/_posts/reference/field-services-and-objects.md +27 -7
- package/package.json +2 -2
- package/src/standard/Math/Algorithms/eigen_decomposition.js +9 -9
- package/src/standard/Math/Geometry/Box2.js +20 -20
- package/src/standard/Math/Geometry/Box3.js +20 -20
- package/src/standard/Math/Numbers/Color3.js +10 -18
- package/src/standard/Math/Numbers/Color4.js +12 -23
- package/src/standard/Math/Numbers/Complex.js +59 -54
- package/src/standard/Math/Numbers/Matrix2.js +31 -45
- package/src/standard/Math/Numbers/Matrix3.js +59 -94
- package/src/standard/Math/Numbers/Matrix4.js +73 -114
- package/src/standard/Math/Numbers/Quaternion.js +49 -65
- package/src/standard/Math/Numbers/Rotation4.js +15 -13
- package/src/standard/Math/Numbers/Vector2.js +12 -14
- package/src/standard/Math/Numbers/Vector3.js +17 -22
- package/src/standard/Math/Numbers/Vector4.js +22 -30
- package/src/x_ite/Base/FieldArray.js +3 -2
- package/src/x_ite/Base/FieldDefinitionArray.js +3 -2
- package/src/x_ite/Base/X3DArrayField.js +27 -3
- package/src/x_ite/Base/X3DInfoArray.js +73 -14
- package/src/x_ite/Base/X3DObject.js +5 -0
- package/src/x_ite/Browser/Core/X3DCoreContext.js +3 -3
- package/src/x_ite/Browser/Layout/ScreenText.js +9 -4
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +60 -67
- package/src/x_ite/Browser/X3DBrowserContext.js +8 -8
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +4 -4
- package/src/x_ite/Components/Layering/X3DLayerNode.js +1 -1
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +2 -3
- package/src/x_ite/Components/Picking/X3DPickSensorNode.js +2 -2
- package/src/x_ite/Configuration/ComponentInfoArray.js +2 -2
- package/src/x_ite/Configuration/ProfileInfoArray.js +2 -2
- package/src/x_ite/Configuration/UnitInfoArray.js +15 -1
- package/src/x_ite/Execution/BindableList.js +1 -1
- package/src/x_ite/Execution/ExportedNodesArray.js +4 -3
- package/src/x_ite/Execution/ImportedNodesArray.js +4 -3
- package/src/x_ite/Execution/NamedNodesArray.js +16 -2
- package/src/x_ite/Execution/X3DExecutionContext.js +52 -58
- package/src/x_ite/Execution/X3DExportedNode.js +13 -11
- package/src/x_ite/Execution/X3DImportedNode.js +25 -25
- package/src/x_ite/Execution/X3DScene.js +130 -54
- package/src/x_ite/Fields/SFColor.js +10 -15
- package/src/x_ite/Fields/SFColorRGBA.js +11 -18
- package/src/x_ite/Fields/SFImage.js +38 -33
- package/src/x_ite/Fields/SFMatrix3.js +1 -3
- package/src/x_ite/Fields/SFMatrix4.js +1 -5
- package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +6 -5
- package/src/x_ite/Fields/SFNode.js +1 -1
- package/src/x_ite/Fields/SFRotation.js +14 -21
- package/src/x_ite/Fields/SFString.js +0 -1
- package/src/x_ite/Fields/SFVec2.js +8 -15
- package/src/x_ite/Fields/SFVec3.js +10 -17
- package/src/x_ite/Fields/SFVec4.js +12 -23
- package/src/x_ite/Fields/SFVecPrototypeTemplate.js +15 -14
- package/src/x_ite/InputOutput/FileLoader.js +2 -2
- package/src/x_ite/Parser/SVGParser.js +2 -2
- package/src/x_ite/Parser/X3DOptimizer.js +1 -1
- package/src/x_ite/Parser/XMLParser.js +18 -18
- package/src/x_ite/Prototype/ExternProtoDeclarationArray.js +3 -2
- package/src/x_ite/Prototype/ProtoDeclarationArray.js +4 -3
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +26 -27
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +16 -15
- package/src/x_ite/Routing/RouteArray.js +3 -2
- package/src/x_ite/Routing/X3DRoute.js +26 -25
- package/src/x_ite/Execution/Scene.js +0 -145
|
@@ -59,7 +59,7 @@ const
|
|
|
59
59
|
function X3DPrototypeInstance (executionContext, protoNode)
|
|
60
60
|
{
|
|
61
61
|
this [_protoNode] = protoNode;
|
|
62
|
-
this [_protoFields] = new Map (protoNode .getFields () .map (f => [f, f .getName ()]));
|
|
62
|
+
this [_protoFields] = new Map ([... protoNode .getFields ()] .map (f => [f, f .getName ()]));
|
|
63
63
|
this [_fieldDefinitions] = protoNode .getFieldDefinitions ();
|
|
64
64
|
this [_body] = null;
|
|
65
65
|
|
|
@@ -197,14 +197,14 @@ X3DPrototypeInstance .prototype = Object .assign (Object .create (X3DNode .proto
|
|
|
197
197
|
|
|
198
198
|
const
|
|
199
199
|
oldProtoFields = this [_protoFields],
|
|
200
|
-
oldFields = new Map (this .getFields () .map (f => [f .getName (), f]));
|
|
200
|
+
oldFields = new Map ([... this .getFields ()] .map (f => [f .getName (), f]));
|
|
201
201
|
|
|
202
202
|
for (const field of oldFields .values ())
|
|
203
203
|
this .removeField (field .getName ());
|
|
204
204
|
|
|
205
205
|
// Add new fields.
|
|
206
206
|
|
|
207
|
-
this [_protoFields] = new Map (this [_protoNode] .getFields () .map (f => [f, f .getName ()]));
|
|
207
|
+
this [_protoFields] = new Map ([... this [_protoNode] .getFields ()] .map (f => [f, f .getName ()]));
|
|
208
208
|
|
|
209
209
|
for (const fieldDefinition of this .getFieldDefinitions ())
|
|
210
210
|
this .addField (fieldDefinition);
|
|
@@ -268,7 +268,7 @@ X3DPrototypeInstance .prototype = Object .assign (Object .create (X3DNode .proto
|
|
|
268
268
|
|
|
269
269
|
// Get field from new proto node.
|
|
270
270
|
|
|
271
|
-
this [_protoFields] = new Map (protoNode .getFields () .map (f => [f, f .getName ()]));
|
|
271
|
+
this [_protoFields] = new Map ([... protoNode .getFields ()] .map (f => [f, f .getName ()]));
|
|
272
272
|
this [_fieldDefinitions] = protoNode .getFieldDefinitions ();
|
|
273
273
|
}
|
|
274
274
|
|
|
@@ -213,7 +213,7 @@ X3DLayerNode .prototype = Object .assign (Object .create (X3DNode .prototype),
|
|
|
213
213
|
{
|
|
214
214
|
const
|
|
215
215
|
viewpointNode = this .getViewpoint (),
|
|
216
|
-
bbox = this .getBBox (new Box3 ()) .multRight (
|
|
216
|
+
bbox = this .getBBox (new Box3 ()) .multRight (viewpointNode .getModelMatrix () .copy () .inverse ());
|
|
217
217
|
|
|
218
218
|
viewpointNode .lookAt (this, bbox .center, viewpointNode .getLookAtDistance (bbox), factor, straighten);
|
|
219
219
|
},
|
|
@@ -431,8 +431,7 @@ X3DViewpointNode .prototype = Object .assign (Object .create (X3DBindableNode .p
|
|
|
431
431
|
lookAtPoint: function (layerNode, point, factor, straighten)
|
|
432
432
|
{
|
|
433
433
|
this .getCameraSpaceMatrix () .multVecMatrix (point);
|
|
434
|
-
|
|
435
|
-
Matrix4 .inverse (this .getModelMatrix ()) .multVecMatrix (point);
|
|
434
|
+
this .getModelMatrix () .copy () .inverse () .multVecMatrix (point);
|
|
436
435
|
|
|
437
436
|
const minDistance = layerNode .getNavigationInfo () .getNearValue () * 2;
|
|
438
437
|
|
|
@@ -440,7 +439,7 @@ X3DViewpointNode .prototype = Object .assign (Object .create (X3DBindableNode .p
|
|
|
440
439
|
},
|
|
441
440
|
lookAtBBox: function (layerNode, bbox, factor, straighten)
|
|
442
441
|
{
|
|
443
|
-
bbox = bbox .copy () .multRight (
|
|
442
|
+
bbox = bbox .copy () .multRight (this .getModelMatrix () .copy () .inverse ());
|
|
444
443
|
|
|
445
444
|
const minDistance = Math .max (layerNode .getNavigationInfo () .getNearValue () * 2, this .getLookAtDistance (bbox));
|
|
446
445
|
|
|
@@ -238,7 +238,7 @@ X3DPickSensorNode .prototype = Object .assign (Object .create (X3DSensorNode .pr
|
|
|
238
238
|
|
|
239
239
|
var instance = geometryNode .getExecutionContext ();
|
|
240
240
|
|
|
241
|
-
if (instance .getType () .
|
|
241
|
+
if (instance .getType () .includes (X3DConstants .X3DPrototypeInstance) && instance .getExecutionContext () === executionContext)
|
|
242
242
|
return instance;
|
|
243
243
|
|
|
244
244
|
var pickingHierarchy = target .pickingHierarchy;
|
|
@@ -252,7 +252,7 @@ X3DPickSensorNode .prototype = Object .assign (Object .create (X3DSensorNode .pr
|
|
|
252
252
|
|
|
253
253
|
var instance = node .getExecutionContext ();
|
|
254
254
|
|
|
255
|
-
if (instance .getType () .
|
|
255
|
+
if (instance .getType () .includes (X3DConstants .X3DPrototypeInstance) && instance .getExecutionContext () === executionContext)
|
|
256
256
|
return instance;
|
|
257
257
|
}
|
|
258
258
|
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
import ComponentInfo from "./ComponentInfo.js";
|
|
49
48
|
import X3DInfoArray from "../Base/X3DInfoArray.js";
|
|
49
|
+
import ComponentInfo from "./ComponentInfo.js";
|
|
50
50
|
|
|
51
51
|
function ComponentInfoArray (values)
|
|
52
52
|
{
|
|
53
|
-
return X3DInfoArray .call (this, values);
|
|
53
|
+
return X3DInfoArray .call (this, values, ComponentInfo);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
ComponentInfoArray .prototype = Object .assign (Object .create (X3DInfoArray .prototype),
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
+
import X3DInfoArray from "../Base/X3DInfoArray.js";
|
|
48
49
|
import ComponentInfoArray from "./ComponentInfoArray.js";
|
|
49
50
|
import ProfileInfo from "./ProfileInfo.js";
|
|
50
|
-
import X3DInfoArray from "../Base/X3DInfoArray.js";
|
|
51
51
|
|
|
52
52
|
function ProfileInfoArray (values)
|
|
53
53
|
{
|
|
54
|
-
return X3DInfoArray .call (this, values);
|
|
54
|
+
return X3DInfoArray .call (this, values, X3DInfoArray);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
ProfileInfoArray .prototype = Object .assign (Object .create (X3DInfoArray .prototype),
|
|
@@ -46,10 +46,24 @@
|
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
48
|
import X3DInfoArray from "../Base/X3DInfoArray.js";
|
|
49
|
+
import UnitInfo from "./UnitInfo.js"
|
|
49
50
|
|
|
50
51
|
function UnitInfoArray (values)
|
|
51
52
|
{
|
|
52
|
-
|
|
53
|
+
const proxy = X3DInfoArray .call (this);
|
|
54
|
+
|
|
55
|
+
if (values)
|
|
56
|
+
{
|
|
57
|
+
for (const value of values)
|
|
58
|
+
{
|
|
59
|
+
if (!(value instanceof UnitInfo))
|
|
60
|
+
throw new TypeError (`Wrong type in construction of ${this .getTypeName ()}.`);
|
|
61
|
+
|
|
62
|
+
this .add (value .category, value);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return proxy;
|
|
53
67
|
}
|
|
54
68
|
|
|
55
69
|
UnitInfoArray .prototype = Object .assign (Object .create (X3DInfoArray .prototype),
|
|
@@ -151,7 +151,7 @@ BindableList .prototype = Object .assign (Object .create (X3DBaseNode .prototype
|
|
|
151
151
|
|
|
152
152
|
for (const node of this .nodes)
|
|
153
153
|
{
|
|
154
|
-
if (collectedNodes .
|
|
154
|
+
if (!collectedNodes .includes (node))
|
|
155
155
|
removedNodes .push (node);
|
|
156
156
|
}
|
|
157
157
|
|
|
@@ -45,11 +45,12 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
import X3DInfoArray
|
|
48
|
+
import X3DInfoArray from "../Base/X3DInfoArray.js";
|
|
49
|
+
import X3DExportedNode from "./X3DExportedNode.js"
|
|
49
50
|
|
|
50
|
-
function ExportedNodesArray (
|
|
51
|
+
function ExportedNodesArray (values)
|
|
51
52
|
{
|
|
52
|
-
return X3DInfoArray .call (this,
|
|
53
|
+
return X3DInfoArray .call (this, values, X3DExportedNode);
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
ExportedNodesArray .prototype = Object .assign (Object .create (X3DInfoArray .prototype),
|
|
@@ -45,11 +45,12 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
import X3DInfoArray
|
|
48
|
+
import X3DInfoArray from "../Base/X3DInfoArray.js";
|
|
49
|
+
import X3DImportedNode from "./X3DImportedNode.js"
|
|
49
50
|
|
|
50
|
-
function ImportedNodesArray (
|
|
51
|
+
function ImportedNodesArray (values)
|
|
51
52
|
{
|
|
52
|
-
return X3DInfoArray .call (this,
|
|
53
|
+
return X3DInfoArray .call (this, values, X3DImportedNode);
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
ImportedNodesArray .prototype = Object .assign (Object .create (X3DInfoArray .prototype),
|
|
@@ -46,10 +46,24 @@
|
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
48
|
import X3DInfoArray from "../Base/X3DInfoArray.js";
|
|
49
|
+
import X3DBaseNode from "../Base/X3DBaseNode.js"
|
|
49
50
|
|
|
50
|
-
function NamedNodesArray (
|
|
51
|
+
function NamedNodesArray (values)
|
|
51
52
|
{
|
|
52
|
-
|
|
53
|
+
const proxy = X3DInfoArray .call (this);
|
|
54
|
+
|
|
55
|
+
if (values)
|
|
56
|
+
{
|
|
57
|
+
for (const value of values)
|
|
58
|
+
{
|
|
59
|
+
if (!(value instanceof X3DBaseNode))
|
|
60
|
+
throw new TypeError (`Wrong type in construction of ${this .getTypeName ()}.`);
|
|
61
|
+
|
|
62
|
+
this .add (value .getName (), value);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return proxy;
|
|
53
67
|
}
|
|
54
68
|
|
|
55
69
|
NamedNodesArray .prototype = Object .assign (Object .create (X3DInfoArray .prototype),
|
|
@@ -940,65 +940,59 @@ X3DExecutionContext .prototype = Object .assign (Object .create (X3DBaseNode .pr
|
|
|
940
940
|
for (const key of Reflect .ownKeys (X3DExecutionContext .prototype))
|
|
941
941
|
Object .defineProperty (X3DExecutionContext .prototype, key, { enumerable: false });
|
|
942
942
|
|
|
943
|
-
Object .
|
|
943
|
+
Object .defineProperties (X3DExecutionContext .prototype,
|
|
944
944
|
{
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
{
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
{
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
});
|
|
997
|
-
|
|
998
|
-
Object .defineProperty (X3DExecutionContext .prototype, "routes",
|
|
999
|
-
{
|
|
1000
|
-
get: X3DExecutionContext .prototype .getRoutes,
|
|
1001
|
-
enumerable: true,
|
|
945
|
+
specificationVersion:
|
|
946
|
+
{
|
|
947
|
+
get: X3DExecutionContext .prototype .getSpecificationVersion,
|
|
948
|
+
enumerable: true,
|
|
949
|
+
},
|
|
950
|
+
encoding:
|
|
951
|
+
{
|
|
952
|
+
get: X3DExecutionContext .prototype .getEncoding,
|
|
953
|
+
enumerable: true,
|
|
954
|
+
},
|
|
955
|
+
profile:
|
|
956
|
+
{
|
|
957
|
+
get: X3DExecutionContext .prototype .getProfile,
|
|
958
|
+
enumerable: true,
|
|
959
|
+
},
|
|
960
|
+
components:
|
|
961
|
+
{
|
|
962
|
+
get: X3DExecutionContext .prototype .getComponents,
|
|
963
|
+
enumerable: true,
|
|
964
|
+
},
|
|
965
|
+
worldURL:
|
|
966
|
+
{
|
|
967
|
+
get: X3DExecutionContext .prototype .getWorldURL,
|
|
968
|
+
enumerable: true,
|
|
969
|
+
},
|
|
970
|
+
units:
|
|
971
|
+
{
|
|
972
|
+
get: X3DExecutionContext .prototype .getUnits,
|
|
973
|
+
enumerable: true,
|
|
974
|
+
},
|
|
975
|
+
rootNodes:
|
|
976
|
+
{
|
|
977
|
+
get: X3DExecutionContext .prototype .getRootNodes,
|
|
978
|
+
set: X3DExecutionContext .prototype .setRootNodes,
|
|
979
|
+
enumerable: true,
|
|
980
|
+
},
|
|
981
|
+
protos:
|
|
982
|
+
{
|
|
983
|
+
get: X3DExecutionContext .prototype .getProtoDeclarations,
|
|
984
|
+
enumerable: true,
|
|
985
|
+
},
|
|
986
|
+
externprotos:
|
|
987
|
+
{
|
|
988
|
+
get: X3DExecutionContext .prototype .getExternProtoDeclarations,
|
|
989
|
+
enumerable: true,
|
|
990
|
+
},
|
|
991
|
+
routes:
|
|
992
|
+
{
|
|
993
|
+
get: X3DExecutionContext .prototype .getRoutes,
|
|
994
|
+
enumerable: true,
|
|
995
|
+
},
|
|
1002
996
|
});
|
|
1003
997
|
|
|
1004
998
|
export default X3DExecutionContext;
|
|
@@ -170,22 +170,24 @@ X3DExportedNode .prototype = Object .assign (Object .create (X3DObject .prototyp
|
|
|
170
170
|
for (const key of Reflect .ownKeys (X3DExportedNode .prototype))
|
|
171
171
|
Object .defineProperty (X3DExportedNode .prototype, key, { enumerable: false });
|
|
172
172
|
|
|
173
|
-
Object .
|
|
173
|
+
Object .defineProperties (X3DExportedNode .prototype,
|
|
174
174
|
{
|
|
175
|
-
|
|
175
|
+
exportedName:
|
|
176
176
|
{
|
|
177
|
-
|
|
177
|
+
get: function ()
|
|
178
|
+
{
|
|
179
|
+
return SFNodeCache .get (this [_exportedName]);
|
|
180
|
+
},
|
|
181
|
+
enumerable: true,
|
|
178
182
|
},
|
|
179
|
-
|
|
180
|
-
});
|
|
181
|
-
|
|
182
|
-
Object .defineProperty (X3DExportedNode .prototype, "localNode",
|
|
183
|
-
{
|
|
184
|
-
get: function ()
|
|
183
|
+
localNode:
|
|
185
184
|
{
|
|
186
|
-
|
|
185
|
+
get: function ()
|
|
186
|
+
{
|
|
187
|
+
return SFNodeCache .get (this [_localNode]);
|
|
188
|
+
},
|
|
189
|
+
enumerable: true,
|
|
187
190
|
},
|
|
188
|
-
enumerable: true,
|
|
189
191
|
});
|
|
190
192
|
|
|
191
193
|
export default X3DExportedNode;
|
|
@@ -513,40 +513,40 @@ X3DImportedNode .prototype = Object .assign (Object .create (X3DNode .prototype)
|
|
|
513
513
|
for (const key of Reflect .ownKeys (X3DImportedNode .prototype))
|
|
514
514
|
Object .defineProperty (X3DImportedNode .prototype, key, { enumerable: false });
|
|
515
515
|
|
|
516
|
-
Object .
|
|
516
|
+
Object .defineProperties (X3DImportedNode .prototype,
|
|
517
517
|
{
|
|
518
|
-
|
|
518
|
+
inlineNode:
|
|
519
519
|
{
|
|
520
|
-
|
|
520
|
+
get: function ()
|
|
521
|
+
{
|
|
522
|
+
return SFNodeCache .get (this [_inlineNode]);
|
|
523
|
+
},
|
|
524
|
+
enumerable: true,
|
|
521
525
|
},
|
|
522
|
-
|
|
523
|
-
});
|
|
524
|
-
|
|
525
|
-
Object .defineProperty (X3DImportedNode .prototype, "exportedName",
|
|
526
|
-
{
|
|
527
|
-
get: function ()
|
|
526
|
+
exportedName:
|
|
528
527
|
{
|
|
529
|
-
|
|
528
|
+
get: function ()
|
|
529
|
+
{
|
|
530
|
+
return this [_exportedName];
|
|
531
|
+
},
|
|
532
|
+
enumerable: true,
|
|
530
533
|
},
|
|
531
|
-
|
|
532
|
-
});
|
|
533
|
-
|
|
534
|
-
Object .defineProperty (X3DImportedNode .prototype, "exportedNode",
|
|
535
|
-
{
|
|
536
|
-
get: function ()
|
|
534
|
+
exportedNode:
|
|
537
535
|
{
|
|
538
|
-
|
|
536
|
+
get: function ()
|
|
537
|
+
{
|
|
538
|
+
return this [_inlineNode] .getInternalScene () .getExportedNode (this [_exportedName]);
|
|
539
|
+
},
|
|
540
|
+
enumerable: true,
|
|
539
541
|
},
|
|
540
|
-
|
|
541
|
-
});
|
|
542
|
-
|
|
543
|
-
Object .defineProperty (X3DImportedNode .prototype, "importedName",
|
|
544
|
-
{
|
|
545
|
-
get: function ()
|
|
542
|
+
importedName:
|
|
546
543
|
{
|
|
547
|
-
|
|
544
|
+
get: function ()
|
|
545
|
+
{
|
|
546
|
+
return this [_importedName];
|
|
547
|
+
},
|
|
548
|
+
enumerable: true,
|
|
548
549
|
},
|
|
549
|
-
enumerable: true,
|
|
550
550
|
});
|
|
551
551
|
|
|
552
552
|
export default X3DImportedNode;
|