@annotorious/annotorious 3.0.2 → 3.0.4
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 +5 -3
- package/dist/annotorious.es.js.map +1 -1
- package/dist/annotorious.js +1 -1
- package/dist/annotorious.js.map +1 -1
- package/dist/state/ImageAnnotatorState.d.ts +1 -1
- package/package.json +3 -3
- package/src/annotation/editors/EditorMount.svelte +1 -1
- package/src/state/ImageAnnotatorState.ts +1 -1
package/dist/annotorious.es.js
CHANGED
|
@@ -667,11 +667,11 @@ const xn = (e, t) => {
|
|
|
667
667
|
targetUpdated: to(e, t) ? { oldTarget: e.target, newTarget: t.target } : void 0
|
|
668
668
|
};
|
|
669
669
|
};
|
|
670
|
-
var z = /* @__PURE__ */ ((e) => (e.LOCAL = "LOCAL", e.REMOTE = "REMOTE", e))(z || {});
|
|
670
|
+
var z = /* @__PURE__ */ ((e) => (e.LOCAL = "LOCAL", e.REMOTE = "REMOTE", e.SILENT = "SILENT", e))(z || {});
|
|
671
671
|
const no = (e, t) => {
|
|
672
672
|
var n, o;
|
|
673
673
|
const { changes: i, origin: s } = t;
|
|
674
|
-
if (!(
|
|
674
|
+
if (!(e.options.origin ? e.options.origin === s : s !== "SILENT"))
|
|
675
675
|
return !1;
|
|
676
676
|
if (e.options.ignore) {
|
|
677
677
|
const { ignore: r } = e.options, l = (a) => a && a.length > 0;
|
|
@@ -724,7 +724,9 @@ const no = (e, t) => {
|
|
|
724
724
|
}
|
|
725
725
|
};
|
|
726
726
|
}, io = (e) => e.id !== void 0, so = () => {
|
|
727
|
-
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), n = [], o = (E, A = {}) =>
|
|
727
|
+
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), n = [], o = (E, A = {}) => {
|
|
728
|
+
n.push({ onChange: E, options: A });
|
|
729
|
+
}, i = (E) => {
|
|
728
730
|
const A = n.findIndex((S) => S.onChange == E);
|
|
729
731
|
A > -1 && n.splice(A, 1);
|
|
730
732
|
}, s = (E, A) => {
|