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
I noticed a very special edge case of using canvas(debug: true) together with fills in merge-path and some relative coordinates. I did not perform any further testing to minimize the repro code, so it is possible that the bug can be triggered in more general situations.
When activating the canvas debug plots in the following code, the fill areas of the triangle are inverted:
Without debug, expected form:
With debug: true, unexpected fill area inversion:
Maybe I am also abusing the merge-path function here since the rect line draw order is not specified in the manual?
My goal was to avoid the fine white line between the rect and the triangle, which happens without merge-path in some PDF viewers.
The text was updated successfully, but these errors were encountered:
I noticed a very special edge case of using
canvas(debug: true)
together with fills inmerge-path
and some relative coordinates. I did not perform any further testing to minimize the repro code, so it is possible that the bug can be triggered in more general situations.When activating the canvas debug plots in the following code, the fill areas of the triangle are inverted:
Without debug, expected form:
![image](https://private-user-images.githubusercontent.com/15750438/326855630-5017d07f-973d-4b73-9eb3-b1258b19ffcc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzYzMjYsIm5iZiI6MTczOTM3NjAyNiwicGF0aCI6Ii8xNTc1MDQzOC8zMjY4NTU2MzAtNTAxN2QwN2YtOTczZC00YjczLTllYjMtYjEyNThiMTlmZmNjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE2MDAyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAzMGM2OGIzNDc1NTExZjZjNmVlMmE1M2I5NGU0ZTY1Y2M4YmQ2MzNiN2UyZTlhODgyOWZkZDZiYjlkOGI4MmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iF00l-03LP9vE-CnjexpP3KS3s-q4WW8H8YfKVe1_AU)
![image](https://private-user-images.githubusercontent.com/15750438/326855981-5458ad92-3770-4430-8dd0-f6954415f83c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzYzMjYsIm5iZiI6MTczOTM3NjAyNiwicGF0aCI6Ii8xNTc1MDQzOC8zMjY4NTU5ODEtNTQ1OGFkOTItMzc3MC00NDMwLThkZDAtZjY5NTQ0MTVmODNjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE2MDAyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU4YjE0NGNmMmEwYzZkOTcyMmNlMTI4YmEwMzQwNGVjZjk5MWExZTZhODc4ZTZiMmY5ZmViYjRmNTI3M2JjMWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._yBevTz2fcMrKuA7d_SrGBEfQQ6SiooPsxBNbMlgj-4)
With
debug: true
, unexpected fill area inversion:Maybe I am also abusing the
merge-path
function here since the rect line draw order is not specified in the manual?My goal was to avoid the fine white line between the rect and the triangle, which happens without
merge-path
in some PDF viewers.The text was updated successfully, but these errors were encountered: