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.

45 lines (44 loc) 1.19 kB
import { p as e } from "./getters-DPoFra9X.js"; import { l as t, mt as n, r, u as i } from "./canvases-xKdr7cbX.js"; import { t as a } from "./action-types-DjIbTE-A.js"; //#region src/state/actions/canvas.js function o(e, t, i = void 0, o = {}) { return (s, c) => { let l = c(), { preserveViewport: u } = n(l).osdConfig, d = i; d ||= (r(l, { canvasId: t, windowId: e }) || []).map((e) => e.id), s({ canvasId: t, preserveViewport: o?.preserveViewport ?? u, type: a.SET_CANVAS, visibleCanvases: d, windowId: e }); }; } function s(e) { return (n, r) => { let i = r(), a = t(i, { windowId: e }), s = (a || []).map((e) => e.id); a && n(o(e, s[0], s)); }; } function c(e) { return (t, n) => { let r = n(), a = i(r, { windowId: e }), s = (a || []).map((e) => e.id); a && t(o(e, s[0], s)); }; } function l(e, t) { return { payload: t, type: a.UPDATE_VIEWPORT, windowId: e }; } //#endregion //#region src/config/css-ns.js var u = (t) => [t].flat().map((t) => [e.createGenerateClassNameOptions.productionPrefix, t].join("-")).join(" "); //#endregion export { l as a, c as i, o as n, s as r, u as t }; //# sourceMappingURL=css-ns-CcpadD-C.js.map