(
params: StageHandlerProgressParams,
customSeries: CustomSeriesModel,
ecModel: GlobalModel,
api: ExtensionAPI,
payload: Payload
)
| 278 | } |
| 279 | |
| 280 | incrementalRender( |
| 281 | params: StageHandlerProgressParams, |
| 282 | customSeries: CustomSeriesModel, |
| 283 | ecModel: GlobalModel, |
| 284 | api: ExtensionAPI, |
| 285 | payload: Payload |
| 286 | ): void { |
| 287 | const data = customSeries.getData(); |
| 288 | const renderItem = makeRenderItem(customSeries, data, ecModel, api); |
| 289 | const progressiveEls: Element[] = this._progressiveEls = []; |
| 290 | |
| 291 | function setIncrementalAndHoverLayer(el: Displayable) { |
| 292 | if (!el.isGroup) { |
| 293 | el.incremental = getIncrementalId(customSeries); |
| 294 | el.ensureState('emphasis').hoverLayer = graphicUtil.HOVER_LAYER_FOR_INCREMENTAL; |
| 295 | } |
| 296 | } |
| 297 | for (let idx = params.start; idx < params.end; idx++) { |
| 298 | const el = createOrUpdateItem( |
| 299 | null, null, idx, renderItem(idx, payload), customSeries, this.group, data |
| 300 | ); |
| 301 | if (el) { |
| 302 | el.traverse(setIncrementalAndHoverLayer); |
| 303 | progressiveEls.push(el); |
| 304 | } |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | eachRendered(cb: (el: Element) => boolean | void) { |
| 309 | graphicUtil.traverseElements(this._progressiveEls || this.group, cb); |
nothing calls this directly
no test coverage detected