MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / elSetState

Function elSetState

libs/echarts/echarts.simple.js:24794–24806  ·  view source on GitHub ↗

* Set state of single element * @param {module:zrender/Element} el * @param {string} state 'normal'|'emphasis' * @param {number} highlightDigit

(el, state, highlightDigit)

Source from the content-addressed store, hash-verified

24792 * @param {number} highlightDigit
24793 */
24794function elSetState(el, state, highlightDigit) {
24795 if (el) {
24796 el.trigger(state, highlightDigit);
24797 if (el.isGroup
24798 // Simple optimize.
24799 && !isHighDownDispatcher(el)
24800 ) {
24801 for (var i = 0, len = el.childCount(); i < len; i++) {
24802 elSetState(el.childAt(i), state, highlightDigit);
24803 }
24804 }
24805 }
24806}
24807
24808/**
24809 * @param {module:echarts/data/List} data

Callers 1

toggleHighlightFunction · 0.70

Calls 3

childAtMethod · 0.80
isHighDownDispatcherFunction · 0.70
triggerMethod · 0.45

Tested by

no test coverage detected