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

Function updateNormalBoxData

src/chart/boxplot/BoxplotView.ts:199–227  ·  view source on GitHub ↗
(
    itemLayout: BoxplotItemLayout,
    el: BoxPath,
    data: SeriesData,
    dataIndex: number,
    isInit?: boolean
)

Source from the content-addressed store, hash-verified

197}
198
199function updateNormalBoxData(
200 itemLayout: BoxplotItemLayout,
201 el: BoxPath,
202 data: SeriesData,
203 dataIndex: number,
204 isInit?: boolean
205) {
206 const seriesModel = data.hostModel;
207 const updateMethod = graphic[isInit ? 'initProps' : 'updateProps'];
208
209 updateMethod(
210 el,
211 {shape: {points: itemLayout.ends}},
212 seriesModel,
213 dataIndex
214 );
215
216 el.useStyle(data.getItemVisual(dataIndex, 'style'));
217 el.style.strokeNoScale = true;
218
219 el.z2 = 100;
220
221 const itemModel = data.getItemModel<BoxplotDataItemOption>(dataIndex);
222 const emphasisModel = itemModel.getModel('emphasis');
223
224 setStatesStylesFromModel(el, itemModel);
225
226 toggleHoverEmphasis(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled'));
227}
228
229function transInit(points: number[][], dim: number, itemLayout: BoxplotItemLayout) {
230 return map(points, function (point) {

Callers 2

renderMethod · 0.85
createNormalBoxFunction · 0.85

Calls 6

setStatesStylesFromModelFunction · 0.90
toggleHoverEmphasisFunction · 0.90
getItemModelMethod · 0.80
getItemVisualMethod · 0.45
getModelMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…