feat: center view

This commit is contained in:
chndfang 2025-06-29 14:39:35 +08:00
parent f3e2620744
commit 9f81a883f6
2 changed files with 1 additions and 1 deletions

View File

@ -74,5 +74,4 @@ export const EDITOR_CONFIG: Options = {
textRotate: false,
textAlign: 'center',
textBaseline: 'top',
rule: true,
};

View File

@ -44,6 +44,7 @@ export class EditorService extends Meta2d {
await this.#loadSceneAreas(areas);
this.store.historyIndex = undefined;
this.store.histories = [];
this.centerView();
}
public save(): string {
const scene: StandardScene = {