ugcinc 2.41.0 → 2.43.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 +14 -2
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -530,8 +530,16 @@ export interface TextSegment extends VisualSegmentProps {
|
|
|
530
530
|
verticalAlign?: 'top' | 'middle' | 'bottom';
|
|
531
531
|
/** Text direction (default: 'ltr') */
|
|
532
532
|
direction?: 'ltr' | 'rtl';
|
|
533
|
-
/** Inner padding in pixels (default: 0) */
|
|
533
|
+
/** Inner padding in pixels - uniform for all sides (default: 0). Overridden by individual padding values if set. */
|
|
534
534
|
padding?: number;
|
|
535
|
+
/** Top padding in pixels (overrides uniform padding) */
|
|
536
|
+
paddingTop?: number;
|
|
537
|
+
/** Right padding in pixels (overrides uniform padding) */
|
|
538
|
+
paddingRight?: number;
|
|
539
|
+
/** Bottom padding in pixels (overrides uniform padding) */
|
|
540
|
+
paddingBottom?: number;
|
|
541
|
+
/** Left padding in pixels (overrides uniform padding) */
|
|
542
|
+
paddingLeft?: number;
|
|
535
543
|
/** Font family (default: 'tiktok') */
|
|
536
544
|
fontType?: 'tiktok' | 'apple' | 'arial';
|
|
537
545
|
/** Font size in pixels (default: 40) */
|
|
@@ -556,8 +564,12 @@ export interface TextSegment extends VisualSegmentProps {
|
|
|
556
564
|
ellipsis?: string;
|
|
557
565
|
/** Text color (default: '#FFFFFF') */
|
|
558
566
|
color?: string;
|
|
559
|
-
/** Background color
|
|
567
|
+
/** Background color in hex format #RRGGBB (default: transparent) */
|
|
560
568
|
backgroundColor?: string;
|
|
569
|
+
/** Background opacity 0-100 (default: 100) */
|
|
570
|
+
backgroundOpacity?: number;
|
|
571
|
+
/** Border radius for background box - individual corners (default: 0) */
|
|
572
|
+
backgroundBorderRadius?: BorderRadiusConfig;
|
|
561
573
|
/** Text outline color (default: none) */
|
|
562
574
|
strokeColor?: string;
|
|
563
575
|
/** Outline width in pixels (default: 0) */
|