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

Method updateStreamModes

src/core/Scheduler.ts:219–233  ·  view source on GitHub ↗

* Current, progressive rendering starts from visual and layout. * Always detect render mode in the same stage, avoiding that incorrect * detection caused by data filtering. * Caution: * `updateStreamModes` use `seriesModel.getData()`.

(seriesModel: SeriesModel<SeriesOption & SeriesLargeOptionMixin>, view: ChartView)

Source from the content-addressed store, hash-verified

217 * `updateStreamModes` use `seriesModel.getData()`.
218 */
219 updateStreamModes(seriesModel: SeriesModel<SeriesOption & SeriesLargeOptionMixin>, view: ChartView): void {
220 const pipeline = this._pipelineMap.get(seriesModel.uid);
221
222 // `progressiveRender` means that can render progressively in each
223 // animation frame. Note that some types of series do not provide
224 // `view.incrementalPrepareRender` but support `chart.appendData`. We
225 // use the term `incremental` but not `progressive` to describe the
226 // case `chart.appendData`.
227 // Regarding zrender, both echarts "progressive" and "incremental" use `el.incremental: true`.
228 const context = seriesModel.__preparePipelineContext
229 ? seriesModel.__preparePipelineContext(view, pipeline)
230 : preparePipelineContext(seriesModel, view, pipeline);
231
232 seriesModel.pipelineContext = pipeline.context = context;
233 }
234
235 restorePipelines(zr: ZRenderType, ecModel: GlobalModel): void {
236 const scheduler = this;

Callers 1

EChartsClass · 0.80

Calls 3

preparePipelineContextFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected