Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3D hierarchy view #21

Open
codeincontext opened this issue Mar 26, 2014 · 2 comments
Open

3D hierarchy view #21

codeincontext opened this issue Mar 26, 2014 · 2 comments

Comments

@codeincontext
Copy link

A few of the similar commercial tools allow you to rotate the visual representation around to show depth; helping you understand how your views overlap. I think this could be a handy feature for this project too, and would help give the impression that it's a viable alternative.

I haven't looked into your codebase extensively, but I was thinking of giving this a shot (with CSS) if you thought it was a good idea.

Let me know

-a

@damian-kolakowski
Copy link
Owner

hi @skattyadz, it sounds great to me

the main problem is the way how HV renders views. It fetches whole screen preview as PNG file and than set is as a background of root node. If we go for 'reveal', every node needs to have background set so if we change z-position it will render nicely.

let's try with simple CSS transforms to perform 'reveal' effect.

best

@codeincontext
Copy link
Author

Ok, so I think there are a few options here:

  1. Ignore the background of each layer and just use solid colour rects (so you can see the hierarchy). Probably the best starting point

  2. Work out which frames are showing, and split the screenshot across them. I immediately see all kinds of issues with this approach though

  3. Capture the background of each frame in Objective C. Don't know how possible this is. It sounds intensive, so would need to be the result of a toggle or button press

  4. Do a hack of (3) by individually hiding each view from front to back and taking a new screenshot every time. This sounds unreliable and slow, but you never know; could be all you need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants