* Helper function to get relative position for an event * @param {Event|IEvent} event - The event to get the position for * @param {Chart} chart - The chart * @returns {object} the event position
(e, chart)
| 6709 | * @returns {object} the event position |
| 6710 | */ |
| 6711 | function getRelativePosition(e, chart) { |
| 6712 | if (e.native) { |
| 6713 | return { |
| 6714 | x: e.x, |
| 6715 | y: e.y |
| 6716 | }; |
| 6717 | } |
| 6718 | |
| 6719 | return helpers$1.getRelativePosition(e, chart); |
| 6720 | } |
| 6721 | |
| 6722 | /** |
| 6723 | * Helper function to traverse all of the visible elements in the chart |