@xtctwins/tctwins-bimx-engine 0.3.21 → 0.3.22
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 -196
- package/dist/{AnnotationTool-DCHJcLix.mjs → AnnotationTool-CtRhDcPK.mjs} +35 -35
- package/dist/BIMX_Viewer_Lib.es.js +6 -6
- package/dist/BIMX_Viewer_Lib.umd.js +214 -167
- package/dist/{CameraViewTool-CJfs6vWu.mjs → CameraViewTool-CtLUEw0Q.mjs} +38 -38
- package/dist/{CommentTool-mcXTV3bv.mjs → CommentTool-B8fvijhz.mjs} +192 -192
- package/dist/{HiddenTool-BXTqbPUK.mjs → HiddenTool-511eglcE.mjs} +13 -13
- package/dist/{InspectorTool-D6DtUWoh.mjs → InspectorTool-D9Yjs6eH.mjs} +13 -13
- package/dist/{MeasureTool-BZxE7H7U.mjs → MeasureTool-C5Ce0Nef.mjs} +125 -125
- package/dist/{MouseTool-Clt4JeIj.mjs → MouseTool-BJX4hgly.mjs} +8 -8
- package/dist/{NavigateTool-cQshheaw.mjs → NavigateTool-BxOX-2P9.mjs} +8 -8
- package/dist/{OperateTool-C86C-l1z.mjs → OperateTool-DdkSl849.mjs} +61 -58
- package/dist/{RoamTool-DueJxPwv.mjs → RoamTool-CzNcha7A.mjs} +27 -27
- package/dist/ScreenShotTool-_TQ3T0xw.mjs +429 -0
- package/dist/{SectionTool-CKrvJEQ9.mjs → SectionTool-DlUhDw_i.mjs} +70 -70
- package/dist/SettingTool-yhgi_CY0.mjs +1787 -0
- package/dist/StructureTree-CNKrxyeJ.mjs +1685 -0
- package/dist/{alert-D-agI6w6.mjs → alert-B0WoSDD3.mjs} +14 -14
- package/dist/{index-jngVSTsO.mjs → index-D7FcGpin.mjs} +56419 -53825
- package/dist/index.html +17 -17
- package/dist/{panel.vue_vue_type_style_index_0_lang-DfDOwKP2.mjs → panel.vue_vue_type_style_index_0_lang-BG2LZoNF.mjs} +1 -1
- package/dist/style.css +3 -3
- package/dist/{tallPanel-CNORaYkU.mjs → tallPanel-DpEzw_w-.mjs} +12 -12
- package/package.json +85 -85
- 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 -66
- package/types/store/toolbars.d.ts +50 -50
- package/types/viewerManager/sectionManager.d.ts +25 -25
- package/dist/01.xtc +0 -0
- package/dist/02.xtc +0 -0
- package/dist/03.xtc +0 -0
- package/dist/ScreenShotTool-DDtQfqF5.mjs +0 -356
- package/dist/SettingTool-CWAOl-yl.mjs +0 -1508
- package/dist/StructureTree-BTqIDob7.mjs +0 -1582
- 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,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineComponent as
|
|
1
|
+
import { G as X, H as Y, I as x, W as z, P as y, M as A } from "./index-D7FcGpin.mjs";
|
|
2
|
+
import { defineComponent as G, ref as l, watch as k, onMounted as O, 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" },
|
|
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" }, re = { class: "dialog-footer" }, ce = /* @__PURE__ */ G({
|
|
7
7
|
__name: "CameraViewTool",
|
|
8
8
|
props: ["componentId", "instruction"],
|
|
9
9
|
emits: ["emitHandler"],
|
|
10
|
-
setup(
|
|
11
|
-
const _ =
|
|
10
|
+
setup(E, { emit: S }) {
|
|
11
|
+
const _ = X();
|
|
12
12
|
let v;
|
|
13
|
-
const w = l(!
|
|
13
|
+
const w = l(!Y("isMobile")), p = E;
|
|
14
14
|
k(
|
|
15
15
|
() => _.isToolActive(p.componentId),
|
|
16
16
|
(o) => {
|
|
@@ -24,42 +24,42 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
{ deep: !0 }
|
|
27
|
-
),
|
|
27
|
+
), O(() => {
|
|
28
28
|
_.setReadyById(p.componentId);
|
|
29
29
|
});
|
|
30
30
|
const V = () => {
|
|
31
31
|
v = window.bimViewer, window.bimViewer.eventTrigger;
|
|
32
32
|
};
|
|
33
|
-
|
|
34
|
-
const
|
|
33
|
+
x.on("BimViewer", V);
|
|
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, W = (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, W, C, h), d.toDataURL("image/png");
|
|
42
42
|
} else
|
|
43
43
|
return "";
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
n.value = !0, f.value = v.getCameraView(), m.value =
|
|
48
|
-
},
|
|
49
|
-
|
|
44
|
+
}, M = S, R = (o) => {
|
|
45
|
+
M("emitHandler", o);
|
|
46
|
+
}, r = l(""), c = 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",
|
|
53
53
|
content: {
|
|
54
54
|
cameraView: f.value,
|
|
55
|
-
title:
|
|
56
|
-
description:
|
|
55
|
+
title: r.value,
|
|
56
|
+
description: c.value,
|
|
57
57
|
img_data: m.value
|
|
58
58
|
}
|
|
59
|
-
}), n.value = !1,
|
|
59
|
+
}), n.value = !1, r.value = "", c.value = "", f.value = null, m.value = "";
|
|
60
60
|
};
|
|
61
|
-
return
|
|
62
|
-
|
|
61
|
+
return j(() => {
|
|
62
|
+
x.off("BimViewer", V);
|
|
63
63
|
}), (o, e) => {
|
|
64
64
|
const a = z;
|
|
65
65
|
return u(), g("div", {
|
|
@@ -67,19 +67,19 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
|
|
|
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,37 +120,37 @@ 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
|
-
|
|
124
|
-
"onUpdate:modelValue": e[2] || (e[2] = (s) =>
|
|
123
|
+
I(t("input", {
|
|
124
|
+
"onUpdate:modelValue": e[2] || (e[2] = (s) => r.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, r.value]
|
|
131
131
|
])
|
|
132
132
|
]),
|
|
133
133
|
t("div", ie, [
|
|
134
134
|
e[8] || (e[8] = t("label", { class: "form-label" }, "视角描述", -1)),
|
|
135
|
-
|
|
136
|
-
"onUpdate:modelValue": e[3] || (e[3] = (s) =>
|
|
135
|
+
I(t("textarea", {
|
|
136
|
+
"onUpdate:modelValue": e[3] || (e[3] = (s) => c.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, c.value]
|
|
143
143
|
])
|
|
144
144
|
])
|
|
145
145
|
]),
|
|
146
|
-
t("div",
|
|
146
|
+
t("div", re, [
|
|
147
147
|
t("button", {
|
|
148
148
|
class: "btn btn-secondary",
|
|
149
149
|
onClick: e[4] || (e[4] = (s) => n.value = !1)
|
|
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__ */ A(
|
|
161
|
+
}), ue = /* @__PURE__ */ A(ce, [["__scopeId", "data-v-8142df3b"]]);
|
|
162
162
|
export {
|
|
163
163
|
ue as default
|
|
164
164
|
};
|