@xtctwins/tctwins-bimx-engine 0.3.2 → 0.3.3
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-C3o-nYdK.mjs +167 -0
- package/dist/BIMX_Viewer_Lib.es.js +3 -3
- package/dist/BIMX_Viewer_Lib.umd.js +165 -265
- package/dist/CameraViewTool-DaGFzAdV.mjs +164 -0
- package/dist/CommentTool-BuqyVt4A.mjs +1529 -0
- package/dist/{HiddenTool-rORoKTeD.mjs → HiddenTool-B20p_qDY.mjs} +16 -16
- package/dist/{InspectorTool-l4bDxTia.mjs → InspectorTool-ChM2elpV.mjs} +66 -66
- package/dist/{MeasureTool-d-EV6m2R.mjs → MeasureTool-BZF__yUT.mjs} +107 -131
- package/dist/{MouseTool-DKMcdeRD.mjs → MouseTool-Bhmif0vq.mjs} +32 -35
- package/dist/{NavigateTool-BNvZ8Oat.mjs → NavigateTool-DER-SD2Y.mjs} +13 -13
- package/dist/{RoamTool-DJu93SVl.mjs → RoamTool-B2fyUtKk.mjs} +14 -14
- package/dist/ScreenShotTool-C8iq1Ssm.mjs +357 -0
- package/dist/SectionTool-CL95rzx4.mjs +331 -0
- package/dist/SettingTool-b9HLJ1iu.mjs +657 -0
- package/dist/StructureTree-DlqVbX97.mjs +1583 -0
- package/dist/{Alert-5pEYzrMO.mjs → alert-DoM5CyWV.mjs} +8 -8
- package/dist/const-DOnRsYpZ.mjs +389 -0
- package/dist/el-input-number-Bj97l7q_.mjs +818 -0
- package/dist/index-Cslxj2q_.mjs +128302 -0
- package/dist/index.html +17 -17
- package/dist/{Panel.vue_vue_type_style_index_0_lang-C4tqfy-B.mjs → panel.vue_vue_type_style_index_0_lang-r40t3eim.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dist/{TallPanel-DtXOSzmF.mjs → tallPanel-CdjNke7H.mjs} +14 -14
- package/package.json +3 -4
- 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/{tools/NavigateTool.vue.d.ts → BimViewerComponents/CameraViewTool.vue.d.ts} +3 -1
- 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/i18n/index.d.ts +5 -5
- package/types/i18n/locales/en-US.d.ts +1 -1
- package/types/i18n/locales/zh-CN.d.ts +1 -1
- package/types/pages/BimxViewerEntry.vue.d.ts +59 -5
- package/types/pages/viewerEntry.vue.d.ts +57 -7
- package/types/store/bcfReflect.d.ts +81 -13
- package/types/store/const.d.ts +228 -11
- package/types/store/initConfigs.d.ts +1 -1
- package/types/store/toolbars.d.ts +117 -69
- package/types/store/userInfoStore.d.ts +1 -1
- package/types/tests/cmt.d.ts +1 -0
- package/types/utils/OSSHelper.d.ts +0 -27
- package/types/utils/cacheInfo.d.ts +3 -26
- package/types/utils/eventBus.d.ts +87 -1
- package/types/viewerManager/viewerManager.d.ts +3 -53
- package/dist/AnnotationTool-B3tDIyWy.mjs +0 -239
- package/dist/CommentTool--UgPVIZZ.mjs +0 -1541
- package/dist/ScreenShotTool-D2h0Qjtv.mjs +0 -430
- package/dist/SectionTool-DHw2Zfzv.mjs +0 -343
- package/dist/SettingTool-D13GBT87.mjs +0 -747
- package/dist/StructureTree-DHaOzAP9.mjs +0 -1662
- package/dist/bimTools-D3TraX9d.mjs +0 -75
- package/dist/el-slider-CHaMBaUG.mjs +0 -1040
- package/dist/index-BDupeKSG.mjs +0 -127986
- package/types/components/bcf/AddObjectOrAnno.vue.d.ts +0 -16
- package/types/components/bcf/BCFAddPanel.vue.d.ts +0 -55
- package/types/components/bcf/BCFDetailPanel.vue.d.ts +0 -59
- package/types/components/bcf/BCFDisplayList.vue.d.ts +0 -18
- package/types/components/bcf/BCFFilter.vue.d.ts +0 -14
- package/types/components/bcf/BCFTool.vue.d.ts +0 -15
- package/types/components/bcf/CheckObjectPanel.vue.d.ts +0 -11
- package/types/components/bcf/CommentInput.vue.d.ts +0 -51
- package/types/components/bcf/CommentsView.vue.d.ts +0 -48
- package/types/components/bcf/DialogPanel.vue.d.ts +0 -15
- package/types/components/bcf/ImageView.vue.d.ts +0 -17
- package/types/components/bcf/ImageZoomIn.vue.d.ts +0 -9
- package/types/components/bcf/MobileBCFAdd.vue.d.ts +0 -56
- package/types/components/bcf/MobileBCFDetail.vue.d.ts +0 -55
- package/types/components/bcf/MobileBCFDisplayList.vue.d.ts +0 -498
- package/types/components/bcf/MobileBCFFilter.vue.d.ts +0 -475
- package/types/components/bcf/MobileBCFTool.vue.d.ts +0 -17
- package/types/components/bcf/MobileCommentInput.vue.d.ts +0 -54
- package/types/components/bcf/MobileCommentsView.vue.d.ts +0 -17
- package/types/components/bcf/SelectPanel.vue.d.ts +0 -12
- package/types/components/comment/mobile/MobileCommentAdd.vue.d.ts +0 -14
- package/types/components/comment/mobile/MobileDetail.vue.d.ts +0 -11
- package/types/components/comment/mobile/MobileDraw.vue.d.ts +0 -17
- package/types/components/comment/mobile/MobileFilter.vue.d.ts +0 -475
- package/types/components/comment/mobile/MobileList.vue.d.ts +0 -497
- package/types/components/comment/mobile/MobileZoomIn.vue.d.ts +0 -9
- package/types/components/comment/pc/PcDraw.vue.d.ts +0 -14
- package/types/components/shared/Alert.vue.d.ts +0 -32
- package/types/components/shared/CloseButton.vue.d.ts +0 -50
- package/types/components/shared/CloseButtonDark.vue.d.ts +0 -32
- package/types/components/shared/EmptyPage.vue.d.ts +0 -6
- package/types/components/shared/Loading.vue.d.ts +0 -2
- package/types/components/shared/Panel.vue.d.ts +0 -47
- package/types/components/shared/Prompt.vue.d.ts +0 -8
- package/types/components/shared/RectangleButton.vue.d.ts +0 -106
- package/types/components/shared/TallPanel.vue.d.ts +0 -69
- package/types/components/shared/TallPanelNoPos.vue.d.ts +0 -82
- package/types/components/tools/AnnotationTool.vue.d.ts +0 -14
- package/types/components/tools/AppToolbar.vue.d.ts +0 -27
- package/types/components/tools/ClickEvent.vue.d.ts +0 -6
- package/types/components/tools/CommentTool.vue.d.ts +0 -45
- package/types/components/tools/HiddenTool.vue.d.ts +0 -12
- package/types/components/tools/InspectorTool.vue.d.ts +0 -14
- package/types/components/tools/MeasureTool.vue.d.ts +0 -14
- package/types/components/tools/MouseTool.vue.d.ts +0 -6
- package/types/components/tools/RoamTool.vue.d.ts +0 -12
- package/types/components/tools/ScreenShotTool.vue.d.ts +0 -10
- package/types/components/tools/SectionTool.vue.d.ts +0 -14
- package/types/components/tools/SettingTool.vue.d.ts +0 -13
- package/types/components/tools/StructureTree.vue.d.ts +0 -11645
- package/types/components/tools/Toolbar.vue.d.ts +0 -10
- package/types/composables/useBimViewerEvent.d.ts +0 -44
- package/types/composables/useEmitHandler.d.ts +0 -2
- package/types/composables/useToolActive.d.ts +0 -1
- package/types/composables/useToolReady.d.ts +0 -1
- package/types/store/const/app.d.ts +0 -66
- package/types/store/const/bimTools.d.ts +0 -81
- package/types/store/const/project.d.ts +0 -48
- package/types/store/const/theme.d.ts +0 -16
- package/types/store/const/toolbar.d.ts +0 -26
- package/types/stores/viewerStore.d.ts +0 -112
- package/types/types/bcf.d.ts +0 -83
- package/types/types/events.d.ts +0 -88
- package/types/utils/dbscan.d.ts +0 -1
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { o as Y, p as q, q as h, O as x, F as z, y as A } from "./index-Cslxj2q_.mjs";
|
|
2
|
+
import { defineComponent as F, ref as l, watch as k, onMounted as P, onBeforeUnmount as W, openBlock as u, createElementBlock as g, normalizeClass as T, createElementVNode as t, createBlock as j, withCtx as G, unref as B, withDirectives as N, vModelText as E, createCommentVNode as J } from "vue";
|
|
3
|
+
const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
|
|
4
|
+
key: 1,
|
|
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__ */ F({
|
|
7
|
+
__name: "CameraViewTool",
|
|
8
|
+
props: ["componentId", "instruction"],
|
|
9
|
+
emits: ["emitHandler"],
|
|
10
|
+
setup(I, { emit: S }) {
|
|
11
|
+
const _ = Y();
|
|
12
|
+
let v;
|
|
13
|
+
const w = l(!q("isMobile")), p = I;
|
|
14
|
+
k(
|
|
15
|
+
() => _.isToolActive(p.componentId),
|
|
16
|
+
(o) => {
|
|
17
|
+
}
|
|
18
|
+
), k(
|
|
19
|
+
() => p.instruction,
|
|
20
|
+
(o) => {
|
|
21
|
+
if (o && o.instruct_name == "setCameraView") {
|
|
22
|
+
const e = o.content.cameraView;
|
|
23
|
+
v.flyToNewView({ ...e, duration: 1 });
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{ deep: !0 }
|
|
27
|
+
), P(() => {
|
|
28
|
+
_.setReadyById(p.componentId);
|
|
29
|
+
});
|
|
30
|
+
const V = () => {
|
|
31
|
+
v = window.bimViewer, window.bimViewer.eventTrigger;
|
|
32
|
+
};
|
|
33
|
+
h.on("BimViewer", V);
|
|
34
|
+
const R = (o, e) => {
|
|
35
|
+
const a = document.getElementById("myCanvas"), s = document.createElement("a");
|
|
36
|
+
s.download = "screenshot.png";
|
|
37
|
+
const d = document.createElement("canvas"), i = d.getContext("2d");
|
|
38
|
+
if (a && i) {
|
|
39
|
+
d.width = o, d.height = e;
|
|
40
|
+
const M = o / a.width, L = e / a.height, b = Math.max(M, L), C = a.width * b, y = a.height * b, O = (o - C) / 2, X = (e - y) / 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, O, X, C, y), d.toDataURL("image/png");
|
|
42
|
+
} else
|
|
43
|
+
return "";
|
|
44
|
+
}, U = S, $ = (o) => {
|
|
45
|
+
U("emitHandler", o);
|
|
46
|
+
}, c = l(""), r = l(""), n = l(!1), m = l(""), f = l(), D = () => {
|
|
47
|
+
n.value = !0, f.value = v.getCameraView(), m.value = R(220, 124);
|
|
48
|
+
}, H = () => {
|
|
49
|
+
$({
|
|
50
|
+
isTool: !0,
|
|
51
|
+
event_target: "CameraViewTool",
|
|
52
|
+
event_name: "newCameraView",
|
|
53
|
+
content: {
|
|
54
|
+
cameraView: f.value,
|
|
55
|
+
title: c.value,
|
|
56
|
+
description: r.value,
|
|
57
|
+
img_data: m.value
|
|
58
|
+
}
|
|
59
|
+
}), n.value = !1, c.value = "", r.value = "", f.value = null, m.value = "";
|
|
60
|
+
};
|
|
61
|
+
return W(() => {
|
|
62
|
+
h.off("BimViewer", V);
|
|
63
|
+
}), (o, e) => {
|
|
64
|
+
const a = z;
|
|
65
|
+
return u(), g("div", {
|
|
66
|
+
class: T(["cameraView_component", { is_mobile: !w.value }])
|
|
67
|
+
}, [
|
|
68
|
+
t("div", {
|
|
69
|
+
class: "new_btn",
|
|
70
|
+
onClick: D
|
|
71
|
+
}, [
|
|
72
|
+
w.value ? (u(), j(a, {
|
|
73
|
+
key: 0,
|
|
74
|
+
content: "添加视角",
|
|
75
|
+
placement: "top",
|
|
76
|
+
effect: "light"
|
|
77
|
+
}, {
|
|
78
|
+
default: G(() => [
|
|
79
|
+
t("div", K, [
|
|
80
|
+
t("img", {
|
|
81
|
+
class: "img",
|
|
82
|
+
src: `${B(x)}/bim-viewer/cameraView/cameraViewNew.svg`,
|
|
83
|
+
alt: ""
|
|
84
|
+
}, null, 8, Q)
|
|
85
|
+
])
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
})) : (u(), g("div", Z, [
|
|
89
|
+
t("img", {
|
|
90
|
+
class: "img",
|
|
91
|
+
src: `${B(x)}/bim-viewer/cameraView/cameraViewNew.svg`,
|
|
92
|
+
alt: ""
|
|
93
|
+
}, null, 8, ee)
|
|
94
|
+
]))
|
|
95
|
+
]),
|
|
96
|
+
n.value ? (u(), g("div", {
|
|
97
|
+
key: 0,
|
|
98
|
+
class: T(["newViewDialog", { mobile_dialog: !w.value }])
|
|
99
|
+
}, [
|
|
100
|
+
t("div", {
|
|
101
|
+
class: "dialog-overlay",
|
|
102
|
+
onClick: e[0] || (e[0] = (s) => n.value = !1)
|
|
103
|
+
}),
|
|
104
|
+
t("div", te, [
|
|
105
|
+
t("div", oe, [
|
|
106
|
+
e[6] || (e[6] = t("span", { class: "dialog-title" }, "添加视角", -1)),
|
|
107
|
+
t("button", {
|
|
108
|
+
class: "dialog-close",
|
|
109
|
+
onClick: e[1] || (e[1] = (s) => n.value = !1)
|
|
110
|
+
}, e[5] || (e[5] = [
|
|
111
|
+
t("span", null, "✕", -1)
|
|
112
|
+
]))
|
|
113
|
+
]),
|
|
114
|
+
t("div", ae, [
|
|
115
|
+
t("div", se, [
|
|
116
|
+
t("img", {
|
|
117
|
+
src: m.value,
|
|
118
|
+
alt: "视角预览"
|
|
119
|
+
}, null, 8, ne)
|
|
120
|
+
]),
|
|
121
|
+
t("div", le, [
|
|
122
|
+
e[7] || (e[7] = t("label", { class: "form-label" }, "视角名称", -1)),
|
|
123
|
+
N(t("input", {
|
|
124
|
+
"onUpdate:modelValue": e[2] || (e[2] = (s) => c.value = s),
|
|
125
|
+
type: "text",
|
|
126
|
+
class: "form-input",
|
|
127
|
+
placeholder: "请输入视角名称",
|
|
128
|
+
maxlength: "50"
|
|
129
|
+
}, null, 512), [
|
|
130
|
+
[E, c.value]
|
|
131
|
+
])
|
|
132
|
+
]),
|
|
133
|
+
t("div", ie, [
|
|
134
|
+
e[8] || (e[8] = t("label", { class: "form-label" }, "视角描述", -1)),
|
|
135
|
+
N(t("textarea", {
|
|
136
|
+
"onUpdate:modelValue": e[3] || (e[3] = (s) => r.value = s),
|
|
137
|
+
class: "form-textarea",
|
|
138
|
+
placeholder: "请输入视角描述",
|
|
139
|
+
maxlength: "200",
|
|
140
|
+
rows: "4"
|
|
141
|
+
}, null, 512), [
|
|
142
|
+
[E, r.value]
|
|
143
|
+
])
|
|
144
|
+
])
|
|
145
|
+
]),
|
|
146
|
+
t("div", ce, [
|
|
147
|
+
t("button", {
|
|
148
|
+
class: "btn btn-secondary",
|
|
149
|
+
onClick: e[4] || (e[4] = (s) => n.value = !1)
|
|
150
|
+
}, "取 消"),
|
|
151
|
+
t("button", {
|
|
152
|
+
class: "btn btn-primary",
|
|
153
|
+
onClick: H
|
|
154
|
+
}, "确 定")
|
|
155
|
+
])
|
|
156
|
+
])
|
|
157
|
+
], 2)) : J("", !0)
|
|
158
|
+
], 2);
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
}), ue = /* @__PURE__ */ A(re, [["__scopeId", "data-v-2c9174bb"]]);
|
|
162
|
+
export {
|
|
163
|
+
ue as default
|
|
164
|
+
};
|