@@ -2468,8 +2468,8 @@ function render({ model, el }) {
24682468 const [ cx , cy ] = tfm === 'data' ? _offToCanvas ( off ) : _tc2d ( off [ 0 ] , off [ 1 ] != null ?off [ 1 ] :0 ) ;
24692469 const wd = ms . widths [ i ] != null ?ms . widths [ i ] :( ms . widths [ 0 ] || 10 ) ;
24702470 const hd = ms . heights [ i ] != null ?ms . heights [ i ] :( ms . heights [ 0 ] || 10 ) ;
2471- const rw = Math . max ( 1 , Math . abs ( _xPx ( off [ 0 ] + wd / 2 ) - _xPx ( off [ 0 ] - wd / 2 ) ) / 2 ) ;
2472- const rh = Math . max ( 1 , Math . abs ( _yPx ( ( off [ 1 ] || 0 ) - hd / 2 ) - _yPx ( ( off [ 1 ] || 0 ) + hd / 2 ) ) / 2 ) ;
2471+ const rw = Math . max ( 1 , tfm === 'data' ? Math . abs ( _xPx ( off [ 0 ] + wd / 2 ) - _xPx ( off [ 0 ] - wd / 2 ) ) / 2 : wd / 2 ) ;
2472+ const rh = Math . max ( 1 , tfm === 'data' ? Math . abs ( _yPx ( ( off [ 1 ] || 0 ) - hd / 2 ) - _yPx ( ( off [ 1 ] || 0 ) + hd / 2 ) ) / 2 : hd / 2 ) ;
24732473 const ang = ( ( ms . angles && ( ms . angles [ i ] != null ?ms . angles [ i ] :ms . angles [ 0 ] ) || 0 ) * Math . PI ) / 180 ;
24742474 mkCtx . beginPath ( ) ; mkCtx . ellipse ( cx , cy , rw , rh , ang , 0 , Math . PI * 2 ) ;
24752475 if ( fch ) { mkCtx . save ( ) ; mkCtx . globalAlpha = fa ; mkCtx . fillStyle = fch ; mkCtx . fill ( ) ; mkCtx . restore ( ) ; }
@@ -2482,8 +2482,8 @@ function render({ model, el }) {
24822482 const [ cx , cy ] = tfm === 'data' ? _offToCanvas ( off ) : _tc2d ( off [ 0 ] , off [ 1 ] != null ?off [ 1 ] :0 ) ;
24832483 const wd = ms . widths [ i ] != null ?ms . widths [ i ] :( ms . widths [ 0 ] || 10 ) ;
24842484 const hd = heights [ i ] != null ?heights [ i ] :( heights [ 0 ] || 10 ) ;
2485- const rw = Math . max ( 1 , Math . abs ( _xPx ( off [ 0 ] + wd / 2 ) - _xPx ( off [ 0 ] - wd / 2 ) ) ) ;
2486- const rh = Math . max ( 1 , Math . abs ( _yPx ( ( off [ 1 ] || 0 ) - hd / 2 ) - _yPx ( ( off [ 1 ] || 0 ) + hd / 2 ) ) ) ;
2485+ const rw = Math . max ( 1 , tfm === 'data' ? Math . abs ( _xPx ( off [ 0 ] + wd / 2 ) - _xPx ( off [ 0 ] - wd / 2 ) ) : wd ) ;
2486+ const rh = Math . max ( 1 , tfm === 'data' ? Math . abs ( _yPx ( ( off [ 1 ] || 0 ) - hd / 2 ) - _yPx ( ( off [ 1 ] || 0 ) + hd / 2 ) ) : hd ) ;
24872487 const ang = ( ( ms . angles && ( ms . angles [ i ] != null ?ms . angles [ i ] :ms . angles [ 0 ] ) || 0 ) * Math . PI ) / 180 ;
24882488 mkCtx . save ( ) ; mkCtx . translate ( cx , cy ) ; mkCtx . rotate ( ang ) ;
24892489 if ( fch ) { mkCtx . save ( ) ; mkCtx . globalAlpha = fa ; mkCtx . fillStyle = fch ; mkCtx . fillRect ( - rw / 2 , - rh / 2 , rw , rh ) ; mkCtx . restore ( ) ; }
0 commit comments