0

I am wondering if it would be possible to resize a path using values inputted by the user after he draws the path. Setting the width and height for example.

I am currently using the transform attribute within a JS function to do that but while the path gets resized, the handles of the path stay in the original position which makes the thing a total mess.

Any ideas?

methodofaction
  • 70,885
  • 21
  • 151
  • 164
nicholaswmin
  • 21,686
  • 15
  • 91
  • 167

1 Answers1

1

Assuming the path is is selected:

svgCanvas.changeSelectedAttribute("transform", "scale(0.5, 1)");

methodofaction
  • 70,885
  • 21
  • 151
  • 164