UNPKG

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.

24 lines (22 loc) 645 B
import ActionTypes from './action-types'; /** * add a manifest to the resource catalog * @param {string} manifestId */ export function addResource(manifestId) { var manifestJson = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; var payload = arguments.length > 2 ? arguments[2] : undefined; return { manifestId: manifestId, manifestJson: manifestJson, payload: payload, type: ActionTypes.ADD_RESOURCE }; } /** remove a manifest from the resource catalog */ export function removeResource(manifestId) { return { manifestId: manifestId, type: ActionTypes.REMOVE_RESOURCE }; }