diff --git a/packages/charts/src/ChartCanvas.tsx b/packages/charts/src/ChartCanvas.tsx index 5bf4c402a..89466f605 100644 --- a/packages/charts/src/ChartCanvas.tsx +++ b/packages/charts/src/ChartCanvas.tsx @@ -512,15 +512,18 @@ export class ChartCanvas extends React.Component each.id !== id); } + public getAllPanConditions() { return this.subscriptions .map((each) => each.getPanConditions()); } + public setCursorClass(className) { if (this.eventCaptureNode != null) { this.eventCaptureNode.setCursorClass(className); } } + public amIOnTop(id) { const dragableComponents = this.subscriptions .filter((each) => each.getPanConditions().draggable); @@ -581,6 +591,7 @@ export class ChartCanvas extends React.Component 0 && last(dragableComponents).id === id; } + public handleContextMenu(mouseXY, e) { const { xAccessor, chartConfig, plotData, xScale } = this.state; @@ -593,6 +604,7 @@ export class ChartCanvas extends React.Component