@xtctwins/tctwins-bimx-engine 0.1.27 → 0.1.29

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 (32) hide show
  1. package/dist/AnnotationTool-BtxAszIy.mjs +143 -0
  2. package/dist/BIMX_Viewer_Lib.es.js +3 -3
  3. package/dist/BIMX_Viewer_Lib.umd.js +83 -89
  4. package/dist/CommentTool-DGPURTUV.mjs +335 -0
  5. package/dist/{HiddenTool-Bt8-J_RZ.mjs → HiddenTool-DsyLv-Re.mjs} +1 -1
  6. package/dist/{InspectorTool-_GRHvnQy.mjs → InspectorTool-DLEMJ3x3.mjs} +3 -3
  7. package/dist/{MeasureTool-DESlI0hf.mjs → MeasureTool-CqoPA_Wy.mjs} +6 -6
  8. package/dist/{NavigateTool-D3e0Vo0L.mjs → NavigateTool-BuMLhQbp.mjs} +1 -1
  9. package/dist/{RoamTool-l83aHwGM.mjs → RoamTool-_QruVs7h.mjs} +26 -26
  10. package/dist/{ScreenShotTool-3UlpbR4b.mjs → ScreenShotTool-cULWCvNG.mjs} +14 -14
  11. package/dist/SectionTool-DSOwWQMa.mjs +327 -0
  12. package/dist/{SettingTool-Q_Hu6Ohg.mjs → SettingTool-DvyDN5LT.mjs} +154 -151
  13. package/dist/{StructureTree-CszVT6zj.mjs → StructureTree-BYctDp7A.mjs} +6 -6
  14. package/dist/{debounce-r0JWlXHT.mjs → debounce-Cd3m9Ke3.mjs} +12 -12
  15. package/dist/{el-checkbox-CB-0_SLF.mjs → el-checkbox-S08K4vSa.mjs} +26 -26
  16. package/dist/{el-input-BH5hm5Ak.mjs → el-input-kZ08_aZj.mjs} +34 -34
  17. package/dist/{el-input-number-0PXO_n6O.mjs → el-input-number-C0xEXO1W.mjs} +37 -37
  18. package/dist/{index-IYlQXGwp.mjs → index-CC5ixYNf.mjs} +1 -1
  19. package/dist/{index-BtlCNbGP.mjs → index-CUTBaxET.mjs} +17239 -16907
  20. package/dist/{index-C0SJth3n.mjs → index-Cn5C53ac.mjs} +1 -1
  21. package/dist/{isEqual-CO79DlSp.mjs → isEqual-p1KWJeBH.mjs} +17 -17
  22. package/dist/{panel.vue_vue_type_style_index_0_lang-CSybEe42.mjs → panel.vue_vue_type_style_index_0_lang-CWXUUils.mjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{tallPanel--nUQ6GJs.mjs → tallPanel-BTkzyfdG.mjs} +7 -7
  25. package/package.json +2 -2
  26. package/types/index.d.ts +2 -2
  27. package/types/pages/BIMXViewer.vue.d.ts +7 -3
  28. package/types/store/initConfigs.d.ts +23 -6
  29. package/types/utils/eventBus.d.ts +1 -1
  30. package/dist/AnnotationTool-pyzFsF63.mjs +0 -136
  31. package/dist/CommentTool-BYYsSxau.mjs +0 -347
  32. package/dist/SectionTool-D6eeOEp2.mjs +0 -624
@@ -0,0 +1,143 @@
1
+ import { j as S, k as r, l as x, O as a, m as E, n as N } from "./index-CUTBaxET.mjs";
2
+ import { defineComponent as W, ref as g, onMounted as X, openBlock as e, createElementBlock as i, unref as s, createCommentVNode as u, createElementVNode as t, Fragment as b, renderList as T, normalizeClass as f, createVNode as L, withCtx as O, toDisplayString as D, pushScopeId as H, popScopeId as q } from "vue";
3
+ import { A as w } from "./const-CbUmfuHy.mjs";
4
+ const P = (l) => (H("data-v-27c73fca"), l = l(), q(), l), R = { class: "annotation_component" }, j = {
5
+ key: 0,
6
+ id: "annotation_toolbar",
7
+ class: "annotation_toolbar"
8
+ }, z = {
9
+ key: 0,
10
+ class: "toolbar_trangle"
11
+ }, F = { class: "annotation_toolbar_wrapper" }, U = { class: "annotation_toolbar_group" }, G = ["id", "onClick"], J = ["src"], K = {
12
+ key: 1,
13
+ class: "toolbar_trangle"
14
+ }, Q = {
15
+ key: 1,
16
+ class: "mobile_annotation_toolbar"
17
+ }, Y = /* @__PURE__ */ P(() => /* @__PURE__ */ t("div", { class: "label-title-box" }, [
18
+ /* @__PURE__ */ t("div", { class: "label-title" }, "标注")
19
+ ], -1)), Z = { class: "label-list" }, oo = ["onClick"], no = { class: "item-img" }, to = ["src"], eo = ["src"], io = { class: "item-name" }, ao = /* @__PURE__ */ W({
20
+ __name: "AnnotationTool",
21
+ props: ["componentId"],
22
+ emits: ["uploadImage", "clickAnnotation", "emitHandler"],
23
+ setup(l, { emit: h }) {
24
+ const A = S(), k = h, _ = (o) => {
25
+ k("emitHandler", o);
26
+ };
27
+ let p;
28
+ const c = g("");
29
+ let d;
30
+ const I = g(), B = l;
31
+ X(() => {
32
+ I.value = r("annoLimit"), A.setReadyById(B.componentId);
33
+ });
34
+ const V = {
35
+ image: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/image_active.png`,
36
+ file: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/file_active.png`,
37
+ record: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/record_active.png`,
38
+ text: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/text_active.png`,
39
+ video: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/video_active.png`
40
+ };
41
+ x.on("BimViewer", () => {
42
+ p = window.BimViewer.annotationTool, p.setTypeImage(V), d = window.BimViewer.eventTrigger, d.on("createAnnotation", (o) => {
43
+ _({
44
+ isTool: !0,
45
+ event_target: "AnnotationTool",
46
+ event_name: "createAnnotation",
47
+ content: {
48
+ currentAnnotation: o.currentAnnotation
49
+ }
50
+ });
51
+ }), d.on("markerClicked", (o) => {
52
+ _({
53
+ isTool: !0,
54
+ event_target: "AnnotationTool",
55
+ event_name: "clickAnnotation",
56
+ content: {
57
+ targetAnno: o
58
+ }
59
+ });
60
+ }), r("isMobile") || d.on("requestDeleteMarker", (o) => {
61
+ _({
62
+ isTool: !0,
63
+ event_target: "AnnotationTool",
64
+ event_name: "requestDelAnno",
65
+ content: {
66
+ msg: "请求删除指定标注",
67
+ annoId: o
68
+ }
69
+ });
70
+ });
71
+ });
72
+ const v = (o) => {
73
+ c.value === o.code ? c.value = "" : (C(o), c.value = o.code);
74
+ }, y = (o) => {
75
+ window.BimViewer.annotationTool.setEnabled(o);
76
+ }, C = (o) => {
77
+ y(!0), window.BimViewer.annotationTool.setCurrentType(o.code), _({
78
+ isTool: !0,
79
+ event_target: "AnnotationTool",
80
+ event_name: "clickAnnoTool",
81
+ content: {
82
+ item: o,
83
+ tool_type: o.code
84
+ }
85
+ });
86
+ };
87
+ return (o, so) => {
88
+ const $ = E;
89
+ return e(), i("div", R, [
90
+ s(r)("isMobile") ? (e(), i("div", Q, [
91
+ Y,
92
+ L($, null, {
93
+ default: O(() => [
94
+ t("div", Z, [
95
+ (e(!0), i(b, null, T(s(w), (n, m) => (e(), i("div", {
96
+ key: m,
97
+ class: f(["label-item", { "label-item-active": c.value === n.code }]),
98
+ onClick: (M) => v(n)
99
+ }, [
100
+ t("div", no, [
101
+ t("img", {
102
+ class: "label-item-img",
103
+ src: s(a) + `/bim-viewer/label-bar/${c.value === n.code ? n.imgActive : n.img}.svg`,
104
+ alt: ""
105
+ }, null, 8, to),
106
+ t("img", {
107
+ class: "label-item-icon",
108
+ src: s(a) + "/member-images/open-member-icon.png",
109
+ alt: ""
110
+ }, null, 8, eo)
111
+ ]),
112
+ t("div", io, D(n.name), 1)
113
+ ], 10, oo))), 128))
114
+ ])
115
+ ]),
116
+ _: 1
117
+ })
118
+ ])) : (e(), i("div", j, [
119
+ s(r)("annotationPos").pos.includes("top") ? (e(), i("div", z)) : u("", !0),
120
+ t("div", F, [
121
+ t("div", U, [
122
+ (e(!0), i(b, null, T(s(w), (n, m) => (e(), i("button", {
123
+ id: `annotation_tool_btn_${m}`,
124
+ key: m,
125
+ class: f(["annotation_tool_btn", { active: c.value === n.code }]),
126
+ onClick: (M) => v(n)
127
+ }, [
128
+ u("", !0),
129
+ t("img", {
130
+ src: `${s(a)}/BIMX_Website/main/mainView/function_icon/annotation_icons/${c.value !== n.code ? n.img : n.img_active}.png`
131
+ }, null, 8, J)
132
+ ], 10, G))), 128))
133
+ ])
134
+ ]),
135
+ s(r)("annotationPos").pos.includes("bottom") ? (e(), i("div", K)) : u("", !0)
136
+ ]))
137
+ ]);
138
+ };
139
+ }
140
+ }), _o = /* @__PURE__ */ N(ao, [["__scopeId", "data-v-27c73fca"]]);
141
+ export {
142
+ _o as default
143
+ };
@@ -1,12 +1,12 @@
1
- import { am as e, B as o, an as t, ap as i, V as l, as as r, ao as n, aq as I, ar as B } from "./index-BtlCNbGP.mjs";
1
+ import { ak as e, B as o, al as t, an as i, V as l, aq as n, am as r, ao as I, ap as B } from "./index-CUTBaxET.mjs";
2
2
  export {
3
3
  e as BIMXViewer,
4
4
  o as BIMX_CONFIGS,
5
5
  t as InitialViewer,
6
6
  i as InitializeConfigs,
7
7
  l as ViewerManager,
8
- r as setAllToolClose,
9
- n as setConfigs,
8
+ n as setAllToolClose,
9
+ r as setConfigs,
10
10
  I as setToolStatusById,
11
11
  B as setToolStatusBykey
12
12
  };