@realsee/dnalogel 3.41.2 → 3.41.4
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 +6 -0
- package/dist/CruisePlugin/BaseController.d.ts +0 -2
- package/dist/CurrentPanoImagePlugin/Controller.d.ts +1 -0
- package/dist/base/BasePlugin.d.ts +2 -0
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +3921 -3904
- package/dist/index.umd.js +48 -48
- package/dist/shared-utils/Utils/FiveUtil.d.ts +1 -0
- package/dist/shared-utils/five/FiveDomEvents.d.ts +1 -0
- package/dist/shared-utils/five/getFiveModel.d.ts +2 -0
- package/libs/AreaMakerPlugin/Controller.js +6 -4
- package/libs/AreaMakerPlugin/index.js +5 -3
- package/libs/AreaMakerPlugin/utils/Item.js +2 -2
- package/libs/CSS3DRenderPlugin/Controller.js +3 -2
- package/libs/CSS3DRenderPlugin/index.js +6 -5
- package/libs/CruisePlugin/BaseController.d.ts +0 -2
- package/libs/CruisePlugin/BaseController.js +36 -36
- package/libs/CruisePlugin/Move.js +5 -4
- package/libs/CruisePlugin/Work.js +5 -4
- package/libs/CruisePlugin/index.js +9 -8
- package/libs/CurrentPanoImagePlugin/Controller.d.ts +1 -0
- package/libs/CurrentPanoImagePlugin/Controller.js +13 -11
- package/libs/CurrentPanoImagePlugin/index.js +6 -4
- package/libs/GuideLinePlugin/Controller.js +7 -6
- package/libs/GuideLinePlugin/GuideLineItem.js +5 -4
- package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -3
- package/libs/GuideLinePlugin/index.js +9 -8
- package/libs/ModelMakerPlugin/Controller.js +5 -3
- package/libs/ModelMakerPlugin/index.js +5 -3
- package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +7 -6
- package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
- package/libs/ModelTVVideoPlugin/index.js +3 -2
- package/libs/Object3DHelperPlugin/Controller.js +16 -14
- package/libs/Object3DHelperPlugin/index.js +8 -6
- package/libs/PanoCompassPlugin/Controller.js +5 -3
- package/libs/PanoCompassPlugin/index.js +6 -4
- package/libs/PanoDoorLabelPlugin/BaseController.js +9 -7
- package/libs/PanoDoorLabelPlugin/Controller.js +5 -3
- package/libs/PanoDoorLabelPlugin/index.js +6 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +4 -3
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +35 -34
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +50 -49
- package/libs/PanoMeasurePlugin/Controller/index.js +5 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +4 -3
- package/libs/PanoMeasurePlugin/index.js +16 -14
- package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/controller/TagCache.js +11 -9
- package/libs/PanoTagPlugin/controller/TagComputer.js +12 -10
- package/libs/PanoTagPlugin/controller/TagRender.js +5 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +5 -3
- package/libs/PanoTagPlugin/controller/index.js +8 -6
- package/libs/PanoTagPlugin/index.js +14 -12
- package/libs/PanoVideoPlugin/Controller.js +5 -3
- package/libs/PanoVideoPlugin/index.js +8 -6
- package/libs/PipelinePlugin/Controller.js +25 -23
- package/libs/PipelinePlugin/index.js +6 -4
- package/libs/base/BasePlugin.d.ts +2 -0
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +14 -11
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -3
- package/libs/floorplan/ModelFloorplanPlugin/index.js +6 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +5 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +6 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +5 -3
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +6 -4
- package/libs/index.js +128 -127
- package/libs/shared-utils/Utils/FiveUtil.d.ts +1 -0
- package/libs/shared-utils/Utils/FiveUtil.js +11 -7
- package/libs/shared-utils/five/FiveDomEvents.d.ts +1 -0
- package/libs/shared-utils/five/FiveDomEvents.js +46 -42
- package/libs/shared-utils/five/fiveModelLoad.js +26 -17
- package/libs/shared-utils/five/getFiveModel.d.ts +2 -0
- package/libs/shared-utils/five/getFiveModel.js +7 -0
- package/libs/shared-utils/five/getPosition.js +24 -23
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.js +10 -9
- package/libs/shared-utils/three/PointSelector.js +11 -11
- package/libs/shared-utils/three/getIntersect.js +19 -18
- package/package.json +1 -1
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +0 -2
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +0 -31
|
@@ -5,6 +5,7 @@ export declare class FiveUtil extends BaseUtil {
|
|
|
5
5
|
workUtil: WorkUtil;
|
|
6
6
|
get version(): string;
|
|
7
7
|
get majorVersion(): number;
|
|
8
|
+
get model(): import("@realsee/five").Model;
|
|
8
9
|
constructor(five: Five);
|
|
9
10
|
moveToPano(panoNumber: number, movePanoOptions: Parameters<Five['moveToPano']>[1]): Promise<void>;
|
|
10
11
|
}
|
|
@@ -86,6 +86,7 @@ export declare class FiveDomEvents {
|
|
|
86
86
|
private get haveDragEventObject();
|
|
87
87
|
private boundObject;
|
|
88
88
|
private config;
|
|
89
|
+
private get model();
|
|
89
90
|
constructor(five: Five, config?: EventHandlerConfig);
|
|
90
91
|
/**
|
|
91
92
|
* @description: added 时自动绑定事件,removed时自动解绑事件,也就是说只有物体在场景中的时候才会触发事件
|
|
@@ -39,9 +39,11 @@ import { AreaMakerItem as D } from "./utils/Item.js";
|
|
|
39
39
|
import "../base/BasePlugin.js";
|
|
40
40
|
import "../shared-utils/Subscribe.js";
|
|
41
41
|
import "../shared-utils/url/absoluteUrl.js";
|
|
42
|
-
import "../shared-utils/Utils/
|
|
42
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
43
43
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
44
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
44
45
|
import "../shared-utils/five/transformPosition.js";
|
|
46
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
45
47
|
import "../shared-utils/positionToVector3.js";
|
|
46
48
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
47
49
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -65,7 +67,7 @@ import "../vendor/svelte/internal/index.js";
|
|
|
65
67
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
66
68
|
import "../shared-utils/math/planimetry.js";
|
|
67
69
|
import "../shared-utils/dom/resizeObserver.js";
|
|
68
|
-
class
|
|
70
|
+
class mt extends k {
|
|
69
71
|
/** AreaMakerPlugin
|
|
70
72
|
* @param `five` `<Five>` Five 实例
|
|
71
73
|
* @param `params` `<PluginType.Params> | <undefined>` 插件初始化参数
|
|
@@ -135,7 +137,7 @@ class lt extends k {
|
|
|
135
137
|
const e = i.reduce((n, l) => {
|
|
136
138
|
const v = n.intersects[0].distance, b = l.intersects[0].distance;
|
|
137
139
|
return v < b ? n : l;
|
|
138
|
-
}), s = this.
|
|
140
|
+
}), s = this.fiveUtil.model.intersectRaycaster(t)[0];
|
|
139
141
|
if (this.config.modelDepthTest && s && s.distance < e.intersects[0].distance)
|
|
140
142
|
return;
|
|
141
143
|
if (this.hooks.emit("wantsTap", {
|
|
@@ -340,5 +342,5 @@ class lt extends k {
|
|
|
340
342
|
}
|
|
341
343
|
}
|
|
342
344
|
export {
|
|
343
|
-
|
|
345
|
+
mt as Controller
|
|
344
346
|
};
|
|
@@ -22,9 +22,11 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
|
22
22
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
23
|
import "animejs";
|
|
24
24
|
import "../shared-utils/url/absoluteUrl.js";
|
|
25
|
-
import "../shared-utils/Utils/
|
|
25
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
26
26
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
27
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
27
28
|
import "../shared-utils/five/transformPosition.js";
|
|
29
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
28
30
|
import "../shared-utils/equal.js";
|
|
29
31
|
import "../shared-utils/isTruelyObject.js";
|
|
30
32
|
import "./utils/Item.js";
|
|
@@ -37,7 +39,7 @@ import "../vendor/svelte/internal/index.js";
|
|
|
37
39
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
38
40
|
import "../shared-utils/math/planimetry.js";
|
|
39
41
|
import "../shared-utils/dom/resizeObserver.js";
|
|
40
|
-
const
|
|
42
|
+
const S = (r, o) => new t(r, o);
|
|
41
43
|
export {
|
|
42
|
-
|
|
44
|
+
S as AreaMakerPlugin
|
|
43
45
|
};
|
|
@@ -160,7 +160,7 @@ class it {
|
|
|
160
160
|
i(this, "checkVisible", () => {
|
|
161
161
|
if (!this.plugin.state.visible)
|
|
162
162
|
return { result: !1, msg: "插件不可见" };
|
|
163
|
-
const t = this.plugin.
|
|
163
|
+
const t = this.plugin.fiveUtil.model.shownFloor;
|
|
164
164
|
return t === null || t === this.floorIndex ? { result: !0, msg: "" } : { result: !1, msg: `模型高亮楼层不符合展示条件, 当前高亮楼层为:${t}` };
|
|
165
165
|
});
|
|
166
166
|
/** 更新标注标签 */
|
|
@@ -192,7 +192,7 @@ class it {
|
|
|
192
192
|
return { result: !1, msg: "处于容器 resize 动画中" };
|
|
193
193
|
const t = this.plugin.five, s = new a.Raycaster(), o = t.camera.position.clone();
|
|
194
194
|
s.set(o.clone(), this.tagPosition.clone().sub(o).normalize());
|
|
195
|
-
const [r] =
|
|
195
|
+
const [r] = this.plugin.fiveUtil.model.intersectRaycaster(s), l = this.tagPosition.distanceTo(t.camera.position);
|
|
196
196
|
if (r && r.distance + 0.1 < l)
|
|
197
197
|
return { result: !1, msg: "标注标签被 Five 模型遮挡" };
|
|
198
198
|
const h = this.tagNDCPosition;
|
|
@@ -33,8 +33,9 @@ import "../shared-utils/three/centerPoint.js";
|
|
|
33
33
|
import "../shared-utils/three/getObjectVisible.js";
|
|
34
34
|
import "./utils/three/CSS3DScene.js";
|
|
35
35
|
import "./utils/three/CSS3DGroup.js";
|
|
36
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
36
37
|
const b = "v2.0.1", E = `CSS3DRenderPlugin@${b}`;
|
|
37
|
-
class
|
|
38
|
+
class g extends j {
|
|
38
39
|
constructor(e) {
|
|
39
40
|
super();
|
|
40
41
|
n(this, "five");
|
|
@@ -147,5 +148,5 @@ class Z extends j {
|
|
|
147
148
|
}
|
|
148
149
|
export {
|
|
149
150
|
E as PLUGIN_NAME,
|
|
150
|
-
|
|
151
|
+
g as default
|
|
151
152
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import o from "./Controller.js";
|
|
2
|
-
import { CSS3DRender as
|
|
2
|
+
import { CSS3DRender as v } from "./utils/three/CSS3DRender.js";
|
|
3
3
|
import "./utils/generateBehindFiveElement.js";
|
|
4
4
|
import "hammerjs";
|
|
5
5
|
import "three";
|
|
@@ -7,6 +7,7 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
7
7
|
import "animejs";
|
|
8
8
|
import "../shared-utils/url/absoluteUrl.js";
|
|
9
9
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
10
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
10
11
|
import "../shared-utils/positionToVector3.js";
|
|
11
12
|
import "./utils/three/CSS3DRenderer.js";
|
|
12
13
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -21,9 +22,9 @@ import "../shared-utils/three/centerPoint.js";
|
|
|
21
22
|
import "../shared-utils/three/getObjectVisible.js";
|
|
22
23
|
import "./utils/three/CSS3DScene.js";
|
|
23
24
|
import "./utils/three/CSS3DGroup.js";
|
|
24
|
-
const
|
|
25
|
+
const j = (r) => new o(r);
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
v as CSS3DRender,
|
|
28
|
+
j as CSS3DRenderPlugin,
|
|
29
|
+
j as default
|
|
29
30
|
};
|
|
@@ -4,11 +4,9 @@ import type { GuideLinePluginExportType } from '../GuideLinePlugin';
|
|
|
4
4
|
import * as BasePlugin from '../base/BasePlugin';
|
|
5
5
|
import type { PluginState, EventMap, MoveEffect } from './typing';
|
|
6
6
|
import type { PartialDeep } from 'type-fest';
|
|
7
|
-
import { FiveUtil } from '../shared-utils/Utils/FiveUtil';
|
|
8
7
|
export declare const pluginFlag: (name: string) => string;
|
|
9
8
|
export default abstract class CruiseController<PluginData, Config = unknown> extends BasePlugin.Controller<PluginState, EventMap> {
|
|
10
9
|
state: PluginState;
|
|
11
|
-
protected fiveUtil: FiveUtil;
|
|
12
10
|
protected data?: PluginData & {
|
|
13
11
|
id: string | number;
|
|
14
12
|
};
|
|
@@ -10,26 +10,25 @@ var p = (a, s, e) => s in a ? c(a, s, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
return a;
|
|
11
11
|
};
|
|
12
12
|
var d = (a, s, e) => (p(a, typeof s != "symbol" ? s + "" : s, e), e);
|
|
13
|
-
var u = (a, s, e) => new Promise((
|
|
13
|
+
var u = (a, s, e) => new Promise((t, i) => {
|
|
14
14
|
var r = (h) => {
|
|
15
15
|
try {
|
|
16
16
|
n(e.next(h));
|
|
17
17
|
} catch (o) {
|
|
18
|
-
|
|
18
|
+
i(o);
|
|
19
19
|
}
|
|
20
20
|
}, b = (h) => {
|
|
21
21
|
try {
|
|
22
22
|
n(e.throw(h));
|
|
23
23
|
} catch (o) {
|
|
24
|
-
|
|
24
|
+
i(o);
|
|
25
25
|
}
|
|
26
|
-
}, n = (h) => h.done ?
|
|
26
|
+
}, n = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(r, b);
|
|
27
27
|
n((e = e.apply(a, s)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Controller as y } from "../base/BasePlugin.js";
|
|
30
30
|
import { equal as L } from "../shared-utils/equal.js";
|
|
31
31
|
import { objectAssignDeepExports as C } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
32
|
-
import { FiveUtil as P } from "../shared-utils/Utils/FiveUtil.js";
|
|
33
32
|
import "../shared-utils/Subscribe.js";
|
|
34
33
|
import "hammerjs";
|
|
35
34
|
import "three";
|
|
@@ -51,14 +50,16 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
|
51
50
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
52
51
|
import "animejs";
|
|
53
52
|
import "../shared-utils/url/absoluteUrl.js";
|
|
54
|
-
import "../shared-utils/Utils/
|
|
53
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
55
54
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
55
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
56
56
|
import "../shared-utils/five/transformPosition.js";
|
|
57
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
57
58
|
import "../shared-utils/isTruelyObject.js";
|
|
58
59
|
const m = "CruisePlugin", l = `${m}`, ee = (a) => `${l}--${a}`;
|
|
59
|
-
class
|
|
60
|
-
constructor(e,
|
|
61
|
-
super(e,
|
|
60
|
+
class te extends y {
|
|
61
|
+
constructor(e, t) {
|
|
62
|
+
super(e, t);
|
|
62
63
|
d(this, "state", {
|
|
63
64
|
visible: !0,
|
|
64
65
|
enabled: !0,
|
|
@@ -66,7 +67,6 @@ class ie extends y {
|
|
|
66
67
|
playing: !1,
|
|
67
68
|
speed: 1
|
|
68
69
|
});
|
|
69
|
-
d(this, "fiveUtil", new P(this.five));
|
|
70
70
|
d(this, "data");
|
|
71
71
|
d(this, "config");
|
|
72
72
|
d(this, "pauseDataMap", /* @__PURE__ */ new Map());
|
|
@@ -85,7 +85,7 @@ class ie extends y {
|
|
|
85
85
|
d(this, "disableErrorLog", () => {
|
|
86
86
|
console.error(`${l} is disabled`);
|
|
87
87
|
});
|
|
88
|
-
this.config =
|
|
88
|
+
this.config = t, Object.assign(window, { [`__${m}_DEBUG__`]: this });
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
91
|
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
@@ -136,50 +136,50 @@ class ie extends y {
|
|
|
136
136
|
/**
|
|
137
137
|
* @description Set state
|
|
138
138
|
*/
|
|
139
|
-
setState(e,
|
|
139
|
+
setState(e, t) {
|
|
140
140
|
var r;
|
|
141
141
|
if (this.state.disposed)
|
|
142
142
|
return this.disposedErrorLog();
|
|
143
143
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
144
144
|
return this.disableErrorLog();
|
|
145
|
-
const
|
|
146
|
-
this.state = C({}, this.state, e), e.disposed !== void 0 && e.disposed !==
|
|
145
|
+
const i = g({}, this.state);
|
|
146
|
+
this.state = C({}, this.state, e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed), L(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (r = t == null ? void 0 : t.userAction) != null ? r : !0 });
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
149
|
* @description Clear pause data
|
|
150
150
|
*/
|
|
151
151
|
clearPauseData() {
|
|
152
|
-
var e,
|
|
152
|
+
var e, t;
|
|
153
153
|
if ((e = this.data) != null && e.id)
|
|
154
|
-
return this.pauseDataMap.delete((
|
|
154
|
+
return this.pauseDataMap.delete((t = this.data) == null ? void 0 : t.id);
|
|
155
155
|
}
|
|
156
|
-
changePlayState(e,
|
|
156
|
+
changePlayState(e, t) {
|
|
157
157
|
this.actionIfStateIsEnabled(
|
|
158
158
|
() => {
|
|
159
|
-
var
|
|
160
|
-
return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (
|
|
159
|
+
var i;
|
|
160
|
+
return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (i = t == null ? void 0 : t.userAction) != null ? i : !0 });
|
|
161
161
|
}
|
|
162
|
-
), e ? this.handlePlay(
|
|
162
|
+
), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
|
|
163
163
|
}
|
|
164
|
-
handleEnable(e,
|
|
165
|
-
var
|
|
166
|
-
e ? ((
|
|
164
|
+
handleEnable(e, t = !0) {
|
|
165
|
+
var i, r;
|
|
166
|
+
e ? ((i = this.GuideLine) == null || i.enable(), this.hooks.emit("enable", { userAction: t })) : ((r = this.GuideLine) == null || r.disable(), this.changePlayState(!1, { userAction: t }), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
|
|
167
167
|
}
|
|
168
|
-
handleVisible(e,
|
|
169
|
-
var
|
|
170
|
-
e ? ((
|
|
168
|
+
handleVisible(e, t = !0) {
|
|
169
|
+
var i, r;
|
|
170
|
+
e ? ((i = this.GuideLine) == null || i.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : ((r = this.GuideLine) == null || r.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
173
|
* @description: listen interupted by five gesture
|
|
174
174
|
*/
|
|
175
175
|
addInterruptListener(e) {
|
|
176
|
-
const
|
|
176
|
+
const t = () => {
|
|
177
177
|
this.privateState.modeChanging || e();
|
|
178
|
-
},
|
|
179
|
-
r !== "mouseMove" && (e(), this.five.off("gesture",
|
|
178
|
+
}, i = (r) => {
|
|
179
|
+
r !== "mouseMove" && (e(), this.five.off("gesture", i));
|
|
180
180
|
};
|
|
181
|
-
return this.five.on("gesture",
|
|
182
|
-
this.five.off("gesture",
|
|
181
|
+
return this.five.on("gesture", i), this.five.once("wantsChangeMode", t), () => {
|
|
182
|
+
this.five.off("gesture", i), this.five.off("wantsChangeMode", t);
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
185
|
/**
|
|
@@ -203,8 +203,8 @@ class ie extends y {
|
|
|
203
203
|
* @description Set pause data
|
|
204
204
|
*/
|
|
205
205
|
setPauseData() {
|
|
206
|
-
var
|
|
207
|
-
const e = (
|
|
206
|
+
var t;
|
|
207
|
+
const e = (t = this.data) == null ? void 0 : t.id;
|
|
208
208
|
if (e)
|
|
209
209
|
return this.pauseDataMap.set(e, {
|
|
210
210
|
fiveState: this.five.getCurrentState(),
|
|
@@ -225,13 +225,13 @@ class ie extends y {
|
|
|
225
225
|
/**
|
|
226
226
|
* @description Action function if plugin is enable
|
|
227
227
|
*/
|
|
228
|
-
actionIfStateIsEnabled(e,
|
|
228
|
+
actionIfStateIsEnabled(e, t) {
|
|
229
229
|
if (this.state.enabled)
|
|
230
230
|
return e();
|
|
231
|
-
|
|
231
|
+
t != null && t.warnLog && this.disableWarnLog();
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
export {
|
|
235
|
-
|
|
235
|
+
te as default,
|
|
236
236
|
ee as pluginFlag
|
|
237
237
|
};
|
|
@@ -42,12 +42,13 @@ import M from "../GuideLinePlugin/index.js";
|
|
|
42
42
|
import "../base/BasePlugin.js";
|
|
43
43
|
import "../shared-utils/Subscribe.js";
|
|
44
44
|
import "../shared-utils/url/absoluteUrl.js";
|
|
45
|
-
import "../shared-utils/Utils/
|
|
45
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
46
46
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
47
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
47
48
|
import "../shared-utils/five/transformPosition.js";
|
|
49
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
48
50
|
import "../shared-utils/equal.js";
|
|
49
51
|
import "../shared-utils/isTruelyObject.js";
|
|
50
|
-
import "../shared-utils/Utils/FiveUtil.js";
|
|
51
52
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
52
53
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
53
54
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -207,7 +208,7 @@ import "./utils/coordinatesAngle.js";
|
|
|
207
208
|
import "./utils/coordinatesToVector.js";
|
|
208
209
|
import "./utils/safeCall.js";
|
|
209
210
|
import "../shared-utils/five/fiveLoaded.js";
|
|
210
|
-
class
|
|
211
|
+
class io extends z {
|
|
211
212
|
constructor(t, r) {
|
|
212
213
|
var h;
|
|
213
214
|
super(t, r);
|
|
@@ -315,5 +316,5 @@ class to extends z {
|
|
|
315
316
|
}
|
|
316
317
|
}
|
|
317
318
|
export {
|
|
318
|
-
|
|
319
|
+
io as default
|
|
319
320
|
};
|
|
@@ -47,9 +47,11 @@ import "../base/BasePluginWithData.js";
|
|
|
47
47
|
import "../base/BasePlugin.js";
|
|
48
48
|
import "../shared-utils/Subscribe.js";
|
|
49
49
|
import "../shared-utils/url/absoluteUrl.js";
|
|
50
|
-
import "../shared-utils/Utils/
|
|
50
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
51
51
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
52
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
52
53
|
import "../shared-utils/five/transformPosition.js";
|
|
54
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
53
55
|
import "../shared-utils/equal.js";
|
|
54
56
|
import "../shared-utils/isTruelyObject.js";
|
|
55
57
|
import "../GuideLinePlugin/GuideLineItem/index.js";
|
|
@@ -203,11 +205,10 @@ import "../shared-utils/five/changeMode.js";
|
|
|
203
205
|
import "../shared-utils/nearlyEqual.js";
|
|
204
206
|
import "./Move.js";
|
|
205
207
|
import "./utils/getFiveStateOnCurve.js";
|
|
206
|
-
import "../shared-utils/Utils/FiveUtil.js";
|
|
207
208
|
import "../shared-utils/formatRad.js";
|
|
208
209
|
import "./Work.js";
|
|
209
210
|
import "./utils/coordinatesToVector.js";
|
|
210
|
-
class
|
|
211
|
+
class or extends G {
|
|
211
212
|
constructor(t, e) {
|
|
212
213
|
super(t, e);
|
|
213
214
|
k(this, "state", {
|
|
@@ -595,5 +596,5 @@ class rr extends G {
|
|
|
595
596
|
}
|
|
596
597
|
}
|
|
597
598
|
export {
|
|
598
|
-
|
|
599
|
+
or as default
|
|
599
600
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { typing as
|
|
1
|
+
import { typing as jt } from "./typing/index.js";
|
|
2
2
|
import t from "./Work.js";
|
|
3
3
|
import i from "./Move.js";
|
|
4
4
|
import "../GuideLinePlugin/index.js";
|
|
@@ -26,9 +26,11 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
|
26
26
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
27
27
|
import "animejs";
|
|
28
28
|
import "../shared-utils/url/absoluteUrl.js";
|
|
29
|
-
import "../shared-utils/Utils/
|
|
29
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
30
30
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
31
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
31
32
|
import "../shared-utils/five/transformPosition.js";
|
|
33
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
32
34
|
import "../shared-utils/equal.js";
|
|
33
35
|
import "../shared-utils/isTruelyObject.js";
|
|
34
36
|
import "../GuideLinePlugin/GuideLineItem/index.js";
|
|
@@ -177,15 +179,14 @@ import "../shared-utils/five/fiveLoaded.js";
|
|
|
177
179
|
import "../shared-utils/vectorToCoordinate.js";
|
|
178
180
|
import "../shared-utils/formatRad.js";
|
|
179
181
|
import "./BaseController.js";
|
|
180
|
-
import "../shared-utils/Utils/FiveUtil.js";
|
|
181
182
|
import "./utils/getFiveStateOnCurve.js";
|
|
182
|
-
const
|
|
183
|
+
const Tt = (o, r) => new t(o, r), Wt = (o, r) => new i(o, r);
|
|
183
184
|
export {
|
|
184
|
-
|
|
185
|
+
Tt as CruisePlugin,
|
|
185
186
|
t as CruisePluginController,
|
|
186
|
-
|
|
187
|
+
jt as CruisePluginTypes,
|
|
187
188
|
i as MoveController,
|
|
188
|
-
|
|
189
|
+
Wt as MovePlugin,
|
|
189
190
|
t as WalkController,
|
|
190
|
-
|
|
191
|
+
Tt as default
|
|
191
192
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
var g = Object.defineProperty;
|
|
2
2
|
var m = Object.getOwnPropertySymbols;
|
|
3
3
|
var v = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var c = (r, o, e) => o in r ? g(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, l = (r, o) => {
|
|
5
5
|
for (var e in o || (o = {}))
|
|
6
|
-
v.call(o, e) &&
|
|
6
|
+
v.call(o, e) && c(r, e, o[e]);
|
|
7
7
|
if (m)
|
|
8
8
|
for (var e of m(o))
|
|
9
|
-
b.call(o, e) &&
|
|
9
|
+
b.call(o, e) && c(r, e, o[e]);
|
|
10
10
|
return r;
|
|
11
11
|
};
|
|
12
|
-
var n = (r, o, e) => (
|
|
12
|
+
var n = (r, o, e) => (c(r, typeof o != "symbol" ? o + "" : o, e), e);
|
|
13
13
|
var f = (r, o, e) => new Promise((i, t) => {
|
|
14
14
|
var s = (d) => {
|
|
15
15
|
try {
|
|
16
16
|
u(e.next(d));
|
|
17
|
-
} catch (
|
|
18
|
-
t(
|
|
17
|
+
} catch (p) {
|
|
18
|
+
t(p);
|
|
19
19
|
}
|
|
20
20
|
}, a = (d) => {
|
|
21
21
|
try {
|
|
22
22
|
u(e.throw(d));
|
|
23
|
-
} catch (
|
|
24
|
-
t(
|
|
23
|
+
} catch (p) {
|
|
24
|
+
t(p);
|
|
25
25
|
}
|
|
26
26
|
}, u = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, a);
|
|
27
27
|
u((e = e.apply(r, o)).next());
|
|
@@ -38,9 +38,11 @@ import { equal as w } from "../shared-utils/equal.js";
|
|
|
38
38
|
import { loadTexture as P } from "../shared-utils/three/loadTexture.js";
|
|
39
39
|
import "../shared-utils/Subscribe.js";
|
|
40
40
|
import "../shared-utils/url/absoluteUrl.js";
|
|
41
|
-
import "../shared-utils/Utils/
|
|
41
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
42
42
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
43
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
43
44
|
import "../shared-utils/five/transformPosition.js";
|
|
45
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
44
46
|
import "../shared-utils/animationFrame/index.js";
|
|
45
47
|
import "../shared-utils/positionToVector3.js";
|
|
46
48
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -56,7 +58,7 @@ import "../shared-utils/three/getObjectVisible.js";
|
|
|
56
58
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
57
59
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
58
60
|
import "../shared-utils/isTruelyObject.js";
|
|
59
|
-
class
|
|
61
|
+
class ie extends M {
|
|
60
62
|
constructor(e, i) {
|
|
61
63
|
super(e);
|
|
62
64
|
// ==================== public properties ====================
|
|
@@ -283,5 +285,5 @@ class Z extends M {
|
|
|
283
285
|
}
|
|
284
286
|
}
|
|
285
287
|
export {
|
|
286
|
-
|
|
288
|
+
ie as CurrentPanoImagePluginController
|
|
287
289
|
};
|
|
@@ -21,16 +21,18 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
|
21
21
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
22
|
import "animejs";
|
|
23
23
|
import "../shared-utils/url/absoluteUrl.js";
|
|
24
|
-
import "../shared-utils/Utils/
|
|
24
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
25
25
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
26
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
26
27
|
import "../shared-utils/five/transformPosition.js";
|
|
28
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
27
29
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
28
30
|
import "../shared-utils/animationFrame/index.js";
|
|
29
31
|
import "../shared-utils/equal.js";
|
|
30
32
|
import "../shared-utils/isTruelyObject.js";
|
|
31
33
|
import "../shared-utils/three/loadTexture.js";
|
|
32
|
-
const
|
|
34
|
+
const J = (r, o) => new t(r, o);
|
|
33
35
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
J as CurrentPanoImagePlugin,
|
|
37
|
+
J as default
|
|
36
38
|
};
|
|
@@ -42,9 +42,11 @@ import { uuid as U } from "../shared-utils/uuid.js";
|
|
|
42
42
|
import "../base/BasePlugin.js";
|
|
43
43
|
import "../shared-utils/Subscribe.js";
|
|
44
44
|
import "../shared-utils/url/absoluteUrl.js";
|
|
45
|
-
import "../shared-utils/Utils/
|
|
45
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
46
46
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
47
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
47
48
|
import "../shared-utils/five/transformPosition.js";
|
|
49
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
48
50
|
import "../shared-utils/isTruelyObject.js";
|
|
49
51
|
import "./GuideLineModeItem/index.js";
|
|
50
52
|
import "../shared-utils/log.js";
|
|
@@ -196,7 +198,6 @@ import "../shared-utils/five/changeMode.js";
|
|
|
196
198
|
import "../shared-utils/nearlyEqual.js";
|
|
197
199
|
import "../CruisePlugin/Move.js";
|
|
198
200
|
import "../CruisePlugin/BaseController.js";
|
|
199
|
-
import "../shared-utils/Utils/FiveUtil.js";
|
|
200
201
|
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
201
202
|
import "../shared-utils/vectorToCoordinate.js";
|
|
202
203
|
import "../shared-utils/formatRad.js";
|
|
@@ -206,8 +207,8 @@ import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
|
206
207
|
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
207
208
|
import "../CruisePlugin/utils/safeCall.js";
|
|
208
209
|
import "../shared-utils/five/fiveLoaded.js";
|
|
209
|
-
const b = "GuideLinePlugin", g = `${b}`,
|
|
210
|
-
class
|
|
210
|
+
const b = "GuideLinePlugin", g = `${b}`, pe = (s) => `${g}--${s}`;
|
|
211
|
+
class se extends N {
|
|
211
212
|
constructor(t, i) {
|
|
212
213
|
super(t, i);
|
|
213
214
|
h(this, "name", b);
|
|
@@ -349,6 +350,6 @@ class pe extends N {
|
|
|
349
350
|
}
|
|
350
351
|
}
|
|
351
352
|
export {
|
|
352
|
-
|
|
353
|
-
|
|
353
|
+
se as default,
|
|
354
|
+
pe as pluginFlag
|
|
354
355
|
};
|
|
@@ -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 ko } from "./GuideLineItem/index.js";
|
|
9
9
|
import "three";
|
|
10
10
|
import "./utils/createLineGeometry.js";
|
|
11
11
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -62,9 +62,11 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
|
62
62
|
import "../PanoTagPlugin/controller/TagCache.js";
|
|
63
63
|
import "../base/BasePlugin.js";
|
|
64
64
|
import "../shared-utils/url/absoluteUrl.js";
|
|
65
|
-
import "../shared-utils/Utils/
|
|
65
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
66
66
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
67
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
67
68
|
import "../shared-utils/five/transformPosition.js";
|
|
69
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
68
70
|
import "../vendor/svelte/store/index.js";
|
|
69
71
|
import "../vendor/svelte/internal/index.js";
|
|
70
72
|
import "../shared-utils/device.js";
|
|
@@ -167,7 +169,6 @@ import "../shared-utils/nearlyEqual.js";
|
|
|
167
169
|
import "../CruisePlugin/BaseController.js";
|
|
168
170
|
import "../shared-utils/equal.js";
|
|
169
171
|
import "../shared-utils/isTruelyObject.js";
|
|
170
|
-
import "../shared-utils/Utils/FiveUtil.js";
|
|
171
172
|
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
172
173
|
import "../shared-utils/vectorToCoordinate.js";
|
|
173
174
|
import "../shared-utils/formatRad.js";
|
|
@@ -179,5 +180,5 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
|
179
180
|
import "../CruisePlugin/utils/safeCall.js";
|
|
180
181
|
import "../shared-utils/five/fiveLoaded.js";
|
|
181
182
|
export {
|
|
182
|
-
|
|
183
|
+
ko as GuideLineItem
|
|
183
184
|
};
|
|
@@ -14,7 +14,7 @@ import "../PanoTagPlugin/controller/index.js";
|
|
|
14
14
|
import "./Components/Tag.js";
|
|
15
15
|
import "./utils/index.js";
|
|
16
16
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
17
|
-
import { GuideLineModeItem as
|
|
17
|
+
import { GuideLineModeItem as mm } from "./GuideLineModeItem/index.js";
|
|
18
18
|
import "../vendor/polyline-normals/index.js";
|
|
19
19
|
import "../vendor/polyline-miter-util/index.js";
|
|
20
20
|
import "../vendor/gl-vec2/add.js";
|
|
@@ -59,9 +59,11 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
|
59
59
|
import "../PanoTagPlugin/controller/TagCache.js";
|
|
60
60
|
import "../base/BasePlugin.js";
|
|
61
61
|
import "../shared-utils/url/absoluteUrl.js";
|
|
62
|
-
import "../shared-utils/Utils/
|
|
62
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
63
63
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
64
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
64
65
|
import "../shared-utils/five/transformPosition.js";
|
|
66
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
65
67
|
import "../vendor/svelte/store/index.js";
|
|
66
68
|
import "../vendor/svelte/internal/index.js";
|
|
67
69
|
import "../shared-utils/device.js";
|
|
@@ -159,5 +161,5 @@ import "@realsee/five/gltf-loader";
|
|
|
159
161
|
import "../PanoTagPlugin/utils/DebugUtil.js";
|
|
160
162
|
import "../CruisePlugin/utils/sleep.js";
|
|
161
163
|
export {
|
|
162
|
-
|
|
164
|
+
mm as GuideLineModeItem
|
|
163
165
|
};
|