!2848 优化: 只要左侧特性打开,才不能双击特性

pull/2642/MERGE
张子涵 3 months ago committed by ChenX
parent 26445b7ee4
commit caa44c15d3

@ -321,7 +321,7 @@ export class DbClickManager extends Singleton
{
let enStore = EntityStore.GetInstance();
//如果打开曲线特性框,后续的双击的图元加入属性框进行设置
if (enStore.IsWorking)
if (enStore.IsCanShowProperties)
return;
enStore.AddEntitysToMap([pickEnt]);

@ -68,6 +68,14 @@ export class EntityStore extends Singleton
return (DownPanelStore.GetInstance().showType & ToolBarType.properties) > 0 || LayerPropertieStore.isShow;
}
/** 是否可以双击实体,显示特性弹窗 */
get IsCanShowProperties()
{
const store = DownPanelStore.GetInstance();
// 仅当打开左侧特性面板(图层不算)
return (store.showType & ToolBarType.properties) > 0 && !store.isLayer;
}
GetEntitys()
{
let ens: Entity[] = [];

Loading…
Cancel
Save