Fix TypeScript tuple array typing for GlobeMap lines
This commit is contained in:
1 parent
9219035003
commit
e8397bddc8
1 file changed
+1
-1
@@ -90,7 +90,7 @@ export const GlobeMap = ({ data }: GlobeMapProps) => {
|
||||
// Force the line to go straight across the map (the "front")
|
||||
// by interpolating multiple points. This prevents d3-geo from
|
||||
// wrapping around the dateline for long distances.
|
||||
const coordinates = [];
|
||||
const coordinates: [number, number][] = [];
|
||||
const steps = 30;
|
||||
for (let j = 0; j <= steps; j++) {
|
||||
const t = j / steps;
|
||||
|
||||
Reference in new issue
Block a user