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

Fixed inconsistent default color in vp.write_svg() #376

Merged
merged 1 commit into from
Jan 16, 2022

Conversation

abey79
Copy link
Owner

@abey79 abey79 commented Jan 16, 2022

Description

The default color (from the default color scheme) for a layer would depend on whether previous layer would have their color specified on not. This is an inconsistent behaviour in itself, and it is inconsistent with the viewer's behaviour.

Also, the default color scheme as been moved to vpype/metadata.py.

Checklist

  • feature/fix implemented
  • code formatting ok (black and isort)
  • mypy vpype vpype_cli tests 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 doc
    • RTD doc updated and building with no error (make clean && make html in docs/)

The default color (from the default color scheme) for a layer would depend on whether previous layer would have their color specified on not. This is an inconsistent behaviour in itself, and it is inconsistent with the viewer's behaviour.

Also, the default color scheme as been moved to vpype/metadata.py.
@abey79 abey79 force-pushed the fix-write-default-colour branch from 6e6d0f1 to 6ece130 Compare January 16, 2022 11:12
@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

@codecov
Copy link

codecov bot commented Jan 16, 2022

Codecov Report

Merging #376 (6ece130) into master (f49c658) will not change coverage.
The diff coverage is 60.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #376   +/-   ##
=======================================
  Coverage   92.55%   92.55%           
=======================================
  Files          53       53           
  Lines        4457     4457           
  Branches      621      621           
=======================================
  Hits         4125     4125           
  Misses        222      222           
  Partials      110      110           
Impacted Files Coverage Δ
vpype/io.py 78.32% <33.33%> (-0.29%) ⬇️
vpype/metadata.py 100.00% <100.00%> (+2.94%) ⬆️
vpype_viewer/engine.py 96.47% <100.00%> (-0.02%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f49c658...6ece130. Read the comment docs.

@abey79 abey79 merged commit 13fe6a5 into master Jan 16, 2022
@abey79 abey79 deleted the fix-write-default-colour branch January 16, 2022 13:36
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.

1 participant