@xtctwins/tctwins-industry-engine 0.0.1
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/README.md +5 -0
- package/dist/AnnotationTool-p1JXCwLS.mjs +129 -0
- package/dist/BCFTool-Cssf2dIk.mjs +25118 -0
- package/dist/CommentTool-Bug4iFC9.mjs +167 -0
- package/dist/Industry_Viewer_Lib.es.js +12 -0
- package/dist/Industry_Viewer_Lib.umd.js +633 -0
- package/dist/InspectorTool-BJzXtOU-.mjs +674 -0
- package/dist/MeasureTool-Dkrz8dS6.mjs +168 -0
- package/dist/MouseTool-Cvc5G90V.mjs +80 -0
- package/dist/NavigateTool-DwEEE5nd.mjs +52 -0
- package/dist/RoamTool-dChjfNvn.mjs +212 -0
- package/dist/ScreenShotTool-CPrA7pEa.mjs +357 -0
- package/dist/SectionTool-Du-V6U-J.mjs +217 -0
- package/dist/SettingTool-X6AjiptI.mjs +691 -0
- package/dist/StructureTree-CHhrQiDL.mjs +1591 -0
- package/dist/XRayTool-Ci1SR92x.mjs +57 -0
- package/dist/alert-BzjOjWCu.mjs +46 -0
- package/dist/const-DeViLYl5.mjs +266 -0
- package/dist/el-checkbox-DeNYO9VE.mjs +460 -0
- package/dist/el-input-number-CsUyeV_5.mjs +858 -0
- package/dist/index-CBO0Vhj8.mjs +99354 -0
- package/dist/index.html +17 -0
- package/dist/panel.vue_vue_type_style_index_0_lang-CUi6naB0.mjs +61 -0
- package/dist/style.css +1 -0
- package/dist/tallPanel-D226sbKd.mjs +84 -0
- package/package.json +65 -0
- package/types/App.vue.d.ts +2 -0
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +55 -0
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +59 -0
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +18 -0
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +14 -0
- package/types/components/BCFComponents/BCFTool.vue.d.ts +15 -0
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +16 -0
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +11 -0
- package/types/components/BCFComponents/commentInput.vue.d.ts +51 -0
- package/types/components/BCFComponents/commentsView.vue.d.ts +48 -0
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +15 -0
- package/types/components/BCFComponents/imageView.vue.d.ts +17 -0
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +9 -0
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +14 -0
- package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +6 -0
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/InspectorTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/MeasureTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/MouseTool.vue.d.ts +6 -0
- package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/RoamTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/ScreenShotTool.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/SectionTool.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/SettingTool.vue.d.ts +13 -0
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +3053 -0
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/XRayTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +27 -0
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +56 -0
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +55 -0
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +278 -0
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +255 -0
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +15 -0
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +54 -0
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +17 -0
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +12 -0
- package/types/components/index.d.ts +3 -0
- package/types/components/industryViewer.vue.d.ts +18 -0
- package/types/components/utilsComponents/alert.vue.d.ts +32 -0
- package/types/components/utilsComponents/closeButton.vue.d.ts +50 -0
- package/types/components/utilsComponents/closeButton_dark.vue.d.ts +32 -0
- package/types/components/utilsComponents/emptyPage.vue.d.ts +6 -0
- package/types/components/utilsComponents/loading.vue.d.ts +2 -0
- package/types/components/utilsComponents/panel.vue.d.ts +47 -0
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +106 -0
- package/types/components/utilsComponents/tallPanel.vue.d.ts +69 -0
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +82 -0
- package/types/index.d.ts +31 -0
- package/types/main.d.ts +1 -0
- package/types/pages/viewerEntry.vue.d.ts +59 -0
- package/types/services/request/config.d.ts +8 -0
- package/types/store/bcfManager.d.ts +11 -0
- package/types/store/bcfReflect.d.ts +88 -0
- package/types/store/const.d.ts +211 -0
- package/types/store/initConfigs.d.ts +58 -0
- package/types/store/propertyReflect.d.ts +1 -0
- package/types/store/themeManager.d.ts +8 -0
- package/types/store/toolbars.d.ts +392 -0
- package/types/utils/OSSHelper.d.ts +4 -0
- package/types/utils/cacheInfo.d.ts +20 -0
- package/types/utils/dateFormat.d.ts +2 -0
- package/types/utils/dpscan.d.ts +1 -0
- package/types/utils/eventBus.d.ts +86 -0
- package/types/utils/roles.d.ts +1 -0
- package/types/utils/splitType.d.ts +3 -0
- package/types/utils/timer.d.ts +9 -0
- package/types/viewerManager/initial/viewerInitial.d.ts +7 -0
- package/types/viewerManager/load/loadModel.d.ts +1 -0
- package/types/viewerManager/viewerManager.d.ts +12 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { p as $, t as k, q as I, O as g, x as D, v as q, z as F } from "./index-CBO0Vhj8.mjs";
|
|
2
|
+
import { defineComponent as H, onMounted as W, ref as s, onBeforeUnmount as j, watch as G, openBlock as r, createElementBlock as d, createElementVNode as e, createVNode as S, withCtx as J, Fragment as K, renderList as Q, unref as f, normalizeClass as X, toDisplayString as Y, createCommentVNode as B } from "vue";
|
|
3
|
+
import { C as V } from "./const-DeViLYl5.mjs";
|
|
4
|
+
const Z = { class: "comment_component" }, ee = { class: "mobile_comments_toolbar" }, te = { class: "comment_toolbar" }, oe = { class: "comment-list" }, se = ["onClick"], ne = { class: "comment-icon" }, le = ["src"], ae = { class: "comment-name" }, ie = { class: "comment-icon" }, ce = ["src"], me = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "comment_create_text_box"
|
|
7
|
+
}, re = { class: "label-text-edit" }, de = { class: "text-edit-head" }, ue = ["src"], ve = { class: "text-edit-body" }, _e = { class: "text-edit-input" }, fe = /* @__PURE__ */ H({
|
|
8
|
+
__name: "CommentTool",
|
|
9
|
+
props: ["componentId"],
|
|
10
|
+
emits: ["closePanel", "emitHandler"],
|
|
11
|
+
setup(E, { emit: pe }) {
|
|
12
|
+
const h = $(), w = E;
|
|
13
|
+
W(() => {
|
|
14
|
+
h.setReadyById(w.componentId);
|
|
15
|
+
});
|
|
16
|
+
let p, a;
|
|
17
|
+
const n = s(0), N = s(1), M = s(1);
|
|
18
|
+
s(1), s(V);
|
|
19
|
+
const L = s(), C = s(!1), b = s(!1), u = s(!1), v = s(!1), i = s(""), x = s(), c = s({
|
|
20
|
+
show: !1,
|
|
21
|
+
// 是否显示
|
|
22
|
+
title: "标题",
|
|
23
|
+
// 弹窗标题
|
|
24
|
+
content: "内容",
|
|
25
|
+
// 弹窗内容
|
|
26
|
+
submitName: "确认",
|
|
27
|
+
// 弹窗按钮
|
|
28
|
+
confirm: () => {
|
|
29
|
+
console.log("点击了确认"), c.value.show = !1;
|
|
30
|
+
},
|
|
31
|
+
close: () => {
|
|
32
|
+
console.log("点击了关闭"), c.value.show = !1;
|
|
33
|
+
}
|
|
34
|
+
}), y = () => {
|
|
35
|
+
p = window.bimViewer.commentTool, a = window.bimViewer.eventTrigger, m(""), a.on("createNew", () => {
|
|
36
|
+
n.value = 0, m("");
|
|
37
|
+
}), a.on("newState", () => {
|
|
38
|
+
C.value = !0, b.value = !1;
|
|
39
|
+
}), a.on("noPreviousState", () => {
|
|
40
|
+
C.value = !1;
|
|
41
|
+
}), a.on("noNewState", () => {
|
|
42
|
+
b.value = !1;
|
|
43
|
+
}), a.on("choseTarget", (t) => {
|
|
44
|
+
u.value = !0, n.value = 0, m("");
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
k.on("BimViewer", y), j(() => {
|
|
48
|
+
k.off("BimViewer", y);
|
|
49
|
+
}), G(
|
|
50
|
+
() => h.isToolActive(w.componentId),
|
|
51
|
+
(t) => {
|
|
52
|
+
var o;
|
|
53
|
+
t ? (n.value = 1, m("path"), setTimeout(() => {
|
|
54
|
+
var _;
|
|
55
|
+
I("isMobile") && ((_ = document.getElementById("svgImage")) == null || _.addEventListener("touchstart", T));
|
|
56
|
+
}, 100)) : I("isMobile") && ((o = document.getElementById("svgImage")) == null || o.removeEventListener("touchstart", T));
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
const T = (t) => {
|
|
60
|
+
t.target.tagName == "image" && (n.value === 5 ? (i.value = "", x.value = t, v.value = !0) : u.value = !1);
|
|
61
|
+
}, O = () => {
|
|
62
|
+
i.value ? (p.clickCreateText(x.value, i.value), v.value = !1) : A("请输入内容");
|
|
63
|
+
}, A = (t, o) => {
|
|
64
|
+
c.value = {
|
|
65
|
+
show: !0,
|
|
66
|
+
// 是否显示
|
|
67
|
+
title: "提示",
|
|
68
|
+
// 弹窗标题
|
|
69
|
+
content: t,
|
|
70
|
+
// 弹窗内容
|
|
71
|
+
submitName: "确定",
|
|
72
|
+
// 弹窗按钮
|
|
73
|
+
confirm: () => {
|
|
74
|
+
console.log("点击了确认"), c.value.show = !1;
|
|
75
|
+
},
|
|
76
|
+
close: () => {
|
|
77
|
+
console.log("点击了关闭"), c.value.show = !1;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}, z = (t) => {
|
|
81
|
+
n.value === t.id && (n.value = 0), N.value = 1, M.value = 1, L.value = t.buttontype, n.value = t.id, m(t.buttontype);
|
|
82
|
+
}, P = () => {
|
|
83
|
+
window.bimViewer.commentTool.deleteCurrentComments(), u.value = !1;
|
|
84
|
+
}, m = (t) => {
|
|
85
|
+
p.setCurrentMode(t);
|
|
86
|
+
};
|
|
87
|
+
return (t, o) => {
|
|
88
|
+
const _ = D, R = q;
|
|
89
|
+
return r(), d("div", Z, [
|
|
90
|
+
o[4] || (o[4] = e("div", {
|
|
91
|
+
id: "comments_panel",
|
|
92
|
+
class: "comments_panel"
|
|
93
|
+
}, null, -1)),
|
|
94
|
+
e("div", ee, [
|
|
95
|
+
e("div", te, [
|
|
96
|
+
S(_, null, {
|
|
97
|
+
default: J(() => [
|
|
98
|
+
e("div", oe, [
|
|
99
|
+
(r(!0), d(K, null, Q(f(V), (l, U) => (r(), d("div", {
|
|
100
|
+
key: U,
|
|
101
|
+
class: X(["comment-item", {
|
|
102
|
+
"comment-item-active": n.value === l.id
|
|
103
|
+
}]),
|
|
104
|
+
onClick: (ge) => z(l)
|
|
105
|
+
}, [
|
|
106
|
+
e("div", ne, [
|
|
107
|
+
e("img", {
|
|
108
|
+
src: f(g) + `/industry-viewer/comment-bar/${n.value === l.id ? l.svgActive : l.svg}.svg`
|
|
109
|
+
}, null, 8, le),
|
|
110
|
+
e("div", ae, Y(l.name), 1)
|
|
111
|
+
])
|
|
112
|
+
], 10, se))), 128)),
|
|
113
|
+
u.value ? (r(), d("div", {
|
|
114
|
+
key: 0,
|
|
115
|
+
class: "comment-item",
|
|
116
|
+
onClick: P
|
|
117
|
+
}, [
|
|
118
|
+
e("div", ie, [
|
|
119
|
+
e("img", {
|
|
120
|
+
src: f(g) + "/industry-viewer/delete.svg"
|
|
121
|
+
}, null, 8, ce),
|
|
122
|
+
o[2] || (o[2] = e("div", {
|
|
123
|
+
class: "comment-name",
|
|
124
|
+
style: { color: "#df1c1c" }
|
|
125
|
+
}, " 删除 ", -1))
|
|
126
|
+
])
|
|
127
|
+
])) : B("", !0)
|
|
128
|
+
])
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
})
|
|
132
|
+
])
|
|
133
|
+
]),
|
|
134
|
+
v.value ? (r(), d("div", me, [
|
|
135
|
+
e("div", re, [
|
|
136
|
+
e("div", de, [
|
|
137
|
+
e("img", {
|
|
138
|
+
class: "text-edit-back",
|
|
139
|
+
src: f(g) + "/industry-viewer/back_gray.svg",
|
|
140
|
+
onClick: o[0] || (o[0] = (l) => v.value = !1)
|
|
141
|
+
}, null, 8, ue),
|
|
142
|
+
o[3] || (o[3] = e("div", { class: "text-edit-title" }, "创建文字批注", -1)),
|
|
143
|
+
e("div", {
|
|
144
|
+
class: "text-edit-finish",
|
|
145
|
+
onClick: O
|
|
146
|
+
}, " 完成 ")
|
|
147
|
+
]),
|
|
148
|
+
e("div", ve, [
|
|
149
|
+
e("div", _e, [
|
|
150
|
+
S(R, {
|
|
151
|
+
modelValue: i.value,
|
|
152
|
+
"onUpdate:modelValue": o[1] || (o[1] = (l) => i.value = l),
|
|
153
|
+
type: "textarea",
|
|
154
|
+
placeholder: "请输入文本内容",
|
|
155
|
+
autosize: { minRows: 2 }
|
|
156
|
+
}, null, 8, ["modelValue"])
|
|
157
|
+
])
|
|
158
|
+
])
|
|
159
|
+
])
|
|
160
|
+
])) : B("", !0)
|
|
161
|
+
]);
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
}), be = /* @__PURE__ */ F(fe, [["__scopeId", "data-v-32d624e2"]]);
|
|
165
|
+
export {
|
|
166
|
+
be as default
|
|
167
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { I as e, as as t, at as o, av as i, V as l, ay as r, au as I, aw as n, ax as y } from "./index-CBO0Vhj8.mjs";
|
|
2
|
+
export {
|
|
3
|
+
e as INDUSTRY_CONFIGS,
|
|
4
|
+
t as IndustryViewer,
|
|
5
|
+
o as InitialViewer,
|
|
6
|
+
i as InitializeConfigs,
|
|
7
|
+
l as ViewerManager,
|
|
8
|
+
r as setAllToolClose,
|
|
9
|
+
I as setConfigs,
|
|
10
|
+
n as setToolStatusById,
|
|
11
|
+
y as setToolStatusBykey
|
|
12
|
+
};
|