UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

32 lines (26 loc) 1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.registerCirclePackingAnimation = exports.circlePackingPresetAnimation = void 0; const factory_1 = require("../../core/factory"), config_1 = require("../../animation/config"), circlePackingPresetAnimation = preset => "fadeIn" === preset ? { type: "fadeIn" } : { type: "growRadiusIn" }; exports.circlePackingPresetAnimation = circlePackingPresetAnimation; const registerCirclePackingAnimation = () => { factory_1.Factory.registerAnimation("circlePacking", ((parmas, preset) => ({ appear: (0, exports.circlePackingPresetAnimation)(preset), enter: { type: "growRadiusIn" }, exit: { type: "growRadiusOut" }, disappear: { duration: config_1.DEFAULT_ANIMATION_CONFIG.disappear.duration } }))); }; exports.registerCirclePackingAnimation = registerCirclePackingAnimation; //# sourceMappingURL=animation.js.map