@viji-dev/core 0.15.0 → 0.16.0

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.
@@ -229,7 +229,12 @@ declare global {
229
229
  interface CaptureFrameOptions {
230
230
  /** Output format: `'blob'` for an encoded image, `'bitmap'` for a GPU-friendly `ImageBitmap`. Default: `'blob'`. */
231
231
  format?: 'blob' | 'bitmap';
232
- /** MIME type for `'blob'` output (ignored for `'bitmap'`). Examples: `'image/png'`, `'image/jpeg'`, `'image/webp'`. */
232
+ /**
233
+ * MIME type for `'blob'` output (ignored for `'bitmap'`). Examples:
234
+ * `'image/png'`, `'image/jpeg'`, `'image/webp'`. Default: `'image/png'`
235
+ * (lossless, preserves alpha). Pass a lossy type for smaller files when
236
+ * transparency does not matter.
237
+ */
233
238
  type?: string;
234
239
  /**
235
240
  * Encoding quality for lossy `'blob'` formats (`'image/jpeg'`, `'image/webp'`),
@@ -1345,7 +1350,7 @@ declare global {
1345
1350
  isEnding: boolean;
1346
1351
  }
1347
1352
 
1348
- const VERSION = "0.15.0";
1353
+ const VERSION = "0.16.0";
1349
1354
 
1350
1355
  /**
1351
1356
  * Real-time video API: drawable frame, dimensions, and the source-side
@@ -229,7 +229,12 @@ declare global {
229
229
  interface CaptureFrameOptions {
230
230
  /** Output format: `'blob'` for an encoded image, `'bitmap'` for a GPU-friendly `ImageBitmap`. Default: `'blob'`. */
231
231
  format?: 'blob' | 'bitmap';
232
- /** MIME type for `'blob'` output (ignored for `'bitmap'`). Examples: `'image/png'`, `'image/jpeg'`, `'image/webp'`. */
232
+ /**
233
+ * MIME type for `'blob'` output (ignored for `'bitmap'`). Examples:
234
+ * `'image/png'`, `'image/jpeg'`, `'image/webp'`. Default: `'image/png'`
235
+ * (lossless, preserves alpha). Pass a lossy type for smaller files when
236
+ * transparency does not matter.
237
+ */
233
238
  type?: string;
234
239
  /**
235
240
  * Encoding quality for lossy `'blob'` formats (`'image/jpeg'`, `'image/webp'`),
@@ -1334,7 +1339,7 @@ declare global {
1334
1339
  isEnding: boolean;
1335
1340
  }
1336
1341
 
1337
- const VERSION = "0.15.0";
1342
+ const VERSION = "0.16.0";
1338
1343
 
1339
1344
  /**
1340
1345
  * Real-time video API: drawable frame, dimensions, and the source-side