x_ite 8.6.22 → 8.6.24
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 +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 +27 -27
- 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 +18 -18
- 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 +30 -30
- 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/example.html +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +147 -102
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/package.json +1 -1
- package/src/example.html +1 -1
- package/src/x_ite/Base/X3DBaseNode.js +2 -1
- package/src/x_ite/Base/X3DFieldDefinition.js +7 -4
- package/src/x_ite/Browser/Time/X3DTimeContext.js +1 -5
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +6 -3
- package/src/x_ite/Browser/X3DBrowserContext.js +0 -4
- package/src/x_ite/Configuration/ComponentInfo.js +7 -4
- package/src/x_ite/Configuration/ProfileInfo.js +7 -4
- package/src/x_ite/Configuration/UnitInfo.js +5 -5
- package/src/x_ite/Execution/X3DExecutionContext.js +7 -7
- package/src/x_ite/Execution/X3DScene.js +47 -7
- package/src/x_ite/Parser/JSONParser.js +1 -1
package/dist/x_ite.zip
CHANGED
|
Binary file
|
package/docs/_config.yml
CHANGED
package/package.json
CHANGED
package/src/example.html
CHANGED
|
@@ -16,6 +16,6 @@ x3d-canvas {
|
|
|
16
16
|
<x3d-canvas src="https://create3000.github.io/media/x_ite/info/info.x3d">
|
|
17
17
|
<p>Your browser may not support all features required by X_ITE!</p>
|
|
18
18
|
</x3d-canvas>
|
|
19
|
-
<
|
|
19
|
+
<p>If local files are not loaded <a href="https://create3000.github.io/x_ite/setup-a-localhost-server">consider setup a localhost server</a> or use <a href="https://create3000.github.io/x_ite/dom-integration">DOM integration methods</a>.</p>
|
|
20
20
|
</body>
|
|
21
21
|
</html>
|
|
@@ -318,6 +318,8 @@ X3DBaseNode .prototype = Object .assign (Object .create (X3DEventObject .prototy
|
|
|
318
318
|
{
|
|
319
319
|
get: function () { return field; },
|
|
320
320
|
set: function (value) { field .setValue (value); },
|
|
321
|
+
configurable: true, // deletable
|
|
322
|
+
enumerable: true,
|
|
321
323
|
});
|
|
322
324
|
|
|
323
325
|
if (!this .isPrivate ())
|
|
@@ -372,7 +374,6 @@ X3DBaseNode .prototype = Object .assign (Object .create (X3DEventObject .prototy
|
|
|
372
374
|
{
|
|
373
375
|
get: function () { return field; },
|
|
374
376
|
set: function (value) { field .setValue (value); },
|
|
375
|
-
enumerable: true,
|
|
376
377
|
});
|
|
377
378
|
|
|
378
379
|
if (field .isInitializable ())
|
|
@@ -49,10 +49,13 @@ import X3DObject from "./X3DObject.js";
|
|
|
49
49
|
|
|
50
50
|
function X3DFieldDefinition (accessType, name, value)
|
|
51
51
|
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
Object .defineProperties (this,
|
|
53
|
+
{
|
|
54
|
+
accessType: { value: accessType, enumerable: true },
|
|
55
|
+
dataType: { value: value .getType (), enumerable: true },
|
|
56
|
+
name: { value: name, enumerable: true },
|
|
57
|
+
value: { value: value },
|
|
58
|
+
});
|
|
56
59
|
}
|
|
57
60
|
|
|
58
61
|
X3DFieldDefinition .prototype = Object .assign (Object .create (X3DObject .prototype),
|
|
@@ -55,7 +55,7 @@ const
|
|
|
55
55
|
|
|
56
56
|
function X3DTimeContext ()
|
|
57
57
|
{
|
|
58
|
-
this [_currentTime] =
|
|
58
|
+
this [_currentTime] = Date .now () / 1000;
|
|
59
59
|
this [_currentFrameRate] = 60;
|
|
60
60
|
this [_currentPosition] = new Vector3 (0, 0, 0);
|
|
61
61
|
this [_currentSpeed] = 0;
|
|
@@ -63,10 +63,6 @@ function X3DTimeContext ()
|
|
|
63
63
|
|
|
64
64
|
X3DTimeContext .prototype =
|
|
65
65
|
{
|
|
66
|
-
initialize: function ()
|
|
67
|
-
{
|
|
68
|
-
this .advanceTime ();
|
|
69
|
-
},
|
|
70
66
|
getCurrentTime: function ()
|
|
71
67
|
{
|
|
72
68
|
return this [_currentTime];
|
|
@@ -74,7 +74,8 @@ const
|
|
|
74
74
|
_reject = Symbol (),
|
|
75
75
|
_fileLoader = Symbol (),
|
|
76
76
|
_browserCallbacks = Symbol (),
|
|
77
|
-
_console = Symbol ()
|
|
77
|
+
_console = Symbol (),
|
|
78
|
+
_processEvents = Symbol .for ("X_ITE.X3DRoutingContext.processEvents");
|
|
78
79
|
|
|
79
80
|
function X3DBrowser (element)
|
|
80
81
|
{
|
|
@@ -110,7 +111,7 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
110
111
|
},
|
|
111
112
|
initialize: function ()
|
|
112
113
|
{
|
|
113
|
-
|
|
114
|
+
X3DBrowserContext .prototype .initialize .call (this);
|
|
114
115
|
|
|
115
116
|
this .replaceWorld (this .createScene ()) .catch (Function .prototype);
|
|
116
117
|
|
|
@@ -118,7 +119,9 @@ X3DBrowser .prototype = Object .assign (Object .create (X3DBrowserContext .proto
|
|
|
118
119
|
|
|
119
120
|
legacy .call (this);
|
|
120
121
|
|
|
121
|
-
|
|
122
|
+
// Process events from context creation. This will setup nodes like
|
|
123
|
+
// geometry option nodes before any node is created.
|
|
124
|
+
this [_processEvents] .call (this);
|
|
122
125
|
|
|
123
126
|
// Print welcome message.
|
|
124
127
|
|
|
@@ -177,10 +177,6 @@ X3DBrowserContext .prototype = Object .assign (Object .create (X3DBaseNode .prot
|
|
|
177
177
|
|
|
178
178
|
for (const browserContext of browserContexts)
|
|
179
179
|
browserContext .prototype .initialize ?.call (this);
|
|
180
|
-
|
|
181
|
-
// Process events from context creation. This will setup nodes like
|
|
182
|
-
// geometry option nodes before any node is created.
|
|
183
|
-
return this [_processEvents];
|
|
184
180
|
},
|
|
185
181
|
initialized: function ()
|
|
186
182
|
{
|
|
@@ -50,10 +50,13 @@ import URLs from "../Browser/Networking/URLs.js";
|
|
|
50
50
|
|
|
51
51
|
function ComponentInfo ({ name, level, title, providerUrl, external = false, dependencies = [ ] })
|
|
52
52
|
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
Object .defineProperties (this,
|
|
54
|
+
{
|
|
55
|
+
name: { value: name, enumerable: true },
|
|
56
|
+
level: { value: level, enumerable: true },
|
|
57
|
+
title: { value: title, enumerable: true },
|
|
58
|
+
providerUrl: { value: providerUrl || URLs .getProviderUrl (external && name), enumerable: true },
|
|
59
|
+
});
|
|
57
60
|
|
|
58
61
|
$.data (this, "external", external)
|
|
59
62
|
$.data (this, "dependencies", dependencies)
|
|
@@ -49,10 +49,13 @@ import X3DObject from "../Base/X3DObject.js";
|
|
|
49
49
|
|
|
50
50
|
function ProfileInfo (name, title, providerUrl, components)
|
|
51
51
|
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
Object .defineProperties (this,
|
|
53
|
+
{
|
|
54
|
+
name: { value: name, enumerable: true },
|
|
55
|
+
title: { value: title, enumerable: true },
|
|
56
|
+
providerUrl: { value: providerUrl, enumerable: true },
|
|
57
|
+
components: { value: components, enumerable: true },
|
|
58
|
+
});
|
|
56
59
|
}
|
|
57
60
|
|
|
58
61
|
ProfileInfo .prototype = Object .assign (Object .create (X3DObject .prototype),
|
|
@@ -49,12 +49,12 @@ import X3DObject from "../Base/X3DObject.js";
|
|
|
49
49
|
|
|
50
50
|
function UnitInfo (category, name, conversionFactor)
|
|
51
51
|
{
|
|
52
|
-
Object .
|
|
53
|
-
|
|
52
|
+
Object .defineProperties (this,
|
|
53
|
+
{
|
|
54
|
+
category: { value: category, enumerable: true },
|
|
55
|
+
name: { value: name, enumerable: true },
|
|
56
|
+
conversionFactor: { value: conversionFactor, enumerable: true },
|
|
54
57
|
});
|
|
55
|
-
|
|
56
|
-
this .name = name;
|
|
57
|
-
this .conversionFactor = conversionFactor;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
UnitInfo .prototype = Object .assign (Object .create (X3DObject .prototype),
|
|
@@ -942,44 +942,44 @@ for (const key of Reflect .ownKeys (X3DExecutionContext .prototype))
|
|
|
942
942
|
|
|
943
943
|
Object .defineProperty (X3DExecutionContext .prototype, "specificationVersion",
|
|
944
944
|
{
|
|
945
|
-
get:
|
|
945
|
+
get: X3DExecutionContext .prototype .getSpecificationVersion,
|
|
946
946
|
enumerable: true,
|
|
947
947
|
});
|
|
948
948
|
|
|
949
949
|
Object .defineProperty (X3DExecutionContext .prototype, "encoding",
|
|
950
950
|
{
|
|
951
|
-
get:
|
|
951
|
+
get: X3DExecutionContext .prototype .getEncoding,
|
|
952
952
|
enumerable: true,
|
|
953
953
|
});
|
|
954
954
|
|
|
955
955
|
Object .defineProperty (X3DExecutionContext .prototype, "profile",
|
|
956
956
|
{
|
|
957
|
-
get:
|
|
957
|
+
get: X3DExecutionContext .prototype .getProfile,
|
|
958
958
|
enumerable: true,
|
|
959
959
|
});
|
|
960
960
|
|
|
961
961
|
Object .defineProperty (X3DExecutionContext .prototype, "components",
|
|
962
962
|
{
|
|
963
|
-
get:
|
|
963
|
+
get: X3DExecutionContext .prototype .getComponents,
|
|
964
964
|
enumerable: true,
|
|
965
965
|
});
|
|
966
966
|
|
|
967
967
|
Object .defineProperty (X3DExecutionContext .prototype, "worldURL",
|
|
968
968
|
{
|
|
969
|
-
get:
|
|
969
|
+
get: X3DExecutionContext .prototype .getWorldURL,
|
|
970
970
|
enumerable: true,
|
|
971
971
|
});
|
|
972
972
|
|
|
973
973
|
Object .defineProperty (X3DExecutionContext .prototype, "units",
|
|
974
974
|
{
|
|
975
|
-
get:
|
|
975
|
+
get: X3DExecutionContext .prototype .getUnits,
|
|
976
976
|
enumerable: true,
|
|
977
977
|
});
|
|
978
978
|
|
|
979
979
|
Object .defineProperty (X3DExecutionContext .prototype, "rootNodes",
|
|
980
980
|
{
|
|
981
981
|
get: X3DExecutionContext .prototype .getRootNodes,
|
|
982
|
-
set:
|
|
982
|
+
set: X3DExecutionContext .prototype .setRootNodes,
|
|
983
983
|
enumerable: true,
|
|
984
984
|
});
|
|
985
985
|
|
|
@@ -177,13 +177,10 @@ X3DScene .prototype = Object .assign (Object .create (X3DExecutionContext .proto
|
|
|
177
177
|
{
|
|
178
178
|
// Private function.
|
|
179
179
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
if (!unit)
|
|
180
|
+
if (!this [_units] .has (category))
|
|
183
181
|
return;
|
|
184
182
|
|
|
185
|
-
|
|
186
|
-
unit .conversionFactor = Number (conversionFactor);
|
|
183
|
+
this [_units] .update (category, category, new UnitInfo (category, String (name), Number (conversionFactor)));
|
|
187
184
|
|
|
188
185
|
this ._units_changed = this .getBrowser () .getCurrentTime ();
|
|
189
186
|
},
|
|
@@ -759,9 +756,9 @@ X3DScene .prototype = Object .assign (Object .create (X3DExecutionContext .proto
|
|
|
759
756
|
|
|
760
757
|
// Meta data
|
|
761
758
|
|
|
762
|
-
for (const [i, [key, values]] of [... this .getMetaDatas ()])
|
|
759
|
+
for (const [i, [key, values]] of [... this .getMetaDatas ()] .entries ())
|
|
763
760
|
{
|
|
764
|
-
for (const [j, value] of values)
|
|
761
|
+
for (const [j, value] of values .entries ())
|
|
765
762
|
{
|
|
766
763
|
generator .string += generator .Indent ();
|
|
767
764
|
generator .string += '{';
|
|
@@ -966,4 +963,47 @@ X3DScene .prototype = Object .assign (Object .create (X3DExecutionContext .proto
|
|
|
966
963
|
for (const key of Reflect .ownKeys (X3DScene .prototype))
|
|
967
964
|
Object .defineProperty (X3DScene .prototype, key, { enumerable: false });
|
|
968
965
|
|
|
966
|
+
Object .defineProperty (X3DScene .prototype, "specificationVersion",
|
|
967
|
+
{
|
|
968
|
+
get: X3DScene .prototype .getSpecificationVersion,
|
|
969
|
+
enumerable: true,
|
|
970
|
+
});
|
|
971
|
+
|
|
972
|
+
Object .defineProperty (X3DScene .prototype, "encoding",
|
|
973
|
+
{
|
|
974
|
+
get: X3DScene .prototype .getEncoding,
|
|
975
|
+
enumerable: true,
|
|
976
|
+
});
|
|
977
|
+
|
|
978
|
+
Object .defineProperty (X3DScene .prototype, "profile",
|
|
979
|
+
{
|
|
980
|
+
get: X3DScene .prototype .getProfile,
|
|
981
|
+
enumerable: true,
|
|
982
|
+
});
|
|
983
|
+
|
|
984
|
+
Object .defineProperty (X3DScene .prototype, "components",
|
|
985
|
+
{
|
|
986
|
+
get: X3DScene .prototype .getComponents,
|
|
987
|
+
enumerable: true,
|
|
988
|
+
});
|
|
989
|
+
|
|
990
|
+
Object .defineProperty (X3DScene .prototype, "worldURL",
|
|
991
|
+
{
|
|
992
|
+
get: X3DScene .prototype .getWorldURL,
|
|
993
|
+
enumerable: true,
|
|
994
|
+
});
|
|
995
|
+
|
|
996
|
+
Object .defineProperty (X3DScene .prototype, "units",
|
|
997
|
+
{
|
|
998
|
+
get: X3DScene .prototype .getUnits,
|
|
999
|
+
enumerable: true,
|
|
1000
|
+
});
|
|
1001
|
+
|
|
1002
|
+
Object .defineProperty (X3DScene .prototype, "rootNodes",
|
|
1003
|
+
{
|
|
1004
|
+
get: X3DScene .prototype .getRootNodes,
|
|
1005
|
+
set: X3DScene .prototype .setRootNodes,
|
|
1006
|
+
enumerable: true,
|
|
1007
|
+
});
|
|
1008
|
+
|
|
969
1009
|
export default X3DScene;
|
|
@@ -234,7 +234,7 @@ JSONParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
234
234
|
}
|
|
235
235
|
else
|
|
236
236
|
{
|
|
237
|
-
if (key === "connect" || key === "fieldValue" || key === "field" || key === "meta" || key === "component")
|
|
237
|
+
if (key === "connect" || key === "fieldValue" || key === "field" || key === "meta" || key === "component" || key === "unit")
|
|
238
238
|
{
|
|
239
239
|
for (const childkey in object [key])
|
|
240
240
|
{
|