Interface Html2CanvasOptions

Index

Properties

Properties

optional public allowTaint?: boolean

Whether to allow cross-origin images to taint the canvas

optional public background?: string

Canvas background color, if none is specified in DOM. Set undefined for transparent

optional public height?: number

Define the heigt of the canvas in pixels. If null, renders with full height of the window.

optional public letterRendering?: boolean

Whether to render each letter seperately. Necessary if letter-spacing is used.

optional public logging?: boolean

Whether to log events in the console.

optional public proxy?: string

Url to the proxy which is to be used for loading cross-origin images. If left empty, cross-origin images won't be loaded.

optional public taintTest?: boolean

Whether to test each image if it taints the canvas before drawing them

optional public timeout?: number

Timeout for loading images, in milliseconds. Setting it to 0 will result in no timeout.

optional public useCORS?: boolean

Whether to attempt to load cross-origin images as CORS served, before reverting back to proxy.

optional public width?: number

Define the width of the canvas in pixels. If null, renders with full width of the window.