webmarker-js 0.4.0 → 0.5.0
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/chrome-extension/dist/index.d.ts +72 -0
- package/chrome-extension/dist/main.js +1069 -0
- package/chrome-extension/dist/module.js +1048 -0
- package/dist/main.js +1 -1
- package/dist/module.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/dist/main.js
CHANGED
@@ -1019,7 +1019,7 @@ var WebMarker = (() => {
|
|
1019
1019
|
const { width, height } = element.getBoundingClientRect();
|
1020
1020
|
Object.assign(boundingBoxElement.style, {
|
1021
1021
|
left: `${x}px`,
|
1022
|
-
top: `${y}px`,
|
1022
|
+
top: `${y + height}px`,
|
1023
1023
|
width: `${width}px`,
|
1024
1024
|
height: `${height}px`
|
1025
1025
|
});
|
package/dist/module.js
CHANGED
@@ -995,7 +995,7 @@ function createBoundingBox(element, style, label, boundingBoxClass) {
|
|
995
995
|
const { width, height } = element.getBoundingClientRect();
|
996
996
|
Object.assign(boundingBoxElement.style, {
|
997
997
|
left: `${x}px`,
|
998
|
-
top: `${y}px`,
|
998
|
+
top: `${y + height}px`,
|
999
999
|
width: `${width}px`,
|
1000
1000
|
height: `${height}px`
|
1001
1001
|
});
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -203,7 +203,7 @@ function createBoundingBox(
|
|
203
203
|
const { width, height } = element.getBoundingClientRect();
|
204
204
|
Object.assign(boundingBoxElement.style, {
|
205
205
|
left: `${x}px`,
|
206
|
-
top: `${y}px`,
|
206
|
+
top: `${y + height}px`,
|
207
207
|
width: `${width}px`,
|
208
208
|
height: `${height}px`,
|
209
209
|
});
|