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/types/index.d.ts CHANGED
@@ -373,7 +373,7 @@ declare global {
373
373
  source: OffscreenCanvas | HTMLImageElement | HTMLCanvasElement
374
374
  ): void
375
375
  /**
376
- * Creates a offscreen canvas to draw on it
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
- ): OffscreenCanvas
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
- * Creates a offscreen canvas to draw on it
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
- ): OffscreenCanvas
370
+ ): ImageBitmap
371
371
 
372
372
  /** ADVANCED GRAPHICS API */
373
373
  /**