@xtctwins/tctwins-bimx-engine 0.1.7 → 0.1.9
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/dist/AnnotationTool-D_N41bUe.mjs +137 -0
- package/dist/BIMX_Viewer_Lib.es.js +8 -0
- package/dist/BIMX_Viewer_Lib.umd.js +90142 -0
- package/dist/CommentTool-DofLQEL5.mjs +332 -0
- package/dist/InspectorTool-jQF2Tl6S.mjs +467 -0
- package/dist/MeasureTool-B7syvSXk.mjs +1547 -0
- package/dist/NavigateTool-C0wPkJWe.mjs +57 -0
- package/dist/RoamTool-CZagZdsF.mjs +208 -0
- package/dist/ScreenShotTool-B4RIRDcm.mjs +367 -0
- package/dist/SectionTool-CrbNIiDD.mjs +605 -0
- package/dist/SettingTool-DUi16-tZ.mjs +546 -0
- package/dist/StructureTree-B0rAglK8.mjs +2648 -0
- package/dist/closeButton.vue_vue_type_style_index_0_scope_true_lang-BOheGDib.mjs +41 -0
- package/dist/const-DouzcHib.mjs +354 -0
- package/dist/debounce-Dj3KzjpE.mjs +80 -0
- package/dist/el-checkbox-RjSnAIZv.mjs +479 -0
- package/dist/el-input-CJX0Gxw2.mjs +845 -0
- package/dist/el-input-number-Cu0KV8ED.mjs +847 -0
- package/dist/index-DPcMEaOI.mjs +94471 -0
- package/dist/index-DZHb2lLh.mjs +199 -0
- package/dist/index.html +17 -0
- package/dist/isEqual-CnD5qzoW.mjs +306 -0
- package/dist/style.css +1 -0
- package/dist/token-UNVJeAU8.mjs +5 -0
- package/package.json +8 -3
- package/types/BIMX_Viewer_Initial/viewerInitial.d.ts +16 -0
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +16 -0
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +14 -0
- package/types/components/BimViewerComponents/InspectorTool.vue.d.ts +14 -0
- package/types/components/BimViewerComponents/MeasureTool.vue.d.ts +14 -0
- package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/RoamTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/ScreenShotTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/SectionTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/SettingTool.vue.d.ts +6 -0
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +8 -0
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +8 -0
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +12 -0
- package/types/components/BimX_Viewer.vue.d.ts +23 -0
- package/types/components/index.d.ts +4 -0
- package/types/components/utilsComponents/closeButton.vue.d.ts +41 -0
- package/types/index.d.ts +13 -0
- package/types/main.d.ts +1 -0
- package/types/pages/BIMXViewer.vue.d.ts +23 -0
- package/types/services/request/config.d.ts +13 -0
- package/types/store/components.d.ts +6 -0
- package/types/store/const.d.ts +216 -0
- package/types/store/ifcPropertyReflect.d.ts +1 -0
- package/types/store/initConfigs.d.ts +36 -0
- package/types/store/toolbars.d.ts +116 -0
- package/types/utils/OSSHelper.d.ts +5 -0
- package/types/utils/cacheInfo.d.ts +20 -0
- package/types/utils/dpscan.d.ts +1 -0
- package/types/utils/eventBus.d.ts +44 -0
- package/types/utils/roles.d.ts +1 -0
- package/types/utils/splitType.d.ts +3 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { a1 as y, p as S, q as u, O as e, s as M, x } from "./index-DPcMEaOI.mjs";
|
|
2
|
+
import { defineComponent as E, ref as v, onMounted as N, watch as W, openBlock as a, createElementBlock as s, unref as c, createElementVNode as t, Fragment as g, renderList as b, normalizeClass as w, createCommentVNode as X, createVNode as L, withCtx as O, toDisplayString as q, pushScopeId as D, popScopeId as H } from "vue";
|
|
3
|
+
import { A as T } from "./const-DouzcHib.mjs";
|
|
4
|
+
const f = (l) => (D("data-v-5015747d"), l = l(), H(), l), z = { class: "annotation_component" }, F = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "annotation_toolbar",
|
|
7
|
+
id: "annotation_toolbar"
|
|
8
|
+
}, R = { class: "annotation_toolbar_wrapper" }, U = { class: "annotation_toolbar_group" }, j = ["onClick", "id"], G = ["src"], J = /* @__PURE__ */ f(() => /* @__PURE__ */ t("div", { class: "toolbar_trangle" }, null, -1)), K = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "mobile_annotation_toolbar"
|
|
11
|
+
}, P = /* @__PURE__ */ f(() => /* @__PURE__ */ t("div", { class: "label-title-box" }, [
|
|
12
|
+
/* @__PURE__ */ t("div", { class: "label-title" }, "标注")
|
|
13
|
+
], -1)), Q = { class: "label-list" }, Y = ["onClick"], Z = { class: "item-img" }, nn = ["src"], on = ["src"], tn = { class: "item-name" }, en = /* @__PURE__ */ E({
|
|
14
|
+
__name: "AnnotationTool",
|
|
15
|
+
props: ["componentInfo"],
|
|
16
|
+
emits: ["uploadImage", "clickAnnotation", "emitHandler"],
|
|
17
|
+
setup(l, { emit: A }) {
|
|
18
|
+
const h = A, r = (n) => {
|
|
19
|
+
h("emitHandler", n);
|
|
20
|
+
};
|
|
21
|
+
let d;
|
|
22
|
+
const i = v("");
|
|
23
|
+
let _;
|
|
24
|
+
const I = v();
|
|
25
|
+
N(() => {
|
|
26
|
+
I.value = y();
|
|
27
|
+
}), W(l, (n) => {
|
|
28
|
+
n.componentInfo.isOpen ? window.BimViewer.SetAnnotationToolActive(!0) : window.BimViewer.SetAnnotationToolActive(!1);
|
|
29
|
+
});
|
|
30
|
+
let B = {
|
|
31
|
+
image: `${e}/BIMX_Website/main/mainView/function_icon/annotation_icons/image_active.png`,
|
|
32
|
+
file: `${e}/BIMX_Website/main/mainView/function_icon/annotation_icons/file_active.png`,
|
|
33
|
+
record: `${e}/BIMX_Website/main/mainView/function_icon/annotation_icons/record_active.png`,
|
|
34
|
+
text: `${e}/BIMX_Website/main/mainView/function_icon/annotation_icons/text_active.png`,
|
|
35
|
+
video: `${e}/BIMX_Website/main/mainView/function_icon/annotation_icons/video_active.png`
|
|
36
|
+
};
|
|
37
|
+
S.on("BimViewer", () => {
|
|
38
|
+
d = window.BimViewer.annotationTool, d.setTypeImage(B), _ = window.BimViewer.eventTrigger, _.on("createAnnotation", (n) => {
|
|
39
|
+
r({
|
|
40
|
+
isTool: !0,
|
|
41
|
+
event_target: "AnnotationTool",
|
|
42
|
+
event_name: "createAnnotation",
|
|
43
|
+
content: {
|
|
44
|
+
currentAnnotation: n.currentAnnotation
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}), _.on("markerClicked", (n) => {
|
|
48
|
+
r({
|
|
49
|
+
isTool: !0,
|
|
50
|
+
event_target: "AnnotationTool",
|
|
51
|
+
event_name: "clickAnnotation",
|
|
52
|
+
content: {
|
|
53
|
+
targetAnno: n
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}), u() || _.on("requestDeleteMarker", (n) => {
|
|
57
|
+
r({
|
|
58
|
+
isTool: !0,
|
|
59
|
+
event_target: "AnnotationTool",
|
|
60
|
+
event_name: "requestDelAnno",
|
|
61
|
+
content: {
|
|
62
|
+
msg: "请求删除指定标注",
|
|
63
|
+
annoId: n
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
const p = (n) => {
|
|
69
|
+
i.value === n.code ? i.value = "" : (k(n), i.value = n.code);
|
|
70
|
+
}, V = (n) => {
|
|
71
|
+
window.BimViewer.annotationTool.setEnabled(n);
|
|
72
|
+
}, k = (n) => {
|
|
73
|
+
V(!0), window.BimViewer.annotationTool.setCurrentType(n.code), r({
|
|
74
|
+
isTool: !0,
|
|
75
|
+
event_target: "AnnotationTool",
|
|
76
|
+
event_name: "clickAnnoTool",
|
|
77
|
+
content: {
|
|
78
|
+
item: n,
|
|
79
|
+
tool_type: n.code
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
return (n, sn) => {
|
|
84
|
+
const C = M;
|
|
85
|
+
return a(), s("div", z, [
|
|
86
|
+
c(u)() ? (a(), s("div", K, [
|
|
87
|
+
P,
|
|
88
|
+
L(C, null, {
|
|
89
|
+
default: O(() => [
|
|
90
|
+
t("div", Q, [
|
|
91
|
+
(a(!0), s(g, null, b(c(T), (o, m) => (a(), s("div", {
|
|
92
|
+
key: m,
|
|
93
|
+
class: w(["label-item", { "label-item-active": i.value === o.code }]),
|
|
94
|
+
onClick: ($) => p(o)
|
|
95
|
+
}, [
|
|
96
|
+
t("div", Z, [
|
|
97
|
+
t("img", {
|
|
98
|
+
class: "label-item-img",
|
|
99
|
+
src: c(e) + `/bim-viewer/label-bar/${i.value === o.code ? o.imgActive : o.img}.svg`,
|
|
100
|
+
alt: ""
|
|
101
|
+
}, null, 8, nn),
|
|
102
|
+
t("img", {
|
|
103
|
+
class: "label-item-icon",
|
|
104
|
+
src: c(e) + "/member-images/open-member-icon.png",
|
|
105
|
+
alt: ""
|
|
106
|
+
}, null, 8, on)
|
|
107
|
+
]),
|
|
108
|
+
t("div", tn, q(o.name), 1)
|
|
109
|
+
], 10, Y))), 128))
|
|
110
|
+
])
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
})
|
|
114
|
+
])) : (a(), s("div", F, [
|
|
115
|
+
t("div", R, [
|
|
116
|
+
t("div", U, [
|
|
117
|
+
(a(!0), s(g, null, b(c(T), (o, m) => (a(), s("button", {
|
|
118
|
+
onClick: ($) => p(o),
|
|
119
|
+
class: w(["annotation_tool_btn", { active: i.value === o.code }]),
|
|
120
|
+
id: `annotation_tool_btn_${m}`
|
|
121
|
+
}, [
|
|
122
|
+
X("", !0),
|
|
123
|
+
t("img", {
|
|
124
|
+
src: `${c(e)}/BIMX_Website/main/mainView/function_icon/annotation_icons/${i.value !== o.code ? o.img : o.img_active}.png`
|
|
125
|
+
}, null, 8, G)
|
|
126
|
+
], 10, j))), 256))
|
|
127
|
+
])
|
|
128
|
+
]),
|
|
129
|
+
J
|
|
130
|
+
]))
|
|
131
|
+
]);
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
}), _n = /* @__PURE__ */ x(en, [["__scopeId", "data-v-5015747d"]]);
|
|
135
|
+
export {
|
|
136
|
+
_n as default
|
|
137
|
+
};
|