in src/tooltipServiceWrapper.ts [247:266]
private getCoordinates(rootNode: ContainerElement, isPointerEvent: boolean): number[] {
let coordinates: number[];
if (isPointerEvent) {
// copied from d3_eventSource (which is not exposed)
let e = <any> d3Event;
let rect = rootNode.getBoundingClientRect();
coordinates = [e.clientX - rect.left - rootNode.clientLeft, e.clientY - rect.top - rootNode.clientTop];
}
else {
let touchCoordinates = d3Touches(rootNode);
if (touchCoordinates && touchCoordinates.length > 0) {
coordinates = touchCoordinates[0];
}
}
return coordinates;
}