mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 11:30:42 +08:00
This commit is contained in:
parent
aa9c9b2f7c
commit
b31765d0ab
@ -553,12 +553,12 @@ const showHighlight = (selected: IPdfAnno, pdf: any, hl?: boolean) => {
|
|||||||
if (!textLayerElement.lastElementChild) {
|
if (!textLayerElement.lastElementChild) {
|
||||||
return;
|
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")) {
|
if (textLayerElement.lastElementChild.classList.contains("endOfContent")) {
|
||||||
textLayerElement.insertAdjacentHTML("beforeend", "<div></div>");
|
textLayerElement.insertAdjacentHTML("beforeend", "<div></div>");
|
||||||
}
|
}
|
||||||
textLayerElement = textLayerElement.lastElementChild;
|
textLayerElement = textLayerElement.lastElementChild;
|
||||||
|
|
||||||
let html = `<div class="pdf__rect popover__block" data-node-id="${selected.id}" data-mode="${selected.mode}">`;
|
let html = `<div class="pdf__rect popover__block" data-node-id="${selected.id}" data-mode="${selected.mode}">`;
|
||||||
selected.coords.forEach((rect) => {
|
selected.coords.forEach((rect) => {
|
||||||
const bounds = viewport.convertToViewportRectangle(rect);
|
const bounds = viewport.convertToViewportRectangle(rect);
|
||||||
|
Loading…
Reference in New Issue
Block a user