@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.
26 lines (25 loc) • 708 B
TypeScript
import { MouseButton } from "../types/MouseButton.js";
import { IPanOptions } from "./interfaces/IPanOptions.js";
/**
* Options for configuring the pan behavior of a canvas.
*/
export declare class PanOptions implements IPanOptions {
/**
* List of mouse buttons that are used for panning.
*/
mouseButtons: MouseButton[];
/**
* Whether panning with the mouse is enabled.
*/
useMouse: boolean;
/**
* Default pan options.
*/
static readonly DefaultOptions: IPanOptions;
/**
* Creates a new instance of PanOptions.
*
* @param options - The partial options provided by the user.
*/
constructor(options?: Partial<IPanOptions>);
}