@@ -310,21 +310,27 @@ interface DelayOptions extends AudioNodeOptions {
310310 maxDelayTime?: number;
311311}
312312
313- interface DeviceAccelerationDict {
313+ interface DeviceLightEventInit extends EventInit {
314+ value?: number;
315+ }
316+
317+ interface DeviceMotionEventAccelerationInit {
314318 x?: number | null;
315319 y?: number | null;
316320 z?: number | null;
317321}
318322
319- interface DeviceLightEventInit extends EventInit {
320- value?: number;
323+ interface DeviceMotionEventInit extends EventInit {
324+ acceleration?: DeviceMotionEventAccelerationInit;
325+ accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;
326+ interval?: number;
327+ rotationRate?: DeviceMotionEventRotationRateInit;
321328}
322329
323- interface DeviceMotionEventInit extends EventInit {
324- acceleration?: DeviceAccelerationDict | null;
325- accelerationIncludingGravity?: DeviceAccelerationDict | null;
326- interval?: number | null;
327- rotationRate?: DeviceRotationRateDict | null;
330+ interface DeviceMotionEventRotationRateInit {
331+ alpha?: number | null;
332+ beta?: number | null;
333+ gamma?: number | null;
328334}
329335
330336interface DeviceOrientationEventInit extends EventInit {
@@ -339,12 +345,6 @@ interface DevicePermissionDescriptor extends PermissionDescriptor {
339345 name: "camera" | "microphone" | "speaker";
340346}
341347
342- interface DeviceRotationRateDict {
343- alpha?: number | null;
344- beta?: number | null;
345- gamma?: number | null;
346- }
347-
348348interface DocumentTimelineOptions {
349349 originTime?: number;
350350}
@@ -4091,30 +4091,40 @@ declare var DeviceLightEvent: {
40914091
40924092/** The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. */
40934093interface DeviceMotionEvent extends Event {
4094- readonly acceleration: DeviceAcceleration | null;
4095- readonly accelerationIncludingGravity: DeviceAcceleration | null;
4096- readonly interval: number | null;
4097- readonly rotationRate: DeviceRotationRate | null;
4098- initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, acceleration: DeviceAccelerationDict | null, accelerationIncludingGravity: DeviceAccelerationDict | null, rotationRate: DeviceRotationRateDict | null, interval: number | null): void;
4094+ readonly acceleration: DeviceMotionEventAcceleration | null;
4095+ readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
4096+ readonly interval: number;
4097+ readonly rotationRate: DeviceMotionEventRotationRate | null;
40994098}
41004099
41014100declare var DeviceMotionEvent: {
41024101 prototype: DeviceMotionEvent;
4103- new(typeArg : string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
4102+ new(type : string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
41044103};
41054104
4105+ interface DeviceMotionEventAcceleration {
4106+ readonly x: number | null;
4107+ readonly y: number | null;
4108+ readonly z: number | null;
4109+ }
4110+
4111+ interface DeviceMotionEventRotationRate {
4112+ readonly alpha: number | null;
4113+ readonly beta: number | null;
4114+ readonly gamma: number | null;
4115+ }
4116+
41064117/** The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. */
41074118interface DeviceOrientationEvent extends Event {
41084119 readonly absolute: boolean;
41094120 readonly alpha: number | null;
41104121 readonly beta: number | null;
41114122 readonly gamma: number | null;
4112- initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: boolean, alpha: number | null, beta: number | null, gamma: number | null, absolute: boolean): void;
41134123}
41144124
41154125declare var DeviceOrientationEvent: {
41164126 prototype: DeviceOrientationEvent;
4117- new(typeArg : string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
4127+ new(type : string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
41184128};
41194129
41204130/** Provides information about the rate at which the device is rotating around all three axes. */
@@ -16937,6 +16947,7 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
1693716947 "devicelight": DeviceLightEvent;
1693816948 "devicemotion": DeviceMotionEvent;
1693916949 "deviceorientation": DeviceOrientationEvent;
16950+ "deviceorientationabsolute": DeviceOrientationEvent;
1694016951 "drag": DragEvent;
1694116952 "dragend": DragEvent;
1694216953 "dragenter": DragEvent;
@@ -17059,6 +17070,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1705917070 ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;
1706017071 ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
1706117072 ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
17073+ ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
1706217074 onmousewheel: ((this: Window, ev: Event) => any) | null;
1706317075 onmsgesturechange: ((this: Window, ev: Event) => any) | null;
1706417076 onmsgesturedoubletap: ((this: Window, ev: Event) => any) | null;
@@ -18054,6 +18066,7 @@ declare var oncompassneedscalibration: ((this: Window, ev: Event) => any) | null
1805418066declare var ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;
1805518067declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
1805618068declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
18069+ declare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
1805718070declare var onmousewheel: ((this: Window, ev: Event) => any) | null;
1805818071declare var onmsgesturechange: ((this: Window, ev: Event) => any) | null;
1805918072declare var onmsgesturedoubletap: ((this: Window, ev: Event) => any) | null;
0 commit comments