@realsee/dnalogel 3.50.17-alpha.0 → 3.51.0
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 +3 -0
- package/dist/ModelMakerPlugin/Controller.d.ts +2 -0
- package/dist/Sculpt/utils/export.d.ts +18 -0
- package/dist/index.cjs.js +207 -207
- package/dist/index.js +34866 -34775
- package/dist/index.umd.js +211 -211
- package/dist/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
- package/dist/shared-utils/index.d.ts +1 -0
- package/dist/shared-utils/tag.d.ts +40 -1
- package/dist/shared-utils/three/temp.d.ts +2 -2
- package/libs/AreaMakerPlugin/Controller.js +100 -46
- package/libs/AreaMakerPlugin/index.js +64 -10
- package/libs/AreaMakerPlugin/utils/Item.js +156 -100
- package/libs/CSS3DRenderPlugin/Controller.js +93 -44
- package/libs/CSS3DRenderPlugin/index.js +62 -13
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +105 -49
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +130 -77
- package/libs/CruisePlugin/BaseController.js +143 -89
- package/libs/CruisePlugin/Move.js +83 -39
- package/libs/CruisePlugin/Work.js +95 -51
- package/libs/CruisePlugin/index.js +66 -22
- package/libs/CurrentPanoImagePlugin/Controller.js +139 -85
- package/libs/CurrentPanoImagePlugin/index.js +63 -9
- package/libs/GuideLinePlugin/Controller.js +57 -13
- package/libs/GuideLinePlugin/GuideLineItem.js +63 -19
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +6 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +58 -14
- package/libs/GuideLinePlugin/index.js +66 -22
- package/libs/ModelMakerPlugin/Controller.d.ts +2 -0
- package/libs/ModelMakerPlugin/Controller.js +190 -129
- package/libs/ModelMakerPlugin/index.js +63 -21
- package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +5 -3
- package/libs/ModelMakerPlugin/item/polygonItem.js +9 -7
- package/libs/ModelMakerPlugin/item/prismItem.js +5 -3
- package/libs/ModelTVVideoPlugin/Plugin.js +96 -47
- package/libs/ModelTVVideoPlugin/index.js +55 -6
- package/libs/Object3DHelperPlugin/Controller.js +42 -25
- package/libs/Object3DHelperPlugin/index.js +28 -12
- package/libs/PanoCompassPlugin/Controller.js +92 -44
- package/libs/PanoCompassPlugin/index.js +63 -15
- package/libs/PanoDoorLabelPlugin/BaseController.js +79 -25
- package/libs/PanoDoorLabelPlugin/Controller.js +132 -78
- package/libs/PanoDoorLabelPlugin/index.js +63 -9
- package/libs/PanoMeasurePlugin/Components/Controller0.js +126 -77
- package/libs/PanoMeasurePlugin/Components/Controller1.js +139 -90
- package/libs/PanoMeasurePlugin/Controller/EditController.js +120 -71
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +120 -70
- package/libs/PanoMeasurePlugin/Controller/index.js +132 -86
- package/libs/PanoMeasurePlugin/Model/area.js +72 -22
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +56 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +64 -15
- package/libs/PanoMeasurePlugin/index.js +62 -16
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +57 -2
- package/libs/PanoRulerProPlugin/Controller.js +88 -33
- package/libs/PanoRulerProPlugin/RulerItems.js +146 -91
- package/libs/PanoRulerProPlugin/index.js +64 -9
- package/libs/PanoSpatialTagPlugin/Plugin.js +177 -128
- package/libs/PanoSpatialTagPlugin/index.js +53 -4
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +116 -60
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +192 -136
- package/libs/PanoTagPlugin/Components/Tag/index.js +194 -139
- package/libs/PanoTagPlugin/Components/TagContainer.js +112 -57
- package/libs/PanoTagPlugin/Components/TagItem.js +204 -149
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +157 -101
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +75 -20
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +86 -31
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +93 -37
- package/libs/PanoTagPlugin/controller/TagRender.js +62 -18
- package/libs/PanoTagPlugin/controller/TagUtil.js +123 -79
- package/libs/PanoTagPlugin/controller/index.js +110 -72
- package/libs/PanoTagPlugin/index.js +72 -28
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +77 -21
- package/libs/PanoVideoPlugin/Controller.js +95 -41
- package/libs/PanoVideoPlugin/VideoMeshController.js +119 -63
- package/libs/PanoVideoPlugin/index.js +66 -12
- package/libs/PipelinePlugin/Controller.js +173 -119
- package/libs/PipelinePlugin/index.js +63 -9
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +70 -14
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +58 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +98 -42
- package/libs/Sculpt/Meshes/Box.js +3 -2
- package/libs/Sculpt/Meshes/Cylinder.js +10 -6
- package/libs/Sculpt/Meshes/Line.js +43 -38
- package/libs/Sculpt/Meshes/LineWithDots.js +14 -10
- package/libs/Sculpt/Meshes/Point.js +24 -20
- package/libs/Sculpt/Meshes/Polygon.js +5 -2
- package/libs/Sculpt/Meshes/Prism.js +19 -16
- package/libs/Sculpt/Objects/Line/Editor.js +6 -5
- package/libs/Sculpt/index.js +15 -14
- package/libs/Sculpt/utils/export.d.ts +18 -0
- package/libs/Sculpt/utils/export.js +21 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +26 -22
- package/libs/base/BasePlugin.js +14 -10
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +146 -94
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +62 -10
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +109 -56
- package/libs/floorplan/ModelFloorplanPlugin/index.js +62 -9
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +116 -63
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +62 -9
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +105 -52
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +62 -9
- package/libs/floorplan/index.js +4 -0
- package/libs/index.js +208 -206
- package/libs/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
- package/libs/shared-utils/five/fiveEveryReadyListener.js +15 -0
- package/libs/shared-utils/five/index.js +6 -2
- package/libs/shared-utils/five/lookObject.js +31 -27
- package/libs/shared-utils/index.d.ts +1 -0
- package/libs/shared-utils/index.js +19 -17
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +40 -1
- package/libs/shared-utils/tag.js +139 -86
- package/libs/shared-utils/three/index.js +4 -0
- package/libs/shared-utils/three/temp.d.ts +2 -2
- package/libs/shared-utils/three/temp.js +4 -4
- package/package.json +1 -1
- package/README.md +0 -116
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
|
-
var b = (
|
|
3
|
-
var l = (
|
|
4
|
-
var d = (
|
|
2
|
+
var b = (e, m, i) => m in e ? f(e, m, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[m] = i;
|
|
3
|
+
var l = (e, m, i) => (b(e, typeof m != "symbol" ? m + "" : m, i), i);
|
|
4
|
+
var d = (e, m, i) => new Promise((p, o) => {
|
|
5
5
|
var s = (t) => {
|
|
6
6
|
try {
|
|
7
7
|
r(i.next(t));
|
|
@@ -14,8 +14,8 @@ var d = (p, e, i) => new Promise((m, o) => {
|
|
|
14
14
|
} catch (n) {
|
|
15
15
|
o(n);
|
|
16
16
|
}
|
|
17
|
-
}, r = (t) => t.done ?
|
|
18
|
-
r((i = i.apply(
|
|
17
|
+
}, r = (t) => t.done ? p(t.value) : Promise.resolve(t.value).then(s, a);
|
|
18
|
+
r((i = i.apply(e, m)).next());
|
|
19
19
|
});
|
|
20
20
|
import { arrayPositionToVector3 as h } from "../../../shared-utils/positionToVector3.js";
|
|
21
21
|
import { loadGLTF as j } from "../../../shared-utils/three/GLTFLoader.js";
|
|
@@ -50,7 +50,10 @@ import "../../../shared-utils/Utils/BaseUtil.js";
|
|
|
50
50
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
51
51
|
import "../../../shared-utils/five/transformPosition.js";
|
|
52
52
|
import "../../../shared-utils/three/temp.js";
|
|
53
|
+
import "../../../shared-utils/three/core/Raycaster.js";
|
|
53
54
|
import "../../../shared-utils/dom/resizeObserver.js";
|
|
55
|
+
import "../../../shared-utils/five/fiveEveryReadyListener.js";
|
|
56
|
+
import "../../../shared-utils/throttle.js";
|
|
54
57
|
import "../../../shared-utils/five/mode.js";
|
|
55
58
|
import "hammerjs";
|
|
56
59
|
import "../../../shared-utils/three/PointSelector/index.js";
|
|
@@ -71,22 +74,74 @@ import "../../../shared-utils/three/core/Sphere.js";
|
|
|
71
74
|
import "animejs";
|
|
72
75
|
import "../../../shared-utils/isNil.js";
|
|
73
76
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
74
|
-
import "../../../
|
|
75
|
-
import "../../../shared-utils/
|
|
77
|
+
import "../../../Sculpt/Meshes/Polygon.js";
|
|
78
|
+
import "../../../shared-utils/three/generatePolygonGeometry.js";
|
|
79
|
+
import "../../../shared-utils/three/earcut3D.js";
|
|
80
|
+
import "earcut";
|
|
81
|
+
import "../../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
82
|
+
import "../../../Sculpt/typings/style.js";
|
|
83
|
+
import "../../../Sculpt/utils/three/ColoredMesh.js";
|
|
84
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
85
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
86
|
+
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
87
|
+
import "../../../Object3DHelperPlugin/Controller.js";
|
|
88
|
+
import "../../../base/BasePlugin.js";
|
|
89
|
+
import "../../../shared-utils/url/absoluteUrl.js";
|
|
90
|
+
import "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
91
|
+
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
92
|
+
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
93
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
94
|
+
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
95
|
+
import "../../../shared-utils/three/boundingBox.js";
|
|
96
|
+
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
97
|
+
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
98
|
+
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
99
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
100
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
76
101
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
77
102
|
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
78
103
|
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
104
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
105
|
+
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
106
|
+
import "../../../shared-utils/util.js";
|
|
107
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
108
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
109
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
79
110
|
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
80
111
|
import "../../../Sculpt/Meshes/Line.js";
|
|
81
|
-
import "../../../Sculpt/typings/style.js";
|
|
82
112
|
import "../../../shared-utils/five/FiveLine.js";
|
|
83
|
-
import "../../../shared-utils/three/IObject3D.js";
|
|
84
113
|
import "../../../Sculpt/utils/removeAllTag.js";
|
|
85
114
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
86
115
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
87
|
-
import "../../../shared-utils/util.js";
|
|
88
116
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
117
|
+
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
118
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
119
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
120
|
+
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
121
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
122
|
+
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
123
|
+
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
124
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
125
|
+
import "../../../shared-utils/threex/domevents/index.js";
|
|
126
|
+
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
127
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
128
|
+
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
129
|
+
import "../../../shared-utils/Object3DHelper/index.js";
|
|
130
|
+
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
131
|
+
import "../../../shared-utils/math/rad2Deg.js";
|
|
132
|
+
import "../../../shared-utils/math/deg2Rad.js";
|
|
133
|
+
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
134
|
+
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
135
|
+
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
136
|
+
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
137
|
+
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
138
|
+
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
139
|
+
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
140
|
+
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
141
|
+
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
142
|
+
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
89
143
|
import "../../../shared-utils/isTouchDevice.js";
|
|
144
|
+
import "../../../shared-utils/three/geometryUtil.js";
|
|
90
145
|
import "../../../shared-utils/five/getPosition.js";
|
|
91
146
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
92
147
|
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
@@ -102,9 +157,9 @@ import "../../../shared-utils/url/getUrl.js";
|
|
|
102
157
|
import "../../../shared-utils/five/getFloorIndex.js";
|
|
103
158
|
import "../../../shared-utils/safeObj.js";
|
|
104
159
|
import "../../utils/Cache.js";
|
|
105
|
-
class
|
|
106
|
-
constructor(i,
|
|
107
|
-
super(i,
|
|
160
|
+
class io extends D {
|
|
161
|
+
constructor(i, p) {
|
|
162
|
+
super(i, p);
|
|
108
163
|
l(this, "loading", !1);
|
|
109
164
|
/** 加载外部模型 */
|
|
110
165
|
l(this, "loadModel", () => d(this, null, function* () {
|
|
@@ -113,7 +168,7 @@ class ti extends D {
|
|
|
113
168
|
if (!i)
|
|
114
169
|
return;
|
|
115
170
|
this.loading = !0;
|
|
116
|
-
const
|
|
171
|
+
const p = j(i).then((r) => d(this, null, function* () {
|
|
117
172
|
var c;
|
|
118
173
|
const t = Object.assign(r.scene, {
|
|
119
174
|
customID: this.id,
|
|
@@ -125,9 +180,9 @@ class ti extends D {
|
|
|
125
180
|
});
|
|
126
181
|
return t.visible = this.currentVisible, new u.Matrix4().fromArray(this.matrix).decompose(t.position, t.quaternion, t.scale), t.updateWorldMatrix(!0, !0), t.visible = yield this.getVisible(), (c = this.getConfig().modelConfig) != null && c.autoLookAtEnabled && t.lookAt(this.five.camera.position.clone().setY(t.position.y)), t;
|
|
127
182
|
}));
|
|
128
|
-
this.model = { promise:
|
|
129
|
-
const o = yield
|
|
130
|
-
if (this.loading = !1, ((a = this.model) == null ? void 0 : a.promise) !==
|
|
183
|
+
this.model = { promise: p };
|
|
184
|
+
const o = yield p;
|
|
185
|
+
if (this.loading = !1, ((a = this.model) == null ? void 0 : a.promise) !== p || !this.plugin.tags.includes(this))
|
|
131
186
|
return;
|
|
132
187
|
this.model.object = o;
|
|
133
188
|
const s = this.plugin.gltfObjectGroup.children.find((r) => r.customID === this.id);
|
|
@@ -147,13 +202,13 @@ class ti extends D {
|
|
|
147
202
|
this.state.unfolded = !0;
|
|
148
203
|
}
|
|
149
204
|
applyVisible() {
|
|
150
|
-
var i,
|
|
151
|
-
(i = this.model) != null && i.object && (this.model.object.visible = this.currentVisible), (
|
|
205
|
+
var i, p, o;
|
|
206
|
+
(i = this.model) != null && i.object && (this.model.object.visible = this.currentVisible), (p = this.tag3DContentSvelte) == null || p.svelteApp.$set({ tag: this, state: this.plugin.state }), (o = this.tag3DContentSvelte) == null || o.css3DInstance.setVisible(this.currentVisible);
|
|
152
207
|
}
|
|
153
208
|
computeNormal() {
|
|
154
209
|
return v(this.data.mediaPosition);
|
|
155
210
|
}
|
|
156
211
|
}
|
|
157
212
|
export {
|
|
158
|
-
|
|
213
|
+
io as ModelTag
|
|
159
214
|
};
|
|
@@ -28,7 +28,10 @@ import "../../../shared-utils/Utils/BaseUtil.js";
|
|
|
28
28
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
29
29
|
import "../../../shared-utils/five/transformPosition.js";
|
|
30
30
|
import "../../../shared-utils/three/temp.js";
|
|
31
|
+
import "../../../shared-utils/three/core/Raycaster.js";
|
|
31
32
|
import "../../../shared-utils/dom/resizeObserver.js";
|
|
33
|
+
import "../../../shared-utils/five/fiveEveryReadyListener.js";
|
|
34
|
+
import "../../../shared-utils/throttle.js";
|
|
32
35
|
import "../../../shared-utils/five/mode.js";
|
|
33
36
|
import "hammerjs";
|
|
34
37
|
import "../../../shared-utils/three/PointSelector/index.js";
|
|
@@ -49,22 +52,74 @@ import "../../../shared-utils/three/core/Sphere.js";
|
|
|
49
52
|
import "animejs";
|
|
50
53
|
import "../../../shared-utils/isNil.js";
|
|
51
54
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
52
|
-
import "../../../
|
|
53
|
-
import "../../../shared-utils/
|
|
55
|
+
import "../../../Sculpt/Meshes/Polygon.js";
|
|
56
|
+
import "../../../shared-utils/three/generatePolygonGeometry.js";
|
|
57
|
+
import "../../../shared-utils/three/earcut3D.js";
|
|
58
|
+
import "earcut";
|
|
59
|
+
import "../../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
60
|
+
import "../../../Sculpt/typings/style.js";
|
|
61
|
+
import "../../../Sculpt/utils/three/ColoredMesh.js";
|
|
62
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
63
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
64
|
+
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
65
|
+
import "../../../Object3DHelperPlugin/Controller.js";
|
|
66
|
+
import "../../../base/BasePlugin.js";
|
|
67
|
+
import "../../../shared-utils/url/absoluteUrl.js";
|
|
68
|
+
import "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
69
|
+
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
70
|
+
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
71
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
72
|
+
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
73
|
+
import "../../../shared-utils/three/boundingBox.js";
|
|
74
|
+
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
75
|
+
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
76
|
+
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
77
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
78
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
54
79
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
55
80
|
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
56
81
|
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
82
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
83
|
+
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
84
|
+
import "../../../shared-utils/util.js";
|
|
85
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
86
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
87
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
57
88
|
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
58
89
|
import "../../../Sculpt/Meshes/Line.js";
|
|
59
|
-
import "../../../Sculpt/typings/style.js";
|
|
60
90
|
import "../../../shared-utils/five/FiveLine.js";
|
|
61
|
-
import "../../../shared-utils/three/IObject3D.js";
|
|
62
91
|
import "../../../Sculpt/utils/removeAllTag.js";
|
|
63
92
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
64
93
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
65
|
-
import "../../../shared-utils/util.js";
|
|
66
94
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
95
|
+
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
96
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
97
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
98
|
+
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
99
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
100
|
+
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
101
|
+
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
102
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
103
|
+
import "../../../shared-utils/threex/domevents/index.js";
|
|
104
|
+
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
105
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
106
|
+
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
107
|
+
import "../../../shared-utils/Object3DHelper/index.js";
|
|
108
|
+
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
109
|
+
import "../../../shared-utils/math/rad2Deg.js";
|
|
110
|
+
import "../../../shared-utils/math/deg2Rad.js";
|
|
111
|
+
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
112
|
+
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
113
|
+
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
114
|
+
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
115
|
+
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
116
|
+
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
117
|
+
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
118
|
+
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
119
|
+
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
120
|
+
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
67
121
|
import "../../../shared-utils/isTouchDevice.js";
|
|
122
|
+
import "../../../shared-utils/three/geometryUtil.js";
|
|
68
123
|
import "../../../shared-utils/five/getPosition.js";
|
|
69
124
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
70
125
|
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
@@ -82,54 +137,54 @@ import "../../../shared-utils/five/getFloorIndex.js";
|
|
|
82
137
|
import "../../../shared-utils/safeObj.js";
|
|
83
138
|
import "../../utils/Cache.js";
|
|
84
139
|
const P = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
|
|
85
|
-
class
|
|
86
|
-
constructor(
|
|
87
|
-
super(
|
|
140
|
+
class Qi extends f {
|
|
141
|
+
constructor(i, t) {
|
|
142
|
+
super(i, t), this.state.unfolded = !0;
|
|
88
143
|
}
|
|
89
144
|
applyVisible() {
|
|
90
|
-
var t, r, o,
|
|
91
|
-
this.computeRenderType() === "Mesh" ? ((r = (t = this.data.mediaData) == null ? void 0 : t[0]) == null ? void 0 : r.type) === "Video" ? this.renderVideoPlane() : ((
|
|
145
|
+
var t, r, o, p, m, e;
|
|
146
|
+
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() : (this.tag3DContentSvelte || this.plugin.updateRender3DDomTag(), (m = this.tag3DContentSvelte) == null || m.svelteApp.$set({ tag: this, state: this.plugin.state }), (e = this.tag3DContentSvelte) == null || e.css3DInstance.setVisible(this.currentVisible));
|
|
92
147
|
}
|
|
93
148
|
renderVideoPlane() {
|
|
94
|
-
var
|
|
95
|
-
const
|
|
96
|
-
if (!
|
|
149
|
+
var e;
|
|
150
|
+
const i = this.data.mediaData[0];
|
|
151
|
+
if (!i)
|
|
97
152
|
return;
|
|
98
|
-
const { url: t } =
|
|
153
|
+
const { url: t } = i;
|
|
99
154
|
if (!t)
|
|
100
155
|
return;
|
|
101
|
-
const r = this.currentVisible, o = (() => !!(this.mediaPlane && !r))(),
|
|
102
|
-
if ((o ||
|
|
103
|
-
const
|
|
104
|
-
videoCoverSrc:
|
|
156
|
+
const r = this.currentVisible, o = (() => !!(this.mediaPlane && !r))(), p = (() => !!(!this.mediaPlane && r))(), m = (() => !!(this.mediaPlane && this.mediaPlane.src !== t))();
|
|
157
|
+
if ((o || m) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), p || m) {
|
|
158
|
+
const s = this.position.map(d), a = new u(t, s, {
|
|
159
|
+
videoCoverSrc: i.videoCoverUrl,
|
|
105
160
|
playButton: this.data.playIcon,
|
|
106
|
-
paused: !((
|
|
161
|
+
paused: !((e = this.data.autoplayConfig) != null && e.autoplayVideo),
|
|
107
162
|
objectFit: this.data.objectFit,
|
|
108
163
|
videoTextureMap: P,
|
|
109
164
|
ImageTextureMap: g,
|
|
110
165
|
domEvents: this.plugin.domEvents
|
|
111
166
|
});
|
|
112
|
-
|
|
113
|
-
|
|
167
|
+
a.onVideoReady = (n) => {
|
|
168
|
+
n.addEventListener("play", () => this.plugin.mediaStore.set({ currentMediaElement: a.videoInstance }));
|
|
114
169
|
};
|
|
115
|
-
const l = (
|
|
116
|
-
|
|
170
|
+
const l = (n) => (this.five.on("renderFrame", n), () => this.five.off("renderFrame", n));
|
|
171
|
+
a.initialRenderHooks(l), this.mediaPlane = a, this.play = () => a.play(), this.pause = () => a.pause(), this.plugin.imagePlaneGroup.add(this.mediaPlane);
|
|
117
172
|
}
|
|
118
173
|
this.five.needsRender = !0;
|
|
119
174
|
}
|
|
120
175
|
renderImagePlane() {
|
|
121
|
-
const
|
|
122
|
-
if (!
|
|
176
|
+
const i = this.data.mediaData[0];
|
|
177
|
+
if (!i)
|
|
123
178
|
return;
|
|
124
|
-
const { url: t } =
|
|
179
|
+
const { url: t } = i;
|
|
125
180
|
if (!t)
|
|
126
181
|
return;
|
|
127
|
-
const r = this.position.map(d), o = this.currentVisible,
|
|
128
|
-
(
|
|
182
|
+
const r = this.position.map(d), o = this.currentVisible, p = (() => !!(this.mediaPlane && !o))(), m = (() => !!(!this.mediaPlane && o))(), e = (() => !!(this.mediaPlane && this.mediaPlane.src !== t))();
|
|
183
|
+
(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(
|
|
129
184
|
this.mediaPlane,
|
|
130
185
|
"click",
|
|
131
|
-
(
|
|
132
|
-
this.plugin.hooks.emit("click", { tag: this, target: "TagContent", event:
|
|
186
|
+
(s) => {
|
|
187
|
+
this.plugin.hooks.emit("click", { tag: this, target: "TagContent", event: s.origDomEvent });
|
|
133
188
|
},
|
|
134
189
|
{ noEmitWhenHide: !0 }
|
|
135
190
|
), this.plugin.imagePlaneGroup.add(this.mediaPlane)), this.five.needsRender = !0;
|
|
@@ -139,5 +194,5 @@ class Ot extends f {
|
|
|
139
194
|
}
|
|
140
195
|
}
|
|
141
196
|
export {
|
|
142
|
-
|
|
197
|
+
Qi as PlaneTag
|
|
143
198
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
|
-
var h = (
|
|
3
|
-
var
|
|
2
|
+
var h = (s, r, t) => r in s ? f(s, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[r] = t;
|
|
3
|
+
var p = (s, r, t) => (h(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 "../../../shared-utils/Subscribe.js";
|
|
7
7
|
import "../../utils/tag/calculateTagConfig.js";
|
|
8
8
|
import "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -19,7 +19,10 @@ import "../../../shared-utils/Utils/BaseUtil.js";
|
|
|
19
19
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
20
20
|
import "../../../shared-utils/five/transformPosition.js";
|
|
21
21
|
import "../../../shared-utils/three/temp.js";
|
|
22
|
+
import "../../../shared-utils/three/core/Raycaster.js";
|
|
22
23
|
import "../../../shared-utils/dom/resizeObserver.js";
|
|
24
|
+
import "../../../shared-utils/five/fiveEveryReadyListener.js";
|
|
25
|
+
import "../../../shared-utils/throttle.js";
|
|
23
26
|
import "../../../shared-utils/five/mode.js";
|
|
24
27
|
import "hammerjs";
|
|
25
28
|
import "../../../shared-utils/three/PointSelector/index.js";
|
|
@@ -41,22 +44,75 @@ import "../../../shared-utils/three/core/Sphere.js";
|
|
|
41
44
|
import "animejs";
|
|
42
45
|
import "../../../shared-utils/isNil.js";
|
|
43
46
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
44
|
-
import "../../../
|
|
45
|
-
import "../../../shared-utils/
|
|
47
|
+
import "../../../Sculpt/Meshes/Polygon.js";
|
|
48
|
+
import "../../../shared-utils/three/generatePolygonGeometry.js";
|
|
49
|
+
import "../../../shared-utils/three/earcut3D.js";
|
|
50
|
+
import "earcut";
|
|
51
|
+
import "../../../shared-utils/three/getNormal.js";
|
|
52
|
+
import "../../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
53
|
+
import "../../../Sculpt/typings/style.js";
|
|
54
|
+
import "../../../Sculpt/utils/three/ColoredMesh.js";
|
|
55
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
56
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
57
|
+
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
58
|
+
import "../../../Object3DHelperPlugin/Controller.js";
|
|
59
|
+
import "../../../base/BasePlugin.js";
|
|
60
|
+
import "../../../shared-utils/url/absoluteUrl.js";
|
|
61
|
+
import "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
62
|
+
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
63
|
+
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
64
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
65
|
+
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
66
|
+
import "../../../shared-utils/three/boundingBox.js";
|
|
67
|
+
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
68
|
+
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
69
|
+
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
70
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
71
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
46
72
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
47
73
|
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
48
74
|
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
75
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
76
|
+
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
77
|
+
import "../../../shared-utils/util.js";
|
|
78
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
79
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
80
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
49
81
|
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
50
82
|
import "../../../Sculpt/Meshes/Line.js";
|
|
51
|
-
import "../../../Sculpt/typings/style.js";
|
|
52
83
|
import "../../../shared-utils/five/FiveLine.js";
|
|
53
|
-
import "../../../shared-utils/three/IObject3D.js";
|
|
54
84
|
import "../../../Sculpt/utils/removeAllTag.js";
|
|
55
85
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
56
86
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
57
|
-
import "../../../shared-utils/util.js";
|
|
58
87
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
88
|
+
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
89
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
90
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
91
|
+
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
92
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
93
|
+
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
94
|
+
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
95
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
96
|
+
import "../../../shared-utils/threex/domevents/index.js";
|
|
97
|
+
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
98
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
99
|
+
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
100
|
+
import "../../../shared-utils/Object3DHelper/index.js";
|
|
101
|
+
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
102
|
+
import "../../../shared-utils/math/rad2Deg.js";
|
|
103
|
+
import "../../../shared-utils/math/deg2Rad.js";
|
|
104
|
+
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
105
|
+
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
106
|
+
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
107
|
+
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
108
|
+
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
109
|
+
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
110
|
+
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
111
|
+
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
112
|
+
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
113
|
+
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
59
114
|
import "../../../shared-utils/isTouchDevice.js";
|
|
115
|
+
import "../../../shared-utils/three/geometryUtil.js";
|
|
60
116
|
import "../../../shared-utils/five/getPosition.js";
|
|
61
117
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
62
118
|
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
@@ -73,19 +129,19 @@ import "../../../shared-utils/url/getUrl.js";
|
|
|
73
129
|
import "../../../shared-utils/five/getFloorIndex.js";
|
|
74
130
|
import "../../../shared-utils/safeObj.js";
|
|
75
131
|
import "../../utils/Cache.js";
|
|
76
|
-
const b = new
|
|
77
|
-
class
|
|
78
|
-
constructor(t,
|
|
79
|
-
super(t,
|
|
80
|
-
|
|
81
|
-
|
|
132
|
+
const b = new d.Vector2();
|
|
133
|
+
class wi extends g {
|
|
134
|
+
constructor(t, i) {
|
|
135
|
+
super(t, i);
|
|
136
|
+
p(this, "__Object__");
|
|
137
|
+
p(this, "requestIdleCallbackId");
|
|
82
138
|
}
|
|
83
139
|
/**
|
|
84
140
|
* @description 展开自己,收起其他标签
|
|
85
141
|
*/
|
|
86
142
|
unfoldAndFoldOthers() {
|
|
87
|
-
const t = this.can("fold"),
|
|
88
|
-
t &&
|
|
143
|
+
const t = this.can("fold"), i = this.can("unfold");
|
|
144
|
+
t && i && (this.state.unfolded = !this.state.unfolded, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.state.unfolded && this.plugin.tags.forEach((o) => {
|
|
89
145
|
o.id !== this.id && o.fold();
|
|
90
146
|
}));
|
|
91
147
|
}
|
|
@@ -102,16 +158,16 @@ class Ft extends g {
|
|
|
102
158
|
super.updateVisible();
|
|
103
159
|
});
|
|
104
160
|
};
|
|
105
|
-
let
|
|
161
|
+
let i = !1;
|
|
106
162
|
requestIdleCallback(() => {
|
|
107
|
-
|
|
163
|
+
i = !0;
|
|
108
164
|
}), t(), setTimeout(() => {
|
|
109
|
-
|
|
165
|
+
i || (this.requestIdleCallbackId && cancelIdleCallback(this.requestIdleCallbackId), super.updateVisible());
|
|
110
166
|
}, 200);
|
|
111
167
|
}
|
|
112
168
|
applyVisible() {
|
|
113
|
-
var t,
|
|
114
|
-
this.currentVisible && this.updateScreenPosition(), (o = (
|
|
169
|
+
var t, i, o, e;
|
|
170
|
+
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({
|
|
115
171
|
state: this.plugin.state,
|
|
116
172
|
temporaryState: this.temporaryState
|
|
117
173
|
}), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
@@ -127,38 +183,38 @@ class Ft extends g {
|
|
|
127
183
|
* @param {boolean} unfolded
|
|
128
184
|
*/
|
|
129
185
|
setUnfold(t) {
|
|
130
|
-
const
|
|
131
|
-
|
|
186
|
+
const i = this.can("fold"), o = this.can("unfold");
|
|
187
|
+
i && o && (this.state.unfolded = t, this.hooks.emit(t ? "unfolded" : "folded"), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
|
|
132
188
|
}
|
|
133
189
|
setPosition(t) {
|
|
134
190
|
this.originPosition = t, this.position = t, this.cache.clear(), this.updateVisible(), this.updateScreenPosition(), this.updateZIndex(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
135
191
|
}
|
|
136
192
|
updateScreenPosition(t) {
|
|
137
|
-
var
|
|
193
|
+
var m;
|
|
138
194
|
if (this.stickType !== "2DPoint" && this.stickType !== "3DPoint")
|
|
139
195
|
return;
|
|
140
|
-
const { force:
|
|
196
|
+
const { force: i = !1 } = t != null ? t : {}, o = i ? this.state.visible : this.currentVisible, e = (m = this.__Object__) != null ? m : {
|
|
141
197
|
timeoutId: void 0,
|
|
142
198
|
inAnimation: !1
|
|
143
199
|
};
|
|
144
|
-
if (this.__Object__ =
|
|
200
|
+
if (this.__Object__ = e, !o && this.screenPosition ? (e.inAnimation = !0, e.timeoutId = setTimeout(() => {
|
|
145
201
|
requestAnimationFrame(() => {
|
|
146
|
-
this.currentVisible || (
|
|
202
|
+
this.currentVisible || (e.inAnimation = !1, this.screenPosition = null, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
|
|
147
203
|
});
|
|
148
|
-
}, 1e3)) :
|
|
204
|
+
}, 1e3)) : e.timeoutId && (clearTimeout(e.timeoutId), e.inAnimation = !1, e.timeoutId = void 0), !o && !e.inAnimation)
|
|
149
205
|
return;
|
|
150
206
|
const n = this.computeTagProject();
|
|
151
207
|
if (n) {
|
|
152
|
-
const
|
|
208
|
+
const l = (() => {
|
|
153
209
|
if (!this.currentConfig.simulate3D)
|
|
154
210
|
return 1;
|
|
155
211
|
const u = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), c = this.getDistance(void 0, 1);
|
|
156
212
|
return Math.max(Math.min(1 - u * c / 40, 1), 0.5);
|
|
157
|
-
})(),
|
|
213
|
+
})(), a = this.five.renderer.getSize(b);
|
|
158
214
|
this.screenPosition = {
|
|
159
|
-
leftPx: (n.x + 1) / 2 *
|
|
160
|
-
topPx: (-n.y + 1) / 2 *
|
|
161
|
-
scale:
|
|
215
|
+
leftPx: (n.x + 1) / 2 * a.x,
|
|
216
|
+
topPx: (-n.y + 1) / 2 * a.y,
|
|
217
|
+
scale: l
|
|
162
218
|
};
|
|
163
219
|
} else
|
|
164
220
|
this.screenPosition = null;
|
|
@@ -167,14 +223,14 @@ class Ft extends g {
|
|
|
167
223
|
updateUnfoldedByPanoIndex() {
|
|
168
224
|
const t = this.getUnfoldedByPanoIndex();
|
|
169
225
|
if (this.state && (t !== void 0 && (this.state.unfolded = t), t && !this.state.visible)) {
|
|
170
|
-
const
|
|
171
|
-
typeof
|
|
226
|
+
const i = this.getConfig();
|
|
227
|
+
typeof i.unfoldedConfig == "object" && i.unfoldedConfig.autoFoldWhenHide !== !1 && (this.state.unfolded = !1);
|
|
172
228
|
}
|
|
173
229
|
}
|
|
174
230
|
computeNormal() {
|
|
175
|
-
return new
|
|
231
|
+
return new d.Vector3().fromArray(this.normal);
|
|
176
232
|
}
|
|
177
233
|
}
|
|
178
234
|
export {
|
|
179
|
-
|
|
235
|
+
wi as PointTag
|
|
180
236
|
};
|