|
@@ -1,18 +1,11 @@
|
|
// Mixins
|
|
// Mixins
|
|
interface Window {
|
|
interface Window {
|
|
- mozIndexedDB(func: any): any;
|
|
|
|
- webkitIndexedDB(func: any): any;
|
|
|
|
|
|
+ mozIndexedDB: IDBFactory;
|
|
|
|
+ webkitIndexedDB: IDBFactory;
|
|
msIndexedDB: IDBFactory;
|
|
msIndexedDB: IDBFactory;
|
|
- IDBTransaction(func: any): any;
|
|
|
|
- webkitIDBTransaction(func: any): any;
|
|
|
|
- msIDBTransaction(func: any): any;
|
|
|
|
- IDBKeyRange(func: any): any;
|
|
|
|
- webkitIDBKeyRange(func: any): any;
|
|
|
|
- msIDBKeyRange(func: any): any;
|
|
|
|
- webkitURL: HTMLURL;
|
|
|
|
- webkitRequestAnimationFrame(func: any): any;
|
|
|
|
- mozRequestAnimationFrame(func: any): any;
|
|
|
|
- oRequestAnimationFrame(func: any): any;
|
|
|
|
|
|
+ webkitURL: URL;
|
|
|
|
+ mozRequestAnimationFrame(callback: FrameRequestCallback): number;
|
|
|
|
+ oRequestAnimationFrame(callback: FrameRequestCallback): number;
|
|
WebGLRenderingContext: WebGLRenderingContext;
|
|
WebGLRenderingContext: WebGLRenderingContext;
|
|
MSGesture: MSGesture;
|
|
MSGesture: MSGesture;
|
|
CANNON: any;
|
|
CANNON: any;
|
|
@@ -23,8 +16,8 @@ interface Window {
|
|
Math: Math;
|
|
Math: Math;
|
|
Uint8Array: Uint8ArrayConstructor;
|
|
Uint8Array: Uint8ArrayConstructor;
|
|
Float32Array: Float32ArrayConstructor;
|
|
Float32Array: Float32ArrayConstructor;
|
|
- mozURL: any;
|
|
|
|
- msURL: any;
|
|
|
|
|
|
+ mozURL: typeof URL;
|
|
|
|
+ msURL: typeof URL;
|
|
VRFrameData: any; // WebVR, from specs 1.1
|
|
VRFrameData: any; // WebVR, from specs 1.1
|
|
}
|
|
}
|
|
|
|
|
|
@@ -81,13 +74,7 @@ interface WebGLRenderingContext {
|
|
QUERY_RESULT: number;
|
|
QUERY_RESULT: number;
|
|
}
|
|
}
|
|
|
|
|
|
-interface HTMLURL {
|
|
|
|
- createObjectURL(param1: any, param2?: any): string;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
interface Document {
|
|
interface Document {
|
|
- exitFullscreen(): void;
|
|
|
|
- webkitCancelFullScreen(): void;
|
|
|
|
mozCancelFullScreen(): void;
|
|
mozCancelFullScreen(): void;
|
|
msCancelFullScreen(): void;
|
|
msCancelFullScreen(): void;
|
|
mozFullScreen: boolean;
|
|
mozFullScreen: boolean;
|
|
@@ -99,17 +86,12 @@ interface Document {
|
|
}
|
|
}
|
|
|
|
|
|
interface HTMLCanvasElement {
|
|
interface HTMLCanvasElement {
|
|
- requestPointerLock(): void;
|
|
|
|
msRequestPointerLock?(): void;
|
|
msRequestPointerLock?(): void;
|
|
mozRequestPointerLock?(): void;
|
|
mozRequestPointerLock?(): void;
|
|
webkitRequestPointerLock?(): void;
|
|
webkitRequestPointerLock?(): void;
|
|
}
|
|
}
|
|
|
|
|
|
interface CanvasRenderingContext2D {
|
|
interface CanvasRenderingContext2D {
|
|
- imageSmoothingEnabled: boolean;
|
|
|
|
- mozImageSmoothingEnabled: boolean;
|
|
|
|
- oImageSmoothingEnabled: boolean;
|
|
|
|
- webkitImageSmoothingEnabled: boolean;
|
|
|
|
msImageSmoothingEnabled: boolean;
|
|
msImageSmoothingEnabled: boolean;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -133,23 +115,16 @@ interface MouseEvent {
|
|
msMovementY: number;
|
|
msMovementY: number;
|
|
}
|
|
}
|
|
|
|
|
|
-interface MSStyleCSSProperties {
|
|
|
|
- webkitTransform: string;
|
|
|
|
- webkitTransition: string;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
interface Navigator {
|
|
interface Navigator {
|
|
getVRDisplays: () => any;
|
|
getVRDisplays: () => any;
|
|
mozGetVRDevices: (any: any) => any;
|
|
mozGetVRDevices: (any: any) => any;
|
|
- getUserMedia: any;
|
|
|
|
- webkitGetUserMedia: any;
|
|
|
|
- mozGetUserMedia: any;
|
|
|
|
- msGetUserMedia: any;
|
|
|
|
-
|
|
|
|
- getGamepads(func?: any): any;
|
|
|
|
- webkitGetGamepads(func?: any): any
|
|
|
|
- msGetGamepads(func?: any): any;
|
|
|
|
- webkitGamepads(func?: any): any;
|
|
|
|
|
|
+ webkitGetUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;
|
|
|
|
+ mozGetUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;
|
|
|
|
+ msGetUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;
|
|
|
|
+
|
|
|
|
+ webkitGetGamepads(): Gamepad[];
|
|
|
|
+ msGetGamepads(): Gamepad[];
|
|
|
|
+ webkitGamepads(): Gamepad[];
|
|
}
|
|
}
|
|
|
|
|
|
interface HTMLVideoElement {
|
|
interface HTMLVideoElement {
|
|
@@ -161,10 +136,6 @@ interface Screen {
|
|
mozOrientation: string;
|
|
mozOrientation: string;
|
|
}
|
|
}
|
|
|
|
|
|
-interface HTMLMediaElement {
|
|
|
|
- crossOrigin: string | null;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
interface Math {
|
|
interface Math {
|
|
fround(x: number): number;
|
|
fround(x: number): number;
|
|
imul(a: number, b: number): number;
|
|
imul(a: number, b: number): number;
|