Skip to content
Snippets Groups Projects
Commit 52d2de1a authored by David Sehnal's avatar David Sehnal
Browse files

data model

parent 06780bf3
No related branches found
No related tags found
No related merge requests found
File moved
/**
* 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[]
\ No newline at end of file
......@@ -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[]
\ No newline at end of file
/**
* 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>
\ No newline at end of file
/**
* Copyright (c) 2017 molio contributors, licensed under MIT, See LICENSE file for more info.
*
* @author David Sehnal <david.sehnal@gmail.com>
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment