sudara / melatonin_inspector

A JUCE module that gives you the ability to inspect and visually edit (non-destructively) components in your UI.
MIT License
145 stars 17 forks source link

Improve support for components with affine transforms #88

Open sudara opened 1 year ago

sudara commented 1 year ago

Right now, we ignore them.

The overlay bounding box doesn't take them into account.

And worse, the model's valueChanged method actually strips the transform when setting left/top values, to prevent some endless feedback of values changing.

For the latter, I think we need to display if it's isIdentity, the translation x/y, if it's translation only, the scale factor as determined by std::sqrt (std::abs (AffineTransform::getDeterminant()))