This commit is contained in:
xu_yanfeng
2025-01-27 17:39:51 +08:00
parent 63e842deb3
commit 36680bbf3d
6 changed files with 20 additions and 8 deletions

View File

@@ -145,16 +145,19 @@ export class Hint {
}
public cleanHover() {
this.hoverNodes = [];
this.hintAdapter.clear();
this.hintAdapter && this.hintAdapter.clear();
}
public cleanSelected() {
this.selectedNodes = [];
this.hintAdapter.clear();
this.hintAdapter && this.hintAdapter.clear();
}
private hoverNodes = [];
private selectedNodes = [];
public update() {
if (!this.hintAdapter) {
return;
}
this.hintAdapter.initDrawNode();
if (!this.hintAdapter.isDrawValid()) {
return;