UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

26 lines (22 loc) 696 B
import { Factory } from "../../core/factory"; import { DEFAULT_ANIMATION_CONFIG } from "../../animation/config"; 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: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration } }))); }; //# sourceMappingURL=animation.js.map