@cliquify.me/types 8.0.1 → 8.0.3

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 +90 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type ItemType = "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration" | "shape" | "rect" | "progressBar" | "progressFrame" | "progressSquare" | "radialAudioBars" | "linealAudioBars" | "waveAudioBars" | "hillAudioBars";
1
+ export type ItemType = "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration" | "shape" | "rect" | "circle" | "triangle" | "star" | "polygon" | "ellipse" | "progressBar" | "progressFrame" | "progressSquare" | "radialAudioBars" | "linealAudioBars" | "waveAudioBars" | "hillAudioBars";
2
2
  export type ITrackType = "main" | "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration" | "shape" | "rect" | "progressBar" | "progressSquare" | "progressFrame" | "radialAudioBars" | "linealAudioBars";
3
3
  export type ITransitionType = "none" | "fade" | "slide" | "wipe" | "flip" | "clockWipe" | "star" | "circle" | "rectangle" | "slidingDoors";
4
4
  export type IKindHistory = "add" | "remove" | "update" | "replace" | "update:details" | "layer:selection" | "undo" | "design:resize" | "design:load" | "redo" | "add:transition" | "edit:track";
@@ -88,6 +88,37 @@ export interface ICompositionAnimation {
88
88
  speed?: number;
89
89
  angle?: number;
90
90
  seed?: number;
91
+ xRepetitions?: number;
92
+ yRepetitions?: number;
93
+ scale?: number;
94
+ noiseScale?: number;
95
+ noiseMoveX?: number;
96
+ noiseMoveY?: number;
97
+ fps?: number;
98
+ threshold?: number;
99
+ seedOffset?: number;
100
+ initialXRepetitions?: number;
101
+ initialYRepetitions?: number;
102
+ initialGapX?: number;
103
+ initialGapY?: number;
104
+ initialScale?: number;
105
+ initialNoiseScale?: number;
106
+ initialNoiseMoveX?: number;
107
+ initialNoiseMoveY?: number;
108
+ initialFps?: number;
109
+ initialThreshold?: number;
110
+ initialSeedOffset?: number;
111
+ toXRepetitions?: number;
112
+ toYRepetitions?: number;
113
+ toGapX?: number;
114
+ toGapY?: number;
115
+ toScale?: number;
116
+ toNoiseScale?: number;
117
+ toNoiseMoveX?: number;
118
+ toNoiseMoveY?: number;
119
+ toFps?: number;
120
+ toThreshold?: number;
121
+ toSeedOffset?: number;
91
122
  };
92
123
  text?: string;
93
124
  persist?: boolean;
@@ -244,7 +275,7 @@ export interface ITrackItemBase {
244
275
  transition: ITransition;
245
276
  };
246
277
  }
247
- export type ITrackItem = IAudio | IImage | IText | IVideo | ICaption | ITemplate | IComposition | IIllustration | IShape | IRect | IProgressBar | IProgressSquare | IProgressFrame | IRadialAudioBars | ILinealAudioBars | IWaveAudioBars | IHillAudioBars;
278
+ export type ITrackItem = IAudio | IImage | IText | IVideo | ICaption | ITemplate | IComposition | IIllustration | IShape | IRect | ICircle | ITriangle | IStar | IPolygon | IEllipse | IProgressBar | IProgressSquare | IProgressFrame | IRadialAudioBars | ILinealAudioBars | IWaveAudioBars | IHillAudioBars;
248
279
  export interface ICaptionWord {
249
280
  end: number;
250
281
  start: number;
@@ -614,6 +645,63 @@ export interface IRect extends ITrackItemBase {
614
645
  type: "rect";
615
646
  details: IRectDetails;
616
647
  }
648
+ export interface ICircleDetails extends ICommonDetails {
649
+ radius: number;
650
+ backgroundColor?: string;
651
+ boxShadow?: IBoxShadow;
652
+ border?: string;
653
+ }
654
+ export interface ITriangleDetails extends ICommonDetails {
655
+ length: number;
656
+ direction?: string;
657
+ backgroundColor?: string;
658
+ boxShadow?: IBoxShadow;
659
+ border?: string;
660
+ }
661
+ export interface IStarDetails extends ICommonDetails {
662
+ points: number;
663
+ innerRadius: number;
664
+ outerRadius: number;
665
+ backgroundColor?: string;
666
+ boxShadow?: IBoxShadow;
667
+ border?: string;
668
+ }
669
+ export interface IPolygonDetails extends ICommonDetails {
670
+ points: number;
671
+ radius: number;
672
+ backgroundColor?: string;
673
+ boxShadow?: IBoxShadow;
674
+ border?: string;
675
+ }
676
+ export interface IEllipseDetails extends ICommonDetails {
677
+ rx: number;
678
+ ry: number;
679
+ stroke?: string;
680
+ strokeWidth?: number;
681
+ backgroundColor?: string;
682
+ boxShadow?: IBoxShadow;
683
+ border?: string;
684
+ }
685
+ export interface ICircle extends ITrackItemBase {
686
+ type: "circle";
687
+ details: ICircleDetails;
688
+ }
689
+ export interface ITriangle extends ITrackItemBase {
690
+ type: "triangle";
691
+ details: ITriangleDetails;
692
+ }
693
+ export interface IStar extends ITrackItemBase {
694
+ type: "star";
695
+ details: IStarDetails;
696
+ }
697
+ export interface IPolygon extends ITrackItemBase {
698
+ type: "polygon";
699
+ details: IPolygonDetails;
700
+ }
701
+ export interface IEllipse extends ITrackItemBase {
702
+ type: "ellipse";
703
+ details: IEllipseDetails;
704
+ }
617
705
  export interface IProgressBar extends ITrackItemBase {
618
706
  type: "progressBar";
619
707
  details: IProgressBarDetails;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cliquify.me/types",
3
- "version": "8.0.1",
3
+ "version": "8.0.3",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"