@remotion/effects 4.0.482 → 4.0.484

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,44 @@
1
+ export type RadialProgressiveBlurUvCoordinate = readonly [number, number];
2
+ export type RadialProgressiveBlurParams = {
3
+ /**
4
+ * UV coordinate where `startBlur` is reached. Defaults to `[0.5, 0.5]`.
5
+ */
6
+ readonly center?: RadialProgressiveBlurUvCoordinate;
7
+ /**
8
+ * Full ellipse width in UV coordinates. Defaults to `1`.
9
+ */
10
+ readonly width?: number;
11
+ /**
12
+ * Full ellipse height in UV coordinates. Defaults to `1`.
13
+ */
14
+ readonly height?: number;
15
+ /**
16
+ * Ellipse rotation in degrees. Defaults to `0`.
17
+ */
18
+ readonly rotation?: number;
19
+ /**
20
+ * Normalized ellipse progress where `startBlur` is reached. `0` is the
21
+ * center and `1` is the ellipse line. Defaults to `0`.
22
+ */
23
+ readonly start?: number;
24
+ /**
25
+ * Blur radius in pixels at `start`. Defaults to `0`.
26
+ */
27
+ readonly startBlur?: number;
28
+ /**
29
+ * Blur radius in pixels at the outer ellipse. Defaults to `50`.
30
+ */
31
+ readonly endBlur?: number;
32
+ };
33
+ export type RadialProgressiveBlurResolved = {
34
+ readonly center: RadialProgressiveBlurUvCoordinate;
35
+ readonly width: number;
36
+ readonly height: number;
37
+ readonly rotation: number;
38
+ readonly start: number;
39
+ readonly startBlur: number;
40
+ readonly endBlur: number;
41
+ };
42
+ export declare const radialProgressiveBlur: (params?: (RadialProgressiveBlurParams & {
43
+ readonly disabled?: boolean | undefined;
44
+ }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -0,0 +1,35 @@
1
+ import type { RadialProgressiveBlurResolved } from './index.js';
2
+ type RadialProgressiveBlurUniforms = {
3
+ readonly uSource: WebGLUniformLocation | null;
4
+ readonly uTexelSize: WebGLUniformLocation | null;
5
+ readonly uCenter: WebGLUniformLocation | null;
6
+ readonly uWidth: WebGLUniformLocation | null;
7
+ readonly uHeight: WebGLUniformLocation | null;
8
+ readonly uRotation: WebGLUniformLocation | null;
9
+ readonly uStart: WebGLUniformLocation | null;
10
+ readonly uStartBlur: WebGLUniformLocation | null;
11
+ readonly uEndBlur: WebGLUniformLocation | null;
12
+ };
13
+ export type RadialProgressiveBlurState = {
14
+ readonly gl: WebGL2RenderingContext;
15
+ readonly programHorizontal: WebGLProgram;
16
+ readonly programVertical: WebGLProgram;
17
+ readonly vao: WebGLVertexArrayObject;
18
+ readonly vbo: WebGLBuffer;
19
+ readonly textureSource: WebGLTexture;
20
+ readonly textureIntermediate: WebGLTexture;
21
+ readonly framebuffer: WebGLFramebuffer;
22
+ readonly horizontal: RadialProgressiveBlurUniforms;
23
+ readonly vertical: RadialProgressiveBlurUniforms;
24
+ };
25
+ export declare const setupRadialProgressiveBlur: (target: HTMLCanvasElement) => RadialProgressiveBlurState;
26
+ export declare const cleanupRadialProgressiveBlur: (state: RadialProgressiveBlurState) => void;
27
+ export declare const applyRadialProgressiveBlur: ({ state, source, width, height, params, flipSourceY, }: {
28
+ readonly state: RadialProgressiveBlurState;
29
+ readonly source: CanvasImageSource;
30
+ readonly width: number;
31
+ readonly height: number;
32
+ readonly params: RadialProgressiveBlurResolved;
33
+ readonly flipSourceY: boolean;
34
+ }) => void;
35
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const RADIAL_PROGRESSIVE_BLUR_VS = "#version 300 es\nlayout(location = 0) in vec2 aPos;\nlayout(location = 1) in vec2 aUv;\nout vec2 vUv;\nvoid main() {\n\tvUv = aUv;\n\tgl_Position = vec4(aPos, 0.0, 1.0);\n}\n";
2
+ export declare const buildRadialProgressiveBlurFs: (direction: "horizontal" | "vertical") => string;
@@ -0,0 +1 @@
1
+ export { radialProgressiveBlur, type RadialProgressiveBlurParams, type RadialProgressiveBlurUvCoordinate, } from './radial-progressive-blur/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/effects",
3
- "version": "4.0.482",
3
+ "version": "4.0.484",
4
4
  "description": "Effects that can be applied to Remotion-based canvas components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "url": "https://github.com/remotion-dev/remotion/issues"
27
27
  },
28
28
  "dependencies": {
29
- "remotion": "4.0.482"
29
+ "remotion": "4.0.484"
30
30
  },
31
31
  "exports": {
32
32
  ".": {
@@ -159,6 +159,16 @@
159
159
  "module": "./dist/esm/lines.mjs",
160
160
  "import": "./dist/esm/lines.mjs"
161
161
  },
162
+ "./linear-gradient": {
163
+ "types": "./dist/linear-gradient.d.ts",
164
+ "module": "./dist/esm/linear-gradient.mjs",
165
+ "import": "./dist/esm/linear-gradient.mjs"
166
+ },
167
+ "./linear-gradient-tint": {
168
+ "types": "./dist/linear-gradient-tint.d.ts",
169
+ "module": "./dist/esm/linear-gradient-tint.mjs",
170
+ "import": "./dist/esm/linear-gradient-tint.mjs"
171
+ },
162
172
  "./linear-progressive-blur": {
163
173
  "types": "./dist/linear-progressive-blur.d.ts",
164
174
  "module": "./dist/esm/linear-progressive-blur.mjs",
@@ -194,6 +204,11 @@
194
204
  "module": "./dist/esm/pattern.mjs",
195
205
  "import": "./dist/esm/pattern.mjs"
196
206
  },
207
+ "./radial-progressive-blur": {
208
+ "types": "./dist/radial-progressive-blur.d.ts",
209
+ "module": "./dist/esm/radial-progressive-blur.mjs",
210
+ "import": "./dist/esm/radial-progressive-blur.mjs"
211
+ },
197
212
  "./rings": {
198
213
  "types": "./dist/rings.d.ts",
199
214
  "module": "./dist/esm/rings.mjs",
@@ -358,6 +373,12 @@
358
373
  "lines": [
359
374
  "dist/lines.d.ts"
360
375
  ],
376
+ "linear-gradient": [
377
+ "dist/linear-gradient.d.ts"
378
+ ],
379
+ "linear-gradient-tint": [
380
+ "dist/linear-gradient-tint.d.ts"
381
+ ],
361
382
  "linear-progressive-blur": [
362
383
  "dist/linear-progressive-blur.d.ts"
363
384
  ],
@@ -379,6 +400,9 @@
379
400
  "pattern": [
380
401
  "dist/pattern.d.ts"
381
402
  ],
403
+ "radial-progressive-blur": [
404
+ "dist/radial-progressive-blur.d.ts"
405
+ ],
382
406
  "rings": [
383
407
  "dist/rings.d.ts"
384
408
  ],
@@ -434,7 +458,7 @@
434
458
  },
435
459
  "homepage": "https://www.remotion.dev/docs/effects/api",
436
460
  "devDependencies": {
437
- "@remotion/eslint-config-internal": "4.0.482",
461
+ "@remotion/eslint-config-internal": "4.0.484",
438
462
  "@vitest/browser-playwright": "4.0.9",
439
463
  "eslint": "9.19.0",
440
464
  "vitest": "4.0.9",