@fleet-frontend/mower-maps
Version:
a mower maps in google maps
30 lines • 1.24 kB
TypeScript
/**
* 状态管理模块类型定义
*/
import { DrawElement } from './layers';
/**
* 割草状态接口
*/
export interface ProcessMowingState {
processStateIsMowing: Record<string, boolean>;
updateProcessStateIsMowing: (sn: string, isMowing: boolean) => void;
resetProcessStateIsMowing: (key: string) => void;
currentMowingPartitionId: Record<string, string>;
updateCurrentMowingPartitionId: (sn: string, partitionId: string) => void;
resetCurrentMowingPartitionId: (key: string) => void;
}
/**
* 子边界边框存储接口
*/
export interface PartitionDataStore {
subBoundaryBorder: Record<string, Record<string, DrawElement<any>>>;
addSubBoundaryBorder: (key: string, element: Record<string, DrawElement<any>>) => void;
deleteSubBoundaryBorder: (key: string) => void;
obstacles: Record<string, Record<string, DrawElement<any>>>;
addObstacles: (key: string, element: Record<string, DrawElement<any>>) => void;
deleteObstacles: (key: string) => void;
svgElements: Record<string, Record<string, DrawElement<any>>>;
addSvgElements: (key: string, element: Record<string, DrawElement<any>>) => void;
deleteSvgElements: (key: string) => void;
}
//# sourceMappingURL=store.d.ts.map