chart.js
Version:
Simple HTML5 charts using the canvas element.
23 lines (22 loc) • 688 B
TypeScript
export default class Animations {
constructor(chart: any, config: any);
_chart: any;
_properties: Map<any, any>;
configure(config: any): void;
/**
* Utility to handle animation of `options`.
* @private
*/
private _animateOptions;
/**
* @private
*/
private _createAnimations;
/**
* Update `target` properties to new values, using configured animations
* @param {object} target - object to update
* @param {object} values - new target properties
* @returns {boolean|undefined} - `true` if animations were started
**/
update(target: object, values: object): boolean | undefined;
}