This is an automated email from the ASF dual-hosted git repository.

wangzx pushed a commit to branch feat/datazoom/move-hanlde/border-radius
in repository https://gitbox.apache.org/repos/asf/echarts.git

commit c3698128b4bef94db0233dafeaf025e9ce5ef7e5
Author: plainheart <[email protected]>
AuthorDate: Fri Aug 4 12:12:17 2023 +0800

    fix(dataZoom): prevent shadow from overflow when `borderRadius` is set
---
 src/component/dataZoom/SliderZoomView.ts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/component/dataZoom/SliderZoomView.ts 
b/src/component/dataZoom/SliderZoomView.ts
index a6545fdb3..bd3de1ff5 100644
--- a/src/component/dataZoom/SliderZoomView.ts
+++ b/src/component/dataZoom/SliderZoomView.ts
@@ -788,7 +788,9 @@ class SliderZoomView extends DataZoomView {
                 x: segIntervals[i],
                 y: 0,
                 width: segIntervals[i + 1] - segIntervals[i],
-                height: size[1]
+                height: size[1],
+                // prevent shadow from overflow when `borderRadius` is set
+                r: this.dataZoomModel.get('borderRadius') || 0
             });
         }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to