@realsee/dnalogel 3.51.0 → 3.52.1

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 (278) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/Object3DHelperPlugin/Controller.d.ts +9 -9
  3. package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
  4. package/dist/PanoMeasurePlugin/Model/area.d.ts +1 -1
  5. package/dist/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
  6. package/dist/PanoMeasurePlugin/typings/data.d.ts +1 -2
  7. package/dist/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
  8. package/dist/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
  9. package/dist/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
  10. package/dist/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
  11. package/dist/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
  12. package/dist/Sculpt/Meshes/Box.d.ts +6 -24
  13. package/dist/Sculpt/Meshes/Circle.d.ts +0 -4
  14. package/dist/Sculpt/Meshes/Cylinder.d.ts +0 -1
  15. package/dist/Sculpt/Meshes/Line.d.ts +9 -22
  16. package/dist/Sculpt/Meshes/Polygon.d.ts +1 -5
  17. package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  18. package/dist/Sculpt/Meshes/Prism.d.ts +29 -10
  19. package/dist/Sculpt/Meshes/Rectangle.d.ts +1 -5
  20. package/dist/Sculpt/Objects/Base/index.d.ts +3 -3
  21. package/dist/Sculpt/Objects/Box/index.d.ts +7 -2
  22. package/dist/Sculpt/Objects/Circle/index.d.ts +3 -0
  23. package/dist/Sculpt/Objects/Cylinder/index.d.ts +3 -0
  24. package/dist/Sculpt/Objects/Line/index.d.ts +3 -0
  25. package/dist/Sculpt/Objects/Point/index.d.ts +3 -0
  26. package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -0
  27. package/dist/Sculpt/Objects/Polyline/index.d.ts +3 -0
  28. package/dist/Sculpt/Objects/Prism/index.d.ts +3 -0
  29. package/dist/Sculpt/Objects/Rectangle/index.d.ts +13 -2
  30. package/dist/Sculpt/index.d.ts +10 -19
  31. package/dist/Sculpt/typings/style.d.ts +6 -0
  32. package/dist/Sculpt/utils/export.d.ts +24 -18
  33. package/dist/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
  34. package/dist/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
  35. package/dist/index.cjs.js +88 -3009
  36. package/dist/index.d.ts +79 -1
  37. package/dist/index.js +35141 -54254
  38. package/dist/index.umd.js +81 -3002
  39. package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
  40. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
  41. package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
  42. package/dist/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
  43. package/dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
  44. package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
  45. package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  46. package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
  47. package/dist/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
  48. package/dist/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
  49. package/dist/shared-utils/five/FiveLine.d.ts +18 -14
  50. package/dist/shared-utils/index.d.ts +0 -1
  51. package/dist/shared-utils/math/planimetry.d.ts +1 -1
  52. package/dist/shared-utils/tag.d.ts +5 -7
  53. package/dist/shared-utils/three/boundingBox.d.ts +14 -20
  54. package/dist/shared-utils/three/core/LineGeometry.d.ts +13 -0
  55. package/dist/shared-utils/three/core/PrismGeometry.d.ts +14 -0
  56. package/dist/shared-utils/three/geometryUtil.d.ts +8 -0
  57. package/dist/shared-utils/three/getNormal.d.ts +5 -2
  58. package/libs/AreaMakerPlugin/Controller.js +47 -100
  59. package/libs/AreaMakerPlugin/index.js +12 -65
  60. package/libs/AreaMakerPlugin/utils/Item.js +102 -157
  61. package/libs/CSS3DRenderPlugin/Controller.js +45 -93
  62. package/libs/CSS3DRenderPlugin/index.js +15 -63
  63. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +51 -106
  64. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +79 -131
  65. package/libs/CruisePlugin/BaseController.js +90 -143
  66. package/libs/CruisePlugin/Move.js +39 -83
  67. package/libs/CruisePlugin/Work.js +52 -96
  68. package/libs/CruisePlugin/index.js +23 -67
  69. package/libs/CurrentPanoImagePlugin/Controller.js +88 -141
  70. package/libs/CurrentPanoImagePlugin/index.js +11 -64
  71. package/libs/GuideLinePlugin/Controller.js +13 -57
  72. package/libs/GuideLinePlugin/GuideLineItem.js +20 -64
  73. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -8
  74. package/libs/GuideLinePlugin/GuideLineModeItem.js +15 -59
  75. package/libs/GuideLinePlugin/index.js +23 -67
  76. package/libs/ModelMakerPlugin/Controller.js +125 -165
  77. package/libs/ModelMakerPlugin/index.js +23 -63
  78. package/libs/ModelMakerPlugin/item/baseItem.js +2 -3
  79. package/libs/ModelMakerPlugin/item/boxItem.js +2 -3
  80. package/libs/ModelMakerPlugin/item/polygonItem.js +6 -7
  81. package/libs/ModelMakerPlugin/item/prismItem.js +2 -3
  82. package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +2 -3
  83. package/libs/ModelTVVideoPlugin/Plugin.js +49 -97
  84. package/libs/ModelTVVideoPlugin/index.js +8 -56
  85. package/libs/Object3DHelperPlugin/Controller.d.ts +9 -9
  86. package/libs/Object3DHelperPlugin/Controller.js +105 -92
  87. package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
  88. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +35 -30
  89. package/libs/Object3DHelperPlugin/index.js +15 -30
  90. package/libs/PanoCompassPlugin/Controller.js +46 -93
  91. package/libs/PanoCompassPlugin/index.js +17 -64
  92. package/libs/PanoCursorRaycasterPlugin/index.js +4 -3
  93. package/libs/PanoDoorLabelPlugin/BaseController.js +27 -80
  94. package/libs/PanoDoorLabelPlugin/Controller.js +80 -133
  95. package/libs/PanoDoorLabelPlugin/index.js +11 -64
  96. package/libs/PanoMeasurePlugin/Components/Controller0.js +79 -128
  97. package/libs/PanoMeasurePlugin/Components/Controller1.js +92 -141
  98. package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
  99. package/libs/PanoMeasurePlugin/Controller/EditController.js +73 -122
  100. package/libs/PanoMeasurePlugin/Controller/MixedController.js +3 -2
  101. package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
  102. package/libs/PanoMeasurePlugin/Controller/WatchController.js +72 -121
  103. package/libs/PanoMeasurePlugin/Controller/index.js +89 -135
  104. package/libs/PanoMeasurePlugin/Model/area.d.ts +1 -1
  105. package/libs/PanoMeasurePlugin/Model/area.js +25 -74
  106. package/libs/PanoMeasurePlugin/Model/index.js +3 -2
  107. package/libs/PanoMeasurePlugin/Model/line.js +1 -0
  108. package/libs/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
  109. package/libs/PanoMeasurePlugin/Model/polygon.js +7 -7
  110. package/libs/PanoMeasurePlugin/Model/polyline.js +3 -2
  111. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -56
  112. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +17 -66
  113. package/libs/PanoMeasurePlugin/index.js +18 -64
  114. package/libs/PanoMeasurePlugin/typings/data.d.ts +1 -2
  115. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +5 -59
  116. package/libs/PanoMeasurePlugin/utils/line.js +3 -2
  117. package/libs/PanoRulerProPlugin/Controller.js +34 -89
  118. package/libs/PanoRulerProPlugin/RulerItems.js +92 -147
  119. package/libs/PanoRulerProPlugin/index.js +10 -65
  120. package/libs/PanoSpatialTagPlugin/Plugin.js +130 -178
  121. package/libs/PanoSpatialTagPlugin/index.js +6 -54
  122. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +61 -116
  123. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +138 -193
  124. package/libs/PanoTagPlugin/Components/Tag/index.js +140 -194
  125. package/libs/PanoTagPlugin/Components/TagContainer.js +58 -112
  126. package/libs/PanoTagPlugin/Components/TagItem.js +137 -191
  127. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +109 -164
  128. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +22 -76
  129. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +33 -87
  130. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +39 -94
  131. package/libs/PanoTagPlugin/controller/TagRender.js +18 -62
  132. package/libs/PanoTagPlugin/controller/TagUtil.js +80 -124
  133. package/libs/PanoTagPlugin/controller/index.js +37 -81
  134. package/libs/PanoTagPlugin/index.js +28 -72
  135. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +14 -14
  136. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +22 -77
  137. package/libs/PanoVideoPlugin/Controller.js +43 -96
  138. package/libs/PanoVideoPlugin/VideoMeshController.js +64 -119
  139. package/libs/PanoVideoPlugin/index.js +14 -67
  140. package/libs/PipelinePlugin/Controller.js +123 -176
  141. package/libs/PipelinePlugin/index.js +11 -64
  142. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +15 -70
  143. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -58
  144. package/libs/PipelinePlugin/utils/Objects/Pipe.js +42 -97
  145. package/libs/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
  146. package/libs/Sculpt/Editors/BoxMeshEditor.js +98 -0
  147. package/libs/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
  148. package/libs/Sculpt/Editors/CircleMeshEditor.js +9 -0
  149. package/libs/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
  150. package/libs/Sculpt/Editors/CylinderMeshEditor.js +41 -0
  151. package/libs/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
  152. package/libs/Sculpt/Editors/PrismMeshEditor.js +43 -0
  153. package/libs/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
  154. package/libs/Sculpt/Editors/RectangleMeshEditor.js +70 -0
  155. package/libs/Sculpt/Meshes/Box.d.ts +6 -24
  156. package/libs/Sculpt/Meshes/Box.js +22 -93
  157. package/libs/Sculpt/Meshes/Circle.d.ts +0 -4
  158. package/libs/Sculpt/Meshes/Circle.js +18 -27
  159. package/libs/Sculpt/Meshes/Cylinder.d.ts +0 -1
  160. package/libs/Sculpt/Meshes/Cylinder.js +17 -24
  161. package/libs/Sculpt/Meshes/Line.d.ts +9 -22
  162. package/libs/Sculpt/Meshes/Line.js +85 -104
  163. package/libs/Sculpt/Meshes/LineWithDots.js +10 -14
  164. package/libs/Sculpt/Meshes/Point.js +29 -34
  165. package/libs/Sculpt/Meshes/Polygon.d.ts +1 -5
  166. package/libs/Sculpt/Meshes/Polygon.js +40 -53
  167. package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  168. package/libs/Sculpt/Meshes/Prism.d.ts +29 -10
  169. package/libs/Sculpt/Meshes/Prism.js +108 -84
  170. package/libs/Sculpt/Meshes/Rectangle.d.ts +1 -5
  171. package/libs/Sculpt/Meshes/Rectangle.js +12 -22
  172. package/libs/Sculpt/Meshes/RectangleWithEdge.js +17 -20
  173. package/libs/Sculpt/Objects/Base/index.d.ts +3 -3
  174. package/libs/Sculpt/Objects/Base/index.js +20 -25
  175. package/libs/Sculpt/Objects/Box/index.d.ts +7 -2
  176. package/libs/Sculpt/Objects/Box/index.js +72 -60
  177. package/libs/Sculpt/Objects/Circle/index.d.ts +3 -0
  178. package/libs/Sculpt/Objects/Circle/index.js +41 -37
  179. package/libs/Sculpt/Objects/Cylinder/index.d.ts +3 -0
  180. package/libs/Sculpt/Objects/Cylinder/index.js +66 -62
  181. package/libs/Sculpt/Objects/Line/Editor.js +8 -10
  182. package/libs/Sculpt/Objects/Line/index.d.ts +3 -0
  183. package/libs/Sculpt/Objects/Line/index.js +45 -41
  184. package/libs/Sculpt/Objects/Point/index.d.ts +3 -0
  185. package/libs/Sculpt/Objects/Point/index.js +33 -29
  186. package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -0
  187. package/libs/Sculpt/Objects/Polygon/index.js +67 -63
  188. package/libs/Sculpt/Objects/Polyline/index.d.ts +3 -0
  189. package/libs/Sculpt/Objects/Polyline/index.js +46 -42
  190. package/libs/Sculpt/Objects/Prism/index.d.ts +3 -0
  191. package/libs/Sculpt/Objects/Prism/index.js +58 -53
  192. package/libs/Sculpt/Objects/Rectangle/index.d.ts +13 -2
  193. package/libs/Sculpt/Objects/Rectangle/index.js +143 -81
  194. package/libs/Sculpt/index.d.ts +10 -19
  195. package/libs/Sculpt/index.js +105 -107
  196. package/libs/Sculpt/typings/style.d.ts +6 -0
  197. package/libs/Sculpt/utils/export.d.ts +24 -18
  198. package/libs/Sculpt/utils/export.js +52 -19
  199. package/libs/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
  200. package/libs/Sculpt/utils/sortPositionsByCameraPosition.js +9 -0
  201. package/libs/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
  202. package/libs/Sculpt/utils/three/ColoredMesh.js +40 -37
  203. package/libs/base/BasePlugin.js +10 -15
  204. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +96 -147
  205. package/libs/floorplan/MapviewFloorplanPlugin/index.js +12 -63
  206. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +53 -105
  207. package/libs/floorplan/ModelFloorplanPlugin/index.js +11 -63
  208. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +65 -118
  209. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +11 -64
  210. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +54 -106
  211. package/libs/floorplan/TopviewFloorplanPlugin/index.js +11 -63
  212. package/libs/floorplan/index.js +0 -5
  213. package/libs/index.d.ts +79 -1
  214. package/libs/index.js +229 -215
  215. package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
  216. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +112 -122
  217. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
  218. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +60 -39
  219. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +47 -47
  220. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
  221. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +28 -28
  222. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
  223. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +25 -18
  224. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
  225. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +18 -14
  226. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
  227. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -0
  228. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  229. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +2 -1
  230. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
  231. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +40 -28
  232. package/libs/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
  233. package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
  234. package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.js +4 -4
  235. package/libs/shared-utils/five/FiveDomEvents.js +88 -88
  236. package/libs/shared-utils/five/FiveLine.d.ts +18 -14
  237. package/libs/shared-utils/five/FiveLine.js +31 -13
  238. package/libs/shared-utils/five/index.js +2 -7
  239. package/libs/shared-utils/five/lookObject.js +27 -32
  240. package/libs/shared-utils/index.d.ts +0 -1
  241. package/libs/shared-utils/index.js +31 -33
  242. package/libs/shared-utils/logger.js +1 -1
  243. package/libs/shared-utils/math/planimetry.d.ts +1 -1
  244. package/libs/shared-utils/tag.d.ts +5 -7
  245. package/libs/shared-utils/tag.js +1 -1
  246. package/libs/shared-utils/three/boundingBox.d.ts +14 -20
  247. package/libs/shared-utils/three/core/LineGeometry.d.ts +13 -0
  248. package/libs/shared-utils/three/core/LineGeometry.js +26 -0
  249. package/libs/shared-utils/three/core/PrismGeometry.d.ts +14 -0
  250. package/libs/shared-utils/three/core/PrismGeometry.js +42 -0
  251. package/libs/shared-utils/three/earcut3D.js +5 -5
  252. package/libs/shared-utils/three/geometryUtil.d.ts +8 -0
  253. package/libs/shared-utils/three/geometryUtil.js +3 -1
  254. package/libs/shared-utils/three/getNormal.d.ts +5 -2
  255. package/libs/shared-utils/three/getNormal.js +6 -5
  256. package/libs/shared-utils/three/index.js +0 -5
  257. package/package.json +1 -1
  258. package/dist/Sculpt/Objects/Box/Editor.d.ts +0 -5
  259. package/dist/Sculpt/Objects/Circle/Editor.d.ts +0 -5
  260. package/dist/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
  261. package/dist/Sculpt/Objects/Prism/Editor.d.ts +0 -5
  262. package/dist/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
  263. package/dist/Sculpt/utils/getBetterNormal.d.ts +0 -2
  264. package/libs/Sculpt/Objects/Box/Editor.d.ts +0 -5
  265. package/libs/Sculpt/Objects/Box/Editor.js +0 -44
  266. package/libs/Sculpt/Objects/Circle/Editor.d.ts +0 -5
  267. package/libs/Sculpt/Objects/Circle/Editor.js +0 -9
  268. package/libs/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
  269. package/libs/Sculpt/Objects/Cylinder/Editor.js +0 -41
  270. package/libs/Sculpt/Objects/Prism/Editor.d.ts +0 -5
  271. package/libs/Sculpt/Objects/Prism/Editor.js +0 -44
  272. package/libs/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
  273. package/libs/Sculpt/Objects/Rectangle/Editor.js +0 -9
  274. package/libs/Sculpt/utils/getBetterNormal.d.ts +0 -2
  275. package/libs/Sculpt/utils/getBetterNormal.js +0 -8
  276. package/libs/vendor/three/build/three.module.js +0 -19336
  277. package/libs/vendor/three/examples/jsm/lines/LineGeometry.js +0 -28
  278. package/libs/vendor/three/examples/jsm/lines/LineSegmentsGeometry.js +0 -69
