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/ */
2
2
import * as d3 from 'd3' ;
3
3
4
4
function ChartInternal ( api ) {
@@ -1407,7 +1407,7 @@ Axis.prototype.redraw = function redraw(duration, isHidden) {
1407
1407
} ;
1408
1408
1409
1409
var c3 = {
1410
- version : '0.7.17 ' ,
1410
+ version : '0.7.18 ' ,
1411
1411
chart : {
1412
1412
fn : Chart . prototype ,
1413
1413
internal : {
@@ -9341,10 +9341,10 @@ ChartInternal.prototype.drag = function(mouse) {
9341
9341
main
9342
9342
. selectAll ( '.' + CLASS . shapes )
9343
9343
. selectAll ( '.' + CLASS . shape )
9344
- . filter ( function ( d ) {
9345
- return config . data_selection_isselectable ( d )
9346
- } )
9347
9344
. each ( function ( d , i ) {
9345
+ if ( ! config . data_selection_isselectable ( d ) ) {
9346
+ return
9347
+ }
9348
9348
var shape = d3 . select ( this ) ,
9349
9349
isSelected = shape . classed ( CLASS . SELECTED ) ,
9350
9350
isIncluded = shape . classed ( CLASS . INCLUDED ) ,
@@ -10524,7 +10524,8 @@ ChartInternal.prototype.updateLegend = function(
10524
10524
. style ( 'cursor' , function ( ) {
10525
10525
return config . interaction_enabled ? 'pointer' : 'auto'
10526
10526
} )
10527
- . on ( 'click' ,
10527
+ . on (
10528
+ 'click' ,
10528
10529
config . interaction_enabled
10529
10530
? function ( id ) {
10530
10531
if ( config . legend_item_onclick ) {
@@ -10541,7 +10542,8 @@ ChartInternal.prototype.updateLegend = function(
10541
10542
}
10542
10543
: null
10543
10544
)
10544
- . on ( 'mouseover' ,
10545
+ . on (
10546
+ 'mouseover' ,
10545
10547
config . interaction_enabled
10546
10548
? function ( id ) {
10547
10549
if ( config . legend_item_onmouseover ) {
@@ -10555,7 +10557,8 @@ ChartInternal.prototype.updateLegend = function(
10555
10557
}
10556
10558
: null
10557
10559
)
10558
- . on ( 'mouseout' ,
10560
+ . on (
10561
+ 'mouseout' ,
10559
10562
config . interaction_enabled
10560
10563
? function ( id ) {
10561
10564
if ( config . legend_item_onmouseout ) {
0 commit comments