Skip to content

Commit

Permalink
feat: symbol animate by size
Browse files Browse the repository at this point in the history
  • Loading branch information
neuqzxy committed Aug 13, 2024
1 parent b335b6f commit 2553f93
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/vrender-components/src/timeline/timeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export class Timeline extends AbstractComponent<Required<TimelineAttrs>> {
symbolType: 'circle'
},
activeSymbolStyle: {
fill: 'orange'
fill: 'orange',
size: 16
},
lineStyle: {
lineDash: [2, 2],
Expand Down Expand Up @@ -227,8 +228,8 @@ export class Timeline extends AbstractComponent<Required<TimelineAttrs>> {
symbol
.animate()
.wait(symbolNormalDelay + delayNormal * i)
.to({ scaleX: 1.8, scaleY: 1.8, ...activeSymbolStyle }, perSymbolNormalDuration, easing as any)
.to({ scaleX: 1, scaleY: 1, ...originAttrs }, perSymbolNormalDuration, easing as any);
.to({ ...activeSymbolStyle }, perSymbolNormalDuration, easing as any)
.to({ ...originAttrs }, perSymbolNormalDuration, easing as any);
});
}
if (this._labelGroup) {
Expand Down

0 comments on commit 2553f93

Please sign in to comment.