@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.
Files changed (25) hide show
  1. package/dist/{AnnotationTool-CI2uKvcT.mjs → AnnotationTool-CG5vARdK.mjs} +2 -2
  2. package/dist/{BCFTool-DMTJWHGp.mjs → BCFTool-BQLaEDZx.mjs} +2 -2
  3. package/dist/CommentTool-CcWmN9an.mjs +168 -0
  4. package/dist/Industry_Viewer_Lib.es.js +1 -1
  5. package/dist/Industry_Viewer_Lib.umd.js +67 -67
  6. package/dist/{InspectorTool-M14bTfJy.mjs → InspectorTool-bDQLZaVJ.mjs} +5 -5
  7. package/dist/{MeasureTool-fpe5lUfA.mjs → MeasureTool-C4BQ_ynw.mjs} +2 -2
  8. package/dist/{MouseTool-DD_r7w8g.mjs → MouseTool-BKNINn0k.mjs} +20 -18
  9. package/dist/{NavigateTool-h6mbQBx1.mjs → NavigateTool-Dzpxqz_P.mjs} +1 -1
  10. package/dist/{RoamTool-BW-qnHb2.mjs → RoamTool-Cdl62N2A.mjs} +1 -1
  11. package/dist/{ScreenShotTool-C1u0hG7E.mjs → ScreenShotTool-Bv5C5Obh.mjs} +2 -2
  12. package/dist/{SectionTool-B5Wtjqxa.mjs → SectionTool-yzuX_KaV.mjs} +3 -3
  13. package/dist/{SettingTool-CuFUj90w.mjs → SettingTool-MnaXWQ7Z.mjs} +4 -4
  14. package/dist/StructureTree-CPB_MVJm.mjs +1591 -0
  15. package/dist/{XRayTool-C0m0cNvJ.mjs → XRayTool-vHLBinZD.mjs} +1 -1
  16. package/dist/{alert-BVfdQL8W.mjs → alert-Dn13cpN1.mjs} +1 -1
  17. package/dist/{el-checkbox-D7fM1J1k.mjs → el-checkbox-Day69Q-U.mjs} +1 -1
  18. package/dist/{el-input-number-BPhVD6dp.mjs → el-input-number-DiFyiybL.mjs} +1 -1
  19. package/dist/{index-CQhsx45j.mjs → index-JDDvIbJ_.mjs} +1170 -1168
  20. 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
  21. package/dist/style.css +1 -1
  22. package/dist/{tallPanel-DOV7VQ7X.mjs → tallPanel-BsnhCyIr.mjs} +1 -1
  23. package/package.json +1 -1
  24. package/dist/CommentTool-BRhMRcYU.mjs +0 -167
  25. package/dist/StructureTree-xbI_WYLM.mjs +0 -1591
@@ -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-CQhsx45j.mjs";
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-JDDvIbJ_.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@xtctwins/tctwins-industry-engine",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "main": "dist/Industry_Viewer_Lib.umd.js",
5
5
  "style": "dist/style.css",
6
6
  "module": "dist/Industry_Viewer_Lib.es.js",
@@ -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-CQhsx45j.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-be873471"]]);
165
- export {
166
- be as default
167
- };