- 新增 _calculate_lane_conflicts_v2() 分開返回標籤重疊和線穿框分數 - 修改泳道選擇算法,優先選擇無標籤重疊的泳道 - 兩階段搜尋:優先側別無可用泳道則嘗試另一側 - 增強日誌輸出,顯示標籤範圍和詳細衝突分數 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
46 lines
775 B
Python
46 lines
775 B
Python
"""
|
|
TimeLine Designer Backend Package
|
|
|
|
本套件提供時間軸設計工具的後端 API 服務。
|
|
|
|
Modules:
|
|
- schemas: 資料模型定義
|
|
- importer: CSV/XLSX 匯入處理
|
|
- renderer: Plotly 時間軸渲染
|
|
- export: PDF/SVG/PNG 匯出
|
|
- main: FastAPI 主程式
|
|
|
|
Version: 1.0.0
|
|
Author: AI Agent
|
|
DocID: SDD-BACKEND-001
|
|
"""
|
|
|
|
__version__ = "1.0.0"
|
|
__author__ = "AI Agent"
|
|
|
|
from .schemas import (
|
|
Event,
|
|
EventType,
|
|
TimelineConfig,
|
|
ThemeStyle,
|
|
ExportOptions,
|
|
ExportFormat,
|
|
Theme,
|
|
ImportResult,
|
|
RenderResult,
|
|
APIResponse
|
|
)
|
|
|
|
__all__ = [
|
|
"Event",
|
|
"EventType",
|
|
"TimelineConfig",
|
|
"ThemeStyle",
|
|
"ExportOptions",
|
|
"ExportFormat",
|
|
"Theme",
|
|
"ImportResult",
|
|
"RenderResult",
|
|
"APIResponse"
|
|
]
|