@@ -17,6 +17,7 @@ export class Arc extends Mark {
17
17
y = constant ( 0 ) ,
18
18
innerRadius,
19
19
outerRadius,
20
+ padAngle,
20
21
z,
21
22
title,
22
23
fill,
@@ -29,6 +30,7 @@ export class Arc extends Mark {
29
30
const [ vstroke , cstroke ] = maybeColor ( stroke , cfill === "none" ? "currentColor" : cfill === "currentColor" ? "white" : "none" ) ;
30
31
const [ vsa , csa ] = maybeNumber ( startAngle , 0 ) ;
31
32
const [ vea , cea ] = maybeNumber ( endAngle , 2 * Math . PI ) ;
33
+ const [ vpa , cpa ] = maybeNumber ( padAngle , 0 ) ;
32
34
const [ vx , cx ] = maybeNumber ( x , 0 ) ;
33
35
const [ vy , cy ] = maybeNumber ( y , 0 ) ;
34
36
const [ vri , cri ] = maybeNumber ( innerRadius , 0 ) ;
@@ -43,6 +45,7 @@ export class Arc extends Mark {
43
45
{ name : "endAngle" , value : vea , optional : true } ,
44
46
{ name : "innerRadius" , value : vri , optional : true } ,
45
47
{ name : "outerRadius" , value : vro , optional : true } ,
48
+ { name : "padAngle" , value : vpa , optional : true } ,
46
49
{ name : "z" , value : z , optional : true } ,
47
50
{ name : "title" , value : title , optional : true } ,
48
51
{ name : "fill" , value : vfill , scale : "color" , optional : true } ,
@@ -57,11 +60,12 @@ export class Arc extends Mark {
57
60
this . ea = cea ;
58
61
this . ri = cri ;
59
62
this . ro = cro ;
63
+ this . pa = cpa ;
60
64
}
61
65
render (
62
66
I ,
63
67
{ x, y, color} ,
64
- { startAngle : SA , endAngle : EA , innerRadius : RI , outerRadius : RO , x : X , y : Y , z : Z , title : L , fill : F , stroke : S } ,
68
+ { startAngle : SA , endAngle : EA , innerRadius : RI , outerRadius : RO , padAngle : PA , x : X , y : Y , z : Z , title : L , fill : F , stroke : S } ,
65
69
{ marginTop, marginRight, marginBottom, marginLeft, width, height}
66
70
) {
67
71
const index = filter ( I , SA , EA , F , S ) ;
@@ -73,7 +77,8 @@ export class Arc extends Mark {
73
77
. startAngle ( SA ? ( i => SA [ i ] ) : this . sa )
74
78
. endAngle ( EA ? ( i => EA [ i ] ) : this . ea )
75
79
. innerRadius ( RI ? ( i => r0 * RI [ i ] ) : r0 * this . ri )
76
- . outerRadius ( RO ? ( i => r0 * RO [ i ] ) : r0 * this . ro ) ;
80
+ . outerRadius ( RO ? ( i => r0 * RO [ i ] ) : r0 * this . ro )
81
+ . padAngle ( PA ? ( i => PA [ i ] ) : this . pa ) ;
77
82
78
83
return create ( "svg:g" )
79
84
. call ( applyIndirectStyles , this )
0 commit comments