@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.
25 lines (24 loc) • 640 B
TypeScript
import { IZoomOptions } from "./interfaces/IZoomOptions.js";
/**
* Options for configuring the zoom behavior of a canvas.
*/
export declare class ZoomOptions implements IZoomOptions {
/**
* The step value for zoom increments.
*/
step: number;
/**
* Whether zooming with the mouse wheel is enabled.
*/
useWheel: boolean;
/**
* Default zoom options.
*/
static readonly DefaultOptions: IZoomOptions;
/**
* Creates a new instance of ZoomOptions.
*
* @param options - The partial options provided by the user.
*/
constructor(options?: Partial<IZoomOptions>);
}