@xtctwins/tctwins-bimx-engine 0.1.31 → 0.1.32
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-jGajgXNq.mjs → AnnotationTool-CfMit8eM.mjs} +58 -58
- package/dist/BIMX_Viewer_Lib.es.js +3 -3
- package/dist/BIMX_Viewer_Lib.umd.js +76 -76
- package/dist/{CommentTool-DsAlcuHl.mjs → CommentTool-BJYJeffo.mjs} +2 -2
- package/dist/{HiddenTool-BNxMpI7o.mjs → HiddenTool-BgbTVLhk.mjs} +5 -5
- package/dist/{InspectorTool-BKnVjOAu.mjs → InspectorTool-Dgus7mgF.mjs} +7 -6
- package/dist/{MeasureTool-ZYmlWp8m.mjs → MeasureTool-BKjP7zrG.mjs} +6 -6
- package/dist/{NavigateTool-BfyeIfXq.mjs → NavigateTool-DjdYFnJq.mjs} +1 -1
- package/dist/{RoamTool-NNCUKTEn.mjs → RoamTool-DY8KyZ8L.mjs} +20 -20
- package/dist/{ScreenShotTool-jIZymeSL.mjs → ScreenShotTool-4_dRLxGx.mjs} +34 -34
- package/dist/SectionTool-CObrUitM.mjs +340 -0
- package/dist/{SettingTool-Dbe9jFh4.mjs → SettingTool-Cg4RN1U0.mjs} +46 -46
- package/dist/{StructureTree-Di00YFmN.mjs → StructureTree-CKph8cdh.mjs} +286 -282
- package/dist/{alert-Dg_uUvKd.mjs → alert-WwAkBaRF.mjs} +2 -2
- package/dist/{closeButton-DD5OvRul.mjs → closeButton-C--nnYmX.mjs} +1 -1
- package/dist/{debounce-DLxH9q8J.mjs → debounce-CXxNtwtj.mjs} +20 -20
- package/dist/{el-checkbox-VmHzNip_.mjs → el-checkbox-Ces1rpT9.mjs} +55 -55
- package/dist/{el-input-BZ52J7Uq.mjs → el-input-C7snoyFg.mjs} +59 -59
- package/dist/{el-input-number-Bp8w-G8y.mjs → el-input-number-DbwjDcQE.mjs} +106 -106
- package/dist/{index-56Bi3F2K.mjs → index-BVUSmk0x.mjs} +1 -1
- package/dist/{index-DPMZSNN1.mjs → index-DDv9J2JJ.mjs} +3 -3
- package/dist/{index-Cm1Hr3ea.mjs → index-ZAHHrX8X.mjs} +5295 -5291
- package/dist/{isEqual-DTuVRuft.mjs → isEqual-DkXb_qsa.mjs} +17 -17
- package/dist/{panel.vue_vue_type_style_index_0_lang-D6trmAf_.mjs → panel.vue_vue_type_style_index_0_lang-B7581-aE.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dist/{tallPanel-D24muulZ.mjs → tallPanel-CebzkAP3.mjs} +2 -2
- package/package.json +2 -2
- package/types/components/bimxViewer.vue.d.ts +2 -0
- package/types/pages/viewerEntry.vue.d.ts +2 -0
- package/types/store/themeManager.d.ts +1 -0
- package/dist/SectionTool-BHymJnTB.mjs +0 -338
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { j as
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { A } from "./const-CbUmfuHy.mjs";
|
|
5
|
-
const
|
|
1
|
+
import { _ as W } from "./alert-WwAkBaRF.mjs";
|
|
2
|
+
import { j as X, k as r, m as L, O as a, n as D, o as O } from "./index-ZAHHrX8X.mjs";
|
|
3
|
+
import { defineComponent as H, ref as p, onMounted as q, openBlock as e, createElementBlock as i, unref as s, createCommentVNode as v, createElementVNode as t, Fragment as h, renderList as f, normalizeClass as A, createVNode as k, withCtx as P, toDisplayString as R, withDirectives as j, vShow as z, pushScopeId as F, popScopeId as U } from "vue";
|
|
4
|
+
import { A as I } from "./const-CbUmfuHy.mjs";
|
|
5
|
+
const G = (l) => (F("data-v-c55bcb33"), l = l(), U(), l), J = { class: "annotation_component" }, K = {
|
|
6
6
|
key: 0,
|
|
7
7
|
id: "annotation_toolbar",
|
|
8
8
|
class: "annotation_toolbar"
|
|
9
|
-
},
|
|
9
|
+
}, Q = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "toolbar_trangle"
|
|
12
|
-
},
|
|
12
|
+
}, Y = { class: "annotation_toolbar_wrapper" }, Z = { class: "annotation_toolbar_group" }, oo = ["id", "onClick"], no = ["src"], to = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "toolbar_trangle"
|
|
15
|
-
},
|
|
15
|
+
}, eo = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "mobile_annotation_toolbar"
|
|
18
|
-
},
|
|
18
|
+
}, io = /* @__PURE__ */ G(() => /* @__PURE__ */ t("div", { class: "label-title-box" }, [
|
|
19
19
|
/* @__PURE__ */ t("div", { class: "label-title" }, "标注")
|
|
20
|
-
], -1)),
|
|
20
|
+
], -1)), ao = { class: "label-list" }, so = ["onClick"], co = { class: "item-img" }, lo = ["src"], ro = ["src"], _o = { class: "item-name" }, mo = /* @__PURE__ */ H({
|
|
21
21
|
__name: "AnnotationTool",
|
|
22
22
|
props: ["componentId"],
|
|
23
23
|
emits: ["uploadImage", "clickAnnotation", "emitHandler"],
|
|
24
|
-
setup(l, { emit:
|
|
25
|
-
const
|
|
26
|
-
|
|
24
|
+
setup(l, { emit: B }) {
|
|
25
|
+
const V = X(), y = B, _ = (o) => {
|
|
26
|
+
y("emitHandler", o);
|
|
27
27
|
};
|
|
28
|
-
let
|
|
29
|
-
const
|
|
28
|
+
let b;
|
|
29
|
+
const g = p(!0), c = p("");
|
|
30
30
|
let d;
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
const C = p(), S = l;
|
|
32
|
+
q(() => {
|
|
33
|
+
C.value = r("annoLimit"), V.setReadyById(S.componentId);
|
|
34
34
|
});
|
|
35
|
-
const
|
|
35
|
+
const $ = {
|
|
36
36
|
image: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/image_active.png`,
|
|
37
37
|
file: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/file_active.png`,
|
|
38
38
|
record: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/record_active.png`,
|
|
39
39
|
text: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/text_active.png`,
|
|
40
40
|
video: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/video_active.png`
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
L.on("BimViewer", () => {
|
|
43
|
+
b = window.BimViewer.annotationTool, b.setTypeImage($), d = window.BimViewer.eventTrigger, d.on("createAnnotation", (o) => {
|
|
44
44
|
_({
|
|
45
45
|
isTool: !0,
|
|
46
46
|
event_target: "AnnotationTool",
|
|
@@ -70,82 +70,82 @@ const U = (l) => (z("data-v-55b90808"), l = l(), F(), l), G = { class: "annotati
|
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
|
-
const
|
|
74
|
-
c.value === o.code ? c.value = ""
|
|
75
|
-
},
|
|
73
|
+
const T = (o) => {
|
|
74
|
+
c.value === o.code ? (c.value = "", w(o, !1)) : (c.value = o.code, w(o, !0));
|
|
75
|
+
}, M = (o) => {
|
|
76
76
|
window.BimViewer.annotationTool.setEnabled(o);
|
|
77
|
-
},
|
|
78
|
-
|
|
77
|
+
}, w = (o, u) => {
|
|
78
|
+
M(u), window.BimViewer.annotationTool.setCurrentType(o.code), _({
|
|
79
79
|
isTool: !0,
|
|
80
80
|
event_target: "AnnotationTool",
|
|
81
81
|
event_name: "clickAnnoTool",
|
|
82
82
|
content: {
|
|
83
|
-
|
|
83
|
+
active: u,
|
|
84
84
|
tool_type: o.code
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
};
|
|
88
|
-
return (o,
|
|
89
|
-
const
|
|
90
|
-
return e(), i("div",
|
|
91
|
-
s(r)("isMobile") ? (e(), i("div",
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
default:
|
|
95
|
-
t("div",
|
|
96
|
-
(e(!0), i(
|
|
88
|
+
return (o, u) => {
|
|
89
|
+
const x = D, E = W;
|
|
90
|
+
return e(), i("div", J, [
|
|
91
|
+
s(r)("isMobile") ? (e(), i("div", eo, [
|
|
92
|
+
io,
|
|
93
|
+
k(x, null, {
|
|
94
|
+
default: P(() => [
|
|
95
|
+
t("div", ao, [
|
|
96
|
+
(e(!0), i(h, null, f(s(I), (n, m) => (e(), i("div", {
|
|
97
97
|
key: m,
|
|
98
|
-
class:
|
|
99
|
-
onClick: (
|
|
98
|
+
class: A(["label-item", { "label-item-active": c.value === n.code }]),
|
|
99
|
+
onClick: (N) => T(n)
|
|
100
100
|
}, [
|
|
101
|
-
t("div",
|
|
101
|
+
t("div", co, [
|
|
102
102
|
t("img", {
|
|
103
103
|
class: "label-item-img",
|
|
104
104
|
src: s(a) + `/bim-viewer/label-bar/${c.value === n.code ? n.imgActive : n.img}.svg`,
|
|
105
105
|
alt: ""
|
|
106
|
-
}, null, 8,
|
|
106
|
+
}, null, 8, lo),
|
|
107
107
|
t("img", {
|
|
108
108
|
class: "label-item-icon",
|
|
109
109
|
src: s(a) + "/member-images/open-member-icon.png",
|
|
110
110
|
alt: ""
|
|
111
|
-
}, null, 8,
|
|
111
|
+
}, null, 8, ro)
|
|
112
112
|
]),
|
|
113
|
-
t("div",
|
|
114
|
-
], 10,
|
|
113
|
+
t("div", _o, R(n.name), 1)
|
|
114
|
+
], 10, so))), 128))
|
|
115
115
|
])
|
|
116
116
|
]),
|
|
117
117
|
_: 1
|
|
118
118
|
})
|
|
119
|
-
])) : (e(), i("div",
|
|
120
|
-
s(r)("annotationPos").pos.includes("top") ? (e(), i("div",
|
|
121
|
-
t("div",
|
|
122
|
-
t("div",
|
|
123
|
-
(e(!0), i(
|
|
119
|
+
])) : (e(), i("div", K, [
|
|
120
|
+
s(r)("annotationPos").pos.includes("top") ? (e(), i("div", Q)) : v("", !0),
|
|
121
|
+
t("div", Y, [
|
|
122
|
+
t("div", Z, [
|
|
123
|
+
(e(!0), i(h, null, f(s(I), (n, m) => (e(), i("button", {
|
|
124
124
|
id: `annotation_tool_btn_${m}`,
|
|
125
125
|
key: m,
|
|
126
|
-
class:
|
|
127
|
-
onClick: (
|
|
126
|
+
class: A(["annotation_tool_btn", { active: c.value === n.code }]),
|
|
127
|
+
onClick: (N) => T(n)
|
|
128
128
|
}, [
|
|
129
|
-
|
|
129
|
+
v("", !0),
|
|
130
130
|
t("img", {
|
|
131
131
|
src: `${s(a)}/BIMX_Website/main/mainView/function_icon/annotation_icons/${c.value !== n.code ? n.img : n.img_active}.png`
|
|
132
|
-
}, null, 8,
|
|
133
|
-
], 10,
|
|
132
|
+
}, null, 8, no)
|
|
133
|
+
], 10, oo))), 128))
|
|
134
134
|
])
|
|
135
135
|
]),
|
|
136
|
-
s(r)("annotationPos").pos.includes("bottom") ? (e(), i("div",
|
|
136
|
+
s(r)("annotationPos").pos.includes("bottom") ? (e(), i("div", to)) : v("", !0)
|
|
137
137
|
])),
|
|
138
|
-
|
|
138
|
+
j(k(E, {
|
|
139
139
|
"click-handle": () => {
|
|
140
|
-
|
|
140
|
+
g.value = !1;
|
|
141
141
|
}
|
|
142
142
|
}, null, 8, ["click-handle"]), [
|
|
143
|
-
[
|
|
143
|
+
[z, g.value]
|
|
144
144
|
])
|
|
145
145
|
]);
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
}), go = /* @__PURE__ */
|
|
148
|
+
}), go = /* @__PURE__ */ O(mo, [["__scopeId", "data-v-c55bcb33"]]);
|
|
149
149
|
export {
|
|
150
150
|
go as default
|
|
151
151
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { am as e, B as o, an as t, ap as i, V as l, as as r, ao as n, aq as I, ar as B } from "./index-ZAHHrX8X.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as BIMXViewer,
|
|
4
4
|
o as BIMX_CONFIGS,
|
|
5
5
|
t as InitialViewer,
|
|
6
6
|
i as InitializeConfigs,
|
|
7
7
|
l as ViewerManager,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
r as setAllToolClose,
|
|
9
|
+
n as setConfigs,
|
|
10
10
|
I as setToolStatusById,
|
|
11
11
|
B as setToolStatusBykey
|
|
12
12
|
};
|