MCPcopy Index your code
hub / github.com/apache/echarts / getLabelStatesModels

Function getLabelStatesModels

src/label/labelStyle.ts:308–321  ·  view source on GitHub ↗
(
    itemModel: Model<StatesOptionMixin<any, any> & Partial<Record<LabelName, any>>>,
    labelName?: LabelName
)

Source from the content-addressed store, hash-verified

306export { setLabelStyle };
307
308export function getLabelStatesModels<LabelName extends string = 'label'>(
309 itemModel: Model<StatesOptionMixin<any, any> & Partial<Record<LabelName, any>>>,
310 labelName?: LabelName
311): Record<DisplayState, LabelModel> {
312 labelName = (labelName || 'label') as LabelName;
313 const statesModels = {
314 normal: itemModel.getModel(labelName) as LabelModel
315 } as Record<DisplayState, LabelModel>;
316 for (let i = 0; i < SPECIAL_STATES.length; i++) {
317 const stateName = SPECIAL_STATES[i];
318 statesModels[stateName] = itemModel.getModel([stateName, labelName]);
319 }
320 return statesModels;
321}
322/**
323 * Set basic textStyle properties.
324 */

Callers 15

_updateLabelMethod · 0.90
_renderOnGridLikeMethod · 0.90
renderMethod · 0.90
_renderSymbolsMethod · 0.90
_updateCommonStlMethod · 0.90
_updateCommonMethod · 0.90
makeSeriesScopeFunction · 0.90
makeSeriesScopeFunction · 0.90
updateStyleFunction · 0.90
updateCommonFunction · 0.90
_updateLabelMethod · 0.90
_updateLabelMethod · 0.90

Calls 1

getModelMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…