@lvce-editor/main-process 6.6.0 → 6.8.0
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/mainProcessMain.js +27 -0
- package/package.json +2 -2
package/dist/mainProcessMain.js
CHANGED
|
@@ -5527,6 +5527,32 @@ const getStats = view => {
|
|
|
5527
5527
|
};
|
|
5528
5528
|
};
|
|
5529
5529
|
|
|
5530
|
+
const gpuInfoUrl = 'chrome://gpu';
|
|
5531
|
+
let gpuInfoWindow;
|
|
5532
|
+
const open = async () => {
|
|
5533
|
+
if (gpuInfoWindow) {
|
|
5534
|
+
gpuInfoWindow.focus();
|
|
5535
|
+
return;
|
|
5536
|
+
}
|
|
5537
|
+
gpuInfoWindow = new BrowserWindow({
|
|
5538
|
+
height: 800,
|
|
5539
|
+
title: 'GPU Internals',
|
|
5540
|
+
webPreferences: {
|
|
5541
|
+
sandbox: true,
|
|
5542
|
+
spellcheck: false
|
|
5543
|
+
},
|
|
5544
|
+
width: 1200
|
|
5545
|
+
});
|
|
5546
|
+
const currentGpuInfoWindow = gpuInfoWindow;
|
|
5547
|
+
gpuInfoWindow.once('closed', () => {
|
|
5548
|
+
if (gpuInfoWindow === currentGpuInfoWindow) {
|
|
5549
|
+
gpuInfoWindow = undefined;
|
|
5550
|
+
}
|
|
5551
|
+
});
|
|
5552
|
+
gpuInfoWindow.setMenuBarVisibility(false);
|
|
5553
|
+
await gpuInfoWindow.loadURL(gpuInfoUrl);
|
|
5554
|
+
};
|
|
5555
|
+
|
|
5530
5556
|
const printPrettyError = (prettyError, prefix = '') => {
|
|
5531
5557
|
error(`${prefix}${prettyError.type}: ${prettyError.message}\n\n${prettyError.codeFrame}\n\n${prettyError.stack}\n`);
|
|
5532
5558
|
};
|
|
@@ -6870,6 +6896,7 @@ const commandMap = {
|
|
|
6870
6896
|
'ElectronWindow.executeWindowFunction': executeWindowFunction,
|
|
6871
6897
|
'ElectronWindow.getFocusedWindowId': getFocusedWindowId,
|
|
6872
6898
|
'ElectronWindow.getZoom': getZoom,
|
|
6899
|
+
'ElectronWindowGpuInfo.open': open,
|
|
6873
6900
|
'ElectronWindowProcessExplorer.open2': open2,
|
|
6874
6901
|
'Exit.exit': exit,
|
|
6875
6902
|
'GetWindowId.getWindowId': getWindowId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/main-process",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"lvce-editor",
|
|
6
6
|
"electron"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"type": "module",
|
|
15
15
|
"main": "dist/mainProcessMain.js",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"electron": "
|
|
17
|
+
"electron": "43.1.0"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=22"
|