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.
Files changed (112) hide show
  1. package/.vscode/tasks.json +1 -1
  2. package/build/bin/bump.pl +2 -0
  3. package/dist/assets/components/Annotation.js +13 -13
  4. package/dist/assets/components/Annotation.min.js +1 -1
  5. package/dist/assets/components/CADGeometry.js +13 -13
  6. package/dist/assets/components/CADGeometry.min.js +1 -1
  7. package/dist/assets/components/CubeMapTexturing.js +25 -25
  8. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  9. package/dist/assets/components/DIS.js +13 -13
  10. package/dist/assets/components/DIS.min.js +1 -1
  11. package/dist/assets/components/EventUtilities.js +9 -9
  12. package/dist/assets/components/EventUtilities.min.js +1 -1
  13. package/dist/assets/components/Geometry2D.js +19 -19
  14. package/dist/assets/components/Geometry2D.min.js +1 -1
  15. package/dist/assets/components/Geospatial.js +33 -33
  16. package/dist/assets/components/Geospatial.min.js +1 -1
  17. package/dist/assets/components/HAnim.js +18 -18
  18. package/dist/assets/components/HAnim.min.js +1 -1
  19. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  20. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  21. package/dist/assets/components/Layout.js +36 -31
  22. package/dist/assets/components/Layout.min.js +1 -1
  23. package/dist/assets/components/NURBS.js +24 -24
  24. package/dist/assets/components/NURBS.min.js +1 -1
  25. package/dist/assets/components/ParticleSystems.js +22 -22
  26. package/dist/assets/components/ParticleSystems.min.js +1 -1
  27. package/dist/assets/components/Picking.js +20 -20
  28. package/dist/assets/components/Picking.min.js +1 -1
  29. package/dist/assets/components/RigidBodyPhysics.js +18 -18
  30. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  31. package/dist/assets/components/Scripting.js +28 -28
  32. package/dist/assets/components/Scripting.min.js +1 -1
  33. package/dist/assets/components/Text.js +24 -24
  34. package/dist/assets/components/Text.min.js +1 -1
  35. package/dist/assets/components/TextureProjector.js +14 -14
  36. package/dist/assets/components/TextureProjector.min.js +1 -1
  37. package/dist/assets/components/Texturing3D.js +31 -31
  38. package/dist/assets/components/Texturing3D.min.js +1 -1
  39. package/dist/assets/components/VolumeRendering.js +19 -19
  40. package/dist/assets/components/VolumeRendering.min.js +1 -1
  41. package/dist/assets/components/X_ITE.js +9 -9
  42. package/dist/assets/components/X_ITE.min.js +1 -1
  43. package/dist/x_ite.css +1 -1
  44. package/dist/x_ite.js +1297 -1436
  45. package/dist/x_ite.min.js +1 -1
  46. package/dist/x_ite.zip +0 -0
  47. package/docs/_config.yml +1 -1
  48. package/docs/_posts/reference/field-services-and-objects.md +27 -7
  49. package/package.json +2 -2
  50. package/src/standard/Math/Algorithms/eigen_decomposition.js +9 -9
  51. package/src/standard/Math/Geometry/Box2.js +20 -20
  52. package/src/standard/Math/Geometry/Box3.js +20 -20
  53. package/src/standard/Math/Numbers/Color3.js +10 -18
  54. package/src/standard/Math/Numbers/Color4.js +12 -23
  55. package/src/standard/Math/Numbers/Complex.js +59 -54
  56. package/src/standard/Math/Numbers/Matrix2.js +31 -45
  57. package/src/standard/Math/Numbers/Matrix3.js +59 -94
  58. package/src/standard/Math/Numbers/Matrix4.js +73 -114
  59. package/src/standard/Math/Numbers/Quaternion.js +49 -65
  60. package/src/standard/Math/Numbers/Rotation4.js +15 -13
  61. package/src/standard/Math/Numbers/Vector2.js +12 -14
  62. package/src/standard/Math/Numbers/Vector3.js +17 -22
  63. package/src/standard/Math/Numbers/Vector4.js +22 -30
  64. package/src/x_ite/Base/FieldArray.js +3 -2
  65. package/src/x_ite/Base/FieldDefinitionArray.js +3 -2
  66. package/src/x_ite/Base/X3DArrayField.js +27 -3
  67. package/src/x_ite/Base/X3DInfoArray.js +73 -14
  68. package/src/x_ite/Base/X3DObject.js +5 -0
  69. package/src/x_ite/Browser/Core/X3DCoreContext.js +3 -3
  70. package/src/x_ite/Browser/Layout/ScreenText.js +9 -4
  71. package/src/x_ite/Browser/VERSION.js +1 -1
  72. package/src/x_ite/Browser/X3DBrowser.js +60 -67
  73. package/src/x_ite/Browser/X3DBrowserContext.js +8 -8
  74. package/src/x_ite/Components/Core/X3DPrototypeInstance.js +4 -4
  75. package/src/x_ite/Components/Layering/X3DLayerNode.js +1 -1
  76. package/src/x_ite/Components/Navigation/X3DViewpointNode.js +2 -3
  77. package/src/x_ite/Components/Picking/X3DPickSensorNode.js +2 -2
  78. package/src/x_ite/Configuration/ComponentInfoArray.js +2 -2
  79. package/src/x_ite/Configuration/ProfileInfoArray.js +2 -2
  80. package/src/x_ite/Configuration/UnitInfoArray.js +15 -1
  81. package/src/x_ite/Execution/BindableList.js +1 -1
  82. package/src/x_ite/Execution/ExportedNodesArray.js +4 -3
  83. package/src/x_ite/Execution/ImportedNodesArray.js +4 -3
  84. package/src/x_ite/Execution/NamedNodesArray.js +16 -2
  85. package/src/x_ite/Execution/X3DExecutionContext.js +52 -58
  86. package/src/x_ite/Execution/X3DExportedNode.js +13 -11
  87. package/src/x_ite/Execution/X3DImportedNode.js +25 -25
  88. package/src/x_ite/Execution/X3DScene.js +130 -54
  89. package/src/x_ite/Fields/SFColor.js +10 -15
  90. package/src/x_ite/Fields/SFColorRGBA.js +11 -18
  91. package/src/x_ite/Fields/SFImage.js +38 -33
  92. package/src/x_ite/Fields/SFMatrix3.js +1 -3
  93. package/src/x_ite/Fields/SFMatrix4.js +1 -5
  94. package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +6 -5
  95. package/src/x_ite/Fields/SFNode.js +1 -1
  96. package/src/x_ite/Fields/SFRotation.js +14 -21
  97. package/src/x_ite/Fields/SFString.js +0 -1
  98. package/src/x_ite/Fields/SFVec2.js +8 -15
  99. package/src/x_ite/Fields/SFVec3.js +10 -17
  100. package/src/x_ite/Fields/SFVec4.js +12 -23
  101. package/src/x_ite/Fields/SFVecPrototypeTemplate.js +15 -14
  102. package/src/x_ite/InputOutput/FileLoader.js +2 -2
  103. package/src/x_ite/Parser/SVGParser.js +2 -2
  104. package/src/x_ite/Parser/X3DOptimizer.js +1 -1
  105. package/src/x_ite/Parser/XMLParser.js +18 -18
  106. package/src/x_ite/Prototype/ExternProtoDeclarationArray.js +3 -2
  107. package/src/x_ite/Prototype/ProtoDeclarationArray.js +4 -3
  108. package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +26 -27
  109. package/src/x_ite/Prototype/X3DProtoDeclaration.js +16 -15
  110. package/src/x_ite/Routing/RouteArray.js +3 -2
  111. package/src/x_ite/Routing/X3DRoute.js +26 -25
  112. package/src/x_ite/Execution/Scene.js +0 -145
