@annotorious/plugin-segment-anything 0.1.2 → 0.1.3

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.
@@ -12592,6 +12592,7 @@ const Ze = /* @__PURE__ */ Be(je), qe = (W, S = [255, 255, 255, 255], e = [0, 0,
12592
12592
  }, l = (D) => {
12593
12593
  var j, k, X, $;
12594
12594
  if (!i.sam || !i.isSAMReady || !i.isOSDReady || i.isAnimationInProgress) return;
12595
+ S.setMouseNavEnabled(!1);
12595
12596
  const O = { x: D.offsetX, y: D.offsetY }, A = s(O);
12596
12597
  if (!A) return;
12597
12598
  D.shiftKey || t === "remove" ? i.sam.currentPrompt = {
@@ -12636,7 +12637,7 @@ const Ze = /* @__PURE__ */ Be(je), qe = (W, S = [255, 255, 255, 255], e = [0, 0,
12636
12637
  var D, O;
12637
12638
  (D = S.element) == null || D.removeEventListener("pointermove", o), (O = S.element) == null || O.removeEventListener("pointerdown", l), S == null || S.removeHandler("animation-start", f), S == null || S.removeHandler("animation-finish", v);
12638
12639
  }, x = (D) => {
12639
- e = D, i.sam = void 0, D ? (S.setMouseNavEnabled(!1), r.show(), a.show(), w(), v()) : (S.setMouseNavEnabled(!0), r.hide(), a.hide(), T());
12640
+ e = D, i.sam = void 0, D ? (r.show(), a.show(), w(), v()) : (S.setMouseNavEnabled(!0), r.hide(), a.hide(), T());
12640
12641
  }, E = (D) => t = D, R = () => {
12641
12642
  r.destroy(), a.destroy(), T();
12642
12643
  }, M = new ze();