Skip to content

Commit 9d5a6b0

Browse files
committed
fix: caption animation
1 parent fcf4796 commit 9d5a6b0

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

videodb/timeline_v2.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -63,32 +63,32 @@ class HorizontalAlignment(str, Enum):
6363
right = "right"
6464

6565

66-
class CaptionBorderStyle(int, Enum):
66+
class CaptionBorderStyle(str, Enum):
6767
"""Border style properties for caption assets."""
6868

69-
no_border = 1
70-
opaque_box = 3
71-
outline = 4
69+
no_border = "no_border"
70+
opaque_box = "opaque_box"
71+
outline = "outline"
7272

7373

74-
class CaptionAlignment(int, Enum):
74+
class CaptionAlignment(str, Enum):
7575
"""Caption alignment properties for caption assets."""
7676

77-
bottom_left = 1
78-
bottom_center = 2
79-
bottom_right = 3
80-
middle_left = 9
81-
middle_center = 10
82-
middle_right = 11
83-
top_left = 5
84-
top_center = 6
85-
top_right = 7
77+
bottom_left = "bottom_left"
78+
bottom_center = "bottom_center"
79+
bottom_right = "bottom_right"
80+
middle_left = "middle_left"
81+
middle_center = "middle_center"
82+
middle_right = "middle_right"
83+
top_left = "top_left"
84+
top_center = "top_center"
85+
top_right = "top_right"
8686

8787

8888
class CaptionAnimation(str, Enum):
8989
"""Caption animation properties for caption assets."""
9090

91-
float_in_bottom = "float_in_bottom"
91+
# float_in_bottom = "float_in_bottom"
9292
box_highlight = "box_highlight"
9393
color_highlight = "color_highlight"
9494
reveal = "reveal"
@@ -424,8 +424,8 @@ def __init__(
424424
italic: bool = False,
425425
underline: bool = False,
426426
strikeout: bool = False,
427-
scale_x: float = 1.0,
428-
scale_y: float = 1.0,
427+
scale_x: float = 100,
428+
scale_y: float = 100,
429429
spacing: float = 0.0,
430430
angle: float = 0.0,
431431
):

0 commit comments

Comments
 (0)