@xtctwins/tctwins-industry-engine 0.0.12 → 0.1.0
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 +196 -3
- package/dist/01.xtc +0 -0
- package/dist/02.xtc +0 -0
- package/dist/03.xtc +0 -0
- package/dist/AnnotationTool-DfcSXn-d.mjs +166 -0
- package/dist/CameraViewTool-C91GKumm.mjs +164 -0
- package/dist/CommentTool-CR1yMDYP.mjs +1528 -0
- package/dist/HiddenTool-iCXaAMtS.mjs +56 -0
- package/dist/Industry_Viewer_Lib.es.js +10 -5
- package/dist/Industry_Viewer_Lib.umd.js +264 -237
- package/dist/InspectorTool-MyLTC7qp.mjs +679 -0
- package/dist/MeasureTool-BpomWCXl.mjs +593 -0
- package/dist/MouseTool-COWvA8Jk.mjs +84 -0
- package/dist/NavigateTool-DeMrrYoS.mjs +51 -0
- package/dist/OperateTool-DSZCJVkD.mjs +185 -0
- package/dist/RoamTool-0E0ls2Cx.mjs +287 -0
- package/dist/ScreenShotTool-viitj9zy.mjs +429 -0
- package/dist/SectionTool-Bz1c26fa.mjs +241 -0
- package/dist/SettingTool-BlsqUNQM.mjs +1745 -0
- package/dist/StructureTree-Dke0hMRC.mjs +1685 -0
- package/dist/alert-CgfjcpRo.mjs +52 -0
- package/dist/index-COQ8NdId.mjs +138714 -0
- package/dist/index.html +17 -0
- package/dist/{panel.vue_vue_type_style_index_0_lang-CCuIP-Pp.mjs → panel.vue_vue_type_style_index_0_lang-B-dNXuRK.mjs} +3 -3
- package/dist/style.css +3 -1
- package/dist/{tallPanel-CqKqC6yK.mjs → tallPanel-B-5hSZt6.mjs} +24 -24
- package/dist/timer-DoTiGoWP.mjs +30 -0
- package/package.json +85 -66
- package/types/App.vue.d.ts +3 -1
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +1 -1
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +1 -1
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +2 -2
- package/types/components/BCFComponents/commentInput.vue.d.ts +1 -1
- package/types/components/BCFComponents/commentsView.vue.d.ts +6 -6
- package/types/components/BCFComponents/imageView.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/CameraViewTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +34 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +14 -0
- package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +11 -0
- package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +17 -0
- package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +275 -0
- package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +297 -0
- package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +9 -0
- package/types/components/BimViewerComponents/OperateTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +14 -0
- package/types/components/BimViewerComponents/SectionModeBar.vue.d.ts +2 -0
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +8035 -419
- package/types/components/{industryViewer.vue.d.ts → BimxViewerComp.vue.d.ts} +7 -0
- package/types/components/IndustryViewerComp.vue.d.ts +25 -0
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +1 -1
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +1 -1
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +100 -308
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +100 -308
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +2 -0
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +4 -4
- package/types/components/utilsComponents/alert.vue.d.ts +9 -0
- package/types/components/utilsComponents/prompt.vue.d.ts +8 -0
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +1 -1
- package/types/i18n/index.d.ts +1767 -0
- package/types/i18n/locales/en-US.d.ts +439 -0
- package/types/i18n/locales/zh-CN.d.ts +439 -0
- package/types/i18n/types.d.ts +144 -0
- package/types/index.d.ts +8 -5
- package/types/pages/{viewerEntry.vue.d.ts → BimxViewerEntry.vue.d.ts} +20 -8
- package/types/pages/IndustryViewerEntry.vue.d.ts +71 -0
- package/types/services/request/api.d.ts +3 -0
- package/types/services/request/index.d.ts +14 -0
- package/types/services/request/types.d.ts +12 -0
- package/types/store/bcfReflect.d.ts +8 -7
- package/types/store/const.d.ts +32 -3
- package/types/store/initConfigs.d.ts +3 -3
- package/types/store/localeStore.d.ts +12 -0
- package/types/store/propertyReflect.d.ts +1 -1
- package/types/store/toolbars.d.ts +596 -75
- package/types/store/userInfoStore.d.ts +32 -0
- package/types/tests/bcf.d.ts +8 -0
- package/types/utils/OSSHelper.d.ts +3 -0
- package/types/utils/eventBus.d.ts +23 -5
- package/types/utils/roles.d.ts +1 -1
- package/types/utils/splitType.d.ts +1 -0
- package/types/viewerManager/initial/viewerInitial.d.ts +14 -1
- package/types/viewerManager/load/loadModel.d.ts +137 -1
- package/types/viewerManager/sectionManager.d.ts +524 -0
- package/types/viewerManager/viewerManager.d.ts +19 -1
- package/dist/AnnotationTool-f7CrC7Dr.mjs +0 -131
- package/dist/BCFTool-CdN6SGDL.mjs +0 -25118
- package/dist/CommentTool-Cfht7mQS.mjs +0 -168
- package/dist/InspectorTool-M_oBYVQA.mjs +0 -674
- package/dist/MeasureTool-CxWeQFgY.mjs +0 -167
- package/dist/MouseTool-BHbi-fg3.mjs +0 -84
- package/dist/NavigateTool-BdUVi4Be.mjs +0 -52
- package/dist/RoamTool-Uuxa-94w.mjs +0 -212
- package/dist/ScreenShotTool-CZUm8l2Z.mjs +0 -445
- package/dist/SectionTool-DZToybAI.mjs +0 -217
- package/dist/SettingTool-CYM0qsUs.mjs +0 -770
- package/dist/StructureTree-DeXxENMk.mjs +0 -1824
- package/dist/XRayTool-Bug-FcKJ.mjs +0 -57
- package/dist/alert-DGyQ9rEq.mjs +0 -46
- package/dist/const-DeViLYl5.mjs +0 -266
- package/dist/el-checkbox-ClYe-8uK.mjs +0 -544
- package/dist/el-input-number-Df5HOHuh.mjs +0 -1028
- package/dist/index-BNrMlQLr.mjs +0 -101871
- /package/types/components/BimViewerComponents/{mobileToolbar.vue.d.ts → AppToolbar.vue.d.ts} +0 -0
- /package/types/components/BimViewerComponents/{XRayTool.vue.d.ts → HiddenTool.vue.d.ts} +0 -0
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { z as U, B as S, A as p, D as $, O as h, C as F, G } from "./index-BNrMlQLr.mjs";
|
|
2
|
-
import { defineComponent as H, onMounted as W, ref as o, onBeforeUnmount as j, watch as q, createElementBlock as r, openBlock as d, createElementVNode as e, createCommentVNode as B, normalizeStyle as J, unref as u, createVNode as I, withCtx as K, Fragment as Q, renderList as X, normalizeClass as Y, toDisplayString as Z } 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" }, ge = /* @__PURE__ */ H({
|
|
8
|
-
__name: "CommentTool",
|
|
9
|
-
props: ["componentId"],
|
|
10
|
-
emits: ["closePanel", "emitHandler"],
|
|
11
|
-
setup(E, { emit: pe }) {
|
|
12
|
-
const w = U(), C = E;
|
|
13
|
-
W(() => {
|
|
14
|
-
w.setReadyById(C.componentId);
|
|
15
|
-
});
|
|
16
|
-
let g, a;
|
|
17
|
-
const n = o(0), N = o(1), M = o(1);
|
|
18
|
-
o(1), o(V);
|
|
19
|
-
const A = 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
|
-
g = 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
|
-
}), q(
|
|
50
|
-
() => w.isToolActive(C.componentId),
|
|
51
|
-
(t) => {
|
|
52
|
-
var s;
|
|
53
|
-
t ? (n.value = 1, m("path"), setTimeout(() => {
|
|
54
|
-
var f;
|
|
55
|
-
p("isMobile") && ((f = document.getElementById("svgImage")) == null || f.addEventListener("touchstart", k));
|
|
56
|
-
}, 100)) : p("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
|
-
}, L = () => {
|
|
62
|
-
c.value ? (g.clickCreateText(y.value, c.value), _.value = !1) : O("请输入内容");
|
|
63
|
-
}, O = (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, A.value = t.buttontype, n.value = t.id, m(t.buttontype);
|
|
82
|
-
}, D = () => {
|
|
83
|
-
window.bimViewer.commentTool.deleteCurrentComments(), v.value = !1;
|
|
84
|
-
}, m = (t) => {
|
|
85
|
-
g.setCurrentMode(t);
|
|
86
|
-
};
|
|
87
|
-
return (t, s) => {
|
|
88
|
-
const f = $, P = F;
|
|
89
|
-
return d(), r("div", ee, [
|
|
90
|
-
e("div", {
|
|
91
|
-
id: "comments_panel",
|
|
92
|
-
class: "comments_panel",
|
|
93
|
-
style: J({ background: u(p)("backgroundColor") })
|
|
94
|
-
}, null, 4),
|
|
95
|
-
e("div", te, [
|
|
96
|
-
e("div", oe, [
|
|
97
|
-
I(f, null, {
|
|
98
|
-
default: K(() => [
|
|
99
|
-
e("div", se, [
|
|
100
|
-
(d(!0), r(Q, null, X(u(V), (l, R) => (d(), r("div", {
|
|
101
|
-
key: R,
|
|
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 ? (d(), r("div", {
|
|
115
|
-
key: 0,
|
|
116
|
-
class: "comment-item",
|
|
117
|
-
onClick: D
|
|
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 ? (d(), r("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: L
|
|
147
|
-
}, " 完成 ")
|
|
148
|
-
]),
|
|
149
|
-
e("div", _e, [
|
|
150
|
-
e("div", fe, [
|
|
151
|
-
I(P, {
|
|
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__ */ G(ge, [["__scopeId", "data-v-ac774ff9"]]);
|
|
166
|
-
export {
|
|
167
|
-
xe as default
|
|
168
|
-
};
|