@@ -99,79 +99,24 @@ import "../../CSS3DRenderPlugin/utils/even.js";
99
99
  import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
100
100
  import "../../shared-utils/three/getObjectVisible.js";
101
101
  import "@realsee/five/line";
102
- import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
103
- import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
104
- import "../../vendor/three/build/three.module.js";
105
102
  import "../../shared-utils/three/core/Sphere.js";
106
103
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.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";
104
+ import "../../shared-utils/three/PointSelector/utils/html.js";
105
+ import "../../shared-utils/five/initialCSS3DRender.js";
132
106
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
133
107
  import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
134
108
  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";
140
109
  import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
141
110
  import "../../Sculpt/Meshes/Line.js";
111
+ import "../../Sculpt/typings/style.js";
142
112
  import "../../shared-utils/five/FiveLine.js";
113
+ import "../../shared-utils/three/IObject3D.js";
143
114
  import "../../Sculpt/utils/removeAllTag.js";
144
115
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
145
116
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
117
+ import "../../shared-utils/three/core/LineGeometry.js";
146
118
  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";
173
119
  import "../../shared-utils/isTouchDevice.js";
174
- import "../../shared-utils/three/geometryUtil.js";
175
120
  import "../../shared-utils/five/getPosition.js";
176
121
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
177
122
  import "../../shared-utils/three/PointSelector/utils/contents.js";
@@ -202,6 +147,7 @@ import "../../shared-utils/three/loadVideoTexture.js";
202
147
  import "../../shared-utils/device.js";
203
148
  import "../../shared-utils/three/getPositionsByObjectFit.js";
204
149
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
150
+ import "../../shared-utils/three/getNormal.js";
205
151
  import "./Tag/BaseTag.js";
206
152
  import "../utils/tag/calculateTagConfig.js";
207
153
  import "../../vendor/object-assign-deep/objectAssignDeep.js";
@@ -226,7 +172,17 @@ import "../utils/normalPositionToPositions.js";
226
172
  import "../../vendor/svelte/store/index.js";
227
173
  import "../../CSS3DRenderPlugin/index.js";
228
174
  import "../../CSS3DRenderPlugin/Controller.js";
229
- class $i extends N {
175
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
176
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
177
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
178
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
179
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
180
+ import "../../shared-utils/five/fiveModelLoad.js";
181
+ import "../../shared-utils/url/absoluteUrl.js";
182
+ import "../../shared-utils/five/FiveDomEvents.js";
183
+ import "../../shared-utils/five/calculateThreeMouse.js";
184
+ import "../../base/BasePlugin.js";
185
+ class Kr extends N {
230
186
  constructor(t) {
231
187
  super(t);
232
188
  c(this, "rendererMap", /* @__PURE__ */ new Map());
@@ -363,5 +319,5 @@ class $i extends N {
363
319
  }
364
320
  }
365
321
  export {
366
- $i as TagRender
322
+ Kr as TagRender
367
323
  };
@@ -1,6 +1,6 @@
1
1
  var d = Object.defineProperty;
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);
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);
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";
@@ -51,73 +51,27 @@ import "../../Sculpt/Meshes/Line.js";
51
51
  import "../../Sculpt/typings/style.js";
52
52
  import "../../shared-utils/five/FiveLine.js";
53
53
  import "@realsee/five/line";
54
- import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
55
- import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
56
- import "../../vendor/three/build/three.module.js";
54
+ import "../../shared-utils/isNil.js";
57
55
  import "../../shared-utils/three/IObject3D.js";
58
56
  import "../../Sculpt/utils/removeAllTag.js";
59
57
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
60
58
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
61
59
  import "../../shared-utils/util.js";
60
+ import "../../shared-utils/three/core/LineGeometry.js";
62
61
  import "../../shared-utils/three/core/Sphere.js";
63
62
  import "animejs";
64
- import "../../shared-utils/isNil.js";
65
63
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.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";
110
- import "../../shared-utils/isTouchDevice.js";
111
- import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
112
- import "../../shared-utils/three/geometryUtil.js";
113
64
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
65
+ import "../../shared-utils/isTouchDevice.js";
114
66
  import "../../shared-utils/five/getPosition.js";
115
67
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
116
68
  import "../../shared-utils/three/PointSelector/utils/contents.js";
117
- import "../../shared-utils/url/absoluteUrl.js";
118
69
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
119
70
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
120
71
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
72
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
73
+ import "../../shared-utils/five/fiveModelLoad.js";
74
+ import "../../shared-utils/url/absoluteUrl.js";
121
75
  import "../../shared-utils/three/loadTexture.js";
