@xtctwins/tctwins-industry-engine 0.0.1

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 (95) hide show
  1. package/README.md +5 -0
  2. package/dist/AnnotationTool-p1JXCwLS.mjs +129 -0
  3. package/dist/BCFTool-Cssf2dIk.mjs +25118 -0
  4. package/dist/CommentTool-Bug4iFC9.mjs +167 -0
  5. package/dist/Industry_Viewer_Lib.es.js +12 -0
  6. package/dist/Industry_Viewer_Lib.umd.js +633 -0
  7. package/dist/InspectorTool-BJzXtOU-.mjs +674 -0
  8. package/dist/MeasureTool-Dkrz8dS6.mjs +168 -0
  9. package/dist/MouseTool-Cvc5G90V.mjs +80 -0
  10. package/dist/NavigateTool-DwEEE5nd.mjs +52 -0
  11. package/dist/RoamTool-dChjfNvn.mjs +212 -0
  12. package/dist/ScreenShotTool-CPrA7pEa.mjs +357 -0
  13. package/dist/SectionTool-Du-V6U-J.mjs +217 -0
  14. package/dist/SettingTool-X6AjiptI.mjs +691 -0
  15. package/dist/StructureTree-CHhrQiDL.mjs +1591 -0
  16. package/dist/XRayTool-Ci1SR92x.mjs +57 -0
  17. package/dist/alert-BzjOjWCu.mjs +46 -0
  18. package/dist/const-DeViLYl5.mjs +266 -0
  19. package/dist/el-checkbox-DeNYO9VE.mjs +460 -0
  20. package/dist/el-input-number-CsUyeV_5.mjs +858 -0
  21. package/dist/index-CBO0Vhj8.mjs +99354 -0
  22. package/dist/index.html +17 -0
  23. package/dist/panel.vue_vue_type_style_index_0_lang-CUi6naB0.mjs +61 -0
  24. package/dist/style.css +1 -0
  25. package/dist/tallPanel-D226sbKd.mjs +84 -0
  26. package/package.json +65 -0
  27. package/types/App.vue.d.ts +2 -0
  28. package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +55 -0
  29. package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +59 -0
  30. package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +18 -0
  31. package/types/components/BCFComponents/BCFFilter.vue.d.ts +14 -0
  32. package/types/components/BCFComponents/BCFTool.vue.d.ts +15 -0
  33. package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +16 -0
  34. package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +11 -0
  35. package/types/components/BCFComponents/commentInput.vue.d.ts +51 -0
  36. package/types/components/BCFComponents/commentsView.vue.d.ts +48 -0
  37. package/types/components/BCFComponents/dialogPanel.vue.d.ts +15 -0
  38. package/types/components/BCFComponents/imageView.vue.d.ts +17 -0
  39. package/types/components/BCFComponents/imageZoomIn.vue.d.ts +9 -0
  40. package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +14 -0
  41. package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +6 -0
  42. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +12 -0
  43. package/types/components/BimViewerComponents/InspectorTool.vue.d.ts +12 -0
  44. package/types/components/BimViewerComponents/MeasureTool.vue.d.ts +12 -0
  45. package/types/components/BimViewerComponents/MouseTool.vue.d.ts +6 -0
  46. package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +10 -0
  47. package/types/components/BimViewerComponents/RoamTool.vue.d.ts +12 -0
  48. package/types/components/BimViewerComponents/ScreenShotTool.vue.d.ts +10 -0
  49. package/types/components/BimViewerComponents/SectionTool.vue.d.ts +10 -0
  50. package/types/components/BimViewerComponents/SettingTool.vue.d.ts +13 -0
  51. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +3053 -0
  52. package/types/components/BimViewerComponents/Toolbar.vue.d.ts +10 -0
  53. package/types/components/BimViewerComponents/XRayTool.vue.d.ts +12 -0
  54. package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +27 -0
  55. package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +56 -0
  56. package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +55 -0
  57. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +278 -0
  58. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +255 -0
  59. package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +15 -0
  60. package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +54 -0
  61. package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +17 -0
  62. package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +12 -0
  63. package/types/components/index.d.ts +3 -0
  64. package/types/components/industryViewer.vue.d.ts +18 -0
  65. package/types/components/utilsComponents/alert.vue.d.ts +32 -0
  66. package/types/components/utilsComponents/closeButton.vue.d.ts +50 -0
  67. package/types/components/utilsComponents/closeButton_dark.vue.d.ts +32 -0
  68. package/types/components/utilsComponents/emptyPage.vue.d.ts +6 -0
  69. package/types/components/utilsComponents/loading.vue.d.ts +2 -0
  70. package/types/components/utilsComponents/panel.vue.d.ts +47 -0
  71. package/types/components/utilsComponents/rectangleButton.vue.d.ts +106 -0
  72. package/types/components/utilsComponents/tallPanel.vue.d.ts +69 -0
  73. package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +82 -0
  74. package/types/index.d.ts +31 -0
  75. package/types/main.d.ts +1 -0
  76. package/types/pages/viewerEntry.vue.d.ts +59 -0
  77. package/types/services/request/config.d.ts +8 -0
  78. package/types/store/bcfManager.d.ts +11 -0
  79. package/types/store/bcfReflect.d.ts +88 -0
  80. package/types/store/const.d.ts +211 -0
  81. package/types/store/initConfigs.d.ts +58 -0
  82. package/types/store/propertyReflect.d.ts +1 -0
  83. package/types/store/themeManager.d.ts +8 -0
  84. package/types/store/toolbars.d.ts +392 -0
  85. package/types/utils/OSSHelper.d.ts +4 -0
  86. package/types/utils/cacheInfo.d.ts +20 -0
  87. package/types/utils/dateFormat.d.ts +2 -0
  88. package/types/utils/dpscan.d.ts +1 -0
  89. package/types/utils/eventBus.d.ts +86 -0
  90. package/types/utils/roles.d.ts +1 -0
  91. package/types/utils/splitType.d.ts +3 -0
  92. package/types/utils/timer.d.ts +9 -0
  93. package/types/viewerManager/initial/viewerInitial.d.ts +7 -0
  94. package/types/viewerManager/load/loadModel.d.ts +1 -0
  95. package/types/viewerManager/viewerManager.d.ts +12 -0
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ ## @xtctwins/tctwins-industry-engine
2
+
3
+ ### mode: dev
4
+
5
+ ###
@@ -0,0 +1,129 @@
1
+ import { _ as L } from "./alert-BzjOjWCu.mjs";
2
+ import { defineComponent as E, ref as m, watch as N, onMounted as W, onBeforeUnmount as X, openBlock as _, createElementBlock as u, createElementVNode as r, Fragment as D, renderList as O, unref as b, normalizeClass as q, toDisplayString as H, withDirectives as z, createVNode as R, vShow as U } from "vue";
3
+ import { p as F, q as I, t as l, O as o, z as j } from "./index-CBO0Vhj8.mjs";
4
+ import { A as i } from "./const-DeViLYl5.mjs";
5
+ const G = { class: "annotation_component" }, J = { class: "anno_toolList" }, K = ["onClick"], P = { class: "item-img" }, Q = ["src"], Y = { class: "item-name" }, Z = /* @__PURE__ */ E({
6
+ __name: "AnnotationTool",
7
+ props: ["componentId"],
8
+ emits: ["uploadImage", "clickAnnotation", "emitHandler"],
9
+ setup(h, { emit: V }) {
10
+ const d = F(), k = V, s = (e) => {
11
+ k("emitHandler", e);
12
+ };
13
+ let v;
14
+ const f = m(!0), n = m("");
15
+ let c;
16
+ const B = m(), g = h;
17
+ N(
18
+ () => d.isToolActive(g.componentId),
19
+ (e) => {
20
+ e || (n.value = "");
21
+ }
22
+ ), W(() => {
23
+ B.value = I("annoLimit"), d.setReadyById(g.componentId);
24
+ });
25
+ const S = {
26
+ image: `${o}/BIMX_Website/main/mainView/function_icon/annotation_icons/image_active.png`,
27
+ file: `${o}/BIMX_Website/main/mainView/function_icon/annotation_icons/file_active.png`,
28
+ record: `${o}/BIMX_Website/main/mainView/function_icon/annotation_icons/record_active.png`,
29
+ text: `${o}/BIMX_Website/main/mainView/function_icon/annotation_icons/text_active.png`,
30
+ video: `${o}/BIMX_Website/main/mainView/function_icon/annotation_icons/video_active.png`
31
+ }, p = () => {
32
+ v = window.bimViewer.annotationTool, v.setTypeImage(S), c = window.bimViewer.eventTrigger, c.on("createAnnotation", (e) => {
33
+ s({
34
+ isTool: !0,
35
+ event_target: "AnnotationTool",
36
+ event_name: "createAnnotation",
37
+ content: {
38
+ currentAnnotation: e
39
+ }
40
+ });
41
+ }), c.on("markerClicked", (e) => {
42
+ s({
43
+ isTool: !0,
44
+ event_target: "AnnotationTool",
45
+ event_name: "clickAnnotation",
46
+ content: {
47
+ targetAnno: e
48
+ }
49
+ });
50
+ }), I("isMobile") || c.on("requestDeleteMarker", (e) => {
51
+ s({
52
+ isTool: !0,
53
+ event_target: "AnnotationTool",
54
+ event_name: "requestDelAnno",
55
+ content: {
56
+ msg: "请求删除指定标注",
57
+ annoId: e
58
+ }
59
+ });
60
+ });
61
+ };
62
+ l.on("BimViewer", p);
63
+ const T = (e) => {
64
+ w(C(e.type));
65
+ };
66
+ l.on("setAnnoStatus", T), X(() => {
67
+ l.off("BimViewer", p), l.off("setAnnoStatus", T);
68
+ });
69
+ const C = (e) => {
70
+ if (e === "image")
71
+ return i[0];
72
+ if (e === "record")
73
+ return i[1];
74
+ if (e === "video")
75
+ return i[2];
76
+ if (e === "file")
77
+ return i[3];
78
+ if (e === "text")
79
+ return i[4];
80
+ }, w = (e) => {
81
+ n.value === e.code ? (n.value = "", A(e, !1)) : (n.value = e.code, A(e, !0));
82
+ }, y = (e) => {
83
+ window.bimViewer.annotationTool.setEnabled(e);
84
+ }, A = (e, a) => {
85
+ y(a), M(e.code, a);
86
+ }, M = (e, a) => {
87
+ window.bimViewer.annotationTool.setCurrentType(e), s({
88
+ isTool: !0,
89
+ event_target: "AnnotationTool",
90
+ event_name: "clickAnnoTool",
91
+ content: {
92
+ active: a,
93
+ tool_type: e
94
+ }
95
+ });
96
+ };
97
+ return (e, a) => {
98
+ const $ = L;
99
+ return _(), u("div", G, [
100
+ r("div", J, [
101
+ (_(!0), u(D, null, O(b(i), (t, x) => (_(), u("div", {
102
+ key: x,
103
+ class: q(["label-item", { "label-item-active": n.value === t.code }]),
104
+ onClick: (ee) => w(t)
105
+ }, [
106
+ r("div", P, [
107
+ r("img", {
108
+ class: "label-item-img",
109
+ src: b(o) + `/industry-viewer/annotation-bar/${n.value === t.code ? t.imgActive : t.img}.svg`,
110
+ alt: ""
111
+ }, null, 8, Q),
112
+ r("div", Y, H(t.name), 1)
113
+ ])
114
+ ], 10, K))), 128))
115
+ ]),
116
+ z(R($, {
117
+ "click-handle": () => {
118
+ f.value = !1;
119
+ }
120
+ }, null, 8, ["click-handle"]), [
121
+ [U, f.value]
122
+ ])
123
+ ]);
124
+ };
125
+ }
126
+ }), ae = /* @__PURE__ */ j(Z, [["__scopeId", "data-v-18ffde8f"]]);
127
+ export {
128
+ ae as default
129
+ };