UNPKG

@fleet-frontend/mower-maps

Version:

a mower maps in google maps

18 lines 565 B
/** * 这个函数主要用于处理历史记录的逻辑 * 1. 存储每次操作的所有点,返回所有的数组 * 2. 需要有撤销和重做的函数 * 3. 可以设置最多保存的历史记录的条数,超过之后,应该删除最早的历史记录 * 4. * @returns */ declare const useHistoryHandle: (props?: { maxHistoryCount?: number; }) => { redo: () => void; undo: () => void; addHistory: (history: any) => void; clearHistory: () => void; }; export default useHistoryHandle; //# sourceMappingURL=useHistoryHandle.d.ts.map