UNPKG

three-stdlib

Version:

stand-alone library of threejs examples

23 lines (19 loc) 540 B
import { Loader, BufferGeometry, LoadingManager } from 'three' export interface PDB { geometryAtoms: BufferGeometry geometryBonds: BufferGeometry json: { atoms: any[][] } } export class PDBLoader extends Loader { constructor(manager?: LoadingManager) load( url: string, onLoad: (pdb: PDB) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void, ): void loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<PDB> parse(text: string): PDB }