@xtctwins/tctwins-bimx-engine 0.3.8 → 0.3.9
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-DgppLcwx.mjs → AnnotationTool-BN1cQJZT.mjs} +32 -32
- package/dist/BIMX_Viewer_Lib.es.js +4 -4
- package/dist/BIMX_Viewer_Lib.umd.js +211 -161
- package/dist/{CameraViewTool-BReDlFEv.mjs → CameraViewTool-DoHrCSBa.mjs} +36 -36
- package/dist/{CommentTool-D6DWQCa5.mjs → CommentTool-DzpiIRq5.mjs} +137 -137
- package/dist/{HiddenTool-B8rcAH0z.mjs → HiddenTool-DKl-Td4d.mjs} +14 -14
- package/dist/{InspectorTool-WZToT3N-.mjs → InspectorTool-ButMlfJZ.mjs} +12 -12
- package/dist/{MeasureTool-DIHDiSpu.mjs → MeasureTool-HA7KurNk.mjs} +57 -57
- package/dist/{MouseTool-DgV53G0A.mjs → MouseTool-Cx7FUkja.mjs} +12 -12
- package/dist/{NavigateTool-8DMKaXiT.mjs → NavigateTool-CHspxjfw.mjs} +3 -3
- package/dist/{RoamTool-CyvTgXrr.mjs → RoamTool-CvErAJ4s.mjs} +15 -15
- package/dist/ScreenShotTool-BKFYnVZ5.mjs +430 -0
- package/dist/{SectionTool-DfjGtjao.mjs → SectionTool-Dc_qndpy.mjs} +60 -60
- package/dist/SettingTool-BYVwI27m.mjs +695 -0
- package/dist/StructureTree-CNrEg0TP.mjs +1686 -0
- package/dist/{alert-DRz67LTB.mjs → alert-BE0cXifr.mjs} +6 -6
- package/dist/el-slider-D_kA0TiT.mjs +1059 -0
- package/dist/{index-Bv-246pp.mjs → index-s9bhlFsR.mjs} +63051 -61135
- package/dist/{panel.vue_vue_type_style_index_0_lang-DMkX22H2.mjs → panel.vue_vue_type_style_index_0_lang-D0m8xJuR.mjs} +1 -1
- package/dist/style.css +3 -3
- package/dist/{tallPanel-CBDkSWkE.mjs → tallPanel-C_lzWM4i.mjs} +10 -10
- package/package.json +11 -3
- package/types/App.vue.d.ts +3 -1
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +38 -10
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +37 -9
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +5 -7
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +5 -7
- package/types/components/BCFComponents/BCFTool.vue.d.ts +4 -7
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +5 -7
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +5 -6
- package/types/components/BCFComponents/commentInput.vue.d.ts +36 -10
- package/types/components/BCFComponents/commentsView.vue.d.ts +36 -7
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +5 -8
- package/types/components/BCFComponents/imageView.vue.d.ts +5 -7
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +5 -6
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +18 -1
- package/types/components/BimViewerComponents/CameraViewTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +32 -1
- package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +6 -8
- package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +4 -5
- package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
- package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +270 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +291 -7
- package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +5 -6
- 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/SettingTool.vue.d.ts +4 -6
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +11642 -1
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
- package/types/components/BimxViewerComp.vue.d.ts +7 -21
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +37 -10
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +37 -9
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +291 -7
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +270 -1
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +5 -8
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +38 -12
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +7 -9
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +5 -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 +8 -2
- package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +3 -1
- package/types/components/utilsComponents/tallPanel.vue.d.ts +13 -3
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +13 -3
- package/types/pages/BimxViewerEntry.vue.d.ts +4 -63
- package/types/store/toolbars.d.ts +50 -50
- package/types/utils/OSSHelper.d.ts +0 -2
- package/types/viewerManager/load/loadModel.d.ts +0 -88
- package/dist/01.xtc +0 -0
- package/dist/02.xtc +0 -0
- package/dist/03.xtc +0 -0
- package/dist/ScreenShotTool-HqPWEnrT.mjs +0 -357
- package/dist/SettingTool-DTIFj4Tj.mjs +0 -657
- package/dist/StructureTree-Cu7KYRrz.mjs +0 -1583
- package/dist/el-input-number-BGkEOqim.mjs +0 -818
- package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +0 -22
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +0 -8
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +0 -10
- package/types/components/bimxViewer.vue.d.ts +0 -27
- package/types/pages/viewerEntry.vue.d.ts +0 -116
- package/types/tests/cmt.d.ts +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineComponent as
|
|
1
|
+
import { G as Y, H as z, I as x, V as A, P as y, M as G } from "./index-s9bhlFsR.mjs";
|
|
2
|
+
import { defineComponent as O, ref as l, watch as k, onMounted as W, onBeforeUnmount as j, openBlock as u, createElementBlock as g, normalizeClass as T, createElementVNode as t, createBlock as q, withCtx as F, unref as B, withDirectives as I, vModelText as N, createCommentVNode as J } from "vue";
|
|
3
3
|
const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
|
|
4
4
|
key: 1,
|
|
5
5
|
class: "cameraView_tool_btn"
|
|
6
|
-
}, ee = ["src"], te = { class: "dialog-container" }, oe = { class: "dialog-header" }, ae = { class: "dialog-content" }, se = { class: "preview-shot" }, ne = ["src"], le = { class: "form-group" }, ie = { class: "form-group" }, ce = { class: "dialog-footer" }, re = /* @__PURE__ */
|
|
6
|
+
}, ee = ["src"], te = { class: "dialog-container" }, oe = { class: "dialog-header" }, ae = { class: "dialog-content" }, se = { class: "preview-shot" }, ne = ["src"], le = { class: "form-group" }, ie = { class: "form-group" }, ce = { class: "dialog-footer" }, re = /* @__PURE__ */ O({
|
|
7
7
|
__name: "CameraViewTool",
|
|
8
8
|
props: ["componentId", "instruction"],
|
|
9
9
|
emits: ["emitHandler"],
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
10
|
+
setup(E, { emit: S }) {
|
|
11
|
+
const V = Y();
|
|
12
12
|
let v;
|
|
13
|
-
const w = l(!
|
|
13
|
+
const w = l(!z("isMobile")), p = E;
|
|
14
14
|
k(
|
|
15
|
-
() =>
|
|
15
|
+
() => V.isToolActive(p.componentId),
|
|
16
16
|
(o) => {
|
|
17
17
|
}
|
|
18
18
|
), k(
|
|
@@ -24,29 +24,29 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
{ deep: !0 }
|
|
27
|
-
),
|
|
28
|
-
|
|
27
|
+
), W(() => {
|
|
28
|
+
V.setReadyById(p.componentId);
|
|
29
29
|
});
|
|
30
|
-
const
|
|
30
|
+
const _ = () => {
|
|
31
31
|
v = window.bimViewer, window.bimViewer.eventTrigger;
|
|
32
32
|
};
|
|
33
|
-
|
|
34
|
-
const
|
|
33
|
+
x.on("BimViewer", _);
|
|
34
|
+
const H = (o, e) => {
|
|
35
35
|
const a = document.getElementById("myCanvas"), s = document.createElement("a");
|
|
36
36
|
s.download = "screenshot.png";
|
|
37
37
|
const d = document.createElement("canvas"), i = d.getContext("2d");
|
|
38
38
|
if (a && i) {
|
|
39
39
|
d.width = o, d.height = e;
|
|
40
|
-
const
|
|
41
|
-
return i.clearRect(0, 0, o, e), i.fillStyle = "transparent", i.fillRect(0, 0, o, e), i.drawImage(a, 0, 0, a.width, a.height,
|
|
40
|
+
const D = o / a.width, L = e / a.height, b = Math.max(D, L), C = a.width * b, h = a.height * b, P = (o - C) / 2, X = (e - h) / 2;
|
|
41
|
+
return i.clearRect(0, 0, o, e), i.fillStyle = "transparent", i.fillRect(0, 0, o, e), i.drawImage(a, 0, 0, a.width, a.height, P, X, C, h), d.toDataURL("image/png");
|
|
42
42
|
} else
|
|
43
43
|
return "";
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
}, c = l(""), r = l(""), n = l(!1), m = l(""), f = l(),
|
|
47
|
-
n.value = !0, f.value = v.getCameraView(), m.value =
|
|
48
|
-
},
|
|
49
|
-
|
|
44
|
+
}, M = S, R = (o) => {
|
|
45
|
+
M("emitHandler", o);
|
|
46
|
+
}, c = l(""), r = l(""), n = l(!1), m = l(""), f = l(), U = () => {
|
|
47
|
+
n.value = !0, f.value = v.getCameraView(), m.value = H(220, 124);
|
|
48
|
+
}, $ = () => {
|
|
49
|
+
R({
|
|
50
50
|
isTool: !0,
|
|
51
51
|
event_target: "CameraViewTool",
|
|
52
52
|
event_name: "newCameraView",
|
|
@@ -58,28 +58,28 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
|
|
|
58
58
|
}
|
|
59
59
|
}), n.value = !1, c.value = "", r.value = "", f.value = null, m.value = "";
|
|
60
60
|
};
|
|
61
|
-
return
|
|
62
|
-
|
|
61
|
+
return j(() => {
|
|
62
|
+
x.off("BimViewer", _);
|
|
63
63
|
}), (o, e) => {
|
|
64
|
-
const a =
|
|
64
|
+
const a = A;
|
|
65
65
|
return u(), g("div", {
|
|
66
66
|
class: T(["cameraView_component", { is_mobile: !w.value }])
|
|
67
67
|
}, [
|
|
68
68
|
t("div", {
|
|
69
69
|
class: "new_btn",
|
|
70
|
-
onClick:
|
|
70
|
+
onClick: U
|
|
71
71
|
}, [
|
|
72
|
-
w.value ? (u(),
|
|
72
|
+
w.value ? (u(), q(a, {
|
|
73
73
|
key: 0,
|
|
74
74
|
content: "添加视角",
|
|
75
75
|
placement: "top",
|
|
76
76
|
effect: "light"
|
|
77
77
|
}, {
|
|
78
|
-
default:
|
|
78
|
+
default: F(() => [
|
|
79
79
|
t("div", K, [
|
|
80
80
|
t("img", {
|
|
81
81
|
class: "img",
|
|
82
|
-
src: `${B(
|
|
82
|
+
src: `${B(y)}/bim-viewer/cameraView/cameraViewNew.svg`,
|
|
83
83
|
alt: ""
|
|
84
84
|
}, null, 8, Q)
|
|
85
85
|
])
|
|
@@ -88,7 +88,7 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
|
|
|
88
88
|
})) : (u(), g("div", Z, [
|
|
89
89
|
t("img", {
|
|
90
90
|
class: "img",
|
|
91
|
-
src: `${B(
|
|
91
|
+
src: `${B(y)}/bim-viewer/cameraView/cameraViewNew.svg`,
|
|
92
92
|
alt: ""
|
|
93
93
|
}, null, 8, ee)
|
|
94
94
|
]))
|
|
@@ -107,9 +107,9 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
|
|
|
107
107
|
t("button", {
|
|
108
108
|
class: "dialog-close",
|
|
109
109
|
onClick: e[1] || (e[1] = (s) => n.value = !1)
|
|
110
|
-
}, e[5] || (e[5] = [
|
|
110
|
+
}, [...e[5] || (e[5] = [
|
|
111
111
|
t("span", null, "✕", -1)
|
|
112
|
-
]))
|
|
112
|
+
])])
|
|
113
113
|
]),
|
|
114
114
|
t("div", ae, [
|
|
115
115
|
t("div", se, [
|
|
@@ -120,26 +120,26 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
|
|
|
120
120
|
]),
|
|
121
121
|
t("div", le, [
|
|
122
122
|
e[7] || (e[7] = t("label", { class: "form-label" }, "视角名称", -1)),
|
|
123
|
-
|
|
123
|
+
I(t("input", {
|
|
124
124
|
"onUpdate:modelValue": e[2] || (e[2] = (s) => c.value = s),
|
|
125
125
|
type: "text",
|
|
126
126
|
class: "form-input",
|
|
127
127
|
placeholder: "请输入视角名称",
|
|
128
128
|
maxlength: "50"
|
|
129
129
|
}, null, 512), [
|
|
130
|
-
[
|
|
130
|
+
[N, c.value]
|
|
131
131
|
])
|
|
132
132
|
]),
|
|
133
133
|
t("div", ie, [
|
|
134
134
|
e[8] || (e[8] = t("label", { class: "form-label" }, "视角描述", -1)),
|
|
135
|
-
|
|
135
|
+
I(t("textarea", {
|
|
136
136
|
"onUpdate:modelValue": e[3] || (e[3] = (s) => r.value = s),
|
|
137
137
|
class: "form-textarea",
|
|
138
138
|
placeholder: "请输入视角描述",
|
|
139
139
|
maxlength: "200",
|
|
140
140
|
rows: "4"
|
|
141
141
|
}, null, 512), [
|
|
142
|
-
[
|
|
142
|
+
[N, r.value]
|
|
143
143
|
])
|
|
144
144
|
])
|
|
145
145
|
]),
|
|
@@ -150,7 +150,7 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
|
|
|
150
150
|
}, "取 消"),
|
|
151
151
|
t("button", {
|
|
152
152
|
class: "btn btn-primary",
|
|
153
|
-
onClick:
|
|
153
|
+
onClick: $
|
|
154
154
|
}, "确 定")
|
|
155
155
|
])
|
|
156
156
|
])
|
|
@@ -158,7 +158,7 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
|
|
|
158
158
|
], 2);
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
|
-
}), ue = /* @__PURE__ */
|
|
161
|
+
}), ue = /* @__PURE__ */ G(re, [["__scopeId", "data-v-2c9174bb"]]);
|
|
162
162
|
export {
|
|
163
163
|
ue as default
|
|
164
164
|
};
|