Ver Fonte

data model

David Sehnal há 7 anos atrás
pai
commit
52d2de1a28

+ 0 - 0
src/mol-data/structure/symmetry.ts → src/mol-data/query.ts


+ 9 - 0
src/mol-data/selection.ts

@@ -0,0 +1,9 @@
+/**
+ * Copyright (c) 2017 molio contributors, licensed under MIT, See LICENSE file for more info.
+ *
+ * @author David Sehnal <david.sehnal@gmail.com>
+ */
+
+import Structure from './structure'
+
+export type Selection = Structure | Structure[]

+ 1 - 2
src/mol-data/structure.ts

@@ -47,9 +47,8 @@ export interface Structure { units: { [id: number]: Unit }, atoms: AtomSet }
 
 export namespace Structure {
     export const Empty: Structure = { units: {}, atoms: AtomSet.Empty };
-
-    export enum Algebra { AddUnit, RemoveUnit, UpdateConformation /* specify which units map to which */ }
 }
 
+export default Structure
 // export interface Selection { structure: Structure, sets: AtomSet[] }
 // type SelectionImpl = Structure | Structure[]

+ 0 - 11
src/mol-data/structure/selectors.ts

@@ -1,11 +0,0 @@
-/**
- * Copyright (c) 2017 molio contributors, licensed under MIT, See LICENSE file for more info.
- *
- * @author David Sehnal <david.sehnal@gmail.com>
- */
-
-import { Selector } from './model'
-
-const set = {};
-
-export type Selectors = Selector.Set<typeof set>

+ 0 - 6
src/mol-data/structure/structure.ts

@@ -1,6 +0,0 @@
-/**
- * Copyright (c) 2017 molio contributors, licensed under MIT, See LICENSE file for more info.
- *
- * @author David Sehnal <david.sehnal@gmail.com>
- */
-