File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ export interface Error {
174174 */
175175export function drawHTML (
176176 html : string ,
177- canvas : HTMLCanvasElement ,
177+ canvas : HTMLCanvasElement | OffscreenCanvas ,
178178 options ?: Options
179179) : Promise < RenderResult > ;
180180
@@ -197,7 +197,7 @@ export function drawHTML(
197197 */
198198export function drawURL (
199199 url : string ,
200- canvas : HTMLCanvasElement ,
200+ canvas : HTMLCanvasElement | OffscreenCanvas ,
201201 options ?: Options
202202) : Promise < RenderResult > ;
203203
@@ -220,6 +220,6 @@ export function drawURL(
220220 */
221221export function drawDocument (
222222 document : Document ,
223- canvas : HTMLCanvasElement ,
223+ canvas : HTMLCanvasElement | OffscreenCanvas ,
224224 options ?: Options
225225) : Promise < RenderResult > ;
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ var util = (function (url) {
4040 isObject ( obj ) &&
4141 Object . prototype . toString
4242 . apply ( obj )
43- . match ( / \[ o b j e c t ( C a n v a s | H T M L C a n v a s E l e m e n t ) \] / i)
43+ . match ( / \[ o b j e c t ( C a n v a s | H T M L C a n v a s E l e m e n t | O f f s c r e e n C a n v a s ) \] / i)
4444 ) ;
4545 } ;
4646
You can’t perform that action at this time.
0 commit comments