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

Function convertNormalEmphasis

libs/echarts/echarts-en.simple.js:22583–22603  ·  view source on GitHub ↗
(opt, optType, useExtend)

Source from the content-addressed store, hash-verified

22581}
22582
22583function convertNormalEmphasis(opt, optType, useExtend) {
22584 if (opt && opt[optType] && (opt[optType].normal || opt[optType].emphasis)) {
22585 var normalOpt = opt[optType].normal;
22586 var emphasisOpt = opt[optType].emphasis;
22587
22588 if (normalOpt) {
22589 // Timeline controlStyle has other properties besides normal and emphasis
22590 if (useExtend) {
22591 opt[optType].normal = opt[optType].emphasis = null;
22592 defaults(opt[optType], normalOpt);
22593 }
22594 else {
22595 opt[optType] = normalOpt;
22596 }
22597 }
22598 if (emphasisOpt) {
22599 opt.emphasis = opt.emphasis || {};
22600 opt.emphasis[optType] = emphasisOpt;
22601 }
22602 }
22603}
22604
22605function removeEC3NormalStatus(opt) {
22606 convertNormalEmphasis(opt, 'itemStyle');

Callers 3

removeEC3NormalStatusFunction · 0.70
processSeriesFunction · 0.70
compatStyleFunction · 0.70

Calls 1

defaultsFunction · 0.70

Tested by

no test coverage detected