@realsee/dnalogel 3.50.12 → 3.50.14
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/PanoTagPlugin/controller/Tag/BaseTag.d.ts +3 -3
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +0 -3
- package/dist/PanoTagPlugin/controller/index.d.ts +4 -0
- package/dist/base/BasePlugin.d.ts +1 -1
- package/dist/index.cjs.js +194 -194
- package/dist/index.js +3633 -3614
- package/dist/index.umd.js +191 -191
- package/dist/shared-utils/equal.d.ts +1 -1
- package/dist/shared-utils/index.d.ts +2 -1
- package/dist/shared-utils/tag.d.ts +18 -7
- package/libs/AreaMakerPlugin/Controller.js +3 -3
- package/libs/AreaMakerPlugin/index.js +6 -6
- package/libs/AreaMakerPlugin/utils/Item.js +3 -3
- package/libs/CSS3DRenderPlugin/Controller.js +3 -3
- package/libs/CSS3DRenderPlugin/index.js +7 -7
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -3
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +5 -5
- package/libs/CruisePlugin/BaseController.js +13 -13
- package/libs/CruisePlugin/Move.js +3 -3
- package/libs/CruisePlugin/Work.js +2 -2
- package/libs/CruisePlugin/index.js +8 -8
- package/libs/CurrentPanoImagePlugin/Controller.js +3 -3
- package/libs/CurrentPanoImagePlugin/index.js +6 -6
- package/libs/GuideLinePlugin/Controller.js +19 -19
- package/libs/GuideLinePlugin/GuideLineItem.js +7 -7
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -3
- package/libs/GuideLinePlugin/index.js +8 -8
- package/libs/ModelMakerPlugin/Controller.js +3 -3
- package/libs/ModelMakerPlugin/index.js +7 -7
- package/libs/ModelTVVideoPlugin/Plugin.js +5 -5
- package/libs/ModelTVVideoPlugin/index.js +5 -5
- package/libs/Object3DHelperPlugin/Controller.js +6 -6
- package/libs/Object3DHelperPlugin/index.js +7 -7
- package/libs/PanoCompassPlugin/Controller.js +6 -6
- package/libs/PanoCompassPlugin/index.js +6 -6
- package/libs/PanoDoorLabelPlugin/BaseController.js +7 -7
- package/libs/PanoDoorLabelPlugin/Controller.js +6 -6
- package/libs/PanoDoorLabelPlugin/index.js +6 -6
- package/libs/PanoMeasurePlugin/Components/Controller0.js +5 -5
- package/libs/PanoMeasurePlugin/Components/Controller1.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +4 -4
- package/libs/PanoMeasurePlugin/Controller/index.js +3 -3
- package/libs/PanoMeasurePlugin/Model/area.js +5 -5
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +7 -7
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +5 -5
- package/libs/PanoMeasurePlugin/index.js +3 -3
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -3
- package/libs/PanoRulerProPlugin/Controller.js +52 -33
- package/libs/PanoRulerProPlugin/RulerItems.js +104 -85
- package/libs/PanoRulerProPlugin/index.js +23 -4
- package/libs/PanoSpatialTagPlugin/Plugin.js +5 -5
- package/libs/PanoSpatialTagPlugin/index.js +5 -5
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -3
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -3
- package/libs/PanoTagPlugin/Components/Tag/index.js +3 -3
- package/libs/PanoTagPlugin/Components/TagContainer.js +6 -6
- package/libs/PanoTagPlugin/Components/TagItem.js +3 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +3 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -3
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +7 -7
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +7 -7
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +7 -7
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +0 -3
- package/libs/PanoTagPlugin/controller/TagRender.js +86 -116
- package/libs/PanoTagPlugin/controller/TagUtil.js +5 -5
- package/libs/PanoTagPlugin/controller/index.d.ts +4 -0
- package/libs/PanoTagPlugin/controller/index.js +44 -32
- package/libs/PanoTagPlugin/index.js +6 -6
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -3
- package/libs/PanoVideoPlugin/Controller.js +7 -7
- package/libs/PanoVideoPlugin/VideoMeshController.js +3 -3
- package/libs/PanoVideoPlugin/index.js +7 -7
- package/libs/PipelinePlugin/Controller.js +15 -15
- package/libs/PipelinePlugin/index.js +7 -7
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -3
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -3
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +3 -3
- package/libs/Sculpt/Meshes/Box.js +1 -1
- package/libs/Sculpt/Meshes/Cylinder.js +1 -1
- package/libs/Sculpt/Meshes/Line.js +4 -4
- package/libs/Sculpt/Meshes/LineWithDots.js +3 -2
- package/libs/Sculpt/Meshes/Point.js +1 -1
- package/libs/Sculpt/Meshes/Prism.js +9 -8
- package/libs/Sculpt/Meshes/Rectangle.js +1 -1
- package/libs/Sculpt/Objects/Line/Editor.js +1 -1
- package/libs/Sculpt/index.js +1 -1
- package/libs/Sculpt/utils/three/ColoredMesh.js +1 -1
- package/libs/base/BasePlugin.d.ts +1 -1
- package/libs/base/BasePlugin.js +2 -2
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -3
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -3
- package/libs/floorplan/ModelFloorplanPlugin/index.js +6 -6
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +7 -7
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +7 -7
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -3
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +6 -6
- package/libs/floorplan/index.js +1 -1
- package/libs/index.js +6 -6
- package/libs/shared-utils/equal.d.ts +1 -1
- package/libs/shared-utils/five/index.js +1 -1
- package/libs/shared-utils/five/lookObject.js +1 -1
- package/libs/shared-utils/index.d.ts +2 -1
- package/libs/shared-utils/index.js +57 -54
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +18 -7
- package/libs/shared-utils/tag.js +80 -61
- package/libs/shared-utils/three/index.js +1 -1
- package/package.json +1 -1
|
@@ -11,12 +11,12 @@ import gA from "./PanoramaTag.js";
|
|
|
11
11
|
import uA from "./CustomTag.js";
|
|
12
12
|
import { classnames as S } from "../../../vendor/classnames/index.js";
|
|
13
13
|
import { ModelTag as cA } from "../../controller/Tag/ModelTag.js";
|
|
14
|
+
import "../../../shared-utils/tag.js";
|
|
14
15
|
import { isModelLike as dA } from "../../../shared-utils/five/mode.js";
|
|
15
16
|
import "hammerjs";
|
|
16
17
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
17
18
|
import "@realsee/five/line";
|
|
18
19
|
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
19
|
-
import "../../../shared-utils/tag.js";
|
|
20
20
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
21
21
|
import "animejs";
|
|
22
22
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -72,8 +72,6 @@ import "../../../vendor/svelte-carousel/src/utils/lazy.js";
|
|
|
72
72
|
import "../../../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
73
73
|
import "../../../vendor/svelte-carousel/src/utils/interval.js";
|
|
74
74
|
import "../Common/MediaItem.js";
|
|
75
|
-
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
76
|
-
import "../../../vendor/three/build/three.module.js";
|
|
77
75
|
import "../../../shared-utils/positionToVector3.js";
|
|
78
76
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
79
77
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
@@ -84,6 +82,8 @@ import "../../../shared-utils/Utils/WorkUtil.js";
|
|
|
84
82
|
import "../../../shared-utils/five/transformPosition.js";
|
|
85
83
|
import "../../../shared-utils/three/temp.js";
|
|
86
84
|
import "../../../shared-utils/dom/resizeObserver.js";
|
|
85
|
+
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
86
|
+
import "../../../vendor/three/build/three.module.js";
|
|
87
87
|
import "./AudioTag/AudioTag.js";
|
|
88
88
|
import "../Common/Audio.js";
|
|
89
89
|
import "../../utils/audio/SharedAudio.js";
|
|
@@ -58,12 +58,6 @@ import "../../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
|
58
58
|
import "../../vendor/svelte-carousel/src/utils/interval.js";
|
|
59
59
|
import "./Common/MediaItem.js";
|
|
60
60
|
import "./Tag/MarketingTag.js";
|
|
61
|
-
import "hammerjs";
|
|
62
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
63
|
-
import "@realsee/five/line";
|
|
64
|
-
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
65
|
-
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
66
|
-
import "../../vendor/three/build/three.module.js";
|
|
67
61
|
import "../../shared-utils/tag.js";
|
|
68
62
|
import "../../shared-utils/positionToVector3.js";
|
|
69
63
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
@@ -75,6 +69,12 @@ import "../../shared-utils/Utils/WorkUtil.js";
|
|
|
75
69
|
import "../../shared-utils/five/transformPosition.js";
|
|
76
70
|
import "../../shared-utils/three/temp.js";
|
|
77
71
|
import "../../shared-utils/dom/resizeObserver.js";
|
|
72
|
+
import "hammerjs";
|
|
73
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
74
|
+
import "@realsee/five/line";
|
|
75
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
76
|
+
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
77
|
+
import "../../vendor/three/build/three.module.js";
|
|
78
78
|
import "../../shared-utils/three/core/Sphere.js";
|
|
79
79
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
80
80
|
import "../utils/noTypecheck.js";
|
|
@@ -3,12 +3,12 @@ import $ from "./Tag/index.js";
|
|
|
3
3
|
import "three";
|
|
4
4
|
import { noTypecheck as V } from "../utils/noTypecheck.js";
|
|
5
5
|
import tt from "./Common/TagPoint.js";
|
|
6
|
+
import "../../shared-utils/tag.js";
|
|
6
7
|
import { isModelLike as et } from "../../shared-utils/five/mode.js";
|
|
7
8
|
import "hammerjs";
|
|
8
9
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
9
10
|
import "@realsee/five/line";
|
|
10
11
|
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
11
|
-
import "../../shared-utils/tag.js";
|
|
12
12
|
import "../../shared-utils/three/core/Sphere.js";
|
|
13
13
|
import "animejs";
|
|
14
14
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -67,8 +67,6 @@ import "../../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
|
67
67
|
import "../../vendor/svelte-carousel/src/utils/interval.js";
|
|
68
68
|
import "./Common/MediaItem.js";
|
|
69
69
|
import "./Tag/MarketingTag.js";
|
|
70
|
-
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
71
|
-
import "../../vendor/three/build/three.module.js";
|
|
72
70
|
import "../../shared-utils/positionToVector3.js";
|
|
73
71
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
74
72
|
import "../../shared-utils/five/getFiveModel.js";
|
|
@@ -79,6 +77,8 @@ import "../../shared-utils/Utils/WorkUtil.js";
|
|
|
79
77
|
import "../../shared-utils/five/transformPosition.js";
|
|
80
78
|
import "../../shared-utils/three/temp.js";
|
|
81
79
|
import "../../shared-utils/dom/resizeObserver.js";
|
|
80
|
+
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
81
|
+
import "../../vendor/three/build/three.module.js";
|
|
82
82
|
import "./Tag/AudioTag/index.js";
|
|
83
83
|
import "./Tag/AudioTag/AudioTag.js";
|
|
84
84
|
import "./Common/Audio.js";
|
|
@@ -153,8 +153,8 @@ export declare abstract class BaseTag<C extends TagContentType = TagContentType,
|
|
|
153
153
|
}): TagConfig;
|
|
154
154
|
getDistance(fiveState?: Partial<FiveState>, accurate?: number): number;
|
|
155
155
|
getVisible(fiveState?: Partial<FiveState>): boolean;
|
|
156
|
-
getUnfoldedByPanoIndex(panoIndex?: number):
|
|
157
|
-
getUnfoldedByCamera():
|
|
156
|
+
getUnfoldedByPanoIndex(panoIndex?: number): boolean;
|
|
157
|
+
getUnfoldedByCamera(): boolean;
|
|
158
158
|
can(action: 'show' | 'hide' | 'fold' | 'unfold'): boolean;
|
|
159
159
|
onClick(params: Pick<TagClickParams, 'target'>): void;
|
|
160
160
|
abstract computeNormal(): THREE.Vector3 | undefined;
|
|
@@ -204,7 +204,7 @@ export declare abstract class BaseTag<C extends TagContentType = TagContentType,
|
|
|
204
204
|
* @description 获取是否展开
|
|
205
205
|
*/
|
|
206
206
|
protected computeUnfoldedByPanoIndex(panoIndex?: number): boolean;
|
|
207
|
-
protected computeUnfoldedByCamera():
|
|
207
|
+
protected computeUnfoldedByCamera(): boolean;
|
|
208
208
|
protected computeTagProject(): {
|
|
209
209
|
x: number;
|
|
210
210
|
y: number;
|
|
@@ -39,6 +39,7 @@ var y = (c, i, e) => new Promise((t, r) => {
|
|
|
39
39
|
import { Subscribe as Q } from "../../../shared-utils/Subscribe.js";
|
|
40
40
|
import { calculateTagConfig as w } from "../../utils/tag/calculateTagConfig.js";
|
|
41
41
|
import { getTagStickType as Y } from "../../utils/tag/format.js";
|
|
42
|
+
import "../../../shared-utils/tag.js";
|
|
42
43
|
import { isPanoramaLike as U, isModelLike as C } from "../../../shared-utils/five/mode.js";
|
|
43
44
|
import * as B from "three";
|
|
44
45
|
import "hammerjs";
|
|
@@ -47,7 +48,6 @@ import { centerPoint as ee } from "../../../shared-utils/three/centerPoint.js";
|
|
|
47
48
|
import "@realsee/five/line";
|
|
48
49
|
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
49
50
|
import { anyPositionToVector3 as A } from "../../../shared-utils/positionToVector3.js";
|
|
50
|
-
import "../../../shared-utils/tag.js";
|
|
51
51
|
import { toArray as ie } from "../../../shared-utils/util.js";
|
|
52
52
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
53
53
|
import { blink as te, reblink as ne } from "../../../shared-utils/three/blink.js";
|
|
@@ -71,14 +71,14 @@ import "../../utils/tag/adaptConfig.js";
|
|
|
71
71
|
import "../../typings/tag/TagConfig.js";
|
|
72
72
|
import "@realsee/five";
|
|
73
73
|
import "animejs";
|
|
74
|
-
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
75
|
-
import "../../../vendor/three/build/three.module.js";
|
|
76
74
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
77
75
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
78
76
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
79
77
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
80
78
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
81
79
|
import "../../../shared-utils/dom/resizeObserver.js";
|
|
80
|
+
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
81
|
+
import "../../../vendor/three/build/three.module.js";
|
|
82
82
|
import "../../../shared-utils/formatRad.js";
|
|
83
83
|
class ii {
|
|
84
84
|
constructor(i, e) {
|
|
@@ -42,13 +42,6 @@ import "../../../shared-utils/typescript/entries.js";
|
|
|
42
42
|
import "../../utils/tag/adaptConfig.js";
|
|
43
43
|
import "../../typings/tag/TagConfig.js";
|
|
44
44
|
import "@realsee/five";
|
|
45
|
-
import "../../../shared-utils/five/mode.js";
|
|
46
|
-
import "hammerjs";
|
|
47
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
48
|
-
import "@realsee/five/line";
|
|
49
|
-
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
50
|
-
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
51
|
-
import "../../../vendor/three/build/three.module.js";
|
|
52
45
|
import "../../../shared-utils/tag.js";
|
|
53
46
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
54
47
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
@@ -58,6 +51,13 @@ import "../../../shared-utils/Utils/WorkUtil.js";
|
|
|
58
51
|
import "../../../shared-utils/five/transformPosition.js";
|
|
59
52
|
import "../../../shared-utils/three/temp.js";
|
|
60
53
|
import "../../../shared-utils/dom/resizeObserver.js";
|
|
54
|
+
import "../../../shared-utils/five/mode.js";
|
|
55
|
+
import "hammerjs";
|
|
56
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
57
|
+
import "@realsee/five/line";
|
|
58
|
+
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
59
|
+
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
60
|
+
import "../../../vendor/three/build/three.module.js";
|
|
61
61
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
62
62
|
import "animejs";
|
|
63
63
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -20,13 +20,6 @@ import "../../../shared-utils/typescript/entries.js";
|
|
|
20
20
|
import "../../utils/tag/adaptConfig.js";
|
|
21
21
|
import "../../typings/tag/TagConfig.js";
|
|
22
22
|
import "@realsee/five";
|
|
23
|
-
import "../../../shared-utils/five/mode.js";
|
|
24
|
-
import "hammerjs";
|
|
25
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
26
|
-
import "@realsee/five/line";
|
|
27
|
-
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
28
|
-
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
29
|
-
import "../../../vendor/three/build/three.module.js";
|
|
30
23
|
import "../../../shared-utils/tag.js";
|
|
31
24
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
32
25
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
@@ -36,6 +29,13 @@ import "../../../shared-utils/Utils/WorkUtil.js";
|
|
|
36
29
|
import "../../../shared-utils/five/transformPosition.js";
|
|
37
30
|
import "../../../shared-utils/three/temp.js";
|
|
38
31
|
import "../../../shared-utils/dom/resizeObserver.js";
|
|
32
|
+
import "../../../shared-utils/five/mode.js";
|
|
33
|
+
import "hammerjs";
|
|
34
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
35
|
+
import "@realsee/five/line";
|
|
36
|
+
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
37
|
+
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
38
|
+
import "../../../vendor/three/build/three.module.js";
|
|
39
39
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
40
40
|
import "animejs";
|
|
41
41
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -10,13 +10,6 @@ import "../../../shared-utils/typescript/entries.js";
|
|
|
10
10
|
import "../../utils/tag/adaptConfig.js";
|
|
11
11
|
import "../../typings/tag/TagConfig.js";
|
|
12
12
|
import "@realsee/five";
|
|
13
|
-
import "../../../shared-utils/five/mode.js";
|
|
14
|
-
import "hammerjs";
|
|
15
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
16
|
-
import "@realsee/five/line";
|
|
17
|
-
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
18
|
-
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
19
|
-
import "../../../vendor/three/build/three.module.js";
|
|
20
13
|
import "../../../shared-utils/tag.js";
|
|
21
14
|
import "../../../shared-utils/positionToVector3.js";
|
|
22
15
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
@@ -27,6 +20,13 @@ import "../../../shared-utils/Utils/WorkUtil.js";
|
|
|
27
20
|
import "../../../shared-utils/five/transformPosition.js";
|
|
28
21
|
import "../../../shared-utils/three/temp.js";
|
|
29
22
|
import "../../../shared-utils/dom/resizeObserver.js";
|
|
23
|
+
import "../../../shared-utils/five/mode.js";
|
|
24
|
+
import "hammerjs";
|
|
25
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
26
|
+
import "@realsee/five/line";
|
|
27
|
+
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
28
|
+
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
29
|
+
import "../../../vendor/three/build/three.module.js";
|
|
30
30
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
31
31
|
import "animejs";
|
|
32
32
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -29,7 +29,6 @@ export declare abstract class TagRender extends TagUtil {
|
|
|
29
29
|
usePoint?: boolean;
|
|
30
30
|
}): void;
|
|
31
31
|
bindRenderer(contentType: string, builtInRenderer: TagContentType): void;
|
|
32
|
-
clearTags(): void;
|
|
33
32
|
/**
|
|
34
33
|
* @description 渲染3D贴片
|
|
35
34
|
*/
|
|
@@ -39,8 +38,6 @@ export declare abstract class TagRender extends TagUtil {
|
|
|
39
38
|
* @param model 模型
|
|
40
39
|
*/
|
|
41
40
|
updateTagCss3DObjectMatrix<S extends 'Model' | 'Plane' = 'Model'>(tag: TagInstance<TagContentType, S>, model: Object3D): void;
|
|
42
|
-
/** 添加模型标签 */
|
|
43
|
-
protected addMediaModelTag(tags: TagInstance[]): Promise<void>;
|
|
44
41
|
protected disposeAllCSS3DContainer(): void;
|
|
45
42
|
/**
|
|
46
43
|
* @description 检查并销毁不用的3D贴片
|
|
@@ -1,37 +1,21 @@
|
|
|
1
|
-
var
|
|
1
|
+
var k = Object.defineProperty;
|
|
2
2
|
var v = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
for (var t in
|
|
6
|
-
|
|
3
|
+
var x = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var y = (m, i, t) => i in m ? k(m, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[i] = t, R = (m, i) => {
|
|
5
|
+
for (var t in i || (i = {}))
|
|
6
|
+
x.call(i, t) && y(m, t, i[t]);
|
|
7
7
|
if (v)
|
|
8
|
-
for (var t of v(
|
|
9
|
-
|
|
10
|
-
return
|
|
8
|
+
for (var t of v(i))
|
|
9
|
+
O.call(i, t) && y(m, t, i[t]);
|
|
10
|
+
return m;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
}, p = (s) => {
|
|
21
|
-
try {
|
|
22
|
-
l(t.throw(s));
|
|
23
|
-
} catch (h) {
|
|
24
|
-
o(h);
|
|
25
|
-
}
|
|
26
|
-
}, l = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(i, p);
|
|
27
|
-
l((t = t.apply(a, r)).next());
|
|
28
|
-
});
|
|
29
|
-
import { Group as y, Quaternion as G, Vector3 as C, Matrix4 as M } from "three";
|
|
30
|
-
import E from "../Components/Tag/index.js";
|
|
31
|
-
import { isMediaModelTag as P } from "../utils/tag/tagCheck.js";
|
|
32
|
-
import { centerPoint as I } from "../../shared-utils/three/centerPoint.js";
|
|
33
|
-
import { toArray as N } from "../../shared-utils/util.js";
|
|
34
|
-
import { TagUtil as U } from "./TagUtil.js";
|
|
12
|
+
var c = (m, i, t) => (y(m, typeof i != "symbol" ? i + "" : i, t), t);
|
|
13
|
+
import { Group as T, Quaternion as G, Vector3 as P, Matrix4 as C } from "three";
|
|
14
|
+
import A from "../Components/Tag/index.js";
|
|
15
|
+
import { isMediaModelTag as M } from "../utils/tag/tagCheck.js";
|
|
16
|
+
import { centerPoint as E } from "../../shared-utils/three/centerPoint.js";
|
|
17
|
+
import { toArray as I } from "../../shared-utils/util.js";
|
|
18
|
+
import { TagUtil as N } from "./TagUtil.js";
|
|
35
19
|
import "../../vendor/svelte/internal/index.js";
|
|
36
20
|
import "../Components/Tag/TextTag/index.js";
|
|
37
21
|
import "../Components/Tag/TextTag/TextTag.js";
|
|
@@ -89,12 +73,6 @@ import "../../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
|
89
73
|
import "../../vendor/svelte-carousel/src/utils/interval.js";
|
|
90
74
|
import "../Components/Common/MediaItem.js";
|
|
91
75
|
import "../Components/Tag/MarketingTag.js";
|
|
92
|
-
import "hammerjs";
|
|
93
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
94
|
-
import "@realsee/five/line";
|
|
95
|
-
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
96
|
-
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
97
|
-
import "../../vendor/three/build/three.module.js";
|
|
98
76
|
import "../../shared-utils/tag.js";
|
|
99
77
|
import "../../shared-utils/positionToVector3.js";
|
|
100
78
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
@@ -106,6 +84,12 @@ import "../../shared-utils/Utils/WorkUtil.js";
|
|
|
106
84
|
import "../../shared-utils/five/transformPosition.js";
|
|
107
85
|
import "../../shared-utils/three/temp.js";
|
|
108
86
|
import "../../shared-utils/dom/resizeObserver.js";
|
|
87
|
+
import "hammerjs";
|
|
88
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
89
|
+
import "@realsee/five/line";
|
|
90
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
91
|
+
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
92
|
+
import "../../vendor/three/build/three.module.js";
|
|
109
93
|
import "../../shared-utils/three/core/Sphere.js";
|
|
110
94
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
111
95
|
import "../utils/noTypecheck.js";
|
|
@@ -179,20 +163,20 @@ import "../../shared-utils/five/calculateThreeMouse.js";
|
|
|
179
163
|
import "../../shared-utils/three/core/Raycaster.js";
|
|
180
164
|
import "../../shared-utils/isTouchDevice.js";
|
|
181
165
|
import "../../base/BasePlugin.js";
|
|
182
|
-
class
|
|
166
|
+
class xr extends N {
|
|
183
167
|
constructor(t) {
|
|
184
168
|
super(t);
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
169
|
+
c(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
170
|
+
c(this, "contentTypeMap", /* @__PURE__ */ new Map());
|
|
171
|
+
c(this, "group", new T());
|
|
172
|
+
c(this, "imagePlaneGroup", new T());
|
|
173
|
+
c(this, "gltfObjectGroup", new T());
|
|
190
174
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
191
|
-
|
|
175
|
+
c(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
192
176
|
/** 临时状态 */
|
|
193
|
-
|
|
177
|
+
c(this, "temporaryState", { visible: !0 });
|
|
194
178
|
/** 点标签 */
|
|
195
|
-
|
|
179
|
+
c(this, "TagContainerSvelte");
|
|
196
180
|
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
|
|
197
181
|
}
|
|
198
182
|
/**
|
|
@@ -203,66 +187,59 @@ class Oe extends U {
|
|
|
203
187
|
* @param config.usePoint 是否需要标签点, 默认为 false
|
|
204
188
|
* @note 优先级低于 tag.element
|
|
205
189
|
*/
|
|
206
|
-
registerRenderer(t,
|
|
207
|
-
var
|
|
208
|
-
this.rendererMap.set(t, { renderer:
|
|
209
|
-
}
|
|
210
|
-
bindRenderer(t, e) {
|
|
211
|
-
this.contentTypeMap.set(t, e);
|
|
190
|
+
registerRenderer(t, r, o) {
|
|
191
|
+
var e;
|
|
192
|
+
this.rendererMap.set(t, { renderer: r, usePoint: (e = o == null ? void 0 : o.usePoint) != null ? e : !1 });
|
|
212
193
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
this.tags.length && (this.tags.forEach((e) => {
|
|
216
|
-
var o, i, p, l, s;
|
|
217
|
-
(i = (o = e.mediaPlane) == null ? void 0 : o.parent) == null || i.remove(e.mediaPlane), (s = (l = (p = e.model) == null ? void 0 : p.object) == null ? void 0 : l.parent) == null || s.remove(e.model.object);
|
|
218
|
-
}), this.tags = [], this.tagsLengthWillUpdate = !0, this.hooks.emit("tagsLengthChange"), (t = this.TagContainerSvelte) == null || t.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer()), this.enabledModelTagSet.clear(), this.cache.clear();
|
|
194
|
+
bindRenderer(t, r) {
|
|
195
|
+
this.contentTypeMap.set(t, r);
|
|
219
196
|
}
|
|
220
197
|
/**
|
|
221
198
|
* @description 渲染3D贴片
|
|
222
199
|
*/
|
|
223
200
|
updateRender3DDomTag(t) {
|
|
224
|
-
(t ?
|
|
225
|
-
var
|
|
201
|
+
(t ? I(t) : this.filterCSS3DTag).forEach((o) => {
|
|
202
|
+
var e, a, f, D, g, b;
|
|
226
203
|
if (o.tag3DContentSvelte) {
|
|
227
|
-
const { svelteApp:
|
|
228
|
-
if ((
|
|
229
|
-
const
|
|
230
|
-
|
|
204
|
+
const { svelteApp: d, css3DInstance: n, initialNormal: l, currentNormal: p } = o.tag3DContentSvelte;
|
|
205
|
+
if ((a = n == null ? void 0 : n.css3DObject) == null || a.setVisible((this.state.visible && ((e = o.state) == null ? void 0 : e.visible)) !== !1), d.$set({ tag: o, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !l.equals(p)) {
|
|
206
|
+
const s = new G().setFromUnitVectors(l, p);
|
|
207
|
+
n.css3DObject.setRotationFromQuaternion(s);
|
|
231
208
|
}
|
|
232
209
|
return;
|
|
233
210
|
} else {
|
|
234
|
-
if (
|
|
211
|
+
if (M(o) && !((f = o.model) != null && f.object) || ((D = o.state) == null ? void 0 : D.visible) === !1 || !this.state.visible || !this.state.enabled || !this.css3DRenderPlugin)
|
|
235
212
|
return;
|
|
236
213
|
if (o.stickType === "3DPoint" && !o.normal)
|
|
237
214
|
return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
|
|
238
|
-
const
|
|
239
|
-
if (!
|
|
215
|
+
const d = this.getPositions(o);
|
|
216
|
+
if (!d)
|
|
240
217
|
return;
|
|
241
|
-
const
|
|
242
|
-
if (!
|
|
218
|
+
const n = o.computeNormal();
|
|
219
|
+
if (!n)
|
|
243
220
|
return;
|
|
244
|
-
const
|
|
245
|
-
wrapperStyle: { zIndex: `${Math.round((1e4 - ((
|
|
246
|
-
},
|
|
247
|
-
if (o.computeRenderType() === "BehindDom" ||
|
|
248
|
-
|
|
249
|
-
const
|
|
250
|
-
|
|
221
|
+
const l = o.getConfig(), p = R({
|
|
222
|
+
wrapperStyle: { zIndex: `${Math.round((1e4 - ((g = o.getDistance()) != null ? g : 0)) * 100)}` }
|
|
223
|
+
}, l.tag3DConfig);
|
|
224
|
+
if (o.computeRenderType() === "BehindDom" || p.mode === "behind") {
|
|
225
|
+
p.mode = "behind", p.container = document.createElement("div");
|
|
226
|
+
const h = "black";
|
|
227
|
+
p.container.style.backgroundColor = h, p.container.style.border = `3px solid ${h}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
251
228
|
var S;
|
|
252
|
-
if (
|
|
253
|
-
const
|
|
254
|
-
this.hooks.emit("click", { event:
|
|
229
|
+
if (s.css3DObject.opacityMesh && l.clickable !== !1) {
|
|
230
|
+
const j = this.addObjectClickHandler(o, s.css3DObject.opacityMesh, (w) => {
|
|
231
|
+
this.hooks.emit("click", { event: w, target: "TagContent", tag: o });
|
|
255
232
|
});
|
|
256
|
-
(S = this.store.css3DRenderDisposer.get(o.id)) == null || S.push(
|
|
233
|
+
(S = this.store.css3DRenderDisposer.get(o.id)) == null || S.push(j);
|
|
257
234
|
}
|
|
258
235
|
});
|
|
259
236
|
}
|
|
260
|
-
const
|
|
261
|
-
if (!
|
|
237
|
+
const s = this.css3DRenderPlugin.create3DDomContainer(d, p);
|
|
238
|
+
if (!s)
|
|
262
239
|
return;
|
|
263
|
-
this.store.css3DRenderDisposer.set(o.id, [
|
|
264
|
-
const
|
|
265
|
-
target:
|
|
240
|
+
this.store.css3DRenderDisposer.set(o.id, [s.dispose]);
|
|
241
|
+
const u = new A({
|
|
242
|
+
target: s.container,
|
|
266
243
|
props: {
|
|
267
244
|
tag: o,
|
|
268
245
|
hooks: this.hooks,
|
|
@@ -273,15 +250,15 @@ class Oe extends U {
|
|
|
273
250
|
}
|
|
274
251
|
});
|
|
275
252
|
o.tag3DContentSvelte = {
|
|
276
|
-
svelteApp:
|
|
277
|
-
domContainer:
|
|
278
|
-
css3DInstance:
|
|
279
|
-
initialNormal:
|
|
280
|
-
currentNormal:
|
|
253
|
+
svelteApp: u,
|
|
254
|
+
domContainer: s,
|
|
255
|
+
css3DInstance: s,
|
|
256
|
+
initialNormal: n,
|
|
257
|
+
currentNormal: n,
|
|
281
258
|
dispose: () => {
|
|
282
|
-
|
|
259
|
+
u.$destroy(), s.dispose();
|
|
283
260
|
}
|
|
284
|
-
},
|
|
261
|
+
}, M(o) && ((b = o.model) != null && b.object) && this.updateTagCss3DObjectMatrix(o, o.model.object);
|
|
285
262
|
}
|
|
286
263
|
}), this.clearUnusedPanelTag();
|
|
287
264
|
}
|
|
@@ -289,30 +266,23 @@ class Oe extends U {
|
|
|
289
266
|
* @param tag 标签
|
|
290
267
|
* @param model 模型
|
|
291
268
|
*/
|
|
292
|
-
updateTagCss3DObjectMatrix(t,
|
|
293
|
-
var
|
|
294
|
-
const o = (
|
|
295
|
-
if (!
|
|
269
|
+
updateTagCss3DObjectMatrix(t, r) {
|
|
270
|
+
var s, u, h;
|
|
271
|
+
const o = (u = (s = t.getConfig().tag3DConfig) == null ? void 0 : s.ratio) != null ? u : 216e-5, e = (h = t.tag3DContentSvelte) == null ? void 0 : h.css3DInstance.css3DObject;
|
|
272
|
+
if (!e)
|
|
296
273
|
return;
|
|
297
|
-
const
|
|
298
|
-
if (!
|
|
274
|
+
const a = M(t) ? t.data.mediaPosition : t.position;
|
|
275
|
+
if (!a || a.length !== 4 || !Array.isArray(a[0]) || !Array.isArray(a[2]))
|
|
299
276
|
return;
|
|
300
|
-
|
|
301
|
-
const
|
|
302
|
-
|
|
303
|
-
const
|
|
304
|
-
|
|
305
|
-
}
|
|
306
|
-
/** 添加模型标签 */
|
|
307
|
-
addMediaModelTag(t) {
|
|
308
|
-
return w(this, null, function* () {
|
|
309
|
-
const e = t.filter((o) => o.stickType === "Model").map((o) => o.loadModel());
|
|
310
|
-
yield Promise.all(e), t.forEach((o) => o.updateVisible());
|
|
311
|
-
});
|
|
277
|
+
r.updateWorldMatrix(!1, !1);
|
|
278
|
+
const f = r.matrixWorld, D = new P().fromArray(a[0]), g = new P().fromArray(a[2]), b = E(D, g).add(new P(0, 0, 5e-4)), d = new C().setPosition(b), n = new C().makeScale(o, o, o), l = new C().multiply(f).multiply(d).multiply(n);
|
|
279
|
+
l.decompose(e.position, e.quaternion, e.scale);
|
|
280
|
+
const p = e.opacityMesh;
|
|
281
|
+
p && l.decompose(p.position, p.quaternion, p.scale);
|
|
312
282
|
}
|
|
313
283
|
disposeAllCSS3DContainer() {
|
|
314
284
|
for (const [, t] of this.store.css3DRenderDisposer)
|
|
315
|
-
t == null || t.forEach((
|
|
285
|
+
t == null || t.forEach((r) => r == null ? void 0 : r());
|
|
316
286
|
this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
|
|
317
287
|
}
|
|
318
288
|
/**
|
|
@@ -320,15 +290,15 @@ class Oe extends U {
|
|
|
320
290
|
*/
|
|
321
291
|
clearUnusedPanelTag() {
|
|
322
292
|
this.filter2DPointTag.forEach((t) => {
|
|
323
|
-
var
|
|
324
|
-
(
|
|
293
|
+
var r;
|
|
294
|
+
(r = t.tag3DContentSvelte) == null || r.css3DInstance.dispose(), t.tag3DContentSvelte = void 0;
|
|
325
295
|
});
|
|
326
|
-
for (const [t,
|
|
296
|
+
for (const [t, r] of this.store.css3DRenderDisposer) {
|
|
327
297
|
const o = this.getTagById(t);
|
|
328
|
-
(!o || o.stickType === "2DPoint") && (
|
|
298
|
+
(!o || o.stickType === "2DPoint") && (r == null || r.forEach((e) => e == null ? void 0 : e()), this.store.css3DRenderDisposer.delete(t));
|
|
329
299
|
}
|
|
330
300
|
}
|
|
331
301
|
}
|
|
332
302
|
export {
|
|
333
|
-
|
|
303
|
+
xr as TagRender
|
|
334
304
|
};
|
|
@@ -26,11 +26,6 @@ import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
|
26
26
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
27
27
|
import "../../shared-utils/three/centerPoint.js";
|
|
28
28
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
29
|
-
import "hammerjs";
|
|
30
|
-
import "@realsee/five/line";
|
|
31
|
-
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
32
|
-
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
33
|
-
import "../../vendor/three/build/three.module.js";
|
|
34
29
|
import "../../shared-utils/tag.js";
|
|
35
30
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
36
31
|
import "../../shared-utils/five/getFiveModel.js";
|
|
@@ -40,6 +35,11 @@ import "../../shared-utils/Utils/WorkUtil.js";
|
|
|
40
35
|
import "../../shared-utils/five/transformPosition.js";
|
|
41
36
|
import "../../shared-utils/three/temp.js";
|
|
42
37
|
import "../../shared-utils/dom/resizeObserver.js";
|
|
38
|
+
import "hammerjs";
|
|
39
|
+
import "@realsee/five/line";
|
|
40
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
41
|
+
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
42
|
+
import "../../vendor/three/build/three.module.js";
|
|
43
43
|
import "../../shared-utils/three/core/Sphere.js";
|
|
44
44
|
import "animejs";
|
|
45
45
|
import "../../shared-utils/isNil.js";
|