@realsee/dnalogel 3.52.3 → 3.53.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 +6 -0
- package/dist/index.cjs.js +40 -40
- package/dist/index.d.ts +1 -79
- package/dist/index.js +1605 -1567
- package/dist/index.umd.js +34 -34
- package/dist/shared-utils/exports.d.ts +2 -0
- package/dist/shared-utils/five/FivePuppet.d.ts +64 -0
- package/dist/shared-utils/index.d.ts +1 -0
- package/dist/shared-utils/math/planimetry.d.ts +1 -1
- package/libs/AreaMakerPlugin/Controller.js +14 -12
- package/libs/AreaMakerPlugin/index.js +4 -2
- package/libs/AreaMakerPlugin/utils/Item.js +4 -2
- package/libs/CSS3DRenderPlugin/Controller.js +4 -2
- package/libs/CSS3DRenderPlugin/index.js +7 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +4 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +4 -2
- package/libs/CruisePlugin/BaseController.js +6 -4
- package/libs/CruisePlugin/Move.js +4 -3
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +8 -7
- package/libs/CurrentPanoImagePlugin/Controller.js +4 -2
- package/libs/CurrentPanoImagePlugin/index.js +5 -3
- package/libs/GuideLinePlugin/Controller.js +6 -5
- package/libs/GuideLinePlugin/GuideLineItem.js +4 -3
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +4 -3
- package/libs/GuideLinePlugin/index.js +8 -7
- package/libs/ModelMakerPlugin/Controller.js +4 -2
- package/libs/ModelMakerPlugin/index.js +4 -2
- package/libs/ModelTVVideoPlugin/Plugin.js +5 -3
- package/libs/ModelTVVideoPlugin/index.js +4 -2
- package/libs/Object3DHelperPlugin/Controller.js +4 -2
- package/libs/Object3DHelperPlugin/index.js +7 -5
- package/libs/PanoCompassPlugin/Controller.js +3 -2
- package/libs/PanoCompassPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/BaseController.js +3 -2
- package/libs/PanoDoorLabelPlugin/Controller.js +3 -2
- package/libs/PanoDoorLabelPlugin/index.js +4 -3
- package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/area.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +2 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
- package/libs/PanoMeasurePlugin/index.js +14 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +4 -2
- package/libs/PanoRulerProPlugin/Controller.js +11 -10
- package/libs/PanoRulerProPlugin/RulerItems.js +3 -2
- package/libs/PanoRulerProPlugin/index.js +4 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +4 -3
- package/libs/PanoTagPlugin/Components/TagContainer.js +43 -42
- package/libs/PanoTagPlugin/Components/TagItem.js +4 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +4 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +4 -2
- package/libs/PanoTagPlugin/controller/index.js +7 -6
- package/libs/PanoTagPlugin/index.js +13 -12
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
- package/libs/PanoVideoPlugin/Controller.js +4 -2
- package/libs/PanoVideoPlugin/VideoMeshController.js +52 -50
- package/libs/PanoVideoPlugin/index.js +7 -5
- package/libs/PipelinePlugin/Controller.js +4 -2
- package/libs/PipelinePlugin/index.js +5 -3
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +4 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +4 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +20 -18
- package/libs/Sculpt/Meshes/Cylinder.js +6 -5
- package/libs/Sculpt/Meshes/Line.js +3 -2
- package/libs/Sculpt/Meshes/LineWithDots.js +3 -2
- package/libs/Sculpt/Meshes/Point.js +6 -5
- package/libs/Sculpt/Meshes/Polygon.js +11 -10
- package/libs/Sculpt/Meshes/Rectangle.js +4 -3
- package/libs/Sculpt/Objects/Line/Editor.js +7 -6
- package/libs/Sculpt/index.js +18 -17
- package/libs/Sculpt/utils/export.js +5 -5
- package/libs/Sculpt/utils/three/ColoredMesh.js +3 -2
- package/libs/base/BasePlugin.js +4 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +19 -17
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -3
- package/libs/floorplan/index.js +1 -0
- package/libs/index.d.ts +1 -79
- package/libs/index.js +156 -170
- package/libs/shared-utils/exports.d.ts +2 -0
- package/libs/shared-utils/exports.js +82 -0
- package/libs/shared-utils/five/FivePuppet.d.ts +64 -0
- package/libs/shared-utils/five/FivePuppet.js +47 -0
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/index.d.ts +1 -0
- package/libs/shared-utils/index.js +10 -78
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/math/planimetry.d.ts +1 -1
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Five } from '@realsee/five';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
/**
|
|
4
|
+
* @description 模拟 Five 行为的 canvas,与 Five 唯一区别是 scene 是空的
|
|
5
|
+
* @usecase
|
|
6
|
+
* 当需 five 的 canvas 上层有一些额外的 Dom 元素比如平面图时,希望在这些 Dom 元素上层再绘制一些三维物体,可以
|
|
7
|
+
* 使用 FivePuppet,将要渲染的物体加入到 FivePuppet 的 scene 中即可。甚至可以是原本在 five 中的物体,可以使
|
|
8
|
+
* 用 `.clone()` 将物体克隆一份然后加入到 FivePuppet 的 scene 中。
|
|
9
|
+
* @example react
|
|
10
|
+
```typescript
|
|
11
|
+
import { Util } from '@realsee/dnalogel'
|
|
12
|
+
|
|
13
|
+
function App() {
|
|
14
|
+
const fivePuppet = React.useRef<Util.FivePuppet>()
|
|
15
|
+
const five = unsafe__useFiveInstance()
|
|
16
|
+
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
fivePuppet.current = new Util.FivePuppet(five, { zIndex: 20 })
|
|
19
|
+
|
|
20
|
+
const object = new THREE.Mesh(new THREE.BoxGeometry(), new THREE.MeshBasicMaterial({ color: 0xff0000 }))
|
|
21
|
+
fivePuppet.current.scene.add(object)
|
|
22
|
+
|
|
23
|
+
return () => {
|
|
24
|
+
fivePuppet.current?.destory()
|
|
25
|
+
}
|
|
26
|
+
}, [five])
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
* @example javascript
|
|
30
|
+
```typescript
|
|
31
|
+
import { Util } from '@realsee/dnalogel'
|
|
32
|
+
|
|
33
|
+
const five = new Five({
|
|
34
|
+
plugins: [
|
|
35
|
+
[(five) => new Util.FivePuppet(five), 'fivePuppet']
|
|
36
|
+
],
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
const object = new THREE.Mesh(new THREE.BoxGeometry(), new THREE.MeshBasicMaterial({ color: 0xff0000 }))
|
|
40
|
+
five.plugins.fivePuppet.scene.add(object)
|
|
41
|
+
```
|
|
42
|
+
*/
|
|
43
|
+
export declare class FivePuppet {
|
|
44
|
+
scene: THREE.Scene;
|
|
45
|
+
private five;
|
|
46
|
+
private renderer;
|
|
47
|
+
private cancelRequestAnimationFrameId;
|
|
48
|
+
private camera;
|
|
49
|
+
private domInited;
|
|
50
|
+
private canvasWrapper?;
|
|
51
|
+
private params?;
|
|
52
|
+
private _rendererCache;
|
|
53
|
+
private _cameraCache;
|
|
54
|
+
constructor(five: Five, params?: {
|
|
55
|
+
/**
|
|
56
|
+
* @description canvas 的 zIndex
|
|
57
|
+
* @default 1
|
|
58
|
+
*/
|
|
59
|
+
zIndex: number;
|
|
60
|
+
});
|
|
61
|
+
animate: () => void;
|
|
62
|
+
stopAnimate: () => void;
|
|
63
|
+
destory: () => void;
|
|
64
|
+
}
|
|
@@ -111,6 +111,6 @@ export declare function getCenterPointOfPoints(points: Point[]): {
|
|
|
111
111
|
x: number;
|
|
112
112
|
y: number;
|
|
113
113
|
};
|
|
114
|
-
export declare function isIntersect(linePoints1: Point[], linePoints2: Point[]):
|
|
114
|
+
export declare function isIntersect(linePoints1: Point[], linePoints2: Point[]): 1 | 0;
|
|
115
115
|
export declare function getAreaSize(points: Point[]): number;
|
|
116
116
|
export declare function getAreaSizeWithoutLine(points: Point[]): number;
|
|
@@ -2,16 +2,16 @@ var M = Object.defineProperty, C = Object.defineProperties;
|
|
|
2
2
|
var S = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var f = Object.getOwnPropertySymbols;
|
|
4
4
|
var A = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var l = (h, n, t) => n in h ? M(h, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[n] = t, d = (h, n) => {
|
|
6
6
|
for (var t in n || (n = {}))
|
|
7
|
-
A.call(n, t) &&
|
|
7
|
+
A.call(n, t) && l(h, t, n[t]);
|
|
8
8
|
if (f)
|
|
9
9
|
for (var t of f(n))
|
|
10
|
-
_.call(n, t) &&
|
|
10
|
+
_.call(n, t) && l(h, t, n[t]);
|
|
11
11
|
return h;
|
|
12
12
|
}, u = (h, n) => C(h, S(n));
|
|
13
|
-
var a = (h, n, t) => (
|
|
14
|
-
var
|
|
13
|
+
var a = (h, n, t) => (l(h, typeof n != "symbol" ? n + "" : n, t), t);
|
|
14
|
+
var p = (h, n, t) => new Promise((i, e) => {
|
|
15
15
|
var o = (s) => {
|
|
16
16
|
try {
|
|
17
17
|
m(t.next(s));
|
|
@@ -38,6 +38,7 @@ import "../shared-utils/three/core/Sphere.js";
|
|
|
38
38
|
import "animejs";
|
|
39
39
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
40
40
|
import { equal as I } from "../shared-utils/equal.js";
|
|
41
|
+
import "../shared-utils/five/FivePuppet.js";
|
|
41
42
|
import { AreaMakerItem as D } from "./utils/Item.js";
|
|
42
43
|
import "../base/BasePlugin.js";
|
|
43
44
|
import "../shared-utils/Subscribe.js";
|
|
@@ -85,6 +86,7 @@ import "../shared-utils/five/getPosition.js";
|
|
|
85
86
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
86
87
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
87
88
|
import "../shared-utils/isTruelyObject.js";
|
|
89
|
+
import "@realsee/five";
|
|
88
90
|
import "../shared-utils/three/core/Object3D.js";
|
|
89
91
|
import "../shared-utils/three/core/LineSegments.js";
|
|
90
92
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
@@ -93,7 +95,7 @@ import "../components/AreaLabel/LabelItem.js";
|
|
|
93
95
|
import "../vendor/svelte/internal/index.js";
|
|
94
96
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
95
97
|
import "../shared-utils/math/planimetry.js";
|
|
96
|
-
class
|
|
98
|
+
class Ht extends k {
|
|
97
99
|
/** AreaMakerPlugin
|
|
98
100
|
* @param `five` `<Five>` Five 实例
|
|
99
101
|
* @param `params` `<PluginType.Params> | <undefined>` 插件初始化参数
|
|
@@ -193,7 +195,7 @@ class Ut extends k {
|
|
|
193
195
|
}
|
|
194
196
|
/** 加载数据,重复调用会使用新数据覆盖旧数据 */
|
|
195
197
|
load(t) {
|
|
196
|
-
return
|
|
198
|
+
return p(this, null, function* () {
|
|
197
199
|
const i = this.data;
|
|
198
200
|
this.data = this.formatData(t), this.hooks.emit("dataChange", this.data, i), this.modelGroup.remove(...this.modelGroup.children), this.itemMap.forEach((e) => e.unmount()), this.itemMap.clear(), this.childrenMountedState = !1, this.checkMsg.childrenMountedState = "", this.data.list.forEach((e) => {
|
|
199
201
|
const o = new D(this, e);
|
|
@@ -232,7 +234,7 @@ class Ut extends k {
|
|
|
232
234
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
233
235
|
*/
|
|
234
236
|
show(t) {
|
|
235
|
-
return
|
|
237
|
+
return p(this, null, function* () {
|
|
236
238
|
if (this.state.visible)
|
|
237
239
|
return Promise.resolve();
|
|
238
240
|
if (this.disposed)
|
|
@@ -246,7 +248,7 @@ class Ut extends k {
|
|
|
246
248
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
247
249
|
*/
|
|
248
250
|
hide(t) {
|
|
249
|
-
return
|
|
251
|
+
return p(this, null, function* () {
|
|
250
252
|
if (this.state.visible === !1)
|
|
251
253
|
return;
|
|
252
254
|
const i = d({ userAction: !0 }, t);
|
|
@@ -357,16 +359,16 @@ class Ut extends k {
|
|
|
357
359
|
this.hooks.emit("disable", { userAction: t.userAction }), this.five.scene.remove(this.modelGroup), this.updateChildrenMountedState(), this.five.needsRender = !0, this.five.off("wantsTapGesture", this.onWantsFiveTapGesture), this.five.off("initAnimationWillStart", this.onFiveInitAnimationWillStart), this.five.off("initAnimationEnded", this.onFiveInitAnimationEnded), this.five.off("modeChange", this.onFiveModeChange), this.five.off("cameraUpdate", this.onFiveCameraUpdate);
|
|
358
360
|
}
|
|
359
361
|
_show(t) {
|
|
360
|
-
return
|
|
362
|
+
return p(this, null, function* () {
|
|
361
363
|
this.hooks.emit("show", t), this.five.needsRender = !0;
|
|
362
364
|
});
|
|
363
365
|
}
|
|
364
366
|
_hide(t) {
|
|
365
|
-
return
|
|
367
|
+
return p(this, null, function* () {
|
|
366
368
|
this.hooks.emit("hide", t), this.five.needsRender = !0;
|
|
367
369
|
});
|
|
368
370
|
}
|
|
369
371
|
}
|
|
370
372
|
export {
|
|
371
|
-
|
|
373
|
+
Ht as Controller
|
|
372
374
|
};
|
|
@@ -33,6 +33,8 @@ import "../shared-utils/isNil.js";
|
|
|
33
33
|
import "../shared-utils/three/core/Sphere.js";
|
|
34
34
|
import "animejs";
|
|
35
35
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
36
|
+
import "../shared-utils/five/FivePuppet.js";
|
|
37
|
+
import "@realsee/five";
|
|
36
38
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
37
39
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
38
40
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -65,7 +67,7 @@ import "../components/AreaLabel/LabelItem.js";
|
|
|
65
67
|
import "../vendor/svelte/internal/index.js";
|
|
66
68
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
67
69
|
import "../shared-utils/math/planimetry.js";
|
|
68
|
-
const
|
|
70
|
+
const Ar = (r, o) => new t(r, o);
|
|
69
71
|
export {
|
|
70
|
-
|
|
72
|
+
Ar as AreaMakerPlugin
|
|
71
73
|
};
|
|
@@ -13,6 +13,7 @@ import { LineSegments as C } from "../../shared-utils/three/core/LineSegments.js
|
|
|
13
13
|
import "../../shared-utils/three/core/Sphere.js";
|
|
14
14
|
import "animejs";
|
|
15
15
|
import { BetterTween as O } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
16
|
+
import "../../shared-utils/five/FivePuppet.js";
|
|
16
17
|
import { LabelItem as v } from "../../components/AreaLabel/LabelItem.js";
|
|
17
18
|
import { getCenterPointOfPoints as M } from "../../shared-utils/math/planimetry.js";
|
|
18
19
|
import { resizeObserver as V } from "../../shared-utils/dom/resizeObserver.js";
|
|
@@ -58,6 +59,7 @@ import "../../shared-utils/five/getPosition.js";
|
|
|
58
59
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
59
60
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
60
61
|
import "../../shared-utils/animationFrame/index.js";
|
|
62
|
+
import "@realsee/five";
|
|
61
63
|
import "../../vendor/svelte/internal/index.js";
|
|
62
64
|
import "../../components/AreaLabel/Assets/roomLabelBg.js";
|
|
63
65
|
import "../../shared-utils/three/core/Raycaster.js";
|
|
@@ -71,7 +73,7 @@ class P extends T {
|
|
|
71
73
|
this.areaMakerItem.makerObject.raycast(t, s);
|
|
72
74
|
}
|
|
73
75
|
}
|
|
74
|
-
class
|
|
76
|
+
class Ft {
|
|
75
77
|
constructor(e, t) {
|
|
76
78
|
i(this, "id");
|
|
77
79
|
/** 标注名称 */
|
|
@@ -327,5 +329,5 @@ function u(a, e) {
|
|
|
327
329
|
t.multiply(s), t.multiply(o), t.multiply(h), a.applyMatrix4(t);
|
|
328
330
|
}
|
|
329
331
|
export {
|
|
330
|
-
|
|
332
|
+
Ft as AreaMakerItem
|
|
331
333
|
};
|
|
@@ -24,6 +24,7 @@ import "animejs";
|
|
|
24
24
|
import { waitFiveModelLoaded as P } from "../shared-utils/five/fiveModelLoad.js";
|
|
25
25
|
import { absoluteUrl as w } from "../shared-utils/url/absoluteUrl.js";
|
|
26
26
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
27
|
+
import "../shared-utils/five/FivePuppet.js";
|
|
27
28
|
import "../shared-utils/positionToVector3.js";
|
|
28
29
|
import "./utils/three/CSS3DRenderer.js";
|
|
29
30
|
import "./utils/three/THREEJS_CSS3DRenderer.js";
|
|
@@ -70,8 +71,9 @@ import "../shared-utils/isTouchDevice.js";
|
|
|
70
71
|
import "../shared-utils/five/getPosition.js";
|
|
71
72
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
72
73
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
74
|
+
import "@realsee/five";
|
|
73
75
|
const b = "v2.0.1", E = `CSS3DRenderPlugin@${b}`;
|
|
74
|
-
class
|
|
76
|
+
class Me extends j {
|
|
75
77
|
constructor(e) {
|
|
76
78
|
super();
|
|
77
79
|
s(this, "five");
|
|
@@ -184,5 +186,5 @@ class Ae extends j {
|
|
|
184
186
|
}
|
|
185
187
|
export {
|
|
186
188
|
E as PLUGIN_NAME,
|
|
187
|
-
|
|
189
|
+
Me as default
|
|
188
190
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import o from "./Controller.js";
|
|
2
|
-
import { CSS3DRender as
|
|
2
|
+
import { CSS3DRender as Cr } from "./utils/three/CSS3DRender.js";
|
|
3
3
|
import "./utils/generateBehindFiveElement.js";
|
|
4
4
|
import "../shared-utils/tag.js";
|
|
5
5
|
import "../shared-utils/positionToVector3.js";
|
|
@@ -33,6 +33,8 @@ import "../shared-utils/isNil.js";
|
|
|
33
33
|
import "../shared-utils/three/core/Sphere.js";
|
|
34
34
|
import "animejs";
|
|
35
35
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
36
|
+
import "../shared-utils/five/FivePuppet.js";
|
|
37
|
+
import "@realsee/five";
|
|
36
38
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
37
39
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
38
40
|
import "./utils/three/CSS3DRenderer.js";
|
|
@@ -58,9 +60,9 @@ import "../shared-utils/url/absoluteUrl.js";
|
|
|
58
60
|
import "./utils/three/CSS3DScene.js";
|
|
59
61
|
import "./utils/getAllCSS3DObject.js";
|
|
60
62
|
import "./utils/three/CSS3DGroup.js";
|
|
61
|
-
const
|
|
63
|
+
const Sr = (r) => new o(r);
|
|
62
64
|
export {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
Cr as CSS3DRender,
|
|
66
|
+
Sr as CSS3DRenderPlugin,
|
|
67
|
+
Sr as default
|
|
66
68
|
};
|
|
@@ -16,6 +16,7 @@ import { isNil as O } from "../../../shared-utils/isNil.js";
|
|
|
16
16
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
17
17
|
import "animejs";
|
|
18
18
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
19
|
+
import "../../../shared-utils/five/FivePuppet.js";
|
|
19
20
|
import "../../../shared-utils/positionToVector3.js";
|
|
20
21
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
21
22
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
@@ -53,8 +54,9 @@ import "../../../shared-utils/isTouchDevice.js";
|
|
|
53
54
|
import "../../../shared-utils/five/getPosition.js";
|
|
54
55
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
55
56
|
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
57
|
+
import "@realsee/five";
|
|
56
58
|
const $ = 1, W = `CSS3DObjectPlus@${$}`, k = 216e-5, z = 3e-3;
|
|
57
|
-
class
|
|
59
|
+
class It extends N {
|
|
58
60
|
constructor(t) {
|
|
59
61
|
var x, b, w, g, V;
|
|
60
62
|
if (O(t.cornerPoints) && O(t.width))
|
|
@@ -160,7 +162,7 @@ class zt extends N {
|
|
|
160
162
|
}
|
|
161
163
|
}
|
|
162
164
|
export {
|
|
163
|
-
|
|
165
|
+
It as CSS3DObjectPlus,
|
|
164
166
|
z as DefaultRatio,
|
|
165
167
|
k as MinRatio
|
|
166
168
|
};
|
|
@@ -31,7 +31,7 @@ import { anyPositionToVector3 as q } from "../../../shared-utils/positionToVecto
|
|
|
31
31
|
import B from "./CSS3DRenderer.js";
|
|
32
32
|
import { Subscribe as A } from "../../../shared-utils/Subscribe.js";
|
|
33
33
|
import { CSS3DObjectPlus as W } from "./CSS3DObject.js";
|
|
34
|
-
import { MinRatio as
|
|
34
|
+
import { MinRatio as st } from "./CSS3DObject.js";
|
|
35
35
|
import { CSS3DFrontScene as H, CSS3DBehindScene as T } from "./CSS3DScene.js";
|
|
36
36
|
import { CSS3DFrontGroup as U, CSS3DBehindGroup as z } from "./CSS3DGroup.js";
|
|
37
37
|
import { CSS3DObject as j } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -77,6 +77,8 @@ import "../../../shared-utils/three/core/LineGeometry.js";
|
|
|
77
77
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
78
78
|
import "animejs";
|
|
79
79
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
80
|
+
import "../../../shared-utils/five/FivePuppet.js";
|
|
81
|
+
import "@realsee/five";
|
|
80
82
|
import "./CSS3DSprite.js";
|
|
81
83
|
import "../../../shared-utils/isTouchDevice.js";
|
|
82
84
|
import "../../../shared-utils/five/getPosition.js";
|
|
@@ -351,7 +353,7 @@ class y {
|
|
|
351
353
|
n(y, "setFrontModeContainer", K), n(y, "setBehindModeContainer", Q);
|
|
352
354
|
export {
|
|
353
355
|
y as CSS3DRender,
|
|
354
|
-
|
|
356
|
+
st as MinRatio,
|
|
355
357
|
m as PLUGIN,
|
|
356
358
|
i as globalStore
|
|
357
359
|
};
|
|
@@ -37,6 +37,7 @@ import "../shared-utils/three/core/Sphere.js";
|
|
|
37
37
|
import "animejs";
|
|
38
38
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
39
39
|
import { equal as L } from "../shared-utils/equal.js";
|
|
40
|
+
import "../shared-utils/five/FivePuppet.js";
|
|
40
41
|
import { objectAssignDeepExports as C } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
41
42
|
import "../shared-utils/Subscribe.js";
|
|
42
43
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
@@ -82,9 +83,10 @@ import "../shared-utils/isTouchDevice.js";
|
|
|
82
83
|
import "../shared-utils/five/getPosition.js";
|
|
83
84
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
84
85
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
86
|
+
import "@realsee/five";
|
|
85
87
|
import "../shared-utils/isTruelyObject.js";
|
|
86
|
-
const g = "CruisePlugin", h = `${g}`,
|
|
87
|
-
class
|
|
88
|
+
const g = "CruisePlugin", h = `${g}`, Me = (a) => `${h}--${a}`;
|
|
89
|
+
class $e extends y {
|
|
88
90
|
constructor(e, t) {
|
|
89
91
|
super(e, t);
|
|
90
92
|
d(this, "state", {
|
|
@@ -259,6 +261,6 @@ class Ge extends y {
|
|
|
259
261
|
}
|
|
260
262
|
}
|
|
261
263
|
export {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
+
$e as default,
|
|
265
|
+
Me as pluginFlag
|
|
264
266
|
};
|
|
@@ -40,6 +40,7 @@ import "../shared-utils/three/core/Sphere.js";
|
|
|
40
40
|
import "animejs";
|
|
41
41
|
import { uuid as A } from "../shared-utils/uuid.js";
|
|
42
42
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
43
|
+
import "../shared-utils/five/FivePuppet.js";
|
|
43
44
|
import { getFiveStateOnCurve as v } from "./utils/getFiveStateOnCurve.js";
|
|
44
45
|
import M from "../GuideLinePlugin/index.js";
|
|
45
46
|
import "../base/BasePlugin.js";
|
|
@@ -88,6 +89,7 @@ import "../shared-utils/isTouchDevice.js";
|
|
|
88
89
|
import "../shared-utils/five/getPosition.js";
|
|
89
90
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
90
91
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
92
|
+
import "@realsee/five";
|
|
91
93
|
import "../shared-utils/vectorToCoordinate.js";
|
|
92
94
|
import "../shared-utils/formatRad.js";
|
|
93
95
|
import "../GuideLinePlugin/Controller.js";
|
|
@@ -203,7 +205,6 @@ import "../PanoTagPlugin/utils/tag/calculateTagConfig.js";
|
|
|
203
205
|
import "../shared-utils/typescript/entries.js";
|
|
204
206
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
205
207
|
import "../PanoTagPlugin/typings/tag/TagConfig.js";
|
|
206
|
-
import "@realsee/five";
|
|
207
208
|
import "../shared-utils/five/lookPoint.js";
|
|
208
209
|
import "../PanoTagPlugin/utils/tagPosition.js";
|
|
209
210
|
import "../PanoTagPlugin/utils/checkRange.js";
|
|
@@ -243,7 +244,7 @@ import "./utils/coordinatesToVector.js";
|
|
|
243
244
|
import "./utils/safeCall.js";
|
|
244
245
|
import "./utils/sleep.js";
|
|
245
246
|
import "../shared-utils/five/fiveLoaded.js";
|
|
246
|
-
class
|
|
247
|
+
class Uo extends z {
|
|
247
248
|
constructor(t, r) {
|
|
248
249
|
var h;
|
|
249
250
|
super(t, r);
|
|
@@ -351,5 +352,5 @@ class Bo extends z {
|
|
|
351
352
|
}
|
|
352
353
|
}
|
|
353
354
|
export {
|
|
354
|
-
|
|
355
|
+
Uo as default
|
|
355
356
|
};
|
|
@@ -45,6 +45,7 @@ import { notNil as Q } from "../shared-utils/isNil.js";
|
|
|
45
45
|
import "../shared-utils/three/core/Sphere.js";
|
|
46
46
|
import "animejs";
|
|
47
47
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
48
|
+
import "../shared-utils/five/FivePuppet.js";
|
|
48
49
|
import "../GuideLinePlugin/Controller.js";
|
|
49
50
|
import "../base/BasePluginWithData.js";
|
|
50
51
|
import "../base/BasePlugin.js";
|
|
@@ -243,7 +244,7 @@ import "./utils/getFiveStateOnCurve.js";
|
|
|
243
244
|
import "../shared-utils/formatRad.js";
|
|
244
245
|
import "./Work.js";
|
|
245
246
|
import "./utils/coordinatesToVector.js";
|
|
246
|
-
class
|
|
247
|
+
class Rr extends G {
|
|
247
248
|
constructor(t, e) {
|
|
248
249
|
super(t, e);
|
|
249
250
|
k(this, "state", {
|
|
@@ -634,5 +635,5 @@ class _r extends G {
|
|
|
634
635
|
}
|
|
635
636
|
}
|
|
636
637
|
export {
|
|
637
|
-
|
|
638
|
+
Rr as default
|
|
638
639
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { typing as
|
|
1
|
+
import { typing as ui } from "./typing/index.js";
|
|
2
2
|
import t from "./Work.js";
|
|
3
3
|
import i from "./Move.js";
|
|
4
4
|
import "../GuideLinePlugin/index.js";
|
|
@@ -37,6 +37,8 @@ import "../shared-utils/isNil.js";
|
|
|
37
37
|
import "../shared-utils/three/core/Sphere.js";
|
|
38
38
|
import "animejs";
|
|
39
39
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
40
|
+
import "../shared-utils/five/FivePuppet.js";
|
|
41
|
+
import "@realsee/five";
|
|
40
42
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
41
43
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
42
44
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -173,7 +175,6 @@ import "../PanoTagPlugin/utils/tag/calculateTagConfig.js";
|
|
|
173
175
|
import "../shared-utils/typescript/entries.js";
|
|
174
176
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
175
177
|
import "../PanoTagPlugin/typings/tag/TagConfig.js";
|
|
176
|
-
import "@realsee/five";
|
|
177
178
|
import "../shared-utils/vectorToCoordinate.js";
|
|
178
179
|
import "../shared-utils/formatRad.js";
|
|
179
180
|
import "../shared-utils/five/lookPoint.js";
|
|
@@ -215,13 +216,13 @@ import "./utils/sleep.js";
|
|
|
215
216
|
import "../shared-utils/five/fiveLoaded.js";
|
|
216
217
|
import "./BaseController.js";
|
|
217
218
|
import "./utils/getFiveStateOnCurve.js";
|
|
218
|
-
const
|
|
219
|
+
const ei = (o, r) => new t(o, r), li = (o, r) => new i(o, r);
|
|
219
220
|
export {
|
|
220
|
-
|
|
221
|
+
ei as CruisePlugin,
|
|
221
222
|
t as CruisePluginController,
|
|
222
|
-
|
|
223
|
+
ui as CruisePluginTypes,
|
|
223
224
|
i as MoveController,
|
|
224
|
-
|
|
225
|
+
li as MovePlugin,
|
|
225
226
|
t as WalkController,
|
|
226
|
-
|
|
227
|
+
ei as default
|
|
227
228
|
};
|
|
@@ -37,6 +37,7 @@ import "@realsee/five/line";
|
|
|
37
37
|
import "../shared-utils/three/core/Sphere.js";
|
|
38
38
|
import "animejs";
|
|
39
39
|
import { equal as P } from "../shared-utils/equal.js";
|
|
40
|
+
import "../shared-utils/five/FivePuppet.js";
|
|
40
41
|
import { loadTexture as w } from "../shared-utils/three/loadTexture.js";
|
|
41
42
|
import "../shared-utils/Subscribe.js";
|
|
42
43
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
@@ -84,8 +85,9 @@ import "../shared-utils/isTouchDevice.js";
|
|
|
84
85
|
import "../shared-utils/five/getPosition.js";
|
|
85
86
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
86
87
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
88
|
+
import "@realsee/five";
|
|
87
89
|
import "../shared-utils/isTruelyObject.js";
|
|
88
|
-
class
|
|
90
|
+
class Se extends M {
|
|
89
91
|
constructor(e, i) {
|
|
90
92
|
super(e);
|
|
91
93
|
// ==================== public properties ====================
|
|
@@ -316,5 +318,5 @@ class Le extends M {
|
|
|
316
318
|
}
|
|
317
319
|
}
|
|
318
320
|
export {
|
|
319
|
-
|
|
321
|
+
Se as CurrentPanoImagePluginController
|
|
320
322
|
};
|
|
@@ -32,6 +32,8 @@ import "../shared-utils/isNil.js";
|
|
|
32
32
|
import "../shared-utils/three/core/Sphere.js";
|
|
33
33
|
import "animejs";
|
|
34
34
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
35
|
+
import "../shared-utils/five/FivePuppet.js";
|
|
36
|
+
import "@realsee/five";
|
|
35
37
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
36
38
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
37
39
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -58,8 +60,8 @@ import "../shared-utils/animationFrame/index.js";
|
|
|
58
60
|
import "../shared-utils/equal.js";
|
|
59
61
|
import "../shared-utils/isTruelyObject.js";
|
|
60
62
|
import "../shared-utils/three/loadTexture.js";
|
|
61
|
-
const
|
|
63
|
+
const gr = (r, o) => new t(r, o);
|
|
62
64
|
export {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
gr as CurrentPanoImagePlugin,
|
|
66
|
+
gr as default
|
|
65
67
|
};
|
|
@@ -39,6 +39,7 @@ import { waitFiveModelLoaded as $ } from "../shared-utils/five/fiveModelLoad.js"
|
|
|
39
39
|
import { uuid as P } from "../shared-utils/uuid.js";
|
|
40
40
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
41
41
|
import { equal as W } from "../shared-utils/equal.js";
|
|
42
|
+
import "../shared-utils/five/FivePuppet.js";
|
|
42
43
|
import { GuideLineItem as H } from "./GuideLineItem/index.js";
|
|
43
44
|
import U from "../CruisePlugin/Work.js";
|
|
44
45
|
import { objectAssignDeepExports as V } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -87,6 +88,7 @@ import "../shared-utils/isTouchDevice.js";
|
|
|
87
88
|
import "../shared-utils/five/getPosition.js";
|
|
88
89
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
89
90
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
91
|
+
import "@realsee/five";
|
|
90
92
|
import "../shared-utils/isTruelyObject.js";
|
|
91
93
|
import "./GuideLineModeItem/index.js";
|
|
92
94
|
import "../shared-utils/log.js";
|
|
@@ -197,7 +199,6 @@ import "../PanoTagPlugin/utils/tag/calculateTagConfig.js";
|
|
|
197
199
|
import "../shared-utils/typescript/entries.js";
|
|
198
200
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
199
201
|
import "../PanoTagPlugin/typings/tag/TagConfig.js";
|
|
200
|
-
import "@realsee/five";
|
|
201
202
|
import "../shared-utils/vectorToCoordinate.js";
|
|
202
203
|
import "../shared-utils/formatRad.js";
|
|
203
204
|
import "../shared-utils/five/lookPoint.js";
|
|
@@ -242,8 +243,8 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
|
242
243
|
import "../CruisePlugin/utils/safeCall.js";
|
|
243
244
|
import "../CruisePlugin/utils/sleep.js";
|
|
244
245
|
import "../shared-utils/five/fiveLoaded.js";
|
|
245
|
-
const b = "GuideLinePlugin", g = `${b}`,
|
|
246
|
-
class
|
|
246
|
+
const b = "GuideLinePlugin", g = `${b}`, Co = (s) => `${g}--${s}`;
|
|
247
|
+
class Fo extends N {
|
|
247
248
|
constructor(t, i) {
|
|
248
249
|
super(t, i);
|
|
249
250
|
h(this, "name", b);
|
|
@@ -385,6 +386,6 @@ class Co extends N {
|
|
|
385
386
|
}
|
|
386
387
|
}
|
|
387
388
|
export {
|
|
388
|
-
|
|
389
|
-
|
|
389
|
+
Fo as default,
|
|
390
|
+
Co as pluginFlag
|
|
390
391
|
};
|
|
@@ -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 rr } from "./GuideLineItem/index.js";
|
|
9
9
|
import "three";
|
|
10
10
|
import "./utils/createLineGeometry.js";
|
|
11
11
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -47,6 +47,8 @@ import "../shared-utils/isNil.js";
|
|
|
47
47
|
import "../shared-utils/three/core/Sphere.js";
|
|
48
48
|
import "animejs";
|
|
49
49
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
50
|
+
import "../shared-utils/five/FivePuppet.js";
|
|
51
|
+
import "@realsee/five";
|
|
50
52
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
51
53
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
52
54
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -166,7 +168,6 @@ import "../PanoTagPlugin/utils/tag/calculateTagConfig.js";
|
|
|
166
168
|
import "../shared-utils/typescript/entries.js";
|
|
167
169
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
168
170
|
import "../PanoTagPlugin/typings/tag/TagConfig.js";
|
|
169
|
-
import "@realsee/five";
|
|
170
171
|
import "../shared-utils/vectorToCoordinate.js";
|
|
171
172
|
import "../shared-utils/formatRad.js";
|
|
172
173
|
import "../shared-utils/five/lookPoint.js";
|
|
@@ -215,5 +216,5 @@ import "../CruisePlugin/utils/safeCall.js";
|
|
|
215
216
|
import "../CruisePlugin/utils/sleep.js";
|
|
216
217
|
import "../shared-utils/five/fiveLoaded.js";
|
|
217
218
|
export {
|
|
218
|
-
|
|
219
|
+
rr as GuideLineItem
|
|
219
220
|
};
|
|
@@ -24,6 +24,7 @@ import { notNil as C } from "../../shared-utils/isNil.js";
|
|
|
24
24
|
import "../../shared-utils/three/core/Sphere.js";
|
|
25
25
|
import { blink as O } from "../../shared-utils/three/blink.js";
|
|
26
26
|
import { BetterTween as _ } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
27
|
+
import "../../shared-utils/five/FivePuppet.js";
|
|
27
28
|
import { loadTexture as A } from "../../shared-utils/three/loadTexture.js";
|
|
28
29
|
import V from "../../PanoTagPlugin/controller/index.js";
|
|
29
30
|
import E from "../Components/Tag.js";
|
|
@@ -566,11 +567,11 @@ class R {
|
|
|
566
567
|
function H(m) {
|
|
567
568
|
return m.contentType === "Custom";
|
|
568
569
|
}
|
|
569
|
-
const
|
|
570
|
+
const le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
570
571
|
__proto__: null,
|
|
571
572
|
GuideLineModeItem: R
|
|
572
573
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
573
574
|
export {
|
|
574
575
|
R as GuideLineModeItem,
|
|
575
|
-
|
|
576
|
+
le as GuideLineModeItem$1
|
|
576
577
|
};
|