@@ -24,13 +24,13 @@ const defaults = {
24
24
strokeMiterlimit : 1
25
25
} ;
26
26
27
- const curveProjection = Symbol ( "projection " ) ;
27
+ const curveProjected = Symbol ( "projected " ) ;
28
28
29
- // For the “projection ” curve, return a symbol instead of a curve
29
+ // For the “projected ” curve, return a symbol instead of a curve
30
30
// implementation; we’ll use d3.geoPath instead of d3.line to render.
31
31
function LineCurve ( { curve, tension} ) {
32
- return typeof curve !== "function" && `${ curve } ` . toLowerCase ( ) === "projection "
33
- ? curveProjection
32
+ return typeof curve !== "function" && `${ curve } ` . toLowerCase ( ) === "projected "
33
+ ? curveProjected
34
34
: Curve ( curve , tension ) ;
35
35
}
36
36
@@ -41,8 +41,8 @@ export class Line extends Mark {
41
41
super (
42
42
data ,
43
43
{
44
- x : { value : x , scale : curve === curveProjection ? undefined : "x" } , // unscaled if projected
45
- y : { value : y , scale : curve === curveProjection ? undefined : "y" } , // unscaled if projected
44
+ x : { value : x , scale : curve === curveProjected ? undefined : "x" } , // unscaled if projected
45
+ y : { value : y , scale : curve === curveProjected ? undefined : "y" } , // unscaled if projected
46
46
z : { value : maybeZ ( options ) , optional : true }
47
47
} ,
48
48
options ,
@@ -72,7 +72,7 @@ export class Line extends Mark {
72
72
. call ( applyGroupedMarkers , this , channels )
73
73
. attr (
74
74
"d" ,
75
- curve === curveProjection
75
+ curve === curveProjected
76
76
? sphereLine ( context . projection , X , Y )
77
77
: shapeLine ( )
78
78
. curve ( curve )
0 commit comments