@remotion/effects 4.0.537 → 4.0.539

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 (99) hide show
  1. package/THIRD_PARTY_LICENSES.md +4 -0
  2. package/dist/barrel-distortion/index.d.ts +1 -1
  3. package/dist/bevel-alpha/index.d.ts +1 -1
  4. package/dist/bevel-alpha/shaders.d.ts +1 -1
  5. package/dist/blur/index.d.ts +1 -1
  6. package/dist/brightness.d.ts +1 -1
  7. package/dist/burlap.d.ts +1 -1
  8. package/dist/checkerboard.d.ts +17 -17
  9. package/dist/chromatic-aberration/index.d.ts +1 -1
  10. package/dist/color-correction.d.ts +1 -1
  11. package/dist/color-key.d.ts +9 -9
  12. package/dist/color-utils.d.ts +8 -8
  13. package/dist/contour-lines.d.ts +23 -23
  14. package/dist/contrast.d.ts +1 -1
  15. package/dist/corner-pin/index.d.ts +1 -1
  16. package/dist/curves.d.ts +65 -0
  17. package/dist/cylinder/index.d.ts +1 -1
  18. package/dist/dot-grid.d.ts +7 -7
  19. package/dist/drop-shadow/index.d.ts +1 -1
  20. package/dist/duotone.d.ts +7 -7
  21. package/dist/emboss.d.ts +15 -15
  22. package/dist/esm/curves.mjs +373 -0
  23. package/dist/esm/levels.mjs +80 -10
  24. package/dist/esm/long-shadows.mjs +410 -0
  25. package/dist/esm/shatter.mjs +888 -0
  26. package/dist/evolve.d.ts +8 -8
  27. package/dist/exposure.d.ts +1 -1
  28. package/dist/fisheye/index.d.ts +1 -1
  29. package/dist/flannel.d.ts +1 -1
  30. package/dist/fractal-noise/index.d.ts +3 -3
  31. package/dist/gaussian-blur-shader.d.ts +1 -1
  32. package/dist/glow/index.d.ts +1 -1
  33. package/dist/grayscale.d.ts +1 -1
  34. package/dist/gridlines.d.ts +23 -23
  35. package/dist/halftone-linear-gradient.d.ts +21 -21
  36. package/dist/halftone.d.ts +25 -25
  37. package/dist/hue.d.ts +1 -1
  38. package/dist/invert.d.ts +1 -1
  39. package/dist/lens-blur/index.d.ts +2 -2
  40. package/dist/levels.d.ts +70 -3
  41. package/dist/light-leak.d.ts +7 -7
  42. package/dist/light-trail/index.d.ts +1 -1
  43. package/dist/linear-gradient-tint.d.ts +1 -1
  44. package/dist/linear-gradient.d.ts +1 -1
  45. package/dist/linear-progressive-blur/index.d.ts +1 -1
  46. package/dist/linear-progressive-blur/linear-progressive-blur-shaders.d.ts +1 -1
  47. package/dist/linear-progressive-pixelate/index.d.ts +1 -1
  48. package/dist/lines.d.ts +18 -18
  49. package/dist/liquid-contours.d.ts +21 -21
  50. package/dist/long-shadows.d.ts +13 -0
  51. package/dist/lut/index.d.ts +3 -3
  52. package/dist/mirror/index.d.ts +1 -1
  53. package/dist/noise-displacement.d.ts +1 -1
  54. package/dist/noise.d.ts +1 -1
  55. package/dist/outline/polygonize-alpha.d.ts +1 -1
  56. package/dist/outline.d.ts +11 -11
  57. package/dist/page-turn/index.d.ts +1 -1
  58. package/dist/paper.d.ts +1 -1
  59. package/dist/pattern.d.ts +1 -1
  60. package/dist/pixel-dissolve.d.ts +1 -1
  61. package/dist/pixelate.d.ts +1 -1
  62. package/dist/radial-progressive-blur/index.d.ts +1 -1
  63. package/dist/radial-progressive-blur/radial-progressive-blur-shaders.d.ts +1 -1
  64. package/dist/radial-progressive-pixelate/index.d.ts +1 -1
  65. package/dist/region-blur/index.d.ts +11 -11
  66. package/dist/rings.d.ts +15 -15
  67. package/dist/roughen-edges.d.ts +1 -1
  68. package/dist/saturation.d.ts +1 -1
  69. package/dist/scale/index.d.ts +1 -1
  70. package/dist/scanlines.d.ts +1 -1
  71. package/dist/shadows-highlights.d.ts +1 -1
  72. package/dist/shatter/geometry.d.ts +19 -0
  73. package/dist/shatter/index.d.ts +39 -0
  74. package/dist/shatter/runtime.d.ts +19 -0
  75. package/dist/shatter.d.ts +1 -0
  76. package/dist/shine.d.ts +1 -1
  77. package/dist/shrinkwrap.d.ts +1 -1
  78. package/dist/skew.d.ts +1 -1
  79. package/dist/speckle.d.ts +1 -1
  80. package/dist/sphere/index.d.ts +1 -1
  81. package/dist/starburst.d.ts +13 -13
  82. package/dist/tear.d.ts +1 -1
  83. package/dist/thermal-vision.d.ts +7 -7
  84. package/dist/tile.d.ts +1 -1
  85. package/dist/tint.d.ts +5 -5
  86. package/dist/translate/index.d.ts +2 -2
  87. package/dist/turbulent-displace/index.d.ts +3 -3
  88. package/dist/tv-signal-off.d.ts +1 -1
  89. package/dist/venetian-blinds.d.ts +8 -8
  90. package/dist/vibrance.d.ts +1 -1
  91. package/dist/vignette.d.ts +16 -16
  92. package/dist/visual-test/visual-utils.d.ts +8 -8
  93. package/dist/wave/index.d.ts +1 -1
  94. package/dist/waves.d.ts +24 -24
  95. package/dist/white-balance.d.ts +1 -1
  96. package/dist/white-noise.d.ts +1 -1
  97. package/dist/zigzag.d.ts +22 -22
  98. package/dist/zoom-blur/index.d.ts +1 -1
  99. package/package.json +31 -7
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>;
@@ -16,5 +16,5 @@ export type PageTurnParams = {
16
16
  readonly paperColor?: string;
17
17
  };
