Refactor imports and types in create-scene-command.ts
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
import { createOpaqueId } from "../core/ids";
|
import { createOpaqueId } from "../core/ids";
|
||||||
import { createEmptyProjectScene } from "../document/scene-document";
|
import {
|
||||||
|
createEmptyProjectScene,
|
||||||
|
type ProjectDocument
|
||||||
|
} from "../document/scene-document";
|
||||||
|
|
||||||
import type { EditorCommand } from "./command";
|
import type { EditorCommand } from "./command";
|
||||||
|
|
||||||
@@ -57,9 +60,7 @@ export function createCreateSceneCommand(): EditorCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
context.setProjectDocument(
|
context.setProjectDocument(
|
||||||
JSON.parse(previousProjectDocumentSerialized) as ReturnType<
|
JSON.parse(previousProjectDocumentSerialized) as ProjectDocument
|
||||||
typeof context.getProjectDocument
|
|
||||||
>
|
|
||||||
);
|
);
|
||||||
context.setSelection({ kind: "none" });
|
context.setSelection({ kind: "none" });
|
||||||
context.setToolMode("select");
|
context.setToolMode("select");
|
||||||
|
|||||||
Reference in New Issue
Block a user