@cliquify.me/types 3.1.13 → 3.1.15
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 +50 -3
- 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" | "composition";
|
|
15
|
+
export type ItemType = "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration" | "shape";
|
|
16
16
|
export interface IDisplay {
|
|
17
17
|
from: number;
|
|
18
18
|
to: number;
|
|
@@ -75,6 +75,10 @@ export type ITrackItem = (ITrackItemBase & {
|
|
|
75
75
|
type: "template";
|
|
76
76
|
}) | (ITrackItemBase & {
|
|
77
77
|
type: "composition";
|
|
78
|
+
}) | (ITrackItemBase & {
|
|
79
|
+
type: "illustration";
|
|
80
|
+
}) | (ITrackItemBase & {
|
|
81
|
+
type: "shape";
|
|
78
82
|
});
|
|
79
83
|
export interface IStateManager {
|
|
80
84
|
getState(): State;
|
|
@@ -232,6 +236,7 @@ export interface ICaptionDetails extends ICommonDetails {
|
|
|
232
236
|
appearedColor?: string;
|
|
233
237
|
activeColor?: string;
|
|
234
238
|
activeFillColor?: string;
|
|
239
|
+
animation?: string;
|
|
235
240
|
}
|
|
236
241
|
export interface ITextDetails extends ICommonDetails {
|
|
237
242
|
skewX: number;
|
|
@@ -270,6 +275,40 @@ export interface ITextDetails extends ICommonDetails {
|
|
|
270
275
|
blur: number;
|
|
271
276
|
};
|
|
272
277
|
}
|
|
278
|
+
export interface IIllustrationDetails extends ICommonDetails {
|
|
279
|
+
path: string;
|
|
280
|
+
src: string;
|
|
281
|
+
width: number;
|
|
282
|
+
height: number;
|
|
283
|
+
opacity: number;
|
|
284
|
+
transform: string;
|
|
285
|
+
border: string;
|
|
286
|
+
top: string;
|
|
287
|
+
left: string;
|
|
288
|
+
flipX: boolean;
|
|
289
|
+
flipY: boolean;
|
|
290
|
+
rotate: string;
|
|
291
|
+
svgString: string;
|
|
292
|
+
initialSvgString: string;
|
|
293
|
+
visibility: "visible" | "hidden";
|
|
294
|
+
colorMap: Record<string, string>;
|
|
295
|
+
}
|
|
296
|
+
export interface IShapeDetails extends ICommonDetails {
|
|
297
|
+
path: string;
|
|
298
|
+
src: string;
|
|
299
|
+
width: number;
|
|
300
|
+
height: number;
|
|
301
|
+
opacity: number;
|
|
302
|
+
transform: string;
|
|
303
|
+
border: string;
|
|
304
|
+
top: string;
|
|
305
|
+
left: string;
|
|
306
|
+
flipX: boolean;
|
|
307
|
+
flipY: boolean;
|
|
308
|
+
rotate: string;
|
|
309
|
+
visibility: "visible" | "hidden";
|
|
310
|
+
backgroundColor: string;
|
|
311
|
+
}
|
|
273
312
|
export interface IImageDetails extends ICommonDetails {
|
|
274
313
|
src: string;
|
|
275
314
|
background: string;
|
|
@@ -330,7 +369,7 @@ export interface ITimelineScaleState {
|
|
|
330
369
|
segments: number;
|
|
331
370
|
index: number;
|
|
332
371
|
}
|
|
333
|
-
export type IItem = IAudio | IImage | IText | IVideo | ICaption | ITemplate | IComposition;
|
|
372
|
+
export type IItem = IAudio | IImage | IText | IVideo | ICaption | ITemplate | IComposition | IIllustration | IShape;
|
|
334
373
|
export interface IComposition extends ITrackItemBase {
|
|
335
374
|
type: "composition";
|
|
336
375
|
trackItemIds: string[];
|
|
@@ -364,6 +403,14 @@ export interface IImage extends ITrackItemBase {
|
|
|
364
403
|
type: "image";
|
|
365
404
|
details: IImageDetails;
|
|
366
405
|
}
|
|
406
|
+
export interface IIllustration extends ITrackItemBase {
|
|
407
|
+
type: "illustration";
|
|
408
|
+
details: IIllustrationDetails;
|
|
409
|
+
}
|
|
410
|
+
export interface IShape extends ITrackItemBase {
|
|
411
|
+
type: "shape";
|
|
412
|
+
details: IShapeDetails;
|
|
413
|
+
}
|
|
367
414
|
export interface IVideo extends ITrackItemBase {
|
|
368
415
|
type: "video";
|
|
369
416
|
details: IVideoDetails;
|
|
@@ -393,7 +440,7 @@ export interface ITrack {
|
|
|
393
440
|
}
|
|
394
441
|
export type ITrackItemAndDetails = ITrackItem & IItem;
|
|
395
442
|
export type IRecordItemAndDetails = Record<string, ITrackItem & IItem>;
|
|
396
|
-
export type ITrackType = "main" | "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition";
|
|
443
|
+
export type ITrackType = "main" | "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration" | "shape";
|
|
397
444
|
export interface ITimelineScrollState {
|
|
398
445
|
/**
|
|
399
446
|
* Timeline scroll state by X-axis.
|