Removed console.log
This commit is contained in:
parent
425a9e99e6
commit
16f9f7f92c
@ -59,14 +59,12 @@ export class App {
|
||||
}, 2);
|
||||
worker.onmessage = (evt) => {
|
||||
if (evt.data.entity) {
|
||||
console.log(evt.data.entity);
|
||||
diagramManager.onDiagramEventObservable.notifyObservers({
|
||||
type: DiagramEventType.ADD,
|
||||
entity: evt.data.entity
|
||||
}, 1);
|
||||
}
|
||||
if (evt.data.config) {
|
||||
console.log(evt.data.config);
|
||||
config.onConfigChangedObservable.notifyObservers(evt.data.config, 1);
|
||||
}
|
||||
}
|
||||
@ -106,12 +104,12 @@ export class App {
|
||||
});
|
||||
xr.baseExperience.sessionManager.onXRSessionInit.add((session) => {
|
||||
session.addEventListener('visibilitychange', (ev) => {
|
||||
console.log(ev);
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
xr.baseExperience.onStateChangedObservable.add((state) => {
|
||||
console.log(state);
|
||||
|
||||
if (state == WebXRState.IN_XR) {
|
||||
scene.audioEnabled = true;
|
||||
xr.baseExperience.camera.position = new Vector3(0, 1.6, 0);
|
||||
|
||||
@ -38,10 +38,8 @@ export class DiagramManager {
|
||||
this.logger.warn("onDiagramEventObservable already has Observers, you should be careful");
|
||||
}
|
||||
this.toolbox.colorChangeObservable.add((evt) => {
|
||||
console.log(evt);
|
||||
|
||||
this.onDiagramEventObservable.notifyObservers({type: DiagramEventType.CHANGECOLOR}, 2);
|
||||
//@TODO Refactor
|
||||
//this.persistenceManager.changeColor(Color3.FromHexString(evt.oldColor), Color3.FromHexString(evt.newColor));
|
||||
}, -1, true, this, false);
|
||||
this.onDiagramEventObservable.add(this.onDiagramEvent, 1, true, this);
|
||||
this.logger.debug("DiagramManager constructed");
|
||||
|
||||
@ -63,9 +63,9 @@ export class NewRelicData {
|
||||
await this.persistenceManager.setNewRelicData(newdata);
|
||||
this.data = newdata;
|
||||
}
|
||||
console.log(JSON.stringify(data, null, 2));
|
||||
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -76,7 +76,6 @@ export class NewRelicData {
|
||||
});
|
||||
|
||||
const duration = this.data[this.data.length - 1].openTime - this.data[0].openTime;
|
||||
console.log(duration);
|
||||
const interval = 10 / duration;
|
||||
const first = parseInt(this.data[0].openTime);
|
||||
const material = new StandardMaterial("material", this.scene);
|
||||
|
||||
@ -267,13 +267,11 @@ export class EditMenu extends AbstractMenu {
|
||||
const inputTextView = new InputTextView({xr: this.xr, scene: this.scene, text: "New Relic"});
|
||||
inputTextView.show();
|
||||
inputTextView.onTextObservable.addOnce((value) => {
|
||||
console.log(value.text);
|
||||
const config = this.diagramManager.config.current;
|
||||
config.newRelicKey = value.text;
|
||||
this.diagramManager.config.current = config;
|
||||
inputTextView.show();
|
||||
inputTextView.onTextObservable.addOnce((value) => {
|
||||
console.log(value.text);
|
||||
const config = this.diagramManager.config.current;
|
||||
config.newRelicAccount = value.text;
|
||||
this.diagramManager.config.current = config;
|
||||
|
||||
@ -14,10 +14,7 @@ export class RingCamera {
|
||||
|
||||
public async getCameras() {
|
||||
const cams = await this.ringApi.getCameras();
|
||||
//console.log(cams[0]);
|
||||
|
||||
const camid = cams.map((value) => value.id);
|
||||
//console.log(camid);
|
||||
return cams;
|
||||
}
|
||||
}
|
||||
@ -46,7 +46,6 @@ export class Introduction {
|
||||
this.advance.content = text;
|
||||
|
||||
this.advance.onPointerClickObservable.add(() => {
|
||||
console.log("click");
|
||||
this.takeStep();
|
||||
}, -1, false, this, false);
|
||||
this.manager.addControl(this.advance);
|
||||
@ -112,7 +111,7 @@ export class Introduction {
|
||||
if (volume > 0) {
|
||||
sound.attachToMesh(aggregate.body.transformNode);
|
||||
sound.updateOptions({offset: 0, volume: volume, length: .990});
|
||||
console.log(volume);
|
||||
|
||||
sound.play();
|
||||
}
|
||||
});
|
||||
|
||||
@ -17,8 +17,7 @@ export class AppConfig {
|
||||
physicsEnabled: false,
|
||||
demoCompleted: false,
|
||||
};
|
||||
this.onConfigChangedObservable.add((config, state) => {
|
||||
console.log(state);
|
||||
this.onConfigChangedObservable.add((config) => {
|
||||
this._currentConfig = config;
|
||||
}, -1);
|
||||
}
|
||||
|
||||
@ -59,7 +59,7 @@ export class CustomEnvironment {
|
||||
|
||||
}, 2000, effects);
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -7,7 +7,6 @@ const ctx: Worker = self as any;
|
||||
|
||||
|
||||
ctx.onmessage = (event) => {
|
||||
console.log(event.data);
|
||||
if (event.data.type == 'init') {
|
||||
persistenceManager.updateObserver.add((event) => {
|
||||
ctx.postMessage({entity: event});
|
||||
@ -16,12 +15,12 @@ ctx.onmessage = (event) => {
|
||||
ctx.postMessage({config: event});
|
||||
});
|
||||
persistenceManager.initialize().then(() => {
|
||||
console.log('initialized');
|
||||
|
||||
});
|
||||
} else {
|
||||
if (event.data.entity) {
|
||||
const data = (event.data.entity as DiagramEvent);
|
||||
console.log(data);
|
||||
|
||||
switch (data.type) {
|
||||
case DiagramEventType.ADD:
|
||||
persistenceManager.add(data.entity);
|
||||
@ -37,8 +36,7 @@ ctx.onmessage = (event) => {
|
||||
}
|
||||
}
|
||||
if (event.data.config) {
|
||||
console.log('updateing config');
|
||||
console.log(event.data.config);
|
||||
|
||||
persistenceManager.setConfig(event.data.config);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user