From 886a1c4a582d9236dc74f13e66690cbf46a69ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E4=B8=89?= <940119273@qq.com> Date: Tue, 4 Jun 2024 03:08:08 +0000 Subject: [PATCH] =?UTF-8?q?!2799=20=E4=BC=98=E5=8C=96:=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=9D=BF=E4=BB=B6=E4=BF=A1=E6=81=AF=E6=A0=87=E6=B3=A8=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E5=BF=AB=E6=8D=B7=E9=94=AE=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UI/Components/CommandPanel/CommandList.ts | 58 +++++++++---------- src/UI/Components/TopToolBar/TopToolBar.tsx | 2 +- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/UI/Components/CommandPanel/CommandList.ts b/src/UI/Components/CommandPanel/CommandList.ts index 9d93163f9..7a6cff94f 100644 --- a/src/UI/Components/CommandPanel/CommandList.ts +++ b/src/UI/Components/CommandPanel/CommandList.ts @@ -1559,6 +1559,17 @@ export const CommandList: ICommand[] = [ // enName: "Linear Dimension", chDes: "从上一个标注或选定标注的基线处创建线性标注、角度标注或坐标标注", }, + { + icon: IconEnum.DimLinear, + typeId: "dim", + link: `${HelpUrlBase}Mark/ContinuousLabel`, + defaultCustom: "DCO", + command: CommandNames.DimContinue, + type: "标注", + chName: "连续标注", + // enName: "Continue Dimension", + chDes: "创建从上一个标注或选定标注的尺寸界线开始的标注", + }, { icon: IconEnum.DimAngle, typeId: "dim", @@ -1571,15 +1582,14 @@ export const CommandList: ICommand[] = [ chDes: "测量选定的几何对象或 3 个点之间的角度", }, { - icon: IconEnum.DimLinear, + icon: IconEnum.DimArc, typeId: "dim", - link: `${HelpUrlBase}Mark/ContinuousLabel`, - defaultCustom: "DCO", - command: CommandNames.DimContinue, + defaultCustom: CommandNames.DimArc, + command: CommandNames.DimArc, type: "标注", - chName: "连续标注", + chName: "弧长标注", // enName: "Continue Dimension", - chDes: "创建从上一个标注或选定标注的尺寸界线开始的标注", + chDes: "标注弧长", }, { icon: IconEnum.Circle, @@ -1588,7 +1598,7 @@ export const CommandList: ICommand[] = [ defaultCustom: "DIMRAD", command: CommandNames.RadiusDim, type: "标注", - chName: "标注半径", + chName: "半径标注", // enName: "Continue Dimension", chDes: "标注半径", }, @@ -1599,30 +1609,10 @@ export const CommandList: ICommand[] = [ defaultCustom: "DIMDIA", command: CommandNames.DiaDim, type: "标注", - chName: "标注直径", + chName: "直径标注", // enName: "Continue Dimension", chDes: "标注直径", }, - { - icon: IconEnum.DimArc, - typeId: "dim", - defaultCustom: CommandNames.DimArc, - command: CommandNames.DimArc, - type: "标注", - chName: "标注弧长", - // enName: "Continue Dimension", - chDes: "标注弧长", - }, - { - icon: IconEnum.BoardInfoDim, - typeId: "dim", - defaultCustom: CommandNames.BoardInfoDim, - command: CommandNames.BoardInfoDim, - type: "标注", - chName: "标注板件", - // enName: "Continue Dimension", - chDes: "标注板件", - }, { icon: IconEnum.AutoDim, typeId: "dim", @@ -1630,7 +1620,7 @@ export const CommandList: ICommand[] = [ defaultCustom: "AUTODIMBRS", command: CommandNames.AutoDimBrs, type: "标注", - chName: "标注柜体", + chName: "柜体标注", // enName: "Cabinet Dimension", chDes: "标注柜体", }, @@ -1654,6 +1644,16 @@ export const CommandList: ICommand[] = [ chName: "断点标注", chDes: "选择标注,断点操作", }, + { + icon: IconEnum.BoardInfoDim, + typeId: "dim", + defaultCustom: CommandNames.BoardInfoDim, + command: CommandNames.BoardInfoDim, + type: "标注", + chName: "板件信息标注", + // enName: "Continue Dimension", + chDes: "标注板件信息", + }, { icon: IconEnum.DelDim, typeId: "dim", diff --git a/src/UI/Components/TopToolBar/TopToolBar.tsx b/src/UI/Components/TopToolBar/TopToolBar.tsx index cad87dc99..74a1968a8 100644 --- a/src/UI/Components/TopToolBar/TopToolBar.tsx +++ b/src/UI/Components/TopToolBar/TopToolBar.tsx @@ -111,8 +111,8 @@ export class TopToolBar extends React.Component<{}, {}> store.iconList.dim = [ { svg: IconEnum.DAL, title: "对齐标注", command: CommandNames.AlignDim }, { svg: IconEnum.DimContinued, title: "线性标注", command: CommandNames.LinearDim }, - { svg: IconEnum.DimAngle, title: "角度标注", command: CommandNames.AngleDim }, { svg: IconEnum.DimLinear, title: "连续标注", command: CommandNames.DimContinue }, + { svg: IconEnum.DimAngle, title: "角度标注", command: CommandNames.AngleDim }, { svg: IconEnum.DimArc, title: "弧长标注", command: CommandNames.DimArc }, { svg: IconEnum.Circle, title: "半径标注", command: CommandNames.RadiusDim }, { svg: IconEnum.Diameter, title: "直径标注", command: CommandNames.DiaDim },