js-draw
Version:
Draw pictures using a pen, touchscreen, or mouse! JS-draw is a drawing library for JavaScript and TypeScript.
13 lines (12 loc) • 481 B
TypeScript
import Editor from '../Editor';
import { Point2 } from '@js-draw/math';
import Pointer, { PointerDevice } from '../Pointer';
import { PointerEvtType } from '../inputEvents';
/**
* Dispatch a pen event to the currently selected tool.
* Intended for unit tests.
*
* @see {@link sendTouchEvent}
*/
declare const sendPenEvent: (editor: Editor, eventType: PointerEvtType, point: Point2, allPointers?: Pointer[], deviceType?: PointerDevice) => Pointer;
export default sendPenEvent;