Line following the cursor and changing size

Hello guys,

I would like to re-create the similar experience in Axure, after clicking on the object, I would like the line to be created which size and direction is being determined by the position of the cursor. I attach the gif which describes without the doubts what I have on my mind.


You can’t dynamically create widgets, like the line, in Axure. What you can do is modify an existing line widget’s angle and length to simulate it. I hope you remember your trigonometry, you’ll need it.