mirador
Version:
An open-source, web-based 'multi-up' viewer that supports zoom-pan-rotate functionality, ability to display/compare simple images, and images with annotations.
45 lines (43 loc) • 1.07 kB
JavaScript
import { combineReducers } from 'redux';
import {
accessTokensReducer,
authReducer,
companionWindowsReducer,
configReducer,
elasticLayoutReducer,
errorsReducer,
infoResponsesReducer,
manifestsReducer,
viewersReducer,
windowsReducer,
workspaceReducer,
annotationsReducer,
searchesReducer,
layersReducer,
catalogReducer,
} from '.';
/**
* Function to create root reducer
* from plugin reducers.
* @namespace CreateRootReducer
*/
export default function createRootReducer(pluginReducers) {
return combineReducers({
accessTokens: accessTokensReducer,
annotations: annotationsReducer,
auth: authReducer,
catalog: catalogReducer,
companionWindows: companionWindowsReducer,
config: configReducer,
elasticLayout: elasticLayoutReducer,
errors: errorsReducer,
infoResponses: infoResponsesReducer,
layers: layersReducer,
manifests: manifestsReducer,
searches: searchesReducer,
viewers: viewersReducer,
windows: windowsReducer,
workspace: workspaceReducer,
...pluginReducers,
});
}