(el, updater, commonParam)
| 17242 | } |
| 17243 | |
| 17244 | function 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 |
no test coverage detected