Cleanup
This commit is contained in:
parent
77f5a2543f
commit
5fbd8f5648
@ -15,7 +15,7 @@ export type InputTextViewOptions = {
|
||||
|
||||
export class InputTextView {
|
||||
public readonly onTextObservable: Observable<TextEvent> = new Observable<TextEvent>();
|
||||
private text: string;
|
||||
private readonly text: string;
|
||||
private readonly scene: Scene;
|
||||
private readonly xrSession: WebXRSessionManager;
|
||||
|
||||
|
||||
@ -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(
|
||||
{
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user