source: node_modules/d3-shape/src/lineRadial.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: 402 bytes
Line 
1import curveRadial, {curveRadialLinear} from "./curve/radial.js";
2import line from "./line.js";
3
4export function lineRadial(l) {
5 var c = l.curve;
6
7 l.angle = l.x, delete l.x;
8 l.radius = l.y, delete l.y;
9
10 l.curve = function(_) {
11 return arguments.length ? c(curveRadial(_)) : c()._curve;
12 };
13
14 return l;
15}
16
17export default function() {
18 return lineRadial(line().curve(curveRadialLinear));
19}
Note: See TracBrowser for help on using the repository browser.