(geographies, path)
| 59 | } |
| 60 | |
| 61 | export function prepareFeatures(geographies, path) { |
| 62 | return geographies |
| 63 | ? geographies.map((d, i) => { |
| 64 | return { |
| 65 | ...d, |
| 66 | rsmKey: `geo-${i}`, |
| 67 | svgPath: path(d), |
| 68 | } |
| 69 | }) |
| 70 | : [] |
| 71 | } |
| 72 | |
| 73 | export function createConnectorPath(dx = 30, dy = 30, curve = 0.5) { |
| 74 | const curvature = Array.isArray(curve) ? curve : [curve, curve] |
no outgoing calls
no test coverage detected
searching dependent graphs…