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.
38 lines (37 loc) • 1.33 kB
JavaScript
import { U as e, at as t, dt as n, ft as r, g as i, st as a } from "./getters-B4oepJRC.js";
import { h as o, mt as s } from "./canvases-CeUwRIFA.js";
import { t as c } from "./WindowCanvasNavigationControls-DHHogzDd.js";
import { jsx as l, jsxs as u } from "react/jsx-runtime";
import { styled as d } from "@mui/material/styles";
//#region src/components/TextViewer.jsx
var f = /* @__PURE__ */ r(t(), 1), p = d("div")(() => ({
alignItems: "center",
display: "flex",
width: "100%"
})), m = d("div")(() => ({
maxHeight: "100%",
width: "100%"
}));
function h({ textOptions: e = {}, textResources: t = [], windowId: n }) {
return /* @__PURE__ */ l(p, { children: /* @__PURE__ */ u(m, {
...e,
children: [t.map((e) => /* @__PURE__ */ l("source", {
src: e.id,
type: e.getFormat()
}, e.id)), /* @__PURE__ */ l(c, { windowId: n })]
}) });
}
h.propTypes = {
textOptions: f.default.object,
textResources: f.default.arrayOf(f.default.object),
windowId: f.default.string.isRequired
};
//#endregion
//#region src/containers/TextViewer.js
var g = /* @__PURE__ */ n({ default: () => _ }), _ = e(a((e, { windowId: t }) => ({
textOptions: s(e).textOptions,
textResources: o(e, { windowId: t }) || []
}), null), i("TextViewer"))(h);
//#endregion
export { g as n, h as r, _ as t };
//# sourceMappingURL=TextViewer-DOO2boDF.js.map