(el)
| 17207 | } |
| 17208 | |
| 17209 | function singleEnterNormal(el) { |
| 17210 | var highlighted = el.__highlighted; |
| 17211 | |
| 17212 | if (!highlighted) { |
| 17213 | return; |
| 17214 | } |
| 17215 | |
| 17216 | el.__highlighted = false; |
| 17217 | |
| 17218 | if (el.isGroup) { |
| 17219 | return; |
| 17220 | } |
| 17221 | |
| 17222 | if (highlighted === 'layer') { |
| 17223 | el.__zr && el.__zr.removeHover(el); |
| 17224 | } |
| 17225 | else { |
| 17226 | var style = el.style; |
| 17227 | |
| 17228 | var normalStl = el.__cachedNormalStl; |
| 17229 | if (normalStl) { |
| 17230 | rollbackDefaultTextStyle(style); |
| 17231 | el.setStyle(normalStl); |
| 17232 | applyDefaultTextStyle(style); |
| 17233 | } |
| 17234 | // `__cachedNormalZ2` will not be reset if calling `setElementHoverStyle` |
| 17235 | // when `el` is on emphasis state. So here by comparing with 1, we try |
| 17236 | // hard to make the bug case rare. |
| 17237 | var normalZ2 = el.__cachedNormalZ2; |
| 17238 | if (normalZ2 != null && el.z2 - normalZ2 === Z2_EMPHASIS_LIFT) { |
| 17239 | el.z2 = normalZ2; |
| 17240 | } |
| 17241 | } |
| 17242 | } |
| 17243 | |
| 17244 | function traverseUpdate(el, updater, commonParam) { |
| 17245 | // If root is group, also enter updater for `highDownOnUpdate`. |
no test coverage detected