@lvce-editor/main-process 6.9.0 → 6.10.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.
@@ -5017,6 +5017,9 @@ const toggleDevtools = browserWindow => {
5017
5017
  }
5018
5018
  browserWindow.webContents.openDevTools(devtoolsOptions);
5019
5019
  };
5020
+ const toggleFullScreen = browserWindow => {
5021
+ browserWindow.setFullScreen(!browserWindow.isFullScreen());
5022
+ };
5020
5023
  const executeWindowFunction = (browserWindowId, key) => {
5021
5024
  const browserWindow = getBrowserWindow(browserWindowId);
5022
5025
  if (!browserWindow) {
@@ -5026,6 +5029,10 @@ const executeWindowFunction = (browserWindowId, key) => {
5026
5029
  toggleDevtools(browserWindow);
5027
5030
  return;
5028
5031
  }
5032
+ if (key === 'toggleFullScreen') {
5033
+ toggleFullScreen(browserWindow);
5034
+ return;
5035
+ }
5029
5036
  browserWindow[key]();
5030
5037
  };
5031
5038
  const executeWebContentsFunction = (browserWindowId, key, ...args) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-process",
3
- "version": "6.9.0",
3
+ "version": "6.10.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": "43.1.0"
17
+ "electron": "43.1.1"
18
18
  },
19
19
  "engines": {
20
20
  "node": ">=22"