@remotion/effects 4.0.481 → 4.0.483

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.481",
3
+ "version": "4.0.483",
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.481"
29
+ "remotion": "4.0.483"
30
30
  },
31
31
  "exports": {
32
32
  ".": {
@@ -104,6 +104,11 @@
104
104
  "module": "./dist/esm/fisheye.mjs",
105
105
  "import": "./dist/esm/fisheye.mjs"
106
106
  },
107
+ "./corner-pin": {
108
+ "types": "./dist/corner-pin.d.ts",
109
+ "module": "./dist/esm/corner-pin.mjs",
110
+ "import": "./dist/esm/corner-pin.mjs"
111
+ },
107
112
  "./glow": {
108
113
  "types": "./dist/glow.d.ts",
109
114
  "module": "./dist/esm/glow.mjs",
@@ -159,6 +164,11 @@
159
164
  "module": "./dist/esm/linear-progressive-blur.mjs",
160
165
  "import": "./dist/esm/linear-progressive-blur.mjs"
161
166
  },
167
+ "./light-trail": {
168
+ "types": "./dist/light-trail.d.ts",
169
+ "module": "./dist/esm/light-trail.mjs",
170
+ "import": "./dist/esm/light-trail.mjs"
171
+ },
162
172
  "./dot-grid": {
163
173
  "types": "./dist/dot-grid.d.ts",
164
174
  "module": "./dist/esm/dot-grid.mjs",
@@ -184,6 +194,11 @@
184
194
  "module": "./dist/esm/pattern.mjs",
185
195
  "import": "./dist/esm/pattern.mjs"
186
196
  },
197
+ "./radial-progressive-blur": {
198
+ "types": "./dist/radial-progressive-blur.d.ts",
199
+ "module": "./dist/esm/radial-progressive-blur.mjs",
200
+ "import": "./dist/esm/radial-progressive-blur.mjs"
201
+ },
187
202
  "./rings": {
188
203
  "types": "./dist/rings.d.ts",
189
204
  "module": "./dist/esm/rings.mjs",
@@ -315,6 +330,9 @@
315
330
  "fisheye": [
316
331
  "dist/fisheye.d.ts"
317
332
  ],
333
+ "corner-pin": [
334
+ "dist/corner-pin.d.ts"
335
+ ],
318
336
  "glow": [
319
337
  "dist/glow.d.ts"
320
338
  ],
@@ -348,6 +366,9 @@
348
366
  "linear-progressive-blur": [
349
367
  "dist/linear-progressive-blur.d.ts"
350
368
  ],
369
+ "light-trail": [
370
+ "dist/light-trail.d.ts"
371
+ ],
351
372
  "dot-grid": [
352
373
  "dist/dot-grid.d.ts"
353
374
  ],
@@ -363,6 +384,9 @@
363
384
  "pattern": [
364
385
  "dist/pattern.d.ts"
365
386
  ],
387
+ "radial-progressive-blur": [
388
+ "dist/radial-progressive-blur.d.ts"
389
+ ],
366
390
  "rings": [
367
391
  "dist/rings.d.ts"
368
392
  ],
@@ -418,7 +442,7 @@
418
442
  },
419
443
  "homepage": "https://www.remotion.dev/docs/effects/api",
420
444
  "devDependencies": {
421
- "@remotion/eslint-config-internal": "4.0.481",
445
+ "@remotion/eslint-config-internal": "4.0.483",
422
446
  "@vitest/browser-playwright": "4.0.9",
423
447
  "eslint": "9.19.0",
424
448
  "vitest": "4.0.9",