core.animations.d.ts 688 B

12345678910111213141516171819202122
  1. export default class Animations {
  2. constructor(chart: any, config: any);
  3. _chart: any;
  4. _properties: Map<any, any>;
  5. configure(config: any): void;
  6. /**
  7. * Utility to handle animation of `options`.
  8. * @private
  9. */
  10. private _animateOptions;
  11. /**
  12. * @private
  13. */
  14. private _createAnimations;
  15. /**
  16. * Update `target` properties to new values, using configured animations
  17. * @param {object} target - object to update
  18. * @param {object} values - new target properties
  19. * @returns {boolean|undefined} - `true` if animations were started
  20. **/
  21. update(target: object, values: object): boolean | undefined;
  22. }