UNPKG

alex_image_marker

Version:

24 lines (23 loc) 911 B
import { InitOptions, DrawType, GraphConfigType, CtxConfigType, DrawTaskResolve } from './data'; export default class ImageMarker { private options; private canvasInstance; private imageInstance; private imageMoveInstance; private canvasLoadingInstance; private drawGarphInstance; constructor(options: InitOptions); get data(): import('./graph').default[]; private createZImage; private initImage; updateImage(url: string): void; reset(): void; private redraw; addGraph<T extends keyof DrawType>(type: T, options: GraphConfigType<T>): string; removeGraph(ids?: string[]): void; setGraphStyle(id: string, style: CtxConfigType): void; draw<T extends keyof DrawType>(type: T, ctxConfig?: CtxConfigType): Promise<DrawTaskResolve>; drawCancel(type?: keyof DrawType): void; drawCancelAll(type?: keyof DrawType): void; destory(): void; }