@vsleem-realsee-viewer/projection-plugin 2.0.2 → 2.0.5
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/{BimfaceControl-Bde9ZZX2.mjs → BimfaceControl-C2OyfJ0_.mjs} +7 -9
- package/dist/{CadControl-Dyhxnp6c.mjs → CadControl-CpJSvJP_.mjs} +166 -154
- package/dist/{ForgeControl-Dj8N5zV7.mjs → ForgeControl-BmAaGNV5.mjs} +21 -23
- package/dist/MapControl-DJpEP_1E.mjs +1705 -0
- package/dist/ScaleControl-Bfk8VcbR.mjs +75 -0
- package/dist/edit-DRtArG5y.mjs +4 -0
- package/dist/{index-CS-tvHJ_.mjs → index-D64Q9Gg8.mjs} +12898 -8488
- package/dist/index.css +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.umd.js +74 -53
- package/dist/position-CKTdZLcJ.mjs +4 -0
- package/dist/resize-CsiR4Nzb.mjs +123 -0
- package/package.json +3 -3
- package/dist/MapControl-CMiWJvly.mjs +0 -1509
- package/dist/ScaleControl-LP-FgYcu.mjs +0 -76
- package/dist/resize-BnocRTcF.mjs +0 -30
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const a = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1755506682728" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7069" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M462.28973037 115.80915105V14.8973037a497.1026963 497.1026963 0 0 0-266.06040936 110.46726542l70.97521745 71.36185459A396.74318572 396.74318572 0 0 1 462.28973037 115.80915105zM827.77067899 125.36456912A497.1026963 497.1026963 0 0 0 561.71026963 14.8973037v100.91184735a396.74318572 396.74318572 0 0 1 194.86425695 80.91727266z m80.42016996 336.92516125H1009.1026963a497.1026963 497.1026963 0 0 0-110.46726542-265.78424162l-71.36185459 70.69904971a396.74318572 396.74318572 0 0 1 80.91727266 195.08519191zM196.72642371 267.20453846L125.36456912 196.22932101A497.1026963 497.1026963 0 0 0 14.8973037 462.28973037h100.91184735a396.74318572 396.74318572 0 0 1 80.91727266-195.08519191zM115.80915105 561.71026963H14.8973037a497.1026963 497.1026963 0 0 0 110.46726542 265.78424162l71.41708736-71.41708737A393.09776593 393.09776593 0 0 1 115.80915105 561.71026963z m546.09492827-49.71026963A149.90407932 149.90407932 0 1 0 512 661.90407932 149.68314565 149.68314565 0 0 0 661.90407932 512z m165.36949697 244.79546154L898.63543088 828.26778167a498.64923845 498.64923845 0 0 0 110.46726542-265.78424161h-100.91184735a396.96411938 396.96411938 0 0 1-80.91727266 194.31192148zM561.71026963 908.19084895V1009.1026963a497.1026963 497.1026963 0 0 0 265.78424162-110.46726542l-71.41708737-71.41708736a393.09776593 393.09776593 0 0 1-194.36715425 80.97250543zM196.22932101 898.63543088a498.64923845 498.64923845 0 0 0 266.06040936 110.46726542v-100.91184735a396.74318572 396.74318572 0 0 1-194.86425695-80.91727266z" p-id="7070"></path></svg>';
|
|
2
|
+
export {
|
|
3
|
+
a as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { H as V, P as j, d as q, J as H, L as J, a as M, _ as z, f as U, b as B, t as E, O as C } from "./index-D64Q9Gg8.mjs";
|
|
2
|
+
import { defineComponent as W, computed as p, ref as w, watch as K, createVNode as x, Fragment as Q, watchEffect as X, unref as Y, onUnmounted as Z } from "vue";
|
|
3
|
+
const k = {
|
|
4
|
+
small: 8,
|
|
5
|
+
middle: 16,
|
|
6
|
+
large: 24
|
|
7
|
+
}, ee = () => ({
|
|
8
|
+
prefixCls: String,
|
|
9
|
+
size: {
|
|
10
|
+
type: [String, Number, Array]
|
|
11
|
+
},
|
|
12
|
+
direction: j.oneOf(E("horizontal", "vertical")).def("horizontal"),
|
|
13
|
+
align: j.oneOf(E("start", "end", "center", "baseline")),
|
|
14
|
+
wrap: V()
|
|
15
|
+
});
|
|
16
|
+
function te(e) {
|
|
17
|
+
return typeof e == "string" ? k[e] : e || 0;
|
|
18
|
+
}
|
|
19
|
+
const $ = W({
|
|
20
|
+
compatConfig: {
|
|
21
|
+
MODE: 3
|
|
22
|
+
},
|
|
23
|
+
name: "ASpace",
|
|
24
|
+
inheritAttrs: !1,
|
|
25
|
+
props: ee(),
|
|
26
|
+
slots: Object,
|
|
27
|
+
setup(e, i) {
|
|
28
|
+
let {
|
|
29
|
+
slots: s,
|
|
30
|
+
attrs: v
|
|
31
|
+
} = i;
|
|
32
|
+
const {
|
|
33
|
+
prefixCls: a,
|
|
34
|
+
space: l,
|
|
35
|
+
direction: o
|
|
36
|
+
} = q("space", e), [m, f] = H(a), g = J(), r = p(() => {
|
|
37
|
+
var n, c, d;
|
|
38
|
+
return (d = (n = e.size) !== null && n !== void 0 ? n : (c = l == null ? void 0 : l.value) === null || c === void 0 ? void 0 : c.size) !== null && d !== void 0 ? d : "small";
|
|
39
|
+
}), t = w(), u = w();
|
|
40
|
+
K(r, () => {
|
|
41
|
+
[t.value, u.value] = (Array.isArray(r.value) ? r.value : [r.value, r.value]).map((n) => te(n));
|
|
42
|
+
}, {
|
|
43
|
+
immediate: !0
|
|
44
|
+
});
|
|
45
|
+
const O = p(() => e.align === void 0 && e.direction === "horizontal" ? "center" : e.align), P = p(() => M(a.value, f.value, `${a.value}-${e.direction}`, {
|
|
46
|
+
[`${a.value}-rtl`]: o.value === "rtl",
|
|
47
|
+
[`${a.value}-align-${O.value}`]: O.value
|
|
48
|
+
})), D = p(() => o.value === "rtl" ? "marginLeft" : "marginRight"), L = p(() => {
|
|
49
|
+
const n = {};
|
|
50
|
+
return g.value && (n.columnGap = `${t.value}px`, n.rowGap = `${u.value}px`), z(z({}, n), e.wrap && {
|
|
51
|
+
flexWrap: "wrap",
|
|
52
|
+
marginBottom: `${-u.value}px`
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
return () => {
|
|
56
|
+
var n, c;
|
|
57
|
+
const {
|
|
58
|
+
wrap: d,
|
|
59
|
+
direction: T = "horizontal"
|
|
60
|
+
} = e, _ = (n = s.default) === null || n === void 0 ? void 0 : n.call(s), R = U(_), F = R.length;
|
|
61
|
+
if (F === 0)
|
|
62
|
+
return null;
|
|
63
|
+
const h = (c = s.split) === null || c === void 0 ? void 0 : c.call(s), I = `${a.value}-item`, N = t.value, b = F - 1;
|
|
64
|
+
return x("div", B(B({}, v), {}, {
|
|
65
|
+
class: [P.value, v.class],
|
|
66
|
+
style: [L.value, v.style]
|
|
67
|
+
}), [R.map((G, S) => {
|
|
68
|
+
let A = _.indexOf(G);
|
|
69
|
+
A === -1 && (A = `$$space-${S}`);
|
|
70
|
+
let y = {};
|
|
71
|
+
return g.value || (T === "vertical" ? S < b && (y = {
|
|
72
|
+
marginBottom: `${N / (h ? 2 : 1)}px`
|
|
73
|
+
}) : y = z(z({}, S < b && {
|
|
74
|
+
[D.value]: `${N / (h ? 2 : 1)}px`
|
|
75
|
+
}), d && {
|
|
76
|
+
paddingBottom: `${u.value}px`
|
|
77
|
+
})), m(x(Q, {
|
|
78
|
+
key: A
|
|
79
|
+
}, [x("div", {
|
|
80
|
+
class: I,
|
|
81
|
+
style: y
|
|
82
|
+
}, [G]), S < b && h && x("span", {
|
|
83
|
+
class: `${I}-split`,
|
|
84
|
+
style: y
|
|
85
|
+
}, [h])]));
|
|
86
|
+
})]);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
$.Compact = C;
|
|
91
|
+
$.install = function(e) {
|
|
92
|
+
return e.component($.name, $), e.component(C.name, C), e;
|
|
93
|
+
};
|
|
94
|
+
function le(e, i, s = {}) {
|
|
95
|
+
const v = w(0), a = w(0);
|
|
96
|
+
let l = null, o = null;
|
|
97
|
+
const m = () => {
|
|
98
|
+
l && (l.disconnect(), l = null), o && (cancelAnimationFrame(o), o = null);
|
|
99
|
+
}, f = (t) => {
|
|
100
|
+
v.value = t.contentRect.width, a.value = t.contentRect.height;
|
|
101
|
+
}, g = (t) => {
|
|
102
|
+
const u = t[0];
|
|
103
|
+
s.debounce || s.throttle ? (o && cancelAnimationFrame(o), o = requestAnimationFrame(() => {
|
|
104
|
+
f(u), i == null || i(t);
|
|
105
|
+
})) : (f(u), i == null || i(t));
|
|
106
|
+
}, r = (t) => {
|
|
107
|
+
m(), l = new ResizeObserver(g), l.observe(t, {
|
|
108
|
+
box: s.box || "content-box"
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
return X(() => {
|
|
112
|
+
const t = Y(e);
|
|
113
|
+
t && r(t);
|
|
114
|
+
}), Z(m), {
|
|
115
|
+
width: v,
|
|
116
|
+
height: a,
|
|
117
|
+
stop: m
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
export {
|
|
121
|
+
$ as S,
|
|
122
|
+
le as u
|
|
123
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vsleem-realsee-viewer/projection-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Projection plugin for VSLeem RealSee Viewer",
|
|
5
5
|
"main": "./dist/index.umd.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"dist"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@vsleem-realsee-viewer/shared": "2.0.
|
|
16
|
+
"@vsleem-realsee-viewer/shared": "2.0.5"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"vue": "^3.0.0",
|
|
20
|
-
"@vsleem-realsee-viewer/shared": "2.0.
|
|
20
|
+
"@vsleem-realsee-viewer/shared": "2.0.5"
|
|
21
21
|
},
|
|
22
22
|
"peerDependenciesMeta": {
|
|
23
23
|
"vue": {
|