(
chart: EChartsType,
mainType: ComponentMainType,
index?: number
)
| 140 | } |
| 141 | |
| 142 | export function getViewGroup( |
| 143 | chart: EChartsType, |
| 144 | mainType: ComponentMainType, |
| 145 | index?: number |
| 146 | ): Group { |
| 147 | const component = getECModel(chart).getComponent(mainType, index); |
| 148 | return component ? chart[ |
| 149 | mainType === 'series' ? '_chartsMap' : '_componentsMap' |
| 150 | ][component.__viewId].group : null; |
| 151 | } |
| 152 | |
| 153 | export function getECModel(chart: EChartsType): GlobalModel { |
| 154 | // @ts-ignore |
no test coverage detected
searching dependent graphs…