import type { GraphData } from '../spec';
/**
* 单条历史记录命令
*
* Single history record command
*/
export interface Command {
/**
* 当前数据
*
* Current data
*/
current: CommandData;
/**
* 原始数据
*
* Original data
*/
original: CommandData;
/**
* 是否开启动画
*
* Whether to enable animation
*/
animation: boolean;
}
/**
* 单条历史记录命令数据
*
* Single history record command data
*/
export interface CommandData {
/**
* 新增的数据
*
* Added data
*/
add: GraphData;
/**
* 更新的数据
*
* Updated data
*/
update: GraphData;
/**
* 移除的数据
*
* Removed data
*/
remove: GraphData;
}