An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/7208
Vanessa046b3d095a86
diff --git a/app/src/asset/anno.ts b/app/src/asset/anno.tsindex 9424c639b1..0743dcc997 100644--- a/app/src/asset/anno.ts+++ b/app/src/asset/anno.ts@@ -96,7 +96,7 @@ export const initAnno = (file: string, element: HTMLElement, annoId: string, pdfnewHeight = y - newTop;}rectResizeElement.setAttribute("style",- `top:${newTop}px;height:${newHeight}px;left:${newLeft}px;width:${newWidth}px;background-color:${moveEvent.altKey?"var(--b3-pdf-background1)":""}`);+ `top:${newTop}px;height:${newHeight}px;left:${newLeft}px;width:${newWidth}px;background-color:${moveEvent.altKey ? "var(--b3-pdf-background1)" : ""}`);};documentSelf.onmouseup = () => {documentSelf.onmousemove = null;@@ -401,7 +401,7 @@ const getHightlightCoordsByRange = (pdf: any, color: string) => {return results;};-const getHightlightCoordsByRect = (pdf: any, color: string, rectResizeElement: HTMLElement, type:string) => {+const getHightlightCoordsByRect = (pdf: any, color: string, rectResizeElement: HTMLElement, type: string) => {const rect = rectResizeElement.getBoundingClientRect();const startPageElement = hasClosestByClassName(document.elementFromPoint(rect.left, rect.top - 1), "page");@@ -615,10 +615,10 @@ const copyAnno = (idPath: string, fileName: string) => {) {const rect = rectElement.firstElementChild.getBoundingClientRect();getCurrentWindow().webContents.capturePage({- x: Math.floor(rect.x),- y: Math.floor(rect.y),- width: Math.floor(rect.width),- height: Math.floor(rect.height)+ x: Math.floor(rect.x * window.siyuan.storage[Constants.LOCAL_ZOOM]),+ y: Math.floor(rect.y * window.siyuan.storage[Constants.LOCAL_ZOOM]),+ width: Math.floor(rect.width * window.siyuan.storage[Constants.LOCAL_ZOOM]),+ height: Math.floor(rect.height * window.siyuan.storage[Constants.LOCAL_ZOOM])}).then((image: NativeImage) => {fetch(image.toDataURL()).then((response) => {return response.blob();