litecanvas 0.79.0 → 0.79.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/dist.dev.js +114 -113
- package/dist/dist.js +35 -34
- package/dist/dist.min.js +1 -1
- package/package.json +1 -1
- package/src/index.js +120 -122
- package/types/index.d.ts +2 -2
- package/types/types.d.ts +2 -2
package/types/index.d.ts
CHANGED
|
@@ -373,7 +373,7 @@ declare global {
|
|
|
373
373
|
source: OffscreenCanvas | HTMLImageElement | HTMLCanvasElement
|
|
374
374
|
): void
|
|
375
375
|
/**
|
|
376
|
-
*
|
|
376
|
+
* Draw in an OffscreenCanvas and returns its image.
|
|
377
377
|
*
|
|
378
378
|
* @param width
|
|
379
379
|
* @param height
|
|
@@ -389,7 +389,7 @@ declare global {
|
|
|
389
389
|
scale?: number
|
|
390
390
|
canvas?: HTMLCanvasElement | OffscreenCanvas
|
|
391
391
|
}
|
|
392
|
-
):
|
|
392
|
+
): ImageBitmap
|
|
393
393
|
|
|
394
394
|
/** ADVANCED GRAPHICS API */
|
|
395
395
|
/**
|
package/types/types.d.ts
CHANGED
|
@@ -351,7 +351,7 @@ type LitecanvasInstance = {
|
|
|
351
351
|
source: OffscreenCanvas | HTMLImageElement | HTMLCanvasElement
|
|
352
352
|
): void
|
|
353
353
|
/**
|
|
354
|
-
*
|
|
354
|
+
* Draw in an OffscreenCanvas and returns its image.
|
|
355
355
|
*
|
|
356
356
|
* @param width
|
|
357
357
|
* @param height
|
|
@@ -367,7 +367,7 @@ type LitecanvasInstance = {
|
|
|
367
367
|
scale?: number
|
|
368
368
|
canvas?: HTMLCanvasElement | OffscreenCanvas
|
|
369
369
|
}
|
|
370
|
-
):
|
|
370
|
+
): ImageBitmap
|
|
371
371
|
|
|
372
372
|
/** ADVANCED GRAPHICS API */
|
|
373
373
|
/**
|