@xtctwins/tctwins-bimx-engine 0.3.9 → 0.3.11
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-BN1cQJZT.mjs → AnnotationTool-BnLd0s38.mjs} +2 -2
- package/dist/AnnotationTool-Bp8DGFFA.mjs +167 -0
- package/dist/BIMX_Viewer_Lib.es.js +1 -1
- package/dist/BIMX_Viewer_Lib.umd.js +119 -119
- package/dist/{CameraViewTool-DoHrCSBa.mjs → CameraViewTool-BGmwAori.mjs} +1 -1
- package/dist/CameraViewTool-BwVnc0ua.mjs +164 -0
- package/dist/{CommentTool-DzpiIRq5.mjs → CommentTool-B9TgO52t.mjs} +1 -1
- package/dist/CommentTool-C7NLPxMd.mjs +1529 -0
- package/dist/{HiddenTool-DKl-Td4d.mjs → HiddenTool-CNMJqZzC.mjs} +1 -1
- package/dist/HiddenTool-i1AESn4-.mjs +57 -0
- package/dist/{InspectorTool-ButMlfJZ.mjs → InspectorTool-CiyN_aCB.mjs} +29 -28
- package/dist/InspectorTool-D4gr7uiQ.mjs +679 -0
- package/dist/{MeasureTool-HA7KurNk.mjs → MeasureTool-BNBUx-1X.mjs} +2 -2
- package/dist/MeasureTool-Cxnp9MVY.mjs +323 -0
- package/dist/{MouseTool-Cx7FUkja.mjs → MouseTool-B07SstRZ.mjs} +1 -1
- package/dist/MouseTool-DVqNDADf.mjs +84 -0
- package/dist/{NavigateTool-CHspxjfw.mjs → NavigateTool-B8qIl9xy.mjs} +1 -1
- package/dist/NavigateTool-DKTSPVCL.mjs +52 -0
- package/dist/{RoamTool-CvErAJ4s.mjs → RoamTool-3sDI1Ouu.mjs} +1 -1
- package/dist/RoamTool-CazuxheL.mjs +287 -0
- package/dist/{ScreenShotTool-BKFYnVZ5.mjs → ScreenShotTool-CjsT2-Va.mjs} +2 -2
- package/dist/ScreenShotTool-fYVxpPrW.mjs +430 -0
- package/dist/{SectionTool-Dc_qndpy.mjs → SectionTool-Bpk5jewK.mjs} +4 -4
- package/dist/SectionTool-DMSGkjYm.mjs +331 -0
- package/dist/{SettingTool-BYVwI27m.mjs → SettingTool-BuSm2JB6.mjs} +3 -3
- package/dist/SettingTool-IBRpWdfo.mjs +695 -0
- package/dist/{StructureTree-CNrEg0TP.mjs → StructureTree-B183vT5b.mjs} +3 -3
- package/dist/StructureTree-D9z28tm4.mjs +1686 -0
- package/dist/{alert-BE0cXifr.mjs → alert-DN7oOiZl.mjs} +1 -1
- package/dist/alert-DwTFq4bp.mjs +47 -0
- package/dist/{el-slider-D_kA0TiT.mjs → el-slider-C9_q447A.mjs} +1 -1
- package/dist/el-slider-dslleM3g.mjs +1059 -0
- package/dist/index-BzB8rqmg.mjs +131961 -0
- package/dist/{index-s9bhlFsR.mjs → index-DfRswjrC.mjs} +19136 -18956
- package/dist/{panel.vue_vue_type_style_index_0_lang-D0m8xJuR.mjs → panel.vue_vue_type_style_index_0_lang-DOsptET6.mjs} +1 -1
- package/dist/panel.vue_vue_type_style_index_0_lang-E8w23EhV.mjs +61 -0
- package/dist/style.css +1 -1
- package/dist/{tallPanel-C_lzWM4i.mjs → tallPanel-D0Zgkc3n.mjs} +1 -1
- package/dist/tallPanel-Dp1ZbCTR.mjs +84 -0
- package/package.json +3 -2
- package/types/viewerManager/load/loadModel.d.ts +23 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as y, onMounted as E, ref as k, onBeforeUnmount as B, openBlock as s, createElementBlock as l, createElementVNode as r, Fragment as C, renderList as H, unref as c, normalizeClass as w, toDisplayString as I } from "vue";
|
|
2
|
-
import { F as S, G as T, I as m, P as A, H as O, M as x } from "./index-
|
|
2
|
+
import { F as S, G as T, I as m, P as A, H as O, M as x } from "./index-DfRswjrC.mjs";
|
|
3
3
|
import { H as j } from "./const-DOnRsYpZ.mjs";
|
|
4
4
|
const D = { class: "hidden_wrapper" }, L = { class: "hidden_content" }, M = ["onClick"], F = ["src"], N = /* @__PURE__ */ y({
|
|
5
5
|
__name: "HiddenTool",
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { defineComponent as y, onMounted as E, ref as k, onBeforeUnmount as B, openBlock as s, createElementBlock as l, createElementVNode as r, Fragment as C, renderList as H, unref as c, normalizeClass as w, toDisplayString as I } from "vue";
|
|
2
|
+
import { F as S, G as T, I as m, P as A, H as O, M as x } from "./index-BzB8rqmg.mjs";
|
|
3
|
+
import { H as j } from "./const-DOnRsYpZ.mjs";
|
|
4
|
+
const D = { class: "hidden_wrapper" }, L = { class: "hidden_content" }, M = ["onClick"], F = ["src"], N = /* @__PURE__ */ y({
|
|
5
|
+
__name: "HiddenTool",
|
|
6
|
+
props: ["componentId"],
|
|
7
|
+
emits: ["closePanel", "emitHandler"],
|
|
8
|
+
setup(u, { emit: P }) {
|
|
9
|
+
const _ = S(), o = T(), b = u;
|
|
10
|
+
E(() => {
|
|
11
|
+
o.setReadyById(b.componentId);
|
|
12
|
+
});
|
|
13
|
+
const i = k(0), d = () => {
|
|
14
|
+
const { eventTrigger: e } = window.bimViewer;
|
|
15
|
+
O("isMobile") ? e.on("touchEntity", (n) => {
|
|
16
|
+
!window.bimViewer.disableClickEvent || !o.isToolActiveBykey("hidden") || a(n);
|
|
17
|
+
}) : e.on("pickedEntity", (n) => {
|
|
18
|
+
!window.bimViewer.disableClickEvent || !o.isToolActiveBykey("hidden") || a(n);
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
m.on("BimViewer", d), B(() => {
|
|
22
|
+
m.off("BimViewer", d);
|
|
23
|
+
});
|
|
24
|
+
const a = (e) => {
|
|
25
|
+
i.value != -1 && (i.value == 1 ? f(e) : i.value == 2 ? v(e) : i.value == 3 && h(e));
|
|
26
|
+
}, f = (e) => {
|
|
27
|
+
window.bimViewer.setEntityVisible(e);
|
|
28
|
+
}, v = (e) => {
|
|
29
|
+
window.bimViewer.setEntityHighlighted(e);
|
|
30
|
+
}, h = (e) => {
|
|
31
|
+
window.bimViewer.setEntitySelected(e);
|
|
32
|
+
}, p = () => {
|
|
33
|
+
window.bimViewer.setAllObjectsVisible(!0), window.bimViewer.setAllObjectsHighlighted(!1), window.bimViewer.setAllObjectsSelected(!1);
|
|
34
|
+
}, g = (e) => {
|
|
35
|
+
e == 0 ? (i.value = e, p()) : i.value = e;
|
|
36
|
+
};
|
|
37
|
+
return (e, n) => (s(), l("div", D, [
|
|
38
|
+
r("div", L, [
|
|
39
|
+
(s(!0), l(C, null, H(c(j), (t, V) => (s(), l("div", {
|
|
40
|
+
key: V,
|
|
41
|
+
class: w(["button_", { button_active: i.value == t.id }]),
|
|
42
|
+
onClick: (R) => g(t.id)
|
|
43
|
+
}, [
|
|
44
|
+
r("img", {
|
|
45
|
+
src: c(A) + `/bim-viewer/hidden-bar/new-icon/bimkk-mobile-hidden-${i.value == t.id ? t.img_active : t.img}.svg`
|
|
46
|
+
}, null, 8, F),
|
|
47
|
+
r("span", {
|
|
48
|
+
class: w({ active_text: i.value == t.id })
|
|
49
|
+
}, I(c(_)(t.name)), 3)
|
|
50
|
+
], 10, M))), 128))
|
|
51
|
+
])
|
|
52
|
+
]));
|
|
53
|
+
}
|
|
54
|
+
}), G = /* @__PURE__ */ x(N, [["__scopeId", "data-v-a3ff9c01"]]);
|
|
55
|
+
export {
|
|
56
|
+
G as default
|
|
57
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as ee, F as te, G as ne, I as
|
|
2
|
-
import { _ as ae } from "./tallPanel-
|
|
3
|
-
import { _ as le } from "./panel.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { O as ee, F as te, G as ne, I as D, H as v, T as N, K as oe, P as H, L as se, M as ie } from "./index-BzB8rqmg.mjs";
|
|
2
|
+
import { _ as ae } from "./tallPanel-Dp1ZbCTR.mjs";
|
|
3
|
+
import { _ as le } from "./panel.vue_vue_type_style_index_0_lang-DOsptET6.mjs";
|
|
4
4
|
import { defineComponent as ce, onMounted as re, ref as W, reactive as G, watch as _e, onBeforeUnmount as pe, openBlock as c, createElementBlock as r, Fragment as y, unref as n, createBlock as Q, withCtx as I, withDirectives as d, createElementVNode as e, createVNode as B, toDisplayString as t, vShow as m, renderList as f, createCommentVNode as O } from "vue";
|
|
5
5
|
const Z = {
|
|
6
6
|
ExtendToStructure: "扩建物",
|
|
@@ -259,16 +259,16 @@ function k(C, b) {
|
|
|
259
259
|
const o = C.trim().toLowerCase().replace(/\s+/g, "");
|
|
260
260
|
return (b || ee().locale) === "en-US" ? C : ue[o] || C;
|
|
261
261
|
}
|
|
262
|
-
const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src"], ye = { class: "properties_content" }, ve = { class: "basic_info_title" }, fe = { class: "basic_info_value" }, Ce = { class: "propertysets" }, ge = ["onClick"], Pe = { class: "title" }, be = ["src"], Te = { class: "properties_content" }, Se = { class: "content_title_value" }, Ie = { class: "content_title" }, ke = { class: "content_value" }, Re = { class: "myInspector_empty" }, we = ["src"],
|
|
262
|
+
const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src"], ye = { class: "properties_content" }, ve = { class: "basic_info_title" }, fe = { class: "basic_info_value" }, Ce = { class: "propertysets" }, ge = ["onClick"], Pe = { class: "title" }, be = ["src"], Te = { class: "properties_content" }, Se = { class: "content_title_value" }, Ie = { class: "content_title" }, ke = { class: "content_value" }, Re = { class: "myInspector_empty" }, we = ["src"], xe = {
|
|
263
263
|
class: "pc_Inspector_type_button",
|
|
264
264
|
style: { display: "none" }
|
|
265
|
-
},
|
|
265
|
+
}, Ee = { class: "type_button" }, De = { class: "type_button" }, Be = { class: "pc_Inspector_content" }, Fe = { class: "pc_myInspector_content" }, Me = { class: "title" }, Le = ["src"], Oe = { class: "properties_content" }, je = { class: "basic_info_title" }, Ve = { class: "basic_info_value" }, Ae = { class: "propertysets" }, Ne = ["onClick"], He = { class: "title" }, We = ["src"], Ue = { class: "properties_content" }, $e = { class: "content_title_value" }, ze = { class: "content_title" }, Ke = { class: "content_value" }, qe = { class: "pc_model_info" }, Ge = { class: "model_info_content" }, Qe = { class: "model_info_value" }, Ze = { class: "model_info_content" }, Je = { class: "model_info_value" }, Xe = {
|
|
266
266
|
key: 0,
|
|
267
267
|
class: "model_info_content"
|
|
268
268
|
}, Ye = { class: "model_info_value" }, et = { class: "model_info_content" }, tt = { class: "model_info_value" }, nt = {
|
|
269
269
|
key: 2,
|
|
270
270
|
class: "mobile_myInspector_wrapper"
|
|
271
|
-
}, ot = { class: "detail-title-box" }, st = { class: "detail-title" }, it = { class: "detail-title-icon" }, at = { class: "mobile_myInspector" }, lt = { class: "mobile_myInspector_content" }, ct = { class: "basic_info_title" }, rt = ["src"], _t = { class: "basic_info_content" }, pt = { class: "basic_info_content_value" }, ut = { class: "content_title" }, dt = { class: "content_value" }, mt = { class: "basic_info_content_value" }, ht = { class: "content_value" }, yt = { class: "basic_info_content_value" }, vt = { class: "content_title" }, ft = { class: "content_value" }, Ct = { class: "propertysets" }, gt = ["onClick"], Pt = { class: "propertysets_title" }, bt = ["src"], Tt = { class: "properties_content" }, St = { class: "content_title_value" }, It = { class: "content_title" }, kt = { class: "content_value" }, Rt = { class: "mobile_Inspector_empty" }, wt = { class: "model_info_value" },
|
|
271
|
+
}, ot = { class: "detail-title-box" }, st = { class: "detail-title" }, it = { class: "detail-title-icon" }, at = { class: "mobile_myInspector" }, lt = { class: "mobile_myInspector_content" }, ct = { class: "basic_info_title" }, rt = ["src"], _t = { class: "basic_info_content" }, pt = { class: "basic_info_content_value" }, ut = { class: "content_title" }, dt = { class: "content_value" }, mt = { class: "basic_info_content_value" }, ht = { class: "content_value" }, yt = { class: "basic_info_content_value" }, vt = { class: "content_title" }, ft = { class: "content_value" }, Ct = { class: "propertysets" }, gt = ["onClick"], Pt = { class: "propertysets_title" }, bt = ["src"], Tt = { class: "properties_content" }, St = { class: "content_title_value" }, It = { class: "content_title" }, kt = { class: "content_value" }, Rt = { class: "mobile_Inspector_empty" }, wt = { class: "model_info_value" }, xt = { class: "model_info_value" }, Et = { class: "model_info_value" }, Dt = { class: "model_info_value" }, Bt = /* @__PURE__ */ ce({
|
|
272
272
|
__name: "InspectorTool",
|
|
273
273
|
props: ["componentId"],
|
|
274
274
|
emits: ["closePanel", "emitHandler"],
|
|
@@ -308,6 +308,7 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
308
308
|
const { eventTrigger: i } = L;
|
|
309
309
|
let l = 0;
|
|
310
310
|
i.on("metaLoaded", (u) => {
|
|
311
|
+
if ((u == null ? void 0 : u.result) !== "success") return;
|
|
311
312
|
const _ = window.bimViewer.getModelInfo(u.metaModel.id);
|
|
312
313
|
v("multiModel") ? l == 0 ? (a.objectCount = _.objectCount !== 0 ? _.objectCount : 0, a.pSetsCount = _.propertySetCount !== 0 ? _.propertySetCount : 0, a.author = _.author !== "" ? _.author : "未知") : (a.objectCount = a.objectCount += _.objectCount, a.pSetsCount = a.pSetsCount += _.propertySetCount, a.author = _.author !== "" ? a.author += `, ${_.author}` : a.author.includes("未知") ? a.author : a.author += ", 未知") : (a.createDate = _.createDate !== "" ? _.createDate.replace("T", " ") : "未知", a.objectCount = _.objectCount !== 0 ? _.objectCount : "未知", a.pSetsCount = _.propertySetCount !== 0 ? _.propertySetCount : "未知", a.author = _.author !== "" ? _.author : "未知"), l += 1;
|
|
313
314
|
}), v("isMobile") || i.on("pickedEntity", (u) => {
|
|
@@ -329,8 +330,8 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
329
330
|
const l = L.getObjectProperties(i.id);
|
|
330
331
|
l && (R.value = i.id, h.value = !0, q(l));
|
|
331
332
|
};
|
|
332
|
-
|
|
333
|
-
|
|
333
|
+
D.on("BimViewer", z), D.on("tree_clickNode", K), pe(() => {
|
|
334
|
+
D.off("BimViewer", z), D.off("tree_clickNode", K);
|
|
334
335
|
});
|
|
335
336
|
const V = (i, l) => {
|
|
336
337
|
if (R.value = i, h.value = !0, !F.isToolActive(M.componentId)) return;
|
|
@@ -351,7 +352,7 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
351
352
|
}
|
|
352
353
|
});
|
|
353
354
|
}, A = () => {
|
|
354
|
-
|
|
355
|
+
D.emit("hideToolbar", !1), U("closePanel");
|
|
355
356
|
}, T = (i) => {
|
|
356
357
|
i.expanded = !i.expanded;
|
|
357
358
|
}, S = (i) => i ? `${H}/bim-viewer/down_icon.png` : `${H}/bim-viewer/right_icon.png`, q = (i) => {
|
|
@@ -416,16 +417,16 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
416
417
|
]),
|
|
417
418
|
d(e("div", Te, [
|
|
418
419
|
e("ul", Se, [
|
|
419
|
-
(c(!0), r(y, null, f(p.properties, (g,
|
|
420
|
-
key:
|
|
420
|
+
(c(!0), r(y, null, f(p.properties, (g, x) => (c(), r("li", {
|
|
421
|
+
key: x,
|
|
421
422
|
class: "properties"
|
|
422
423
|
}, [
|
|
423
|
-
(c(!0), r(y, null, f(g, (
|
|
424
|
+
(c(!0), r(y, null, f(g, (E, P) => (c(), r("div", {
|
|
424
425
|
class: "title_value",
|
|
425
426
|
key: P
|
|
426
427
|
}, [
|
|
427
428
|
e("span", Ie, t(n(k)(P)), 1),
|
|
428
|
-
e("span", ke, t(
|
|
429
|
+
e("span", ke, t(E), 1)
|
|
429
430
|
]))), 128))
|
|
430
431
|
]))), 128))
|
|
431
432
|
])
|
|
@@ -459,9 +460,9 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
459
460
|
pos: n(v)("inspectorPos")
|
|
460
461
|
}, {
|
|
461
462
|
default: I(() => [
|
|
462
|
-
e("div",
|
|
463
|
-
e("div",
|
|
464
|
-
e("div",
|
|
463
|
+
e("div", xe, [
|
|
464
|
+
e("div", Ee, t(n(o)("inspector.instanceProperties")), 1),
|
|
465
|
+
e("div", De, t(n(o)("inspector.typeProperties")), 1)
|
|
465
466
|
]),
|
|
466
467
|
e("div", Be, [
|
|
467
468
|
d(e("div", Fe, [
|
|
@@ -508,16 +509,16 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
508
509
|
]),
|
|
509
510
|
d(e("div", Ue, [
|
|
510
511
|
e("ul", $e, [
|
|
511
|
-
(c(!0), r(y, null, f(p.properties, (g,
|
|
512
|
-
key:
|
|
512
|
+
(c(!0), r(y, null, f(p.properties, (g, x) => (c(), r("li", {
|
|
513
|
+
key: x,
|
|
513
514
|
class: "properties"
|
|
514
515
|
}, [
|
|
515
|
-
(c(!0), r(y, null, f(g, (
|
|
516
|
+
(c(!0), r(y, null, f(g, (E, P) => (c(), r("div", {
|
|
516
517
|
class: "title_value",
|
|
517
518
|
key: P
|
|
518
519
|
}, [
|
|
519
520
|
e("span", ze, t(n(k)(P)), 1),
|
|
520
|
-
e("span", Ke, t(
|
|
521
|
+
e("span", Ke, t(E), 1)
|
|
521
522
|
]))), 128))
|
|
522
523
|
]))), 128))
|
|
523
524
|
])
|
|
@@ -620,16 +621,16 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
620
621
|
]),
|
|
621
622
|
d(e("div", Tt, [
|
|
622
623
|
e("ul", St, [
|
|
623
|
-
(c(!0), r(y, null, f(p.properties, (g,
|
|
624
|
-
key:
|
|
624
|
+
(c(!0), r(y, null, f(p.properties, (g, x) => (c(), r("li", {
|
|
625
|
+
key: x,
|
|
625
626
|
class: "properties"
|
|
626
627
|
}, [
|
|
627
|
-
(c(!0), r(y, null, f(g, (
|
|
628
|
+
(c(!0), r(y, null, f(g, (E, P) => (c(), r("div", {
|
|
628
629
|
class: "title_value",
|
|
629
630
|
key: P
|
|
630
631
|
}, [
|
|
631
632
|
e("span", It, t(n(k)(P)), 1),
|
|
632
|
-
e("span", kt, t(
|
|
633
|
+
e("span", kt, t(E), 1)
|
|
633
634
|
]))), 128))
|
|
634
635
|
]))), 128))
|
|
635
636
|
])
|
|
@@ -651,15 +652,15 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
651
652
|
]),
|
|
652
653
|
e("div", null, [
|
|
653
654
|
e("span", null, t(n(o)("inspector.pSetsCount")), 1),
|
|
654
|
-
e("span",
|
|
655
|
+
e("span", xt, t(a.pSetsCount), 1)
|
|
655
656
|
]),
|
|
656
657
|
e("div", null, [
|
|
657
658
|
e("span", null, t(n(o)("bcf.createDate")), 1),
|
|
658
|
-
e("span",
|
|
659
|
+
e("span", Et, t(a.createDate), 1)
|
|
659
660
|
]),
|
|
660
661
|
e("div", null, [
|
|
661
662
|
e("span", null, t(n(o)("inspector.author")), 1),
|
|
662
|
-
e("span",
|
|
663
|
+
e("span", Dt, t(a.author), 1)
|
|
663
664
|
])
|
|
664
665
|
], 512), [
|
|
665
666
|
[m, !h.value]
|
|
@@ -672,7 +673,7 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
672
673
|
], 64);
|
|
673
674
|
};
|
|
674
675
|
}
|
|
675
|
-
}), jt = /* @__PURE__ */ ie(Bt, [["__scopeId", "data-v-
|
|
676
|
+
}), jt = /* @__PURE__ */ ie(Bt, [["__scopeId", "data-v-29a01182"]]);
|
|
676
677
|
export {
|
|
677
678
|
jt as default
|
|
678
679
|
};
|