@@ -13760,14 +13760,11 @@ 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;
13766
13767
readonly width: number;
13767
- lockOrientation(orientations: OrientationLockType | OrientationLockType[]): boolean;
13768
- msLockOrientation(orientations: string | string[]): boolean;
13769
- msUnlockOrientation(): void;
13770
- unlockOrientation(): void;
13771
13768
addEventListener<K extends keyof ScreenEventMap>(type: K, listener: (this: Screen, ev: ScreenEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13772
13769
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
13773
13770
removeEventListener<K extends keyof ScreenEventMap>(type: K, listener: (this: Screen, ev: ScreenEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -13779,6 +13776,27 @@ declare var Screen: {
13779
13776
new(): Screen;
13780
13777
};
13781
13778
13779
+ interface ScreenOrientationEventMap {
13780
+ "change": Event;
13781
+ }
13782
+
13783
+ interface ScreenOrientation extends EventTarget {
13784
+ readonly angle: number;
13785
+ onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
13786
+ readonly type: OrientationType;
13787
+ lock(orientation: OrientationLockType): Promise<void>;
13788
+ unlock(): void;
13789
+ addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13790
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
13791
+ removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
13792
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
13793
+ }
13794
+
13795
+ declare var ScreenOrientation: {
13796
+ prototype: ScreenOrientation;
13797
+ new(): ScreenOrientation;
13798
+ };
13799
+
13782
13800
interface ScriptProcessorNodeEventMap {
13783
13801
"audioprocess": AudioProcessingEvent;
13784
13802
}
@@ -17143,7 +17161,6 @@ type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
17143
17161
type MouseWheelEvent = WheelEvent;
17144
17162
type ScrollRestoration = "auto" | "manual";
17145
17163
type InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend";
17146
- type OrientationLockType = "any" | "natural" | "portrait" | "landscape" | "portrait-primary" | "portrait-secondary" | "landscape-primary"| "landscape-secondary";
17147
17164
type IDBValidKey = number | string | Date | BufferSource | IDBArrayKey;
17148
17165
type AlgorithmIdentifier = string | Algorithm;
17149
17166
type MutationRecordType = "attributes" | "characterData" | "childList";
@@ -17225,6 +17242,8 @@ type NavigationReason = "up" | "down" | "left" | "right";
17225
17242
type NavigationType = "navigate" | "reload" | "back_forward" | "prerender";
17226
17243
type NotificationDirection = "auto" | "ltr" | "rtl";
17227
17244
type NotificationPermission = "default" | "denied" | "granted";
17245
+ type OrientationLockType = "any" | "natural" | "landscape" | "portrait" | "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary";
17246
+ type OrientationType = "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary";
17228
17247
type OscillatorType = "sine" | "square" | "sawtooth" | "triangle" | "custom";
17229
17248
type OverSampleType = "none" | "2x" | "4x";
17230
17249
type PanningModelType = "equalpower" | "HRTF";
0 commit comments