@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.
- package/README.md +5 -0
- package/dist/AnnotationTool-p1JXCwLS.mjs +129 -0
- package/dist/BCFTool-Cssf2dIk.mjs +25118 -0
- package/dist/CommentTool-Bug4iFC9.mjs +167 -0
- package/dist/Industry_Viewer_Lib.es.js +12 -0
- package/dist/Industry_Viewer_Lib.umd.js +633 -0
- package/dist/InspectorTool-BJzXtOU-.mjs +674 -0
- package/dist/MeasureTool-Dkrz8dS6.mjs +168 -0
- package/dist/MouseTool-Cvc5G90V.mjs +80 -0
- package/dist/NavigateTool-DwEEE5nd.mjs +52 -0
- package/dist/RoamTool-dChjfNvn.mjs +212 -0
- package/dist/ScreenShotTool-CPrA7pEa.mjs +357 -0
- package/dist/SectionTool-Du-V6U-J.mjs +217 -0
- package/dist/SettingTool-X6AjiptI.mjs +691 -0
- package/dist/StructureTree-CHhrQiDL.mjs +1591 -0
- package/dist/XRayTool-Ci1SR92x.mjs +57 -0
- package/dist/alert-BzjOjWCu.mjs +46 -0
- package/dist/const-DeViLYl5.mjs +266 -0
- package/dist/el-checkbox-DeNYO9VE.mjs +460 -0
- package/dist/el-input-number-CsUyeV_5.mjs +858 -0
- package/dist/index-CBO0Vhj8.mjs +99354 -0
- package/dist/index.html +17 -0
- package/dist/panel.vue_vue_type_style_index_0_lang-CUi6naB0.mjs +61 -0
- package/dist/style.css +1 -0
- package/dist/tallPanel-D226sbKd.mjs +84 -0
- package/package.json +65 -0
- package/types/App.vue.d.ts +2 -0
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +55 -0
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +59 -0
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +18 -0
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +14 -0
- package/types/components/BCFComponents/BCFTool.vue.d.ts +15 -0
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +16 -0
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +11 -0
- package/types/components/BCFComponents/commentInput.vue.d.ts +51 -0
- package/types/components/BCFComponents/commentsView.vue.d.ts +48 -0
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +15 -0
- package/types/components/BCFComponents/imageView.vue.d.ts +17 -0
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +9 -0
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +14 -0
- package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +6 -0
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/InspectorTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/MeasureTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/MouseTool.vue.d.ts +6 -0
- package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/RoamTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/ScreenShotTool.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/SectionTool.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/SettingTool.vue.d.ts +13 -0
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +3053 -0
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/XRayTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +27 -0
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +56 -0
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +55 -0
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +278 -0
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +255 -0
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +15 -0
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +54 -0
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +17 -0
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +12 -0
- package/types/components/index.d.ts +3 -0
- package/types/components/industryViewer.vue.d.ts +18 -0
- package/types/components/utilsComponents/alert.vue.d.ts +32 -0
- package/types/components/utilsComponents/closeButton.vue.d.ts +50 -0
- package/types/components/utilsComponents/closeButton_dark.vue.d.ts +32 -0
- package/types/components/utilsComponents/emptyPage.vue.d.ts +6 -0
- package/types/components/utilsComponents/loading.vue.d.ts +2 -0
- package/types/components/utilsComponents/panel.vue.d.ts +47 -0
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +106 -0
- package/types/components/utilsComponents/tallPanel.vue.d.ts +69 -0
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +82 -0
- package/types/index.d.ts +31 -0
- package/types/main.d.ts +1 -0
- package/types/pages/viewerEntry.vue.d.ts +59 -0
- package/types/services/request/config.d.ts +8 -0
- package/types/store/bcfManager.d.ts +11 -0
- package/types/store/bcfReflect.d.ts +88 -0
- package/types/store/const.d.ts +211 -0
- package/types/store/initConfigs.d.ts +58 -0
- package/types/store/propertyReflect.d.ts +1 -0
- package/types/store/themeManager.d.ts +8 -0
- package/types/store/toolbars.d.ts +392 -0
- package/types/utils/OSSHelper.d.ts +4 -0
- package/types/utils/cacheInfo.d.ts +20 -0
- package/types/utils/dateFormat.d.ts +2 -0
- package/types/utils/dpscan.d.ts +1 -0
- package/types/utils/eventBus.d.ts +86 -0
- package/types/utils/roles.d.ts +1 -0
- package/types/utils/splitType.d.ts +3 -0
- package/types/utils/timer.d.ts +9 -0
- package/types/viewerManager/initial/viewerInitial.d.ts +7 -0
- package/types/viewerManager/load/loadModel.d.ts +1 -0
- package/types/viewerManager/viewerManager.d.ts +12 -0
package/README.md
ADDED
|
@@ -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
|
+
};
|