Browse Source

Fix arc focus/defocus

pull/631/head
Masayuki Tanaka 10 years ago
parent
commit
9485e614d6
  1. 2
      c3.js
  2. 2
      c3.min.js
  3. 2
      src/arc.js

2
c3.js

@ -4469,6 +4469,7 @@
arcData = $$.convertToArcData(updated); arcData = $$.convertToArcData(updated);
// transitions // transitions
$$.expandArc(updated.data.id); $$.expandArc(updated.data.id);
$$.api.focus(updated.data.id);
$$.toggleFocusLegend(updated.data.id, true); $$.toggleFocusLegend(updated.data.id, true);
$$.config.data_onmouseover(arcData, this); $$.config.data_onmouseover(arcData, this);
}) })
@ -4487,6 +4488,7 @@
arcData = $$.convertToArcData(updated); arcData = $$.convertToArcData(updated);
// transitions // transitions
$$.unexpandArc(updated.data.id); $$.unexpandArc(updated.data.id);
$$.api.revert();
$$.revertLegend(); $$.revertLegend();
$$.hideTooltip(); $$.hideTooltip();
$$.config.data_onmouseout(arcData, this); $$.config.data_onmouseout(arcData, this);

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

2
src/arc.js

@ -259,6 +259,7 @@ c3_chart_internal_fn.redrawArc = function (duration, durationForExit, withTransf
arcData = $$.convertToArcData(updated); arcData = $$.convertToArcData(updated);
// transitions // transitions
$$.expandArc(updated.data.id); $$.expandArc(updated.data.id);
$$.api.focus(updated.data.id);
$$.toggleFocusLegend(updated.data.id, true); $$.toggleFocusLegend(updated.data.id, true);
$$.config.data_onmouseover(arcData, this); $$.config.data_onmouseover(arcData, this);
}) })
@ -277,6 +278,7 @@ c3_chart_internal_fn.redrawArc = function (duration, durationForExit, withTransf
arcData = $$.convertToArcData(updated); arcData = $$.convertToArcData(updated);
// transitions // transitions
$$.unexpandArc(updated.data.id); $$.unexpandArc(updated.data.id);
$$.api.revert();
$$.revertLegend(); $$.revertLegend();
$$.hideTooltip(); $$.hideTooltip();
$$.config.data_onmouseout(arcData, this); $$.config.data_onmouseout(arcData, this);

Loading…
Cancel
Save