UNPKG

js-draw

Version:

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

22 lines (21 loc) 633 B
import Editor from '../Editor'; import { KeyPressEvent } from '../inputEvents'; import BaseTool from './BaseTool'; export default class FindTool extends BaseTool { private editor; private overlay; private searchInput; private currentMatchIdx; constructor(editor: Editor); canReceiveInputInReadOnlyEditor(): boolean; private getMatches; private focusCurrentMatch; private toNextMatch; private toPrevMatch; private fillOverlay; private isVisible; private setVisible; private toggleVisible; onKeyPress(event: KeyPressEvent): boolean; setEnabled(enabled: boolean): void; }