@designcombo/state 5.0.3 → 5.0.4
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.es.js +433 -428
- package/dist/index.umd.js +3 -3
- package/dist/state-options.d.ts +15 -0
- package/dist/state.d.ts +7 -1
- package/dist/utils/load-item.d.ts +10 -84
- package/package.json +3 -3
@@ -14,17 +14,17 @@ export declare const loadVideoItem: (layer: ITrackItem & IVideo, options: Partia
|
|
14
14
|
type: string;
|
15
15
|
name: string;
|
16
16
|
details: IVideoDetails;
|
17
|
-
animations: {
|
18
|
-
in: import('@designcombo/types').IBasicAnimation;
|
19
|
-
out: import('@designcombo/types').IBasicAnimation;
|
20
|
-
loop: import('@designcombo/types').IBasicAnimation;
|
21
|
-
} | undefined;
|
22
17
|
playbackRate: number;
|
23
18
|
display: IDisplay;
|
24
19
|
duration: number;
|
25
20
|
id: string;
|
26
21
|
preview?: string;
|
27
22
|
isMain?: boolean;
|
23
|
+
animations?: {
|
24
|
+
in: import('@designcombo/types').IBasicAnimation;
|
25
|
+
out: import('@designcombo/types').IBasicAnimation;
|
26
|
+
loop: import('@designcombo/types').IBasicAnimation;
|
27
|
+
};
|
28
28
|
modifier?: IDisplay;
|
29
29
|
activeEdit?: boolean;
|
30
30
|
metadata: Record<string, any>;
|
@@ -316,11 +316,6 @@ export declare const loadRectItem: (payload: ITrackItem & IRect, options: {
|
|
316
316
|
blur: any;
|
317
317
|
brightness: any;
|
318
318
|
};
|
319
|
-
animations: {
|
320
|
-
in: import('@designcombo/types').IBasicAnimation;
|
321
|
-
out: import('@designcombo/types').IBasicAnimation;
|
322
|
-
loop: import('@designcombo/types').IBasicAnimation;
|
323
|
-
} | undefined;
|
324
319
|
metadata: Record<string, any>;
|
325
320
|
}>;
|
326
321
|
export declare const loadImageItem: (payload: ITrackItem & IImage, options: {
|
@@ -357,11 +352,6 @@ export declare const loadImageItem: (payload: ITrackItem & IImage, options: {
|
|
357
352
|
rotate: any;
|
358
353
|
visibility: any;
|
359
354
|
};
|
360
|
-
animations: {
|
361
|
-
in: import('@designcombo/types').IBasicAnimation;
|
362
|
-
out: import('@designcombo/types').IBasicAnimation;
|
363
|
-
loop: import('@designcombo/types').IBasicAnimation;
|
364
|
-
} | undefined;
|
365
355
|
metadata: Record<string, any>;
|
366
356
|
}>;
|
367
357
|
export declare const loadCaptionItem: (trackItem: ITrackItem, options: {
|
@@ -465,11 +455,6 @@ export declare const loadTextItem: (payload: ITrackItem & IText, options: {
|
|
465
455
|
transform?: string;
|
466
456
|
borderRadius?: number;
|
467
457
|
};
|
468
|
-
animations: {
|
469
|
-
in: import('@designcombo/types').IBasicAnimation;
|
470
|
-
out: import('@designcombo/types').IBasicAnimation;
|
471
|
-
loop: import('@designcombo/types').IBasicAnimation;
|
472
|
-
} | undefined;
|
473
458
|
metadata: {};
|
474
459
|
}>;
|
475
460
|
export declare const loadTrackItem: (payload: ITrackItem & (IVideo | IAudio | IImage | IText | ICaption | ITemplate), options?: {
|
@@ -485,17 +470,17 @@ export declare const loadTrackItem: (payload: ITrackItem & (IVideo | IAudio | II
|
|
485
470
|
type: string;
|
486
471
|
name: string;
|
487
472
|
details: IVideoDetails;
|
488
|
-
animations: {
|
489
|
-
in: import('@designcombo/types').IBasicAnimation;
|
490
|
-
out: import('@designcombo/types').IBasicAnimation;
|
491
|
-
loop: import('@designcombo/types').IBasicAnimation;
|
492
|
-
} | undefined;
|
493
473
|
playbackRate: number;
|
494
474
|
display: IDisplay;
|
495
475
|
duration: number;
|
496
476
|
id: string;
|
497
477
|
preview?: string;
|
498
478
|
isMain?: boolean;
|
479
|
+
animations?: {
|
480
|
+
in: import('@designcombo/types').IBasicAnimation;
|
481
|
+
out: import('@designcombo/types').IBasicAnimation;
|
482
|
+
loop: import('@designcombo/types').IBasicAnimation;
|
483
|
+
};
|
499
484
|
modifier?: IDisplay;
|
500
485
|
activeEdit?: boolean;
|
501
486
|
metadata: Record<string, any>;
|
@@ -563,60 +548,6 @@ export declare const loadTrackItem: (payload: ITrackItem & (IVideo | IAudio | II
|
|
563
548
|
rotate: any;
|
564
549
|
visibility: any;
|
565
550
|
};
|
566
|
-
animations: {
|
567
|
-
in: import('@designcombo/types').IBasicAnimation;
|
568
|
-
out: import('@designcombo/types').IBasicAnimation;
|
569
|
-
loop: import('@designcombo/types').IBasicAnimation;
|
570
|
-
} | undefined;
|
571
|
-
metadata: Record<string, any>;
|
572
|
-
} | {
|
573
|
-
id: string;
|
574
|
-
name: string;
|
575
|
-
type: string;
|
576
|
-
display: IDisplay;
|
577
|
-
details: {
|
578
|
-
text: string;
|
579
|
-
height: number;
|
580
|
-
fontUrl: string;
|
581
|
-
top: string | number;
|
582
|
-
left: string | number;
|
583
|
-
borderWidth: number;
|
584
|
-
borderColor: string;
|
585
|
-
boxShadow: {
|
586
|
-
color: string;
|
587
|
-
x: number;
|
588
|
-
y: number;
|
589
|
-
blur: number;
|
590
|
-
};
|
591
|
-
words: import('@designcombo/types').ICaptionWord[];
|
592
|
-
appearedColor: string;
|
593
|
-
activeColor: string;
|
594
|
-
activeFillColor: string;
|
595
|
-
skewX: number;
|
596
|
-
skewY: number;
|
597
|
-
fontSize: number;
|
598
|
-
fontFamily: string;
|
599
|
-
color: string;
|
600
|
-
lineHeight: number | string;
|
601
|
-
letterSpacing: number | string;
|
602
|
-
fontWeight: number;
|
603
|
-
fontStyle: string;
|
604
|
-
textDecoration: string;
|
605
|
-
textAlign: "center" | "left" | "right";
|
606
|
-
wordSpacing: number | string;
|
607
|
-
textShadow: string;
|
608
|
-
backgroundColor: string;
|
609
|
-
opacity: number;
|
610
|
-
width: number;
|
611
|
-
textTransform: "capitalize" | "uppercase" | "lowercase";
|
612
|
-
border: string;
|
613
|
-
wordWrap: "normal" | "break-word";
|
614
|
-
wordBreak: "normal" | "break-word" | "break-all";
|
615
|
-
WebkitTextStrokeColor: string;
|
616
|
-
WebkitTextStrokeWidth: string;
|
617
|
-
transform?: string;
|
618
|
-
borderRadius?: number;
|
619
|
-
};
|
620
551
|
metadata: Record<string, any>;
|
621
552
|
} | {
|
622
553
|
id: string;
|
@@ -657,11 +588,6 @@ export declare const loadTrackItem: (payload: ITrackItem & (IVideo | IAudio | II
|
|
657
588
|
transform?: string;
|
658
589
|
borderRadius?: number;
|
659
590
|
};
|
660
|
-
animations: {
|
661
|
-
in: import('@designcombo/types').IBasicAnimation;
|
662
|
-
out: import('@designcombo/types').IBasicAnimation;
|
663
|
-
loop: import('@designcombo/types').IBasicAnimation;
|
664
|
-
} | undefined;
|
665
591
|
metadata: {};
|
666
592
|
}>;
|
667
593
|
export declare function checkIfItemIsInTrack(tracks: ITrack[], trackItemIds: string[]): boolean;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@designcombo/state",
|
3
|
-
"version": "5.0.
|
3
|
+
"version": "5.0.4",
|
4
4
|
"private": false,
|
5
5
|
"files": [
|
6
6
|
"dist"
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"typescript": "^5.3.3",
|
26
26
|
"vite": "^5.2.0",
|
27
27
|
"vite-plugin-dts": "^3.9.1",
|
28
|
-
"@designcombo/types": "5.0.
|
28
|
+
"@designcombo/types": "5.0.4",
|
29
29
|
"@designcombo/typescript-config": "0.0.0"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
@@ -39,7 +39,7 @@
|
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
41
41
|
"@designcombo/events": "^1.0.2",
|
42
|
-
"@designcombo/types": "5.0.
|
42
|
+
"@designcombo/types": "5.0.4"
|
43
43
|
},
|
44
44
|
"scripts": {
|
45
45
|
"dev": "vite",
|