@annotorious/plugin-segment-anything 0.1.0 → 0.1.1

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.
@@ -12462,8 +12462,8 @@ const Ze = /* @__PURE__ */ Be(je), qe = (N, R = [255, 255, 255, 255], e = [0, 0,
12462
12462
  s * R.currentBounds.h + 2 * l
12463
12463
  );
12464
12464
  const d = Ue(a).map((v) => {
12465
- const { x: w, y: T } = t.viewport.viewerElementToImageCoordinates(new Ze.Point(v[0], v[1]));
12466
- return [w, T];
12465
+ const w = t.viewport.pointFromPixel(new Ze.Point(v[0], v[1])), { x: T, y: x } = t.viewport.viewportToImageCoordinates(w.x, w.y);
12466
+ return [T, x];
12467
12467
  }), f = {
12468
12468
  type: Ae.POLYGON,
12469
12469
  geometry: {