@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
|
@@ -2,16 +2,16 @@ var D = Object.defineProperty, P = Object.defineProperties;
|
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var b = Object.getOwnPropertySymbols;
|
|
4
4
|
var F = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var u = (
|
|
5
|
+
var u = (d, a, e) => a in d ? D(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, f = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
F.call(a, e) && u(
|
|
7
|
+
F.call(a, e) && u(d, e, a[e]);
|
|
8
8
|
if (b)
|
|
9
9
|
for (var e of b(a))
|
|
10
|
-
E.call(a, e) && u(
|
|
11
|
-
return
|
|
12
|
-
}, c = (
|
|
13
|
-
var
|
|
14
|
-
var l = (
|
|
10
|
+
E.call(a, e) && u(d, e, a[e]);
|
|
11
|
+
return d;
|
|
12
|
+
}, c = (d, a) => P(d, U(a));
|
|
13
|
+
var p = (d, a, e) => (u(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
+
var l = (d, a, e) => new Promise((t, i) => {
|
|
15
15
|
var o = (r) => {
|
|
16
16
|
try {
|
|
17
17
|
n(e.next(r));
|
|
@@ -25,10 +25,10 @@ var l = (p, a, e) => new Promise((t, i) => {
|
|
|
25
25
|
i(h);
|
|
26
26
|
}
|
|
27
27
|
}, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(o, s);
|
|
28
|
-
n((e = e.apply(
|
|
28
|
+
n((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as v from "three";
|
|
31
|
-
import { objectAssignDeepExports as
|
|
31
|
+
import { objectAssignDeepExports as m } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
32
32
|
import { arrayPositionToVector3 as A } from "../../shared-utils/positionToVector3.js";
|
|
33
33
|
import { isModelTag as k, isMediaModelTag as w } from "../utils/tag/tagCheck.js";
|
|
34
34
|
import { debounce as M } from "../utils/debounce.js";
|
|
@@ -42,7 +42,6 @@ import "hammerjs";
|
|
|
42
42
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
43
43
|
import "@realsee/five/line";
|
|
44
44
|
import "../../shared-utils/tag.js";
|
|
45
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
46
45
|
import "../../shared-utils/three/THREESphere.js";
|
|
47
46
|
import "animejs";
|
|
48
47
|
import { nextFrame as G } from "../../shared-utils/animationFrame/index.js";
|
|
@@ -120,77 +119,6 @@ import "../../shared-utils/Subscribe.js";
|
|
|
120
119
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
121
120
|
import "../../shared-utils/five/transformPosition.js";
|
|
122
121
|
import "../../shared-utils/three/temp.js";
|
|
123
|
-
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
124
|
-
import "../../Object3DHelperPlugin/Controller.js";
|
|
125
|
-
import "../../base/BasePlugin.js";
|
|
126
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
127
|
-
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
128
|
-
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
129
|
-
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
130
|
-
import "../../shared-utils/three/IObject3D.js";
|
|
131
|
-
import "../../shared-utils/three/boundingBox.js";
|
|
132
|
-
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
133
|
-
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
134
|
-
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
135
|
-
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
136
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
137
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
138
|
-
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
139
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
140
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
141
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
142
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
143
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
144
|
-
import "../../shared-utils/three/getObjectVisible.js";
|
|
145
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
146
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
147
|
-
import "../../shared-utils/util.js";
|
|
148
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
149
|
-
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
150
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
151
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
152
|
-
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
153
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
154
|
-
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
155
|
-
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
156
|
-
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
157
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
158
|
-
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
159
|
-
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
160
|
-
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
161
|
-
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
162
|
-
import "../../shared-utils/Object3DHelper/index.js";
|
|
163
|
-
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
164
|
-
import "../../shared-utils/math/rad2Deg.js";
|
|
165
|
-
import "../../shared-utils/math/deg2Rad.js";
|
|
166
|
-
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
167
|
-
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
168
|
-
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
169
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
170
|
-
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
171
|
-
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
172
|
-
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
173
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
174
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
175
|
-
import "../../shared-utils/three/THREERaycaster.js";
|
|
176
|
-
import "../../shared-utils/three/PointSelector/index.js";
|
|
177
|
-
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
178
|
-
import "../../shared-utils/three/Magnifier.js";
|
|
179
|
-
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
180
|
-
import "../../shared-utils/three/Assets/index.js";
|
|
181
|
-
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
182
|
-
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
183
|
-
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
184
|
-
import "../../Sculpt/Meshes/Line.js";
|
|
185
|
-
import "../../Sculpt/typings/style.js";
|
|
186
|
-
import "../../shared-utils/five/FiveLine.js";
|
|
187
|
-
import "../../Sculpt/utils/removeAllTag.js";
|
|
188
|
-
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
189
|
-
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
190
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
191
|
-
import "../../shared-utils/isTouchDevice.js";
|
|
192
|
-
import "../../shared-utils/five/getPosition.js";
|
|
193
|
-
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
194
122
|
import "../utils/noTypecheck.js";
|
|
195
123
|
import "../Components/Tag/AudioTag/index.js";
|
|
196
124
|
import "../Components/Tag/AudioTag/AudioTag.js";
|
|
@@ -209,6 +137,7 @@ import "../../shared-utils/three/GLTFLoader.js";
|
|
|
209
137
|
import "@realsee/five/gltf-loader";
|
|
210
138
|
import "../utils/planeNormal.js";
|
|
211
139
|
import "../utils/model/mediaPlane.js";
|
|
140
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
212
141
|
import "../../shared-utils/three/loadTexture.js";
|
|
213
142
|
import "../../shared-utils/three/Quadrangle.js";
|
|
214
143
|
import "../../shared-utils/math/pointsIsRectangle.js";
|
|
@@ -223,6 +152,7 @@ import "../../shared-utils/typescript/entries.js";
|
|
|
223
152
|
import "../utils/tag/adaptConfig.js";
|
|
224
153
|
import "../typings/tag/TagConfig.js";
|
|
225
154
|
import "@realsee/five";
|
|
155
|
+
import "../../shared-utils/util.js";
|
|
226
156
|
import "../../shared-utils/three/blink.js";
|
|
227
157
|
import "../../shared-utils/vectorToCoordinate.js";
|
|
228
158
|
import "../../shared-utils/formatRad.js";
|
|
@@ -239,25 +169,42 @@ import "../utils/normalPositionToPositions.js";
|
|
|
239
169
|
import "../../vendor/svelte/store/index.js";
|
|
240
170
|
import "../../CSS3DRenderPlugin/index.js";
|
|
241
171
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
172
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
173
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
174
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
175
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
176
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
177
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
178
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
179
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
180
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
181
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
182
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
183
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
184
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
185
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
186
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
187
|
+
import "../../shared-utils/three/THREERaycaster.js";
|
|
188
|
+
import "../../base/BasePlugin.js";
|
|
242
189
|
import "../utils/addDebugPoints.js";
|
|
243
190
|
import "../utils/requestIdleCallback.js";
|
|
244
191
|
import "../Components/TagItem.js";
|
|
245
192
|
import "../Components/Common/TagPoint.js";
|
|
246
|
-
const S = "Dnalogel-PanoTagPlugin",
|
|
247
|
-
class
|
|
193
|
+
const S = "Dnalogel-PanoTagPlugin", qi = (d) => `${S}--${d}`;
|
|
194
|
+
class Hi extends O {
|
|
248
195
|
constructor(e, t) {
|
|
249
196
|
super(e);
|
|
250
197
|
/** state */
|
|
251
|
-
|
|
198
|
+
p(this, "state", { enabled: !0, visible: !0 });
|
|
252
199
|
/** debug */
|
|
253
|
-
|
|
254
|
-
|
|
200
|
+
p(this, "debug");
|
|
201
|
+
p(this, "debugUtil", new V(this));
|
|
255
202
|
/** 更改 tag 模型 */
|
|
256
|
-
|
|
203
|
+
p(this, "changeTagModel", (e, t) => l(this, null, function* () {
|
|
257
204
|
var i;
|
|
258
|
-
e.data =
|
|
205
|
+
e.data = m({}, e.data, t), yield (i = e.loadModel) == null ? void 0 : i.call(e);
|
|
259
206
|
}));
|
|
260
|
-
|
|
207
|
+
p(this, "handleFiveModeChange", (e) => {
|
|
261
208
|
const t = () => {
|
|
262
209
|
this.tags.forEach((i) => {
|
|
263
210
|
i.state.visible = !1, i.applyVisible(), this.five.ready().then(() => {
|
|
@@ -267,7 +214,7 @@ class Ho extends O {
|
|
|
267
214
|
};
|
|
268
215
|
this.tags.length < 500 ? t() : this.five.ready().then(() => t());
|
|
269
216
|
});
|
|
270
|
-
|
|
217
|
+
p(this, "handleFiveWantsMoveToPano", (e) => {
|
|
271
218
|
if (this.tags.length > 500) {
|
|
272
219
|
this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] });
|
|
273
220
|
return;
|
|
@@ -278,20 +225,20 @@ class Ho extends O {
|
|
|
278
225
|
typeof o.visibleConfig == "object" && t.temporaryState && (o.visibleConfig.keep ? t.temporaryState.visible = o.visibleConfig.keep === "visible" : t.temporaryState.visible = !!o.visibleConfig.alwaysShowWhenMovePano);
|
|
279
226
|
}), this.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.tags.forEach((t) => t.applyVisible());
|
|
280
227
|
});
|
|
281
|
-
|
|
228
|
+
p(this, "clickhandler", (e) => {
|
|
282
229
|
e.tag.onClick(e);
|
|
283
230
|
});
|
|
284
|
-
|
|
231
|
+
p(this, "handleFiveCameraUpdate", () => {
|
|
285
232
|
this.filterPointTag.forEach((e) => e.updateScreenPosition());
|
|
286
233
|
});
|
|
287
|
-
|
|
234
|
+
p(this, "handleFiveCameraFovUpdate", () => {
|
|
288
235
|
this.handleFiveCameraUpdate(), this.five.off("render.prepare", this.handleFiveCameraUpdate), this.five.on("render.prepare", this.handleFiveCameraUpdate), setTimeout(() => {
|
|
289
236
|
this.five.off("render.prepare", this.handleFiveCameraUpdate);
|
|
290
237
|
}, 1e3);
|
|
291
238
|
});
|
|
292
|
-
|
|
239
|
+
p(this, "handleFivePanoArrived", () => l(this, null, function* () {
|
|
293
240
|
this.tags.forEach((e) => {
|
|
294
|
-
e.state.visible = !1, e.temporaryState = c(
|
|
241
|
+
e.state.visible = !1, e.temporaryState = c(f({}, e.temporaryState), { visible: !0 }), e.applyVisible(), e.updateVisible();
|
|
295
242
|
}), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.filter(k).filter((e) => {
|
|
296
243
|
var t;
|
|
297
244
|
return (t = e.getConfig().modelConfig) == null ? void 0 : t.autoLookAtEnabled;
|
|
@@ -310,13 +257,13 @@ class Ho extends O {
|
|
|
310
257
|
});
|
|
311
258
|
}));
|
|
312
259
|
/** 楼层切换时,需要更新标签可见性 */
|
|
313
|
-
|
|
260
|
+
p(this, "handleFiveModelShownFloorChange", () => {
|
|
314
261
|
this.tags.forEach((e) => e.updateVisible());
|
|
315
262
|
});
|
|
316
|
-
|
|
263
|
+
p(this, "onFiveEveryReady", () => {
|
|
317
264
|
this.setUnfoldedByCamera(), R(this.five.getCurrentState().mode) && this.tags.forEach((e) => e.updateVisible());
|
|
318
265
|
});
|
|
319
|
-
|
|
266
|
+
p(this, "render", () => {
|
|
320
267
|
this.renderQueue.forEach((e, t) => {
|
|
321
268
|
const { keys: i } = e;
|
|
322
269
|
if (t === "TagContainerSvelte") {
|
|
@@ -343,7 +290,7 @@ class Ho extends O {
|
|
|
343
290
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
344
291
|
this.TagContainerSvelte = new $({
|
|
345
292
|
target: this.container,
|
|
346
|
-
props: c(
|
|
293
|
+
props: c(f({}, n), { state: c(f({}, this.state), { enabled: !1 }) })
|
|
347
294
|
}), G(() => {
|
|
348
295
|
var r;
|
|
349
296
|
(r = this.TagContainerSvelte) == null || r.$set({ state: this.state });
|
|
@@ -352,7 +299,7 @@ class Ho extends O {
|
|
|
352
299
|
}
|
|
353
300
|
}), this.renderQueue.clear();
|
|
354
301
|
});
|
|
355
|
-
this.params =
|
|
302
|
+
this.params = m({}, { debug: !1, config: this.config }, f({}, t)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), L(1, { namespace: B.PlayAudio });
|
|
356
303
|
try {
|
|
357
304
|
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
|
|
358
305
|
get: function() {
|
|
@@ -379,7 +326,7 @@ class Ho extends O {
|
|
|
379
326
|
console.debug(S, " load:", { data: JSON.parse(JSON.stringify(e)) });
|
|
380
327
|
} catch (s) {
|
|
381
328
|
}
|
|
382
|
-
this.config =
|
|
329
|
+
this.config = m({}, this.config, {
|
|
383
330
|
globalConfig: (i = e.globalConfig) != null ? i : {},
|
|
384
331
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
385
332
|
});
|
|
@@ -413,7 +360,7 @@ class Ho extends O {
|
|
|
413
360
|
* @description 改变配置
|
|
414
361
|
*/
|
|
415
362
|
changeConfig(e, t = !0) {
|
|
416
|
-
t ? this.config =
|
|
363
|
+
t ? this.config = m({}, this.config, e) : this.config = e, this.tags.forEach((i) => {
|
|
417
364
|
i.updateConfig(), i.updateVisible();
|
|
418
365
|
});
|
|
419
366
|
}
|
|
@@ -421,7 +368,7 @@ class Ho extends O {
|
|
|
421
368
|
* @description 改变全局配置
|
|
422
369
|
*/
|
|
423
370
|
changeGlobalConfig(e, t = !0) {
|
|
424
|
-
t ? this.config.globalConfig =
|
|
371
|
+
t ? this.config.globalConfig = m({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.tags.forEach((i) => {
|
|
425
372
|
i.updateConfig(), i.updateVisible();
|
|
426
373
|
});
|
|
427
374
|
}
|
|
@@ -429,7 +376,7 @@ class Ho extends O {
|
|
|
429
376
|
* @description 改变类型配置
|
|
430
377
|
*/
|
|
431
378
|
changeContentTypeConfig(e, t, i = !0) {
|
|
432
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
379
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = m({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.tags.forEach((o) => {
|
|
433
380
|
o.updateConfig(), o.updateVisible();
|
|
434
381
|
});
|
|
435
382
|
}
|
|
@@ -464,7 +411,7 @@ class Ho extends O {
|
|
|
464
411
|
setState(e, t) {
|
|
465
412
|
if (this.checkDisposed())
|
|
466
413
|
return;
|
|
467
|
-
const { userAction: i = !0 } = t != null ? t : {}, o =
|
|
414
|
+
const { userAction: i = !0 } = t != null ? t : {}, o = f({}, this.state);
|
|
468
415
|
this.state = Object.assign(this.state, e), o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
|
|
469
416
|
}
|
|
470
417
|
/**
|
|
@@ -654,7 +601,7 @@ class Ho extends O {
|
|
|
654
601
|
}
|
|
655
602
|
}
|
|
656
603
|
export {
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
604
|
+
Hi as PanoTagPluginController,
|
|
605
|
+
Hi as default,
|
|
606
|
+
qi as pluginFlag
|
|
660
607
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./controller/index.js";
|
|
2
|
-
import { pluginFlag as
|
|
3
|
-
import { defaultGlobalConfig as
|
|
4
|
-
import { ContentType as
|
|
2
|
+
import { pluginFlag as lr } from "./controller/index.js";
|
|
3
|
+
import { defaultGlobalConfig as fr } from "./typings/tag/TagConfig.js";
|
|
4
|
+
import { ContentType as ur, DimensionType as Pr, PointType as Tr } from "./Archive/deprecated.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
7
7
|
import "../shared-utils/positionToVector3.js";
|
|
@@ -82,81 +82,8 @@ import "../shared-utils/Subscribe.js";
|
|
|
82
82
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
83
83
|
import "../shared-utils/five/transformPosition.js";
|
|
84
84
|
import "../shared-utils/three/temp.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
85
|
import "../shared-utils/three/THREESphere.js";
|
|
90
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
91
86
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.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/IObject3D.js";
|
|
96
|
-
import "../shared-utils/three/boundingBox.js";
|
|
97
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
98
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
99
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
100
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
101
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
102
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
103
|
-
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
104
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
105
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
106
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
107
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
108
|
-
import "../shared-utils/three/centerPoint.js";
|
|
109
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
110
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
111
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
112
|
-
import "../shared-utils/util.js";
|
|
113
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
114
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
115
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
116
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
117
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
118
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
119
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
120
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
121
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
122
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
123
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
124
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
125
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
126
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
127
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
128
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
129
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
130
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
131
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
132
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
133
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
134
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
135
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
136
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
137
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
138
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
139
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
140
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
141
|
-
import "../shared-utils/three/THREERaycaster.js";
|
|
142
|
-
import "../shared-utils/three/PointSelector/index.js";
|
|
143
|
-
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
144
|
-
import "../shared-utils/three/Magnifier.js";
|
|
145
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
146
|
-
import "../shared-utils/three/Assets/index.js";
|
|
147
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
148
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
149
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
150
|
-
import "../Sculpt/Meshes/Line.js";
|
|
151
|
-
import "../Sculpt/typings/style.js";
|
|
152
|
-
import "../shared-utils/five/FiveLine.js";
|
|
153
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
154
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
155
|
-
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
156
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
157
|
-
import "../shared-utils/isTouchDevice.js";
|
|
158
|
-
import "../shared-utils/five/getPosition.js";
|
|
159
|
-
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
160
87
|
import "./utils/noTypecheck.js";
|
|
161
88
|
import "./Components/Tag/AudioTag/index.js";
|
|
162
89
|
import "./Components/Tag/AudioTag/AudioTag.js";
|
|
@@ -176,6 +103,7 @@ import "../shared-utils/three/GLTFLoader.js";
|
|
|
176
103
|
import "@realsee/five/gltf-loader";
|
|
177
104
|
import "./utils/planeNormal.js";
|
|
178
105
|
import "./utils/model/mediaPlane.js";
|
|
106
|
+
import "../shared-utils/three/centerPoint.js";
|
|
179
107
|
import "../shared-utils/three/loadTexture.js";
|
|
180
108
|
import "../shared-utils/three/Quadrangle.js";
|
|
181
109
|
import "../shared-utils/math/pointsIsRectangle.js";
|
|
@@ -190,6 +118,7 @@ import "../shared-utils/typescript/entries.js";
|
|
|
190
118
|
import "./utils/tag/adaptConfig.js";
|
|
191
119
|
import "@realsee/five";
|
|
192
120
|
import "../shared-utils/five/mode.js";
|
|
121
|
+
import "../shared-utils/util.js";
|
|
193
122
|
import "../shared-utils/three/blink.js";
|
|
194
123
|
import "../shared-utils/vectorToCoordinate.js";
|
|
195
124
|
import "../shared-utils/formatRad.js";
|
|
@@ -207,6 +136,24 @@ import "./utils/normalPositionToPositions.js";
|
|
|
207
136
|
import "../vendor/svelte/store/index.js";
|
|
208
137
|
import "../CSS3DRenderPlugin/index.js";
|
|
209
138
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
139
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
140
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
141
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
142
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
143
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
144
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
145
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
146
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
147
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
148
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
149
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
150
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
151
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
152
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
153
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
154
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
155
|
+
import "../shared-utils/three/THREERaycaster.js";
|
|
156
|
+
import "../base/BasePlugin.js";
|
|
210
157
|
import "../shared-utils/animationFrame/index.js";
|
|
211
158
|
import "./utils/DebugUtil.js";
|
|
212
159
|
import "./utils/addDebugPoints.js";
|
|
@@ -217,14 +164,14 @@ import "./Components/TagContainer.js";
|
|
|
217
164
|
import "./Components/TagItem.js";
|
|
218
165
|
import "./Components/Common/TagPoint.js";
|
|
219
166
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
220
|
-
const
|
|
167
|
+
const mr = (o, t) => new r(o, t);
|
|
221
168
|
export {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
169
|
+
ur as ContentType,
|
|
170
|
+
Pr as DimensionType,
|
|
171
|
+
mr as PanoTagPlugin,
|
|
225
172
|
r as PanoTagPluginController,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
173
|
+
Tr as PointType,
|
|
174
|
+
mr as default,
|
|
175
|
+
fr as defaultGlobalConfig,
|
|
176
|
+
lr as pluginFlag
|
|
230
177
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function requestIdleCallback(func:
|
|
1
|
+
export declare function requestIdleCallback(func: () => any): number;
|
|
2
2
|
export declare function cancelIdleCallback(id: number): void;
|
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var l = Date.now();
|
|
5
|
-
return setTimeout(function() {
|
|
6
|
-
e({
|
|
7
|
-
didTimeout: !1,
|
|
8
|
-
timeRemaining: function() {
|
|
9
|
-
return Math.max(0, 50 - (Date.now() - l));
|
|
10
|
-
}
|
|
11
|
-
});
|
|
1
|
+
function l(e) {
|
|
2
|
+
return typeof window.requestIdleCallback != "undefined" ? window.requestIdleCallback(e) : setTimeout(function() {
|
|
3
|
+
e();
|
|
12
4
|
}, 1);
|
|
13
5
|
}
|
|
14
6
|
function n(e) {
|
|
15
|
-
if (typeof window.cancelIdleCallback
|
|
7
|
+
if (typeof window.cancelIdleCallback != "undefined")
|
|
16
8
|
return window.cancelIdleCallback(e);
|
|
17
9
|
clearTimeout(e);
|
|
18
10
|
}
|
|
19
11
|
export {
|
|
20
12
|
n as cancelIdleCallback,
|
|
21
|
-
|
|
13
|
+
l as requestIdleCallback
|
|
22
14
|
};
|