NativeScript / canvas

Apache License 2.0
88 stars 18 forks source link

CanvasRenderingContext2D.clip() does not seem to clip path #83

Closed CatchABus closed 1 year ago

CatchABus commented 2 years ago

I have ported all my chart custom code from web to NS and it seems that clipping doesn't apply as expected. The example contains a group of stripes that should be clipped according to chart bars. It's only tested on android for the time being.

Here is a screenshot from web, where clip is applied: Screenshot from 2022-08-05 13-36-20

And here is the same code with NativeScript canvas: 297401417_722067608875964_7081423225367334773_n

triniwiz commented 2 years ago

Yes been wanting to get to this, it's fixed in v2 so I'll try to backport it