🚨
This commit is contained in:
parent
09115a9c9e
commit
3c05a55135
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -147,4 +147,4 @@ export const improveBreadcrumbAppearance = (element: HTMLElement) => {
|
|||
item.scrollLeft = (item.lastElementChild as HTMLElement).offsetLeft - item.clientWidth + 14;
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue