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

read sets vp_pen_width even when it is not defined in the SVG #407

Open
abey79 opened this issue Feb 24, 2022 · 1 comment
Open

read sets vp_pen_width even when it is not defined in the SVG #407

abey79 opened this issue Feb 24, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@abey79
Copy link
Owner

abey79 commented Feb 24, 2022

<svg xmlns="http://www.w3.org/2000/svg" width="650" height="650">
    <circle cx="150" cy="150" r="100" stroke="red" fill="green"/>
    <rect x="400" y="200" width="200" height="400" stroke="blue" fill="green" />
    <path d="M250,600 l-200,0 l0,-200 z" stroke="blue" fill="green" />
</svg>
$ vpype read example.svg proplist --layer 1 show
listing 2 properties for layer 1
  svg_fill: (str) green
  vp_pen_width: (float) 1.0
@abey79 abey79 added the bug Something isn't working label Feb 24, 2022
@abey79 abey79 added this to the 1.9.0 milestone Feb 24, 2022
@abey79
Copy link
Owner Author

abey79 commented Feb 25, 2022

The issue here is inconsistent behaviour:

  • heterogenous attributes --> default vpype value (blue, 0.25mm)
  • attributes missing altogether --> default CSS value (black, 1px)

@abey79 abey79 removed this from the 1.9.0 milestone Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant