UNPKG

zoom-element

Version:

[![Status](https://img.shields.io/badge/status-active-success.svg)]() [![GitHub Issues](https://img.shields.io/github/issues/suhanbangera/arachnoid.svg)](https://github.com/spyder01/zoom-element/issues) [![GitHub Pull Requests](https://img.shields.io/gith

36 lines (35 loc) 826 B
export declare class ZoomAreaException extends DOMException { constructor(msg?: string); } export interface ZoomAreaConfig { maxZoom?: number; minZoom?: number; initialScale?: number; zoomScale?: number; } export interface Position { x: number; y: number; } declare class ZoomArea { private zoomArea; private scale; private maxZoom; private minZoom; private position; private initialPosition; private isDragging; private config; private zoomScale; constructor(id?: string, config?: ZoomAreaConfig); getScale: () => number; zoom: (delta: number) => this; zoomIn: () => this; zoomOut: () => this; reset: () => this; private handleDrag; private handleCntrlWheel; private setDivStyle; private init; } export default ZoomArea;