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

Function retrieveStyleOptionOnState

src/chart/custom/CustomView.ts:1308–1318  ·  view source on GitHub ↗
(
    stateOptionNormal: CustomElementOption,
    stateOption: CustomElementOptionOnState,
    state: DisplayStateNonNormal
)

Source from the content-addressed store, hash-verified

1306}
1307
1308function retrieveStyleOptionOnState(
1309 stateOptionNormal: CustomElementOption,
1310 stateOption: CustomElementOptionOnState,
1311 state: DisplayStateNonNormal
1312): CustomElementOptionOnState['style'] {
1313 let style = stateOption && stateOption.style;
1314 if (style == null && state === EMPHASIS && stateOptionNormal) {
1315 style = (stateOptionNormal as CustomDisplayableOption).styleEmphasis;
1316 }
1317 return style;
1318}
1319
1320
1321// Usage:

Callers 3

doCreateOrUpdateElFunction · 0.85
processTxInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…