@realsee/dnalogel 3.50.12 → 3.50.14

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 (112) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +3 -3
  3. package/dist/PanoTagPlugin/controller/TagRender.d.ts +0 -3
  4. package/dist/PanoTagPlugin/controller/index.d.ts +4 -0
  5. package/dist/base/BasePlugin.d.ts +1 -1
  6. package/dist/index.cjs.js +194 -194
  7. package/dist/index.js +3633 -3614
  8. package/dist/index.umd.js +191 -191
  9. package/dist/shared-utils/equal.d.ts +1 -1
  10. package/dist/shared-utils/index.d.ts +2 -1
  11. package/dist/shared-utils/tag.d.ts +18 -7
  12. package/libs/AreaMakerPlugin/Controller.js +3 -3
  13. package/libs/AreaMakerPlugin/index.js +6 -6
  14. package/libs/AreaMakerPlugin/utils/Item.js +3 -3
  15. package/libs/CSS3DRenderPlugin/Controller.js +3 -3
  16. package/libs/CSS3DRenderPlugin/index.js +7 -7
  17. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -3
  18. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +5 -5
  19. package/libs/CruisePlugin/BaseController.js +13 -13
  20. package/libs/CruisePlugin/Move.js +3 -3
  21. package/libs/CruisePlugin/Work.js +2 -2
  22. package/libs/CruisePlugin/index.js +8 -8
  23. package/libs/CurrentPanoImagePlugin/Controller.js +3 -3
  24. package/libs/CurrentPanoImagePlugin/index.js +6 -6
  25. package/libs/GuideLinePlugin/Controller.js +19 -19
  26. package/libs/GuideLinePlugin/GuideLineItem.js +7 -7
  27. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +1 -1
  28. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -3
  29. package/libs/GuideLinePlugin/index.js +8 -8
  30. package/libs/ModelMakerPlugin/Controller.js +3 -3
  31. package/libs/ModelMakerPlugin/index.js +7 -7
  32. package/libs/ModelTVVideoPlugin/Plugin.js +5 -5
  33. package/libs/ModelTVVideoPlugin/index.js +5 -5
  34. package/libs/Object3DHelperPlugin/Controller.js +6 -6
  35. package/libs/Object3DHelperPlugin/index.js +7 -7
  36. package/libs/PanoCompassPlugin/Controller.js +6 -6
  37. package/libs/PanoCompassPlugin/index.js +6 -6
  38. package/libs/PanoDoorLabelPlugin/BaseController.js +7 -7
  39. package/libs/PanoDoorLabelPlugin/Controller.js +6 -6
  40. package/libs/PanoDoorLabelPlugin/index.js +6 -6
  41. package/libs/PanoMeasurePlugin/Components/Controller0.js +5 -5
  42. package/libs/PanoMeasurePlugin/Components/Controller1.js +5 -5
  43. package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -5
  44. package/libs/PanoMeasurePlugin/Controller/WatchController.js +4 -4
  45. package/libs/PanoMeasurePlugin/Controller/index.js +3 -3
  46. package/libs/PanoMeasurePlugin/Model/area.js +5 -5
  47. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +7 -7
  48. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +5 -5
  49. package/libs/PanoMeasurePlugin/index.js +3 -3
  50. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -3
  51. package/libs/PanoRulerProPlugin/Controller.js +52 -33
  52. package/libs/PanoRulerProPlugin/RulerItems.js +104 -85
  53. package/libs/PanoRulerProPlugin/index.js +23 -4
  54. package/libs/PanoSpatialTagPlugin/Plugin.js +5 -5
  55. package/libs/PanoSpatialTagPlugin/index.js +5 -5
  56. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -3
  57. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -3
  58. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -3
  59. package/libs/PanoTagPlugin/Components/TagContainer.js +6 -6
  60. package/libs/PanoTagPlugin/Components/TagItem.js +3 -3
  61. package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +3 -3
  62. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -3
  63. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +7 -7
  64. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +7 -7
  65. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +7 -7
  66. package/libs/PanoTagPlugin/controller/TagRender.d.ts +0 -3
  67. package/libs/PanoTagPlugin/controller/TagRender.js +86 -116
  68. package/libs/PanoTagPlugin/controller/TagUtil.js +5 -5
  69. package/libs/PanoTagPlugin/controller/index.d.ts +4 -0
  70. package/libs/PanoTagPlugin/controller/index.js +44 -32
  71. package/libs/PanoTagPlugin/index.js +6 -6
  72. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -3
  73. package/libs/PanoVideoPlugin/Controller.js +7 -7
  74. package/libs/PanoVideoPlugin/VideoMeshController.js +3 -3
  75. package/libs/PanoVideoPlugin/index.js +7 -7
  76. package/libs/PipelinePlugin/Controller.js +15 -15
  77. package/libs/PipelinePlugin/index.js +7 -7
  78. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -3
  79. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -3
  80. package/libs/PipelinePlugin/utils/Objects/Pipe.js +3 -3
  81. package/libs/Sculpt/Meshes/Box.js +1 -1
  82. package/libs/Sculpt/Meshes/Cylinder.js +1 -1
  83. package/libs/Sculpt/Meshes/Line.js +4 -4
  84. package/libs/Sculpt/Meshes/LineWithDots.js +3 -2
  85. package/libs/Sculpt/Meshes/Point.js +1 -1
  86. package/libs/Sculpt/Meshes/Prism.js +9 -8
  87. package/libs/Sculpt/Meshes/Rectangle.js +1 -1
  88. package/libs/Sculpt/Objects/Line/Editor.js +1 -1
  89. package/libs/Sculpt/index.js +1 -1
  90. package/libs/Sculpt/utils/three/ColoredMesh.js +1 -1
  91. package/libs/base/BasePlugin.d.ts +1 -1
  92. package/libs/base/BasePlugin.js +2 -2
  93. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -3
  94. package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -6
  95. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -3
  96. package/libs/floorplan/ModelFloorplanPlugin/index.js +6 -6
  97. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +7 -7
  98. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +7 -7
  99. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -3
  100. package/libs/floorplan/TopviewFloorplanPlugin/index.js +6 -6
  101. package/libs/floorplan/index.js +1 -1
  102. package/libs/index.js +6 -6
  103. package/libs/shared-utils/equal.d.ts +1 -1
  104. package/libs/shared-utils/five/index.js +1 -1
  105. package/libs/shared-utils/five/lookObject.js +1 -1
  106. package/libs/shared-utils/index.d.ts +2 -1
  107. package/libs/shared-utils/index.js +57 -54
  108. package/libs/shared-utils/logger.js +1 -1
  109. package/libs/shared-utils/tag.d.ts +18 -7
  110. package/libs/shared-utils/tag.js +80 -61
  111. package/libs/shared-utils/three/index.js +1 -1
  112. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  var D = Object.defineProperty, P = Object.defineProperties;
