@xtctwins/tctwins-bimx-engine 0.3.21 → 0.3.22

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 (89) hide show
  1. package/README.md +196 -196
  2. package/dist/{AnnotationTool-DCHJcLix.mjs → AnnotationTool-CtRhDcPK.mjs} +35 -35
  3. package/dist/BIMX_Viewer_Lib.es.js +6 -6
  4. package/dist/BIMX_Viewer_Lib.umd.js +214 -167
  5. package/dist/{CameraViewTool-CJfs6vWu.mjs → CameraViewTool-CtLUEw0Q.mjs} +38 -38
  6. package/dist/{CommentTool-mcXTV3bv.mjs → CommentTool-B8fvijhz.mjs} +192 -192
  7. package/dist/{HiddenTool-BXTqbPUK.mjs → HiddenTool-511eglcE.mjs} +13 -13
  8. package/dist/{InspectorTool-D6DtUWoh.mjs → InspectorTool-D9Yjs6eH.mjs} +13 -13
  9. package/dist/{MeasureTool-BZxE7H7U.mjs → MeasureTool-C5Ce0Nef.mjs} +125 -125
  10. package/dist/{MouseTool-Clt4JeIj.mjs → MouseTool-BJX4hgly.mjs} +8 -8
  11. package/dist/{NavigateTool-cQshheaw.mjs → NavigateTool-BxOX-2P9.mjs} +8 -8
  12. package/dist/{OperateTool-C86C-l1z.mjs → OperateTool-DdkSl849.mjs} +61 -58
  13. package/dist/{RoamTool-DueJxPwv.mjs → RoamTool-CzNcha7A.mjs} +27 -27
  14. package/dist/ScreenShotTool-_TQ3T0xw.mjs +429 -0
  15. package/dist/{SectionTool-CKrvJEQ9.mjs → SectionTool-DlUhDw_i.mjs} +70 -70
  16. package/dist/SettingTool-yhgi_CY0.mjs +1787 -0
  17. package/dist/StructureTree-CNKrxyeJ.mjs +1685 -0
  18. package/dist/{alert-D-agI6w6.mjs → alert-B0WoSDD3.mjs} +14 -14
  19. package/dist/{index-jngVSTsO.mjs → index-D7FcGpin.mjs} +56419 -53825
  20. package/dist/index.html +17 -17
  21. package/dist/{panel.vue_vue_type_style_index_0_lang-DfDOwKP2.mjs → panel.vue_vue_type_style_index_0_lang-BG2LZoNF.mjs} +1 -1
  22. package/dist/style.css +3 -3
  23. package/dist/{tallPanel-CNORaYkU.mjs → tallPanel-DpEzw_w-.mjs} +12 -12
  24. package/package.json +85 -85
  25. package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +38 -10
  26. package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +37 -9
  27. package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +5 -7
  28. package/types/components/BCFComponents/BCFFilter.vue.d.ts +5 -7
  29. package/types/components/BCFComponents/BCFTool.vue.d.ts +4 -7
  30. package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +5 -7
  31. package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +5 -6
  32. package/types/components/BCFComponents/commentInput.vue.d.ts +36 -10
  33. package/types/components/BCFComponents/commentsView.vue.d.ts +36 -7
  34. package/types/components/BCFComponents/dialogPanel.vue.d.ts +5 -8
  35. package/types/components/BCFComponents/imageView.vue.d.ts +5 -7
  36. package/types/components/BCFComponents/imageZoomIn.vue.d.ts +5 -6
  37. package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
  38. package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +18 -1
  39. package/types/components/BimViewerComponents/CameraViewTool.vue.d.ts +1 -1
  40. package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
  41. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +32 -1
  42. package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
  43. package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +6 -8
  44. package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +4 -5
  45. package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
  46. package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +270 -1
  47. package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +291 -7
  48. package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +5 -6
  49. package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
  50. package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
  51. package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
  52. package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
  53. package/types/components/BimViewerComponents/SettingTool.vue.d.ts +4 -6
  54. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +11642 -1
  55. package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
  56. package/types/components/BimxViewerComp.vue.d.ts +7 -21
  57. package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +37 -10
  58. package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +37 -9
  59. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +291 -7
  60. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +270 -1
  61. package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +5 -8
  62. package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +38 -12
  63. package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +7 -9
  64. package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +5 -7
  65. package/types/components/utilsComponents/alert.vue.d.ts +1 -1
  66. package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
  67. package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
  68. package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
  69. package/types/components/utilsComponents/loading.vue.d.ts +1 -1
  70. package/types/components/utilsComponents/panel.vue.d.ts +8 -2
  71. package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
  72. package/types/components/utilsComponents/rectangleButton.vue.d.ts +3 -1
  73. package/types/components/utilsComponents/tallPanel.vue.d.ts +13 -3
  74. package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +13 -3
  75. package/types/pages/BimxViewerEntry.vue.d.ts +4 -66
  76. package/types/store/toolbars.d.ts +50 -50
  77. package/types/viewerManager/sectionManager.d.ts +25 -25
  78. package/dist/01.xtc +0 -0
  79. package/dist/02.xtc +0 -0
  80. package/dist/03.xtc +0 -0
  81. package/dist/ScreenShotTool-DDtQfqF5.mjs +0 -356
  82. package/dist/SettingTool-CWAOl-yl.mjs +0 -1508
  83. package/dist/StructureTree-BTqIDob7.mjs +0 -1582
  84. package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +0 -22
  85. package/types/components/BimViewerComponents/emptyPage.vue.d.ts +0 -8
  86. package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +0 -10
  87. package/types/components/bimxViewer.vue.d.ts +0 -27
  88. package/types/pages/viewerEntry.vue.d.ts +0 -116
  89. package/types/tests/cmt.d.ts +0 -1
