rough icon indicating copy to clipboard operation
rough copied to clipboard

Changing shape properties dynamically

Open GreenFootballs opened this issue 4 years ago • 2 comments

I'm probably missing something, but is there a way to change the properties of a shape dynamically, for example the fill color, without redrawing the entire randomly generated object?

GreenFootballs avatar May 22 '21 00:05 GreenFootballs

I'm probably missing something, but is there a way to change the properties of a shape dynamically, for example the fill color, without redrawing the entire randomly generated object?

Any update on this? I'm also trying to draw a rectangle and end it on mouseup but can't seem to find a good example out there.

https://github.com/rough-stuff/rough/issues/184

mirabledictu avatar Jun 28 '21 12:06 mirabledictu

No solutions yet. I'm also trying to create an element on a mousedown event, then use mousemove to change the dimensions dynamically, but I'm having no luck and the docs don't help. It must be possible - check out Excalidraw, that app does exactly this when you create objects.

GreenFootballs avatar Jun 30 '21 21:06 GreenFootballs