Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions src/chart/line/LineView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -691,9 +691,18 @@ class LineView extends ChartView {
}

// Update clipPath
lineGroup.setClipPath(
createLineClipPath(this, coordSys, false, seriesModel)
);
const oldClipPath = lineGroup.getClipPath();
if (oldClipPath) {
const newClipPath = createLineClipPath(this, coordSys, false, seriesModel);
graphic.initProps(oldClipPath, {
shape: newClipPath.shape
}, seriesModel);
}
else {
lineGroup.setClipPath(
createLineClipPath(this, coordSys, true, seriesModel)
);
}

// Always update, or it is wrong in the case turning on legend
// because points are not changed
Expand Down
38 changes: 38 additions & 0 deletions test/line-animation.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.