x3d-tidy 1.0.71 → 1.0.73
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 +1 -1
- package/src/convert.js +6 -2
- package/src/main.js +2 -4
package/package.json
CHANGED
package/src/convert.js
CHANGED
|
@@ -102,12 +102,14 @@ async function convert (argv)
|
|
|
102
102
|
|
|
103
103
|
const
|
|
104
104
|
Browser = X3D .createBrowser () .browser,
|
|
105
|
-
input = path .resolve (args .cwd
|
|
105
|
+
input = path .resolve (args .cwd, args .input)
|
|
106
106
|
|
|
107
107
|
Browser .endUpdate ()
|
|
108
108
|
Browser .setBrowserOption ("PrimitiveQuality", "HIGH");
|
|
109
109
|
Browser .setBrowserOption ("TextureQuality", "HIGH");
|
|
110
110
|
|
|
111
|
+
console .log (input)
|
|
112
|
+
|
|
111
113
|
await Browser .loadComponents (Browser .getProfile ("Full"))
|
|
112
114
|
await Browser .loadURL (new X3D .MFString (input))
|
|
113
115
|
|
|
@@ -130,7 +132,9 @@ async function convert (argv)
|
|
|
130
132
|
|
|
131
133
|
if (args .output)
|
|
132
134
|
{
|
|
133
|
-
const output = path .resolve (args .cwd
|
|
135
|
+
const output = path .resolve (args .cwd, args .output)
|
|
136
|
+
|
|
137
|
+
console .log (output)
|
|
134
138
|
|
|
135
139
|
if (path .extname (output))
|
|
136
140
|
fs .writeFileSync (output, getContents ({ ... options, type: path .extname (output) }))
|
package/src/main.js
CHANGED
|
@@ -5,8 +5,6 @@ const
|
|
|
5
5
|
path = require ("path"),
|
|
6
6
|
colors = require ("colors")
|
|
7
7
|
|
|
8
|
-
colors .enable ()
|
|
9
|
-
|
|
10
8
|
process .env .ELECTRON_DISABLE_SECURITY_WARNINGS = "true"
|
|
11
9
|
// process .env .ELECTRON_ENABLE_LOGGING = 1
|
|
12
10
|
|
|
@@ -38,12 +36,12 @@ electron .app .whenReady () .then (async () =>
|
|
|
38
36
|
|
|
39
37
|
electron .ipcMain .on ("warn", (event, format, ... messages) =>
|
|
40
38
|
{
|
|
41
|
-
console .
|
|
39
|
+
console .warn (colors .yellow (format), ... messages)
|
|
42
40
|
})
|
|
43
41
|
|
|
44
42
|
electron .ipcMain .on ("error", (event, format, ... messages) =>
|
|
45
43
|
{
|
|
46
|
-
console .
|
|
44
|
+
console .error (colors .red (format), ... messages)
|
|
47
45
|
})
|
|
48
46
|
|
|
49
47
|
electron .ipcMain .on ("exit", (event, code = 0) =>
|