feat(ui): 标题精简为「标题+括号说明」;移除流程图快捷按钮;视图语义移入帮助;发布 v1.3.2

- 画布标题:条形 / 圆周改为单行「标题 +(线型图例)」,不再单独占一行;
  导出 PNG / SVG 的标题区同步精简
- 工具栏:移除右上角冗余的「流程图」快捷按钮(入口保留在三段切换中)
- 帮助中心「相位分区与视图」:补充三视图图例(FS/SS、同心圆环、流程图读法),
  并同步示例动作数 / 默认相位 / 导出入口等过时文案
- 版本号 1.3.2+18,更新说明 release/RELEASE_NOTES_v1.3.2.md
This commit is contained in:
2026-10-09 15:38:21 +08:00
parent 7dcb95db4a
commit c352af2359
9 changed files with 53 additions and 45 deletions
+9 -11
View File
@@ -80,17 +80,15 @@ String exportTitle(ViewMode mode) => switch (mode) {
ViewMode.flow => '流程图视图',
};
/// 导出副标题(与画布浮层一致)。
String exportSubtitle(Project project, ViewMode mode) {
if (mode == ViewMode.bar) {
return '箭头表示动作之间关联(绿色实线 FS 严格顺序 / 琥珀虚线 SS 并行重叠)';
}
if (mode == ViewMode.flow) {
// 流程图不重复线型说明,导出仅保留标题(与画布浮层一致)。
return '';
}
return '同心圆环 = 动作层 · 1 圈 = 1 循环 = ${tfmt(project.cycle.durationMs, project.units)} = 360° = 100%';
}
/// 导出副标题:仅保留括号内的线型图例(与画布标题后方的说明一致)。
///
/// 更完整的视图语义(同心圆环 / 循环换算等)见应用内「帮助」。
String exportSubtitle(ViewMode mode) => switch (mode) {
ViewMode.bar => '(绿色实线 FS 严格顺序 / 琥珀虚线 SS 并行重叠)',
ViewMode.circular => '(绿色实线 FS 严格顺序 / 琥珀虚线 SS 并行重叠)',
// 流程图不重复线型说明,导出仅保留标题(与画布浮层一致)。
ViewMode.flow => '',
};
/// 导出图例(左下角固定)。
String exportLegend(Project project) =>
+1 -1
View File
@@ -49,7 +49,7 @@ Future<Uint8List> renderExportPng({
final ViewMode mode = project.viewState.mode;
_text(canvas, exportTitle(mode), const Offset(48, 36),
color: et.text, size: 34, weight: FontWeight.w700);
_text(canvas, exportSubtitle(project, mode), const Offset(48, 88),
_text(canvas, exportSubtitle(mode), const Offset(48, 88),
color: et.sub, size: 16, weight: FontWeight.w400);
// 内容:适配缩放并居中到内容区。
+1 -1
View File
@@ -79,7 +79,7 @@ class SvgWriter {
// 标题:固定左上角。
_b.write('<g id="title">');
_text(48, 60, exportTitle(mode), color: _hex(tokens.text), size: 34, weight: '700');
_text(48, 104, exportSubtitle(project, mode), color: _hex(tokens.sub), size: 16);
_text(48, 104, exportSubtitle(mode), color: _hex(tokens.sub), size: 16);
_b.write('</g>');
// 内容:适配缩放并居中到内容区。
final ExportFit fit = computeExportFit(project, mode, kExportContentArea);