2
2
  var U = Object.getOwnPropertyDescriptors;
3
- var y = Object.getOwnPropertySymbols;
4
- var F = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
3
+ var b = Object.getOwnPropertySymbols;
4
+ var E = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
5
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(d, e, a[e]);
8
- if (y)
9
- for (var e of y(a))
10
- E.call(a, e) && u(d, e, a[e]);
7
+ E.call(a, e) && u(d, e, a[e]);
8
+ if (b)
9
+ for (var e of b(a))
10
+ A.call(a, e) && u(d, e, a[e]);
11
11
  return d;
12
12
  }, c = (d, a) => P(d, U(a));
13
13
  var p = (d, a, e) => (u(d, typeof a != "symbol" ? a + "" : a, e), e);
@@ -29,20 +29,20 @@ var l = (d, a, e) => new Promise((t, i) => {
29
29
  });
30
30
  import * as v from "three";
31
31
  import { objectAssignDeepExports as m } from "../../vendor/object-assign-deep/objectAssignDeep.js";
32
- import { arrayPositionToVector3 as k } from "../../shared-utils/positionToVector3.js";
33
- import { isModelTag as A, isMediaModelTag as w } from "../utils/tag/tagCheck.js";
32
+ import { arrayPositionToVector3 as F } from "../../shared-utils/positionToVector3.js";
33
+ import { isModelTag as k, isMediaModelTag as w } from "../utils/tag/tagCheck.js";
34
34
  import { debounce as M } from "../utils/debounce.js";
35
- import { throttle as b } from "../utils/throttle.js";
36
- import _, { getTagStickType as I } from "../utils/tag/format.js";
37
- import { generateBlankAudio as L, AudioNamespace as R } from "../../shared-utils/audio.js";
35
+ import { throttle as y } from "../utils/throttle.js";
36
+ import _, { getTagStickType as L } from "../utils/tag/format.js";
37
+ import { generateBlankAudio as I, AudioNamespace as B } from "../../shared-utils/audio.js";
38
38
  import { resizeObserver as T } from "../../shared-utils/dom/resizeObserver.js";
39
- import { TagRender as B } from "./TagRender.js";
39
+ import { TagRender as R } from "./TagRender.js";
40
+ import "../../shared-utils/tag.js";
40
41
  import { isModelLike as O } from "../../shared-utils/five/mode.js";
41
42
  import "hammerjs";
42
43
  import "three/examples/jsm/renderers/CSS3DRenderer";
43
44
  import "@realsee/five/line";
44
45
  import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
45
- import "../../shared-utils/tag.js";
46
46
  import "../../shared-utils/three/core/Sphere.js";
47
47
  import "animejs";
48
48
  import { nextFrame as G } from "../../shared-utils/animationFrame/index.js";
@@ -51,9 +51,9 @@ import { DebugUtil as V } from "../utils/DebugUtil.js";
51
51
  import { safeObj as C } from "../../shared-utils/safeObj.js";
52
52
  import { PointTag as z } from "./Tag/PointTag.js";
53
53
  import { ModelTag as Q } from "./Tag/ModelTag.js";
54
- import { PlaneTag as x } from "./Tag/PlaneTag.js";
55
- import $ from "../Components/TagContainer.js";
56
- import { tweenProgress as W } from "../../shared-utils/animationFrame/BetterTween.js";
54
+ import { PlaneTag as $ } from "./Tag/PlaneTag.js";
55
+ import x from "../Components/TagContainer.js";
56
+ import { tweenProgress as j } from "../../shared-utils/animationFrame/BetterTween.js";
57
57
  import "../Components/Tag/index.js";
