NREL / floorspace.js

Other
66 stars 35 forks source link

Improvement to image scaling #300

Closed fsudaman closed 6 years ago

fsudaman commented 6 years ago

Image importing is used to overlay drawings on the map, or over the previous floor, so that the floorplan can be traced out. However, currently these images can't be scaled numerically, instead they are resized manually with the cursor. Images also resize from the centre, which means you have to keep adjusting its position as you go.

SketchUp lets you resize an image numerically (ie apply a scaling factor). Since subsequent drawings are usually to the same scale, manually sizing the first image, then somehow applying the same scale (and positioning) to subsequent images, would allow quicker, more consistent drawing of geometry.

shorowit commented 6 years ago

At a minimum, it seems like we should change the behavior so that images resize from the corner being manipulated, not the center.

macumber commented 6 years ago

Also make the numeric scaling factor editable

shorowit commented 6 years ago

Looks good!

fsudaman commented 6 years ago

Thanks guys