@xtctwins/tctwins-industry-engine 0.0.7 → 0.0.9
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 +1 -1
- package/dist/{AnnotationTool-CaIkSTb2.mjs → AnnotationTool-Dzd5rcwa.mjs} +2 -2
- package/dist/{BCFTool-DIorZPhx.mjs → BCFTool-kLs0Y5n5.mjs} +2 -2
- package/dist/CommentTool-BFDzk_5a.mjs +168 -0
- package/dist/Industry_Viewer_Lib.es.js +1 -1
- package/dist/Industry_Viewer_Lib.umd.js +6 -6
- package/dist/{InspectorTool-BZHuqGgY.mjs → InspectorTool-BOeo7StN.mjs} +3 -3
- package/dist/{MeasureTool-BfeWmsJq.mjs → MeasureTool-qO_ci86K.mjs} +1 -1
- package/dist/{MouseTool-BJG0V6kV.mjs → MouseTool-CLryyMPf.mjs} +1 -1
- package/dist/{NavigateTool-CMFxtATD.mjs → NavigateTool-BkwZL4ng.mjs} +1 -1
- package/dist/{RoamTool-Bg7E_-XW.mjs → RoamTool-DyL44JV3.mjs} +1 -1
- package/dist/{ScreenShotTool-ChUd18g0.mjs → ScreenShotTool-cho_m-3z.mjs} +2 -2
- package/dist/{SectionTool-BGnmvv8o.mjs → SectionTool-BG8pmY3A.mjs} +3 -3
- package/dist/{SettingTool-CQ56YkBt.mjs → SettingTool-BgBA9v6q.mjs} +4 -4
- package/dist/{StructureTree-BKqw9gdF.mjs → StructureTree-BRY3gEgI.mjs} +4 -4
- package/dist/{XRayTool-n_oIfMEa.mjs → XRayTool-DQeoOCKy.mjs} +1 -1
- package/dist/{alert-B7HUP2Eo.mjs → alert-D1vSywdn.mjs} +1 -1
- package/dist/{el-checkbox-498z2BDO.mjs → el-checkbox-BCef2DnV.mjs} +1 -1
- package/dist/{el-input-number-BcKCedxx.mjs → el-input-number-33CYHG2x.mjs} +1 -1
- package/dist/{index-jMbn9URT.mjs → index-DROkX_fP.mjs} +14 -14
- package/dist/{panel.vue_vue_type_style_index_0_lang-COkgXTCB.mjs → panel.vue_vue_type_style_index_0_lang-Ce406nTf.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tallPanel-B4GP4K_3.mjs → tallPanel-CMZIMI6R.mjs} +1 -1
- package/package.json +1 -1
- package/dist/CommentTool-DHALjNKm.mjs +0 -167
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as g, q as t, T as i, A as y, B as x, y as S, z as b } from "./index-
|
|
1
|
+
import { p as g, q as t, T as i, A as y, B as x, y as S, z as b } from "./index-DROkX_fP.mjs";
|
|
2
2
|
import { defineComponent as k, ref as u, onMounted as P, watch as w, openBlock as _, createElementBlock as f, normalizeStyle as W, createElementVNode as o, toDisplayString as C, createVNode as T, unref as h, renderSlot as N, createCommentVNode as B } from "vue";
|
|
3
3
|
const E = { class: "tall_panel_content" }, $ = { class: "panel_top" }, H = { class: "panel_title" }, L = { class: "panel_close" }, z = { class: "panel_content" }, A = {
|
|
4
4
|
key: 0,
|
package/package.json
CHANGED
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { p as $, t as k, q as I, O as g, x as D, v as q, z as F } from "./index-jMbn9URT.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-e942ceb5"]]);
|
|
165
|
-
export {
|
|
166
|
-
be as default
|
|
167
|
-
};
|