fix: image fragment viewing

This commit is contained in:
Tomáš Mládek 2023-05-03 21:13:51 +02:00
parent 0f2acbadf6
commit d254a8c329

View file

@ -12,8 +12,8 @@
$: objectAddress = String($entity?.get("ANNOTATES") || ""); $: objectAddress = String($entity?.get("ANNOTATES") || "");
$: imageFragment = ["x=", "y=", "w=", "h="].every((q) => $: imageFragment = String($entity?.get("W3C_FRAGMENT_SELECTOR")).includes(
String($entity?.get("W3C_FRAGMENT_SELECTOR")).includes(q) "xywh="
); );
let imageLoaded = false; let imageLoaded = false;