Removed debug printouts from wwt_json_api.js

This commit is contained in:
O . O 2019-09-16 17:56:05 -04:00
Родитель 968cda2985
Коммит 45fa3c316c
1 изменённых файлов: 0 добавлений и 9 удалений

Просмотреть файл

@ -24,7 +24,6 @@ var ReferenceFramesRadius = {
}; };
function wwt_apply_json_message(wwt, msg) { function wwt_apply_json_message(wwt, msg) {
console.log(JSON.stringify(msg))
if (!wwt.hasOwnProperty('annotations')) { if (!wwt.hasOwnProperty('annotations')) {
wwt.annotations = {}; wwt.annotations = {};
wwt.layers = {}; wwt.layers = {};
@ -172,8 +171,6 @@ console.log(JSON.stringify(msg))
case 'set_datetime': case 'set_datetime':
var date = new Date(msg['isot']); var date = new Date(msg['isot']);
console.log(date.toLocaleString())
console.log(date.toUTCString());
stc = wwtlib.SpaceTimeController; stc = wwtlib.SpaceTimeController;
stc.set_timeRate(1); stc.set_timeRate(1);
@ -288,7 +285,6 @@ console.log(date.toUTCString());
layer.set_altUnit(1); layer.set_altUnit(1);
wwt.layers[msg['id']] = layer; wwt.layers[msg['id']] = layer;
console.log(msg['event']);
break; break;
case 'table_layer_update': case 'table_layer_update':
@ -301,9 +297,6 @@ console.log(msg['event']);
// Use updateData instead of loadFromString here since updateData also // Use updateData instead of loadFromString here since updateData also
// takes care of cache invalidation. // takes care of cache invalidation.
layer.upadteData(csv, true, true, true) layer.upadteData(csv, true, true, true)
console.log(msg['event']);
console.log(JSON.stringify(layer, null, 2));
break; break;
case 'table_layer_set': case 'table_layer_set':
@ -334,14 +327,12 @@ console.log(JSON.stringify(layer, null, 2));
value = msg['value'] value = msg['value']
} }
layer["set_" + name](value); layer["set_" + name](value);
console.log(msg['event'] + " || " + name + " || " + value);
break; break;
case 'table_layer_remove': case 'table_layer_remove':
var layer = wwt.layers[msg['id']]; var layer = wwt.layers[msg['id']];
wwtlib.LayerManager.deleteLayerByID(layer.id, true, true); wwtlib.LayerManager.deleteLayerByID(layer.id, true, true);
console.log(msg['event']);
break; break;
} }