v9.5: 實作標籤完全不重疊算法

- 新增 _calculate_lane_conflicts_v2() 分開返回標籤重疊和線穿框分數
- 修改泳道選擇算法,優先選擇無標籤重疊的泳道
- 兩階段搜尋:優先側別無可用泳道則嘗試另一側
- 增強日誌輸出,顯示標籤範圍和詳細衝突分數

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
beabigegg
2025-11-06 11:35:29 +08:00
commit 2d37d23bcf
83 changed files with 22971 additions and 0 deletions

45
backend/__init__.py Normal file
View File

@@ -0,0 +1,45 @@
"""
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"
]