@remotion/effects 4.0.536 → 4.0.538

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.
Files changed (113) hide show
  1. package/THIRD_PARTY_LICENSES.md +30 -0
  2. package/dist/barrel-distortion/index.d.ts +1 -1
  3. package/dist/bevel-alpha/index.d.ts +13 -0
  4. package/dist/bevel-alpha/shaders.d.ts +3 -0
  5. package/dist/bevel-alpha.d.ts +1 -0
  6. package/dist/blur/index.d.ts +1 -1
  7. package/dist/brightness.d.ts +1 -1
  8. package/dist/burlap.d.ts +1 -1
  9. package/dist/checkerboard.d.ts +17 -17
  10. package/dist/chromatic-aberration/index.d.ts +1 -1
  11. package/dist/color-correction.d.ts +1 -1
  12. package/dist/color-key.d.ts +9 -9
  13. package/dist/color-utils.d.ts +8 -8
  14. package/dist/contour-lines.d.ts +23 -23
  15. package/dist/contrast.d.ts +1 -1
  16. package/dist/corner-pin/index.d.ts +1 -1
  17. package/dist/cylinder/index.d.ts +20 -0
  18. package/dist/cylinder/shader.d.ts +1 -0
  19. package/dist/cylinder.d.ts +1 -0
  20. package/dist/dot-grid.d.ts +7 -7
  21. package/dist/drop-shadow/index.d.ts +1 -1
  22. package/dist/duotone.d.ts +7 -7
  23. package/dist/emboss.d.ts +15 -15
  24. package/dist/esm/bevel-alpha.mjs +474 -0
  25. package/dist/esm/cylinder.mjs +390 -0
  26. package/dist/esm/fractal-noise.mjs +688 -0
  27. package/dist/esm/lens-blur.mjs +550 -0
  28. package/dist/esm/long-shadows.mjs +410 -0
  29. package/dist/esm/page-turn.mjs +405 -0
  30. package/dist/esm/sphere.mjs +376 -0
  31. package/dist/esm/turbulent-displace.mjs +652 -0
  32. package/dist/evolve.d.ts +8 -8
  33. package/dist/exposure.d.ts +1 -1
  34. package/dist/fisheye/index.d.ts +1 -1
  35. package/dist/flannel.d.ts +1 -1
  36. package/dist/fractal-noise/index.d.ts +40 -0
  37. package/dist/fractal-noise/shader.d.ts +1 -0
  38. package/dist/fractal-noise.d.ts +1 -0
  39. package/dist/gaussian-blur-shader.d.ts +1 -1
  40. package/dist/glow/index.d.ts +1 -1
  41. package/dist/grayscale.d.ts +1 -1
  42. package/dist/gridlines.d.ts +23 -23
  43. package/dist/halftone-linear-gradient.d.ts +21 -21
  44. package/dist/halftone.d.ts +25 -25
  45. package/dist/hue.d.ts +1 -1
  46. package/dist/invert.d.ts +1 -1
  47. package/dist/lens-blur/index.d.ts +30 -0
  48. package/dist/lens-blur/shader.d.ts +1 -0
  49. package/dist/lens-blur.d.ts +1 -0
  50. package/dist/levels.d.ts +1 -1
  51. package/dist/light-leak.d.ts +7 -7
  52. package/dist/light-trail/index.d.ts +1 -1
  53. package/dist/linear-gradient-tint.d.ts +1 -1
  54. package/dist/linear-gradient.d.ts +1 -1
  55. package/dist/linear-progressive-blur/index.d.ts +1 -1
  56. package/dist/linear-progressive-blur/linear-progressive-blur-shaders.d.ts +1 -1
  57. package/dist/linear-progressive-pixelate/index.d.ts +1 -1
  58. package/dist/lines.d.ts +18 -18
  59. package/dist/liquid-contours.d.ts +21 -21
  60. package/dist/long-shadows.d.ts +13 -0
  61. package/dist/lut/index.d.ts +3 -3
  62. package/dist/mirror/index.d.ts +1 -1
  63. package/dist/noise-displacement.d.ts +1 -1
  64. package/dist/noise.d.ts +1 -1
  65. package/dist/outline/polygonize-alpha.d.ts +1 -1
  66. package/dist/outline.d.ts +11 -11
  67. package/dist/page-turn/index.d.ts +20 -0
  68. package/dist/page-turn/shader.d.ts +1 -0
  69. package/dist/page-turn.d.ts +1 -0
  70. package/dist/paper.d.ts +1 -1
  71. package/dist/pattern.d.ts +1 -1
  72. package/dist/pixel-dissolve.d.ts +1 -1
  73. package/dist/pixelate.d.ts +1 -1
  74. package/dist/radial-progressive-blur/index.d.ts +1 -1
  75. package/dist/radial-progressive-blur/radial-progressive-blur-shaders.d.ts +1 -1
  76. package/dist/radial-progressive-pixelate/index.d.ts +1 -1
  77. package/dist/region-blur/index.d.ts +11 -11
  78. package/dist/rings.d.ts +15 -15
  79. package/dist/roughen-edges.d.ts +1 -1
  80. package/dist/saturation.d.ts +1 -1
  81. package/dist/scale/index.d.ts +1 -1
  82. package/dist/scanlines.d.ts +1 -1
  83. package/dist/shadows-highlights.d.ts +1 -1
  84. package/dist/shine.d.ts +1 -1
  85. package/dist/shrinkwrap.d.ts +1 -1
  86. package/dist/skew.d.ts +1 -1
  87. package/dist/speckle.d.ts +1 -1
  88. package/dist/sphere/index.d.ts +18 -0
  89. package/dist/sphere/shader.d.ts +1 -0
  90. package/dist/sphere.d.ts +1 -0
  91. package/dist/starburst.d.ts +13 -13
  92. package/dist/tear.d.ts +1 -1
  93. package/dist/thermal-vision.d.ts +7 -7
  94. package/dist/tile.d.ts +1 -1
  95. package/dist/tint.d.ts +5 -5
  96. package/dist/translate/index.d.ts +2 -2
  97. package/dist/turbulent-displace/index.d.ts +28 -0
  98. package/dist/turbulent-displace/shader.d.ts +1 -0
  99. package/dist/turbulent-displace.d.ts +1 -0
  100. package/dist/tv-signal-off.d.ts +1 -1
  101. package/dist/value-noise-shader.d.ts +1 -0
  102. package/dist/venetian-blinds.d.ts +8 -8
  103. package/dist/vibrance.d.ts +1 -1
  104. package/dist/vignette.d.ts +16 -16
  105. package/dist/visual-test/visual-utils.d.ts +8 -8
  106. package/dist/wave/index.d.ts +1 -1
  107. package/dist/waves.d.ts +24 -24
  108. package/dist/webgpu-projection-runtime.d.ts +24 -0
  109. package/dist/white-balance.d.ts +1 -1
  110. package/dist/white-noise.d.ts +1 -1
  111. package/dist/zigzag.d.ts +22 -22
  112. package/dist/zoom-blur/index.d.ts +1 -1
  113. package/package.json +71 -6
