feat: center view
This commit is contained in:
parent
f3e2620744
commit
9f81a883f6
@ -74,5 +74,4 @@ export const EDITOR_CONFIG: Options = {
|
|||||||
textRotate: false,
|
textRotate: false,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
textBaseline: 'top',
|
textBaseline: 'top',
|
||||||
rule: true,
|
|
||||||
};
|
};
|
||||||
|
@ -44,6 +44,7 @@ export class EditorService extends Meta2d {
|
|||||||
await this.#loadSceneAreas(areas);
|
await this.#loadSceneAreas(areas);
|
||||||
this.store.historyIndex = undefined;
|
this.store.historyIndex = undefined;
|
||||||
this.store.histories = [];
|
this.store.histories = [];
|
||||||
|
this.centerView();
|
||||||
}
|
}
|
||||||
public save(): string {
|
public save(): string {
|
||||||
const scene: StandardScene = {
|
const scene: StandardScene = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user