ugcinc 2.31.0 → 2.32.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 -4
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -416,6 +416,20 @@ export interface BaseSegmentProps {
|
|
|
416
416
|
/** Duration in milliseconds for the fade-in effect (0 or undefined = no fade) */
|
|
417
417
|
fadeIn?: number;
|
|
418
418
|
}
|
|
419
|
+
/**
|
|
420
|
+
* Border radius configuration for individual corners.
|
|
421
|
+
* All values in pixels, default 0 (no rounding).
|
|
422
|
+
*/
|
|
423
|
+
export interface BorderRadiusConfig {
|
|
424
|
+
/** Top-left corner radius in pixels */
|
|
425
|
+
topLeft?: number;
|
|
426
|
+
/** Top-right corner radius in pixels */
|
|
427
|
+
topRight?: number;
|
|
428
|
+
/** Bottom-right corner radius in pixels */
|
|
429
|
+
bottomRight?: number;
|
|
430
|
+
/** Bottom-left corner radius in pixels */
|
|
431
|
+
bottomLeft?: number;
|
|
432
|
+
}
|
|
419
433
|
/**
|
|
420
434
|
* Visual segment properties (video, image, text, editor)
|
|
421
435
|
*/
|
|
@@ -449,8 +463,8 @@ export interface VideoSegment extends VisualSegmentProps {
|
|
|
449
463
|
speed?: number;
|
|
450
464
|
/** Audio volume percentage 0-100 (0 = muted, 100 = full) (default: 100) */
|
|
451
465
|
volume?: number;
|
|
452
|
-
/** Corner radius
|
|
453
|
-
borderRadius?: number;
|
|
466
|
+
/** Corner radius - single number for all corners, or object for individual corners (default: 0) */
|
|
467
|
+
borderRadius?: number | BorderRadiusConfig;
|
|
454
468
|
}
|
|
455
469
|
/**
|
|
456
470
|
* Audio segment - background audio or music
|
|
@@ -471,8 +485,8 @@ export interface ImageSegment extends VisualSegmentProps {
|
|
|
471
485
|
fit?: 'cover' | 'contain' | 'fill';
|
|
472
486
|
/** Loop animated GIFs (default: false) */
|
|
473
487
|
loop?: boolean;
|
|
474
|
-
/** Corner radius
|
|
475
|
-
borderRadius?: number;
|
|
488
|
+
/** Corner radius - single number for all corners, or object for individual corners (default: 0) */
|
|
489
|
+
borderRadius?: number | BorderRadiusConfig;
|
|
476
490
|
}
|
|
477
491
|
/**
|
|
478
492
|
* Text segment - rich text overlays with full typography control
|