@realsee/dnalogel 3.48.4 → 3.48.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/dist/index.cjs.js +43 -43
- package/dist/index.js +1372 -1354
- package/dist/index.umd.js +36 -36
- 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/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/base/BasePlugin.js +1 -1
- package/libs/index.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +2 -2
|
@@ -179,7 +179,6 @@ import "../shared-utils/url/getUrl.js";
|
|
|
179
179
|
import "../shared-utils/five/getFloorIndex.js";
|
|
180
180
|
import "../shared-utils/safeObj.js";
|
|
181
181
|
import "../PanoTagPlugin/utils/Cache.js";
|
|
182
|
-
import "./utils/sleep.js";
|
|
183
182
|
import "../PanoTagPlugin/controller/TagUtil.js";
|
|
184
183
|
import "../PanoTagPlugin/tag.config.js";
|
|
185
184
|
import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
@@ -220,6 +219,7 @@ import "./Work.js";
|
|
|
220
219
|
import "./utils/coordinatesAngle.js";
|
|
221
220
|
import "./utils/coordinatesToVector.js";
|
|
222
221
|
import "./utils/safeCall.js";
|
|
222
|
+
import "./utils/sleep.js";
|
|
223
223
|
import "../shared-utils/five/fiveLoaded.js";
|
|
224
224
|
class co extends z {
|
|
225
225
|
constructor(t, r) {
|
|
@@ -151,7 +151,6 @@ import "../shared-utils/url/getUrl.js";
|
|
|
151
151
|
import "../shared-utils/five/getFloorIndex.js";
|
|
152
152
|
import "../shared-utils/safeObj.js";
|
|
153
153
|
import "../PanoTagPlugin/utils/Cache.js";
|
|
154
|
-
import "./utils/sleep.js";
|
|
155
154
|
import "../PanoTagPlugin/controller/TagUtil.js";
|
|
156
155
|
import "../PanoTagPlugin/tag.config.js";
|
|
157
156
|
import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
@@ -190,6 +189,7 @@ import "../shared-utils/nearlyEqual.js";
|
|
|
190
189
|
import "./utils/coordinatesAngle.js";
|
|
191
190
|
import "./utils/coordinatesToVector.js";
|
|
192
191
|
import "./utils/safeCall.js";
|
|
192
|
+
import "./utils/sleep.js";
|
|
193
193
|
import "../shared-utils/five/fiveLoaded.js";
|
|
194
194
|
import "./BaseController.js";
|
|
195
195
|
import "./utils/getFiveStateOnCurve.js";
|
|
@@ -174,7 +174,6 @@ import "../shared-utils/url/getUrl.js";
|
|
|
174
174
|
import "../shared-utils/five/getFloorIndex.js";
|
|
175
175
|
import "../shared-utils/safeObj.js";
|
|
176
176
|
import "../PanoTagPlugin/utils/Cache.js";
|
|
177
|
-
import "../CruisePlugin/utils/sleep.js";
|
|
178
177
|
import "../shared-utils/three/temp.js";
|
|
179
178
|
import "../PanoTagPlugin/controller/TagUtil.js";
|
|
180
179
|
import "../PanoTagPlugin/tag.config.js";
|
|
@@ -219,6 +218,7 @@ import "./Controller.js";
|
|
|
219
218
|
import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
220
219
|
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
221
220
|
import "../CruisePlugin/utils/safeCall.js";
|
|
221
|
+
import "../CruisePlugin/utils/sleep.js";
|
|
222
222
|
import "../shared-utils/five/fiveLoaded.js";
|
|
223
223
|
const b = "GuideLinePlugin", g = `${b}`, _e = (s) => `${g}--${s}`;
|
|
224
224
|
class Ee extends N {
|
|
@@ -145,7 +145,6 @@ import "../shared-utils/url/getUrl.js";
|
|
|
145
145
|
import "../shared-utils/five/getFloorIndex.js";
|
|
146
146
|
import "../shared-utils/safeObj.js";
|
|
147
147
|
import "../PanoTagPlugin/utils/Cache.js";
|
|
148
|
-
import "../CruisePlugin/utils/sleep.js";
|
|
149
148
|
import "../PanoTagPlugin/controller/TagUtil.js";
|
|
150
149
|
import "../PanoTagPlugin/tag.config.js";
|
|
151
150
|
import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
@@ -191,6 +190,7 @@ import "../base/BasePluginWithData.js";
|
|
|
191
190
|
import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
192
191
|
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
193
192
|
import "../CruisePlugin/utils/safeCall.js";
|
|
193
|
+
import "../CruisePlugin/utils/sleep.js";
|
|
194
194
|
import "../shared-utils/five/fiveLoaded.js";
|
|
195
195
|
export {
|
|
196
196
|
Fo as GuideLineItem
|
|
@@ -15,7 +15,7 @@ import "../PanoTagPlugin/controller/index.js";
|
|
|
15
15
|
import "./Components/Tag.js";
|
|
16
16
|
import "./utils/index.js";
|
|
17
17
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
18
|
-
import { GuideLineModeItem as
|
|
18
|
+
import { GuideLineModeItem as am } from "./GuideLineModeItem/index.js";
|
|
19
19
|
import "../vendor/polyline-normals/index.js";
|
|
20
20
|
import "../vendor/polyline-miter-util/index.js";
|
|
21
21
|
import "../vendor/gl-vec2/add.js";
|
|
@@ -142,7 +142,6 @@ import "../shared-utils/url/getUrl.js";
|
|
|
142
142
|
import "../shared-utils/five/getFloorIndex.js";
|
|
143
143
|
import "../shared-utils/safeObj.js";
|
|
144
144
|
import "../PanoTagPlugin/utils/Cache.js";
|
|
145
|
-
import "../CruisePlugin/utils/sleep.js";
|
|
146
145
|
import "../PanoTagPlugin/controller/TagUtil.js";
|
|
147
146
|
import "../PanoTagPlugin/tag.config.js";
|
|
148
147
|
import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
@@ -176,5 +175,5 @@ import "../PanoTagPlugin/Components/TagContainer.js";
|
|
|
176
175
|
import "../PanoTagPlugin/Components/TagItem.js";
|
|
177
176
|
import "../PanoTagPlugin/Components/Common/TagPoint.js";
|
|
178
177
|
export {
|
|
179
|
-
|
|
178
|
+
am as GuideLineModeItem
|
|
180
179
|
};
|
|
@@ -121,7 +121,6 @@ import "../../../shared-utils/url/getUrl.js";
|
|
|
121
121
|
import "../../../shared-utils/five/getFloorIndex.js";
|
|
122
122
|
import "../../../shared-utils/safeObj.js";
|
|
123
123
|
import "../../utils/Cache.js";
|
|
124
|
-
import "../../../CruisePlugin/utils/sleep.js";
|
|
125
124
|
function BA(i) {
|
|
126
125
|
oA(i, "svelte-elzzn6", '@font-face{font-family:"TG-TYPE";font-style:normal;font-weight:400;src:local("TG-TYPE-Bold"), url(data:application/font-woff2;charset=utf-8;base64,T1RUTwAKAIAAAwAgQ0ZGINFD4CEAAAaQAAAHC0dTVUIAAQAAAAANnAAAAApPUy8yaB5pEwAAAjQAAABgY21hcEItjGUAAAT0AAABfGhlYWQS1WWOAAAAtAAAADZoaGVhBfMBxwAAAhAAAAAkaG10eJ9gBO8AAADsAAABJG1heHAASVAAAAAArAAAAAZuYW1lqczkZQAAApQAAAJecG9zdP+4ADIAAAZwAAAAIAAAUAAASQAAAAEAAAABAADkeHeyXw889QADA+gAAAAA2NoRKwAAAADY2hErACn/OAHgAyAAAQADAAIAAAAAAAAB9ABdAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJ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nqwfy7K10dgasoGueKwey2RHtT4b+9YETlu7yMe8vcfHvVlPT1laTx8OmIr5UQG/+B8D93iKFfsIBvdo+OYF+6T2+B8oBg6iifL3bPX3QPEStvNB8vc/8jXxE/L4EvgHFRPss7Cnu78arYOreqgexWpNr0YbaWyDem4fUmlmTUcaXqBftGAeE/JWYmROSxpklWieax5Ksc9i2BuxrpWerB/LsbTP2BrHaMVath4T7PsN93QVu7FjXFtlZltcZbC7urGzuh8T8oX8ghVPW7zHx7q6yMa9W1BPWVpQHw6i96Tz92/0AbTz93DzA/hp+HkVsIGveKwezmNFtUAbZGeBeGofSmNiRT8aZJVnnmseSrHPYtoboAb7EvukBfcHBvdL+CEFmaySqaQa+9gWxry+yJ6dhoGcHq12oWZmGk5YW1BMXLnKHg4gCiEK+11L91IlCvdiyhWtb6hpJgoeJAoOIQogCqz3pe/3b/UBufX3bfQD+G74dxWyga94rB7NZEW0PhtlaIF4ah9KY2FFPxo7tkTPZh6MjIqKjB+TiJCIjYoIjgaCoKGHoRuanY6QoB+IgfsB+6QF9wcG9y/4IgWYppGnqhr7a/sCFVBbvMjHu7zGyLxbTk5aWk4fDvtd+AojCoz7jBUmCh8kCq1vqGkeDvtdi/cS94wjCvwKBCIKDiD3ru8BvPeuA7z4EhUn967vBw4eoDf/DAmLDAv47BT4exWcEwAHAQFBXW97ipCarPcv8+7yAfdl8gP4aPf6FfIjB+r3gwUiBi77gwWHBjH3gwUkBuP7gwUnJPcxKPsxI/cx+y/y9y/3MPP7MO4GDvtdi/cSJQr3JBZkcqOzsKSksrCkcWdlcnFmHw6up6eurm+naGhvb2hop2+uHwv3EiUK9yP4ChUiCgt3SgWxBrnmBZGVj5eZGgsB2/cSAwtobm5paqBzqoYLAAABAAAAAAAAAAAAAA==) format("woff2")}*{-webkit-tap-highlight-color:transparent}.content__container.svelte-elzzn6{position:relative;left:50%;top:50%;transform:translate(-50%, -50%);font-family:PingFangSC, Segoe UI, Rototo, sans-serif;transition:opacity 0.2s linear}.content__container.unClickable.svelte-elzzn6{pointer-events:none !important}.content__container.unClickable.svelte-elzzn6 *{pointer-events:none !important}.content__wrapper.svelte-elzzn6{pointer-events:none;width:100%;height:100%}.content__container.hide.svelte-elzzn6{opacity:0;pointer-events:none}.content__container.hide.svelte-elzzn6 *{pointer-events:none !important}.content__container.disable.svelte-elzzn6{display:none}.content.svelte-elzzn6{position:relative;width:100%;height:100%;font-size:0.75rem;color:#fff}.content.svelte-elzzn6:not(.unfolded){pointer-events:none}.content.svelte-elzzn6:not(.unfolded) *{pointer-events:none !important}.content.unfolded.svelte-elzzn6{pointer-events:auto}');
|
|
127
126
|
}
|
|
@@ -754,7 +753,7 @@ function TA(i, A, t) {
|
|
|
754
753
|
y
|
|
755
754
|
];
|
|
756
755
|
}
|
|
757
|
-
class
|
|
756
|
+
class Zt extends tA {
|
|
758
757
|
constructor(A) {
|
|
759
758
|
super(), iA(
|
|
760
759
|
this,
|
|
@@ -776,5 +775,5 @@ class Kt extends tA {
|
|
|
776
775
|
}
|
|
777
776
|
}
|
|
778
777
|
export {
|
|
779
|
-
|
|
778
|
+
Zt as default
|
|
780
779
|
};
|
|
@@ -123,7 +123,6 @@ import "../../shared-utils/url/getUrl.js";
|
|
|
123
123
|
import "../../shared-utils/five/getFloorIndex.js";
|
|
124
124
|
import "../../shared-utils/safeObj.js";
|
|
125
125
|
import "../utils/Cache.js";
|
|
126
|
-
import "../../CruisePlugin/utils/sleep.js";
|
|
127
126
|
import "./Common/TagPoint.js";
|
|
128
127
|
function K(a) {
|
|
129
128
|
q(a, "svelte-1owzhnq", ".tag--container.svelte-1owzhnq{box-sizing:border-box;position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:1;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform:translate3d(0, 0, 0);transition:opacity 0.2s linear}.tag--container.hide.svelte-1owzhnq{opacity:0;pointer-events:none}.tag--container.hide.svelte-1owzhnq *{pointer-events:none !important}");
|
|
@@ -313,7 +312,7 @@ function O(a, t, i) {
|
|
|
313
312
|
m
|
|
314
313
|
];
|
|
315
314
|
}
|
|
316
|
-
class
|
|
315
|
+
class pi extends v {
|
|
317
316
|
constructor(t) {
|
|
318
317
|
super(), w(
|
|
319
318
|
this,
|
|
@@ -336,5 +335,5 @@ class ai extends v {
|
|
|
336
335
|
}
|
|
337
336
|
}
|
|
338
337
|
export {
|
|
339
|
-
|
|
338
|
+
pi as default
|
|
340
339
|
};
|
|
@@ -123,7 +123,6 @@ import "../../shared-utils/url/getUrl.js";
|
|
|
123
123
|
import "../../shared-utils/five/getFloorIndex.js";
|
|
124
124
|
import "../../shared-utils/safeObj.js";
|
|
125
125
|
import "../utils/Cache.js";
|
|
126
|
-
import "../../CruisePlugin/utils/sleep.js";
|
|
127
126
|
function it(o) {
|
|
128
127
|
Q(o, "svelte-2g2g8a", ".tag.svelte-2g2g8a{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto;will-change:opacity;transition:opacity 0.2s linear}.tag.enableZIndex.svelte-2g2g8a{position:absolute}.tag.hide.svelte-2g2g8a{opacity:0;pointer-events:none}.tag.hide.svelte-2g2g8a *{pointer-events:none !important}.tag.unClickable.svelte-2g2g8a{pointer-events:none !important}.tag.unClickable.svelte-2g2g8a *{pointer-events:none !important}");
|
|
129
128
|
}
|
|
@@ -462,7 +461,7 @@ function at(o, t, i) {
|
|
|
462
461
|
H
|
|
463
462
|
];
|
|
464
463
|
}
|
|
465
|
-
class
|
|
464
|
+
class Ci extends J {
|
|
466
465
|
constructor(t) {
|
|
467
466
|
super(), K(
|
|
468
467
|
this,
|
|
@@ -483,5 +482,5 @@ class Ii extends J {
|
|
|
483
482
|
}
|
|
484
483
|
}
|
|
485
484
|
export {
|
|
486
|
-
|
|
485
|
+
Ci as default
|
|
487
486
|
};
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
var Z = Object.defineProperty, G = Object.defineProperties;
|
|
2
2
|
var K = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var P = Object.getOwnPropertySymbols;
|
|
4
4
|
var S = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var M = (c, i, e) => i in c ? Z(c, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[i] = e, p = (c, i) => {
|
|
6
6
|
for (var e in i || (i = {}))
|
|
7
|
-
S.call(i, e) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
D.call(i, e) &&
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var j = (
|
|
7
|
+
S.call(i, e) && M(c, e, i[e]);
|
|
8
|
+
if (P)
|
|
9
|
+
for (var e of P(i))
|
|
10
|
+
D.call(i, e) && M(c, e, i[e]);
|
|
11
|
+
return c;
|
|
12
|
+
}, I = (c, i) => G(c, K(i));
|
|
13
|
+
var j = (c, i) => {
|
|
14
14
|
var e = {};
|
|
15
|
-
for (var t in
|
|
16
|
-
S.call(
|
|
17
|
-
if (
|
|
18
|
-
for (var t of
|
|
19
|
-
i.indexOf(t) < 0 && D.call(
|
|
15
|
+
for (var t in c)
|
|
16
|
+
S.call(c, t) && i.indexOf(t) < 0 && (e[t] = c[t]);
|
|
17
|
+
if (c != null && P)
|
|
18
|
+
for (var t of P(c))
|
|
19
|
+
i.indexOf(t) < 0 && D.call(c, t) && (e[t] = c[t]);
|
|
20
20
|
return e;
|
|
21
21
|
};
|
|
22
|
-
var f = (
|
|
23
|
-
var
|
|
22
|
+
var f = (c, i, e) => (M(c, typeof i != "symbol" ? i + "" : i, e), e);
|
|
23
|
+
var y = (c, i, e) => new Promise((t, r) => {
|
|
24
24
|
var n = (s) => {
|
|
25
25
|
try {
|
|
26
26
|
o(e.next(s));
|
|
27
|
-
} catch (
|
|
28
|
-
r(
|
|
27
|
+
} catch (d) {
|
|
28
|
+
r(d);
|
|
29
29
|
}
|
|
30
30
|
}, l = (s) => {
|
|
31
31
|
try {
|
|
32
32
|
o(e.throw(s));
|
|
33
|
-
} catch (
|
|
34
|
-
r(
|
|
33
|
+
} catch (d) {
|
|
34
|
+
r(d);
|
|
35
35
|
}
|
|
36
36
|
}, o = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(n, l);
|
|
37
|
-
o((e = e.apply(
|
|
37
|
+
o((e = e.apply(c, i)).next());
|
|
38
38
|
});
|
|
39
39
|
import { Subscribe as Q } from "../../../shared-utils/Subscribe.js";
|
|
40
|
-
import { calculateTagConfig as
|
|
40
|
+
import { calculateTagConfig as w } from "../../utils/tag/calculateTagConfig.js";
|
|
41
41
|
import { getTagStickType as Y } from "../../utils/tag/format.js";
|
|
42
|
-
import { isPanoramaLike as
|
|
42
|
+
import { isPanoramaLike as U, isModelLike as C } from "../../../shared-utils/five/mode.js";
|
|
43
43
|
import * as B from "three";
|
|
44
44
|
import "hammerjs";
|
|
45
45
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -58,13 +58,12 @@ import { uuid as re } from "../../../shared-utils/uuid.js";
|
|
|
58
58
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
59
59
|
import { objectAssignDeepExports as b } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
60
60
|
import { getTagPosition as L, getTagCenterPosition as $ } from "../../utils/tagPosition.js";
|
|
61
|
-
import { checkRange as
|
|
61
|
+
import { checkRange as k } from "../../utils/checkRange.js";
|
|
62
62
|
import { isMediaPlaneTag as le, isMediaModelTag as T } from "../../utils/tag/tagCheck.js";
|
|
63
63
|
import { getUrlExt as N } from "../../../shared-utils/url/getUrl.js";
|
|
64
64
|
import { getFloorIndex as ae } from "../../../shared-utils/five/getFloorIndex.js";
|
|
65
65
|
import { safeObj as z } from "../../../shared-utils/safeObj.js";
|
|
66
66
|
import { Cache as fe } from "../../utils/Cache.js";
|
|
67
|
-
import { sleep as de } from "../../../CruisePlugin/utils/sleep.js";
|
|
68
67
|
import { _raycaster as V } from "../../../shared-utils/three/temp.js";
|
|
69
68
|
import "../../../shared-utils/typescript/entries.js";
|
|
70
69
|
import "../../utils/tag/adaptConfig.js";
|
|
@@ -77,7 +76,7 @@ import "../../../shared-utils/Utils/FiveUtil.js";
|
|
|
77
76
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
78
77
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
79
78
|
import "../../../shared-utils/formatRad.js";
|
|
80
|
-
class
|
|
79
|
+
class Ke {
|
|
81
80
|
constructor(i, e) {
|
|
82
81
|
f(this, "plugin");
|
|
83
82
|
f(this, "id");
|
|
@@ -107,27 +106,27 @@ class Ye {
|
|
|
107
106
|
f(this, "computedConfig");
|
|
108
107
|
f(this, "cache");
|
|
109
108
|
f(this, "entryFromModel");
|
|
110
|
-
var s,
|
|
109
|
+
var s, d, h, u;
|
|
111
110
|
this.plugin = i;
|
|
112
111
|
const t = Y(e);
|
|
113
112
|
e.stickType = t;
|
|
114
113
|
const r = JSON.parse(JSON.stringify(e.data)), n = (s = e.initialConfig) != null ? s : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
|
|
115
114
|
e.initialConfig = n;
|
|
116
|
-
const l =
|
|
117
|
-
e.config = o, this.id = (
|
|
115
|
+
const l = w(e, i.config), o = this.getConfig(e);
|
|
116
|
+
e.config = o, this.id = (d = e.id) != null ? d : re(), this.enabled = (h = e.enabled) != null ? h : !0, this.contentType = e.contentType, this.data = (u = o.initialData) != null && u.important ? b(e.data, r, o.initialData) : b(e.data, o.initialData, r), this.state = p({
|
|
118
117
|
visible: void 0,
|
|
119
118
|
unfolded: !this.can("fold")
|
|
120
119
|
}, o.initialState), this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
|
|
121
|
-
const
|
|
122
|
-
if (!
|
|
120
|
+
const a = e.originPosition;
|
|
121
|
+
if (!a)
|
|
123
122
|
return;
|
|
124
|
-
const
|
|
125
|
-
return Array.isArray(
|
|
123
|
+
const g = i.workUtil.transform;
|
|
124
|
+
return Array.isArray(a) && a.length === 4 ? a.map(A).map((m) => O(m, g).toArray()) : O(A(a), g).toArray();
|
|
126
125
|
})(), this.matrix = e.matrix ? (() => {
|
|
127
|
-
const
|
|
128
|
-
return
|
|
129
|
-
})() : e.matrix, this.initialConfig = n, this.computedConfig = l, this.stickType = t, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new fe(), this.hooks = new Q(), Object.keys(e).forEach((
|
|
130
|
-
this[
|
|
126
|
+
const a = new B.Matrix4().fromArray(e.matrix);
|
|
127
|
+
return a.premultiply(i.workUtil.transform), a.elements;
|
|
128
|
+
})() : e.matrix, this.initialConfig = n, this.computedConfig = l, this.stickType = t, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new fe(), this.hooks = new Q(), Object.keys(e).forEach((a) => {
|
|
129
|
+
this[a] === void 0 && e[a] !== void 0 && (this[a] = e[a]);
|
|
131
130
|
});
|
|
132
131
|
}
|
|
133
132
|
get five() {
|
|
@@ -145,7 +144,7 @@ class Ye {
|
|
|
145
144
|
}
|
|
146
145
|
get currentConfig() {
|
|
147
146
|
var r, n;
|
|
148
|
-
const i =
|
|
147
|
+
const i = w(this, this.plugin.config, { useCache: !0 }), e = this.five.getCurrentState().mode, t = (r = i.configWithFiveMode) == null ? void 0 : r[e];
|
|
149
148
|
return (n = t != null ? t : i) != null ? n : {};
|
|
150
149
|
}
|
|
151
150
|
get currentVisible() {
|
|
@@ -164,7 +163,7 @@ class Ye {
|
|
|
164
163
|
* @description 找到标签
|
|
165
164
|
*/
|
|
166
165
|
find(i) {
|
|
167
|
-
return
|
|
166
|
+
return y(this, null, function* () {
|
|
168
167
|
var r;
|
|
169
168
|
const e = this.fiveState;
|
|
170
169
|
if (!this.fiveState)
|
|
@@ -188,17 +187,35 @@ class Ye {
|
|
|
188
187
|
* @description 闪烁
|
|
189
188
|
*/
|
|
190
189
|
blink(i) {
|
|
191
|
-
return
|
|
192
|
-
var o, s;
|
|
190
|
+
return y(this, null, function* () {
|
|
191
|
+
var o, s, d, h;
|
|
193
192
|
const e = (o = this.enabled) != null ? o : !0, t = (s = this.state) == null ? void 0 : s.visible, r = e && t;
|
|
194
|
-
r === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh"
|
|
193
|
+
r === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh" ? yield new Promise((u) => y(this, null, function* () {
|
|
194
|
+
if (this.dom || this.contentDom) {
|
|
195
|
+
u();
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
const a = setInterval(() => {
|
|
199
|
+
(this.dom || this.contentDom) && (u(), clearInterval(a));
|
|
200
|
+
}, 16.7);
|
|
201
|
+
})) : this.stickType === "Model" && !((d = this.model) != null && d.object) ? yield (h = this.model) == null ? void 0 : h.promise : this.stickType === "Plane" && (yield new Promise((u) => y(this, null, function* () {
|
|
202
|
+
if (this.mediaPlane) {
|
|
203
|
+
u();
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
const a = setInterval(() => {
|
|
207
|
+
this.mediaPlane && (u(), clearInterval(a));
|
|
208
|
+
}, 16.7);
|
|
209
|
+
}))), this.dom && (this.dom.style.visibility = "hidden"), this.contentDom && (this.contentDom.style.visibility = "hidden"));
|
|
195
210
|
const n = (() => {
|
|
196
|
-
var
|
|
197
|
-
const
|
|
198
|
-
return
|
|
211
|
+
var a;
|
|
212
|
+
const u = [];
|
|
213
|
+
return u.push(this.dom), this.stickType !== "2DPoint" && u.push(this.contentDom), u.push((a = this.model) == null ? void 0 : a.object), u.push(this.mediaPlane), u.filter(Boolean);
|
|
199
214
|
})();
|
|
200
|
-
if (!n.length)
|
|
215
|
+
if (!n.length) {
|
|
216
|
+
console.warn("tagDom is empty");
|
|
201
217
|
return;
|
|
218
|
+
}
|
|
202
219
|
yield (r ? te : ne)(n, p({
|
|
203
220
|
begin: () => {
|
|
204
221
|
r === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
|
|
@@ -288,7 +305,7 @@ class Ye {
|
|
|
288
305
|
}
|
|
289
306
|
getConfig(i, e) {
|
|
290
307
|
var l, o, s;
|
|
291
|
-
const t =
|
|
308
|
+
const t = w(i != null ? i : this, this.plugin.config, { useCache: e == null ? void 0 : e.useCache }), r = (l = e == null ? void 0 : e.fiveMode) != null ? l : this.five.getCurrentState().mode, n = (o = t.configWithFiveMode) == null ? void 0 : o[r];
|
|
292
309
|
return (s = n != null ? n : t) != null ? s : {};
|
|
293
310
|
}
|
|
294
311
|
getDistance(i, e = 3) {
|
|
@@ -356,8 +373,8 @@ class Ye {
|
|
|
356
373
|
computeVisible(i) {
|
|
357
374
|
const e = p(p({}, this.five.getCurrentState()), i), { panoIndex: t, mode: r } = e, n = [];
|
|
358
375
|
return (() => {
|
|
359
|
-
var
|
|
360
|
-
const s = (
|
|
376
|
+
var d, u, a;
|
|
377
|
+
const s = (d = this.getConfig().visibleConfig) != null ? d : {};
|
|
361
378
|
if (typeof s == "function")
|
|
362
379
|
return {
|
|
363
380
|
value: s(this.five, { tag: this, distance: this.getDistance(e, void 0) }),
|
|
@@ -369,37 +386,37 @@ class Ye {
|
|
|
369
386
|
return { value: !1, checkedList: n, reason: "config.keep is hidden" };
|
|
370
387
|
if (s.keep === "visible")
|
|
371
388
|
return { value: !0, checkedList: n, reason: "config.keep is visible" };
|
|
372
|
-
const
|
|
373
|
-
if ((
|
|
374
|
-
return
|
|
389
|
+
const g = this.computeVisibleByFiveMode(s, r);
|
|
390
|
+
if ((g == null ? void 0 : g.value) === !1)
|
|
391
|
+
return g;
|
|
375
392
|
if (s.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (r === "Floorplan" || r === "Mapview")) {
|
|
376
|
-
const
|
|
377
|
-
if (
|
|
393
|
+
const h = this.computeVisibleByFloorIndex(), { value: m } = h, v = j(h, ["value"]);
|
|
394
|
+
if (m === !1)
|
|
378
395
|
return p({ value: !1, checkedList: n, reason: "followModelVisibility check failed" }, v);
|
|
379
396
|
}
|
|
380
|
-
if (
|
|
397
|
+
if (U(r) && s.visiblePanoIndex !== void 0 && s.visiblePanoIndex !== "all" && t !== void 0) {
|
|
381
398
|
if (n.push("visiblePanoIndex"), Array.isArray(s.visiblePanoIndex) && !s.visiblePanoIndex.includes(t))
|
|
382
399
|
return {
|
|
383
400
|
value: !1,
|
|
384
401
|
checkedList: n,
|
|
385
402
|
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${s.visiblePanoIndex}`
|
|
386
403
|
};
|
|
387
|
-
if (s.visiblePanoIndex === "current" && t !== ((
|
|
404
|
+
if (s.visiblePanoIndex === "current" && t !== ((u = this.fiveState) == null ? void 0 : u.panoIndex))
|
|
388
405
|
return {
|
|
389
406
|
value: !1,
|
|
390
407
|
checkedList: n,
|
|
391
|
-
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(
|
|
408
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(a = this.fiveState) == null ? void 0 : a.panoIndex}`
|
|
392
409
|
};
|
|
393
410
|
}
|
|
394
411
|
if (s.visibleDistance !== void 0 && (n.push("visibleDistance"), s.visibleDistance !== "unLimited")) {
|
|
395
|
-
const
|
|
396
|
-
if (
|
|
412
|
+
const m = this.getDistance(e, 1);
|
|
413
|
+
if (k(m, s.visibleDistance) === !1)
|
|
397
414
|
return {
|
|
398
415
|
value: !1,
|
|
399
416
|
checkedList: n,
|
|
400
417
|
panoIndex: t,
|
|
401
418
|
visibleDistance: s.visibleDistance,
|
|
402
|
-
reason: `distance is not in visibleDistance. distance: ${
|
|
419
|
+
reason: `distance is not in visibleDistance. distance: ${m}, visibleDistance: ${s.visibleDistance.min} - ${s.visibleDistance.max}`
|
|
403
420
|
};
|
|
404
421
|
}
|
|
405
422
|
if (s.intersectRaycaster !== !1 && (typeof s.intersectRaycaster != "object" || s.intersectRaycaster.enabled !== !1)) {
|
|
@@ -409,9 +426,9 @@ class Ye {
|
|
|
409
426
|
checkedList: n,
|
|
410
427
|
reason: `intersectRaycaster check failed: panoIndex is ${t}`
|
|
411
428
|
};
|
|
412
|
-
const
|
|
413
|
-
if (
|
|
414
|
-
return Object.assign(
|
|
429
|
+
const m = this.computeVisibleByIntersect(t);
|
|
430
|
+
if (m.value === !1)
|
|
431
|
+
return Object.assign(m, { checkedList: n });
|
|
415
432
|
}
|
|
416
433
|
return {
|
|
417
434
|
value: !0,
|
|
@@ -431,9 +448,9 @@ class Ye {
|
|
|
431
448
|
if (n || (n = (o = (l = this.fiveState) == null ? void 0 : l.mode) != null ? o : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(n))
|
|
432
449
|
return n.includes(e);
|
|
433
450
|
if (n === "ModelLike")
|
|
434
|
-
return
|
|
451
|
+
return C(e);
|
|
435
452
|
if (n === "PanoramaLike")
|
|
436
|
-
return !
|
|
453
|
+
return !U(e);
|
|
437
454
|
if (n === "all")
|
|
438
455
|
return !0;
|
|
439
456
|
if (typeof n == "string")
|
|
@@ -443,7 +460,7 @@ class Ye {
|
|
|
443
460
|
var l;
|
|
444
461
|
const n = t();
|
|
445
462
|
if (E((l = this.fiveState) == null ? void 0 : l.panoIndex) && i.entryFromModel) {
|
|
446
|
-
if (
|
|
463
|
+
if (C(e) && n ? this.entryFromModel = !1 : this.entryFromModel = !0, C(e))
|
|
447
464
|
return !0;
|
|
448
465
|
} else
|
|
449
466
|
this.entryFromModel = !1;
|
|
@@ -458,25 +475,25 @@ class Ye {
|
|
|
458
475
|
}
|
|
459
476
|
/** 通过射线检测标签可用性 */
|
|
460
477
|
computeVisibleByIntersect(i) {
|
|
461
|
-
var s,
|
|
462
|
-
const e = z(z((s = this.getConfig().visibleConfig) != null ? s : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r =
|
|
478
|
+
var s, d, h, u;
|
|
479
|
+
const e = z(z((s = this.getConfig().visibleConfig) != null ? s : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r = U(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
|
|
463
480
|
if (r === void 0)
|
|
464
481
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
465
482
|
const n = ie(
|
|
466
483
|
(() => {
|
|
467
|
-
var
|
|
468
|
-
const
|
|
469
|
-
return
|
|
484
|
+
var g;
|
|
485
|
+
const a = (g = e.checkPoints) != null ? g : "center";
|
|
486
|
+
return a === "center" ? $(this) : a === "corner" ? L(this) : Array.isArray(a) ? a : [];
|
|
470
487
|
})()
|
|
471
488
|
);
|
|
472
489
|
let l = 0, o = 0;
|
|
473
|
-
for (const
|
|
474
|
-
const
|
|
475
|
-
let
|
|
476
|
-
V.set(r,
|
|
490
|
+
for (const a of n) {
|
|
491
|
+
const g = new B.Vector3().subVectors(a, r).normalize();
|
|
492
|
+
let m;
|
|
493
|
+
V.set(r, g);
|
|
477
494
|
const [v] = this.fiveUtil.model.intersectRaycaster(V);
|
|
478
|
-
|
|
479
|
-
const
|
|
495
|
+
m = v == null ? void 0 : v.distance;
|
|
496
|
+
const x = (() => {
|
|
480
497
|
if (!T(this))
|
|
481
498
|
return;
|
|
482
499
|
const _ = this.plugin.tags.filter(T).map((X) => {
|
|
@@ -484,9 +501,9 @@ class Ye {
|
|
|
484
501
|
return (F = X.model) == null ? void 0 : F.object;
|
|
485
502
|
}).filter(E), [q] = V.intersectObjects(_, !0);
|
|
486
503
|
return q;
|
|
487
|
-
})(), J = r.distanceTo(
|
|
488
|
-
|
|
489
|
-
const H = (
|
|
504
|
+
})(), J = r.distanceTo(a), W = (d = e.distanceAccuracy) != null ? d : 0.01;
|
|
505
|
+
m = Math.min(m != null ? m : 1 / 0, (h = x == null ? void 0 : x.distance) != null ? h : 1 / 0), m + W >= J ? l++ : o++;
|
|
506
|
+
const H = (u = e.needPassed) != null ? u : 1;
|
|
490
507
|
if (l >= H)
|
|
491
508
|
return { value: !0 };
|
|
492
509
|
}
|
|
@@ -501,12 +518,12 @@ class Ye {
|
|
|
501
518
|
};
|
|
502
519
|
}
|
|
503
520
|
computeVisibleByFloorIndex() {
|
|
504
|
-
var r, n, l, o, s,
|
|
521
|
+
var r, n, l, o, s, d, h;
|
|
505
522
|
let i = 0;
|
|
506
523
|
const e = (r = this.fiveState) == null ? void 0 : r.panoIndex;
|
|
507
524
|
e !== void 0 ? i = (n = this.workUtil.getObserver(e)) == null ? void 0 : n.floorIndex : i = ae(
|
|
508
525
|
this.workUtil.work,
|
|
509
|
-
(
|
|
526
|
+
(h = (d = (o = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : o.position) != null ? d : (s = this.mediaPlane) == null ? void 0 : s.position) != null ? h : $(this)
|
|
510
527
|
);
|
|
511
528
|
const t = this.fiveUtil.model.shownFloor;
|
|
512
529
|
return {
|
|
@@ -527,13 +544,13 @@ class Ye {
|
|
|
527
544
|
return !1;
|
|
528
545
|
if (e.keep === "unfolded")
|
|
529
546
|
return !0;
|
|
530
|
-
if (e.unfoldDistance &&
|
|
547
|
+
if (e.unfoldDistance && k(this.getDistance({ panoIndex: i }), e.unfoldDistance) === !1)
|
|
531
548
|
return !1;
|
|
532
549
|
}
|
|
533
550
|
}
|
|
534
551
|
computeUnfoldedByCamera() {
|
|
535
552
|
var e;
|
|
536
|
-
if (this.entryFromModel &&
|
|
553
|
+
if (this.entryFromModel && C(this.five.state.mode))
|
|
537
554
|
return !1;
|
|
538
555
|
const i = this.getConfig().unfoldedConfig;
|
|
539
556
|
if (i) {
|
|
@@ -547,7 +564,7 @@ class Ye {
|
|
|
547
564
|
return;
|
|
548
565
|
if (i.autoUnfold.strategy === "ScreenPostion") {
|
|
549
566
|
const t = this.computeTagProject();
|
|
550
|
-
if (t &&
|
|
567
|
+
if (t && k(t.x, i.autoUnfold.autoUnfoldProjectX) === !1)
|
|
551
568
|
return !1;
|
|
552
569
|
}
|
|
553
570
|
if (i.autoUnfold.strategy === "MinimumDistance") {
|
|
@@ -555,14 +572,14 @@ class Ye {
|
|
|
555
572
|
const s = this.computeTagProject();
|
|
556
573
|
if (!s)
|
|
557
574
|
return !1;
|
|
558
|
-
const { x:
|
|
559
|
-
return !(Math.abs(
|
|
575
|
+
const { x: d, y: h, z: u } = s;
|
|
576
|
+
return !(Math.abs(u) > 1 || Math.abs(d) > 1 || Math.abs(h) > 1);
|
|
560
577
|
}).map((o) => ({ tag: o, id: o.id, tagConfig: o.getConfig().unfoldedConfig })).filter(({ tagConfig: o }) => {
|
|
561
|
-
var s,
|
|
562
|
-
return !(typeof o == "function" || o.keep || o.autoUnfold === !1 || ((s = o.autoUnfold) == null ? void 0 : s.enable) === !1 || ((
|
|
563
|
-
}).map((o) =>
|
|
564
|
-
const
|
|
565
|
-
return !(
|
|
578
|
+
var s, d;
|
|
579
|
+
return !(typeof o == "function" || o.keep || o.autoUnfold === !1 || ((s = o.autoUnfold) == null ? void 0 : s.enable) === !1 || ((d = o.autoUnfold) == null ? void 0 : d.strategy) !== "MinimumDistance");
|
|
580
|
+
}).map((o) => I(p({}, o), { distance: o.tag.getDistance() })).filter(({ distance: o, tagConfig: s }) => {
|
|
581
|
+
const d = s.autoUnfold.distance;
|
|
582
|
+
return !(d && k(o, d) === !1);
|
|
566
583
|
}).sort((o, s) => o.distance - s.distance).findIndex((o) => o.id === this.id);
|
|
567
584
|
if (n === -1 || n <= ((e = i.autoUnfold.maxNumber) != null ? e : 1) - 1 === !1)
|
|
568
585
|
return !1;
|
|
@@ -600,7 +617,7 @@ class Ye {
|
|
|
600
617
|
return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
|
|
601
618
|
if (!this.enabled)
|
|
602
619
|
return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
|
|
603
|
-
const i =
|
|
620
|
+
const i = I(p({}, this.computeVisible()), {
|
|
604
621
|
tagInstance: this
|
|
605
622
|
});
|
|
606
623
|
return i.value !== this.state.visible ? { reason: "插件故障,请联系维护人员, err: 0", info: i } : this.state.visible ? { reason: "应该是能看见才对", info: i } : i.value === !0 ? { reason: "插件故障,请联系维护人员, err: 1", info: i } : { reason: (e = i.reason.type) != null ? e : i.reason, info: i };
|
|
@@ -615,5 +632,5 @@ class Ye {
|
|
|
615
632
|
}
|
|
616
633
|
}
|
|
617
634
|
export {
|
|
618
|
-
|
|
635
|
+
Ke as BaseTag
|
|
619
636
|
};
|
|
@@ -71,8 +71,7 @@ import "../../../shared-utils/url/getUrl.js";
|
|
|
71
71
|
import "../../../shared-utils/five/getFloorIndex.js";
|
|
72
72
|
import "../../../shared-utils/safeObj.js";
|
|
73
73
|
import "../../utils/Cache.js";
|
|
74
|
-
|
|
75
|
-
class Pt extends D {
|
|
74
|
+
class xt extends D {
|
|
76
75
|
constructor(i, s) {
|
|
77
76
|
super(i, s);
|
|
78
77
|
l(this, "loading", !1);
|
|
@@ -125,5 +124,5 @@ class Pt extends D {
|
|
|
125
124
|
}
|
|
126
125
|
}
|
|
127
126
|
export {
|
|
128
|
-
|
|
127
|
+
xt as ModelTag
|
|
129
128
|
};
|