!656 F1面板命令列表更新

pull/656/MERGE
肖诗雅 5 years ago committed by ChenX
parent df01f715e4
commit 6d775aa374

@ -36,10 +36,10 @@ export class CommandPanel extends React.Component<{}, CommandPanelState>
["灯光", "dg", 0], ["灯光", "dg", 0],
["排钻", "pz", 0], ["排钻", "pz", 0],
["视图", "view", 0], ["视图", "view", 0],
["实体", "czst", 0],
["标注", "dim", 0], ["标注", "dim", 0],
["视觉样式", "VisualStyle", 0], ["视觉样式", "VisualStyle", 0],
["工具", "util", 0], ["工具", "util", 0],
["文件", "file", 0],
] ]
}; };
} }

@ -91,16 +91,16 @@ export const CommandList: ICommand[] = observable([
// enName: "Rectangle", // enName: "Rectangle",
chDes: "画一个矩形", chDes: "画一个矩形",
}, },
{ // {
typeId: "i2d", // typeId: "i2d",
link: "#", // link: "#",
defaultCustom: "EL", // defaultCustom: "EL",
command: "EL", // command: "EL",
type: "二维", // type: "二维",
chName: "椭圆", // chName: "椭圆",
// enName: "Ellipse", // // enName: "Ellipse",
chDes: "画一个椭圆", // chDes: "画一个椭圆",
}, // },
{ {
icon: IconEnum.Text, icon: IconEnum.Text,
typeId: "i2d", typeId: "i2d",
@ -112,28 +112,17 @@ export const CommandList: ICommand[] = observable([
// enName: "Text", // enName: "Text",
chDes: "创建单行文字对象", chDes: "创建单行文字对象",
}, },
{ // {
icon: IconEnum.SpLine, // icon: IconEnum.SpLine,
typeId: "i2d", // typeId: "i2d",
link: "#", // link: "#",
defaultCustom: "SPL", // defaultCustom: "SPL",
command: "SPL", // command: "SPL",
type: "二维", // type: "二维",
chName: "样条曲线", // chName: "样条曲线",
// enName: "SPLine", // // enName: "SPLine",
chDes: "创建经过或靠近一组拟合点或由控制框的顶点定义的平滑曲线", // chDes: "创建经过或靠近一组拟合点或由控制框的顶点定义的平滑曲线",
}, // },
{
icon: IconEnum.Box,
typeId: "i2d",
link: "#",
defaultCustom: "B",
command: "B",
type: "二维",
chName: "盒子",
// enName: "Box",
chDes: "创建三维实体长方体",
},
{ {
icon: IconEnum.Region, icon: IconEnum.Region,
typeId: "i2d", typeId: "i2d",
@ -145,63 +134,8 @@ export const CommandList: ICommand[] = observable([
// enName: "Draw Region", // enName: "Draw Region",
chDes: "绘制面域", chDes: "绘制面域",
}, },
{
icon: IconEnum.Tangen,
typeId: "i2d",
link: "#",
defaultCustom: "TAN",
command: "TAN",
type: "二维",
chName: "切线",
// enName: "Draw Tangent Line",
chDes: "画切线",
},
{
icon: IconEnum.Circle,
typeId: "i2d",
link: "#",
defaultCustom: "C0",
command: "C0",
type: "二维",
chName: "单位圆",
// enName: "Unit circle",
chDes: "画单位圆",
},
//三维命令 //三维命令
{
icon: IconEnum.Ball,
typeId: "i3d",
link: "#",
defaultCustom: "SP",
command: "SP",
type: "三维",
chName: "球体",
// enName: "Sphere",
chDes: "创建三维实体球体",
},
{
icon: IconEnum.SkyBox,
typeId: "i3d",
link: "#",
defaultCustom: "SKY",
command: "SKY",
type: "三维",
chName: "天空盒",
// enName: "SkyBox",
chDes: "天空盒",
},
{
icon: IconEnum.Cuboid,
typeId: "i3d",
link: "#",
defaultCustom: "BOX",
command: "BOX",
type: "三维",
chName: "长方体",
// enName: "Box",
chDes: "绘制三维长方体实体",
},
{ {
icon: IconEnum.UCS, icon: IconEnum.UCS,
typeId: "i3d", typeId: "i3d",
@ -214,18 +148,7 @@ export const CommandList: ICommand[] = observable([
chDes: "设置当前用户坐标系 (UCS) 的原点和方向", chDes: "设置当前用户坐标系 (UCS) 的原点和方向",
}, },
{ {
icon: IconEnum.Cylinder, icon: IconEnum.ExtrudeEntity,
typeId: "i3d",
link: "#",
defaultCustom: "CYL",
command: "CYL",
type: "三维",
chName: "圆柱体",
// enName: "Cylineder",
chDes: "创建三维实体圆柱体",
},
{
icon: IconEnum.Cylinder,
typeId: "i3d", typeId: "i3d",
link: "#", link: "#",
defaultCustom: "EXTRUDE", defaultCustom: "EXTRUDE",
@ -233,18 +156,7 @@ export const CommandList: ICommand[] = observable([
type: "三维", type: "三维",
chName: "拉伸实体", chName: "拉伸实体",
// enName: "Cylineder", // enName: "Cylineder",
chDes: "创建三维实体圆柱体", chDes: "创建三维拉伸实体",
},
{
icon: IconEnum.DrawAxis,
typeId: "i3d",
link: "#",
defaultCustom: "AXIS",
command: "AXIS",
type: "三维",
chName: "绘制轴",
// enName: "Draw Axis",
chDes: "绘制轴",
}, },
//画板命令 //画板命令
@ -314,17 +226,17 @@ export const CommandList: ICommand[] = observable([
// enName: "VertivalBoard", // enName: "VertivalBoard",
chDes: "画立板", chDes: "画立板",
}, },
{ // {
icon: IconEnum.Floor, // icon: IconEnum.Floor,
typeId: "hb", // typeId: "hb",
link: "#", // link: "#",
defaultCustom: "FL", // defaultCustom: "FL",
command: "FL", // command: "FL",
type: "画板", // type: "画板",
chName: "地板", // chName: "地板",
// enName: "SingleBoard", // // enName: "SingleBoard",
chDes: "画地板", // chDes: "画地板",
}, // },
{ {
icon: IconEnum.Door, icon: IconEnum.Door,
typeId: "hb", typeId: "hb",
@ -651,33 +563,9 @@ export const CommandList: ICommand[] = observable([
chDes: "切换相机", chDes: "切换相机",
}, },
//操作实体
{
icon: IconEnum.CSGunion,
typeId: "czst",
link: "#",
defaultCustom: "CSGUNION",
command: "CSGUNION",
type: "实体",
chName: "实体并集",
// enName: "CSGunion",
chDes: "实体并集",
},
{
icon: IconEnum.CSGintersect,
typeId: "czst",
link: "#",
defaultCustom: "CSGSUB",
command: "CSGSUB",
type: "实体",
chName: "实体差集",
// enName: "CSGsub",
chDes: "实体差集",
},
//尺寸标注命令 //尺寸标注命令
{ {
icon: IconEnum.DimALigned, icon: IconEnum.DAL,
typeId: "dim", typeId: "dim",
link: "#", link: "#",
defaultCustom: "DAL", defaultCustom: "DAL",
@ -688,13 +576,13 @@ export const CommandList: ICommand[] = observable([
chDes: "创建与尺寸界线的原点对齐的线性标注", chDes: "创建与尺寸界线的原点对齐的线性标注",
}, },
{ {
icon: IconEnum.DimLinear, icon: IconEnum.DimContinued,
typeId: "dim", typeId: "dim",
link: "#", link: "#",
defaultCustom: "DLI", defaultCustom: "DLI",
command: "DLI", command: "DLI",
type: "标注", type: "标注",
chName: "线标注",//正确性待验证 chName: "线标注",
// enName: "Linear Dimension", // enName: "Linear Dimension",
chDes: "从上一个标注或选定标注的基线处创建线性标注、角度标注或坐标标注", chDes: "从上一个标注或选定标注的基线处创建线性标注、角度标注或坐标标注",
}, },
@ -710,7 +598,7 @@ export const CommandList: ICommand[] = observable([
chDes: "测量选定的几何对象或 3 个点之间的角度", chDes: "测量选定的几何对象或 3 个点之间的角度",
}, },
{ {
icon: IconEnum.DimContinued, icon: IconEnum.DimLinear,
typeId: "dim", typeId: "dim",
link: "#", link: "#",
defaultCustom: "DCO", defaultCustom: "DCO",
@ -854,28 +742,6 @@ export const CommandList: ICommand[] = observable([
// enName: "Delete", // enName: "Delete",
chDes: "删除已经绘制的图元", chDes: "删除已经绘制的图元",
}, },
{
icon: IconEnum.Cancel,
typeId: "util",
link: "#",
defaultCustom: "U",
command: "U",
type: "工具",
chName: "撤销",
// enName: "Redo",
chDes: "撤销上一步操作",
},
{
icon: IconEnum.Undo,
typeId: "util",
link: "#",
defaultCustom: "REDO",
command: "REDO",
type: "工具",
chName: "重做",
// enName: "Undo",
chDes: "重做上一步操作",
},
{ {
icon: IconEnum.Move, icon: IconEnum.Move,
typeId: "util", typeId: "util",
@ -998,14 +864,13 @@ export const CommandList: ICommand[] = observable([
chDes: "拉伸与选择窗口或多边形交叉的对象.", chDes: "拉伸与选择窗口或多边形交叉的对象.",
}, },
{ {
icon: IconEnum.Stretch,
typeId: "util", typeId: "util",
link: "#", link: "#",
defaultCustom: "SS", defaultCustom: "SS",
command: "SELECTSTRETCH", command: "SELECTSTRETCH",
type: "工具", type: "工具",
chName: "选择拉伸", chName: "选择拉伸",
// enName: "Stretch", // enName: "SelectedStretch",
chDes: "先选择要拉伸的对象,在选择拉伸范围拉伸.", chDes: "先选择要拉伸的对象,在选择拉伸范围拉伸.",
}, },
{ {
@ -1063,50 +928,17 @@ export const CommandList: ICommand[] = observable([
// enName: "Join", // enName: "Join",
chDes: "合并线性和弯曲对象的端点,以便创建单个对象", chDes: "合并线性和弯曲对象的端点,以便创建单个对象",
}, },
{ // {
icon: IconEnum.FBX, // icon: IconEnum.FBX,
typeId: "util", // typeId: "util",
link: "#", // link: "#",
defaultCustom: "FBX", // defaultCustom: "FBX",
command: "FBX", // command: "FBX",
type: "工具", // type: "工具",
chName: "FBX", // chName: "FBX",
// enName: "Import FBX", // // enName: "Import FBX",
chDes: "导入FBX", // chDes: "导入FBX",
}, // },
{
icon: IconEnum.DXF,
typeId: "util",
link: "#",
defaultCustom: "DXF",
command: "DXF",
type: "工具",
chName: "DXF",
// enName: "Import DXF",
chDes: "导入DXF",
},
{
icon: IconEnum.Save,
typeId: "util",
link: "#",
defaultCustom: "SAVE",
command: "SAVE",
type: "工具",
chName: "保存",
// enName: "Save",
chDes: "保存当前图纸",
},
{
icon: IconEnum.Open,
typeId: "util",
link: "#",
defaultCustom: "OPEN",
command: "OPEN",
type: "工具",
chName: "打开",
// enName: "Open",
chDes: "打开图纸",
},
{ {
icon: IconEnum.Entsel, icon: IconEnum.Entsel,
typeId: "util", typeId: "util",
@ -1162,17 +994,17 @@ export const CommandList: ICommand[] = observable([
// enName: "Region Sub", // enName: "Region Sub",
chDes: "差集", chDes: "差集",
}, },
{ // {
icon: IconEnum.Sweep, // icon: IconEnum.Sweep,
typeId: "util", // typeId: "util",
link: "#", // link: "#",
defaultCustom: "SW", // defaultCustom: "SW",
command: "SW", // command: "SW",
type: "工具", // type: "工具",
chName: "扫掠", // chName: "扫掠",
// enName: "Sweep", // // enName: "Sweep",
chDes: "通过沿开放或闭合路径扫掠二维对象或子对象来创建三维实体或三维曲面", // chDes: "通过沿开放或闭合路径扫掠二维对象或子对象来创建三维实体或三维曲面",
}, // },
{ {
icon: IconEnum.Mirror, icon: IconEnum.Mirror,
typeId: "util", typeId: "util",
@ -1184,28 +1016,28 @@ export const CommandList: ICommand[] = observable([
// enName: "Mirror", // enName: "Mirror",
chDes: "创建所选对象的镜像副本", chDes: "创建所选对象的镜像副本",
}, },
{ // {
icon: IconEnum.Explode, // icon: IconEnum.Explode,
typeId: "util", // typeId: "util",
link: "#", // link: "#",
defaultCustom: "X", // defaultCustom: "X",
command: "X", // command: "X",
type: "工具", // type: "工具",
chName: "爆炸", // chName: "爆炸",
// enName: "Explode", // // enName: "Explode",
chDes: "将对象炸开", // chDes: "将对象炸开",
}, // },
{ // {
icon: IconEnum.ClosestPoint, // icon: IconEnum.ClosestPoint,
typeId: "util", // typeId: "util",
link: "#", // link: "#",
defaultCustom: "CLOSE", // defaultCustom: "CLOSE",
command: "CLOSE", // command: "CLOSE",
type: "工具", // type: "工具",
chName: "最近点", // chName: "最近点",
// enName: "Recent Point", // // enName: "Recent Point",
chDes: "最近点", // chDes: "最近点",
}, // },
{ {
typeId: "util", typeId: "util",
link: "#", link: "#",
@ -1216,6 +1048,79 @@ export const CommandList: ICommand[] = observable([
// enName: "Delete Curve", // enName: "Delete Curve",
chDes: "批量删除线条", chDes: "批量删除线条",
}, },
//#endregion
//#region 文件命令
{
icon: IconEnum.New,
typeId: "file",
link: "#",
defaultCustom: "NEW",
command: "NEW",
type: "文件",
chName: "新建文件",
chDes: "新建文件",
},
{
icon: IconEnum.Save,
typeId: "file",
link: "#",
defaultCustom: "SAVE",
command: "SAVE",
type: "文件",
chName: "保存文件",
chDes: "保存当前文件",
},
{
icon: IconEnum.SaveAs,
typeId: "file",
link: "#",
defaultCustom: "SAVEAS",
command: "SAVEAS",
type: "文件",
chName: "另存为",
chDes: "将当前文件另存为",
},
{
icon: IconEnum.Cancel,
typeId: "file",
link: "#",
defaultCustom: "U",
command: "U",
type: "文件",
chName: "撤销",
chDes: "撤销上一步操作",
},
{
icon: IconEnum.Undo,
typeId: "file",
link: "#",
defaultCustom: "REDO",
command: "REDO",
type: "文件",
chName: "重做",
chDes: "重做被撤销的操作",
},
{
icon: IconEnum.Open,
typeId: "file",
link: "#",
defaultCustom: "OPEN",
command: "OPEN",
type: "文件",
chName: "打开",
chDes: "打开文件",
},
{
icon: IconEnum.DXF,
typeId: "file",
link: "#",
defaultCustom: "DXF",
command: "DXF",
type: "文件",
chName: "DXF",
// enName: "Import DXF",
chDes: "导入DXF",
},
//#endregion //#endregion
]); ]);

@ -1,103 +1,88 @@
#commandPanel .bp3-dialog #commandPanel
{ {
margin-bottom: 0; .bp3-input{
} margin: 10px;
#commandPanel .bp3-dialog-body font-size: initial;
{ }
display: flex; .bp3-dialog{
width: 50vw; margin-bottom: 0;
min-width: 651px; >div >.bp3-input{
} border-radius: unset;
#commandPanel .bp3-tabs width:-webkit-fill-available;
{ }
min-width: 86px; .bp3-dialog-body{
justify-content: center; display: flex;
} width: 50vw;
#commanPanel .bp3-tab min-width: 651px;
{ .bp3-tabs{
margin: 0px; min-width: 86px;
padding-left: 10px; justify-content: center;
} > .bp3-tab-list
//命令面板输入框样式 {
#commandPanel .bp3-input { text-align: center;
border-radius: unset; margin-left: 10px;
margin: 10px; }
font-size: initial; }
width:-webkit-fill-available; .bp3-card{
} width: 100%;
#commandPanel .bp3-tab-list height: 50vh;
{ min-height: 300px;
text-align: center; overflow: auto;
} padding: 0 10px 10px 10px;
#commandPanel .bp3-card margin: 10px;
{ >ul{
width: 100%; >ul>div>h1
height: 50vh; {
min-height: 300px; font-size: 2.5rem !important;
overflow: auto; padding-left: 30px;
padding: 0 10px 10px 10px; margin: 25px 0px;
margin: 10px; }
} >li,>ul>li{
#commandPanel .bp3-card>ul>ul>div>h1 border-bottom: 1px solid #5C7080;
{ padding: 5px;
font-size: 2.5rem !important; display: flex;
padding-left: 30px; flex-direction:row;
margin: 25px 0px; outline: none;
} align-items: center;
#commandPanel .bp3-card>ul>li,#commandPanel .bp3-card>ul>ul>li justify-content: space-around;
{ >li{
border-bottom: 1px solid #5C7080; height: 36px;
padding: 5px; margin-right: 12px;
display: flex; font-size: large;
flex-direction:row; display: flex;
outline: none; align-items: center;
align-items: center; &:first-child{
justify-content: space-around; width:4%;
} }
#commandPanel .bp3-card>ul>li>li,#commandPanel .bp3-card>ul>ul>li>li &:nth-child(2){
{ width:17%;
height: 36px; }
margin-right: 12px; &:nth-child(4){
font-size: large; width:20%;
display: flex; }
align-items: center; &:nth-child(5){
} width:10%;
#commandPanel .bp3-card>ul>li>li:first-child,#commandPanel .bp3-card>ul>ul>li>li:first-child }
{ >a{
width:4%; text-align: center;
} }
#commandPanel .bp3-card>ul>li>li:nth-child(2),#commandPanel .bp3-card>ul>ul>li>li:nth-child(2) >span>span>input{
{ height: 2.0rem !important;
width:17%; width: 100%;
} border-radius: 3px;
#commandPanel .bp3-card>ul>li>ul,#commandPanel .bp3-card>ul>ul>li>ul }
{ }
width:25%; >ul{
font-size: smaller; margin-right: 12px;
} width:25%;
#commandPanel .bp3-card>ul>li>li:nth-child(4),#commandPanel .bp3-card>ul>ul>li>li:nth-child(4) font-size: smaller;
{ >li:nth-child(2){
width:20%; color: #8A9BA8;
} }
#commandPanel .bp3-card>ul>li>li:nth-child(5),#commandPanel .bp3-card>ul>ul>li>li:nth-child(5) }
{ }
width:10%; }
} }
#commandPanel .bp3-card>ul>li>ul,#commandPanel .bp3-card>ul>ul>li>ul }
{ }
margin-right: 12px;
}
#commandPanel .bp3-card>ul>li>li>a,#commandPanel .bp3-card>ul>ul>li>li>a
{
text-align: center;
}
#commandPanel .bp3-card>ul>li>ul>li:nth-child(2),#commandPanel .bp3-card>ul>ul>li>ul>li:nth-child(2)
{
color: #8A9BA8;
}
#commandPanel .bp3-card>ul>li>li>span>span>input,#commandPanel .bp3-card>ul>ul>li>li>span>span>input
{
height: 2.0rem !important;
width: 100%;
border-radius: 3px;
} }

Loading…
Cancel
Save