UNPKG

handwritten-mathematics-recogniser

Version:

Easy and abstracted way to recognise handwritten mathematics in a browser or in a web view.

15 lines (14 loc) 440 B
export declare class Drawer { feedbackCanvas: HTMLCanvasElement; private feedbackContext; private mouse; constructor(selector: string | HTMLCanvasElement, width?: number, height?: number); clear(): void; private mouseDown(mousePosition); private mouseMove(e); private mouseUp(); private lineDistance(x1, y1, x2, y2); private draw(mX, mY); private addListeners(); private removeListeners(); }