@antv/f2
Version:
Charts for mobile visualization.
24 lines (23 loc) • 503 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getTickMethod = getTickMethod;
exports.registerTickMethod = registerTickMethod;
var methodCache = {};
/**
* 获取计算 ticks 的方法
* @param key 键值
* @returns 计算 ticks 的方法
*/
function getTickMethod(key) {
return methodCache[key];
}
/**
* 注册计算 ticks 的方法
* @param key 键值
* @param method 方法
*/
function registerTickMethod(key, method) {
methodCache[key] = method;
}