UNPKG

mark-tool-js

Version:
28 lines (27 loc) 850 B
import { TDrawType } from '../../types/svg'; import { ImgWrap } from '../img/imgWrap'; import { LinesWrap } from '../lines'; import { SVGWrap } from '../svg'; type TCssVar = { '--location-x': string; '--location-y': string; '--img-width': string; '--img-height': string; }; export declare class Container { $container: HTMLDivElement; cssVars: TCssVar; $SvgWrap: SVGWrap; $ImgWrap: ImgWrap; $LinesWrap: LinesWrap; src: string; isVideo: boolean; currDrawType: TDrawType; constructor(_$container: HTMLDivElement, src: string); initContainer(_$container: HTMLDivElement, src: string, _cssVars?: Partial<TCssVar>): void; updateContainerVars(_cssVars?: Partial<TCssVar>): void; startDraw(type: TDrawType): void; endDraw(): void; switchImage(src: string): Promise<void>; } export {};