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

Holding alt when component is selected shows distance to parent or hovered element #10

Closed sudara closed 1 year ago

sudara commented 3 years ago

This is a direct copy of behavior in Figma. Happy to provide an example file for exploring and matching behavior.

Basically, this changes the behavior of the overlay when alt is held

Spacing to parent

When

  1. a component is selected
  2. hovering over self or parent

then show spacing to parent.

Screenshot 2021-04-20 Pluginz - Figma

Spacing to hovered element

When

  1. a component is selected
  2. hovering over another component

Show spacing to hovered element.

This requires:

Screenshot 2021-04-20 Pluginz - Figma

dikadk commented 1 year ago

I've been making some progress on this one. WIP demo

https://user-images.githubusercontent.com/15266737/207496398-5981dc7c-9d8c-4472-86f3-d2e0ceddddc6.mov

sudara commented 1 year ago

This is such an awesome feature