@annotorious/openseadragon 3.3.1 → 3.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -756,7 +756,7 @@ const Ve = (r) => Pn(r.target), Pn = (r) => {
|
|
|
756
756
|
var t, e;
|
|
757
757
|
return (r == null ? void 0 : r.annotation) !== void 0 && ((e = (t = r == null ? void 0 : r.selector) == null ? void 0 : t.geometry) == null ? void 0 : e.bounds) !== void 0;
|
|
758
758
|
}, Sg = (r, t = !1) => {
|
|
759
|
-
const e = typeof r == "string" ? r : r.value, i =
|
|
759
|
+
const e = typeof r == "string" ? r : r.value, i = /(xywh)=(pixel|percent)?:?(.+?),(.+?),(.+?),(.+)*/g, s = [...e.matchAll(i)][0], [n, o, a, l, h, u, c] = s;
|
|
760
760
|
if (o !== "xywh") throw new Error("Unsupported MediaFragment: " + e);
|
|
761
761
|
if (a && a !== "pixel") throw new Error(`Unsupported MediaFragment unit: ${a}`);
|
|
762
762
|
const [d, p, f, m] = [l, h, u, c].map(parseFloat);
|
|
@@ -2317,7 +2317,7 @@ const PC = (r, t = { strict: !0, invertY: !1 }) => ({ parse: (e) => Gy(e, t), se
|
|
|
2317
2317
|
modified: n,
|
|
2318
2318
|
body: o,
|
|
2319
2319
|
...a
|
|
2320
|
-
} = r, l = Uy(o || [], e), h = Array.isArray(r.target) ? r.target[0] : r.target, u = Array.isArray(h.selector) ? h.selector[0] : h.selector, c = (u == null ? void 0 : u.type) === "FragmentSelector" ? Sg(u, t.invertY) : (u == null ? void 0 : u.type) === "SvgSelector" ? ty(u) : void 0;
|
|
2320
|
+
} = r, l = Uy(o || [], e), h = Array.isArray(r.target) ? r.target[0] : r.target, u = typeof h == "string" ? h : Array.isArray(h.selector) ? h.selector[0] : h.selector, c = typeof u == "string" || (u == null ? void 0 : u.type) === "FragmentSelector" ? Sg(u, t.invertY) : (u == null ? void 0 : u.type) === "SvgSelector" ? ty(u) : void 0;
|
|
2321
2321
|
return c || !t.strict ? {
|
|
2322
2322
|
parsed: {
|
|
2323
2323
|
...a,
|