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.
Files changed (54) hide show
  1. package/dist/assets/components/Annotation.js +13 -13
  2. package/dist/assets/components/Annotation.min.js +1 -1
  3. package/dist/assets/components/CADGeometry.js +13 -13
  4. package/dist/assets/components/CADGeometry.min.js +1 -1
  5. package/dist/assets/components/CubeMapTexturing.js +25 -25
  6. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  7. package/dist/assets/components/DIS.js +13 -13
  8. package/dist/assets/components/DIS.min.js +1 -1
  9. package/dist/assets/components/EventUtilities.js +9 -9
  10. package/dist/assets/components/EventUtilities.min.js +1 -1
  11. package/dist/assets/components/Geometry2D.js +19 -19
  12. package/dist/assets/components/Geometry2D.min.js +1 -1
  13. package/dist/assets/components/Geospatial.js +33 -33
  14. package/dist/assets/components/Geospatial.min.js +1 -1
  15. package/dist/assets/components/HAnim.js +18 -18
  16. package/dist/assets/components/HAnim.min.js +1 -1
  17. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  18. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  19. package/dist/assets/components/Layout.js +27 -27
  20. package/dist/assets/components/Layout.min.js +1 -1
  21. package/dist/assets/components/NURBS.js +24 -24
  22. package/dist/assets/components/NURBS.min.js +1 -1
  23. package/dist/assets/components/ParticleSystems.js +23 -23
  24. package/dist/assets/components/ParticleSystems.min.js +1 -1
  25. package/dist/assets/components/Picking.js +19 -19
  26. package/dist/assets/components/Picking.min.js +1 -1
  27. package/dist/assets/components/RigidBodyPhysics.js +18 -18
  28. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  29. package/dist/assets/components/Scripting.js +28 -28
  30. package/dist/assets/components/Scripting.min.js +1 -1
  31. package/dist/assets/components/Text.js +24 -24
  32. package/dist/assets/components/Text.min.js +1 -1
  33. package/dist/assets/components/TextureProjector.js +14 -14
  34. package/dist/assets/components/TextureProjector.min.js +1 -1
  35. package/dist/assets/components/Texturing3D.js +30 -30
  36. package/dist/assets/components/Texturing3D.min.js +1 -1
  37. package/dist/assets/components/VolumeRendering.js +19 -19
  38. package/dist/assets/components/VolumeRendering.min.js +1 -1
  39. package/dist/assets/components/X_ITE.js +9 -9
  40. package/dist/assets/components/X_ITE.min.js +1 -1
  41. package/dist/x_ite.css +1 -1
  42. package/dist/x_ite.js +1047 -823
  43. package/dist/x_ite.min.js +1 -1
  44. package/dist/x_ite.zip +0 -0
  45. package/docs/_config.yml +2 -2
  46. package/docs/_posts/getting-started.md +1 -1
  47. package/docs/_posts/laboratory/x3d-file-converter.md +1 -1
  48. package/docs/_tabs/laboratory.md +6 -0
  49. package/package.json +1 -1
  50. package/src/standard/Math/Numbers/Matrix4.js +7 -0
  51. package/src/x_ite/Browser/VERSION.js +1 -1
  52. package/src/x_ite/Parser/OBJParser.js +29 -22
  53. package/src/x_ite/Parser/SVGParser.js +483 -273
  54. 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.3 # x_ite latest version
24
- size: 287 # size in kb
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`.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x_ite",
3
- "version": "8.6.3",
3
+ "version": "8.6.5",
4
4
  "description": "X_ITE X3D Browser, view and manipulate X3D and VRML scenes in HTML.",
5
5
  "homepage": "https://create3000.github.io/x_ite/",
6
6
  "author": "Holger Seelig <holger.seelig@gmail.com>",
@@ -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,
@@ -45,4 +45,4 @@
45
45
  *
46
46
  ******************************************************************************/
47
47
 
48
- export default "8.6.3";
48
+ export default "8.6.5";
@@ -272,37 +272,44 @@ OBJParser .prototype = Object .assign (Object .create (X3DParser .prototype),
272
272
  },
273
273
  mtllib: async function (path)
274
274
  {
275
- const
276
- scene = this .getExecutionContext (),
277
- url = new URL (path, scene .getWorldURL ());
275
+ try
276
+ {
277
+ const
278
+ scene = this .getExecutionContext (),
279
+ url = new URL (path, scene .getWorldURL ());
278
280
 
279
- const input = await fetch (url)
280
- .then (response => response .arrayBuffer ())
281
- .then (arrayBuffer => $.decodeText ($.ungzip (arrayBuffer)))
282
- .catch (Function .prototype);
281
+ const input = await fetch (url)
282
+ .then (response => response .arrayBuffer ())
283
+ .then (arrayBuffer => $.decodeText ($.ungzip (arrayBuffer)))
284
+ .catch (Function .prototype);
283
285
 
284
- const parser = new MaterialParser (scene, input);
286
+ const parser = new MaterialParser (scene, input);
285
287
 
286
- parser .parse ();
288
+ parser .parse ();
287
289
 
288
- for (const [name, material] of parser .materials)
289
- {
290
- const nodeName = this .sanitizeName (name);
290
+ for (const [name, material] of parser .materials)
291
+ {
292
+ const nodeName = this .sanitizeName (name);
291
293
 
292
- if (nodeName)
293
- scene .addNamedNode (scene .getUniqueName (nodeName), material);
294
+ if (nodeName)
295
+ scene .addNamedNode (scene .getUniqueName (nodeName), material);
294
296
 
295
- this .materials .set (name, material);
296
- }
297
+ this .materials .set (name, material);
298
+ }
297
299
 
298
- for (const [name, texture] of parser .textures)
299
- {
300
- const nodeName = this .sanitizeName (name);
300
+ for (const [name, texture] of parser .textures)
301
+ {
302
+ const nodeName = this .sanitizeName (name);
301
303
 
302
- if (nodeName)
303
- scene .addNamedNode (scene .getUniqueName (nodeName), texture);
304
+ if (nodeName)
305
+ scene .addNamedNode (scene .getUniqueName (nodeName), texture);
304
306
 
305
- this .textures .set (name, texture);
307
+ this .textures .set (name, texture);
308
+ }
309
+ }
310
+ catch (error)
311
+ {
312
+ console .warn (error);
306
313
  }
307
314
  },
308
315
  usemtl: function ()