@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
@@ -83,7 +83,10 @@ import "../../shared-utils/Subscribe.js";
83
83
  import "../../shared-utils/Utils/WorkUtil.js";
84
84
  import "../../shared-utils/five/transformPosition.js";
85
85
  import "../../shared-utils/three/temp.js";
86
+ import "../../shared-utils/three/core/Raycaster.js";
86
87
  import "../../shared-utils/dom/resizeObserver.js";
88
+ import "../../shared-utils/five/fiveEveryReadyListener.js";
89
+ import "../../shared-utils/throttle.js";
87
90
  import "hammerjs";
88
91
  import "../../shared-utils/three/PointSelector/index.js";
89
92
  import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
@@ -101,21 +104,74 @@ import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
101
104
  import "../../vendor/three/build/three.module.js";
102
105
  import "../../shared-utils/three/core/Sphere.js";
103
106
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
104
- import "../../shared-utils/three/PointSelector/utils/html.js";
105
- import "../../shared-utils/five/initialCSS3DRender.js";
107
+ import "../../Sculpt/Meshes/Polygon.js";
108
+ import "../../shared-utils/three/generatePolygonGeometry.js";
109
+ import "../../shared-utils/three/earcut3D.js";
110
+ import "earcut";
111
+ import "../../shared-utils/three/getNormal.js";
112
+ import "../../PanoMeasurePlugin/utils/isIntersecting.js";
113
+ import "../../Sculpt/typings/style.js";
114
+ import "../../Sculpt/utils/three/ColoredMesh.js";
115
+ import "../../shared-utils/three/IObject3D.js";
116
+ import "../../Sculpt/utils/Modules/Global.js";
117
+ import "../../Sculpt/utils/Modules/Cursor.js";
118
+ import "../../Object3DHelperPlugin/Controller.js";
119
+ import "../../base/BasePlugin.js";
120
+ import "../../shared-utils/url/absoluteUrl.js";
121
+ import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
122
+ import "../../Sculpt/utils/three/rayOnLine.js";
123
+ import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
124
+ import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
125
+ import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
126
+ import "../../shared-utils/three/boundingBox.js";
127
+ import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
128
+ import "../../shared-utils/Object3DHelper/utils/direction.js";
129
+ import "../../shared-utils/Object3DHelper/Constants/color.js";
130
+ import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
131
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
106
132
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
107
133
  import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
108
134
  import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
135
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
136
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
137
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
138
+ import "../../shared-utils/three/PointSelector/utils/html.js";
139
+ import "../../shared-utils/five/initialCSS3DRender.js";
109
140
  import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
110
141
  import "../../Sculpt/Meshes/Line.js";
111
- import "../../Sculpt/typings/style.js";
112
142
  import "../../shared-utils/five/FiveLine.js";
113
- import "../../shared-utils/three/IObject3D.js";
114
143
  import "../../Sculpt/utils/removeAllTag.js";
115
144
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
116
145
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
117
146
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
147
+ import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
148
+ import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
149
+ import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
150
+ import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
151
+ import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
152
+ import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
153
+ import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
154
+ import "../../shared-utils/Object3DHelper/Base/BaseController.js";
155
+ import "../../shared-utils/threex/domevents/index.js";
156
+ import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
157
+ import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
158
+ import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
159
+ import "../../shared-utils/Object3DHelper/index.js";
160
+ import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
161
+ import "../../shared-utils/math/rad2Deg.js";
162
+ import "../../shared-utils/math/deg2Rad.js";
163
+ import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
164
+ import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
165
+ import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
166
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
167
+ import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
168
+ import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
169
+ import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
170
+ import "../../shared-utils/five/fiveModelLoad.js";
171
+ import "../../shared-utils/five/FiveDomEvents.js";
172
+ import "../../shared-utils/five/calculateThreeMouse.js";
118
173
  import "../../shared-utils/isTouchDevice.js";
174
+ import "../../shared-utils/three/geometryUtil.js";
119
175
  import "../../shared-utils/five/getPosition.js";
120
176
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
121
177
  import "../../shared-utils/three/PointSelector/utils/contents.js";
@@ -146,7 +202,6 @@ import "../../shared-utils/three/loadVideoTexture.js";
146
202
  import "../../shared-utils/device.js";
147
203
  import "../../shared-utils/three/getPositionsByObjectFit.js";
148
204
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
149
- import "../../shared-utils/three/getNormal.js";
150
205
  import "./Tag/BaseTag.js";
151
206
  import "../utils/tag/calculateTagConfig.js";
152
207
  import "../../vendor/object-assign-deep/objectAssignDeep.js";
@@ -171,18 +226,7 @@ import "../utils/normalPositionToPositions.js";
171
226
  import "../../vendor/svelte/store/index.js";
172
227
  import "../../CSS3DRenderPlugin/index.js";
173
228
  import "../../CSS3DRenderPlugin/Controller.js";
174
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
175
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
176
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
177
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
178
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
179
- import "../../shared-utils/five/fiveModelLoad.js";
180
- import "../../shared-utils/url/absoluteUrl.js";
181
- import "../../shared-utils/five/FiveDomEvents.js";
182
- import "../../shared-utils/five/calculateThreeMouse.js";
183
- import "../../shared-utils/three/core/Raycaster.js";
184
- import "../../base/BasePlugin.js";
185
- class Kr extends N {
229
+ class $i extends N {
186
230
  constructor(t) {
187
231
  super(t);
188
232
  c(this, "rendererMap", /* @__PURE__ */ new Map());
@@ -319,5 +363,5 @@ class Kr extends N {
319
363
  }
320
364
  }
321
365
  export {
322
- Kr as TagRender
366
+ $i as TagRender
323
367
  };
@@ -1,6 +1,6 @@
1
1
  var d = Object.defineProperty;
2
- var c = (m, n, e) => n in m ? d(m, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[n] = e;
3
- var r = (m, n, e) => (c(m, typeof n != "symbol" ? n + "" : n, e), e);
2
+ var c = (p, m, t) => m in p ? d(p, m, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[m] = t;
3
+ var e = (p, m, t) => (c(p, typeof m != "symbol" ? m + "" : m, t), t);
4
4
  import { DefaultConfig as l } from "../tag.config.js";
5
5
  import "three";
6
6
  import { anyPositionToVector3 as a } from "../../shared-utils/positionToVector3.js";
@@ -34,7 +34,10 @@ import "../../shared-utils/Utils/BaseUtil.js";
34
34
  import "../../shared-utils/Utils/WorkUtil.js";
35
35
  import "../../shared-utils/five/transformPosition.js";
36
36
  import "../../shared-utils/three/temp.js";
37
+ import "../../shared-utils/three/core/Raycaster.js";
37
38
  import "../../shared-utils/dom/resizeObserver.js";
39
+ import "../../shared-utils/five/fiveEveryReadyListener.js";
40
+ import "../../shared-utils/throttle.js";
38
41
  import "hammerjs";
39
42
  import "../../shared-utils/three/PointSelector/index.js";
40
43
  import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
@@ -60,17 +63,61 @@ import "../../shared-utils/three/core/Sphere.js";
60
63
  import "animejs";
61
64
  import "../../shared-utils/isNil.js";
62
65
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
63
- import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
66
+ import "../../Sculpt/Meshes/Polygon.js";
67
+ import "../../shared-utils/three/generatePolygonGeometry.js";
68
+ import "../../shared-utils/three/earcut3D.js";
69
+ import "earcut";
70
+ import "../../shared-utils/three/getNormal.js";
71
+ import "../../PanoMeasurePlugin/utils/isIntersecting.js";
72
+ import "../../Sculpt/utils/three/ColoredMesh.js";
73
+ import "../../Sculpt/utils/Modules/Global.js";
74
+ import "../../Sculpt/utils/Modules/Cursor.js";
75
+ import "../../Object3DHelperPlugin/Controller.js";
76
+ import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
77
+ import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
78
+ import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
79
+ import "../../shared-utils/three/boundingBox.js";
80
+ import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
81
+ import "../../shared-utils/Object3DHelper/utils/direction.js";
82
+ import "../../shared-utils/Object3DHelper/Constants/color.js";
83
+ import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
84
+ import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
85
+ import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
86
+ import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
87
+ import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
88
+ import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
89
+ import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
90
+ import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
91
+ import "../../shared-utils/Object3DHelper/Base/BaseController.js";
92
+ import "../../shared-utils/threex/domevents/index.js";
93
+ import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
94
+ import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
95
+ import "../../Sculpt/utils/three/rayOnLine.js";
96
+ import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
97
+ import "../../shared-utils/Object3DHelper/index.js";
98
+ import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
99
+ import "../../shared-utils/math/rad2Deg.js";
100
+ import "../../shared-utils/math/deg2Rad.js";
101
+ import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
102
+ import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
103
+ import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
104
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
105
+ import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
106
+ import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
107
+ import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
108
+ import "../../shared-utils/five/fiveModelLoad.js";
109
+ import "../../shared-utils/five/calculateThreeMouse.js";
64
110
  import "../../shared-utils/isTouchDevice.js";
111
+ import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
112
+ import "../../shared-utils/three/geometryUtil.js";
113
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
65
114
  import "../../shared-utils/five/getPosition.js";
66
115
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
67
116
  import "../../shared-utils/three/PointSelector/utils/contents.js";
117
+ import "../../shared-utils/url/absoluteUrl.js";
68
118
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
69
119
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
70
120
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
71
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
72
- import "../../shared-utils/five/fiveModelLoad.js";
73
- import "../../shared-utils/url/absoluteUrl.js";
74
121
  import "../../shared-utils/three/loadTexture.js";
75
122
  import "../../shared-utils/three/Quadrangle.js";
76
123
  import "../../shared-utils/math/pointsIsRectangle.js";
@@ -78,128 +125,125 @@ import "../../shared-utils/three/loadVideoTexture.js";
78
125
  import "../Assets/Icon.js";
79
126
  import "../../shared-utils/three/getPositionsByObjectFit.js";
80
127
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
81
- import "../../shared-utils/three/getNormal.js";
82
- import "../../shared-utils/five/calculateThreeMouse.js";
83
- import "../../shared-utils/three/core/Raycaster.js";
84
- class Ne extends E {
85
- constructor(e) {
86
- super(e);
87
- r(this, "tags", []);
88
- r(this, "cache", new v());
89
- r(this, "config", l);
90
- r(this, "renderQueue", /* @__PURE__ */ new Map());
128
+ class Oi extends E {
129
+ constructor(t) {
130
+ super(t);
131
+ e(this, "tags", []);
132
+ e(this, "cache", new v());
133
+ e(this, "config", l);
134
+ e(this, "renderQueue", /* @__PURE__ */ new Map());
91
135
  /** 插件参数 */
92
- r(this, "params");
93
- r(this, "mediaStore", P({
136
+ e(this, "params");
137
+ e(this, "mediaStore", P({
94
138
  currentMediaElement: null
95
139
  }));
96
- r(this, "store", {
140
+ e(this, "store", {
97
141
  disposers: [],
98
142
  disposed: !1,
99
143
  resizeObserverDisposerAdding: !1,
100
144
  css3DRenderDisposer: /* @__PURE__ */ new Map()
101
145
  });
102
- r(this, "domEvents", new y(this.five));
103
- r(this, "_cache_pointTag");
104
- r(this, "_cache_2DPointTag");
105
- r(this, "_cache_css3DTag");
106
- r(this, "_container", null);
107
- r(this, "_css3DRenderPlugin");
108
- r(this, "whyHide", (e) => {
109
- const t = this.getTagById(e);
110
- return t ? t.whyHide() : { reason: `tag ${e} not found` };
146
+ e(this, "domEvents", new y(this.five));
147
+ e(this, "_cache_pointTag");
148
+ e(this, "_cache_2DPointTag");
149
+ e(this, "_cache_css3DTag");
150
+ e(this, "_container", null);
151
+ e(this, "_css3DRenderPlugin");
152
+ e(this, "whyHide", (t) => {
153
+ const i = this.getTagById(t);
154
+ return i ? i.whyHide() : { reason: `tag ${t} not found` };
111
155
  });
112
- r(this, "loadVideoFirstFrame", () => {
156
+ e(this, "loadVideoFirstFrame", () => {
113
157
  T && this.hooks.emit("loadVideoFirstFrame");
114
158
  });
115
- this.mediaStore.subscribe(({ currentMediaElement: t }) => {
116
- this.tags.forEach((i) => {
159
+ this.mediaStore.subscribe(({ currentMediaElement: i }) => {
160
+ this.tags.forEach((r) => {
117
161
  var o;
118
- if (i.mediaPlane instanceof _ && t !== i.mediaPlane.videoInstance) {
119
- if (!((o = i.mediaPlane.videoInstance) != null && o.src) || t === i.mediaPlane.videoInstance)
162
+ if (r.mediaPlane instanceof _ && i !== r.mediaPlane.videoInstance) {
163
+ if (!((o = r.mediaPlane.videoInstance) != null && o.src) || i === r.mediaPlane.videoInstance)
120
164
  return;
121
- i.mediaPlane.pause();
165
+ r.mediaPlane.pause();
122
166
  }
123
167
  });
124
168
  });
125
169
  }
126
170
  get container() {
127
- var e;
128
- return this._container || ((e = this.five.getElement()) == null ? void 0 : e.parentElement);
171
+ var t;
172
+ return this._container || ((t = this.five.getElement()) == null ? void 0 : t.parentElement);
129
173
  }
130
- set container(e) {
131
- this._container = e;
174
+ set container(t) {
175
+ this._container = t;
132
176
  }
133
177
  // eslint-disable-next-line accessor-pairs
134
- set tagsLengthWillUpdate(e) {
135
- e && (this._cache_pointTag = this.tags.filter((t) => t.stickType === "2DPoint" || t.stickType === "3DPoint").filter((t) => t.position), this._cache_2DPointTag = this.tags.filter((t) => t.stickType === "2DPoint").filter((t) => t.position), this._cache_css3DTag = this.tags.filter(
136
- (t) => t.stickType === "3DPoint" || t.stickType === "Plane" || t.stickType === "Model" && t.contentType === "MediaModel"
137
- ).filter((t) => {
138
- const i = t.computeRenderType();
139
- return i === "BehindDom" || i === "Dom";
178
+ set tagsLengthWillUpdate(t) {
179
+ t && (this._cache_pointTag = this.tags.filter((i) => i.stickType === "2DPoint" || i.stickType === "3DPoint").filter((i) => i.position), this._cache_2DPointTag = this.tags.filter((i) => i.stickType === "2DPoint").filter((i) => i.position), this._cache_css3DTag = this.tags.filter(
180
+ (i) => i.stickType === "3DPoint" || i.stickType === "Plane" || i.stickType === "Model" && i.contentType === "MediaModel"
181
+ ).filter((i) => {
182
+ const r = i.computeRenderType();
183
+ return r === "BehindDom" || r === "Dom";
140
184
  }));
141
185
  }
142
186
  /** css3DRenderPlugin */
143
187
  get css3DRenderPlugin() {
144
- var e, t, i;
188
+ var t, i, r;
145
189
  if (!this._css3DRenderPlugin) {
146
190
  const o = D(this.five);
147
- this._css3DRenderPlugin = o, (e = o.frontModeCSS3DRenderer) != null && e.domElementWrapper && (o.frontModeCSS3DRenderer.domElementWrapper.style.zIndex = (i = (t = this.params.containerZIndex) == null ? void 0 : t.toString()) != null ? i : "");
191
+ this._css3DRenderPlugin = o, (t = o.frontModeCSS3DRenderer) != null && t.domElementWrapper && (o.frontModeCSS3DRenderer.domElementWrapper.style.zIndex = (r = (i = this.params.containerZIndex) == null ? void 0 : i.toString()) != null ? r : "");
148
192
  }
149
193
  return this._css3DRenderPlugin;
150
194
  }
151
195
  get filterPointTag() {
152
- var e;
153
- return (e = this._cache_pointTag) != null ? e : [];
196
+ var t;
197
+ return (t = this._cache_pointTag) != null ? t : [];
154
198
  }
155
199
  get filter2DPointTag() {
156
- var e;
157
- return (e = this._cache_2DPointTag) != null ? e : [];
200
+ var t;
201
+ return (t = this._cache_2DPointTag) != null ? t : [];
158
202
  }
159
203
  get filterCSS3DTag() {
160
- var e;
161
- return (e = this._cache_css3DTag) != null ? e : [];
204
+ var t;
205
+ return (t = this._cache_css3DTag) != null ? t : [];
162
206
  }
163
- addRenderQueue(e) {
164
- var p, s;
165
- const { type: t, keys: i = [], tags: o = [] } = e;
166
- this.renderQueue.has(t) ? this.renderQueue.set(t, {
167
- keys: Array.from(/* @__PURE__ */ new Set([...(p = this.renderQueue.get(t).keys) != null ? p : [], ...i])),
168
- tags: Array.from(/* @__PURE__ */ new Set([...(s = this.renderQueue.get(t).tags) != null ? s : [], ...o]))
169
- }) : this.renderQueue.set(t, { keys: i, tags: o });
207
+ addRenderQueue(t) {
208
+ var s, n;
209
+ const { type: i, keys: r = [], tags: o = [] } = t;
210
+ this.renderQueue.has(i) ? this.renderQueue.set(i, {
211
+ keys: Array.from(/* @__PURE__ */ new Set([...(s = this.renderQueue.get(i).keys) != null ? s : [], ...r])),
212
+ tags: Array.from(/* @__PURE__ */ new Set([...(n = this.renderQueue.get(i).tags) != null ? n : [], ...o]))
213
+ }) : this.renderQueue.set(i, { keys: r, tags: o });
170
214
  }
171
- getTagById(e) {
172
- const t = this.tags.find((i) => i.id === e);
173
- if (!t) {
174
- console.warn(`getTagById Error: can't find tag id: ${e}`);
215
+ getTagById(t) {
216
+ const i = this.tags.find((r) => r.id === t);
217
+ if (!i) {
218
+ console.warn(`getTagById Error: can't find tag id: ${t}`);
175
219
  return;
176
220
  }
177
- return t;
221
+ return i;
178
222
  }
179
223
  /** 暂停当前标签内进行的所有多媒体 */
180
224
  pauseCurrentMedia() {
181
225
  this.mediaStore.set({ currentMediaElement: null });
182
226
  }
183
- getPositions(e) {
184
- if (u(e))
185
- return e.position;
186
- if (f(e))
187
- return e.data.mediaPosition;
188
- if (h(e))
189
- return g(this.five.camera.position, a(e.position), a(e.normal));
227
+ getPositions(t) {
228
+ if (u(t))
229
+ return t.position;
230
+ if (f(t))
231
+ return t.data.mediaPosition;
232
+ if (h(t))
233
+ return g(this.five.camera.position, a(t.position), a(t.normal));
190
234
  }
191
- addObjectClickHandler(e, t, i) {
192
- if (!t || !this.domEvents)
235
+ addObjectClickHandler(t, i, r) {
236
+ if (!i || !this.domEvents)
193
237
  return () => {
194
238
  };
195
- const o = () => !(!e.currentVisible || e.loading), p = (s) => {
239
+ const o = () => !(!t.currentVisible || t.loading), s = (n) => {
196
240
  if (!o())
197
241
  return !1;
198
- i(s.origDomEvent);
242
+ r(n.origDomEvent);
199
243
  };
200
- return this.domEvents.addEventListener(t, "click", p), () => {
201
- var s;
202
- (s = this.domEvents) == null || s.removeEventListener(t, "click", p);
244
+ return this.domEvents.addEventListener(i, "click", s), () => {
245
+ var n;
246
+ (n = this.domEvents) == null || n.removeEventListener(i, "click", s);
203
247
  };
204
248
  }
205
249
  /**
@@ -211,5 +255,5 @@ class Ne extends E {
211
255
  }
212
256
  }
213
257
  export {
214
- Ne as TagUtil
258
+ Oi as TagUtil
215
259
  };