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

Don't re-render voulme tool bar unnecessarily #4029

Merged
merged 3 commits into from
Apr 23, 2019

Conversation

MichaelBuessemeyer
Copy link
Contributor

@MichaelBuessemeyer MichaelBuessemeyer commented Apr 21, 2019

This PR changes the volume tool bar to only depend on the active tool to avoid unnecessary re-rendering.

URL of deployed dev instance (used for testing):

Steps to test:

  • Open a volume tracing and turn on highlight updates in the React Dev Tools.
  • Use the Trace and Brush Tool. The usage should not trigger a re-render of the volume tool bar (buttons: Move, Trace, Brush and New Cell).

Issues:


@MichaelBuessemeyer MichaelBuessemeyer self-assigned this Apr 21, 2019
@MichaelBuessemeyer MichaelBuessemeyer changed the title voulme tool bar now depends only on the active tool Don't re-render voulme tool bar unnecessarily Apr 21, 2019
Copy link
Member

@daniel-wer daniel-wer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Things can be so easy sometimes, nice fix 😀

@daniel-wer daniel-wer merged commit 94410a9 into master Apr 23, 2019
@daniel-wer daniel-wer deleted the avoid-unnecessary-rerender branch April 23, 2019 11:59
hotzenklotz added a commit that referenced this pull request Apr 25, 2019
* master: (43 commits)
  update screenshots (#4038)
  docker: don't set sbt/ivy cache (#4034)
  Slow down brush size change for small sizes (#4012)
  voulme tool bar now depends only on the active tool (#4029)
  Allow user to adapt GPU memory consumption to allow for better quality (#4015)
  Updates the Docs (#4020)
  hiding pricing and features in iframe (#4019)
  Fix sitemap for publication detail view (#4024)
  Add sitemap.xml (#4006)
  Allow empty trees  (#4010)
  Prefer annotation zoom over dataset zoom (#3992)
  Add details view for publications (#3994)
  remove enzyme test (#3997)
  Tensorflow segmentation (#3461)
  ensure that max zoom step is not exceeded when changing viewport area (#3996)
  allow isosurfaces for hybrid tracings when setting window.allowIsosurfaces (#3998)
  re-fetch buckets if fetching them failed (#3999)
  Only re-compute bounding sphere of skeletons if something changed (#3995)
  Fix dropdown login padding (#3988)
  Persist tree visibility (#3942)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure that volume tool buttons are not redrawn when annotating
2 participants