@xtctwins/tctwins-bimx-engine 0.1.21 → 0.1.22
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-CgiAUuLM.mjs} +12 -12
- package/dist/BIMX_Viewer_Lib.es.js +4 -4
- package/dist/BIMX_Viewer_Lib.umd.js +86 -91
- package/dist/CommentTool-BeT1ECI-.mjs +338 -0
- package/dist/HiddenTool-qqISJ_uV.mjs +58 -0
- package/dist/InspectorTool-CLPjV6WW.mjs +609 -0
- package/dist/MeasureTool-Be-rmUeb.mjs +1540 -0
- package/dist/{NavigateTool-CCIb1X4u.mjs → NavigateTool-C-VsKB0k.mjs} +7 -7
- package/dist/{RoamTool-B1w0efz8.mjs → RoamTool-DdHBNeVg.mjs} +20 -20
- package/dist/{ScreenShotTool-BviRVFSg.mjs → ScreenShotTool-Da7D2dkW.mjs} +67 -67
- package/dist/SectionTool-CHcmUQul.mjs +624 -0
- package/dist/SettingTool-CkR1F4x_.mjs +525 -0
- package/dist/StructureTree-DBu9xTue.mjs +1438 -0
- package/dist/{debounce-Cg3LHv0T.mjs → debounce-DLzt_q3i.mjs} +13 -13
- package/dist/{el-checkbox-lp8vWAXQ.mjs → el-checkbox-DsUGOsl_.mjs} +46 -46
- package/dist/{el-input-Bwqgf3wZ.mjs → el-input-UdjCNTtW.mjs} +66 -68
- package/dist/{el-input-number-0OWyX276.mjs → el-input-number-ySU-dVGM.mjs} +75 -75
- package/dist/{index-CQ8depiU.mjs → index-BfLgpvcd.mjs} +3 -3
- package/dist/{index-CYEu_kT4.mjs → index-DQKkZiNH.mjs} +1 -1
- package/dist/{index-DX-eYsBm.mjs → index-DyFDTMAw.mjs} +1795 -1794
- package/dist/{isEqual-Bg-tyY30.mjs → isEqual-BWlMaoTp.mjs} +9 -9
- package/dist/panel.vue_vue_type_style_index_0_lang-ZCDiwNFo.mjs +96 -0
- package/dist/style.css +1 -1
- package/dist/tallPanel-Cz_n6AsB.mjs +49 -0
- package/package.json +1 -1
- package/types/components/utilsComponents/tallPanel.vue.d.ts +41 -0
- package/types/services/fileApi/fileManager.d.ts +5 -5
- package/types/store/themeManager.d.ts +1 -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,609 @@
|
|
|
1
|
+
import { _ as G, a as Q } from "./panel.vue_vue_type_style_index_0_lang-ZCDiwNFo.mjs";
|
|
2
|
+
import { _ as Z } from "./tallPanel-Cz_n6AsB.mjs";
|
|
3
|
+
import { j as J, l as X, k as w, T as V, O as B, m as Y } from "./index-DyFDTMAw.mjs";
|
|
4
|
+
import { defineComponent as ee, onMounted as te, ref as W, reactive as A, watch as ne, openBlock as s, createElementBlock as l, Fragment as m, unref as c, createBlock as j, withCtx as T, withDirectives as r, createElementVNode as e, createVNode as x, toDisplayString as o, vShow as _, renderList as u, createCommentVNode as H } from "vue";
|
|
5
|
+
const U = {
|
|
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
|
+
}, se = Object.keys(U).reduce((g, C) => {
|
|
216
|
+
const S = C.trim().toLowerCase().replace(/\s+/g, "");
|
|
217
|
+
return g[S] = U[C], g;
|
|
218
|
+
}, {});
|
|
219
|
+
function b(g) {
|
|
220
|
+
const C = g.trim().toLowerCase().replace(/\s+/g, "");
|
|
221
|
+
return se[C] || g;
|
|
222
|
+
}
|
|
223
|
+
const oe = { class: "myInspector_content" }, ie = { class: "title" }, ae = ["src"], le = /* @__PURE__ */ e("span", null, "基本属性", -1), ce = { class: "properties_content" }, re = /* @__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), _e = { class: "basic_info_value" }, pe = { class: "propertysets" }, de = ["onClick"], me = { class: "title" }, ue = ["src"], ye = { class: "properties_content" }, he = { class: "content_title_value" }, ve = { class: "content_title" }, ge = { class: "content_value" }, Ce = { class: "myInspector_empty" }, fe = ["src"], Pe = /* @__PURE__ */ e("span", null, "未选中任何对象,请单击模型对象以查看构件属性。", -1), Te = /* @__PURE__ */ e("div", { class: "pc_Inspector_type_button" }, [
|
|
228
|
+
/* @__PURE__ */ e("div", { class: "type_button" }, "实例属性"),
|
|
229
|
+
/* @__PURE__ */ e("div", { class: "type_button" }, "类型属性")
|
|
230
|
+
], -1), be = { class: "pc_Inspector_content" }, Se = { class: "pc_myInspector_content" }, Ie = { class: "title" }, ke = ["src"], Re = /* @__PURE__ */ e("span", null, "基本属性", -1), we = { class: "properties_content" }, xe = /* @__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), De = { class: "basic_info_value" }, Ee = { class: "propertysets" }, Be = ["onClick"], Fe = { class: "title" }, Me = ["src"], Oe = { class: "properties_content" }, Ve = { class: "content_title_value" }, He = { class: "content_title" }, Le = { class: "content_value" }, Ne = { class: "myInspector_empty" }, We = ["src"], Ae = /* @__PURE__ */ e("span", null, "未选中任何对象,请单击模型对象以查看构件属性。", -1), je = {
|
|
235
|
+
key: 2,
|
|
236
|
+
class: "mobile_myInspector"
|
|
237
|
+
}, Ue = { class: "detail-title-box" }, $e = /* @__PURE__ */ e("div", { class: "detail-title" }, "属性", -1), qe = { class: "detail-title-icon" }, ze = {
|
|
238
|
+
type: "button",
|
|
239
|
+
class: "tctwins_btn tctwins-i18n tctwins-inspector"
|
|
240
|
+
}, Ke = { class: "myInspector" }, Ge = { class: "myInspector_content" }, Qe = { class: "title" }, Ze = ["src"], Je = /* @__PURE__ */ e("span", null, "基本属性", -1), Xe = { class: "properties_content" }, Ye = /* @__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), et = { class: "basic_info_value" }, tt = { class: "propertysets" }, nt = ["onClick"], st = { class: "title" }, ot = ["src"], it = { class: "properties_content" }, at = { class: "content_title_value" }, lt = { class: "content_title" }, ct = { class: "content_value" }, rt = { class: "myInspector_empty" }, _t = /* @__PURE__ */ e("span", null, "对象数量", -1), pt = { class: "model_info_value" }, dt = /* @__PURE__ */ e("span", null, "属性集数量", -1), mt = { class: "model_info_value" }, ut = /* @__PURE__ */ e("span", null, "创建日期", -1), yt = { class: "model_info_value" }, ht = /* @__PURE__ */ e("span", null, "作者", -1), vt = { class: "model_info_value" }, Tt = /* @__PURE__ */ ee({
|
|
245
|
+
__name: "InspectorTool",
|
|
246
|
+
props: ["componentId"],
|
|
247
|
+
emits: ["closePanel", "emitHandler"],
|
|
248
|
+
setup(g, { emit: C }) {
|
|
249
|
+
const S = J(), L = g;
|
|
250
|
+
te(() => {
|
|
251
|
+
S.setReadyById(L.componentId);
|
|
252
|
+
});
|
|
253
|
+
const N = C, F = (i) => {
|
|
254
|
+
N("emitHandler", i);
|
|
255
|
+
};
|
|
256
|
+
let D = window.BimViewer;
|
|
257
|
+
const p = W(!1), E = W(), t = A({
|
|
258
|
+
entity_name: "无",
|
|
259
|
+
entity_type: "无",
|
|
260
|
+
entity_id: "无",
|
|
261
|
+
propertySets: [],
|
|
262
|
+
expanded: !0
|
|
263
|
+
}), y = A({
|
|
264
|
+
objectCount: "未知",
|
|
265
|
+
pSetsCount: "未知",
|
|
266
|
+
createDate: "未知",
|
|
267
|
+
author: "未知"
|
|
268
|
+
});
|
|
269
|
+
ne(
|
|
270
|
+
() => S.isToolActive(L.componentId),
|
|
271
|
+
(i) => {
|
|
272
|
+
if (i && p.value == !0) {
|
|
273
|
+
const n = D.getObjectProperties(E.value.id);
|
|
274
|
+
n && O(n);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
), X.on("BimViewer", () => {
|
|
278
|
+
D = window.BimViewer;
|
|
279
|
+
const { eventTrigger: i } = D;
|
|
280
|
+
i.on("metaLoaded", () => {
|
|
281
|
+
const n = window.BimViewer.getModelInfo();
|
|
282
|
+
y.createDate = n.createDate !== "" ? n.createDate : "未知", y.objectCount = n.objectCount !== 0 ? n.objectCount : "未知", y.pSetsCount = n.propertySetCount !== 0 ? n.propertySetCount : "未知", y.author = n.author !== "" ? n.author : "未知";
|
|
283
|
+
}), w("isMobile") || i.on("pickedEntity", (n) => {
|
|
284
|
+
E.value = n, p.value = !0;
|
|
285
|
+
const d = D.getObjectProperties(n.id);
|
|
286
|
+
d && O(d), F({
|
|
287
|
+
isTool: !0,
|
|
288
|
+
event_target: "InspectorTool",
|
|
289
|
+
event_name: "pickedEntity",
|
|
290
|
+
content: {
|
|
291
|
+
entityId: n.id
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
}), w("isMobile") && i.on("touchEntity", (n) => {
|
|
295
|
+
E.value = n, p.value = !0;
|
|
296
|
+
const d = window.BimViewer.getObjectProperties(n.id);
|
|
297
|
+
d && O(d), F({
|
|
298
|
+
isTool: !0,
|
|
299
|
+
event_target: "InspectorTool",
|
|
300
|
+
event_name: "touchEntity",
|
|
301
|
+
content: {
|
|
302
|
+
entityId: n.id
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
}), i.on("pickedNothing", () => {
|
|
306
|
+
p.value = !1, E.value = null, $(), F({
|
|
307
|
+
isTool: !0,
|
|
308
|
+
event_target: "InspectorTool",
|
|
309
|
+
event_name: "pickedNothing",
|
|
310
|
+
content: {
|
|
311
|
+
msg: "pickedNothing"
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
const M = () => {
|
|
317
|
+
N("closePanel");
|
|
318
|
+
}, f = (i) => {
|
|
319
|
+
i.expanded = !i.expanded;
|
|
320
|
+
}, P = (i) => i ? `${B}/bim-viewer/down_icon.png` : `${B}/bim-viewer/right_icon.png`, O = (i) => {
|
|
321
|
+
t.entity_name = i.name, t.entity_type = i.type, t.entity_id = i.id, i.propertySets && (t.propertySets = i.propertySets, t.propertySets.forEach((n) => {
|
|
322
|
+
V.currentTheme == "light-gray" ? n.expanded = !0 : n.expanded = !1;
|
|
323
|
+
}));
|
|
324
|
+
}, $ = () => {
|
|
325
|
+
t.entity_name = "", t.entity_type = "", t.entity_id = "", t.propertySets = [];
|
|
326
|
+
};
|
|
327
|
+
return (i, n) => {
|
|
328
|
+
const d = Y, q = G, z = Z, K = Q;
|
|
329
|
+
return s(), l(m, null, [
|
|
330
|
+
!c(w)("isMobile") && c(V).currentTheme == "blue" ? (s(), j(q, {
|
|
331
|
+
key: 0,
|
|
332
|
+
class: "myInspector_wrapper",
|
|
333
|
+
panelTitle: "属性",
|
|
334
|
+
"click-handle": M,
|
|
335
|
+
style: { height: "var(--inspector-content-height)" }
|
|
336
|
+
}, {
|
|
337
|
+
default: T(() => [
|
|
338
|
+
r(e("div", oe, [
|
|
339
|
+
x(d, null, {
|
|
340
|
+
default: T(() => [
|
|
341
|
+
e("div", {
|
|
342
|
+
class: "basic_info",
|
|
343
|
+
onClick: n[0] || (n[0] = (a) => f(t))
|
|
344
|
+
}, [
|
|
345
|
+
e("div", ie, [
|
|
346
|
+
e("img", {
|
|
347
|
+
src: P(t.expanded),
|
|
348
|
+
class: "triangle"
|
|
349
|
+
}, null, 8, ae),
|
|
350
|
+
le
|
|
351
|
+
]),
|
|
352
|
+
r(e("div", ce, [
|
|
353
|
+
re,
|
|
354
|
+
e("div", _e, [
|
|
355
|
+
e("span", null, o(t.entity_name), 1),
|
|
356
|
+
e("span", null, o(t.entity_id), 1),
|
|
357
|
+
e("span", null, o(t.entity_type), 1)
|
|
358
|
+
])
|
|
359
|
+
], 512), [
|
|
360
|
+
[_, t.expanded]
|
|
361
|
+
])
|
|
362
|
+
]),
|
|
363
|
+
e("ul", pe, [
|
|
364
|
+
(s(!0), l(m, null, u(t.propertySets, (a, I) => (s(), l("li", {
|
|
365
|
+
key: I,
|
|
366
|
+
class: "propertyset",
|
|
367
|
+
onClick: (h) => f(a)
|
|
368
|
+
}, [
|
|
369
|
+
e("div", me, [
|
|
370
|
+
e("img", {
|
|
371
|
+
src: P(a.expanded),
|
|
372
|
+
class: "triangle"
|
|
373
|
+
}, null, 8, ue),
|
|
374
|
+
e("span", null, o(c(b)(a.name)), 1)
|
|
375
|
+
]),
|
|
376
|
+
r(e("div", ye, [
|
|
377
|
+
e("ul", he, [
|
|
378
|
+
(s(!0), l(m, null, u(a.properties, (h, k) => (s(), l("li", {
|
|
379
|
+
key: k,
|
|
380
|
+
class: "properties"
|
|
381
|
+
}, [
|
|
382
|
+
(s(!0), l(m, null, u(h, (R, v) => (s(), l("div", {
|
|
383
|
+
class: "title_value",
|
|
384
|
+
key: v
|
|
385
|
+
}, [
|
|
386
|
+
e("span", ve, o(c(b)(v)), 1),
|
|
387
|
+
e("span", ge, o(R), 1)
|
|
388
|
+
]))), 128))
|
|
389
|
+
]))), 128))
|
|
390
|
+
])
|
|
391
|
+
], 512), [
|
|
392
|
+
[_, a.expanded]
|
|
393
|
+
])
|
|
394
|
+
], 8, de))), 128))
|
|
395
|
+
])
|
|
396
|
+
]),
|
|
397
|
+
_: 1
|
|
398
|
+
})
|
|
399
|
+
], 512), [
|
|
400
|
+
[_, p.value]
|
|
401
|
+
]),
|
|
402
|
+
r(e("div", Ce, [
|
|
403
|
+
e("img", {
|
|
404
|
+
src: c(B) + "/bimkk-app/pinapp-empty-box.png"
|
|
405
|
+
}, null, 8, fe),
|
|
406
|
+
Pe
|
|
407
|
+
], 512), [
|
|
408
|
+
[_, !p.value]
|
|
409
|
+
])
|
|
410
|
+
]),
|
|
411
|
+
_: 1
|
|
412
|
+
})) : H("", !0),
|
|
413
|
+
!c(w)("isMobile") && c(V).currentTheme == "light-gray" ? (s(), j(z, {
|
|
414
|
+
key: 1,
|
|
415
|
+
panelTitle: "属性",
|
|
416
|
+
"click-handle": M,
|
|
417
|
+
class: "pc_Inspector"
|
|
418
|
+
}, {
|
|
419
|
+
default: T(() => [
|
|
420
|
+
Te,
|
|
421
|
+
e("div", be, [
|
|
422
|
+
r(e("div", Se, [
|
|
423
|
+
x(d, null, {
|
|
424
|
+
default: T(() => [
|
|
425
|
+
e("div", {
|
|
426
|
+
class: "basic_info",
|
|
427
|
+
onClick: n[1] || (n[1] = (a) => f(t))
|
|
428
|
+
}, [
|
|
429
|
+
e("div", Ie, [
|
|
430
|
+
e("img", {
|
|
431
|
+
src: P(t.expanded),
|
|
432
|
+
class: "triangle"
|
|
433
|
+
}, null, 8, ke),
|
|
434
|
+
Re
|
|
435
|
+
]),
|
|
436
|
+
r(e("div", we, [
|
|
437
|
+
xe,
|
|
438
|
+
e("div", De, [
|
|
439
|
+
e("span", null, o(t.entity_name), 1),
|
|
440
|
+
e("span", null, o(t.entity_id), 1),
|
|
441
|
+
e("span", null, o(t.entity_type), 1)
|
|
442
|
+
])
|
|
443
|
+
], 512), [
|
|
444
|
+
[_, t.expanded]
|
|
445
|
+
])
|
|
446
|
+
]),
|
|
447
|
+
e("ul", Ee, [
|
|
448
|
+
(s(!0), l(m, null, u(t.propertySets, (a, I) => (s(), l("li", {
|
|
449
|
+
key: I,
|
|
450
|
+
class: "propertyset",
|
|
451
|
+
onClick: (h) => f(a)
|
|
452
|
+
}, [
|
|
453
|
+
e("div", Fe, [
|
|
454
|
+
e("img", {
|
|
455
|
+
src: P(a.expanded),
|
|
456
|
+
class: "triangle"
|
|
457
|
+
}, null, 8, Me),
|
|
458
|
+
e("span", null, o(c(b)(a.name)), 1)
|
|
459
|
+
]),
|
|
460
|
+
r(e("div", Oe, [
|
|
461
|
+
e("ul", Ve, [
|
|
462
|
+
(s(!0), l(m, null, u(a.properties, (h, k) => (s(), l("li", {
|
|
463
|
+
key: k,
|
|
464
|
+
class: "properties"
|
|
465
|
+
}, [
|
|
466
|
+
(s(!0), l(m, null, u(h, (R, v) => (s(), l("div", {
|
|
467
|
+
class: "title_value",
|
|
468
|
+
key: v
|
|
469
|
+
}, [
|
|
470
|
+
e("span", He, o(c(b)(v)), 1),
|
|
471
|
+
e("span", Le, o(R), 1)
|
|
472
|
+
]))), 128))
|
|
473
|
+
]))), 128))
|
|
474
|
+
])
|
|
475
|
+
], 512), [
|
|
476
|
+
[_, a.expanded]
|
|
477
|
+
])
|
|
478
|
+
], 8, Be))), 128))
|
|
479
|
+
])
|
|
480
|
+
]),
|
|
481
|
+
_: 1
|
|
482
|
+
})
|
|
483
|
+
], 512), [
|
|
484
|
+
[_, p.value]
|
|
485
|
+
]),
|
|
486
|
+
r(e("div", Ne, [
|
|
487
|
+
e("img", {
|
|
488
|
+
src: c(B) + "/bimkk-app/pinapp-empty-box.png"
|
|
489
|
+
}, null, 8, We),
|
|
490
|
+
Ae
|
|
491
|
+
], 512), [
|
|
492
|
+
[_, !p.value]
|
|
493
|
+
])
|
|
494
|
+
])
|
|
495
|
+
]),
|
|
496
|
+
_: 1
|
|
497
|
+
})) : H("", !0),
|
|
498
|
+
c(w)("isMobile") ? (s(), l("div", je, [
|
|
499
|
+
e("div", Ue, [
|
|
500
|
+
$e,
|
|
501
|
+
e("div", qe, [
|
|
502
|
+
x(K, {
|
|
503
|
+
class: "close",
|
|
504
|
+
"click-handle": M
|
|
505
|
+
})
|
|
506
|
+
])
|
|
507
|
+
]),
|
|
508
|
+
r(e("button", ze, null, 512), [
|
|
509
|
+
[_, !1]
|
|
510
|
+
]),
|
|
511
|
+
x(d, null, {
|
|
512
|
+
default: T(() => [
|
|
513
|
+
e("div", Ke, [
|
|
514
|
+
r(e("div", Ge, [
|
|
515
|
+
x(d, { height: "6.12rem" }, {
|
|
516
|
+
default: T(() => [
|
|
517
|
+
e("div", {
|
|
518
|
+
class: "basic_info",
|
|
519
|
+
onClick: n[2] || (n[2] = (a) => f(t))
|
|
520
|
+
}, [
|
|
521
|
+
e("div", Qe, [
|
|
522
|
+
e("img", {
|
|
523
|
+
src: P(t.expanded),
|
|
524
|
+
class: "triangle"
|
|
525
|
+
}, null, 8, Ze),
|
|
526
|
+
Je
|
|
527
|
+
]),
|
|
528
|
+
r(e("div", Xe, [
|
|
529
|
+
Ye,
|
|
530
|
+
e("div", et, [
|
|
531
|
+
e("span", null, o(t.entity_name), 1),
|
|
532
|
+
e("span", null, o(t.entity_id), 1),
|
|
533
|
+
e("span", null, o(t.entity_type), 1)
|
|
534
|
+
])
|
|
535
|
+
], 512), [
|
|
536
|
+
[_, t.expanded]
|
|
537
|
+
])
|
|
538
|
+
]),
|
|
539
|
+
e("ul", tt, [
|
|
540
|
+
(s(!0), l(m, null, u(t.propertySets, (a, I) => (s(), l("li", {
|
|
541
|
+
key: I,
|
|
542
|
+
class: "propertyset",
|
|
543
|
+
onClick: (h) => f(a)
|
|
544
|
+
}, [
|
|
545
|
+
e("div", st, [
|
|
546
|
+
e("img", {
|
|
547
|
+
src: P(a.expanded),
|
|
548
|
+
class: "triangle"
|
|
549
|
+
}, null, 8, ot),
|
|
550
|
+
e("span", null, o(c(b)(a.name)), 1)
|
|
551
|
+
]),
|
|
552
|
+
r(e("div", it, [
|
|
553
|
+
e("ul", at, [
|
|
554
|
+
(s(!0), l(m, null, u(a.properties, (h, k) => (s(), l("li", {
|
|
555
|
+
key: k,
|
|
556
|
+
class: "properties"
|
|
557
|
+
}, [
|
|
558
|
+
(s(!0), l(m, null, u(h, (R, v) => (s(), l("div", {
|
|
559
|
+
class: "title_value",
|
|
560
|
+
key: v
|
|
561
|
+
}, [
|
|
562
|
+
e("span", lt, o(c(b)(v)), 1),
|
|
563
|
+
e("span", ct, o(R), 1)
|
|
564
|
+
]))), 128))
|
|
565
|
+
]))), 128))
|
|
566
|
+
])
|
|
567
|
+
], 512), [
|
|
568
|
+
[_, a.expanded]
|
|
569
|
+
])
|
|
570
|
+
], 8, nt))), 128))
|
|
571
|
+
])
|
|
572
|
+
]),
|
|
573
|
+
_: 1
|
|
574
|
+
})
|
|
575
|
+
], 512), [
|
|
576
|
+
[_, p.value]
|
|
577
|
+
]),
|
|
578
|
+
r(e("div", rt, [
|
|
579
|
+
e("div", null, [
|
|
580
|
+
_t,
|
|
581
|
+
e("span", pt, o(y.objectCount), 1)
|
|
582
|
+
]),
|
|
583
|
+
e("div", null, [
|
|
584
|
+
dt,
|
|
585
|
+
e("span", mt, o(y.pSetsCount), 1)
|
|
586
|
+
]),
|
|
587
|
+
e("div", null, [
|
|
588
|
+
ut,
|
|
589
|
+
e("span", yt, o(y.createDate), 1)
|
|
590
|
+
]),
|
|
591
|
+
e("div", null, [
|
|
592
|
+
ht,
|
|
593
|
+
e("span", vt, o(y.author), 1)
|
|
594
|
+
])
|
|
595
|
+
], 512), [
|
|
596
|
+
[_, !p.value]
|
|
597
|
+
])
|
|
598
|
+
])
|
|
599
|
+
]),
|
|
600
|
+
_: 1
|
|
601
|
+
})
|
|
602
|
+
])) : H("", !0)
|
|
603
|
+
], 64);
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
export {
|
|
608
|
+
Tt as default
|
|
609
|
+
};
|