@realsee/dnalogel 3.77.5 → 3.77.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 +17 -11
- package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +5 -1
- package/dist/PanoTagPlugin/controller/Tag/BoxTag.d.ts +119 -0
- package/dist/PanoTagPlugin/controller/Tag/MaskTag.d.ts +257 -0
- package/dist/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +10 -0
- package/dist/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/index.d.ts +55 -2
- package/dist/PanoTagPlugin/typings/controller.d.ts +10 -0
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
- package/dist/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +12 -3
- package/dist/Sculpt/Meshes/Line.d.ts +4 -0
- package/dist/index.cjs.js +178 -95
- package/dist/index.js +11378 -9801
- package/dist/index.umd.js +173 -90
- package/dist/shared-utils/five/getFiveFromParentChain.d.ts +7 -0
- package/libs/AreaMakerPlugin/Controller.js +3 -2
- package/libs/AreaMakerPlugin/index.js +3 -2
- package/libs/AreaMakerPlugin/utils/Item.js +3 -2
- package/libs/CSS3DRenderPlugin/Controller.js +3 -2
- package/libs/CSS3DRenderPlugin/index.js +6 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +39 -38
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +10 -9
- package/libs/CruisePlugin/BaseController.js +5 -4
- package/libs/CruisePlugin/Move.js +8 -2
- package/libs/CruisePlugin/Work.js +8 -2
- package/libs/CruisePlugin/index.js +12 -6
- package/libs/CurrentPanoImagePlugin/Controller.js +15 -14
- package/libs/CurrentPanoImagePlugin/index.js +4 -3
- package/libs/GuideLinePlugin/Controller.js +10 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +8 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +8 -2
- package/libs/GuideLinePlugin/index.js +12 -6
- package/libs/MeasurePlugin/Controller.js +11 -10
- package/libs/MeasurePlugin/index.js +5 -4
- package/libs/MeasurePlugin/utils/MeasureMesh.js +3 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
- package/libs/ModelChassisCompassPlugin/index.js +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
- package/libs/ModelMakerPlugin/Controller.js +3 -2
- package/libs/ModelMakerPlugin/index.js +3 -2
- package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
- package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
- package/libs/ModelTVVideoPlugin/index.js +3 -2
- package/libs/ModelViewPlugin/Plugin.js +20 -19
- package/libs/ModelViewPlugin/index.js +1 -0
- package/libs/Object3DHelperPlugin/Controller.js +3 -2
- package/libs/Object3DHelperPlugin/index.js +6 -5
- package/libs/PanoCompassPlugin/Controller.js +3 -2
- package/libs/PanoCompassPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/Controller.js +24 -23
- package/libs/PanoDoorLabelPlugin/index.js +4 -3
- package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/area.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
- package/libs/PanoMeasurePlugin/index.js +14 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
- package/libs/PanoRulerProPlugin/Controller.js +3 -2
- package/libs/PanoRulerProPlugin/RulerItems.js +42 -41
- package/libs/PanoRulerProPlugin/index.js +4 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +34 -33
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +125 -124
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +5 -1
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +321 -289
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.d.ts +119 -0
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +516 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.d.ts +257 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +816 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +10 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.js +94 -0
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
- package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +479 -0
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +22 -19
- package/libs/PanoTagPlugin/controller/index.d.ts +55 -2
- package/libs/PanoTagPlugin/controller/index.js +243 -129
- package/libs/PanoTagPlugin/index.js +17 -11
- package/libs/PanoTagPlugin/typings/controller.d.ts +10 -0
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +27 -13
- package/libs/PanoTagPlugin/utils/index.js +29 -26
- package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
- package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.js +18 -0
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +26 -14
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +12 -3
- package/libs/PanoTagPlugin/utils/tagPosition.js +49 -16
- package/libs/PanoVideoPlugin/Controller.js +9 -8
- package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
- package/libs/PanoVideoPlugin/index.js +6 -5
- package/libs/PipelinePlugin/Controller.js +3 -2
- package/libs/PipelinePlugin/index.js +4 -3
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
- package/libs/Sculpt/Meshes/Line.d.ts +4 -0
- package/libs/Sculpt/Meshes/Line.js +85 -76
- package/libs/Sculpt/Meshes/Point.js +28 -28
- package/libs/Sculpt/Meshes/Polygon.js +43 -43
- package/libs/Sculpt/index.js +1 -1
- package/libs/Sculpt/utils/Modules/Cursor.js +7 -7
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
- package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
- package/libs/index.js +164 -158
- package/libs/shared-utils/five/getFiveFromParentChain.d.ts +7 -0
- package/libs/shared-utils/five/getFiveFromParentChain.js +15 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as Q, init as X, safe_not_equal as Z, element as $, insert as tt, transition_in as C, check_outros as et, transition_out as k, detach as ot, destroy_each as
|
|
1
|
+
import { SvelteComponent as Q, init as X, safe_not_equal as Z, element as $, insert as tt, transition_in as C, check_outros as et, transition_out as k, detach as ot, destroy_each as rt, onMount as nt, onDestroy as it, create_component as st, mount_component as at, destroy_component as ct, group_outros as mt } from "../vendor/svelte/internal/index.js";
|
|
2
2
|
import { Five as lt } from "@realsee/five";
|
|
3
3
|
import { nextFrame as pt } from "../shared-utils/animationFrame/index.js";
|
|
4
4
|
import "../shared-utils/tag.js";
|
|
@@ -53,6 +53,7 @@ import "../shared-utils/three/IObject3D.js";
|
|
|
53
53
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
54
54
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
55
55
|
import "../shared-utils/util.js";
|
|
56
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
56
57
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
57
58
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
58
59
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -70,99 +71,99 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
70
71
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
71
72
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
72
73
|
import "../shared-utils/isTruelyObject.js";
|
|
73
|
-
function J(d,
|
|
74
|
+
function J(d, n, c) {
|
|
74
75
|
const t = d.slice();
|
|
75
|
-
return t[12] =
|
|
76
|
+
return t[12] = n[c], t;
|
|
76
77
|
}
|
|
77
78
|
function K(d) {
|
|
78
|
-
let
|
|
79
|
-
return
|
|
79
|
+
let n, c;
|
|
80
|
+
return n = new ht({
|
|
80
81
|
props: { rulerItemProp: (
|
|
81
82
|
/*itemData*/
|
|
82
83
|
d[12]
|
|
83
84
|
) }
|
|
84
85
|
}), {
|
|
85
86
|
c() {
|
|
86
|
-
st(
|
|
87
|
+
st(n.$$.fragment);
|
|
87
88
|
},
|
|
88
89
|
m(t, e) {
|
|
89
|
-
at(
|
|
90
|
+
at(n, t, e), c = !0;
|
|
90
91
|
},
|
|
91
92
|
p(t, e) {
|
|
92
93
|
const w = {};
|
|
93
94
|
e & /*rulerItemProp*/
|
|
94
95
|
1 && (w.rulerItemProp = /*itemData*/
|
|
95
|
-
t[12]),
|
|
96
|
+
t[12]), n.$set(w);
|
|
96
97
|
},
|
|
97
98
|
i(t) {
|
|
98
|
-
c || (C(
|
|
99
|
+
c || (C(n.$$.fragment, t), c = !0);
|
|
99
100
|
},
|
|
100
101
|
o(t) {
|
|
101
|
-
k(
|
|
102
|
+
k(n.$$.fragment, t), c = !1;
|
|
102
103
|
},
|
|
103
104
|
d(t) {
|
|
104
|
-
ct(
|
|
105
|
+
ct(n, t);
|
|
105
106
|
}
|
|
106
107
|
};
|
|
107
108
|
}
|
|
108
109
|
function dt(d) {
|
|
109
|
-
let
|
|
110
|
+
let n, c, t = (
|
|
110
111
|
/*rulerItemProp*/
|
|
111
112
|
d[0]
|
|
112
113
|
), e = [];
|
|
113
|
-
for (let
|
|
114
|
-
e[
|
|
115
|
-
const w = (
|
|
116
|
-
e[
|
|
114
|
+
for (let r = 0; r < t.length; r += 1)
|
|
115
|
+
e[r] = K(J(d, t, r));
|
|
116
|
+
const w = (r) => k(e[r], 1, 1, () => {
|
|
117
|
+
e[r] = null;
|
|
117
118
|
});
|
|
118
119
|
return {
|
|
119
120
|
c() {
|
|
120
|
-
|
|
121
|
-
for (let
|
|
122
|
-
e[
|
|
121
|
+
n = $("div");
|
|
122
|
+
for (let r = 0; r < e.length; r += 1)
|
|
123
|
+
e[r].c();
|
|
123
124
|
},
|
|
124
|
-
m(
|
|
125
|
-
tt(
|
|
125
|
+
m(r, s) {
|
|
126
|
+
tt(r, n, s);
|
|
126
127
|
for (let o = 0; o < e.length; o += 1)
|
|
127
|
-
e[o] && e[o].m(
|
|
128
|
+
e[o] && e[o].m(n, null);
|
|
128
129
|
c = !0;
|
|
129
130
|
},
|
|
130
|
-
p(
|
|
131
|
+
p(r, [s]) {
|
|
131
132
|
if (s & /*rulerItemProp*/
|
|
132
133
|
1) {
|
|
133
134
|
t = /*rulerItemProp*/
|
|
134
|
-
|
|
135
|
+
r[0];
|
|
135
136
|
let o;
|
|
136
137
|
for (o = 0; o < t.length; o += 1) {
|
|
137
|
-
const A = J(
|
|
138
|
-
e[o] ? (e[o].p(A, s), C(e[o], 1)) : (e[o] = K(A), e[o].c(), C(e[o], 1), e[o].m(
|
|
138
|
+
const A = J(r, t, o);
|
|
139
|
+
e[o] ? (e[o].p(A, s), C(e[o], 1)) : (e[o] = K(A), e[o].c(), C(e[o], 1), e[o].m(n, null));
|
|
139
140
|
}
|
|
140
141
|
for (mt(), o = t.length; o < e.length; o += 1)
|
|
141
142
|
w(o);
|
|
142
143
|
et();
|
|
143
144
|
}
|
|
144
145
|
},
|
|
145
|
-
i(
|
|
146
|
+
i(r) {
|
|
146
147
|
if (!c) {
|
|
147
148
|
for (let s = 0; s < t.length; s += 1)
|
|
148
149
|
C(e[s]);
|
|
149
150
|
c = !0;
|
|
150
151
|
}
|
|
151
152
|
},
|
|
152
|
-
o(
|
|
153
|
+
o(r) {
|
|
153
154
|
e = e.filter(Boolean);
|
|
154
155
|
for (let s = 0; s < e.length; s += 1)
|
|
155
156
|
k(e[s]);
|
|
156
157
|
c = !1;
|
|
157
158
|
},
|
|
158
|
-
d(
|
|
159
|
-
|
|
159
|
+
d(r) {
|
|
160
|
+
r && ot(n), rt(e, r);
|
|
160
161
|
}
|
|
161
162
|
};
|
|
162
163
|
}
|
|
163
|
-
function gt(d,
|
|
164
|
+
function gt(d, n, c) {
|
|
164
165
|
var B, G, H, U;
|
|
165
|
-
let { five: t } =
|
|
166
|
+
let { five: t } = n, { rulerDatas: e } = n, { options: w } = n, r = [];
|
|
166
167
|
const s = ((G = (B = t.getElement()) == null ? void 0 : B.parentElement) == null ? void 0 : G.clientWidth) || 0, o = ((U = (H = t.getElement()) == null ? void 0 : H.parentElement) == null ? void 0 : U.clientHeight) || 0, A = (a, m) => {
|
|
167
168
|
const l = [
|
|
168
169
|
[{ x: 0, y: 0 }, { x: s, y: 0 }],
|
|
@@ -209,9 +210,9 @@ function gt(d, r, c) {
|
|
|
209
210
|
}, _ = () => {
|
|
210
211
|
const a = t.panoIndex, m = e.find((i) => i.panoIndex === a);
|
|
211
212
|
if (!m)
|
|
212
|
-
return c(0,
|
|
213
|
+
return c(0, r = []);
|
|
213
214
|
if (t.currentMode !== lt.Mode.Panorama)
|
|
214
|
-
return c(0,
|
|
215
|
+
return c(0, r = []);
|
|
215
216
|
const l = t.camera.position, f = t.camera.getWorldDirection(new M()), u = m.lines.map((i) => new M(i.start[0], -i.start[1], -i.start[2])), g = m.lines.map((i) => new M(i.end[0], -i.end[1], -i.end[2])), [L] = u.concat(g).sort((i, T) => {
|
|
216
217
|
const h = i.clone().setY(0).sub(l).normalize().angleTo(f.clone().setY(0)), x = T.clone().setY(0).sub(l).normalize().angleTo(f.clone().setY(0));
|
|
217
218
|
return h - x;
|
|
@@ -233,21 +234,21 @@ function gt(d, r, c) {
|
|
|
233
234
|
labelElement: w.distanceText(P)
|
|
234
235
|
};
|
|
235
236
|
});
|
|
236
|
-
c(0,
|
|
237
|
+
c(0, r = y);
|
|
237
238
|
}, E = () => pt(_), R = ut(_, 80);
|
|
238
|
-
return
|
|
239
|
+
return nt(() => {
|
|
239
240
|
_(), t.on("panoArrived", _), t.on("modeChange", _), t.on("cameraDirectionUpdate", E), t.on("movingToPano", E), t.on("mouseWheel", () => R()), t.on("pinchGesture", () => R());
|
|
240
241
|
}), it(() => {
|
|
241
242
|
t.off("panoArrived", _), t.off("modeChange", _), t.off("cameraDirectionUpdate", E), t.off("movingToPano", E), t.off("mouseWheel", () => R()), t.off("pinchGesture", () => R());
|
|
242
243
|
}), d.$$set = (a) => {
|
|
243
244
|
"five" in a && c(1, t = a.five), "rulerDatas" in a && c(2, e = a.rulerDatas), "options" in a && c(3, w = a.options);
|
|
244
|
-
}, [
|
|
245
|
+
}, [r, t, e, w];
|
|
245
246
|
}
|
|
246
|
-
class
|
|
247
|
-
constructor(
|
|
248
|
-
super(), X(this,
|
|
247
|
+
class Ce extends Q {
|
|
248
|
+
constructor(n) {
|
|
249
|
+
super(), X(this, n, gt, dt, Z, { five: 1, rulerDatas: 2, options: 3 });
|
|
249
250
|
}
|
|
250
251
|
}
|
|
251
252
|
export {
|
|
252
|
-
|
|
253
|
+
Ce as default
|
|
253
254
|
};
|
|
@@ -54,6 +54,7 @@ import "../Sculpt/typings/style.js";
|
|
|
54
54
|
import "../shared-utils/three/IObject3D.js";
|
|
55
55
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
56
56
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
57
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
57
58
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
58
59
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
59
60
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -72,8 +73,8 @@ import "../shared-utils/equal.js";
|
|
|
72
73
|
import "../shared-utils/isTruelyObject.js";
|
|
73
74
|
import "../shared-utils/math/planimetry.js";
|
|
74
75
|
import "./RulerItem.js";
|
|
75
|
-
const
|
|
76
|
+
const kr = (r, o) => new t(r, o);
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
kr as PanoRulerProPlugin,
|
|
79
|
+
kr as default
|
|
79
80
|
};
|
|
@@ -55,6 +55,7 @@ import "../shared-utils/three/IObject3D.js";
|
|
|
55
55
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
56
56
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
57
57
|
import "../shared-utils/util.js";
|
|
58
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
58
59
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
59
60
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
60
61
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -74,7 +75,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
|
74
75
|
import "../vendor/svelte/internal/index.js";
|
|
75
76
|
import "./store.js";
|
|
76
77
|
import "../vendor/svelte/store/index.js";
|
|
77
|
-
const W = 1e-3, v = 0.01, oo = jo,
|
|
78
|
+
const W = 1e-3, v = 0.01, oo = jo, Kt = (n, r) => {
|
|
78
79
|
var k, z, q, G, B, J, K, Q;
|
|
79
80
|
let I = r == null ? void 0 : r.container, y = 1.4;
|
|
80
81
|
const to = (k = r == null ? void 0 : r.wait) != null ? k : 200, eo = (z = r == null ? void 0 : r.maxNumberOnScreen) != null ? z : 3, A = (q = r == null ? void 0 : r.minRad) != null ? q : Math.PI / 4, D = (G = r == null ? void 0 : r.nearTolerance) != null ? G : 100, no = (B = r == null ? void 0 : r.upsideHeight) != null ? B : 1.6, j = (J = r == null ? void 0 : r.minDistance) != null ? J : 1.2, f = (K = r == null ? void 0 : r.maxDistance) != null ? K : 3.5, _ = Po(n), O = document.createElement("div");
|
|
@@ -102,8 +103,8 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
102
103
|
}, H = (t, s) => {
|
|
103
104
|
if (o.tags.length === 0)
|
|
104
105
|
return;
|
|
105
|
-
const
|
|
106
|
-
e.position.copy(s.offset), e.rotateOnWorldAxis(new p.Vector3(0, 1, 0),
|
|
106
|
+
const m = s.longitude - n.state.longitude, e = n.camera.clone();
|
|
107
|
+
e.position.copy(s.offset), e.rotateOnWorldAxis(new p.Vector3(0, 1, 0), m), e.updateProjectionMatrix(), e.updateMatrixWorld(!0);
|
|
107
108
|
const g = new p.Frustum(), P = new p.Matrix4();
|
|
108
109
|
P.multiplyMatrices(e.projectionMatrix, e.matrixWorldInverse), g.setFromProjectionMatrix(P), o.tags.forEach((i) => {
|
|
109
110
|
const S = e.position.clone().setY(y).distanceTo(i.position);
|
|
@@ -135,14 +136,14 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
135
136
|
if (o.forbidden || !o.enabled)
|
|
136
137
|
return;
|
|
137
138
|
const t = n.camera, s = t.getWorldDirection(new p.Vector3());
|
|
138
|
-
o.origins = o.tags.map((
|
|
139
|
-
const e =
|
|
139
|
+
o.origins = o.tags.map((m) => {
|
|
140
|
+
const e = m.position.clone().project(t), g = m.position.clone().sub(t.position).setY(0).angleTo(s.setY(0)) < Math.PI / 2;
|
|
140
141
|
return {
|
|
141
|
-
id:
|
|
142
|
+
id: m.id,
|
|
142
143
|
front: g,
|
|
143
144
|
left: (e.x + 1) / 2 * 100,
|
|
144
145
|
top: (-e.y + 1) / 2 * 100,
|
|
145
|
-
destroying:
|
|
146
|
+
destroying: m.destroying
|
|
146
147
|
};
|
|
147
148
|
}), R.$set({ origins: o.origins });
|
|
148
149
|
}, M = () => {
|
|
@@ -152,18 +153,18 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
152
153
|
t.length && (o.tags = o.tags.concat(t), T());
|
|
153
154
|
}, to));
|
|
154
155
|
}, io = () => {
|
|
155
|
-
const { clientWidth: t, clientHeight: s } = n.getElement(),
|
|
156
|
+
const { clientWidth: t, clientHeight: s } = n.getElement(), m = [], e = n.camera, g = new p.Frustum(), P = new p.Matrix4(), i = e.getWorldDirection(new p.Vector3());
|
|
156
157
|
P.multiplyMatrices(e.projectionMatrix, e.matrixWorldInverse), g.setFromProjectionMatrix(P);
|
|
157
|
-
const S = o.tags.filter((d) => g.containsPoint(d.position) && !d.destroying).length, x = o.points.reduce((d,
|
|
158
|
-
if (o.tags.find((l) =>
|
|
158
|
+
const S = o.tags.filter((d) => g.containsPoint(d.position) && !d.destroying).length, x = o.points.reduce((d, a) => {
|
|
159
|
+
if (o.tags.find((l) => a.id === l.id && !l.destroying))
|
|
159
160
|
return d;
|
|
160
|
-
const u = e.position.clone().setY(y).distanceTo(
|
|
161
|
-
if (u < j || u > f || !g.containsPoint(
|
|
161
|
+
const u = e.position.clone().setY(y).distanceTo(a.position);
|
|
162
|
+
if (u < j || u > f || !g.containsPoint(a.position))
|
|
162
163
|
return d;
|
|
163
|
-
const E =
|
|
164
|
-
if (E.angleTo(
|
|
164
|
+
const E = a.position.clone().sub(e.position).setY(0);
|
|
165
|
+
if (E.angleTo(a.normal) > Math.PI / 2 - A && E.angleTo(a.normal) < Math.PI / 2 + A)
|
|
165
166
|
return d;
|
|
166
|
-
const w =
|
|
167
|
+
const w = a.position.clone().project(e);
|
|
167
168
|
if (!o.tags.every((l) => {
|
|
168
169
|
if (l.position.clone().sub(e.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
|
|
169
170
|
return !0;
|
|
@@ -172,11 +173,11 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
172
173
|
}))
|
|
173
174
|
return d;
|
|
174
175
|
const h = {
|
|
175
|
-
id:
|
|
176
|
-
position:
|
|
177
|
-
normal:
|
|
178
|
-
replacement:
|
|
179
|
-
weight:
|
|
176
|
+
id: a.id,
|
|
177
|
+
position: a.position,
|
|
178
|
+
normal: a.normal,
|
|
179
|
+
replacement: a.replacement,
|
|
180
|
+
weight: a.weight,
|
|
180
181
|
distance: u
|
|
181
182
|
};
|
|
182
183
|
let c;
|
|
@@ -193,12 +194,12 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
193
194
|
}
|
|
194
195
|
return c !== void 0 ? d.splice(c, 0, h) : d.push(h), d;
|
|
195
196
|
}, []);
|
|
196
|
-
for (let d = 0,
|
|
197
|
+
for (let d = 0, a = x.length; d < a && !(S + m.length >= eo); d++) {
|
|
197
198
|
const u = x[d];
|
|
198
|
-
if (
|
|
199
|
+
if (m.find((c) => u.id === c.id))
|
|
199
200
|
continue;
|
|
200
201
|
const E = u.position.clone().project(e);
|
|
201
|
-
if (!o.tags.concat(
|
|
202
|
+
if (!o.tags.concat(m).every((c) => {
|
|
202
203
|
if (c.position.clone().sub(e.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
|
|
203
204
|
return !0;
|
|
204
205
|
const l = c.position.clone().project(e);
|
|
@@ -233,7 +234,7 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
233
234
|
blurImageUrl: oo
|
|
234
235
|
}
|
|
235
236
|
});
|
|
236
|
-
|
|
237
|
+
m.push({
|
|
237
238
|
position: c,
|
|
238
239
|
normal: l,
|
|
239
240
|
id: b,
|
|
@@ -241,15 +242,15 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
241
242
|
});
|
|
242
243
|
}
|
|
243
244
|
}
|
|
244
|
-
return
|
|
245
|
+
return m;
|
|
245
246
|
}, ro = (t) => {
|
|
246
247
|
o.points = t.points.map((s) => {
|
|
247
|
-
var
|
|
248
|
+
var m, e;
|
|
248
249
|
return {
|
|
249
250
|
id: s.id,
|
|
250
251
|
position: new p.Vector3().fromArray(s.position),
|
|
251
252
|
normal: new p.Vector3().fromArray(s.normal),
|
|
252
|
-
replacement: (
|
|
253
|
+
replacement: (m = s.replacement) != null ? m : {},
|
|
253
254
|
weight: (e = s.weight) != null ? e : -1
|
|
254
255
|
};
|
|
255
256
|
}), t.render && (o.render = t.render), t.template && (o.template = t.template), t.events && (o.events = t.events), t.enabled === !1 && (o.enabled = t.enabled), t.folded === !0 && (o.folded = t.folded);
|
|
@@ -265,11 +266,11 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
265
266
|
o.folded = !1, o.tags.forEach((t) => {
|
|
266
267
|
t.app.$set({ folded: o.folded });
|
|
267
268
|
});
|
|
268
|
-
},
|
|
269
|
+
}, mo = () => {
|
|
269
270
|
o.folded = !0, o.tags.forEach((t) => {
|
|
270
271
|
t.app.$set({ folded: o.folded });
|
|
271
272
|
});
|
|
272
|
-
},
|
|
273
|
+
}, ao = (t) => {
|
|
273
274
|
o.tags.forEach((s) => {
|
|
274
275
|
s.id === t && s.app.$set({ folded: !1 });
|
|
275
276
|
});
|
|
@@ -290,8 +291,8 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
290
291
|
load: ro,
|
|
291
292
|
setIntersectObjects: so,
|
|
292
293
|
unfoldAll: po,
|
|
293
|
-
foldAll:
|
|
294
|
-
unfold:
|
|
294
|
+
foldAll: mo,
|
|
295
|
+
unfold: ao,
|
|
295
296
|
fold: fo,
|
|
296
297
|
enable: co,
|
|
297
298
|
disable: lo,
|
|
@@ -300,6 +301,6 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
300
301
|
};
|
|
301
302
|
};
|
|
302
303
|
export {
|
|
303
|
-
|
|
304
|
-
|
|
304
|
+
Kt as PanoSpatialTagPlugin,
|
|
305
|
+
Kt as default
|
|
305
306
|
};
|
|
@@ -43,6 +43,7 @@ import "../shared-utils/three/IObject3D.js";
|
|
|
43
43
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
44
44
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
45
45
|
import "../shared-utils/util.js";
|
|
46
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
46
47
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
47
48
|
import "@realsee/five/line";
|
|
48
49
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
@@ -59,6 +59,7 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
59
59
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
60
60
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
61
61
|
import "../../../shared-utils/util.js";
|
|
62
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
62
63
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
63
64
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
64
65
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -470,7 +471,7 @@ function He(t, e, n) {
|
|
|
470
471
|
re
|
|
471
472
|
];
|
|
472
473
|
}
|
|
473
|
-
class
|
|
474
|
+
class ao extends ae {
|
|
474
475
|
constructor(e) {
|
|
475
476
|
super(), le(
|
|
476
477
|
this,
|
|
@@ -527,5 +528,5 @@ class ro extends ae {
|
|
|
527
528
|
}
|
|
528
529
|
}
|
|
529
530
|
export {
|
|
530
|
-
|
|
531
|
+
ao as default
|
|
531
532
|
};
|
|
@@ -65,6 +65,7 @@ import "../../../../Sculpt/typings/style.js";
|
|
|
65
65
|
import "../../../../shared-utils/three/IObject3D.js";
|
|
66
66
|
import "../../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
67
67
|
import "../../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
68
|
+
import "../../../../shared-utils/five/getFiveFromParentChain.js";
|
|
68
69
|
import "../../../../shared-utils/three/core/LineGeometry.js";
|
|
69
70
|
import "../../../../shared-utils/three/core/LineMaterial.js";
|
|
70
71
|
import "../../../../shared-utils/three/core/Line2.js";
|
|
@@ -286,7 +287,7 @@ function F(r, e, m) {
|
|
|
286
287
|
D
|
|
287
288
|
];
|
|
288
289
|
}
|
|
289
|
-
class
|
|
290
|
+
class he extends C {
|
|
290
291
|
constructor(e) {
|
|
291
292
|
super(), S(this, e, F, E, v, {
|
|
292
293
|
showArrow: 0,
|
|
@@ -306,5 +307,5 @@ class le extends C {
|
|
|
306
307
|
}
|
|
307
308
|
}
|
|
308
309
|
export {
|
|
309
|
-
|
|
310
|
+
he as default
|
|
310
311
|
};
|
|
@@ -50,6 +50,7 @@ import "../../../../shared-utils/three/IObject3D.js";
|
|
|
50
50
|
import "../../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
51
51
|
import "../../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
52
52
|
import "../../../../shared-utils/util.js";
|
|
53
|
+
import "../../../../shared-utils/five/getFiveFromParentChain.js";
|
|
53
54
|
import "../../../../shared-utils/three/core/LineGeometry.js";
|
|
54
55
|
import "../../../../shared-utils/three/core/LineMaterial.js";
|
|
55
56
|
import "../../../../shared-utils/three/core/Line2.js";
|
|
@@ -266,7 +267,7 @@ function K(n, t, p) {
|
|
|
266
267
|
32 && p(2, r = (() => k(o.data.highlightText) && o.data.highlightText.trim() !== "" ? o.data.highlightText : k(o.config.popoverConfig.viewMoreText) && o.config.popoverConfig.viewMoreText.trim() !== "" ? o.config.popoverConfig.viewMoreText : "查看更多")());
|
|
267
268
|
}, [e, f, r, c, v, o, l];
|
|
268
269
|
}
|
|
269
|
-
class
|
|
270
|
+
class ft extends z {
|
|
270
271
|
constructor(t) {
|
|
271
272
|
super(), I(
|
|
272
273
|
this,
|
|
@@ -285,5 +286,5 @@ class pt extends z {
|
|
|
285
286
|
}
|
|
286
287
|
}
|
|
287
288
|
export {
|
|
288
|
-
|
|
289
|
+
ft as default
|
|
289
290
|
};
|
|
@@ -50,6 +50,7 @@ import "../../../../shared-utils/three/IObject3D.js";
|
|
|
50
50
|
import "../../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
51
51
|
import "../../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
52
52
|
import "../../../../shared-utils/util.js";
|
|
53
|
+
import "../../../../shared-utils/five/getFiveFromParentChain.js";
|
|
53
54
|
import "../../../../shared-utils/three/core/LineGeometry.js";
|
|
54
55
|
import "../../../../shared-utils/three/core/LineMaterial.js";
|
|
55
56
|
import "../../../../shared-utils/three/core/Line2.js";
|
|
@@ -548,7 +549,7 @@ function Ft(t, i, o) {
|
|
|
548
549
|
gt
|
|
549
550
|
];
|
|
550
551
|
}
|
|
551
|
-
class
|
|
552
|
+
class go extends bt {
|
|
552
553
|
constructor(i) {
|
|
553
554
|
super(), vt(
|
|
554
555
|
this,
|
|
@@ -576,5 +577,5 @@ class co extends bt {
|
|
|
576
577
|
}
|
|
577
578
|
}
|
|
578
579
|
export {
|
|
579
|
-
|
|
580
|
+
go as default
|
|
580
581
|
};
|
|
@@ -52,6 +52,7 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
52
52
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
53
53
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
54
54
|
import "../../../shared-utils/util.js";
|
|
55
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
55
56
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
56
57
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
57
58
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -630,11 +631,11 @@ function ye(i, e, t) {
|
|
|
630
631
|
j
|
|
631
632
|
];
|
|
632
633
|
}
|
|
633
|
-
class
|
|
634
|
+
class qt extends re {
|
|
634
635
|
constructor(e) {
|
|
635
636
|
super(), le(this, e, ye, ke, oe, { tag: 0 }, ze);
|
|
636
637
|
}
|
|
637
638
|
}
|
|
638
639
|
export {
|
|
639
|
-
|
|
640
|
+
qt as default
|
|
640
641
|
};
|
|
@@ -113,6 +113,7 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
113
113
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
114
114
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
115
115
|
import "../../../shared-utils/util.js";
|
|
116
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
116
117
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
117
118
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
118
119
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -806,7 +807,7 @@ function EA(i, A, t) {
|
|
|
806
807
|
T
|
|
807
808
|
];
|
|
808
809
|
}
|
|
809
|
-
class
|
|
810
|
+
class Ki extends tA {
|
|
810
811
|
constructor(A) {
|
|
811
812
|
super(), iA(
|
|
812
813
|
this,
|
|
@@ -828,5 +829,5 @@ class Zi extends tA {
|
|
|
828
829
|
}
|
|
829
830
|
}
|
|
830
831
|
export {
|
|
831
|
-
|
|
832
|
+
Ki as default
|
|
832
833
|
};
|
|
@@ -107,6 +107,7 @@ import "../../Sculpt/typings/style.js";
|
|
|
107
107
|
import "../../shared-utils/three/IObject3D.js";
|
|
108
108
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
109
109
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
110
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
110
111
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
111
112
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
112
113
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -416,7 +417,7 @@ function x(m, t, o) {
|
|
|
416
417
|
O
|
|
417
418
|
];
|
|
418
419
|
}
|
|
419
|
-
class
|
|
420
|
+
class Nr extends P {
|
|
420
421
|
constructor(t) {
|
|
421
422
|
super(), Z(
|
|
422
423
|
this,
|
|
@@ -439,5 +440,5 @@ class Er extends P {
|
|
|
439
440
|
}
|
|
440
441
|
}
|
|
441
442
|
export {
|
|
442
|
-
|
|
443
|
+
Nr as default
|
|
443
444
|
};
|