Commit eb6625ce authored by Masayuki Tanaka's avatar Masayuki Tanaka

Add event handler for drag

parent a2575010
...@@ -70,7 +70,9 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment