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

Method updateTransform

src/component/marker/MarkLineView.ts:270–294  ·  view source on GitHub ↗
(markLineModel: MarkLineModel, ecModel: GlobalModel, api: ExtensionAPI)

Source from the content-addressed store, hash-verified

268 markerGroupMap: HashMap<LineDraw>;
269
270 updateTransform(markLineModel: MarkLineModel, ecModel: GlobalModel, api: ExtensionAPI) {
271 ecModel.eachSeries(function (seriesModel) {
272 const mlModel = MarkerModel.getMarkerModelFromSeries(seriesModel, 'markLine') as MarkLineModel;
273 if (mlModel) {
274 const mlData = mlModel.getData();
275 const fromData = inner(mlModel).from;
276 const toData = inner(mlModel).to;
277 // Update visual and layout of from symbol and to symbol
278 fromData.each(function (idx) {
279 updateSingleMarkerEndLayout(fromData, idx, true, seriesModel, api);
280 updateSingleMarkerEndLayout(toData, idx, false, seriesModel, api);
281 });
282 // Update layout of line
283 mlData.each(function (idx) {
284 mlData.setItemLayout(idx, [
285 fromData.getItemLayout(idx),
286 toData.getItemLayout(idx)
287 ]);
288 });
289
290 this.markerGroupMap.get(seriesModel.id).updateLayout();
291
292 }
293 }, this);
294 }
295
296 renderSeries(
297 seriesModel: SeriesModel,

Callers

nothing calls this directly

Calls 9

innerFunction · 0.85
eachSeriesMethod · 0.80
setItemLayoutMethod · 0.80
getItemLayoutMethod · 0.80
getDataMethod · 0.65
updateLayoutMethod · 0.65
eachMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected