Skip to content
Snippets Groups Projects
Select Git revision
2 results Searching

AnnotationDrawing.js

Blame
  • OpenSeadragonViewer.js 598 B
    import { compose } from 'redux';
    import { connect } from 'react-redux';
    import miradorWithPlugins from '../lib/miradorWithPlugins';
    import OpenSeadragonViewer from '../components/OpenSeadragonViewer';
    import * as actions from '../state/actions';
    
    /**
     * mapDispatchToProps - used to hook up connect to action creators
     * @memberof ManifestListItem
     * @private
     */
    const mapDispatchToProps = {
      updateViewport: actions.updateViewport,
    };
    
    const enhance = compose(
      connect(null, mapDispatchToProps),
      miradorWithPlugins,
      // further HOC go here
    );
    
    
    export default enhance(OpenSeadragonViewer);