UNPKG

ue-too

Version:

pan, zoom, and rotate your html canvas

13 lines (12 loc) 411 B
import { Point } from "../utils/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 CameraMux { notifyPanInput(diff: Point): void; notifyZoomInput(deltaZoomAmount: number, anchorPoint: Point): void; notifyRotationInput(deltaRotation: number): void; }