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

Function traverseUpdate

libs/echarts/echarts.simple.js:17244–17259  ·  view source on GitHub ↗
(el, updater, commonParam)

Source from the content-addressed store, hash-verified

17242}
17243
17244function traverseUpdate(el, updater, commonParam) {
17245 // If root is group, also enter updater for `highDownOnUpdate`.
17246 var fromState = NORMAL;
17247 var toState = NORMAL;
17248 var trigger;
17249 // See the rule of `highDownOnUpdate` on `graphic.setAsHighDownDispatcher`.
17250 el.__highlighted && (fromState = EMPHASIS, trigger = true);
17251 updater(el, commonParam);
17252 el.__highlighted && (toState = EMPHASIS, trigger = true);
17253
17254 el.isGroup && el.traverse(function (child) {
17255 !child.isGroup && updater(child, commonParam);
17256 });
17257
17258 trigger && el.__highDownOnUpdate && el.__highDownOnUpdate(fromState, toState);
17259}
17260
17261/**
17262 * Set hover style (namely "emphasis style") of element, based on the current

Callers 5

onElementMouseOverFunction · 0.70
onElementMouseOutFunction · 0.70
onElementEmphasisEventFunction · 0.70
onElementNormalEventFunction · 0.70
setHoverStyleFunction · 0.70

Calls 1

traverseMethod · 0.80

Tested by

no test coverage detected