优化:删除超短板时,将不会在提示有超短板

pull/1461/MERGE
ChenX 4 years ago
parent e7fa5a106e
commit 2534803e9d

@ -33,7 +33,7 @@ export class BoardLinesReactor
{
if (hasMaxSize || hasShortBoard)
AppConfirm.show({
message: `${hasMaxSize ? '检测到有超长板件' : ""} ${hasShortBoard ? '检测到有超短板件' : ""}`,
message: `${hasMaxSize ? '检测到有超长板件!(查找超长板命令:FindMaxBr)' : ""} ${hasShortBoard ? '检测到有超短板件!(查找超短板FindMinBr)' : ""}`,
hasCancel: false,
});
}
@ -98,6 +98,7 @@ const MinThickness = 2;
export function BoardIsShort(br: CADObject): boolean
{
if (br.IsErase) return false;
if (br instanceof Board)
return br.Width < MinWidth || br.Height < MinHeight || br.Thickness < MinThickness;
return false;

Loading…
Cancel
Save