Add nearPoints() function

This commit is contained in:
Winston Chang
2015-04-29 11:45:24 -05:00
parent 3f3c131737
commit eae2b40898
6 changed files with 326 additions and 16 deletions

View File

@@ -418,6 +418,11 @@ imageutils.initCoordmap = function($el, coordmap) {
// Add variable name mappings
coords.mapping = panel.mapping;
// Add scaling information
coords.domain = panel.domain;
coords.range = panel.range;
coords.log = panel.log;
coords[".nonce"] = Math.random();
exports.onInputChange(inputId, coords);
};
@@ -598,6 +603,11 @@ imageutils.createBrushHandler = function(inputId, $el, opts, coordmap) {
// Add variable name mappings
coords.mapping = panel.mapping;
// Add scaling information
coords.domain = panel.domain;
coords.range = panel.range;
coords.log = panel.log;
// Send data to server
exports.onInputChange(inputId, coords);
}