maqetta/maqetta — Issue #1183: Shift key for constrained resizing
Author: JonFerraiolo
Created: 2011-11-08 23:48:22+00:00
State: open
Labels: Priority Med, Visual Editor

@peller

I implemented shift-key constrained resizing for the new shapes widgets (to be checked in soon I hope), but we don't constrained resizing for regular-old (non-shape) widgets such as Calendar. I expect this is a 1-2 days of work. Poking around the code, I'm pretty sure the relevant piece of code is the onMove() function in Focus.js, but from what I remember from implementing shift-key logic for the shapes is that it's a little tricky. Right now we move the nob and resize the widget by the same deltas, but for shift-key constrained resizing I don't think this flies. Also, for SVG files, it might be necessary to pierce into the SVG sub-documents object tree to determine the instrinsic width/height.

We have always needed constrained resizing, but with the clipart widgets, it becomes more important because often users will want the clipart widgets to preserve aspect ratio when resizing them.

I'll check-in the shapes logic first, and then address this issue.