@@ -1112,13 +1112,13 @@ it("plot(…).scale('opacity') respects the percent option, affecting domain and
11121112} ) ;
11131113
11141114it ( "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 ] ) ;
11171117} ) ;
11181118
11191119it ( "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 ] ) ;
11221122} ) ;
11231123
11241124it ( "plot({inset, …}).scale('x').range respects the given top-level inset" , ( ) => {
0 commit comments