Compare commits

..

1 Commits

Author SHA1 Message Date
Pete Richards
1153da9f55 [plot] set minimum marquee size
Users must draw a marquee box with diagonal size of atleast 7.5
pixels.  This prevents clicks from being translated to zooms on
the plot.  Because startMarquee triggers a plot history update.
endMarquee must remove the plot history update when preventing
marqueeZoom.  This has a side effect of causing a requery for
data, but is a simple enough solution for now.

Fixes #2002.
2018-05-01 13:51:29 -07:00
2 changed files with 3 additions and 5 deletions

View File

@@ -47,9 +47,7 @@ define([
var interval = setInterval(function () {
var now = Date.now();
var datum = pointForTimestamp(now, duration, domainObject.name);
datum.value += "";
callback(datum);
callback(pointForTimestamp(now, duration, domainObject.name));
}, duration);
return function () {

View File

@@ -57,8 +57,8 @@ define([
return vm;
}, {byValue: {}, byString: {}});
this.formatter.format = function (value) {
if (this.enumerations.byValue.hasOwnProperty(value)) {
return this.enumerations.byValue[value];
if (typeof value === "number") {
return this.enumerations.byValue[value] || value;
}
return value;
}.bind(this);