MCPcopy
hub / github.com/zcreativelabs/react-simple-maps / prepareFeatures

Function prepareFeatures

src/utils.js:61–71  ·  view source on GitHub ↗
(geographies, path)

Source from the content-addressed store, hash-verified

59}
60
61export 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
73export function createConnectorPath(dx = 30, dy = 30, curve = 0.5) {
74 const curvature = Array.isArray(curve) ? curve : [curve, curve]

Callers 1

useGeographiesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…