Repository: excalidraw
Issue: Bug: Png Rasterization of arrow cropping issue
Labels: bug

# What
Multi point curved lines can cause issues where the edge of the curve does not make it into a copied PNG

# Steps to recreate
Paste the following into excalidraw
```json
{"type":"excalidraw/clipboard","elements":[{"id":"Q3bdXGLR926979Hx2xWGH","type":"diamond","x":4440,"y":36620,"width":400,"height":230,"angle":0,"strokeColor":"#1e1e1e","backgroundColor":"transparent","fillStyle":"hachure","strokeWidth":4,"strokeStyle":"solid","roughness":1,"opacity":100,"groupIds":[],"frameId":null,"index":"bMj","roundness":{"type":2},"seed":845291952,"version":377,"versionNonce":1321108400,"isDeleted":false,"boundElements":[{"id":"fskGWWP84zFZyVTRK_Iak","type":"text"},{"id":"KOskzei7KeGXVVonpFGaD","type":"arrow"}],"updated":1736472330181,"link":null,"locked":false},{"id":"fskGWWP84zFZyVTRK_Iak","type":"text","x":4606.276119232178,"y":36717.5,"width":67.44776153564453,"height":35,"angle":0,"strokeColor":"#1e1e1e","backgroundColor":"transparent","fillStyle":"hachure","strokeWidth":4,"strokeStyle":"solid","roughness":1,"opacity":100,"groupIds":[],"frameId":null,"index":"bMk","roundness":null,"seed":1058171824,"version":278,"versionNonce":1117195184,"isDeleted":false,"boundElements":[],"updated":1736472338512,"link":null,"locked":false,"text":"Test","fontSize":28,"fontFamily":5,"textAlign":"center","verticalAlign":"middle","containerId":"Q3bdXGLR926979Hx2xWGH","originalText":"Test","autoResize":true,"lineHeight":1.25},{"id":"9_u4yiULNh8omBdeFsdfc","type":"rectangle","x":3540,"y":37280,"width":220.00000000000003,"height":120.00000000000001,"angle":0,"strokeColor":"#1e1e1e","backgroundColor":"transparent","fillStyle":"hachure","strokeWidth":4,"strokeStyle":"solid","roughness":1,"opacity":100,"groupIds":[],"frameId":null,"index":"bMr","roundness":{"type":3},"seed":702640560,"version":241,"versionNonce":931055024,"isDeleted":false,"boundElements":[{"id":"9OkuYG4z98TOxhAMifAKx","type":"text"},{"id":"KOskzei7KeGXVVonpFGaD","type":"arrow"}],"updated":1736472335994,"link":null,"locked":false},{"id":"9OkuYG4z98TOxhAMifAKx","type":"text","x":3600.8880615234375,"y":37322.5,"width":98.223876953125,"height":35,"angle":0,"strokeColor":"#1e1e1e","backgroundColor":"transparent","fillStyle":"hachure","strokeWidth":4,"strokeStyle":"solid","roughness":1,"opacity":100,"groupIds":[],"frameId":null,"index":"bMs","roundness":null,"seed":707247024,"version":132,"versionNonce":375743920,"isDeleted":false,"boundElements":[],"updated":1736472341515,"link":null,"locked":false,"text":"Test 2","fontSize":28,"fontFamily":5,"textAlign":"center","verticalAlign":"middle","containerId":"9_u4yiULNh8omBdeFsdfc","originalText":"Test 2","autoResize":true,"lineHeight":1.25},{"id":"KOskzei7KeGXVVonpFGaD","type":"arrow","x":4840.000000000002,"y":36740,"width":1240.2000000000025,"height":539,"angle":0,"strokeColor":"#1e1e1e","backgroundColor":"transparent","fillStyle":"hachure","strokeWidth":4,"strokeStyle":"solid","roughness":1,"opacity":100,"groupIds":[],"frameId":null,"index":"bN4","roundness":{"type":2},"seed":1408349104,"version":248,"versionNonce":550774608,"isDeleted":false,"boundElements":[{"type":"text","id":"vLZfmQtWY-MVjvSLEoP1T"}],"updated":1736472344624,"link":null,"locked":false,"points":[[0,0],[59.99999999999818,460],[-1040.0000000000018,440],[-1180.2000000000044,539]],"lastCommittedPoint":null,"startBinding":{"elementId":"Q3bdXGLR926979Hx2xWGH","focus":-0.9967391304347918,"gap":4.334531515288575,"fixedPoint":null},"endBinding":{"elementId":"9_u4yiULNh8omBdeFsdfc","focus":-0.39280903533314404,"gap":1,"fixedPoint":null},"startArrowhead":null,"endArrowhead":"arrow","elbowed":false},{"id":"vLZfmQtWY-MVjvSLEoP1T","type":"text","x":4301.505852517401,"y":37192.27202562778,"width":61.17910385131836,"height":35,"angle":0,"strokeColor":"#1e1e1e","backgroundColor":"transparent","fillStyle":"hachure","strokeWidth":4,"strokeStyle":"solid","roughness":1,"opacity":100,"groupIds":[],"frameId":null,"index":"bN5","roundness":null,"seed":1826602416,"version":15,"versionNonce":1533632944,"isDeleted":false,"boundElements":[],"updated":1736472343758,"link":null,"locked":false,"text":"test","fontSize":28,"fontFamily":5,"textAlign":"center","verticalAlign":"middle","containerId":"KOskzei7KeGXVVonpFGaD","originalText":"test","autoResize":true,"lineHeight":1.25}],"files":{}}
```
Select all elements and select "Copy as png"
See rendered result:
![Image](https://github.com/user-attachments/assets/a0b4b2a9-d2a7-4c7b-a5fc-c708b3514e16)

# Browser details:
User Agent: `Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0`
Os: `Ubuntu 24.04`
In browser excalidraw with not extensions enabled.