MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / compatTextStyle

Function compatTextStyle

libs/echarts/echarts.simple.js:22617–22629  ·  view source on GitHub ↗
(opt, propName)

Source from the content-addressed store, hash-verified

22615}
22616
22617function compatTextStyle(opt, propName) {
22618 // Check whether is not object (string\null\undefined ...)
22619 var labelOptSingle = isObject$3(opt) && opt[propName];
22620 var textStyle = isObject$3(labelOptSingle) && labelOptSingle.textStyle;
22621 if (textStyle) {
22622 for (var i = 0, len = TEXT_STYLE_OPTIONS.length; i < len; i++) {
22623 var propName = TEXT_STYLE_OPTIONS[i];
22624 if (textStyle.hasOwnProperty(propName)) {
22625 labelOptSingle[propName] = textStyle[propName];
22626 }
22627 }
22628 }
22629}
22630
22631function compatEC3CommonStyles(opt) {
22632 if (opt) {

Callers 3

compatEC3CommonStylesFunction · 0.70
processSeriesFunction · 0.70
compatStyleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected