NREL / floorspace.js

Other
66 stars 35 forks source link

Kyle move selected spaces #406

Open kylem038 opened 2 years ago

kylem038 commented 2 years ago

This completed #376 We've added an icon to each space which will make a modal appear asking the user to adjust the space's upper-left X/Y to a new position. Hitting the Save button moves that space. Generally happy with the implementation although I think I need to determine the upper-left corner more directly? Maybe I can follow how registerSelectEvents works?

Edit: I'm not sure registerSelectEvents directly translates. That uses the drag event to set an origin which everything works off of. Could use some help figuring out the best way to pick an origin for this dialog.