Closed goliath-walker closed 2 years ago
Both of these PRs look great. We will be able to do a lot with this on-graph setting panel! Just resolve the merge conflicts here and I'll re-test and approve
Yeah, current solution should be perfectly fine even for two more fields or so, I guess. With much more, we should discuss a possible generalization API for multiple inline inputs, as passing callback + initial value for each field might become ugly. Thanks for approving!
Inline settings allow quick adjustments to viewed graph and its distance.
maxDegree
setting is removed from the settings (made private), but still is persisted each time the range slider is changed.Second commit is a quick-fix for degrading font-size, when distance gets bigger. Previous percent-based settings did not make so much sense, as no proper parent element to rely on.