@visactor/vchart
Version:
charts lib based @visactor/VGrammar
24 lines (21 loc) • 596 B
JavaScript
import { Factory } from "../../core/factory";
export const circlePackingPresetAnimation = preset => "fadeIn" === preset ? {
type: "fadeIn"
} : {
type: "growRadiusIn"
};
export const registerCirclePackingAnimation = () => {
Factory.registerAnimation("circlePacking", ((parmas, preset) => ({
appear: circlePackingPresetAnimation(preset),
enter: {
type: "growRadiusIn"
},
exit: {
type: "growRadiusOut"
},
disappear: {
type: "growRadiusOut"
}
})));
};
//# sourceMappingURL=animation.js.map