基于高德地图JS api开发的geojson编辑器.
http://geojson.finevis.cc/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
555 B
22 lines
555 B
import { createStore, Store } from "redux"; |
|
import { createContext, Context } from "react"; |
|
import { reducer, Action } from "./reducers"; |
|
import { IEditorState } from "./type"; |
|
import { EditorAction } from "./actions"; |
|
|
|
export * from "./type"; |
|
export * from "./selectors"; |
|
export * from "./constants"; |
|
|
|
type IStore = Store<IEditorState, Action>; |
|
const store: IStore = createStore(reducer); |
|
|
|
(window as any).store = store; |
|
|
|
export { store }; |
|
|
|
export { EditorAction }; |
|
|
|
export const StoreContext = createContext<IStore | null>( |
|
null |
|
) as Context<IStore>;
|
|
|