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