@xenosite/xpict
    Preparing search index...

    Type Alias MolNode

    Mol node — [MolOpts] fields + non-cascading identity / scores / align.

    type MolNode = {
        align_to?: AlignTo;
        aromatic?: AromaticStyle;
        atom_label?: AtomLabelSpec;
        atom_number?: AtomNumberSpec;
        callout?: CalloutField;
        circle?: CircleField;
        color?: string;
        cxsmiles?: string;
        debug_align?: boolean;
        debug_box?: boolean;
        halo?: boolean;
        id?: string;
        label?: Label;
        molfile?: string;
        name?: MolText;
        opts?: Opts;
        pad?: number;
        region?: RegionField;
        scale?: number;
        shade?: ShadeSpec;
        smiles?: string;
        star_labels?: (string | null)[];
        type: MolNodeKind;
        weight?: number;
    }
    Index
    align_to?: AlignTo

    Template id string, or { "ref", "atom_map"?, "min_atoms"?, "mode"?, "timeout_ms"? }.

    aromatic?: AromaticStyle

    Aromatic ring paint: circle (default) or kekule.

    atom_label?: AtomLabelSpec

    Per-atom arbitrary text map ({ "1": "α" } or { "labels": {…}, "scale"? }).

    atom_number?: AtomNumberSpec

    Atom index / map-number labels ("index" | "mapno" | policy object).

    callout?: CalloutField

    Callout annotation(s).

    circle?: CircleField

    Atom / bond / ring highlight circle(s).

    color?: string
    cxsmiles?: string
    debug_align?: boolean

    Paint alignment correspondence (matched atom tags + mol role badge).

    debug_box?: boolean

    Paint dashed debug rectangles for layout boxes (labels / mol / scene).

    halo?: boolean
    id?: string
    label?: Label

    Caption: [Label] (string id, list, or {id, pos?} — text-node refs).

    Prefer privileged [Self::name] for inline mol captions. label id-refs remain for legacy / multi-caption layouts.

    pos on a placement chooses caption side (above/below/left/right); hosts measure the resolved text and fold that into node size for layout.

    molfile?: string
    name?: MolText

    Privileged figure name / caption painted inside the mol SVG (default below).

    opts?: Opts

    Cascade patches for this node (list or singleton).

    pad?: number

    Post-layout SVG viewBox pad (px). Omit → small house default (rarely override).

    region?: RegionField

    Region highlight(s) — one object or a list.

    scale?: number
    shade?: ShadeSpec

    Shade scores (+ legacy window); window also cascades via [Opts].

    smiles?: string
    star_labels?: (string | null)[]
    type: MolNodeKind
    weight?: number