@iktos-oss/molecule-representation
Version:
exports interactif molecule represnetations as react components
23 lines (22 loc) • 911 B
TypeScript
import { IconCoords } from './svg-computation';
export declare const appendHitboxesToSvg: (svg: string, atomsHitboxes: SVGEllipseElement[], bondsHitBoxes: SVGPathElement[]) => string | undefined;
export declare const createHitboxFromAtomEllipse: ({ ellipse, id, isClickable, }: {
ellipse: SVGEllipseElement;
id: string;
isClickable: boolean;
}) => SVGEllipseElement;
export declare const createHitboxPathFromPath: ({ path, id, isClickable, }: {
path: SVGPathElement;
id: string;
isClickable: boolean;
}) => SVGPathElement;
export declare const getSvgDimensionsWithAppendedElements: (svg: string) => {
width: number;
height: number;
} | null;
export declare const getPathEdgePoints: (path: SVGPathElement) => {
start: DOMPoint;
end: DOMPoint;
length: number;
};
export declare const appendSvgIconsToSvg: (svg: string, iconsCoords: IconCoords[]) => string | undefined;