UNPKG

@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">

13 lines (12 loc) 417 B
import { Point } from "../util/misc"; /** * @description The interface for the input flow control. * It should at least have user input handlers for pan, zoom and rotation. * * @category Input Flow Control */ export interface InputFlowControl { notifyPanInput(diff: Point): void; notifyZoomInput(deltaZoomAmount: number, anchorPoint: Point): void; notifyRotationInput(deltaRotation: number): void; }