x3d-image 3.0.19 → 3.0.21
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 +1 -0
- package/package.json +4 -3
- package/src/image.js +9 -8
package/README.md
CHANGED
|
@@ -109,6 +109,7 @@ The exposure of an image describes the amount of light that is captured.
|
|
|
109
109
|
| Wavefront OBJ | .obj | model/obj |
|
|
110
110
|
| STL | .stl | model/stl |
|
|
111
111
|
| PLY | .ply | model/ply |
|
|
112
|
+
| OFF | .off | model/off |
|
|
112
113
|
| SVG Document | .svg, .svgz | image/svg+xml |
|
|
113
114
|
|
|
114
115
|
## Supported Output File Types
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x3d-image",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.21",
|
|
4
4
|
"description": "Render Image Files from X3D",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"bin": {
|
|
@@ -58,8 +58,9 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"colors": "^1.4.0",
|
|
61
|
-
"electron": "^42.
|
|
62
|
-
"x_ite": "^15.
|
|
61
|
+
"electron": "^42.3.0",
|
|
62
|
+
"x_ite": "^15.1.1",
|
|
63
|
+
"x_ite-off-parser": "^1.0.5",
|
|
63
64
|
"yargs": "^18.0.0"
|
|
64
65
|
},
|
|
65
66
|
"devDependencies": {
|
package/src/image.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const
|
|
4
|
-
X3D
|
|
5
|
-
pkg
|
|
6
|
-
electron
|
|
7
|
-
yargs
|
|
8
|
-
path
|
|
9
|
-
url
|
|
10
|
-
fs
|
|
11
|
-
|
|
4
|
+
X3D = require ("x_ite"),
|
|
5
|
+
pkg = require ("../package.json"),
|
|
6
|
+
electron = require ("electron"),
|
|
7
|
+
yargs = require ("yargs"),
|
|
8
|
+
path = require ("path"),
|
|
9
|
+
url = require ("url"),
|
|
10
|
+
fs = require ("fs"),
|
|
11
|
+
OffParser = require ("x_ite-off-parser"),
|
|
12
|
+
DEBUG = false;
|
|
12
13
|
|
|
13
14
|
// Redirect console messages.
|
|
14
15
|
|