@wailsio/runtime 3.0.0-alpha.64 → 3.0.0-alpha.66

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.
Files changed (142) hide show
  1. package/{src → dist}/application.js +2 -16
  2. package/dist/browser.js +20 -0
  3. package/dist/callable.js +144 -0
  4. package/dist/calls.js +194 -0
  5. package/dist/cancellable.js +792 -0
  6. package/dist/clipboard.js +30 -0
  7. package/dist/contextmenu.js +80 -0
  8. package/{src → dist}/create.js +2 -33
  9. package/dist/dialogs.js +134 -0
  10. package/dist/drag.js +222 -0
  11. package/dist/event_types.js +229 -0
  12. package/dist/events.js +101 -0
  13. package/dist/flags.js +23 -0
  14. package/dist/index.js +38 -0
  15. package/dist/listener.js +44 -0
  16. package/{src → dist}/nanoid.js +7 -11
  17. package/dist/runtime.js +63 -0
  18. package/dist/screens.js +38 -0
  19. package/dist/system.js +116 -0
  20. package/{src → dist}/utils.js +29 -20
  21. package/dist/window.js +438 -0
  22. package/{src → dist}/wml.js +51 -122
  23. package/package.json +43 -19
  24. package/types/application.d.ts +3 -10
  25. package/types/browser.d.ts +4 -4
  26. package/types/callable.d.ts +3 -0
  27. package/types/calls.d.ts +43 -49
  28. package/types/cancellable.d.ts +434 -0
  29. package/types/clipboard.d.ts +6 -5
  30. package/types/contextmenu.d.ts +1 -0
  31. package/types/create.d.ts +6 -27
  32. package/types/dialogs.d.ts +99 -143
  33. package/types/drag.d.ts +1 -0
  34. package/types/event_types.d.ts +218 -219
  35. package/types/events.d.ts +45 -250
  36. package/types/flags.d.ts +3 -3
  37. package/types/index.d.ts +16 -14
  38. package/types/listener.d.ts +9 -0
  39. package/types/nanoid.d.ts +1 -1
  40. package/types/runtime.d.ts +18 -26
  41. package/types/screens.d.ts +42 -76
  42. package/types/system.d.ts +50 -79
  43. package/types/utils.d.ts +15 -8
  44. package/types/window.d.ts +110 -225
  45. package/types/wml.d.ts +2 -6
  46. package/docs/.nojekyll +0 -1
  47. package/docs/assets/highlight.css +0 -22
  48. package/docs/assets/icons.js +0 -15
  49. package/docs/assets/icons.svg +0 -1
  50. package/docs/assets/main.js +0 -59
  51. package/docs/assets/navigation.js +0 -1
  52. package/docs/assets/search.js +0 -1
  53. package/docs/assets/style.css +0 -1415
  54. package/docs/classes/Call.RuntimeError.html +0 -11
  55. package/docs/classes/Events.WailsEvent.html +0 -4
  56. package/docs/functions/Application.Hide.html +0 -2
  57. package/docs/functions/Application.Quit.html +0 -2
  58. package/docs/functions/Application.Show.html +0 -2
  59. package/docs/functions/Browser.OpenURL.html +0 -3
  60. package/docs/functions/Call.ByID.html +0 -8
  61. package/docs/functions/Call.ByName.html +0 -6
  62. package/docs/functions/Call.Call.html +0 -11
  63. package/docs/functions/Clipboard.SetText.html +0 -6
  64. package/docs/functions/Clipboard.Text.html +0 -3
  65. package/docs/functions/Create.Any.html +0 -2
  66. package/docs/functions/Create.Array.html +0 -4
  67. package/docs/functions/Create.ByteSlice.html +0 -3
  68. package/docs/functions/Create.Map.html +0 -4
  69. package/docs/functions/Create.Nullable.html +0 -3
  70. package/docs/functions/Create.Struct.html +0 -3
  71. package/docs/functions/Dialogs.Error.html +0 -5
  72. package/docs/functions/Dialogs.Info.html +0 -5
  73. package/docs/functions/Dialogs.OpenFile.html +0 -3
  74. package/docs/functions/Dialogs.Question.html +0 -5
  75. package/docs/functions/Dialogs.SaveFile.html +0 -3
  76. package/docs/functions/Dialogs.Warning.html +0 -5
  77. package/docs/functions/Events.Emit.html +0 -6
  78. package/docs/functions/Events.Off.html +0 -4
  79. package/docs/functions/Events.OffAll.html +0 -3
  80. package/docs/functions/Events.On.html +0 -7
  81. package/docs/functions/Events.OnMultiple.html +0 -8
  82. package/docs/functions/Events.Once.html +0 -7
  83. package/docs/functions/Events.setup.html +0 -1
  84. package/docs/functions/Flags.GetFlag.html +0 -6
  85. package/docs/functions/Screens.GetAll.html +0 -3
  86. package/docs/functions/Screens.GetCurrent.html +0 -3
  87. package/docs/functions/Screens.GetPrimary.html +0 -3
  88. package/docs/functions/System.Capabilities.html +0 -4
  89. package/docs/functions/System.Environment.html +0 -5
  90. package/docs/functions/System.IsAMD64.html +0 -3
  91. package/docs/functions/System.IsARM.html +0 -3
  92. package/docs/functions/System.IsARM64.html +0 -5
  93. package/docs/functions/System.IsDarkMode.html +0 -5
  94. package/docs/functions/System.IsDebug.html +0 -1
  95. package/docs/functions/System.IsLinux.html +0 -3
  96. package/docs/functions/System.IsMac.html +0 -3
  97. package/docs/functions/System.IsWindows.html +0 -3
  98. package/docs/functions/System.invoke.html +0 -1
  99. package/docs/functions/WML.Enable.html +0 -2
  100. package/docs/functions/WML.Reload.html +0 -2
  101. package/docs/functions/init.html +0 -1
  102. package/docs/index.html +0 -5
  103. package/docs/interfaces/Call.CallOptions.html +0 -7
  104. package/docs/interfaces/Dialogs.Button.html +0 -7
  105. package/docs/interfaces/Dialogs.FileFilter.html +0 -5
  106. package/docs/interfaces/Dialogs.MessageDialogOptions.html +0 -9
  107. package/docs/interfaces/Dialogs.OpenFileDialogOptions.html +0 -33
  108. package/docs/interfaces/Dialogs.SaveFileDialogOptions.html +0 -35
  109. package/docs/interfaces/Screens.Rect.html +0 -9
  110. package/docs/interfaces/Screens.Screen.html +0 -25
  111. package/docs/interfaces/Screens.Size.html +0 -5
  112. package/docs/interfaces/System.EnvironmentInfo.html +0 -11
  113. package/docs/interfaces/System.OSInfo.html +0 -9
  114. package/docs/modules/Application.html +0 -4
  115. package/docs/modules/Browser.html +0 -2
  116. package/docs/modules/Call.html +0 -6
  117. package/docs/modules/Clipboard.html +0 -3
  118. package/docs/modules/Create.html +0 -7
  119. package/docs/modules/Dialogs.html +0 -12
  120. package/docs/modules/Events.html +0 -10
  121. package/docs/modules/Flags.html +0 -2
  122. package/docs/modules/Screens.html +0 -7
  123. package/docs/modules/System.html +0 -14
  124. package/docs/modules/WML.html +0 -3
  125. package/docs/modules.html +0 -14
  126. package/docs/variables/Events.Types.html +0 -1
  127. package/docs/variables/Window.html +0 -2
  128. package/src/browser.js +0 -24
  129. package/src/calls.js +0 -221
  130. package/src/clipboard.js +0 -35
  131. package/src/contextmenu.js +0 -97
  132. package/src/dialogs.js +0 -200
  133. package/src/drag.js +0 -119
  134. package/src/event_types.js +0 -219
  135. package/src/events.js +0 -140
  136. package/src/flags.js +0 -25
  137. package/src/index.js +0 -60
  138. package/src/runtime.js +0 -92
  139. package/src/screens.js +0 -71
  140. package/src/system.js +0 -143
  141. package/src/window.js +0 -638
  142. package/tsconfig.json +0 -20