122
76
  import "../../shared-utils/three/Quadrangle.js";
123
77
  import "../../shared-utils/math/pointsIsRectangle.js";
@@ -125,125 +79,127 @@ import "../../shared-utils/three/loadVideoTexture.js";
125
79
  import "../Assets/Icon.js";
126
80
  import "../../shared-utils/three/getPositionsByObjectFit.js";
127
81
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
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());
82
+ import "../../shared-utils/three/getNormal.js";
83
+ import "../../shared-utils/five/calculateThreeMouse.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());
135
91
  /** 插件参数 */
136
- e(this, "params");
137
- e(this, "mediaStore", P({
92
+ r(this, "params");
93
+ r(this, "mediaStore", P({
138
94
  currentMediaElement: null
139
95
  }));
140
- e(this, "store", {
96
+ r(this, "store", {
141
97
  disposers: [],
142
98
  disposed: !1,
143
99
  resizeObserverDisposerAdding: !1,
144
100
  css3DRenderDisposer: /* @__PURE__ */ new Map()
145
101
  });
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` };
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` };
155
111
  });
156
- e(this, "loadVideoFirstFrame", () => {
112
+ r(this, "loadVideoFirstFrame", () => {
157
113
  T && this.hooks.emit("loadVideoFirstFrame");
158
114
  });
159
- this.mediaStore.subscribe(({ currentMediaElement: i }) => {
160
- this.tags.forEach((r) => {
115
+ this.mediaStore.subscribe(({ currentMediaElement: t }) => {
116
+ this.tags.forEach((i) => {
161
117
  var o;
162
- if (r.mediaPlane instanceof _ && i !== r.mediaPlane.videoInstance) {
163
- if (!((o = r.mediaPlane.videoInstance) != null && o.src) || i === r.mediaPlane.videoInstance)
118
+ if (i.mediaPlane instanceof _ && t !== i.mediaPlane.videoInstance) {
119
+ if (!((o = i.mediaPlane.videoInstance) != null && o.src) || t === i.mediaPlane.videoInstance)
164
120
  return;
165
- r.mediaPlane.pause();
121
+ i.mediaPlane.pause();
166
122
  }
167
123
  });
168
124
  });
169
125
  }
170
126
  get container() {
171
- var t;
172
- return this._container || ((t = this.five.getElement()) == null ? void 0 : t.parentElement);
127
+ var e;
128
+ return this._container || ((e = this.five.getElement()) == null ? void 0 : e.parentElement);
173
129
  }
174
- set container(t) {
175
- this._container = t;
130
+ set container(e) {
131
+ this._container = e;
176
132
  }
177
133
  // eslint-disable-next-line accessor-pairs
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";
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";
184
140
  }));
185
141
  }
186
142
  /** css3DRenderPlugin */
187
143
  get css3DRenderPlugin() {
188
- var t, i, r;
144
+ var e, t, i;
189
145
  if (!this._css3DRenderPlugin) {
190
146
  const o = D(this.five);
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 : "");
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 : "");
192
148
  }
193
149
  return this._css3DRenderPlugin;
194
150
  }
195
151
  get filterPointTag() {
196
- var t;
197
- return (t = this._cache_pointTag) != null ? t : [];
152
+ var e;
153
+ return (e = this._cache_pointTag) != null ? e : [];
198
154
  }
199
155
  get filter2DPointTag() {
200
- var t;
201
- return (t = this._cache_2DPointTag) != null ? t : [];
156
+ var e;
157
+ return (e = this._cache_2DPointTag) != null ? e : [];
202
158
  }
203
159
  get filterCSS3DTag() {
204
- var t;
205
- return (t = this._cache_css3DTag) != null ? t : [];
160
+ var e;
161
+ return (e = this._cache_css3DTag) != null ? e : [];
206
162
  }
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 });
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 });
214
170
  }
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}`);
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}`);
219
175
  return;
