x_ite 8.6.3 → 8.6.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/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 +23 -23
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +19 -19
- 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 +1047 -823
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +2 -2
- package/docs/_posts/getting-started.md +1 -1
- package/docs/_posts/laboratory/x3d-file-converter.md +1 -1
- package/docs/_tabs/laboratory.md +6 -0
- package/package.json +1 -1
- package/src/standard/Math/Numbers/Matrix4.js +7 -0
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Parser/OBJParser.js +29 -22
- package/src/x_ite/Parser/SVGParser.js +483 -273
- package/src/x_ite/Parser/X3DParser.js +2 -2
package/dist/x_ite.zip
CHANGED
|
Binary file
|
package/docs/_config.yml
CHANGED
|
@@ -20,8 +20,8 @@ timezone:
|
|
|
20
20
|
# ↓ --------------------------
|
|
21
21
|
|
|
22
22
|
title: X_ITE X3D Browser # the main title
|
|
23
|
-
version: 8.6.
|
|
24
|
-
size:
|
|
23
|
+
version: 8.6.5 # x_ite latest version
|
|
24
|
+
size: 288 # size in kb
|
|
25
25
|
x3d_latest_version: 4.0 # x3d latest version
|
|
26
26
|
|
|
27
27
|
tagline: Step Into The Future # it will display as the sub-title
|
|
@@ -645,7 +645,7 @@ X_ITE can load several file formats, either directly as the source of the \<x3d-
|
|
|
645
645
|
>**Tip:** All files can be compressed using GZip compression. This saves bandwidth and speeds up download time.
|
|
646
646
|
{: .prompt-tip }
|
|
647
647
|
|
|
648
|
-
If you have an own web-server see [How to Configure Your Web Server](how-to-configure-your-web-server). If you are looking for an online file format converter [see here](laboratory/x3d-file-converter).
|
|
648
|
+
If you have an own web-server see [How to Configure Your Web Server](how-to-configure-your-web-server). If you are looking for an online X3D file format converter [see here](laboratory/x3d-file-converter).
|
|
649
649
|
|
|
650
650
|
### Fallback Content
|
|
651
651
|
|
|
@@ -180,4 +180,4 @@ Your converted files will appear here.
|
|
|
180
180
|
|
|
181
181
|
## Command Line Tool
|
|
182
182
|
|
|
183
|
-
If you are looking for a command line tool to convert files, have a look at [x3d-tidy](https://www.npmjs.com/package/x3d-tidy){:target="_blank"}. It is a Node program and it can be run via `npx x3d-tidy`.
|
|
183
|
+
If you are looking for a command line tool to convert files, have a look at [x3d-tidy](https://www.npmjs.com/package/x3d-tidy){:target="_blank"}. It is a [Node](https://nodejs.org/) program and it can be run via `npx x3d-tidy`.
|
package/docs/_tabs/laboratory.md
CHANGED
|
@@ -41,6 +41,12 @@ table.examples td {
|
|
|
41
41
|
</tr>
|
|
42
42
|
</table>
|
|
43
43
|
|
|
44
|
+
Also have a look at the [Online X3D File Format Converter](x3d-file-converter).
|
|
45
|
+
|
|
46
|
+
## X3D-Tidy
|
|
47
|
+
|
|
48
|
+
[x3d-tidy](https://www.npmjs.com/package/x3d-tidy){:target="_blank"} is a command line X3D file format converter, compressor and beautifier and available on NPM.
|
|
49
|
+
|
|
44
50
|
## D3-X3D
|
|
45
51
|
|
|
46
52
|
[D3-X3D](https://github.com/jamesleesaunders/d3-x3d#d3-x3d){:target="_blank"} is an external JavaScript library that combines the power of **D3.js** with X3D and can be found on GitHub.
|
package/package.json
CHANGED
|
@@ -798,6 +798,13 @@ Object .assign (Matrix4,
|
|
|
798
798
|
return Object .create (this .prototype) .setQuaternion (quaternion);
|
|
799
799
|
},
|
|
800
800
|
Matrix3: function (matrix)
|
|
801
|
+
{
|
|
802
|
+
return new Matrix4 (matrix [0], matrix [1], 0, 0,
|
|
803
|
+
matrix [3], matrix [4], 0, 0,
|
|
804
|
+
0, 0, 1, 0,
|
|
805
|
+
matrix [6], matrix [7], 0, 1);
|
|
806
|
+
},
|
|
807
|
+
SubMatrix: function (matrix)
|
|
801
808
|
{
|
|
802
809
|
return new Matrix4 (matrix [0], matrix [1], matrix [2], 0,
|
|
803
810
|
matrix [3], matrix [4], matrix [5], 0,
|
|
@@ -272,37 +272,44 @@ OBJParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
272
272
|
},
|
|
273
273
|
mtllib: async function (path)
|
|
274
274
|
{
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
275
|
+
try
|
|
276
|
+
{
|
|
277
|
+
const
|
|
278
|
+
scene = this .getExecutionContext (),
|
|
279
|
+
url = new URL (path, scene .getWorldURL ());
|
|
278
280
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
281
|
+
const input = await fetch (url)
|
|
282
|
+
.then (response => response .arrayBuffer ())
|
|
283
|
+
.then (arrayBuffer => $.decodeText ($.ungzip (arrayBuffer)))
|
|
284
|
+
.catch (Function .prototype);
|
|
283
285
|
|
|
284
|
-
|
|
286
|
+
const parser = new MaterialParser (scene, input);
|
|
285
287
|
|
|
286
|
-
|
|
288
|
+
parser .parse ();
|
|
287
289
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
290
|
+
for (const [name, material] of parser .materials)
|
|
291
|
+
{
|
|
292
|
+
const nodeName = this .sanitizeName (name);
|
|
291
293
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
+
if (nodeName)
|
|
295
|
+
scene .addNamedNode (scene .getUniqueName (nodeName), material);
|
|
294
296
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
+
this .materials .set (name, material);
|
|
298
|
+
}
|
|
297
299
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
300
|
+
for (const [name, texture] of parser .textures)
|
|
301
|
+
{
|
|
302
|
+
const nodeName = this .sanitizeName (name);
|
|
301
303
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
+
if (nodeName)
|
|
305
|
+
scene .addNamedNode (scene .getUniqueName (nodeName), texture);
|
|
304
306
|
|
|
305
|
-
|
|
307
|
+
this .textures .set (name, texture);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
catch (error)
|
|
311
|
+
{
|
|
312
|
+
console .warn (error);
|
|
306
313
|
}
|
|
307
314
|
},
|
|
308
315
|
usemtl: function ()
|