UNPKG

@iktos-oss/molecule-representation

Version:

exports interactif molecule represnetations as react components

30 lines (29 loc) 1.04 kB
import { RDKitColor } from '@iktos-oss/rdkit-provider'; import { AlignmentDetails } from '../components'; export declare const get_svg: (props: DrawSmilesSVGProps, worker: Worker) => Promise<string | null>; export declare const get_svg_from_smarts: (props: DrawSmartsSVGProps, drawAsSmiles: boolean | undefined, worker: Worker) => Promise<string | null>; export interface DrawSmilesSVGProps { smiles: string; width: number; height: number; details?: Record<string, unknown>; alignmentDetails?: AlignmentDetails; heatmapAtomsWeights?: Record<number, number>; highlightColor?: RDKitColor; atomsToHighlight?: number[][]; bondsToHighlight?: number[][]; isClickable?: boolean; clickableAtoms?: ClickableAtoms; canonicalize?: boolean; generateClickableHotspots?: boolean; } export interface ClickableAtoms { clickableAtomsIds: number[]; clickableAtomsBackgroundColor?: RDKitColor; } interface DrawSmartsSVGProps { smarts: string; width: number; height: number; } export {};