Generates dist files
This commit is contained in:
parent
c57472da78
commit
94578fa0a2
2
dist/torque.js
vendored
2
dist/torque.js
vendored
File diff suppressed because one or more lines are too long
15
dist/torque.uncompressed.js
vendored
15
dist/torque.uncompressed.js
vendored
@ -972,8 +972,8 @@ exports.Profiler = Profiler;
|
|||||||
|
|
||||||
getKeySpan: function() {
|
getKeySpan: function() {
|
||||||
return {
|
return {
|
||||||
start: this.options.start,
|
start: this.options.start * 1000,
|
||||||
end: this.options.end,
|
end: this.options.end * 1000,
|
||||||
step: this.options.step,
|
step: this.options.step,
|
||||||
steps: this.options.steps
|
steps: this.options.steps
|
||||||
};
|
};
|
||||||
@ -1049,7 +1049,7 @@ exports.Profiler = Profiler;
|
|||||||
max_col = format(max_tmpl, { column: self.options.column });
|
max_col = format(max_tmpl, { column: self.options.column });
|
||||||
min_col = format(min_tmpl, { column: self.options.column });
|
min_col = format(min_tmpl, { column: self.options.column });
|
||||||
|
|
||||||
var sql_stats = "" +
|
/*var sql_stats = "" +
|
||||||
"WITH summary_groups as ( " +
|
"WITH summary_groups as ( " +
|
||||||
"WITH summary as ( " +
|
"WITH summary as ( " +
|
||||||
"select (row_number() over (order by __time_col asc nulls last)+1)/2 as rownum, __time_col " +
|
"select (row_number() over (order by __time_col asc nulls last)+1)/2 as rownum, __time_col " +
|
||||||
@ -1075,6 +1075,15 @@ exports.Profiler = Profiler;
|
|||||||
"(a.max - a.min)/avg(diff) as num_steps " +
|
"(a.max - a.min)/avg(diff) as num_steps " +
|
||||||
"FROM summary_groups, subq a " +
|
"FROM summary_groups, subq a " +
|
||||||
"WHERE diff > 0 group by xmax, xmin, ymax, ymin, max_date, min_date";
|
"WHERE diff > 0 group by xmax, xmin, ymax, ymin, max_date, min_date";
|
||||||
|
*/
|
||||||
|
var sql_stats = " SELECT " +
|
||||||
|
"st_xmax(st_envelope(st_collect(the_geom))) xmax, " +
|
||||||
|
"st_ymax(st_envelope(st_collect(the_geom))) ymax, " +
|
||||||
|
"st_xmin(st_envelope(st_collect(the_geom))) xmin, " +
|
||||||
|
"st_ymin(st_envelope(st_collect(the_geom))) ymin, " +
|
||||||
|
"count(*) as num_steps, " +
|
||||||
|
"{max_col} max_date, " +
|
||||||
|
"{min_col} min_date FROM ({sql}) __torque_wrap_sql ";
|
||||||
|
|
||||||
var sql = format(sql_stats, {
|
var sql = format(sql_stats, {
|
||||||
max_col: max_col,
|
max_col: max_col,
|
||||||
|
Loading…
Reference in New Issue
Block a user