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
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vrender-core",
"comment": "fix: fix the issue where the final text of the label increase count animation is incorrect",
"type": "none"
}
],
"packageName": "@visactor/vrender-core"
}
2 changes: 1 addition & 1 deletion packages/vrender-core/src/animate/custom-animate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class IncreaseCount extends ACustomAnimate<{ text: string | number }> {
return;
}
if (end) {
out.text = this.toNumber;
out.text = this.to?.text;
} else {
out.text = (this.fromNumber + (this.toNumber - this.fromNumber) * ratio).toFixed(this.decimalLength);
}
Expand Down