@realsee/dnalogel 3.50.16 → 3.50.18-alpha.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.
Files changed (118) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +116 -0
  3. package/dist/ModelMakerPlugin/Controller.d.ts +2 -0
  4. package/dist/Sculpt/utils/export.d.ts +18 -0
  5. package/dist/index.cjs.js +207 -207
  6. package/dist/index.js +34867 -34776
  7. package/dist/index.umd.js +211 -211
  8. package/dist/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
  9. package/dist/shared-utils/index.d.ts +1 -0
  10. package/dist/shared-utils/tag.d.ts +41 -2
  11. package/dist/shared-utils/three/temp.d.ts +2 -2
  12. package/libs/AreaMakerPlugin/Controller.js +100 -46
  13. package/libs/AreaMakerPlugin/index.js +64 -10
  14. package/libs/AreaMakerPlugin/utils/Item.js +156 -100
  15. package/libs/CSS3DRenderPlugin/Controller.js +93 -44
  16. package/libs/CSS3DRenderPlugin/index.js +62 -13
  17. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +105 -49
  18. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +130 -77
  19. package/libs/CruisePlugin/BaseController.js +143 -89
  20. package/libs/CruisePlugin/Move.js +83 -39
  21. package/libs/CruisePlugin/Work.js +95 -51
  22. package/libs/CruisePlugin/index.js +66 -22
  23. package/libs/CurrentPanoImagePlugin/Controller.js +139 -85
  24. package/libs/CurrentPanoImagePlugin/index.js +63 -9
  25. package/libs/GuideLinePlugin/Controller.js +57 -13
  26. package/libs/GuideLinePlugin/GuideLineItem.js +63 -19
  27. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +6 -2
  28. package/libs/GuideLinePlugin/GuideLineModeItem.js +58 -14
  29. package/libs/GuideLinePlugin/index.js +66 -22
  30. package/libs/ModelMakerPlugin/Controller.d.ts +2 -0
  31. package/libs/ModelMakerPlugin/Controller.js +190 -129
  32. package/libs/ModelMakerPlugin/index.js +63 -21
  33. package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
  34. package/libs/ModelMakerPlugin/item/boxItem.js +5 -3
  35. package/libs/ModelMakerPlugin/item/polygonItem.js +9 -7
  36. package/libs/ModelMakerPlugin/item/prismItem.js +5 -3
  37. package/libs/ModelTVVideoPlugin/Plugin.js +96 -47
  38. package/libs/ModelTVVideoPlugin/index.js +55 -6
  39. package/libs/Object3DHelperPlugin/Controller.js +42 -25
  40. package/libs/Object3DHelperPlugin/index.js +28 -12
  41. package/libs/PanoCompassPlugin/Controller.js +92 -44
  42. package/libs/PanoCompassPlugin/index.js +63 -15
  43. package/libs/PanoDoorLabelPlugin/BaseController.js +79 -25
  44. package/libs/PanoDoorLabelPlugin/Controller.js +132 -78
  45. package/libs/PanoDoorLabelPlugin/index.js +63 -9
  46. package/libs/PanoMeasurePlugin/Components/Controller0.js +126 -77
  47. package/libs/PanoMeasurePlugin/Components/Controller1.js +139 -90
  48. package/libs/PanoMeasurePlugin/Controller/EditController.js +120 -71
  49. package/libs/PanoMeasurePlugin/Controller/WatchController.js +120 -70
  50. package/libs/PanoMeasurePlugin/Controller/index.js +132 -86
  51. package/libs/PanoMeasurePlugin/Model/area.js +72 -22
  52. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +56 -0
  53. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +64 -15
  54. package/libs/PanoMeasurePlugin/index.js +62 -16
  55. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +57 -2
  56. package/libs/PanoRulerProPlugin/Controller.js +88 -33
  57. package/libs/PanoRulerProPlugin/RulerItems.js +146 -91
  58. package/libs/PanoRulerProPlugin/index.js +64 -9
  59. package/libs/PanoSpatialTagPlugin/Plugin.js +177 -128
  60. package/libs/PanoSpatialTagPlugin/index.js +53 -4
  61. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +116 -60
  62. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +192 -136
  63. package/libs/PanoTagPlugin/Components/Tag/index.js +194 -139
  64. package/libs/PanoTagPlugin/Components/TagContainer.js +112 -57
  65. package/libs/PanoTagPlugin/Components/TagItem.js +204 -149
  66. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +157 -101
  67. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +75 -20
  68. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +86 -31
  69. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +93 -37
  70. package/libs/PanoTagPlugin/controller/TagRender.js +62 -18
  71. package/libs/PanoTagPlugin/controller/TagUtil.js +123 -79
  72. package/libs/PanoTagPlugin/controller/index.js +110 -72
  73. package/libs/PanoTagPlugin/index.js +72 -28
  74. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +77 -21
  75. package/libs/PanoVideoPlugin/Controller.js +95 -41
  76. package/libs/PanoVideoPlugin/VideoMeshController.js +119 -63
  77. package/libs/PanoVideoPlugin/index.js +66 -12
  78. package/libs/PipelinePlugin/Controller.js +173 -119
  79. package/libs/PipelinePlugin/index.js +63 -9
  80. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +70 -14
  81. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +58 -2
  82. package/libs/PipelinePlugin/utils/Objects/Pipe.js +98 -42
  83. package/libs/Sculpt/Meshes/Box.js +3 -2
  84. package/libs/Sculpt/Meshes/Cylinder.js +10 -6
  85. package/libs/Sculpt/Meshes/Line.js +43 -38
  86. package/libs/Sculpt/Meshes/LineWithDots.js +14 -10
  87. package/libs/Sculpt/Meshes/Point.js +24 -20
  88. package/libs/Sculpt/Meshes/Polygon.js +5 -2
  89. package/libs/Sculpt/Meshes/Prism.js +19 -16
  90. package/libs/Sculpt/Objects/Line/Editor.js +6 -5
  91. package/libs/Sculpt/index.js +15 -14
  92. package/libs/Sculpt/utils/export.d.ts +18 -0
  93. package/libs/Sculpt/utils/export.js +21 -0
  94. package/libs/Sculpt/utils/three/ColoredMesh.js +26 -22
  95. package/libs/base/BasePlugin.js +14 -10
  96. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +146 -94
  97. package/libs/floorplan/MapviewFloorplanPlugin/index.js +62 -10
  98. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +109 -56
  99. package/libs/floorplan/ModelFloorplanPlugin/index.js +62 -9
  100. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +116 -63
  101. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +62 -9
  102. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +105 -52
  103. package/libs/floorplan/TopviewFloorplanPlugin/index.js +62 -9
  104. package/libs/floorplan/index.js +4 -0
  105. package/libs/index.js +208 -206
  106. package/libs/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
  107. package/libs/shared-utils/five/fiveEveryReadyListener.js +15 -0
  108. package/libs/shared-utils/five/index.js +6 -2
  109. package/libs/shared-utils/five/lookObject.js +31 -27
  110. package/libs/shared-utils/index.d.ts +1 -0
  111. package/libs/shared-utils/index.js +19 -17
  112. package/libs/shared-utils/logger.js +1 -1
  113. package/libs/shared-utils/tag.d.ts +41 -2
  114. package/libs/shared-utils/tag.js +139 -86
  115. package/libs/shared-utils/three/index.js +4 -0
  116. package/libs/shared-utils/three/temp.d.ts +2 -2
  117. package/libs/shared-utils/three/temp.js +4 -4
  118. package/package.json +1 -1
