@realsee/dnalogel 3.48.5 → 3.48.7
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 +7 -0
- package/dist/PanoMeasurePlugin/utils/isIntersecting.d.ts +1 -1
- package/dist/Sculpt/Meshes/Line.d.ts +1 -0
- package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Polyline.d.ts +2 -0
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +1 -1
- package/dist/index.cjs.js +47 -47
- package/dist/index.js +2049 -1975
- package/dist/index.umd.js +41 -41
- package/dist/shared-utils/three/PointSelector/index.d.ts +12 -4
- package/dist/shared-utils/three/PointSelector/utils/contents.d.ts +1 -0
- package/dist/shared-utils/three/generatePolygonGeometry.d.ts +4 -1
- package/libs/ModelMakerPlugin/Controller.js +3 -2
- package/libs/ModelMakerPlugin/index.js +3 -2
- package/libs/PanoMeasurePlugin/Components/Controller0.js +21 -20
- package/libs/PanoMeasurePlugin/Components/Controller1.js +4 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +4 -3
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +32 -32
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +4 -3
- package/libs/PanoMeasurePlugin/Model/area.js +3 -2
- package/libs/PanoMeasurePlugin/Model/polygon.js +8 -7
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +4 -3
- package/libs/PanoMeasurePlugin/index.js +15 -14
- package/libs/PanoMeasurePlugin/utils/isIntersecting.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/isIntersecting.js +39 -16
- package/libs/Sculpt/Meshes/Line.d.ts +1 -0
- package/libs/Sculpt/Meshes/Line.js +64 -56
- package/libs/Sculpt/Meshes/Polygon.js +3 -3
- package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Polyline.d.ts +2 -0
- package/libs/Sculpt/Meshes/Polyline.js +67 -66
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +1 -1
- package/libs/Sculpt/Objects/Polygon/index.js +63 -64
- package/libs/Sculpt/Objects/Polyline/index.js +8 -9
- package/libs/Sculpt/index.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +127 -126
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/index.d.ts +12 -4
- package/libs/shared-utils/three/PointSelector/index.js +83 -56
- package/libs/shared-utils/three/PointSelector/utils/contents.d.ts +1 -0
- package/libs/shared-utils/three/PointSelector/utils/contents.js +4 -0
- package/libs/shared-utils/three/generatePolygonGeometry.d.ts +4 -1
- package/libs/shared-utils/three/generatePolygonGeometry.js +19 -8
- package/package.json +1 -1
|
@@ -56,14 +56,21 @@ export declare class PointSelector extends Subscribe<EventMap> {
|
|
|
56
56
|
/**
|
|
57
57
|
* @description: 不在 five canvas 上时为 true
|
|
58
58
|
*/
|
|
59
|
-
outOfFive: boolean;
|
|
60
|
-
enabled: boolean;
|
|
59
|
+
get outOfFive(): boolean;
|
|
60
|
+
get enabled(): boolean;
|
|
61
|
+
get cursorError(): boolean;
|
|
62
|
+
set cursorError(cursorError: boolean);
|
|
63
|
+
_cursorError: boolean;
|
|
61
64
|
actionIfNoModelUnderMouse: ActionIfNoModelUnderMouse;
|
|
62
65
|
plane?: THREE.Plane | null;
|
|
63
|
-
pointSelectorHelper: PointSelectorHelper;
|
|
66
|
+
readonly pointSelectorHelper: PointSelectorHelper;
|
|
64
67
|
/** @deprecated directly use `pointSelector.on/off` instead */
|
|
65
|
-
hook: this;
|
|
68
|
+
readonly hook: this;
|
|
66
69
|
private five;
|
|
70
|
+
private set outOfFive(value);
|
|
71
|
+
private _outOfFive;
|
|
72
|
+
private set enabled(value);
|
|
73
|
+
private _enabled;
|
|
67
74
|
private hammer?;
|
|
68
75
|
private mode;
|
|
69
76
|
/** 长按屏幕的动作触发后为true,手指抬起后为false */
|
|
@@ -90,6 +97,7 @@ export declare class PointSelector extends Subscribe<EventMap> {
|
|
|
90
97
|
* @return: select 是否成功
|
|
91
98
|
*/
|
|
92
99
|
select: (intersection?: PointIntersection) => boolean;
|
|
100
|
+
private onMouseWheel;
|
|
93
101
|
/**
|
|
94
102
|
* @description: 鼠标进入five canvas时
|
|
95
103
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CURSOR_NOT_ALLOW_URL = "url(\"data:image/svg+xml,%3Csvg width='12px' height='12px' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M6,12 C9.3137085,12 12,9.3137085 12,6 C12,2.6862915 9.3137085,0 6,0 C2.6862915,0 0,2.6862915 0,6 C0,9.3137085 2.6862915,12 6,12 Z' fill='%23FF5959'%3E%3C/path%3E%3Cg transform='translate(2, 2)' stroke='%23FFFFFF'%3E%3Ccircle cx='4' cy='4' r='4'%3E%3C/circle%3E%3Cline x1='1.07141075' y1='1.23997894' x2='6.64700843' y2='6.81557662'%3E%3C/line%3E%3C/g%3E%3C/g%3E%3C/svg%3E\") 6 6, auto";
|
|
@@ -2,5 +2,8 @@ import type { Vector3 } from 'three';
|
|
|
2
2
|
import * as THREE from 'three';
|
|
3
3
|
/**
|
|
4
4
|
* @description: 根据多边形的顶点数组生成多边形的 BufferGeometry
|
|
5
|
+
* @param checkLinesIntersect 检查多边形边线是否相交,需要保证传入的顶点是有序的
|
|
5
6
|
*/
|
|
6
|
-
export default function generatePolygonGeometry(_points: Vector3[]
|
|
7
|
+
export default function generatePolygonGeometry(_points: Vector3[], config?: {
|
|
8
|
+
checkLinesIntersect?: boolean;
|
|
9
|
+
}): THREE.BufferGeometry;
|
|
@@ -68,6 +68,7 @@ import "../shared-utils/three/generatePolygonGeometry.js";
|
|
|
68
68
|
import "../shared-utils/three/earcut3D.js";
|
|
69
69
|
import "earcut";
|
|
70
70
|
import "../shared-utils/three/getNormal.js";
|
|
71
|
+
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
71
72
|
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
72
73
|
import "../shared-utils/three/geometryUtil.js";
|
|
73
74
|
import "../shared-utils/three/THREERaycaster.js";
|
|
@@ -86,7 +87,7 @@ import "../shared-utils/three/addIfNotExists.js";
|
|
|
86
87
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
87
88
|
import "../shared-utils/three/getObjectVisible.js";
|
|
88
89
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
89
|
-
class
|
|
90
|
+
class it extends z {
|
|
90
91
|
constructor(e, t) {
|
|
91
92
|
var r, p;
|
|
92
93
|
super(e);
|
|
@@ -247,5 +248,5 @@ class tt extends z {
|
|
|
247
248
|
}
|
|
248
249
|
}
|
|
249
250
|
export {
|
|
250
|
-
|
|
251
|
+
it as Controller
|
|
251
252
|
};
|
|
@@ -45,6 +45,7 @@ import "../shared-utils/three/generatePolygonGeometry.js";
|
|
|
45
45
|
import "../shared-utils/three/earcut3D.js";
|
|
46
46
|
import "earcut";
|
|
47
47
|
import "../shared-utils/three/getNormal.js";
|
|
48
|
+
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
48
49
|
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
49
50
|
import "../shared-utils/three/geometryUtil.js";
|
|
50
51
|
import "../Sculpt/Meshes/PolygonWithEdge.js";
|
|
@@ -59,7 +60,7 @@ import "../components/AreaLabel/LabelItem.js";
|
|
|
59
60
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
60
61
|
import "./item/prismItem.js";
|
|
61
62
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
62
|
-
const
|
|
63
|
+
const ao = (...o) => new r(...o);
|
|
63
64
|
export {
|
|
64
|
-
|
|
65
|
+
ao as ModelMakerPlugin
|
|
65
66
|
};
|
|
@@ -27,6 +27,7 @@ import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
|
27
27
|
import "../../shared-utils/three/earcut3D.js";
|
|
28
28
|
import "earcut";
|
|
29
29
|
import "../../shared-utils/three/getNormal.js";
|
|
30
|
+
import "../utils/isIntersecting.js";
|
|
30
31
|
import "../utils/dom/areaDom.js";
|
|
31
32
|
import "../../shared-utils/three/geometryUtil.js";
|
|
32
33
|
import "hammerjs";
|
|
@@ -45,7 +46,6 @@ import "../../shared-utils/three/THREESphere.js";
|
|
|
45
46
|
import "animejs";
|
|
46
47
|
import "../../shared-utils/isNil.js";
|
|
47
48
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
48
|
-
import "../utils/isIntersecting.js";
|
|
49
49
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
50
50
|
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
51
51
|
import "../../shared-utils/three/Magnifier.js";
|
|
@@ -71,6 +71,7 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
|
71
71
|
import "../../shared-utils/isTouchDevice.js";
|
|
72
72
|
import "../../shared-utils/five/getPosition.js";
|
|
73
73
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
74
|
+
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
74
75
|
import "../Modules/DeleteDom/index.js";
|
|
75
76
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
76
77
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -116,17 +117,17 @@ function O(n) {
|
|
|
116
117
|
let o, i, t, p, f = (
|
|
117
118
|
/*i18n*/
|
|
118
119
|
n[2]("撤销") + ""
|
|
119
|
-
),
|
|
120
|
+
), m, v, d, a, b, c = (
|
|
120
121
|
/*i18n*/
|
|
121
122
|
n[2]("结束") + ""
|
|
122
123
|
), r, l, _;
|
|
123
124
|
return {
|
|
124
125
|
c() {
|
|
125
|
-
o = h("div"), i = h("div"), t = h("div"), p = C(),
|
|
126
|
-
n[3]), g(a, "class", "icon svelte-468fdd"), E(a, "background-image", `url(${te})`), g(
|
|
126
|
+
o = h("div"), i = h("div"), t = h("div"), p = C(), m = y(f), v = C(), d = h("div"), a = h("div"), b = C(), r = y(c), g(t, "class", "icon svelte-468fdd"), E(t, "background-image", `url(${ee})`), g(i, "class", "button svelte-468fdd"), z(i, "forbid", !/*canRevoke*/
|
|
127
|
+
n[3]), g(a, "class", "icon svelte-468fdd"), E(a, "background-image", `url(${te})`), g(d, "class", "button svelte-468fdd"), g(o, "class", "buttons svelte-468fdd");
|
|
127
128
|
},
|
|
128
129
|
m(u, e) {
|
|
129
|
-
R(u, o, e), s(o, i), s(i, t), s(i, p), s(i,
|
|
130
|
+
R(u, o, e), s(o, i), s(i, t), s(i, p), s(i, m), s(o, v), s(o, d), s(d, a), s(d, b), s(d, r), l || (_ = [
|
|
130
131
|
S(
|
|
131
132
|
i,
|
|
132
133
|
"click",
|
|
@@ -134,7 +135,7 @@ function O(n) {
|
|
|
134
135
|
n[7]
|
|
135
136
|
),
|
|
136
137
|
S(
|
|
137
|
-
|
|
138
|
+
d,
|
|
138
139
|
"click",
|
|
139
140
|
/*complete*/
|
|
140
141
|
n[6]
|
|
@@ -144,7 +145,7 @@ function O(n) {
|
|
|
144
145
|
p(u, e) {
|
|
145
146
|
e & /*i18n*/
|
|
146
147
|
4 && f !== (f = /*i18n*/
|
|
147
|
-
u[2]("撤销") + "") && A(
|
|
148
|
+
u[2]("撤销") + "") && A(m, f), e & /*canRevoke*/
|
|
148
149
|
8 && z(i, "forbid", !/*canRevoke*/
|
|
149
150
|
u[3]), e & /*i18n*/
|
|
150
151
|
4 && c !== (c = /*i18n*/
|
|
@@ -156,7 +157,7 @@ function O(n) {
|
|
|
156
157
|
};
|
|
157
158
|
}
|
|
158
159
|
function ie(n) {
|
|
159
|
-
let o, i, t, p, f,
|
|
160
|
+
let o, i, t, p, f, m, v, d, a, b, c, r = (
|
|
160
161
|
/*showExit*/
|
|
161
162
|
n[1] && L(n)
|
|
162
163
|
), l = (
|
|
@@ -195,10 +196,10 @@ function ie(n) {
|
|
|
195
196
|
n[4] !== void 0 && (u.setIndex = /*setSwitcherActiveIndex*/
|
|
196
197
|
n[4]), a = new Y({ props: u }), G.push(() => H(a, "setIndex", _)), {
|
|
197
198
|
c() {
|
|
198
|
-
o = h("div"), r && r.c(), i = C(), t = h("div"), p = h("div"), f = C(),
|
|
199
|
+
o = h("div"), r && r.c(), i = C(), t = h("div"), p = h("div"), f = C(), m = h("div"), l && l.c(), v = C(), d = h("div"), P(a.$$.fragment), g(p, "class", "mask svelte-468fdd"), g(d, "class", "mode-switcher svelte-468fdd"), g(m, "class", "center svelte-468fdd"), g(t, "class", "bottom svelte-468fdd"), g(o, "class", "Measure-Controller svelte-468fdd");
|
|
199
200
|
},
|
|
200
201
|
m(e, k) {
|
|
201
|
-
R(e, o, k), r && r.m(o, null), s(o, i), s(o, t), s(t, p), s(t, f), s(t,
|
|
202
|
+
R(e, o, k), r && r.m(o, null), s(o, i), s(o, t), s(t, p), s(t, f), s(t, m), l && l.m(m, null), s(m, v), s(m, d), T(a, d, null), c = !0;
|
|
202
203
|
},
|
|
203
204
|
p(e, [k]) {
|
|
204
205
|
/*showExit*/
|
|
@@ -206,7 +207,7 @@ function ie(n) {
|
|
|
206
207
|
2 && w(r, 1)) : (r = L(e), r.c(), w(r, 1), r.m(o, i)) : r && (X(), I(r, 1, 1, () => {
|
|
207
208
|
r = null;
|
|
208
209
|
}), J()), /*showController*/
|
|
209
|
-
e[5] ? l ? l.p(e, k) : (l = O(e), l.c(), l.m(
|
|
210
|
+
e[5] ? l ? l.p(e, k) : (l = O(e), l.c(), l.m(m, v)) : l && (l.d(1), l = null);
|
|
210
211
|
const M = {};
|
|
211
212
|
k & /*i18n*/
|
|
212
213
|
4 && (M.options = [
|
|
@@ -245,23 +246,23 @@ function ie(n) {
|
|
|
245
246
|
);
|
|
246
247
|
}
|
|
247
248
|
function re(n, o, i) {
|
|
248
|
-
let { measureController: t } = o, { showExit: p = !1 } = o, { i18n: f = (e) => e } = o,
|
|
249
|
-
function
|
|
249
|
+
let { measureController: t } = o, { showExit: p = !1 } = o, { i18n: f = (e) => e } = o, m = !1, v;
|
|
250
|
+
function d(e) {
|
|
250
251
|
e === "Edit" ? i(5, r = !0) : (v(null), i(5, r = !1));
|
|
251
252
|
}
|
|
252
253
|
function a() {
|
|
253
254
|
t.controller instanceof $ && t.controller.complete(), t.save({ mode: "Watch" });
|
|
254
255
|
}
|
|
255
256
|
function b(e) {
|
|
256
|
-
i(3,
|
|
257
|
+
i(3, m = e.length > 0);
|
|
257
258
|
}
|
|
258
259
|
function c() {
|
|
259
|
-
i(3,
|
|
260
|
+
i(3, m = !1);
|
|
260
261
|
}
|
|
261
262
|
N(() => {
|
|
262
|
-
t.hook.on("modeChange",
|
|
263
|
+
t.hook.on("modeChange", d), t.hook.on("complete", c), t.hook.on("pointsChange", b);
|
|
263
264
|
}), Q(() => {
|
|
264
|
-
t.hook.off("modeChange",
|
|
265
|
+
t.hook.off("modeChange", d), t.hook.off("complete", c), t.hook.off("pointsChange", b);
|
|
265
266
|
});
|
|
266
267
|
let r = !1;
|
|
267
268
|
const l = () => t.revoke(), _ = (e) => {
|
|
@@ -276,7 +277,7 @@ function re(n, o, i) {
|
|
|
276
277
|
t,
|
|
277
278
|
p,
|
|
278
279
|
f,
|
|
279
|
-
|
|
280
|
+
m,
|
|
280
281
|
v,
|
|
281
282
|
r,
|
|
282
283
|
a,
|
|
@@ -285,7 +286,7 @@ function re(n, o, i) {
|
|
|
285
286
|
u
|
|
286
287
|
];
|
|
287
288
|
}
|
|
288
|
-
class
|
|
289
|
+
class qt extends j {
|
|
289
290
|
constructor(o) {
|
|
290
291
|
super(), x(
|
|
291
292
|
this,
|
|
@@ -303,5 +304,5 @@ class At extends j {
|
|
|
303
304
|
}
|
|
304
305
|
}
|
|
305
306
|
export {
|
|
306
|
-
|
|
307
|
+
qt as default
|
|
307
308
|
};
|
|
@@ -31,6 +31,7 @@ import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
|
31
31
|
import "../../shared-utils/three/earcut3D.js";
|
|
32
32
|
import "earcut";
|
|
33
33
|
import "../../shared-utils/three/getNormal.js";
|
|
34
|
+
import "../utils/isIntersecting.js";
|
|
34
35
|
import "../utils/dom/areaDom.js";
|
|
35
36
|
import "../../shared-utils/three/geometryUtil.js";
|
|
36
37
|
import "hammerjs";
|
|
@@ -49,7 +50,6 @@ import "../../shared-utils/three/THREESphere.js";
|
|
|
49
50
|
import "animejs";
|
|
50
51
|
import "../../shared-utils/isNil.js";
|
|
51
52
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
52
|
-
import "../utils/isIntersecting.js";
|
|
53
53
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
54
54
|
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
55
55
|
import "../../shared-utils/three/Magnifier.js";
|
|
@@ -75,6 +75,7 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
|
75
75
|
import "../../shared-utils/isTouchDevice.js";
|
|
76
76
|
import "../../shared-utils/five/getPosition.js";
|
|
77
77
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
78
|
+
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
78
79
|
import "../Modules/DeleteDom/index.js";
|
|
79
80
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
80
81
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -435,7 +436,7 @@ function de(o, t, i) {
|
|
|
435
436
|
x
|
|
436
437
|
];
|
|
437
438
|
}
|
|
438
|
-
class
|
|
439
|
+
class Jt extends ee {
|
|
439
440
|
constructor(t) {
|
|
440
441
|
super(), te(
|
|
441
442
|
this,
|
|
@@ -453,5 +454,5 @@ class Ht extends ee {
|
|
|
453
454
|
}
|
|
454
455
|
}
|
|
455
456
|
export {
|
|
456
|
-
|
|
457
|
+
Jt as default
|
|
457
458
|
};
|
|
@@ -17,7 +17,7 @@ import { throttle as q } from "../../shared-utils/throttle.js";
|
|
|
17
17
|
import z from "./BaseController.js";
|
|
18
18
|
import { Polyline as E } from "../Model/polyline.js";
|
|
19
19
|
import R from "../Model/area.js";
|
|
20
|
-
import H from "../utils/isIntersecting.js";
|
|
20
|
+
import { isIntersecting as H } from "../utils/isIntersecting.js";
|
|
21
21
|
import { PointSelector as F } from "../../shared-utils/three/PointSelector/index.js";
|
|
22
22
|
import N from "../Modules/DeleteDom/index.js";
|
|
23
23
|
import * as f from "three";
|
|
@@ -82,11 +82,12 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
|
82
82
|
import "../../shared-utils/isTouchDevice.js";
|
|
83
83
|
import "../../shared-utils/five/getPosition.js";
|
|
84
84
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
85
|
+
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
85
86
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
86
87
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
87
88
|
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
88
89
|
const b = () => !1;
|
|
89
|
-
class
|
|
90
|
+
class gt extends z {
|
|
90
91
|
constructor(e) {
|
|
91
92
|
super(e);
|
|
92
93
|
s(this, "type", "edit");
|
|
@@ -366,5 +367,5 @@ class ut extends z {
|
|
|
366
367
|
}
|
|
367
368
|
}
|
|
368
369
|
export {
|
|
369
|
-
|
|
370
|
+
gt as default
|
|
370
371
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var r = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var s = (
|
|
2
|
+
var n = (a, o, i) => o in a ? r(a, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[o] = i;
|
|
3
|
+
var s = (a, o, i) => (n(a, typeof o != "symbol" ? o + "" : o, i), i);
|
|
4
4
|
import h from "hammerjs";
|
|
5
5
|
import v from "./BaseController.js";
|
|
6
6
|
import "three";
|
|
@@ -18,49 +18,49 @@ import "../../shared-utils/three/centerPoint.js";
|
|
|
18
18
|
import "../Model/point.js";
|
|
19
19
|
import "../utils/ironbox.js";
|
|
20
20
|
class R extends v {
|
|
21
|
-
constructor(
|
|
22
|
-
super(
|
|
21
|
+
constructor(i) {
|
|
22
|
+
super(i);
|
|
23
23
|
s(this, "type", "view");
|
|
24
24
|
s(this, "hammer");
|
|
25
|
-
s(this, "polylineRemoved", (
|
|
26
|
-
|
|
25
|
+
s(this, "polylineRemoved", (i) => {
|
|
26
|
+
i.lines.forEach((e) => this.removeLine(e)), this.hook.emit(
|
|
27
27
|
"selectedChange",
|
|
28
|
-
this.model.getAllLines().filter((
|
|
28
|
+
this.model.getAllLines().filter((e) => e.selected).map((e) => e)
|
|
29
29
|
);
|
|
30
30
|
});
|
|
31
|
-
s(this, "polylineAdded", (
|
|
32
|
-
const { panoIndex:
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
s(this, "polylineAdded", (i) => {
|
|
32
|
+
const { panoIndex: e, mode: t } = this.five.getCurrentState();
|
|
33
|
+
i.lines.forEach((d) => {
|
|
34
|
+
i.visibleFiveMode && !i.visibleFiveMode.includes(t) && (d.mesh.visible = !1), i.visiblePanoIndexes && !i.visiblePanoIndexes.includes(e) && (d.mesh.visible = !1), d.distanceItem.appendTo(this.container), d.distanceItem.update(this.five), this.group.add(d.mesh);
|
|
35
35
|
}), this.updateDistanceUI();
|
|
36
36
|
});
|
|
37
37
|
s(this, "onCameraUpdate", () => {
|
|
38
38
|
this.updateDistanceUI();
|
|
39
39
|
});
|
|
40
|
-
s(this, "onFiveModeChange", (
|
|
41
|
-
this.model.polylines.forEach((
|
|
42
|
-
|
|
40
|
+
s(this, "onFiveModeChange", (i) => {
|
|
41
|
+
i !== "Panorama" && (this.model.polylines.forEach((e) => {
|
|
42
|
+
e.visibleFiveMode && !e.visibleFiveMode.includes(i) && e.lines.forEach((t) => {
|
|
43
43
|
t.mesh.visible = !1, t.distanceItem.update(this.five);
|
|
44
|
-
})
|
|
44
|
+
});
|
|
45
45
|
}), this.five.ready().then(() => {
|
|
46
|
-
const
|
|
47
|
-
this.model.polylines.forEach((t) => {
|
|
48
|
-
t.visibleFiveMode && t.visibleFiveMode.includes(
|
|
46
|
+
const e = this.five.getCurrentState().mode;
|
|
47
|
+
e !== "Panorama" && this.model.polylines.forEach((t) => {
|
|
48
|
+
t.visibleFiveMode && t.visibleFiveMode.includes(e) && t.lines.forEach((d) => {
|
|
49
49
|
d.mesh.visible = !0, d.distanceItem.update(this.five);
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
|
-
});
|
|
52
|
+
}));
|
|
53
53
|
});
|
|
54
|
-
s(this, "onFivePanoWillArrive", (
|
|
55
|
-
this.model.polylines.forEach((
|
|
56
|
-
|
|
54
|
+
s(this, "onFivePanoWillArrive", (i) => {
|
|
55
|
+
this.model.polylines.forEach((e) => {
|
|
56
|
+
(e.visiblePanoIndexes && !e.visiblePanoIndexes.includes(i) || e.visibleFiveMode && !e.visibleFiveMode.includes(this.five.getCurrentState().mode)) && e.lines.forEach((t) => {
|
|
57
57
|
t.mesh.visible = !1, t.distanceItem.update(this.five);
|
|
58
|
-
})
|
|
58
|
+
});
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
-
s(this, "onFivePanoArrived", (
|
|
62
|
-
this.model.polylines.forEach((
|
|
63
|
-
|
|
61
|
+
s(this, "onFivePanoArrived", (i) => {
|
|
62
|
+
this.model.polylines.forEach((e) => {
|
|
63
|
+
e.visiblePanoIndexes && e.visiblePanoIndexes.includes(i) && e.visibleFiveMode && e.visibleFiveMode.includes(this.five.getCurrentState().mode) && e.lines.forEach((t) => {
|
|
64
64
|
t.mesh.visible = !0, t.distanceItem.update(this.five);
|
|
65
65
|
});
|
|
66
66
|
});
|
|
@@ -68,16 +68,16 @@ class R extends v {
|
|
|
68
68
|
this.model.getAllLines().forEach((t) => {
|
|
69
69
|
t.distanceItem.appendTo(this.container), t.distanceItem.update(this.five), this.group.add(t.mesh), t.mesh.updateMatrixWorld();
|
|
70
70
|
});
|
|
71
|
-
const
|
|
72
|
-
if (
|
|
73
|
-
const t = new h(
|
|
71
|
+
const e = this.five.getElement();
|
|
72
|
+
if (e) {
|
|
73
|
+
const t = new h(e);
|
|
74
74
|
this.hammer = t;
|
|
75
75
|
}
|
|
76
|
-
this.
|
|
76
|
+
this.onFiveModeChange(this.five.getCurrentState().mode), this.onFivePanoWillArrive(this.five.getCurrentState().panoIndex), this.onFivePanoArrived(this.five.getCurrentState().panoIndex), this.updateDistanceUI(), this.five.needsRender = !0, this.model.hook.on("polylineAdded", this.polylineAdded), this.model.hook.on("polylineRemoved", this.polylineRemoved), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("modeChange", this.onFiveModeChange), this.five.on("panoWillArrive", this.onFivePanoWillArrive);
|
|
77
77
|
}
|
|
78
78
|
dispose() {
|
|
79
|
-
var
|
|
80
|
-
super.dispose(), this.model.hook.off("polylineAdded", this.polylineAdded), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("modeChange", this.onFiveModeChange), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.needsRender = !0, this.hook.emit("selectedChange", []), (
|
|
79
|
+
var i;
|
|
80
|
+
super.dispose(), this.model.hook.off("polylineAdded", this.polylineAdded), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("modeChange", this.onFiveModeChange), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.needsRender = !0, this.hook.emit("selectedChange", []), (i = this.hammer) == null || i.destroy();
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
export {
|
|
@@ -50,8 +50,9 @@ import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
|
50
50
|
import "../../shared-utils/three/earcut3D.js";
|
|
51
51
|
import "earcut";
|
|
52
52
|
import "../../shared-utils/three/getNormal.js";
|
|
53
|
+
import "../utils/isIntersecting.js";
|
|
53
54
|
const E = () => !1;
|
|
54
|
-
class
|
|
55
|
+
class xt extends U {
|
|
55
56
|
constructor(t) {
|
|
56
57
|
super(t);
|
|
57
58
|
s(this, "type", "watch");
|
|
@@ -224,5 +225,5 @@ class jt extends U {
|
|
|
224
225
|
}
|
|
225
226
|
}
|
|
226
227
|
export {
|
|
227
|
-
|
|
228
|
+
xt as default
|
|
228
229
|
};
|
|
@@ -53,11 +53,11 @@ import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
|
53
53
|
import "../../shared-utils/three/earcut3D.js";
|
|
54
54
|
import "earcut";
|
|
55
55
|
import "../../shared-utils/three/getNormal.js";
|
|
56
|
+
import "../utils/isIntersecting.js";
|
|
56
57
|
import "../utils/dom/areaDom.js";
|
|
57
58
|
import "../../shared-utils/three/geometryUtil.js";
|
|
58
59
|
import "hammerjs";
|
|
59
60
|
import "../../shared-utils/isNil.js";
|
|
60
|
-
import "../utils/isIntersecting.js";
|
|
61
61
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
62
62
|
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
63
63
|
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
@@ -90,6 +90,7 @@ import "../../shared-utils/util.js";
|
|
|
90
90
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
91
91
|
import "../../shared-utils/five/getPosition.js";
|
|
92
92
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
93
|
+
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
93
94
|
import "../Modules/DeleteDom/index.js";
|
|
94
95
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
95
96
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -122,7 +123,7 @@ import "../../vendor/svelte/easing/index.js";
|
|
|
122
123
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
123
124
|
import "../Components/Tip.js";
|
|
124
125
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
125
|
-
class
|
|
126
|
+
class ze extends H {
|
|
126
127
|
constructor(t, e) {
|
|
127
128
|
var l, u, d, f, g, y, C, M, w, P, b, v;
|
|
128
129
|
super(t);
|
|
@@ -331,5 +332,5 @@ class $e extends H {
|
|
|
331
332
|
}
|
|
332
333
|
}
|
|
333
334
|
export {
|
|
334
|
-
|
|
335
|
+
ze as default
|
|
335
336
|
};
|
|
@@ -22,6 +22,7 @@ import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
|
22
22
|
import "../../shared-utils/three/earcut3D.js";
|
|
23
23
|
import "earcut";
|
|
24
24
|
import "../../shared-utils/three/getNormal.js";
|
|
25
|
+
import "../utils/isIntersecting.js";
|
|
25
26
|
import "../../shared-utils/three/geometryUtil.js";
|
|
26
27
|
import "hammerjs";
|
|
27
28
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -39,7 +40,7 @@ import "../../shared-utils/three/THREESphere.js";
|
|
|
39
40
|
import "animejs";
|
|
40
41
|
import "../../shared-utils/isNil.js";
|
|
41
42
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
42
|
-
class
|
|
43
|
+
class st {
|
|
43
44
|
constructor(t, e) {
|
|
44
45
|
i(this, "id", f());
|
|
45
46
|
i(this, "selected", !1);
|
|
@@ -138,5 +139,5 @@ class ot {
|
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
141
|
export {
|
|
141
|
-
|
|
142
|
+
st as default
|
|
142
143
|
};
|
|
@@ -3,12 +3,13 @@ var c = (o, t, e) => t in o ? l(o, t, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var s = (o, t, e) => (c(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import * as r from "three";
|
|
5
5
|
import { IObject3D as h } from "../../shared-utils/three/IObject3D.js";
|
|
6
|
-
import { generatePolygonGeometry as
|
|
6
|
+
import { generatePolygonGeometry as p } from "../../shared-utils/three/generatePolygonGeometry.js";
|
|
7
7
|
import "../../shared-utils/three/earcut3D.js";
|
|
8
8
|
import "earcut";
|
|
9
9
|
import "../../shared-utils/three/getNormal.js";
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
import "../utils/isIntersecting.js";
|
|
11
|
+
const d = new r.BufferGeometry();
|
|
12
|
+
class k extends h {
|
|
12
13
|
constructor(e) {
|
|
13
14
|
super();
|
|
14
15
|
s(this, "isPolygonMesh", !0);
|
|
@@ -36,11 +37,11 @@ class w extends h {
|
|
|
36
37
|
*/
|
|
37
38
|
updatePoints(e) {
|
|
38
39
|
this.points = e;
|
|
39
|
-
const i =
|
|
40
|
-
i ? (this.geometry.copy(i), this.isBlank = !1) : (this.geometry.copy(
|
|
40
|
+
const i = p(e);
|
|
41
|
+
i ? (this.geometry.copy(i), this.isBlank = !1) : (this.geometry.copy(d), this.isBlank = !0);
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
d as blankGeometry,
|
|
46
|
+
k as default
|
|
46
47
|
};
|
|
@@ -37,6 +37,7 @@ import "../../../shared-utils/three/generatePolygonGeometry.js";
|
|
|
37
37
|
import "../../../shared-utils/three/earcut3D.js";
|
|
38
38
|
import "earcut";
|
|
39
39
|
import "../../../shared-utils/three/getNormal.js";
|
|
40
|
+
import "../../utils/isIntersecting.js";
|
|
40
41
|
import "../../utils/dom/areaDom.js";
|
|
41
42
|
import "../../../shared-utils/three/geometryUtil.js";
|
|
42
43
|
import "hammerjs";
|
|
@@ -55,7 +56,6 @@ import "../../../shared-utils/three/THREESphere.js";
|
|
|
55
56
|
import "animejs";
|
|
56
57
|
import "../../../shared-utils/isNil.js";
|
|
57
58
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
58
|
-
import "../../utils/isIntersecting.js";
|
|
59
59
|
import "../../../shared-utils/three/PointSelector/index.js";
|
|
60
60
|
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
61
61
|
import "../../../shared-utils/three/Magnifier.js";
|
|
@@ -81,6 +81,7 @@ import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
|
81
81
|
import "../../../shared-utils/isTouchDevice.js";
|
|
82
82
|
import "../../../shared-utils/five/getPosition.js";
|
|
83
83
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
84
|
+
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
84
85
|
import "../DeleteDom/index.js";
|
|
85
86
|
import "../DeleteDom/_Assets/delete.svg.js";
|
|
86
87
|
import "../DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -91,7 +92,7 @@ import "../../Components/Common/Switcher1.js";
|
|
|
91
92
|
import "../../Components/Common/CircleButton.js";
|
|
92
93
|
import "../../../vendor/svelte/transition/index.js";
|
|
93
94
|
import "../../../vendor/svelte/easing/index.js";
|
|
94
|
-
class
|
|
95
|
+
class co {
|
|
95
96
|
constructor(o, t) {
|
|
96
97
|
i(this, "revoke");
|
|
97
98
|
i(this, "container");
|
|
@@ -145,5 +146,5 @@ class lo {
|
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
148
|
export {
|
|
148
|
-
|
|
149
|
+
co as UIController
|
|
149
150
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import t from "./Controller/index.js";
|
|
2
2
|
import "three";
|
|
3
|
-
import { Magnifier as
|
|
3
|
+
import { Magnifier as ur } from "../shared-utils/three/Magnifier.js";
|
|
4
4
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
5
5
|
import "@realsee/five/line";
|
|
6
6
|
import "../shared-utils/tag.js";
|
|
7
7
|
import "../shared-utils/three/THREESphere.js";
|
|
8
8
|
import "animejs";
|
|
9
9
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
10
|
-
import { Model as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { Polyline as
|
|
10
|
+
import { Model as Pr } from "./Model/index.js";
|
|
11
|
+
import { default as fr } from "./Model/point.js";
|
|
12
|
+
import { default as gr } from "./Model/line.js";
|
|
13
|
+
import { Polyline as dr } from "./Model/polyline.js";
|
|
14
14
|
import "./Controller/EditController.js";
|
|
15
15
|
import "../shared-utils/throttle.js";
|
|
16
16
|
import "./Controller/BaseController.js";
|
|
@@ -31,6 +31,7 @@ import "../shared-utils/three/generatePolygonGeometry.js";
|
|
|
31
31
|
import "../shared-utils/three/earcut3D.js";
|
|
32
32
|
import "earcut";
|
|
33
33
|
import "../shared-utils/three/getNormal.js";
|
|
34
|
+
import "./utils/isIntersecting.js";
|
|
34
35
|
import "./utils/dom/areaDom.js";
|
|
35
36
|
import "../shared-utils/three/geometryUtil.js";
|
|
36
37
|
import "hammerjs";
|
|
@@ -44,7 +45,6 @@ import "../shared-utils/Subscribe.js";
|
|
|
44
45
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
45
46
|
import "../shared-utils/five/transformPosition.js";
|
|
46
47
|
import "../shared-utils/three/temp.js";
|
|
47
|
-
import "./utils/isIntersecting.js";
|
|
48
48
|
import "../shared-utils/three/PointSelector/index.js";
|
|
49
49
|
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
50
50
|
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
@@ -69,6 +69,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
|
69
69
|
import "../shared-utils/isTouchDevice.js";
|
|
70
70
|
import "../shared-utils/five/getPosition.js";
|
|
71
71
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
72
|
+
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
72
73
|
import "./Modules/DeleteDom/index.js";
|
|
73
74
|
import "./Modules/DeleteDom/_Assets/delete.svg.js";
|
|
74
75
|
import "./Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -111,15 +112,15 @@ import "./Controller/ShortcutKeyController.js";
|
|
|
111
112
|
import "../shared-utils/safeObj.js";
|
|
112
113
|
import "../base/BasePlugin.js";
|
|
113
114
|
import "../shared-utils/url/absoluteUrl.js";
|
|
114
|
-
const
|
|
115
|
+
const er = function(o, r) {
|
|
115
116
|
return new t(o, r);
|
|
116
117
|
};
|
|
117
118
|
export {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
119
|
+
ur as Magnifier,
|
|
120
|
+
er as PanoMeasurePlugin,
|
|
121
|
+
gr as PanoMeasurePluginLine,
|
|
122
|
+
Pr as PanoMeasurePluginModel,
|
|
123
|
+
fr as PanoMeasurePluginPoint,
|
|
124
|
+
dr as PanoMeasurePluginPolyline,
|
|
125
|
+
er as default
|
|
125
126
|
};
|