12345678910111213141516171819202122232425262728293031323334 |
- /**
- * 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 { }
- }
|