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

Function singleEnterNormal

libs/echarts/echarts.simple.js:17209–17242  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

17207}
17208
17209function singleEnterNormal(el) {
17210 var highlighted = el.__highlighted;
17211
17212 if (!highlighted) {
17213 return;
17214 }
17215
17216 el.__highlighted = false;
17217
17218 if (el.isGroup) {
17219 return;
17220 }
17221
17222 if (highlighted === 'layer') {
17223 el.__zr && el.__zr.removeHover(el);
17224 }
17225 else {
17226 var style = el.style;
17227
17228 var normalStl = el.__cachedNormalStl;
17229 if (normalStl) {
17230 rollbackDefaultTextStyle(style);
17231 el.setStyle(normalStl);
17232 applyDefaultTextStyle(style);
17233 }
17234 // `__cachedNormalZ2` will not be reset if calling `setElementHoverStyle`
17235 // when `el` is on emphasis state. So here by comparing with 1, we try
17236 // hard to make the bug case rare.
17237 var normalZ2 = el.__cachedNormalZ2;
17238 if (normalZ2 != null && el.z2 - normalZ2 === Z2_EMPHASIS_LIFT) {
17239 el.z2 = normalZ2;
17240 }
17241 }
17242}
17243
17244function traverseUpdate(el, updater, commonParam) {
17245 // If root is group, also enter updater for `highDownOnUpdate`.

Callers 1

setElementHoverStyleFunction · 0.70

Calls 3

rollbackDefaultTextStyleFunction · 0.70
applyDefaultTextStyleFunction · 0.70
setStyleMethod · 0.45

Tested by

no test coverage detected