UNPKG

@iktos-oss/rdkit-provider

Version:

exports an initialized RDKit instance, with helper functions

20 lines (19 loc) 634 B
import React, { PropsWithChildren } from 'react'; export interface RDKitContextValue { worker: Worker | null; } export type RDKitProviderProps = PropsWithChildren<{ cache?: RDKitProviderCacheOptions; initialWorkerInstance?: Worker; preferCoordgen?: boolean; removeHs?: boolean; kekulize?: boolean; rdkitPath?: string; rdkitWorkerPublicFolder?: string; }>; export declare const RDKitContext: React.Context<RDKitContextValue>; export declare const RDKitProvider: React.FC<RDKitProviderProps>; export interface RDKitProviderCacheOptions { enableJsMolCaching?: boolean; maxJsMolsCached?: number; }