UNPKG

@iktos-oss/molecule-representation

Version:

exports interactif molecule represnetations as react components

19 lines (18 loc) 1.15 kB
import { BondIdentifiers } from './svg-computation'; export declare const CLICKABLE_MOLECULE_CLASSNAME = "clickable-molecule"; export declare const isIdClickedAnAtom: (id: string) => boolean; export declare const isIdClickedABond: (id: string) => boolean; export declare const isHighlightingPath: (path: SVGPathElement) => boolean; export declare const getClickableAtomIdFromAtomIdx: (atomIdx: number) => string; export declare const getAtomIdxFromClickableId: (id: string) => string; export declare const getAtomIdsFromClassnames: (bondClassnames: DOMTokenList) => number[]; export declare const getClickableBondId: ({ bondId, startAtomId, endAtomId, }: { bondId: number; startAtomId: number; endAtomId: number; }) => string; export declare const getClickedBondIdentifiersFromId: (id: string) => BondIdentifiers; export declare const getBondIdFromClassnames: (bondClassnames: DOMTokenList) => number[]; export declare const getAtomSelectorIdentifier: (atomIdx: number) => string; export declare const getBondSelectorIdentifier: (atomIdx: number) => string; export declare const getAtomHighliteEllipseIdentifier: (atomIdx: number) => string;