From fdb62e6af392eb99fb1bff7d28ff657cabc3d1b5 Mon Sep 17 00:00:00 2001 From: David Sehnal <david.sehnal@gmail.com> Date: Wed, 6 Jun 2018 08:47:05 +0200 Subject: [PATCH] Added Element.Loci --- src/mol-model/structure/structure/element.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mol-model/structure/structure/element.ts b/src/mol-model/structure/structure/element.ts index e62dcf133..48e030760 100644 --- a/src/mol-model/structure/structure/element.ts +++ b/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 \ No newline at end of file -- GitLab