i can draw a rectangle, but when i click on him and want to update the size or move it the whole page crashes.
when i start the update state i get the Error: Uncaught TypeError: Cannot read property 'geometry' of undefined.
And i dont know why
I'm having trouble recreating your issue in a test app, there's a bit too much missing code.
Can you provide a working example of your issue using something like jsbin?
Thanks very much.