|
@@ -22,7 +22,7 @@ import { ChemicalComponent } from './properties/chemical-component';
|
|
|
*
|
|
|
* "Atoms" are integers in the range [0, atomCount).
|
|
|
*/
|
|
|
-interface Model extends Readonly<{
|
|
|
+export interface Model extends Readonly<{
|
|
|
id: UUID,
|
|
|
label: string,
|
|
|
|
|
@@ -64,25 +64,17 @@ interface Model extends Readonly<{
|
|
|
|
|
|
} { }
|
|
|
|
|
|
-namespace Model {
|
|
|
+export namespace Model {
|
|
|
export function create(format: Format) {
|
|
|
switch (format.kind) {
|
|
|
|
|
|
case 'mmCIF': return from_mmCIF(format);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
-export default Model
|
|
|
+
|
|
|
+export type ElementIndex = { readonly '@type': 'element-index' } & number
|
|
|
+export type ResidueIndex = { readonly '@type': 'residue-index' } & number
|
|
|
+export type ChainIndex = { readonly '@type': 'chain-index' } & number
|
|
|
+export type EntityIndex = { readonly '@type': 'entity-index' } & number
|