@wailsio/runtime 3.0.0-alpha.27 → 3.0.0-alpha.28
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 +10 -4
- package/src/screens.js +3 -6
- package/types/screens.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wailsio/runtime",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "3.0.0-alpha.28",
|
|
4
5
|
"description": "Wails Runtime",
|
|
5
|
-
"
|
|
6
|
-
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
9
|
+
"require": "./src/index.js",
|
|
10
|
+
"import": "./src/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
7
13
|
"repository": {
|
|
8
14
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/wailsapp/wails.git"
|
|
15
|
+
"url": "git+https://github.com/wailsapp/wails.git"
|
|
10
16
|
},
|
|
11
17
|
"scripts": {
|
|
12
18
|
"prebuild:types": "rimraf ./types",
|
package/src/screens.js
CHANGED
|
@@ -16,7 +16,6 @@ The electron alternative for Go
|
|
|
16
16
|
* @property {number} Height - The height.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
/**
|
|
21
20
|
* @typedef {Object} Rect
|
|
22
21
|
* @property {number} X - The X coordinate of the origin.
|
|
@@ -25,10 +24,9 @@ The electron alternative for Go
|
|
|
25
24
|
* @property {number} Height - The height of the rectangle.
|
|
26
25
|
*/
|
|
27
26
|
|
|
28
|
-
|
|
29
27
|
/**
|
|
30
28
|
* @typedef {Object} Screen
|
|
31
|
-
* @property {string}
|
|
29
|
+
* @property {string} ID - Unique identifier for the screen.
|
|
32
30
|
* @property {string} Name - Human readable name of the screen.
|
|
33
31
|
* @property {number} ScaleFactor - The scale factor of the screen (DPI/96). 1 = standard DPI, 2 = HiDPI (Retina), etc.
|
|
34
32
|
* @property {number} X - The X coordinate of the screen.
|
|
@@ -42,9 +40,8 @@ The electron alternative for Go
|
|
|
42
40
|
* @property {number} Rotation - The rotation of the screen.
|
|
43
41
|
*/
|
|
44
42
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const call = newRuntimeCallerWithID(objectNames.Screens, '');
|
|
43
|
+
import { newRuntimeCallerWithID, objectNames } from "./runtime";
|
|
44
|
+
const call = newRuntimeCallerWithID(objectNames.Screens, "");
|
|
48
45
|
|
|
49
46
|
const getAll = 0;
|
|
50
47
|
const getPrimary = 1;
|