morphing.d.ts 420 B

12345678910111213
  1. import { DisplayObject } from '@antv/g';
  2. import { AnimationComponent as AC } from '../runtime';
  3. import { Animation } from './types';
  4. export type MorphingOptions = Animation & {
  5. split: 'pack' | SplitFunction;
  6. };
  7. type SplitFunction = (shape: DisplayObject, count: number) => string[];
  8. /**
  9. * Morphing animations.
  10. * @todo Support more split function.
  11. */
  12. export declare const Morphing: AC<MorphingOptions>;
  13. export {};