feat:蜂窝图组件实现
This commit is contained in:
@@ -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:''
|
||||
|
||||
@@ -56,7 +56,7 @@ export const clickoutside = {
|
||||
let path = e.path || (e.composedPath && e.composedPath());
|
||||
top: for (let i = 0; i < path.length; i++) {
|
||||
for (let j = 0; j < exceptClassName.length; j++) {
|
||||
if (path[i].className && path[i].className.indexOf(exceptClassName[j]) != -1) {
|
||||
if (path[i].className && path[i].className.indexOf && path[i].className.indexOf(exceptClassName[j]) != -1) {
|
||||
flag = false;
|
||||
break top;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user