@christianriedl/utils 1.0.78 → 1.0.79
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/appState.d.ts +2 -2
- package/dist/appState.js +2 -2
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/appState.d.ts
CHANGED
|
@@ -25,6 +25,6 @@ export declare class AppState implements IAppState {
|
|
|
25
25
|
setBrowser(window: Window): string;
|
|
26
26
|
log(logger: ILogger, logLevel: LogLevel): void;
|
|
27
27
|
watch(logger: ILogger, logLevel: LogLevel): void;
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
setFullScreen(element: HTMLElement): Promise<boolean>;
|
|
29
|
+
exitFullScreen(): Promise<boolean>;
|
|
30
30
|
}
|
package/dist/appState.js
CHANGED
|
@@ -127,7 +127,7 @@ export class AppState {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
async
|
|
130
|
+
async setFullScreen(element) {
|
|
131
131
|
if (element.requestFullscreen) {
|
|
132
132
|
await element.requestFullscreen();
|
|
133
133
|
this.fullScreen.value = !!window.document.fullscreenElement;
|
|
@@ -141,7 +141,7 @@ export class AppState {
|
|
|
141
141
|
this.fullScreen.value = true;
|
|
142
142
|
return false;
|
|
143
143
|
}
|
|
144
|
-
async
|
|
144
|
+
async exitFullScreen() {
|
|
145
145
|
if (window.document.exitFullscreen) {
|
|
146
146
|
await window.document.exitFullscreen();
|
|
147
147
|
this.fullScreen.value = !!window.document.fullscreenElement;
|
package/dist/types.d.ts
CHANGED
|
@@ -94,8 +94,8 @@ export interface IAppState extends IAppInfo {
|
|
|
94
94
|
navigate: Ref<((direction: EDirection) => void) | null>;
|
|
95
95
|
log(logger: ILogger, logLevel: LogLevel): void;
|
|
96
96
|
watch(logger: ILogger, logLevel: LogLevel): void;
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
setFullScreen(element: HTMLElement): Promise<boolean>;
|
|
98
|
+
exitFullScreen(): Promise<boolean>;
|
|
99
99
|
}
|
|
100
100
|
export type ItemType = string | number | boolean;
|
|
101
101
|
export interface IConfigItem {
|