* Set state of single element * @param {module:zrender/Element} el * @param {string} state 'normal'|'emphasis' * @param {number} highlightDigit
(el, state, highlightDigit)
| 24792 | * @param {number} highlightDigit |
| 24793 | */ |
| 24794 | function 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 |
no test coverage detected