@cliquify.me/types 8.0.2 → 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 +59 -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";
@@ -275,7 +275,7 @@ export interface ITrackItemBase {
275
275
  transition: ITransition;
276
276
  };
277
277
  }
278
- 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;
279
279
  export interface ICaptionWord {
280
280
  end: number;
281
281
  start: number;
@@ -645,6 +645,63 @@ export interface IRect extends ITrackItemBase {
645
645
  type: "rect";
646
646
  details: IRectDetails;
647
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
+ }
648
705
  export interface IProgressBar extends ITrackItemBase {
649
706
  type: "progressBar";
650
707
  details: IProgressBarDetails;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cliquify.me/types",
3
- "version": "8.0.2",
3
+ "version": "8.0.3",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"