@xtctwins/tctwins-bimx-engine 0.1.4 → 0.1.5

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.
Files changed (27) hide show
  1. package/dist/AnnotationTool-DmrK-0TW.mjs +105 -0
  2. package/dist/BIMX_Viewer_Lib.es.js +1 -1
  3. package/dist/BIMX_Viewer_Lib.umd.js +6 -6
  4. package/dist/{CommentTool-D6AGGoEu.mjs → CommentTool-BRgZH8iE.mjs} +76 -73
  5. package/dist/InspectorTool-C7Y-pvyG.mjs +316 -0
  6. package/dist/{MeasureTool-Ccxe6Nqk.mjs → MeasureTool-PBb_w3Yt.mjs} +9 -9
  7. package/dist/{RoamTool-BFnRIszV.mjs → RoamTool-BTQu87bN.mjs} +13 -11
  8. package/dist/{ScreenShotTool-CsfcVLmh.mjs → ScreenShotTool-6xeL_NTj.mjs} +8 -8
  9. package/dist/{SectionTool-BRai-HOk.mjs → SectionTool-DtuHzB3o.mjs} +5 -5
  10. package/dist/{SettingTool-Bpcf6itQ.mjs → SettingTool-BWAW3YUz.mjs} +10 -10
  11. package/dist/{StructureTree-DUkiNwXl.mjs → StructureTree-DLVzyQGa.mjs} +205 -197
  12. package/dist/{closeButton.vue_vue_type_style_index_0_scope_true_lang-DoW3Gt8k.mjs → closeButton.vue_vue_type_style_index_0_scope_true_lang-CYJB7_7o.mjs} +1 -1
  13. package/dist/{const-DT7CbaQ1.mjs → const-nh2NE1II.mjs} +1 -1
  14. package/dist/{debounce-CnDd23NW.mjs → debounce-BLtYp0_t.mjs} +1 -1
  15. package/dist/{el-checkbox-CHyA8A9r.mjs → el-checkbox-DblJfuGr.mjs} +3 -3
  16. package/dist/{el-input-0BnyXb2E.mjs → el-input-B2C1jHFI.mjs} +3 -3
  17. package/dist/{icon-YIi6JFgq.mjs → icon-CrAEsDdg.mjs} +1 -1
  18. package/dist/{index-DPsC_-V9.mjs → index-Cz_8iqAQ.mjs} +1 -1
  19. package/dist/{index-HFOw_gTS.mjs → index-DUa4hjQa.mjs} +2 -2
  20. package/dist/{index-CWByAbkD.mjs → index-DgIClVrX.mjs} +21 -15
  21. package/dist/style.css +1 -1
  22. package/dist/{use-form-item-CE-1pX01.mjs → use-form-item-szreYrkd.mjs} +2 -2
  23. package/package.json +1 -1
  24. package/types/utils/eventBus.d.ts +9 -0
  25. package/dist/AnnotationTool-BQRKJlnO.mjs +0 -71
  26. package/dist/InspectorTool-zOZ0l0IY.mjs +0 -161
  27. package/dist/favicon.ico +0 -0
@@ -0,0 +1,105 @@
1
+ import { defineComponent as I, ref as r, onMounted as h, openBlock as _, createElementBlock as m, createElementVNode as o, Fragment as k, renderList as C, unref as p, normalizeClass as M, createCommentVNode as $, pushScopeId as W, popScopeId as X } from "vue";
2
+ import { R as g, l as x, O as t, n as E } from "./index-DgIClVrX.mjs";
3
+ const T = (a) => (W("data-v-335109f2"), a = a(), X(), a), S = { class: "annotation_component" }, L = {
4
+ class: "annotation_toolbar",
5
+ id: "annotation_toolbar"
6
+ }, H = { class: "annotation_toolbar_wrapper" }, q = { class: "annotation_toolbar_group" }, D = ["onClick", "id"], N = ["src"], O = /* @__PURE__ */ T(() => /* @__PURE__ */ o("div", { class: "tollbar_trangle" }, null, -1)), R = /* @__PURE__ */ T(() => /* @__PURE__ */ o("div", { id: "uploadButton" }, null, -1)), z = /* @__PURE__ */ I({
7
+ __name: "AnnotationTool",
8
+ emits: ["uploadImage", "clickAnnotation", "emitHandler"],
9
+ setup(a, { emit: f }) {
10
+ const w = f, e = (n) => {
11
+ w("emitHandler", n);
12
+ };
13
+ let d;
14
+ const b = r(), i = r("");
15
+ let c;
16
+ const s = r();
17
+ h(() => {
18
+ s.value = g();
19
+ });
20
+ let A = {
21
+ image: `${t}/BIMX_Website/main/mainView/function_icon/annotation_icons/image_active.png`,
22
+ file: `${t}/BIMX_Website/main/mainView/function_icon/annotation_icons/file_active.png`,
23
+ record: `${t}/BIMX_Website/main/mainView/function_icon/annotation_icons/record_active.png`,
24
+ text: `${t}/BIMX_Website/main/mainView/function_icon/annotation_icons/text_active.png`,
25
+ video: `${t}/BIMX_Website/main/mainView/function_icon/annotation_icons/video_active.png`
26
+ };
27
+ x.on("BimViewer", () => {
28
+ d = window.BimViewer.annotationTool, c = window.BimViewer.eventTrigger, c.on("createAnnotation", (n) => {
29
+ e({
30
+ isTool: !0,
31
+ event_target: "AnnotationTool",
32
+ event_name: "createAnnotation",
33
+ content: {
34
+ newAnno: n
35
+ }
36
+ });
37
+ }), c.on("markerClicked", (n) => {
38
+ e({
39
+ isTool: !0,
40
+ event_target: "AnnotationTool",
41
+ event_name: "clickAnnotation",
42
+ content: {
43
+ targetAnno: n
44
+ }
45
+ });
46
+ }), c.on("requestDeleteMarker", (n) => {
47
+ e({
48
+ isTool: !0,
49
+ event_target: "AnnotationTool",
50
+ event_name: "requestDelAnno",
51
+ content: {
52
+ msg: "请求删除指定标注",
53
+ annoId: n
54
+ }
55
+ });
56
+ }), d.setTypeImage(A);
57
+ });
58
+ const B = (n) => {
59
+ i.value === n ? i.value = "" : (V(n), i.value = n);
60
+ }, u = (n) => {
61
+ window.BimViewer.annotationTool.setEnabled(n);
62
+ }, V = (n) => {
63
+ s.value && (s.value[n] ? (u(!0), window.BimViewer.annotationTool.setCurrentType(n), e({
64
+ isTool: !0,
65
+ event_target: "AnnotationTool",
66
+ event_name: "clickAnnoTool",
67
+ content: {
68
+ tool_type: n,
69
+ enable: !0
70
+ }
71
+ })) : (b.value.openMask(), u(!1), e({
72
+ isTool: !0,
73
+ event_target: "AnnotationTool",
74
+ event_name: "clickAnnoTool",
75
+ content: {
76
+ tool_type: n,
77
+ enable: !1
78
+ }
79
+ })));
80
+ };
81
+ return (n, F) => (_(), m("div", S, [
82
+ o("div", L, [
83
+ o("div", H, [
84
+ o("div", q, [
85
+ (_(!0), m(k, null, C(p(g)(), (v, l) => (_(), m("button", {
86
+ onClick: (U) => B(l),
87
+ class: M(["annotation_tool_btn", { active: i.value === l }]),
88
+ id: `annotation_tool_btn_${l}`
89
+ }, [
90
+ $("", !0),
91
+ o("img", {
92
+ src: `${p(t)}/BIMX_Website/main/mainView/function_icon/annotation_icons/${i.value !== l ? v.img : v.img_active}.png`
93
+ }, null, 8, N)
94
+ ], 10, D))), 256))
95
+ ])
96
+ ]),
97
+ O
98
+ ]),
99
+ R
100
+ ]));
101
+ }
102
+ }), G = /* @__PURE__ */ E(z, [["__scopeId", "data-v-335109f2"]]);
103
+ export {
104
+ G as default
105
+ };
@@ -1,4 +1,4 @@
1
- import { ah as e, ai as r, aj as s } from "./index-CWByAbkD.mjs";
1
+ import { ah as e, ai as r, aj as s } from "./index-DgIClVrX.mjs";
2
2
  export {
3
3
  e as BIMXViewer,
4
4
  r as InitialViewer,