feat: center view
This commit is contained in:
parent
f3e2620744
commit
9f81a883f6
@ -74,5 +74,4 @@ export const EDITOR_CONFIG: Options = {
|
||||
textRotate: false,
|
||||
textAlign: 'center',
|
||||
textBaseline: 'top',
|
||||
rule: true,
|
||||
};
|
||||
|
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user