MCPcopy
hub / github.com/apache/echarts / getViewGroup

Function getViewGroup

test/ut/core/utHelper.ts:142–151  ·  view source on GitHub ↗
(
    chart: EChartsType,
    mainType: ComponentMainType,
    index?: number
)

Source from the content-addressed store, hash-verified

140}
141
142export 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
153export function getECModel(chart: EChartsType): GlobalModel {
154 // @ts-ignore

Callers 1

getGraphicElementsFunction · 0.85

Calls 2

getECModelFunction · 0.85
getComponentMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…