fruitflybrain / neu3d

A javascript 3D visualization engine for neural data in SWC format
7 stars 8 forks source link

Dividers in settings #38

Closed yiyin closed 2 years ago

yiyin commented 2 years ago

It might be useful to put some dividers (instead of folders which needs to unfold them to see them) to group, for example, opacity settings for highlight mode, opacity settings for pinned mode, size for radius, size for soma radius, size for synapse. This can make the settings for opacity and size a bit more understandable.

TK-21st commented 2 years ago

What do you mean by divider? I'm not sure what you have in mind.

yiyin commented 2 years ago

Like this:

image
TK-21st commented 2 years ago

Ah I see. This may require some custom code, I dont think dat.gui supports this kind of visual organization natively.

yiyin commented 2 years ago

Just created them as folders and they are by default are open when the size folder is opened. see 1097c84.

TK-21st commented 2 years ago

Just created them as folders and they are by default are open when the size folder is opened. see 1097c84.

Great! I just checked it out and it looks good. I was thinking if you want to add those labels as part of the panel and not as folders that'd be a bit more work.

On a side note, I find the label "Change" a bit confusing. Maybe change it to "Rerender on Change"? It may not fit on the text box but perhaps something similar. image

TK-21st commented 2 years ago

Actually I see that the full name is "Change existing?" I think the issue is with tooltip not being available for dat.gui.

I've added a tooltip for this entry, you can do it basically by

f0.add(this.settings, 'neuron3dApp').name("Change existing?").title("Change existing neurons' rendering mode?");

where the .title adds the tooltip.

I've added a few more to clarify some confusing items but feel free to add more if deemed necessary.

TK-21st commented 2 years ago

closed by 1097c84988b94047eac05f19db7335d4e59a5a30