gg-editor
Version:
A visual graph editor based on G6 and React
10 lines (9 loc) • 344 B
TypeScript
import { ItemType } from '../../../common/constants';
import { NodeModel, EdgeModel } from '../../../common/interfaces';
import { BaseCommand } from './base';
export interface AddCommandParams {
type: ItemType;
model: NodeModel | EdgeModel;
}
declare const addCommand: BaseCommand<AddCommandParams>;
export default addCommand;