x_ite 8.7.4 → 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.
Files changed (92) hide show
  1. package/.vscode/tasks.json +1 -1
  2. package/dist/assets/components/Annotation.js +13 -13
  3. package/dist/assets/components/Annotation.min.js +1 -1
  4. package/dist/assets/components/CADGeometry.js +13 -13
  5. package/dist/assets/components/CADGeometry.min.js +1 -1
  6. package/dist/assets/components/CubeMapTexturing.js +25 -25
  7. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  8. package/dist/assets/components/DIS.js +13 -13
  9. package/dist/assets/components/DIS.min.js +1 -1
  10. package/dist/assets/components/EventUtilities.js +9 -9
  11. package/dist/assets/components/EventUtilities.min.js +1 -1
  12. package/dist/assets/components/Geometry2D.js +19 -19
  13. package/dist/assets/components/Geometry2D.min.js +1 -1
  14. package/dist/assets/components/Geospatial.js +33 -33
  15. package/dist/assets/components/Geospatial.min.js +1 -1
  16. package/dist/assets/components/HAnim.js +18 -18
  17. package/dist/assets/components/HAnim.min.js +1 -1
  18. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  19. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  20. package/dist/assets/components/Layout.js +36 -31
  21. package/dist/assets/components/Layout.min.js +1 -1
  22. package/dist/assets/components/NURBS.js +24 -24
  23. package/dist/assets/components/NURBS.min.js +1 -1
  24. package/dist/assets/components/ParticleSystems.js +22 -22
  25. package/dist/assets/components/ParticleSystems.min.js +1 -1
  26. package/dist/assets/components/Picking.js +18 -18
  27. package/dist/assets/components/Picking.min.js +1 -1
  28. package/dist/assets/components/RigidBodyPhysics.js +18 -18
  29. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  30. package/dist/assets/components/Scripting.js +28 -28
  31. package/dist/assets/components/Scripting.min.js +1 -1
  32. package/dist/assets/components/Text.js +24 -24
  33. package/dist/assets/components/Text.min.js +1 -1
  34. package/dist/assets/components/TextureProjector.js +14 -14
  35. package/dist/assets/components/TextureProjector.min.js +1 -1
  36. package/dist/assets/components/Texturing3D.js +30 -30
  37. package/dist/assets/components/Texturing3D.min.js +1 -1
  38. package/dist/assets/components/VolumeRendering.js +19 -19
  39. package/dist/assets/components/VolumeRendering.min.js +1 -1
  40. package/dist/assets/components/X_ITE.js +9 -9
  41. package/dist/assets/components/X_ITE.min.js +1 -1
  42. package/dist/x_ite.css +1 -1
  43. package/dist/x_ite.js +903 -1163
  44. package/dist/x_ite.min.js +1 -1
  45. package/dist/x_ite.zip +0 -0
  46. package/docs/_config.yml +1 -1
  47. package/docs/_posts/reference/field-services-and-objects.md +26 -6
  48. package/package.json +1 -1
  49. package/src/standard/Math/Algorithms/eigen_decomposition.js +9 -9
  50. package/src/standard/Math/Geometry/Box2.js +20 -20
  51. package/src/standard/Math/Geometry/Box3.js +20 -20
  52. package/src/standard/Math/Numbers/Color3.js +10 -18
  53. package/src/standard/Math/Numbers/Color4.js +12 -23
  54. package/src/standard/Math/Numbers/Complex.js +59 -54
  55. package/src/standard/Math/Numbers/Matrix2.js +31 -45
  56. package/src/standard/Math/Numbers/Matrix3.js +59 -94
  57. package/src/standard/Math/Numbers/Matrix4.js +73 -114
  58. package/src/standard/Math/Numbers/Quaternion.js +49 -65
  59. package/src/standard/Math/Numbers/Rotation4.js +15 -13
  60. package/src/standard/Math/Numbers/Vector2.js +12 -14
  61. package/src/standard/Math/Numbers/Vector3.js +17 -22
  62. package/src/standard/Math/Numbers/Vector4.js +22 -30
  63. package/src/x_ite/Base/X3DInfoArray.js +9 -7
  64. package/src/x_ite/Browser/Core/X3DCoreContext.js +3 -3
  65. package/src/x_ite/Browser/Layout/ScreenText.js +9 -4
  66. package/src/x_ite/Browser/VERSION.js +1 -1
  67. package/src/x_ite/Browser/X3DBrowser.js +57 -64
  68. package/src/x_ite/Browser/X3DBrowserContext.js +8 -8
  69. package/src/x_ite/Components/Layering/X3DLayerNode.js +1 -1
  70. package/src/x_ite/Components/Navigation/X3DViewpointNode.js +2 -3
  71. package/src/x_ite/Execution/X3DExecutionContext.js +52 -58
  72. package/src/x_ite/Execution/X3DExportedNode.js +13 -11
  73. package/src/x_ite/Execution/X3DImportedNode.js +25 -25
  74. package/src/x_ite/Execution/X3DScene.js +129 -53
  75. package/src/x_ite/Fields/SFColor.js +10 -15
  76. package/src/x_ite/Fields/SFColorRGBA.js +11 -18
  77. package/src/x_ite/Fields/SFImage.js +38 -33
  78. package/src/x_ite/Fields/SFMatrix3.js +1 -3
  79. package/src/x_ite/Fields/SFMatrix4.js +1 -5
  80. package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +6 -5
  81. package/src/x_ite/Fields/SFRotation.js +14 -21
  82. package/src/x_ite/Fields/SFString.js +0 -1
  83. package/src/x_ite/Fields/SFVec2.js +8 -15
  84. package/src/x_ite/Fields/SFVec3.js +10 -17
  85. package/src/x_ite/Fields/SFVec4.js +12 -23
  86. package/src/x_ite/Fields/SFVecPrototypeTemplate.js +15 -14
  87. package/src/x_ite/Parser/SVGParser.js +2 -2
  88. package/src/x_ite/Parser/X3DOptimizer.js +1 -1
  89. package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +26 -27
  90. package/src/x_ite/Prototype/X3DProtoDeclaration.js +16 -15
  91. package/src/x_ite/Routing/X3DRoute.js +26 -25
  92. package/src/x_ite/Execution/Scene.js +0 -145
