Browse Source

Add event handler for drag

pull/104/head
Masayuki Tanaka 11 years ago
parent
commit
eb6625cee2
  1. 9
      c3.js
  2. 4
      c3.min.js

9
c3.js

@ -70,7 +70,9 @@
__data_selection_multiple = getConfig(['data', 'selection', 'multiple'], true), __data_selection_multiple = getConfig(['data', 'selection', 'multiple'], true),
__data_onclick = getConfig(['data', 'onclick'], function () {}), __data_onclick = getConfig(['data', 'onclick'], function () {}),
__data_onselected = getConfig(['data', 'onselected'], function () {}), __data_onselected = getConfig(['data', 'onselected'], function () {}),
__data_onunselected = getConfig(['data', 'onunselected'], function () {}); __data_onunselected = getConfig(['data', 'onunselected'], function () {}),
__data_ondragstart = getConfig(['data', 'ondragstart'], function () {}),
__data_ondragend = getConfig(['data', 'ondragend'], function () {});
// subchart // subchart
var __subchart_show = getConfig(['subchart', 'show'], false), var __subchart_show = getConfig(['subchart', 'show'], false),
@ -2584,7 +2586,7 @@
.attr('class', 'dragarea') .attr('class', 'dragarea')
.style('opacity', 0.1); .style('opacity', 0.1);
dragging = true; dragging = true;
// TODO: add callback here __data_ondragstart();
} }
function dragend() { function dragend() {
@ -2597,8 +2599,7 @@
main.selectAll('.-shape') main.selectAll('.-shape')
.classed(INCLUDED, false); .classed(INCLUDED, false);
dragging = false; dragging = false;
// TODO: add callback here __data_ondragend();
} }
function redraw(options) { function redraw(options) {

4
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save