@avolutions/canvas-painter
Version:
CanvasPainter.js is a simple yet powerful JavaScript library for drawing basic shapes (rectangles, circles, etc.) on HTML5 Canvas with ease. Perfect for creating 2D graphics in your web projects.
15 lines (14 loc) • 351 B
TypeScript
import { MouseButton } from "../../types/MouseButton.js";
/**
* Represents options for configuring the pan behavior.
*/
export interface IPanOptions {
/**
* List of mouse buttons that are used for panning.
*/
mouseButtons?: MouseButton[];
/**
* Whether panning with the mouse is enabled.
*/
useMouse?: boolean;
}