source: node_modules/d3-geo/src/projection/azimuthalEqualArea.js@ e4c61dd

Last change on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Prototype 1.1

  • Property mode set to 100644
File size: 456 bytes
Line 
1import {asin, sqrt} from "../math.js";
2import {azimuthalRaw, azimuthalInvert} from "./azimuthal.js";
3import projection from "./index.js";
4
5export var azimuthalEqualAreaRaw = azimuthalRaw(function(cxcy) {
6 return sqrt(2 / (1 + cxcy));
7});
8
9azimuthalEqualAreaRaw.invert = azimuthalInvert(function(z) {
10 return 2 * asin(z / 2);
11});
12
13export default function() {
14 return projection(azimuthalEqualAreaRaw)
15 .scale(124.75)
16 .clipAngle(180 - 1e-3);
17}
Note: See TracBrowser for help on using the repository browser.