File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -91,11 +91,14 @@ export default class Widget {
91
91
*/
92
92
removeHtml ( id ) {
93
93
if ( id ) {
94
- const html = this . _htmls . get ( id )
95
- if ( html ) {
96
- this . _element . removeChild ( html )
97
- this . _htmls . delete ( id )
98
- }
94
+ const ids = [ ] . concat ( id )
95
+ ids . forEach ( htmlId => {
96
+ const html = this . _htmls . get ( htmlId )
97
+ if ( html ) {
98
+ this . _element . removeChild ( html )
99
+ this . _htmls . delete ( htmlId )
100
+ }
101
+ } )
99
102
} else {
100
103
this . _htmls . forEach ( html => {
101
104
this . _element . removeChild ( html )
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export declare interface Chart {
63
63
createTag ( tag : Tag | Tag [ ] , paneId ?: string ) : void ;
64
64
removeTag ( paneId ?: string , tagId ?: string | string [ ] ) : void ;
65
65
createHtml ( html : HTML , paneId ?: string ) : string | null ;
66
- removeHtml ( paneId ?: string , tagId ?: string | string [ ] ) : void ;
66
+ removeHtml ( paneId ?: string , htmlId ?: string | string [ ] ) : void ;
67
67
scrollByDistance ( distance : number , animationDuration ?: number ) : void ;
68
68
scrollToRealTime ( animationDuration ?: number ) : void ;
69
69
scrollToDataIndex ( dataIndex : number , animationDuration ?: number ) : void ;
You can’t perform that action at this time.
0 commit comments