@lvce-editor/hover-worker 1.4.0 → 1.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/dist/hoverWorkerMain.js +9 -8
- package/package.json +1 -1
package/dist/hoverWorkerMain.js
CHANGED
|
@@ -1534,6 +1534,15 @@ const y = (editor, rowIndex) => {
|
|
|
1534
1534
|
return offsetY;
|
|
1535
1535
|
};
|
|
1536
1536
|
|
|
1537
|
+
const getHoverPositionXy = (editor, rowIndex, wordStart, documentationHeight) => {
|
|
1538
|
+
const x$1 = x(editor, rowIndex, wordStart);
|
|
1539
|
+
const y$1 = editor.height - y(editor, rowIndex) + editor.y + 40;
|
|
1540
|
+
return {
|
|
1541
|
+
x: x$1,
|
|
1542
|
+
y: y$1
|
|
1543
|
+
};
|
|
1544
|
+
};
|
|
1545
|
+
|
|
1537
1546
|
const getOffsetAtCursor = editorUid => {
|
|
1538
1547
|
// TODO ask editor worker
|
|
1539
1548
|
return 0;
|
|
@@ -1608,14 +1617,6 @@ const getMatchingDiagnostics = (diagnostics, rowIndex, columnIndex) => {
|
|
|
1608
1617
|
}
|
|
1609
1618
|
return matching;
|
|
1610
1619
|
};
|
|
1611
|
-
const getHoverPositionXy = (editor, rowIndex, wordStart, documentationHeight) => {
|
|
1612
|
-
const x$1 = x(editor, rowIndex, wordStart);
|
|
1613
|
-
const y$1 = editor.height - y(editor, rowIndex) + editor.y + 40;
|
|
1614
|
-
return {
|
|
1615
|
-
x: x$1,
|
|
1616
|
-
y: y$1
|
|
1617
|
-
};
|
|
1618
|
-
};
|
|
1619
1620
|
const getEditorHoverInfo = async (editorUid, editorLanguageId, hoverFullWidth, hoverPaddingLeft, hoverPaddingRight, hoverBorderLeft, hoverBorderRight, hoverDocumentationFontFamily, hoverDocumentationFontSize, hoverDocumentationLineHeight, fallbackDisplayStringLanguageId) => {
|
|
1620
1621
|
number(editorUid);
|
|
1621
1622
|
const {
|