From 3c05a55135ee8bc9d0738783a2911de80ac08b9c Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 4 Nov 2024 22:57:39 +0800 Subject: [PATCH] :rotating_light: --- app/src/layout/dock/Graph.ts | 2 +- app/src/layout/dock/index.ts | 4 ++-- app/src/protyle/wysiwyg/renderBacklink.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/layout/dock/Graph.ts b/app/src/layout/dock/Graph.ts index 7cc19d280..ddc33c097 100644 --- a/app/src/layout/dock/Graph.ts +++ b/app/src/layout/dock/Graph.ts @@ -665,7 +665,7 @@ export class Graph extends Model { position: {x: 0, y: 0}, scale: initialScale, animation: false - }) + }); } const time = 256; const intervalNodeTime = Math.max(Math.ceil(time / 8), 32); diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts index 94d808082..2e72fbd8d 100644 --- a/app/src/layout/dock/index.ts +++ b/app/src/layout/dock/index.ts @@ -538,7 +538,7 @@ export class Dock { if (this.layout.element.querySelector(".fullscreen")) { document.getElementById("drag")?.classList.remove("fn__hidden"); } - const graph = this.data[type] as Graph + const graph = this.data[type] as Graph; graph.destroy(); } // 关闭 dock 后设置光标,初始化的时候不能设置,否则关闭文档树且多页签时会请求两次 getDoc @@ -757,7 +757,7 @@ export class Dock { resizeTabs(isSaveLayout); this.showDock(); if (target.classList.contains("dock__item--active") && !hide && (type === "graph" || type === "globalGraph")) { - const graph = this.data[type] as Graph + const graph = this.data[type] as Graph; graph.onGraph(false); } } diff --git a/app/src/protyle/wysiwyg/renderBacklink.ts b/app/src/protyle/wysiwyg/renderBacklink.ts index 4ceea4916..3c5b4cae8 100644 --- a/app/src/protyle/wysiwyg/renderBacklink.ts +++ b/app/src/protyle/wysiwyg/renderBacklink.ts @@ -147,4 +147,4 @@ export const improveBreadcrumbAppearance = (element: HTMLElement) => { item.scrollLeft = (item.lastElementChild as HTMLElement).offsetLeft - item.clientWidth + 14; } }); -} +};