1- /* @license C3.js v0.7.17 | (c) C3 Team and other contributors | http://c3js.org/ */
1+ /* @license C3.js v0.7.18 | (c) C3 Team and other contributors | http://c3js.org/ */
22import * as d3 from 'd3' ;
33
44function ChartInternal ( api ) {
@@ -1407,7 +1407,7 @@ Axis.prototype.redraw = function redraw(duration, isHidden) {
14071407} ;
14081408
14091409var c3 = {
1410- version : '0.7.17 ' ,
1410+ version : '0.7.18 ' ,
14111411 chart : {
14121412 fn : Chart . prototype ,
14131413 internal : {
@@ -9341,10 +9341,10 @@ ChartInternal.prototype.drag = function(mouse) {
93419341 main
93429342 . selectAll ( '.' + CLASS . shapes )
93439343 . selectAll ( '.' + CLASS . shape )
9344- . filter ( function ( d ) {
9345- return config . data_selection_isselectable ( d )
9346- } )
93479344 . each ( function ( d , i ) {
9345+ if ( ! config . data_selection_isselectable ( d ) ) {
9346+ return
9347+ }
93489348 var shape = d3 . select ( this ) ,
93499349 isSelected = shape . classed ( CLASS . SELECTED ) ,
93509350 isIncluded = shape . classed ( CLASS . INCLUDED ) ,
@@ -10524,7 +10524,8 @@ ChartInternal.prototype.updateLegend = function(
1052410524 . style ( 'cursor' , function ( ) {
1052510525 return config . interaction_enabled ? 'pointer' : 'auto'
1052610526 } )
10527- . on ( 'click' ,
10527+ . on (
10528+ 'click' ,
1052810529 config . interaction_enabled
1052910530 ? function ( id ) {
1053010531 if ( config . legend_item_onclick ) {
@@ -10541,7 +10542,8 @@ ChartInternal.prototype.updateLegend = function(
1054110542 }
1054210543 : null
1054310544 )
10544- . on ( 'mouseover' ,
10545+ . on (
10546+ 'mouseover' ,
1054510547 config . interaction_enabled
1054610548 ? function ( id ) {
1054710549 if ( config . legend_item_onmouseover ) {
@@ -10555,7 +10557,8 @@ ChartInternal.prototype.updateLegend = function(
1055510557 }
1055610558 : null
1055710559 )
10558- . on ( 'mouseout' ,
10560+ . on (
10561+ 'mouseout' ,
1055910562 config . interaction_enabled
1056010563 ? function ( id ) {
1056110564 if ( config . legend_item_onmouseout ) {
0 commit comments