(event, chart)
| 107 | } |
| 108 | |
| 109 | function fromNativeEvent(event, chart) { |
| 110 | const type = EVENT_TYPES[event.type] || event.type; |
| 111 | const {x, y} = getRelativePosition(event, chart); |
| 112 | return { |
| 113 | type, |
| 114 | chart, |
| 115 | native: event, |
| 116 | x: x !== undefined ? x : null, |
| 117 | y: y !== undefined ? y : null, |
| 118 | }; |
| 119 | } |
| 120 | |
| 121 | function nodeListContains(nodeList, canvas) { |
| 122 | for (const node of nodeList) { |
no test coverage detected