echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] Clipping in custom series off by 1 pixel

Open nielskrijger opened this issue 1 year ago • 0 comments

Version

5.5.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=custom-profit&version=5.5.0&decal=1&code=MYewdgzgLgBAJgQygmBeGBtAUDTBaARgAYAaGY0mAJkoHIBBWgXRKyYG4ssQAHKAS3BoYAbxwwAHvQn8IALlHjcAW35gFpJTGUIJC4uIC-rXAE9pshWNy4IwBABsApgqgAnAK5OTN1epiaNtq6-kRGPhBObvxO8pha1kEwUKY8LjC0wB7QIMq0PkHADvw8rp7eMAD0lTAAwgAyAJIACsLuXlq4bk5gcFGNUE7KCgBmHmDAAkIAFDwIbgjKEGQIPPwAlIpJNgBu8zCmAGqOXsKr_AB0ew5e01TrnNu4e24w0POw6OcXoCBucNMMN9rrciOsyEcTk4mA9Ort9hB-AAvJxnNYXREowHAqHTAibPAwHE3JzTMEQ44kmGPJ4vN4pZxoy7QUzOaawp4wbpQDxuMBbTnJVLpWjdSb5OFBCAAC1W6USgskCnebigGCILElSVMyuQqowBE1itwAHd-HAoNLlcinOqjcbpU5-ABzaVQa0og32znGLW2Bnyv02Eb8BwOBS0ADEABYRgAOAgAIzgEuNMF4CGA_BSGguAFYg4YtYYaUFfdtEMgFJWEFoi7gmFgS0A

Steps to Reproduce

Simply open the reproduction and it should be immediately visible.

Current Behavior

With clip: true on a custom series the item is clipped correctly on the bottom but is slightly off on all other sides.

image

Expected Behavior

More like this:

image

Environment

- OS: Mac OS 14.4
- Browser: Chrome (latest)

Any additional comments?

In version 5.4.3 it renders correctly on the bottom and right side; only the left and top sides were broken. That is the behaviour since at least 5.0.0.

In 5.5.0 something happened to break the clipping on the right side too. Looking at the release logs of 5.5.0 my first suspect would be this change: https://github.com/apache/echarts/pull/19056/files but I haven't confirmed / tested that.

I haven't found any workaround so far, if someone has any ideas how to work around it I'd love to hear.

nielskrijger avatar May 31 '24 18:05 nielskrijger