@@ -13760,6 +13760,7 @@ interface Screen extends EventTarget {
13760
13760
readonly logicalYDPI: number;
13761
13761
readonly msOrientation: string;
13762
13762
onmsorientationchange: ((this: Screen, ev: Event) => any) | null;
13763
+ readonly orientation: ScreenOrientation;
13763
13764
readonly pixelDepth: number;
13764
13765
readonly systemXDPI: number;
13765
13766
readonly systemYDPI: number;
@@ -13779,6 +13780,27 @@ declare var Screen: {
13779
13780
new(): Screen;
13780
13781
};
13781
13782
13783
+ interface ScreenOrientationEventMap {
13784
+ "change": Event;
13785
+ }
13786
+
13787
+ interface ScreenOrientation extends EventTarget {
13788
+ readonly angle: number;
13789
+ onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
13790
+ readonly type: OrientationType;
13791
+ lock(orientation: OrientationLockType): Promise<void>;
13792
+ unlock(): void;
13793
+ addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13794
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
13795
+ removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
13796
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
13797
+ }
13798
+
13799
+ declare var ScreenOrientation: {
13800
+ prototype: ScreenOrientation;
13801
+ new(): ScreenOrientation;
13802
+ };
13803
+
13782
13804
interface ScriptProcessorNodeEventMap {
13783
13805
"audioprocess": AudioProcessingEvent;
13784
13806
}
@@ -17225,6 +17247,8 @@ type NavigationReason = "up" | "down" | "left" | "right";
17225
17247
type NavigationType = "navigate" | "reload" | "back_forward" | "prerender";
17226
17248
type NotificationDirection = "auto" | "ltr" | "rtl";
17227
17249
type NotificationPermission = "default" | "denied" | "granted";
17250
+ type OrientationLockType = "any" | "natural" | "landscape" | "portrait" | "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary";
17251
+ type OrientationType = "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary";
17228
17252
type OscillatorType = "sine" | "square" | "sawtooth" | "triangle" | "custom";
17229
17253
type OverSampleType = "none" | "2x" | "4x";
17230
17254
type PanningModelType = "equalpower" | "HRTF";
0 commit comments