@cliquify.me/types 3.1.14 → 3.1.16

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +25 -3
  2. 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" | "illustration";
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;
@@ -77,6 +77,8 @@ export type ITrackItem = (ITrackItemBase & {
77
77
  type: "composition";
78
78
  }) | (ITrackItemBase & {
79
79
  type: "illustration";
80
+ }) | (ITrackItemBase & {
81
+ type: "shape";
80
82
  });
81
83
  export interface IStateManager {
82
84
  getState(): State;
@@ -291,6 +293,22 @@ export interface IIllustrationDetails extends ICommonDetails {
291
293
  visibility: "visible" | "hidden";
292
294
  colorMap: Record<string, string>;
293
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
+ }
294
312
  export interface IImageDetails extends ICommonDetails {
295
313
  src: string;
296
314
  background: string;
@@ -351,7 +369,7 @@ export interface ITimelineScaleState {
351
369
  segments: number;
352
370
  index: number;
353
371
  }
354
- export type IItem = IAudio | IImage | IText | IVideo | ICaption | ITemplate | IComposition | IIllustration;
372
+ export type IItem = IAudio | IImage | IText | IVideo | ICaption | ITemplate | IComposition | IIllustration | IShape;
355
373
  export interface IComposition extends ITrackItemBase {
356
374
  type: "composition";
357
375
  trackItemIds: string[];
@@ -389,6 +407,10 @@ export interface IIllustration extends ITrackItemBase {
389
407
  type: "illustration";
390
408
  details: IIllustrationDetails;
391
409
  }
410
+ export interface IShape extends ITrackItemBase {
411
+ type: "shape";
412
+ details: IShapeDetails;
413
+ }
392
414
  export interface IVideo extends ITrackItemBase {
393
415
  type: "video";
394
416
  details: IVideoDetails;
@@ -418,7 +440,7 @@ export interface ITrack {
418
440
  }
419
441
  export type ITrackItemAndDetails = ITrackItem & IItem;
420
442
  export type IRecordItemAndDetails = Record<string, ITrackItem & IItem>;
421
- export type ITrackType = "main" | "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration";
443
+ export type ITrackType = "main" | "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration" | "shape";
422
444
  export interface ITimelineScrollState {
423
445
  /**
424
446
  * Timeline scroll state by X-axis.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cliquify.me/types",
3
- "version": "3.1.14",
3
+ "version": "3.1.16",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist"