|
|
|
@ -4,6 +4,7 @@ import { matrixScale } from "../Common/Matrix4Utils";
|
|
|
|
|
import { Command } from "../Editor/CommandMachine";
|
|
|
|
|
import { JigUtils } from "../Editor/JigUtils";
|
|
|
|
|
import { PromptStatus } from "../Editor/PromptResult";
|
|
|
|
|
import { equaln } from "../Geometry/GeUtils";
|
|
|
|
|
|
|
|
|
|
export class Command_Scale implements Command
|
|
|
|
|
{
|
|
|
|
@ -32,6 +33,7 @@ export class Command_Scale implements Command
|
|
|
|
|
Msg: "请输入缩放比例:",
|
|
|
|
|
Callback: (sc) =>
|
|
|
|
|
{
|
|
|
|
|
if (equaln(sc, 0)) return;
|
|
|
|
|
JigUtils.Restore();
|
|
|
|
|
let scMat = matrixScale(sc, ptRes.Point);
|
|
|
|
|
for (let en of jigEns)
|
|
|
|
|