@niuee/board
Version:
<h1 align="center"> board </h1> <p align="center"> board supercharges your html canvas element giving it the capabilities to pan, zoom, rotate, and much more. </p> <p align="center"> <a href="https://www.npmjs.com/package/@niuee/board">
23 lines (22 loc) • 653 B
TypeScript
import { Point } from "../util/misc";
import { DrawTask } from "./driver";
/**
* @description The selection box. (WIP)
*
* @category Drawing Engine
*/
export declare class SelectionBox implements DrawTask {
private _startPoint;
private _endPoint;
private _selecting;
private _context;
constructor(context: CanvasRenderingContext2D);
set startPoint(point: Point);
get startPoint(): Point;
set endPoint(point: Point);
get endPoint(): Point;
draw(deltaTime: number): void;
drawWithContext(context: CanvasRenderingContext2D, deltaTime: number): void;
startSelection(): void;
clearSelection(): void;
}