|
|
|
@ -10,7 +10,9 @@ import { safeEval } from "../../../Common/eval";
|
|
|
|
|
import { KeyBoard, KeyCode } from "../../../Common/KeyEnum";
|
|
|
|
|
import { digitStrReg } from "../../../Common/Utils";
|
|
|
|
|
import { AlignedDimension } from "../../../DatabaseServices/Dimension/AlignedDimension";
|
|
|
|
|
import { CommandWrap } from "../../../Editor/CommandMachine";
|
|
|
|
|
import { commandMachine, CommandWrap } from "../../../Editor/CommandMachine";
|
|
|
|
|
import { CommandState } from "../../../Editor/CommandState";
|
|
|
|
|
import { AppToaster } from "../Toaster";
|
|
|
|
|
import { PropertiesStore } from "./PropertiesStore";
|
|
|
|
|
export interface Properties_DimPanelProps
|
|
|
|
|
{
|
|
|
|
@ -210,6 +212,19 @@ export class Properties_DimPanel extends React.Component<Properties_DimPanelProp
|
|
|
|
|
labelStepSize={25}
|
|
|
|
|
onChange={(value) =>
|
|
|
|
|
{
|
|
|
|
|
if (!CommandState.CommandIng)
|
|
|
|
|
commandMachine.CommandStart("更改标注文字尺寸");
|
|
|
|
|
else
|
|
|
|
|
if (app.Database.hm.UndoData.CommandName !== "更改标注文字尺寸")
|
|
|
|
|
{
|
|
|
|
|
AppToaster.show({
|
|
|
|
|
message: "命令执行中,无法修改标注尺寸!",
|
|
|
|
|
timeout: 5000,
|
|
|
|
|
intent: Intent.WARNING,
|
|
|
|
|
}, "change_dim_text");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.numericInputVal = value.toString();
|
|
|
|
|
this.dim_TextSize = value;
|
|
|
|
|
for (let al of ents)
|
|
|
|
@ -218,6 +233,11 @@ export class Properties_DimPanel extends React.Component<Properties_DimPanelProp
|
|
|
|
|
}
|
|
|
|
|
}}
|
|
|
|
|
value={this.dim_TextSize}
|
|
|
|
|
onRelease={() =>
|
|
|
|
|
{
|
|
|
|
|
if (CommandState.CommandIng && app.Database.hm.UndoData.CommandName === "更改标注文字尺寸")
|
|
|
|
|
commandMachine.CommandEnd();
|
|
|
|
|
}}
|
|
|
|
|
vertical={false}
|
|
|
|
|
/>
|
|
|
|
|
</li>
|
|
|
|
|