(geographies)
| 34 | } |
| 35 | |
| 36 | export function getMesh(geographies) { |
| 37 | const isTopojson = geographies.type === "Topology" |
| 38 | if (!isTopojson) return null |
| 39 | const outline = mesh( |
| 40 | geographies, |
| 41 | geographies.objects[Object.keys(geographies.objects)[0]], |
| 42 | (a, b) => a === b |
| 43 | ) |
| 44 | const borders = mesh( |
| 45 | geographies, |
| 46 | geographies.objects[Object.keys(geographies.objects)[0]], |
| 47 | (a, b) => a !== b |
| 48 | ) |
| 49 | return { outline, borders } |
| 50 | } |
| 51 | |
| 52 | export function prepareMesh(outline, borders, path) { |
| 53 | return outline && borders |
no outgoing calls
no test coverage detected
searching dependent graphs…