-
Notifications
You must be signed in to change notification settings - Fork 41
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
Fixed zoom for view with axes #976
Conversation
@@ -403,7 +403,7 @@ export const Axes = MinimalTemplate.bind({}); | |||
Axes.args = { | |||
id: "axes", | |||
layers: [axes, meshMapLayer, north_arrow_layer], | |||
bounds: [432150, 6475800, 439400, 6481500], | |||
bounds: [432205, 6475078, 437720, 6481113], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This bound should be same as axis bounds.
Ideally, project bounds should be calculated based on data bounds of all the layers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have an issue for automatically calculating the bounds (#924), but until we have that in place, then I think using the bounds itself to set the initial viewport is the best solution.
Codecov Report
@@ Coverage Diff @@
## master #976 +/- ##
==========================================
- Coverage 42.90% 42.87% -0.04%
==========================================
Files 116 116
Lines 3801 3799 -2
Branches 716 716
==========================================
- Hits 1631 1629 -2
Misses 2147 2147
Partials 23 23
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
What is the problem we are solving with this? That the initial viewport is too small when the axes are shown? We have an issue for automatically calculating the bounds (#924), but until we have that in place, then I think using the bounds itself to set the initial viewport is the best solution. |
@@ -403,7 +403,7 @@ export const Axes = MinimalTemplate.bind({}); | |||
Axes.args = { | |||
id: "axes", | |||
layers: [axes, meshMapLayer, north_arrow_layer], | |||
bounds: [432150, 6475800, 439400, 6481500], | |||
bounds: [432205, 6475078, 437720, 6481113], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have an issue for automatically calculating the bounds (#924), but until we have that in place, then I think using the bounds itself to set the initial viewport is the best solution.
Discarding PR |
No description provided.