MCPcopy Index your code
hub / github.com/tdewolff/minify / createTextStyle

Function createTextStyle

_benchmarks/sample_echarts.js:15009–15017  ·  view source on GitHub ↗

* Set basic textStyle properties.

(textStyleModel, specifiedTextStyle, // Fixed style in the code. Can't be set by model.
    opt, isNotNormal, isAttached // If text is attached on an element. If so, auto color will handling in zrender.
    )

Source from the content-addressed store, hash-verified

15007 */
15008
15009 function createTextStyle(textStyleModel, specifiedTextStyle, // Fixed style in the code. Can't be set by model.
15010 opt, isNotNormal, isAttached // If text is attached on an element. If so, auto color will handling in zrender.
15011 ) {
15012 var textStyle = {};
15013 setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached);
15014 specifiedTextStyle && extend(textStyle, specifiedTextStyle); // textStyle.host && textStyle.host.dirty && textStyle.host.dirty(false);
15015
15016 return textStyle;
15017 }
15018 function createTextConfig(textStyleModel, opt, isNotNormal) {
15019 opt = opt || {};
15020 var textConfig = {};

Callers 7

setLabelStyleFunction · 0.85
createTextStyle$1Function · 0.85
sample_echarts.jsFile · 0.85
buildAxisLabelFunction · 0.85
styleFunction · 0.85
styleEmphasisFunction · 0.85
buildLabelElOptionFunction · 0.85

Calls 2

setTextStyleCommonFunction · 0.85
extendFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…