@xtctwins/tctwins-bimx-engine 0.1.0 → 0.1.2

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 (31) hide show
  1. package/dist/AnnotationTool-DY1Jefeo.mjs +71 -0
  2. package/dist/BIMX_Viewer_Lib.es.js +3 -5
  3. package/dist/BIMX_Viewer_Lib.umd.js +10 -98
  4. package/dist/{CommentTool-BLrsulc_.mjs → CommentTool-BhOA12Y2.mjs} +2 -2
  5. package/dist/{InspectorTool-BouA94us.mjs → InspectorTool-Du09Um7k.mjs} +3 -3
  6. package/dist/{MeasureTool-CbYIFTPr.mjs → MeasureTool-Bmbi38ql.mjs} +9 -9
  7. package/dist/{RoamTool-CXZPca_M.mjs → RoamTool-CoWm8c7w.mjs} +1 -1
  8. package/dist/{ScreenShotTool-BiNcu9RZ.mjs → ScreenShotTool-BKvQhp-1.mjs} +25 -25
  9. package/dist/{SectionTool-DogiOv1d.mjs → SectionTool-E7Kc2DFN.mjs} +6 -6
  10. package/dist/{SettingTool-ClISeAhW.mjs → SettingTool-oyl3Q-Np.mjs} +53 -53
  11. package/dist/{StructureTree-CmsIBbBk.mjs → StructureTree-DJ3gACNS.mjs} +10 -10
  12. package/dist/{closeButton.vue_vue_type_style_index_0_scope_true_lang-CBPVV86B.mjs → closeButton.vue_vue_type_style_index_0_scope_true_lang-B0ar6DNT.mjs} +1 -1
  13. package/dist/{const-DeAig7Pj.mjs → const-DeElEsyo.mjs} +1 -1
  14. package/dist/{debounce-B430Iy_D.mjs → debounce-B3KUSgKy.mjs} +10 -10
  15. package/dist/{el-checkbox-id3wFY0e.mjs → el-checkbox-C1UQzdVM.mjs} +47 -47
  16. package/dist/{el-input-BW5rElpS.mjs → el-input-DwbEsUpT.mjs} +42 -42
  17. package/dist/{icon-DZm1Csdm.mjs → icon-DhZKjTE6.mjs} +1 -1
  18. package/dist/{index-BgjjA9sB.mjs → index-DCLL-Nj8.mjs} +20 -20
  19. package/dist/{index-3StVDuUH.mjs → index-DWDrEKxK.mjs} +2227 -24031
  20. package/dist/{index-L-tY1Gou.mjs → index-k88a52ST.mjs} +32 -32
  21. package/dist/style.css +1 -1
  22. package/dist/{use-form-item-DkYURTpK.mjs → use-form-item-BCh48aXD.mjs} +2 -2
  23. package/package.json +11 -37
  24. package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +2 -2
  25. package/types/components/BimViewerComponents/InspectorTool.vue.d.ts +2 -2
  26. package/types/components/index.d.ts +1 -1
  27. package/types/index.d.ts +4 -7
  28. package/types/pages/BIMXViewer.vue.d.ts +6 -0
  29. package/types/store/toolbars.d.ts +1 -2
  30. package/types/store/userInfo.d.ts +45 -0
  31. package/dist/AnnotationTool-j9uTpTri.mjs +0 -181
@@ -0,0 +1,71 @@
1
+ import { defineComponent as I, ref as _, onMounted as V, openBlock as l, createElementBlock as r, createElementVNode as t, Fragment as $, renderList as A, unref as m, normalizeClass as M, pushScopeId as C, popScopeId as k } from "vue";
2
+ import { Q as v, k as W, O as o, l as X } from "./index-DWDrEKxK.mjs";
3
+ const x = (i) => (C("data-v-a58ffa7e"), i = i(), k(), i), E = { class: "annotation_component" }, S = {
4
+ class: "annotation_toolbar",
5
+ id: "annotation_toolbar"
6
+ }, L = { class: "annotation_toolbar_wrapper" }, H = { class: "annotation_toolbar_group" }, O = ["onClick", "id"], z = { class: "annotation_tool_btn_memeber" }, F = ["src"], N = ["src"], Q = /* @__PURE__ */ x(() => /* @__PURE__ */ t("div", { class: "tollbar_trangle" }, null, -1)), R = /* @__PURE__ */ I({
7
+ __name: "AnnotationTool",
8
+ emits: ["uploadImage", "clickAnnotation", "emitHandler"],
9
+ setup(i, { emit: g }) {
10
+ const f = g, w = (n) => {
11
+ f("emitHandler", n);
12
+ };
13
+ let c;
14
+ const b = _(), e = _("");
15
+ let d;
16
+ const s = _();
17
+ V(() => {
18
+ s.value = v();
19
+ });
20
+ let T = {
21
+ image: `${o}/BIMX_Website/main/mainView/function_icon/annotation_icons/image_active.png`,
22
+ file: `${o}/BIMX_Website/main/mainView/function_icon/annotation_icons/file_active.png`,
23
+ record: `${o}/BIMX_Website/main/mainView/function_icon/annotation_icons/record_active.png`,
24
+ text: `${o}/BIMX_Website/main/mainView/function_icon/annotation_icons/text_active.png`,
25
+ video: `${o}/BIMX_Website/main/mainView/function_icon/annotation_icons/video_active.png`
26
+ };
27
+ W.on("BimViewer", () => {
28
+ c = window.BimViewer.annotationTool, d = window.BimViewer.eventTrigger, d.on("createAnnotation", (n) => {
29
+ console.log("newAnno", n), console.log(c.currentAnnotation);
30
+ }), c.setTypeImage(T);
31
+ });
32
+ const B = (n) => {
33
+ e.value === n ? e.value = "" : (h(n), e.value = n);
34
+ }, u = (n) => {
35
+ window.BimViewer.annotationTool.setEnabled(n);
36
+ }, h = (n) => {
37
+ s.value && (s.value[n] ? (u(!0), window.BimViewer.annotationTool.setCurrentType(n)) : (b.value.openMask(), u(!1))), w({
38
+ event_name: "clickAnnoTool",
39
+ content: {
40
+ tool_type: n
41
+ }
42
+ });
43
+ };
44
+ return (n, U) => (l(), r("div", E, [
45
+ t("div", S, [
46
+ t("div", L, [
47
+ t("div", H, [
48
+ (l(!0), r($, null, A(m(v)(), (p, a) => (l(), r("button", {
49
+ onClick: (j) => B(a),
50
+ class: M(["annotation_tool_btn", { active: e.value === a }]),
51
+ id: `annotation_tool_btn_${a}`
52
+ }, [
53
+ t("div", z, [
54
+ t("img", {
55
+ src: m(o) + "/member-images/open-member-icon.png"
56
+ }, null, 8, F)
57
+ ]),
58
+ t("img", {
59
+ src: `${m(o)}/BIMX_Website/main/mainView/function_icon/annotation_icons/${e.value !== a ? p.img : p.img_active}.png`
60
+ }, null, 8, N)
61
+ ], 10, O))), 256))
62
+ ])
63
+ ]),
64
+ Q
65
+ ])
66
+ ]));
67
+ }
68
+ }), D = /* @__PURE__ */ X(R, [["__scopeId", "data-v-a58ffa7e"]]);
69
+ export {
70
+ D as default
71
+ };
@@ -1,8 +1,6 @@
1
- import { af as i, ag as r, ah as s, aj as t, ai as l } from "./index-3StVDuUH.mjs";
1
+ import { ag as e, ah as r, ai as s } from "./index-DWDrEKxK.mjs";
2
2
  export {
3
- i as BIMXViewer,
3
+ e as BIMXViewer,
4
4
  r as InitialViewer,
5
- s as OSSHelper,
6
- t as emitter,
7
- l as initialize
5
+ s as InitializeConfigs
8
6
  };