@xtctwins/tctwins-bimx-engine 0.1.66 → 0.1.68

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 (25) hide show
  1. package/README.md +2 -2
  2. package/dist/{AnnotationTool-Cx9gJ5we.mjs → AnnotationTool-erjwkSWt.mjs} +57 -62
  3. package/dist/BCFTool-C0MP2BAk.mjs +4 -0
  4. package/dist/BIMX_Viewer_Lib.es.js +1 -1
  5. package/dist/BIMX_Viewer_Lib.umd.js +85 -85
  6. package/dist/{CommentTool-COWvfZ7Y.mjs → CommentTool-bFNK1lW1.mjs} +19 -21
  7. package/dist/{HiddenTool-B6rN5sY_.mjs → HiddenTool-DtSC9p_8.mjs} +7 -7
  8. package/dist/{InspectorTool-RGp7uCHT.mjs → InspectorTool-B1Wzu91g.mjs} +3 -3
  9. package/dist/{MeasureTool-DIkh1SlM.mjs → MeasureTool-DkSxWefA.mjs} +8 -10
  10. package/dist/{NavigateTool-CLHa3ujZ.mjs → NavigateTool-Cxd8J3gQ.mjs} +17 -19
  11. package/dist/{RoamTool-CLDYNNW2.mjs → RoamTool-CbwSuIO2.mjs} +1 -1
  12. package/dist/{ScreenShotTool-C58hJFqK.mjs → ScreenShotTool-Dg76d4Co.mjs} +2 -2
  13. package/dist/{SectionTool-DIbRrcPp.mjs → SectionTool-Ds_JUiOM.mjs} +5 -5
  14. package/dist/{SettingTool-BuZHm0tQ.mjs → SettingTool-CVnPWjri.mjs} +3 -3
  15. package/dist/{StructureTree-DHkAZ74u.mjs → StructureTree-OYyijw9u.mjs} +3 -3
  16. package/dist/{alert-BfhL88_Z.mjs → alert-DoIz4wHi.mjs} +1 -1
  17. package/dist/{el-input-number-DOlSfD3d.mjs → el-input-number-quL1gv9n.mjs} +1 -1
  18. package/dist/{index-C5jcDhyA.mjs → index-DzQ-UySW.mjs} +17612 -17575
  19. package/dist/{panel.vue_vue_type_style_index_0_lang-79AKEJ11.mjs → panel.vue_vue_type_style_index_0_lang-Dc8bxnk3.mjs} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/{tallPanel-DEjfjiPI.mjs → tallPanel-DGKSpGCi.mjs} +1 -1
  22. package/package.json +1 -1
  23. package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +2 -0
  24. package/types/pages/viewerEntry.vue.d.ts +6 -4
  25. package/dist/BCFTool-DKw2SH9h.mjs +0 -4
package/README.md CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  ### mode: dev
4
4
 
5
- ### BCF内容完善+修改
5
+ ### BCF调整
6
6
 
7
- ### 移动端导航栏变更
7
+ ### 移动端工具栏调整
@@ -1,48 +1,48 @@
1
- import { _ as H } from "./alert-BfhL88_Z.mjs";
2
- import { n as q, o as _, p as v, O as l, t as P, x as R } from "./index-C5jcDhyA.mjs";
3
- import { defineComponent as U, ref as b, watch as z, onMounted as F, onBeforeUnmount as j, openBlock as e, createElementBlock as i, unref as c, createCommentVNode as g, createElementVNode as o, Fragment as V, renderList as B, normalizeClass as C, createVNode as S, withCtx as G, toDisplayString as J, withDirectives as K, vShow as Q } from "vue";
1
+ import { _ as D } from "./alert-DoIz4wHi.mjs";
2
+ import { defineComponent as O, ref as p, watch as H, onMounted as q, onBeforeUnmount as P, openBlock as e, createElementBlock as i, unref as c, createCommentVNode as b, createElementVNode as t, Fragment as V, renderList as B, normalizeClass as C, toDisplayString as R, withDirectives as U, createVNode as z, vShow as F } from "vue";
3
+ import { n as j, o as _, p as v, O as l, x as G } from "./index-DzQ-UySW.mjs";
4
4
  import { A as r } from "./const-B1FlFgEN.mjs";
5
- const Y = { class: "annotation_component" }, Z = {
5
+ const J = { class: "annotation_component" }, K = {
6
6
  key: 0,
7
7
  id: "annotation_toolbar",
8
8
  class: "annotation_toolbar"
9
- }, nn = {
9
+ }, Q = {
10
10
  key: 0,
11
11
  class: "toolbar_trangle"
12
- }, tn = { class: "annotation_toolbar_wrapper" }, on = { class: "annotation_toolbar_group" }, en = ["id", "onClick"], an = ["src"], sn = {
12
+ }, Y = { class: "annotation_toolbar_wrapper" }, Z = { class: "annotation_toolbar_group" }, nn = ["id", "onClick"], on = ["src"], tn = {
13
13
  key: 1,
14
14
  class: "toolbar_trangle"
15
- }, ln = {
15
+ }, en = {
16
16
  key: 1,
17
17
  class: "mobile_annotation_toolbar"
18
- }, cn = { class: "anno_toolList" }, rn = { class: "label-list" }, _n = ["onClick"], dn = { class: "item-img" }, mn = ["src"], un = { class: "item-name" }, vn = /* @__PURE__ */ U({
18
+ }, an = { class: "anno_toolList" }, sn = { class: "label-list" }, cn = ["onClick"], ln = { class: "item-img" }, rn = ["src"], _n = { class: "item-name" }, dn = /* @__PURE__ */ O({
19
19
  __name: "AnnotationTool",
20
20
  props: ["componentId"],
21
21
  emits: ["uploadImage", "clickAnnotation", "emitHandler"],
22
22
  setup($, { emit: y }) {
23
- const f = q(), M = y, d = (n) => {
23
+ const f = j(), M = y, d = (n) => {
24
24
  M("emitHandler", n);
25
25
  };
26
26
  let T;
27
- const w = b(!0), a = b("");
27
+ const w = p(!0), a = p("");
28
28
  let m;
29
- const x = b(), A = $;
30
- z(
29
+ const S = p(), A = $;
30
+ H(
31
31
  () => f.isToolActive(A.componentId),
32
32
  (n) => {
33
33
  n || (a.value = "");
34
34
  }
35
- ), F(() => {
36
- x.value = _("annoLimit"), f.setReadyById(A.componentId);
35
+ ), q(() => {
36
+ S.value = _("annoLimit"), f.setReadyById(A.componentId);
37
37
  });
38
- const E = {
38
+ const x = {
39
39
  image: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/image_active.png`,
40
40
  file: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/file_active.png`,
41
41
  record: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/record_active.png`,
42
42
  text: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/text_active.png`,
43
43
  video: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/video_active.png`
44
44
  }, h = () => {
45
- T = window.bimViewer.annotationTool, T.setTypeImage(E), m = window.bimViewer.eventTrigger, m.on("createAnnotation", (n) => {
45
+ T = window.bimViewer.annotationTool, T.setTypeImage(x), m = window.bimViewer.eventTrigger, m.on("createAnnotation", (n) => {
46
46
  d({
47
47
  isTool: !0,
48
48
  event_target: "AnnotationTool",
@@ -74,9 +74,9 @@ const Y = { class: "annotation_component" }, Z = {
74
74
  };
75
75
  v.on("BimViewer", h);
76
76
  const k = (n) => {
77
- p(L(n.type));
77
+ g(L(n.type));
78
78
  };
79
- v.on("setAnnoStatus", k), j(() => {
79
+ v.on("setAnnoStatus", k), P(() => {
80
80
  v.off("BimViewer", h), v.off("setAnnoStatus", k);
81
81
  });
82
82
  const L = (n) => {
@@ -90,7 +90,7 @@ const Y = { class: "annotation_component" }, Z = {
90
90
  return r[3];
91
91
  if (n === "text")
92
92
  return r[4];
93
- }, p = (n) => {
93
+ }, g = (n) => {
94
94
  a.value === n.code ? (a.value = "", I(n, !1)) : (a.value = n.code, I(n, !0));
95
95
  }, N = (n) => {
96
96
  window.bimViewer.annotationTool.setEnabled(n);
@@ -108,65 +108,60 @@ const Y = { class: "annotation_component" }, Z = {
108
108
  });
109
109
  };
110
110
  return (n, s) => {
111
- const X = P, D = H;
112
- return e(), i("div", Y, [
113
- c(_)("isMobile") ? (e(), i("div", ln, [
114
- s[0] || (s[0] = o("div", { class: "label-title-box" }, [
115
- o("div", { class: "label-title" }, "标注")
111
+ const X = D;
112
+ return e(), i("div", J, [
113
+ c(_)("isMobile") ? (e(), i("div", en, [
114
+ s[0] || (s[0] = t("div", { class: "label-title-box" }, [
115
+ t("div", { class: "label-title" }, "标注")
116
116
  ], -1)),
117
- o("div", cn, [
118
- S(X, null, {
119
- default: G(() => [
120
- o("div", rn, [
121
- (e(!0), i(V, null, B(c(r), (t, u) => (e(), i("div", {
122
- key: u,
123
- class: C(["label-item", { "label-item-active": a.value === t.code }]),
124
- onClick: (O) => p(t)
125
- }, [
126
- o("div", dn, [
127
- o("img", {
128
- class: "label-item-img",
129
- src: c(l) + `/bim-viewer/label-bar/${a.value === t.code ? t.imgActive : t.img}.svg`,
130
- alt: ""
131
- }, null, 8, mn)
132
- ]),
133
- o("div", un, J(t.name), 1)
134
- ], 10, _n))), 128))
117
+ t("div", an, [
118
+ t("div", sn, [
119
+ (e(!0), i(V, null, B(c(r), (o, u) => (e(), i("div", {
120
+ key: u,
121
+ class: C(["label-item", { "label-item-active": a.value === o.code }]),
122
+ onClick: (E) => g(o)
123
+ }, [
124
+ t("div", ln, [
125
+ t("img", {
126
+ class: "label-item-img",
127
+ src: c(l) + `/bim-viewer/label-bar/${a.value === o.code ? o.imgActive : o.img}.svg`,
128
+ alt: ""
129
+ }, null, 8, rn),
130
+ t("div", _n, R(o.name), 1)
135
131
  ])
136
- ]),
137
- _: 1
138
- })
132
+ ], 10, cn))), 128))
133
+ ])
139
134
  ])
140
- ])) : (e(), i("div", Z, [
141
- c(_)("annotationPos").pos.includes("top") ? (e(), i("div", nn)) : g("", !0),
142
- o("div", tn, [
143
- o("div", on, [
144
- (e(!0), i(V, null, B(c(r), (t, u) => (e(), i("button", {
135
+ ])) : (e(), i("div", K, [
136
+ c(_)("annotationPos").pos.includes("top") ? (e(), i("div", Q)) : b("", !0),
137
+ t("div", Y, [
138
+ t("div", Z, [
139
+ (e(!0), i(V, null, B(c(r), (o, u) => (e(), i("button", {
145
140
  id: `annotation_tool_btn_${u}`,
146
141
  key: u,
147
- class: C(["annotation_tool_btn", { active: a.value === t.code }]),
148
- onClick: (O) => p(t)
142
+ class: C(["annotation_tool_btn", { active: a.value === o.code }]),
143
+ onClick: (E) => g(o)
149
144
  }, [
150
- g("", !0),
151
- o("img", {
152
- src: `${c(l)}/BIMX_Website/main/mainView/function_icon/annotation_icons/${a.value !== t.code ? t.img : t.img_active}.png`
153
- }, null, 8, an)
154
- ], 10, en))), 128))
145
+ b("", !0),
146
+ t("img", {
147
+ src: `${c(l)}/BIMX_Website/main/mainView/function_icon/annotation_icons/${a.value !== o.code ? o.img : o.img_active}.png`
148
+ }, null, 8, on)
149
+ ], 10, nn))), 128))
155
150
  ])
156
151
  ]),
157
- c(_)("annotationPos").pos.includes("bottom") ? (e(), i("div", sn)) : g("", !0)
152
+ c(_)("annotationPos").pos.includes("bottom") ? (e(), i("div", tn)) : b("", !0)
158
153
  ])),
159
- K(S(D, {
154
+ U(z(X, {
160
155
  "click-handle": () => {
161
156
  w.value = !1;
162
157
  }
163
158
  }, null, 8, ["click-handle"]), [
164
- [Q, w.value]
159
+ [F, w.value]
165
160
  ])
166
161
  ]);
167
162
  };
168
163
  }
169
- }), Tn = /* @__PURE__ */ R(vn, [["__scopeId", "data-v-80cae005"]]);
164
+ }), pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-e46a7ef6"]]);
170
165
  export {
171
- Tn as default
166
+ pn as default
172
167
  };
@@ -0,0 +1,4 @@
1
+ import { aa as f } from "./index-DzQ-UySW.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { ab as e, B as o, ac as t, ae as i, V as l, ah as r, ad as I, af as n, ag as B } from "./index-C5jcDhyA.mjs";
1
+ import { ab as e, B as o, ac as t, ae as i, V as l, ah as r, ad as I, af as n, ag as B } from "./index-DzQ-UySW.mjs";
2
2
  export {
3
3
  e as BIMXViewer,
4
4
  o as BIMX_CONFIGS,