fix(export): 纯白背景 + 2x 像素比渲染(3840×2160),导出更清晰

- 导出专用令牌 exportTokens:无论屏幕主题深浅,SVG/PNG 背景均为纯白、文字深色(印刷/工艺卡导向)

- PNG 按 2 倍像素比渲染:1920×1080 逻辑画布 → 3840×2160 像素,矢量内容在高分屏上锐利

- SVG 背景 rect 同步纯白;export_test 校验尺寸 3840×2160 与左上角纯白像素

- 重建 dist 与签名 APK
This commit is contained in:
admin
2026-10-07 09:44:33 +08:00
parent c1d9f27952
commit 2b04705ba8
4 changed files with 91 additions and 17 deletions
+4 -1
View File
@@ -38,7 +38,10 @@ class SvgWriter {
/// - [mode]:视图模式,决定生成条形还是圆形布局。
///
/// 构造时不生成任何内容;调用 [build] 才写出 SVG。
SvgWriter({required this.project, required this.tokens, required this.mode});
///
/// [tokens] 会经 [exportTokens] 转为导出专用令牌(纯白背景、浅色文字)。
SvgWriter({required this.project, required Tokens tokens, required this.mode})
: tokens = exportTokens(tokens);
/// 数据源工程。
final Project project;