@annotorious/react 3.7.18 → 3.7.20
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/ImageAnnotator.d.ts.map +1 -1
- package/dist/annotorious-react.es.js +6 -6
- package/dist/annotorious-react.es10.js +1 -1
- package/dist/annotorious-react.es11.js +1 -1
- package/dist/annotorious-react.es14.js.map +1 -1
- package/dist/annotorious-react.es16.js +3 -3
- package/dist/annotorious-react.es17.js +1 -1
- package/dist/annotorious-react.es2.js +5 -5
- package/dist/annotorious-react.es25.js +250 -246
- package/dist/annotorious-react.es25.js.map +1 -1
- package/dist/annotorious-react.es5.js +11 -9
- package/dist/annotorious-react.es5.js.map +1 -1
- package/dist/annotorious-react.es8.js +118 -40
- package/dist/annotorious-react.es8.js.map +1 -1
- package/dist/annotorious-react.es9.js +42 -118
- package/dist/annotorious-react.es9.js.map +1 -1
- package/dist/openseadragon/OpenSeadragonAnnotator.d.ts.map +1 -1
- package/package.json +16 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inline as st, offset as rt, flip as ct, shift as lt,
|
|
1
|
+
import { inline as st, offset as rt, flip as ct, shift as lt, computePosition as ft, arrow as ut } from "./annotorious-react.es25.js";
|
|
2
2
|
import { createCoords as y, rectToClientRect as J, round as D, max as E, min as V, floor as A } from "./annotorious-react.es24.js";
|
|
3
3
|
import { getOverflowAncestors as z, isElement as v, getDocumentElement as R, getWindow as L, getFrameElement as U, getComputedStyle as b, isHTMLElement as C, isTopLayer as $, getParentNode as W, isLastTraversableNode as H, isTableElement as ht, isContainingBlock as Q, getContainingBlock as at, getNodeName as _, isOverflowElement as q, getNodeScroll as I, isWebKit as Y } from "./annotorious-react.es20.js";
|
|
4
4
|
function Z(t) {
|
|
@@ -374,7 +374,7 @@ function At(t, e, o, n) {
|
|
|
374
374
|
}), h == null || h(), (g = a) == null || g.disconnect(), a = null, f && cancelAnimationFrame(w);
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
|
-
const Dt = rt, Ht = lt, It = ct, Mt =
|
|
377
|
+
const Dt = rt, Ht = lt, It = ct, Mt = ut, Nt = st, Vt = (t, e, o) => {
|
|
378
378
|
const n = /* @__PURE__ */ new Map(), i = {
|
|
379
379
|
platform: Et,
|
|
380
380
|
...o
|
|
@@ -382,7 +382,7 @@ const Dt = rt, Ht = lt, It = ct, Mt = ft, Nt = st, Vt = (t, e, o) => {
|
|
|
382
382
|
...i.platform,
|
|
383
383
|
_c: n
|
|
384
384
|
};
|
|
385
|
-
return
|
|
385
|
+
return ft(t, e, {
|
|
386
386
|
...i,
|
|
387
387
|
platform: r
|
|
388
388
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inline as I, offset as J, flip as K, shift as N,
|
|
1
|
+
import { inline as I, offset as J, flip as K, shift as N, computePosition as Q, arrow as L } from "./annotorious-react.es16.js";
|
|
2
2
|
import { autoUpdate as ce, platform as ae } from "./annotorious-react.es16.js";
|
|
3
3
|
import * as o from "react";
|
|
4
4
|
import { useLayoutEffect as T } from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as I } from "react/jsx-runtime";
|
|
2
2
|
import { dequal as O } from "./annotorious-react.es12.js";
|
|
3
|
-
import {
|
|
3
|
+
import { forwardRef as U, useState as v, useRef as j, useImperativeHandle as P, useEffect as w, createContext as k, useContext as h } from "react";
|
|
4
4
|
import { useDebounce as _ } from "./annotorious-react.es13.js";
|
|
5
|
-
const f =
|
|
5
|
+
const f = k({
|
|
6
6
|
anno: void 0,
|
|
7
7
|
setAnno: void 0,
|
|
8
8
|
annotations: [],
|
|
@@ -10,9 +10,9 @@ const f = U({
|
|
|
10
10
|
}), y = (t, n) => {
|
|
11
11
|
const { event: e, ...r } = t, { event: s, ...o } = n;
|
|
12
12
|
return O(r, o) ? (e == null ? void 0 : e.timeStamp) === (s == null ? void 0 : s.timeStamp) : !1;
|
|
13
|
-
}, Q =
|
|
14
|
-
const [e, r] = v(null), [s, o] = v([]), [u, c] = v({ selected: [], previous: [] }), V =
|
|
15
|
-
return
|
|
13
|
+
}, Q = U((t, n) => {
|
|
14
|
+
const [e, r] = v(null), [s, o] = v([]), [u, c] = v({ selected: [], previous: [] }), V = j([]);
|
|
15
|
+
return P(n, () => e), w(() => {
|
|
16
16
|
if (e) {
|
|
17
17
|
const { selection: p, store: i } = e.state;
|
|
18
18
|
i.all().length > 0 && o(i.all());
|