mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 14:28:49 +01:00
This commit is contained in:
parent
aa9c9b2f7c
commit
b31765d0ab
1 changed files with 2 additions and 2 deletions
|
|
@ -553,12 +553,12 @@ const showHighlight = (selected: IPdfAnno, pdf: any, hl?: boolean) => {
|
|||
if (!textLayerElement.lastElementChild) {
|
||||
return;
|
||||
}
|
||||
const viewport = page.viewport;
|
||||
|
||||
const viewport = page.viewport.clone({rotation: 0}); // rotation https://github.com/siyuan-note/siyuan/issues/9831
|
||||
if (textLayerElement.lastElementChild.classList.contains("endOfContent")) {
|
||||
textLayerElement.insertAdjacentHTML("beforeend", "<div></div>");
|
||||
}
|
||||
textLayerElement = textLayerElement.lastElementChild;
|
||||
|
||||
let html = `<div class="pdf__rect popover__block" data-node-id="${selected.id}" data-mode="${selected.mode}">`;
|
||||
selected.coords.forEach((rect) => {
|
||||
const bounds = viewport.convertToViewportRectangle(rect);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue