@cliquify.me/types 3.1.13 → 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 +28 -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";
|
|
16
16
|
export interface IDisplay {
|
|
17
17
|
from: number;
|
|
18
18
|
to: number;
|
|
@@ -75,6 +75,8 @@ export type ITrackItem = (ITrackItemBase & {
|
|
|
75
75
|
type: "template";
|
|
76
76
|
}) | (ITrackItemBase & {
|
|
77
77
|
type: "composition";
|
|
78
|
+
}) | (ITrackItemBase & {
|
|
79
|
+
type: "illustration";
|
|
78
80
|
});
|
|
79
81
|
export interface IStateManager {
|
|
80
82
|
getState(): State;
|
|
@@ -232,6 +234,7 @@ export interface ICaptionDetails extends ICommonDetails {
|
|
|
232
234
|
appearedColor?: string;
|
|
233
235
|
activeColor?: string;
|
|
234
236
|
activeFillColor?: string;
|
|
237
|
+
animation?: string;
|
|
235
238
|
}
|
|
236
239
|
export interface ITextDetails extends ICommonDetails {
|
|
237
240
|
skewX: number;
|
|
@@ -270,6 +273,24 @@ export interface ITextDetails extends ICommonDetails {
|
|
|
270
273
|
blur: number;
|
|
271
274
|
};
|
|
272
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
|
+
}
|
|
273
294
|
export interface IImageDetails extends ICommonDetails {
|
|
274
295
|
src: string;
|
|
275
296
|
background: string;
|
|
@@ -330,7 +351,7 @@ export interface ITimelineScaleState {
|
|
|
330
351
|
segments: number;
|
|
331
352
|
index: number;
|
|
332
353
|
}
|
|
333
|
-
export type IItem = IAudio | IImage | IText | IVideo | ICaption | ITemplate | IComposition;
|
|
354
|
+
export type IItem = IAudio | IImage | IText | IVideo | ICaption | ITemplate | IComposition | IIllustration;
|
|
334
355
|
export interface IComposition extends ITrackItemBase {
|
|
335
356
|
type: "composition";
|
|
336
357
|
trackItemIds: string[];
|
|
@@ -364,6 +385,10 @@ export interface IImage extends ITrackItemBase {
|
|
|
364
385
|
type: "image";
|
|
365
386
|
details: IImageDetails;
|
|
366
387
|
}
|
|
388
|
+
export interface IIllustration extends ITrackItemBase {
|
|
389
|
+
type: "illustration";
|
|
390
|
+
details: IIllustrationDetails;
|
|
391
|
+
}
|
|
367
392
|
export interface IVideo extends ITrackItemBase {
|
|
368
393
|
type: "video";
|
|
369
394
|
details: IVideoDetails;
|
|
@@ -393,7 +418,7 @@ export interface ITrack {
|
|
|
393
418
|
}
|
|
394
419
|
export type ITrackItemAndDetails = ITrackItem & IItem;
|
|
395
420
|
export type IRecordItemAndDetails = Record<string, ITrackItem & IItem>;
|
|
396
|
-
export type ITrackType = "main" | "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition";
|
|
421
|
+
export type ITrackType = "main" | "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration";
|
|
397
422
|
export interface ITimelineScrollState {
|
|
398
423
|
/**
|
|
399
424
|
* Timeline scroll state by X-axis.
|