58
58
  import "../../vendor/svelte/internal/index.js";
59
59
  import "../Components/Tag/TextTag/index.js";
@@ -112,8 +112,6 @@ import "../../vendor/svelte-carousel/src/utils/interval.js";
112
112
  import "../Components/Common/MediaItem.js";
113
113
  import "../Components/Tag/MarketingTag.js";
114
114
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
115
- import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
116
- import "../../vendor/three/build/three.module.js";
117
115
  import "../../shared-utils/five/vector3ToScreen.js";
118
116
  import "../../shared-utils/five/getFiveModel.js";
119
117
  import "../../shared-utils/Utils/FiveUtil.js";
@@ -122,6 +120,8 @@ import "../../shared-utils/Subscribe.js";
122
120
  import "../../shared-utils/Utils/WorkUtil.js";
123
121
  import "../../shared-utils/five/transformPosition.js";
124
122
  import "../../shared-utils/three/temp.js";
123
+ import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
124
+ import "../../vendor/three/build/three.module.js";
125
125
  import "../utils/noTypecheck.js";
126
126
  import "../Components/Tag/AudioTag/index.js";
127
127
  import "../Components/Tag/AudioTag/AudioTag.js";
@@ -193,7 +193,7 @@ import "../utils/addDebugPoints.js";
193
193
  import "../Components/TagItem.js";
194
194
  import "../Components/Common/TagPoint.js";
195
195
  const S = "Dnalogel-PanoTagPlugin", Ji = (d) => `${S}--${d}`;
