@webarkit/ar-nft
Version:
WebAR Javscript library for markerless AR
24 lines (23 loc) • 836 B
TypeScript
export default class NFTWorker {
private worker;
private markerURL;
private _processing;
private vw;
private vh;
private target;
private uuid;
private name;
private addPath;
protected ready: boolean;
constructor(markerURL: Array<string>, w: number, h: number, uuid: string, name: string, addPath: string);
initialize(cameraURL: string, renderUpdate: () => void, trackUpdate: () => void, oef: boolean): Promise<boolean>;
process(imagedata: ImageData, frame: number): void;
protected load(cameraURL: string, renderUpdate: () => void, trackUpdate: () => void, oef: boolean): Promise<boolean>;
found(msg: any): void;
isReady(): boolean;
getUuid(): string;
getName(): string;
getMarkerUrl(): Array<string>;
getEventTarget(): EventTarget;
destroy(): void;
}