File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ class BrushModel extends ComponentModel<BrushOption> {
136136 static defaultOption : BrushOption = {
137137 seriesIndex : 'all' ,
138138 brushType : 'rect' ,
139- brushMode : 'single ' ,
139+ brushMode : 'multiple ' ,
140140 transformable : true ,
141141 brushStyle : {
142142 borderWidth : 1 ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class BrushFeature extends ToolboxFeature<ToolboxBrushFeatureOption> {
5454
5555 ecModel . eachComponent ( { mainType : 'brush' } , function ( brushModel : BrushModel ) {
5656 brushType = brushModel . brushType ;
57- brushMode = brushModel . brushOption . brushMode || 'single ' ;
57+ brushMode = brushModel . brushOption . brushMode || 'multiple ' ;
5858 isBrushed = isBrushed || ! ! brushModel . areas . length ;
5959 } ) ;
6060 this . _brushType = brushType ;
@@ -120,9 +120,7 @@ class BrushFeature extends ToolboxFeature<ToolboxBrushFeatureOption> {
120120 brushType : type === 'keep'
121121 ? brushType
122122 : ( brushType === type ? false : type ) ,
123- brushMode : type === 'keep'
124- ? ( brushMode === 'multiple' ? 'single' : 'multiple' )
125- : brushMode
123+ brushMode : 'multiple'
126124 }
127125 } ) ;
128126 }
You can’t perform that action at this time.
0 commit comments