x_ite 8.6.23 → 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/x_ite.css +1 -1
- package/dist/x_ite.js +97 -95
- 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/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/X3DScene.js +4 -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
|
@@ -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),
|
|
@@ -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 += '{';
|
|
@@ -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
|
{
|