@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
|
@@ -14,18 +14,18 @@ var k = (h, l, t) => (I(h, typeof l != "symbol" ? l + "" : l, t), t);
|
|
|
14
14
|
var y = (h, l, t) => new Promise((e, r) => {
|
|
15
15
|
var i = (n) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
m(t.next(n));
|
|
18
18
|
} catch (o) {
|
|
19
19
|
r(o);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, s = (n) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
m(t.throw(n));
|
|
24
24
|
} catch (o) {
|
|
25
25
|
r(o);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, m = (n) => n.done ? e(n.value) : Promise.resolve(n.value).then(i, s);
|
|
28
|
+
m((t = t.apply(h, l)).next());
|
|
29
29
|
});
|
|
30
30
|
import { GuideLinePlugin as K } from "../GuideLinePlugin/index.js";
|
|
31
31
|
import { uuid as S } from "../shared-utils/uuid.js";
|
|
@@ -40,7 +40,6 @@ import "hammerjs";
|
|
|
40
40
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
41
41
|
import "@realsee/five/line";
|
|
42
42
|
import "../shared-utils/tag.js";
|
|
43
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
44
43
|
import "../shared-utils/three/THREESphere.js";
|
|
45
44
|
import "animejs";
|
|
46
45
|
import { notNil as Q } from "../shared-utils/isNil.js";
|
|
@@ -196,66 +195,14 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
|
196
195
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
197
196
|
import "../shared-utils/three/getObjectVisible.js";
|
|
198
197
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
199
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
200
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
201
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
202
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
203
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
204
|
-
import "../shared-utils/three/IObject3D.js";
|
|
205
|
-
import "../shared-utils/three/boundingBox.js";
|
|
206
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
207
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
208
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
209
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
210
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
211
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
212
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
213
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
214
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
215
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
216
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
217
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
218
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
219
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
220
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
221
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
222
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
223
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
224
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
225
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
226
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
227
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
228
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
229
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
230
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
231
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
232
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
233
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
234
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
235
198
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
236
199
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
237
200
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
201
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
202
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
238
203
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
239
204
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
240
205
|
import "../shared-utils/three/THREERaycaster.js";
|
|
241
|
-
import "../shared-utils/three/PointSelector/index.js";
|
|
242
|
-
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
243
|
-
import "../shared-utils/three/Magnifier.js";
|
|
244
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
245
|
-
import "../shared-utils/three/Assets/index.js";
|
|
246
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
247
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
248
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
249
|
-
import "../Sculpt/Meshes/Line.js";
|
|
250
|
-
import "../Sculpt/typings/style.js";
|
|
251
|
-
import "../shared-utils/five/FiveLine.js";
|
|
252
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
253
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
254
|
-
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
255
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
256
|
-
import "../shared-utils/isTouchDevice.js";
|
|
257
|
-
import "../shared-utils/five/getPosition.js";
|
|
258
|
-
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
259
206
|
import "../PanoTagPlugin/utils/DebugUtil.js";
|
|
260
207
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
261
208
|
import "../PanoTagPlugin/controller/Tag/PointTag.js";
|
|
@@ -274,7 +221,7 @@ import "./utils/getFiveStateOnCurve.js";
|
|
|
274
221
|
import "../shared-utils/formatRad.js";
|
|
275
222
|
import "./Work.js";
|
|
276
223
|
import "./utils/coordinatesToVector.js";
|
|
277
|
-
class
|
|
224
|
+
class vr extends G {
|
|
278
225
|
constructor(t, e) {
|
|
279
226
|
super(t, e);
|
|
280
227
|
k(this, "state", {
|
|
@@ -308,9 +255,9 @@ class vo extends G {
|
|
|
308
255
|
return y(this, null, function* () {
|
|
309
256
|
var a, p;
|
|
310
257
|
this.clear();
|
|
311
|
-
const i = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0,
|
|
312
|
-
this.data = g({ id:
|
|
313
|
-
let
|
|
258
|
+
const i = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, s = yield this.formatData(t);
|
|
259
|
+
this.data = g({ id: s.keyframesId }, s), this.hooks.emit("dataChange", s, i);
|
|
260
|
+
let m = [], n;
|
|
314
261
|
const o = this.data.keyframes.filter((f) => f.data.panoIndex !== void 0);
|
|
315
262
|
o.filter((f, u) => {
|
|
316
263
|
var d;
|
|
@@ -320,14 +267,14 @@ class vo extends G {
|
|
|
320
267
|
const u = (d = this.workUtil.getObserver(f)) == null ? void 0 : d.floorIndex;
|
|
321
268
|
if (u !== void 0)
|
|
322
269
|
if (n === u) {
|
|
323
|
-
const c =
|
|
324
|
-
|
|
270
|
+
const c = m.length - 1;
|
|
271
|
+
m[c] = [...(v = m[c]) != null ? v : [], f];
|
|
325
272
|
} else {
|
|
326
273
|
n = u;
|
|
327
|
-
const c =
|
|
328
|
-
|
|
274
|
+
const c = m.length;
|
|
275
|
+
m[c] = [f];
|
|
329
276
|
}
|
|
330
|
-
}), !this.GuideLine && ((a = this.config) == null ? void 0 : a.useGuideLine) !== !1 &&
|
|
277
|
+
}), !this.GuideLine && ((a = this.config) == null ? void 0 : a.useGuideLine) !== !1 && s.useGuildLine !== !1 && (this.GuideLine = K(this.five, this.config)), (p = this.GuideLine) == null || p.load({ routes: m.map((f) => ({ panoIndexList: f })), config: s.guildPluginOptions }), e ? this.setState(e, { userAction: r }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug("WORKPLUGIN loaded", s), this.hooks.emit("dataLoaded", s);
|
|
331
278
|
});
|
|
332
279
|
}
|
|
333
280
|
/**
|
|
@@ -360,14 +307,14 @@ class vo extends G {
|
|
|
360
307
|
keyframesId: S(),
|
|
361
308
|
keyframes: e.keyframes.map((r, i) => {
|
|
362
309
|
var n;
|
|
363
|
-
const
|
|
364
|
-
return x(g({ id: (n = r.uuid) != null ? n : S(), moveIndex: i, stay:
|
|
310
|
+
const s = e.keyframes[i + 1], m = (() => !s || s.start === void 0 || r.end === void 0 ? 0 : s.start - r.end)();
|
|
311
|
+
return x(g({ id: (n = r.uuid) != null ? n : S(), moveIndex: i, stay: m, index: i }, r), { guildPluginOptions: e.guildPluginOptions });
|
|
365
312
|
})
|
|
366
313
|
};
|
|
367
314
|
if (e.panoIndexList) {
|
|
368
315
|
let r = [];
|
|
369
|
-
const { moveEffect: i, moveToFirstPanoEffect:
|
|
370
|
-
return this.privateState.moveToFirstPanoEffect =
|
|
316
|
+
const { moveEffect: i, moveToFirstPanoEffect: s, moveToFirstPanoDuration: m } = e;
|
|
317
|
+
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = m, e.panoIndexList.forEach((n, o) => {
|
|
371
318
|
const a = (() => {
|
|
372
319
|
var v, c;
|
|
373
320
|
const p = e.panoIndexList.slice(o).find((P) => P !== n);
|
|
@@ -403,13 +350,13 @@ class vo extends G {
|
|
|
403
350
|
handlePlay(t) {
|
|
404
351
|
return y(this, null, function* () {
|
|
405
352
|
var u;
|
|
406
|
-
const { data: e, state: r, privateState: i, hooks:
|
|
353
|
+
const { data: e, state: r, privateState: i, hooks: s } = this;
|
|
407
354
|
if (i.playing || !(e != null && e.keyframes) || (e == null ? void 0 : e.keyframes.length) === 0)
|
|
408
355
|
return;
|
|
409
|
-
const
|
|
410
|
-
i.playId =
|
|
356
|
+
const m = S();
|
|
357
|
+
i.playId = m, i.playing = !0, i.broke = !1;
|
|
411
358
|
const n = e.keyframes, o = this.getPauseData();
|
|
412
|
-
(t == null ? void 0 : t.notEmitEvent) !== !0 &&
|
|
359
|
+
(t == null ? void 0 : t.notEmitEvent) !== !0 && s.emit("play", { userAction: (u = t == null ? void 0 : t.userAction) != null ? u : !0 });
|
|
413
360
|
let a = !1;
|
|
414
361
|
const f = yield (() => y(this, null, function* () {
|
|
415
362
|
var d, v;
|
|
@@ -434,11 +381,11 @@ class vo extends G {
|
|
|
434
381
|
}))();
|
|
435
382
|
this.clearPauseData();
|
|
436
383
|
for (const d of n) {
|
|
437
|
-
if (i.broke || !r.playing || !i.playing ||
|
|
384
|
+
if (i.broke || !r.playing || !i.playing || m !== i.playId)
|
|
438
385
|
return;
|
|
439
386
|
if (!(f !== void 0 && d.index < f))
|
|
440
387
|
try {
|
|
441
|
-
|
|
388
|
+
s.emit("playIndexChange", d.index, d), yield this.playKeyframe(d, {
|
|
442
389
|
moveEffect: a === !1 ? i.moveToFirstPanoEffect : void 0,
|
|
443
390
|
duration: a === !1 && typeof i.moveToFirstPanoDuration == "number" ? i.moveToFirstPanoDuration : void 0
|
|
444
391
|
}), d.stay && (yield O(d.stay)), a === !1 && (a = !0);
|
|
@@ -446,25 +393,25 @@ class vo extends G {
|
|
|
446
393
|
return console.error(v), Promise.resolve("broke");
|
|
447
394
|
}
|
|
448
395
|
}
|
|
449
|
-
r.playing &&
|
|
396
|
+
r.playing && m === i.playId && (this.setState({ playing: !1 }, { userAction: !1 }), s.emit("end"), this.clearPauseData());
|
|
450
397
|
});
|
|
451
398
|
}
|
|
452
399
|
/**
|
|
453
400
|
* @description: Pause and record pause state
|
|
454
401
|
*/
|
|
455
402
|
handlePause(t) {
|
|
456
|
-
var
|
|
403
|
+
var s;
|
|
457
404
|
const { state: e, privateState: r, hooks: i } = this;
|
|
458
|
-
e.playing = !1, r.playing !== !1 && (r.playing = !1, (t == null ? void 0 : t.userAction) !== !1 && this.setPauseData(), r.broke || this.forceInteruptUpdateCamera(), (t == null ? void 0 : t.notEmitEvent) !== !0 && i.emit("pause", { userAction: (
|
|
405
|
+
e.playing = !1, r.playing !== !1 && (r.playing = !1, (t == null ? void 0 : t.userAction) !== !1 && this.setPauseData(), r.broke || this.forceInteruptUpdateCamera(), (t == null ? void 0 : t.notEmitEvent) !== !0 && i.emit("pause", { userAction: (s = t == null ? void 0 : t.userAction) != null ? s : !0 }));
|
|
459
406
|
}
|
|
460
407
|
/**
|
|
461
408
|
* @description: Change play speed
|
|
462
409
|
*/
|
|
463
410
|
changeSpeed(t, e = !0) {
|
|
464
|
-
const { state: r, privateState: i, hooks:
|
|
465
|
-
if (
|
|
411
|
+
const { state: r, privateState: i, hooks: s } = this, { currentPlayKeyframe: m } = i;
|
|
412
|
+
if (s.emit("speedChange", t, { userAction: e }), r.playing && m)
|
|
466
413
|
try {
|
|
467
|
-
const n =
|
|
414
|
+
const n = m.originDuration !== void 0 ? m.originDuration * (1 - this.getProgress()) : void 0, o = this.playKeyframe(m.keyframe, { duration: n });
|
|
468
415
|
i.currentPlayQueue.push(o);
|
|
469
416
|
} catch (n) {
|
|
470
417
|
}
|
|
@@ -509,10 +456,10 @@ class vo extends G {
|
|
|
509
456
|
*/
|
|
510
457
|
getPlayPromise(r) {
|
|
511
458
|
return y(this, arguments, function* (t, e = {}) {
|
|
512
|
-
var
|
|
459
|
+
var s;
|
|
513
460
|
const i = t.data;
|
|
514
|
-
if (e.duration = (
|
|
515
|
-
return new Promise((
|
|
461
|
+
if (e.duration = (s = e.duration) != null ? s : t.start !== void 0 && t.end !== void 0 ? t.end - t.start : void 0, !!i)
|
|
462
|
+
return new Promise((m, n) => {
|
|
516
463
|
let o = !1;
|
|
517
464
|
this.addInterruptListener(() => {
|
|
518
465
|
if (!o)
|
|
@@ -522,7 +469,7 @@ class vo extends G {
|
|
|
522
469
|
if (o)
|
|
523
470
|
return;
|
|
524
471
|
const a = () => {
|
|
525
|
-
|
|
472
|
+
m(), o = !0;
|
|
526
473
|
};
|
|
527
474
|
switch (i.effect) {
|
|
528
475
|
case "Move":
|
|
@@ -589,9 +536,9 @@ class vo extends G {
|
|
|
589
536
|
*/
|
|
590
537
|
updateCamera(r) {
|
|
591
538
|
return y(this, arguments, function* (t, e = {}) {
|
|
592
|
-
const { five: i, privateState:
|
|
539
|
+
const { five: i, privateState: s, state: m } = this, n = (() => {
|
|
593
540
|
var u, d;
|
|
594
|
-
const p = (u =
|
|
541
|
+
const p = (u = m.config) == null ? void 0 : u.speedConfig, f = (d = t.rotateSpeed) != null ? d : p == null ? void 0 : p.rotateSpeed;
|
|
595
542
|
if ((p == null ? void 0 : p.rotateSpeedUnit) === void 0)
|
|
596
543
|
return f;
|
|
597
544
|
if (f !== void 0)
|
|
@@ -605,7 +552,7 @@ class vo extends G {
|
|
|
605
552
|
}
|
|
606
553
|
return 800;
|
|
607
554
|
})();
|
|
608
|
-
|
|
555
|
+
s.currentPlayKeyframe && (s.currentPlayKeyframe.originDuration = o);
|
|
609
556
|
const a = this.getSpeededDuration(o);
|
|
610
557
|
return new Promise((p) => {
|
|
611
558
|
T(() => i.updateCamera(t, a)), setTimeout(() => p(), a);
|
|
@@ -617,14 +564,14 @@ class vo extends G {
|
|
|
617
564
|
*/
|
|
618
565
|
changePano(t, e) {
|
|
619
566
|
return y(this, null, function* () {
|
|
620
|
-
const { five: r, privateState: i, state:
|
|
567
|
+
const { five: r, privateState: i, state: s } = this;
|
|
621
568
|
if (typeof t.panoIndex != "number" || t.panoIndex === r.panoIndex)
|
|
622
569
|
return;
|
|
623
|
-
const
|
|
624
|
-
|
|
570
|
+
const m = r.getCurrentState().mode !== "Panorama";
|
|
571
|
+
m && (this.privateState.modeChanging = !0);
|
|
625
572
|
const n = (() => {
|
|
626
573
|
var f, u;
|
|
627
|
-
const a = (f =
|
|
574
|
+
const a = (f = s.config) == null ? void 0 : f.speedConfig, p = (u = t.moveSpeed) != null ? u : a == null ? void 0 : a.moveSpeed;
|
|
628
575
|
if ((a == null ? void 0 : a.moveSpeedUnit) === void 0)
|
|
629
576
|
return p;
|
|
630
577
|
if (p !== void 0)
|
|
@@ -648,8 +595,8 @@ class vo extends G {
|
|
|
648
595
|
effect: (u = (f = e == null ? void 0 : e.moveEffect) != null ? f : (p = this.state.config) == null ? void 0 : p.moveEffect) != null ? u : t.moveEffect,
|
|
649
596
|
moveCancelCallback: () => a(),
|
|
650
597
|
moveEndCallback: () => a()
|
|
651
|
-
}),
|
|
652
|
-
}),
|
|
598
|
+
}), m && r.once("panoArrived", () => a());
|
|
599
|
+
}), m && (this.privateState.modeChanging = !1);
|
|
653
600
|
});
|
|
654
601
|
}
|
|
655
602
|
/**
|
|
@@ -662,5 +609,5 @@ class vo extends G {
|
|
|
662
609
|
}
|
|
663
610
|
}
|
|
664
611
|
export {
|
|
665
|
-
|
|
612
|
+
vr as default
|
|
666
613
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { typing as
|
|
1
|
+
import { typing as Lt } from "./typing/index.js";
|
|
2
2
|
import t from "./Work.js";
|
|
3
3
|
import i from "./Move.js";
|
|
4
4
|
import "../GuideLinePlugin/index.js";
|
|
@@ -19,82 +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 "../Sculpt/utils/Modules/Global.js";
|
|
23
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
24
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
25
22
|
import "../shared-utils/three/THREESphere.js";
|
|
26
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
27
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
28
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
29
|
-
import "../shared-utils/three/IObject3D.js";
|
|
30
|
-
import "../shared-utils/three/boundingBox.js";
|
|
31
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
32
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
33
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
34
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
35
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
36
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
37
|
-
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
38
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
39
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
40
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
41
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
42
|
-
import "../shared-utils/three/centerPoint.js";
|
|
43
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
44
23
|
import "animejs";
|
|
45
|
-
import "../shared-utils/isNil.js";
|
|
46
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
47
24
|
import "../shared-utils/url/absoluteUrl.js";
|
|
48
|
-
import "../
|
|
49
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
50
|
-
import "../shared-utils/util.js";
|
|
51
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
52
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
53
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
54
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
55
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
56
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
57
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
58
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
59
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
60
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
61
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
62
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
63
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
64
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
65
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
66
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
67
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
68
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
69
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
70
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
71
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
72
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
73
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
74
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
75
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
76
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
77
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
78
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
79
|
-
import "../shared-utils/three/THREERaycaster.js";
|
|
80
|
-
import "../shared-utils/three/PointSelector/index.js";
|
|
81
|
-
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
82
|
-
import "../shared-utils/three/Magnifier.js";
|
|
83
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
84
|
-
import "../shared-utils/three/Assets/index.js";
|
|
85
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
86
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
87
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
88
|
-
import "../Sculpt/Meshes/Line.js";
|
|
89
|
-
import "../Sculpt/typings/style.js";
|
|
90
|
-
import "../shared-utils/five/FiveLine.js";
|
|
91
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
92
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
93
|
-
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
94
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
95
|
-
import "../shared-utils/isTouchDevice.js";
|
|
96
|
-
import "../shared-utils/five/getPosition.js";
|
|
97
|
-
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
25
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
98
26
|
import "../shared-utils/equal.js";
|
|
99
27
|
import "../shared-utils/isTruelyObject.js";
|
|
100
28
|
import "../GuideLinePlugin/GuideLineItem/index.js";
|
|
@@ -111,6 +39,8 @@ import "../vendor/gl-vec2/dot.js";
|
|
|
111
39
|
import "../shared-utils/math/intersecting.js";
|
|
112
40
|
import "../shared-utils/five/mode.js";
|
|
113
41
|
import "../shared-utils/three/blink.js";
|
|
42
|
+
import "../shared-utils/util.js";
|
|
43
|
+
import "../shared-utils/isNil.js";
|
|
114
44
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
115
45
|
import "../shared-utils/animationFrame/index.js";
|
|
116
46
|
import "../shared-utils/three/loadTexture.js";
|
|
@@ -198,6 +128,7 @@ import "../shared-utils/three/GLTFLoader.js";
|
|
|
198
128
|
import "@realsee/five/gltf-loader";
|
|
199
129
|
import "../PanoTagPlugin/utils/planeNormal.js";
|
|
200
130
|
import "../PanoTagPlugin/utils/model/mediaPlane.js";
|
|
131
|
+
import "../shared-utils/three/centerPoint.js";
|
|
201
132
|
import "../shared-utils/three/Quadrangle.js";
|
|
202
133
|
import "../shared-utils/math/pointsIsRectangle.js";
|
|
203
134
|
import "../shared-utils/three/loadVideoTexture.js";
|
|
@@ -227,6 +158,22 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
|
227
158
|
import "../vendor/svelte/store/index.js";
|
|
228
159
|
import "../CSS3DRenderPlugin/index.js";
|
|
229
160
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
161
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
162
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
163
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
164
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
165
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
166
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
167
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
168
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
169
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
170
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
171
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
172
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
173
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
174
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
175
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
176
|
+
import "../shared-utils/three/THREERaycaster.js";
|
|
230
177
|
import "../PanoTagPlugin/utils/DebugUtil.js";
|
|
231
178
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
232
179
|
import "../PanoTagPlugin/controller/Tag/PointTag.js";
|
|
@@ -246,13 +193,13 @@ import "./utils/safeCall.js";
|
|
|
246
193
|
import "../shared-utils/five/fiveLoaded.js";
|
|
247
194
|
import "./BaseController.js";
|
|
248
195
|
import "./utils/getFiveStateOnCurve.js";
|
|
249
|
-
const
|
|
196
|
+
const Ht = (o, r) => new t(o, r), It = (o, r) => new i(o, r);
|
|
250
197
|
export {
|
|
251
|
-
|
|
198
|
+
Ht as CruisePlugin,
|
|
252
199
|
t as CruisePluginController,
|
|
253
|
-
|
|
200
|
+
Lt as CruisePluginTypes,
|
|
254
201
|
i as MoveController,
|
|
255
|
-
|
|
202
|
+
It as MovePlugin,
|
|
256
203
|
t as WalkController,
|
|
257
|
-
|
|
204
|
+
Ht as default
|
|
258
205
|
};
|