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

mapshaper-made SVG in Illustrator has paths disappear in ai2html output (when opacity not 100%?) #126

Open
cedricsam opened this issue Dec 10, 2019 · 1 comment

Comments

@cedricsam
Copy link
Contributor

So I had this use case where I generated an SVG in mapshaper using (important thing is the 50% opacity):

...
-style stroke-width=.3 stroke-dasharray='1 2' stroke='#fff' stroke-width=.6 fill='#fff' opacity='.5' target=kashmir
...

And put it in Illustrator, did stuff that didn't modify the individual paths of the "kashmir" group and exported using these ai2html settings:

image_format: svg
inline_svg: true

Problem I had was that the paths in the kashmir group are now gone from the output. And I changed around the order, played with the group's style. It affected scripts 0.85.0 and 0.97.0, but kashmir exported fine in 0.66.4 (which did not have inline_svg though).

Screen Shot 2019-12-10 at 14 28 20

It's only later that I found I had these gray dots next to my paths that meant the opacity was individually tweaked.

Screen Shot 2019-12-10 at 14 26 47

Not sure if it's the opacity or any style on path that caused the problem... but anyway, just reporting it, in case it's something!

@cedricsam
Copy link
Contributor Author

cedricsam commented Dec 10, 2019

When I revert the opacity to default/100% in Illustrator, the paths would be exported fine again. (Did not try to see if it was a mapshaper-specific/SVG import thing and didn't re-export from mapshaper.)

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

No branches or pull requests

1 participant