@xenosite/xpict
    Preparing search index...

    Variable xpictConst

    xpict: {
        depict: (spec: DepictSpec) => Promise<Rendered[]>;
        mol: (smilesOrMolfile: string) => Mol;
        render: (input: string | Mol, opts?: MolRenderOptions) => Promise<Rendered>;
        toSvg: (scene: Scene) => string;
    } = ...

    Public lib namespace.

    Type Declaration

    • depict: (spec: DepictSpec) => Promise<Rendered[]>

      Declarative document → Rendered[] (expanding toward PictSpec).

    • mol: (smilesOrMolfile: string) => Mol
    • render: (input: string | Mol, opts?: MolRenderOptions) => Promise<Rendered>
    • ReadonlytoSvg: (scene: Scene) => string

      Scene JSON → SVG string (tweak rendered.scene first if needed).