18
18
  export declare const pageTurn: (params?: (PageTurnParams & {
19
- readonly disabled?: boolean | undefined;
19
+ readonly disabled?: boolean;
20
20
  }) | undefined) => import("remotion").EffectDescriptor<unknown>;
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>;
@@ -0,0 +1,19 @@
1
+ export type ShatterGeometryParams = {
2
+ time: number;
3
+ pattern: 'bricks' | 'glass' | 'hexagons' | 'squares' | 'triangles';
4
+ repetitions: number;
5
+ direction: number;
6
+ origin: readonly [number, number];
7
+ center: readonly [number, number];
8
+ radius: number;
9
+ depth: number;
10
+ strength: number;
11
+ rotationSpeed: number;
12
+ randomness: number;
13
+ viscosity: number;
14
+ massVariance: number;
15
+ gravity: number;
16
+ seed: number;
17
+ extrusionDepth: number;
18
+ };
19
+ export declare const createShatterGeometry: (width: number, height: number, params: ShatterGeometryParams) => Float32Array;
@@ -0,0 +1,39 @@
1
+ import { type ShatterGeometryParams } from './geometry.js';
2
+ export type ShatterPattern = ShatterGeometryParams['pattern'];
3
+ export type ShatterParams = {
4
+ /** Elapsed simulation time in seconds. Must be nonnegative. Defaults to 0.5. */
5
+ readonly time?: number;
6
+ /** Shape of the shards. Defaults to 'bricks'. */
7
+ readonly pattern?: ShatterPattern;
8
+ /** Number of pattern cells across the canvas width, from 1 to 100. Defaults to 10. */
9
+ readonly repetitions?: number;
10
+ /** Clockwise rotation of the pattern in degrees. Defaults to 0. */
11
+ readonly direction?: number;
12
+ /** Pattern origin as fractions of the canvas width and height. Defaults to [0.5, 0.5]. */
13
+ readonly origin?: readonly [number, number];
14
+ /** Force center as fractions of the canvas width and height. Defaults to [0.5, 0.5]. */
15
+ readonly center?: readonly [number, number];
16
+ /** Force sphere radius as a nonnegative fraction of the canvas width. Defaults to 0.4. */
17
+ readonly radius?: number;
18
+ /** Force depth in front of the canvas, as a fraction of its width. Defaults to 0.1. */
19
+ readonly depth?: number;
20
+ /** Radial force strength. Negative values pull shards inward. Defaults to 5. */
21
+ readonly strength?: number;
22
+ /** Nonnegative multiplier for shard rotation in turns per second. Defaults to 0.2. */
23
+ readonly rotationSpeed?: number;
24
+ /** Random variation in shard velocity, from 0 to 1. Defaults to 0.1. */
25
+ readonly randomness?: number;
26
+ /** Drag slowing shard motion and rotation, from 0 to 1. Defaults to 0.1. */
27
+ readonly viscosity?: number;
28
+ /** Variation in shard mass, from 0 to 1. Defaults to 0.3. */
29
+ readonly massVariance?: number;
30
+ /** Nonnegative downward acceleration, in tenths of the canvas width per second squared. Defaults to 3. */
31
+ readonly gravity?: number;
32
+ /** Integer random seed from 0 to 4294967295. Defaults to 0. */
33
+ readonly seed?: number;
34
+ /** Shard thickness as a fraction of the pattern cell size, from 0 to 1. Defaults to 0.05. */
35
+ readonly extrusionDepth?: number;
36
+ };
37
+ export declare const shatter: (params?: (ShatterParams & {
38
+ readonly disabled?: boolean;
39
+ }) | undefined) => import("remotion").EffectDescriptor<unknown>;
@@ -0,0 +1,19 @@
1
+ export type ShatterState = {
2
+ readonly gl: WebGL2RenderingContext;
3
+ readonly program: WebGLProgram;
4
+ readonly vao: WebGLVertexArrayObject;
5
+ readonly vbo: WebGLBuffer;
6
+ readonly texture: WebGLTexture;
7
+ readonly uSource: WebGLUniformLocation | null;
8
+ readonly uResolution: WebGLUniformLocation | null;
9
+ };
10
+ export declare const setupShatter: (gl: WebGL2RenderingContext) => ShatterState;
11
+ export declare const drawShatter: ({ state, source, width, height, flipSourceY, vertices, }: {
12
+ readonly state: ShatterState;
13
+ readonly source: CanvasImageSource;
14
+ readonly width: number;
15
+ readonly height: number;
16
+ readonly flipSourceY: boolean;
17
+ readonly vertices: Float32Array;
18
+ }) => void;
19
+ export declare const cleanupShatter: ({ gl, program, vao, vbo, texture, }: ShatterState) => void;
@@ -0,0 +1 @@
1
+ export { shatter, type ShatterParams, type ShatterPattern, } from './shatter/index.js';
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>;