@realsee/dnalogel 3.43.0 → 3.44.1
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/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +4 -2
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +2 -1
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +6 -1
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +2 -0
- package/dist/Sculpt/Meshes/Line.d.ts +19 -1
- package/dist/Sculpt/utils/color.d.ts +1 -1
- package/dist/index.cjs.js +102 -68
- package/dist/index.js +7127 -6867
- package/dist/index.umd.js +106 -72
- package/dist/shared-utils/five/getPosition.d.ts +12 -4
- package/dist/shared-utils/five/initialCSS3DRender.d.ts +2 -0
- package/dist/shared-utils/math/deg2Rad.d.ts +1 -1
- package/dist/shared-utils/math/rad2Deg.d.ts +1 -1
- package/dist/shared-utils/positionToVector3.d.ts +6 -6
- package/{libs/shared-utils/three/PointSelector.d.ts → dist/shared-utils/three/PointSelector/index.d.ts} +23 -7
- package/dist/shared-utils/three/{PointHelper.d.ts → PointSelector/utils/PointHelper.d.ts} +11 -3
- package/dist/shared-utils/three/PointSelector/utils/PointHelper2.d.ts +30 -0
- package/dist/shared-utils/three/{PointSelectorHelper.d.ts → PointSelector/utils/PointSelectorHelper.d.ts} +9 -10
- package/dist/shared-utils/three/PointSelector/utils/typing.d.ts +8 -0
- package/dist/shared-utils/three/index.d.ts +2 -3
- package/libs/AreaMakerPlugin/Controller.js +5 -18
- package/libs/AreaMakerPlugin/index.js +4 -17
- package/libs/AreaMakerPlugin/utils/Item.js +13 -26
- package/libs/CSS3DRenderPlugin/Controller.js +9 -6
- package/libs/CSS3DRenderPlugin/index.js +12 -9
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +6 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +4 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +73 -56
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +11 -4
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +2 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +14 -14
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +4 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.js +13 -0
- package/libs/CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js +85 -0
- package/libs/CruisePlugin/BaseController.js +20 -33
- package/libs/CruisePlugin/Move.js +25 -23
- package/libs/CruisePlugin/Work.js +10 -8
- package/libs/CruisePlugin/index.js +23 -21
- package/libs/CurrentPanoImagePlugin/Controller.js +30 -43
- package/libs/CurrentPanoImagePlugin/index.js +5 -18
- package/libs/GuideLinePlugin/Controller.js +15 -13
- package/libs/GuideLinePlugin/GuideLineItem.js +19 -17
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +4 -5
- package/libs/GuideLinePlugin/GuideLineModeItem.js +21 -19
- package/libs/GuideLinePlugin/index.js +23 -21
- package/libs/ModelMakerPlugin/Controller.js +19 -30
- package/libs/ModelMakerPlugin/index.js +11 -22
- package/libs/ModelTVVideoPlugin/Plugin.js +13 -10
- package/libs/ModelTVVideoPlugin/index.js +12 -9
- package/libs/Object3DHelperPlugin/Controller.js +7 -5
- package/libs/Object3DHelperPlugin/index.js +23 -21
- package/libs/PanoCompassPlugin/Controller.js +18 -15
- package/libs/PanoCompassPlugin/index.js +21 -18
- package/libs/PanoDoorLabelPlugin/BaseController.js +24 -37
- package/libs/PanoDoorLabelPlugin/Controller.js +56 -69
- package/libs/PanoDoorLabelPlugin/index.js +5 -18
- package/libs/PanoMeasurePlugin/Components/Controller0.js +40 -47
- package/libs/PanoMeasurePlugin/Components/Controller1.js +72 -79
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +6 -1
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +53 -39
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/EditController.js +177 -153
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +60 -74
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Controller/index.js +59 -60
- package/libs/PanoMeasurePlugin/Model/area.js +30 -44
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +3 -16
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +42 -49
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -1
- package/libs/PanoMeasurePlugin/index.js +35 -40
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +23 -36
- package/libs/PanoSpatialTagPlugin/Plugin.js +41 -38
- package/libs/PanoSpatialTagPlugin/index.js +10 -7
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +29 -43
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +55 -69
- package/libs/PanoTagPlugin/Components/Tag/index.js +9 -19
- package/libs/PanoTagPlugin/Components/TagContainer.js +42 -52
- package/libs/PanoTagPlugin/Components/TagItem.js +9 -19
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +56 -64
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +29 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +11 -21
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +18 -28
- package/libs/PanoTagPlugin/controller/TagRender.js +18 -16
- package/libs/PanoTagPlugin/controller/TagUtil.js +12 -9
- package/libs/PanoTagPlugin/controller/index.js +27 -25
- package/libs/PanoTagPlugin/index.js +28 -26
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +43 -57
- package/libs/PanoVideoPlugin/Controller.js +52 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +11 -25
- package/libs/PanoVideoPlugin/index.js +8 -21
- package/libs/PipelinePlugin/Controller.js +44 -57
- package/libs/PipelinePlugin/index.js +5 -18
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +20 -34
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +16 -30
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +39 -53
- package/libs/Sculpt/Meshes/Box.js +3 -3
- package/libs/Sculpt/Meshes/Cylinder.js +14 -14
- package/libs/Sculpt/Meshes/Line.d.ts +19 -1
- package/libs/Sculpt/Meshes/Line.js +40 -41
- package/libs/Sculpt/Meshes/LineWithDots.js +5 -6
- package/libs/Sculpt/Meshes/Point.js +3 -3
- package/libs/Sculpt/Meshes/Polyline.js +3 -3
- package/libs/Sculpt/Meshes/Prism.js +11 -12
- package/libs/Sculpt/Meshes/Rectangle.js +3 -3
- package/libs/Sculpt/Objects/Point/Editor.js +10 -10
- package/libs/Sculpt/Objects/Polygon/Editor.js +6 -6
- package/libs/Sculpt/Objects/Polyline/Editor.js +4 -4
- package/libs/Sculpt/index.js +3 -3
- package/libs/Sculpt/utils/Modules/Global.js +1 -1
- package/libs/Sculpt/utils/color.d.ts +1 -1
- package/libs/Sculpt/utils/three/ColoredMesh.js +3 -3
- package/libs/base/BasePlugin.js +4 -4
- package/libs/floorplan/Components/Compass.js +29 -31
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +9 -22
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -19
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -18
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -18
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +48 -61
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -18
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +28 -41
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -18
- package/libs/floorplan/index.js +3 -3
- package/libs/index.js +140 -137
- package/libs/shared-utils/five/getPosition.d.ts +12 -4
- package/libs/shared-utils/five/getPosition.js +23 -23
- package/libs/shared-utils/five/index.js +2 -2
- package/libs/shared-utils/five/initialCSS3DRender.d.ts +2 -0
- package/libs/shared-utils/five/initialCSS3DRender.js +17 -0
- package/libs/shared-utils/five/lookObject.js +3 -3
- package/libs/shared-utils/index.js +38 -40
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/math/deg2Rad.d.ts +1 -1
- package/libs/shared-utils/math/rad2Deg.d.ts +1 -1
- package/libs/shared-utils/positionToVector3.d.ts +6 -6
- package/{dist/shared-utils/three/PointSelector.d.ts → libs/shared-utils/three/PointSelector/index.d.ts} +23 -7
- package/libs/shared-utils/three/{PointSelector.js → PointSelector/index.js} +54 -45
- package/libs/shared-utils/three/{PointHelper.d.ts → PointSelector/utils/PointHelper.d.ts} +11 -3
- package/libs/shared-utils/three/PointSelector/utils/PointHelper.js +95 -0
- package/libs/shared-utils/three/PointSelector/utils/PointHelper2.d.ts +30 -0
- package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +153 -0
- package/libs/shared-utils/three/{PointSelectorHelper.d.ts → PointSelector/utils/PointSelectorHelper.d.ts} +9 -10
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +60 -0
- package/libs/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.js +3 -4
- package/libs/shared-utils/three/PointSelector/utils/typing.d.ts +8 -0
- package/libs/shared-utils/three/index.d.ts +2 -3
- package/libs/shared-utils/three/index.js +3 -3
- package/package.json +3 -3
- package/dist/shared-utils/three/PointDomHelper.d.ts +0 -18
- package/libs/shared-utils/three/PointDomHelper.d.ts +0 -18
- package/libs/shared-utils/three/PointDomHelper.js +0 -62
- package/libs/shared-utils/three/PointHelper.js +0 -73
- package/libs/shared-utils/three/PointSelectorHelper.js +0 -52
- /package/dist/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.d.ts +0 -0
- /package/libs/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.d.ts +0 -0
|
@@ -59,24 +59,10 @@ import "../../vendor/svelte-carousel/src/utils/interval.js";
|
|
|
59
59
|
import "./Common/MediaItem.js";
|
|
60
60
|
import "./Tag/MarketingTag.js";
|
|
61
61
|
import "hammerjs";
|
|
62
|
-
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
63
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
64
|
-
import "../../shared-utils/positionToVector3.js";
|
|
65
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
66
62
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
67
|
-
import "
|
|
68
|
-
import "../../shared-utils/util.js";
|
|
69
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
70
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
71
|
-
import "../../shared-utils/Subscribe.js";
|
|
72
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
73
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
74
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
75
|
-
import "../../shared-utils/three/getObjectVisible.js";
|
|
76
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
77
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
78
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
63
|
+
import "@realsee/five/line";
|
|
79
64
|
import "../../shared-utils/three/THREESphere.js";
|
|
65
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
80
66
|
import "../utils/noTypecheck.js";
|
|
81
67
|
import "./Tag/AudioTag/index.js";
|
|
82
68
|
import "./Tag/AudioTag/AudioTag.js";
|
|
@@ -93,11 +79,13 @@ import "./Tag/PanoramaTag.js";
|
|
|
93
79
|
import "./Tag/CustomTag.js";
|
|
94
80
|
import "../../vendor/classnames/index.js";
|
|
95
81
|
import "../controller/Tag/ModelTag.js";
|
|
82
|
+
import "../../shared-utils/positionToVector3.js";
|
|
96
83
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
97
84
|
import "@realsee/five/gltf-loader";
|
|
98
85
|
import "../utils/planeNormal.js";
|
|
99
86
|
import "../utils/tag/tagCheck.js";
|
|
100
87
|
import "../utils/model/mediaPlane.js";
|
|
88
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
101
89
|
import "../../shared-utils/three/loadTexture.js";
|
|
102
90
|
import "../../shared-utils/three/Quadrangle.js";
|
|
103
91
|
import "../../shared-utils/math/pointsIsRectangle.js";
|
|
@@ -107,6 +95,7 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
107
95
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
108
96
|
import "../../shared-utils/three/getNormal.js";
|
|
109
97
|
import "../controller/Tag/BaseTag.js";
|
|
98
|
+
import "../../shared-utils/Subscribe.js";
|
|
110
99
|
import "../utils/tag/calculateTagConfig.js";
|
|
111
100
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
112
101
|
import "../../shared-utils/typescript/entries.js";
|
|
@@ -116,6 +105,7 @@ import "@realsee/five";
|
|
|
116
105
|
import "../../shared-utils/five/mode.js";
|
|
117
106
|
import "../utils/tag/format.js";
|
|
118
107
|
import "../../shared-utils/three/blink.js";
|
|
108
|
+
import "../../shared-utils/util.js";
|
|
119
109
|
import "../../shared-utils/vectorToCoordinate.js";
|
|
120
110
|
import "../../shared-utils/formatRad.js";
|
|
121
111
|
import "../../shared-utils/five/transformPosition.js";
|
|
@@ -140,21 +130,21 @@ function k(a, t, i) {
|
|
|
140
130
|
return e[8] = t[i], e;
|
|
141
131
|
}
|
|
142
132
|
function b(a) {
|
|
143
|
-
let t, i = [], e = /* @__PURE__ */ new Map(), m, r,
|
|
133
|
+
let t, i = [], e = /* @__PURE__ */ new Map(), m, r, p = (
|
|
144
134
|
/*tags*/
|
|
145
135
|
a[0]
|
|
146
136
|
);
|
|
147
|
-
const f = (
|
|
137
|
+
const f = (n) => (
|
|
148
138
|
/*tag*/
|
|
149
|
-
|
|
139
|
+
n[8].id
|
|
150
140
|
);
|
|
151
|
-
for (let
|
|
152
|
-
let o = k(a,
|
|
153
|
-
e.set(s, i[
|
|
141
|
+
for (let n = 0; n < p.length; n += 1) {
|
|
142
|
+
let o = k(a, p, n), s = f(o);
|
|
143
|
+
e.set(s, i[n] = y(s, o));
|
|
154
144
|
}
|
|
155
145
|
return {
|
|
156
146
|
c() {
|
|
157
|
-
var
|
|
147
|
+
var n;
|
|
158
148
|
t = C("div");
|
|
159
149
|
for (let o = 0; o < i.length; o += 1)
|
|
160
150
|
i[o].c();
|
|
@@ -164,46 +154,46 @@ function b(a) {
|
|
|
164
154
|
t,
|
|
165
155
|
"z-index",
|
|
166
156
|
/*zIndex*/
|
|
167
|
-
(
|
|
157
|
+
(n = a[6]) != null ? n : ""
|
|
168
158
|
);
|
|
169
159
|
},
|
|
170
|
-
m(
|
|
171
|
-
_(
|
|
160
|
+
m(n, o) {
|
|
161
|
+
_(n, t, o);
|
|
172
162
|
for (let s = 0; s < i.length; s += 1)
|
|
173
163
|
i[s] && i[s].m(t, null);
|
|
174
164
|
r = !0;
|
|
175
165
|
},
|
|
176
|
-
p(
|
|
166
|
+
p(n, o) {
|
|
177
167
|
var s;
|
|
178
168
|
o & /*state, temporaryState, tags, mediaStore, rendererMap, contentTypeMap*/
|
|
179
|
-
63 && (
|
|
180
|
-
|
|
169
|
+
63 && (p = /*tags*/
|
|
170
|
+
n[0], S(), i = j(i, o, f, 1, n, p, e, t, A, y, null, k), M()), (!r || o & /*state, temporaryState*/
|
|
181
171
|
48) && h(t, "hide", !/*state*/
|
|
182
|
-
|
|
183
|
-
|
|
172
|
+
n[4].visible || !/*temporaryState*/
|
|
173
|
+
n[5].visible), o & /*zIndex*/
|
|
184
174
|
64 && g(
|
|
185
175
|
t,
|
|
186
176
|
"z-index",
|
|
187
177
|
/*zIndex*/
|
|
188
|
-
(s =
|
|
178
|
+
(s = n[6]) != null ? s : ""
|
|
189
179
|
);
|
|
190
180
|
},
|
|
191
|
-
i(
|
|
181
|
+
i(n) {
|
|
192
182
|
if (!r) {
|
|
193
|
-
for (let o = 0; o <
|
|
183
|
+
for (let o = 0; o < p.length; o += 1)
|
|
194
184
|
c(i[o]);
|
|
195
185
|
m || B(() => {
|
|
196
186
|
m = D(t, J, {}), m.start();
|
|
197
187
|
}), r = !0;
|
|
198
188
|
}
|
|
199
189
|
},
|
|
200
|
-
o(
|
|
190
|
+
o(n) {
|
|
201
191
|
for (let o = 0; o < i.length; o += 1)
|
|
202
192
|
u(i[o]);
|
|
203
193
|
r = !1;
|
|
204
194
|
},
|
|
205
|
-
d(
|
|
206
|
-
|
|
195
|
+
d(n) {
|
|
196
|
+
n && d(t);
|
|
207
197
|
for (let o = 0; o < i.length; o += 1)
|
|
208
198
|
i[o].d();
|
|
209
199
|
}
|
|
@@ -244,23 +234,23 @@ function y(a, t) {
|
|
|
244
234
|
c() {
|
|
245
235
|
i = z(), E(e.$$.fragment), this.first = i;
|
|
246
236
|
},
|
|
247
|
-
m(r,
|
|
248
|
-
_(r, i,
|
|
237
|
+
m(r, p) {
|
|
238
|
+
_(r, i, p), F(e, r, p), m = !0;
|
|
249
239
|
},
|
|
250
|
-
p(r,
|
|
240
|
+
p(r, p) {
|
|
251
241
|
t = r;
|
|
252
242
|
const f = {};
|
|
253
|
-
|
|
243
|
+
p & /*state*/
|
|
254
244
|
16 && (f.state = /*state*/
|
|
255
|
-
t[4]),
|
|
245
|
+
t[4]), p & /*temporaryState*/
|
|
256
246
|
32 && (f.temporaryState = /*temporaryState*/
|
|
257
|
-
t[5]),
|
|
247
|
+
t[5]), p & /*tags*/
|
|
258
248
|
1 && (f.tag = /*tag*/
|
|
259
|
-
t[8]),
|
|
249
|
+
t[8]), p & /*mediaStore*/
|
|
260
250
|
2 && (f.mediaStore = /*mediaStore*/
|
|
261
|
-
t[1]),
|
|
251
|
+
t[1]), p & /*rendererMap*/
|
|
262
252
|
4 && (f.rendererMap = /*rendererMap*/
|
|
263
|
-
t[2]),
|
|
253
|
+
t[2]), p & /*contentTypeMap*/
|
|
264
254
|
8 && (f.contentTypeMap = /*contentTypeMap*/
|
|
265
255
|
t[3]), e.$set(f);
|
|
266
256
|
},
|
|
@@ -306,21 +296,21 @@ function L(a) {
|
|
|
306
296
|
};
|
|
307
297
|
}
|
|
308
298
|
function O(a, t, i) {
|
|
309
|
-
let { tags: e = [] } = t, { hooks: m } = t, { mediaStore: r } = t, { rendererMap:
|
|
299
|
+
let { tags: e = [] } = t, { hooks: m } = t, { mediaStore: r } = t, { rendererMap: p } = t, { contentTypeMap: f } = t, { state: n } = t, { temporaryState: o } = t, { zIndex: s = void 0 } = t;
|
|
310
300
|
return I("hooks", m), a.$$set = (l) => {
|
|
311
|
-
"tags" in l && i(0, e = l.tags), "hooks" in l && i(7, m = l.hooks), "mediaStore" in l && i(1, r = l.mediaStore), "rendererMap" in l && i(2,
|
|
301
|
+
"tags" in l && i(0, e = l.tags), "hooks" in l && i(7, m = l.hooks), "mediaStore" in l && i(1, r = l.mediaStore), "rendererMap" in l && i(2, p = l.rendererMap), "contentTypeMap" in l && i(3, f = l.contentTypeMap), "state" in l && i(4, n = l.state), "temporaryState" in l && i(5, o = l.temporaryState), "zIndex" in l && i(6, s = l.zIndex);
|
|
312
302
|
}, [
|
|
313
303
|
e,
|
|
314
304
|
r,
|
|
315
|
-
n,
|
|
316
|
-
f,
|
|
317
305
|
p,
|
|
306
|
+
f,
|
|
307
|
+
n,
|
|
318
308
|
o,
|
|
319
309
|
s,
|
|
320
310
|
m
|
|
321
311
|
];
|
|
322
312
|
}
|
|
323
|
-
class
|
|
313
|
+
class mi extends v {
|
|
324
314
|
constructor(t) {
|
|
325
315
|
super(), w(
|
|
326
316
|
this,
|
|
@@ -343,5 +333,5 @@ class di extends v {
|
|
|
343
333
|
}
|
|
344
334
|
}
|
|
345
335
|
export {
|
|
346
|
-
|
|
336
|
+
mi as default
|
|
347
337
|
};
|
|
@@ -5,11 +5,11 @@ import { noTypecheck as V } from "../utils/noTypecheck.js";
|
|
|
5
5
|
import tt from "./Common/TagPoint.js";
|
|
6
6
|
import { isModelLike as et } from "../../shared-utils/five/mode.js";
|
|
7
7
|
import "hammerjs";
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
8
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
9
|
+
import "@realsee/five/line";
|
|
11
10
|
import "../../shared-utils/three/THREESphere.js";
|
|
12
11
|
import "animejs";
|
|
12
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
13
13
|
import "./Tag/TextTag/index.js";
|
|
14
14
|
import "./Tag/TextTag/TextTag.js";
|
|
15
15
|
import "./Common/Line/Straight.js";
|
|
@@ -65,20 +65,6 @@ import "../../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
|
65
65
|
import "../../vendor/svelte-carousel/src/utils/interval.js";
|
|
66
66
|
import "./Common/MediaItem.js";
|
|
67
67
|
import "./Tag/MarketingTag.js";
|
|
68
|
-
import "../../shared-utils/positionToVector3.js";
|
|
69
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
70
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
71
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
72
|
-
import "../../shared-utils/util.js";
|
|
73
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
74
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
75
|
-
import "../../shared-utils/Subscribe.js";
|
|
76
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
77
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
78
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
79
|
-
import "../../shared-utils/three/getObjectVisible.js";
|
|
80
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
81
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
82
68
|
import "./Tag/AudioTag/index.js";
|
|
83
69
|
import "./Tag/AudioTag/AudioTag.js";
|
|
84
70
|
import "./Common/Audio.js";
|
|
@@ -94,11 +80,13 @@ import "./Tag/PanoramaTag.js";
|
|
|
94
80
|
import "./Tag/CustomTag.js";
|
|
95
81
|
import "../../vendor/classnames/index.js";
|
|
96
82
|
import "../controller/Tag/ModelTag.js";
|
|
83
|
+
import "../../shared-utils/positionToVector3.js";
|
|
97
84
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
98
85
|
import "@realsee/five/gltf-loader";
|
|
99
86
|
import "../utils/planeNormal.js";
|
|
100
87
|
import "../utils/tag/tagCheck.js";
|
|
101
88
|
import "../utils/model/mediaPlane.js";
|
|
89
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
102
90
|
import "../../shared-utils/three/loadTexture.js";
|
|
103
91
|
import "../../shared-utils/three/Quadrangle.js";
|
|
104
92
|
import "../../shared-utils/math/pointsIsRectangle.js";
|
|
@@ -108,6 +96,7 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
108
96
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
109
97
|
import "../../shared-utils/three/getNormal.js";
|
|
110
98
|
import "../controller/Tag/BaseTag.js";
|
|
99
|
+
import "../../shared-utils/Subscribe.js";
|
|
111
100
|
import "../utils/tag/calculateTagConfig.js";
|
|
112
101
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
113
102
|
import "../../shared-utils/typescript/entries.js";
|
|
@@ -116,6 +105,7 @@ import "../typings/tag/TagConfig.js";
|
|
|
116
105
|
import "@realsee/five";
|
|
117
106
|
import "../utils/tag/format.js";
|
|
118
107
|
import "../../shared-utils/three/blink.js";
|
|
108
|
+
import "../../shared-utils/util.js";
|
|
119
109
|
import "../../shared-utils/vectorToCoordinate.js";
|
|
120
110
|
import "../../shared-utils/formatRad.js";
|
|
121
111
|
import "../../shared-utils/five/transformPosition.js";
|
|
@@ -469,7 +459,7 @@ function at(o, t, i) {
|
|
|
469
459
|
H
|
|
470
460
|
];
|
|
471
461
|
}
|
|
472
|
-
class
|
|
462
|
+
class Si extends J {
|
|
473
463
|
constructor(t) {
|
|
474
464
|
super(), K(
|
|
475
465
|
this,
|
|
@@ -490,5 +480,5 @@ class Di extends J {
|
|
|
490
480
|
}
|
|
491
481
|
}
|
|
492
482
|
export {
|
|
493
|
-
|
|
483
|
+
Si as default
|
|
494
484
|
};
|
|
@@ -2,14 +2,14 @@ var Z = Object.defineProperty, _ = Object.defineProperties;
|
|
|
2
2
|
var G = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var y = Object.getOwnPropertySymbols;
|
|
4
4
|
var D = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var M = (u, i, e) => i in u ? Z(u, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[i] = e, p = (u, i) => {
|
|
6
6
|
for (var e in i || (i = {}))
|
|
7
|
-
D.call(i, e) &&
|
|
7
|
+
D.call(i, e) && M(u, e, i[e]);
|
|
8
8
|
if (y)
|
|
9
9
|
for (var e of y(i))
|
|
10
|
-
j.call(i, e) &&
|
|
10
|
+
j.call(i, e) && M(u, e, i[e]);
|
|
11
11
|
return u;
|
|
12
|
-
},
|
|
12
|
+
}, I = (u, i) => _(u, G(i));
|
|
13
13
|
var B = (u, i) => {
|
|
14
14
|
var e = {};
|
|
15
15
|
for (var t in u)
|
|
@@ -19,8 +19,8 @@ var B = (u, i) => {
|
|
|
19
19
|
i.indexOf(t) < 0 && j.call(u, t) && (e[t] = u[t]);
|
|
20
20
|
return e;
|
|
21
21
|
};
|
|
22
|
-
var f = (u, i, e) => (
|
|
23
|
-
var
|
|
22
|
+
var f = (u, i, e) => (M(u, typeof i != "symbol" ? i + "" : i, e), e);
|
|
23
|
+
var U = (u, i, e) => new Promise((t, r) => {
|
|
24
24
|
var n = (s) => {
|
|
25
25
|
try {
|
|
26
26
|
o(e.next(s));
|
|
@@ -37,26 +37,26 @@ var I = (u, i, e) => new Promise((t, r) => {
|
|
|
37
37
|
o((e = e.apply(u, i)).next());
|
|
38
38
|
});
|
|
39
39
|
import { Subscribe as K } 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 T, isModelLike as P } from "../../../shared-utils/five/mode.js";
|
|
43
43
|
import * as S from "three";
|
|
44
44
|
import "hammerjs";
|
|
45
|
-
import "
|
|
46
|
-
import "../../../
|
|
47
|
-
import "
|
|
45
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
46
|
+
import { centerPoint as ee } from "../../../shared-utils/three/centerPoint.js";
|
|
47
|
+
import "@realsee/five/line";
|
|
48
|
+
import { anyPositionToVector3 as A } from "../../../shared-utils/positionToVector3.js";
|
|
48
49
|
import "../../../shared-utils/three/THREESphere.js";
|
|
49
|
-
import { blink as
|
|
50
|
-
import { vectorToCoordinates as
|
|
51
|
-
import { transformPosition as
|
|
52
|
-
import { isNil as
|
|
53
|
-
import { lookPoint as
|
|
54
|
-
import { uuid as
|
|
50
|
+
import { blink as ie, reblink as te } from "../../../shared-utils/three/blink.js";
|
|
51
|
+
import { vectorToCoordinates as ne } from "../../../shared-utils/vectorToCoordinate.js";
|
|
52
|
+
import { transformPosition as O } from "../../../shared-utils/five/transformPosition.js";
|
|
53
|
+
import { isNil as R, notNil as E } from "../../../shared-utils/isNil.js";
|
|
54
|
+
import { lookPoint as se } from "../../../shared-utils/five/lookPoint.js";
|
|
55
|
+
import { uuid as oe } from "../../../shared-utils/uuid.js";
|
|
56
|
+
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
55
57
|
import { objectAssignDeepExports as b } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
56
|
-
import { anyPositionToVector3 as E } from "../../../shared-utils/positionToVector3.js";
|
|
57
58
|
import { getTagPosition as L, getTagCenterPosition as $ } from "../../utils/tagPosition.js";
|
|
58
|
-
import { checkRange as
|
|
59
|
-
import { centerPoint as oe } from "../../../shared-utils/three/centerPoint.js";
|
|
59
|
+
import { checkRange as C } from "../../utils/checkRange.js";
|
|
60
60
|
import { isMediaPlaneTag as re, isMediaModelTag as V } from "../../utils/tag/tagCheck.js";
|
|
61
61
|
import { getUrlExt as N } from "../../../shared-utils/url/getUrl.js";
|
|
62
62
|
import { getFloorIndex as le } from "../../../shared-utils/five/getFloorIndex.js";
|
|
@@ -69,24 +69,14 @@ import "../../utils/tag/adaptConfig.js";
|
|
|
69
69
|
import "../../typings/tag/TagConfig.js";
|
|
70
70
|
import "@realsee/five";
|
|
71
71
|
import "animejs";
|
|
72
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
73
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
74
|
-
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
75
|
-
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
76
|
-
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
77
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
78
|
-
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
79
|
-
import "../../../shared-utils/three/getObjectVisible.js";
|
|
80
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
81
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
82
72
|
import "../../../shared-utils/formatRad.js";
|
|
83
73
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
84
74
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
85
75
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
86
76
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
class
|
|
77
|
+
const k = new S.Raycaster();
|
|
78
|
+
k.params.Points.threshold = 0.1;
|
|
79
|
+
class _e {
|
|
90
80
|
constructor(i, e) {
|
|
91
81
|
f(this, "plugin");
|
|
92
82
|
f(this, "id");
|
|
@@ -122,8 +112,8 @@ class ri {
|
|
|
122
112
|
e.stickType = t;
|
|
123
113
|
const r = JSON.parse(JSON.stringify(e.data)), n = (s = e.initialConfig) != null ? s : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
|
|
124
114
|
e.initialConfig = n;
|
|
125
|
-
const l =
|
|
126
|
-
e.config = o, this.id = (a = e.id) != null ? a :
|
|
115
|
+
const l = w(e, i.config), o = this.getConfig(e);
|
|
116
|
+
e.config = o, this.id = (a = e.id) != null ? a : oe(), this.enabled = (c = e.enabled) != null ? c : !0, this.contentType = e.contentType, this.data = (g = o.initialData) != null && g.important ? b(e.data, r, o.initialData) : b(e.data, o.initialData, r), this.state = p({
|
|
127
117
|
visible: void 0,
|
|
128
118
|
unfolded: !this.can("fold")
|
|
129
119
|
}, o.initialState), this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
|
|
@@ -131,7 +121,7 @@ class ri {
|
|
|
131
121
|
if (!d)
|
|
132
122
|
return;
|
|
133
123
|
const m = i.workUtil.transform;
|
|
134
|
-
return Array.isArray(d) && d.length === 4 ? d.map(
|
|
124
|
+
return Array.isArray(d) && d.length === 4 ? d.map(A).map((h) => O(h, m).toArray()) : O(A(d), m).toArray();
|
|
135
125
|
})(), this.matrix = e.matrix ? (() => {
|
|
136
126
|
const d = new S.Matrix4().fromArray(e.matrix);
|
|
137
127
|
return d.premultiply(i.workUtil.transform), d.elements;
|
|
@@ -150,11 +140,11 @@ class ri {
|
|
|
150
140
|
}
|
|
151
141
|
get centerPosition() {
|
|
152
142
|
const i = L(this);
|
|
153
|
-
return
|
|
143
|
+
return ee(...Array.isArray(i) ? i : [i]);
|
|
154
144
|
}
|
|
155
145
|
get currentConfig() {
|
|
156
146
|
var r, n;
|
|
157
|
-
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];
|
|
158
148
|
return (n = t != null ? t : i) != null ? n : {};
|
|
159
149
|
}
|
|
160
150
|
get currentVisible() {
|
|
@@ -173,7 +163,7 @@ class ri {
|
|
|
173
163
|
* @description 找到标签
|
|
174
164
|
*/
|
|
175
165
|
find(i) {
|
|
176
|
-
return
|
|
166
|
+
return U(this, null, function* () {
|
|
177
167
|
var r;
|
|
178
168
|
const e = this.fiveState;
|
|
179
169
|
if (!this.fiveState)
|
|
@@ -181,23 +171,23 @@ class ri {
|
|
|
181
171
|
const t = (r = i == null ? void 0 : i.targetMode) != null ? r : this.five.state.mode;
|
|
182
172
|
if (t === "Panorama") {
|
|
183
173
|
const n = e == null ? void 0 : e.panoIndex;
|
|
184
|
-
if (
|
|
174
|
+
if (R(n))
|
|
185
175
|
return;
|
|
186
176
|
const l = this.workUtil.getObserverPosition(n), o = this.centerPosition.clone().sub(l).normalize();
|
|
187
177
|
this.five.setState(p({
|
|
188
178
|
mode: "Panorama",
|
|
189
179
|
workCode: this.workUtil.workCode,
|
|
190
180
|
panoIndex: n
|
|
191
|
-
},
|
|
181
|
+
}, ne(o))), yield this.five.ready();
|
|
192
182
|
} else
|
|
193
|
-
t === "Mapview" && (yield
|
|
183
|
+
t === "Mapview" && (yield se(this.five, this.centerPosition, i == null ? void 0 : i.pointConfig));
|
|
194
184
|
});
|
|
195
185
|
}
|
|
196
186
|
/**
|
|
197
187
|
* @description 闪烁
|
|
198
188
|
*/
|
|
199
189
|
blink(i) {
|
|
200
|
-
return
|
|
190
|
+
return U(this, null, function* () {
|
|
201
191
|
var o, s;
|
|
202
192
|
const e = (o = this.enabled) != null ? o : !0, t = (s = this.state) == null ? void 0 : s.visible, r = e && t;
|
|
203
193
|
r === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.plugin.render(), yield de(0), this.dom && (this.dom.style.visibility = "hidden"), this.contentDom && (this.contentDom.style.visibility = "hidden"));
|
|
@@ -208,7 +198,7 @@ class ri {
|
|
|
208
198
|
})();
|
|
209
199
|
if (!n.length)
|
|
210
200
|
return;
|
|
211
|
-
yield (r ?
|
|
201
|
+
yield (r ? ie : te)(n, p({
|
|
212
202
|
begin: () => {
|
|
213
203
|
r === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
|
|
214
204
|
},
|
|
@@ -297,7 +287,7 @@ class ri {
|
|
|
297
287
|
}
|
|
298
288
|
getConfig(i, e) {
|
|
299
289
|
var l, o, s;
|
|
300
|
-
const t =
|
|
290
|
+
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];
|
|
301
291
|
return (s = n != null ? n : t) != null ? s : {};
|
|
302
292
|
}
|
|
303
293
|
getDistance(i, e = 3) {
|
|
@@ -309,7 +299,7 @@ class ri {
|
|
|
309
299
|
return !1;
|
|
310
300
|
const e = p(p({}, this.five.getCurrentState()), i);
|
|
311
301
|
let t = this.cache.getVisible(this, e);
|
|
312
|
-
return
|
|
302
|
+
return R(t) && (t = this.computeVisible(e).value, this.cache.setVisible(this, e, t)), t;
|
|
313
303
|
}
|
|
314
304
|
getUnfoldedByPanoIndex(i) {
|
|
315
305
|
if (!this.currentVisible)
|
|
@@ -386,7 +376,7 @@ class ri {
|
|
|
386
376
|
if (h === !1)
|
|
387
377
|
return p({ value: !1, checkedList: n, reason: "followModelVisibility check failed" }, v);
|
|
388
378
|
}
|
|
389
|
-
if (
|
|
379
|
+
if (T(r) && s.visiblePanoIndex !== void 0 && s.visiblePanoIndex !== "all" && t !== void 0) {
|
|
390
380
|
if (n.push("visiblePanoIndex"), Array.isArray(s.visiblePanoIndex) && !s.visiblePanoIndex.includes(t))
|
|
391
381
|
return {
|
|
392
382
|
value: !1,
|
|
@@ -402,7 +392,7 @@ class ri {
|
|
|
402
392
|
}
|
|
403
393
|
if (s.visibleDistance !== void 0 && (n.push("visibleDistance"), s.visibleDistance !== "unLimited")) {
|
|
404
394
|
const h = this.getDistance(e, 1);
|
|
405
|
-
if (
|
|
395
|
+
if (C(h, s.visibleDistance) === !1)
|
|
406
396
|
return {
|
|
407
397
|
value: !1,
|
|
408
398
|
checkedList: n,
|
|
@@ -440,9 +430,9 @@ class ri {
|
|
|
440
430
|
if (n || (n = (o = (l = this.fiveState) == null ? void 0 : l.mode) != null ? o : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(n))
|
|
441
431
|
return n.includes(e);
|
|
442
432
|
if (n === "ModelLike")
|
|
443
|
-
return
|
|
433
|
+
return P(e);
|
|
444
434
|
if (n === "PanoramaLike")
|
|
445
|
-
return !
|
|
435
|
+
return !T(e);
|
|
446
436
|
if (n === "all")
|
|
447
437
|
return !0;
|
|
448
438
|
if (typeof n == "string")
|
|
@@ -451,8 +441,8 @@ class ri {
|
|
|
451
441
|
if ((() => {
|
|
452
442
|
var l;
|
|
453
443
|
const n = t();
|
|
454
|
-
if (
|
|
455
|
-
if (
|
|
444
|
+
if (E((l = this.fiveState) == null ? void 0 : l.panoIndex) && i.entryFromModel) {
|
|
445
|
+
if (P(e) && n ? this.entryFromModel = !1 : this.entryFromModel = !0, P(e))
|
|
456
446
|
return !0;
|
|
457
447
|
} else
|
|
458
448
|
this.entryFromModel = !1;
|
|
@@ -468,7 +458,7 @@ class ri {
|
|
|
468
458
|
/** 通过射线检测标签可用性 */
|
|
469
459
|
computeVisibleByIntersect(i) {
|
|
470
460
|
var s, a, c, g;
|
|
471
|
-
const e = z(z((s = this.getConfig().visibleConfig) != null ? s : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r =
|
|
461
|
+
const e = z(z((s = this.getConfig().visibleConfig) != null ? s : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r = T(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
|
|
472
462
|
if (r === void 0)
|
|
473
463
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
474
464
|
const n = ae(
|
|
@@ -482,19 +472,19 @@ class ri {
|
|
|
482
472
|
for (const d of n) {
|
|
483
473
|
const m = new S.Vector3().subVectors(d, r).normalize();
|
|
484
474
|
let h;
|
|
485
|
-
|
|
486
|
-
const [v] = this.fiveUtil.model.intersectRaycaster(
|
|
475
|
+
k.set(r, m);
|
|
476
|
+
const [v] = this.fiveUtil.model.intersectRaycaster(k);
|
|
487
477
|
h = v == null ? void 0 : v.distance;
|
|
488
|
-
const
|
|
478
|
+
const x = (() => {
|
|
489
479
|
if (!V(this))
|
|
490
480
|
return;
|
|
491
481
|
const q = this.plugin.tags.filter(V).map((X) => {
|
|
492
482
|
var F;
|
|
493
483
|
return (F = X.model) == null ? void 0 : F.object;
|
|
494
|
-
}).filter(
|
|
484
|
+
}).filter(E), [Q] = k.intersectObjects(q, !0);
|
|
495
485
|
return Q;
|
|
496
486
|
})(), J = r.distanceTo(d), W = (a = e.distanceAccuracy) != null ? a : 0.01;
|
|
497
|
-
h = Math.min(h != null ? h : 1 / 0, (c =
|
|
487
|
+
h = Math.min(h != null ? h : 1 / 0, (c = x == null ? void 0 : x.distance) != null ? c : 1 / 0), h + W >= J ? l++ : o++;
|
|
498
488
|
const H = (g = e.needPassed) != null ? g : 1;
|
|
499
489
|
if (l >= H)
|
|
500
490
|
return { value: !0 };
|
|
@@ -536,12 +526,14 @@ class ri {
|
|
|
536
526
|
return !1;
|
|
537
527
|
if (e.keep === "unfolded")
|
|
538
528
|
return !0;
|
|
539
|
-
if (e.unfoldDistance &&
|
|
529
|
+
if (e.unfoldDistance && C(this.getDistance({ panoIndex: i }), e.unfoldDistance) === !1)
|
|
540
530
|
return !1;
|
|
541
531
|
}
|
|
542
532
|
}
|
|
543
533
|
computeUnfoldedByCamera() {
|
|
544
534
|
var e;
|
|
535
|
+
if (this.entryFromModel && P(this.five.state.mode))
|
|
536
|
+
return !1;
|
|
545
537
|
const i = this.getConfig().unfoldedConfig;
|
|
546
538
|
if (i) {
|
|
547
539
|
if (typeof i == "function")
|
|
@@ -554,7 +546,7 @@ class ri {
|
|
|
554
546
|
return;
|
|
555
547
|
if (i.autoUnfold.strategy === "ScreenPostion") {
|
|
556
548
|
const t = this.computeTagProject();
|
|
557
|
-
if (t &&
|
|
549
|
+
if (t && C(t.x, i.autoUnfold.autoUnfoldProjectX) === !1)
|
|
558
550
|
return !1;
|
|
559
551
|
}
|
|
560
552
|
if (i.autoUnfold.strategy === "MinimumDistance") {
|
|
@@ -567,9 +559,9 @@ class ri {
|
|
|
567
559
|
}).map((o) => ({ tag: o, id: o.id, tagConfig: o.getConfig().unfoldedConfig })).filter(({ tagConfig: o }) => {
|
|
568
560
|
var s, a;
|
|
569
561
|
return !(typeof o == "function" || o.keep || o.autoUnfold === !1 || ((s = o.autoUnfold) == null ? void 0 : s.enable) === !1 || ((a = o.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
|
|
570
|
-
}).map((o) =>
|
|
562
|
+
}).map((o) => I(p({}, o), { distance: o.tag.getDistance() })).filter(({ distance: o, tagConfig: s }) => {
|
|
571
563
|
const a = s.autoUnfold.distance;
|
|
572
|
-
return !(a &&
|
|
564
|
+
return !(a && C(o, a) === !1);
|
|
573
565
|
}).sort((o, s) => o.distance - s.distance).findIndex((o) => o.id === this.id);
|
|
574
566
|
if (n === -1 || n <= ((e = i.autoUnfold.maxNumber) != null ? e : 1) - 1 === !1)
|
|
575
567
|
return !1;
|
|
@@ -607,7 +599,7 @@ class ri {
|
|
|
607
599
|
return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
|
|
608
600
|
if (!this.enabled)
|
|
609
601
|
return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
|
|
610
|
-
const i =
|
|
602
|
+
const i = I(p({}, this.computeVisible()), {
|
|
611
603
|
tagInstance: this
|
|
612
604
|
});
|
|
613
605
|
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 };
|
|
@@ -622,5 +614,5 @@ class ri {
|
|
|
622
614
|
}
|
|
623
615
|
}
|
|
624
616
|
export {
|
|
625
|
-
|
|
617
|
+
_e as BaseTag
|
|
626
618
|
};
|