package/dist/lines.d.ts CHANGED
@@ -1,60 +1,60 @@
1
- declare const LINE_DIRECTIONS: readonly ["horizontal", "vertical"];
1
+ declare const LINE_DIRECTIONS: readonly ['horizontal', 'vertical'];
2
2
  export declare const linesSchema: {
3
3
  readonly colors: {
4
- readonly type: "array";
4
+ readonly type: 'array';
5
5
  readonly item: {
6
- readonly type: "color";
6
+ readonly type: 'color';
7
7
  };
8
8
  readonly default: readonly ["#dff4ff", "#7cc6ff"];
9
9
  readonly minLength: 2;
10
- readonly newItemDefault: "#ff0000";
11
- readonly description: "Colors";
10
+ readonly newItemDefault: '#ff0000';
11
+ readonly description: 'Colors';
12
12
  readonly keyframable: false;
13
13
  };
14
14
  readonly direction: {
15
- readonly type: "enum";
15
+ readonly type: 'enum';
16
16
  readonly variants: {
17
17
  readonly horizontal: {};
18
18
  readonly vertical: {};
19
19
  };
20
20
  readonly default: "horizontal";
21
- readonly description: "Direction";
21
+ readonly description: 'Direction';
22
22
  };
23
23
  readonly thickness: {
24
- readonly type: "number";
24
+ readonly type: 'number';
25
25
  readonly min: 0.1;
26
26
  readonly max: 400;
27
27
  readonly step: 0.1;
28
28
  readonly default: 40;
29
- readonly description: "Thickness";
29
+ readonly description: 'Thickness';
30
30
  readonly hiddenFromList: false;
31
31
  };
32
32
  readonly gap: {
33
- readonly type: "number";
33
+ readonly type: 'number';
34
34
  readonly min: 0;
35
35
  readonly max: 400;
36
36
  readonly step: 0.1;
37
37
  readonly default: 0;
38
- readonly description: "Gap";
38
+ readonly description: 'Gap';
39
39
  readonly hiddenFromList: false;
40
40
  };
41
41
  readonly angle: {
42
- readonly type: "rotation-degrees";
42
+ readonly type: 'rotation-degrees';
43
43
  readonly step: 1;
44
44
  readonly default: 0;
45
- readonly description: "Angle";
45
+ readonly description: 'Angle';
46
46
  };
47
47
  readonly offset: {
48
- readonly type: "number";
48
+ readonly type: 'number';
49
49
  readonly step: 0.1;
50
50
  readonly default: 0;
51
- readonly description: "Offset";
51
+ readonly description: 'Offset';
52
52
  readonly hiddenFromList: false;
53
53
  };
54
54
  readonly maskToSourceAlpha: {
55
- readonly type: "boolean";
55
+ readonly type: 'boolean';
56
56
  readonly default: false;
57
- readonly description: "Mask to source alpha";
57
+ readonly description: 'Mask to source alpha';
58
58
  };
59
59
  };
