v1.3.10: 应用身份切换 cc.sincos.edc(彻底解决桌面名称); 移除尺寸标注与图元库自定义; 修复帮助中心空白与 Windows 更新包校验
This commit is contained in:
@@ -895,34 +895,6 @@ class AppController extends ChangeNotifier {
|
||||
]);
|
||||
}
|
||||
|
||||
// ---- 识别后图形的尺寸编辑(不走约束求解器:直接缩放几何) ----
|
||||
|
||||
/// 修改图形尺寸(识别后图形 / 曲线 / 图元直接改值缩放)。
|
||||
void setArchShapeDim(String id, ArchDimKind kind, double value) {
|
||||
final ArchShape? s = arch.shapeById(id);
|
||||
if (s == null || value <= 0) return;
|
||||
updateArchShape(
|
||||
archShapeApplyDim(s, kind, value),
|
||||
status: '${s.text.isNotEmpty ? s.text : archShapeTypeLabel(s.type)}'
|
||||
':${archDimKindLabel(kind)} → ${value.toStringAsFixed(1)} mm',
|
||||
);
|
||||
}
|
||||
|
||||
/// 切换画布尺寸标注(显示 / 隐藏;双击标签可改值)。
|
||||
void toggleArchShapeDim(String id, ArchDimKind kind) {
|
||||
final ArchShape? s = arch.shapeById(id);
|
||||
if (s == null) return;
|
||||
final Set<ArchDimKind> next = Set<ArchDimKind>.of(s.dims);
|
||||
final bool removed = next.remove(kind);
|
||||
if (!removed) next.add(kind);
|
||||
updateArchShape(
|
||||
s.copyWith(dims: next),
|
||||
status: removed
|
||||
? '已取消${archDimKindLabel(kind)}标注'
|
||||
: '已标注${archDimKindLabel(kind)}(双击标签可改值)',
|
||||
);
|
||||
}
|
||||
|
||||
/// 删除选中的草图对象。
|
||||
void deleteSketchSelection() {
|
||||
if (_sketchSelIds.isEmpty) return;
|
||||
|
||||
Reference in New Issue
Block a user