Commit 102c9ab1 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix select/unselect API for path

parent 1bdc159f
...@@ -4257,7 +4257,10 @@ ...@@ -4257,7 +4257,10 @@
isTargetId = __data_selection_grouped || !ids || ids.indexOf(id) >= 0, isTargetId = __data_selection_grouped || !ids || ids.indexOf(id) >= 0,
isTargetIndex = !indices || indices.indexOf(i) >= 0, isTargetIndex = !indices || indices.indexOf(i) >= 0,
isSelected = shape.classed(CLASS.SELECTED); 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 (isTargetId && isTargetIndex) {
if (__data_selection_isselectable(d) && !isSelected) { if (__data_selection_isselectable(d) && !isSelected) {
toggle(true, shape.classed(CLASS.SELECTED, true), d, i); toggle(true, shape.classed(CLASS.SELECTED, true), d, i);
...@@ -4277,7 +4280,10 @@ ...@@ -4277,7 +4280,10 @@
isTargetId = __data_selection_grouped || !ids || ids.indexOf(id) >= 0, isTargetId = __data_selection_grouped || !ids || ids.indexOf(id) >= 0,
isTargetIndex = !indices || indices.indexOf(i) >= 0, isTargetIndex = !indices || indices.indexOf(i) >= 0,
isSelected = shape.classed(CLASS.SELECTED); 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 (isTargetId && isTargetIndex) {
if (__data_selection_isselectable(d)) { if (__data_selection_isselectable(d)) {
if (isSelected) { if (isSelected) {
......
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