melatonin_inspector icon indicating copy to clipboard operation
melatonin_inspector copied to clipboard

Improve support for components with affine transforms

Open sudara opened this issue 2 years ago • 0 comments

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()))

sudara avatar Sep 14 '23 23:09 sudara