melatonin_inspector
melatonin_inspector copied to clipboard
Improve support for components with affine transforms
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.
- [ ] Updated bounding box to take into account component's transform
- [ ] Draw dotted bounding box where non-transformed bounds are
- [ ] Show the transform in properties
- [ ] Ensure updating x/y respects existing transform
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()))