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

Function setText

libs/echarts/echarts.simple.js:17582–17595  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

17580 * If set as false, it will be processed as a emphasis style.
17581 */
17582function 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

Callers

nothing calls this directly

Calls 1

setTextStyleCommonFunction · 0.70

Tested by

no test coverage detected