Skip to content

Commit

Permalink
no console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
lxieyang committed Apr 22, 2020
1 parent c76edf7 commit 4db77a8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
fetch(q)
.then(d => d.json())
.then(d => {
console.log(q, d);
// console.log(q, d);
regionData.set(d.epidata);
timeSliceCache.update(m => m.set(sensor + level + region, d.epidata));
});
Expand Down
14 changes: 7 additions & 7 deletions src/Graph.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
}
});
timeRangeOnSlider.subscribe(({ min, max }) => {
console.log('min:', min, 'max:', max);
// console.log('min:', min, 'max:', max);
setChartDomain(min, max);
userCharts[currentChart].draw();
});
Expand Down Expand Up @@ -142,7 +142,7 @@
}
function setChartDomain(min, max) {
console.log('called domain: ' + min + ' ' + max);
// console.log('called domain: ' + min + ' ' + max);
try {
if (userCharts[currentChart] != undefined) {
let minDate = min;
Expand Down Expand Up @@ -280,7 +280,7 @@
}
isChart() {
console.log(this.chartType);
// console.log(this.chartType);
var result = null;
try {
this.chartType in charts ? (result = true) : (result = false);
Expand Down Expand Up @@ -341,14 +341,14 @@
}
setDomain(minDate, maxDate) {
console.log('set domain: ' + minDate + ' ' + maxDate);
// console.log('set domain: ' + minDate + ' ' + maxDate);
this.minDate = minDate;
this.maxDate = maxDate;
console.log('this: ' + this.minDate);
// console.log('this: ' + this.minDate);
}
getDomain() {
console.log('get domain: ' + this.minDate);
// console.log('get domain: ' + this.minDate);
return [this.minDate, this.maxDate];
}
updateAxes() {}
Expand Down Expand Up @@ -402,7 +402,7 @@
// set date range
var parseTime = d3.timeParse('%Y%m%d');
var domain = this.getDomain();
console.log('domain: ' + domain[0]);
// console.log('domain: ' + domain[0]);
var minDate = parseTime(domain[0]);
var maxDate = parseTime(domain[1]);
var bisectDate = d3.bisector(function(d) {
Expand Down
2 changes: 1 addition & 1 deletion src/MapBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@
// ],
// },
});
console.log(map.getSource('city-point'));
// console.log(map.getSource('city-point'));
map.addLayer({
id: 'county-outline',
Expand Down
2 changes: 1 addition & 1 deletion src/Time.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
let leftPercentage = (dataRangeMin - rectifiedMin) / (rectifiedRange * 86400 * 1000);
let middlePercentage = (dataRangeMax - dataRangeMin) / (rectifiedRange * 86400 * 1000);
let rightPercentage = (rectifiedMax - dataRangeMax) / (rectifiedRange * 86400 * 1000);
console.log(leftPercentage, middlePercentage, rightPercentage);
// console.log(leftPercentage, middlePercentage, rightPercentage);
timeSliderPaddingLeft.setAttribute('style', `width: ${Math.round(leftPercentage * sliderTotalLength) + 'px'}`);
timeSlider.setAttribute('style', `width: ${Math.round(middlePercentage * sliderTotalLength) + 'px'}`);
timeSliderPaddingRight.setAttribute('style', `width: ${Math.round(rightPercentage * sliderTotalLength) + 'px'}`);
Expand Down

0 comments on commit 4db77a8

Please sign in to comment.