@@ -12,19 +12,19 @@ var I = (h, l, t) => l in h ? b(h, l, { enumerable: !0, configurable: !0, writab
12
12
  }, x = (h, l) => F(h, E(l));
13
13
  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
- var i = (n) => {
15
+ var i = (m) => {
16
16
  try {
17
- p(t.next(n));
17
+ p(t.next(m));
18
18
  } catch (a) {
19
19
  r(a);
20
20
  }
21
- }, m = (n) => {
21
+ }, n = (m) => {
22
22
  try {
23
- p(t.throw(n));
23
+ p(t.throw(m));
24
24
  } catch (a) {
25
25
  r(a);
26
26
  }
27
- }, p = (n) => n.done ? e(n.value) : Promise.resolve(n.value).then(i, m);
27
+ }, p = (m) => m.done ? e(m.value) : Promise.resolve(m.value).then(i, n);
28
28
  p((t = t.apply(h, l)).next());
29
29
  });
30
30
  import { GuideLinePlugin as K } from "../GuideLinePlugin/index.js";
@@ -46,6 +46,10 @@ import "../shared-utils/three/core/Sphere.js";
46
46
  import "animejs";
47
47
  import { notNil as Q } from "../shared-utils/isNil.js";
48
48
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
49
+ import "../Sculpt/Meshes/Polygon.js";
50
+ import "../Sculpt/utils/Modules/Global.js";
51
+ import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
52
+ import "../Sculpt/utils/three/rayOnLine.js";
49
53
  import "../GuideLinePlugin/Controller.js";
50
54
  import "../base/BasePluginWithData.js";
51
55
  import "../base/BasePlugin.js";
@@ -183,6 +187,7 @@ import "../shared-utils/five/getFloorIndex.js";
183
187
  import "../shared-utils/safeObj.js";
184
188
  import "../PanoTagPlugin/utils/Cache.js";
185
189
  import "../shared-utils/three/temp.js";
190
+ import "../shared-utils/three/core/Raycaster.js";
186
191
  import "../PanoTagPlugin/controller/TagUtil.js";
187
192
  import "../PanoTagPlugin/tag.config.js";
188
193
  import "../PanoTagPlugin/utils/normalPositionToPositions.js";
@@ -198,6 +203,8 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
198
203
  import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
199
204
  import "../shared-utils/three/getObjectVisible.js";
200
205
  import "../shared-utils/five/vector3ToScreen.js";
206
+ import "../shared-utils/five/fiveEveryReadyListener.js";
207
+ import "../shared-utils/throttle.js";
201
208
  import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
202
209
  import "../shared-utils/three/Magnifier.js";
203
210
  import "../shared-utils/three/PointSelector/utils/PointHelper.js";
@@ -219,13 +226,50 @@ import "../shared-utils/five/getRaycasterByNdcPosition.js";
219
226
  import "../shared-utils/three/PointSelector/utils/contents.js";
220
227
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
221
228
  import "../vendor/three/build/three.module.js";
229
+ import "../shared-utils/three/generatePolygonGeometry.js";
230
+ import "../shared-utils/three/earcut3D.js";
231
+ import "earcut";
232
+ import "../PanoMeasurePlugin/utils/isIntersecting.js";
233
+ import "../Sculpt/utils/three/ColoredMesh.js";
234
+ import "../shared-utils/three/geometryUtil.js";
235
+ import "../Sculpt/utils/Modules/Cursor.js";
236
+ import "../Object3DHelperPlugin/Controller.js";
237
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
238
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
239
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
240
+ import "../shared-utils/three/boundingBox.js";
241
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
242
+ import "../shared-utils/Object3DHelper/utils/direction.js";
243
+ import "../shared-utils/Object3DHelper/Constants/color.js";
244
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
245
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
246
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
247
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
248
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
249
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
250
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
251
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
252
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
253
+ import "../shared-utils/threex/domevents/index.js";
254
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
255
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
256
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
257
+ import "../shared-utils/Object3DHelper/index.js";
258
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
259
+ import "../shared-utils/math/rad2Deg.js";
260
+ import "../shared-utils/math/deg2Rad.js";
261
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
262
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
263
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
264
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
265
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
266
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
267
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
222
268
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
223
269
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
224
270
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
225
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
226
271
  import "../shared-utils/five/FiveDomEvents.js";
227
272
  import "../shared-utils/five/calculateThreeMouse.js";
228
- import "../shared-utils/three/core/Raycaster.js";
229
273
  import "../PanoTagPlugin/utils/DebugUtil.js";
230
274
  import "../PanoTagPlugin/utils/addDebugPoints.js";
231
275
  import "../PanoTagPlugin/controller/Tag/PointTag.js";
@@ -243,7 +287,7 @@ import "./utils/getFiveStateOnCurve.js";
243
287
  import "../shared-utils/formatRad.js";
244
288
  import "./Work.js";
245
289
  import "./utils/coordinatesToVector.js";
