* Set text option in the style. * See more info in `setTextStyleCommon`. * @deprecated * @param {Object} textStyle * @param {module:echarts/model/Model} labelModel * @param {string|boolean} defaultColor Default text color. * If set as false, it will be processed as a emphasis style.
(textStyle, labelModel, defaultColor)
| 17580 | * If set as false, it will be processed as a emphasis style. |
| 17581 | */ |
| 17582 | function setText(textStyle, labelModel, defaultColor) { |
| 17583 | var opt = {isRectText: true}; |
| 17584 | var isEmphasis; |
| 17585 | |
| 17586 | if (defaultColor === false) { |
| 17587 | isEmphasis = true; |
| 17588 | } |
| 17589 | else { |
| 17590 | // Support setting color as 'auto' to get visual color. |
| 17591 | opt.autoColor = defaultColor; |
| 17592 | } |
| 17593 | setTextStyleCommon(textStyle, labelModel, opt, isEmphasis); |
| 17594 | // textStyle.host && textStyle.host.dirty && textStyle.host.dirty(false); |
| 17595 | } |
| 17596 | |
| 17597 | /** |
| 17598 | * The uniform entry of set text style, that is, retrieve style definitions |
nothing calls this directly
no test coverage detected