File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 8888 * @return {Promise } - A promise that is fulfilled with a Uint8Array containing RGBA pixel data.
8989 * */
9090 function toPixelData ( node , options ) {
91- return draw ( node , options || { } )
91+ return draw ( node , options || { } , loadfonts || true )
9292 . then ( function ( canvas ) {
9393 return canvas . getContext ( '2d' ) . getImageData (
9494 0 ,
118118 * */
119119 function toJpeg ( node , options ) {
120120 options = options || { } ;
121- return draw ( node , options )
121+ return draw ( node , options , loadfonts || true )
122122 . then ( function ( canvas ) {
123123 return canvas . toDataURL ( 'image/jpeg' , options . quality || 1.0 ) ;
124124 } ) ;
130130 * @return {Promise } - A promise that is fulfilled with a PNG image blob
131131 * */
132132 function toBlob ( node , options ) {
133- return draw ( node , options || { } )
133+ return draw ( node , options || { } , loadfonts || true )
134134 . then ( util . canvasToBlob ) ;
135135 }
136136
You can’t perform that action at this time.
0 commit comments