Skip to content

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

@ralfstx

Description

@ralfstx

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

  • My report includes a Short, Self Contained, Correct (Compilable) Example.
  • I have attached all PDFs, images, and other files needed to run my SSCCE.

Additional Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions