@realsee/dnalogel 3.48.4 → 3.48.6
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 +51 -51
- package/dist/index.js +2607 -2515
- package/dist/index.umd.js +44 -44
- 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/CruisePlugin/Move.js +1 -1
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem.js +2 -3
- 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/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/PanoTagPlugin/Components/Tag/index.js +2 -3
- package/libs/PanoTagPlugin/Components/TagContainer.js +2 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +2 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +111 -94
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +2 -3
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +8 -9
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +2 -3
- package/libs/PanoTagPlugin/controller/TagRender.js +2 -3
- package/libs/PanoTagPlugin/controller/index.js +5 -6
- package/libs/PanoTagPlugin/index.js +11 -12
- 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/base/BasePlugin.js +1 -1
- package/libs/index.js +128 -127
- 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 +2 -2
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var L = Object.defineProperty, N = Object.defineProperties;
|
|
2
|
+
var z = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var A = Object.getOwnPropertySymbols;
|
|
4
4
|
var _ = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var O = (s, t, e) => t in s ? L(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, p = (s, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
|
-
_.call(t, e) &&
|
|
7
|
+
_.call(t, e) && O(s, e, t[e]);
|
|
8
8
|
if (A)
|
|
9
9
|
for (var e of A(t))
|
|
10
|
-
q.call(t, e) &&
|
|
10
|
+
q.call(t, e) && O(s, e, t[e]);
|
|
11
11
|
return s;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, j = (s, t) => N(s, z(t));
|
|
13
|
+
var v = (s, t, e) => (O(s, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
14
|
var V = (s, t, e) => new Promise((c, d) => {
|
|
15
|
-
var
|
|
15
|
+
var u = (n) => {
|
|
16
16
|
try {
|
|
17
|
-
f(e.next(
|
|
18
|
-
} catch (
|
|
19
|
-
d(
|
|
17
|
+
f(e.next(n));
|
|
18
|
+
} catch (l) {
|
|
19
|
+
d(l);
|
|
20
20
|
}
|
|
21
|
-
}, r = (
|
|
21
|
+
}, r = (n) => {
|
|
22
22
|
try {
|
|
23
|
-
f(e.throw(
|
|
24
|
-
} catch (
|
|
25
|
-
d(
|
|
23
|
+
f(e.throw(n));
|
|
24
|
+
} catch (l) {
|
|
25
|
+
d(l);
|
|
26
26
|
}
|
|
27
|
-
}, f = (
|
|
27
|
+
}, f = (n) => n.done ? c(n.value) : Promise.resolve(n.value).then(u, r);
|
|
28
28
|
f((e = e.apply(s, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import { BaseObject as G } from "../Base/index.js";
|
|
31
|
-
import * as
|
|
32
|
-
import { PolylineMesh as
|
|
33
|
-
import { AreaMesh as
|
|
31
|
+
import * as g from "three";
|
|
32
|
+
import { PolylineMesh as k } from "../../Meshes/Polyline.js";
|
|
33
|
+
import { AreaMesh as B } from "../../Meshes/Area.js";
|
|
34
34
|
import { PolygonEditor as J } from "./Editor.js";
|
|
35
35
|
import { vector3ToArray as K } from "../../../shared-utils/three/vector3ToArray.js";
|
|
36
36
|
import { withResolvers as Q } from "../../../shared-utils/promise/withResolvers.js";
|
|
37
|
-
const
|
|
38
|
-
class
|
|
37
|
+
const D = new g.Vector3();
|
|
38
|
+
class oe extends G {
|
|
39
39
|
constructor(e, c) {
|
|
40
40
|
super(e, c);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
this.editor = new J(this), e && (this.areaMesh = new
|
|
41
|
+
v(this, "type", "Polygon");
|
|
42
|
+
v(this, "areaMesh");
|
|
43
|
+
v(this, "creatingObject");
|
|
44
|
+
this.editor = new J(this), e && (this.areaMesh = new B(p(p({}, e.style), e)), this.add(this.areaMesh));
|
|
45
45
|
}
|
|
46
46
|
get data() {
|
|
47
|
-
return this.updateMatrixWorld(),
|
|
47
|
+
return this.updateMatrixWorld(), j(p({}, this.baseData), {
|
|
48
48
|
points: K(this.applyObjectMatrixWorld(this.areaMesh.points)),
|
|
49
49
|
style: {
|
|
50
50
|
color: this.areaMesh.color.getHex(),
|
|
@@ -82,60 +82,59 @@ class ne extends G {
|
|
|
82
82
|
this.children.forEach((d) => {
|
|
83
83
|
d.parent === this && this.remove(d);
|
|
84
84
|
}), this.children.length = 0;
|
|
85
|
-
const c = new
|
|
85
|
+
const c = new B(e);
|
|
86
86
|
this.areaMesh = c, this.add(this.areaMesh), this.creatingObject = X(this.areaMesh, this.pointSelector, e), yield this.creatingObject.finished, this.editor.enable();
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
function X(s, t, e) {
|
|
91
|
-
var
|
|
92
|
-
const { promise: c, resolve: d, reject:
|
|
91
|
+
var M;
|
|
92
|
+
const { promise: c, resolve: d, reject: u } = Q(), r = s.parent;
|
|
93
93
|
if (!r) {
|
|
94
|
-
|
|
94
|
+
u(new Error("No container"));
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
|
-
const f = (
|
|
98
|
-
r == null || r.add(
|
|
99
|
-
const
|
|
100
|
-
r == null || r.add(
|
|
101
|
-
const
|
|
102
|
-
let i, h,
|
|
103
|
-
const
|
|
104
|
-
x() && (
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
const
|
|
113
|
-
|
|
97
|
+
const f = (M = e == null ? void 0 : e.limit) != null ? M : "none", n = new k(j(p({}, s.style), { opacity: 1 }));
|
|
98
|
+
r == null || r.add(n);
|
|
99
|
+
const l = new k(j(p({}, s.style), { dashed: !0, lengthEnable: !1 }));
|
|
100
|
+
r == null || r.add(l), t.enable();
|
|
101
|
+
const o = [];
|
|
102
|
+
let i, h, C = !1, E;
|
|
103
|
+
const m = [], x = () => o.length > 0, R = () => m.length > 0, F = () => {
|
|
104
|
+
x() && (m.push(o.pop()), y(E), t.pointSelectorHelper.magnifier.render());
|
|
105
|
+
}, I = () => {
|
|
106
|
+
R() && (o.push(m.pop()), y(E), t.pointSelectorHelper.magnifier.render());
|
|
107
|
+
}, U = (a) => {
|
|
108
|
+
m.length = 0;
|
|
109
|
+
const w = o.length === 0 ? a.point : i.clone();
|
|
110
|
+
o.push(w), s.setPoints(o, { closed: !1 }), C && (W(), d());
|
|
111
|
+
}, y = (a) => {
|
|
112
|
+
const w = () => {
|
|
113
|
+
n.setPoints([]), l.setPoints([]), s.setPoints(o), t.pointSelectorHelper.magnifier.render();
|
|
114
114
|
};
|
|
115
|
-
if (!(
|
|
116
|
-
return
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
y.distanceTo(i) < T || y.distanceTo(l.point) < T ? (i = y, l.point.copy(y), t.pointSelectorHelper.updateWithIntersect(l, { emitEvent: !1 }), v = !0) : v = !1, o.setPoints([p, i]), a.setPoints([i, l.point]);
|
|
115
|
+
if (!a || (E = a, !(o != null && o.length)))
|
|
116
|
+
return w();
|
|
117
|
+
const P = o.at(-1).clone();
|
|
118
|
+
if (o.length < 3 && (f === "none" ? (i = a.point, n.setPoints([P, i]), l.setPoints([])) : f === "xoz" ? (h = h != null ? h : new g.Plane().setFromNormalAndCoplanarPoint(new g.Vector3(0, 1, 0), o[0]), t.plane = h, i = h.projectPoint(a.point, D), n.setPoints([P, i]), l.setPoints([i, a.point])) : f === "y" && (o.length === 1 ? (i = a.point, n.setPoints([P, i]), l.setPoints([])) : (h = h != null ? h : new g.Plane().setFromCoplanarPoints(o[0], o[1], new g.Vector3(0, 1, 0).add(o[0])), t.plane = h, i = h.projectPoint(a.point, D), n.setPoints([P, i]), l.setPoints([i, a.point])))), o.length >= 3) {
|
|
119
|
+
i = s.projectPoint(a.point);
|
|
120
|
+
const b = o[0], T = 0.2;
|
|
121
|
+
b.distanceTo(i) < T || b.distanceTo(a.point) < T ? (i = b, a.point.copy(b), t.pointSelectorHelper.updateWithIntersect(a, { emitEvent: !1 }), C = !0) : C = !1, n.setPoints([P, i]), l.setPoints([i, a.point]);
|
|
123
122
|
}
|
|
124
|
-
|
|
125
|
-
}, U = () => {
|
|
126
|
-
t.off("select", R), t.off("intersectionUpdate", w), t.off("disable", W), t.plane = null, t.disable(), r == null || r.remove(o, a);
|
|
123
|
+
o.length >= 2 ? (s.setPoints([...o, i], { closed: !1 }), s.line.setPoints(s.points.slice(0, -1)), s.isBlank ? (t.cursorError = !0, n.setStyle({ lineColor: 16734553 }), l.setStyle({ lineColor: 16734553 })) : (t.cursorError = !1, n.setStyle({ lineColor: s.lineColor }), l.setStyle({ lineColor: s.lineColor }))) : s.setPoints([]);
|
|
127
124
|
}, W = () => {
|
|
128
|
-
U(), r == null || r.remove(
|
|
125
|
+
t.off("select", U), t.off("intersectionUpdate", y), t.off("disable", H), t.plane = null, t.disable(), r == null || r.remove(n, l);
|
|
126
|
+
}, H = () => {
|
|
127
|
+
W(), r == null || r.remove(s, l, n), u(new Error("Cancelled"));
|
|
129
128
|
};
|
|
130
|
-
return t.on("select",
|
|
129
|
+
return t.on("select", U), t.on("intersectionUpdate", y), t.on("disable", H), {
|
|
131
130
|
finished: c,
|
|
132
131
|
canUndo: x,
|
|
133
|
-
canRedo:
|
|
134
|
-
undo:
|
|
135
|
-
redo:
|
|
132
|
+
canRedo: R,
|
|
133
|
+
undo: F,
|
|
134
|
+
redo: I
|
|
136
135
|
};
|
|
137
136
|
}
|
|
138
137
|
export {
|
|
139
|
-
|
|
138
|
+
oe as Polygon,
|
|
140
139
|
X as createPolygon
|
|
141
140
|
};
|
|
@@ -2,15 +2,15 @@ var F = Object.defineProperty, T = Object.defineProperties;
|
|
|
2
2
|
var k = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var E = Object.getOwnPropertySymbols;
|
|
4
4
|
var z = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var j = (n, t, e) => t in n ? F(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, p = (n, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
|
-
z.call(t, e) &&
|
|
7
|
+
z.call(t, e) && j(n, e, t[e]);
|
|
8
8
|
if (E)
|
|
9
9
|
for (var e of E(t))
|
|
10
|
-
B.call(t, e) &&
|
|
10
|
+
B.call(t, e) && j(n, e, t[e]);
|
|
11
11
|
return n;
|
|
12
12
|
}, M = (n, t) => T(n, k(t));
|
|
13
|
-
var y = (n, t, e) => (
|
|
13
|
+
var y = (n, t, e) => (j(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
14
|
var R = (n, t, e) => new Promise((s, P) => {
|
|
15
15
|
var w = (o) => {
|
|
16
16
|
try {
|
|
@@ -94,11 +94,11 @@ function q(n, t, e) {
|
|
|
94
94
|
const a = new W(M(p({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
95
95
|
s.add(a), t.enable();
|
|
96
96
|
const i = [];
|
|
97
|
-
let r, l,
|
|
97
|
+
let r, l, v;
|
|
98
98
|
const f = [], O = () => i.length > 0, L = () => f.length > 0, A = () => {
|
|
99
|
-
O() && (f.push(i.pop()), n.setPoints(i), g(
|
|
99
|
+
O() && (f.push(i.pop()), n.setPoints(i), g(v), t.pointSelectorHelper.magnifier.render());
|
|
100
100
|
}, D = () => {
|
|
101
|
-
L() && (i.push(f.pop()), n.setPoints(i), g(
|
|
101
|
+
L() && (i.push(f.pop()), n.setPoints(i), g(v), t.pointSelectorHelper.magnifier.render());
|
|
102
102
|
}, C = (h) => {
|
|
103
103
|
f.length = 0;
|
|
104
104
|
const m = i.length === 0 ? h.point : r.clone();
|
|
@@ -107,9 +107,8 @@ function q(n, t, e) {
|
|
|
107
107
|
const m = () => {
|
|
108
108
|
o.setPoints([]), a.setPoints([]), r = null;
|
|
109
109
|
};
|
|
110
|
-
if (!(i != null && i.length)
|
|
110
|
+
if (!h || (v = h, !(i != null && i.length)))
|
|
111
111
|
return m();
|
|
112
|
-
j = h;
|
|
113
112
|
const u = i.at(-1).clone();
|
|
114
113
|
c === "none" ? (r = h.point, o.setPoints([u, r])) : c === "xoz" ? (l = l != null ? l : new d.Plane().setFromNormalAndCoplanarPoint(new d.Vector3(0, 1, 0), i[0]), t.plane = l, r = l.projectPoint(h.point, V), o.setPoints([u, r]), a.setPoints([r, h.point])) : c === "y" && (i.length === 1 ? (r = h.point, o.setPoints([u, r])) : (l = l != null ? l : new d.Plane().setFromCoplanarPoints(i[0], i[1], new d.Vector3(0, 1, 0).add(i[0])), t.plane = l, r = l.projectPoint(h.point, V), o.setPoints([u, r]), a.setPoints([r, h.point])));
|
|
115
114
|
};
|
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 Rl } from "./components/PaintBrush/index.js";
|
|
4
|
+
import { PaintBrushTypeEnum as Ol } from "./components/PaintBrush/typings.js";
|
|
5
|
+
import { ModelViewPlugin as Al } from "./ModelViewPlugin/Plugin.js";
|
|
6
|
+
import { CSS3DRenderPlugin as Gl } from "./CSS3DRenderPlugin/index.js";
|
|
7
|
+
import { PanoCursorRaycasterPlugin as vl } from "./PanoCursorRaycasterPlugin/index.js";
|
|
8
|
+
import { ModelRoomLabelPlugin as Yl, modelRoomLabelPluginServerParams as cl } from "./ModelRoomLabelPlugin/index.js";
|
|
9
|
+
import { FLOOR_PLAN_ATTACHED_TO as Nl } from "./floorplan/constant.js";
|
|
10
|
+
import { ModelFloorplanPlugin as kl } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
11
|
+
import { MapviewFloorplanPlugin as Bl } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
12
|
+
import { TopviewFloorplanPlugin as Ul } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
13
|
+
import { PanoFloorplanRadarPlugin as $l } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
14
|
+
import { FLOOR_TYPE_MAP as ql, ROOM_FETILE_TYPE_MAP as zl, ROOM_TYPE_MAP as Jl } from "./floorplan/typings/floorplanServerData.js";
|
|
15
|
+
import { ModelChassisCompassPlugin as Ql } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
16
|
+
import { ModelEntryDoorGuidePlugin as Zl } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
17
|
+
import { CameraMovementPlugin as rn } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
18
|
+
import { CameraMovementEffect as mn, Rotation as pn } from "./CameraMovementPlugin/typing.js";
|
|
19
|
+
import { PanoRulerPlugin as ln } from "./PanoRulerPlugin/Plugin.js";
|
|
20
|
+
import { PanoRulerProPlugin as an } from "./PanoRulerProPlugin/index.js";
|
|
21
|
+
import { PanoCompassPlugin as un } from "./PanoCompassPlugin/index.js";
|
|
22
|
+
import { PanoMeasurePlugin as xn } from "./PanoMeasurePlugin/index.js";
|
|
23
|
+
import { PanoSpatialTagPlugin as sn } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
24
|
+
import { modelItemLabelPluginServerParams as Mn } from "./ModelItemLabelPlugin/index.js";
|
|
25
|
+
import { ModelTVVideoPlugin as Ln } from "./ModelTVVideoPlugin/Plugin.js";
|
|
26
|
+
import { DIRECTION as _n } from "./ModelTVVideoPlugin/typings.js";
|
|
27
|
+
import { itemLabelPluginServerParams as In } from "./ItemLabelPlugin/index.js";
|
|
28
|
+
import { PanoDoorLabelPlugin as Sn } from "./PanoDoorLabelPlugin/index.js";
|
|
29
|
+
import { GuideLinePlugin as yn } from "./GuideLinePlugin/index.js";
|
|
30
|
+
import { CruisePlugin as Dn, MovePlugin as Gn } from "./CruisePlugin/index.js";
|
|
31
|
+
import { PanoTagPlugin as vn } from "./PanoTagPlugin/index.js";
|
|
32
|
+
import { Object3DHelperPlugin as Yn } from "./Object3DHelperPlugin/index.js";
|
|
33
|
+
import { PanoVideoPlugin as Vn } from "./PanoVideoPlugin/index.js";
|
|
34
|
+
import { PipelinePlugin as hn } from "./PipelinePlugin/index.js";
|
|
35
|
+
import { AreaMakerPlugin as wn } from "./AreaMakerPlugin/index.js";
|
|
36
|
+
import { CurrentPanoImagePlugin as Hn } from "./CurrentPanoImagePlugin/index.js";
|
|
37
|
+
import { Sculpt as jn, SculptPlugin as $n } from "./Sculpt/index.js";
|
|
38
|
+
import { ModelMakerPlugin as qn } from "./ModelMakerPlugin/index.js";
|
|
39
|
+
import { index as Jn } from "./shared-utils/index.js";
|
|
40
|
+
import { CSS3DRender as Qn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
41
|
+
import { Model as Zn } from "./PanoMeasurePlugin/Model/index.js";
|
|
42
|
+
import { default as ra } from "./PanoMeasurePlugin/Model/point.js";
|
|
43
|
+
import { default as ia } from "./PanoMeasurePlugin/Model/line.js";
|
|
44
|
+
import { Polyline as pa } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
45
|
+
import { Magnifier as la } from "./shared-utils/three/Magnifier.js";
|
|
46
|
+
import { DISPLAY_STRATEGY_TYPE as aa } from "./ModelItemLabelPlugin/typings.js";
|
|
47
|
+
import { ModelItemLabelPlugin as ua } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
48
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as xa } from "./ItemLabelPlugin/typings.js";
|
|
49
|
+
import { Plugin as sa } from "./ItemLabelPlugin/Plugin.js";
|
|
50
|
+
import { GuideLineItem$1 as Ma } from "./GuideLinePlugin/GuideLineItem/index.js";
|
|
51
|
+
import { GuideLineModeItem$1 as La } from "./GuideLinePlugin/GuideLineModeItem/index.js";
|
|
52
|
+
import { default as _a, default as Ea } from "./CruisePlugin/Work.js";
|
|
53
|
+
import { default as Ra } from "./CruisePlugin/Move.js";
|
|
54
|
+
import { typing as Oa } from "./CruisePlugin/typing/index.js";
|
|
55
|
+
import { default as Aa, pluginFlag as Da } from "./PanoTagPlugin/controller/index.js";
|
|
56
|
+
import { defaultGlobalConfig as ba } from "./PanoTagPlugin/typings/tag/TagConfig.js";
|
|
57
|
+
import { ContentType as Fa, DimensionType as Ya, PointType as ca } from "./PanoTagPlugin/Archive/deprecated.js";
|
|
58
|
+
import { Object3DHelperController as Na, PLUGIN as ha } from "./Object3DHelperPlugin/Controller.js";
|
|
59
|
+
import { typings as wa } 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";
|
|
@@ -193,9 +193,9 @@ import "./shared-utils/three/generatePolygonGeometry.js";
|
|
|
193
193
|
import "./shared-utils/three/earcut3D.js";
|
|
194
194
|
import "earcut";
|
|
195
195
|
import "./shared-utils/three/getNormal.js";
|
|
196
|
+
import "./PanoMeasurePlugin/utils/isIntersecting.js";
|
|
196
197
|
import "./PanoMeasurePlugin/utils/dom/areaDom.js";
|
|
197
198
|
import "./shared-utils/three/geometryUtil.js";
|
|
198
|
-
import "./PanoMeasurePlugin/utils/isIntersecting.js";
|
|
199
199
|
import "./shared-utils/three/PointSelector/index.js";
|
|
200
200
|
import "./shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
201
201
|
import "./shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
@@ -212,6 +212,7 @@ import "./CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
|
212
212
|
import "./shared-utils/isTouchDevice.js";
|
|
213
213
|
import "./shared-utils/five/getPosition.js";
|
|
214
214
|
import "./shared-utils/five/getRaycasterByNdcPosition.js";
|
|
215
|
+
import "./shared-utils/three/PointSelector/utils/contents.js";
|
|
215
216
|
import "./PanoMeasurePlugin/Modules/DeleteDom/index.js";
|
|
216
217
|
import "./PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js";
|
|
217
218
|
import "./PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -374,7 +375,6 @@ import "./PanoTagPlugin/utils/checkRange.js";
|
|
|
374
375
|
import "./shared-utils/url/getUrl.js";
|
|
375
376
|
import "./shared-utils/five/getFloorIndex.js";
|
|
376
377
|
import "./PanoTagPlugin/utils/Cache.js";
|
|
377
|
-
import "./CruisePlugin/utils/sleep.js";
|
|
378
378
|
import "./PanoTagPlugin/controller/TagUtil.js";
|
|
379
379
|
import "./PanoTagPlugin/tag.config.js";
|
|
380
380
|
import "./PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
@@ -395,6 +395,7 @@ import "./CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
|
395
395
|
import "./CruisePlugin/utils/coordinatesAngle.js";
|
|
396
396
|
import "./CruisePlugin/utils/coordinatesToVector.js";
|
|
397
397
|
import "./CruisePlugin/utils/safeCall.js";
|
|
398
|
+
import "./CruisePlugin/utils/sleep.js";
|
|
398
399
|
import "./shared-utils/five/fiveLoaded.js";
|
|
399
400
|
import "./shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
400
401
|
import "./shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
@@ -508,72 +509,72 @@ import "./shared-utils/five/lookObject.js";
|
|
|
508
509
|
r();
|
|
509
510
|
o();
|
|
510
511
|
export {
|
|
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
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
512
|
+
wn as AreaMakerPlugin,
|
|
513
|
+
Qn as CSS3DRender,
|
|
514
|
+
Gl as CSS3DRenderPlugin,
|
|
515
|
+
mn as CameraMovementEffect,
|
|
516
|
+
rn as CameraMovementPlugin,
|
|
517
|
+
Fa as ContentType,
|
|
518
|
+
Dn as CruisePlugin,
|
|
519
|
+
_a as CruisePluginController,
|
|
520
|
+
Oa as CruisePluginTypes,
|
|
521
|
+
Hn as CurrentPanoImagePlugin,
|
|
522
|
+
_n as DIRECTION,
|
|
523
|
+
aa as DISPLAY_STRATEGY_TYPE,
|
|
524
|
+
Ya as DimensionType,
|
|
525
|
+
Nl as FLOOR_PLAN_ATTACHED_TO,
|
|
526
|
+
ql as FLOOR_TYPE_MAP,
|
|
527
|
+
Ma as GuideLineItem,
|
|
528
|
+
La as GuideLineModeItem,
|
|
529
|
+
yn as GuideLinePlugin,
|
|
530
|
+
xa as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
531
|
+
sa as ItemLabelPlugin,
|
|
532
|
+
la as Magnifier,
|
|
533
|
+
Bl as MapviewFloorplanPlugin,
|
|
534
|
+
Ql as ModelChassisCompassPlugin,
|
|
535
|
+
Zl as ModelEntryDoorGuidePlugin,
|
|
536
|
+
kl as ModelFloorplanPlugin,
|
|
537
|
+
ua as ModelItemLabelPlugin,
|
|
538
|
+
qn as ModelMakerPlugin,
|
|
539
|
+
Yl as ModelRoomLabelPlugin,
|
|
540
|
+
Ln as ModelTVVideoPlugin,
|
|
541
|
+
Al as ModelViewPlugin,
|
|
542
|
+
Ra as MoveController,
|
|
543
|
+
Gn as MovePlugin,
|
|
544
|
+
Na as Object3DHelperController,
|
|
545
|
+
Yn as Object3DHelperPlugin,
|
|
546
|
+
ha as PLUGIN,
|
|
547
|
+
Rl as PaintBrush,
|
|
548
|
+
Ol as PaintBrushTypeEnum,
|
|
549
|
+
un as PanoCompassPlugin,
|
|
550
|
+
vl as PanoCursorRaycasterPlugin,
|
|
551
|
+
Sn as PanoDoorLabelPlugin,
|
|
552
|
+
$l as PanoFloorplanRadarPlugin,
|
|
553
|
+
xn as PanoMeasurePlugin,
|
|
554
|
+
ia as PanoMeasurePluginLine,
|
|
555
|
+
Zn as PanoMeasurePluginModel,
|
|
556
|
+
ra as PanoMeasurePluginPoint,
|
|
557
|
+
pa as PanoMeasurePluginPolyline,
|
|
558
|
+
ln as PanoRulerPlugin,
|
|
559
|
+
an as PanoRulerProPlugin,
|
|
560
|
+
sn as PanoSpatialTagPlugin,
|
|
561
|
+
vn as PanoTagPlugin,
|
|
562
|
+
Aa as PanoTagPluginController,
|
|
563
|
+
Vn as PanoVideoPlugin,
|
|
564
|
+
wa as PanoVideoPluginType,
|
|
565
|
+
hn as PipelinePlugin,
|
|
566
|
+
ca as PointType,
|
|
567
|
+
zl as ROOM_FETILE_TYPE_MAP,
|
|
568
|
+
Jl as ROOM_TYPE_MAP,
|
|
569
|
+
pn as Rotation,
|
|
570
|
+
jn as Sculpt,
|
|
571
|
+
$n as SculptPlugin,
|
|
572
|
+
Ul as TopviewFloorplanPlugin,
|
|
573
|
+
Jn as Util,
|
|
574
|
+
Ea as WalkController,
|
|
575
|
+
ba as defaultGlobalConfig,
|
|
576
|
+
In as itemLabelPluginServerParams,
|
|
577
|
+
Mn as modelItemLabelPluginServerParams,
|
|
578
|
+
cl as modelRoomLabelPluginServerParams,
|
|
579
|
+
Da as pluginFlag
|
|
579
580
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.48.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.48.6",
|
|
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",
|
|
@@ -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
|
*/
|