Hook up grapher to the rest of application
This commit is contained in:
parent
26bec7c341
commit
71e9a616cf
@ -158,7 +158,7 @@
|
||||
}
|
||||
|
||||
function outputSnapshot(results) {
|
||||
ctx.grapher.updateColumns(results.columns);
|
||||
ctx.grapher.setColumns(results.columns);
|
||||
outputMatches(results.items, results.count);
|
||||
}
|
||||
|
||||
|
@ -135,6 +135,7 @@
|
||||
var _height = 500;
|
||||
var _padding = 10;
|
||||
|
||||
var _onValueChanged = params.onValueChanged;
|
||||
var _canvas = params.canvas;
|
||||
var _name = params.name;
|
||||
var _data = params.data;
|
||||
@ -253,11 +254,11 @@
|
||||
return hintGroups;
|
||||
}
|
||||
|
||||
function setClampedValue(value, final) {
|
||||
function setClampedValue(value) {
|
||||
_data.value = _range.clamp(value);
|
||||
|
||||
if (final && onValueChanged) {
|
||||
onValueChanged(_name, _data.value);
|
||||
if (_onValueChanged) {
|
||||
_onValueChanged(_name, _data.value);
|
||||
}
|
||||
|
||||
updateShapes();
|
||||
|
Loading…
Reference in New Issue
Block a user