@@ -1112,13 +1112,13 @@ it("plot(…).scale('opacity') respects the percent option, affecting domain and
1112
1112
} ) ;
1113
1113
1114
1114
it ( "plot({inset, …}).scale('x') does not allow insets or margins to invert the range" , ( ) => {
1115
- assert . deepStrictEqual ( Plot . plot ( { x : { inset : 60 } , width : 100 } ) . scale ( "x" ) . range , [ 80 , 80 ] ) ;
1116
- assert . deepStrictEqual ( Plot . plot ( { x : { inset : 30 } , margin : 30 , width : 100 } ) . scale ( "x" ) . range , [ 60 , 60 ] ) ;
1115
+ assert . deepStrictEqual ( Plot . plot ( { x : { type : "linear" , inset : 60 } , width : 100 } ) . scale ( "x" ) . range , [ 80 , 80 ] ) ;
1116
+ assert . deepStrictEqual ( Plot . plot ( { x : { type : "linear" , inset : 30 } , margin : 30 , width : 100 } ) . scale ( "x" ) . range , [ 60 , 60 ] ) ;
1117
1117
} ) ;
1118
1118
1119
1119
it ( "plot({inset, …}).scale('y') does not allow insets or margins to invert the range" , ( ) => {
1120
- assert . deepStrictEqual ( Plot . plot ( { y : { inset : 60 } , height : 100 } ) . scale ( "y" ) . range , [ 80 , 80 ] ) ;
1121
- assert . deepStrictEqual ( Plot . plot ( { y : { inset : 30 } , margin : 30 , height : 100 } ) . scale ( "y" ) . range , [ 60 , 60 ] ) ;
1120
+ assert . deepStrictEqual ( Plot . plot ( { y : { type : "linear" , inset : 60 } , height : 100 } ) . scale ( "y" ) . range , [ 80 , 80 ] ) ;
1121
+ assert . deepStrictEqual ( Plot . plot ( { y : { type : "linear" , inset : 30 } , margin : 30 , height : 100 } ) . scale ( "y" ) . range , [ 60 , 60 ] ) ;
1122
1122
} ) ;
1123
1123
1124
1124
it ( "plot({inset, …}).scale('x').range respects the given top-level inset" , ( ) => {
0 commit comments