@rendley/sdk 1.12.17 → 1.12.19

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.
@@ -1,5 +1,6 @@
1
1
  import { DemuxerPacket, FFFSMountOptions, FFFSPath, FFFSType, FFMessageFrameData, FFMessageLoadConfig, FFMessageRenderSettings, FileData, FSNode, IsFirst, LogEventCallback, OK, ProgressEventCallback, FFMessageMuxerData, FFMessageInitMuxerData, FFMessageAuthentificateData, FFMessageFetchTSChunksData, FFMessageTranscodeData, FFMessageFrame } from "./types";
2
2
  import { MediaInfo } from '../../modules/ffmpeg/types/FFmpeg.types';
3
+ import { HashAlgorithmEnum } from '../../types/hash.types';
3
4
  type FFMessageOptions = {
4
5
  signal?: AbortSignal;
5
6
  };
@@ -219,6 +220,7 @@ export declare class FFmpeg {
219
220
  * @category FFmpeg
220
221
  */
221
222
  getMediaInfo: (path: string, { signal }?: FFMessageOptions) => Promise<MediaInfo>;
223
+ getFileHash: (path: string, algorithm: HashAlgorithmEnum, { signal }?: FFMessageOptions) => Promise<string>;
222
224
  getMediaSubtitles: (path: string, { signal }?: FFMessageOptions) => Promise<string>;
223
225
  private tmpADownloadTag;
224
226
  downloadFile: (path: string, downloadFileName: string | undefined) => Promise<OK>;
@@ -26,6 +26,7 @@ export declare enum FFMessageType {
26
26
  RENDER_ADD_FRAME = "RENDER_ADD_FRAME",
27
27
  GET_INFO = "GET_INFO",
28
28
  GET_SUBTITLES = "GET_SUBTITLES",
29
+ GET_HASH = "GET_HASH",
29
30
  DEMUXER_INIT = "DEMUXER_INIT",
30
31
  DEMUXER_SEEK = "DEMUXER_SEEK",
31
32
  DEMUXER_CLOSE = "DEMUXER_CLOSE",
@@ -1,3 +1,4 @@
1
+ import { HashAlgorithmEnum } from '../../types/hash.types';
1
2
  export type FFFSPath = string;
2
3
  export type FFmpegCoreModule = any;
3
4
  export type FFmpegCoreModuleFactory = any;
@@ -109,6 +110,10 @@ export interface FFMessageListDirData {
109
110
  export interface FFMessageGetInfoData {
110
111
  path: FFFSPath;
111
112
  }
113
+ export interface FFMessageGetHashData {
114
+ path: FFFSPath;
115
+ algorithm: HashAlgorithmEnum;
116
+ }
112
117
  export interface FFMessageGetSubtitlesData {
113
118
  path: FFFSPath;
114
119
  }
@@ -42,7 +42,7 @@ export interface ClipOptions<K extends ClipStyle = ClipStyle> {
42
42
  }
43
43
  export declare const AnimationClassSchema: z.ZodObject<{
44
44
  animationDataIn: z.ZodOptional<z.ZodObject<{
45
- name: z.ZodString;
45
+ name: z.ZodDefault<z.ZodString>;
46
46
  speed: z.ZodOptional<z.ZodNumber>;
47
47
  offset: z.ZodOptional<z.ZodNumber>;
48
48
  amplification: z.ZodOptional<z.ZodNumber>;
@@ -114,7 +114,6 @@ export declare const AnimationClassSchema: z.ZodObject<{
114
114
  offset?: number | undefined;
115
115
  amplification?: number | undefined;
116
116
  }, {
117
- name: string;
118
117
  propertyAnimations: {
119
118
  property: string;
120
119
  keyframes: {
@@ -127,6 +126,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
127
126
  inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
128
127
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
129
128
  }[];
129
+ name?: string | undefined;
130
130
  speed?: number | undefined;
131
131
  offset?: number | undefined;
132
132
  amplification?: number | undefined;
@@ -134,7 +134,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
134
134
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
135
135
  }>>;
136
136
  animationDataOut: z.ZodOptional<z.ZodObject<{
137
- name: z.ZodString;
137
+ name: z.ZodDefault<z.ZodString>;
138
138
  speed: z.ZodOptional<z.ZodNumber>;
139
139
  offset: z.ZodOptional<z.ZodNumber>;
140
140
  amplification: z.ZodOptional<z.ZodNumber>;
@@ -206,7 +206,6 @@ export declare const AnimationClassSchema: z.ZodObject<{
206
206
  offset?: number | undefined;
207
207
  amplification?: number | undefined;
208
208
  }, {
209
- name: string;
210
209
  propertyAnimations: {
211
210
  property: string;
212
211
  keyframes: {
@@ -219,6 +218,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
219
218
  inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
220
219
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
221
220
  }[];
221
+ name?: string | undefined;
222
222
  speed?: number | undefined;
223
223
  offset?: number | undefined;
224
224
  amplification?: number | undefined;
@@ -226,7 +226,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
226
226
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
227
227
  }>>;
228
228
  animationDataLoop: z.ZodOptional<z.ZodObject<{
229
- name: z.ZodString;
229
+ name: z.ZodDefault<z.ZodString>;
230
230
  speed: z.ZodOptional<z.ZodNumber>;
231
231
  offset: z.ZodOptional<z.ZodNumber>;
232
232
  amplification: z.ZodOptional<z.ZodNumber>;
@@ -298,7 +298,6 @@ export declare const AnimationClassSchema: z.ZodObject<{
298
298
  offset?: number | undefined;
299
299
  amplification?: number | undefined;
300
300
  }, {
301
- name: string;
302
301
  propertyAnimations: {
303
302
  property: string;
304
303
  keyframes: {
@@ -311,6 +310,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
311
310
  inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
312
311
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
313
312
  }[];
313
+ name?: string | undefined;
314
314
  speed?: number | undefined;
315
315
  offset?: number | undefined;
316
316
  amplification?: number | undefined;
@@ -388,7 +388,6 @@ export declare const AnimationClassSchema: z.ZodObject<{
388
388
  } | undefined;
389
389
  }, {
390
390
  animationDataIn?: {
391
- name: string;
392
391
  propertyAnimations: {
393
392
  property: string;
394
393
  keyframes: {
@@ -401,6 +400,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
401
400
  inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
402
401
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
403
402
  }[];
403
+ name?: string | undefined;
404
404
  speed?: number | undefined;
405
405
  offset?: number | undefined;
406
406
  amplification?: number | undefined;
@@ -408,7 +408,6 @@ export declare const AnimationClassSchema: z.ZodObject<{
408
408
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
409
409
  } | undefined;
410
410
  animationDataOut?: {
411
- name: string;
412
411
  propertyAnimations: {
413
412
  property: string;
414
413
  keyframes: {
@@ -421,6 +420,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
421
420
  inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
422
421
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
423
422
  }[];
423
+ name?: string | undefined;
424
424
  speed?: number | undefined;
425
425
  offset?: number | undefined;
426
426
  amplification?: number | undefined;
@@ -428,7 +428,6 @@ export declare const AnimationClassSchema: z.ZodObject<{
428
428
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
429
429
  } | undefined;
430
430
  animationDataLoop?: {
431
- name: string;
432
431
  propertyAnimations: {
433
432
  property: string;
434
433
  keyframes: {
@@ -441,6 +440,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
441
440
  inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
442
441
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
443
442
  }[];
443
+ name?: string | undefined;
444
444
  speed?: number | undefined;
445
445
  offset?: number | undefined;
446
446
  amplification?: number | undefined;
@@ -489,7 +489,7 @@ export declare const ClipSchema: z.ZodObject<{
489
489
  text: z.ZodOptional<z.ZodString>;
490
490
  animationController: z.ZodOptional<z.ZodObject<{
491
491
  animationDataIn: z.ZodOptional<z.ZodObject<{
492
- name: z.ZodString;
492
+ name: z.ZodDefault<z.ZodString>;
493
493
  speed: z.ZodOptional<z.ZodNumber>;
494
494
  offset: z.ZodOptional<z.ZodNumber>;
495
495
  amplification: z.ZodOptional<z.ZodNumber>;
@@ -561,7 +561,6 @@ export declare const ClipSchema: z.ZodObject<{
561
561
  offset?: number | undefined;
562
562
  amplification?: number | undefined;
563
563
  }, {
564
- name: string;
565
564
  propertyAnimations: {
566
565
  property: string;
567
566
  keyframes: {
@@ -574,6 +573,7 @@ export declare const ClipSchema: z.ZodObject<{
574
573
  inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
575
574
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
576
575
  }[];
576
+ name?: string | undefined;
577
577
  speed?: number | undefined;
578
578
  offset?: number | undefined;
579
579
  amplification?: number | undefined;
@@ -581,7 +581,7 @@ export declare const ClipSchema: z.ZodObject<{
581
581
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
582
582
  }>>;
583
583
  animationDataOut: z.ZodOptional<z.ZodObject<{
584
- name: z.ZodString;
584
+ name: z.ZodDefault<z.ZodString>;
585
585
  speed: z.ZodOptional<z.ZodNumber>;
586
586
  offset: z.ZodOptional<z.ZodNumber>;
587
587
  amplification: z.ZodOptional<z.ZodNumber>;
@@ -653,7 +653,6 @@ export declare const ClipSchema: z.ZodObject<{
653
653
  offset?: number | undefined;
654
654
  amplification?: number | undefined;
655
655
  }, {
656
- name: string;
657
656
  propertyAnimations: {
658
657
  property: string;
659
658
  keyframes: {
@@ -666,6 +665,7 @@ export declare const ClipSchema: z.ZodObject<{
666
665
  inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
667
666
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
668
667
  }[];
668
+ name?: string | undefined;
669
669
  speed?: number | undefined;
670
670
  offset?: number | undefined;
671
671
  amplification?: number | undefined;
@@ -673,7 +673,7 @@ export declare const ClipSchema: z.ZodObject<{
673
673
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
674
674
  }>>;
675
675
  animationDataLoop: z.ZodOptional<z.ZodObject<{
676
- name: z.ZodString;
676
+ name: z.ZodDefault<z.ZodString>;
677
677
  speed: z.ZodOptional<z.ZodNumber>;
678
678
  offset: z.ZodOptional<z.ZodNumber>;
679
679
  amplification: z.ZodOptional<z.ZodNumber>;
@@ -745,7 +745,6 @@ export declare const ClipSchema: z.ZodObject<{
745
745
  offset?: number | undefined;
746
746
  amplification?: number | undefined;
747
747
  }, {
748
- name: string;
749
748
  propertyAnimations: {
750
749
  property: string;
751
750
  keyframes: {
@@ -758,6 +757,7 @@ export declare const ClipSchema: z.ZodObject<{
758
757
  inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
759
758
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
760
759
  }[];
760
+ name?: string | undefined;
761
761
  speed?: number | undefined;
762
762
  offset?: number | undefined;
763
763
  amplification?: number | undefined;
@@ -835,7 +835,6 @@ export declare const ClipSchema: z.ZodObject<{
835
835
  } | undefined;
836
836
  }, {
837
837
  animationDataIn?: {
838
- name: string;
839
838
  propertyAnimations: {
840
839
  property: string;
841
840
  keyframes: {
@@ -848,6 +847,7 @@ export declare const ClipSchema: z.ZodObject<{
848
847
  inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
849
848
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
850
849
  }[];
850
+ name?: string | undefined;
851
851
  speed?: number | undefined;
852
852
  offset?: number | undefined;
853
853
  amplification?: number | undefined;
@@ -855,7 +855,6 @@ export declare const ClipSchema: z.ZodObject<{
855
855
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
856
856
  } | undefined;
857
857
  animationDataOut?: {
858
- name: string;
859
858
  propertyAnimations: {
860
859
  property: string;
861
860
  keyframes: {
@@ -868,6 +867,7 @@ export declare const ClipSchema: z.ZodObject<{
868
867
  inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
869
868
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
870
869
  }[];
870
+ name?: string | undefined;
871
871
  speed?: number | undefined;
872
872
  offset?: number | undefined;
873
873
  amplification?: number | undefined;
@@ -875,7 +875,6 @@ export declare const ClipSchema: z.ZodObject<{
875
875
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
876
876
  } | undefined;
877
877
  animationDataLoop?: {
878
- name: string;
879
878
  propertyAnimations: {
880
879
  property: string;
881
880
  keyframes: {
@@ -888,6 +887,7 @@ export declare const ClipSchema: z.ZodObject<{
888
887
  inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
889
888
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
890
889
  }[];
890
+ name?: string | undefined;
891
891
  speed?: number | undefined;
892
892
  offset?: number | undefined;
893
893
  amplification?: number | undefined;
@@ -1035,7 +1035,6 @@ export declare const ClipSchema: z.ZodObject<{
1035
1035
  text?: string | undefined;
1036
1036
  animationController?: {
1037
1037
  animationDataIn?: {
1038
- name: string;
1039
1038
  propertyAnimations: {
1040
1039
  property: string;
1041
1040
  keyframes: {
@@ -1048,6 +1047,7 @@ export declare const ClipSchema: z.ZodObject<{
1048
1047
  inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
1049
1048
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
1050
1049
  }[];
1050
+ name?: string | undefined;
1051
1051
  speed?: number | undefined;
1052
1052
  offset?: number | undefined;
1053
1053
  amplification?: number | undefined;
@@ -1055,7 +1055,6 @@ export declare const ClipSchema: z.ZodObject<{
1055
1055
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
1056
1056
  } | undefined;
1057
1057
  animationDataOut?: {
1058
- name: string;
1059
1058
  propertyAnimations: {
1060
1059
  property: string;
1061
1060
  keyframes: {
@@ -1068,6 +1067,7 @@ export declare const ClipSchema: z.ZodObject<{
1068
1067
  inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
1069
1068
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
1070
1069
  }[];
1070
+ name?: string | undefined;
1071
1071
  speed?: number | undefined;
1072
1072
  offset?: number | undefined;
1073
1073
  amplification?: number | undefined;
@@ -1075,7 +1075,6 @@ export declare const ClipSchema: z.ZodObject<{
1075
1075
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
1076
1076
  } | undefined;
1077
1077
  animationDataLoop?: {
1078
- name: string;
1079
1078
  propertyAnimations: {
1080
1079
  property: string;
1081
1080
  keyframes: {
@@ -1088,6 +1087,7 @@ export declare const ClipSchema: z.ZodObject<{
1088
1087
  inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
1089
1088
  outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
1090
1089
  }[];
1090
+ name?: string | undefined;
1091
1091
  speed?: number | undefined;
1092
1092
  offset?: number | undefined;
1093
1093
  amplification?: number | undefined;
@@ -1129,8 +1129,10 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
1129
1129
  sprite: T;
1130
1130
  style: K;
1131
1131
  state: ClipState;
1132
- protected inTransition: boolean;
1133
- protected transitionId: string | null;
1132
+ protected insideInTransition: boolean;
1133
+ protected insideOutTransition: boolean;
1134
+ protected transitionInId: string | null;
1135
+ protected transitionOutId: string | null;
1134
1136
  protected layerId: string;
1135
1137
  protected clipMasksLazyDeserialize: z.infer<typeof MaskFilterSchema>[];
1136
1138
  private readonly AnimationClass;
@@ -1173,10 +1175,13 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
1173
1175
  getDuration(): number;
1174
1176
  getFilterById(filterId: string): Filter | undefined;
1175
1177
  getEffectById(effectId: string): Effect | undefined;
1176
- setInTransition(inTransition: boolean): void;
1177
- getInTransition(): boolean;
1178
- setTransitionId(transitionId: string | null): void;
1179
- getTransitionId(): string | null;
1178
+ setInsideInTransition(insideTransition: boolean): void;
1179
+ setInsideOutTransition(insideTransition: boolean): void;
1180
+ getInsideTransition(): boolean;
1181
+ setTransitionInId(transitionId: string | null): void;
1182
+ getTransitionInId(): string | null;
1183
+ setTransitionOutId(transitionId: string | null): void;
1184
+ getTransitionOutId(): string | null;
1180
1185
  getMediaId(): string | undefined;
1181
1186
  getIsProcessing(): boolean;
1182
1187
  discardProcessing(): void;
@@ -73,6 +73,7 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
73
73
  protected animationScaleMultiplier: [number, number];
74
74
  protected animationRotationOffset: number;
75
75
  protected animationAlphaMultiplier: number;
76
+ protected animationCropOffset: [number, number, number, number];
76
77
  private lastCornerRadius;
77
78
  private lastCornerSize;
78
79
  private lastCornerScale;
@@ -104,6 +105,8 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
104
105
  getAlpha(): number;
105
106
  setAnimationAlphaMultiplier(alpha: number): void;
106
107
  getAnimationAlphaMultiplier(): number;
108
+ setAnimationCropOffset(left: number, top: number, right: number, bottom: number): void;
109
+ getAnimationCropOffset(): [number, number, number, number];
107
110
  setRotation(rotation: number): void;
108
111
  getRotation(): number;
109
112
  setAnimationRotationOffset(rotation: number): void;
@@ -34,6 +34,8 @@ declare const HtmlTextStyleSchema: zod.ZodObject<{
34
34
  fontStyle: "normal" | "italic" | "oblique";
35
35
  strokeThickness: number;
36
36
  wordWrapWidth: number;
37
+ lineHeight: number;
38
+ letterSpacing: number;
37
39
  dropShadow: boolean;
38
40
  dropShadowAlpha: number;
39
41
  dropShadowAngle: number;
@@ -43,8 +45,6 @@ declare const HtmlTextStyleSchema: zod.ZodObject<{
43
45
  align: "center" | "left" | "right" | "justify";
44
46
  breakWords: boolean;
45
47
  fontVariant: "normal" | "small-caps";
46
- letterSpacing: number;
47
- lineHeight: number;
48
48
  stroke: string;
49
49
  whiteSpace: "normal" | "pre" | "pre-line";
50
50
  wordWrap: boolean;
@@ -97,6 +97,8 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
97
97
  fontStyle: "normal" | "italic" | "oblique";
98
98
  strokeThickness: number;
99
99
  wordWrapWidth: number;
100
+ lineHeight: number;
101
+ letterSpacing: number;
100
102
  dropShadow: boolean;
101
103
  dropShadowAlpha: number;
102
104
  dropShadowAngle: number;
@@ -106,8 +108,6 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
106
108
  align: "center" | "left" | "right" | "justify";
107
109
  breakWords: boolean;
108
110
  fontVariant: "normal" | "small-caps";
109
- letterSpacing: number;
110
- lineHeight: number;
111
111
  stroke: string;
112
112
  whiteSpace: "normal" | "pre" | "pre-line";
113
113
  wordWrap: boolean;
@@ -144,6 +144,8 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
144
144
  fontStyle: "normal" | "italic" | "oblique";
145
145
  strokeThickness: number;
146
146
  wordWrapWidth: number;
147
+ lineHeight: number;
148
+ letterSpacing: number;
147
149
  dropShadow: boolean;
148
150
  dropShadowAlpha: number;
149
151
  dropShadowAngle: number;
@@ -153,8 +155,6 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
153
155
  align: "center" | "left" | "right" | "justify";
154
156
  breakWords: boolean;
155
157
  fontVariant: "normal" | "small-caps";
156
- letterSpacing: number;
157
- lineHeight: number;
158
158
  stroke: string;
159
159
  whiteSpace: "normal" | "pre" | "pre-line";
160
160
  wordWrap: boolean;
@@ -14,6 +14,8 @@ interface TextClipStyleOptions extends ClipStyleOptions {
14
14
  strokeColor?: string;
15
15
  strokeThickness?: number;
16
16
  padding?: number[];
17
+ lineHeight?: number;
18
+ letterSpacing?: number;
17
19
  dropShadow?: boolean;
18
20
  dropShadowAlpha?: number;
19
21
  dropShadowAngle?: number;
@@ -45,6 +47,8 @@ export declare const TextStyleSchema: z.ZodObject<{
45
47
  strokeThickness: z.ZodDefault<z.ZodNumber>;
46
48
  wordWrapWidth: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
47
49
  padding: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
50
+ lineHeight: z.ZodDefault<z.ZodNumber>;
51
+ letterSpacing: z.ZodDefault<z.ZodNumber>;
48
52
  dropShadow: z.ZodDefault<z.ZodBoolean>;
49
53
  dropShadowAlpha: z.ZodDefault<z.ZodNumber>;
50
54
  dropShadowAngle: z.ZodDefault<z.ZodNumber>;
@@ -71,6 +75,8 @@ export declare const TextStyleSchema: z.ZodObject<{
71
75
  strokeColor: string;
72
76
  strokeThickness: number;
73
77
  wordWrapWidth: number | null;
78
+ lineHeight: number;
79
+ letterSpacing: number;
74
80
  dropShadow: boolean;
75
81
  dropShadowAlpha: number;
76
82
  dropShadowAngle: number;
@@ -105,6 +111,8 @@ export declare const TextStyleSchema: z.ZodObject<{
105
111
  strokeThickness?: number | undefined;
106
112
  wordWrapWidth?: number | null | undefined;
107
113
  padding?: number[] | undefined;
114
+ lineHeight?: number | undefined;
115
+ letterSpacing?: number | undefined;
108
116
  dropShadow?: boolean | undefined;
109
117
  dropShadowAlpha?: number | undefined;
110
118
  dropShadowAngle?: number | undefined;
@@ -124,6 +132,8 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
124
132
  strokeColor: string;
125
133
  strokeThickness: number;
126
134
  padding: number[];
135
+ lineHeight: number;
136
+ letterSpacing: number;
127
137
  dropShadow: boolean;
128
138
  dropShadowAlpha: number;
129
139
  dropShadowAngle: number;
@@ -170,6 +180,10 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
170
180
  getBackgroundColor(): string | null;
171
181
  setPadding(padding: number | number[]): void;
172
182
  getPadding(): number[];
183
+ setLineHeight(lineHeight: number): void;
184
+ getLineHeight(): number;
185
+ setLetterSpacing(letterSpacing: number): void;
186
+ getLetterSpacing(): number;
173
187
  update(container: TextSprite): void;
174
188
  serialize(): {
175
189
  scale: [number, number];
@@ -191,6 +205,8 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
191
205
  strokeColor: string;
192
206
  strokeThickness: number;
193
207
  wordWrapWidth: number | null;
208
+ lineHeight: number;
209
+ letterSpacing: number;
194
210
  dropShadow: boolean;
195
211
  dropShadowAlpha: number;
196
212
  dropShadowAngle: number;
@@ -1,6 +1,6 @@
1
1
  import * as PIXI from "pixi.js";
2
2
  import { ExportOptions } from '../../../../Engine';
3
- import { AudioClip, FilmStripStateEnum, IFilmstripData, ReplaceMediaOptions } from '../../../../index';
3
+ import { AudioClip, MediaProcessStatusEnum, IFilmstripData, ReplaceMediaOptions } from '../../../../index';
4
4
  import { FadeCurveEnum } from '../../../../types';
5
5
  import { Clip, ClipOptions } from "../../Clip";
6
6
  import { ClipStyle } from "../../ClipStyle";
@@ -43,11 +43,12 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
43
43
  private decoderFlushed;
44
44
  private decoderFlushPromise;
45
45
  private renderWithPlayer;
46
+ private forceSoftwareDecoder;
46
47
  private ffmpeg;
47
48
  private callbacks;
48
49
  constructor(options: VideoClipOptions);
49
50
  init(layerId: string): Promise<void>;
50
- private updateRenderWithPlayerFlag;
51
+ private updateRenderFlags;
51
52
  private updateAudioDuration;
52
53
  getLeftRenderBound(): number;
53
54
  getRightRenderBound(): number;
@@ -116,14 +117,14 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
116
117
  /**
117
118
  * Retrieves the current state of the filmstrip extraction process for the associated media data.
118
119
  *
119
- * @return {FilmStripStateEnum} The current state of the filmstrip extraction process.
120
+ * @return {MediaProcessStatusEnum } The current state of the filmstrip extraction process.
120
121
  * It can be one of the following values:
121
122
  * - `FilmStripStateEnum.NONE`: No filmstrip extraction process is currently running.
122
123
  * - `FilmStripStateEnum.PARTIAL`: The filmstrip extraction process is partially complete.
123
124
  * - `FilmStripStateEnum.DONE`: The filmstrip extraction process is complete.
124
125
  * - `FilmStripStateEnum.ERROR`: An error occurred during the filmstrip extraction process.
125
126
  */
126
- getFilmstripState(): FilmStripStateEnum;
127
+ getFilmstripState(): MediaProcessStatusEnum;
127
128
  /**
128
129
  * Retrieves the data for the filmstrip associated with this clip.
129
130
  *
@@ -1,3 +1,4 @@
1
+ import { MediaProcessStatusEnum } from '../../../index';
1
2
  import { UndoGroup, UndoRecord } from '../../undo';
2
3
  export declare enum EventsEnum {
3
4
  READY = "ready",
@@ -204,9 +205,11 @@ export type EventPayloadMap = {
204
205
  };
205
206
  [EventsEnum.LIBRARY_MEDIA_SAMPLES_UPDATED]: {
206
207
  mediaDataId: string;
208
+ status: MediaProcessStatusEnum;
207
209
  };
208
210
  [EventsEnum.LIBRARY_MEDIA_FILMSTRIP_UPDATED]: {
209
211
  mediaDataId: string;
212
+ status: MediaProcessStatusEnum;
210
213
  };
211
214
  [EventsEnum.LIBRARY_MEDIA_READY]: {
212
215
  mediaDataId: string;
@@ -36,7 +36,7 @@ export interface IFilmstripData {
36
36
  data: Uint8Array;
37
37
  timestamp: number;
38
38
  }
39
- export declare enum FilmStripStateEnum {
39
+ export declare enum MediaProcessStatusEnum {
40
40
  NONE = "none",
41
41
  PARTIAL = "partial",
42
42
  DONE = "done",
@@ -96,10 +96,10 @@ export declare class MediaData {
96
96
  removePlaceholderClip(clipId: string): void;
97
97
  removeAllPlaceholderClips(): void;
98
98
  prepareFilmstrip(): void;
99
- setFilmstripState(state: FilmStripStateEnum): void;
99
+ setFilmstripState(state: MediaProcessStatusEnum): void;
100
100
  addFilmstripFrame(filmstripData: IFilmstripData | null): void;
101
101
  private extractFilmstrip;
102
- getFilmstripState(): FilmStripStateEnum;
102
+ getFilmstripState(): MediaProcessStatusEnum;
103
103
  getFilmstripData(): IFilmstripData[];
104
104
  getFilmstripDataRange(start: number, end: number): IFilmstripData[];
105
105
  private resampleLinear;
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { HashAlgorithmEnum } from '../../types/hash.types';
2
3
  export declare enum PreferredAcceleration {
3
4
  HARDWARE = "prefer-hardware",
4
5
  SOFTWARE = "prefer-software",
@@ -72,6 +73,7 @@ export declare const SettingsSchema: z.ZodObject<{
72
73
  subtitlesScaleOnResize: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
73
74
  subtitlesAutoWrapOnResize: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
74
75
  viewAutoLayoutOnResize: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof AutoLayoutMode>>>;
76
+ mediaHashAlgorithm: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof HashAlgorithmEnum>>>;
75
77
  }, "strip", z.ZodTypeAny, {
76
78
  m3u8MaxResolution: [number, number];
77
79
  clipAudioStoreSamples: boolean;
@@ -113,6 +115,7 @@ export declare const SettingsSchema: z.ZodObject<{
113
115
  subtitlesScaleOnResize: boolean;
114
116
  subtitlesAutoWrapOnResize: boolean;
115
117
  viewAutoLayoutOnResize: AutoLayoutMode;
118
+ mediaHashAlgorithm: HashAlgorithmEnum;
116
119
  }, {
117
120
  m3u8MaxResolution?: [number, number] | undefined;
118
121
  clipAudioStoreSamples?: boolean | undefined;
@@ -154,6 +157,7 @@ export declare const SettingsSchema: z.ZodObject<{
154
157
  subtitlesScaleOnResize?: boolean | undefined;
155
158
  subtitlesAutoWrapOnResize?: boolean | undefined;
156
159
  viewAutoLayoutOnResize?: AutoLayoutMode | undefined;
160
+ mediaHashAlgorithm?: HashAlgorithmEnum | undefined;
157
161
  }>;
158
162
  export declare class Settings {
159
163
  private m3u8MaxResolution;
@@ -196,6 +200,7 @@ export declare class Settings {
196
200
  private subtitlesScaleOnResize;
197
201
  private subtitlesAutoWrapOnResize;
198
202
  private viewAutoLayoutOnResize;
203
+ private mediaHashAlgorithm;
199
204
  private readonly defaultSettings;
200
205
  constructor();
201
206
  getDefaultSettings(): {
@@ -239,6 +244,7 @@ export declare class Settings {
239
244
  subtitlesScaleOnResize: boolean;
240
245
  subtitlesAutoWrapOnResize: boolean;
241
246
  viewAutoLayoutOnResize: AutoLayoutMode;
247
+ mediaHashAlgorithm: HashAlgorithmEnum;
242
248
  };
243
249
  setClipAudioStoreSamples(storeSamples: boolean): void;
244
250
  getClipAudioStoreSamples(): boolean;
@@ -332,6 +338,8 @@ export declare class Settings {
332
338
  getSubtitlesAutoWrapOnResize(): boolean;
333
339
  setViewAutoLayoutOnResize(autoLayoutMode: AutoLayoutMode): void;
334
340
  getViewAutoLayoutOnResize(): AutoLayoutMode;
341
+ setMediaHashAlgorithm(algorithm: HashAlgorithmEnum): void;
342
+ getMediaHashAlgorithm(): HashAlgorithmEnum;
335
343
  serialize(): {
336
344
  m3u8MaxResolution: [number, number];
337
345
  clipAudioStoreSamples: boolean;
@@ -373,6 +381,7 @@ export declare class Settings {
373
381
  subtitlesScaleOnResize: boolean;
374
382
  subtitlesAutoWrapOnResize: boolean;
375
383
  viewAutoLayoutOnResize: AutoLayoutMode;
384
+ mediaHashAlgorithm: HashAlgorithmEnum;
376
385
  };
377
386
  static deserialize(data: object): Settings;
378
387
  }
@@ -176,6 +176,7 @@ export declare class Timeline {
176
176
  extractAudio(clip: string | Clip): AudioClip | undefined;
177
177
  alignTime(time: number, roundDirection?: AlignRoundEnum): number;
178
178
  getFrameNumberFromTime(time: number, roundDirection?: AlignRoundEnum): number;
179
+ getFrameNumberFromTimeValues(timeValues: number[]): number[];
179
180
  adjustClipsLayout(): boolean;
180
181
  getFrameDuration(): number;
181
182
  getFps(): number;
@@ -48,6 +48,8 @@ export declare enum UndoActionEnum {
48
48
  CLIP_TEXT_STROKE_COLOR = "clip-text-stroke-color",
49
49
  CLIP_TEXT_STROKE_THICKNESS = "clip-text-stroke-thickness",
50
50
  CLIP_TEXT_PADDING = "clip-text-padding",
51
+ CLIP_TEXT_LINE_HEIGHT = "clip-text-line-height",
52
+ CLIP_TEXT_LETTER_SPACING = "clip-text-letter-spacing",
51
53
  CLIP_TEXT_DROP_SHADOW = "clip-text-drop-shadow",
52
54
  CLIP_TEXT_DROP_SHADOW_COLOR = "clip-text-drop-shadow-color",
53
55
  CLIP_TEXT_DROP_SHADOW_BLUR = "clip-text-drop-shadow-blur",
@@ -272,6 +274,16 @@ export type UndoActionMappings = {
272
274
  prevPadding: number | number[];
273
275
  padding: number | number[];
274
276
  };
277
+ [UndoActionEnum.CLIP_TEXT_LINE_HEIGHT]: {
278
+ clipId: string;
279
+ prevLineHeight: number;
280
+ lineHeight: number;
281
+ };
282
+ [UndoActionEnum.CLIP_TEXT_LETTER_SPACING]: {
283
+ clipId: string;
284
+ prevLetterSpacing: number;
285
+ letterSpacing: number;
286
+ };
275
287
  [UndoActionEnum.CLIP_TEXT_DROP_SHADOW]: {
276
288
  clipId: string;
277
289
  prevDropShadow: boolean;
@@ -0,0 +1,4 @@
1
+ export declare enum HashAlgorithmEnum {
2
+ SHA256 = "SHA256",
3
+ XXHash128 = "XXHash128"
4
+ }