electron-types 43.7.5 → 43.7.6
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 +3 -3
- package/dist/electron.d.ts +16 -8
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,11 +14,11 @@ The official `electron` package is ~200MB because it includes the Electron binar
|
|
|
14
14
|
Since this package only provides TypeScript types, install it as a dev dependency. **Install the version that matches your Electron version** (see [Version Matching](#version-matching)):
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install -D electron-types@43.7.
|
|
17
|
+
npm install -D electron-types@43.7.6
|
|
18
18
|
# or
|
|
19
|
-
yarn add -D electron-types@43.7.
|
|
19
|
+
yarn add -D electron-types@43.7.6
|
|
20
20
|
# or
|
|
21
|
-
pnpm add -D electron-types@43.7.
|
|
21
|
+
pnpm add -D electron-types@43.7.6
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 43.7.
|
|
1
|
+
// Type definitions for Electron 43.7.6
|
|
2
2
|
// Project: http://electronjs.org/
|
|
3
3
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
|
4
4
|
// Definitions: https://github.com/electron/typescript-definitions
|
|
@@ -3355,7 +3355,10 @@ declare namespace Electron {
|
|
|
3355
3355
|
* Makes the window ignore all mouse events.
|
|
3356
3356
|
*
|
|
3357
3357
|
* All mouse events happened in this window will be passed to the window below this
|
|
3358
|
-
* window, but if this window has focus, it will still receive keyboard events.
|
|
3358
|
+
* window, but if this window has focus, it will still receive keyboard events. On
|
|
3359
|
+
* Linux this is supported on both X11 and Wayland. On X11 the X server has applied
|
|
3360
|
+
* the window's new input shape when the call returns; on Wayland the new input
|
|
3361
|
+
* region is applied with the window's next frame.
|
|
3359
3362
|
*/
|
|
3360
3363
|
setIgnoreMouseEvents(ignore: boolean, options?: IgnoreMouseEventsOptions): void;
|
|
3361
3364
|
/**
|
|
@@ -6145,7 +6148,10 @@ declare namespace Electron {
|
|
|
6145
6148
|
* Makes the window ignore all mouse events.
|
|
6146
6149
|
*
|
|
6147
6150
|
* All mouse events happened in this window will be passed to the window below this
|
|
6148
|
-
* window, but if this window has focus, it will still receive keyboard events.
|
|
6151
|
+
* window, but if this window has focus, it will still receive keyboard events. On
|
|
6152
|
+
* Linux this is supported on both X11 and Wayland. On X11 the X server has applied
|
|
6153
|
+
* the window's new input shape when the call returns; on Wayland the new input
|
|
6154
|
+
* region is applied with the window's next frame.
|
|
6149
6155
|
*/
|
|
6150
6156
|
setIgnoreMouseEvents(ignore: boolean, options?: IgnoreMouseEventsOptions): void;
|
|
6151
6157
|
/**
|
|
@@ -18646,7 +18652,8 @@ declare namespace Electron {
|
|
|
18646
18652
|
*/
|
|
18647
18653
|
setUserAgent(userAgent: string): void;
|
|
18648
18654
|
/**
|
|
18649
|
-
* Sets the maximum and minimum pinch-to-zoom level.
|
|
18655
|
+
* Sets the maximum and minimum pinch-to-zoom level. The page keeps its normal
|
|
18656
|
+
* scale until the user pinches; a `minimumLevel` below 1 only allows zooming out.
|
|
18650
18657
|
*
|
|
18651
18658
|
* > [!NOTE] Visual zoom is disabled by default in Electron. To re-enable it, call:
|
|
18652
18659
|
*/
|
|
@@ -18678,14 +18685,15 @@ declare namespace Electron {
|
|
|
18678
18685
|
* Changes the zoom factor to the specified factor. Zoom factor is zoom percent
|
|
18679
18686
|
* divided by 100, so 300% = 3.0.
|
|
18680
18687
|
*
|
|
18681
|
-
* The factor must be greater than 0.0.
|
|
18688
|
+
* The factor must be greater than 0.0. Values outside the range Chromium can
|
|
18689
|
+
* display (0.25 to 5.0) are clamped to it.
|
|
18682
18690
|
*/
|
|
18683
18691
|
setZoomFactor(factor: number): void;
|
|
18684
18692
|
/**
|
|
18685
18693
|
* Changes the zoom level to the specified level. The original size is 0 and each
|
|
18686
|
-
* increment above or below represents zooming 20% larger or smaller
|
|
18687
|
-
*
|
|
18688
|
-
*
|
|
18694
|
+
* increment above or below represents zooming 20% larger or smaller. The formula
|
|
18695
|
+
* for this is `scale := 1.2 ^ level`, and the level is clamped to the range
|
|
18696
|
+
* Chromium can display (25% to 500%, about -7.6 to 8.8).
|
|
18689
18697
|
*
|
|
18690
18698
|
* > [!NOTE] The zoom policy at the Chromium level is same-origin, meaning that the
|
|
18691
18699
|
* zoom level for a specific domain propagates across all instances of windows with
|
package/dist/version.json
CHANGED