MCPcopy
hub / github.com/apache/echarts / incrementalRender

Method incrementalRender

src/chart/custom/CustomView.ts:280–306  ·  view source on GitHub ↗
(
        params: StageHandlerProgressParams,
        customSeries: CustomSeriesModel,
        ecModel: GlobalModel,
        api: ExtensionAPI,
        payload: Payload
    )

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 4

makeRenderItemFunction · 0.85
createOrUpdateItemFunction · 0.85
renderItemFunction · 0.85
getDataMethod · 0.65

Tested by

no test coverage detected