196
- class Zi extends B {
196
+ class Zi extends R {
197
197
  constructor(e, t) {
198
198
  super(e);
199
199
  /** state */
@@ -241,7 +241,7 @@ class Zi extends B {
241
241
  p(this, "handleFivePanoArrived", () => l(this, null, function* () {
242
242
  this.tags.forEach((e) => {
243
243
  e.state.visible = !1, e.temporaryState = c(f({}, e.temporaryState), { visible: !0 }), e.applyVisible(), e.updateVisible();
244
- }), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.filter(A).filter((e) => {
244
+ }), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.filter(k).filter((e) => {
245
245
  var t;
246
246
  return (t = e.getConfig().modelConfig) == null ? void 0 : t.autoLookAtEnabled;
247
247
  }).forEach((e) => {
@@ -252,7 +252,7 @@ class Zi extends B {
252
252
  t.position.copy(i.position), t.quaternion.copy(i.quaternion);
253
253
  const o = this.five.camera.position;
254
254
  t.lookAt(o.clone().setY(t.position.y));
255
- const s = i.quaternion.clone(), n = t.quaternion.clone(), r = W();
255
+ const s = i.quaternion.clone(), n = t.quaternion.clone(), r = j();
256
256
  r.onUpdate(({ progress: g }) => {
257
257
  i.quaternion.copy(s.clone().slerp(n, g));
258
258
  }), r.play();
@@ -290,7 +290,7 @@ class Zi extends B {
290
290
  } else {
291
291
  if (!this.container)
292
292
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
293
- this.TagContainerSvelte = new $({
293
+ this.TagContainerSvelte = new x({
294
294
  target: this.container,
295
295
  props: c(f({}, n), { state: c(f({}, this.state), { enabled: !1 }) })
296
296
  }), G(() => {
@@ -301,9 +301,9 @@ class Zi extends B {
301
301
  }
302
302
  }), this.renderQueue.clear();
303
303
  });
304
- 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: R.PlayAudio });
304
+ 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(), I(1, { namespace: B.PlayAudio });
305
305
  try {
306
- Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
306
+ Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), this.NAME = S + "-" + window.__PANOTAGPLUGIN_DEBUG_LIST__.length, window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
307
307
  get: function() {
308
308
  return window.__PANOTAGPLUGIN_DEBUG_LIST__.sort((i, o) => o.tags.length - i.tags.length)[0];
309
309
  }
@@ -325,7 +325,7 @@ class Zi extends B {
325
325
  var i, o;
326
326
  this.clearTags();
327
327
  try {
328
- console.debug(S, " load:", { data: JSON.parse(JSON.stringify(e)) });
328
+ console.debug(this.NAME, " load:", { data: JSON.parse(JSON.stringify(e)) });
329
329
  } catch (s) {
330
330
  }
331
331
  this.config = m({}, this.config, {
@@ -342,18 +342,20 @@ class Zi extends B {
342
342
  addTag(e) {
343
343
  return l(this, null, function* () {
344
344
  const i = (Array.isArray(e) ? e : [e]).filter((o) => o.position).map((o) => {
345
- const s = I(o);
345
+ const s = L(o);
346
346
  if (s === "2DPoint" || s === "3DPoint")
347
347
  return new z(this, o);
348
348
  if (s === "Model")
349
349
  return new Q(this, o);
350
350
  if (s === "Plane")
351
- return new x(this, o);
351
+ return new $(this, o);
352
352
  });
353
353
  return i.forEach(_), this.tags.push(...i), this.tagsLengthWillUpdate = !0, N(this.five).then(() => l(this, null, function* () {
354
354
  var o, s;
355
- this.store.eventListenerDisposer && ((s = (o = this.store).eventListenerDisposer) == null || s.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(i), i.forEach((n) => {
356
- n.updateVisible(), n.updateZIndex();
355
+ this.store.eventListenerDisposer && ((s = (o = this.store).eventListenerDisposer) == null || s.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), i.forEach((n) => {
356
+ this.tags.includes(n) && (n.stickType === "Model" && n.loadModel().then(() => {
357
+ this.tags.includes(n) && n.updateVisible();
358
+ }), n.updateVisible(), n.updateZIndex());
357
359
  }), this.setUnfolded(), this.addRenderQueue({ type: "TagContainerSvelte" }), this.hooks.emit("tagsLengthChange");
358
360
  }));
359
361
  });
@@ -463,7 +465,7 @@ class Zi extends B {
463
465
  */
464
466
  changeTagNormalById(e, t) {
465
467
  const i = this.getTagById(e);
466
- i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = k(t));
468
+ i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = F(t));
467
469
  }
468
470
  /**
469
471
  * @description 改变data
@@ -507,6 +509,16 @@ class Zi extends B {
507
509
  updateRenderAllTags() {
508
510
  this.tags.forEach((e) => e.updateVisible()), this.five.needsRender = !0;
509
511
  }
512
+ /**
513
+ * @description 清除所有标签
514
+ */
515
+ clearTags() {
516
+ var e;
517
+ this.tags.length && (this.tags.forEach((t) => {
518
+ var i, o, s, n, r;
519
+ (o = (i = t.mediaPlane) == null ? void 0 : i.parent) == null || o.remove(t.mediaPlane), (r = (n = (s = t.model) == null ? void 0 : s.object) == null ? void 0 : n.parent) == null || r.remove(t.model.object);
520
+ }), this.tags = [], this.tagsLengthWillUpdate = !0, this.hooks.emit("tagsLengthChange"), (e = this.TagContainerSvelte) == null || e.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer()), this.enabledModelTagSet.clear(), this.cache.clear();
521
+ }
510
522
  /**
511
523
  * @description 设置 unfolded
512
524
  */
@@ -554,7 +566,7 @@ class Zi extends B {
554
566
  }, i = () => {
555
567
  this.state.enabled && (this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }));
556
568
  }, { observe: o, unobserve: s } = T(
557
- b(() => {
569
+ y(() => {
558
570
  this.store.resizeObserverDisposer && i();
559
571
  }, 500),
560
572
  e
@@ -592,7 +604,7 @@ class Zi extends B {
592
604
  addEventListener() {
593
605
  const { five: e, hooks: t } = this;
594
606
  let i = !1;
595
- const o = b(() => {
607
+ const o = y(() => {
596
608
  i || (i = !0, e.ready().then(() => {
597
609
  this.onFiveEveryReady(), i = !1;
598
610
  }));
@@ -70,12 +70,6 @@ import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
70
70
  import "../vendor/svelte-carousel/src/utils/interval.js";
71
71
  import "./Components/Common/MediaItem.js";
72
72
  import "./Components/Tag/MarketingTag.js";
73
- import "hammerjs";
74
- import "three/examples/jsm/renderers/CSS3DRenderer";
75
- import "@realsee/five/line";
76
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
77
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
78
- import "../vendor/three/build/three.module.js";
79
73
  import "../shared-utils/tag.js";
80
74
  import "../shared-utils/five/vector3ToScreen.js";
81
75
  import "../shared-utils/five/getFiveModel.js";
@@ -85,6 +79,12 @@ import "../shared-utils/Subscribe.js";
85
79
  import "../shared-utils/Utils/WorkUtil.js";
86
80
  import "../shared-utils/five/transformPosition.js";
87
81
  import "../shared-utils/three/temp.js";
82
+ import "hammerjs";
83
+ import "three/examples/jsm/renderers/CSS3DRenderer";
84
+ import "@realsee/five/line";
85
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
86
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
87
+ import "../vendor/three/build/three.module.js";
88
88
  import "../shared-utils/three/core/Sphere.js";
89
89
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
90
90
  import "./utils/noTypecheck.js";
@@ -15,18 +15,16 @@ import { entries as I } from "../../../shared-utils/typescript/entries.js";
15
15
  import P from "./adaptConfig.js";
16
16
  import { defaultGlobalConfig as N } from "../../typings/tag/TagConfig.js";
17
17
  import { Five as Q } from "@realsee/five";
18
+ import "../../../shared-utils/tag.js";
18
19
  import { isPanoramaLike as R, isModelLike as S } from "../../../shared-utils/five/mode.js";
19
20
  import "three";
20
21
  import "hammerjs";
21
22
  import "three/examples/jsm/renderers/CSS3DRenderer";
22
23
  import "@realsee/five/line";
23
24
  import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
24
- import "../../../shared-utils/tag.js";
25
25
  import "../../../shared-utils/three/core/Sphere.js";
26
26
  import "animejs";
27
27
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
28
- import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
29
- import "../../../vendor/three/build/three.module.js";
30
28
  import "../../../shared-utils/positionToVector3.js";
31
29
  import "../../../shared-utils/five/vector3ToScreen.js";
32
30
  import "../../../shared-utils/five/getFiveModel.js";
@@ -37,6 +35,8 @@ import "../../../shared-utils/Utils/WorkUtil.js";
37
35
  import "../../../shared-utils/five/transformPosition.js";
38
36
  import "../../../shared-utils/three/temp.js";
39
37
  import "../../../shared-utils/dom/resizeObserver.js";
38
+ import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
39
+ import "../../../vendor/three/build/three.module.js";
40
40
  function Co(o, i, e) {
41
41
  var v, b, j, C, A;
42
42
  const D = (v = e == null ? void 0 : e.useCache) != null ? v : !0;
@@ -14,15 +14,9 @@ var s = (o, t, e) => (l(o, typeof t != "symbol" ? t + "" : t, e), e);
14
14
  import { VideoMeshController as c } from "./VideoMeshController.js";
15
15
  import { Controller as _ } from "../base/BasePlugin.js";
16
16
  import "./utils/shader.js";
17
- import "three";
18
- import "hammerjs";
19
- import "three/examples/jsm/renderers/CSS3DRenderer";
20
- import "@realsee/five/line";
21
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
22
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
23
- import "../vendor/three/build/three.module.js";
24
17
  import "../shared-utils/tag.js";
25
18
  import "../shared-utils/positionToVector3.js";
19
+ import "three";
26
20
  import "../shared-utils/five/vector3ToScreen.js";
27
21
  import "../shared-utils/five/getFiveModel.js";
28
22
  import "../shared-utils/Utils/FiveUtil.js";
@@ -32,6 +26,12 @@ import "../shared-utils/Utils/WorkUtil.js";
32
26
  import "../shared-utils/five/transformPosition.js";
33
27
  import "../shared-utils/three/temp.js";
34
28
  import "../shared-utils/dom/resizeObserver.js";
29
+ import "hammerjs";
30
+ import "three/examples/jsm/renderers/CSS3DRenderer";
31
+ import "@realsee/five/line";
32
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
33
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
34
+ import "../vendor/three/build/three.module.js";
35
35
  import "../shared-utils/three/core/Sphere.js";
36
36
  import "animejs";
37
37
  import "../shared-utils/animationFrame/index.js";
@@ -2,18 +2,16 @@ var g = Object.defineProperty;
2
2
  var I = (v, e, i) => e in v ? g(v, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : v[e] = i;
3
3
  var t = (v, e, i) => (I(v, typeof e != "symbol" ? e + "" : e, i), i);
4
4
  import { vertexShader as M, fragmentShader as P } from "./utils/shader.js";
5
+ import "../shared-utils/tag.js";
5
6
  import { VideoTexture as F, LinearFilter as m, ShaderMaterial as y, Vector4 as x, SphereBufferGeometry as L, Mesh as V, Vector3 as l, Quaternion as b } from "three";
6
7
  import "hammerjs";
7
8
  import "three/examples/jsm/renderers/CSS3DRenderer";
8
9
  import "@realsee/five/line";
9
10
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
10
- import "../shared-utils/tag.js";
11
11
  import "../shared-utils/three/core/Sphere.js";
12
12
  import A from "animejs";
13
13
  import { requestAnimationFrameInterval as D } from "../shared-utils/animationFrame/index.js";
14
14
  import E from "./utils/index.js";
15
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
16
- import "../vendor/three/build/three.module.js";
17
15
  import "../shared-utils/positionToVector3.js";
18
16
  import "../shared-utils/five/vector3ToScreen.js";
19
17
  import "../shared-utils/five/getFiveModel.js";
@@ -24,6 +22,8 @@ import "../shared-utils/Utils/WorkUtil.js";
24
22
  import "../shared-utils/five/transformPosition.js";
25
23
  import "../shared-utils/three/temp.js";
26
24
  import "../shared-utils/dom/resizeObserver.js";
25
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
26
+ import "../vendor/three/build/three.module.js";
27
27
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
28
28
  class ie {
29
29
  /** 初始化视频、模型以及相关事件监听。 */
@@ -2,15 +2,9 @@ import { PanoVideoPluginController as r } from "./Controller.js";
2
2
  import { typings as E } from "./typings/index.js";
3
3
  import "./VideoMeshController.js";
4
4
  import "./utils/shader.js";
5
- import "three";
6
- import "hammerjs";
7
- import "three/examples/jsm/renderers/CSS3DRenderer";
8
- import "@realsee/five/line";
9
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
10
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
11
- import "../vendor/three/build/three.module.js";
12
5
  import "../shared-utils/tag.js";
13
6
  import "../shared-utils/positionToVector3.js";
7
+ import "three";
14
8
  import "../shared-utils/five/vector3ToScreen.js";
15
9
  import "../shared-utils/five/getFiveModel.js";
16
10
  import "../shared-utils/Utils/FiveUtil.js";
@@ -20,6 +14,12 @@ import "../shared-utils/Utils/WorkUtil.js";
20
14
  import "../shared-utils/five/transformPosition.js";
21
15
  import "../shared-utils/three/temp.js";
22
16
  import "../shared-utils/dom/resizeObserver.js";
17
+ import "hammerjs";
18
+ import "three/examples/jsm/renderers/CSS3DRenderer";
19
+ import "@realsee/five/line";
20
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
21
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
22
+ import "../vendor/three/build/three.module.js";
23
23
  import "../shared-utils/three/core/Sphere.js";
24
24
  import "animejs";
25
25
  import "../shared-utils/animationFrame/index.js";
@@ -28,33 +28,33 @@ var d = (p, n, e) => new Promise((t, i) => {
28
28
  });
29
29
  import * as F from "three";
30
30
  import { Controller as S } from "../base/BasePluginWithData.js";
31
- import { equal as O } from "../shared-utils/equal.js";
31
+ import "../shared-utils/tag.js";
32
+ import "hammerjs";
33
+ import "three/examples/jsm/renderers/CSS3DRenderer";
34
+ import "@realsee/five/line";
35
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
36
+ import "../shared-utils/three/core/Sphere.js";
37
+ import "animejs";
32
38
  import { notNil as T } from "../shared-utils/isNil.js";
39
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
40
+ import { equal as O } from "../shared-utils/equal.js";
33
41
  import { loadTexture as x } from "../shared-utils/three/loadTexture.js";
34
42
  import { format as y, getPipesFromLibrary as C } from "./utils/formatData.js";
35
43
  import { ObjectFlowPipe as D } from "./utils/Objects/FlowPipe.js";
36
44
  import "../base/BasePlugin.js";
37
45
  import "../shared-utils/Subscribe.js";
38
- import "hammerjs";
39
- import "three/examples/jsm/renderers/CSS3DRenderer";
40
- import "@realsee/five/line";
41
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
42
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
43
- import "../vendor/three/build/three.module.js";
44
- import "../shared-utils/tag.js";
45
- import "../shared-utils/positionToVector3.js";
46
- import "../shared-utils/five/vector3ToScreen.js";
47
- import "../shared-utils/five/getFiveModel.js";
48
46
  import "../shared-utils/Utils/FiveUtil.js";
49
47
  import "../shared-utils/Utils/BaseUtil.js";
50
48
  import "../shared-utils/Utils/WorkUtil.js";
51
49
  import "../shared-utils/five/transformPosition.js";
50
+ import "../shared-utils/five/getFiveModel.js";
51
+ import "../shared-utils/url/absoluteUrl.js";
52
+ import "../shared-utils/positionToVector3.js";
53
+ import "../shared-utils/five/vector3ToScreen.js";
52
54
  import "../shared-utils/three/temp.js";
53
55
  import "../shared-utils/dom/resizeObserver.js";
54
- import "../shared-utils/three/core/Sphere.js";
55
- import "animejs";
56
- import "../shared-utils/url/absoluteUrl.js";
57
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
56
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
57
+ import "../vendor/three/build/three.module.js";
58
58
  import "../shared-utils/isTruelyObject.js";
59
59
  import "../shared-utils/animationFrame/index.js";
60
60
  import "./utils/Objects/Pipe.js";
@@ -3,12 +3,6 @@ import "three";
3
3
  import "../base/BasePluginWithData.js";
4
4
  import "../base/BasePlugin.js";
5
5
  import "../shared-utils/Subscribe.js";
6
- import "hammerjs";
7
- import "three/examples/jsm/renderers/CSS3DRenderer";
8
- import "@realsee/five/line";
9
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
10
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
11
- import "../vendor/three/build/three.module.js";
12
6
  import "../shared-utils/tag.js";
13
7
  import "../shared-utils/positionToVector3.js";
14
8
  import "../shared-utils/five/vector3ToScreen.js";
@@ -19,13 +13,19 @@ import "../shared-utils/Utils/WorkUtil.js";
19
13
  import "../shared-utils/five/transformPosition.js";
20
14
  import "../shared-utils/three/temp.js";
21
15
  import "../shared-utils/dom/resizeObserver.js";
16
+ import "hammerjs";
17
+ import "three/examples/jsm/renderers/CSS3DRenderer";
18
+ import "@realsee/five/line";
19
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
20
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
21
+ import "../vendor/three/build/three.module.js";
22
22
  import "../shared-utils/three/core/Sphere.js";
23
23
  import "animejs";
24
24
  import "../shared-utils/url/absoluteUrl.js";
25
25
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
26
+ import "../shared-utils/isNil.js";
26
27
  import "../shared-utils/equal.js";
27
28
  import "../shared-utils/isTruelyObject.js";
28
- import "../shared-utils/isNil.js";
29
29
  import "../shared-utils/three/loadTexture.js";
30
30
  import "./utils/formatData.js";
31
31
  import "./utils/Objects/FlowPipe.js";
@@ -1,18 +1,16 @@
1
1
  var v = Object.defineProperty;
2
2
  var u = (o, e, t) => e in o ? v(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var r = (o, e, t) => (u(o, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import "../../../shared-utils/tag.js";
4
5
  import "three";
5
6
  import "hammerjs";
6
7
  import "three/examples/jsm/renderers/CSS3DRenderer";
7
8
  import "@realsee/five/line";
8
9
  import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
9
- import "../../../shared-utils/tag.js";
10
10
  import "../../../shared-utils/three/core/Sphere.js";
11
11
  import "animejs";
12
12
  import { requestAnimationFrameInterval as c } from "../../../shared-utils/animationFrame/index.js";
13
13
  import { ObjectPipe as h } from "./Pipe.js";
14
- import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
15
- import "../../../vendor/three/build/three.module.js";
16
14
  import "../../../shared-utils/positionToVector3.js";
17
15
  import "../../../shared-utils/five/vector3ToScreen.js";
18
16
  import "../../../shared-utils/five/getFiveModel.js";
@@ -23,6 +21,8 @@ import "../../../shared-utils/Utils/WorkUtil.js";
23
21
  import "../../../shared-utils/five/transformPosition.js";
24
22
  import "../../../shared-utils/three/temp.js";
25
23
  import "../../../shared-utils/dom/resizeObserver.js";
24
+ import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
25
+ import "../../../vendor/three/build/three.module.js";
26
26
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
27
27
  import "../../../shared-utils/animationFrame/BetterTween.js";
28
28
  import "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
@@ -1,18 +1,16 @@
1
1
  var s = Object.defineProperty;
2
2
  var n = (e, t, i) => t in e ? s(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
3
  var o = (e, t, i) => (n(e, typeof t != "symbol" ? t + "" : t, i), i);
4
+ import "../../../shared-utils/tag.js";
4
5
  import "three";
5
6
  import "hammerjs";
6
7
  import "three/examples/jsm/renderers/CSS3DRenderer";
7
8
  import "@realsee/five/line";
8
9
  import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
9
- import "../../../shared-utils/tag.js";
10
10
  import "../../../shared-utils/three/core/Sphere.js";
11
11
  import "animejs";
12
12
  import { tweenProgress as h } from "../../../shared-utils/animationFrame/BetterTween.js";
13
13
  import { ObjectPipe as a } from "./Pipe.js";
14
- import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
15
- import "../../../vendor/three/build/three.module.js";
16
14
  import "../../../shared-utils/positionToVector3.js";
17
15
  import "../../../shared-utils/five/vector3ToScreen.js";
18
16
  import "../../../shared-utils/five/getFiveModel.js";
@@ -23,6 +21,8 @@ import "../../../shared-utils/Utils/WorkUtil.js";
23
21
  import "../../../shared-utils/five/transformPosition.js";
24
22
  import "../../../shared-utils/three/temp.js";
25
23
  import "../../../shared-utils/dom/resizeObserver.js";
24
+ import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
25
+ import "../../../vendor/three/build/three.module.js";
26
26
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
27
27
  import "../../../shared-utils/animationFrame/index.js";
28
28
  import "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
@@ -27,17 +27,15 @@ var l = (a, e, t) => new Promise((i, s) => {
27
27
  n((t = t.apply(a, e)).next());
28
28
  });
29
29
  import * as u from "three";
30
+ import "../../../shared-utils/tag.js";
30
31
  import "hammerjs";
31
32
  import "three/examples/jsm/renderers/CSS3DRenderer";
32
33
  import "@realsee/five/line";
33
34
  import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
34
- import "../../../shared-utils/tag.js";
35
35
  import "../../../shared-utils/three/core/Sphere.js";
36
36
  import "animejs";
37
37
  import { BetterTween as g } from "../../../shared-utils/animationFrame/BetterTween.js";
38
38
  import { CustomBezierCurve3 as x } from "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
39
- import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
40
- import "../../../vendor/three/build/three.module.js";
41
39
  import "../../../shared-utils/positionToVector3.js";
42
40
  import "../../../shared-utils/five/vector3ToScreen.js";
43
41
  import "../../../shared-utils/five/getFiveModel.js";
@@ -48,6 +46,8 @@ import "../../../shared-utils/Utils/WorkUtil.js";
48
46
  import "../../../shared-utils/five/transformPosition.js";
49
47
  import "../../../shared-utils/three/temp.js";
50
48
  import "../../../shared-utils/dom/resizeObserver.js";
49
+ import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
50
+ import "../../../vendor/three/build/three.module.js";
51
51
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
52
52
  import "../../../shared-utils/animationFrame/index.js";
53
53
  import "../../../shared-utils/three/Extras/Core/Interpolations.js";
@@ -3,12 +3,12 @@ var m = (e, i, t) => i in e ? p(e, i, { enumerable: !0, configurable: !0, writab
3
3
  var s = (e, i, t) => (m(e, typeof i != "symbol" ? i + "" : i, t), t);
4
4
  import { IObject3D as d } from "../../shared-utils/three/IObject3D.js";
5
5
  import { anyPositionToVector3 as P } from "../../shared-utils/positionToVector3.js";
6
+ import "../../shared-utils/tag.js";
6
7
  import "three";
7
8
  import "hammerjs";
8
9
  import "three/examples/jsm/renderers/CSS3DRenderer";
9
10
  import "@realsee/five/line";
10
11
  import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
11
- import "../../shared-utils/tag.js";
12
12
  import "../../shared-utils/three/core/Sphere.js";
13
13
  import "animejs";
14
14
  import { notNil as r } from "../../shared-utils/isNil.js";
@@ -12,13 +12,13 @@ var n = (i, e, t) => e in i ? u(i, e, { enumerable: !0, configurable: !0, writab
12
12
  var o = (i, e, t) => (n(i, typeof e != "symbol" ? e + "" : e, t), t);
13
13
  import { IObject3D as f } from "../../shared-utils/three/IObject3D.js";
14
14
  import * as h from "three";
15
+ import "../../shared-utils/tag.js";
15
16
  import "hammerjs";
16
17
  import "three/examples/jsm/renderers/CSS3DRenderer";
17
18
  import { DEFAULT_HIGHLIGHT_OPACITY as M } from "../typings/style.js";
18
19
  import "@realsee/five/line";
19
20
  import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
20
21
  import { anyPositionToVector3 as d } from "../../shared-utils/positionToVector3.js";
21
- import "../../shared-utils/tag.js";
22
22
  import "../../shared-utils/three/core/Sphere.js";
23
23
  import "animejs";
24
24
  import { notNil as g } from "../../shared-utils/isNil.js";
@@ -16,10 +16,10 @@ import { LineMaterial as H, THREE_Line2 as I } from "../../shared-utils/five/Fiv
16
16
  import { LineGeometry as b } from "../../vendor/three/examples/jsm/lines/LineGeometry.js";
17
17
  import { anyPositionToVector3 as v } from "../../shared-utils/positionToVector3.js";
18
18
  import { IObject3D as x } from "../../shared-utils/three/IObject3D.js";
19
+ import { LightTag as R } from "../../shared-utils/tag.js";
19
20
  import "hammerjs";
20
21
  import "three/examples/jsm/renderers/CSS3DRenderer";
21
- import { centerPoint as R } from "../../shared-utils/three/centerPoint.js";
22
- import { LightTag as W } from "../../shared-utils/tag.js";
22
+ import { centerPoint as W } from "../../shared-utils/three/centerPoint.js";
23
23
  import { removeAllTag as O } from "../utils/removeAllTag.js";
24
24
  import { getLengthHTML as P } from "../utils/Meshes/getLengthHTML.js";
25
25
  import { applyObjectMatrixWorld as _ } from "../../shared-utils/three/applyObjectMatrixWorld.js";
@@ -180,9 +180,9 @@ class ee extends x {
180
180
  }).filter(c).map((t) => _(this, t));
181
181
  i.forEach(([t, s], l) => {
182
182
  var u;
183
- const d = R(t, s);
183
+ const d = W(t, s);
184
184
  this.doms[l] = (u = this.doms[l]) != null ? u : (() => {
185
- const n = new W(this.five);
185
+ const n = new R(this.five);
186
186
  return n.intersectCheck = !1, n.simulate3D = !0, n;
187
187
  })(), this.doms[l].setPosition(d, [t, s]);
188
188
  const a = (n) => {
@@ -13,6 +13,7 @@ var n = (s, i, t) => i in s ? d(s, i, { enumerable: !0, configurable: !0, writab
13
13
  var e = (s, i, t) => (n(s, typeof i != "symbol" ? i + "" : i, t), t);
14
14
  import { anyPositionToVector3 as b } from "../../shared-utils/positionToVector3.js";
15
15
  import { PointMesh as P } from "./Point.js";
16
+ import "../../shared-utils/tag.js";
16
17
  import "three";
17
18
  import "hammerjs";
18
19
  import "three/examples/jsm/renderers/CSS3DRenderer";
@@ -22,7 +23,7 @@ import "animejs";
22
23
  import { notNil as y } from "../../shared-utils/isNil.js";
23
24
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
24
25
  import { IObject3D as M } from "../../shared-utils/three/IObject3D.js";
25
- class N extends S {
26
+ class R extends S {
26
27
  constructor(t) {
27
28
  super();
28
29
  e(this, "name", "LineWithDotsMesh");
@@ -66,5 +67,5 @@ class N extends S {
66
67
  }
67
68
  }
68
69
  export {
69
- N as LineWithDotsMesh
70
+ R as LineWithDotsMesh
70
71
  };
@@ -24,11 +24,11 @@ import * as h from "three";
24
24
  import { DEFAULT_HIGHLIGHT_OPACITY as I } from "../typings/style.js";
25
25
  import { IObject3D as W } from "../../shared-utils/three/IObject3D.js";
26
26
  import { anyPositionToVector3 as x } from "../../shared-utils/positionToVector3.js";
27
+ import { LightTag as B } from "../../shared-utils/tag.js";
27
28
  import "hammerjs";
28
29
  import "three/examples/jsm/renderers/CSS3DRenderer";
29
30
  import "@realsee/five/line";
30
31
  import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
31
- import { LightTag as B } from "../../shared-utils/tag.js";
32
32
  import { removeAllTag as E } from "../utils/removeAllTag.js";
33
33
  import { getLengthHTML as S } from "../utils/Meshes/getLengthHTML.js";
34
34
  import { applyObjectMatrixWorld as T } from "../../shared-utils/three/applyObjectMatrixWorld.js";