mirror of
https://github.com/NaitLee/Cat-Printer.git
synced 2025-05-17 07:40:21 -07:00
27 lines
903 B
TypeScript
27 lines
903 B
TypeScript
|
|
declare interface ImagePrinter {
|
|
noticeElement: HTMLParagraphElement;
|
|
thresholdInput: HTMLInputElement;
|
|
bluetoothMACInput: HTMLInputElement;
|
|
fileSelection: HTMLInputElement;
|
|
dummyImage: HTMLImageElement;
|
|
imagePreview: HTMLCanvasElement;
|
|
previewButton: HTMLButtonElement;
|
|
printButton: HTMLButtonElement;
|
|
monoMethod: Function;
|
|
}
|
|
|
|
declare interface DocumentPrinter {
|
|
thresholdInput: HTMLInputElement;
|
|
bluetoothMACInput: HTMLInputElement;
|
|
container: HTMLDivElement;
|
|
printButton: HTMLButtonElement;
|
|
imagePreview: HTMLDivElement;
|
|
monoMethod: Function;
|
|
}
|
|
|
|
declare function notice(message: string): void;
|
|
declare function imageDataColorToMonoSquare(data: ImageData, threshold: number): ImageData;
|
|
declare function imageDataColorToMonoDiamond(data: ImageData, threshold: number): ImageData;
|
|
declare function imageDataMonoToPBM(data: ImageData): Blob;
|