Commit 7b653344 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Add interaction.enabled option - #215

parent bafe707e
...@@ -118,6 +118,8 @@ ...@@ -118,6 +118,8 @@
__zoom_extent = getConfig(['zoom', 'extent']), __zoom_extent = getConfig(['zoom', 'extent']),
__zoom_privileged = getConfig(['zoom', 'privileged'], false); __zoom_privileged = getConfig(['zoom', 'privileged'], false);
var __interaction_enabled = getConfig(['interaction', 'enabled'], true);
var __onenter = getConfig(['onenter'], function () {}), var __onenter = getConfig(['onenter'], function () {}),
__onleave = getConfig(['onleave'], function () {}), __onleave = getConfig(['onleave'], function () {}),
__onresize = getConfig(['onresize'], function () {}), __onresize = getConfig(['onresize'], function () {}),
...@@ -3494,6 +3496,7 @@ ...@@ -3494,6 +3496,7 @@
.attr("cx", __axis_rotated ? circleY : circleX) .attr("cx", __axis_rotated ? circleY : circleX)
.attr("cy", __axis_rotated ? circleX : circleY); .attr("cy", __axis_rotated ? circleX : circleY);
if (__interaction_enabled) {
// rect for mouseover // rect for mouseover
eventRect = main.select('.' + CLASS.eventRects); eventRect = main.select('.' + CLASS.eventRects);
if (notEmpty(__data_xs) && !isSingleX(__data_xs)) { if (notEmpty(__data_xs) && !isSingleX(__data_xs)) {
...@@ -3555,6 +3558,7 @@ ...@@ -3555,6 +3558,7 @@
// exit // exit
eventRectUpdate.exit().remove(); eventRectUpdate.exit().remove();
} }
}
// update fadein condition // update fadein condition
mapToIds(c3.data.targets).forEach(function (id) { mapToIds(c3.data.targets).forEach(function (id) {
......
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