@@ -76,6 +76,7 @@ function X3DRoute (executionContext, sourceNode, sourceField, destinationNode, d
76
76
 
77
77
  X3DRoute .prototype = Object .assign (Object .create (X3DObject .prototype),
78
78
  {
79
+ constructor: X3DRoute,
79
80
  getTypeName: function ()
80
81
  {
81
82
  return "X3DRoute";
@@ -260,40 +261,40 @@ X3DRoute .prototype = Object .assign (Object .create (X3DObject .prototype),
260
261
  for (const key of Reflect .ownKeys (X3DRoute .prototype))
261
262
  Object .defineProperty (X3DRoute .prototype, key, { enumerable: false });
262
263
 
263
- Object .defineProperty (X3DRoute .prototype, "sourceNode",
264
+ Object .defineProperties (X3DRoute .prototype,
264
265
  {
265
- get: function ()
266
+ sourceNode:
266
267
  {
267
- return SFNodeCache .get (this [_sourceNode]);
268
+ get: function ()
269
+ {
270
+ return SFNodeCache .get (this [_sourceNode]);
271
+ },
272
+ enumerable: true,
268
273
  },
269
- enumerable: true,
270
- });
271
-
272
- Object .defineProperty (X3DRoute .prototype, "sourceField",
273
- {
274
- get: function ()
274
+ sourceField:
275
275
  {
276
- return this [_sourceField] .getName ();
276
+ get: function ()
277
+ {
278
+ return this [_sourceField] .getName ();
279
+ },
280
+ enumerable: true,
277
281
  },
278
- enumerable: true,
279
- });
280
-
281
- Object .defineProperty (X3DRoute .prototype, "destinationNode",
282
- {
283
- get: function ()
282
+ destinationNode:
284
283
  {
285
- return SFNodeCache .get (this [_destinationNode]);
284
+ get: function ()
285
+ {
286
+ return SFNodeCache .get (this [_destinationNode]);
287
+ },
288
+ enumerable: true,
286
289
  },
287
- enumerable: true,
288
- });
289
-
290
- Object .defineProperty (X3DRoute .prototype, "destinationField",
291
- {
292
- get: function ()
290
+ destinationField:
293
291
  {
294
- return this [_destinationField] .getName ();
292
+ get: function ()
293
+ {
294
+ return this [_destinationField] .getName ();
295
+ },
296
+ enumerable: true,
295
297
  },
296
- enumerable: true,
297
298
  });
298
299
 
299
300
  export default X3DRoute;
@@ -1,145 +0,0 @@
1
- /*******************************************************************************
2
- *
3
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
- *
5
- * Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
6
- *
7
- * All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
8
- *
9
- * The copyright notice above does not evidence any actual of intended
10
- * publication of such source code, and is an unpublished work by create3000.
11
- * This material contains CONFIDENTIAL INFORMATION that is the property of
12
- * create3000.
13
- *
14
- * No permission is granted to copy, distribute, or create derivative works from
15
- * the contents of this software, in whole or in part, without the prior written
16
- * permission of create3000.
17
- *
18
- * NON-MILITARY USE ONLY
19
- *
20
- * All create3000 software are effectively free software with a non-military use
21
- * restriction. It is free. Well commented source is provided. You may reuse the
22
- * source in any way you please with the exception anything that uses it must be
23
- * marked to indicate is contains 'non-military use only' components.
24
- *
25
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
26
- *
27
- * Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
28
- *
29
- * This file is part of the X_ITE Project.
30
- *
31
- * X_ITE is free software: you can redistribute it and/or modify it under the
32
- * terms of the GNU General Public License version 3 only, as published by the
33
- * Free Software Foundation.
34
- *
35
- * X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
36
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
37
- * A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
38
- * details (a copy is included in the LICENSE file that accompanied this code).
39
- *
40
- * You should have received a copy of the GNU General Public License version 3
41
- * along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
42
- * copy of the GPLv3 License.
43
- *
44
- * For Silvio, Joy and Adi.
45
- *
46
- ******************************************************************************/
47
-
48
- import Fields from "../Fields.js";
49
- import X3DScene from "./X3DScene.js";
50
-
51
- const
52
- _browser = Symbol .for ("X_ITE.X3DEventObject.browser"),
53
- _loadingObjects = Symbol ();
54
-
55
- function Scene (browser)
56
- {
57
- this [_browser] = browser;
58
-
59
- X3DScene .call (this, this);
60
-
61
- this .addChildObjects ("initLoadCount", new Fields .SFInt32 (), // Pre load count, must be zero before the scene can be passed to the requester.
62
- "loadCount", new Fields .SFInt32 ()); // Load count of all X3DUrlObjects.
63
-
64
- this [_loadingObjects] = new Set ();
65
- }
66
-
67
- Scene .prototype = Object .assign (Object .create (X3DScene .prototype),
68
- {
69
- constructor: Scene,
70
- setExecutionContext: function (value)
71
- {
72
- if (! this .isMainScene ())
73
- {
74
- const scene = this .getScene ();
75
-
76
- for (const object of this [_loadingObjects])
77
- scene .removeLoadingObject (object);
78
- }
79
-
80
- X3DScene .prototype .setExecutionContext .call (this, value);
81
-
82
- if (! this .isMainScene ())
83
- {
84
- const scene = this .getScene ();
85
-
86
- for (const object of this [_loadingObjects])
87
- scene .addLoadingObject (object);
88
- }
89
- },
90
- addInitLoadCount: function (node)
91
- {
92
- this ._initLoadCount = this ._initLoadCount .getValue () + 1;
93
- },
94
- removeInitLoadCount: function (node)
95
- {
96
- this ._initLoadCount = this ._initLoadCount .getValue () - 1;
97
- },
98
- getLoadingObjects: function ()
99
- {
100
- return this [_loadingObjects];
101
- },
102
- addLoadingObject: function (node)
103
- {
104
- if (this [_loadingObjects] .has (node))
105
- return;
106
-
107
- this [_loadingObjects] .add (node);
108
-
109
- this ._loadCount = this [_loadingObjects] .size;
110
-
111
- const
112
- browser = this .getBrowser (),
113
- scene = this .getScene ();
114
-
115
- if (this === browser .getExecutionContext () || this .loader === browser .loader)
116
- browser .addLoadingObject (node);
117
-
118
- if (! this .isMainScene ())
119
- scene .addLoadingObject (node);
120
- },
121
- removeLoadingObject: function (node)
122
- {
123
- if (!this [_loadingObjects] .has (node))
124
- return;
125
-
126
- this [_loadingObjects] .delete (node);
127
-
128
- this ._loadCount = this [_loadingObjects] .size;
129
-
130
- const
131
- browser = this .getBrowser (),
132
- scene = this .getScene ();
133
-
134
- if (this === browser .getExecutionContext () || this .loader === browser .loader)
135
- browser .removeLoadingObject (node);
136
-
137
- if (! this .isMainScene ())
138
- scene .removeLoadingObject (node);
139
- },
140
- });
141
-
142
- for (const key of Reflect .ownKeys (Scene .prototype))
143
- Object .defineProperty (Scene .prototype, key, { enumerable: false });
144
-
145
- export default Scene;