x_ite 8.6.23 → 8.7.0
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/README.md +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 +34 -39
- 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 +32 -32
- 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 +26 -26
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +20 -20
- 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 +1116 -1685
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +25 -25
- 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 +313 -271
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/docs/_posts/accessing-the-external-browser.md +1 -1
- package/docs/_posts/components/Geospatial/GeoViewpoint.md +41 -0
- package/docs/_posts/components/Navigation/OrthoViewpoint.md +41 -0
- package/docs/_posts/components/Navigation/Viewpoint.md +41 -0
- package/docs/_posts/components/Networking/Inline.md +1 -1
- package/docs/_posts/components/X_ITE/BlendMode.md +1 -1
- package/docs/_posts/getting-started.md +4 -1
- package/docs/_posts/glossary.md +3 -3
- package/docs/_posts/laboratory/x3d-file-converter.md +1 -1
- package/docs/_posts/reference/browser-services.md +48 -20
- package/docs/_posts/reference/field-services-and-objects.md +23 -23
- package/docs/_posts/reference/scene-services.md +1 -1
- package/docs/_posts/supported-nodes.md +1 -1
- package/docs/_posts/tutorials/basic-nodes.md +1 -1
- package/docs/_posts/tutorials/building-a-x3d-world.md +1 -1
- package/docs/_posts/tutorials/building-primitive-shapes.md +1 -1
- package/docs/_posts/tutorials/increasing-rendering-speed.md +1 -1
- package/docs/_posts/tutorials/introducing-x3d.md +1 -1
- package/docs/_posts/tutorials/overview.md +1 -1
- package/docs/_posts/what's-new.md +11 -1
- package/package.json +4 -4
- package/src/x_ite/Base/X3DBaseNode.js +2 -1
- package/src/x_ite/Base/X3DField.js +4 -4
- package/src/x_ite/Base/X3DFieldDefinition.js +7 -4
- package/src/x_ite/Browser/Core/BrowserOptions.js +12 -4
- package/src/x_ite/Browser/Core/X3DCoreContext.js +79 -31
- package/src/x_ite/Browser/NURBS/NURBS.js +3 -3
- package/src/x_ite/Browser/Shaders/X3DShadersContext.js +2 -2
- package/src/x_ite/Browser/Texturing/X3DTexturingContext.js +10 -11
- 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 +58 -31
- package/src/x_ite/Browser/X3DBrowserContext.js +0 -4
- package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +9 -14
- package/src/x_ite/Components/EnvironmentalEffects/Background.js +6 -6
- package/src/x_ite/Components/EnvironmentalEffects/TextureBackground.js +14 -34
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +9 -36
- package/src/x_ite/Components/NURBS/NurbsCurve.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsCurve2D.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsPositionInterpolator.js +1 -1
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +1 -1
- package/src/x_ite/Components/Picking/LinePickSensor.js +2 -2
- package/src/x_ite/Components/Picking/PointPickSensor.js +2 -2
- package/src/x_ite/Components/Picking/PrimitivePickSensor.js +2 -2
- package/src/x_ite/Components/Picking/VolumePickSensor.js +2 -2
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/MotorJoint.js +1 -1
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +1 -1
- package/src/x_ite/Components/Sound/ListenerPointSource.js +2 -1
- package/src/x_ite/Components/Sound/MicrophoneSource.js +2 -1
- package/src/x_ite/Components/Sound/OscillatorSource.js +2 -1
- package/src/x_ite/Components/Sound/StreamAudioSource.js +2 -1
- package/src/x_ite/Components/Sound/X3DSoundProcessingNode.js +3 -0
- package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +2 -2
- package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +2 -2
- package/src/x_ite/Components/VolumeRendering/VolumeData.js +2 -2
- 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/Fields/SFNode.js +5 -5
- package/src/x_ite/Fields.js +5 -4
- package/src/x_ite/Parser/JSONParser.js +1 -1
- package/src/x_ite/Parser/X3DParser.js +1 -1
- package/src/x_ite/X3DCanvasElement.js +4 -4
- package/src/x_ite.html +1 -1
- package/x_ite.min.html +1 -1
|
@@ -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 += '{';
|
|
@@ -113,7 +113,7 @@ const handler =
|
|
|
113
113
|
{
|
|
114
114
|
try
|
|
115
115
|
{
|
|
116
|
-
return
|
|
116
|
+
return !! target .getValue () .getField (key);
|
|
117
117
|
}
|
|
118
118
|
catch (error)
|
|
119
119
|
{
|
|
@@ -299,7 +299,7 @@ SFNode .prototype = Object .assign (Object .create (X3DField .prototype),
|
|
|
299
299
|
|
|
300
300
|
throw new Error ("SFNode.getFieldDefinitions: node is null.");
|
|
301
301
|
},
|
|
302
|
-
addFieldCallback: function (name,
|
|
302
|
+
addFieldCallback: function (name, key, object)
|
|
303
303
|
{
|
|
304
304
|
const target = this [_target];
|
|
305
305
|
|
|
@@ -314,13 +314,13 @@ SFNode .prototype = Object .assign (Object .create (X3DField .prototype),
|
|
|
314
314
|
const value = target .getValue ();
|
|
315
315
|
|
|
316
316
|
if (value)
|
|
317
|
-
return value .getField (name) .addFieldCallback (
|
|
317
|
+
return value .getField (name) .addFieldCallback (key, object);
|
|
318
318
|
|
|
319
319
|
throw new Error ("SFNode.addFieldCallback: node is null.");
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
},
|
|
323
|
-
removeFieldCallback: function (name,
|
|
323
|
+
removeFieldCallback: function (name, key)
|
|
324
324
|
{
|
|
325
325
|
const target = this [_target];
|
|
326
326
|
|
|
@@ -335,7 +335,7 @@ SFNode .prototype = Object .assign (Object .create (X3DField .prototype),
|
|
|
335
335
|
const value = target .getValue ();
|
|
336
336
|
|
|
337
337
|
if (value)
|
|
338
|
-
return value .getField (name) .removeFieldCallback (
|
|
338
|
+
return value .getField (name) .removeFieldCallback (key);
|
|
339
339
|
|
|
340
340
|
throw new Error ("SFNode.removeFieldCallback: node is null.");
|
|
341
341
|
}
|
package/src/x_ite/Fields.js
CHANGED
|
@@ -63,8 +63,7 @@ import SFVec3 from "./Fields/SFVec3.js";
|
|
|
63
63
|
import SFVec4 from "./Fields/SFVec4.js";
|
|
64
64
|
import ArrayFields from "./Fields/ArrayFields.js";
|
|
65
65
|
|
|
66
|
-
const Fields =
|
|
67
|
-
{
|
|
66
|
+
const Fields = {
|
|
68
67
|
SFBool: SFBool,
|
|
69
68
|
SFColor: SFColor,
|
|
70
69
|
SFColorRGBA: SFColorRGBA,
|
|
@@ -86,8 +85,10 @@ const Fields = Object .assign (
|
|
|
86
85
|
SFVec3f: SFVec3 .SFVec3f,
|
|
87
86
|
SFVec4d: SFVec4 .SFVec4d,
|
|
88
87
|
SFVec4f: SFVec4 .SFVec4f,
|
|
88
|
+
|
|
89
89
|
VrmlMatrix: SFMatrix4 .VrmlMatrix,
|
|
90
|
-
|
|
91
|
-
ArrayFields
|
|
90
|
+
|
|
91
|
+
... ArrayFields
|
|
92
|
+
};
|
|
92
93
|
|
|
93
94
|
export default Fields;
|
|
@@ -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
|
{
|
|
@@ -76,10 +76,7 @@ class X3DCanvasElement extends HTMLElement
|
|
|
76
76
|
|
|
77
77
|
shadow .appendChild (link);
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
{
|
|
81
|
-
value: new X3DBrowser (this),
|
|
82
|
-
})
|
|
79
|
+
new X3DBrowser (this)
|
|
83
80
|
}
|
|
84
81
|
|
|
85
82
|
connectedCallback ()
|
|
@@ -101,6 +98,9 @@ class X3DCanvasElement extends HTMLElement
|
|
|
101
98
|
"debug",
|
|
102
99
|
"multisampling",
|
|
103
100
|
"notifications",
|
|
101
|
+
"onerror",
|
|
102
|
+
"oninitialized",
|
|
103
|
+
"onshutdown",
|
|
104
104
|
"splashScreen",
|
|
105
105
|
"splashscreen",
|
|
106
106
|
"src",
|
package/src/x_ite.html
CHANGED
|
@@ -402,7 +402,7 @@ main.color-management #browser {
|
|
|
402
402
|
<main>
|
|
403
403
|
<div>
|
|
404
404
|
<form action="javascript:alert('form submitted')">
|
|
405
|
-
<x3d-canvas id="browser" splashScreen="true" contextMenu="true" cache="false" debug="true" preserveDrawingBuffer="false"
|
|
405
|
+
<x3d-canvas id="browser" splashScreen="true" contextMenu="true" cache="false" debug="true" preserveDrawingBuffer="false" oninitialized="$('#file') .addClass ('loaded')" x-baseURL="tests/" x-src="lines.x3d">
|
|
406
406
|
<p class="fallback">
|
|
407
407
|
Sorry,<br/>
|
|
408
408
|
it wasn't me!<br/>
|
package/x_ite.min.html
CHANGED
|
@@ -383,7 +383,7 @@ main.color-management #browser {
|
|
|
383
383
|
<main>
|
|
384
384
|
<div>
|
|
385
385
|
<form action="javascript:alert('form submitted')">
|
|
386
|
-
<x3d-canvas id="browser" splashScreen="true" contextMenu="true" cache="false" debug="true" preserveDrawingBuffer="false"
|
|
386
|
+
<x3d-canvas id="browser" splashScreen="true" contextMenu="true" cache="false" debug="true" preserveDrawingBuffer="false" oninitialized="$('#file') .addClass ('loaded')" x-baseURL="src/tests/" x-src="lines.x3d">
|
|
387
387
|
<p class="fallback">
|
|
388
388
|
Sorry,<br/>
|
|
389
389
|
it wasn't me!<br/>
|