@xtctwins/tctwins-bimx-engine 0.2.54 → 0.3.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 -193
- package/dist/AnnotationTool-CGRte6Cc.mjs +167 -0
- package/dist/BIMX_Viewer_Lib.es.js +3 -3
- package/dist/BIMX_Viewer_Lib.umd.js +139 -131
- package/dist/CommentTool-CT3wFozB.mjs +1529 -0
- package/dist/{HiddenTool-BmsQJILs.mjs → HiddenTool-CoPawMRd.mjs} +13 -13
- package/dist/{InspectorTool-Bov8jwXr.mjs → InspectorTool-BIvnydPf.mjs} +53 -53
- package/dist/{MeasureTool-DVLt6Pqa.mjs → MeasureTool-BUi0QI_R.mjs} +24 -24
- package/dist/{MouseTool-Bqd5Bmlr.mjs → MouseTool-CdVwRiX1.mjs} +15 -15
- package/dist/{NavigateTool-YAKQUjOa.mjs → NavigateTool-DoP9z3yP.mjs} +13 -13
- package/dist/{RoamTool-CU4dpCTS.mjs → RoamTool-POFy076i.mjs} +17 -17
- package/dist/ScreenShotTool-CcUyU0g7.mjs +357 -0
- package/dist/{SectionTool-BMMQBnYz.mjs → SectionTool-DGjjH3JO.mjs} +51 -51
- package/dist/SettingTool-CjXfbX5r.mjs +657 -0
- package/dist/StructureTree-DdRX-y-V.mjs +1583 -0
- package/dist/{alert-iUe8hu7Z.mjs → alert-ChDNxVgQ.mjs} +9 -9
- package/dist/el-input-number-CK5d8pzH.mjs +818 -0
- package/dist/{index-DBpA3PFq.mjs → index-Dsq1epCY.mjs} +47823 -51679
- package/dist/index.html +17 -17
- package/dist/{panel.vue_vue_type_style_index_0_lang-BmLQqrQm.mjs → panel.vue_vue_type_style_index_0_lang-BaSZShh_.mjs} +3 -3
- package/dist/style.css +1 -1
- package/dist/{tallPanel-CgR65rDU.mjs → tallPanel-DKlcFjrl.mjs} +15 -15
- package/package.json +2 -2
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +10 -38
- package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +22 -0
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +9 -37
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +7 -5
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +7 -5
- package/types/components/BCFComponents/BCFTool.vue.d.ts +7 -4
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +7 -5
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +6 -5
- package/types/components/BCFComponents/commentInput.vue.d.ts +10 -36
- package/types/components/BCFComponents/commentsView.vue.d.ts +7 -36
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +8 -5
- package/types/components/BCFComponents/imageView.vue.d.ts +7 -5
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +6 -5
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +1 -18
- package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +1 -32
- package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/InspectorTool.vue.d.ts +0 -2
- package/types/components/BimViewerComponents/MeasureTool.vue.d.ts +0 -2
- package/types/components/BimViewerComponents/MobileCommentsTool/{MobileCommentAdd.vue.d.ts → add.vue.d.ts} +8 -6
- package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +5 -4
- package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
- package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +1 -478
- package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +7 -499
- package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +6 -5
- package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/SectionTool.vue.d.ts +0 -4
- package/types/components/BimViewerComponents/SettingTool.vue.d.ts +6 -4
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +1 -4026
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +8 -0
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +1 -18
- package/types/components/BimxViewerComp.vue.d.ts +14 -7
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +10 -37
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +9 -37
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +7 -499
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +1 -478
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +8 -5
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +12 -38
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +9 -7
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +7 -5
- package/types/components/bimxViewer.vue.d.ts +14 -7
- package/types/components/utilsComponents/alert.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
- package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
- package/types/components/utilsComponents/loading.vue.d.ts +1 -1
- package/types/components/utilsComponents/panel.vue.d.ts +2 -8
- package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +1 -3
- package/types/components/utilsComponents/tallPanel.vue.d.ts +3 -13
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +3 -13
- package/types/pages/BimxViewerEntry.vue.d.ts +57 -5
- package/types/pages/viewerEntry.vue.d.ts +57 -7
- package/types/store/initConfigs.d.ts +1 -1
- package/types/store/toolbars.d.ts +46 -46
- package/types/tests/cmt.d.ts +1 -0
- package/dist/AnnotationTool-Dt8mr8Pv.mjs +0 -239
- package/dist/CommentTool-C7EjIHT-.mjs +0 -1521
- package/dist/ScreenShotTool-XXjP20-m.mjs +0 -500
- package/dist/SettingTool-BwYwYqNZ.mjs +0 -815
- package/dist/StructureTree-CrTd7vJp.mjs +0 -1846
- package/dist/el-input-number-BE5izksC.mjs +0 -1169
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { _ as me } from "./alert-
|
|
2
|
-
import {
|
|
3
|
-
import { E as be } from "./el-input-number-
|
|
4
|
-
import { _ as ye } from "./panel.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { defineComponent as Se, ref as v, onMounted as Ce, watch as
|
|
6
|
-
import { B as
|
|
7
|
-
const
|
|
1
|
+
import { _ as me } from "./alert-ChDNxVgQ.mjs";
|
|
2
|
+
import { n as pe, o as fe, T as F, p as w, q as z, O as d, H as he, v as ke, x as ge, y as we } from "./index-Dsq1epCY.mjs";
|
|
3
|
+
import { E as be } from "./el-input-number-CK5d8pzH.mjs";
|
|
4
|
+
import { _ as ye } from "./panel.vue_vue_type_style_index_0_lang-BaSZShh_.mjs";
|
|
5
|
+
import { defineComponent as Se, ref as v, onMounted as Ce, watch as xe, onBeforeUnmount as Ve, openBlock as s, createElementBlock as l, Fragment as B, unref as n, createBlock as Pe, withCtx as E, createElementVNode as o, toDisplayString as u, withDirectives as H, renderList as K, vShow as W, createVNode as m, normalizeClass as Te, withModifiers as Le, createTextVNode as $e } from "vue";
|
|
6
|
+
import { B as ze } from "./const-DOnRsYpZ.mjs";
|
|
7
|
+
const Be = { class: "section_panel_middle" }, Ee = { class: "section_middle_title" }, Ie = { class: "section_control_button" }, Oe = ["src"], Ae = { class: "control_buttons" }, De = ["onClick"], Me = { class: "section_panel_cont" }, Ue = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: ""
|
|
10
|
-
}, Ne = ["onClick"], Re = { class: "cont_item_left" },
|
|
10
|
+
}, Ne = ["onClick"], Re = { class: "cont_item_left" }, je = ["src", "onClick"], qe = { class: "cont_item_right" }, Fe = ["src", "onClick"], He = ["src", "onClick"], Ke = ["src", "onClick"], We = {
|
|
11
11
|
key: 1,
|
|
12
12
|
class: "empty1"
|
|
13
|
-
},
|
|
13
|
+
}, Ge = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "mobile_section_panel"
|
|
16
16
|
}, Je = { class: "slicing-title-box" }, Qe = { class: "slicing-title" }, Xe = { class: "slicing-title-icon" }, Ye = { class: "slicing-content-box" }, Ze = { class: "slicing-select-box" }, eo = { class: "select-item" }, oo = { class: "select-item-left" }, to = ["src"], io = ["src"], no = { class: "select-item-center" }, so = { class: "item-center-top" }, lo = { class: "item-center-bottom" }, co = { class: "select-item" }, ao = { class: "select-item-left" }, ro = ["src"], uo = ["src"], _o = { class: "select-item-center" }, vo = { class: "item-center-top" }, mo = { class: "item-center-bottom" }, po = { class: "select-item" }, fo = { class: "select-item-left" }, ho = ["src"], ko = ["src"], go = { class: "select-item-center" }, wo = { class: "item-center-top" }, bo = { class: "item-center-bottom" }, yo = /* @__PURE__ */ Se({
|
|
17
17
|
__name: "SectionTool",
|
|
18
|
-
props: ["componentId"
|
|
19
|
-
emits: ["closePanel"
|
|
20
|
-
setup(
|
|
21
|
-
const _ = pe(), I = fe(),
|
|
18
|
+
props: ["componentId"],
|
|
19
|
+
emits: ["closePanel"],
|
|
20
|
+
setup(G, { emit: J }) {
|
|
21
|
+
const _ = pe(), I = fe(), O = G, V = v(0);
|
|
22
22
|
Ce(() => {
|
|
23
|
-
I.setReadyById(
|
|
23
|
+
I.setReadyById(O.componentId), F.currentTheme == "blue" ? V.value = 240 : F.currentTheme == "light-gray" && (V.value = 202), document.addEventListener("click", A);
|
|
24
24
|
});
|
|
25
|
-
const
|
|
25
|
+
const A = (e) => {
|
|
26
26
|
y.value && e.target.id != "controlOperatePanel" && M(!1);
|
|
27
|
-
},
|
|
27
|
+
}, D = v(!0), b = v(!1), r = v(), f = v(), y = v(!1), M = (e) => {
|
|
28
28
|
y.value = e;
|
|
29
29
|
};
|
|
30
30
|
let a, S;
|
|
31
31
|
const Q = J;
|
|
32
|
-
|
|
33
|
-
() => I.isToolActive(
|
|
32
|
+
xe(
|
|
33
|
+
() => I.isToolActive(O.componentId),
|
|
34
34
|
(e) => {
|
|
35
35
|
w("isMobile") && (e ? (g(h.value.direction), document.addEventListener("touchmove", N)) : document.removeEventListener("touchmove", N));
|
|
36
36
|
}
|
|
@@ -49,8 +49,8 @@ const ze = { class: "section_panel_middle" }, Ee = { class: "section_middle_titl
|
|
|
49
49
|
P = !1;
|
|
50
50
|
}));
|
|
51
51
|
};
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
z.on("BimViewer", U), Ve(() => {
|
|
53
|
+
z.off("BimViewer", U), document.removeEventListener("click", A);
|
|
54
54
|
});
|
|
55
55
|
const N = () => {
|
|
56
56
|
P && X();
|
|
@@ -87,21 +87,21 @@ const ze = { class: "section_panel_middle" }, Ee = { class: "section_middle_titl
|
|
|
87
87
|
break;
|
|
88
88
|
}
|
|
89
89
|
}, R = () => {
|
|
90
|
-
a.setActive(!1), Q("closePanel"),
|
|
90
|
+
a.setActive(!1), Q("closePanel"), z.emit("hideToolbar", !1);
|
|
91
91
|
}, Y = (e) => {
|
|
92
92
|
f.value !== e.id && (f.value = e.id, b.value = !1, C(), T(e.id));
|
|
93
93
|
}, Z = (e) => {
|
|
94
94
|
C(), e.isLook = !e.isLook, e.isLook ? (e.isLook = !0, te(e.id)) : ie(e.id), T(f.value);
|
|
95
95
|
}, T = (e) => {
|
|
96
96
|
a.showSectionPlane(e);
|
|
97
|
-
},
|
|
97
|
+
}, j = (e) => {
|
|
98
98
|
if (r.value)
|
|
99
99
|
for (let t = 0; t < r.value.length; t++)
|
|
100
100
|
r.value[t].isLook = e;
|
|
101
101
|
}, ee = (e, t) => {
|
|
102
102
|
for (let p = 0; p < r.value.length; p++)
|
|
103
103
|
e == r.value[p].id && (r.value[p].isLook = t);
|
|
104
|
-
},
|
|
104
|
+
}, q = (e) => {
|
|
105
105
|
e.directionLeft = !e.directionLeft, ce(e.id);
|
|
106
106
|
}, oe = (e) => {
|
|
107
107
|
a.destroySectionPlane(e), r.value = r.value.filter((t) => t.id !== e);
|
|
@@ -110,9 +110,9 @@ const ze = { class: "section_panel_middle" }, Ee = { class: "section_middle_titl
|
|
|
110
110
|
}, ie = (e) => {
|
|
111
111
|
a.setSectionDisable(e);
|
|
112
112
|
}, ne = () => {
|
|
113
|
-
|
|
113
|
+
j(!0), a.enableSections(), a.showControl(), b.value = !0;
|
|
114
114
|
}, se = () => {
|
|
115
|
-
|
|
115
|
+
j(!1), a.disableSections(), b.value = !1, f.value = "";
|
|
116
116
|
}, le = (e) => {
|
|
117
117
|
e.id === 0 ? (re(), r.value = []) : e.id === 1 ? de() : e.id === 2 ? ne() : e.id === 4 && (se(), C());
|
|
118
118
|
}, ce = (e) => {
|
|
@@ -125,9 +125,9 @@ const ze = { class: "section_panel_middle" }, Ee = { class: "section_middle_titl
|
|
|
125
125
|
a.hideControl();
|
|
126
126
|
};
|
|
127
127
|
return (e, t) => {
|
|
128
|
-
const p =
|
|
129
|
-
return s(), l(
|
|
130
|
-
n(w)("isMobile") ? (s(), l("div",
|
|
128
|
+
const p = ke, ue = ye, _e = ge, L = be, ve = me;
|
|
129
|
+
return s(), l(B, null, [
|
|
130
|
+
n(w)("isMobile") ? (s(), l("div", Ge, [
|
|
131
131
|
o("div", Je, [
|
|
132
132
|
o("div", Qe, u(n(_)("toolbar.section")), 1),
|
|
133
133
|
o("div", Xe, [
|
|
@@ -240,27 +240,27 @@ const ze = { class: "section_panel_middle" }, Ee = { class: "section_middle_titl
|
|
|
240
240
|
])) : (s(), Pe(ue, {
|
|
241
241
|
key: 0,
|
|
242
242
|
class: "section_panel",
|
|
243
|
-
width:
|
|
243
|
+
width: V.value,
|
|
244
244
|
panelTitle: n(_)("toolbar.section"),
|
|
245
245
|
"click-handle": R
|
|
246
246
|
}, {
|
|
247
247
|
default: E(() => [
|
|
248
|
-
o("div",
|
|
248
|
+
o("div", Be, [
|
|
249
249
|
o("div", Ee, u(n(_)("section.allSections")), 1),
|
|
250
250
|
o("div", Ie, [
|
|
251
251
|
o("img", {
|
|
252
252
|
id: "controlOperatePanel",
|
|
253
253
|
src: n(d) + "/bim-viewer/slicing-more.png",
|
|
254
254
|
onClick: t[0] || (t[0] = (i) => M(!y.value))
|
|
255
|
-
}, null, 8,
|
|
256
|
-
|
|
257
|
-
(s(!0), l(
|
|
255
|
+
}, null, 8, Oe),
|
|
256
|
+
H(o("div", Ae, [
|
|
257
|
+
(s(!0), l(B, null, K(n(ze), (i) => (s(), l("div", {
|
|
258
258
|
key: i.id,
|
|
259
259
|
class: "operation_button",
|
|
260
|
-
onClick: (
|
|
260
|
+
onClick: ($) => le(i)
|
|
261
261
|
}, [
|
|
262
262
|
o("span", null, u(n(_)(i.name)), 1)
|
|
263
|
-
], 8,
|
|
263
|
+
], 8, De))), 128))
|
|
264
264
|
], 512), [
|
|
265
265
|
[W, y.value]
|
|
266
266
|
])
|
|
@@ -270,40 +270,40 @@ const ze = { class: "section_panel_middle" }, Ee = { class: "section_middle_titl
|
|
|
270
270
|
m(p, { height: "360px" }, {
|
|
271
271
|
default: E(() => [
|
|
272
272
|
r.value && r.value.length ? (s(), l("div", Ue, [
|
|
273
|
-
(s(!0), l(
|
|
274
|
-
key:
|
|
273
|
+
(s(!0), l(B, null, K(r.value, (i, $) => (s(), l("div", {
|
|
274
|
+
key: $,
|
|
275
275
|
class: Te(["panel_cont_item", { panel_cont_item_choose: f.value === i.id || b.value }]),
|
|
276
|
-
onClick: (
|
|
276
|
+
onClick: (x) => Y(i)
|
|
277
277
|
}, [
|
|
278
278
|
o("div", Re, [
|
|
279
279
|
o("img", {
|
|
280
280
|
src: `${n(d)}/bim-viewer/${i.isLook ? "section_look_icon.png" : "section_unlook_icon.png"}`,
|
|
281
281
|
alt: "",
|
|
282
|
-
onClick:
|
|
283
|
-
}, null, 8,
|
|
284
|
-
|
|
282
|
+
onClick: Le((x) => Z(i), ["stop"])
|
|
283
|
+
}, null, 8, je),
|
|
284
|
+
$e(" " + u(n(_)("section.sectionPrefix") + ($ + 1)), 1)
|
|
285
285
|
]),
|
|
286
|
-
o("div",
|
|
286
|
+
o("div", qe, [
|
|
287
287
|
i.directionLeft ? (s(), l("img", {
|
|
288
288
|
key: 0,
|
|
289
289
|
src: n(d) + "/bim-viewer/left_section_icon.png",
|
|
290
290
|
alt: "",
|
|
291
|
-
onClick: (
|
|
291
|
+
onClick: (x) => q(i)
|
|
292
292
|
}, null, 8, Fe)) : (s(), l("img", {
|
|
293
293
|
key: 1,
|
|
294
294
|
src: n(d) + "/bim-viewer/right_section_icon.png",
|
|
295
295
|
alt: "",
|
|
296
|
-
onClick: (
|
|
297
|
-
}, null, 8,
|
|
296
|
+
onClick: (x) => q(i)
|
|
297
|
+
}, null, 8, He)),
|
|
298
298
|
o("img", {
|
|
299
299
|
src: n(d) + "/bim-viewer/section_del_icon.png",
|
|
300
300
|
alt: "",
|
|
301
|
-
onClick: (
|
|
301
|
+
onClick: (x) => oe(i.id)
|
|
302
302
|
}, null, 8, Ke)
|
|
303
303
|
])
|
|
304
304
|
], 10, Ne))), 128))
|
|
305
305
|
])) : (s(), l("div", We, [
|
|
306
|
-
m(
|
|
306
|
+
m(he, {
|
|
307
307
|
title: n(_)("common.noData"),
|
|
308
308
|
type: "model"
|
|
309
309
|
}, null, 8, ["title"])
|
|
@@ -315,17 +315,17 @@ const ze = { class: "section_panel_middle" }, Ee = { class: "section_middle_titl
|
|
|
315
315
|
]),
|
|
316
316
|
_: 1
|
|
317
317
|
}, 8, ["width", "panelTitle"])),
|
|
318
|
-
|
|
318
|
+
H(m(ve, {
|
|
319
319
|
"click-handle": () => {
|
|
320
|
-
|
|
320
|
+
D.value = !1;
|
|
321
321
|
}
|
|
322
322
|
}, null, 8, ["click-handle"]), [
|
|
323
|
-
[W,
|
|
323
|
+
[W, D.value && !n(w)("isMobile")]
|
|
324
324
|
])
|
|
325
325
|
], 64);
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
}), Lo = /* @__PURE__ */ we(yo, [["__scopeId", "data-v-
|
|
328
|
+
}), Lo = /* @__PURE__ */ we(yo, [["__scopeId", "data-v-f710e44a"]]);
|
|
329
329
|
export {
|
|
330
330
|
Lo as default
|
|
331
331
|
};
|