@visactor/vchart
Version:
charts lib based @visactor/VGrammar
24 lines (21 loc) • 572 B
JavaScript
import { Factory } from "../../core/factory";
export const treemapPresetAnimation = preset => "fadeIn" === preset ? {
type: "fadeIn"
} : {
type: "growCenterIn"
};
export const registerTreemapAnimation = () => {
Factory.registerAnimation("treemap", ((params, preset) => ({
appear: treemapPresetAnimation(preset),
enter: {
type: "growCenterIn"
},
exit: {
type: "growCenterOut"
},
disappear: {
type: "growCenterOut"
}
})));
};
//# sourceMappingURL=animation.js.map