mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
undo and redo functionality
This commit is contained in:
parent
8df7d7d27d
commit
4915744c84
11 changed files with 216 additions and 47 deletions
|
@ -123,9 +123,26 @@ export const editorSetRouter = (router: Partial<IEditorState['router']>) => ({
|
|||
export const editorSetNominatim = (nominatim: Partial<IEditorState['nominatim']>) => ({
|
||||
type: EDITOR_ACTIONS.SET_NOMINATIM,
|
||||
nominatim,
|
||||
})
|
||||
});
|
||||
|
||||
export const editorSearchNominatim = (search: IEditorState['nominatim']['search']) => ({
|
||||
type: EDITOR_ACTIONS.SEARCH_NOMINATIM,
|
||||
search,
|
||||
})
|
||||
});
|
||||
|
||||
export const editorSetHistory = (history: Partial<IEditorState['history']>) => ({
|
||||
type: EDITOR_ACTIONS.SET_HISTORY,
|
||||
history,
|
||||
});
|
||||
|
||||
export const editorUndo = () => ({
|
||||
type: EDITOR_ACTIONS.UNDO,
|
||||
});
|
||||
|
||||
export const editorRedo = () => ({
|
||||
type: EDITOR_ACTIONS.REDO,
|
||||
});
|
||||
|
||||
export const editorCaptureHistory = () => ({
|
||||
type: EDITOR_ACTIONS.CAPTURE_HIPSTORY,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue