@remotion/light-leaks 4.0.431 → 4.0.433
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.
- package/dist/LightLeak.d.ts +7 -3
- package/dist/esm/index.mjs +37 -15
- package/package.json +3 -3
package/dist/LightLeak.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type SequenceProps } from 'remotion';
|
|
3
|
-
export type LightLeakProps = Omit<SequenceProps, 'children' | '
|
|
2
|
+
import { type AbsoluteFillLayout, type LayoutAndStyle, type SequenceProps } from 'remotion';
|
|
3
|
+
export type LightLeakProps = Omit<SequenceProps, 'children' | 'durationInFrames' | keyof LayoutAndStyle> & Omit<AbsoluteFillLayout, 'layout'> & {
|
|
4
4
|
readonly durationInFrames?: number;
|
|
5
5
|
readonly seed?: number;
|
|
6
6
|
readonly hueShift?: number;
|
|
7
7
|
};
|
|
8
|
-
export declare const LightLeak: React.
|
|
8
|
+
export declare const LightLeak: React.ComponentType<Omit<SequenceProps, "children" | "durationInFrames" | "layout"> & Omit<AbsoluteFillLayout, "layout"> & {
|
|
9
|
+
readonly durationInFrames?: number | undefined;
|
|
10
|
+
readonly seed?: number | undefined;
|
|
11
|
+
readonly hueShift?: number | undefined;
|
|
12
|
+
}>;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -181,30 +181,51 @@ var LightLeakCanvas = ({ seed, hueShift }) => {
|
|
|
181
181
|
});
|
|
182
182
|
};
|
|
183
183
|
var lightLeakSchema = {
|
|
184
|
-
seed: { type: "number", description: "Seed" },
|
|
184
|
+
seed: { type: "number", default: 0, description: "Seed" },
|
|
185
185
|
hueShift: {
|
|
186
186
|
type: "number",
|
|
187
187
|
min: 0,
|
|
188
188
|
max: 360,
|
|
189
|
+
default: 0,
|
|
189
190
|
description: "Hue Shift"
|
|
190
191
|
},
|
|
191
|
-
|
|
192
|
+
"style.translate": {
|
|
193
|
+
type: "translate",
|
|
194
|
+
step: 1,
|
|
195
|
+
default: "0px 0px",
|
|
196
|
+
description: "Position"
|
|
197
|
+
},
|
|
198
|
+
"style.scale": {
|
|
199
|
+
type: "number",
|
|
200
|
+
min: 0.05,
|
|
201
|
+
max: 100,
|
|
202
|
+
step: 0.01,
|
|
203
|
+
default: 1,
|
|
204
|
+
description: "Scale"
|
|
205
|
+
},
|
|
206
|
+
"style.rotate": {
|
|
207
|
+
type: "rotation",
|
|
208
|
+
step: 1,
|
|
209
|
+
default: "0deg",
|
|
210
|
+
description: "Rotation"
|
|
211
|
+
},
|
|
212
|
+
"style.opacity": {
|
|
213
|
+
type: "number",
|
|
214
|
+
min: 0,
|
|
215
|
+
max: 1,
|
|
216
|
+
step: 0.01,
|
|
217
|
+
default: 1,
|
|
218
|
+
description: "Opacity"
|
|
219
|
+
}
|
|
192
220
|
};
|
|
193
|
-
var
|
|
194
|
-
seed
|
|
195
|
-
hueShift
|
|
221
|
+
var LightLeakInner = ({
|
|
222
|
+
seed = 0,
|
|
223
|
+
hueShift = 0,
|
|
196
224
|
durationInFrames,
|
|
197
|
-
|
|
225
|
+
style,
|
|
226
|
+
controls,
|
|
198
227
|
...sequenceProps
|
|
199
228
|
}) => {
|
|
200
|
-
const {
|
|
201
|
-
controls,
|
|
202
|
-
values: { seed, hueShift, from }
|
|
203
|
-
} = Internals.useSchema(lightLeakSchema, {
|
|
204
|
-
seed: seedProp,
|
|
205
|
-
hueShift: hueShiftProp,
|
|
206
|
-
from: fromProp
|
|
207
|
-
});
|
|
208
229
|
const { durationInFrames: videoDuration } = useVideoConfig();
|
|
209
230
|
const resolvedDuration = durationInFrames ?? videoDuration;
|
|
210
231
|
if (typeof seed !== "number" || !Number.isFinite(seed)) {
|
|
@@ -220,14 +241,15 @@ var LightLeak = ({
|
|
|
220
241
|
durationInFrames: resolvedDuration,
|
|
221
242
|
name: "<LightLeak>",
|
|
222
243
|
controls,
|
|
223
|
-
from,
|
|
224
244
|
...sequenceProps,
|
|
245
|
+
style,
|
|
225
246
|
children: /* @__PURE__ */ jsx(LightLeakCanvas, {
|
|
226
247
|
seed,
|
|
227
248
|
hueShift
|
|
228
249
|
})
|
|
229
250
|
});
|
|
230
251
|
};
|
|
252
|
+
var LightLeak = Internals.wrapInSchema(LightLeakInner, lightLeakSchema);
|
|
231
253
|
LightLeak.displayName = "LightLeak";
|
|
232
254
|
Internals.addSequenceStackTraces(LightLeak);
|
|
233
255
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/light-leaks",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.433",
|
|
4
4
|
"description": "Light leak effects for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"remotion": "4.0.
|
|
27
|
+
"remotion": "4.0.433",
|
|
28
28
|
"zod": "4.3.6"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"react": "19.2.3",
|
|
44
44
|
"react-dom": "19.2.3",
|
|
45
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
45
|
+
"@remotion/eslint-config-internal": "4.0.433",
|
|
46
46
|
"eslint": "9.19.0",
|
|
47
47
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
48
48
|
},
|