60
60
  export type LinesDirection = (typeof LINE_DIRECTIONS)[number];
@@ -75,6 +75,6 @@ export type LinesParams = {
75
75
  readonly maskToSourceAlpha?: boolean;
76
76
  };
77
77
  export declare const lines: (params?: (LinesParams & {
78
- readonly disabled?: boolean | undefined;
78
+ readonly disabled?: boolean;
79
79
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
80
80
  export {};
@@ -1,76 +1,76 @@
1
1
  export declare const liquidContoursSchema: {
2
2
  readonly firstColor: {
3
- readonly type: "color";
3
+ readonly type: 'color';
4
4
  readonly default: "#ff1a0a";
5
- readonly description: "First color";
5
+ readonly description: 'First color';
6
6
  };
7
7
  readonly secondColor: {
8
- readonly type: "color";
8
+ readonly type: 'color';
9
9
  readonly default: "#050505";
10
- readonly description: "Second color";
10
+ readonly description: 'Second color';
11
11
  };
12
12
  readonly spacing: {
13
- readonly type: "number";
13
+ readonly type: 'number';
14
14
  readonly min: 2;
15
15
  readonly max: 300;
16
16
  readonly step: 1;
17
17
  readonly default: 62;
18
- readonly description: "Spacing";
18
+ readonly description: 'Spacing';
19
19
  readonly hiddenFromList: false;
20
20
  };
21
21
  readonly scale: {
22
- readonly type: "number";
22
+ readonly type: 'number';
23
23
  readonly min: 20;
24
24
  readonly max: 1000;
25
25
  readonly step: 1;
26
26
  readonly default: 300;
27
- readonly description: "Scale";
27
+ readonly description: 'Scale';
28
28
  readonly hiddenFromList: false;
29
29
  };
30
30
  readonly complexity: {
31
- readonly type: "number";
31
+ readonly type: 'number';
32
32
  readonly min: 0;
33
33
  readonly max: 1;
34
34
  readonly step: 0.01;
35
35
  readonly default: 0;
36
- readonly description: "Complexity";
36
+ readonly description: 'Complexity';
37
37
  readonly hiddenFromList: false;
38
38
  };
39
39
  readonly smoothness: {
40
- readonly type: "number";
40
+ readonly type: 'number';
41
41
  readonly min: 0;
42
42
  readonly max: 1;
43
43
  readonly step: 0.01;
44
44
  readonly default: 1;
45
- readonly description: "Edge smoothness";
45
+ readonly description: 'Edge smoothness';
46
46
  readonly hiddenFromList: false;
47
47
  };
48
48
  readonly seed: {
49
- readonly type: "number";
49
+ readonly type: 'number';
50
50
  readonly step: 1;
51
51
  readonly default: 4;
52
- readonly description: "Seed";
52
+ readonly description: 'Seed';
53
53
  readonly hiddenFromList: false;
54
54
  };
55
55
  readonly offsetX: {
56
- readonly type: "number";
56
+ readonly type: 'number';
57
57
  readonly step: 0.1;
58
58
  readonly default: 13.4;
59
- readonly description: "Offset X";
59
+ readonly description: 'Offset X';
60
60
  readonly hiddenFromList: false;
61
61
  };
62
62
  readonly offsetY: {
63
- readonly type: "number";
63
+ readonly type: 'number';
64
64
  readonly step: 0.1;
65
65
  readonly default: 0;
66
- readonly description: "Offset Y";
66
+ readonly description: 'Offset Y';
67
67
  readonly hiddenFromList: false;
68
68
  };
69
69
  readonly phase: {
70
- readonly type: "number";
70
+ readonly type: 'number';
71
71
  readonly step: 0.01;
72
72
  readonly default: 3.23;
73
- readonly description: "Phase";
73
+ readonly description: 'Phase';
74
74
  readonly hiddenFromList: false;
75
75
  };
76
76
  };
@@ -97,5 +97,5 @@ export type LiquidContoursParams = {
97
97
  readonly phase?: number;
98
98
  };
99
99
  export declare const liquidContours: (params?: (LiquidContoursParams & {
100
- readonly disabled?: boolean | undefined;
100
+ readonly disabled?: boolean;
101
101
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -0,0 +1,13 @@
1
+ export type LongShadowsParams = {
2
+ /** Length of the shadow in pixels. Defaults to `240`. */
3
+ readonly length?: number;
4
+ /** Clockwise angle in degrees, with `0` pointing right. Defaults to `45`. */
5
+ readonly angle?: number;
6
+ /** CSS color of the shadow. Defaults to `'#777777'`. */
7
+ readonly color?: string;
8
+ /** Shadow opacity from `0` to `1`. Defaults to `1`. */
9
+ readonly opacity?: number;
10
+ };
11
+ export declare const longShadows: (params?: (LongShadowsParams & {
12
+ readonly disabled?: boolean;
13
+ }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -1,8 +1,8 @@
1
1
  export declare const lutSchema: {
2
2
  readonly content: {
3
- readonly type: "string";
3
+ readonly type: 'string';
4
4
  readonly default: "TITLE \"Identity\"\nLUT_3D_SIZE 2\n\n0 0 0\n1 0 0\n0 1 0\n1 1 0\n0 0 1\n1 0 1\n0 1 1\n1 1 1";
5
- readonly description: "Cube LUT content";
5
+ readonly description: 'Cube LUT content';
6
6
  readonly keyframable: false;
7
7
  };
8
8
  };
@@ -11,5 +11,5 @@ export type LutParams = {
11
11
  readonly content: string;
12
12
  };
13
13
  export declare const lut: (params: LutParams & {
14
- readonly disabled?: boolean | undefined;
14
+ readonly disabled?: boolean;
15
15
  }) => import("remotion").EffectDescriptor<unknown>;
@@ -9,5 +9,5 @@ export type MirrorParams = {
9
9
  readonly invert?: boolean;
10
10
  };
11
11
  export declare const mirror: (params?: (MirrorParams & {
12
- readonly disabled?: boolean | undefined;
12
+ readonly disabled?: boolean;
13
13
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -22,5 +22,5 @@ export type NoiseDisplacementParams = {
22
22
  readonly biasAmount?: number;
23
23
  };
24
24
  export declare const noiseDisplacement: (params: NoiseDisplacementParams & {
25
- readonly disabled?: boolean | undefined;
25
+ readonly disabled?: boolean;
26
26
  }) => import("remotion").EffectDescriptor<unknown>;
package/dist/noise.d.ts CHANGED
@@ -7,5 +7,5 @@ export type NoiseParams = {
7
7
  readonly premultiply?: boolean;
8
8
  };
9
9
  export declare const noise: (params?: (NoiseParams & {
10
- readonly disabled?: boolean | undefined;
10
+ readonly disabled?: boolean;
11
11
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -1,6 +1,6 @@
1
1
  export type OutlinePoint = readonly [x: number, y: number];
2
2
  export declare const polygonizeAlpha: ({ data, width, height, simplification, }: {
3
- readonly data: Uint8ClampedArray<ArrayBufferLike>;
3
+ readonly data: Uint8ClampedArray;
4
4
  readonly width: number;
5
5
  readonly height: number;
6
6
  readonly simplification: number;
package/dist/outline.d.ts CHANGED
@@ -1,40 +1,40 @@
1
1
  export declare const outlineSchema: {
2
2
  readonly width: {
3
- readonly type: "number";
3
+ readonly type: 'number';
4
4
  readonly min: 0;
5
5
  readonly max: 100;
6
6
  readonly step: 1;
7
7
  readonly default: 8;
8
- readonly description: "Width";
8
+ readonly description: 'Width';
9
9
  readonly hiddenFromList: false;
10
10
  };
11
11
  readonly edgeSimplification: {
12
- readonly type: "number";
12
+ readonly type: 'number';
13
13
  readonly min: 0;
14
14
  readonly max: 100;
15
15
  readonly step: 1;
16
16
  readonly default: 0;
17
- readonly description: "Edge simplification";
17
+ readonly description: 'Edge simplification';
18
18
  readonly hiddenFromList: false;
19
19
  };
20
20
  readonly color: {
21
- readonly type: "color";
21
+ readonly type: 'color';
22
22
  readonly default: "#ffffff";
23
- readonly description: "Color";
23
+ readonly description: 'Color';
24
24
  };
25
25
  readonly opacity: {
26
- readonly type: "number";
26
+ readonly type: 'number';
27
27
  readonly min: 0;
28
28
  readonly max: 1;
29
29
  readonly step: 0.01;
30
30
  readonly default: 1;
31
- readonly description: "Opacity";
31
+ readonly description: 'Opacity';
32
32
  readonly hiddenFromList: false;
33
33
  };
34
34
  readonly outlineOnly: {
35
- readonly type: "boolean";
35
+ readonly type: 'boolean';
36
36
  readonly default: false;
37
- readonly description: "Outline only";
37
+ readonly description: 'Outline only';
38
38
  };
39
39
  };
40
40
  export type OutlineParams = {
@@ -50,5 +50,5 @@ export type OutlineParams = {
50
50
  readonly outlineOnly?: boolean;
51
51
  };
52
52
  export declare const outline: (params?: (OutlineParams & {
53
- readonly disabled?: boolean | undefined;
53
+ readonly disabled?: boolean;
54
54
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -0,0 +1,20 @@
1
+ export type PageTurnRender = 'both' | 'front' | 'back';
2
+ export type PageTurnParams = {
3
+ /** Position of the fold as fractions of the canvas size. Defaults to [0.7, 0.7]. */
4
+ readonly foldPosition?: readonly [number, number];
5
+ /** Angle of the fold line in degrees. Defaults to 315. */
6
+ readonly foldDirection?: number;
7
+ /** Curl radius in pixels. Must be greater than zero. Defaults to 60. */
8
+ readonly foldRadius?: number;
9
+ /** Direction of the light in degrees. Defaults to -45. */
10
+ readonly lightDirection?: number;
11
+ /** Which faces to show. Defaults to 'both'. */
12
+ readonly render?: PageTurnRender;
13
+ /** Visibility of the source image on the back, from 0 to 1. Defaults to 0.25. */
14
+ readonly backPageOpacity?: number;
15
+ /** Color of the paper back. Defaults to white. */
16
+ readonly paperColor?: string;
17
+ };
18
+ export declare const pageTurn: (params?: (PageTurnParams & {
19
+ readonly disabled?: boolean;
20
+ }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -0,0 +1 @@
1
+ export declare const PAGE_TURN_SHADER = "\nstruct Params {\n resolution: vec2f,\n foldPosition: vec2f,\n geometry: vec4f,\n paperColor: vec4f,\n back: vec4f,\n}\n@group(0) @binding(0) var source: texture_2d<f32>;\n@group(0) @binding(1) var sourceSampler: sampler;\n@group(0) @binding(2) var<uniform> params: Params;\n\n@vertex fn vertex(@builtin(vertex_index) index: u32) -> @builtin(position) vec4f {\n let positions = array<vec2f, 3>(vec2f(-1, -1), vec2f(3, -1), vec2f(-1, 3));\n return vec4f(positions[index], 0, 1);\n}\n\nfn samplePage(pixel: vec2f) -> vec4f {\n if (any(pixel < vec2f(0)) || any(pixel >= params.resolution)) { return vec4f(0); }\n // The shared projection sampler wraps horizontally; pages must not wrap at the edges.\n let uv = clamp(pixel, vec2f(0.5), params.resolution - vec2f(0.5)) / params.resolution;\n return textureSampleLevel(source, sourceSampler, uv, 0);\n}\n\n@fragment fn fragment(@builtin(position) position: vec4f) -> @location(0) vec4f {\n let radius = params.geometry.x;\n let direction = params.geometry.y;\n let normal = vec2f(-sin(direction), cos(direction));\n let distance = dot(position.xy - params.foldPosition, normal);\n let coverage = 1.0 - smoothstep(radius - max(fwidth(distance), 0.001), radius, distance);\n if (distance >= radius) { return vec4f(0); }\n\n var front = vec4f(0);\n var back = vec4f(0);\n var backDistance = 3.14159265359 * radius - distance;\n var backShade = 0.9;\n if (distance <= 0.0) {\n front = samplePage(position.xy);\n } else {\n let angle = asin(clamp(distance / radius, 0.0, 1.0));\n let frontDistance = radius * angle;\n backDistance = 3.14159265359 * radius - frontDistance;\n let light = params.geometry.z;\n let lightDot = normal.x * sin(light) - normal.y * cos(light);\n let shade = 1.0 - 0.4 * (angle / 1.57079632679) * (0.5 + 0.5 * lightDot);\n let color = samplePage(position.xy + normal * (frontDistance - distance));\n front = vec4f(color.rgb * shade, color.a);\n backShade = 0.6 + 0.4 * cos(angle);\n }\n let color = samplePage(position.xy + normal * (backDistance - distance));\n let tint = (1.0 - params.back.x) * params.paperColor.a;\n back = vec4f(mix(color.rgb, params.paperColor.rgb * color.a, tint) * backShade, color.a);\n if (params.geometry.w == 1.0) { return front * coverage; }\n if (params.geometry.w == 2.0) { return back * coverage; }\n // Premultiplied source-over: the curled back covers the front, which shows through its alpha.\n return (back + front * (1.0 - back.a)) * coverage;\n}\n";
@@ -0,0 +1 @@
1
+ export { pageTurn, type PageTurnParams, type PageTurnRender, } from './page-turn/index.js';
package/dist/paper.d.ts CHANGED
@@ -31,5 +31,5 @@ export type PaperParams = {
31
31
  readonly scale?: number;
32
32
  };
33
33
  export declare const paper: (params?: (PaperParams & {
34
- readonly disabled?: boolean | undefined;
34
+ readonly disabled?: boolean;
35
35
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
package/dist/pattern.d.ts CHANGED
@@ -29,5 +29,5 @@ export type PatternParams = {
29
29
  readonly wrap?: boolean;
30
30
  };
31
31
  export declare const pattern: (params?: (PatternParams & {
32
- readonly disabled?: boolean | undefined;
32
+ readonly disabled?: boolean;
33
33
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -6,5 +6,5 @@ export type PixelDissolveParams = {
6
6
  readonly feather?: number;
7
7
  };
8
8
  export declare const pixelDissolve: (params?: (PixelDissolveParams & {
9
- readonly disabled?: boolean | undefined;
9
+ readonly disabled?: boolean;
10
10
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -2,5 +2,5 @@ export type PixelateParams = {
2
2
  readonly blockSize?: number;
3
3
  };
4
4
  export declare const pixelate: (params?: (PixelateParams & {
5
- readonly disabled?: boolean | undefined;
5
+ readonly disabled?: boolean;
6
6
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -40,5 +40,5 @@ export type RadialProgressiveBlurResolved = {
40
40
  readonly endBlur: number;
41
41
  };
42
42
  export declare const radialProgressiveBlur: (params?: (RadialProgressiveBlurParams & {
43
- readonly disabled?: boolean | undefined;
43
+ readonly disabled?: boolean;
44
44
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -1,2 +1,2 @@
1
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;
2
+ export declare const buildRadialProgressiveBlurFs: (direction: 'horizontal' | 'vertical') => string;
@@ -16,5 +16,5 @@ export type RadialProgressivePixelateParams = {
16
16
  readonly endBlockSize?: number;
17
17
  };
18
18
  export declare const radialProgressivePixelate: (params?: (RadialProgressivePixelateParams & {
19
- readonly disabled?: boolean | undefined;
19
+ readonly disabled?: boolean;
20
20
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -13,49 +13,49 @@ export type RegionBlurParams = {
13
13
  };
14
14
  export declare const regionBlurSchema: {
15
15
  readonly topLeft: {
16
- readonly type: "uv-coordinate";
16
+ readonly type: 'uv-coordinate';
17
17
  readonly min: -1;
18
18
  readonly max: 2;
19
19
  readonly step: 0.01;
20
20
  readonly default: undefined;
21
- readonly description: "Top left";
21
+ readonly description: 'Top left';
22
22
  };
23
23
  readonly bottomRight: {
24
- readonly type: "uv-coordinate";
24
+ readonly type: 'uv-coordinate';
25
25
  readonly min: -1;
26
26
  readonly max: 2;
27
27
  readonly step: 0.01;
28
28
  readonly default: undefined;
29
- readonly description: "Bottom right";
29
+ readonly description: 'Bottom right';
30
30
  };
31
31
  readonly blurRadius: {
32
- readonly type: "number";
32
+ readonly type: 'number';
33
33
  readonly min: 0;
34
34
  readonly max: 200;
35
35
  readonly step: 1;
36
36
  readonly default: 40;
37
- readonly description: "Blur radius";
37
+ readonly description: 'Blur radius';
38
38
  readonly hiddenFromList: false;
39
39
  };
40
40
  readonly feather: {
41
- readonly type: "number";
41
+ readonly type: 'number';
42
42
  readonly min: 0;
43
43
  readonly max: 200;
44
44
  readonly step: 1;
45
45
  readonly default: 0;
46
- readonly description: "Feather";
46
+ readonly description: 'Feather';
47
47
  readonly hiddenFromList: false;
48
48
  };
49
49
  readonly roundness: {
50
- readonly type: "number";
50
+ readonly type: 'number';
51
51
  readonly min: 0;
52
52
  readonly max: 1;
53
53
  readonly step: 0.01;
54
54
  readonly default: 0;
55
- readonly description: "Roundness";
55
+ readonly description: 'Roundness';
56
56
  readonly hiddenFromList: false;
57
57
  };
58
58
  };
59
59
  export declare const regionBlur: (params: RegionBlurParams & {
60
- readonly disabled?: boolean | undefined;
60
+ readonly disabled?: boolean;
61
61
  }) => import("remotion").EffectDescriptor<unknown>;
package/dist/rings.d.ts CHANGED
@@ -1,52 +1,52 @@
1
1
  export declare const ringsSchema: {
2
2
  readonly colors: {
3
- readonly type: "array";
3
+ readonly type: 'array';
4
4
  readonly item: {
5
- readonly type: "color";
5
+ readonly type: 'color';
6
6
  };
7
7
  readonly default: readonly ["#dff4ff", "#7cc6ff"];
8
8
  readonly minLength: 2;
9
- readonly newItemDefault: "#ff0000";
10
- readonly description: "Colors";
9
+ readonly newItemDefault: '#ff0000';
10
+ readonly description: 'Colors';
11
11
  readonly keyframable: false;
12
12
  };
13
13
  readonly center: {
14
- readonly type: "uv-coordinate";
14
+ readonly type: 'uv-coordinate';
15
15
  readonly min: 0;
16
16
  readonly max: 1;
17
17
  readonly step: 0.01;
18
18
  readonly default: readonly [0.5, 0.5];
19
- readonly description: "Center";
19
+ readonly description: 'Center';
20
20
  };
21
21
  readonly thickness: {
22
- readonly type: "number";
22
+ readonly type: 'number';
23
23
  readonly min: 0.1;
24
24
  readonly max: 400;
25
25
  readonly step: 0.1;
26
26
  readonly default: 40;
27
- readonly description: "Thickness";
27
+ readonly description: 'Thickness';
28
28
  readonly hiddenFromList: false;
29
29
  };
30
30
  readonly gap: {
31
- readonly type: "number";
31
+ readonly type: 'number';
32
32
  readonly min: 0;
33
33
  readonly max: 400;
34
34
  readonly step: 0.1;
35
35
  readonly default: 0;
36
- readonly description: "Gap";
36
+ readonly description: 'Gap';
37
37
  readonly hiddenFromList: false;
38
38
  };
39
39
  readonly offset: {
40
- readonly type: "number";
40
+ readonly type: 'number';
41
41
  readonly step: 0.1;
42
42
  readonly default: 0;
43
- readonly description: "Offset";
43
+ readonly description: 'Offset';
44
44
  readonly hiddenFromList: false;
45
45
  };
46
46
  readonly maskToSourceAlpha: {
47
- readonly type: "boolean";
47
+ readonly type: 'boolean';
48
48
  readonly default: false;
49
- readonly description: "Mask to source alpha";
49
+ readonly description: 'Mask to source alpha';
50
50
  };
51
51
  };
52
52
  export type RingsCenter = readonly [number, number];
@@ -65,5 +65,5 @@ export type RingsParams = {
65
65
  readonly maskToSourceAlpha?: boolean;
66
66
  };
67
67
  export declare const rings: (params?: (RingsParams & {
68
- readonly disabled?: boolean | undefined;
68
+ readonly disabled?: boolean;
69
69
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -9,5 +9,5 @@ export type RoughenEdgesParams = {
9
9
  readonly seed?: number;
10
10
  };
11
11
  export declare const roughenEdges: (params?: (RoughenEdgesParams & {
12
- readonly disabled?: boolean | undefined;
12
+ readonly disabled?: boolean;
13
13
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -3,5 +3,5 @@ export type SaturationParams = {
3
3
  readonly amount?: number;
4
4
  };
5
5
  export declare const saturation: (params?: (SaturationParams & {
6
- readonly disabled?: boolean | undefined;
6
+ readonly disabled?: boolean;
7
7
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -7,5 +7,5 @@ export type ScaleParams = {
7
7
  readonly vertical?: boolean;
8
8
  };
9
9
  export declare const scale: (params: ScaleParams & {
10
- readonly disabled?: boolean | undefined;
10
+ readonly disabled?: boolean;
11
11
  }) => import("remotion").EffectDescriptor<unknown>;
@@ -11,5 +11,5 @@ export type ScanlinesParams = {
11
11
  readonly premultiply?: boolean;
12
12
  };
13
13
  export declare const scanlines: (params?: (ScanlinesParams & {
14
- readonly disabled?: boolean | undefined;
14
+ readonly disabled?: boolean;
15
15
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -5,5 +5,5 @@ export type ShadowsHighlightsParams = {
5
5
  readonly highlights?: number;
6
6
  };
7
7
  export declare const shadowsHighlights: (params?: (ShadowsHighlightsParams & {
8
- readonly disabled?: boolean | undefined;
8
+ readonly disabled?: boolean;
9
9
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
package/dist/shine.d.ts CHANGED
@@ -13,5 +13,5 @@ export type ShineParams = {
13
13
  readonly coreIntensity?: number;
14
14
  };
15
15
  export declare const shine: (params?: (ShineParams & {
16
- readonly disabled?: boolean | undefined;
16
+ readonly disabled?: boolean;
17
17
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -15,5 +15,5 @@ export type ShrinkwrapParams = {
15
15
  readonly seed?: number;
16
16
  };
17
17
  export declare const shrinkwrap: (params?: (ShrinkwrapParams & {
18
- readonly disabled?: boolean | undefined;
18
+ readonly disabled?: boolean;
19
19
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
package/dist/skew.d.ts CHANGED
@@ -8,5 +8,5 @@ export type SkewParams = {
8
8
  readonly origin?: SkewOrigin;
9
9
  };
10
10
  export declare const skew: (params?: (SkewParams & {
11
- readonly disabled?: boolean | undefined;
11
+ readonly disabled?: boolean;
12
12
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
package/dist/speckle.d.ts CHANGED
@@ -7,5 +7,5 @@ export type SpeckleParams = {
7
7
  readonly randomness?: number;
8
8
  };
9
9
  export declare const speckle: (params?: (SpeckleParams & {
10
- readonly disabled?: boolean | undefined;
10
+ readonly disabled?: boolean;
11
11
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -0,0 +1,18 @@
1
+ export type SphereRender = 'both' | 'front' | 'back';
2
+ export type SphereParams = {
3
+ /** Sphere radius in pixels. Defaults to 250. */
4
+ readonly radius?: number;
5
+ /** Sphere orientation in degrees, applied in X, Y, Z order. */
6
+ readonly rotationX?: number;
7
+ readonly rotationY?: number;
8
+ readonly rotationZ?: number;
9
+ /** Center as fractions of the canvas width and height. Defaults to [0.5, 0.5]. */
10
+ readonly position?: readonly [number, number];
11
+ /** Which faces to show. Defaults to 'both'. */
12
+ readonly render?: SphereRender;
13
+ /** Darkening at the silhouette, from 0 to 1. Defaults to 0.35. */
14
+ readonly shading?: number;
15
+ };
16
+ export declare const sphere: (params?: (SphereParams & {
17
+ readonly disabled?: boolean;
18
+ }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -0,0 +1 @@
1
+ export declare const SPHERE_SHADER = "\nstruct Params {\n resolution: vec2f,\n center: vec2f,\n radius: f32,\n padding: f32,\n shading: f32,\n faces: f32,\n rotation: vec4f,\n}\n@group(0) @binding(0) var source: texture_2d<f32>;\n@group(0) @binding(1) var sourceSampler: sampler;\n@group(0) @binding(2) var<uniform> params: Params;\n\n@vertex fn vertex(@builtin(vertex_index) index: u32) -> @builtin(position) vec4f {\n let positions = array<vec2f, 3>(vec2f(-1, -1), vec2f(3, -1), vec2f(-1, 3));\n return vec4f(positions[index], 0, 1);\n}\n\nfn sampleFace(normal: vec3f, inverse: mat3x3f) -> vec4f {\n let local = inverse * normal;\n // Longitude wraps at the seam; latitude spans the complete image height.\n let uv = vec2f(fract(atan2(local.x, local.z) / 6.28318530718 + 0.5), asin(clamp(local.y, -1.0, 1.0)) / 3.14159265359 + 0.5);\n let color = textureSampleLevel(source, sourceSampler, uv, 0);\n let shade = mix(1.0, abs(normal.z), params.shading);\n return vec4f(color.rgb * shade, color.a);\n}\n\n@fragment fn fragment(@builtin(position) position: vec4f) -> @location(0) vec4f {\n let p = (position.xy - params.center) / params.radius;\n let distanceSquared = dot(p, p);\n let coverage = 1.0 - smoothstep(1.0 - fwidth(distanceSquared), 1.0, distanceSquared);\n if (distanceSquared >= 1.0) { return vec4f(0); }\n let z = sqrt(1.0 - distanceSquared);\n let s = sin(params.rotation.xyz);\n let c = cos(params.rotation.xyz);\n let rx = mat3x3f(vec3f(1, 0, 0), vec3f(0, c.x, s.x), vec3f(0, -s.x, c.x));\n let ry = mat3x3f(vec3f(c.y, 0, -s.y), vec3f(0, 1, 0), vec3f(s.y, 0, c.y));\n let rz = mat3x3f(vec3f(c.z, s.z, 0), vec3f(-s.z, c.z, 0), vec3f(0, 0, 1));\n let inverse = transpose(rz * ry * rx);\n let front = sampleFace(vec3f(p, z), inverse);\n let back = sampleFace(vec3f(p, -z), inverse);\n if (params.faces == 1) { return front * coverage; }\n if (params.faces == 2) { return back * coverage; }\n return (front + back * (1.0 - front.a)) * coverage;\n}\n";
@@ -0,0 +1 @@
1
+ export { sphere, type SphereParams, type SphereRender } from './sphere/index.js';