feat:蜂窝图组件实现

This commit is contained in:
zhangyu
2020-12-11 16:44:20 +08:00
parent c493efd6aa
commit a8064995a9
4 changed files with 332 additions and 142 deletions

View File

@@ -25,7 +25,17 @@ export function getChart(key) {
export function setChart(key, value) {
chartCache[`chart${key}`] = value;
}
const hexagonCache = {};
export function getHexagon(key) {
return hexagonCache[`hexagon${key}`];
}
export function setHexagon(key, value) {
hexagonCache[`hexagon${key}`] = value;
}
export function delHexagon(key) {
delete hexagonCache[`hexagon${key}`];
}
const mousePoint={ //在echart tooltip中获取不到鼠标在窗口的位置在火狐没有window。event 在此兼容火狐 获取鼠标在窗口位置
x:'',
y:''