@annotorious/openseadragon 3.7.20 → 3.7.22
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.
|
@@ -898,8 +898,8 @@ un(vt.RECTANGLE, ty);
|
|
|
898
898
|
const Le = (r) => Us(r.target), Us = (r) => {
|
|
899
899
|
var t, e;
|
|
900
900
|
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;
|
|
901
|
-
}, ey = (r) => (r == null ? void 0 : r.type) === "FragmentSelector" ? !0 : typeof r == "string" ? r.indexOf("#") < 0 ? !1 :
|
|
902
|
-
const e = typeof r == "string" ? r : r.value, i = /(xywh)=(pixel|percent)?:?(.+?),(.+?),(.+?),(.+)*/g, n = [...e.matchAll(i)][0];
|
|
901
|
+
}, ey = (r) => (r == null ? void 0 : r.type) === "FragmentSelector" ? !0 : typeof r == "string" ? r.indexOf("#") < 0 ? !1 : /#xywh(?:=(?:pixel:|percent:)?)(.+?),(.+?),(.+?),(.+)$/i.test(r) : !1, ry = (r, t = !1) => {
|
|
902
|
+
const e = typeof r == "string" ? r : r.value, i = /(xywh)=(?:(pixel|percent):)?:?(.+?),(.+?),(.+?),(.+)*/g, n = [...e.matchAll(i)][0];
|
|
903
903
|
if (!n) throw new Error("Not a MediaFragment: " + e);
|
|
904
904
|
const [s, o, a, l, h, c, u] = n;
|
|
905
905
|
if (o !== "xywh") throw new Error("Unsupported MediaFragment: " + e);
|