seatable-html-page-sdk 0.0.13-beta.1 → 0.0.13-beta.2
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/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/es/comment-mode.js +8 -1
- package/es/comment-mode.js.map +1 -1
- package/lib/comment-mode.js +8 -1
- package/lib/comment-mode.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4655,13 +4655,20 @@
|
|
|
4655
4655
|
}
|
|
4656
4656
|
}
|
|
4657
4657
|
buildElementData(target) {
|
|
4658
|
+
const rect = target.getBoundingClientRect();
|
|
4658
4659
|
const selector = generateSelector(target) || null;
|
|
4659
4660
|
return {
|
|
4660
4661
|
selector,
|
|
4661
4662
|
currentText: getCurrentText(target),
|
|
4662
4663
|
htmlHint: getHtmlHint(target),
|
|
4663
4664
|
computedStyle: computeStyle(target),
|
|
4664
|
-
label: generateLabel(target)
|
|
4665
|
+
label: generateLabel(target),
|
|
4666
|
+
elementPosition: {
|
|
4667
|
+
left: rect.left,
|
|
4668
|
+
top: rect.top,
|
|
4669
|
+
width: rect.width,
|
|
4670
|
+
height: rect.height
|
|
4671
|
+
}
|
|
4665
4672
|
};
|
|
4666
4673
|
}
|
|
4667
4674
|
destroy() {
|