|
|
|
@ -33,6 +33,7 @@ import { BoardModalType } from "../Board/BoardModalType";
|
|
|
|
|
import { Config_ModalType } from '../Board/UserConfigComponent';
|
|
|
|
|
import './HideSelectModal.less';
|
|
|
|
|
import { CommonModal } from './ModalContainer';
|
|
|
|
|
import { VisualSpaceBox } from '../../../Editor/VisualSpaceBox';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type AllString<T> = {
|
|
|
|
@ -61,6 +62,7 @@ export const KEY2LABEL: AllString<IHSOption> = {
|
|
|
|
|
hinge: "铰链",
|
|
|
|
|
hwComposity: "复合实体",
|
|
|
|
|
dim: "标注",
|
|
|
|
|
visual: "虚拟空间",
|
|
|
|
|
noChaiDan: "不拆单的板",
|
|
|
|
|
curve: "曲线",
|
|
|
|
|
line: "直线",
|
|
|
|
@ -85,7 +87,7 @@ const CURVE_KEYS = [
|
|
|
|
|
"curve", "line", "polyline", "circle", "arc"
|
|
|
|
|
];
|
|
|
|
|
const OTHERS = [
|
|
|
|
|
"dim"
|
|
|
|
|
"dim", "visual"
|
|
|
|
|
];
|
|
|
|
|
const KEYS: [string, string[]][] = [
|
|
|
|
|
["板件类", BOARD_KEYS], ["孔类", HOLE_KEYS], ["五金组件类", HW_KEYS], ["曲线类", CURVE_KEYS], ["其他", OTHERS]
|
|
|
|
@ -616,6 +618,11 @@ export class HideSelectModal extends React.Component<{ store: HideSelectStore; h
|
|
|
|
|
if (option.dim)
|
|
|
|
|
resEntSet.add(e);
|
|
|
|
|
}
|
|
|
|
|
if (e instanceof VisualSpaceBox)
|
|
|
|
|
{
|
|
|
|
|
if (option.visual)
|
|
|
|
|
resEntSet.add(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return resEntSet;
|
|
|
|
|