File size: 1,137 Bytes
0db40c8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
"""
信息图表标题生成器

一个用于生成专业信息图表标题的Python模块。
"""

from modules.title_styler.infographic_title_generator import (
    InfographicTitleGenerator,
    generate_title
)

from modules.title_styler.templates import (
    TitleTemplate,
    get_all_templates,
    get_templates_by_alignment
)

from modules.title_styler.svg_renderer import SVGRenderer

from modules.title_styler.llm_analyzer import LLMAnalyzer

from modules.title_styler.config import (
    TITLE_FONTS,
    NEUTRAL_COLORS,
    ALIGNMENT_LEFT,
    ALIGNMENT_CENTER,
    ALIGNMENT_RIGHT
)

__version__ = '1.0.0'
__author__ = 'Your Name'

__all__ = [
    # 主要类
    'InfographicTitleGenerator',
    'TitleTemplate',
    'SVGRenderer',
    'LLMAnalyzer',
    
    # 便捷函数
    'generate_title',
    'generate_and_save',
    'render_title',
    'analyze_title_structure',
    
    # 模板相关
    'get_all_templates',
    'get_templates_by_line_count',
    'get_templates_by_alignment',
    
    # 常量
    'TITLE_FONTS',
    'NEUTRAL_COLORS',
    'ALIGNMENT_LEFT',
    'ALIGNMENT_CENTER',
    'ALIGNMENT_RIGHT',
]