@vsleem-realsee-viewer/projection-plugin 2.0.26 → 2.0.28
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.internal.md +1 -8
- package/dist/{BimControl-DK6r3RsG.mjs → BimControl-DPg5QYmB.mjs} +17 -14
- package/dist/{CadControl-Ci05-ZLE.mjs → CadControl-CylMTkgu.mjs} +30 -28
- package/dist/{GeoControl-BIk3zYKz.mjs → GeoControl-sIefMngV.mjs} +2612 -2222
- package/dist/ScaleControl-OM5oUJIt.mjs +75 -0
- package/dist/components/BimControl.vue.d.ts +6 -9
- package/dist/components/CadControl.vue.d.ts +5 -9
- package/dist/components/ConfigProvider.vue.d.ts +2 -2
- package/dist/components/GeoControl.vue.d.ts +6 -10
- package/dist/components/ProjectionViewer.vue.d.ts +13 -7
- package/dist/components/ScaleControl.vue.d.ts +3 -7
- package/dist/components/SpaceMapViewer.vue.d.ts +3 -2
- package/dist/enums/index.d.ts +3 -4
- package/dist/{index-CGohpb9V.mjs → index-Bp2b1_wb.mjs} +4575 -4557
- package/dist/{index-DalKZ4tG.mjs → index-RN8boWFZ.mjs} +13 -13
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.mjs +6 -7
- package/dist/index.umd.js +56 -52
- package/dist/{ja_JP-C_c0TAsg.mjs → ja_JP-Dg2TvGK4.mjs} +1 -1
- package/dist/types/antd.d.ts +0 -10
- package/dist/types/projection.d.ts +13 -3
- package/package.json +3 -3
- package/dist/ScaleControl-Dz7X996B.mjs +0 -72
package/README.internal.md
CHANGED
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
| ---------------- | ------------- | ------------------------ | ---------------------------- |
|
|
52
52
|
| `baseUrl?` | `string` | `https://vsleem.com/api` | 用于配置应用后端服务的根路径 |
|
|
53
53
|
| `authorizeCode` | `string` | - | 用于API身份验证和授权的凭证 |
|
|
54
|
-
| `theme?` | `ThemeConfig` | - | 主题配置 |
|
|
55
54
|
| `locale?` | `string` | `LocaleType.zh_CN` | 当前语言 |
|
|
55
|
+
| `theme?` | `ThemeConfig` | - | 主题配置 |
|
|
56
56
|
| `flattenPicker?` | `boolean` | `false` | 选项扁平化 |
|
|
57
57
|
| `showTitleHead?` | `boolean` | `true` | 是否显示标题头 |
|
|
58
58
|
|
|
@@ -89,13 +89,6 @@ type ProjectionModel = {
|
|
|
89
89
|
dstPointB?: string; // 目标坐标系点B(右侧视图点B)
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
//多语言枚举
|
|
93
|
-
enum LocaleType {
|
|
94
|
-
en_US = 'en_US',
|
|
95
|
-
zh_CN = 'zh_CN',
|
|
96
|
-
ja_JP = 'ja_JP',
|
|
97
|
-
}
|
|
98
|
-
|
|
99
92
|
//映射类型枚举
|
|
100
93
|
enum MappingType {
|
|
101
94
|
SpaceMapping = 0, //空间映射
|
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
import { defineComponent as v, ref as _, computed as P, watch as B, createElementBlock as w, openBlock as
|
|
1
|
+
import { defineComponent as v, ref as _, computed as P, watch as B, createElementBlock as w, openBlock as g, renderSlot as h, normalizeProps as y, guardReactiveProps as C } from "vue";
|
|
2
2
|
import { Point as i } from "@vsleem-realsee-viewer/shared";
|
|
3
|
-
import {
|
|
3
|
+
import { E as x } from "./index-Bp2b1_wb.mjs";
|
|
4
4
|
const M = { class: "vsleem-bim-control" }, b = /* @__PURE__ */ v({
|
|
5
5
|
name: "BimControl",
|
|
6
6
|
__name: "BimControl",
|
|
7
7
|
props: {
|
|
8
|
+
mapSetting: {},
|
|
9
|
+
currentProject: {},
|
|
8
10
|
currentModel: {},
|
|
9
|
-
points: {}
|
|
11
|
+
points: {},
|
|
12
|
+
connected: { type: Boolean }
|
|
10
13
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const r =
|
|
14
|
+
setup(c, { expose: u }) {
|
|
15
|
+
const r = c, t = _([]), a = P(() => ({
|
|
13
16
|
currentModel: r.currentModel,
|
|
14
17
|
points: t.value,
|
|
15
|
-
setPoint1:
|
|
18
|
+
setPoint1: l,
|
|
16
19
|
setPoint2: m
|
|
17
20
|
}));
|
|
18
|
-
B(() => r.points,
|
|
19
|
-
function
|
|
21
|
+
B(() => r.points, p, { deep: !0, immediate: !0 });
|
|
22
|
+
function p() {
|
|
20
23
|
t.value = s(r.points || []);
|
|
21
24
|
}
|
|
22
25
|
function s(e) {
|
|
23
26
|
return e.map((n) => d(n));
|
|
24
27
|
}
|
|
25
|
-
function
|
|
28
|
+
function l(e) {
|
|
26
29
|
e && (t.value[0] = new i(e));
|
|
27
30
|
}
|
|
28
31
|
function m(e) {
|
|
@@ -35,13 +38,13 @@ const M = { class: "vsleem-bim-control" }, b = /* @__PURE__ */ v({
|
|
|
35
38
|
function f() {
|
|
36
39
|
return { points: s(t.value) };
|
|
37
40
|
}
|
|
38
|
-
return
|
|
41
|
+
return u({
|
|
39
42
|
getData: f
|
|
40
|
-
}), (e, n) => (
|
|
41
|
-
|
|
43
|
+
}), (e, n) => (g(), w("div", M, [
|
|
44
|
+
h(e.$slots, "bimViewer", y(C(a.value)), void 0, !0)
|
|
42
45
|
]));
|
|
43
46
|
}
|
|
44
|
-
}),
|
|
47
|
+
}), V = /* @__PURE__ */ x(b, [["__scopeId", "data-v-9ff3f6df"]]);
|
|
45
48
|
export {
|
|
46
|
-
|
|
49
|
+
V as default
|
|
47
50
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as en, shallowRef as dn, watch as V, onBeforeUnmount as pn, createVNode as f, isVNode as
|
|
2
|
-
import { utils as
|
|
3
|
-
import {
|
|
4
|
-
import { S as Tn } from "./index-
|
|
1
|
+
import { defineComponent as en, shallowRef as dn, watch as V, onBeforeUnmount as pn, createVNode as f, isVNode as F, cloneVNode as K, ref as z, watchEffect as mn, unref as E, onUnmounted as tn, reactive as vn, onMounted as fn, createElementBlock as U, openBlock as G, createBlock as gn, createCommentVNode as q, createElementVNode as P, withModifiers as hn, withCtx as H, createTextVNode as J, toDisplayString as L } from "vue";
|
|
2
|
+
import { utils as O, CanvasElement as Sn, CanvasPointElement as W, Point as Y, CanvasImageElement as yn, DataHelper as wn } from "@vsleem-realsee-viewer/shared";
|
|
3
|
+
import { G as Cn, H as bn, _ as Q, J as Dn, K as on, L as $n, d as xn, b as Z, f as zn, P as k, O as In, x as _n, n as nn, E as En } from "./index-Bp2b1_wb.mjs";
|
|
4
|
+
import { S as Tn } from "./index-RN8boWFZ.mjs";
|
|
5
5
|
function Mn(n, l, p) {
|
|
6
6
|
var i = p || {}, e = i.noTrailing, r = e === void 0 ? !1 : e, c = i.noLeading, s = c === void 0 ? !1 : c, m = i.debounceMode, o = m === void 0 ? void 0 : m, a, t = !1, u = 0;
|
|
7
7
|
function C() {
|
|
@@ -33,11 +33,11 @@ function Pn(n, l, p) {
|
|
|
33
33
|
debounceMode: r !== !1
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
const
|
|
36
|
+
const On = new on("antSpinMove", {
|
|
37
37
|
to: {
|
|
38
38
|
opacity: 1
|
|
39
39
|
}
|
|
40
|
-
}),
|
|
40
|
+
}), Nn = new on("antRotate", {
|
|
41
41
|
to: {
|
|
42
42
|
transform: "rotate(405deg)"
|
|
43
43
|
}
|
|
@@ -159,7 +159,7 @@ const Nn = new on("antSpinMove", {
|
|
|
159
159
|
transform: "scale(0.75)",
|
|
160
160
|
transformOrigin: "50% 50%",
|
|
161
161
|
opacity: 0.3,
|
|
162
|
-
animationName:
|
|
162
|
+
animationName: On,
|
|
163
163
|
animationDuration: "1s",
|
|
164
164
|
animationIterationCount: "infinite",
|
|
165
165
|
animationTimingFunction: "linear",
|
|
@@ -186,7 +186,7 @@ const Nn = new on("antSpinMove", {
|
|
|
186
186
|
},
|
|
187
187
|
"&-spin": {
|
|
188
188
|
transform: "rotate(45deg)",
|
|
189
|
-
animationName:
|
|
189
|
+
animationName: Nn,
|
|
190
190
|
animationDuration: "1.2s",
|
|
191
191
|
animationIterationCount: "infinite",
|
|
192
192
|
animationTimingFunction: "linear"
|
|
@@ -252,7 +252,7 @@ function Gn(n) {
|
|
|
252
252
|
const l = n.indicator;
|
|
253
253
|
X = typeof l == "function" ? l : () => f(l, null, null);
|
|
254
254
|
}
|
|
255
|
-
const
|
|
255
|
+
const N = en({
|
|
256
256
|
compatConfig: {
|
|
257
257
|
MODE: 3
|
|
258
258
|
},
|
|
@@ -302,9 +302,9 @@ const O = en({
|
|
|
302
302
|
function y(g) {
|
|
303
303
|
const w = `${g}-dot`;
|
|
304
304
|
let h = In(i, n, "indicator");
|
|
305
|
-
return h === null ? null : (Array.isArray(h) && (h = h.length === 1 ? h[0] : h),
|
|
305
|
+
return h === null ? null : (Array.isArray(h) && (h = h.length === 1 ? h[0] : h), F(h) ? K(h, {
|
|
306
306
|
class: w
|
|
307
|
-
}) : X &&
|
|
307
|
+
}) : X && F(X()) ? K(X(), {
|
|
308
308
|
class: w
|
|
309
309
|
}) : f("span", {
|
|
310
310
|
class: `${w} ${g}-dot-spin`
|
|
@@ -343,9 +343,9 @@ const O = en({
|
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
345
|
});
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
return n.component(
|
|
346
|
+
N.setDefaultIndicator = Gn;
|
|
347
|
+
N.install = function(n) {
|
|
348
|
+
return n.component(N.name, N), n;
|
|
349
349
|
};
|
|
350
350
|
function Hn(n, l, p = {}) {
|
|
351
351
|
const i = z(0), e = z(0);
|
|
@@ -373,21 +373,23 @@ function Hn(n, l, p = {}) {
|
|
|
373
373
|
stop: s
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
|
-
const Vn = { class: "vsleem-cad-control" },
|
|
376
|
+
const Vn = { class: "vsleem-cad-control" }, jn = { class: "tool-button" }, Fn = {
|
|
377
377
|
key: 0,
|
|
378
378
|
class: "distance"
|
|
379
379
|
}, Kn = /* @__PURE__ */ en({
|
|
380
380
|
name: "CadControl",
|
|
381
381
|
__name: "CadControl",
|
|
382
382
|
props: {
|
|
383
|
+
mapSetting: {},
|
|
384
|
+
currentProject: {},
|
|
383
385
|
currentModel: {},
|
|
384
386
|
points: {},
|
|
385
387
|
connected: { type: Boolean }
|
|
386
388
|
},
|
|
387
389
|
emits: ["change"],
|
|
388
390
|
setup(n, { expose: l, emit: p }) {
|
|
389
|
-
const i = p, e = n, [r] = _n("CadControl"), c = z(!0), s = z(0), m = z(), o = z(), a = z([]), t = z(), u = vn({ x: 0, y: 0, scale: 1 }), C = z([]), M = z(0), I =
|
|
390
|
-
V(() => e.currentModel?.id, I), V(() => e.points, w), fn(() => {
|
|
391
|
+
const i = p, e = n, [r] = _n("CadControl"), c = z(!0), s = z(0), m = z(), o = z(), a = z([]), t = z(), u = vn({ x: 0, y: 0, scale: 1 }), C = z([]), M = z(0), I = O.debounce(y, 300);
|
|
392
|
+
V(() => e.currentModel?.id, I), V(() => e.points, w, { deep: !0 }), fn(() => {
|
|
391
393
|
Hn(m, I);
|
|
392
394
|
}), tn(() => {
|
|
393
395
|
b();
|
|
@@ -420,8 +422,8 @@ const Vn = { class: "vsleem-cad-control" }, Fn = { class: "tool-button" }, jn =
|
|
|
420
422
|
backgroundColor: D(s.value)
|
|
421
423
|
});
|
|
422
424
|
a.value[s.value] = x, o.value?.draw();
|
|
423
|
-
const { x: A, y: R } = x, B =
|
|
424
|
-
C.value[s.value] = new Y(B), rn(), i("change",
|
|
425
|
+
const { x: A, y: R } = x, B = O.toModelCoord(A, R, u);
|
|
426
|
+
C.value[s.value] = new Y(B), rn(), i("change", j());
|
|
425
427
|
},
|
|
426
428
|
draw(d) {
|
|
427
429
|
if (t.value?.draw(d), e.connected && a.value.length === 2) {
|
|
@@ -444,7 +446,7 @@ const Vn = { class: "vsleem-cad-control" }, Fn = { class: "tool-button" }, jn =
|
|
|
444
446
|
src: e.currentModel?.modelValue,
|
|
445
447
|
onload(x) {
|
|
446
448
|
if (!t.value) return;
|
|
447
|
-
const { scale: A, x: R, y: B, sw: cn, sh: un } =
|
|
449
|
+
const { scale: A, x: R, y: B, sw: cn, sh: un } = O.getImageTransform(
|
|
448
450
|
d,
|
|
449
451
|
$,
|
|
450
452
|
x.width,
|
|
@@ -460,11 +462,11 @@ const Vn = { class: "vsleem-cad-control" }, Fn = { class: "tool-button" }, jn =
|
|
|
460
462
|
});
|
|
461
463
|
}
|
|
462
464
|
async function w() {
|
|
463
|
-
C.value = [...
|
|
465
|
+
C.value = [...O.cloneDeep(e.points || [])], await h(), await an(), o.value?.draw();
|
|
464
466
|
}
|
|
465
467
|
function h() {
|
|
466
468
|
a.value = C.value.map((S, v) => {
|
|
467
|
-
const { x: _, y: d } = S, { x: $, y: x } =
|
|
469
|
+
const { x: _, y: d } = S, { x: $, y: x } = O.toCanvasCoord(_, d, u);
|
|
468
470
|
return new W({
|
|
469
471
|
x: $,
|
|
470
472
|
y: x,
|
|
@@ -494,15 +496,15 @@ const Vn = { class: "vsleem-cad-control" }, Fn = { class: "tool-button" }, jn =
|
|
|
494
496
|
function rn() {
|
|
495
497
|
s.value = s.value === 0 ? 1 : 0;
|
|
496
498
|
}
|
|
497
|
-
function
|
|
499
|
+
function j() {
|
|
498
500
|
return {
|
|
499
501
|
points: C.value
|
|
500
502
|
};
|
|
501
503
|
}
|
|
502
504
|
return l({
|
|
503
|
-
getData:
|
|
505
|
+
getData: j
|
|
504
506
|
}), (S, v) => (G(), U("div", Vn, [
|
|
505
|
-
c.value ? (G(), gn(E(
|
|
507
|
+
c.value ? (G(), gn(E(N), {
|
|
506
508
|
key: 0,
|
|
507
509
|
class: "cad-spin"
|
|
508
510
|
})) : q("", !0),
|
|
@@ -513,7 +515,7 @@ const Vn = { class: "vsleem-cad-control" }, Fn = { class: "tool-button" }, jn =
|
|
|
513
515
|
onSelectstart: v[0] || (v[0] = hn(() => {
|
|
514
516
|
}, ["prevent"]))
|
|
515
517
|
}, null, 544),
|
|
516
|
-
P("div",
|
|
518
|
+
P("div", jn, [
|
|
517
519
|
f(E(Tn), null, {
|
|
518
520
|
default: H(() => [
|
|
519
521
|
f(E(nn), {
|
|
@@ -526,7 +528,7 @@ const Vn = { class: "vsleem-cad-control" }, Fn = { class: "tool-button" }, jn =
|
|
|
526
528
|
]),
|
|
527
529
|
_: 1
|
|
528
530
|
}, 8, ["ghost"]),
|
|
529
|
-
M.value ? (G(), U("div",
|
|
531
|
+
M.value ? (G(), U("div", Fn, [
|
|
530
532
|
P("div", null, L(E(r)?.distance), 1),
|
|
531
533
|
v[1] || (v[1] = P("div", { class: "divider" }, null, -1)),
|
|
532
534
|
P("div", null, L(M.value) + " m", 1)
|
|
@@ -548,7 +550,7 @@ const Vn = { class: "vsleem-cad-control" }, Fn = { class: "tool-button" }, jn =
|
|
|
548
550
|
])
|
|
549
551
|
]));
|
|
550
552
|
}
|
|
551
|
-
}), Yn = /* @__PURE__ */ En(Kn, [["__scopeId", "data-v-
|
|
553
|
+
}), Yn = /* @__PURE__ */ En(Kn, [["__scopeId", "data-v-e091a05f"]]);
|
|
552
554
|
export {
|
|
553
555
|
Yn as default
|
|
554
556
|
};
|