@@ -45,11 +45,11 @@ export class RuleX extends Mark {
4545 . data ( index )
4646 . join ( "line" )
4747 . call ( applyDirectStyles , this )
48- . call ( applyChannelStyles , this , channels )
4948 . attr ( "x1" , X ? i => X [ i ] : ( marginLeft + width - marginRight ) / 2 )
5049 . attr ( "x2" , X ? i => X [ i ] : ( marginLeft + width - marginRight ) / 2 )
5150 . attr ( "y1" , Y1 && ! isCollapsed ( y ) ? i => Y1 [ i ] + insetTop : marginTop + insetTop )
52- . attr ( "y2" , Y2 && ! isCollapsed ( y ) ? ( y . bandwidth ? i => Y2 [ i ] + y . bandwidth ( ) - insetBottom : i => Y2 [ i ] - insetBottom ) : height - marginBottom - insetBottom ) )
51+ . attr ( "y2" , Y2 && ! isCollapsed ( y ) ? ( y . bandwidth ? i => Y2 [ i ] + y . bandwidth ( ) - insetBottom : i => Y2 [ i ] - insetBottom ) : height - marginBottom - insetBottom )
52+ . call ( applyChannelStyles , this , channels ) )
5353 . node ( ) ;
5454 }
5555}
@@ -88,11 +88,11 @@ export class RuleY extends Mark {
8888 . data ( index )
8989 . join ( "line" )
9090 . call ( applyDirectStyles , this )
91- . call ( applyChannelStyles , this , channels )
9291 . attr ( "x1" , X1 && ! isCollapsed ( x ) ? i => X1 [ i ] + insetLeft : marginLeft + insetLeft )
9392 . attr ( "x2" , X2 && ! isCollapsed ( x ) ? ( x . bandwidth ? i => X2 [ i ] + x . bandwidth ( ) - insetRight : i => X2 [ i ] - insetRight ) : width - marginRight - insetRight )
9493 . attr ( "y1" , Y ? i => Y [ i ] : ( marginTop + height - marginBottom ) / 2 )
95- . attr ( "y2" , Y ? i => Y [ i ] : ( marginTop + height - marginBottom ) / 2 ) )
94+ . attr ( "y2" , Y ? i => Y [ i ] : ( marginTop + height - marginBottom ) / 2 )
95+ . call ( applyChannelStyles , this , channels ) )
9696 . node ( ) ;
9797 }
9898}
0 commit comments