We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to the documentation, AnimationEvent should be typed as :
AnimationEvent
export interface AnimationEvent { chart: Chart; initial: boolean; numSteps: number; currentStep: number; }
AnimationEvent is currently typed as :
export interface AnimationEvent { chart: Chart; numSteps: number; currentState: number; }
Type AnimationEvent as :
Using the callbacks as the documentation shows :
const config = { type: 'line', data: data, options: { animation: { duration: 2000, onProgress: function(context) { if (context.initial) { initProgress.value = context.currentStep / context.numSteps; } else { progress.value = context.currentStep / context.numSteps; } }, onComplete: function(context) { if (context.initial) { console.log('Initial animation finished'); } else { console.log('animation finished'); } } }, }, };
It is currently needed to override/cast the event to use the correct properties.
3.6.0
The text was updated successfully, but these errors were encountered:
Hello @kurkle currentStep: number; instead of currentState: number; is missing from #9834
currentStep: number;
currentState: number;
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Expected Behavior
According to the documentation,
AnimationEvent
should be typed as :Current Behavior
AnimationEvent
is currently typed as :Possible Solution
Type
AnimationEvent
as :Steps to Reproduce
Using the callbacks as the documentation shows :
Context
It is currently needed to override/cast the event to use the correct properties.
Environment
3.6.0
The text was updated successfully, but these errors were encountered: