@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
@@ -11,12 +11,12 @@ import gA from "./PanoramaTag.js";
11
11
  import uA from "./CustomTag.js";
12
12
  import { classnames as S } from "../../../vendor/classnames/index.js";
13
13
  import { ModelTag as cA } from "../../controller/Tag/ModelTag.js";
14
+ import "../../../shared-utils/tag.js";
14
15
  import { isModelLike as dA } from "../../../shared-utils/five/mode.js";
15
16
  import "hammerjs";
16
17
  import "three/examples/jsm/renderers/CSS3DRenderer";
17
18
  import "@realsee/five/line";
18
19
  import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
19
- import "../../../shared-utils/tag.js";
20
20
  import "../../../shared-utils/three/core/Sphere.js";
21
21
  import "animejs";
22
22
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -72,8 +72,6 @@ import "../../../vendor/svelte-carousel/src/utils/lazy.js";
72
72
  import "../../../vendor/svelte-carousel/src/utils/ProgressManager.js";
73
73
  import "../../../vendor/svelte-carousel/src/utils/interval.js";
74
74
  import "../Common/MediaItem.js";
75
- import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
76
- import "../../../vendor/three/build/three.module.js";
77
75
  import "../../../shared-utils/positionToVector3.js";
78
76
  import "../../../shared-utils/five/vector3ToScreen.js";
79
77
  import "../../../shared-utils/five/getFiveModel.js";
@@ -84,6 +82,8 @@ import "../../../shared-utils/Utils/WorkUtil.js";
84
82
  import "../../../shared-utils/five/transformPosition.js";
85
83
  import "../../../shared-utils/three/temp.js";
86
84
  import "../../../shared-utils/dom/resizeObserver.js";
85
+ import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
86
+ import "../../../vendor/three/build/three.module.js";
87
87
  import "./AudioTag/AudioTag.js";
88
88
  import "../Common/Audio.js";
89
89
  import "../../utils/audio/SharedAudio.js";
@@ -58,12 +58,6 @@ import "../../vendor/svelte-carousel/src/utils/ProgressManager.js";
58
58
  import "../../vendor/svelte-carousel/src/utils/interval.js";
59
59
  import "./Common/MediaItem.js";
60
60
  import "./Tag/MarketingTag.js";
61
- import "hammerjs";
62
- import "three/examples/jsm/renderers/CSS3DRenderer";
63
- import "@realsee/five/line";
64
- import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
65
- import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
66
- import "../../vendor/three/build/three.module.js";
67
61
  import "../../shared-utils/tag.js";
68
62
  import "../../shared-utils/positionToVector3.js";
69
63
  import "../../shared-utils/five/vector3ToScreen.js";
@@ -75,6 +69,12 @@ import "../../shared-utils/Utils/WorkUtil.js";
75
69
  import "../../shared-utils/five/transformPosition.js";
76
70
  import "../../shared-utils/three/temp.js";
77
71
  import "../../shared-utils/dom/resizeObserver.js";
72
+ import "hammerjs";
73
+ import "three/examples/jsm/renderers/CSS3DRenderer";
74
+ import "@realsee/five/line";
75
+ import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
76
+ import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
77
+ import "../../vendor/three/build/three.module.js";
78
78
  import "../../shared-utils/three/core/Sphere.js";
79
79
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
80
80
  import "../utils/noTypecheck.js";
@@ -3,12 +3,12 @@ import $ from "./Tag/index.js";
3
3
  import "three";
4
4
  import { noTypecheck as V } from "../utils/noTypecheck.js";
5
5
  import tt from "./Common/TagPoint.js";
6
+ import "../../shared-utils/tag.js";
6
7
  import { isModelLike as et } from "../../shared-utils/five/mode.js";
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 "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -67,8 +67,6 @@ import "../../vendor/svelte-carousel/src/utils/ProgressManager.js";
67
67
  import "../../vendor/svelte-carousel/src/utils/interval.js";
68
68
  import "./Common/MediaItem.js";
69
69
  import "./Tag/MarketingTag.js";
70
- import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
71
- import "../../vendor/three/build/three.module.js";
72
70
  import "../../shared-utils/positionToVector3.js";
73
71
  import "../../shared-utils/five/vector3ToScreen.js";
74
72
  import "../../shared-utils/five/getFiveModel.js";
@@ -79,6 +77,8 @@ import "../../shared-utils/Utils/WorkUtil.js";
79
77
  import "../../shared-utils/five/transformPosition.js";
80
78
  import "../../shared-utils/three/temp.js";
81
79
  import "../../shared-utils/dom/resizeObserver.js";
80
+ import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
81
+ import "../../vendor/three/build/three.module.js";
82
82
  import "./Tag/AudioTag/index.js";
83
83
  import "./Tag/AudioTag/AudioTag.js";
84
84
  import "./Common/Audio.js";
@@ -153,8 +153,8 @@ export declare abstract class BaseTag<C extends TagContentType = TagContentType,
153
153
  }): TagConfig;
154
154
  getDistance(fiveState?: Partial<FiveState>, accurate?: number): number;
155
155
  getVisible(fiveState?: Partial<FiveState>): boolean;
156
- getUnfoldedByPanoIndex(panoIndex?: number): any;
157
- getUnfoldedByCamera(): any;
156
+ getUnfoldedByPanoIndex(panoIndex?: number): boolean;
157
+ getUnfoldedByCamera(): boolean;
158
158
  can(action: 'show' | 'hide' | 'fold' | 'unfold'): boolean;
159
159
  onClick(params: Pick<TagClickParams, 'target'>): void;
160
160
  abstract computeNormal(): THREE.Vector3 | undefined;
@@ -204,7 +204,7 @@ export declare abstract class BaseTag<C extends TagContentType = TagContentType,
204
204
  * @description 获取是否展开
205
205
  */
206
206
  protected computeUnfoldedByPanoIndex(panoIndex?: number): boolean;
207
- protected computeUnfoldedByCamera(): any;
207
+ protected computeUnfoldedByCamera(): boolean;
208
208
  protected computeTagProject(): {
209
209
  x: number;
210
210
  y: number;
@@ -39,6 +39,7 @@ var y = (c, i, e) => new Promise((t, r) => {
39
39
  import { Subscribe as Q } from "../../../shared-utils/Subscribe.js";
40
40
  import { calculateTagConfig as w } from "../../utils/tag/calculateTagConfig.js";
41
41
  import { getTagStickType as Y } from "../../utils/tag/format.js";
42
+ import "../../../shared-utils/tag.js";
42
43
  import { isPanoramaLike as U, isModelLike as C } from "../../../shared-utils/five/mode.js";
43
44
  import * as B from "three";
44
45
  import "hammerjs";
@@ -47,7 +48,6 @@ import { centerPoint as ee } from "../../../shared-utils/three/centerPoint.js";
47
48
  import "@realsee/five/line";
48
49
  import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
49
50
  import { anyPositionToVector3 as A } from "../../../shared-utils/positionToVector3.js";
50
- import "../../../shared-utils/tag.js";
51
51
  import { toArray as ie } from "../../../shared-utils/util.js";
52
52
  import "../../../shared-utils/three/core/Sphere.js";
53
53
  import { blink as te, reblink as ne } from "../../../shared-utils/three/blink.js";
@@ -71,14 +71,14 @@ import "../../utils/tag/adaptConfig.js";
71
71
  import "../../typings/tag/TagConfig.js";
72
72
  import "@realsee/five";
73
73
  import "animejs";
74
- import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
75
- import "../../../vendor/three/build/three.module.js";
76
74
  import "../../../shared-utils/five/vector3ToScreen.js";
77
75
  import "../../../shared-utils/five/getFiveModel.js";
78
76
  import "../../../shared-utils/Utils/FiveUtil.js";
79
77
  import "../../../shared-utils/Utils/BaseUtil.js";
80
78
  import "../../../shared-utils/Utils/WorkUtil.js";
81
79
  import "../../../shared-utils/dom/resizeObserver.js";
80
+ import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
81
+ import "../../../vendor/three/build/three.module.js";
82
82
  import "../../../shared-utils/formatRad.js";
83
83
  class ii {
84
84
  constructor(i, e) {
@@ -42,13 +42,6 @@ import "../../../shared-utils/typescript/entries.js";
42
42
  import "../../utils/tag/adaptConfig.js";
43
43
  import "../../typings/tag/TagConfig.js";
44
44
  import "@realsee/five";
45
- import "../../../shared-utils/five/mode.js";
46
- import "hammerjs";
47
- import "three/examples/jsm/renderers/CSS3DRenderer";
48
- import "@realsee/five/line";
49
- import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
50
- import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
51
- import "../../../vendor/three/build/three.module.js";
52
45
  import "../../../shared-utils/tag.js";
53
46
  import "../../../shared-utils/five/vector3ToScreen.js";
54
47
  import "../../../shared-utils/five/getFiveModel.js";
@@ -58,6 +51,13 @@ import "../../../shared-utils/Utils/WorkUtil.js";
58
51
  import "../../../shared-utils/five/transformPosition.js";
59
52
  import "../../../shared-utils/three/temp.js";
60
53
  import "../../../shared-utils/dom/resizeObserver.js";
54
+ import "../../../shared-utils/five/mode.js";
55
+ import "hammerjs";
56
+ import "three/examples/jsm/renderers/CSS3DRenderer";
57
+ import "@realsee/five/line";
58
+ import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
59
+ import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
60
+ import "../../../vendor/three/build/three.module.js";
61
61
  import "../../../shared-utils/three/core/Sphere.js";
62
62
  import "animejs";
63
63
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -20,13 +20,6 @@ import "../../../shared-utils/typescript/entries.js";
20
20
  import "../../utils/tag/adaptConfig.js";
21
21
  import "../../typings/tag/TagConfig.js";
22
22
  import "@realsee/five";
23
- import "../../../shared-utils/five/mode.js";
24
- import "hammerjs";
25
- import "three/examples/jsm/renderers/CSS3DRenderer";
26
- import "@realsee/five/line";
27
- import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
28
- import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
29
- import "../../../vendor/three/build/three.module.js";
30
23
  import "../../../shared-utils/tag.js";
31
24
  import "../../../shared-utils/five/vector3ToScreen.js";
32
25
  import "../../../shared-utils/five/getFiveModel.js";
@@ -36,6 +29,13 @@ import "../../../shared-utils/Utils/WorkUtil.js";
36
29
  import "../../../shared-utils/five/transformPosition.js";
37
30
  import "../../../shared-utils/three/temp.js";
38
31
  import "../../../shared-utils/dom/resizeObserver.js";
32
+ import "../../../shared-utils/five/mode.js";
33
+ import "hammerjs";
34
+ import "three/examples/jsm/renderers/CSS3DRenderer";
35
+ import "@realsee/five/line";
36
+ import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
37
+ import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
38
+ import "../../../vendor/three/build/three.module.js";
39
39
  import "../../../shared-utils/three/core/Sphere.js";
40
40
  import "animejs";
41
41
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -10,13 +10,6 @@ import "../../../shared-utils/typescript/entries.js";
10
10
  import "../../utils/tag/adaptConfig.js";
11
11
  import "../../typings/tag/TagConfig.js";
12
12
  import "@realsee/five";
13
- import "../../../shared-utils/five/mode.js";
14
- import "hammerjs";
15
- import "three/examples/jsm/renderers/CSS3DRenderer";
16
- import "@realsee/five/line";
17
- import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
18
- import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
19
- import "../../../vendor/three/build/three.module.js";
20
13
  import "../../../shared-utils/tag.js";
21
14
  import "../../../shared-utils/positionToVector3.js";
22
15
  import "../../../shared-utils/five/vector3ToScreen.js";
@@ -27,6 +20,13 @@ import "../../../shared-utils/Utils/WorkUtil.js";
27
20
  import "../../../shared-utils/five/transformPosition.js";
28
21
  import "../../../shared-utils/three/temp.js";
29
22
  import "../../../shared-utils/dom/resizeObserver.js";
23
+ import "../../../shared-utils/five/mode.js";
24
+ import "hammerjs";
25
+ import "three/examples/jsm/renderers/CSS3DRenderer";
26
+ import "@realsee/five/line";
27
+ import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
28
+ import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
29
+ import "../../../vendor/three/build/three.module.js";
30
30
  import "../../../shared-utils/three/core/Sphere.js";
31
31
  import "animejs";
32
32
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -29,7 +29,6 @@ export declare abstract class TagRender extends TagUtil {
29
29
  usePoint?: boolean;
30
30
  }): void;
31
31
  bindRenderer(contentType: string, builtInRenderer: TagContentType): void;
32
- clearTags(): void;
33
32
  /**
34
33
  * @description 渲染3D贴片
35
34
  */
@@ -39,8 +38,6 @@ export declare abstract class TagRender extends TagUtil {
39
38
  * @param model 模型
40
39
  */
41
40
  updateTagCss3DObjectMatrix<S extends 'Model' | 'Plane' = 'Model'>(tag: TagInstance<TagContentType, S>, model: Object3D): void;
42
- /** 添加模型标签 */
43
- protected addMediaModelTag(tags: TagInstance[]): Promise<void>;
44
41
  protected disposeAllCSS3DContainer(): void;
45
42
  /**
46
43
  * @description 检查并销毁不用的3D贴片
@@ -1,37 +1,21 @@
1
- var x = Object.defineProperty;
1
+ var k = Object.defineProperty;
2
2
  var v = Object.getOwnPropertySymbols;
3
- var O = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
4
- var T = (a, r, t) => r in a ? x(a, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[r] = t, j = (a, r) => {
5
- for (var t in r || (r = {}))
6
- O.call(r, t) && T(a, t, r[t]);
3
+ var x = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
4
+ var y = (m, i, t) => i in m ? k(m, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[i] = t, R = (m, i) => {
5
+ for (var t in i || (i = {}))
6
+ x.call(i, t) && y(m, t, i[t]);
7
7
  if (v)
8
- for (var t of v(r))
9
- A.call(r, t) && T(a, t, r[t]);
10
- return a;
8
+ for (var t of v(i))
9
+ O.call(i, t) && y(m, t, i[t]);
10
+ return m;
11
11
  };
12
- var d = (a, r, t) => (T(a, typeof r != "symbol" ? r + "" : r, t), t);
13
- var w = (a, r, t) => new Promise((e, o) => {
14
- var i = (s) => {
15
- try {
16
- l(t.next(s));
17
- } catch (h) {
18
- o(h);
19
- }
20
- }, p = (s) => {
21
- try {
22
- l(t.throw(s));
23
- } catch (h) {
24
- o(h);
25
- }
26
- }, l = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(i, p);
27
- l((t = t.apply(a, r)).next());
28
- });
29
- import { Group as y, Quaternion as G, Vector3 as C, Matrix4 as M } from "three";
30
- import E from "../Components/Tag/index.js";
31
- import { isMediaModelTag as P } from "../utils/tag/tagCheck.js";
32
- import { centerPoint as I } from "../../shared-utils/three/centerPoint.js";
33
- import { toArray as N } from "../../shared-utils/util.js";
34
- import { TagUtil as U } from "./TagUtil.js";
12
+ var c = (m, i, t) => (y(m, typeof i != "symbol" ? i + "" : i, t), t);
13
+ import { Group as T, Quaternion as G, Vector3 as P, Matrix4 as C } from "three";
14
+ import A from "../Components/Tag/index.js";
15
+ import { isMediaModelTag as M } from "../utils/tag/tagCheck.js";
16
+ import { centerPoint as E } from "../../shared-utils/three/centerPoint.js";
17
+ import { toArray as I } from "../../shared-utils/util.js";
18
+ import { TagUtil as N } from "./TagUtil.js";
35
19
  import "../../vendor/svelte/internal/index.js";
36
20
  import "../Components/Tag/TextTag/index.js";
37
21
  import "../Components/Tag/TextTag/TextTag.js";
@@ -89,12 +73,6 @@ import "../../vendor/svelte-carousel/src/utils/ProgressManager.js";
89
73
  import "../../vendor/svelte-carousel/src/utils/interval.js";
90
74
  import "../Components/Common/MediaItem.js";
91
75
  import "../Components/Tag/MarketingTag.js";
92
- import "hammerjs";
93
- import "three/examples/jsm/renderers/CSS3DRenderer";
94
- import "@realsee/five/line";
95
- import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
96
- import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
97
- import "../../vendor/three/build/three.module.js";
98
76
  import "../../shared-utils/tag.js";
99
77
  import "../../shared-utils/positionToVector3.js";
100
78
  import "../../shared-utils/five/vector3ToScreen.js";
@@ -106,6 +84,12 @@ import "../../shared-utils/Utils/WorkUtil.js";
106
84
  import "../../shared-utils/five/transformPosition.js";
107
85
  import "../../shared-utils/three/temp.js";
108
86
  import "../../shared-utils/dom/resizeObserver.js";
87
+ import "hammerjs";
88
+ import "three/examples/jsm/renderers/CSS3DRenderer";
89
+ import "@realsee/five/line";
90
+ import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
91
+ import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
92
+ import "../../vendor/three/build/three.module.js";
109
93
  import "../../shared-utils/three/core/Sphere.js";
110
94
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
111
95
  import "../utils/noTypecheck.js";
@@ -179,20 +163,20 @@ import "../../shared-utils/five/calculateThreeMouse.js";
179
163
  import "../../shared-utils/three/core/Raycaster.js";
180
164
  import "../../shared-utils/isTouchDevice.js";
181
165
  import "../../base/BasePlugin.js";
182
- class Oe extends U {
166
+ class xr extends N {
183
167
  constructor(t) {
184
168
  super(t);
185
- d(this, "rendererMap", /* @__PURE__ */ new Map());
186
- d(this, "contentTypeMap", /* @__PURE__ */ new Map());
187
- d(this, "group", new y());
188
- d(this, "imagePlaneGroup", new y());
189
- d(this, "gltfObjectGroup", new y());
169
+ c(this, "rendererMap", /* @__PURE__ */ new Map());
170
+ c(this, "contentTypeMap", /* @__PURE__ */ new Map());
171
+ c(this, "group", new T());
172
+ c(this, "imagePlaneGroup", new T());
173
+ c(this, "gltfObjectGroup", new T());
190
174
  /** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
191
- d(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
175
+ c(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
192
176
  /** 临时状态 */
193
- d(this, "temporaryState", { visible: !0 });
177
+ c(this, "temporaryState", { visible: !0 });
194
178
  /** 点标签 */
195
- d(this, "TagContainerSvelte");
179
+ c(this, "TagContainerSvelte");
196
180
  this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
197
181
  }
198
182
  /**
@@ -203,66 +187,59 @@ class Oe extends U {
203
187
  * @param config.usePoint 是否需要标签点, 默认为 false
204
188
  * @note 优先级低于 tag.element
205
189
  */
206
- registerRenderer(t, e, o) {
207
- var i;
208
- this.rendererMap.set(t, { renderer: e, usePoint: (i = o == null ? void 0 : o.usePoint) != null ? i : !1 });
209
- }
210
- bindRenderer(t, e) {
211
- this.contentTypeMap.set(t, e);
190
+ registerRenderer(t, r, o) {
191
+ var e;
192
+ this.rendererMap.set(t, { renderer: r, usePoint: (e = o == null ? void 0 : o.usePoint) != null ? e : !1 });
212
193
  }
213
- clearTags() {
214
- var t;
215
- this.tags.length && (this.tags.forEach((e) => {
216
- var o, i, p, l, s;
217
- (i = (o = e.mediaPlane) == null ? void 0 : o.parent) == null || i.remove(e.mediaPlane), (s = (l = (p = e.model) == null ? void 0 : p.object) == null ? void 0 : l.parent) == null || s.remove(e.model.object);
218
- }), this.tags = [], this.tagsLengthWillUpdate = !0, this.hooks.emit("tagsLengthChange"), (t = this.TagContainerSvelte) == null || t.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer()), this.enabledModelTagSet.clear(), this.cache.clear();
194
+ bindRenderer(t, r) {
195
+ this.contentTypeMap.set(t, r);
219
196
  }
220
197
  /**
221
198
  * @description 渲染3D贴片
222
199
  */
223
200
  updateRender3DDomTag(t) {
224
- (t ? N(t) : this.filterCSS3DTag).forEach((o) => {
225
- var i, p, l, s, h, b;
201
+ (t ? I(t) : this.filterCSS3DTag).forEach((o) => {
202
+ var e, a, f, D, g, b;
226
203
  if (o.tag3DContentSvelte) {
227
- const { svelteApp: f, css3DInstance: c, initialNormal: u, currentNormal: m } = o.tag3DContentSvelte;
228
- if ((p = c == null ? void 0 : c.css3DObject) == null || p.setVisible((this.state.visible && ((i = o.state) == null ? void 0 : i.visible)) !== !1), f.$set({ tag: o, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !u.equals(m)) {
229
- const n = new G().setFromUnitVectors(u, m);
230
- c.css3DObject.setRotationFromQuaternion(n);
204
+ const { svelteApp: d, css3DInstance: n, initialNormal: l, currentNormal: p } = o.tag3DContentSvelte;
205
+ if ((a = n == null ? void 0 : n.css3DObject) == null || a.setVisible((this.state.visible && ((e = o.state) == null ? void 0 : e.visible)) !== !1), d.$set({ tag: o, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !l.equals(p)) {
206
+ const s = new G().setFromUnitVectors(l, p);
207
+ n.css3DObject.setRotationFromQuaternion(s);
231
208
  }
232
209
  return;
233
210
  } else {
234
- if (P(o) && !((l = o.model) != null && l.object) || ((s = o.state) == null ? void 0 : s.visible) === !1 || !this.state.visible || !this.state.enabled || !this.css3DRenderPlugin)
211
+ if (M(o) && !((f = o.model) != null && f.object) || ((D = o.state) == null ? void 0 : D.visible) === !1 || !this.state.visible || !this.state.enabled || !this.css3DRenderPlugin)
235
212
  return;
236
213
  if (o.stickType === "3DPoint" && !o.normal)
237
214
  return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
238
- const f = this.getPositions(o);
239
- if (!f)
215
+ const d = this.getPositions(o);
216
+ if (!d)
240
217
  return;
241
- const c = o.computeNormal();
242
- if (!c)
218
+ const n = o.computeNormal();
219
+ if (!n)
243
220
  return;
244
- const u = o.getConfig(), m = j({
245
- wrapperStyle: { zIndex: `${Math.round((1e4 - ((h = o.getDistance()) != null ? h : 0)) * 100)}` }
246
- }, u.tag3DConfig);
247
- if (o.computeRenderType() === "BehindDom" || m.mode === "behind") {
248
- m.mode = "behind", m.container = document.createElement("div");
249
- const D = "black";
250
- m.container.style.backgroundColor = D, m.container.style.border = `3px solid ${D}`, this.css3DRenderPlugin.hooks.on("render", () => {
221
+ const l = o.getConfig(), p = R({
222
+ wrapperStyle: { zIndex: `${Math.round((1e4 - ((g = o.getDistance()) != null ? g : 0)) * 100)}` }
223
+ }, l.tag3DConfig);
224
+ if (o.computeRenderType() === "BehindDom" || p.mode === "behind") {
225
+ p.mode = "behind", p.container = document.createElement("div");
226
+ const h = "black";
227
+ p.container.style.backgroundColor = h, p.container.style.border = `3px solid ${h}`, this.css3DRenderPlugin.hooks.on("render", () => {
251
228
  var S;
252
- if (n.css3DObject.opacityMesh && u.clickable !== !1) {
253
- const R = this.addObjectClickHandler(o, n.css3DObject.opacityMesh, (k) => {
254
- this.hooks.emit("click", { event: k, target: "TagContent", tag: o });
229
+ if (s.css3DObject.opacityMesh && l.clickable !== !1) {
230
+ const j = this.addObjectClickHandler(o, s.css3DObject.opacityMesh, (w) => {
231
+ this.hooks.emit("click", { event: w, target: "TagContent", tag: o });
255
232
  });
256
- (S = this.store.css3DRenderDisposer.get(o.id)) == null || S.push(R);
233
+ (S = this.store.css3DRenderDisposer.get(o.id)) == null || S.push(j);
257
234
  }
258
235
  });
259
236
  }
260
- const n = this.css3DRenderPlugin.create3DDomContainer(f, m);
261
- if (!n)
237
+ const s = this.css3DRenderPlugin.create3DDomContainer(d, p);
238
+ if (!s)
262
239
  return;
263
- this.store.css3DRenderDisposer.set(o.id, [n.dispose]);
264
- const g = new E({
265
- target: n.container,
240
+ this.store.css3DRenderDisposer.set(o.id, [s.dispose]);
241
+ const u = new A({
242
+ target: s.container,
266
243
  props: {
267
244
  tag: o,
268
245
  hooks: this.hooks,
@@ -273,15 +250,15 @@ class Oe extends U {
273
250
  }
274
251
  });
275
252
  o.tag3DContentSvelte = {
276
- svelteApp: g,
277
- domContainer: n,
278
- css3DInstance: n,
279
- initialNormal: c,
280
- currentNormal: c,
253
+ svelteApp: u,
254
+ domContainer: s,
255
+ css3DInstance: s,
256
+ initialNormal: n,
257
+ currentNormal: n,
281
258
  dispose: () => {
282
- g.$destroy(), n.dispose();
259
+ u.$destroy(), s.dispose();
283
260
  }
284
- }, P(o) && ((b = o.model) != null && b.object) && this.updateTagCss3DObjectMatrix(o, o.model.object);
261
+ }, M(o) && ((b = o.model) != null && b.object) && this.updateTagCss3DObjectMatrix(o, o.model.object);
285
262
  }
286
263
  }), this.clearUnusedPanelTag();
287
264
  }
@@ -289,30 +266,23 @@ class Oe extends U {
289
266
  * @param tag 标签
290
267
  * @param model 模型
291
268
  */
292
- updateTagCss3DObjectMatrix(t, e) {
293
- var n, g, D;
294
- const o = (g = (n = t.getConfig().tag3DConfig) == null ? void 0 : n.ratio) != null ? g : 216e-5, i = (D = t.tag3DContentSvelte) == null ? void 0 : D.css3DInstance.css3DObject;
295
- if (!i)
269
+ updateTagCss3DObjectMatrix(t, r) {
270
+ var s, u, h;
271
+ const o = (u = (s = t.getConfig().tag3DConfig) == null ? void 0 : s.ratio) != null ? u : 216e-5, e = (h = t.tag3DContentSvelte) == null ? void 0 : h.css3DInstance.css3DObject;
272
+ if (!e)
296
273
  return;
297
- const p = P(t) ? t.data.mediaPosition : t.position;
298
- if (!p || p.length !== 4 || !Array.isArray(p[0]) || !Array.isArray(p[2]))
274
+ const a = M(t) ? t.data.mediaPosition : t.position;
275
+ if (!a || a.length !== 4 || !Array.isArray(a[0]) || !Array.isArray(a[2]))
299
276
  return;
300
- e.updateWorldMatrix(!1, !1);
301
- const l = e.matrixWorld, s = new C().fromArray(p[0]), h = new C().fromArray(p[2]), b = I(s, h).add(new C(0, 0, 5e-4)), f = new M().setPosition(b), c = new M().makeScale(o, o, o), u = new M().multiply(l).multiply(f).multiply(c);
302
- u.decompose(i.position, i.quaternion, i.scale);
303
- const m = i.opacityMesh;
304
- m && u.decompose(m.position, m.quaternion, m.scale);
305
- }
306
- /** 添加模型标签 */
307
- addMediaModelTag(t) {
308
- return w(this, null, function* () {
309
- const e = t.filter((o) => o.stickType === "Model").map((o) => o.loadModel());
310
- yield Promise.all(e), t.forEach((o) => o.updateVisible());
311
- });
277
+ r.updateWorldMatrix(!1, !1);
278
+ const f = r.matrixWorld, D = new P().fromArray(a[0]), g = new P().fromArray(a[2]), b = E(D, g).add(new P(0, 0, 5e-4)), d = new C().setPosition(b), n = new C().makeScale(o, o, o), l = new C().multiply(f).multiply(d).multiply(n);
279
+ l.decompose(e.position, e.quaternion, e.scale);
280
+ const p = e.opacityMesh;
281
+ p && l.decompose(p.position, p.quaternion, p.scale);
312
282
  }
313
283
  disposeAllCSS3DContainer() {
314
284
  for (const [, t] of this.store.css3DRenderDisposer)
315
- t == null || t.forEach((e) => e == null ? void 0 : e());
285
+ t == null || t.forEach((r) => r == null ? void 0 : r());
316
286
  this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
317
287
  }
318
288
  /**
@@ -320,15 +290,15 @@ class Oe extends U {
320
290
  */
321
291
  clearUnusedPanelTag() {
322
292
  this.filter2DPointTag.forEach((t) => {
323
- var e;
324
- (e = t.tag3DContentSvelte) == null || e.css3DInstance.dispose(), t.tag3DContentSvelte = void 0;
293
+ var r;
294
+ (r = t.tag3DContentSvelte) == null || r.css3DInstance.dispose(), t.tag3DContentSvelte = void 0;
325
295
  });
326
- for (const [t, e] of this.store.css3DRenderDisposer) {
296
+ for (const [t, r] of this.store.css3DRenderDisposer) {
327
297
  const o = this.getTagById(t);
328
- (!o || o.stickType === "2DPoint") && (e == null || e.forEach((i) => i == null ? void 0 : i()), this.store.css3DRenderDisposer.delete(t));
298
+ (!o || o.stickType === "2DPoint") && (r == null || r.forEach((e) => e == null ? void 0 : e()), this.store.css3DRenderDisposer.delete(t));
329
299
  }
330
300
  }
331
301
  }
332
302
  export {
333
- Oe as TagRender
303
+ xr as TagRender
334
304
  };
@@ -26,11 +26,6 @@ import "three/examples/jsm/renderers/CSS3DRenderer";
26
26
  import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
27
27
  import "../../shared-utils/three/centerPoint.js";
28
28
  import "../../shared-utils/three/getObjectVisible.js";
29
- import "hammerjs";
30
- import "@realsee/five/line";
31
- import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
32
- import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
33
- import "../../vendor/three/build/three.module.js";
34
29
  import "../../shared-utils/tag.js";
35
30
  import "../../shared-utils/five/vector3ToScreen.js";
36
31
  import "../../shared-utils/five/getFiveModel.js";
@@ -40,6 +35,11 @@ import "../../shared-utils/Utils/WorkUtil.js";
40
35
  import "../../shared-utils/five/transformPosition.js";
41
36
  import "../../shared-utils/three/temp.js";
42
37
  import "../../shared-utils/dom/resizeObserver.js";
38
+ import "hammerjs";
39
+ import "@realsee/five/line";
40
+ import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
41
+ import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
42
+ import "../../vendor/three/build/three.module.js";
43
43
  import "../../shared-utils/three/core/Sphere.js";
44
44
  import "animejs";
45
45
  import "../../shared-utils/isNil.js";
@@ -111,6 +111,10 @@ declare class PanoTagPluginController extends TagRender {
111
111
  * @deprecated
112
112
  */
113
113
  updateRenderAllTags(): void;
114
+ /**
115
+ * @description 清除所有标签
116
+ */
117
+ clearTags(): void;
114
118
  /**
115
119
  * @description 设置 unfolded
116
120
  */