Can I change the size of a <path> to fit into a specific px size by just changing the attributes of this path?
I have an SVG with a carrot <path> in it.
<svg height="600" width="400">
<path id="carrot" fill="darkorange" d="M30 13c-1-3-5-4-7-2h-1l1-11h-3l-1
9-4-7-3 1 5 8-8-4-1 2 9 5h-1c-2
2-3 5-2 7l2 2 5-3 1 2-5 3 8 9 5-3
2 2-5 3 12 14 3-2-8-25-5 3-1-2 5-3-3-8"/>
</svg>
Currently the carrot path fits into a square of 50px * 50px. I want to make the carrot path fits into another px size, for example, a square of 30px * 30px.
I found a solution from this question to fix a path to a certain px size. It needs to modify the attributes of the <svg> container. However, my <svg> includes other elements besides this <path>, which I don't want to change. Therefore, I cannot modify the attributes of the <svg>.
I can control "transform" attribute of the <path> to scale it, but it can only scale it by ratio, rather than change the <path> to a certain px.
