|
|
|
@ -10,9 +10,10 @@ export class BoardLinesReactor
|
|
|
|
|
app.CommandReactor.OnCommandEnd((cmdName: string, changeObjects: CADObject[], createObjects: CADObject[]) =>
|
|
|
|
|
{
|
|
|
|
|
for (let ent of changeObjects)
|
|
|
|
|
{
|
|
|
|
|
this.AutoChangeBoardLines(ent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (let ent of createObjects)
|
|
|
|
|
this.AutoChangeBoardLines(ent);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -32,6 +33,8 @@ export class BoardLinesReactor
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
app.Editor.Prompt(`板${ent.BoardProcessOption.boardName}超长,无法自动翻转!长:${ent.Height},宽:${ent.Width}.`);
|
|
|
|
|
if (ent.BoardProcessOption.lines !== LinesType.CanReversal)
|
|
|
|
|
ent.BoardProcessOption.lines = ent.Height > ent.Width ? LinesType.Positive : LinesType.Reverse;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|