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
Hi @diegoup2, thank you for the report. We've identified the problem with ShapeComponent. It occurs when Matrix transformations are used. We will fix it in the next release.
In the meantime you can work around this easily in your code by calling Path.rewind at the beginning of the draw function.
Also, your custom Shape will stick out of its bounds since the diagonal of a square is longer than its side. This may lead to clipping. You could update the drawing logic to resize the shape correctly, but there’s a built-in way of creating a diamond with correct sizing. It may be quicker to use that.
Shape.cut(allPercent =50)
Note that you may have to increase the Point size.
This will not be affected by the ShapeComponent bug, as CorneredShape doesn’t use Matrix transformations.
How to reproduce
Observed behavior
As you can see in the image, there's an overlap between a ghost
Shape.Rectangle
and my custom Shape.Expected behavior
This resolves with changing from custom Diamond Shape to
Shape.Rectangle
on theLineCartesianLayer.PointProvider
Vico version(s)
2.0.0-alpha.27
Android version(s)
API 34
Additional information
No response
The text was updated successfully, but these errors were encountered: