@rendley/sdk 1.12.17 → 1.12.18
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.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +6 -6
- package/dist/modules/clip/clips/text/TextStyle.d.ts +16 -0
- package/dist/modules/clip/clips/video/VideoClip.d.ts +3 -3
- package/dist/modules/event-emitter/types/EventEmitter.types.d.ts +3 -0
- package/dist/modules/library/MediaData.d.ts +3 -3
- package/dist/modules/timeline/Timeline.d.ts +1 -0
- package/dist/modules/undo/UndoManager.types.d.ts +12 -0
- package/package.json +1 -1
|
@@ -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,
|
|
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";
|
|
@@ -116,14 +116,14 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
|
|
|
116
116
|
/**
|
|
117
117
|
* Retrieves the current state of the filmstrip extraction process for the associated media data.
|
|
118
118
|
*
|
|
119
|
-
* @return {
|
|
119
|
+
* @return {MediaProcessStatusEnum } The current state of the filmstrip extraction process.
|
|
120
120
|
* It can be one of the following values:
|
|
121
121
|
* - `FilmStripStateEnum.NONE`: No filmstrip extraction process is currently running.
|
|
122
122
|
* - `FilmStripStateEnum.PARTIAL`: The filmstrip extraction process is partially complete.
|
|
123
123
|
* - `FilmStripStateEnum.DONE`: The filmstrip extraction process is complete.
|
|
124
124
|
* - `FilmStripStateEnum.ERROR`: An error occurred during the filmstrip extraction process.
|
|
125
125
|
*/
|
|
126
|
-
getFilmstripState():
|
|
126
|
+
getFilmstripState(): MediaProcessStatusEnum;
|
|
127
127
|
/**
|
|
128
128
|
* Retrieves the data for the filmstrip associated with this clip.
|
|
129
129
|
*
|
|
@@ -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
|
|
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:
|
|
99
|
+
setFilmstripState(state: MediaProcessStatusEnum): void;
|
|
100
100
|
addFilmstripFrame(filmstripData: IFilmstripData | null): void;
|
|
101
101
|
private extractFilmstrip;
|
|
102
|
-
getFilmstripState():
|
|
102
|
+
getFilmstripState(): MediaProcessStatusEnum;
|
|
103
103
|
getFilmstripData(): IFilmstripData[];
|
|
104
104
|
getFilmstripDataRange(start: number, end: number): IFilmstripData[];
|
|
105
105
|
private resampleLinear;
|
|
@@ -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;
|