mirror of
https://github.com/sun-guannan/CapCutAPI.git
synced 2025-11-25 03:15:00 +08:00
Enhanced text features: multi-style, shadow, and background support
Enhanced text features: multi-style, shadow, and background support - Added text multi-style support with TextStyleRange - Implemented text shadow effects with configurable parameters - Added text background with various style options - Updated example.py with comprehensive test cases - Fixed import issues in add_text_impl.py
This commit is contained in:
@@ -2,7 +2,7 @@ import pyJianYingDraft as draft
|
|||||||
from settings.local import IS_CAPCUT_ENV
|
from settings.local import IS_CAPCUT_ENV
|
||||||
from util import generate_draft_url, hex_to_rgb
|
from util import generate_draft_url, hex_to_rgb
|
||||||
from pyJianYingDraft import trange, Font_type
|
from pyJianYingDraft import trange, Font_type
|
||||||
from typing import Optional
|
from typing import Optional, List # add List type hint
|
||||||
from pyJianYingDraft import exceptions
|
from pyJianYingDraft import exceptions
|
||||||
from create_draft import get_or_create_draft
|
from create_draft import get_or_create_draft
|
||||||
from pyJianYingDraft.text_segment import TextBubble, TextEffect, TextStyleRange
|
from pyJianYingDraft.text_segment import TextBubble, TextEffect, TextStyleRange
|
||||||
|
|||||||
Reference in New Issue
Block a user