246
- class _r extends G {
290
+ class Ko extends G {
247
291
  constructor(t, e) {
248
292
  super(t, e);
249
293
  k(this, "state", {
@@ -277,9 +321,9 @@ class _r extends G {
277
321
  return y(this, null, function* () {
278
322
  var o, s;
279
323
  this.clear();
280
- const i = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, m = yield this.formatData(t);
281
- this.data = g({ id: m.keyframesId }, m), this.hooks.emit("dataChange", m, i);
282
- let p = [], n;
324
+ const i = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(t);
325
+ this.data = g({ id: n.keyframesId }, n), this.hooks.emit("dataChange", n, i);
326
+ let p = [], m;
283
327
  const a = this.data.keyframes.filter((f) => f.data.panoIndex !== void 0);
284
328
  a.filter((f, d) => {
285
329
  var u;
@@ -288,15 +332,15 @@ class _r extends G {
288
332
  var u, v;
289
333
  const d = (u = this.workUtil.getObserver(f)) == null ? void 0 : u.floorIndex;
290
334
  if (d !== void 0)
291
- if (n === d) {
335
+ if (m === d) {
292
336
  const c = p.length - 1;
293
337
  p[c] = [...(v = p[c]) != null ? v : [], f];
294
338
  } else {
295
- n = d;
339
+ m = d;
296
340
  const c = p.length;
297
341
  p[c] = [f];
298
342
  }
299
- }), !this.GuideLine && ((o = this.config) == null ? void 0 : o.useGuideLine) !== !1 && m.useGuildLine !== !1 && (this.GuideLine = K(this.five, this.config)), (s = this.GuideLine) == null || s.load({ routes: p.map((f) => ({ panoIndexList: f })), config: m.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", m), this.hooks.emit("dataLoaded", m);
343
+ }), !this.GuideLine && ((o = this.config) == null ? void 0 : o.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = K(this.five, this.config)), (s = this.GuideLine) == null || s.load({ routes: p.map((f) => ({ panoIndexList: f })), config: n.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", n), this.hooks.emit("dataLoaded", n);
300
344
  });
301
345
  }
302
346
  /**
@@ -328,22 +372,22 @@ class _r extends G {
328
372
  return {
329
373
  keyframesId: S(),
330
374
  keyframes: e.keyframes.map((r, i) => {
331
- var n;
332
- const m = e.keyframes[i + 1], p = (() => !m || m.start === void 0 || r.end === void 0 ? 0 : m.start - r.end)();
333
- return x(g({ id: (n = r.uuid) != null ? n : S(), moveIndex: i, stay: p, index: i }, r), { guildPluginOptions: e.guildPluginOptions });
375
+ var m;
376
+ const n = e.keyframes[i + 1], p = (() => !n || n.start === void 0 || r.end === void 0 ? 0 : n.start - r.end)();
377
+ return x(g({ id: (m = r.uuid) != null ? m : S(), moveIndex: i, stay: p, index: i }, r), { guildPluginOptions: e.guildPluginOptions });
334
378
  })
335
379
  };
336
380
  if (e.panoIndexList) {
337
381
  let r = [];
338
- const { moveEffect: i, moveToFirstPanoEffect: m, moveToFirstPanoDuration: p } = e;
339
- return this.privateState.moveToFirstPanoEffect = m, this.privateState.moveToFirstPanoDuration = p, e.panoIndexList.forEach((n, a) => {
382
+ const { moveEffect: i, moveToFirstPanoEffect: n, moveToFirstPanoDuration: p } = e;
383
+ return this.privateState.moveToFirstPanoEffect = n, this.privateState.moveToFirstPanoDuration = p, e.panoIndexList.forEach((m, a) => {
340
384
  const o = (() => {
341
385
  var v, c;
342
- const s = e.panoIndexList.slice(a).find((P) => P !== n);
386
+ const s = e.panoIndexList.slice(a).find((P) => P !== m);
343
387
  if (s === void 0)
344
388
  return;
345
- const f = this.workUtil.getObserverPosition(n), d = this.workUtil.getObserverPosition(s);
346
- if (!d || !f || ((v = this.workUtil.getObserver(n)) == null ? void 0 : v.floorIndex) !== ((c = this.workUtil.getObserver(s)) == null ? void 0 : c.floorIndex))
389
+ const f = this.workUtil.getObserverPosition(m), d = this.workUtil.getObserverPosition(s);
390
+ if (!d || !f || ((v = this.workUtil.getObserver(m)) == null ? void 0 : v.floorIndex) !== ((c = this.workUtil.getObserver(s)) == null ? void 0 : c.floorIndex))
347
391
  return;
348
392
  const u = new U.Vector3().subVectors(d, f);
349
393
  return A(u.normalize());
@@ -351,11 +395,11 @@ class _r extends G {
351
395
  e.moveType === void 0 || e.moveType === "justMove" ? r.push({
352
396
  moveIndex: a,
353
397
  stay: e.stay,
354
- data: g({ effect: "Move", panoIndex: n, moveEffect: i }, o != null ? o : {})
355
- }) : e.moveType === "moveAndRotate" && (r.push({ moveIndex: a, stay: e.stay, data: { effect: "Move", panoIndex: n, moveEffect: i } }), o && r.push({ moveIndex: a, stay: e.stay, data: g({ effect: "Rotate", panoIndex: n }, o) }));
398
+ data: g({ effect: "Move", panoIndex: m, moveEffect: i }, o != null ? o : {})
399
+ }) : e.moveType === "moveAndRotate" && (r.push({ moveIndex: a, stay: e.stay, data: { effect: "Move", panoIndex: m, moveEffect: i } }), o && r.push({ moveIndex: a, stay: e.stay, data: g({ effect: "Rotate", panoIndex: m }, o) }));
356
400
  }), {
357
401
  keyframesId: S(),
358
- keyframes: r.map((n, a) => g({ id: S(), index: a }, n)),
402
+ keyframes: r.map((m, a) => g({ id: S(), index: a }, m)),
359
403
  guildPluginOptions: e.guildPluginOptions,
360
404
  useGuildLine: e.useGuildLine
361
405
  };
@@ -372,13 +416,13 @@ class _r extends G {
372
416
  handlePlay(t) {
373
417
  return y(this, null, function* () {
374
418
  var d;
375
- const { data: e, state: r, privateState: i, hooks: m } = this;
419
+ const { data: e, state: r, privateState: i, hooks: n } = this;
376
420
  if (i.playing || !(e != null && e.keyframes) || (e == null ? void 0 : e.keyframes.length) === 0)
377
421
  return;
378
422
  const p = S();
379
423
  i.playId = p, i.playing = !0, i.broke = !1;
380
- const n = e.keyframes, a = this.getPauseData();
381
- (t == null ? void 0 : t.notEmitEvent) !== !0 && m.emit("play", { userAction: (d = t == null ? void 0 : t.userAction) != null ? d : !0 });
424
+ const m = e.keyframes, a = this.getPauseData();
425
+ (t == null ? void 0 : t.notEmitEvent) !== !0 && n.emit("play", { userAction: (d = t == null ? void 0 : t.userAction) != null ? d : !0 });
382
426
  let o = !1;
383
427
  const f = yield (() => y(this, null, function* () {
384
428
  var u, v;
@@ -402,12 +446,12 @@ class _r extends G {
402
446
  }
403
447
  }))();
404
448
  this.clearPauseData();
405
- for (const u of n) {
449
+ for (const u of m) {
406
450
  if (i.broke || !r.playing || !i.playing || p !== i.playId)
407
451
  return;
408
452
  if (!(f !== void 0 && u.index < f))
409
453
  try {
410
- m.emit("playIndexChange", u.index, u), yield this.playKeyframe(u, {
454
+ n.emit("playIndexChange", u.index, u), yield this.playKeyframe(u, {
411
455
  moveEffect: o === !1 ? i.moveToFirstPanoEffect : void 0,
412
456
  duration: o === !1 && typeof i.moveToFirstPanoDuration == "number" ? i.moveToFirstPanoDuration : void 0
413
457
  }), u.stay && (yield O(u.stay)), o === !1 && (o = !0);
@@ -415,27 +459,27 @@ class _r extends G {
415
459
  return console.error(v), Promise.resolve("broke");
416
460
  }
417
461
  }
418
- r.playing && p === i.playId && (this.setState({ playing: !1 }, { userAction: !1 }), m.emit("end"), this.clearPauseData());
462
+ r.playing && p === i.playId && (this.setState({ playing: !1 }, { userAction: !1 }), n.emit("end"), this.clearPauseData());
419
463
  });
420
464
  }
421
465
  /**
422
466
  * @description: Pause and record pause state
423
467
  */
424
468
  handlePause(t) {
425
- var m;
469
+ var n;
426
470
  const { state: e, privateState: r, hooks: i } = this;
427
- 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: (m = t == null ? void 0 : t.userAction) != null ? m : !0 }));
471
+ 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: (n = t == null ? void 0 : t.userAction) != null ? n : !0 }));
428
472
  }
429
473
  /**
430
474
  * @description: Change play speed
431
475
  */
432
476
  changeSpeed(t, e = !0) {
433
- var n;
434
- const { state: r, privateState: i, hooks: m } = this, { currentPlayKeyframe: p } = i;
435
- if (m.emit("speedChange", t, { userAction: e }), r.playing && p)
477
+ var m;
478
+ const { state: r, privateState: i, hooks: n } = this, { currentPlayKeyframe: p } = i;
479
+ if (n.emit("speedChange", t, { userAction: e }), r.playing && p)
436
480
  try {
437
481
  const a = p.originDuration !== void 0 ? p.originDuration * (1 - this.getProgress()) : void 0, o = p.keyframe, { privateState: s } = this;
438
- ((n = this.privateState.currentPlayKeyframe) == null ? void 0 : n.keyframe.id) !== o.id && (this.privateState.currentPlayKeyframe = { keyframe: o }), s.currentPlayQueue.push(this.getPlayPromise(o, { duration: a }));
482
+ ((m = this.privateState.currentPlayKeyframe) == null ? void 0 : m.keyframe.id) !== o.id && (this.privateState.currentPlayKeyframe = { keyframe: o }), s.currentPlayQueue.push(this.getPlayPromise(o, { duration: a }));
439
483
  } catch (a) {
440
484
  console.error(a);
441
485
  }
@@ -480,14 +524,14 @@ class _r extends G {
480
524
  */
481
525
  getPlayPromise(r) {
482
526
  return y(this, arguments, function* (t, e = {}) {
483
- var m;
527
+ var n;
484
528
  const i = t.data;
485
- if (e.duration = (m = e.duration) != null ? m : t.start !== void 0 && t.end !== void 0 ? t.end - t.start : void 0, !!i)
486
- return new Promise((p, n) => {
529
+ if (e.duration = (n = e.duration) != null ? n : t.start !== void 0 && t.end !== void 0 ? t.end - t.start : void 0, !!i)
530
+ return new Promise((p, m) => {
487
531
  let a = !1;
488
532
  this.addInterruptListener(() => {
489
533
  if (!a)
490
- return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), a = !0, n(new Error("play is interupted"));
534
+ return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), a = !0, m(new Error("play is interupted"));
491
535
  });
492
536
  try {
493
537
  if (a)
@@ -560,7 +604,7 @@ class _r extends G {
560
604
  */
561
605
  updateCamera(r) {
562
606
  return y(this, arguments, function* (t, e = {}) {
563
- const { five: i, privateState: m, state: p } = this, n = (() => {
607
+ const { five: i, privateState: n, state: p } = this, m = (() => {
564
608
  var d, u;
565
609
  const s = (d = p.config) == null ? void 0 : d.speedConfig, f = (u = t.rotateSpeed) != null ? u : s == null ? void 0 : s.rotateSpeed;
566
610
  if ((s == null ? void 0 : s.rotateSpeedUnit) === void 0)
@@ -570,13 +614,13 @@ class _r extends G {
570
614
  })(), a = (() => {
571
615
  if (e.duration)
572
616
  return e.duration;
573
- if (n) {
617
+ if (m) {
574
618
  const s = this.five.getCurrentState();
575
- return L(s, t) / n;
619
+ return L(s, t) / m;
576
620
  }
577
621
  return 800;
578
622
  })();
579
- m.currentPlayKeyframe && (m.currentPlayKeyframe.originDuration = a);
623
+ n.currentPlayKeyframe && (n.currentPlayKeyframe.originDuration = a);
580
624
  const o = this.getSpeededDuration(a);
581
625
  return new Promise((s) => {
582
626
  T(() => i.updateCamera(t, o)), setTimeout(() => s(), o);
@@ -588,14 +632,14 @@ class _r extends G {
588
632
  */
589
633
  changePano(t, e) {
590
634
  return y(this, null, function* () {
591
- const { five: r, privateState: i, state: m } = this;
635
+ const { five: r, privateState: i, state: n } = this;
592
636
  if (typeof t.panoIndex != "number" || t.panoIndex === r.panoIndex)
593
637
  return;
594
638
  const p = r.getCurrentState().mode !== "Panorama";
595
639
  p && (this.privateState.modeChanging = !0);
596
- const n = (() => {
640
+ const m = (() => {
597
641
  var f, d;
598
- const o = (f = m.config) == null ? void 0 : f.speedConfig, s = (d = t.moveSpeed) != null ? d : o == null ? void 0 : o.moveSpeed;
642
+ const o = (f = n.config) == null ? void 0 : f.speedConfig, s = (d = t.moveSpeed) != null ? d : o == null ? void 0 : o.moveSpeed;
599
643
  if ((o == null ? void 0 : o.moveSpeedUnit) === void 0)
600
644
  return s;
601
645
  if (s !== void 0)
@@ -603,9 +647,9 @@ class _r extends G {
603
647
  })(), a = (() => {
604
648
  if (e != null && e.duration)
605
649
  return e.duration;
606
- if (n && typeof r.panoIndex == "number" && typeof t.panoIndex == "number") {
650
+ if (m && typeof r.panoIndex == "number" && typeof t.panoIndex == "number") {
607
651
  const o = this.workUtil.getObserverPosition(r.panoIndex), s = this.workUtil.getObserverPosition(t.panoIndex);
608
- return o && s ? o.distanceTo(s) / n : 800;
652
+ return o && s ? o.distanceTo(s) / m : 800;
609
653
  }
610
654
  return 800;
611
655
  })();
@@ -634,5 +678,5 @@ class _r extends G {
634
678
  }
635
679
  }
636
680
  export {
637
- _r as default
681
+ Ko as default
638
682
  };
@@ -1,4 +1,4 @@
1
- import { typing as si } from "./typing/index.js";
1
+ import { typing as $i } from "./typing/index.js";
2
2
  import t from "./Work.js";
3
3
  import i from "./Move.js";
4
4
  import "../GuideLinePlugin/index.js";
@@ -16,7 +16,10 @@ import "../shared-utils/Utils/BaseUtil.js";
16
16
  import "../shared-utils/Utils/WorkUtil.js";
17
17
  import "../shared-utils/five/transformPosition.js";
18
18
  import "../shared-utils/three/temp.js";
19
+ import "../shared-utils/three/core/Raycaster.js";
19
20
  import "../shared-utils/dom/resizeObserver.js";
21
+ import "../shared-utils/five/fiveEveryReadyListener.js";
22
+ import "../shared-utils/throttle.js";
20
23
  import "hammerjs";
21
24
  import "../shared-utils/three/PointSelector/index.js";
22
25
  import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
@@ -37,27 +40,77 @@ import "../shared-utils/three/core/Sphere.js";
37
40
  import "animejs";
38
41
  import "../shared-utils/isNil.js";
39
42
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
40
- import "../shared-utils/three/PointSelector/utils/html.js";
41
- import "../shared-utils/five/initialCSS3DRender.js";
43
+ import "../Sculpt/Meshes/Polygon.js";
44
+ import "../shared-utils/three/generatePolygonGeometry.js";
45
+ import "../shared-utils/three/earcut3D.js";
46
+ import "earcut";
47
+ import "../shared-utils/three/getNormal.js";
48
+ import "../PanoMeasurePlugin/utils/isIntersecting.js";
49
+ import "../Sculpt/typings/style.js";
50
+ import "../Sculpt/utils/three/ColoredMesh.js";
51
+ import "../shared-utils/three/IObject3D.js";
52
+ import "../Sculpt/utils/Modules/Global.js";
53
+ import "../Sculpt/utils/Modules/Cursor.js";
54
+ import "../Object3DHelperPlugin/Controller.js";
55
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
56
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
57
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
58
+ import "../shared-utils/three/boundingBox.js";
59
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
60
+ import "../shared-utils/Object3DHelper/utils/direction.js";
61
+ import "../shared-utils/Object3DHelper/Constants/color.js";
62
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
63
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
42
64
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
43
65
  import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
44
66
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
67
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
68
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
69
+ import "../shared-utils/util.js";
70
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
71
+ import "../shared-utils/three/PointSelector/utils/html.js";
72
+ import "../shared-utils/five/initialCSS3DRender.js";
45
73
  import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
46
74
  import "../Sculpt/Meshes/Line.js";
47
- import "../Sculpt/typings/style.js";
48
75
  import "../shared-utils/five/FiveLine.js";
49
- import "../shared-utils/three/IObject3D.js";
50
76
  import "../Sculpt/utils/removeAllTag.js";
51
77
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
52
78
  import "../shared-utils/three/applyObjectMatrixWorld.js";
53
- import "../shared-utils/util.js";
79
+ import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
80
+ import "../Sculpt/utils/three/rayOnLine.js";
54
81
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
82
+ import "../shared-utils/url/absoluteUrl.js";
83
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
84
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
85
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
86
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
87
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
88
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
89
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
90
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
91
+ import "../shared-utils/threex/domevents/index.js";
92
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
93
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
94
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
95
+ import "../shared-utils/Object3DHelper/index.js";
96
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
97
+ import "../shared-utils/math/rad2Deg.js";
98
+ import "../shared-utils/math/deg2Rad.js";
99
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
100
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
101
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
102
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
103
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
104
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
105
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
106
+ import "../shared-utils/five/fiveModelLoad.js";
107
+ import "../shared-utils/five/FiveDomEvents.js";
108
+ import "../shared-utils/five/calculateThreeMouse.js";
55
109
  import "../shared-utils/isTouchDevice.js";
110
+ import "../shared-utils/three/geometryUtil.js";
56
111
  import "../shared-utils/five/getPosition.js";
57
112
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
58
113
  import "../shared-utils/three/PointSelector/utils/contents.js";
59
- import "../shared-utils/url/absoluteUrl.js";
60
- import "../shared-utils/five/fiveModelLoad.js";
61
114
  import "../shared-utils/uuid.js";
62
115
  import "../shared-utils/equal.js";
63
116
  import "../shared-utils/isTruelyObject.js";
@@ -166,7 +219,6 @@ import "../shared-utils/three/loadVideoTexture.js";
166
219
  import "../shared-utils/device.js";
167
220
  import "../shared-utils/three/getPositionsByObjectFit.js";
168
221
  import "../shared-utils/three/FragmentTransparencyMaterial.js";
169
- import "../shared-utils/three/getNormal.js";
170
222
  import "../PanoTagPlugin/controller/Tag/BaseTag.js";
171
223
  import "../PanoTagPlugin/utils/tag/calculateTagConfig.js";
172
224
  import "../shared-utils/typescript/entries.js";
@@ -188,14 +240,6 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
188
240
  import "../vendor/svelte/store/index.js";
189
241
  import "../CSS3DRenderPlugin/index.js";
190
242
  import "../CSS3DRenderPlugin/Controller.js";
191
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
192
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
193
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
194
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
195
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
196
- import "../shared-utils/five/FiveDomEvents.js";
197
- import "../shared-utils/five/calculateThreeMouse.js";
198
- import "../shared-utils/three/core/Raycaster.js";
199
243
  import "../PanoTagPlugin/utils/DebugUtil.js";
200
244
  import "../PanoTagPlugin/utils/addDebugPoints.js";
201
245
  import "../PanoTagPlugin/controller/Tag/PointTag.js";
@@ -215,13 +259,13 @@ import "./utils/sleep.js";
215
259
  import "../shared-utils/five/fiveLoaded.js";
216
260
  import "./BaseController.js";
217
261
  import "./utils/getFiveStateOnCurve.js";
218
- const mi = (o, r) => new t(o, r), ei = (o, r) => new i(o, r);
262
+ const Xi = (o, r) => new t(o, r), Yi = (o, r) => new i(o, r);
219
263
  export {
220
- mi as CruisePlugin,
264
+ Xi as CruisePlugin,
221
265
  t as CruisePluginController,
222
- si as CruisePluginTypes,
266
+ $i as CruisePluginTypes,
223
267
  i as MoveController,
224
- ei as MovePlugin,
268
+ Yi as MovePlugin,
225
269
  t as WalkController,
226
- mi as default
270
+ Xi as default
227
271
  };