2024-10-19 02:13:52 +00:00
|
|
|
declare let client: Client;
|
2024-08-16 04:52:46 +00:00
|
|
|
declare enum SequenceStatus {
|
|
|
|
IDLE = 0,
|
|
|
|
RUNNING = 1,
|
|
|
|
PAUSED = 2
|
|
|
|
}
|
|
|
|
declare class Display {
|
|
|
|
private parentElement;
|
|
|
|
private canvas;
|
|
|
|
private ctx;
|
2024-10-22 20:31:04 +00:00
|
|
|
private img;
|
2024-08-16 04:52:46 +00:00
|
|
|
private screen;
|
2024-08-18 01:22:17 +00:00
|
|
|
private sequence;
|
|
|
|
private offsetX;
|
|
|
|
private offsetY;
|
|
|
|
private width;
|
|
|
|
private height;
|
|
|
|
private canvasScale;
|
|
|
|
private canvasWidth;
|
|
|
|
private canvasHeight;
|
|
|
|
private canvasOffsetX;
|
|
|
|
private canvasOffsetY;
|
|
|
|
private screenWidth;
|
|
|
|
private screenHeight;
|
|
|
|
private screenOffsetX;
|
|
|
|
private screenOffsetY;
|
|
|
|
private displayWidth;
|
|
|
|
private displayHeight;
|
|
|
|
private displayOffsetX;
|
|
|
|
private displayOffsetY;
|
2024-08-16 04:52:46 +00:00
|
|
|
constructor();
|
|
|
|
private create;
|
|
|
|
private updateSize;
|
2024-10-22 19:04:25 +00:00
|
|
|
clear(): void;
|
|
|
|
updateScreen(): void;
|
2024-08-24 14:23:15 +00:00
|
|
|
updateDisplay(): void;
|
|
|
|
updateImage(): void;
|
2024-08-16 04:52:46 +00:00
|
|
|
update(msg: Message): void;
|
2024-08-18 01:22:17 +00:00
|
|
|
set(state: State): void;
|
|
|
|
private onResize;
|
2024-08-16 04:52:46 +00:00
|
|
|
}
|
2024-05-15 21:29:59 +00:00
|
|
|
declare class Client {
|
2024-08-16 04:52:46 +00:00
|
|
|
private display;
|
2024-05-15 21:29:59 +00:00
|
|
|
private client;
|
|
|
|
private connected;
|
2024-07-12 13:51:39 +00:00
|
|
|
private progress;
|
2024-08-24 14:23:15 +00:00
|
|
|
private progressText;
|
2024-08-30 17:49:16 +00:00
|
|
|
private frames;
|
2024-05-15 21:29:59 +00:00
|
|
|
constructor();
|
2024-08-24 20:26:49 +00:00
|
|
|
private getWebsocketUri;
|
2024-05-15 21:29:59 +00:00
|
|
|
private onMessage;
|
|
|
|
private onOpen;
|
2024-08-15 02:43:02 +00:00
|
|
|
private onClose;
|
2024-07-12 13:51:39 +00:00
|
|
|
private setSequence;
|
2024-08-24 14:23:15 +00:00
|
|
|
private setUpdate;
|
2024-08-16 04:52:46 +00:00
|
|
|
private setStatus;
|
|
|
|
private setProgress;
|
2024-08-24 14:23:15 +00:00
|
|
|
private setFrame;
|
2024-10-18 03:06:37 +00:00
|
|
|
private setExposure;
|
2024-08-16 04:52:46 +00:00
|
|
|
private setDisplay;
|
2024-10-19 02:13:52 +00:00
|
|
|
edited(el: HTMLElement): void;
|
|
|
|
private setStatistics;
|
2024-07-13 13:23:58 +00:00
|
|
|
private cmd;
|
2024-08-09 20:20:07 +00:00
|
|
|
disableClass(className: string): void;
|
|
|
|
enableClass(className: string): void;
|
2024-07-13 13:23:58 +00:00
|
|
|
sendCameraOpen(): void;
|
2024-08-24 20:26:49 +00:00
|
|
|
private receivePing;
|
2024-07-13 13:23:58 +00:00
|
|
|
private receiveCameraOpen;
|
2024-08-01 15:57:49 +00:00
|
|
|
sendCameraClose(): void;
|
|
|
|
private receiveCameraClose;
|
2024-08-24 20:26:49 +00:00
|
|
|
private sendPong;
|
2024-08-24 14:23:15 +00:00
|
|
|
sendAdvance(): void;
|
|
|
|
sendRewind(): void;
|
2024-08-30 17:49:16 +00:00
|
|
|
sendFrameSet(): void;
|
|
|
|
sendToEnd(): void;
|
|
|
|
sendToStart(): void;
|
2024-08-01 15:57:49 +00:00
|
|
|
sendSelect(): void;
|
2024-08-02 14:29:12 +00:00
|
|
|
private receiveSelect;
|
2024-08-24 14:23:15 +00:00
|
|
|
sendStart(): void;
|
|
|
|
sendStop(): void;
|
2024-10-18 03:06:37 +00:00
|
|
|
sendExposure(): void;
|
2024-08-16 04:52:46 +00:00
|
|
|
private receiveUpdate;
|
2024-10-22 19:04:25 +00:00
|
|
|
private receiveDisplay;
|
2024-10-22 03:51:38 +00:00
|
|
|
sendFocus(): void;
|
|
|
|
private receiveFocus;
|
2024-10-22 19:04:25 +00:00
|
|
|
sendOffset(x: number, y: number): void;
|
|
|
|
sendSize(width: number, height: number): void;
|
|
|
|
sendScale(scale: number): void;
|
2024-08-01 15:57:49 +00:00
|
|
|
fullscreen(): void;
|
|
|
|
exitFullscreen(): void;
|
2024-08-15 02:43:02 +00:00
|
|
|
private active;
|
|
|
|
private inactive;
|
2024-10-19 02:13:52 +00:00
|
|
|
addClass(id: string, className: string): void;
|
|
|
|
removeClass(id: string, className: string): void;
|
|
|
|
set(id: string, value: string): void;
|
|
|
|
get(id: string): string;
|
2024-10-20 01:15:52 +00:00
|
|
|
private resetForm;
|
|
|
|
private shortenHumanize;
|
2024-10-20 01:22:15 +00:00
|
|
|
private roundDigits;
|
2024-05-15 21:29:59 +00:00
|
|
|
}
|