|
|
|
@ -1,16 +1,16 @@
|
|
|
|
|
import React from "react";
|
|
|
|
|
import { Card, Classes, Button, Slider, NumericInput, Position, Intent, Tooltip } from "@blueprintjs/core";
|
|
|
|
|
import { app } from "../../../ApplicationServices/Application";
|
|
|
|
|
import { KeyBoard, KeyCode } from "../../../Common/KeyEnum";
|
|
|
|
|
import { safeEval } from "../../../Common/eval";
|
|
|
|
|
import { AlignedDimension } from "../../../DatabaseServices/Dimension/AlignedDimension";
|
|
|
|
|
import { Button, Card, Classes, Intent, NumericInput, Position, Slider, Tooltip } from "@blueprintjs/core";
|
|
|
|
|
import { observable } from "mobx";
|
|
|
|
|
import { observer } from "mobx-react";
|
|
|
|
|
import { PropertiesStore } from "./PropertiesStore";
|
|
|
|
|
import { end, begin } from "xaop";
|
|
|
|
|
import React from "react";
|
|
|
|
|
import { Object3D } from "three";
|
|
|
|
|
import { end } from "xaop";
|
|
|
|
|
import { app } from "../../../ApplicationServices/Application";
|
|
|
|
|
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 { PropertiesStore } from "./PropertiesStore";
|
|
|
|
|
export interface Properties_DimPanelProps
|
|
|
|
|
{
|
|
|
|
|
ents: AlignedDimension[];
|
|
|
|
@ -40,13 +40,6 @@ export class Properties_DimPanel extends React.Component<Properties_DimPanelProp
|
|
|
|
|
{
|
|
|
|
|
this.outlineCheckDims = true;
|
|
|
|
|
}),
|
|
|
|
|
begin((new AlignedDimension()).AsyncUpdated, () =>
|
|
|
|
|
{
|
|
|
|
|
for (let al of this.props.ents)
|
|
|
|
|
{
|
|
|
|
|
app.Viewer.GripScene.Update(al.DrawObject);
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
end(app.Editor.KeyCtrl, app.Editor.KeyCtrl.OnKeyUp, (e: KeyboardEvent) =>
|
|
|
|
|
{
|
|
|
|
|
if (app.Editor.KeyCtrl.KeyIsDown(KeyCode.ControlLeft))
|
|
|
|
|