mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-27 04:18:11 +08:00
* save graph selection in redux state * fix old graph brush select regressions * refactor graph brush selection to work with undo/redo * update tests to match new crossfilter spatial select API * graph selection state now in redux * remove dead code * sync graph selection with redux state; improvements to undoable machinery * fix regression in undoable * differentiate graph selection cancel from deselect action * simplify calculation * remove debugging code * fix responsive repaint bug in graph selection tool * undoable debugging and code cleanliness * undoable action filter state now merges, rather than replaces * improve comments * add debounce to undoable action filter; improve comments and debug sanity check code * comments * fix undoable bug with clear scatterplot actions * disable undoable debug flag * cleanup API and comments around statemachine * add test id attribute to lasso * add better error handling for gene fetch requests
52 lines
1.4 KiB
JavaScript
52 lines
1.4 KiB
JavaScript
import { createStore, applyMiddleware } from "redux";
|
|
import thunk from "redux-thunk";
|
|
|
|
import cascadeReducers from "./cascade";
|
|
import undoable from "./undoable";
|
|
import config from "./config";
|
|
import universe from "./universe";
|
|
import world from "./world";
|
|
import categoricalSelection from "./categoricalSelection";
|
|
import continuousSelection from "./continuousSelection";
|
|
import graphSelection from "./graphSelection";
|
|
import crossfilter from "./crossfilter";
|
|
import colors from "./colors";
|
|
import differential from "./differential";
|
|
import responsive from "./responsive";
|
|
import controls from "./controls";
|
|
import resetCache from "./resetCache";
|
|
|
|
import undoableConfig from "./undoableConfig";
|
|
|
|
const Reducer = undoable(
|
|
cascadeReducers([
|
|
["config", config],
|
|
["universe", universe],
|
|
["world", world],
|
|
["categoricalSelection", categoricalSelection],
|
|
["continuousSelection", continuousSelection],
|
|
["graphSelection", graphSelection],
|
|
["crossfilter", crossfilter],
|
|
["colors", colors],
|
|
["controls", controls],
|
|
["differential", differential],
|
|
["responsive", responsive],
|
|
["resetCache", resetCache]
|
|
]),
|
|
[
|
|
"world",
|
|
"categoricalSelection",
|
|
"continuousSelection",
|
|
"graphSelection",
|
|
"crossfilter",
|
|
"colors",
|
|
"controls",
|
|
"differential"
|
|
],
|
|
undoableConfig
|
|
);
|
|
|
|
const store = createStore(Reducer, applyMiddleware(thunk));
|
|
|
|
export default store;
|