How to use hardwareSelector

I am trying to debug issue of hardwareSelector picking.

hardwareSelector getSourceDataAsync(renderer, x1, y1, x2, y2)?

in the example it uses event() to get x,y then call getSourceDataAsync()

const [x, y] = eventToWindowXY(event);
hardwareSelector.getSourceDataAsync(renderer, x, y, x, y)

but vtk.js interactor uses callData which has position (x,y) but no event information to be found.

it’s unclear how to generate x,y to be used in getSourceDataAsync() from callData.

it seems [x,y]=[callData.position.x,callData.position.y] works. no need to call eventToWindowXY(event) again.