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

Refactor bucket counting #3750

Merged
merged 3 commits into from
Feb 11, 2019
Merged

Conversation

philippotto
Copy link
Member

Instead of calculating how many buckets are needed for a specific mag and zoom value, this PR changes the approach to "just invoke" the right bucket pickers and count the returned bucket set. This PR refactors the bucket pickers so that they only act on bucket addresses as entities (as opposed to actual bucket instances). As a result, the bucket counting for the arbitrary modes is based on the actual bucket picker strategies.

URL of deployed dev instance (used for testing):

  • https://___.webknossos.xyz

Steps to test:

  • abc

Issues:


  • Ready for review

@philippotto philippotto self-assigned this Feb 11, 2019
@philippotto philippotto merged commit 887afb6 into non-quadratic-viewports Feb 11, 2019
philippotto added a commit that referenced this pull request Feb 18, 2019
* allow viewports to be non-quadratic (3D viewport still a bit broken; bucketsPerDim is still quadratic)

* zoom into viewports so that data cannot be cropped

* fix interactions with 3D viewport

* make arbitrary viewport square to avoid scaling problems

* fix node selection and other rectangular-viewport-related bugs

* fix panning

* iterate on brush

* fix brush preview

* clean up

* remove viewport width from info tab view and clean up info tab UI

* remove unused constants

* use larger viewport area to render more data instead of upscaling data (breaks fallback rendering and mouse interactions)

* adapt mouse interactions to true-viewport-scaling; fix fallback rendering; band-aid fix arbitrary viewport zoomstep selection

* clean up

* disable some CI checks

* clean up according to PR feedback

* update changelog

* clean up

* fix scalebars and implement tooltips for complete viewport extent

* Refactor bucket counting (#3750)

* use bucket picker for counting (orthogonal mode only)

* adapt arbitrary bucket pickers to new bucket counting approach

* add types for priority queue

* remove obsolete comment

* fix import

* revert not-on-master.sh

* remove unnecessary import

* fix tests and refactor to remove cyclic dependencies in accessors

* extract constant

* update screenshots

* adapt screenshot view value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant