Fix backgroundColor option documentation (Fix #1164)

This commit is contained in:
MoyuScript
2017-12-12 21:23:53 +08:00
parent 439d7c40b4
commit 9fdba127bf
4 changed files with 5 additions and 4 deletions

View File

@ -353,8 +353,8 @@ export default class Renderer {
render(stack: StackingContext): Promise<*> {
if (this.options.backgroundColor) {
this.target.rectangle(
0,
0,
this.options.x,
this.options.y,
this.options.width,
this.options.height,
this.options.backgroundColor

View File

@ -64,6 +64,7 @@ const html2canvas = (element: HTMLElement, conf: ?Options): Promise<*> => {
const defaultOptions = {
async: true,
allowTaint: false,
backgroundColor: '#ffffff',
imageTimeout: 15000,
logging: true,
proxy: null,