Html2canvas have backgroundColor option which is sets background color of captured image. Default value is "#FFFFFF" so if you capture image on web, there will be a white border on bottom. We need to add option to set html2canvas background. This pr does this.
I also set default value to null which is corresponds "transparent" on html2canvas side. This matches the native behavior better(iOS, Android).
Html2canvas have backgroundColor option which is sets background color of captured image. Default value is "#FFFFFF" so if you capture image on web, there will be a white border on bottom. We need to add option to set html2canvas background. This pr does this.
I also set default value to null which is corresponds "transparent" on html2canvas side. This matches the native behavior better(iOS, Android).
Reproduce:
Before: After
{ backgroundColor: "red" }
: