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
|
@@ -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 .
|
|
264
|
+
Object .defineProperties (X3DRoute .prototype,
|
|
264
265
|
{
|
|
265
|
-
|
|
266
|
+
sourceNode:
|
|
266
267
|
{
|
|
267
|
-
|
|
268
|
+
get: function ()
|
|
269
|
+
{
|
|
270
|
+
return SFNodeCache .get (this [_sourceNode]);
|
|
271
|
+
},
|
|
272
|
+
enumerable: true,
|
|
268
273
|
},
|
|
269
|
-
|
|
270
|
-
});
|
|
271
|
-
|
|
272
|
-
Object .defineProperty (X3DRoute .prototype, "sourceField",
|
|
273
|
-
{
|
|
274
|
-
get: function ()
|
|
274
|
+
sourceField:
|
|
275
275
|
{
|
|
276
|
-
|
|
276
|
+
get: function ()
|
|
277
|
+
{
|
|
278
|
+
return this [_sourceField] .getName ();
|
|
279
|
+
},
|
|
280
|
+
enumerable: true,
|
|
277
281
|
},
|
|
278
|
-
|
|
279
|
-
});
|
|
280
|
-
|
|
281
|
-
Object .defineProperty (X3DRoute .prototype, "destinationNode",
|
|
282
|
-
{
|
|
283
|
-
get: function ()
|
|
282
|
+
destinationNode:
|
|
284
283
|
{
|
|
285
|
-
|
|
284
|
+
get: function ()
|
|
285
|
+
{
|
|
286
|
+
return SFNodeCache .get (this [_destinationNode]);
|
|
287
|
+
},
|
|
288
|
+
enumerable: true,
|
|
286
289
|
},
|
|
287
|
-
|
|
288
|
-
});
|
|
289
|
-
|
|
290
|
-
Object .defineProperty (X3DRoute .prototype, "destinationField",
|
|
291
|
-
{
|
|
292
|
-
get: function ()
|
|
290
|
+
destinationField:
|
|
293
291
|
{
|
|
294
|
-
|
|
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;
|