zz-chart
Advanced tools
Comparing version 0.1.0-beta.28 to 0.1.0-beta.29
@@ -137,3 +137,2 @@ import { merge, mergeWith, omit } from 'lodash'; | ||
this.changeSize(size || this.ctrl.size); | ||
this.uPlot.setCursor; | ||
} | ||
@@ -306,2 +305,15 @@ /** | ||
}, []); | ||
const cursorX = u.over.querySelector('.u-cursor-x'); | ||
const cursorY = u.over.querySelector('.u-cursor-y'); | ||
const noData = !values.some(d => d.y !== null); | ||
const display = noData ? 'none' : 'block'; | ||
if (cursorX) { | ||
cursorX.style.display = display; | ||
} | ||
if (cursorY) { | ||
cursorY.style.display = display; | ||
} | ||
if (noData) { | ||
return; | ||
} | ||
if (!this.isElementAction) { | ||
@@ -308,0 +320,0 @@ cacheData = { |
{ | ||
"name": "zz-chart", | ||
"version": "0.1.0-beta.28", | ||
"version": "0.1.0-beta.29", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "author": "Alauda", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
507396
13300