File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 88
88
* @return {Promise } - A promise that is fulfilled with a Uint8Array containing RGBA pixel data.
89
89
* */
90
90
function toPixelData ( node , options ) {
91
- return draw ( node , options || { } )
91
+ return draw ( node , options || { } , loadfonts || true )
92
92
. then ( function ( canvas ) {
93
93
return canvas . getContext ( '2d' ) . getImageData (
94
94
0 ,
118
118
* */
119
119
function toJpeg ( node , options ) {
120
120
options = options || { } ;
121
- return draw ( node , options )
121
+ return draw ( node , options , loadfonts || true )
122
122
. then ( function ( canvas ) {
123
123
return canvas . toDataURL ( 'image/jpeg' , options . quality || 1.0 ) ;
124
124
} ) ;
130
130
* @return {Promise } - A promise that is fulfilled with a PNG image blob
131
131
* */
132
132
function toBlob ( node , options ) {
133
- return draw ( node , options || { } )
133
+ return draw ( node , options || { } , loadfonts || true )
134
134
. then ( util . canvasToBlob ) ;
135
135
}
136
136
You can’t perform that action at this time.
0 commit comments