@cliquify.me/types 3.1.12 → 3.1.14
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 +38 -11
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface State {
|
|
|
12
12
|
structure: ItemStructure[];
|
|
13
13
|
fps: number;
|
|
14
14
|
}
|
|
15
|
-
export type ItemType = "text" | "image" | "video" | "audio" | "helper" | "caption" | "template";
|
|
15
|
+
export type ItemType = "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration";
|
|
16
16
|
export interface IDisplay {
|
|
17
17
|
from: number;
|
|
18
18
|
to: number;
|
|
@@ -73,6 +73,10 @@ export type ITrackItem = (ITrackItemBase & {
|
|
|
73
73
|
type: "caption";
|
|
74
74
|
}) | (ITrackItemBase & {
|
|
75
75
|
type: "template";
|
|
76
|
+
}) | (ITrackItemBase & {
|
|
77
|
+
type: "composition";
|
|
78
|
+
}) | (ITrackItemBase & {
|
|
79
|
+
type: "illustration";
|
|
76
80
|
});
|
|
77
81
|
export interface IStateManager {
|
|
78
82
|
getState(): State;
|
|
@@ -230,6 +234,7 @@ export interface ICaptionDetails extends ICommonDetails {
|
|
|
230
234
|
appearedColor?: string;
|
|
231
235
|
activeColor?: string;
|
|
232
236
|
activeFillColor?: string;
|
|
237
|
+
animation?: string;
|
|
233
238
|
}
|
|
234
239
|
export interface ITextDetails extends ICommonDetails {
|
|
235
240
|
skewX: number;
|
|
@@ -268,6 +273,24 @@ export interface ITextDetails extends ICommonDetails {
|
|
|
268
273
|
blur: number;
|
|
269
274
|
};
|
|
270
275
|
}
|
|
276
|
+
export interface IIllustrationDetails extends ICommonDetails {
|
|
277
|
+
path: string;
|
|
278
|
+
src: string;
|
|
279
|
+
width: number;
|
|
280
|
+
height: number;
|
|
281
|
+
opacity: number;
|
|
282
|
+
transform: string;
|
|
283
|
+
border: string;
|
|
284
|
+
top: string;
|
|
285
|
+
left: string;
|
|
286
|
+
flipX: boolean;
|
|
287
|
+
flipY: boolean;
|
|
288
|
+
rotate: string;
|
|
289
|
+
svgString: string;
|
|
290
|
+
initialSvgString: string;
|
|
291
|
+
visibility: "visible" | "hidden";
|
|
292
|
+
colorMap: Record<string, string>;
|
|
293
|
+
}
|
|
271
294
|
export interface IImageDetails extends ICommonDetails {
|
|
272
295
|
src: string;
|
|
273
296
|
background: string;
|
|
@@ -328,7 +351,15 @@ export interface ITimelineScaleState {
|
|
|
328
351
|
segments: number;
|
|
329
352
|
index: number;
|
|
330
353
|
}
|
|
331
|
-
export type IItem = IAudio | IImage | IText | IVideo | ICaption | ITemplate;
|
|
354
|
+
export type IItem = IAudio | IImage | IText | IVideo | ICaption | ITemplate | IComposition | IIllustration;
|
|
355
|
+
export interface IComposition extends ITrackItemBase {
|
|
356
|
+
type: "composition";
|
|
357
|
+
trackItemIds: string[];
|
|
358
|
+
trackItemsMap: Record<string, ITrackItem>;
|
|
359
|
+
trackItemDetailsMap: Record<string, IItem>;
|
|
360
|
+
tracks: ITrack[];
|
|
361
|
+
size: ISize;
|
|
362
|
+
}
|
|
332
363
|
export interface IAudio extends ITrackItemBase {
|
|
333
364
|
type: "audio";
|
|
334
365
|
details: IAudioDetails;
|
|
@@ -342,14 +373,6 @@ export interface ITemplate extends ITrackItemBase {
|
|
|
342
373
|
transitionIds: string[];
|
|
343
374
|
size: ISize;
|
|
344
375
|
}
|
|
345
|
-
export interface ITemplateDetails {
|
|
346
|
-
width: number;
|
|
347
|
-
height: number;
|
|
348
|
-
top: number;
|
|
349
|
-
left: number;
|
|
350
|
-
scale: number;
|
|
351
|
-
rotate: number;
|
|
352
|
-
}
|
|
353
376
|
export interface ICaption extends ITrackItemBase {
|
|
354
377
|
type: "caption";
|
|
355
378
|
details: ICaptionDetails;
|
|
@@ -362,6 +385,10 @@ export interface IImage extends ITrackItemBase {
|
|
|
362
385
|
type: "image";
|
|
363
386
|
details: IImageDetails;
|
|
364
387
|
}
|
|
388
|
+
export interface IIllustration extends ITrackItemBase {
|
|
389
|
+
type: "illustration";
|
|
390
|
+
details: IIllustrationDetails;
|
|
391
|
+
}
|
|
365
392
|
export interface IVideo extends ITrackItemBase {
|
|
366
393
|
type: "video";
|
|
367
394
|
details: IVideoDetails;
|
|
@@ -391,7 +418,7 @@ export interface ITrack {
|
|
|
391
418
|
}
|
|
392
419
|
export type ITrackItemAndDetails = ITrackItem & IItem;
|
|
393
420
|
export type IRecordItemAndDetails = Record<string, ITrackItem & IItem>;
|
|
394
|
-
export type ITrackType = "main" | "text" | "image" | "video" | "audio" | "helper" | "caption" | "template";
|
|
421
|
+
export type ITrackType = "main" | "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration";
|
|
395
422
|
export interface ITimelineScrollState {
|
|
396
423
|
/**
|
|
397
424
|
* Timeline scroll state by X-axis.
|