Open diegoup2 opened 1 month ago
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.
Hi @diegoup2, Vico 2.0.0-alpha.28 fixes this bug. Cheers!
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