UNPKG

1.25 kBPlain TextView Raw
1
2// 注册需要的动画执行函数
3import { fadeIn, fadeOut } from '@antv/g2/lib/animate/animation/fade';
4import { growInX, growInXY, growInY } from '@antv/g2/lib/animate/animation/grow-in';
5import { pathIn } from '@antv/g2/lib/animate/animation/path-in';
6import { positionUpdate } from '@antv/g2/lib/animate/animation/position-update';
7import { scaleInX, scaleInY } from '@antv/g2/lib/animate/animation/scale-in';
8import { sectorPathUpdate } from '@antv/g2/lib/animate/animation/sector-path-update';
9import { waveIn } from '@antv/g2/lib/animate/animation/wave-in';
10import { zoomIn, zoomOut } from '@antv/g2/lib/animate/animation/zoom';
11import { registerAnimation } from '@antv/g2/lib/core';
12
13registerAnimation('fade-in', fadeIn);
14registerAnimation('fade-out', fadeOut);
15registerAnimation('grow-in-x', growInX);
16registerAnimation('grow-in-xy', growInXY);
17registerAnimation('grow-in-y', growInY);
18registerAnimation('scale-in-x', scaleInX);
19registerAnimation('scale-in-y', scaleInY);
20registerAnimation('wave-in', waveIn);
21registerAnimation('zoom-in', zoomIn);
22registerAnimation('zoom-out', zoomOut);
23registerAnimation('position-update', positionUpdate);
24registerAnimation('sector-path-update', sectorPathUpdate);
25registerAnimation('path-in', pathIn);