(dx = 30, dy = 30, curve = 0.5)
| 71 | } |
| 72 | |
| 73 | export function createConnectorPath(dx = 30, dy = 30, curve = 0.5) { |
| 74 | const curvature = Array.isArray(curve) ? curve : [curve, curve] |
| 75 | const curveX = (dx / 2) * curvature[0] |
| 76 | const curveY = (dy / 2) * curvature[1] |
| 77 | return `M${0},${0} Q${-dx / 2 - curveX},${-dy / 2 + curveY} ${-dx},${-dy}` |
| 78 | } |
| 79 | |
| 80 | export function isString(geo) { |
| 81 | return typeof geo === "string" |
no outgoing calls
no test coverage detected
searching dependent graphs…