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.
20 lines (17 loc) • 459 B
JavaScript
import ActionTypes from './action-types';
/**
* add a manifest to the resource catalog
* @param {string} manifestId
*/
export function addResource(manifestId, manifestJson = undefined, payload) {
return {
manifestId, manifestJson, payload, type: ActionTypes.ADD_RESOURCE,
};
}
/** remove a manifest from the resource catalog */
export function removeResource(manifestId) {
return {
manifestId,
type: ActionTypes.REMOVE_RESOURCE,
};
}