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

Merged
merged 1 commit into from
Jan 9, 2025
Merged

front: enhance viewport computation function #10268

merged 1 commit into from
Jan 9, 2025

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.52%. Comparing base (18e4c0d) to head (024bcb2).
Report is 31 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.52%   +0.07%     
==========================================
  Files        1058     1059       +1     
  Lines      104282   104508     +226     
  Branches      722      722              
==========================================
+ Hits        84938    85200     +262     
+ Misses      19303    19267      -36     
  Partials       41       41              
Flag Coverage Δ
editoast 73.69% <ø> (+0.06%) ⬆️
front 89.25% <100.00%> (+0.06%) ⬆️
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
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 !

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]>
@sim51 sim51 added this pull request to the merge queue Jan 9, 2025
Merged via the queue into dev with commit 0e377b3 Jan 9, 2025
27 checks passed
@sim51 sim51 deleted the bsi/issue-10240 branch January 9, 2025 09:12
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