-
David Sehnal authoredDavid Sehnal authored
state.ts 704 B
/**
* Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author David Sehnal <david.sehnal@gmail.com>
*/
import { State } from 'mol-state';
import { PluginStateObjects as SO } from './state/objects';
export { PluginState }
class PluginState {
readonly data = State.create(new SO.Root({ label: 'Root' }, { }));
getSnapshot(): PluginState.Snapshot {
throw 'nyi';
}
setSnapshot(snapshot: PluginState.Snapshot) {
throw 'nyi';
}
setDataSnapshot(snapshot: State.Snapshot) {
throw 'nyi';
}
dispose() {
this.data.dispose();
}
}
namespace PluginState {
export interface Snapshot { }
}