@xtctwins/tctwins-bimx-engine 0.1.15 → 0.1.17
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-w1znQ9c0.mjs → AnnotationTool-LBk_zlbT.mjs} +42 -42
- package/dist/BIMX_Viewer_Lib.es.js +9 -6
- package/dist/BIMX_Viewer_Lib.umd.js +96 -96
- package/dist/{CommentTool-DTTmhwOG.mjs → CommentTool-CYAdfH-Z.mjs} +12 -12
- package/dist/{HiddenTool-BmKn1dH1.mjs → HiddenTool-CzSvLkSE.mjs} +10 -10
- package/dist/InspectorTool-B9LkJGw9.mjs +467 -0
- package/dist/MeasureTool-DO506ZES.mjs +1555 -0
- package/dist/{NavigateTool-Ci4d-lOz.mjs → NavigateTool-Dg9wW_DO.mjs} +1 -1
- package/dist/{RoamTool-BcM4lkFj.mjs → RoamTool-DnYvCb5C.mjs} +6 -6
- package/dist/ScreenShotTool-CIaHcPfg.mjs +366 -0
- package/dist/SectionTool-BItYZLga.mjs +630 -0
- package/dist/SettingTool-BrwvtIf3.mjs +555 -0
- package/dist/{StructureTree-CNvvzLdD.mjs → StructureTree-ZqUEU0NH.mjs} +639 -642
- package/dist/{debounce-DoIgJPqA.mjs → debounce-9O5797WW.mjs} +1 -1
- package/dist/{el-checkbox-CfYBnAPi.mjs → el-checkbox-vqvrZh0l.mjs} +3 -3
- package/dist/{el-input-Dcmi-IP_.mjs → el-input-D_XVZQZR.mjs} +1 -1
- package/dist/{el-input-number-DKX1TW68.mjs → el-input-number-D8B4ujnE.mjs} +4 -4
- package/dist/{index-BH7B5Xaz.mjs → index-BCf_dMO3.mjs} +1 -1
- package/dist/{index-DuvoBTOs.mjs → index-Ca52zSYT.mjs} +7062 -7029
- package/dist/{isEqual-BjHgN6ug.mjs → isEqual-CtB7HmIJ.mjs} +1 -1
- package/dist/panel.vue_vue_type_style_index_0_scope_true_lang-Bj8xwuFm.mjs +90 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/types/components/utilsComponents/panel.vue.d.ts +41 -0
- package/types/index.d.ts +25 -8
- package/types/initial/viewerInitial.d.ts +7 -0
- package/types/pages/BIMXViewer.vue.d.ts +4 -0
- package/types/store/initConfigs.d.ts +8 -2
- package/types/store/toolbars.d.ts +164 -14
- package/dist/InspectorTool-DQVMdARJ.mjs +0 -471
- package/dist/MeasureTool-w4RrnCPn.mjs +0 -1556
- package/dist/ScreenShotTool-TYsxUCiF.mjs +0 -367
- package/dist/SectionTool-DhqfEaAJ.mjs +0 -629
- package/dist/SettingTool-DAD-G_XU.mjs +0 -544
- package/dist/closeButton.vue_vue_type_style_index_0_scope_true_lang-BxvdbhQ0.mjs +0 -41
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { p as M, q as
|
|
2
|
-
import { defineComponent as W, ref as
|
|
1
|
+
import { p as M, q as d, s as x, O as t, v as E, x as N } from "./index-Ca52zSYT.mjs";
|
|
2
|
+
import { defineComponent as W, ref as g, onMounted as X, watch as L, openBlock as a, createElementBlock as s, unref as c, createElementVNode as e, Fragment as b, renderList as w, normalizeClass as T, createCommentVNode as O, createVNode as q, withCtx as D, toDisplayString as H, pushScopeId as R, popScopeId as z } from "vue";
|
|
3
3
|
import { A as f } from "./const-CbUmfuHy.mjs";
|
|
4
|
-
const A = (l) => (R("data-v-
|
|
4
|
+
const A = (l) => (R("data-v-0fee3248"), l = l(), z(), l), F = { class: "annotation_component" }, U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
id: "annotation_toolbar",
|
|
7
7
|
class: "annotation_toolbar"
|
|
8
|
-
}, j = { class: "annotation_toolbar_wrapper" }, G = { class: "annotation_toolbar_group" }, J = ["id", "onClick"], K = ["src"], P = /* @__PURE__ */ A(() => /* @__PURE__ */
|
|
8
|
+
}, j = { class: "annotation_toolbar_wrapper" }, G = { class: "annotation_toolbar_group" }, J = ["id", "onClick"], K = ["src"], P = /* @__PURE__ */ A(() => /* @__PURE__ */ e("div", { class: "toolbar_trangle" }, null, -1)), Q = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "mobile_annotation_toolbar"
|
|
11
|
-
}, Y = /* @__PURE__ */ A(() => /* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
], -1)), Z = { class: "label-list" }, nn = ["onClick"], on = { class: "item-img" },
|
|
11
|
+
}, Y = /* @__PURE__ */ A(() => /* @__PURE__ */ e("div", { class: "label-title-box" }, [
|
|
12
|
+
/* @__PURE__ */ e("div", { class: "label-title" }, "标注")
|
|
13
|
+
], -1)), Z = { class: "label-list" }, nn = ["onClick"], on = { class: "item-img" }, en = ["src"], tn = ["src"], an = { class: "item-name" }, sn = /* @__PURE__ */ W({
|
|
14
14
|
__name: "AnnotationTool",
|
|
15
15
|
props: ["componentInfo"],
|
|
16
16
|
emits: ["uploadImage", "clickAnnotation", "emitHandler"],
|
|
@@ -19,20 +19,20 @@ const A = (l) => (R("data-v-4bd9a5d3"), l = l(), z(), l), F = { class: "annotati
|
|
|
19
19
|
B("emitHandler", n);
|
|
20
20
|
};
|
|
21
21
|
let u;
|
|
22
|
-
const i =
|
|
22
|
+
const i = g("");
|
|
23
23
|
let _;
|
|
24
|
-
const V =
|
|
24
|
+
const V = g(), v = l;
|
|
25
25
|
X(() => {
|
|
26
|
-
V.value =
|
|
27
|
-
}), L(
|
|
28
|
-
n.componentInfo.
|
|
26
|
+
V.value = d("annoLimit"), I.setReadyById(v.componentInfo.id);
|
|
27
|
+
}), L(v, (n) => {
|
|
28
|
+
n.componentInfo.isActive ? window.BimViewer.SetAnnotationToolActive(!0) : window.BimViewer.SetAnnotationToolActive(!1);
|
|
29
29
|
});
|
|
30
30
|
let k = {
|
|
31
|
-
image: `${
|
|
32
|
-
file: `${
|
|
33
|
-
record: `${
|
|
34
|
-
text: `${
|
|
35
|
-
video: `${
|
|
31
|
+
image: `${t}/BIMX_Website/main/mainView/function_icon/annotation_icons/image_active.png`,
|
|
32
|
+
file: `${t}/BIMX_Website/main/mainView/function_icon/annotation_icons/file_active.png`,
|
|
33
|
+
record: `${t}/BIMX_Website/main/mainView/function_icon/annotation_icons/record_active.png`,
|
|
34
|
+
text: `${t}/BIMX_Website/main/mainView/function_icon/annotation_icons/text_active.png`,
|
|
35
|
+
video: `${t}/BIMX_Website/main/mainView/function_icon/annotation_icons/video_active.png`
|
|
36
36
|
};
|
|
37
37
|
x.on("BimViewer", () => {
|
|
38
38
|
u = window.BimViewer.annotationTool, u.setTypeImage(k), _ = window.BimViewer.eventTrigger, _.on("createAnnotation", (n) => {
|
|
@@ -53,7 +53,7 @@ const A = (l) => (R("data-v-4bd9a5d3"), l = l(), z(), l), F = { class: "annotati
|
|
|
53
53
|
targetAnno: n
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
}),
|
|
56
|
+
}), d("isMobile") || _.on("requestDeleteMarker", (n) => {
|
|
57
57
|
r({
|
|
58
58
|
isTool: !0,
|
|
59
59
|
event_target: "AnnotationTool",
|
|
@@ -65,7 +65,7 @@ const A = (l) => (R("data-v-4bd9a5d3"), l = l(), z(), l), F = { class: "annotati
|
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
|
-
const
|
|
68
|
+
const p = (n) => {
|
|
69
69
|
i.value === n.code ? i.value = "" : (S(n), i.value = n.code);
|
|
70
70
|
}, C = (n) => {
|
|
71
71
|
window.BimViewer.annotationTool.setEnabled(n);
|
|
@@ -83,46 +83,46 @@ const A = (l) => (R("data-v-4bd9a5d3"), l = l(), z(), l), F = { class: "annotati
|
|
|
83
83
|
return (n, cn) => {
|
|
84
84
|
const y = E;
|
|
85
85
|
return a(), s("div", F, [
|
|
86
|
-
c(
|
|
86
|
+
c(d)("isMobile") ? (a(), s("div", Q, [
|
|
87
87
|
Y,
|
|
88
88
|
q(y, null, {
|
|
89
89
|
default: D(() => [
|
|
90
|
-
|
|
91
|
-
(a(!0), s(
|
|
92
|
-
key:
|
|
90
|
+
e("div", Z, [
|
|
91
|
+
(a(!0), s(b, null, w(c(f), (o, m) => (a(), s("div", {
|
|
92
|
+
key: m,
|
|
93
93
|
class: T(["label-item", { "label-item-active": i.value === o.code }]),
|
|
94
|
-
onClick: ($) =>
|
|
94
|
+
onClick: ($) => p(o)
|
|
95
95
|
}, [
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
e("div", on, [
|
|
97
|
+
e("img", {
|
|
98
98
|
class: "label-item-img",
|
|
99
|
-
src: c(
|
|
99
|
+
src: c(t) + `/bim-viewer/label-bar/${i.value === o.code ? o.imgActive : o.img}.svg`,
|
|
100
100
|
alt: ""
|
|
101
|
-
}, null, 8,
|
|
102
|
-
|
|
101
|
+
}, null, 8, en),
|
|
102
|
+
e("img", {
|
|
103
103
|
class: "label-item-icon",
|
|
104
|
-
src: c(
|
|
104
|
+
src: c(t) + "/member-images/open-member-icon.png",
|
|
105
105
|
alt: ""
|
|
106
|
-
}, null, 8,
|
|
106
|
+
}, null, 8, tn)
|
|
107
107
|
]),
|
|
108
|
-
|
|
108
|
+
e("div", an, H(o.name), 1)
|
|
109
109
|
], 10, nn))), 128))
|
|
110
110
|
])
|
|
111
111
|
]),
|
|
112
112
|
_: 1
|
|
113
113
|
})
|
|
114
114
|
])) : (a(), s("div", U, [
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
(a(!0), s(
|
|
118
|
-
id: `annotation_tool_btn_${
|
|
119
|
-
key:
|
|
115
|
+
e("div", j, [
|
|
116
|
+
e("div", G, [
|
|
117
|
+
(a(!0), s(b, null, w(c(f), (o, m) => (a(), s("button", {
|
|
118
|
+
id: `annotation_tool_btn_${m}`,
|
|
119
|
+
key: m,
|
|
120
120
|
class: T(["annotation_tool_btn", { active: i.value === o.code }]),
|
|
121
|
-
onClick: ($) =>
|
|
121
|
+
onClick: ($) => p(o)
|
|
122
122
|
}, [
|
|
123
123
|
O("", !0),
|
|
124
|
-
|
|
125
|
-
src: `${c(
|
|
124
|
+
e("img", {
|
|
125
|
+
src: `${c(t)}/BIMX_Website/main/mainView/function_icon/annotation_icons/${i.value !== o.code ? o.img : o.img_active}.png`
|
|
126
126
|
}, null, 8, K)
|
|
127
127
|
], 10, J))), 128))
|
|
128
128
|
])
|
|
@@ -132,7 +132,7 @@ const A = (l) => (R("data-v-4bd9a5d3"), l = l(), z(), l), F = { class: "annotati
|
|
|
132
132
|
]);
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
}),
|
|
135
|
+
}), mn = /* @__PURE__ */ N(sn, [["__scopeId", "data-v-0fee3248"]]);
|
|
136
136
|
export {
|
|
137
|
-
|
|
137
|
+
mn as default
|
|
138
138
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { am as
|
|
1
|
+
import { am as e, y as o, an as t, ap as i, as as l, ao as I, aq as n, ar as r } from "./index-Ca52zSYT.mjs";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
e as BIMXViewer,
|
|
4
|
+
o as BIMX_CONFIGS,
|
|
5
|
+
t as InitialViewer,
|
|
6
|
+
i as InitializeConfigs,
|
|
7
|
+
l as setAllToolClose,
|
|
8
|
+
I as setConfigs,
|
|
9
|
+
n as setToolStatusById,
|
|
10
|
+
r as setToolStatusBykey
|
|
8
11
|
};
|