220
176
  }
221
- return i;
177
+ return t;
222
178
  }
223
179
  /** 暂停当前标签内进行的所有多媒体 */
224
180
  pauseCurrentMedia() {
225
181
  this.mediaStore.set({ currentMediaElement: null });
226
182
  }
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));
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));
234
190
  }
235
- addObjectClickHandler(t, i, r) {
236
- if (!i || !this.domEvents)
191
+ addObjectClickHandler(e, t, i) {
192
+ if (!t || !this.domEvents)
237
193
  return () => {
238
194
  };
239
- const o = () => !(!t.currentVisible || t.loading), s = (n) => {
195
+ const o = () => !(!e.currentVisible || e.loading), p = (s) => {
240
196
  if (!o())
241
197
  return !1;
242
- r(n.origDomEvent);
198
+ i(s.origDomEvent);
243
199
  };
244
- return this.domEvents.addEventListener(i, "click", s), () => {
245
- var n;
246
- (n = this.domEvents) == null || n.removeEventListener(i, "click", s);
200
+ return this.domEvents.addEventListener(t, "click", p), () => {
201
+ var s;
202
+ (s = this.domEvents) == null || s.removeEventListener(t, "click", p);
247
203
  };
248
204
  }
249
205
  /**
@@ -255,5 +211,5 @@ class Oi extends E {
255
211
  }
256
212
  }
257
213
  export {
258
- Oi as TagUtil
214
+ Ne as TagUtil
259
215
  };
@@ -2,16 +2,16 @@ var S = Object.defineProperty, D = Object.defineProperties;
2
2
  var P = Object.getOwnPropertyDescriptors;
3
3
  var y = Object.getOwnPropertySymbols;
4
4
  var U = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
5
- var u = (p, a, e) => a in p ? S(p, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[a] = e, m = (p, a) => {
5
+ var u = (d, a, e) => a in d ? S(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, m = (d, a) => {
6
6
  for (var e in a || (a = {}))
7
- U.call(a, e) && u(p, e, a[e]);
7
+ U.call(a, e) && u(d, e, a[e]);
8
8
  if (y)
9
9
  for (var e of y(a))
10
- E.call(a, e) && u(p, e, a[e]);
11
- return p;
12
- }, c = (p, a) => D(p, P(a));
13
- var d = (p, a, e) => (u(p, typeof a != "symbol" ? a + "" : a, e), e);
14
- var l = (p, a, e) => new Promise((t, i) => {
10
+ E.call(a, e) && u(d, e, a[e]);
11
+ return d;
12
+ }, c = (d, a) => D(d, P(a));
13
+ var p = (d, a, e) => (u(d, typeof a != "symbol" ? a + "" : a, e), e);
14
+ var l = (d, a, e) => new Promise((t, i) => {
15
15
  var o = (r) => {
16
16
  try {
17
17
  n(e.next(r));
@@ -25,7 +25,7 @@ var l = (p, a, e) => new Promise((t, i) => {
25
25
  i(h);
26
26
  }
27
27
  }, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(o, s);
28
- n((e = e.apply(p, a)).next());
28
+ n((e = e.apply(d, a)).next());
29
29
  });
30
30
  import * as v from "three";
31
31
  import { objectAssignDeepExports as f } from "../../vendor/object-assign-deep/objectAssignDeep.js";
@@ -43,15 +43,10 @@ import "hammerjs";
43
43
  import "../../shared-utils/three/PointSelector/index.js";
44
44
  import "three/examples/jsm/renderers/CSS3DRenderer";
45
45
  import "@realsee/five/line";
46
- import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
47
46
  import "../../shared-utils/three/core/Sphere.js";
48
47
  import "animejs";
49
48
  import { waitFiveModelLoaded as G } from "../../shared-utils/five/fiveModelLoad.js";
50
49
  import { nextFrame as N } from "../../shared-utils/animationFrame/index.js";
51
- import "../../Sculpt/Meshes/Polygon.js";
52
- import "../../Sculpt/utils/Modules/Global.js";
53
- import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
54
- import "../../Sculpt/utils/three/rayOnLine.js";
55
50
  import { DebugUtil as V } from "../utils/DebugUtil.js";
56
51
  import { safeObj as T } from "../../shared-utils/safeObj.js";
57
52
  import { PointTag as z } from "./Tag/PointTag.js";
@@ -151,61 +146,12 @@ import "../../Sculpt/utils/removeAllTag.js";
151
146
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
152
147
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
153
148
  import "../../shared-utils/util.js";
149
+ import "../../shared-utils/three/core/LineGeometry.js";
154
150
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
155
151
  import "../../shared-utils/isTouchDevice.js";
156
152
  import "../../shared-utils/five/getPosition.js";
157
153
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
158
154
  import "../../shared-utils/three/PointSelector/utils/contents.js";
159
- import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
160
- import "../../vendor/three/build/three.module.js";
161
- import "../../shared-utils/three/generatePolygonGeometry.js";
162
- import "../../shared-utils/three/earcut3D.js";
163
- import "earcut";
164
- import "../../shared-utils/three/getNormal.js";
165
- import "../../PanoMeasurePlugin/utils/isIntersecting.js";
166
- import "../../Sculpt/utils/three/ColoredMesh.js";
167
- import "../../shared-utils/three/geometryUtil.js";
168
- import "../../Sculpt/utils/Modules/Cursor.js";
169
- import "../../Object3DHelperPlugin/Controller.js";
170
- import "../../base/BasePlugin.js";
171
- import "../../shared-utils/url/absoluteUrl.js";
172
- import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
173
- import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
174
- import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
175
- import "../../shared-utils/three/boundingBox.js";
176
- import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
177
- import "../../shared-utils/Object3DHelper/utils/direction.js";
178
- import "../../shared-utils/Object3DHelper/Constants/color.js";
179
- import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
180
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
181
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
182
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
183
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
184
- import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
185
- import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
186
- import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
187
- import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
188
- import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
189
- import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
190
- import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
191
- import "../../shared-utils/Object3DHelper/Base/BaseController.js";
192
- import "../../shared-utils/threex/domevents/index.js";
193
- import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
194
- import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
195
- import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
196
- import "../../shared-utils/Object3DHelper/index.js";
197
- import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
198
- import "../../shared-utils/math/rad2Deg.js";
199
- import "../../shared-utils/math/deg2Rad.js";
200
- import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
201
- import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
202
- import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
203
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
204
- import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
205
- import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
206
- import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
207
- import "../../shared-utils/five/FiveDomEvents.js";
208
- import "../../shared-utils/five/calculateThreeMouse.js";
209
155
  import "../utils/noTypecheck.js";
210
156
  import "../Components/Tag/AudioTag/index.js";
211
157
  import "../Components/Tag/AudioTag/AudioTag.js";
@@ -231,6 +177,7 @@ import "../../shared-utils/three/loadVideoTexture.js";
231
177
  import "../../shared-utils/device.js";
232
178
  import "../../shared-utils/three/getPositionsByObjectFit.js";
233
179
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
180
+ import "../../shared-utils/three/getNormal.js";
234
181
  import "./Tag/BaseTag.js";
235
182
  import "../utils/tag/calculateTagConfig.js";
236
183
  import "../../shared-utils/typescript/entries.js";
@@ -252,24 +199,33 @@ import "../utils/normalPositionToPositions.js";
252
199
  import "../../vendor/svelte/store/index.js";
253
200
  import "../../CSS3DRenderPlugin/index.js";
254
201
  import "../../CSS3DRenderPlugin/Controller.js";
202
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
203
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
204
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
205
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
206
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
207
+ import "../../shared-utils/url/absoluteUrl.js";
208
+ import "../../shared-utils/five/FiveDomEvents.js";
209
+ import "../../shared-utils/five/calculateThreeMouse.js";
210
+ import "../../base/BasePlugin.js";
255
211
  import "../utils/addDebugPoints.js";
256
212
  import "../Components/TagItem.js";
257
213
  import "../Components/Common/TagPoint.js";
258
- const C = "Dnalogel-PanoTagPlugin", nr = (p) => `${C}--${p}`;
259
- class ar extends B {
214
+ const C = "Dnalogel-PanoTagPlugin", uo = (d) => `${C}--${d}`;
215
+ class vo extends B {
260
216
  constructor(e, t) {
261
217
  super(e);
262
218
  /** state */
263
- d(this, "state", { enabled: !0, visible: !0 });
219
+ p(this, "state", { enabled: !0, visible: !0 });
264
220
  /** debug */
265
- d(this, "debug");
266
- d(this, "debugUtil", new V(this));
221
+ p(this, "debug");
222
+ p(this, "debugUtil", new V(this));
267
223
  /** 更改 tag 模型 */
268
- d(this, "changeTagModel", (e, t) => l(this, null, function* () {
224
+ p(this, "changeTagModel", (e, t) => l(this, null, function* () {
269
225
  var i;
270
226
  e.data = f({}, e.data, t), yield (i = e.loadModel) == null ? void 0 : i.call(e);
271
227
  }));
272
- d(this, "handleFiveModeChange", (e) => {
228
+ p(this, "handleFiveModeChange", (e) => {
273
229
  const t = () => {
274
230
  this.tags.forEach((i) => {
275
231
  i.state.visible = !1, i.applyVisible(), this.five.ready().then(() => {
@@ -279,7 +235,7 @@ class ar extends B {
279
235
  };
280
236
  this.tags.length < 500 ? t() : this.five.ready().then(() => t());
281
237
  });
282
- d(this, "handleFiveWantsMoveToPano", (e) => {
238
+ p(this, "handleFiveWantsMoveToPano", (e) => {
283
239
  if (this.tags.length > 500) {
284
240
  this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] });
285
241
  return;
@@ -290,18 +246,18 @@ class ar extends B {
290
246
  typeof o.visibleConfig == "object" && t.temporaryState && (o.visibleConfig.keep ? t.temporaryState.visible = o.visibleConfig.keep === "visible" : t.temporaryState.visible = !!o.visibleConfig.alwaysShowWhenMovePano);
291
247
  }), this.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.tags.forEach((t) => t.applyVisible());
292
248
  });
293
- d(this, "clickhandler", (e) => {
249
+ p(this, "clickhandler", (e) => {
294
250
  e.tag.onClick(e);
295
251
  });
296
- d(this, "handleFiveCameraUpdate", () => {
252
+ p(this, "handleFiveCameraUpdate", () => {
297
253
  this.filterPointTag.forEach((e) => e.updateScreenPosition());
298
254
  });
299
- d(this, "handleFiveCameraFovUpdate", () => {
255
+ p(this, "handleFiveCameraFovUpdate", () => {
300
256
  this.handleFiveCameraUpdate(), this.five.off("render.prepare", this.handleFiveCameraUpdate), this.five.on("render.prepare", this.handleFiveCameraUpdate), setTimeout(() => {
301
257
  this.five.off("render.prepare", this.handleFiveCameraUpdate);
302
258
  }, 1e3);
303
259
  });
304
- d(this, "handleFivePanoArrived", () => l(this, null, function* () {
260
+ p(this, "handleFivePanoArrived", () => l(this, null, function* () {
305
261
  this.tags.forEach((e) => {
306
262
  e.state.visible = !1, e.temporaryState = c(m({}, e.temporaryState), { visible: !0 }), e.applyVisible(), e.updateVisible();
307
263
  }), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.filter(k).filter((e) => {
@@ -322,13 +278,13 @@ class ar extends B {
322
278
  });
323
279
  }));
324
280
  /** 楼层切换时,需要更新标签可见性 */
325
- d(this, "handleFiveModelShownFloorChange", () => {
281
+ p(this, "handleFiveModelShownFloorChange", () => {
326
282
  this.tags.forEach((e) => e.updateVisible());
327
283
  });
328
- d(this, "onFiveEveryReady", () => {
284
+ p(this, "onFiveEveryReady", () => {
329
285
  this.setUnfoldedByCamera(), O(this.five.getCurrentState().mode) && this.tags.forEach((e) => e.updateVisible());
330
286
  });
331
- d(this, "render", () => {
287
+ p(this, "render", () => {
332
288
  this.renderQueue.forEach((e, t) => {
333
289
  const { keys: i } = e;
334
290
  if (t === "TagContainerSvelte") {
@@ -672,7 +628,7 @@ class ar extends B {
672
628
  }
673
629
  }
674
630
  export {
675
- ar as PanoTagPluginController,
676
- ar as default,
677
- nr as pluginFlag
631
+ vo as PanoTagPluginController,
632
+ vo as default,
633
+ uo as pluginFlag
678
634
  };