@dataloop-ai/components 0.17.112 → 0.17.113

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.17.112",
3
+ "version": "0.17.113",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -101,8 +101,8 @@ export function getAnchorProps(el: HTMLElement, offset: number[]) {
101
101
  bottom,
102
102
  width,
103
103
  height,
104
- middle: left + (right - left) / 2,
105
- center: top + (bottom - top) / 2
104
+ middle: left + (right - left) / 2 + offset[0] ?? 0,
105
+ center: top + (bottom - top) / 2 + offset[1] ?? 0
106
106
  }
107
107
  }
108
108