@realsee/dnalogel 3.45.0 → 3.46.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/Sculpt/Meshes/Line.d.ts +6 -1
- package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +29600 -29557
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/tag.d.ts +6 -3
- package/libs/AreaMakerPlugin/Controller.js +151 -78
- package/libs/AreaMakerPlugin/index.js +77 -4
- package/libs/AreaMakerPlugin/utils/Item.js +191 -111
- package/libs/CSS3DRenderPlugin/Controller.js +90 -29
- package/libs/CSS3DRenderPlugin/index.js +76 -15
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +133 -58
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +182 -116
- package/libs/CruisePlugin/BaseController.js +122 -49
- package/libs/CruisePlugin/Move.js +74 -21
- package/libs/CruisePlugin/Work.js +99 -46
- package/libs/CruisePlugin/index.js +80 -27
- package/libs/CurrentPanoImagePlugin/Controller.js +177 -104
- package/libs/CurrentPanoImagePlugin/index.js +77 -4
- package/libs/GuideLinePlugin/Controller.js +79 -26
- package/libs/GuideLinePlugin/GuideLineItem.js +83 -30
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +82 -29
- package/libs/GuideLinePlugin/index.js +80 -27
- package/libs/ModelMakerPlugin/Controller.js +140 -82
- package/libs/ModelMakerPlugin/index.js +76 -18
- package/libs/ModelTVVideoPlugin/Plugin.js +118 -57
- package/libs/ModelTVVideoPlugin/index.js +69 -8
- package/libs/Object3DHelperPlugin/Controller.js +67 -43
- package/libs/Object3DHelperPlugin/index.js +36 -13
- package/libs/PanoCompassPlugin/Controller.js +98 -42
- package/libs/PanoCompassPlugin/index.js +72 -16
- package/libs/PanoDoorLabelPlugin/BaseController.js +99 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +188 -115
- package/libs/PanoDoorLabelPlugin/index.js +77 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -88
- package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -126
- package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -72
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +168 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +110 -64
- package/libs/PanoMeasurePlugin/Model/area.js +115 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +79 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -45
- package/libs/PanoMeasurePlugin/index.js +77 -31
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +99 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +211 -150
- package/libs/PanoSpatialTagPlugin/index.js +67 -6
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +149 -68
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +296 -216
- package/libs/PanoTagPlugin/Components/Tag/index.js +258 -187
- package/libs/PanoTagPlugin/Components/TagContainer.js +158 -87
- package/libs/PanoTagPlugin/Components/TagItem.js +145 -74
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +133 -62
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +110 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +106 -35
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +114 -43
- package/libs/PanoTagPlugin/controller/TagRender.js +133 -80
- package/libs/PanoTagPlugin/controller/TagUtil.js +137 -84
- package/libs/PanoTagPlugin/controller/index.js +114 -61
- package/libs/PanoTagPlugin/index.js +90 -37
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +122 -41
- package/libs/PanoVideoPlugin/Controller.js +138 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +150 -69
- package/libs/PanoVideoPlugin/index.js +83 -10
- package/libs/PipelinePlugin/Controller.js +200 -128
- package/libs/PipelinePlugin/index.js +77 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +103 -22
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +96 -15
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +137 -56
- package/libs/Sculpt/Meshes/Box.js +6 -5
- package/libs/Sculpt/Meshes/Cylinder.js +7 -6
- package/libs/Sculpt/Meshes/Line.d.ts +6 -1
- package/libs/Sculpt/Meshes/Line.js +80 -57
- package/libs/Sculpt/Meshes/Point.js +6 -5
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Objects/Base/index.js +20 -17
- package/libs/Sculpt/Objects/Line/Editor.js +11 -10
- package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
- package/libs/Sculpt/utils/removeAllTag.js +10 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +129 -59
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +76 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +130 -59
- package/libs/floorplan/ModelFloorplanPlugin/index.js +76 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +159 -86
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +77 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +152 -81
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +76 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +193 -192
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +6 -3
- package/libs/shared-utils/tag.js +38 -24
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
|
@@ -24,21 +24,92 @@ import "../../../shared-utils/five/mode.js";
|
|
|
24
24
|
import "hammerjs";
|
|
25
25
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
26
26
|
import "@realsee/five/line";
|
|
27
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
28
|
+
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
29
|
+
import "../../../Object3DHelperPlugin/Controller.js";
|
|
30
|
+
import "../../../base/BasePlugin.js";
|
|
27
31
|
import "../../../shared-utils/three/THREESphere.js";
|
|
28
32
|
import "animejs";
|
|
33
|
+
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
34
|
+
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
35
|
+
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
36
|
+
import "../../../shared-utils/five/transformPosition.js";
|
|
37
|
+
import "../../../shared-utils/five/getFiveModel.js";
|
|
38
|
+
import "../../../shared-utils/url/absoluteUrl.js";
|
|
29
39
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
40
|
+
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
41
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
42
|
+
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
43
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
44
|
+
import "../../../shared-utils/three/boundingBox.js";
|
|
45
|
+
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
46
|
+
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
47
|
+
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
48
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
49
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
50
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
51
|
+
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
52
|
+
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
53
|
+
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
54
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
55
|
+
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
56
|
+
import "../../../shared-utils/three/getObjectVisible.js";
|
|
57
|
+
import "../../../shared-utils/isNil.js";
|
|
58
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
59
|
+
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
60
|
+
import "../../../shared-utils/util.js";
|
|
61
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
62
|
+
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
63
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
64
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
65
|
+
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
66
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
67
|
+
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
68
|
+
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
69
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
70
|
+
import "../../../shared-utils/threex/domevents/index.js";
|
|
71
|
+
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
72
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
73
|
+
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
74
|
+
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
75
|
+
import "../../../shared-utils/Object3DHelper/index.js";
|
|
76
|
+
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
77
|
+
import "../../../shared-utils/math/rad2Deg.js";
|
|
78
|
+
import "../../../shared-utils/math/deg2Rad.js";
|
|
79
|
+
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
80
|
+
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
81
|
+
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
82
|
+
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
83
|
+
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
84
|
+
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
85
|
+
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
86
|
+
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
87
|
+
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
88
|
+
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
89
|
+
import "../../../shared-utils/three/THREERaycaster.js";
|
|
90
|
+
import "../../../shared-utils/three/PointSelector/index.js";
|
|
91
|
+
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
92
|
+
import "../../../shared-utils/three/Magnifier.js";
|
|
93
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
94
|
+
import "../../../shared-utils/three/Assets/index.js";
|
|
95
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
96
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
97
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
98
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
99
|
+
import "../../../Sculpt/typings/style.js";
|
|
100
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
101
|
+
import "../../../shared-utils/tag.js";
|
|
102
|
+
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
103
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
104
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
105
|
+
import "../../../shared-utils/isTouchDevice.js";
|
|
106
|
+
import "../../../shared-utils/five/getPosition.js";
|
|
107
|
+
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
30
108
|
import "../../utils/tag/format.js";
|
|
31
109
|
import "../../../shared-utils/three/blink.js";
|
|
32
|
-
import "../../../shared-utils/util.js";
|
|
33
110
|
import "../../../shared-utils/vectorToCoordinate.js";
|
|
34
111
|
import "../../../shared-utils/formatRad.js";
|
|
35
|
-
import "../../../shared-utils/five/transformPosition.js";
|
|
36
|
-
import "../../../shared-utils/isNil.js";
|
|
37
112
|
import "../../../shared-utils/five/lookPoint.js";
|
|
38
|
-
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
39
|
-
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
40
|
-
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
41
|
-
import "../../../shared-utils/five/getFiveModel.js";
|
|
42
113
|
import "../../../shared-utils/uuid.js";
|
|
43
114
|
import "../../utils/tagPosition.js";
|
|
44
115
|
import "../../utils/tag/tagCheck.js";
|
|
@@ -49,54 +120,54 @@ import "../../../shared-utils/safeObj.js";
|
|
|
49
120
|
import "../../utils/Cache.js";
|
|
50
121
|
import "../../../CruisePlugin/utils/sleep.js";
|
|
51
122
|
const P = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
|
|
52
|
-
class
|
|
53
|
-
constructor(
|
|
54
|
-
super(
|
|
123
|
+
class wi extends f {
|
|
124
|
+
constructor(i, t) {
|
|
125
|
+
super(i, t), this.state.unfolded = !0;
|
|
55
126
|
}
|
|
56
127
|
applyVisible() {
|
|
57
|
-
var
|
|
58
|
-
this.computeRenderType() === "Mesh" ? ((r = (
|
|
128
|
+
var t, r, o, p, m, e;
|
|
129
|
+
this.computeRenderType() === "Mesh" ? ((r = (t = this.data.mediaData) == null ? void 0 : t[0]) == null ? void 0 : r.type) === "Video" ? this.renderVideoPlane() : ((p = (o = this.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : p.type) === "Image" && this.renderImagePlane() : ((m = this.tag3DContentSvelte) == null || m.svelteApp.$set({ tag: this, state: this.plugin.state }), (e = this.tag3DContentSvelte) == null || e.css3DInstance.setVisible(this.currentVisible));
|
|
59
130
|
}
|
|
60
131
|
renderVideoPlane() {
|
|
61
|
-
var
|
|
62
|
-
const
|
|
63
|
-
if (!
|
|
132
|
+
var e;
|
|
133
|
+
const i = this.data.mediaData[0];
|
|
134
|
+
if (!i)
|
|
64
135
|
return;
|
|
65
|
-
const { url:
|
|
66
|
-
if (!
|
|
136
|
+
const { url: t } = i;
|
|
137
|
+
if (!t)
|
|
67
138
|
return;
|
|
68
|
-
const r = this.currentVisible,
|
|
69
|
-
if ((
|
|
70
|
-
const
|
|
71
|
-
videoCoverSrc:
|
|
139
|
+
const r = this.currentVisible, o = (() => !!(this.mediaPlane && !r))(), p = (() => !!(!this.mediaPlane && r))(), m = (() => !!(this.mediaPlane && this.mediaPlane.src !== t))();
|
|
140
|
+
if ((o || m) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), p || m) {
|
|
141
|
+
const s = this.position.map(d), a = new u(t, s, {
|
|
142
|
+
videoCoverSrc: i.videoCoverUrl,
|
|
72
143
|
playButton: this.data.playIcon,
|
|
73
|
-
paused: !((
|
|
144
|
+
paused: !((e = this.data.autoplayConfig) != null && e.autoplayVideo),
|
|
74
145
|
objectFit: this.data.objectFit,
|
|
75
146
|
videoTextureMap: P,
|
|
76
147
|
ImageTextureMap: v,
|
|
77
148
|
domEvents: this.plugin.domEvents
|
|
78
149
|
});
|
|
79
|
-
|
|
80
|
-
|
|
150
|
+
a.onVideoReady = (n) => {
|
|
151
|
+
n.addEventListener("play", () => this.plugin.mediaStore.set({ currentMediaElement: a.videoInstance }));
|
|
81
152
|
};
|
|
82
|
-
const l = (
|
|
83
|
-
|
|
153
|
+
const l = (n) => (this.five.on("renderFrame", n), () => this.five.off("renderFrame", n));
|
|
154
|
+
a.initialRenderHooks(l), this.mediaPlane = a, this.plugin.imagePlaneGroup.add(this.mediaPlane);
|
|
84
155
|
}
|
|
85
156
|
this.five.needsRender = !0;
|
|
86
157
|
}
|
|
87
158
|
renderImagePlane() {
|
|
88
|
-
const
|
|
89
|
-
if (!
|
|
159
|
+
const i = this.data.mediaData[0];
|
|
160
|
+
if (!i)
|
|
90
161
|
return;
|
|
91
|
-
const { url:
|
|
92
|
-
if (!
|
|
162
|
+
const { url: t } = i;
|
|
163
|
+
if (!t)
|
|
93
164
|
return;
|
|
94
|
-
const r = this.position.map(d),
|
|
95
|
-
(
|
|
165
|
+
const r = this.position.map(d), o = this.currentVisible, p = (() => !!(this.mediaPlane && !o))(), m = (() => !!(!this.mediaPlane && o))(), e = (() => !!(this.mediaPlane && this.mediaPlane.src !== t))();
|
|
166
|
+
(p || e) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (m || e) && (this.mediaPlane = new c(t, r, { objectFit: this.data.objectFit }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
|
|
96
167
|
this.mediaPlane,
|
|
97
168
|
"click",
|
|
98
|
-
(
|
|
99
|
-
this.plugin.hooks.emit("click", { tag: this, target: "TagContent", event:
|
|
169
|
+
(s) => {
|
|
170
|
+
this.plugin.hooks.emit("click", { tag: this, target: "TagContent", event: s.origDomEvent });
|
|
100
171
|
},
|
|
101
172
|
{ noEmitWhenHide: !0 }
|
|
102
173
|
), this.plugin.imagePlaneGroup.add(this.mediaPlane)), this.five.needsRender = !0;
|
|
@@ -106,5 +177,5 @@ class fe extends f {
|
|
|
106
177
|
}
|
|
107
178
|
}
|
|
108
179
|
export {
|
|
109
|
-
|
|
180
|
+
wi as PlaneTag
|
|
110
181
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var h = Object.defineProperty;
|
|
2
|
+
var f = (s, r, t) => r in s ? h(s, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[r] = t;
|
|
3
|
+
var p = (s, r, t) => (f(s, typeof r != "symbol" ? r + "" : r, t), t);
|
|
4
4
|
import { BaseTag as g } from "./BaseTag.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as d from "three";
|
|
6
6
|
import { cancelIdleCallback as b, requestIdleCallback as y } from "../../utils/requestIdleCallback.js";
|
|
7
7
|
import "../../../shared-utils/Subscribe.js";
|
|
8
8
|
import "../../utils/tag/calculateTagConfig.js";
|
|
@@ -15,23 +15,94 @@ import "../../../shared-utils/five/mode.js";
|
|
|
15
15
|
import "hammerjs";
|
|
16
16
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
17
17
|
import "@realsee/five/line";
|
|
18
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
19
|
+
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
20
|
+
import "../../../Object3DHelperPlugin/Controller.js";
|
|
21
|
+
import "../../../base/BasePlugin.js";
|
|
18
22
|
import "../../../shared-utils/three/THREESphere.js";
|
|
19
23
|
import "animejs";
|
|
24
|
+
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
25
|
+
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
26
|
+
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
27
|
+
import "../../../shared-utils/five/transformPosition.js";
|
|
28
|
+
import "../../../shared-utils/five/getFiveModel.js";
|
|
29
|
+
import "../../../shared-utils/url/absoluteUrl.js";
|
|
20
30
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
21
|
-
import "
|
|
22
|
-
import "../../../shared-utils/
|
|
31
|
+
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
32
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
33
|
+
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
34
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
35
|
+
import "../../../shared-utils/three/boundingBox.js";
|
|
36
|
+
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
37
|
+
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
38
|
+
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
39
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
40
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
23
41
|
import "../../../shared-utils/positionToVector3.js";
|
|
24
|
-
import "../../../
|
|
42
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
43
|
+
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
44
|
+
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
45
|
+
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
46
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
47
|
+
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
48
|
+
import "../../../shared-utils/three/centerPoint.js";
|
|
49
|
+
import "../../../shared-utils/three/getObjectVisible.js";
|
|
50
|
+
import "../../../shared-utils/isNil.js";
|
|
51
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
52
|
+
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
25
53
|
import "../../../shared-utils/util.js";
|
|
54
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
55
|
+
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
56
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
57
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
58
|
+
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
59
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
60
|
+
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
61
|
+
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
62
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
63
|
+
import "../../../shared-utils/threex/domevents/index.js";
|
|
64
|
+
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
65
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
66
|
+
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
67
|
+
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
68
|
+
import "../../../shared-utils/Object3DHelper/index.js";
|
|
69
|
+
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
70
|
+
import "../../../shared-utils/math/rad2Deg.js";
|
|
71
|
+
import "../../../shared-utils/math/deg2Rad.js";
|
|
72
|
+
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
73
|
+
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
74
|
+
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
75
|
+
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
76
|
+
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
77
|
+
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
78
|
+
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
79
|
+
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
80
|
+
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
81
|
+
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
82
|
+
import "../../../shared-utils/three/THREERaycaster.js";
|
|
83
|
+
import "../../../shared-utils/three/PointSelector/index.js";
|
|
84
|
+
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
85
|
+
import "../../../shared-utils/three/Magnifier.js";
|
|
86
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
87
|
+
import "../../../shared-utils/three/Assets/index.js";
|
|
88
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
89
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
90
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
91
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
92
|
+
import "../../../Sculpt/typings/style.js";
|
|
93
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
94
|
+
import "../../../shared-utils/tag.js";
|
|
95
|
+
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
96
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
97
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
98
|
+
import "../../../shared-utils/isTouchDevice.js";
|
|
99
|
+
import "../../../shared-utils/five/getPosition.js";
|
|
100
|
+
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
101
|
+
import "../../utils/tag/format.js";
|
|
102
|
+
import "../../../shared-utils/three/blink.js";
|
|
26
103
|
import "../../../shared-utils/vectorToCoordinate.js";
|
|
27
104
|
import "../../../shared-utils/formatRad.js";
|
|
28
|
-
import "../../../shared-utils/five/transformPosition.js";
|
|
29
|
-
import "../../../shared-utils/isNil.js";
|
|
30
105
|
import "../../../shared-utils/five/lookPoint.js";
|
|
31
|
-
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
32
|
-
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
33
|
-
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
34
|
-
import "../../../shared-utils/five/getFiveModel.js";
|
|
35
106
|
import "../../../shared-utils/uuid.js";
|
|
36
107
|
import "../../utils/tagPosition.js";
|
|
37
108
|
import "../../utils/tag/tagCheck.js";
|
|
@@ -41,19 +112,19 @@ import "../../../shared-utils/five/getFloorIndex.js";
|
|
|
41
112
|
import "../../../shared-utils/safeObj.js";
|
|
42
113
|
import "../../utils/Cache.js";
|
|
43
114
|
import "../../../CruisePlugin/utils/sleep.js";
|
|
44
|
-
const v = new
|
|
45
|
-
class
|
|
46
|
-
constructor(t,
|
|
47
|
-
super(t,
|
|
48
|
-
|
|
49
|
-
|
|
115
|
+
const v = new d.Vector2();
|
|
116
|
+
class ki extends g {
|
|
117
|
+
constructor(t, i) {
|
|
118
|
+
super(t, i);
|
|
119
|
+
p(this, "__Object__");
|
|
120
|
+
p(this, "requestIdleCallbackId");
|
|
50
121
|
}
|
|
51
122
|
/**
|
|
52
123
|
* @description 展开自己,收起其他标签
|
|
53
124
|
*/
|
|
54
125
|
unfoldAndFoldOthers() {
|
|
55
|
-
const t = this.can("fold"),
|
|
56
|
-
t &&
|
|
126
|
+
const t = this.can("fold"), i = this.can("unfold");
|
|
127
|
+
t && i && (this.state.unfolded = !this.state.unfolded, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.state.unfolded && this.plugin.tags.forEach((o) => {
|
|
57
128
|
o.id !== this.id && o.fold();
|
|
58
129
|
}));
|
|
59
130
|
}
|
|
@@ -66,8 +137,8 @@ class rt extends g {
|
|
|
66
137
|
});
|
|
67
138
|
}
|
|
68
139
|
applyVisible() {
|
|
69
|
-
var t,
|
|
70
|
-
this.currentVisible && this.updateScreenPosition(), (o = (
|
|
140
|
+
var t, i, o, e;
|
|
141
|
+
this.currentVisible && this.updateScreenPosition(), (o = (i = (t = this.tag3DContentSvelte) == null ? void 0 : t.css3DInstance) == null ? void 0 : i.css3DObject) == null || o.setVisible(this.currentVisible), (e = this.tag3DContentSvelte) == null || e.svelteApp.$set({
|
|
71
142
|
state: this.plugin.state,
|
|
72
143
|
temporaryState: this.temporaryState
|
|
73
144
|
}), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
@@ -83,38 +154,38 @@ class rt extends g {
|
|
|
83
154
|
* @param {boolean} unfolded
|
|
84
155
|
*/
|
|
85
156
|
setUnfold(t) {
|
|
86
|
-
const
|
|
87
|
-
|
|
157
|
+
const i = this.can("fold"), o = this.can("unfold");
|
|
158
|
+
i && o && (this.state.unfolded = t, this.hooks.emit(t ? "unfolded" : "folded"), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
|
|
88
159
|
}
|
|
89
160
|
setPosition(t) {
|
|
90
161
|
this.originPosition = t, this.position = t, this.cache.clear(), this.updateVisible(), this.updateScreenPosition(), this.updateZIndex(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
91
162
|
}
|
|
92
163
|
updateScreenPosition(t) {
|
|
93
|
-
var
|
|
164
|
+
var m;
|
|
94
165
|
if (this.stickType !== "2DPoint" && this.stickType !== "3DPoint")
|
|
95
166
|
return;
|
|
96
|
-
const { force:
|
|
167
|
+
const { force: i = !1 } = t != null ? t : {}, o = i ? this.state.visible : this.currentVisible, e = (m = this.__Object__) != null ? m : {
|
|
97
168
|
timeoutId: void 0,
|
|
98
169
|
inAnimation: !1
|
|
99
170
|
};
|
|
100
|
-
if (this.__Object__ =
|
|
171
|
+
if (this.__Object__ = e, !o && this.screenPosition ? (e.inAnimation = !0, e.timeoutId = setTimeout(() => {
|
|
101
172
|
requestAnimationFrame(() => {
|
|
102
|
-
this.currentVisible || (
|
|
173
|
+
this.currentVisible || (e.inAnimation = !1, this.screenPosition = null, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
|
|
103
174
|
});
|
|
104
|
-
}, 1e3)) :
|
|
175
|
+
}, 1e3)) : e.timeoutId && (clearTimeout(e.timeoutId), e.inAnimation = !1, e.timeoutId = void 0), !o && !e.inAnimation)
|
|
105
176
|
return;
|
|
106
|
-
const
|
|
107
|
-
if (
|
|
108
|
-
const
|
|
177
|
+
const n = this.computeTagProject();
|
|
178
|
+
if (n) {
|
|
179
|
+
const a = (() => {
|
|
109
180
|
if (!this.currentConfig.simulate3D)
|
|
110
181
|
return 1;
|
|
111
|
-
const
|
|
112
|
-
return Math.max(Math.min(1 -
|
|
113
|
-
})(),
|
|
182
|
+
const u = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), c = this.getDistance(void 0, 1);
|
|
183
|
+
return Math.max(Math.min(1 - u * c / 40, 1), 0.5);
|
|
184
|
+
})(), l = this.five.renderer.getSize(v);
|
|
114
185
|
this.screenPosition = {
|
|
115
|
-
leftPx: (
|
|
116
|
-
topPx: (-
|
|
117
|
-
scale:
|
|
186
|
+
leftPx: (n.x + 1) / 2 * l.x,
|
|
187
|
+
topPx: (-n.y + 1) / 2 * l.y,
|
|
188
|
+
scale: a
|
|
118
189
|
};
|
|
119
190
|
} else
|
|
120
191
|
this.screenPosition = null;
|
|
@@ -123,17 +194,17 @@ class rt extends g {
|
|
|
123
194
|
updateUnfoldedByPanoIndex() {
|
|
124
195
|
const t = this.getUnfoldedByPanoIndex();
|
|
125
196
|
if (this.state && (t !== void 0 && (this.state.unfolded = t), t && !this.state.visible)) {
|
|
126
|
-
const
|
|
127
|
-
typeof
|
|
197
|
+
const i = this.getConfig();
|
|
198
|
+
typeof i.unfoldedConfig == "object" && i.unfoldedConfig.autoFoldWhenHide !== !1 && (this.state.unfolded = !1);
|
|
128
199
|
}
|
|
129
200
|
}
|
|
130
201
|
computeNormal() {
|
|
131
|
-
return new
|
|
202
|
+
return new d.Vector3().fromArray(this.normal);
|
|
132
203
|
}
|
|
133
204
|
destroy() {
|
|
134
205
|
this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
135
206
|
}
|
|
136
207
|
}
|
|
137
208
|
export {
|
|
138
|
-
|
|
209
|
+
ki as PointTag
|
|
139
210
|
};
|