@xtctwins/tctwins-industry-engine 0.0.6 → 0.0.8
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-CI2uKvcT.mjs → AnnotationTool-CG5vARdK.mjs} +2 -2
- package/dist/{BCFTool-DMTJWHGp.mjs → BCFTool-BQLaEDZx.mjs} +2 -2
- package/dist/CommentTool-CcWmN9an.mjs +168 -0
- package/dist/Industry_Viewer_Lib.es.js +1 -1
- package/dist/Industry_Viewer_Lib.umd.js +67 -67
- package/dist/{InspectorTool-M14bTfJy.mjs → InspectorTool-bDQLZaVJ.mjs} +5 -5
- package/dist/{MeasureTool-fpe5lUfA.mjs → MeasureTool-C4BQ_ynw.mjs} +2 -2
- package/dist/{MouseTool-DD_r7w8g.mjs → MouseTool-BKNINn0k.mjs} +20 -18
- package/dist/{NavigateTool-h6mbQBx1.mjs → NavigateTool-Dzpxqz_P.mjs} +1 -1
- package/dist/{RoamTool-BW-qnHb2.mjs → RoamTool-Cdl62N2A.mjs} +1 -1
- package/dist/{ScreenShotTool-C1u0hG7E.mjs → ScreenShotTool-Bv5C5Obh.mjs} +2 -2
- package/dist/{SectionTool-B5Wtjqxa.mjs → SectionTool-yzuX_KaV.mjs} +3 -3
- package/dist/{SettingTool-CuFUj90w.mjs → SettingTool-MnaXWQ7Z.mjs} +4 -4
- package/dist/StructureTree-CPB_MVJm.mjs +1591 -0
- package/dist/{XRayTool-C0m0cNvJ.mjs → XRayTool-vHLBinZD.mjs} +1 -1
- package/dist/{alert-BVfdQL8W.mjs → alert-Dn13cpN1.mjs} +1 -1
- package/dist/{el-checkbox-D7fM1J1k.mjs → el-checkbox-Day69Q-U.mjs} +1 -1
- package/dist/{el-input-number-BPhVD6dp.mjs → el-input-number-DiFyiybL.mjs} +1 -1
- package/dist/{index-CQhsx45j.mjs → index-JDDvIbJ_.mjs} +1170 -1168
- package/dist/{panel.vue_vue_type_style_index_0_lang-BoKU9_z2.mjs → panel.vue_vue_type_style_index_0_lang-D96FeHYN.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tallPanel-DOV7VQ7X.mjs → tallPanel-BsnhCyIr.mjs} +1 -1
- package/package.json +1 -1
- package/dist/CommentTool-BRhMRcYU.mjs +0 -167
- package/dist/StructureTree-xbI_WYLM.mjs +0 -1591
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as E } from "./alert-
|
|
1
|
+
import { _ as E } from "./alert-Dn13cpN1.mjs";
|
|
2
2
|
import { defineComponent as N, ref as m, watch as W, onMounted as X, onBeforeUnmount as D, openBlock as _, createElementBlock as u, Fragment as b, createElementVNode as s, renderList as O, unref as I, normalizeClass as q, toDisplayString as H, withDirectives as z, createVNode as R, vShow as U } from "vue";
|
|
3
|
-
import { p as F, q as h, t as l, O as o, z as j } from "./index-
|
|
3
|
+
import { p as F, q as h, t as l, O as o, z as j } from "./index-JDDvIbJ_.mjs";
|
|
4
4
|
import { A as i } from "./const-DeViLYl5.mjs";
|
|
5
5
|
const G = { class: "annotation_component" }, J = { class: "anno_toolList" }, K = ["onClick"], P = { class: "item-img" }, Q = ["src"], Y = { class: "item-name" }, Z = /* @__PURE__ */ N({
|
|
6
6
|
__name: "AnnotationTool",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as kr, T as $e, q as er, O as te, y as Je, z as Pe, x as rr, a6 as Re, v as gr, a7 as hr, a8 as Rr, a9 as yr, aa as Ve, ab as br, ac as jr, ad as Ir, t as Ie, ae as Nr, af as Pr, ag as Sr, ah as Cr, ai as Br, aj as Tr, ak as xr, al as Mr, am as Er, an as Ar, ao as Zt, ap as Dr } from "./index-
|
|
1
|
+
import { p as kr, T as $e, q as er, O as te, y as Je, z as Pe, x as rr, a6 as Re, v as gr, a7 as hr, a8 as Rr, a9 as yr, aa as Ve, ab as br, ac as jr, ad as Ir, t as Ie, ae as Nr, af as Pr, ag as Sr, ah as Cr, ai as Br, aj as Tr, ak as xr, al as Mr, am as Er, an as Ar, ao as Zt, ap as Dr } from "./index-JDDvIbJ_.mjs";
|
|
2
2
|
import { defineComponent as Be, watch as We, ref as ht, onMounted as Qe, openBlock as wt, createElementBlock as jt, normalizeStyle as Ge, createElementVNode as J, withDirectives as nr, toDisplayString as re, unref as Nt, createVNode as Gt, vShow as ir, renderSlot as Fr, createCommentVNode as Ce, withCtx as xe, Fragment as Me, renderList as Ee, normalizeClass as Ue, createBlock as ye, onBeforeUnmount as vr, createTextVNode as mr, createStaticVNode as Lr } from "vue";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { E as zr, a as $r } from "./el-checkbox-
|
|
4
|
+
import { E as zr, a as $r } from "./el-checkbox-Day69Q-U.mjs";
|
|
5
5
|
import { ElMessage as Ur } from "element-plus";
|
|
6
6
|
const Vr = { class: "tall_panel_content" }, Hr = { class: "panel_top" }, qr = { class: "panel_header_left" }, Wr = ["src"], Xr = { class: "panel_close" }, Zr = { class: "panel_content" }, Yr = {
|
|
7
7
|
key: 0,
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { p as $, t as S, q as g, O as h, x as D, v as q, z as F } from "./index-JDDvIbJ_.mjs";
|
|
2
|
+
import { defineComponent as H, onMounted as W, ref as o, onBeforeUnmount as j, watch as G, openBlock as r, createElementBlock as d, createElementVNode as e, normalizeStyle as J, unref as u, createVNode as I, withCtx as K, Fragment as Q, renderList as X, normalizeClass as Y, toDisplayString as Z, createCommentVNode as B } from "vue";
|
|
3
|
+
import { C as V } from "./const-DeViLYl5.mjs";
|
|
4
|
+
const ee = { class: "comment_component" }, te = { class: "mobile_comments_toolbar" }, oe = { class: "comment_toolbar" }, se = { class: "comment-list" }, ne = ["onClick"], le = { class: "comment-icon" }, ae = ["src"], ce = { class: "comment-name" }, ie = { class: "comment-icon" }, me = ["src"], re = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "comment_create_text_box"
|
|
7
|
+
}, de = { class: "label-text-edit" }, ue = { class: "text-edit-head" }, ve = ["src"], _e = { class: "text-edit-body" }, fe = { class: "text-edit-input" }, pe = /* @__PURE__ */ H({
|
|
8
|
+
__name: "CommentTool",
|
|
9
|
+
props: ["componentId"],
|
|
10
|
+
emits: ["closePanel", "emitHandler"],
|
|
11
|
+
setup(E, { emit: ge }) {
|
|
12
|
+
const w = $(), C = E;
|
|
13
|
+
W(() => {
|
|
14
|
+
w.setReadyById(C.componentId);
|
|
15
|
+
});
|
|
16
|
+
let p, a;
|
|
17
|
+
const n = o(0), N = o(1), M = o(1);
|
|
18
|
+
o(1), o(V);
|
|
19
|
+
const L = o(), b = o(!1), x = o(!1), v = o(!1), _ = o(!1), c = o(""), y = o(), i = o({
|
|
20
|
+
show: !1,
|
|
21
|
+
// 是否显示
|
|
22
|
+
title: "标题",
|
|
23
|
+
// 弹窗标题
|
|
24
|
+
content: "内容",
|
|
25
|
+
// 弹窗内容
|
|
26
|
+
submitName: "确认",
|
|
27
|
+
// 弹窗按钮
|
|
28
|
+
confirm: () => {
|
|
29
|
+
console.log("点击了确认"), i.value.show = !1;
|
|
30
|
+
},
|
|
31
|
+
close: () => {
|
|
32
|
+
console.log("点击了关闭"), i.value.show = !1;
|
|
33
|
+
}
|
|
34
|
+
}), T = () => {
|
|
35
|
+
p = window.bimViewer.commentTool, a = window.bimViewer.eventTrigger, m(""), a.on("createNew", () => {
|
|
36
|
+
n.value = 0, m("");
|
|
37
|
+
}), a.on("newState", () => {
|
|
38
|
+
b.value = !0, x.value = !1;
|
|
39
|
+
}), a.on("noPreviousState", () => {
|
|
40
|
+
b.value = !1;
|
|
41
|
+
}), a.on("noNewState", () => {
|
|
42
|
+
x.value = !1;
|
|
43
|
+
}), a.on("choseTarget", (t) => {
|
|
44
|
+
v.value = !0, n.value = 0, m("");
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
S.on("BimViewer", T), j(() => {
|
|
48
|
+
S.off("BimViewer", T);
|
|
49
|
+
}), G(
|
|
50
|
+
() => w.isToolActive(C.componentId),
|
|
51
|
+
(t) => {
|
|
52
|
+
var s;
|
|
53
|
+
t ? (n.value = 1, m("path"), setTimeout(() => {
|
|
54
|
+
var f;
|
|
55
|
+
g("isMobile") && ((f = document.getElementById("svgImage")) == null || f.addEventListener("touchstart", k));
|
|
56
|
+
}, 100)) : g("isMobile") && ((s = document.getElementById("svgImage")) == null || s.removeEventListener("touchstart", k));
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
const k = (t) => {
|
|
60
|
+
t.target.tagName == "image" && (n.value === 5 ? (c.value = "", y.value = t, _.value = !0) : v.value = !1);
|
|
61
|
+
}, O = () => {
|
|
62
|
+
c.value ? (p.clickCreateText(y.value, c.value), _.value = !1) : A("请输入内容");
|
|
63
|
+
}, A = (t, s) => {
|
|
64
|
+
i.value = {
|
|
65
|
+
show: !0,
|
|
66
|
+
// 是否显示
|
|
67
|
+
title: "提示",
|
|
68
|
+
// 弹窗标题
|
|
69
|
+
content: t,
|
|
70
|
+
// 弹窗内容
|
|
71
|
+
submitName: "确定",
|
|
72
|
+
// 弹窗按钮
|
|
73
|
+
confirm: () => {
|
|
74
|
+
console.log("点击了确认"), i.value.show = !1;
|
|
75
|
+
},
|
|
76
|
+
close: () => {
|
|
77
|
+
console.log("点击了关闭"), i.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(), v.value = !1;
|
|
84
|
+
}, m = (t) => {
|
|
85
|
+
p.setCurrentMode(t);
|
|
86
|
+
};
|
|
87
|
+
return (t, s) => {
|
|
88
|
+
const f = D, R = q;
|
|
89
|
+
return r(), d("div", ee, [
|
|
90
|
+
e("div", {
|
|
91
|
+
id: "comments_panel",
|
|
92
|
+
class: "comments_panel",
|
|
93
|
+
style: J({ background: u(g)("backgroundColor") })
|
|
94
|
+
}, null, 4),
|
|
95
|
+
e("div", te, [
|
|
96
|
+
e("div", oe, [
|
|
97
|
+
I(f, null, {
|
|
98
|
+
default: K(() => [
|
|
99
|
+
e("div", se, [
|
|
100
|
+
(r(!0), d(Q, null, X(u(V), (l, U) => (r(), d("div", {
|
|
101
|
+
key: U,
|
|
102
|
+
class: Y(["comment-item", {
|
|
103
|
+
"comment-item-active": n.value === l.id
|
|
104
|
+
}]),
|
|
105
|
+
onClick: (he) => z(l)
|
|
106
|
+
}, [
|
|
107
|
+
e("div", le, [
|
|
108
|
+
e("img", {
|
|
109
|
+
src: u(h) + `/industry-viewer/comment-bar/${n.value === l.id ? l.svgActive : l.svg}.svg`
|
|
110
|
+
}, null, 8, ae),
|
|
111
|
+
e("div", ce, Z(l.name), 1)
|
|
112
|
+
])
|
|
113
|
+
], 10, ne))), 128)),
|
|
114
|
+
v.value ? (r(), d("div", {
|
|
115
|
+
key: 0,
|
|
116
|
+
class: "comment-item",
|
|
117
|
+
onClick: P
|
|
118
|
+
}, [
|
|
119
|
+
e("div", ie, [
|
|
120
|
+
e("img", {
|
|
121
|
+
src: u(h) + "/industry-viewer/delete.svg"
|
|
122
|
+
}, null, 8, me),
|
|
123
|
+
s[2] || (s[2] = e("div", {
|
|
124
|
+
class: "comment-name",
|
|
125
|
+
style: { color: "#df1c1c" }
|
|
126
|
+
}, " 删除 ", -1))
|
|
127
|
+
])
|
|
128
|
+
])) : B("", !0)
|
|
129
|
+
])
|
|
130
|
+
]),
|
|
131
|
+
_: 1
|
|
132
|
+
})
|
|
133
|
+
])
|
|
134
|
+
]),
|
|
135
|
+
_.value ? (r(), d("div", re, [
|
|
136
|
+
e("div", de, [
|
|
137
|
+
e("div", ue, [
|
|
138
|
+
e("img", {
|
|
139
|
+
class: "text-edit-back",
|
|
140
|
+
src: u(h) + "/industry-viewer/back_gray.svg",
|
|
141
|
+
onClick: s[0] || (s[0] = (l) => _.value = !1)
|
|
142
|
+
}, null, 8, ve),
|
|
143
|
+
s[3] || (s[3] = e("div", { class: "text-edit-title" }, "创建文字批注", -1)),
|
|
144
|
+
e("div", {
|
|
145
|
+
class: "text-edit-finish",
|
|
146
|
+
onClick: O
|
|
147
|
+
}, " 完成 ")
|
|
148
|
+
]),
|
|
149
|
+
e("div", _e, [
|
|
150
|
+
e("div", fe, [
|
|
151
|
+
I(R, {
|
|
152
|
+
modelValue: c.value,
|
|
153
|
+
"onUpdate:modelValue": s[1] || (s[1] = (l) => c.value = l),
|
|
154
|
+
type: "textarea",
|
|
155
|
+
placeholder: "请输入文本内容",
|
|
156
|
+
autosize: { minRows: 2 }
|
|
157
|
+
}, null, 8, ["modelValue"])
|
|
158
|
+
])
|
|
159
|
+
])
|
|
160
|
+
])
|
|
161
|
+
])) : B("", !0)
|
|
162
|
+
]);
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
}), xe = /* @__PURE__ */ F(pe, [["__scopeId", "data-v-0b587a92"]]);
|
|
166
|
+
export {
|
|
167
|
+
xe as default
|
|
168
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-JDDvIbJ_.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as INDUSTRY_CONFIGS,
|
|
4
4
|
t as IndustryViewer,
|