source:
node_modules/d3-geo/src/compose.js
| Last change on this file was e4c61dd, checked in by , 6 months ago | |
|---|---|
|
|
| File size: 250 bytes | |
| Line | |
|---|---|
| 1 | export default function(a, b) { |
| 2 | |
| 3 | function compose(x, y) { |
| 4 | return x = a(x, y), b(x[0], x[1]); |
| 5 | } |
| 6 | |
| 7 | if (a.invert && b.invert) compose.invert = function(x, y) { |
| 8 | return x = b.invert(x, y), x && a.invert(x[0], x[1]); |
| 9 | }; |
| 10 | |
| 11 | return compose; |
| 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
