-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathArToolkitContext.d.ts
39 lines (39 loc) · 1.8 KB
/
ArToolkitContext.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { EventDispatcher, EventListener, PerspectiveCamera, Matrix4 } from 'three';
import { IArToolkitContext, IContextParameters } from './CommonInterfaces/THREEx-interfaces';
import { ArMarkerControls } from "./ArMarkerControls";
declare global {
var arToolkitContext: IArToolkitContext;
}
export declare class ArToolkitContext implements IArToolkitContext {
private _updatedAt;
parameters: IContextParameters;
arController: any;
private initialized;
private _arMarkersControls;
_artoolkitProjectionAxisTransformMatrix: any;
private className;
constructor(parameters: IContextParameters);
dispatchEvent: <T extends string>(event: any) => void;
addEventListener: {
<T extends string>(type: T, listener: EventListener<any, T, EventDispatcher<any>>): void;
<T_1 extends string>(type: T_1, listener: EventListener<{}, T_1, EventDispatcher<any>>): void;
};
hasEventListener: {
<T extends string>(type: T, listener: EventListener<any, T, EventDispatcher<any>>): boolean;
<T_1 extends string>(type: T_1, listener: EventListener<{}, T_1, EventDispatcher<any>>): boolean;
};
removeEventListener: {
<T extends string>(type: T, listener: EventListener<any, T, EventDispatcher<any>>): void;
<T_1 extends string>(type: T_1, listener: EventListener<{}, T_1, EventDispatcher<any>>): void;
};
static baseURL: string;
static REVISION: string;
createDefaultCamera(trackingBackend: string): PerspectiveCamera;
init(onCompleted: Function): void;
update(srcElement: HTMLImageElement | HTMLVideoElement): boolean;
addMarker(arMarkerControls: ArMarkerControls): void;
removeMarker(arMarkerControls: ArMarkerControls): void;
private _initArtoolkit;
getProjectionMatrix(): Matrix4;
private _updateArtoolkit;
}