!2846 修复: 图层上方UI的样式,门洞支持图层颜色,图层隐藏也有拆单提示以及双击实体特性

pull/2848/head
张子涵 3 months ago committed by ChenX
parent 5665d72fc5
commit 26445b7ee4

@ -532,7 +532,7 @@ export async function GetProductsEntitys()
if (selction.Status !== PromptStatus.OK) return;
if (app.Database.ModelSpace.Entitys.some(e => (e instanceof Board) && e.Id?.Object && !e.IsErase && !e.Visible))
if (app.Database.ModelSpace.Entitys.some(e => (e instanceof Board) && e.Id?.Object && !e.IsErase && !e.IsVisible))
{
let status = await AppConfirm.show({
message: "图纸中有隐藏板件,是否继续拆单?"

@ -592,8 +592,8 @@ export class RoomHolePolyline extends RoomHoleBase
let obj = new Object3D;
if (renderType === RenderType.Conceptual)
{
let mesh = new Mesh(this.MeshGeometry, ColorMaterial.GetConceptualMaterial(this.ColorIndex));
let line = new LineSegments(this.EdgeGeometry, ColorMaterial.GetLineMaterial(this.ColorIndex));
let mesh = new Mesh(this.MeshGeometry, ColorMaterial.GetConceptualMaterial(this.DrawColorIndex));
let line = new LineSegments(this.EdgeGeometry, ColorMaterial.GetLineMaterial(this.DrawColorIndex));
obj.add(mesh, line);
}
else if (renderType === RenderType.Print)
@ -664,7 +664,7 @@ export class RoomHolePolyline extends RoomHoleBase
else if (renderType === RenderType.Conceptual)
{
let mesh = obj.children[0] as Mesh;
mesh.material = ColorMaterial.GetConceptualMaterial(this.ColorIndex);
mesh.material = ColorMaterial.GetConceptualMaterial(this.DrawColorIndex);
}
else if (renderType === RenderType.Physical2)
{

@ -1,7 +1,7 @@
/* 图层特性 */
.layer-feature {
display: flex;
flex-direction: row;
flex-direction: row !important;
flex-wrap: wrap;
margin-bottom: 5px;
padding-right: 20px;
@ -20,7 +20,7 @@
.layer-feature-logo {
display: flex;
flex-direction: column;
flex-direction: column !important;
align-items: center;
justify-content: center;
margin-left: 20px;

@ -130,6 +130,11 @@ export class LayerPanel extends React.Component<{}, {}>
super(props);
LayerPropertieStore.isShow = true;
}
/** 组件注销时 */
componentWillUnmount()
{
LayerPropertieStore.isShow = false;
}
render()
{
const propertiesStore = PropertiesStore.GetInstance();

Loading…
Cancel
Save