x3d-image 2.0.17 → 2.0.19
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/package.json +3 -3
- package/src/image.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x3d-image",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.19",
|
|
4
4
|
"description": "Render image files from X3D",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"bin": {
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
],
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"colors": "^1.4.0",
|
|
55
|
-
"electron": "^35.
|
|
56
|
-
"x_ite": "^11.4.
|
|
55
|
+
"electron": "^35.1.2",
|
|
56
|
+
"x_ite": "^11.4.2",
|
|
57
57
|
"yargs": "^17.7.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
package/src/image.js
CHANGED
|
@@ -134,6 +134,7 @@ async function generate (argv)
|
|
|
134
134
|
canvas = document .getElementById ("browser"),
|
|
135
135
|
browser = canvas .browser;
|
|
136
136
|
|
|
137
|
+
browser .setBrowserOption ("Mute", true);
|
|
137
138
|
browser .setBrowserOption ("PrimitiveQuality", "HIGH");
|
|
138
139
|
browser .setBrowserOption ("TextureQuality", "HIGH");
|
|
139
140
|
|
|
@@ -154,7 +155,7 @@ async function generate (argv)
|
|
|
154
155
|
output = path .resolve (process .cwd (), args .output [i]),
|
|
155
156
|
mimeType = mimeTypeFromPath (output);
|
|
156
157
|
|
|
157
|
-
await browser .loadURL (new X3D .MFString (input));
|
|
158
|
+
await browser .loadURL (new X3D .MFString (input)) .catch (Function .prototype);
|
|
158
159
|
|
|
159
160
|
if (arg (args ["environment-light"], i))
|
|
160
161
|
await addEnvironmentLight (browser, browser .currentScene, arg (args ["environment-light"], i));
|