* Modify label style manually. * Only works after `setLabelStyle` and `setElementHoverStyle` called. * * @param {module:zrender/src/Element} el * @param {Object} [normalStyleProps] optional * @param {Object} [emphasisStyleProps] optional
(el, normalStyleProps, emphasisStyleProps)
| 17537 | * @param {Object} [emphasisStyleProps] optional |
| 17538 | */ |
| 17539 | function modifyLabelStyle(el, normalStyleProps, emphasisStyleProps) { |
| 17540 | var elStyle = el.style; |
| 17541 | if (normalStyleProps) { |
| 17542 | rollbackDefaultTextStyle(elStyle); |
| 17543 | el.setStyle(normalStyleProps); |
| 17544 | applyDefaultTextStyle(elStyle); |
| 17545 | } |
| 17546 | elStyle = el.__hoverStl; |
| 17547 | if (emphasisStyleProps && elStyle) { |
| 17548 | rollbackDefaultTextStyle(elStyle); |
| 17549 | extend(elStyle, emphasisStyleProps); |
| 17550 | applyDefaultTextStyle(elStyle); |
| 17551 | } |
| 17552 | } |
| 17553 | |
| 17554 | /** |
| 17555 | * Set basic textStyle properties. |
nothing calls this directly
no test coverage detected