9 changed files with 30 additions and 41 deletions
@ -1,30 +1,13 @@
|
||||
import { Store } from "redux"; |
||||
import { Action } from "./reducers"; |
||||
import { OverlayTypes, Status, Command } from "@types"; |
||||
import { OverlayTypes, Status } from "@types"; |
||||
import { IMapOptions } from "@map"; |
||||
|
||||
export type IStore = Store<IEditorState, Action>; |
||||
export interface IOverlay { |
||||
id: string; |
||||
name: string; |
||||
type: OverlayTypes; |
||||
lngLat?: GeoJSON.Position; |
||||
path?: GeoJSON.Position[]; |
||||
radius?: number; |
||||
} |
||||
export interface IMapState { |
||||
status: Status | null; |
||||
command: Command | null; |
||||
overlayType: OverlayTypes | null; |
||||
polygons: IOverlay[]; |
||||
polylines: IOverlay[]; |
||||
circles: IOverlay[]; |
||||
rectangles: IOverlay[]; |
||||
selectedIds?: string[]; |
||||
} |
||||
|
||||
export interface IEditorState { |
||||
map: IMapOptions; |
||||
status: Status | null; |
||||
selectedIds: string[]; |
||||
overlayType: OverlayTypes | null; |
||||
} |
||||
|
Loading…
Reference in new issue