chore: bump toolchain & fix lint

This commit is contained in:
DarkSky
2026-05-24 06:47:17 +08:00
parent adfa51a372
commit 2aa56cbccd
39 changed files with 151 additions and 130 deletions
+11 -11
View File
@@ -119,15 +119,14 @@ export class MindMapView extends GfxElementModelView<MindmapElementModel> {
private _setLayoutMethod() {
this.model.setLayoutMethod(function (
this: MindmapElementModel,
tree: MindmapNode | MindmapRoot = this.tree,
options: {
applyStyle?: boolean;
layoutType?: LayoutType;
stashed?: boolean;
} = {
applyStyle: true,
stashed: true,
}
tree: MindmapNode | MindmapRoot | undefined,
options:
| {
applyStyle?: boolean;
layoutType?: LayoutType;
stashed?: boolean;
}
| undefined
) {
const { stashed, applyStyle, layoutType } = Object.assign(
{
@@ -137,9 +136,10 @@ export class MindMapView extends GfxElementModelView<MindmapElementModel> {
},
options
);
const targetTree = tree ?? this.tree;
const pop = stashed ? this.stashTree(tree) : null;
handleLayout(this, tree, applyStyle, layoutType);
const pop = stashed ? this.stashTree(targetTree) : null;
handleLayout(this, targetTree, applyStyle, layoutType);
pop?.();
});
}