Skip to content

Fixed how write handles opacity in SVG output #429

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

Merged
merged 2 commits into from
Mar 27, 2022
Merged

Conversation

abey79
Copy link
Owner

@abey79 abey79 commented Mar 27, 2022

Description

Inkscape does not support alpha in stroke attribute (e.g. stroke="#ff00007f"). The attribute stroke-opacity must be used instead.

Fixes #422

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/)

abey79 added 2 commits March 27, 2022 14:33
Inkscape does not support alpha in `stroke` attribute (e.g. `stroke="#ff00007f"`). The attribute `stroke-opacity` must be used instead.
updated CHANGELOG.md
@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 Mar 27, 2022

Codecov Report

Merging #429 (09a44c5) into master (0fec968) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #429      +/-   ##
==========================================
+ Coverage   93.83%   93.87%   +0.03%     
==========================================
  Files          59       59              
  Lines        5210     5222      +12     
  Branches      766      766              
==========================================
+ Hits         4889     4902      +13     
+ Misses        205      204       -1     
  Partials      116      116              
Impacted Files Coverage Δ
tests/test_files.py 98.83% <100.00%> (+0.05%) ⬆️
vpype/io.py 84.68% <100.00%> (+0.55%) ⬆️
vpype/metadata.py 97.56% <100.00%> (-2.44%) ⬇️

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 0fec968...09a44c5. Read the comment docs.

@abey79 abey79 merged commit 76e2f4e into master Mar 27, 2022
@abey79 abey79 deleted the fix-stroke-opacity-422 branch March 27, 2022 12:49
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.

write_svg() must set stroke-opacity instead of using RGBA
1 participant