@wailsio/runtime 3.0.0-alpha.76 → 3.0.0-alpha.77
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/window.js +7 -0
- package/package.json +1 -1
- package/types/window.d.ts +4 -0
package/dist/window.js
CHANGED
|
@@ -63,6 +63,7 @@ const ZoomOutMethod = 47;
|
|
|
63
63
|
const ZoomResetMethod = 48;
|
|
64
64
|
const SnapAssistMethod = 49;
|
|
65
65
|
const WindowDropZoneDropped = 50;
|
|
66
|
+
const PrintMethod = 51;
|
|
66
67
|
function getDropzoneElement(element) {
|
|
67
68
|
if (!element) {
|
|
68
69
|
return null;
|
|
@@ -491,6 +492,12 @@ class Window {
|
|
|
491
492
|
SnapAssist() {
|
|
492
493
|
return this[callerSym](SnapAssistMethod);
|
|
493
494
|
}
|
|
495
|
+
/**
|
|
496
|
+
* Opens the print dialog for the window.
|
|
497
|
+
*/
|
|
498
|
+
Print() {
|
|
499
|
+
return this[callerSym](PrintMethod);
|
|
500
|
+
}
|
|
494
501
|
}
|
|
495
502
|
/**
|
|
496
503
|
* The window within which the script is running.
|
package/package.json
CHANGED
package/types/window.d.ts
CHANGED
|
@@ -298,6 +298,10 @@ declare class Window {
|
|
|
298
298
|
*/
|
|
299
299
|
HandlePlatformFileDrop(filenames: string[], x: number, y: number): void;
|
|
300
300
|
SnapAssist(): Promise<void>;
|
|
301
|
+
/**
|
|
302
|
+
* Opens the print dialog for the window.
|
|
303
|
+
*/
|
|
304
|
+
Print(): Promise<void>;
|
|
301
305
|
}
|
|
302
306
|
/**
|
|
303
307
|
* The window within which the script is running.
|