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