agdar/static/plugins/d3/src/geo/compose.js
2025-11-02 14:35:35 +03:00

13 lines
250 B
JavaScript

function d3_geo_compose(a, b) {
function compose(x, y) {
return x = a(x, y), b(x[0], x[1]);
}
if (a.invert && b.invert) compose.invert = function(x, y) {
return x = b.invert(x, y), x && a.invert(x[0], x[1]);
};
return compose;
}