L
L
lexstile2020-10-12 23:30:33
SVG
lexstile, 2020-10-12 23:30:33

Is it possible to convert path to polyline?

There is SVG:

<svg width="14" height="12" viewBox="0 0 14 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M2 5.75L5.75 10.75L12 2" stroke="#1E2321" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

I need to get from the current SVG - an SVG with a polyline, something like this: link
But it's not quite the same and not quite the same.
Began to guess the points, but the campaign is unrealistic.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2020-10-13
@lexstile

You don’t need to guess anything, if you use the same one viewBox, then the coordinates will be the same:

<svg width="14" height="12" viewBox="0 0 14 12" fill="none" xmlns="http://www.w3.org/2000/svg">
  <polyline points="2,5.75 5.75,10.75 12,2" fill="none" stroke="#1E2321" />
</svg>
viewBoxis the size of the coordinate grid, and the coordinates must obviously correspond to it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question