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

Method _updateAnimationPoints

src/chart/helper/EffectLine.ts:193–200  ·  view source on GitHub ↗
(symbol: ECSymbolOnEffectLine, points: number[][])

Source from the content-addressed store, hash-verified

191 }
192
193 protected _updateAnimationPoints(symbol: ECSymbolOnEffectLine, points: number[][]) {
194 symbol.__p1 = points[0];
195 symbol.__p2 = points[1];
196 symbol.__cp1 = points[2] || [
197 (points[0][0] + points[1][0]) / 2,
198 (points[0][1] + points[1][1]) / 2
199 ];
200 }
201
202 updateData(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {
203 (this.childAt(0) as Line).updateData(lineData, idx, seriesScope);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected