@xtctwins/tctwins-bimx-engine 0.3.11 → 0.3.13
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 +1 -1
- package/dist/{AnnotationTool-BnLd0s38.mjs → AnnotationTool-k3W4xmw6.mjs} +13 -14
- package/dist/BIMX_Viewer_Lib.es.js +5 -5
- package/dist/BIMX_Viewer_Lib.umd.js +184 -164
- package/dist/{CameraViewTool-BGmwAori.mjs → CameraViewTool-CuXnJa74.mjs} +15 -15
- package/dist/{CommentTool-B9TgO52t.mjs → CommentTool-CUtaZc7Y.mjs} +276 -277
- package/dist/{HiddenTool-CNMJqZzC.mjs → HiddenTool-CzJ19mP1.mjs} +9 -10
- package/dist/{InspectorTool-CiyN_aCB.mjs → InspectorTool-BTH82K8b.mjs} +3 -3
- package/dist/MeasureTool-BvPkIvmX.mjs +593 -0
- package/dist/{MouseTool-B07SstRZ.mjs → MouseTool-CiywjpW3.mjs} +6 -6
- package/dist/{NavigateTool-B8qIl9xy.mjs → NavigateTool-CDlYpMXl.mjs} +13 -14
- package/dist/OperateTool-NMIYz2YN.mjs +185 -0
- package/dist/{RoamTool-3sDI1Ouu.mjs → RoamTool-BkwJBBAg.mjs} +1 -1
- package/dist/{ScreenShotTool-CjsT2-Va.mjs → ScreenShotTool-BP-xDRKf.mjs} +16 -17
- package/dist/SectionTool-mt4iqa1I.mjs +241 -0
- package/dist/SettingTool-DieHq4VO.mjs +1745 -0
- package/dist/{StructureTree-B183vT5b.mjs → StructureTree-C8C435JY.mjs} +5 -6
- package/dist/{alert-DN7oOiZl.mjs → alert-B9Uw8l52.mjs} +18 -13
- package/dist/{index-DfRswjrC.mjs → index-B_IMYBaJ.mjs} +59333 -53195
- package/dist/{panel.vue_vue_type_style_index_0_lang-DOsptET6.mjs → panel.vue_vue_type_style_index_0_lang-BswWCo8x.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tallPanel-D0Zgkc3n.mjs → tallPanel-CnTIaRU-.mjs} +1 -1
- package/package.json +5 -5
- package/types/components/BimViewerComponents/OperateTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/SectionModeBar.vue.d.ts +2 -0
- package/types/components/BimxViewerComp.vue.d.ts +2 -0
- package/types/components/utilsComponents/alert.vue.d.ts +9 -0
- package/types/i18n/index.d.ts +212 -0
- package/types/i18n/locales/en-US.d.ts +53 -0
- package/types/i18n/locales/zh-CN.d.ts +53 -0
- package/types/pages/BimxViewerEntry.vue.d.ts +3 -0
- package/types/store/const.d.ts +12 -0
- package/types/store/toolbars.d.ts +53 -1
- package/types/utils/OSSHelper.d.ts +2 -0
- package/types/utils/eventBus.d.ts +6 -1
- package/types/viewerManager/load/loadModel.d.ts +88 -0
- package/types/viewerManager/sectionManager.d.ts +524 -0
- package/types/viewerManager/viewerManager.d.ts +7 -1
- package/dist/AnnotationTool-Bp8DGFFA.mjs +0 -167
- package/dist/CameraViewTool-BwVnc0ua.mjs +0 -164
- package/dist/CommentTool-C7NLPxMd.mjs +0 -1529
- package/dist/HiddenTool-i1AESn4-.mjs +0 -57
- package/dist/InspectorTool-D4gr7uiQ.mjs +0 -679
- package/dist/MeasureTool-BNBUx-1X.mjs +0 -323
- package/dist/MeasureTool-Cxnp9MVY.mjs +0 -323
- package/dist/MouseTool-DVqNDADf.mjs +0 -84
- package/dist/NavigateTool-DKTSPVCL.mjs +0 -52
- package/dist/RoamTool-CazuxheL.mjs +0 -287
- package/dist/ScreenShotTool-fYVxpPrW.mjs +0 -430
- package/dist/SectionTool-Bpk5jewK.mjs +0 -331
- package/dist/SectionTool-DMSGkjYm.mjs +0 -331
- package/dist/SettingTool-BuSm2JB6.mjs +0 -695
- package/dist/SettingTool-IBRpWdfo.mjs +0 -695
- package/dist/StructureTree-D9z28tm4.mjs +0 -1686
- package/dist/alert-DwTFq4bp.mjs +0 -47
- package/dist/const-DOnRsYpZ.mjs +0 -389
- package/dist/el-slider-C9_q447A.mjs +0 -1059
- package/dist/el-slider-dslleM3g.mjs +0 -1059
- package/dist/index-BzB8rqmg.mjs +0 -131961
- package/dist/panel.vue_vue_type_style_index_0_lang-E8w23EhV.mjs +0 -61
- package/dist/tallPanel-Dp1ZbCTR.mjs +0 -84
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { G as
|
|
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-B_IMYBaJ.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" }, 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__ */ G({
|
|
7
7
|
__name: "CameraViewTool",
|
|
8
8
|
props: ["componentId", "instruction"],
|
|
9
9
|
emits: ["emitHandler"],
|
|
10
10
|
setup(E, { emit: S }) {
|
|
11
|
-
const
|
|
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) => {
|
|
17
17
|
}
|
|
18
18
|
), k(
|
|
@@ -24,21 +24,21 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
{ deep: !0 }
|
|
27
|
-
),
|
|
28
|
-
|
|
27
|
+
), O(() => {
|
|
28
|
+
_.setReadyById(p.componentId);
|
|
29
29
|
});
|
|
30
|
-
const
|
|
30
|
+
const V = () => {
|
|
31
31
|
v = window.bimViewer, window.bimViewer.eventTrigger;
|
|
32
32
|
};
|
|
33
|
-
x.on("BimViewer",
|
|
33
|
+
x.on("BimViewer", V);
|
|
34
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 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,
|
|
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,
|
|
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
44
|
}, M = S, R = (o) => {
|
|
@@ -59,9 +59,9 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
|
|
|
59
59
|
}), n.value = !1, c.value = "", r.value = "", f.value = null, m.value = "";
|
|
60
60
|
};
|
|
61
61
|
return j(() => {
|
|
62
|
-
x.off("BimViewer",
|
|
62
|
+
x.off("BimViewer", V);
|
|
63
63
|
}), (o, e) => {
|
|
64
|
-
const a =
|
|
64
|
+
const a = z;
|
|
65
65
|
return u(), g("div", {
|
|
66
66
|
class: T(["cameraView_component", { is_mobile: !w.value }])
|
|
67
67
|
}, [
|
|
@@ -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__ */ A(re, [["__scopeId", "data-v-2c9174bb"]]);
|
|
162
162
|
export {
|
|
163
163
|
ue as default
|
|
164
164
|
};
|