@remotion/media 4.0.442 → 4.0.443

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.
@@ -0,0 +1,14 @@
1
+ export type ObjectFitValue = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
2
+ /**
3
+ * Draws a source image onto a canvas context with the specified object-fit behavior.
4
+ * This implements object-fit at the canvas drawing level, which is more reliable
5
+ * than CSS object-fit on canvas elements.
6
+ */
7
+ export declare const drawWithObjectFit: (ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, source: CanvasImageSource, options: {
8
+ sourceWidth: number;
9
+ sourceHeight: number;
10
+ destWidth: number;
11
+ destHeight: number;
12
+ fit: ObjectFitValue;
13
+ }) => void;
14
+ export declare const parseObjectFit: (value: string | undefined) => ObjectFitValue | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/media",
3
- "version": "4.0.442",
3
+ "version": "4.0.443",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/esm/index.mjs",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "mediabunny": "1.39.2",
26
- "remotion": "4.0.442",
26
+ "remotion": "4.0.443",
27
27
  "zod": "4.3.6"
28
28
  },
29
29
  "peerDependencies": {
@@ -31,7 +31,7 @@
31
31
  "react-dom": ">=16.8.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@remotion/eslint-config-internal": "4.0.442",
34
+ "@remotion/eslint-config-internal": "4.0.443",
35
35
  "@vitest/browser-webdriverio": "4.0.9",
36
36
  "eslint": "9.19.0",
37
37
  "react": "19.2.3",