I have been having some issues with victory-voronoi-container and have found a potential issue with delaunay-find.
I have tried different combinations of x and y and haven't really been able to find a pattern as to why the result it not the same.
const Delaunay = require("delaunay-find").default;
var scaled_data = [
[60 ,17113.1],
[106.5 ,17113.1],
[153 ,17113.1],
[199.5 ,17113.1],
[246 ,17113.1],
[292.5 ,17113.1],
[339 ,17113.1],
[385.5 ,17113.1]]
let delaunay = Delaunay.from(scaled_data)
delaunay.find(300, 17113.1) // returns 0
const Delaunay = require("delaunay-find").default;
var scaled_data = [
[60 ,17113.2],
[106.5 ,17113.2],
[153 ,17113.2],
[199.5 ,17113.2],
[246 ,17113.2],
[292.5 ,17113.2],
[339 ,17113.2],
[385.5 ,17113.2]]
let delaunay = Delaunay.from(scaled_data)
delaunay.find(300, 17113.2) // returns 5