mark-tool-js
Version:
11 lines (10 loc) • 420 B
TypeScript
export declare function findParentBySvg(dom: HTMLElement): HTMLElement;
export declare function getNodeProps(node: HTMLElement | SVGSVGElement): {
x: any;
y: any;
width: any;
height: any;
transform: any;
};
export declare function throttle<T>(func: (...args: any[]) => T, delay?: number): (...args: any[]) => void;
export declare function findSvgChild(svg: HTMLElement | SVGSVGElement): HTMLElement;