@@ -1,16 +1,16 @@
1
- import { o as Y, p as q, q as h, O as x, F as z, y as A } from "./index-jngVSTsO.mjs";
2
- import { defineComponent as F, ref as l, watch as k, onMounted as P, onBeforeUnmount as W, openBlock as u, createElementBlock as g, normalizeClass as T, createElementVNode as t, createBlock as j, withCtx as G, unref as B, withDirectives as N, vModelText as E, createCommentVNode as J } from "vue";
1
+ import { G as X, H as Y, I as x, W as z, P as y, M as A } from "./index-D7FcGpin.mjs";
2
+ import { defineComponent as G, ref as l, watch as k, onMounted as O, onBeforeUnmount as j, openBlock as u, createElementBlock as g, normalizeClass as T, createElementVNode as t, createBlock as q, withCtx as F, unref as B, withDirectives as I, vModelText as N, createCommentVNode as J } from "vue";
3
3
  const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
4
4
  key: 1,
5
5
  class: "cameraView_tool_btn"
6
- }, ee = ["src"], te = { class: "dialog-container" }, oe = { class: "dialog-header" }, ae = { class: "dialog-content" }, se = { class: "preview-shot" }, ne = ["src"], le = { class: "form-group" }, ie = { class: "form-group" }, ce = { class: "dialog-footer" }, re = /* @__PURE__ */ F({
6
+ }, ee = ["src"], te = { class: "dialog-container" }, oe = { class: "dialog-header" }, ae = { class: "dialog-content" }, se = { class: "preview-shot" }, ne = ["src"], le = { class: "form-group" }, ie = { class: "form-group" }, re = { class: "dialog-footer" }, ce = /* @__PURE__ */ G({
7
7
  __name: "CameraViewTool",
8
8
  props: ["componentId", "instruction"],
9
9
  emits: ["emitHandler"],
10
- setup(I, { emit: S }) {
11
- const _ = Y();
10
+ setup(E, { emit: S }) {
11
+ const _ = X();
12
12
  let v;
13
- const w = l(!q("isMobile")), p = I;
13
+ const w = l(!Y("isMobile")), p = E;
14
14
  k(
15
15
  () => _.isToolActive(p.componentId),
16
16
  (o) => {
@@ -24,42 +24,42 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
24
24
  }
25
25
  },
26
26
  { deep: !0 }
27
- ), P(() => {
27
+ ), O(() => {
28
28
  _.setReadyById(p.componentId);
29
29
  });
30
30
  const V = () => {
31
31
  v = window.bimViewer, window.bimViewer.eventTrigger;
32
32
  };
33
- h.on("BimViewer", V);
34
- const R = (o, e) => {
33
+ x.on("BimViewer", V);
34
+ const H = (o, e) => {
35
35
  const a = document.getElementById("myCanvas"), s = document.createElement("a");
36
36
  s.download = "screenshot.png";
37
37
  const d = document.createElement("canvas"), i = d.getContext("2d");
38
38
  if (a && i) {
39
39
  d.width = o, d.height = e;
40
- const M = o / a.width, L = e / a.height, b = Math.max(M, L), C = a.width * b, y = a.height * b, O = (o - C) / 2, X = (e - y) / 2;
41
- return i.clearRect(0, 0, o, e), i.fillStyle = "transparent", i.fillRect(0, 0, o, e), i.drawImage(a, 0, 0, a.width, a.height, O, X, C, y), d.toDataURL("image/png");
40
+ const D = o / a.width, L = e / a.height, b = Math.max(D, L), C = a.width * b, h = a.height * b, P = (o - C) / 2, W = (e - h) / 2;
41
+ return i.clearRect(0, 0, o, e), i.fillStyle = "transparent", i.fillRect(0, 0, o, e), i.drawImage(a, 0, 0, a.width, a.height, P, W, C, h), d.toDataURL("image/png");
42
42
  } else
43
43
  return "";
44
- }, U = S, $ = (o) => {
45
- U("emitHandler", o);
46
- }, c = l(""), r = l(""), n = l(!1), m = l(""), f = l(), D = () => {
47
- n.value = !0, f.value = v.getCameraView(), m.value = R(220, 124);
48
- }, H = () => {
49
- $({
44
+ }, M = S, R = (o) => {
45
+ M("emitHandler", o);
46
+ }, r = l(""), c = l(""), n = l(!1), m = l(""), f = l(), U = () => {
47
+ n.value = !0, f.value = v.getCameraView(), m.value = H(220, 124);
48
+ }, $ = () => {
49
+ R({
50
50
  isTool: !0,
51
51
  event_target: "CameraViewTool",
52
52
  event_name: "newCameraView",
53
53
  content: {
54
54
  cameraView: f.value,
55
- title: c.value,
56
- description: r.value,
55
+ title: r.value,
56
+ description: c.value,
57
57
  img_data: m.value
58
58
  }
59
- }), n.value = !1, c.value = "", r.value = "", f.value = null, m.value = "";
59
+ }), n.value = !1, r.value = "", c.value = "", f.value = null, m.value = "";
60
60
  };
61
- return W(() => {
62
- h.off("BimViewer", V);
61
+ return j(() => {
62
+ x.off("BimViewer", V);
63
63
  }), (o, e) => {
64
64
  const a = z;
65
65
  return u(), g("div", {
@@ -67,19 +67,19 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
67
67
  }, [
68
68
  t("div", {
69
69
  class: "new_btn",
70
- onClick: D
70
+ onClick: U
71
71
  }, [
72
- w.value ? (u(), j(a, {
72
+ w.value ? (u(), q(a, {
73
73
  key: 0,
74
74
  content: "添加视角",
75
75
  placement: "top",
76
76
  effect: "light"
77
77
  }, {
78
- default: G(() => [
78
+ default: F(() => [
79
79
  t("div", K, [
80
80
  t("img", {
81
81
  class: "img",
82
- src: `${B(x)}/bim-viewer/cameraView/cameraViewNew.svg`,
82
+ src: `${B(y)}/bim-viewer/cameraView/cameraViewNew.svg`,
83
83
  alt: ""
84
84
  }, null, 8, Q)
85
85
  ])
@@ -88,7 +88,7 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
88
88
  })) : (u(), g("div", Z, [
89
89
  t("img", {
90
90
  class: "img",
91
- src: `${B(x)}/bim-viewer/cameraView/cameraViewNew.svg`,
91
+ src: `${B(y)}/bim-viewer/cameraView/cameraViewNew.svg`,
92
92
  alt: ""
93
93
  }, null, 8, ee)
94
94
  ]))
@@ -107,9 +107,9 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
107
107
  t("button", {
108
108
  class: "dialog-close",
109
109
  onClick: e[1] || (e[1] = (s) => n.value = !1)
110
- }, e[5] || (e[5] = [
110
+ }, [...e[5] || (e[5] = [
111
111
  t("span", null, "✕", -1)
112
- ]))
112
+ ])])
113
113
  ]),
114
114
  t("div", ae, [
115
115
  t("div", se, [
@@ -120,37 +120,37 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
120
120
  ]),
121
121
  t("div", le, [
122
122
  e[7] || (e[7] = t("label", { class: "form-label" }, "视角名称", -1)),
123
- N(t("input", {
124
- "onUpdate:modelValue": e[2] || (e[2] = (s) => c.value = s),
123
+ I(t("input", {
124
+ "onUpdate:modelValue": e[2] || (e[2] = (s) => r.value = s),
125
125
  type: "text",
126
126
  class: "form-input",
127
127
  placeholder: "请输入视角名称",
128
128
  maxlength: "50"
129
129
  }, null, 512), [
130
- [E, c.value]
130
+ [N, r.value]
131
131
  ])
132
132
  ]),
133
133
  t("div", ie, [
134
134
  e[8] || (e[8] = t("label", { class: "form-label" }, "视角描述", -1)),
135
- N(t("textarea", {
136
- "onUpdate:modelValue": e[3] || (e[3] = (s) => r.value = s),
135
+ I(t("textarea", {
136
+ "onUpdate:modelValue": e[3] || (e[3] = (s) => c.value = s),
137
137
  class: "form-textarea",
138
138
  placeholder: "请输入视角描述",
139
139
  maxlength: "200",
140
140
  rows: "4"
141
141
  }, null, 512), [
142
- [E, r.value]
142
+ [N, c.value]
143
143
  ])
144
144
  ])
145
145
  ]),
146
- t("div", ce, [
146
+ t("div", re, [
147
147
  t("button", {
148
148
  class: "btn btn-secondary",
149
149
  onClick: e[4] || (e[4] = (s) => n.value = !1)
150
150
  }, "取 消"),
151
151
  t("button", {
152
152
  class: "btn btn-primary",
153
- onClick: H
153
+ onClick: $
154
154
  }, "确 定")
155
155
  ])
156
156
  ])
@@ -158,7 +158,7 @@ const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
158
158
  ], 2);
159
159
  };
160
160
  }
161
- }), ue = /* @__PURE__ */ A(re, [["__scopeId", "data-v-a38d20c9"]]);
161
+ }), ue = /* @__PURE__ */ A(ce, [["__scopeId", "data-v-8142df3b"]]);
162
162
  export {
163
163
  ue as default
164
164
  };