@cliquify.me/types 7.0.2 → 8.0.0
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/index.d.ts +95 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -40,14 +40,45 @@ export interface ICompositionAnimation {
|
|
|
40
40
|
easing: string;
|
|
41
41
|
delay: number;
|
|
42
42
|
details?: {
|
|
43
|
-
fonts
|
|
43
|
+
fonts?: {
|
|
44
44
|
fontFamily: string;
|
|
45
45
|
url: string;
|
|
46
46
|
}[];
|
|
47
|
+
keepStill?: string;
|
|
48
|
+
hasInitialValue?: boolean;
|
|
49
|
+
initialRepeatCount?: number;
|
|
50
|
+
initialScaleDown?: number;
|
|
51
|
+
initialCenterX?: number;
|
|
52
|
+
initialCenterY?: number;
|
|
53
|
+
initialBaseSpeed?: number;
|
|
54
|
+
initialScaleFactor?: number;
|
|
55
|
+
initialWiggleX?: number;
|
|
56
|
+
initialWiggleY?: number;
|
|
57
|
+
initialSpeed?: number;
|
|
58
|
+
initialAngle?: number;
|
|
59
|
+
toRepeatCount?: number;
|
|
60
|
+
toScaleDown?: number;
|
|
61
|
+
toCenterX?: number;
|
|
62
|
+
toCenterY?: number;
|
|
63
|
+
repeatX?: number;
|
|
64
|
+
repeatY?: number;
|
|
65
|
+
gapX?: number;
|
|
66
|
+
gapY?: number;
|
|
67
|
+
baseSpeed?: number;
|
|
68
|
+
speedVariation?: number;
|
|
69
|
+
lineOffset?: number;
|
|
70
|
+
scaleFactor?: number;
|
|
71
|
+
direction?: string;
|
|
72
|
+
wiggleX?: number;
|
|
73
|
+
wiggleY?: number;
|
|
74
|
+
speed?: number;
|
|
75
|
+
angle?: number;
|
|
76
|
+
seed?: number;
|
|
47
77
|
};
|
|
48
78
|
text?: string;
|
|
49
79
|
persist?: boolean;
|
|
50
80
|
textAnimationMode?: "all" | "word" | "letter" | "line";
|
|
81
|
+
order?: "forward" | "backward";
|
|
51
82
|
}
|
|
52
83
|
export interface ITransition {
|
|
53
84
|
id: string;
|
|
@@ -65,7 +96,7 @@ export interface ITrack {
|
|
|
65
96
|
id: string;
|
|
66
97
|
type: ITrackType;
|
|
67
98
|
items: string[];
|
|
68
|
-
muted
|
|
99
|
+
muted?: boolean;
|
|
69
100
|
metadata?: Partial<IMetadata>;
|
|
70
101
|
accepts?: string[];
|
|
71
102
|
index?: number;
|
|
@@ -98,6 +129,67 @@ export interface ItemStructure {
|
|
|
98
129
|
transitions: string[];
|
|
99
130
|
tracks: ITrack[];
|
|
100
131
|
}
|
|
132
|
+
export type RemotionEffectKind = "blur" | "vignette" | "chromaticAberration" | "noise" | "pixelate" | "grayscale" | "contrast" | "brightness" | "hue" | "saturation" | "duotone" | "lightLeak";
|
|
133
|
+
export interface IBlurEffectConfig {
|
|
134
|
+
type: "blur";
|
|
135
|
+
radius: number;
|
|
136
|
+
}
|
|
137
|
+
export interface IVignetteEffectConfig {
|
|
138
|
+
type: "vignette";
|
|
139
|
+
radius?: number;
|
|
140
|
+
intensity?: number;
|
|
141
|
+
amount?: number;
|
|
142
|
+
}
|
|
143
|
+
export interface IChromaticAberrationEffectConfig {
|
|
144
|
+
type: "chromaticAberration";
|
|
145
|
+
offset?: number;
|
|
146
|
+
}
|
|
147
|
+
export interface INoiseEffectConfig {
|
|
148
|
+
type: "noise";
|
|
149
|
+
speed?: number;
|
|
150
|
+
seed?: number;
|
|
151
|
+
amount?: number;
|
|
152
|
+
}
|
|
153
|
+
export interface IPixelateEffectConfig {
|
|
154
|
+
type: "pixelate";
|
|
155
|
+
size: number;
|
|
156
|
+
}
|
|
157
|
+
export interface IGrayscaleEffectConfig {
|
|
158
|
+
type: "grayscale";
|
|
159
|
+
amount?: number;
|
|
160
|
+
}
|
|
161
|
+
export interface IContrastEffectConfig {
|
|
162
|
+
type: "contrast";
|
|
163
|
+
amount: number;
|
|
164
|
+
}
|
|
165
|
+
export interface IBrightnessEffectConfig {
|
|
166
|
+
type: "brightness";
|
|
167
|
+
amount: number;
|
|
168
|
+
}
|
|
169
|
+
export interface IHueEffectConfig {
|
|
170
|
+
type: "hue";
|
|
171
|
+
rotation: number;
|
|
172
|
+
}
|
|
173
|
+
export interface ISaturationEffectConfig {
|
|
174
|
+
type: "saturation";
|
|
175
|
+
amount: number;
|
|
176
|
+
}
|
|
177
|
+
export interface IDuotoneEffectConfig {
|
|
178
|
+
type: "duotone";
|
|
179
|
+
color1?: string;
|
|
180
|
+
color2?: string;
|
|
181
|
+
darkColor?: string;
|
|
182
|
+
lightColor?: string;
|
|
183
|
+
threshold?: number;
|
|
184
|
+
}
|
|
185
|
+
export interface ILightLeakEffectConfig {
|
|
186
|
+
type: "lightLeak";
|
|
187
|
+
intensity?: number;
|
|
188
|
+
progress?: number;
|
|
189
|
+
seed?: number;
|
|
190
|
+
hueShift?: number;
|
|
191
|
+
}
|
|
192
|
+
export type RemotionEffectConfig = IBlurEffectConfig | IVignetteEffectConfig | IChromaticAberrationEffectConfig | INoiseEffectConfig | IPixelateEffectConfig | IGrayscaleEffectConfig | IContrastEffectConfig | IBrightnessEffectConfig | IHueEffectConfig | ISaturationEffectConfig | IDuotoneEffectConfig | ILightLeakEffectConfig;
|
|
101
193
|
interface ICommonDetails {
|
|
102
194
|
width?: number;
|
|
103
195
|
height?: number;
|
|
@@ -110,6 +202,7 @@ interface ICommonDetails {
|
|
|
110
202
|
left?: number | string;
|
|
111
203
|
borderColor?: string;
|
|
112
204
|
borderWidth?: number;
|
|
205
|
+
effects?: RemotionEffectConfig[];
|
|
113
206
|
}
|
|
114
207
|
export interface ITrackItemBase {
|
|
115
208
|
id: string;
|