@xtctwins/tctwins-bimx-engine 0.1.21 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AnnotationTool-BvFG1vTX.mjs → AnnotationTool-DojqlWub.mjs} +12 -12
- package/dist/BIMX_Viewer_Lib.es.js +4 -4
- package/dist/BIMX_Viewer_Lib.umd.js +89 -94
- package/dist/CommentTool-CR9lVrzW.mjs +338 -0
- package/dist/HiddenTool-Wi-kOd2H.mjs +58 -0
- package/dist/InspectorTool-DIayiHOO.mjs +625 -0
- package/dist/MeasureTool-CHZ67WhG.mjs +1540 -0
- package/dist/{NavigateTool-CCIb1X4u.mjs → NavigateTool-CQoj_On8.mjs} +7 -7
- package/dist/{RoamTool-B1w0efz8.mjs → RoamTool-C3CV1E9g.mjs} +20 -20
- package/dist/{ScreenShotTool-BviRVFSg.mjs → ScreenShotTool-BIIBp4eQ.mjs} +67 -67
- package/dist/SectionTool-CihpG2Fy.mjs +624 -0
- package/dist/SettingTool-nEoxPwEr.mjs +525 -0
- package/dist/StructureTree-CJH8jkPI.mjs +1427 -0
- package/dist/{debounce-Cg3LHv0T.mjs → debounce-BjnjVRfm.mjs} +13 -13
- package/dist/{el-checkbox-lp8vWAXQ.mjs → el-checkbox-CSuEX00S.mjs} +46 -46
- package/dist/{el-input-Bwqgf3wZ.mjs → el-input-Bm753NUP.mjs} +66 -68
- package/dist/{el-input-number-0OWyX276.mjs → el-input-number-BvvuoubO.mjs} +75 -75
- package/dist/{index-DX-eYsBm.mjs → index-BlDGbvS0.mjs} +2885 -2877
- package/dist/{index-CQ8depiU.mjs → index-BognDb0Q.mjs} +3 -3
- package/dist/{index-CYEu_kT4.mjs → index-CtoOocrY.mjs} +1 -1
- package/dist/{isEqual-Bg-tyY30.mjs → isEqual-BULlB8Co.mjs} +9 -9
- package/dist/panel.vue_vue_type_style_index_0_lang-tTB1oDNs.mjs +97 -0
- package/dist/style.css +1 -1
- package/dist/tallPanel-CmlMVBG1.mjs +49 -0
- package/package.json +2 -2
- package/types/components/utilsComponents/tallPanel.vue.d.ts +41 -0
- package/types/pages/BIMXViewer.vue.d.ts +2 -0
- package/types/services/fileApi/fileManager.d.ts +5 -5
- package/types/store/initConfigs.d.ts +1 -1
- package/types/store/themeManager.d.ts +2 -1
- package/dist/CommentTool-B6ruuuGV.mjs +0 -338
- package/dist/HiddenTool-DW-lRdW5.mjs +0 -58
- package/dist/InspectorTool-Cc288ySp.mjs +0 -515
- package/dist/MeasureTool-DdfM3U_3.mjs +0 -1542
- package/dist/SectionTool-jSjWX32j.mjs +0 -630
- package/dist/SettingTool-CVMZAx2H.mjs +0 -536
- package/dist/StructureTree-4OCdRRPG.mjs +0 -2672
- package/dist/panel.vue_vue_type_style_index_0_scope_true_lang-BfE1I0S9.mjs +0 -82
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
import { _ as X, a as Y } from "./panel.vue_vue_type_style_index_0_lang-tTB1oDNs.mjs";
|
|
2
|
+
import { _ as ee } from "./tallPanel-CmlMVBG1.mjs";
|
|
3
|
+
import { j as te, l as $, k as b, T as H, O as L, m as ne, n as se } from "./index-BlDGbvS0.mjs";
|
|
4
|
+
import { defineComponent as oe, onMounted as ie, ref as N, reactive as q, watch as ae, openBlock as i, createElementBlock as l, Fragment as h, unref as d, createBlock as z, withCtx as S, withDirectives as r, createElementVNode as e, createVNode as D, toDisplayString as o, vShow as _, renderList as y, createCommentVNode as A, pushScopeId as le, popScopeId as ce } from "vue";
|
|
5
|
+
const K = {
|
|
6
|
+
ExtendToStructure: "扩建物",
|
|
7
|
+
ThermalTransmittance: "热透射率",
|
|
8
|
+
Roughness: "粗糙度",
|
|
9
|
+
Category: "类型",
|
|
10
|
+
IsExternal: "是否外部",
|
|
11
|
+
LoadBearing: "承重",
|
|
12
|
+
Reference: "参考",
|
|
13
|
+
Span: "跨度",
|
|
14
|
+
Slope: "斜坡",
|
|
15
|
+
// Additional properties
|
|
16
|
+
Width: "宽度",
|
|
17
|
+
Height: "高度",
|
|
18
|
+
Depth: "深度",
|
|
19
|
+
Volume: "体积",
|
|
20
|
+
Mass: "质量",
|
|
21
|
+
Density: "密度",
|
|
22
|
+
Material: "材料",
|
|
23
|
+
Color: "颜色",
|
|
24
|
+
Finish: "表面处理",
|
|
25
|
+
FireRating: "防火等级",
|
|
26
|
+
Insulation: "绝缘",
|
|
27
|
+
ThermalConductivity: "导热性",
|
|
28
|
+
Durability: "耐久性",
|
|
29
|
+
Age: "年代",
|
|
30
|
+
Condition: "状况",
|
|
31
|
+
Owner: "所有者",
|
|
32
|
+
Maintenance: "维护",
|
|
33
|
+
Cost: "成本",
|
|
34
|
+
ConstructionDate: "建造日期",
|
|
35
|
+
Location: "位置",
|
|
36
|
+
Orientation: "方向",
|
|
37
|
+
Elevation: "标高",
|
|
38
|
+
Area: "面积",
|
|
39
|
+
FloorCount: "层数",
|
|
40
|
+
Occupancy: "占用率",
|
|
41
|
+
StructuralSystem: "结构系统",
|
|
42
|
+
MechanicalSystem: "机械系统",
|
|
43
|
+
ElectricalSystem: "电气系统",
|
|
44
|
+
PlumbingSystem: "管道系统",
|
|
45
|
+
SafetySystem: "安全系统",
|
|
46
|
+
EnvironmentalImpact: "环境影响",
|
|
47
|
+
EnergyEfficiency: "能源效率",
|
|
48
|
+
WaterUsage: "用水量",
|
|
49
|
+
NoiseLevel: "噪音水平",
|
|
50
|
+
Accessibility: "可达性",
|
|
51
|
+
Compliance: "合规性",
|
|
52
|
+
BuildingCode: "建筑规范",
|
|
53
|
+
DesignLife: "设计寿命",
|
|
54
|
+
ServiceLife: "使用寿命",
|
|
55
|
+
ManufactureDate: "制造日期",
|
|
56
|
+
InstallationDate: "安装日期",
|
|
57
|
+
Warranty: "保修",
|
|
58
|
+
MaintenanceSchedule: "维护计划",
|
|
59
|
+
RepairHistory: "维修历史",
|
|
60
|
+
ReplacementCost: "更换成本",
|
|
61
|
+
DisposalMethod: "处置方法",
|
|
62
|
+
Recyclability: "可回收性",
|
|
63
|
+
HazardousMaterials: "危险材料",
|
|
64
|
+
Lighting: "照明",
|
|
65
|
+
Ventilation: "通风",
|
|
66
|
+
Heating: "供暖",
|
|
67
|
+
Cooling: "制冷",
|
|
68
|
+
FireProtection: "防火保护",
|
|
69
|
+
Security: "安全",
|
|
70
|
+
Signage: "标识",
|
|
71
|
+
AccessibilityFeatures: "无障碍特征",
|
|
72
|
+
AcousticProperties: "声学特性",
|
|
73
|
+
VisualProperties: "视觉特性",
|
|
74
|
+
CulturalValue: "文化价值",
|
|
75
|
+
HistoricalSignificance: "历史意义",
|
|
76
|
+
ArchitecturalStyle: "建筑风格",
|
|
77
|
+
StructuralIntegrity: "结构完整性",
|
|
78
|
+
SeismicPerformance: "抗震性能",
|
|
79
|
+
WindResistance: "抗风性能",
|
|
80
|
+
ThermalResistance: "热阻",
|
|
81
|
+
UVResistance: "抗紫外线",
|
|
82
|
+
ChemicalResistance: "抗化学性",
|
|
83
|
+
WeatherResistance: "耐候性",
|
|
84
|
+
ImpactResistance: "抗冲击性",
|
|
85
|
+
AbrasionResistance: "耐磨性",
|
|
86
|
+
FlexuralStrength: "抗弯强度",
|
|
87
|
+
CompressiveStrength: "抗压强度",
|
|
88
|
+
TensileStrength: "抗拉强度",
|
|
89
|
+
Hardness: "硬度",
|
|
90
|
+
Elasticity: "弹性",
|
|
91
|
+
Plasticity: "塑性",
|
|
92
|
+
Brittleness: "脆性",
|
|
93
|
+
Ductility: "延展性",
|
|
94
|
+
Conductivity: "导电性",
|
|
95
|
+
Magnetism: "磁性",
|
|
96
|
+
ThermalExpansion: "热膨胀",
|
|
97
|
+
Shrinkage: "收缩",
|
|
98
|
+
Creep: "蠕变",
|
|
99
|
+
Fatigue: "疲劳",
|
|
100
|
+
Corrosion: "腐蚀",
|
|
101
|
+
Oxidation: "氧化",
|
|
102
|
+
Pitting: "点蚀",
|
|
103
|
+
Weathering: "风化",
|
|
104
|
+
BioDeterioration: "生物劣化",
|
|
105
|
+
RadiationResistance: "抗辐射",
|
|
106
|
+
ElectromagneticCompatibility: "电磁兼容",
|
|
107
|
+
InsulationResistance: "绝缘电阻",
|
|
108
|
+
DielectricStrength: "介电强度",
|
|
109
|
+
SurfaceTension: "表面张力",
|
|
110
|
+
Wettability: "润湿性",
|
|
111
|
+
Hydrophilicity: "亲水性",
|
|
112
|
+
Hydrophobicity: "疏水性",
|
|
113
|
+
Adsorption: "吸附",
|
|
114
|
+
Absorption: "吸收",
|
|
115
|
+
Sorption: "吸附吸收",
|
|
116
|
+
Desorption: "脱附",
|
|
117
|
+
Porosity: "孔隙率",
|
|
118
|
+
Permeability: "渗透性",
|
|
119
|
+
SorptionCapacity: "吸附容量",
|
|
120
|
+
DesorptionCapacity: "脱附容量",
|
|
121
|
+
// Revit-specific properties
|
|
122
|
+
Constraints: "约束",
|
|
123
|
+
Phases: "阶段",
|
|
124
|
+
Discipline: "学科",
|
|
125
|
+
Host: "宿主",
|
|
126
|
+
RelatedToMass: "相关质量",
|
|
127
|
+
BaseLevel: "基准层",
|
|
128
|
+
TopLevel: "顶部层",
|
|
129
|
+
Offset: "偏移",
|
|
130
|
+
HeightOffsetFromLevel: "高度偏移",
|
|
131
|
+
RoomName: "房间名称",
|
|
132
|
+
RoomNumber: "房间编号",
|
|
133
|
+
RoomArea: "房间面积",
|
|
134
|
+
WallType: "墙类型",
|
|
135
|
+
FloorType: "地板类型",
|
|
136
|
+
RoofType: "屋顶类型",
|
|
137
|
+
WindowType: "窗户类型",
|
|
138
|
+
DoorType: "门类型",
|
|
139
|
+
ColumnType: "柱类型",
|
|
140
|
+
BeamType: "梁类型",
|
|
141
|
+
FamilyName: "族名称",
|
|
142
|
+
TypeName: "类型名称",
|
|
143
|
+
InstanceName: "实例名称",
|
|
144
|
+
Workset: "工作集",
|
|
145
|
+
Comments: "备注",
|
|
146
|
+
Manufacturer: "制造商",
|
|
147
|
+
Model: "模型",
|
|
148
|
+
AssemblyCode: "装配代码",
|
|
149
|
+
ConstructionType: "施工类型",
|
|
150
|
+
FireProofing: "防火",
|
|
151
|
+
StructuralUsage: "结构用途",
|
|
152
|
+
FinishCode: "饰面代码",
|
|
153
|
+
Sustainability: "可持续性",
|
|
154
|
+
Grade: "等级",
|
|
155
|
+
StructuralMaterial: "结构材料",
|
|
156
|
+
ThermalProperties: "热性能",
|
|
157
|
+
SoundTransmission: "声音传输",
|
|
158
|
+
VaporBarrier: "防潮层",
|
|
159
|
+
InsulationType: "绝缘类型",
|
|
160
|
+
LifeCycle: "生命周期",
|
|
161
|
+
EnvironmentalCertification: "环境认证",
|
|
162
|
+
ConstructionPhase: "施工阶段",
|
|
163
|
+
//IFC 属性集类型表
|
|
164
|
+
Pset_ElementShading: "元素遮阳",
|
|
165
|
+
Pset_ProductRequirements: "产品要求",
|
|
166
|
+
Pset_QuantityTakeOffCommon: "工程量计算",
|
|
167
|
+
Pset_QuantityTakeOff: "工程量计算",
|
|
168
|
+
Pset_ProvisionForVoid: "预留孔洞",
|
|
169
|
+
Pset_ReinforcementBarPitchOfSlab: "板内钢筋间距",
|
|
170
|
+
Pset_ReinforcementBarPitchOfBeam: "梁体钢筋间距",
|
|
171
|
+
Pset_ReinforcementBarPitchOfWall: "墙体钢筋间距",
|
|
172
|
+
Pset_ReinforcementBarPitchOfPile: "桩基钢筋间距",
|
|
173
|
+
Pset_ReinforcementBarPitchOfColumn: "柱体钢筋间距",
|
|
174
|
+
Pset_ReinforcementBarPitchOfFooting: "基础钢筋间距",
|
|
175
|
+
Pset_ReinforcementBarPitchOfFoundation: "基础构件钢筋间距",
|
|
176
|
+
Pset_BuildingElementProxyCommon: "建筑构件代理通用",
|
|
177
|
+
Pset_SpaceFireSafetyRequirements: "空间防火要求",
|
|
178
|
+
Pset_SpaceThermalRequirements: "空间热工要求",
|
|
179
|
+
Pset_DoorWindowGlazingType: "门窗玻璃类型",
|
|
180
|
+
Pset_EnvironmentalImpactIndicators: "环境影响指标",
|
|
181
|
+
Pset_BeamCommon: "梁通用",
|
|
182
|
+
Pset_ColumnCommon: "柱通用",
|
|
183
|
+
Pset_WallCommon: "墙体通用",
|
|
184
|
+
Pset_WindowCommon: "窗户通用",
|
|
185
|
+
Pset_DoorCommon: "门通用",
|
|
186
|
+
Pset_RoofCommon: "屋顶通用",
|
|
187
|
+
Pset_SlabCommon: "板通用",
|
|
188
|
+
Pset_CoveringCommon: "覆盖层通用",
|
|
189
|
+
Pset_FurnitureCommon: "家具通用",
|
|
190
|
+
Pset_LightFixtureTypeCommon: "灯具类型通用",
|
|
191
|
+
Pset_ZoneCommon: "区域通用",
|
|
192
|
+
Pset_SpaceCommon: "空间通用",
|
|
193
|
+
Pset_BuildingCommon: "建筑通用",
|
|
194
|
+
Pset_FloorCommon: "地板通用",
|
|
195
|
+
Pset_StairCommon: "楼梯通用",
|
|
196
|
+
Pset_RailingCommon: "栏杆通用",
|
|
197
|
+
Pset_OpeningElementCommon: "开口构件通用",
|
|
198
|
+
Pset_DistributionPortCommon: "分配端口通用",
|
|
199
|
+
Pset_DistributionFlowElementCommon: "分配流体构件通用",
|
|
200
|
+
Pset_ElectricDeviceTypeCommon: "电气设备类型通用",
|
|
201
|
+
Pset_ValveTypeCommon: "阀门类型通用",
|
|
202
|
+
Pset_PipeFittingTypeCommon: "管件类型通用",
|
|
203
|
+
Pset_TankTypeCommon: "储罐类型通用",
|
|
204
|
+
Pset_HeatExchangerTypeCommon: "换热器类型通用",
|
|
205
|
+
Pset_TransformerTypeCommon: "变压器类型通用",
|
|
206
|
+
Pset_PumpTypeCommon: "泵类型通用",
|
|
207
|
+
Pset_VehicleCommon: "车辆通用",
|
|
208
|
+
Pset_AirTerminalTypeCommon: "空气终端设备类型通用",
|
|
209
|
+
Pset_EquipmentTypeCommon: "设备类型通用",
|
|
210
|
+
Pset_FireSuppressionTerminalTypeCommon: "消防终端设备类型通用",
|
|
211
|
+
Pset_HumiditySensorTypeCommon: "湿度传感器类型通用",
|
|
212
|
+
Pset_ReflectorTypeCommon: "反射器类型通用",
|
|
213
|
+
Pset_FlowInstrumentTypeCommon: "流量仪表类型通用",
|
|
214
|
+
Pset_HeatTransferDeviceTypeCommon: "热传递设备类型通用"
|
|
215
|
+
}, re = Object.keys(K).reduce((u, C) => {
|
|
216
|
+
const g = C.trim().toLowerCase().replace(/\s+/g, "");
|
|
217
|
+
return u[g] = K[C], u;
|
|
218
|
+
}, {});
|
|
219
|
+
function I(u) {
|
|
220
|
+
const C = u.trim().toLowerCase().replace(/\s+/g, "");
|
|
221
|
+
return re[C] || u;
|
|
222
|
+
}
|
|
223
|
+
const c = (u) => (le("data-v-fa12a682"), u = u(), ce(), u), _e = { class: "myInspector_content" }, pe = { class: "title" }, de = ["src"], ue = /* @__PURE__ */ c(() => /* @__PURE__ */ e("span", null, "基本属性", -1)), me = { class: "properties_content" }, he = /* @__PURE__ */ c(() => /* @__PURE__ */ e("div", { class: "basic_info_title" }, [
|
|
224
|
+
/* @__PURE__ */ e("span", null, "名称"),
|
|
225
|
+
/* @__PURE__ */ e("span", { style: { "margin-top": "2px" } }, "UUID"),
|
|
226
|
+
/* @__PURE__ */ e("span", null, "类型")
|
|
227
|
+
], -1)), ye = { class: "basic_info_value" }, ve = { class: "propertysets" }, fe = ["onClick"], Ce = { class: "title" }, ge = ["src"], Pe = { class: "properties_content" }, Te = { class: "content_title_value" }, be = { class: "content_title" }, Se = { class: "content_value" }, Ie = { class: "myInspector_empty" }, ke = ["src"], Re = /* @__PURE__ */ c(() => /* @__PURE__ */ e("span", null, "未选中任何对象,请单击模型对象以查看构件属性。", -1)), we = /* @__PURE__ */ c(() => /* @__PURE__ */ e("div", { class: "pc_Inspector_type_button" }, [
|
|
228
|
+
/* @__PURE__ */ e("div", { class: "type_button" }, "实例属性"),
|
|
229
|
+
/* @__PURE__ */ e("div", { class: "type_button" }, "类型属性")
|
|
230
|
+
], -1)), xe = { class: "pc_Inspector_content" }, De = { class: "pc_myInspector_content" }, Ee = { class: "title" }, Be = ["src"], Fe = /* @__PURE__ */ c(() => /* @__PURE__ */ e("span", null, "基本属性", -1)), Me = { class: "properties_content" }, Oe = /* @__PURE__ */ c(() => /* @__PURE__ */ e("div", { class: "basic_info_title" }, [
|
|
231
|
+
/* @__PURE__ */ e("span", null, "名称"),
|
|
232
|
+
/* @__PURE__ */ e("span", { style: { "margin-top": "2px" } }, "UUID"),
|
|
233
|
+
/* @__PURE__ */ e("span", null, "类型")
|
|
234
|
+
], -1)), Ve = { class: "basic_info_value" }, He = { class: "propertysets" }, Le = ["onClick"], Ne = { class: "title" }, Ae = ["src"], We = { class: "properties_content" }, je = { class: "content_title_value" }, Ue = { class: "content_title" }, $e = { class: "content_value" }, qe = { class: "pc_model_info" }, ze = { class: "model_info_content" }, Ke = /* @__PURE__ */ c(() => /* @__PURE__ */ e("span", null, "对象数量", -1)), Ge = { class: "model_info_value" }, Qe = { class: "model_info_content" }, Ze = /* @__PURE__ */ c(() => /* @__PURE__ */ e("span", null, "属性集数量", -1)), Je = { class: "model_info_value" }, Xe = { class: "model_info_content" }, Ye = /* @__PURE__ */ c(() => /* @__PURE__ */ e("span", null, "创建日期", -1)), et = { class: "model_info_value" }, tt = { class: "model_info_content" }, nt = /* @__PURE__ */ c(() => /* @__PURE__ */ e("span", null, "作者", -1)), st = { class: "model_info_value" }, ot = {
|
|
235
|
+
key: 2,
|
|
236
|
+
class: "mobile_myInspector"
|
|
237
|
+
}, it = { class: "detail-title-box" }, at = /* @__PURE__ */ c(() => /* @__PURE__ */ e("div", { class: "detail-title" }, "属性", -1)), lt = { class: "detail-title-icon" }, ct = {
|
|
238
|
+
type: "button",
|
|
239
|
+
class: "tctwins_btn tctwins-i18n tctwins-inspector"
|
|
240
|
+
}, rt = { class: "myInspector" }, _t = { class: "myInspector_content" }, pt = { class: "title" }, dt = ["src"], ut = /* @__PURE__ */ c(() => /* @__PURE__ */ e("span", null, "基本属性", -1)), mt = { class: "properties_content" }, ht = /* @__PURE__ */ c(() => /* @__PURE__ */ e("div", { class: "basic_info_title" }, [
|
|
241
|
+
/* @__PURE__ */ e("span", null, "名称"),
|
|
242
|
+
/* @__PURE__ */ e("span", { style: { "margin-top": "0.04rem" } }, "UUID"),
|
|
243
|
+
/* @__PURE__ */ e("span", null, "类型")
|
|
244
|
+
], -1)), yt = { class: "basic_info_value" }, vt = { class: "propertysets" }, ft = ["onClick"], Ct = { class: "title" }, gt = ["src"], Pt = { class: "properties_content" }, Tt = { class: "content_title_value" }, bt = { class: "content_title" }, St = { class: "content_value" }, It = { class: "mobile_Inspector_empty" }, kt = /* @__PURE__ */ c(() => /* @__PURE__ */ e("span", null, "对象数量", -1)), Rt = { class: "model_info_value" }, wt = /* @__PURE__ */ c(() => /* @__PURE__ */ e("span", null, "属性集数量", -1)), xt = { class: "model_info_value" }, Dt = /* @__PURE__ */ c(() => /* @__PURE__ */ e("span", null, "创建日期", -1)), Et = { class: "model_info_value" }, Bt = /* @__PURE__ */ c(() => /* @__PURE__ */ e("span", null, "作者", -1)), Ft = { class: "model_info_value" }, Mt = /* @__PURE__ */ oe({
|
|
245
|
+
__name: "InspectorTool",
|
|
246
|
+
props: ["componentId"],
|
|
247
|
+
emits: ["closePanel", "emitHandler"],
|
|
248
|
+
setup(u, { emit: C }) {
|
|
249
|
+
const g = te(), F = u;
|
|
250
|
+
ie(() => {
|
|
251
|
+
g.setReadyById(F.componentId);
|
|
252
|
+
});
|
|
253
|
+
const W = C, M = (n) => {
|
|
254
|
+
W("emitHandler", n);
|
|
255
|
+
};
|
|
256
|
+
let E = window.BimViewer;
|
|
257
|
+
const m = N(!1), k = N(""), j = N(""), t = q({
|
|
258
|
+
entity_name: "无",
|
|
259
|
+
entity_type: "无",
|
|
260
|
+
entity_id: "无",
|
|
261
|
+
propertySets: [],
|
|
262
|
+
expanded: !0
|
|
263
|
+
}), p = q({
|
|
264
|
+
objectCount: "未知",
|
|
265
|
+
pSetsCount: "未知",
|
|
266
|
+
createDate: "未知",
|
|
267
|
+
author: "未知"
|
|
268
|
+
});
|
|
269
|
+
ae(
|
|
270
|
+
() => g.isToolActive(F.componentId),
|
|
271
|
+
(n) => {
|
|
272
|
+
if (n && m.value == !0) {
|
|
273
|
+
if (k.value == j.value)
|
|
274
|
+
return;
|
|
275
|
+
O(k.value);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
), $.on("BimViewer", () => {
|
|
279
|
+
E = window.BimViewer;
|
|
280
|
+
const { eventTrigger: n } = E;
|
|
281
|
+
n.on("metaLoaded", () => {
|
|
282
|
+
const s = window.BimViewer.getModelInfo();
|
|
283
|
+
p.createDate = s.createDate !== "" ? s.createDate.replace("T", " ") : "未知", p.objectCount = s.objectCount !== 0 ? s.objectCount : "未知", p.pSetsCount = s.propertySetCount !== 0 ? s.propertySetCount : "未知", p.author = s.author !== "" ? s.author : "未知";
|
|
284
|
+
}), b("isMobile") || n.on("pickedEntity", (s) => {
|
|
285
|
+
O(s.id);
|
|
286
|
+
}), b("isMobile") && n.on("touchEntity", (s) => {
|
|
287
|
+
O(s.id);
|
|
288
|
+
}), n.on("pickedNothing", () => {
|
|
289
|
+
m.value = !1, k.value = "", G(), M({
|
|
290
|
+
isTool: !0,
|
|
291
|
+
event_target: "InspectorTool",
|
|
292
|
+
event_name: "pickedNothing",
|
|
293
|
+
content: {
|
|
294
|
+
msg: "pickedNothing"
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
}), $.on("tree_clickNode", (n) => {
|
|
299
|
+
const s = E.getObjectProperties(n.id);
|
|
300
|
+
s && (k.value = n.id, m.value = !0, U(s));
|
|
301
|
+
});
|
|
302
|
+
const O = (n) => {
|
|
303
|
+
if (k.value = n, m.value = !0, !g.isToolActive(F.componentId)) return;
|
|
304
|
+
const s = E.getObjectProperties(n);
|
|
305
|
+
s && U(s), j.value = n, b("isMobile") ? M({
|
|
306
|
+
isTool: !0,
|
|
307
|
+
event_target: "InspectorTool",
|
|
308
|
+
event_name: "touchEntity",
|
|
309
|
+
content: {
|
|
310
|
+
entityId: n
|
|
311
|
+
}
|
|
312
|
+
}) : M({
|
|
313
|
+
isTool: !0,
|
|
314
|
+
event_target: "InspectorTool",
|
|
315
|
+
event_name: "pickedEntity",
|
|
316
|
+
content: {
|
|
317
|
+
entityId: n
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
}, V = () => {
|
|
321
|
+
W("closePanel");
|
|
322
|
+
}, P = (n) => {
|
|
323
|
+
n.expanded = !n.expanded;
|
|
324
|
+
}, T = (n) => n ? `${L}/bim-viewer/down_icon.png` : `${L}/bim-viewer/right_icon.png`, U = (n) => {
|
|
325
|
+
t.entity_name = n.name, t.entity_type = n.type, t.entity_id = n.id, n.propertySets && (t.propertySets = n.propertySets, t.propertySets.forEach((s) => {
|
|
326
|
+
H.currentTheme == "light-gray" ? s.expanded = !0 : s.expanded = !1;
|
|
327
|
+
}));
|
|
328
|
+
}, G = () => {
|
|
329
|
+
t.entity_name = "", t.entity_type = "", t.entity_id = "", t.propertySets = [];
|
|
330
|
+
};
|
|
331
|
+
return (n, s) => {
|
|
332
|
+
const B = ne, Q = X, Z = ee, J = Y;
|
|
333
|
+
return i(), l(h, null, [
|
|
334
|
+
!d(b)("isMobile") && d(H).currentTheme == "blue" ? (i(), z(Q, {
|
|
335
|
+
key: 0,
|
|
336
|
+
class: "myInspector_wrapper",
|
|
337
|
+
panelTitle: "属性",
|
|
338
|
+
"click-handle": V,
|
|
339
|
+
style: { height: "var(--inspector-content-height)" }
|
|
340
|
+
}, {
|
|
341
|
+
default: S(() => [
|
|
342
|
+
r(e("div", _e, [
|
|
343
|
+
D(B, null, {
|
|
344
|
+
default: S(() => [
|
|
345
|
+
e("div", {
|
|
346
|
+
class: "basic_info",
|
|
347
|
+
onClick: s[0] || (s[0] = (a) => P(t))
|
|
348
|
+
}, [
|
|
349
|
+
e("div", pe, [
|
|
350
|
+
e("img", {
|
|
351
|
+
src: T(t.expanded),
|
|
352
|
+
class: "triangle"
|
|
353
|
+
}, null, 8, de),
|
|
354
|
+
ue
|
|
355
|
+
]),
|
|
356
|
+
r(e("div", me, [
|
|
357
|
+
he,
|
|
358
|
+
e("div", ye, [
|
|
359
|
+
e("span", null, o(t.entity_name), 1),
|
|
360
|
+
e("span", null, o(t.entity_id), 1),
|
|
361
|
+
e("span", null, o(t.entity_type), 1)
|
|
362
|
+
])
|
|
363
|
+
], 512), [
|
|
364
|
+
[_, t.expanded]
|
|
365
|
+
])
|
|
366
|
+
]),
|
|
367
|
+
e("ul", ve, [
|
|
368
|
+
(i(!0), l(h, null, y(t.propertySets, (a, R) => (i(), l("li", {
|
|
369
|
+
key: R,
|
|
370
|
+
class: "propertyset",
|
|
371
|
+
onClick: (v) => P(a)
|
|
372
|
+
}, [
|
|
373
|
+
e("div", Ce, [
|
|
374
|
+
e("img", {
|
|
375
|
+
src: T(a.expanded),
|
|
376
|
+
class: "triangle"
|
|
377
|
+
}, null, 8, ge),
|
|
378
|
+
e("span", null, o(d(I)(a.name)), 1)
|
|
379
|
+
]),
|
|
380
|
+
r(e("div", Pe, [
|
|
381
|
+
e("ul", Te, [
|
|
382
|
+
(i(!0), l(h, null, y(a.properties, (v, w) => (i(), l("li", {
|
|
383
|
+
key: w,
|
|
384
|
+
class: "properties"
|
|
385
|
+
}, [
|
|
386
|
+
(i(!0), l(h, null, y(v, (x, f) => (i(), l("div", {
|
|
387
|
+
class: "title_value",
|
|
388
|
+
key: f
|
|
389
|
+
}, [
|
|
390
|
+
e("span", be, o(d(I)(f)), 1),
|
|
391
|
+
e("span", Se, o(x), 1)
|
|
392
|
+
]))), 128))
|
|
393
|
+
]))), 128))
|
|
394
|
+
])
|
|
395
|
+
], 512), [
|
|
396
|
+
[_, a.expanded]
|
|
397
|
+
])
|
|
398
|
+
], 8, fe))), 128))
|
|
399
|
+
])
|
|
400
|
+
]),
|
|
401
|
+
_: 1
|
|
402
|
+
})
|
|
403
|
+
], 512), [
|
|
404
|
+
[_, m.value]
|
|
405
|
+
]),
|
|
406
|
+
r(e("div", Ie, [
|
|
407
|
+
e("img", {
|
|
408
|
+
src: d(L) + "/bimkk-app/pinapp-empty-box.png"
|
|
409
|
+
}, null, 8, ke),
|
|
410
|
+
Re
|
|
411
|
+
], 512), [
|
|
412
|
+
[_, !m.value]
|
|
413
|
+
])
|
|
414
|
+
]),
|
|
415
|
+
_: 1
|
|
416
|
+
})) : A("", !0),
|
|
417
|
+
!d(b)("isMobile") && d(H).currentTheme == "light-gray" ? (i(), z(Z, {
|
|
418
|
+
key: 1,
|
|
419
|
+
panelTitle: "属性",
|
|
420
|
+
"click-handle": V,
|
|
421
|
+
class: "pc_Inspector"
|
|
422
|
+
}, {
|
|
423
|
+
default: S(() => [
|
|
424
|
+
we,
|
|
425
|
+
e("div", xe, [
|
|
426
|
+
r(e("div", De, [
|
|
427
|
+
D(B, null, {
|
|
428
|
+
default: S(() => [
|
|
429
|
+
e("div", {
|
|
430
|
+
class: "basic_info",
|
|
431
|
+
onClick: s[1] || (s[1] = (a) => P(t))
|
|
432
|
+
}, [
|
|
433
|
+
e("div", Ee, [
|
|
434
|
+
e("img", {
|
|
435
|
+
src: T(t.expanded),
|
|
436
|
+
class: "triangle"
|
|
437
|
+
}, null, 8, Be),
|
|
438
|
+
Fe
|
|
439
|
+
]),
|
|
440
|
+
r(e("div", Me, [
|
|
441
|
+
Oe,
|
|
442
|
+
e("div", Ve, [
|
|
443
|
+
e("span", null, o(t.entity_name), 1),
|
|
444
|
+
e("span", null, o(t.entity_id), 1),
|
|
445
|
+
e("span", null, o(t.entity_type), 1)
|
|
446
|
+
])
|
|
447
|
+
], 512), [
|
|
448
|
+
[_, t.expanded]
|
|
449
|
+
])
|
|
450
|
+
]),
|
|
451
|
+
e("ul", He, [
|
|
452
|
+
(i(!0), l(h, null, y(t.propertySets, (a, R) => (i(), l("li", {
|
|
453
|
+
key: R,
|
|
454
|
+
class: "propertyset",
|
|
455
|
+
onClick: (v) => P(a)
|
|
456
|
+
}, [
|
|
457
|
+
e("div", Ne, [
|
|
458
|
+
e("img", {
|
|
459
|
+
src: T(a.expanded),
|
|
460
|
+
class: "triangle"
|
|
461
|
+
}, null, 8, Ae),
|
|
462
|
+
e("span", null, o(d(I)(a.name)), 1)
|
|
463
|
+
]),
|
|
464
|
+
r(e("div", We, [
|
|
465
|
+
e("ul", je, [
|
|
466
|
+
(i(!0), l(h, null, y(a.properties, (v, w) => (i(), l("li", {
|
|
467
|
+
key: w,
|
|
468
|
+
class: "properties"
|
|
469
|
+
}, [
|
|
470
|
+
(i(!0), l(h, null, y(v, (x, f) => (i(), l("div", {
|
|
471
|
+
class: "title_value",
|
|
472
|
+
key: f
|
|
473
|
+
}, [
|
|
474
|
+
e("span", Ue, o(d(I)(f)), 1),
|
|
475
|
+
e("span", $e, o(x), 1)
|
|
476
|
+
]))), 128))
|
|
477
|
+
]))), 128))
|
|
478
|
+
])
|
|
479
|
+
], 512), [
|
|
480
|
+
[_, a.expanded]
|
|
481
|
+
])
|
|
482
|
+
], 8, Le))), 128))
|
|
483
|
+
])
|
|
484
|
+
]),
|
|
485
|
+
_: 1
|
|
486
|
+
})
|
|
487
|
+
], 512), [
|
|
488
|
+
[_, m.value]
|
|
489
|
+
]),
|
|
490
|
+
r(e("div", qe, [
|
|
491
|
+
e("div", ze, [
|
|
492
|
+
Ke,
|
|
493
|
+
e("span", Ge, o(p.objectCount), 1)
|
|
494
|
+
]),
|
|
495
|
+
e("div", Qe, [
|
|
496
|
+
Ze,
|
|
497
|
+
e("span", Je, o(p.pSetsCount), 1)
|
|
498
|
+
]),
|
|
499
|
+
e("div", Xe, [
|
|
500
|
+
Ye,
|
|
501
|
+
e("span", et, o(p.createDate), 1)
|
|
502
|
+
]),
|
|
503
|
+
e("div", tt, [
|
|
504
|
+
nt,
|
|
505
|
+
e("span", st, o(p.author), 1)
|
|
506
|
+
])
|
|
507
|
+
], 512), [
|
|
508
|
+
[_, !m.value]
|
|
509
|
+
])
|
|
510
|
+
])
|
|
511
|
+
]),
|
|
512
|
+
_: 1
|
|
513
|
+
})) : A("", !0),
|
|
514
|
+
d(b)("isMobile") ? (i(), l("div", ot, [
|
|
515
|
+
e("div", it, [
|
|
516
|
+
at,
|
|
517
|
+
e("div", lt, [
|
|
518
|
+
D(J, {
|
|
519
|
+
class: "close",
|
|
520
|
+
"click-handle": V
|
|
521
|
+
})
|
|
522
|
+
])
|
|
523
|
+
]),
|
|
524
|
+
r(e("button", ct, null, 512), [
|
|
525
|
+
[_, !1]
|
|
526
|
+
]),
|
|
527
|
+
D(B, null, {
|
|
528
|
+
default: S(() => [
|
|
529
|
+
e("div", rt, [
|
|
530
|
+
r(e("div", _t, [
|
|
531
|
+
D(B, { height: "6.12rem" }, {
|
|
532
|
+
default: S(() => [
|
|
533
|
+
e("div", {
|
|
534
|
+
class: "basic_info",
|
|
535
|
+
onClick: s[2] || (s[2] = (a) => P(t))
|
|
536
|
+
}, [
|
|
537
|
+
e("div", pt, [
|
|
538
|
+
e("img", {
|
|
539
|
+
src: T(t.expanded),
|
|
540
|
+
class: "triangle"
|
|
541
|
+
}, null, 8, dt),
|
|
542
|
+
ut
|
|
543
|
+
]),
|
|
544
|
+
r(e("div", mt, [
|
|
545
|
+
ht,
|
|
546
|
+
e("div", yt, [
|
|
547
|
+
e("span", null, o(t.entity_name), 1),
|
|
548
|
+
e("span", null, o(t.entity_id), 1),
|
|
549
|
+
e("span", null, o(t.entity_type), 1)
|
|
550
|
+
])
|
|
551
|
+
], 512), [
|
|
552
|
+
[_, t.expanded]
|
|
553
|
+
])
|
|
554
|
+
]),
|
|
555
|
+
e("ul", vt, [
|
|
556
|
+
(i(!0), l(h, null, y(t.propertySets, (a, R) => (i(), l("li", {
|
|
557
|
+
key: R,
|
|
558
|
+
class: "propertyset",
|
|
559
|
+
onClick: (v) => P(a)
|
|
560
|
+
}, [
|
|
561
|
+
e("div", Ct, [
|
|
562
|
+
e("img", {
|
|
563
|
+
src: T(a.expanded),
|
|
564
|
+
class: "triangle"
|
|
565
|
+
}, null, 8, gt),
|
|
566
|
+
e("span", null, o(d(I)(a.name)), 1)
|
|
567
|
+
]),
|
|
568
|
+
r(e("div", Pt, [
|
|
569
|
+
e("ul", Tt, [
|
|
570
|
+
(i(!0), l(h, null, y(a.properties, (v, w) => (i(), l("li", {
|
|
571
|
+
key: w,
|
|
572
|
+
class: "properties"
|
|
573
|
+
}, [
|
|
574
|
+
(i(!0), l(h, null, y(v, (x, f) => (i(), l("div", {
|
|
575
|
+
class: "title_value",
|
|
576
|
+
key: f
|
|
577
|
+
}, [
|
|
578
|
+
e("span", bt, o(d(I)(f)), 1),
|
|
579
|
+
e("span", St, o(x), 1)
|
|
580
|
+
]))), 128))
|
|
581
|
+
]))), 128))
|
|
582
|
+
])
|
|
583
|
+
], 512), [
|
|
584
|
+
[_, a.expanded]
|
|
585
|
+
])
|
|
586
|
+
], 8, ft))), 128))
|
|
587
|
+
])
|
|
588
|
+
]),
|
|
589
|
+
_: 1
|
|
590
|
+
})
|
|
591
|
+
], 512), [
|
|
592
|
+
[_, m.value]
|
|
593
|
+
]),
|
|
594
|
+
r(e("div", It, [
|
|
595
|
+
e("div", null, [
|
|
596
|
+
kt,
|
|
597
|
+
e("span", Rt, o(p.objectCount), 1)
|
|
598
|
+
]),
|
|
599
|
+
e("div", null, [
|
|
600
|
+
wt,
|
|
601
|
+
e("span", xt, o(p.pSetsCount), 1)
|
|
602
|
+
]),
|
|
603
|
+
e("div", null, [
|
|
604
|
+
Dt,
|
|
605
|
+
e("span", Et, o(p.createDate), 1)
|
|
606
|
+
]),
|
|
607
|
+
e("div", null, [
|
|
608
|
+
Bt,
|
|
609
|
+
e("span", Ft, o(p.author), 1)
|
|
610
|
+
])
|
|
611
|
+
], 512), [
|
|
612
|
+
[_, !m.value]
|
|
613
|
+
])
|
|
614
|
+
])
|
|
615
|
+
]),
|
|
616
|
+
_: 1
|
|
617
|
+
})
|
|
618
|
+
])) : A("", !0)
|
|
619
|
+
], 64);
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
}), Nt = /* @__PURE__ */ se(Mt, [["__scopeId", "data-v-fa12a682"]]);
|
|
623
|
+
export {
|
|
624
|
+
Nt as default
|
|
625
|
+
};
|