Comparing version 0.1.1-beta.8 to 0.1.1-beta.9
@@ -0,1 +1,2 @@ | ||
/// <reference types="web" /> | ||
import uPlot from 'uplot'; | ||
@@ -2,0 +3,0 @@ import { Shape } from './index.js'; |
@@ -0,1 +1,3 @@ | ||
/// <reference types="react" resolution-mode="require"/> | ||
/// <reference types="web" /> | ||
import UPlot from 'uplot'; | ||
@@ -2,0 +4,0 @@ import { Data, Size } from '../types/index.js'; |
@@ -311,3 +311,5 @@ import { cloneDeep, merge, mergeWith, omit, isFunction } from 'lodash'; | ||
this.ctrl.emit(ChartEvent.PLOT_MOUSEMOVE); | ||
const noData = !u.data[1].some(d => d !== null); | ||
const noData = !Array.from(u.data.slice(1)) | ||
.flat() | ||
.some(d => d !== null); | ||
if (!noData && !this.ctrl.hideTooltip && !this.isElementAction) { | ||
@@ -367,2 +369,9 @@ this.ctrl.components.get('tooltip').showTooltip(); | ||
cursorX.style.visibility = visibilityX; | ||
const tooltip = this.ctrl.components.get('tooltip'); | ||
if (visibilityX === 'hidden') { | ||
tooltip.hideTooltip(); | ||
} | ||
else { | ||
tooltip.showTooltip(); | ||
} | ||
} | ||
@@ -369,0 +378,0 @@ if (cursorY) { |
/// <reference types="react" resolution-mode="require"/> | ||
/// <reference types="web" /> | ||
import uPlot, { Padding } from 'uplot'; | ||
import uPlot, { Padding as UPadding } from 'uplot'; | ||
import { AdjustOption } from '../components/shape/bar.js'; | ||
@@ -8,2 +8,3 @@ import { SizeCallback } from '../components/shape/point.js'; | ||
import { Theme } from './index.js'; | ||
export declare type Padding = UPadding; | ||
export interface ChartOption { | ||
@@ -10,0 +11,0 @@ container: string | HTMLElement; |
{ | ||
"name": "zz-chart", | ||
"version": "0.1.1-beta.8", | ||
"version": "0.1.1-beta.9", | ||
"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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
664998
16798