@annotorious/annotorious 3.7.6 → 3.7.8
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.
package/dist/annotorious.es.js
CHANGED
|
@@ -1524,7 +1524,7 @@ const Ai = 250, ki = (e, t) => {
|
|
|
1524
1524
|
}, m = (E, S) => {
|
|
1525
1525
|
E ? i.setSelected(E, S) : i.clear();
|
|
1526
1526
|
}, g = (E) => {
|
|
1527
|
-
i.
|
|
1527
|
+
i.setUserSelectAction(E);
|
|
1528
1528
|
}, k = (E) => {
|
|
1529
1529
|
if (n) {
|
|
1530
1530
|
const S = n.parse(E).parsed, y = n.serialize(o.getAnnotation(S.id));
|
|
@@ -4852,8 +4852,9 @@ function Ds(e, t, n) {
|
|
|
4852
4852
|
const q = u.elementToImage(T.offsetX, T.offsetY);
|
|
4853
4853
|
h.push(q), n(10, p = q);
|
|
4854
4854
|
} else
|
|
4855
|
-
h.push(p);
|
|
4855
|
+
p && h.push(p);
|
|
4856
4856
|
} else {
|
|
4857
|
+
if (!p) return;
|
|
4857
4858
|
if (h.length === 1 && ut(h[0], p) <= 4) {
|
|
4858
4859
|
n(0, h = []), n(10, p = void 0);
|
|
4859
4860
|
return;
|