@xtctwins/tctwins-bimx-engine 0.1.18 → 0.1.20

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 (44) hide show
  1. package/dist/AnnotationTool-B5mJJcWQ.mjs +136 -0
  2. package/dist/BIMX_Viewer_Lib.es.js +6 -5
  3. package/dist/BIMX_Viewer_Lib.umd.js +84 -84
  4. package/dist/CommentTool-DESPBMRT.mjs +338 -0
  5. package/dist/HiddenTool-Cb1m2FZV.mjs +58 -0
  6. package/dist/InspectorTool-CAQU2Scy.mjs +515 -0
  7. package/dist/MeasureTool-D5I6bh7A.mjs +1549 -0
  8. package/dist/{NavigateTool-C17dyixb.mjs → NavigateTool-C0Sb8TXY.mjs} +12 -12
  9. package/dist/{RoamTool-BGtH3zhb.mjs → RoamTool-gZjVGN_T.mjs} +55 -52
  10. package/dist/{ScreenShotTool-D1yR1n11.mjs → ScreenShotTool-CmZQbY2G.mjs} +114 -113
  11. package/dist/{SectionTool-BScFQGy7.mjs → SectionTool-CDJ8cKsA.mjs} +171 -168
  12. package/dist/{SettingTool-D0pjz1xw.mjs → SettingTool-BXc9BWbH.mjs} +84 -84
  13. package/dist/{StructureTree-BugUQ9lc.mjs → StructureTree-BYTIGufL.mjs} +9 -9
  14. package/dist/{debounce-DWme0CMg.mjs → debounce-BCojCxkd.mjs} +4 -4
  15. package/dist/{el-checkbox-BShzATKH.mjs → el-checkbox-kySiMnso.mjs} +8 -8
  16. package/dist/{el-input-Dl3oq0JJ.mjs → el-input-DTQSlKuB.mjs} +28 -28
  17. package/dist/{el-input-number-CuqOxCa9.mjs → el-input-number-C8e_h4H7.mjs} +4 -4
  18. package/dist/{index-Tuyblnxs.mjs → index-TcSwQf25.mjs} +9896 -9830
  19. package/dist/{index-DW7_4fPf.mjs → index-jFq1C6Hs.mjs} +1 -1
  20. package/dist/{isEqual-_TdecWpV.mjs → isEqual-TsvNaq4z.mjs} +9 -9
  21. package/dist/{panel.vue_vue_type_style_index_0_scope_true_lang-CrL3rJsB.mjs → panel.vue_vue_type_style_index_0_scope_true_lang-BeRlsXcf.mjs} +1 -1
  22. package/dist/style.css +1 -1
  23. package/package.json +2 -11
  24. package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +3 -3
  25. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +3 -3
  26. package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +3 -3
  27. package/types/components/BimViewerComponents/InspectorTool.vue.d.ts +3 -3
  28. package/types/components/BimViewerComponents/MeasureTool.vue.d.ts +3 -3
  29. package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +3 -3
  30. package/types/components/BimViewerComponents/RoamTool.vue.d.ts +3 -3
  31. package/types/components/BimViewerComponents/ScreenShotTool.vue.d.ts +3 -3
  32. package/types/components/BimViewerComponents/SectionTool.vue.d.ts +3 -3
  33. package/types/components/BimViewerComponents/SettingTool.vue.d.ts +3 -3
  34. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +3 -3
  35. package/types/index.d.ts +2 -1
  36. package/types/store/initConfigs.d.ts +2 -2
  37. package/types/store/propertyReflect.d.ts +1 -0
  38. package/types/store/toolbars.d.ts +76 -0
  39. package/types/store/viewerManager.d.ts +11 -0
  40. package/dist/AnnotationTool-B46Sg-VG.mjs +0 -138
  41. package/dist/CommentTool-Cssmvixl.mjs +0 -341
  42. package/dist/HiddenTool-yI_O1kzA.mjs +0 -60
  43. package/dist/InspectorTool-DuWeBxJT.mjs +0 -464
  44. package/dist/MeasureTool-CmwfELj-.mjs +0 -1555
@@ -0,0 +1,136 @@
1
+ import { p as S, q as m, s as x, O as e, v as E, x as N } from "./index-TcSwQf25.mjs";
2
+ import { defineComponent as W, ref as v, onMounted as X, openBlock as a, createElementBlock as s, unref as c, createElementVNode as t, Fragment as g, renderList as b, normalizeClass as T, createCommentVNode as L, createVNode as O, withCtx as q, toDisplayString as D, pushScopeId as H, popScopeId as R } from "vue";
3
+ import { A as f } from "./const-CbUmfuHy.mjs";
4
+ const w = (l) => (H("data-v-6fcde41f"), l = l(), R(), l), z = { class: "annotation_component" }, F = {
5
+ key: 0,
6
+ id: "annotation_toolbar",
7
+ class: "annotation_toolbar"
8
+ }, U = { class: "annotation_toolbar_wrapper" }, j = { class: "annotation_toolbar_group" }, G = ["id", "onClick"], J = ["src"], K = /* @__PURE__ */ w(() => /* @__PURE__ */ t("div", { class: "toolbar_trangle" }, null, -1)), P = {
9
+ key: 1,
10
+ class: "mobile_annotation_toolbar"
11
+ }, Q = /* @__PURE__ */ w(() => /* @__PURE__ */ t("div", { class: "label-title-box" }, [
12
+ /* @__PURE__ */ t("div", { class: "label-title" }, "标注")
13
+ ], -1)), Y = { class: "label-list" }, Z = ["onClick"], nn = { class: "item-img" }, on = ["src"], tn = ["src"], en = { class: "item-name" }, an = /* @__PURE__ */ W({
14
+ __name: "AnnotationTool",
15
+ props: ["componentId"],
16
+ emits: ["uploadImage", "clickAnnotation", "emitHandler"],
17
+ setup(l, { emit: h }) {
18
+ const A = S(), I = h, r = (n) => {
19
+ I("emitHandler", n);
20
+ };
21
+ let u;
22
+ const i = v("");
23
+ let _;
24
+ const B = v(), k = l;
25
+ X(() => {
26
+ B.value = m("annoLimit"), A.setReadyById(k.componentId);
27
+ });
28
+ const V = {
29
+ image: `${e}/BIMX_Website/main/mainView/function_icon/annotation_icons/image_active.png`,
30
+ file: `${e}/BIMX_Website/main/mainView/function_icon/annotation_icons/file_active.png`,
31
+ record: `${e}/BIMX_Website/main/mainView/function_icon/annotation_icons/record_active.png`,
32
+ text: `${e}/BIMX_Website/main/mainView/function_icon/annotation_icons/text_active.png`,
33
+ video: `${e}/BIMX_Website/main/mainView/function_icon/annotation_icons/video_active.png`
34
+ };
35
+ x.on("BimViewer", () => {
36
+ u = window.BimViewer.annotationTool, u.setTypeImage(V), _ = window.BimViewer.eventTrigger, _.on("createAnnotation", (n) => {
37
+ r({
38
+ isTool: !0,
39
+ event_target: "AnnotationTool",
40
+ event_name: "createAnnotation",
41
+ content: {
42
+ currentAnnotation: n.currentAnnotation
43
+ }
44
+ });
45
+ }), _.on("markerClicked", (n) => {
46
+ r({
47
+ isTool: !0,
48
+ event_target: "AnnotationTool",
49
+ event_name: "clickAnnotation",
50
+ content: {
51
+ targetAnno: n
52
+ }
53
+ });
54
+ }), m("isMobile") || _.on("requestDeleteMarker", (n) => {
55
+ r({
56
+ isTool: !0,
57
+ event_target: "AnnotationTool",
58
+ event_name: "requestDelAnno",
59
+ content: {
60
+ msg: "请求删除指定标注",
61
+ annoId: n
62
+ }
63
+ });
64
+ });
65
+ });
66
+ const p = (n) => {
67
+ i.value === n.code ? i.value = "" : (y(n), i.value = n.code);
68
+ }, C = (n) => {
69
+ window.BimViewer.annotationTool.setEnabled(n);
70
+ }, y = (n) => {
71
+ C(!0), window.BimViewer.annotationTool.setCurrentType(n.code), r({
72
+ isTool: !0,
73
+ event_target: "AnnotationTool",
74
+ event_name: "clickAnnoTool",
75
+ content: {
76
+ item: n,
77
+ tool_type: n.code
78
+ }
79
+ });
80
+ };
81
+ return (n, sn) => {
82
+ const $ = E;
83
+ return a(), s("div", z, [
84
+ c(m)("isMobile") ? (a(), s("div", P, [
85
+ Q,
86
+ O($, null, {
87
+ default: q(() => [
88
+ t("div", Y, [
89
+ (a(!0), s(g, null, b(c(f), (o, d) => (a(), s("div", {
90
+ key: d,
91
+ class: T(["label-item", { "label-item-active": i.value === o.code }]),
92
+ onClick: (M) => p(o)
93
+ }, [
94
+ t("div", nn, [
95
+ t("img", {
96
+ class: "label-item-img",
97
+ src: c(e) + `/bim-viewer/label-bar/${i.value === o.code ? o.imgActive : o.img}.svg`,
98
+ alt: ""
99
+ }, null, 8, on),
100
+ t("img", {
101
+ class: "label-item-icon",
102
+ src: c(e) + "/member-images/open-member-icon.png",
103
+ alt: ""
104
+ }, null, 8, tn)
105
+ ]),
106
+ t("div", en, D(o.name), 1)
107
+ ], 10, Z))), 128))
108
+ ])
109
+ ]),
110
+ _: 1
111
+ })
112
+ ])) : (a(), s("div", F, [
113
+ t("div", U, [
114
+ t("div", j, [
115
+ (a(!0), s(g, null, b(c(f), (o, d) => (a(), s("button", {
116
+ id: `annotation_tool_btn_${d}`,
117
+ key: d,
118
+ class: T(["annotation_tool_btn", { active: i.value === o.code }]),
119
+ onClick: (M) => p(o)
120
+ }, [
121
+ L("", !0),
122
+ t("img", {
123
+ src: `${c(e)}/BIMX_Website/main/mainView/function_icon/annotation_icons/${i.value !== o.code ? o.img : o.img_active}.png`
124
+ }, null, 8, J)
125
+ ], 10, G))), 128))
126
+ ])
127
+ ]),
128
+ K
129
+ ]))
130
+ ]);
131
+ };
132
+ }
133
+ }), _n = /* @__PURE__ */ N(an, [["__scopeId", "data-v-6fcde41f"]]);
134
+ export {
135
+ _n as default
136
+ };
@@ -1,11 +1,12 @@
1
- import { am as e, y as o, an as t, ap as i, as as l, ao as I, aq as n, ar as r } from "./index-Tuyblnxs.mjs";
1
+ import { an as e, y as o, ao as t, aq as i, W as l, at as r, ap as n, ar as I, as as y } from "./index-TcSwQf25.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
- l as setAllToolClose,
8
- I as setConfigs,
9
- n as setToolStatusById,
10
- r as setToolStatusBykey
7
+ l as ViewerManager,
8
+ r as setAllToolClose,
9
+ n as setConfigs,
10
+ I as setToolStatusById,
11
+ y as setToolStatusBykey
11
12
  };