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

Function getRichItemNames

libs/echarts/echarts.simple.js:17715–17731  ·  view source on GitHub ↗
(textStyleModel)

Source from the content-addressed store, hash-verified

17713// }
17714// }
17715function getRichItemNames(textStyleModel) {
17716 // Use object to remove duplicated names.
17717 var richItemNameMap;
17718 while (textStyleModel && textStyleModel !== textStyleModel.ecModel) {
17719 var rich = (textStyleModel.option || EMPTY_OBJ).rich;
17720 if (rich) {
17721 richItemNameMap = richItemNameMap || {};
17722 for (var name in rich) {
17723 if (rich.hasOwnProperty(name)) {
17724 richItemNameMap[name] = 1;
17725 }
17726 }
17727 }
17728 textStyleModel = textStyleModel.parentModel;
17729 }
17730 return richItemNameMap;
17731}
17732
17733function setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isEmphasis, isBlock) {
17734 // In merge mode, default value should not be given.

Callers 1

setTextStyleCommonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected