@@ -308,6 +308,7 @@ export class FunnelSeries<T extends IFunnelSeriesSpec = IFunnelSeriesSpec>
308308 this . setMarkStyle (
309309 outerLabelMark ,
310310 {
311+ // 当使用html、react进行展示的时候,如果不设置_originText,bounds计算会有问题
311312 _originText : ( datum : Datum ) => `${ datum [ this . getCategoryField ( ) ] } ` ,
312313 text : ( datum : Datum ) => {
313314 return this . _spec . outerLabel . formatMethod ( `${ datum [ this . getCategoryField ( ) ] } ` , datum ) as any ;
@@ -811,10 +812,20 @@ export class FunnelSeries<T extends IFunnelSeriesSpec = IFunnelSeriesSpec>
811812
812813 private _computeOuterLabelLinePosition ( datum : Datum ) {
813814 const categoryField = this . getCategoryField ( ) ;
814- const outerLabelMarkBounds = this . _funnelOuterLabelMark ?. label
815+ const outerLabelText = this . _funnelOuterLabelMark ?. label
815816 ?. getProduct ( )
816817 ?. elements ?. find ( ( el : any ) => el . data [ 0 ] ?. [ categoryField ] === datum [ categoryField ] )
817- ?. getBounds ( ) ;
818+ ?. getGraphicItem ( ) ;
819+ const outerLabelMarkBounds = outerLabelText
820+ ? outerLabelText . AABBBounds . empty ( )
821+ ? {
822+ x1 : outerLabelText . attribute . x ,
823+ x2 : outerLabelText . attribute . x ,
824+ y1 : outerLabelText . attribute . y ,
825+ y2 : outerLabelText . attribute . y
826+ }
827+ : outerLabelText . AABBBounds
828+ : { x1 : 0 , x2 : 0 , y1 : 0 , y2 : 0 } ;
818829
819830 const labelMarkBounds = this . _labelMark
820831 ?. getComponent ( )
0 commit comments