Cleaned up code warnings.
This commit is contained in:
parent
f511eb4ad5
commit
8ab433e687
@ -34,7 +34,9 @@ class App {
|
||||
canvas.style.height = "100%";
|
||||
canvas.id = "gameCanvas";
|
||||
document.body.appendChild(canvas);
|
||||
this.initialize(canvas);
|
||||
this.initialize(canvas).then(()=>{
|
||||
console.log('Scene Initialized');
|
||||
});
|
||||
}
|
||||
|
||||
async initialize(canvas) {
|
||||
|
||||
@ -9,7 +9,7 @@ import {
|
||||
PhysicsMotionType,
|
||||
PhysicsShapeType,
|
||||
Quaternion,
|
||||
Scene, Space,
|
||||
Scene,
|
||||
StandardMaterial,
|
||||
Vector3,
|
||||
WebXRDefaultExperience
|
||||
|
||||
@ -38,7 +38,7 @@ export class DiagramManager {
|
||||
static currentMesh: AbstractMesh;
|
||||
static rightController: Mesh;
|
||||
static state: BmenuState;
|
||||
private scene: Scene;
|
||||
private readonly scene: Scene;
|
||||
|
||||
constructor(scene: Scene) {
|
||||
this.scene = scene;
|
||||
|
||||
@ -2,7 +2,7 @@ import {Angle, Color3, MeshBuilder, Scene, StandardMaterial, Texture} from "@bab
|
||||
import axios from "axios";
|
||||
|
||||
export class Cameras {
|
||||
private scene: Scene;
|
||||
private readonly scene: Scene;
|
||||
private token: string;
|
||||
private cameras;
|
||||
private cameratextures = new Array<Texture>();
|
||||
@ -37,7 +37,7 @@ export class Cameras {
|
||||
|
||||
materialPlane.diffuseTexture = new Texture("https://local.immersiveidea.com/api/cameras?id=" + id, this.scene);
|
||||
materialPlane.specularColor = new Color3(0, 0, 0);
|
||||
materialPlane.backFaceCulling = false;//Allways show the front and the back of an element
|
||||
materialPlane.backFaceCulling = false;
|
||||
plane.material = materialPlane;
|
||||
plane.rotation.y = Angle.FromDegrees(180).radians();
|
||||
plane.position.y = height / 2 + .2;
|
||||
|
||||
@ -20,7 +20,7 @@ export enum BmenuState {
|
||||
}
|
||||
|
||||
export class Bmenu {
|
||||
private scene;
|
||||
private readonly scene;
|
||||
private state: BmenuState = BmenuState.NONE;
|
||||
|
||||
private xr;
|
||||
|
||||
@ -2,7 +2,7 @@ import {Angle, Color3, MeshBuilder, Scene, StandardMaterial, Texture} from "@bab
|
||||
import googleStaticMapsTile from "google-static-maps-tile";
|
||||
|
||||
export class Gmap {
|
||||
private scene: Scene;
|
||||
private readonly scene: Scene;
|
||||
|
||||
constructor(scene: Scene) {
|
||||
this.scene = scene;
|
||||
|
||||
@ -2,7 +2,7 @@ import * as maptilerClient from '@maptiler/client';
|
||||
import {Angle, Color3, MeshBuilder, Scene, StandardMaterial, Texture} from "@babylonjs/core";
|
||||
|
||||
export class Mapt {
|
||||
private scene: Scene;
|
||||
private readonly scene: Scene;
|
||||
|
||||
constructor(scene: Scene) {
|
||||
this.scene = scene;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user