source: node_modules/d3-geo/src/projection/conic.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: 408 bytes
Line 
1import {degrees, pi, radians} from "../math.js";
2import {projectionMutator} from "./index.js";
3
4export function conicProjection(projectAt) {
5 var phi0 = 0,
6 phi1 = pi / 3,
7 m = projectionMutator(projectAt),
8 p = m(phi0, phi1);
9
10 p.parallels = function(_) {
11 return arguments.length ? m(phi0 = _[0] * radians, phi1 = _[1] * radians) : [phi0 * degrees, phi1 * degrees];
12 };
13
14 return p;
15}
Note: See TracBrowser for help on using the repository browser.