Skip to content

Conversation

@kakugiki
Copy link
Contributor

@kakugiki kakugiki commented Feb 6, 2020

var containerCSS = {
...
backgroundColor: this.opt.backgroundColor || 'transparent'
};

white backgroundColor of containerCss overwrites the background of html2canvas. changed to transparent and also add an option to set backgroundColor from opt of jsPDF.

var containerCSS = { ... backgroundColor: this.opt.backgroundColor || 'transparent' }; white backgroundColor of containerCss overwrites the background of html2canvas. changed to transparent and also add an option to set backgroundColor from opt of jsPDF.
@kakugiki kakugiki requested a review from Uzlopak February 6, 2020 02:30
@Uzlopak
Copy link
Collaborator

Uzlopak commented Feb 6, 2020

Would be not cleaner to set the backgroundColor in the the opt object at about line 156 and set it default to transparent and then reference only the this.opt.backgroundColor instead of "white"?

@kakugiki
Copy link
Contributor Author

kakugiki commented Feb 6, 2020

That makes sense. Just updated. Thanks!

@kakugiki kakugiki changed the title containerCss backgroundColor: 'transparent' (original request #2517) containerCss backgroundColor: 'transparent' Feb 6, 2020
@Uzlopak Uzlopak merged commit 53995c8 into parallax:master Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants