@antv/f2
Version:
Charts for mobile visualization.
17 lines • 349 B
JavaScript
var methodCache = {};
/**
* 获取计算 ticks 的方法
* @param key 键值
* @returns 计算 ticks 的方法
*/
export function getTickMethod(key) {
return methodCache[key];
}
/**
* 注册计算 ticks 的方法
* @param key 键值
* @param method 方法
*/
export function registerTickMethod(key, method) {
methodCache[key] = method;
}