in public/components/Charts/Highlight/Highlight.js [108:118]
_getDragArea(xLoc, yLoc) {
const { enableX, enableY } = this.props;
const { startLocX, startLocY, dragArea } = this.state;
return {
bottom: dragArea.bottom + (enableY ? yLoc - startLocY : 0),
left: dragArea.left + (enableX ? xLoc - startLocX : 0),
right: dragArea.right + (enableX ? xLoc - startLocX : 0),
top: dragArea.top + (enableY ? yLoc - startLocY : 0),
};
}