|
|
@ -100,6 +100,7 @@ export class DrawLine implements Command
|
|
|
|
|
|
|
|
|
|
|
|
while (true)
|
|
|
|
while (true)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
JigUtils.Destroy();
|
|
|
|
let line = new Line(ptLast.clone());
|
|
|
|
let line = new Line(ptLast.clone());
|
|
|
|
if (pts.length === 1 && firstSnapModeIsTan)
|
|
|
|
if (pts.length === 1 && firstSnapModeIsTan)
|
|
|
|
JigUtils.Draw(line);//我们用这个来代替橡皮筋
|
|
|
|
JigUtils.Draw(line);//我们用这个来代替橡皮筋
|
|
|
@ -179,7 +180,6 @@ export class DrawLine implements Command
|
|
|
|
drawLines.push(line);
|
|
|
|
drawLines.push(line);
|
|
|
|
ptLast = line.EndPoint;
|
|
|
|
ptLast = line.EndPoint;
|
|
|
|
pts.push(ptLast);
|
|
|
|
pts.push(ptLast);
|
|
|
|
JigUtils.Destroy();
|
|
|
|
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//正常画线
|
|
|
|
//正常画线
|
|
|
|