UNPKG

@meta2d/core

Version:

@meta2d/core: Powerful, Beautiful, Simple, Open - Web-Based 2D At Its Best .

23 lines (22 loc) 516 B
import { Canvas } from '../canvas'; export declare class ViewMap { parent: Canvas; box: HTMLElement; readonly boxWidth = 320; readonly boxHeight = 180; readonly ratio: number; readonly padding = 5; img: HTMLImageElement; isShow: boolean; isDown: boolean; view: HTMLElement; timer: any; constructor(parent: Canvas); show(): void; hide(): void; setView(): void; private onMouseDown; private onMouseMove; private onMouseUp; private onWheel; }