MCPcopy Create free account
hub / github.com/apache/echarts / createStub

Method createStub

src/core/Scheduler.ts:513–537  ·  view source on GitHub ↗
(seriesModel: SeriesModel)

Source from the content-addressed store, hash-verified

511 }
512
513 function createStub(seriesModel: SeriesModel): void {
514 const pipelineId = seriesModel.uid;
515 const stub = newAgentStubMap.set(
516 pipelineId,
517 oldAgentStubMap && oldAgentStubMap.get(pipelineId)
518 || (
519 // When the result of `getTargetSeries` changed, the overallTask
520 // should be set as dirty and re-performed.
521 shouldOverallTaskDirty = true,
522 createTask<StubTaskContext>(
523 {reset: stubReset, onDirty: stubOnDirty}
524 )
525 )
526 );
527 stub.context = {
528 model: seriesModel,
529 dirtyOnOverallProgress: dirtyOnOverallProgress
530 // FIXME:TS never used, so comment it
531 // modifyOutputEnd: modifyOutputEnd
532 };
533 stub.agent = overallTask;
534 stub.__block = dirtyOnOverallProgress;
535
536 scheduler._pipe(seriesModel, stub);
537 }
538
539 if (shouldOverallTaskDirty) {
540 overallTask.dirty();

Callers

nothing calls this directly

Calls 3

createTaskFunction · 0.90
_pipeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected