You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To fix, we should check the borderWidth if odd or not and then change the annotation element size calculation as described in the document.
All annotation element sizes are calculated in the resolveElementProperties(chart, options) method of the annotation elements (in src/types).
This will affect also the test cases which should be changed.
Let me know if more info are needed to submit a PR. Otherwise I'll have a look asap.
When using line annotation with
borderWidth: 1
, the final width of the line is2px
.Step to reproduce:
The width is
2px
even whenborderWidth
is set to1px
.I would be happy to create a pull request if someone points me to the right direction.
The text was updated successfully, but these errors were encountered: