12345678910111213141516171819202122232425262728293031 |
- /**
- * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
- *
- * @author David Sehnal <david.sehnal@gmail.com>
- */
- import { PluginCommand } from './command';
- import { Transform, State } from 'mol-state';
- import { StateAction } from 'mol-state/action';
- export const SetCurrentObject = PluginCommand<{ state: State, ref: Transform.Ref }>();
- export const ApplyAction = PluginCommand<{ state: State, action: StateAction.Instance, ref?: Transform.Ref }>();
- export const Update = PluginCommand<{ state: State, tree: State.Tree | State.Builder }>();
- // export const UpdateObject = PluginCommand<{ ref: Transform.Ref, params: any }>('ms-data', 'update-object');
- export const RemoveObject = PluginCommand<{ state: State, ref: Transform.Ref }>();
- export const ToggleExpanded = PluginCommand<{ state: State, ref: Transform.Ref }>({ isImmediate: true });
- export const ToggleVisibility = PluginCommand<{ state: State, ref: Transform.Ref }>({ isImmediate: true });
- export const Snapshots = {
- Add: PluginCommand<{ name?: string, description?: string }>({ isImmediate: true }),
- Remove: PluginCommand<{ id: string }>({ isImmediate: true }),
- Apply: PluginCommand<{ id: string }>({ isImmediate: true }),
- Clear: PluginCommand<{ }>({ isImmediate: true }),
- Upload: PluginCommand<{ name?: string, description?: string, serverUrl: string }>({ isImmediate: true }),
- Fetch: PluginCommand<{ url: string }>()
- }
|