← Về thư mục
frontend/src/islands/mol.ts
- MolModel · type · L23-L25 — type MolModel = { selectedAtoms?: (sel: Record) => Array<{ atom?: string; name?: string }>; };
- MolViewer · type · L27-L36 — type MolViewer = { clear?: () => void; setBackgroundColor?: (color: string) => void; addModel: (data: string, fmt: string) => MolModel; removeAllSurfaces?: () => void; setStyle: (sel: Record, style: Record) => void; addSurface?: (typ: unknown, opts: Record) => void; zoomTo: () => void; render: () => void; };
- Mol3D · type · L38-L41 — type Mol3D = { createViewer: (el: HTMLElement, opts: { backgroundColor: string }) => MolViewer; SurfaceType?: { VDW?: unknown }; };
- molApi · function · L43-L46 — function molApi(): Mol3D | undefined
- preFallback · function · L48-L50 — function preFallback(view: HTMLElement, text: string): void
- molTeardown · function · L54-L76 — function molTeardown(): void
- molecule · function · L79-L223 — function molecule(container: HTMLElement, url: string, nm: string): void
- spec · function · L120-L129 — spec = (style: string): Record
- applyStyle · function · L130-L149 — applyStyle = (style: string): void
- boot · function · L150-L190 — boot = (): Promise
- fb · function · L191-L199 — fb = (): Promise