Hopding / pdf-lib

Create and modify PDF documents in any JavaScript environment
https://pdf-lib.js.org
MIT License
6.77k stars 647 forks source link

SVG path command `T` does not update the control point correctly #1443

Open ralfstx opened 1 year ago

ralfstx commented 1 year ago

What were you trying to do?

Drawing using drawSvgPath ...

How did you attempt to do it?

... with this path: M 10,25 Q 30,0 50,25 Q 70,50 90,25 T 130,25 T 170,25.

What actually happened?

image

What did you expect to happen?

The green line in the image above, instead the red line is rendered.

How can we reproduce the issue?

drawSvgPath('M 10,25 Q 30,0 50,25 Q 70,50 90,25 T 130,25 T 170,25')

Version

1.17.1

What environment are you running pdf-lib in?

Node

Checklist

Additional Notes

No response