@realsee/dnalogel 3.40.0-alpha.0 → 3.40.0
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/CHANGELOG.md +3 -0
- package/dist/GuideLinePlugin/typing.d.ts +0 -1
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
- package/dist/index.cjs.js +67 -71
- package/dist/index.js +5851 -5938
- package/dist/index.umd.js +61 -65
- package/dist/shared-utils/three/blink.d.ts +10 -3
- package/libs/CruisePlugin/Move.js +2 -3
- package/libs/CruisePlugin/Work.js +2 -3
- package/libs/CruisePlugin/index.js +6 -7
- package/libs/GuideLinePlugin/Controller.js +4 -5
- package/libs/GuideLinePlugin/GuideLineItem.js +2 -3
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +59 -76
- package/libs/GuideLinePlugin/GuideLineModeItem.js +2 -3
- package/libs/GuideLinePlugin/index.js +6 -7
- package/libs/GuideLinePlugin/typing.d.ts +0 -1
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +57 -116
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +125 -126
- package/libs/shared-utils/index.js +30 -29
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/blink.d.ts +10 -3
- package/libs/shared-utils/three/blink.js +85 -92
- package/package.json +2 -2
- package/dist/shared-utils/math/intersecting.d.ts +0 -25
- package/libs/shared-utils/math/intersecting.d.ts +0 -25
- package/libs/shared-utils/math/intersecting.js +0 -25
|
@@ -1,144 +1,85 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { Vector3 as
|
|
3
|
-
import { polylineNormals as
|
|
4
|
-
import { lineIsIntersecting as mt, findIntersectingOfLines as pt } from "../../shared-utils/math/intersecting.js";
|
|
1
|
+
import * as o from "three";
|
|
2
|
+
import { Vector3 as z } from "three";
|
|
3
|
+
import { polylineNormals as Y } from "../../vendor/polyline-normals/index.js";
|
|
5
4
|
import "../../vendor/polyline-miter-util/index.js";
|
|
6
5
|
import "../../vendor/gl-vec2/add.js";
|
|
7
6
|
import "../../vendor/gl-vec2/set.js";
|
|
8
7
|
import "../../vendor/gl-vec2/normalize.js";
|
|
9
8
|
import "../../vendor/gl-vec2/subtract.js";
|
|
10
9
|
import "../../vendor/gl-vec2/dot.js";
|
|
11
|
-
const
|
|
12
|
-
function
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
15
|
-
return { geometry: new
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
|
|
10
|
+
const Z = 2, $ = 3, j = 3, q = 2;
|
|
11
|
+
function at(n) {
|
|
12
|
+
const _ = n.width, w = n.unitLength, f = _ / 2, x = n.path;
|
|
13
|
+
if (x.length === 0)
|
|
14
|
+
return { geometry: new o.BufferGeometry(), maxV: 0, curvePath: null, curvePoints: null };
|
|
15
|
+
const u = new o.CurvePath();
|
|
16
|
+
x.forEach((t) => {
|
|
17
|
+
const c = J(t);
|
|
18
|
+
c && u.add(c);
|
|
20
19
|
});
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
let
|
|
25
|
-
const
|
|
20
|
+
const T = Math.ceil(u.getLength() * 100);
|
|
21
|
+
u.arcLengthDivisions = T;
|
|
22
|
+
const s = u.getPoints(T), V = s.length, X = Y(s.map((t) => [t.x, t.z])), O = (V - 1) * Z * $, C = 2 * V, S = C * j, W = C * q, r = new Uint32Array(O), a = new Float32Array(S), d = new Float32Array(W), B = u.getLength();
|
|
23
|
+
let l = 0, D = 0, M = {};
|
|
24
|
+
const v = n.path[0].points.map((t) => new o.Vector3().fromArray(t)), y = n.path[0].panoIndexList ? [...n.path[0].panoIndexList] : void 0, k = (() => {
|
|
26
25
|
const t = [];
|
|
27
|
-
for (let
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
26
|
+
for (let e = 0; e < v.length; e++) {
|
|
27
|
+
const i = v[e];
|
|
28
|
+
if (e === 0)
|
|
30
29
|
t.push(0);
|
|
31
30
|
else {
|
|
32
|
-
const
|
|
33
|
-
t.push(
|
|
31
|
+
const h = v[e - 1];
|
|
32
|
+
t.push(i.distanceTo(h) + t[e - 1]);
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
|
-
const
|
|
37
|
-
for (let
|
|
38
|
-
const
|
|
39
|
-
|
|
35
|
+
const c = t.at(-1), g = [];
|
|
36
|
+
for (let e = 0; e < t.length; e++) {
|
|
37
|
+
const i = t[e], h = e === 0 ? 0 : t[e - 1], P = e === t.length - 1 ? c : t[e + 1], m = i - Math.min(0.3, (i - h) / 2), p = i + Math.min(0.3, (P - i) / 2);
|
|
38
|
+
g.push([B * (m / c), B * (p / c)]);
|
|
40
39
|
}
|
|
41
|
-
return
|
|
40
|
+
return g;
|
|
42
41
|
})();
|
|
43
|
-
let
|
|
44
|
-
for (let t = 0; t <
|
|
45
|
-
const [
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
const
|
|
52
|
-
if (
|
|
42
|
+
let E = [];
|
|
43
|
+
for (let t = 0; t < s.length; t++) {
|
|
44
|
+
const [c, g] = X[t][0], e = s[t], { x: i, y: h, z: P } = e, m = new z(i + c * f, h + 0.05, P + g * f);
|
|
45
|
+
a[t * 6 + 0] = m.x, a[t * 6 + 1] = m.y, a[t * 6 + 2] = m.z;
|
|
46
|
+
const p = new z(i - c * f, h + 0.05, P - g * f);
|
|
47
|
+
a[t * 6 + 3] = p.x, a[t * 6 + 4] = p.y, a[t * 6 + 5] = p.z, l += t > 0 ? s[t - 1].clone().sub(s[t]).length() : 0;
|
|
48
|
+
const L = l / w;
|
|
49
|
+
D = L, d[t * 4 + 0] = 0, d[t * 4 + 1] = L, d[t * 4 + 2] = 1, d[t * 4 + 3] = L;
|
|
50
|
+
const I = new o.Vector3().lerpVectors(m, p, 0.5);
|
|
51
|
+
if (n.skipPositions && n.skipPositions.some((N) => N.distanceTo(I) < 0.26))
|
|
53
52
|
continue;
|
|
54
|
-
const
|
|
55
|
-
if (
|
|
56
|
-
const
|
|
57
|
-
if (
|
|
58
|
-
distance:
|
|
53
|
+
const U = v[0];
|
|
54
|
+
if (n.useAutoDepthTest && U && y) {
|
|
55
|
+
const R = y[0], [N, F] = k[0];
|
|
56
|
+
if (l > N && l < F && E.push({
|
|
57
|
+
distance: U.distanceTo(I),
|
|
59
58
|
index: t
|
|
60
|
-
}),
|
|
61
|
-
const
|
|
62
|
-
if (
|
|
63
|
-
|
|
59
|
+
}), l >= F || t === s.length - 1) {
|
|
60
|
+
const H = Math.min(...E.map((b) => b.distance)), G = E.find((b) => b.distance === H);
|
|
61
|
+
if (E = [], v.shift(), y.shift(), k.shift(), G)
|
|
62
|
+
M[R] = G.index;
|
|
64
63
|
else {
|
|
65
|
-
console.error(`can not find the min distance ${
|
|
64
|
+
console.error(`can not find the min distance ${R}`);
|
|
66
65
|
continue;
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
|
-
t !==
|
|
69
|
+
t !== s.length - 1 && (r[t * 6 + 0] = t * 2 + 0, r[t * 6 + 1] = t * 2 + 2, r[t * 6 + 2] = t * 2 + 1, r[t * 6 + 3] = t * 2 + 2, r[t * 6 + 4] = t * 2 + 3, r[t * 6 + 5] = t * 2 + 1);
|
|
71
70
|
}
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
const e = t + 1, p = {
|
|
75
|
-
x: n[t * 6 + 0],
|
|
76
|
-
y: n[t * 6 + 2]
|
|
77
|
-
}, s = {
|
|
78
|
-
x: n[t * 6 + 3],
|
|
79
|
-
y: n[t * 6 + 5]
|
|
80
|
-
}, u = {
|
|
81
|
-
x: n[e * 6 + 0],
|
|
82
|
-
y: n[e * 6 + 2]
|
|
83
|
-
}, f = {
|
|
84
|
-
x: n[e * 6 + 3],
|
|
85
|
-
y: n[e * 6 + 5]
|
|
86
|
-
}, w = mt([p, s], [u, f]);
|
|
87
|
-
if (w && m.push(t), !w && m.length) {
|
|
88
|
-
m.push(e);
|
|
89
|
-
const r = new l.Vector2(p.x, p.y).distanceTo(new l.Vector2(u.x, u.y)), a = new l.Vector2(s.x, s.y).distanceTo(new l.Vector2(f.x, f.y)), g = [], A = [], h = Math.max(0, m[0] - L * 100), T = m[0];
|
|
90
|
-
for (let c = h; c < T; c++)
|
|
91
|
-
r < a ? g.push({ x: n[c * 6 + 0], y: n[c * 6 + 2] }) : g.push({ x: n[c * 6 + 3], y: n[c * 6 + 5] });
|
|
92
|
-
const _ = m.at(-1), v = Math.min(x - 1, m.at(-1) + L * 100);
|
|
93
|
-
for (let c = _; c < v; c++)
|
|
94
|
-
r < a ? A.push({ x: n[c * 6 + 0], y: n[c * 6 + 2] }) : A.push({ x: n[c * 6 + 3], y: n[c * 6 + 5] });
|
|
95
|
-
const Y = pt(g, A);
|
|
96
|
-
if (console.log(Y, r < a, m, g, A), Y) {
|
|
97
|
-
const {
|
|
98
|
-
line1RelativeIndex: c,
|
|
99
|
-
line2RelativeIndex: M,
|
|
100
|
-
x: J,
|
|
101
|
-
y: K
|
|
102
|
-
} = Y, y = h + c, d = _ + M + 2;
|
|
103
|
-
console.log(y, d, r < a);
|
|
104
|
-
for (let o = y; o < d; o++)
|
|
105
|
-
r < a ? (n[o * 6 + 0] = J, n[o * 6 + 2] = K) : (n[o * 6 + 3] = J, n[o * 6 + 5] = K);
|
|
106
|
-
const Q = n[h * 6 + 1], tt = n[h * 6 + 4], it = n[y * 6 + 1], rt = n[y * 6 + 4], at = n[d * 6 + 1], lt = n[d * 6 + 4], ut = n[(v - 1) * 6 + 1], ft = n[(v - 1) * 6 + 4], F = (it + at) / 2, U = (rt + lt) / 2;
|
|
107
|
-
for (let o = h; o < y; o++) {
|
|
108
|
-
const O = y - h, C = (o - h) / O;
|
|
109
|
-
r < a ? n[o * 6 + 1] = Q + (F - Q) * C : n[o * 6 + 4] = tt + (U - tt) * C;
|
|
110
|
-
}
|
|
111
|
-
for (let o = y; o < d; o++)
|
|
112
|
-
r < a ? n[o * 6 + 1] = F : n[o * 6 + 4] = U;
|
|
113
|
-
for (let o = d; o < v; o++) {
|
|
114
|
-
const O = v - d, C = (o - d + 1) / O;
|
|
115
|
-
r < a ? n[o * 6 + 1] = F + (ut - F) * C : n[o * 6 + 4] = U + (ft - U) * C;
|
|
116
|
-
}
|
|
117
|
-
z.push({
|
|
118
|
-
start: y,
|
|
119
|
-
end: d
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
m.length = 0;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
const k = new Float32Array(X);
|
|
126
|
-
z.forEach((t) => {
|
|
127
|
-
for (let e = 0; e < x - 1; e++)
|
|
128
|
-
e >= t.start && e <= t.end ? (k[e * 2 + 0] = 1, k[e * 2 + 1] = 1) : k[e] !== 1 && (k[e * 2 + 0] = 0, k[e * 2 + 1] = 0);
|
|
129
|
-
});
|
|
130
|
-
const S = new l.BufferGeometry();
|
|
131
|
-
return S.setAttribute("position", new l.BufferAttribute(n, 3)), S.setAttribute("uv", new l.BufferAttribute(N, 2)), S.setIndex(new l.BufferAttribute(E, 1)), { geometry: S, maxV: Z, animationWillError: z, curvePath: I, curvePoints: P, panoMap: $, totalLength: R };
|
|
71
|
+
const A = new o.BufferGeometry();
|
|
72
|
+
return A.setAttribute("position", new o.BufferAttribute(a, 3)), A.setAttribute("uv", new o.BufferAttribute(d, 2)), A.setIndex(new o.BufferAttribute(r, 1)), { geometry: A, maxV: D, curvePath: u, curvePoints: s, panoMap: M, totalLength: l };
|
|
132
73
|
}
|
|
133
|
-
function
|
|
134
|
-
if (
|
|
135
|
-
const
|
|
136
|
-
return new
|
|
74
|
+
function J(n) {
|
|
75
|
+
if (K(n)) {
|
|
76
|
+
const _ = [n.closed, n.curve_type, n.tension], w = n.points.map((x) => new o.Vector3().fromArray(x));
|
|
77
|
+
return new o.CatmullRomCurve3(w, ..._);
|
|
137
78
|
}
|
|
138
79
|
}
|
|
139
|
-
function
|
|
140
|
-
return
|
|
80
|
+
function K(n) {
|
|
81
|
+
return n.type === "CatmullRomCurve3";
|
|
141
82
|
}
|
|
142
83
|
export {
|
|
143
|
-
|
|
84
|
+
at as createLineGeometry
|
|
144
85
|
};
|
|
@@ -446,7 +446,7 @@ class Ni extends j {
|
|
|
446
446
|
updateRender: () => {
|
|
447
447
|
this.five.needsRender = !0;
|
|
448
448
|
}
|
|
449
|
-
}, t)), s === !1 && (i.enabled = !1), o === !1 && this.setVisible(i), this.updateTag(i), this.updateDomView(), n === !1 && (i.dom && (i.dom.style.visibility = ""), i.contentDom && (i.contentDom.style.visibility = ""));
|
|
449
|
+
}, t)).finished, s === !1 && (i.enabled = !1), o === !1 && this.setVisible(i), this.updateTag(i), this.updateDomView(), n === !1 && (i.dom && (i.dom.style.visibility = ""), i.contentDom && (i.contentDom.style.visibility = ""));
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
452
|
/**
|
package/libs/base/BasePlugin.js
CHANGED
package/libs/index.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import { consoleVersion as o } from "./shared-utils/logger.js";
|
|
2
2
|
import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
|
|
3
|
-
import { PaintBrush as
|
|
4
|
-
import { PaintBrushTypeEnum as
|
|
5
|
-
import { ModelViewPlugin as
|
|
6
|
-
import { CSS3DRenderPlugin as
|
|
7
|
-
import { PanoCursorRaycasterPlugin as
|
|
8
|
-
import { ModelRoomLabelPlugin as
|
|
9
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
10
|
-
import { ModelFloorplanPlugin as
|
|
11
|
-
import { MapviewFloorplanPlugin as
|
|
12
|
-
import { TopviewFloorplanPlugin as
|
|
13
|
-
import { PanoFloorplanRadarPlugin as
|
|
14
|
-
import { FLOOR_TYPE_MAP as
|
|
15
|
-
import { ModelChassisCompassPlugin as
|
|
16
|
-
import { ModelEntryDoorGuidePlugin as
|
|
17
|
-
import { CameraMovementPlugin as
|
|
18
|
-
import { CameraMovementEffect as
|
|
19
|
-
import { PanoRulerPlugin as
|
|
20
|
-
import { PanoRulerProPlugin as
|
|
21
|
-
import { PanoCompassPlugin as
|
|
22
|
-
import { PanoMeasurePlugin as
|
|
23
|
-
import { PanoSpatialTagPlugin as
|
|
24
|
-
import { modelItemLabelPluginServerParams as
|
|
25
|
-
import { ModelTVVideoPlugin as
|
|
26
|
-
import { DIRECTION as
|
|
27
|
-
import { itemLabelPluginServerParams as
|
|
28
|
-
import { PanoDoorLabelPlugin as
|
|
29
|
-
import { GuideLinePlugin as
|
|
30
|
-
import { CruisePlugin as
|
|
31
|
-
import { PanoTagPlugin as
|
|
32
|
-
import { Object3DHelperPlugin as
|
|
33
|
-
import { PanoVideoPlugin as
|
|
34
|
-
import { PipelinePlugin as
|
|
35
|
-
import { AreaMakerPlugin as
|
|
36
|
-
import { CurrentPanoImagePlugin as
|
|
37
|
-
import { Sculpt as
|
|
38
|
-
import { ModelMakerPlugin as
|
|
39
|
-
import { index as
|
|
40
|
-
import { CSS3DRender as
|
|
41
|
-
import { Model as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { Polyline as
|
|
45
|
-
import { Magnifier as
|
|
46
|
-
import { DISPLAY_STRATEGY_TYPE as
|
|
47
|
-
import { ModelItemLabelPlugin as
|
|
48
|
-
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as
|
|
49
|
-
import { Plugin as
|
|
50
|
-
import { GuideLineItem$1 as
|
|
51
|
-
import { GuideLineModeItem$1 as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { typing as
|
|
55
|
-
import { default as
|
|
56
|
-
import { defaultGlobalConfig as
|
|
57
|
-
import { ContentType as
|
|
58
|
-
import { Object3DHelperController as
|
|
59
|
-
import { typings as
|
|
3
|
+
import { PaintBrush as il } from "./components/PaintBrush/index.js";
|
|
4
|
+
import { PaintBrushTypeEnum as pl } from "./components/PaintBrush/typings.js";
|
|
5
|
+
import { ModelViewPlugin as ll } from "./ModelViewPlugin/Plugin.js";
|
|
6
|
+
import { CSS3DRenderPlugin as al } from "./CSS3DRenderPlugin/index.js";
|
|
7
|
+
import { PanoCursorRaycasterPlugin as ul } from "./PanoCursorRaycasterPlugin/index.js";
|
|
8
|
+
import { ModelRoomLabelPlugin as xl, modelRoomLabelPluginServerParams as gl } from "./ModelRoomLabelPlugin/index.js";
|
|
9
|
+
import { FLOOR_PLAN_ATTACHED_TO as dl } from "./floorplan/constant.js";
|
|
10
|
+
import { ModelFloorplanPlugin as Tl } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
11
|
+
import { MapviewFloorplanPlugin as Cl } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
12
|
+
import { TopviewFloorplanPlugin as El } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
13
|
+
import { PanoFloorplanRadarPlugin as Rl } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
14
|
+
import { FLOOR_TYPE_MAP as Ol, ROOM_FETILE_TYPE_MAP as yl, ROOM_TYPE_MAP as Al } from "./floorplan/typings/floorplanServerData.js";
|
|
15
|
+
import { ModelChassisCompassPlugin as Gl } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
16
|
+
import { ModelEntryDoorGuidePlugin as vl } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
17
|
+
import { CameraMovementPlugin as Yl } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
18
|
+
import { CameraMovementEffect as Vl, Rotation as Nl } from "./CameraMovementPlugin/typing.js";
|
|
19
|
+
import { PanoRulerPlugin as kl } from "./PanoRulerPlugin/Plugin.js";
|
|
20
|
+
import { PanoRulerProPlugin as Bl } from "./PanoRulerProPlugin/index.js";
|
|
21
|
+
import { PanoCompassPlugin as Ul } from "./PanoCompassPlugin/index.js";
|
|
22
|
+
import { PanoMeasurePlugin as $l } from "./PanoMeasurePlugin/index.js";
|
|
23
|
+
import { PanoSpatialTagPlugin as ql } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
24
|
+
import { modelItemLabelPluginServerParams as Jl } from "./ModelItemLabelPlugin/index.js";
|
|
25
|
+
import { ModelTVVideoPlugin as Ql } from "./ModelTVVideoPlugin/Plugin.js";
|
|
26
|
+
import { DIRECTION as Zl } from "./ModelTVVideoPlugin/typings.js";
|
|
27
|
+
import { itemLabelPluginServerParams as rn } from "./ItemLabelPlugin/index.js";
|
|
28
|
+
import { PanoDoorLabelPlugin as mn } from "./PanoDoorLabelPlugin/index.js";
|
|
29
|
+
import { GuideLinePlugin as en } from "./GuideLinePlugin/index.js";
|
|
30
|
+
import { CruisePlugin as nn, MovePlugin as an } from "./CruisePlugin/index.js";
|
|
31
|
+
import { PanoTagPlugin as un } from "./PanoTagPlugin/index.js";
|
|
32
|
+
import { Object3DHelperPlugin as xn } from "./Object3DHelperPlugin/index.js";
|
|
33
|
+
import { PanoVideoPlugin as sn } from "./PanoVideoPlugin/index.js";
|
|
34
|
+
import { PipelinePlugin as Mn } from "./PipelinePlugin/index.js";
|
|
35
|
+
import { AreaMakerPlugin as Ln } from "./AreaMakerPlugin/index.js";
|
|
36
|
+
import { CurrentPanoImagePlugin as _n } from "./CurrentPanoImagePlugin/index.js";
|
|
37
|
+
import { Sculpt as In, SculptPlugin as Rn } from "./Sculpt/index.js";
|
|
38
|
+
import { ModelMakerPlugin as On } from "./ModelMakerPlugin/index.js";
|
|
39
|
+
import { index as An } from "./shared-utils/index.js";
|
|
40
|
+
import { CSS3DRender as Gn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
41
|
+
import { Model as vn } from "./PanoMeasurePlugin/Model/index.js";
|
|
42
|
+
import { default as Yn } from "./PanoMeasurePlugin/Model/point.js";
|
|
43
|
+
import { default as Vn } from "./PanoMeasurePlugin/Model/line.js";
|
|
44
|
+
import { Polyline as hn } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
45
|
+
import { Magnifier as wn } from "./shared-utils/three/Magnifier.js";
|
|
46
|
+
import { DISPLAY_STRATEGY_TYPE as Hn } from "./ModelItemLabelPlugin/typings.js";
|
|
47
|
+
import { ModelItemLabelPlugin as jn } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
48
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as Wn } from "./ItemLabelPlugin/typings.js";
|
|
49
|
+
import { Plugin as zn } from "./ItemLabelPlugin/Plugin.js";
|
|
50
|
+
import { GuideLineItem$1 as Kn } from "./GuideLinePlugin/GuideLineItem/index.js";
|
|
51
|
+
import { GuideLineModeItem$1 as Xn } from "./GuideLinePlugin/GuideLineModeItem/index.js";
|
|
52
|
+
import { default as oa, default as ra } from "./CruisePlugin/Work.js";
|
|
53
|
+
import { default as ia } from "./CruisePlugin/Move.js";
|
|
54
|
+
import { typing as pa } from "./CruisePlugin/typing/index.js";
|
|
55
|
+
import { default as la, pluginFlag as na } from "./PanoTagPlugin/controller/index.js";
|
|
56
|
+
import { defaultGlobalConfig as Pa } from "./PanoTagPlugin/typings/tag/TagConfig.js";
|
|
57
|
+
import { ContentType as fa, DimensionType as xa, PointType as ga } from "./PanoTagPlugin/Archive/deprecated.js";
|
|
58
|
+
import { Object3DHelperController as da, PLUGIN as Ma } from "./Object3DHelperPlugin/Controller.js";
|
|
59
|
+
import { typings as La } from "./PanoVideoPlugin/typings/index.js";
|
|
60
60
|
import "./components/PaintBrush/Controller.js";
|
|
61
61
|
import "./components/PaintBrush/utils.js";
|
|
62
62
|
import "./components/PaintBrush/tween.js";
|
|
@@ -265,7 +265,6 @@ import "./vendor/gl-vec2/set.js";
|
|
|
265
265
|
import "./vendor/gl-vec2/normalize.js";
|
|
266
266
|
import "./vendor/gl-vec2/subtract.js";
|
|
267
267
|
import "./vendor/gl-vec2/dot.js";
|
|
268
|
-
import "./shared-utils/math/intersecting.js";
|
|
269
268
|
import "./shared-utils/five/mode.js";
|
|
270
269
|
import "./PanoTagPlugin/utils/addDebugPoints.js";
|
|
271
270
|
import "./PanoTagPlugin/utils/tag/tagCheck.js";
|
|
@@ -489,72 +488,72 @@ import "./shared-utils/three/getIntersect.js";
|
|
|
489
488
|
r();
|
|
490
489
|
o();
|
|
491
490
|
export {
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
491
|
+
Ln as AreaMakerPlugin,
|
|
492
|
+
Gn as CSS3DRender,
|
|
493
|
+
al as CSS3DRenderPlugin,
|
|
494
|
+
Vl as CameraMovementEffect,
|
|
495
|
+
Yl as CameraMovementPlugin,
|
|
496
|
+
fa as ContentType,
|
|
497
|
+
nn as CruisePlugin,
|
|
498
|
+
oa as CruisePluginController,
|
|
499
|
+
pa as CruisePluginTypes,
|
|
500
|
+
_n as CurrentPanoImagePlugin,
|
|
501
|
+
Zl as DIRECTION,
|
|
502
|
+
Hn as DISPLAY_STRATEGY_TYPE,
|
|
503
|
+
xa as DimensionType,
|
|
504
|
+
dl as FLOOR_PLAN_ATTACHED_TO,
|
|
505
|
+
Ol as FLOOR_TYPE_MAP,
|
|
506
|
+
Kn as GuideLineItem,
|
|
507
|
+
Xn as GuideLineModeItem,
|
|
508
|
+
en as GuideLinePlugin,
|
|
509
|
+
Wn as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
510
|
+
zn as ItemLabelPlugin,
|
|
511
|
+
wn as Magnifier,
|
|
512
|
+
Cl as MapviewFloorplanPlugin,
|
|
513
|
+
Gl as ModelChassisCompassPlugin,
|
|
514
|
+
vl as ModelEntryDoorGuidePlugin,
|
|
515
|
+
Tl as ModelFloorplanPlugin,
|
|
516
|
+
jn as ModelItemLabelPlugin,
|
|
517
|
+
On as ModelMakerPlugin,
|
|
518
|
+
xl as ModelRoomLabelPlugin,
|
|
519
|
+
Ql as ModelTVVideoPlugin,
|
|
520
|
+
ll as ModelViewPlugin,
|
|
521
|
+
ia as MoveController,
|
|
522
|
+
an as MovePlugin,
|
|
523
|
+
da as Object3DHelperController,
|
|
524
|
+
xn as Object3DHelperPlugin,
|
|
525
|
+
Ma as PLUGIN,
|
|
526
|
+
il as PaintBrush,
|
|
527
|
+
pl as PaintBrushTypeEnum,
|
|
528
|
+
Ul as PanoCompassPlugin,
|
|
529
|
+
ul as PanoCursorRaycasterPlugin,
|
|
530
|
+
mn as PanoDoorLabelPlugin,
|
|
531
|
+
Rl as PanoFloorplanRadarPlugin,
|
|
532
|
+
$l as PanoMeasurePlugin,
|
|
533
|
+
Vn as PanoMeasurePluginLine,
|
|
534
|
+
vn as PanoMeasurePluginModel,
|
|
535
|
+
Yn as PanoMeasurePluginPoint,
|
|
536
|
+
hn as PanoMeasurePluginPolyline,
|
|
537
|
+
kl as PanoRulerPlugin,
|
|
538
|
+
Bl as PanoRulerProPlugin,
|
|
539
|
+
ql as PanoSpatialTagPlugin,
|
|
540
|
+
un as PanoTagPlugin,
|
|
541
|
+
la as PanoTagPluginController,
|
|
542
|
+
sn as PanoVideoPlugin,
|
|
543
|
+
La as PanoVideoPluginType,
|
|
544
|
+
Mn as PipelinePlugin,
|
|
545
|
+
ga as PointType,
|
|
546
|
+
yl as ROOM_FETILE_TYPE_MAP,
|
|
547
|
+
Al as ROOM_TYPE_MAP,
|
|
548
|
+
Nl as Rotation,
|
|
549
|
+
In as Sculpt,
|
|
550
|
+
Rn as SculptPlugin,
|
|
551
|
+
El as TopviewFloorplanPlugin,
|
|
552
|
+
An as Util,
|
|
553
|
+
ra as WalkController,
|
|
554
|
+
Pa as defaultGlobalConfig,
|
|
555
|
+
rn as itemLabelPluginServerParams,
|
|
556
|
+
Jl as modelItemLabelPluginServerParams,
|
|
557
|
+
gl as modelRoomLabelPluginServerParams,
|
|
558
|
+
na as pluginFlag
|
|
560
559
|
};
|
|
@@ -6,50 +6,51 @@ import { getCoordsFromClient as m, getCoordsFromElement as i } from "./three/get
|
|
|
6
6
|
import { getRaycasterFromFivePointer as n } from "./three/getRaycaster.js";
|
|
7
7
|
import { getIntersectFromRelativePosition as p } from "./three/getIntersect.js";
|
|
8
8
|
import { PointHelper as l } from "./three/PointHelper.js";
|
|
9
|
-
import { PointDomHelper as
|
|
10
|
-
import { PointSelectorHelper as
|
|
9
|
+
import { PointDomHelper as a } from "./three/PointDomHelper.js";
|
|
10
|
+
import { PointSelectorHelper as f } from "./three/PointSelectorHelper.js";
|
|
11
11
|
import { Object3D as s } from "./three/core/Object3D.js";
|
|
12
12
|
import { LineSegments as g } from "./three/objects/LineSegments.js";
|
|
13
|
-
import {
|
|
14
|
-
import { isNil as
|
|
15
|
-
import { uuid as
|
|
16
|
-
import { absoluteUrl as
|
|
17
|
-
import { awaitNextFrame as
|
|
18
|
-
import { equal as
|
|
19
|
-
import { isModelLike as
|
|
20
|
-
import { BetterTween as
|
|
21
|
-
const
|
|
13
|
+
import { animeMap as c, blink as d, reblink as F } from "./three/blink.js";
|
|
14
|
+
import { isNil as u, notNil as b } from "./isNil.js";
|
|
15
|
+
import { uuid as P } from "./uuid.js";
|
|
16
|
+
import { absoluteUrl as v, isAbsoluteURL as k } from "./url/absoluteUrl.js";
|
|
17
|
+
import { awaitNextFrame as L, getFrameTime as M, nextFrame as x, requestAnimationFrameInterval as R } from "./animationFrame/index.js";
|
|
18
|
+
import { equal as S } from "./equal.js";
|
|
19
|
+
import { isModelLike as _, isPanoramaLike as j } from "./five/mode.js";
|
|
20
|
+
import { BetterTween as w, tweenProgress as y } from "./animationFrame/BetterTween.js";
|
|
21
|
+
const X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22
22
|
__proto__: null,
|
|
23
|
-
BetterTween:
|
|
23
|
+
BetterTween: w,
|
|
24
24
|
Interval: o,
|
|
25
25
|
LineSegments: g,
|
|
26
26
|
Magnifier: t,
|
|
27
27
|
Object3D: s,
|
|
28
|
-
PointDomHelper:
|
|
28
|
+
PointDomHelper: a,
|
|
29
29
|
PointHelper: l,
|
|
30
|
-
PointSelectorHelper:
|
|
30
|
+
PointSelectorHelper: f,
|
|
31
31
|
Rectangle: r,
|
|
32
|
-
absoluteUrl:
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
absoluteUrl: v,
|
|
33
|
+
animeMap: c,
|
|
34
|
+
awaitNextFrame: L,
|
|
35
|
+
blink: d,
|
|
35
36
|
checkFiveModelLoaded: e,
|
|
36
|
-
equal:
|
|
37
|
+
equal: S,
|
|
37
38
|
getCoordsFromClient: m,
|
|
38
39
|
getCoordsFromElement: i,
|
|
39
|
-
getFrameTime:
|
|
40
|
+
getFrameTime: M,
|
|
40
41
|
getIntersectFromRelativePosition: p,
|
|
41
42
|
getRaycasterFromFivePointer: n,
|
|
42
|
-
isAbsoluteURL:
|
|
43
|
-
isModelLike:
|
|
44
|
-
isNil:
|
|
45
|
-
isPanoramaLike:
|
|
43
|
+
isAbsoluteURL: k,
|
|
44
|
+
isModelLike: _,
|
|
45
|
+
isNil: u,
|
|
46
|
+
isPanoramaLike: j,
|
|
46
47
|
nextFrame: x,
|
|
47
|
-
notNil:
|
|
48
|
-
reblink:
|
|
49
|
-
requestAnimationFrameInterval:
|
|
50
|
-
tweenProgress:
|
|
51
|
-
uuid:
|
|
48
|
+
notNil: b,
|
|
49
|
+
reblink: F,
|
|
50
|
+
requestAnimationFrameInterval: R,
|
|
51
|
+
tweenProgress: y,
|
|
52
|
+
uuid: P
|
|
52
53
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
53
54
|
export {
|
|
54
|
-
|
|
55
|
+
X as index
|
|
55
56
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.40.0
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.40.0",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
|
@@ -11,7 +11,14 @@ interface BlinkAnimeOptions extends anime.AnimeParams {
|
|
|
11
11
|
interface ReBlinkAnimeOptions extends BlinkAnimeOptions {
|
|
12
12
|
maxOpacity?: number;
|
|
13
13
|
}
|
|
14
|
+
interface AnimeInstance extends anime.AnimeInstance {
|
|
15
|
+
/**
|
|
16
|
+
* @description 提前结束动画
|
|
17
|
+
*/
|
|
18
|
+
preComplete: () => void;
|
|
19
|
+
}
|
|
14
20
|
type Target = HTMLElement | THREE.Object3D;
|
|
21
|
+
declare const animeMap: Map<Target | Target[], AnimeInstance>;
|
|
15
22
|
/**
|
|
16
23
|
* @description 闪烁一个物体/Dom
|
|
17
24
|
* @param animeOptions https://animejs.com/documentation/
|
|
@@ -23,12 +30,12 @@ type Target = HTMLElement | THREE.Object3D;
|
|
|
23
30
|
* blink(document.getElementById('id'), { loop: 5 * 2 })
|
|
24
31
|
* ```
|
|
25
32
|
*/
|
|
26
|
-
declare function blink(objects: Target | Target[], animeOptions?: BlinkAnimeOptions):
|
|
33
|
+
declare function blink(objects: Target | Target[], animeOptions?: BlinkAnimeOptions): AnimeInstance;
|
|
27
34
|
/**
|
|
28
35
|
* @description 闪烁一个不可见的物体/Dom
|
|
29
36
|
*
|
|
30
37
|
* 适用于物体/Dom在初始状态不可见的情况,闪烁完成后的状态为初始不可见的状态
|
|
31
38
|
* @param animeOptions https://animejs.com/documentation/
|
|
32
39
|
*/
|
|
33
|
-
declare function reblink(objects: Target | Target[], animeOptions?: BlinkAnimeOptions):
|
|
34
|
-
export { blink, reblink, type BlinkAnimeOptions, type ReBlinkAnimeOptions };
|
|
40
|
+
declare function reblink(objects: Target | Target[], animeOptions?: BlinkAnimeOptions): AnimeInstance;
|
|
41
|
+
export { blink, reblink, animeMap, type BlinkAnimeOptions, type ReBlinkAnimeOptions, type AnimeInstance };
|