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.
51 lines (37 loc) • 1.22 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _redux = require("redux");
var _reactRedux = require("react-redux");
var _reactI18next = require("react-i18next");
var _core = require("@material-ui/core");
var _withPlugins = require("../extend/withPlugins");
var _WindowTopBarPluginMenu = require("../components/WindowTopBarPluginMenu");
var _selectors = require("../state/selectors");
/**
* mapStateToProps - to hook up connect
* @memberof WindowTopBarPluginMenu
* @private
*/
var mapStateToProps = function mapStateToProps(state) {
return {
containerId: (0, _selectors.getContainerId)(state)
};
};
/**
*
* @param theme
* @returns {{ctrlBtn: {margin: (number|string)}}}
*/
var styles = function styles(theme) {
return {
ctrlBtnSelected: {
backgroundColor: theme.palette.action.selected
}
};
};
var enhance = (0, _redux.compose)((0, _reactI18next.withTranslation)(), (0, _core.withStyles)(styles), (0, _reactRedux.connect)(mapStateToProps, null), (0, _withPlugins.withPlugins)('WindowTopBarPluginMenu'));
var _default = enhance(_WindowTopBarPluginMenu.WindowTopBarPluginMenu);
exports["default"] = _default;