@realsee/dnalogel 3.78.1-alpha.0 → 3.79.0-alpha.0
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 +19 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +10 -8
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +2 -3
- package/dist/index.cjs.js +96 -101
- package/dist/index.js +14483 -16495
- package/dist/index.umd.js +89 -94
- package/libs/CruisePlugin/Move.js +14 -27
- package/libs/CruisePlugin/Work.js +61 -74
- package/libs/CruisePlugin/index.js +18 -31
- package/libs/GuideLinePlugin/Controller.js +18 -31
- package/libs/GuideLinePlugin/GuideLineItem.js +16 -29
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +51 -48
- package/libs/GuideLinePlugin/GuideLineModeItem.js +16 -27
- package/libs/GuideLinePlugin/index.js +18 -31
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +87 -77
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +189 -135
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopup.js +460 -432
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +38 -126
- package/libs/PanoTagPlugin/Components/Tag/index.js +292 -393
- package/libs/PanoTagPlugin/Components/TagContainer.js +125 -135
- package/libs/PanoTagPlugin/Components/TagItem.js +275 -281
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +61 -74
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +95 -108
- package/libs/PanoTagPlugin/controller/index.js +41 -54
- package/libs/PanoTagPlugin/index.js +23 -36
- package/libs/PanoTagPlugin/tag.config.js +31 -1
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +10 -8
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +2 -3
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +169 -182
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/url/replace-static-prefix.js +12 -7
- package/libs/vendor/svelte/internal/index.js +235 -225
- package/package.json +2 -2
- package/dist/PanoTagPlugin/Components/Common/Arrow.svelte.d.ts +0 -1
- package/dist/PanoTagPlugin/Components/Common/Line/Polyline.svelte.d.ts +0 -1
- package/dist/PanoTagPlugin/Components/Common/Line/Straight.svelte.d.ts +0 -1
- package/dist/PanoTagPlugin/Components/Common/Text/FlyMText.svelte.d.ts +0 -1
- package/dist/PanoTagPlugin/Components/Common/Text/FlyText.svelte.d.ts +0 -1
- package/dist/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.svelte.d.ts +0 -1
- package/dist/PanoTagPlugin/Components/Tag/ImageTextTag.svelte.d.ts +0 -1
- package/dist/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.svelte.d.ts +0 -1
- package/dist/PanoTagPlugin/Components/Tag/TextTag/TextTag.svelte.d.ts +0 -1
- package/dist/PanoTagPlugin/Components/Tag/TextTag/index.svelte.d.ts +0 -1
- package/dist/PanoTagPlugin/utils/constants.d.ts +0 -3
- package/dist/PanoTagPlugin/utils/doUtil.d.ts +0 -1
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +0 -198
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.svelte.d.ts +0 -1
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +0 -258
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.svelte.d.ts +0 -1
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +0 -358
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.svelte.d.ts +0 -1
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +0 -259
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.svelte.d.ts +0 -1
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +0 -216
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.svelte.d.ts +0 -1
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +0 -219
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.svelte.d.ts +0 -1
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +0 -134
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.svelte.d.ts +0 -1
|
@@ -5,7 +5,7 @@ import "../shared-utils/five/changeMode.js";
|
|
|
5
5
|
import "../CruisePlugin/Move.js";
|
|
6
6
|
import "../CruisePlugin/Work.js";
|
|
7
7
|
import "../shared-utils/Subscribe.js";
|
|
8
|
-
import { GuideLineItem as
|
|
8
|
+
import { GuideLineItem as up } from "./GuideLineItem/index.js";
|
|
9
9
|
import "three";
|
|
10
10
|
import "./utils/createLineGeometry.js";
|
|
11
11
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -83,6 +83,8 @@ import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
|
83
83
|
import "../Sculpt/utils/three/rayOnLine.js";
|
|
84
84
|
import "../shared-utils/five/mode.js";
|
|
85
85
|
import "../shared-utils/url/defaultUrls.js";
|
|
86
|
+
import "../shared-utils/url/replace-static-prefix.js";
|
|
87
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
86
88
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
87
89
|
import "../shared-utils/animationFrame/index.js";
|
|
88
90
|
import "../shared-utils/three/loadTexture.js";
|
|
@@ -137,25 +139,23 @@ import "../shared-utils/three/GLTFLoader.js";
|
|
|
137
139
|
import "@realsee/five/gltf-loader";
|
|
138
140
|
import "../PanoTagPlugin/utils/planeNormal.js";
|
|
139
141
|
import "../PanoTagPlugin/Components/Tag/index.js";
|
|
140
|
-
import "../PanoTagPlugin/Components/Tag/
|
|
141
|
-
import "../PanoTagPlugin/
|
|
142
|
-
import "../PanoTagPlugin/Components/Common/
|
|
142
|
+
import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
|
|
143
|
+
import "../PanoTagPlugin/utils/px2rem.js";
|
|
144
|
+
import "../PanoTagPlugin/Components/Common/Shadow.js";
|
|
143
145
|
import "../vendor/svelte/transition/index.js";
|
|
144
146
|
import "../vendor/svelte/easing/index.js";
|
|
145
|
-
import "../PanoTagPlugin/Components/Common/Shadow.js";
|
|
146
|
-
import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
|
|
147
|
-
import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
|
|
148
|
-
import "../PanoTagPlugin/utils/search.js";
|
|
149
|
-
import "../PanoTagPlugin/utils/constants.js";
|
|
150
|
-
import "../PanoTagPlugin/Components/Common/Arrow.js";
|
|
151
|
-
import "../PanoTagPlugin/utils/doUtil.js";
|
|
152
147
|
import "../shared-utils/svelte/resizeObserver.js";
|
|
153
148
|
import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
154
|
-
import "../PanoTagPlugin/Components/Tag/
|
|
149
|
+
import "../PanoTagPlugin/Components/Tag/Assets/marketingIcon.js";
|
|
150
|
+
import "../PanoTagPlugin/utils/noTypecheck.js";
|
|
151
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
|
|
152
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
153
|
+
import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
|
|
155
154
|
import "../PanoTagPlugin/Components/Common/Text/MText.js";
|
|
156
|
-
import "../PanoTagPlugin/
|
|
157
|
-
import "../PanoTagPlugin/
|
|
158
|
-
import "../PanoTagPlugin/
|
|
155
|
+
import "../PanoTagPlugin/Components/Common/Audio.js";
|
|
156
|
+
import "../PanoTagPlugin/utils/audio/SharedAudio.js";
|
|
157
|
+
import "../PanoTagPlugin/utils/audio/AudioDiagnostics.js";
|
|
158
|
+
import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
|
|
159
159
|
import "../PanoTagPlugin/Components/Common/Media.js";
|
|
160
160
|
import "../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
|
|
161
161
|
import "../vendor/svelte-carousel/src/components/Dots/Dots.js";
|
|
@@ -188,17 +188,6 @@ import "../vendor/svelte-carousel/src/utils/lazy.js";
|
|
|
188
188
|
import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
189
189
|
import "../vendor/svelte-carousel/src/utils/interval.js";
|
|
190
190
|
import "../PanoTagPlugin/Components/Common/MediaItem.js";
|
|
191
|
-
import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
|
|
192
|
-
import "../PanoTagPlugin/Components/Tag/Assets/marketingIcon.js";
|
|
193
|
-
import "../PanoTagPlugin/utils/noTypecheck.js";
|
|
194
|
-
import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
|
|
195
|
-
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
|
|
196
|
-
import "../PanoTagPlugin/Components/Common/Audio.js";
|
|
197
|
-
import "../PanoTagPlugin/utils/audio/SharedAudio.js";
|
|
198
|
-
import "../PanoTagPlugin/utils/audio/AudioDiagnostics.js";
|
|
199
|
-
import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
|
|
200
|
-
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
201
|
-
import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
|
|
202
191
|
import "../PanoTagPlugin/Components/Tag/LinkTag.js";
|
|
203
192
|
import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
|
|
204
193
|
import "../PanoTagPlugin/utils/getImageInfo.js";
|
|
@@ -336,13 +325,11 @@ import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
|
336
325
|
import "./index.js";
|
|
337
326
|
import "./Controller.js";
|
|
338
327
|
import "../base/BasePluginWithData.js";
|
|
339
|
-
import "../shared-utils/url/replace-static-prefix.js";
|
|
340
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
341
328
|
import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
342
329
|
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
343
330
|
import "../CruisePlugin/utils/safeCall.js";
|
|
344
331
|
import "../CruisePlugin/utils/sleep.js";
|
|
345
332
|
import "../shared-utils/five/fiveLoaded.js";
|
|
346
333
|
export {
|
|
347
|
-
|
|
334
|
+
up as GuideLineItem
|
|
348
335
|
};
|
|
@@ -28,17 +28,18 @@ import { blink as O } from "../../shared-utils/three/blink.js";
|
|
|
28
28
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
29
29
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
30
30
|
import "../../vendor/earcut/src/earcut.js";
|
|
31
|
-
import { GUIDELINE_DEFAULT_ARROW_TEXTURE as
|
|
32
|
-
import {
|
|
31
|
+
import { GUIDELINE_DEFAULT_ARROW_TEXTURE as U } from "../../shared-utils/url/defaultUrls.js";
|
|
32
|
+
import { replaceStaticPrefix as E } from "../../shared-utils/url/replace-static-prefix.js";
|
|
33
|
+
import { BetterTween as A } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
33
34
|
import "../../shared-utils/five/FivePuppet.js";
|
|
34
|
-
import { loadTexture as
|
|
35
|
+
import { loadTexture as G } from "../../shared-utils/three/loadTexture.js";
|
|
35
36
|
import k from "../../PanoTagPlugin/controller/index.js";
|
|
36
|
-
import
|
|
37
|
-
import { filterAdjacentDistinct as
|
|
38
|
-
import { objectAssignDeepExports as
|
|
39
|
-
import { createPath as
|
|
40
|
-
import { getGlobalResponsiveFontSize as
|
|
41
|
-
const
|
|
37
|
+
import B from "../Components/Tag.js";
|
|
38
|
+
import { filterAdjacentDistinct as R } from "../utils/index.js";
|
|
39
|
+
import { objectAssignDeepExports as I } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
40
|
+
import { createPath as W } from "../utils/createPath.js";
|
|
41
|
+
import { getGlobalResponsiveFontSize as z, getCurrentFontSize as N } from "../../shared-utils/fontSize.js";
|
|
42
|
+
const D = (
|
|
42
43
|
/* glsl */
|
|
43
44
|
`
|
|
44
45
|
varying vec2 vUv;
|
|
@@ -51,7 +52,7 @@ const N = (
|
|
|
51
52
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
52
53
|
}
|
|
53
54
|
`
|
|
54
|
-
),
|
|
55
|
+
), H = (
|
|
55
56
|
/* glsl */
|
|
56
57
|
`
|
|
57
58
|
precision highp float;
|
|
@@ -170,7 +171,7 @@ const N = (
|
|
|
170
171
|
}
|
|
171
172
|
`
|
|
172
173
|
);
|
|
173
|
-
class
|
|
174
|
+
class j {
|
|
174
175
|
constructor(e, t) {
|
|
175
176
|
i(this, "name", "");
|
|
176
177
|
i(this, "startTagContainer");
|
|
@@ -206,15 +207,15 @@ class H {
|
|
|
206
207
|
i(this, "plugin");
|
|
207
208
|
i(this, "textureHasLoaded", !1);
|
|
208
209
|
i(this, "disposed", !1);
|
|
209
|
-
i(this, "flowAnime", new
|
|
210
|
+
i(this, "flowAnime", new A({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
|
|
210
211
|
/** 缓存 panoGroup 中每个点距离起点的长度 */
|
|
211
212
|
i(this, "cacheLengths", []);
|
|
212
213
|
/** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
213
214
|
i(this, "heightOffset", 0);
|
|
214
215
|
/** 响应式字体大小管理器 */
|
|
215
|
-
i(this, "fontSizeManager",
|
|
216
|
+
i(this, "fontSizeManager", z());
|
|
216
217
|
/** 当前字体大小 */
|
|
217
|
-
i(this, "currentFontSize",
|
|
218
|
+
i(this, "currentFontSize", N());
|
|
218
219
|
/** 字体大小订阅取消函数 */
|
|
219
220
|
i(this, "unsubscribeFontSize", null);
|
|
220
221
|
i(this, "dispose", () => {
|
|
@@ -254,8 +255,8 @@ class H {
|
|
|
254
255
|
var a, o;
|
|
255
256
|
this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.group.name = "GuideLineModeItem";
|
|
256
257
|
const s = new n.BufferGeometry(), r = new n.ShaderMaterial({
|
|
257
|
-
vertexShader:
|
|
258
|
-
fragmentShader:
|
|
258
|
+
vertexShader: D,
|
|
259
|
+
fragmentShader: H,
|
|
259
260
|
transparent: !0,
|
|
260
261
|
uniforms: {
|
|
261
262
|
map: { value: null },
|
|
@@ -323,37 +324,39 @@ class H {
|
|
|
323
324
|
return this.logError("disposed");
|
|
324
325
|
if (!this.five.work)
|
|
325
326
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
326
|
-
const s =
|
|
327
|
+
const s = R(e);
|
|
327
328
|
if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
|
|
328
|
-
const
|
|
329
|
-
this.skippedPositions =
|
|
329
|
+
const d = t.skipPanoGroup ? s.map((m) => this.plugin.workUtil.getObserverStandingPosition(m)).filter(_) : null;
|
|
330
|
+
this.skippedPositions = d;
|
|
330
331
|
}
|
|
331
|
-
const r = this.five.getCurrentState(), a = this.plugin.workUtil.workCode || r.workCode, o = this.five.works.getWork(a), h =
|
|
332
|
+
const r = this.five.getCurrentState(), a = this.plugin.workUtil.workCode || r.workCode, o = this.five.works.getWork(a), h = W(s, o, t);
|
|
332
333
|
this.path = h, this.setGeometryByPath(h, t);
|
|
333
334
|
}
|
|
334
335
|
/** 通过路径设置线条形状 */
|
|
335
336
|
setGeometryByPath(e, t) {
|
|
336
|
-
var
|
|
337
|
+
var g, f, u;
|
|
337
338
|
if (this.disposed)
|
|
338
339
|
return this.logError("disposed");
|
|
339
|
-
const s = (
|
|
340
|
+
const s = (g = t == null ? void 0 : t.scale) != null ? g : this.scale, r = (f = t == null ? void 0 : t.width) != null ? f : this.width, a = (u = t == null ? void 0 : t.unit_length) != null ? u : this.unitLength;
|
|
340
341
|
this.scale = s, this.width = r, this.unitLength = a;
|
|
341
|
-
const { geometry: o, maxV: h, curvePath:
|
|
342
|
+
const { geometry: o, maxV: h, curvePath: d, curvePoints: m } = x({
|
|
342
343
|
path: e,
|
|
343
344
|
width: r * s,
|
|
344
345
|
unitLength: a * s,
|
|
345
346
|
skipPositions: this.skippedPositions
|
|
346
347
|
});
|
|
347
|
-
this._curvePath =
|
|
348
|
+
this._curvePath = d, this._curvePoints = m, this.mesh.geometry.copy(o), this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxV.value = h, this.five.needsRender = !0, this.path = e, this.geometryStyle = p(p({}, this.geometryStyle), t);
|
|
348
349
|
}
|
|
349
350
|
/** 设置线条材质 */
|
|
350
351
|
setMartial(e) {
|
|
351
|
-
var
|
|
352
|
+
var r, a, o, h, d;
|
|
352
353
|
if (this.disposed)
|
|
353
354
|
return this.logError("disposed");
|
|
354
|
-
this.setDefaultVisible((
|
|
355
|
-
const t =
|
|
356
|
-
this.
|
|
355
|
+
this.setDefaultVisible((r = e == null ? void 0 : e.visible) != null ? r : !1), this.setColor((a = e == null ? void 0 : e.color) != null ? a : "#ffffff"), this.setOpacity((o = e == null ? void 0 : e.opacity) != null ? o : 0.5);
|
|
356
|
+
const t = E(this.plugin.staticPrefix, U);
|
|
357
|
+
this.setTextureUrl((d = (h = e == null ? void 0 : e.texture) == null ? void 0 : h.url) != null ? d : t), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity), (e == null ? void 0 : e.border_width) !== void 0 && this.setBorderWidth(e.border_width), (e == null ? void 0 : e.background_clip) !== void 0 && this.setBackgroundClip(e.background_clip);
|
|
358
|
+
const s = p(p({}, this.materialStyle), e);
|
|
359
|
+
this.materialStyle = s;
|
|
357
360
|
}
|
|
358
361
|
/** 设置模型状态 */
|
|
359
362
|
setMeshStyle(e) {
|
|
@@ -436,7 +439,7 @@ class H {
|
|
|
436
439
|
setTextureUrl(e) {
|
|
437
440
|
if (this.disposed)
|
|
438
441
|
return this.logError("disposed");
|
|
439
|
-
this.textureUrl = e,
|
|
442
|
+
this.textureUrl = e, G(e).then((t) => {
|
|
440
443
|
this.disposed || this.textureUrl === e && (t.wrapT = n.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
|
|
441
444
|
});
|
|
442
445
|
}
|
|
@@ -474,43 +477,43 @@ class H {
|
|
|
474
477
|
return this.disposed ? this.logError("disposed") : this.cacheLengths.length !== 0 ? this.cacheLengths[e] : (this.cacheLengths = this.getPanoGroupLengths(), this.cacheLengths[e]);
|
|
475
478
|
}
|
|
476
479
|
getPanoGroupLengths() {
|
|
477
|
-
var
|
|
480
|
+
var d, m, g, f;
|
|
478
481
|
if (!this.curvePoints || !this.curvePath)
|
|
479
482
|
return [];
|
|
480
|
-
const e = this.curvePoints.length, t = (m = (
|
|
483
|
+
const e = this.curvePoints.length, t = (m = (d = this.curvePath) == null ? void 0 : d.getLength()) != null ? m : 0, s = e - 1, r = t / s, a = (f = (g = this.curvePath) == null ? void 0 : g.getLengths(s)) != null ? f : [], o = [];
|
|
481
484
|
let h = 0;
|
|
482
|
-
for (let
|
|
483
|
-
const v = this.curvePoints[
|
|
485
|
+
for (let u = 0; u < e; u++) {
|
|
486
|
+
const v = this.curvePoints[u], c = this.plugin.workUtil.getObserverStandingPosition(h);
|
|
484
487
|
if (!c)
|
|
485
488
|
break;
|
|
486
|
-
c.clone().setY(0).distanceTo(v.clone().setY(0)) < r && (o.push(a[
|
|
489
|
+
c.clone().setY(0).distanceTo(v.clone().setY(0)) < r && (o.push(a[u]), h += 1);
|
|
487
490
|
}
|
|
488
491
|
return o;
|
|
489
492
|
}
|
|
490
493
|
setTag(e, t) {
|
|
491
|
-
var
|
|
494
|
+
var d, m;
|
|
492
495
|
const s = this.curvePath;
|
|
493
496
|
if (!(t != null && t.data))
|
|
494
497
|
return;
|
|
495
|
-
const r = e === "start" ? (
|
|
498
|
+
const r = e === "start" ? (d = this.startTagContainer) != null ? d : (() => (this.startTagContainer = { tag: null, plugin: new k(this.five, { containerZIndex: 10 }) }, this.startTagContainer))() : (m = this.endTagContainer) != null ? m : (() => (this.endTagContainer = { tag: null, plugin: new k(this.five, { containerZIndex: 10 }) }, this.endTagContainer))(), o = I({}, {
|
|
496
499
|
contentType: "Custom",
|
|
497
500
|
stickType: "2DPoint",
|
|
498
501
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
|
|
499
502
|
style: { point: { enabled: !1 } },
|
|
500
503
|
data: {}
|
|
501
504
|
}, t);
|
|
502
|
-
r.tag = o,
|
|
505
|
+
r.tag = o, $(o) && (r.tag.element = (g) => {
|
|
503
506
|
var v, c;
|
|
504
507
|
(v = r.app) == null || v.$destroy();
|
|
505
|
-
const f = e === "start" ? C(p({}, o.data), { name: this.name, distance: Math.round((c = s == null ? void 0 : s.getLength()) != null ? c : 0), i18n: this.plugin.config.i18n }) : o.data,
|
|
506
|
-
return r.app =
|
|
508
|
+
const f = e === "start" ? C(p({}, o.data), { name: this.name, distance: Math.round((c = s == null ? void 0 : s.getLength()) != null ? c : 0), i18n: this.plugin.config.i18n }) : o.data, u = new B({ target: g, intro: !0, props: p({ fontSize: this.currentFontSize }, f) });
|
|
509
|
+
return r.app = u, () => u.$destroy();
|
|
507
510
|
}), r.plugin.load({ tagList: [r.tag] });
|
|
508
511
|
const h = this.meshStyle.translate;
|
|
509
512
|
if (h && o.position) {
|
|
510
|
-
const
|
|
511
|
-
|
|
512
|
-
const
|
|
513
|
-
r.plugin.changeTagById(r.tag.id, { position:
|
|
513
|
+
const g = new n.Vector3().fromArray(o.position), f = new n.Vector3().fromArray(h);
|
|
514
|
+
g.add(f), g.y += this.heightOffset;
|
|
515
|
+
const u = g.toArray();
|
|
516
|
+
r.plugin.changeTagById(r.tag.id, { position: u });
|
|
514
517
|
}
|
|
515
518
|
}
|
|
516
519
|
doShow() {
|
|
@@ -522,14 +525,14 @@ class H {
|
|
|
522
525
|
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.group), (e = this.startTagContainer) == null || e.plugin.hide(), (t = this.endTagContainer) == null || t.plugin.hide(), this.five.needsRender = !0;
|
|
523
526
|
}
|
|
524
527
|
}
|
|
525
|
-
function
|
|
528
|
+
function $(l) {
|
|
526
529
|
return l.contentType === "Custom";
|
|
527
530
|
}
|
|
528
|
-
const
|
|
531
|
+
const we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
529
532
|
__proto__: null,
|
|
530
|
-
GuideLineModeItem:
|
|
533
|
+
GuideLineModeItem: j
|
|
531
534
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
532
535
|
export {
|
|
533
|
-
|
|
534
|
-
|
|
536
|
+
j as GuideLineModeItem,
|
|
537
|
+
we as GuideLineModeItem$1
|
|
535
538
|
};
|
|
@@ -16,6 +16,7 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
16
16
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
17
17
|
import "../vendor/earcut/src/earcut.js";
|
|
18
18
|
import "../shared-utils/url/defaultUrls.js";
|
|
19
|
+
import "../shared-utils/url/replace-static-prefix.js";
|
|
19
20
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
20
21
|
import "../shared-utils/five/FivePuppet.js";
|
|
21
22
|
import "../shared-utils/three/loadTexture.js";
|
|
@@ -25,7 +26,7 @@ import "./utils/index.js";
|
|
|
25
26
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
26
27
|
import "./utils/createPath.js";
|
|
27
28
|
import "../shared-utils/fontSize.js";
|
|
28
|
-
import { GuideLineModeItem as
|
|
29
|
+
import { GuideLineModeItem as Ut } from "./GuideLineModeItem/index.js";
|
|
29
30
|
import "../vendor/polyline-normals/index.js";
|
|
30
31
|
import "../vendor/polyline-miter-util/index.js";
|
|
31
32
|
import "../vendor/gl-vec2/add.js";
|
|
@@ -86,6 +87,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
86
87
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
87
88
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
88
89
|
import "@realsee/five";
|
|
90
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
89
91
|
import "../shared-utils/animationFrame/index.js";
|
|
90
92
|
import "../PanoTagPlugin/utils/tag/tagCheck.js";
|
|
91
93
|
import "../PanoTagPlugin/utils/debounce.js";
|
|
@@ -136,25 +138,23 @@ import "../shared-utils/three/GLTFLoader.js";
|
|
|
136
138
|
import "@realsee/five/gltf-loader";
|
|
137
139
|
import "../PanoTagPlugin/utils/planeNormal.js";
|
|
138
140
|
import "../PanoTagPlugin/Components/Tag/index.js";
|
|
139
|
-
import "../PanoTagPlugin/Components/Tag/
|
|
140
|
-
import "../PanoTagPlugin/
|
|
141
|
-
import "../PanoTagPlugin/Components/Common/
|
|
141
|
+
import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
|
|
142
|
+
import "../PanoTagPlugin/utils/px2rem.js";
|
|
143
|
+
import "../PanoTagPlugin/Components/Common/Shadow.js";
|
|
142
144
|
import "../vendor/svelte/transition/index.js";
|
|
143
145
|
import "../vendor/svelte/easing/index.js";
|
|
144
|
-
import "../PanoTagPlugin/Components/Common/Shadow.js";
|
|
145
|
-
import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
|
|
146
|
-
import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
|
|
147
|
-
import "../PanoTagPlugin/utils/search.js";
|
|
148
|
-
import "../PanoTagPlugin/utils/constants.js";
|
|
149
|
-
import "../PanoTagPlugin/Components/Common/Arrow.js";
|
|
150
|
-
import "../PanoTagPlugin/utils/doUtil.js";
|
|
151
146
|
import "../shared-utils/svelte/resizeObserver.js";
|
|
152
147
|
import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
153
|
-
import "../PanoTagPlugin/Components/Tag/
|
|
148
|
+
import "../PanoTagPlugin/Components/Tag/Assets/marketingIcon.js";
|
|
149
|
+
import "../PanoTagPlugin/utils/noTypecheck.js";
|
|
150
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
|
|
151
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
152
|
+
import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
|
|
154
153
|
import "../PanoTagPlugin/Components/Common/Text/MText.js";
|
|
155
|
-
import "../PanoTagPlugin/
|
|
156
|
-
import "../PanoTagPlugin/
|
|
157
|
-
import "../PanoTagPlugin/
|
|
154
|
+
import "../PanoTagPlugin/Components/Common/Audio.js";
|
|
155
|
+
import "../PanoTagPlugin/utils/audio/SharedAudio.js";
|
|
156
|
+
import "../PanoTagPlugin/utils/audio/AudioDiagnostics.js";
|
|
157
|
+
import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
|
|
158
158
|
import "../PanoTagPlugin/Components/Common/Media.js";
|
|
159
159
|
import "../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
|
|
160
160
|
import "../vendor/svelte-carousel/src/components/Dots/Dots.js";
|
|
@@ -187,17 +187,6 @@ import "../vendor/svelte-carousel/src/utils/lazy.js";
|
|
|
187
187
|
import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
188
188
|
import "../vendor/svelte-carousel/src/utils/interval.js";
|
|
189
189
|
import "../PanoTagPlugin/Components/Common/MediaItem.js";
|
|
190
|
-
import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
|
|
191
|
-
import "../PanoTagPlugin/Components/Tag/Assets/marketingIcon.js";
|
|
192
|
-
import "../PanoTagPlugin/utils/noTypecheck.js";
|
|
193
|
-
import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
|
|
194
|
-
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
|
|
195
|
-
import "../PanoTagPlugin/Components/Common/Audio.js";
|
|
196
|
-
import "../PanoTagPlugin/utils/audio/SharedAudio.js";
|
|
197
|
-
import "../PanoTagPlugin/utils/audio/AudioDiagnostics.js";
|
|
198
|
-
import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
|
|
199
|
-
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
200
|
-
import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
|
|
201
190
|
import "../PanoTagPlugin/Components/Tag/LinkTag.js";
|
|
202
191
|
import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
|
|
203
192
|
import "../PanoTagPlugin/utils/getImageInfo.js";
|
|
@@ -324,5 +313,5 @@ import "../PanoTagPlugin/Components/Common/TagPopover/ShareIcon.js";
|
|
|
324
313
|
import "../PanoTagPlugin/utils/popoverContainer.js";
|
|
325
314
|
import "../shared-utils/px2rem.js";
|
|
326
315
|
export {
|
|
327
|
-
|
|
316
|
+
Ut as GuideLineModeItem
|
|
328
317
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t from "./Controller.js";
|
|
2
|
-
import { GuideLineItem$1 as
|
|
3
|
-
import { GuideLineModeItem$1 as
|
|
2
|
+
import { GuideLineItem$1 as ap } from "./GuideLineItem/index.js";
|
|
3
|
+
import { GuideLineModeItem$1 as Ip } from "./GuideLineModeItem/index.js";
|
|
4
4
|
import "../base/BasePluginWithData.js";
|
|
5
5
|
import "../base/BasePlugin.js";
|
|
6
6
|
import "../shared-utils/Subscribe.js";
|
|
@@ -147,25 +147,23 @@ import "../shared-utils/three/GLTFLoader.js";
|
|
|
147
147
|
import "@realsee/five/gltf-loader";
|
|
148
148
|
import "../PanoTagPlugin/utils/planeNormal.js";
|
|
149
149
|
import "../PanoTagPlugin/Components/Tag/index.js";
|
|
150
|
-
import "../PanoTagPlugin/Components/Tag/
|
|
151
|
-
import "../PanoTagPlugin/
|
|
152
|
-
import "../PanoTagPlugin/Components/Common/
|
|
150
|
+
import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
|
|
151
|
+
import "../PanoTagPlugin/utils/px2rem.js";
|
|
152
|
+
import "../PanoTagPlugin/Components/Common/Shadow.js";
|
|
153
153
|
import "../vendor/svelte/transition/index.js";
|
|
154
154
|
import "../vendor/svelte/easing/index.js";
|
|
155
|
-
import "../PanoTagPlugin/Components/Common/Shadow.js";
|
|
156
|
-
import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
|
|
157
|
-
import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
|
|
158
|
-
import "../PanoTagPlugin/utils/search.js";
|
|
159
|
-
import "../PanoTagPlugin/utils/constants.js";
|
|
160
|
-
import "../PanoTagPlugin/Components/Common/Arrow.js";
|
|
161
|
-
import "../PanoTagPlugin/utils/doUtil.js";
|
|
162
155
|
import "../shared-utils/svelte/resizeObserver.js";
|
|
163
156
|
import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
164
|
-
import "../PanoTagPlugin/Components/Tag/
|
|
157
|
+
import "../PanoTagPlugin/Components/Tag/Assets/marketingIcon.js";
|
|
158
|
+
import "../PanoTagPlugin/utils/noTypecheck.js";
|
|
159
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
|
|
160
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
161
|
+
import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
|
|
165
162
|
import "../PanoTagPlugin/Components/Common/Text/MText.js";
|
|
166
|
-
import "../PanoTagPlugin/
|
|
167
|
-
import "../PanoTagPlugin/
|
|
168
|
-
import "../PanoTagPlugin/
|
|
163
|
+
import "../PanoTagPlugin/Components/Common/Audio.js";
|
|
164
|
+
import "../PanoTagPlugin/utils/audio/SharedAudio.js";
|
|
165
|
+
import "../PanoTagPlugin/utils/audio/AudioDiagnostics.js";
|
|
166
|
+
import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
|
|
169
167
|
import "../PanoTagPlugin/Components/Common/Media.js";
|
|
170
168
|
import "../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
|
|
171
169
|
import "../vendor/svelte-carousel/src/components/Dots/Dots.js";
|
|
@@ -198,17 +196,6 @@ import "../vendor/svelte-carousel/src/utils/lazy.js";
|
|
|
198
196
|
import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
199
197
|
import "../vendor/svelte-carousel/src/utils/interval.js";
|
|
200
198
|
import "../PanoTagPlugin/Components/Common/MediaItem.js";
|
|
201
|
-
import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
|
|
202
|
-
import "../PanoTagPlugin/Components/Tag/Assets/marketingIcon.js";
|
|
203
|
-
import "../PanoTagPlugin/utils/noTypecheck.js";
|
|
204
|
-
import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
|
|
205
|
-
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
|
|
206
|
-
import "../PanoTagPlugin/Components/Common/Audio.js";
|
|
207
|
-
import "../PanoTagPlugin/utils/audio/SharedAudio.js";
|
|
208
|
-
import "../PanoTagPlugin/utils/audio/AudioDiagnostics.js";
|
|
209
|
-
import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
|
|
210
|
-
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
211
|
-
import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
|
|
212
199
|
import "../PanoTagPlugin/Components/Tag/LinkTag.js";
|
|
213
200
|
import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
|
|
214
201
|
import "../PanoTagPlugin/utils/getImageInfo.js";
|
|
@@ -343,10 +330,10 @@ import "../shared-utils/five/changeMode.js";
|
|
|
343
330
|
import "../shared-utils/nearlyEqual.js";
|
|
344
331
|
import "../CruisePlugin/Move.js";
|
|
345
332
|
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
346
|
-
const r = (i, o) => new t(i, o),
|
|
333
|
+
const r = (i, o) => new t(i, o), Lp = r;
|
|
347
334
|
export {
|
|
348
|
-
|
|
349
|
-
|
|
335
|
+
ap as GuideLineItem,
|
|
336
|
+
Ip as GuideLineModeItem,
|
|
350
337
|
r as GuideLinePlugin,
|
|
351
|
-
|
|
338
|
+
Lp as default
|
|
352
339
|
};
|