From 5fbd8f564824cf97b9010853fa199cdde90d7ec3 Mon Sep 17 00:00:00 2001 From: Michael Mainguy Date: Thu, 3 Aug 2023 11:39:02 -0500 Subject: [PATCH] Cleanup --- src/information/inputTextView.ts | 2 +- src/util/appConfig.ts | 22 ---------------------- src/util/diaSounds.ts | 2 +- 3 files changed, 2 insertions(+), 24 deletions(-) diff --git a/src/information/inputTextView.ts b/src/information/inputTextView.ts index c91978e..20564ba 100644 --- a/src/information/inputTextView.ts +++ b/src/information/inputTextView.ts @@ -15,7 +15,7 @@ export type InputTextViewOptions = { export class InputTextView { public readonly onTextObservable: Observable = new Observable(); - private text: string; + private readonly text: string; private readonly scene: Scene; private readonly xrSession: WebXRSessionManager; diff --git a/src/util/appConfig.ts b/src/util/appConfig.ts index 5f6de64..cf741d4 100644 --- a/src/util/appConfig.ts +++ b/src/util/appConfig.ts @@ -108,28 +108,6 @@ export class AppConfig { return this.rotateSnapArray; } - public snapGridVal(value: Vector3): Vector3 { - if (this.currentGridSnapIndex == 0) { - return value; - } - const position = value.clone(); - position.x = round(position.x, this.currentGridSnap.value); - position.y = round(position.y, this.currentGridSnap.value); - position.z = round(position.z, this.currentGridSnap.value); - return position; - } - - public snapRotateVal(value: Vector3): Vector3 { - if (this.currentRotateSnapIndex == 0) { - return value; - } - const rotation = new Vector3(); - rotation.x = this.snapAngle(value.x); - rotation.y = this.snapAngle(value.y); - rotation.z = this.snapAngle(value.z); - return rotation; - } - private save() { this.persistenceManager.setConfig( { diff --git a/src/util/diaSounds.ts b/src/util/diaSounds.ts index 8ddce53..519847c 100644 --- a/src/util/diaSounds.ts +++ b/src/util/diaSounds.ts @@ -41,7 +41,7 @@ export class DiaSounds { return new Sound("tick", './tick.mp3', this.scene); } - private _enter: Sound; + private readonly _enter: Sound; public get enter() { return this._enter;