Browse Source

Fix select/unselect API for path

pull/232/merge
Masayuki Tanaka 11 years ago
parent
commit
102c9ab1d7
  1. 10
      c3.js
  2. 2
      c3.min.js

10
c3.js

@ -4257,7 +4257,10 @@
isTargetId = __data_selection_grouped || !ids || ids.indexOf(id) >= 0,
isTargetIndex = !indices || indices.indexOf(i) >= 0,
isSelected = shape.classed(CLASS.SELECTED);
if (this.nodeName === 'path') { return; } // path selection not supported yet
// line/area selection not supported yet
if (shape.classed(CLASS.line) || shape.classed(CLASS.area)) {
return;
}
if (isTargetId && isTargetIndex) {
if (__data_selection_isselectable(d) && !isSelected) {
toggle(true, shape.classed(CLASS.SELECTED, true), d, i);
@ -4277,7 +4280,10 @@
isTargetId = __data_selection_grouped || !ids || ids.indexOf(id) >= 0,
isTargetIndex = !indices || indices.indexOf(i) >= 0,
isSelected = shape.classed(CLASS.SELECTED);
if (this.nodeName === 'path') { return; } // path selection not supported yet
// line/area selection not supported yet
if (shape.classed(CLASS.line) || shape.classed(CLASS.area)) {
return;
}
if (isTargetId && isTargetIndex) {
if (__data_selection_isselectable(d)) {
if (isSelected) {

2
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save