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

Fix issue where fit to bounds would be lost when changing document #564

Merged
merged 3 commits into from
Oct 16, 2022

Conversation

abey79
Copy link
Owner

@abey79 abey79 commented Oct 16, 2022

Description

This issue doesn't affect vpype per se as documents are never changed during the lifetime of a viewer, but it does affect vsketch in cases where sketches change their own page size (e.g. the quick_draw example.

Fixes #458

Checklist

  • feature/fix implemented
  • code formatting ok (black and isort)
  • mypy returns no error
  • tests added/updated and pytest succeeds
  • documentation added/updated
    • command docstring and option/argument help
    • README.md updated (Feature Overview)
    • CHANGELOG.md updated
    • added new command to reference.rst
    • RTD doc updated and building with no error (make clean && make html in docs/)

This issue doesn't affect vpype per se as documents are never changed during the lifetime of a viewer, but it does affect vsketch in cases where sketches change their own page size (e.g. the `quick_draw` example.

Fixes #458
@codecov
Copy link

codecov bot commented Oct 16, 2022

Codecov Report

Base: 94.73% // Head: 94.73% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (74099ee) compared to base (5a3b403).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #564   +/-   ##
=======================================
  Coverage   94.73%   94.73%           
=======================================
  Files          62       62           
  Lines        5681     5683    +2     
  Branches      767      768    +1     
=======================================
+ Hits         5382     5384    +2     
  Misses        182      182           
  Partials      117      117           
Impacted Files Coverage Δ
vpype_viewer/engine.py 96.78% <100.00%> (+0.02%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@abey79 abey79 merged commit fe70ed4 into master Oct 16, 2022
@abey79 abey79 deleted the fix-keep-fit-on-doc-change-458 branch October 16, 2022 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

viewer: the document is not refitted when changed with "fit to view" activated
1 participant