(w, h, t)
| 1 | import { feature, mesh } from "topojson-client" |
| 2 | |
| 3 | export function getCoords(w, h, t) { |
| 4 | const xOffset = (w * t.k - w) / 2 |
| 5 | const yOffset = (h * t.k - h) / 2 |
| 6 | return [w / 2 - (xOffset + t.x) / t.k, h / 2 - (yOffset + t.y) / t.k] |
| 7 | } |
| 8 | |
| 9 | export function fetchGeographies(url) { |
| 10 | return fetch(url) |
no outgoing calls
no test coverage detected
searching dependent graphs…