UNPKG

js-draw

Version:

Draw pictures using a pen, touchscreen, or mouse! JS-draw is a drawing library for JavaScript and TypeScript.

11 lines (10 loc) 409 B
import Editor from '../../Editor'; import { IconElemType } from '../../toolbar/IconProvider'; import { Point2 } from '@js-draw/math'; interface MenuOption<KeyType> { key: KeyType; text: string; icon: () => IconElemType; } declare const createMenuOverlay: <KeyType>(editor: Editor, canvasAnchor: Point2, options: MenuOption<KeyType>[]) => Promise<KeyType | null>; export default createMenuOverlay;