package/src/window.js DELETED
@@ -1,638 +0,0 @@
1
- /*
2
- _ __ _ __
3
- | | / /___ _(_) /____
4
- | | /| / / __ `/ / / ___/
5
- | |/ |/ / /_/ / / (__ )
6
- |__/|__/\__,_/_/_/____/
7
- The electron alternative for Go
8
- (c) Lea Anthony 2019-present
9
- */
10
-
11
- /* jshint esversion: 9 */
12
-
13
- // Import screen jsdoc definition from ./screens.js
14
- /**
15
- * @typedef {import("./screens").Screen} Screen
16
- */
17
-
18
-
19
- /**
20
- * A record describing the position of a window.
21
- *
22
- * @typedef {Object} Position
23
- * @property {number} x - The horizontal position of the window
24
- * @property {number} y - The vertical position of the window
25
- */
26
-
27
-
28
- /**
29
- * A record describing the size of a window.
30
- *
31
- * @typedef {Object} Size
32
- * @property {number} width - The width of the window
33
- * @property {number} height - The height of the window
34
- */
35
-
36
-
37
- import {newRuntimeCallerWithID, objectNames} from "./runtime";
38
-
39
- const PositionMethod = 0;
40
- const CenterMethod = 1;
41
- const CloseMethod = 2;
42
- const DisableSizeConstraintsMethod = 3;
43
- const EnableSizeConstraintsMethod = 4;
44
- const FocusMethod = 5;
45
- const ForceReloadMethod = 6;
46
- const FullscreenMethod = 7;
47
- const GetScreenMethod = 8;
48
- const GetZoomMethod = 9;
49
- const HeightMethod = 10;
50
- const HideMethod = 11;
51
- const IsFocusedMethod = 12;
52
- const IsFullscreenMethod = 13;
53
- const IsMaximisedMethod = 14;
54
- const IsMinimisedMethod = 15;
55
- const MaximiseMethod = 16;
56
- const MinimiseMethod = 17;
57
- const NameMethod = 18;
58
- const OpenDevToolsMethod = 19;
59
- const RelativePositionMethod = 20;
60
- const ReloadMethod = 21;
61
- const ResizableMethod = 22;
62
- const RestoreMethod = 23;
63
- const SetPositionMethod = 24;
64
- const SetAlwaysOnTopMethod = 25;
65
- const SetBackgroundColourMethod = 26;
66
- const SetFramelessMethod = 27;
67
- const SetFullscreenButtonEnabledMethod = 28;
68
- const SetMaxSizeMethod = 29;
69
- const SetMinSizeMethod = 30;
70
- const SetRelativePositionMethod = 31;
71
- const SetResizableMethod = 32;
72
- const SetSizeMethod = 33;
73
- const SetTitleMethod = 34;
74
- const SetZoomMethod = 35;
75
- const ShowMethod = 36;
76
- const SizeMethod = 37;
77
- const ToggleFullscreenMethod = 38;
78
- const ToggleMaximiseMethod = 39;
79
- const UnFullscreenMethod = 40;
80
- const UnMaximiseMethod = 41;
81
- const UnMinimiseMethod = 42;
82
- const WidthMethod = 43;
83
- const ZoomMethod = 44;
84
- const ZoomInMethod = 45;
85
- const ZoomOutMethod = 46;
86
- const ZoomResetMethod = 47;
87
-
88
- /**
89
- * @type {symbol}
90
- */
91
- const caller = Symbol();
92
-
93
- export class Window {
94
- /**
95
- * Initialises a window object with the specified name.
96
- *
97
- * @private
98
- * @param {string} name - The name of the target window.
99
- */
100
- constructor(name = '') {
101
- /**
102
- * @private
103
- * @name {@link caller}
104
- * @type {(...args: any[]) => any}
105
- */
106
- this[caller] = newRuntimeCallerWithID(objectNames.Window, name)
107
-
108
- // bind instance method to make them easily usable in event handlers
109
- for (const method of Object.getOwnPropertyNames(Window.prototype)) {
110
- if (
111
- method !== "constructor"
112
- && typeof this[method] === "function"
113
- ) {
114
- this[method] = this[method].bind(this);
115
- }
116
- }
117
- }
118
-
119
- /**
120
- * Gets the specified window.
121
- *
122
- * @public
123
- * @param {string} name - The name of the window to get.
124
- * @return {Window} - The corresponding window object.
125
- */
126
- Get(name) {
127
- return new Window(name);
128
- }
129
-
130
- /**
131
- * Returns the absolute position of the window.
132
- *
133
- * @public
134
- * @return {Promise<Position>} - The current absolute position of the window.
135
- */
136
- Position() {
137
- return this[caller](PositionMethod);
138
- }
139
-
140
- /**
141
- * Centers the window on the screen.
142
- *
143
- * @public
144
- * @return {Promise<void>}
145
- */
146
- Center() {
147
- return this[caller](CenterMethod);
148
- }
149
-
150
- /**
151
- * Closes the window.
152
- *
153
- * @public
154
- * @return {Promise<void>}
155
- */
156
- Close() {
157
- return this[caller](CloseMethod);
158
- }
159
-
160
- /**
161
- * Disables min/max size constraints.
162
- *
163
- * @public
164
- * @return {Promise<void>}
165
- */
166
- DisableSizeConstraints() {
167
- return this[caller](DisableSizeConstraintsMethod);
168
- }
169
-
170
- /**
171
- * Enables min/max size constraints.
172
- *
173
- * @public
174
- * @return {Promise<void>}
175
- */
176
- EnableSizeConstraints() {
177
- return this[caller](EnableSizeConstraintsMethod);
178
- }
179
-
180
- /**
181
- * Focuses the window.
182
- *
183
- * @public
184
- * @return {Promise<void>}
185
- */
186
- Focus() {
187
- return this[caller](FocusMethod);
188
- }
189
-
190
- /**
191
- * Forces the window to reload the page assets.
192
- *
193
- * @public
194
- * @return {Promise<void>}
195
- */
196
- ForceReload() {
197
- return this[caller](ForceReloadMethod);
198
- }
199
-
200
- /**
201
- * Doc.
202
- *
203
- * @public
204
- * @return {Promise<void>}
205
- */
206
- Fullscreen() {
207
- return this[caller](FullscreenMethod);
208
- }
209
-
210
- /**
211
- * Returns the screen that the window is on.
212
- *
213
- * @public
214
- * @return {Promise<Screen>} - The screen the window is currently on
215
- */
216
- GetScreen() {
217
- return this[caller](GetScreenMethod);
218
- }
219
-
220
- /**
221
- * Returns the current zoom level of the window.
222
- *
223
- * @public
224
- * @return {Promise<number>} - The current zoom level
225
- */
226
- GetZoom() {
227
- return this[caller](GetZoomMethod);
228
- }
229
-
230
- /**
231
- * Returns the height of the window.
232
- *
233
- * @public
234
- * @return {Promise<number>} - The current height of the window
235
- */
236
- Height() {
237
- return this[caller](HeightMethod);
238
- }
239
-
240
- /**
241
- * Hides the window.
242
- *
243
- * @public
244
- * @return {Promise<void>}
245
- */
246
- Hide() {
247
- return this[caller](HideMethod);
248
- }
249
-
250
- /**
251
- * Returns true if the window is focused.
252
- *
253
- * @public
254
- * @return {Promise<boolean>} - Whether the window is currently focused
255
- */
256
- IsFocused() {
257
- return this[caller](IsFocusedMethod);
258
- }
259
-
260
- /**
261
- * Returns true if the window is fullscreen.
262
- *
263
- * @public
264
- * @return {Promise<boolean>} - Whether the window is currently fullscreen
265
- */
266
- IsFullscreen() {
267
- return this[caller](IsFullscreenMethod);
268
- }
269
-
270
- /**
271
- * Returns true if the window is maximised.
272
- *
273
- * @public
274
- * @return {Promise<boolean>} - Whether the window is currently maximised
275
- */
276
- IsMaximised() {
277
- return this[caller](IsMaximisedMethod);
278
- }
279
-
280
- /**
281
- * Returns true if the window is minimised.
282
- *
283
- * @public
284
- * @return {Promise<boolean>} - Whether the window is currently minimised
285
- */
286
- IsMinimised() {
287
- return this[caller](IsMinimisedMethod);
288
- }
289
-
290
- /**
291
- * Maximises the window.
292
- *
293
- * @public
294
- * @return {Promise<void>}
295
- */
296
- Maximise() {
297
- return this[caller](MaximiseMethod);
298
- }
299
-
300
- /**
301
- * Minimises the window.
302
- *
303
- * @public
304
- * @return {Promise<void>}
305
- */
306
- Minimise() {
307
- return this[caller](MinimiseMethod);
308
- }
309
-
310
- /**
311
- * Returns the name of the window.
312
- *
313
- * @public
314
- * @return {Promise<string>} - The name of the window
315
- */
316
- Name() {
317
- return this[caller](NameMethod);
318
- }
319
-
320
- /**
321
- * Opens the development tools pane.
322
- *
323
- * @public
324
- * @return {Promise<void>}
325
- */
326
- OpenDevTools() {
327
- return this[caller](OpenDevToolsMethod);
328
- }
329
-
330
- /**
331
- * Returns the relative position of the window to the screen.
332
- *
333
- * @public
334
- * @return {Promise<Position>} - The current relative position of the window
335
- */
336
- RelativePosition() {
337
- return this[caller](RelativePositionMethod);
338
- }
339
-
340
- /**
341
- * Reloads the page assets.
342
- *
343
- * @public
344
- * @return {Promise<void>}
345
- */
346
- Reload() {
347
- return this[caller](ReloadMethod);
348
- }
349
-
350
- /**
351
- * Returns true if the window is resizable.
352
- *
353
- * @public
354
- * @return {Promise<boolean>} - Whether the window is currently resizable
355
- */
356
- Resizable() {
357
- return this[caller](ResizableMethod);
358
- }
359
-
360
- /**
361
- * Restores the window to its previous state if it was previously minimised, maximised or fullscreen.
362
- *
363
- * @public
364
- * @return {Promise<void>}
365
- */
366
- Restore() {
367
- return this[caller](RestoreMethod);
368
- }
369
-
370
- /**
371
- * Sets the absolute position of the window.
372
- *
373
- * @public
374
- * @param {number} x - The desired horizontal absolute position of the window
375
- * @param {number} y - The desired vertical absolute position of the window
376
- * @return {Promise<void>}
377
- */
378
- SetPosition(x, y) {
379
- return this[caller](SetPositionMethod, { x, y });
380
- }
381
-
382
- /**
383
- * Sets the window to be always on top.
384
- *
385
- * @public
386
- * @param {boolean} alwaysOnTop - Whether the window should stay on top
387
- * @return {Promise<void>}
388
- */
389
- SetAlwaysOnTop(alwaysOnTop) {
390
- return this[caller](SetAlwaysOnTopMethod, { alwaysOnTop });
391
- }
392
-
393
- /**
394
- * Sets the background colour of the window.
395
- *
396
- * @public
397
- * @param {number} r - The desired red component of the window background
398
- * @param {number} g - The desired green component of the window background
399
- * @param {number} b - The desired blue component of the window background
400
- * @param {number} a - The desired alpha component of the window background
401
- * @return {Promise<void>}
402
- */
403
- SetBackgroundColour(r, g, b, a) {
404
- return this[caller](SetBackgroundColourMethod, { r, g, b, a });
405
- }
406
-
407
- /**
408
- * Removes the window frame and title bar.
409
- *
410
- * @public
411
- * @param {boolean} frameless - Whether the window should be frameless
412
- * @return {Promise<void>}
413
- */
414
- SetFrameless(frameless) {
415
- return this[caller](SetFramelessMethod, { frameless });
416
- }
417
-
418
- /**
419
- * Disables the system fullscreen button.
420
- *
421
- * @public
422
- * @param {boolean} enabled - Whether the fullscreen button should be enabled
423
- * @return {Promise<void>}
424
- */
425
- SetFullscreenButtonEnabled(enabled) {
426
- return this[caller](SetFullscreenButtonEnabledMethod, { enabled });
427
- }
428
-
429
- /**
430
- * Sets the maximum size of the window.
431
- *
432
- * @public
433
- * @param {number} width - The desired maximum width of the window
434
- * @param {number} height - The desired maximum height of the window
435
- * @return {Promise<void>}
436
- */
437
- SetMaxSize(width, height) {
438
- return this[caller](SetMaxSizeMethod, { width, height });
439
- }
440
-
441
- /**
442
- * Sets the minimum size of the window.
443
- *
444
- * @public
445
- * @param {number} width - The desired minimum width of the window
446
- * @param {number} height - The desired minimum height of the window
447
- * @return {Promise<void>}
448
- */
449
- SetMinSize(width, height) {
450
- return this[caller](SetMinSizeMethod, { width, height });
451
- }
452
-
453
- /**
454
- * Sets the relative position of the window to the screen.
455
- *
456
- * @public
457
- * @param {number} x - The desired horizontal relative position of the window
458
- * @param {number} y - The desired vertical relative position of the window
459
- * @return {Promise<void>}
460
- */
461
- SetRelativePosition(x, y) {
462
- return this[caller](SetRelativePositionMethod, { x, y });
463
- }
464
-
465
- /**
466
- * Sets whether the window is resizable.
467
- *
468
- * @public
469
- * @param {boolean} resizable - Whether the window should be resizable
470
- * @return {Promise<void>}
471
- */
472
- SetResizable(resizable) {
473
- return this[caller](SetResizableMethod, { resizable });
474
- }
475
-
476
- /**
477
- * Sets the size of the window.
478
- *
479
- * @public
480
- * @param {number} width - The desired width of the window
481
- * @param {number} height - The desired height of the window
482
- * @return {Promise<void>}
483
- */
484
- SetSize(width, height) {
485
- return this[caller](SetSizeMethod, { width, height });
486
- }
487
-
488
- /**
489
- * Sets the title of the window.
490
- *
491
- * @public
492
- * @param {string} title - The desired title of the window
493
- * @return {Promise<void>}
494
- */
495
- SetTitle(title) {
496
- return this[caller](SetTitleMethod, { title });
497
- }
498
-
499
- /**
500
- * Sets the zoom level of the window.
501
- *
502
- * @public
503
- * @param {number} zoom - The desired zoom level
504
- * @return {Promise<void>}
505
- */
506
- SetZoom(zoom) {
507
- return this[caller](SetZoomMethod, { zoom });
508
- }
509
-
510
- /**
511
- * Shows the window.
512
- *
513
- * @public
514
- * @return {Promise<void>}
515
- */
516
- Show() {
517
- return this[caller](ShowMethod);
518
- }
519
-
520
- /**
521
- * Returns the size of the window.
522
- *
523
- * @public
524
- * @return {Promise<Size>} - The current size of the window
525
- */
526
- Size() {
527
- return this[caller](SizeMethod);
528
- }
529
-
530
- /**
531
- * Toggles the window between fullscreen and normal.
532
- *
533
- * @public
534
- * @return {Promise<void>}
535
- */
536
- ToggleFullscreen() {
537
- return this[caller](ToggleFullscreenMethod);
538
- }
539
-
540
- /**
541
- * Toggles the window between maximised and normal.
542
- *
543
- * @public
544
- * @return {Promise<void>}
545
- */
546
- ToggleMaximise() {
547
- return this[caller](ToggleMaximiseMethod);
548
- }
549
-
550
- /**
551
- * Un-fullscreens the window.
552
- *
553
- * @public
554
- * @return {Promise<void>}
555
- */
556
- UnFullscreen() {
557
- return this[caller](UnFullscreenMethod);
558
- }
559
-
560
- /**
561
- * Un-maximises the window.
562
- *
563
- * @public
564
- * @return {Promise<void>}
565
- */
566
- UnMaximise() {
567
- return this[caller](UnMaximiseMethod);
568
- }
569
-
570
- /**
571
- * Un-minimises the window.
572
- *
573
- * @public
574
- * @return {Promise<void>}
575
- */
576
- UnMinimise() {
577
- return this[caller](UnMinimiseMethod);
578
- }
579
-
580
- /**
581
- * Returns the width of the window.
582
- *
583
- * @public
584
- * @return {Promise<number>} - The current width of the window
585
- */
586
- Width() {
587
- return this[caller](WidthMethod);
588
- }
589
-
590
- /**
591
- * Zooms the window.
592
- *
593
- * @public
594
- * @return {Promise<void>}
595
- */
596
- Zoom() {
597
- return this[caller](ZoomMethod);
598
- }
599
-
600
- /**
601
- * Increases the zoom level of the webview content.
602
- *
603
- * @public
604
- * @return {Promise<void>}
605
- */
606
- ZoomIn() {
607
- return this[caller](ZoomInMethod);
608
- }
609
-
610
- /**
611
- * Decreases the zoom level of the webview content.
612
- *
613
- * @public
614
- * @return {Promise<void>}
615
- */
616
- ZoomOut() {
617
- return this[caller](ZoomOutMethod);
618
- }
619
-
620
- /**
621
- * Resets the zoom level of the webview content.
622
- *
623
- * @public
624
- * @return {Promise<void>}
625
- */
626
- ZoomReset() {
627
- return this[caller](ZoomResetMethod);
628
- }
629
- }
630
-
631
- /**
632
- * The window within which the script is running.
633
- *
634
- * @type {Window}
635
- */
636
- const thisWindow = new Window('');
637
-
638
- export default thisWindow;
package/tsconfig.json DELETED
@@ -1,20 +0,0 @@
1
- {
2
- "include": ["./src/**/*"],
3
- "compilerOptions": {
4
- "lib": [
5
- "dom",
6
- "dom.iterable",
7
- "esnext"
8
- ],
9
- "allowJs": true,
10
- "declaration": true,
11
- "declarationMap": true,
12
- "emitDeclarationOnly": true,
13
- "esModuleInterop": true,
14
- "module": "esnext",
15
- "moduleResolution": "bundler",
16
- "outDir": "dist",
17
- "strict": true,
18
- "target": "es6",
19
- }
20
- }