@@ -54,7 +54,6 @@ function Vector2 (x, y)
54
54
  Vector2 .prototype =
55
55
  {
56
56
  constructor: Vector2,
57
- length: 2,
58
57
  [Symbol .iterator]: function* ()
59
58
  {
60
59
  yield this .x;
@@ -214,20 +213,19 @@ Vector2 .prototype =
214
213
  }
215
214
  };
216
215
 
217
- Object .defineProperty (Vector2 .prototype, "0",
216
+ Object .defineProperties (Vector2 .prototype,
218
217
  {
219
- get: function () { return this .x; },
220
- set: function (value) { this .x = value; },
221
- enumerable: false,
222
- configurable: false
223
- });
224
-
225
- Object .defineProperty (Vector2 .prototype, "1",
226
- {
227
- get: function () { return this .y; },
228
- set: function (value) { this .y = value; },
229
- enumerable: false,
230
- configurable: false
218
+ length: { value: 2 },
219
+ 0:
220
+ {
221
+ get: function () { return this .x; },
222
+ set: function (value) { this .x = value; },
223
+ },
224
+ 1:
225
+ {
226
+ get: function () { return this .y; },
227
+ set: function (value) { this .y = value; },
228
+ },
231
229
  });
232
230
 
233
231
  Object .assign (Vector2,
@@ -57,7 +57,6 @@ function Vector3 (x, y, z)
57
57
  Vector3 .prototype =
58
58
  {
59
59
  constructor: Vector3,
60
- length: 3,
61
60
  [Symbol .iterator]: function* ()
62
61
  {
63
62
  yield this .x;
@@ -262,28 +261,24 @@ Vector3 .prototype =
262
261
  }
263
262
  };
264
263
 
265
- Object .defineProperty (Vector3 .prototype, "0",
264
+ Object .defineProperties (Vector3 .prototype,
266
265
  {
267
- get: function () { return this .x; },
268
- set: function (value) { this .x = value; },
269
- enumerable: false,
270
- configurable: false
271
- });
272
-
273
- Object .defineProperty (Vector3 .prototype, "1",
274
- {
275
- get: function () { return this .y; },
276
- set: function (value) { this .y = value; },
277
- enumerable: false,
278
- configurable: false
279
- });
280
-
281
- Object .defineProperty (Vector3 .prototype, "2",
282
- {
283
- get: function () { return this .z; },
284
- set: function (value) { this .z = value; },
285
- enumerable: false,
286
- configurable: false
266
+ length: { value: 3 },
267
+ 0:
268
+ {
269
+ get: function () { return this .x; },
270
+ set: function (value) { this .x = value; },
271
+ },
272
+ 1:
273
+ {
274
+ get: function () { return this .y; },
275
+ set: function (value) { this .y = value; },
276
+ },
277
+ 2:
278
+ {
279
+ get: function () { return this .z; },
280
+ set: function (value) { this .z = value; },
281
+ },
287
282
  });
288
283
 
289
284
  Object .assign (Vector3,
@@ -56,7 +56,6 @@ function Vector4 (x, y, z, w)
56
56
  Vector4 .prototype =
57
57
  {
58
58
  constructor: Vector4,
59
- length: 4,
60
59
  [Symbol .iterator]: function* ()
61
60
  {
62
61
  yield this .x;
@@ -271,36 +270,29 @@ Vector4 .prototype =
271
270
  },
272
271
  };
273
272
 
274
- Object .defineProperty (Vector4 .prototype, "0",
273
+ Object .defineProperties (Vector4 .prototype,
275
274
  {
276
- get: function () { return this .x; },
277
- set: function (value) { this .x = value; },
278
- enumerable: false,
279
- configurable: false
280
- });
281
-
282
- Object .defineProperty (Vector4 .prototype, "1",
283
- {
284
- get: function () { return this .y; },
285
- set: function (value) { this .y = value; },
286
- enumerable: false,
287
- configurable: false
288
- });
289
-
290
- Object .defineProperty (Vector4 .prototype, "2",
291
- {
292
- get: function () { return this .z; },
293
- set: function (value) { this .z = value; },
294
- enumerable: false,
295
- configurable: false
296
- });
297
-
298
- Object .defineProperty (Vector4 .prototype, "3",
299
- {
300
- get: function () { return this .w; },
301
- set: function (value) { this .w = value; },
302
- enumerable: false,
303
- configurable: false
275
+ length: { value: 4 },
276
+ 0:
277
+ {
278
+ get: function () { return this .x; },
279
+ set: function (value) { this .x = value; },
280
+ },
281
+ 1:
282
+ {
283
+ get: function () { return this .y; },
284
+ set: function (value) { this .y = value; },
285
+ },
286
+ 2:
287
+ {
288
+ get: function () { return this .z; },
289
+ set: function (value) { this .z = value; },
290
+ },
291
+ 3:
292
+ {
293
+ get: function () { return this .w; },
294
+ set: function (value) { this .w = value; },
295
+ },
304
296
  });
305
297
 
306
298
  Object .assign (Vector4,
@@ -356,14 +356,16 @@ X3DInfoArray .prototype = {
356
356
  for (const key of Reflect .ownKeys (X3DInfoArray .prototype))
357
357
  Object .defineProperty (X3DInfoArray .prototype, key, { enumerable: false });
358
358
 
359
- Object .defineProperty (X3DInfoArray .prototype, "length",
359
+ Object .defineProperties (X3DInfoArray .prototype,
360
360
  {
361
- get: function () { return this [_array] .length; },
362
- });
363
-
364
- Object .defineProperty (X3DInfoArray .prototype, Symbol .toStringTag,
365
- {
366
- get: function () { return this .getTypeName (); },
361
+ length:
362
+ {
363
+ get: function () { return this [_array] .length; },
364
+ },
365
+ [Symbol .toStringTag]:
366
+ {
367
+ get: function () { return this .getTypeName (); },
368
+ },
367
369
  });
368
370
 
369
371
  export default X3DInfoArray;
@@ -54,7 +54,7 @@ import RenderingProperties from "./RenderingProperties.js";
54
54
  import Notification from "./Notification.js";
55
55
  import ContextMenu from "./ContextMenu.js";
56
56
  import URLs from "../Networking/URLs.js";
57
- import Scene from "../../Execution/Scene.js";
57
+ import X3DScene from "../../Execution/X3DScene.js";
58
58
  import DataStorage from "../../../standard/Utility/DataStorage.js";
59
59
  import Vector3 from "../../../standard/Math/Numbers/Vector3.js";
60
60
  import _ from "../../../locale/gettext.js";
@@ -270,9 +270,9 @@ X3DCoreContext .prototype =
270
270
  if (this [_privateScene])
271
271
  return this [_privateScene];
272
272
 
273
- // Scene for default nodes.
273
+ // X3DScene for default nodes.
274
274
 
275
- this [_privateScene] = new Scene (this);
275
+ this [_privateScene] = new X3DScene (this);
276
276
 
277
277
  this [_privateScene] .setPrivate (true);
278
278
  this [_privateScene] .setLive (true);
@@ -393,11 +393,16 @@ ScreenText .prototype = Object .assign (Object .create (X3DTextGeometry .prototy
393
393
 
394
394
  renderContext .textureNode = this .textureNode;
395
395
  },
396
- transformLine: function (line)
396
+ transformLine: (function ()
397
397
  {
398
- // Apply screen nodes transformation in place here.
399
- return line .multLineMatrix (Matrix4 .inverse (this .matrix));
400
- },
398
+ const invMatrix = new Matrix4 ();
399
+
400
+ return function (line)
401
+ {
402
+ // Apply screen nodes transformation in place here.
403
+ return line .multLineMatrix (invMatrix .assign (this .matrix) .inverse ());
404
+ };
405
+ })(),
401
406
  transformMatrix: function (matrix)
402
407
  {
403
408
  // Apply screen nodes transformation in place here.
@@ -45,4 +45,4 @@
45
45
  *
46
46
  ******************************************************************************/
47
47
 
48
- export default "8.7.4";
48
+ export default "8.7.5";
@@ -57,7 +57,6 @@ import ComponentInfoArray from "../Configuration/ComponentInfoArray.js";
57
57
  import SupportedProfiles from "../Configuration/SupportedProfiles.js";
58
58
  import SupportedComponents from "../Configuration/SupportedComponents.js";
59
59
  import SupportedNodes from "../Configuration/SupportedNodes.js";
60
- import Scene from "../Execution/Scene.js";
61
60
  import X3DScene from "../Execution/X3DScene.js";
62
61
  import FileLoader from "../InputOutput/FileLoader.js";
63
62
  import XMLParser from "../Parser/XMLParser.js";
@@ -263,7 +262,7 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
263
262
  },
264
263
  createScene: function (profile, component1 /*, ...*/)
265
264
  {
266
- const scene = new Scene (this);
265
+ const scene = new X3DScene (this);
267
266
 
268
267
  if (arguments .length)
269
268
  {
@@ -849,75 +848,69 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
849
848
  for (const key of Reflect .ownKeys (X3DBrowser .prototype))
850
849
  Object .defineProperty (X3DBrowser .prototype, key, { enumerable: false });
851
850
 
852
- Object .defineProperty (X3DBrowser .prototype, "name",
851
+ Object .defineProperties (X3DBrowser .prototype,
853
852
  {
854
- get: X3DBrowser .prototype .getName,
855
- enumerable: true,
856
- });
857
-
858
- Object .defineProperty (X3DBrowser .prototype, "version",
859
- {
860
- get: X3DBrowser .prototype .getVersion,
861
- enumerable: true,
862
- });
863
-
864
- Object .defineProperty (X3DBrowser .prototype, "providerUrl",
865
- {
866
- get: X3DBrowser .prototype .getProviderUrl,
867
- enumerable: true,
868
- });
869
-
870
- Object .defineProperty (X3DBrowser .prototype, "currentFrameRate",
871
- {
872
- get: X3DBrowser .prototype .getCurrentFrameRate,
873
- enumerable: true,
874
- });
875
-
876
- Object .defineProperty (X3DBrowser .prototype, "currentSpeed",
877
- {
878
- get: X3DBrowser .prototype .getCurrentSpeed,
879
- enumerable: true,
880
- });
881
-
882
- Object .defineProperty (X3DBrowser .prototype, "description",
883
- {
884
- get: X3DBrowser .prototype .getDescription,
885
- set: X3DBrowser .prototype .setDescription,
886
- enumerable: true,
887
- });
888
-
889
- Object .defineProperty (X3DBrowser .prototype, "baseURL",
890
- {
891
- get: X3DBrowser .prototype .getBaseURL,
892
- set: X3DBrowser .prototype .setBaseURL,
893
- enumerable: true,
894
- });
895
-
896
- Object .defineProperty (X3DBrowser .prototype, "currentScene",
897
- {
898
- get: function ()
853
+ name:
899
854
  {
900
- return this .getScriptStack () .at (-1) .getExecutionContext ();
855
+ get: X3DBrowser .prototype .getName,
856
+ enumerable: true,
901
857
  },
902
- enumerable: true,
903
- });
904
-
905
- Object .defineProperty (X3DBrowser .prototype, "supportedProfiles",
906
- {
907
- get: function ()
858
+ version:
908
859
  {
909
- return SupportedProfiles;
860
+ get: X3DBrowser .prototype .getVersion,
861
+ enumerable: true,
910
862
  },
911
- enumerable: true,
912
- });
913
-
914
- Object .defineProperty (X3DBrowser .prototype, "supportedComponents",
915
- {
916
- get: function ()
863
+ providerUrl:
917
864
  {
918
- return SupportedComponents;
865
+ get: X3DBrowser .prototype .getProviderUrl,
866
+ enumerable: true,
867
+ },
868
+ currentFrameRate:
869
+ {
870
+ get: X3DBrowser .prototype .getCurrentFrameRate,
871
+ enumerable: true,
872
+ },
873
+ currentSpeed:
874
+ {
875
+ get: X3DBrowser .prototype .getCurrentSpeed,
876
+ enumerable: true,
877
+ },
878
+ description:
879
+ {
880
+ get: X3DBrowser .prototype .getDescription,
881
+ set: X3DBrowser .prototype .setDescription,
882
+ enumerable: true,
883
+ },
884
+ baseURL:
885
+ {
886
+ get: X3DBrowser .prototype .getBaseURL,
887
+ set: X3DBrowser .prototype .setBaseURL,
888
+ enumerable: true,
889
+ },
890
+ currentScene:
891
+ {
892
+ get: function ()
893
+ {
894
+ return this .getScriptStack () .at (-1) .getExecutionContext ();
895
+ },
896
+ enumerable: true,
897
+ },
898
+ supportedProfiles:
899
+ {
900
+ get: function ()
901
+ {
902
+ return SupportedProfiles;
903
+ },
904
+ enumerable: true,
905
+ },
906
+ supportedComponents:
907
+ {
908
+ get: function ()
909
+ {
910
+ return SupportedComponents;
911
+ },
912
+ enumerable: true,
919
913
  },
920
- enumerable: true,
921
914
  });
922
915
 
923
916
  export default X3DBrowser;
@@ -122,14 +122,14 @@ function X3DBrowserContext (element)
122
122
  "displayEvents", new SFTime (),
123
123
  "finishedEvents", new SFTime ());
124
124
 
125
- this [_changedTime] = 0;
126
- this [_previousTime] = 0;
127
- this [_renderCallback] = this [_traverse] .bind (this);
128
- this [_systemTime] = new StopWatch ();
129
- this [_browserTime] = new StopWatch ();
130
- this [_cameraTime] = new StopWatch ();
131
- this [_collisionTime] = new StopWatch ();
132
- this [_displayTime] = new StopWatch ();
125
+ this [_changedTime] = 0;
126
+ this [_previousTime] = 0;
127
+ this [_renderCallback] = this [_traverse] .bind (this);
128
+ this [_systemTime] = new StopWatch ();
129
+ this [_browserTime] = new StopWatch ();
130
+ this [_cameraTime] = new StopWatch ();
131
+ this [_collisionTime] = new StopWatch ();
132
+ this [_displayTime] = new StopWatch ();
133
133
  };
134
134
 
135
135
  X3DBrowserContext .prototype = Object .assign (Object .create (X3DBaseNode .prototype),
@@ -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 (Matrix4 .inverse (viewpointNode .getModelMatrix ()));
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 (Matrix4 .inverse (this .getModelMatrix ()));
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
 
@@ -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 .defineProperty (X3DExecutionContext .prototype, "specificationVersion",
943
+ Object .defineProperties (X3DExecutionContext .prototype,
944
944
  {
945
- get: X3DExecutionContext .prototype .getSpecificationVersion,
946
- enumerable: true,
947
- });
948
-
949
- Object .defineProperty (X3DExecutionContext .prototype, "encoding",
950
- {
951
- get: X3DExecutionContext .prototype .getEncoding,
952
- enumerable: true,
953
- });
954
-
955
- Object .defineProperty (X3DExecutionContext .prototype, "profile",
956
- {
957
- get: X3DExecutionContext .prototype .getProfile,
958
- enumerable: true,
959
- });
960
-
961
- Object .defineProperty (X3DExecutionContext .prototype, "components",
962
- {
963
- get: X3DExecutionContext .prototype .getComponents,
964
- enumerable: true,
965
- });
966
-
967
- Object .defineProperty (X3DExecutionContext .prototype, "worldURL",
968
- {
969
- get: X3DExecutionContext .prototype .getWorldURL,
970
- enumerable: true,
971
- });
972
-
973
- Object .defineProperty (X3DExecutionContext .prototype, "units",
974
- {
975
- get: X3DExecutionContext .prototype .getUnits,
976
- enumerable: true,
977
- });
978
-
979
- Object .defineProperty (X3DExecutionContext .prototype, "rootNodes",
980
- {
981
- get: X3DExecutionContext .prototype .getRootNodes,
982
- set: X3DExecutionContext .prototype .setRootNodes,
983
- enumerable: true,
984
- });
985
-
986
- Object .defineProperty (X3DExecutionContext .prototype, "protos",
987
- {
988
- get: X3DExecutionContext .prototype .getProtoDeclarations,
989
- enumerable: true,
990
- });
991
-
992
- Object .defineProperty (X3DExecutionContext .prototype, "externprotos",
993
- {
994
- get: X3DExecutionContext .prototype .getExternProtoDeclarations,
995
- enumerable: true,
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 .defineProperty (X3DExportedNode .prototype, "exportedName",
173
+ Object .defineProperties (X3DExportedNode .prototype,
174
174
  {
175
- get: function ()
175
+ exportedName:
176
176
  {
177
- return SFNodeCache .get (this [_exportedName]);
177
+ get: function ()
178
+ {
179
+ return SFNodeCache .get (this [_exportedName]);
180
+ },
181
+ enumerable: true,
178
182
  },
179
- enumerable: true,
180
- });
181
-
182
- Object .defineProperty (X3DExportedNode .prototype, "localNode",
183
- {
184
- get: function ()
183
+ localNode:
185
184
  {
186
- return SFNodeCache .get (this [_localNode]);
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 .defineProperty (X3DImportedNode .prototype, "inlineNode",
516
+ Object .defineProperties (X3DImportedNode .prototype,
517
517
  {
518
- get: function ()
518
+ inlineNode:
519
519
  {
520
- return SFNodeCache .get (this [_inlineNode]);
520
+ get: function ()
521
+ {
522
+ return SFNodeCache .get (this [_inlineNode]);
523
+ },
524
+ enumerable: true,
521
525
  },
522
- enumerable: true,
523
- });
524
-
525
- Object .defineProperty (X3DImportedNode .prototype, "exportedName",
526
- {
527
- get: function ()
526
+ exportedName:
528
527
  {
529
- return this [_exportedName];
528
+ get: function ()
529
+ {
530
+ return this [_exportedName];
531
+ },
532
+ enumerable: true,
530
533
  },
531
- enumerable: true,
532
- });
533
-
534
- Object .defineProperty (X3DImportedNode .prototype, "exportedNode",
535
- {
536
- get: function ()
534
+ exportedNode:
537
535
  {
538
- return this [_inlineNode] .getInternalScene () .getExportedNode (this [_exportedName]);
536
+ get: function ()
537
+ {
538
+ return this [_inlineNode] .getInternalScene () .getExportedNode (this [_exportedName]);
539
+ },
540
+ enumerable: true,
539
541
  },
540
- enumerable: true,
541
- });
542
-
543
- Object .defineProperty (X3DImportedNode .prototype, "importedName",
544
- {
545
- get: function ()
542
+ importedName:
546
543
  {
547
- return this [_importedName];
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;