Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

saveSvgAsPng without css styleSheets, modifyCss dosen`t work, who can tell me how to use modifyCss #233

Closed
zhfneu opened this issue Jan 3, 2020 · 3 comments · Fixed by #238

Comments

@zhfneu
Copy link

zhfneu commented Jan 3, 2020

No description provided.

@zhfneu
Copy link
Author

zhfneu commented Jan 3, 2020

I want to export d3 graph with saveSvgasPng,but without css style

@peteruithoven
Copy link
Contributor

@zhfneu any change you can improve the spelling of your title? Maybe shorten it a bit and put some of it in the message?

@peteruithoven
Copy link
Contributor

Looks like functions like modifyCss, selectorRemap, modifyStyle are only called for css rules for which the elements can be found in the svg.

if (query(el, rule.selectorText)) css.push(generateCss(rule.selectorText, rule.style.cssText));

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants