Release PPT workflow 0.7.3 with fixed spacing, paragraphs and native math

This commit is contained in:
2026-10-13 17:16:50 +08:00
parent c4efbed9b0
commit d671e412ae
26 changed files with 1210 additions and 78 deletions
+3 -1
View File
@@ -30,7 +30,9 @@ JSON顶层字段:`schema_version: 1`,`data_kind`(`synthetic-demo`/`obser
## 样式来源
`style`和`theme`分别使用`template_ref.py export-style`的`style`、`theme_data`。字体从`typography.families.body`取得,字号默认取`caption`角色,缺少时取`label`;按`canvas.pt_to_px`换算。组件没有组织、字体名或十六进制配色的固定默认值。
`style`和`theme`分别使用`template_ref.py export-style`的`style`、`theme_data`。每个文字角色通过`family_role`解析自己的字体、字号、字重和行高,按`canvas.pt_to_px`换算;不会把所有角色强制映射到body字体。图表标题使用`label`角色与`accent2`;没有`label`的旧样式沿用图表文字角色,通过颜色区分。单位、轴和图例使用显式`components.charts.text_role`(默认`caption`,缺少时为`label`)及`text_palette_index`;来源沿用标注角色的字体和字号,但颜色为`dk2`。组件没有组织、字体名或十六进制配色的固定默认值。
原生Chart轴当前只支持Regular(400),对需要其他轴字重的角色明确报错,不只改变SVG预览。pie/doughnut没有轴,独立标题、图例和来源可按角色保留加粗。普通原生文字/Table使用常规与加粗的字重语义;中间字重仍需目标字体与应用验证,不能仅据SVG的数值声明推断精确字重。
template可选择声明`style.components.charts`: