When using combination of ctx.clip() & ctx.translate() result is not as expected in comparison to browser canvas, looks like translate is applied to previous (first) clip path, to my knowledge it's by design that in browser translate doesn't affect previously created clip path
Example
Created jsfiddle with browser canvas for reference & example code
About
When using combination of
ctx.clip()
&ctx.translate()
result is not as expected in comparison to browser canvas, looks liketranslate
is applied to previous (first)clip
path, to my knowledge it's by design that in browser translate doesn't affect previously createdclip
pathExample
Created jsfiddle with browser canvas for reference & example code
how it should look
browser Canvas:
skia-canvas: