UNPKG

js-draw

Version:

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

14 lines (13 loc) 473 B
import { Path, Point2 } from '@js-draw/math'; import EditorImage from '../../../image/EditorImage'; import SelectionBuilder from './SelectionBuilder'; /** * Creates rectangle selections */ export default class RectSelectionBuilder extends SelectionBuilder { private rect; constructor(startPoint: Point2); onPointerMove(canvasPoint: Point2): void; previewPath(): Path; resolveInternal(image: EditorImage): import("../../../lib").AbstractComponent[]; }