Browse Source

Added Element.Loci

David Sehnal 6 years ago
parent
commit
fdb62e6af3
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/mol-model/structure/structure/element.ts

+ 4 - 1
src/mol-model/structure/structure/element.ts

@@ -4,7 +4,7 @@
  * @author David Sehnal <david.sehnal@gmail.com>
  */
 
-import { Tuple } from 'mol-data/int'
+import { Tuple, SortedArray } from 'mol-data/int'
 import Unit from './unit'
 import Structure from './structure'
 
@@ -35,6 +35,9 @@ namespace Element {
     }
 
     export function property<T>(p: Property<T>) { return p; }
+
+    /** Represents multiple element locations */
+    export type Loci = ReadonlyArray<{ unit: Unit, elements: SortedArray }>
 }
 
 export default Element