UNPKG

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) 526 B
import { Color4 } from '@js-draw/math'; import Editor from '../../../Editor'; import type HelpDisplay from '../../utils/HelpDisplay'; type OnColorChangeListener = (color: Color4) => void; export declare const makeColorInput: (editor: Editor, onColorChange: OnColorChangeListener) => { input: HTMLInputElement; container: HTMLSpanElement; setValue: (color: Color4 | string) => void; closePicker: () => void; registerWithHelpTextDisplay: (helpDisplay: HelpDisplay) => void; }; export default makeColorInput;