v1.3.10: 应用身份切换 cc.sincos.edc(彻底解决桌面名称); 移除尺寸标注与图元库自定义; 修复帮助中心空白与 Windows 更新包校验
This commit is contained in:
@@ -998,19 +998,6 @@ class _ArchViewState extends State<ArchView>
|
||||
}
|
||||
}
|
||||
}
|
||||
// 尺寸标签:双击进入改值(识别后图形 / 曲线 / 图元可直接编辑尺寸)。
|
||||
final (ArchShape, ArchDimKind)? dimHit =
|
||||
archShapeDimHitAt(c.arch, world, c.arch.zoom);
|
||||
if (dimHit != null) {
|
||||
final int now = DateTime.now().millisecondsSinceEpoch;
|
||||
final bool dbl = now - _lastClickMs < 400 &&
|
||||
(e.localPosition - _lastClickPos).distance < 28;
|
||||
if (dbl) {
|
||||
_lastClickMs = 0;
|
||||
_editDimLabel(dimHit.$1, dimHit.$2);
|
||||
return;
|
||||
}
|
||||
}
|
||||
final (String?, ArchShape?) hit = _hitTest(world);
|
||||
final String? id = hit.$1;
|
||||
final ArchShape? shape = hit.$2;
|
||||
@@ -1585,23 +1572,6 @@ class _ArchViewState extends State<ArchView>
|
||||
_startConversion(pts, _symbolShapeFor(sym, b), removeIds: removeIds);
|
||||
}
|
||||
|
||||
/// 双击尺寸标签:输入数值直接缩放图形(识别后图形 / 曲线 / 图元)。
|
||||
Future<void> _editDimLabel(ArchShape s, ArchDimKind k) async {
|
||||
final double cur = archShapeDimValue(s, k);
|
||||
final String? input = await showTextEditDialog(
|
||||
context,
|
||||
title: '编辑${archDimKindLabel(k)}(当前 ${cur.toStringAsFixed(1)} mm)',
|
||||
initial: cur.toStringAsFixed(1),
|
||||
);
|
||||
if (input == null || !mounted) return;
|
||||
final double? v = double.tryParse(input.trim());
|
||||
if (v == null || v <= 0) {
|
||||
c.setStatus('数值无效:请输入正数');
|
||||
return;
|
||||
}
|
||||
c.setArchShapeDim(s.id, k, v);
|
||||
}
|
||||
|
||||
/// 提交手绘:统一按图形识别处理(识别失败保留墨迹),并尝试两笔组合识别。
|
||||
void _commitInk(List<Offset> pts) {
|
||||
if (pts.length < 5) return;
|
||||
|
||||
Reference in New Issue
Block a user