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

front: enhance viewport computation function #10268

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

Conversation

sim51
Copy link
Contributor

@sim51 sim51 commented Jan 7, 2025

Adding optional parameters on function computeBBoxViewport to take care of the map height/width

Related to #10240 & #10144

NOTE: I also increased the padding to be bigger than the button on the map (it avoid to be hidden by them).

@sim51 sim51 requested a review from a team as a code owner January 7, 2025 13:54
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Jan 7, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 7, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.74%. Comparing base (18e4c0d) to head (a0b01ce).
Report is 25 commits behind head on dev.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #10268      +/-   ##
==========================================
+ Coverage   81.45%   81.74%   +0.29%     
==========================================
  Files        1058      779     -279     
  Lines      104282    76299   -27983     
  Branches      722      722              
==========================================
- Hits        84938    62373   -22565     
+ Misses      19303    13885    -5418     
  Partials       41       41              
Flag Coverage Δ
editoast ?
front 89.24% <100.00%> (+0.05%) ⬆️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.50% <ø> (ø)
tests 87.05% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@emersion emersion changed the title [front] enhance viewport computation function front: enhance viewport computation function Jan 7, 2025
Adding optional parameters on function `computeBBoxViewport` to take
care of the map height/width

Related to #10240 & #10144

Signed-off-by: Benoit Simard <[email protected]>
Copy link
Contributor

@theocrsb theocrsb left a comment

Choose a reason for hiding this comment

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

LGTM and tested

Copy link
Contributor

@SarahBellaha SarahBellaha left a comment

Choose a reason for hiding this comment

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

LGTM :)

Copy link
Contributor

@SharglutDev SharglutDev left a comment

Choose a reason for hiding this comment

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

Lgtm and tested !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants