WIP refactor

This commit is contained in:
Danny McGee
2023-10-12 23:40:09 -04:00
parent 6cdeda6a7b
commit 0bee54a3d0
6 changed files with 905 additions and 220 deletions
+4 -4
View File
@@ -12,7 +12,7 @@ import styles from "./app.element.scss?inline";
import { match } from "@storyteller/utility";
// FIXME: Figure out how to generate the correct code from `wasm_bindgen`
enum InteractionTransform {
enum TransformType {
TRANSLATE = 0b0001,
ROTATE = 0b0010,
}
@@ -92,9 +92,9 @@ export class AppElement extends LitElement {
});
let transform = 0;
if (this.translateGizmoEnabled) transform |= InteractionTransform.TRANSLATE;
if (this.rotateGizmoEnabled) transform |= InteractionTransform.ROTATE;
// TODO: Scale
if (this.translateGizmoEnabled) transform |= TransformType.TRANSLATE;
if (this.rotateGizmoEnabled) transform |= TransformType.ROTATE;
// TODO: Scale?
studio.setInteractionTransform(transform);
}