ugcinc 2.28.1 → 2.30.0
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/types.d.ts +18 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -371,6 +371,16 @@ export interface BaseSegmentProps {
|
|
|
371
371
|
endTrim?: number;
|
|
372
372
|
/** Override segment duration (auto-calculated if omitted) */
|
|
373
373
|
duration?: TimeValue;
|
|
374
|
+
/**
|
|
375
|
+
* Overlay support - if parentId is set, this segment's timing is relative to the parent.
|
|
376
|
+
* The segment will appear on top of the parent segment during the specified time range.
|
|
377
|
+
*/
|
|
378
|
+
/** ID of the parent segment this overlays (timing calculated relative to parent) */
|
|
379
|
+
parentId?: string;
|
|
380
|
+
/** Start time as fraction of parent duration (0-1, default: 0). Only used when parentId is set. */
|
|
381
|
+
relativeStart?: number;
|
|
382
|
+
/** End time as fraction of parent duration (0-1, default: 1). Only used when parentId is set. */
|
|
383
|
+
relativeEnd?: number;
|
|
374
384
|
}
|
|
375
385
|
/**
|
|
376
386
|
* Visual segment properties (video, image, text, editor)
|
|
@@ -405,6 +415,10 @@ export interface VideoSegment extends VisualSegmentProps {
|
|
|
405
415
|
speed?: number;
|
|
406
416
|
/** Audio volume percentage 0-100 (0 = muted, 100 = full) (default: 100) */
|
|
407
417
|
volume?: number;
|
|
418
|
+
/** Enable fade-in from black (default: false) */
|
|
419
|
+
fadeIn?: boolean;
|
|
420
|
+
/** Fade-in duration in milliseconds (default: 500) */
|
|
421
|
+
fadeInDuration?: number;
|
|
408
422
|
}
|
|
409
423
|
/**
|
|
410
424
|
* Audio segment - background audio or music
|
|
@@ -425,6 +439,10 @@ export interface ImageSegment extends VisualSegmentProps {
|
|
|
425
439
|
fit?: 'cover' | 'contain' | 'fill';
|
|
426
440
|
/** Loop animated GIFs (default: false) */
|
|
427
441
|
loop?: boolean;
|
|
442
|
+
/** Enable fade-in from black (default: false) */
|
|
443
|
+
fadeIn?: boolean;
|
|
444
|
+
/** Fade-in duration in milliseconds (default: 500) */
|
|
445
|
+
fadeInDuration?: number;
|
|
428
446
|
}
|
|
429
447
|
/**
|
|
430
448
|
* Text segment - rich text overlays with full typography control
|