@realsee/dnalogel 2.3.5-dev.3 → 2.3.5-dev.5

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 (372) hide show
  1. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  2. package/dist/PanoTagPlugin/controller/index.d.ts +2 -2
  3. package/dist/PanoTagPlugin/typings/controller.d.ts +1 -0
  4. package/dist/index.cjs.js +13 -13
  5. package/dist/index.js +1325 -1326
  6. package/dist/index.umd.js +14 -14
  7. package/docs/assets/search.js +1 -1
  8. package/docs/classes/CSS3DRender.html +31 -31
  9. package/docs/classes/CruisePluginController.html +24 -24
  10. package/docs/classes/Magnifier.html +16 -16
  11. package/docs/classes/ModelRoomLabelController.html +11 -11
  12. package/docs/classes/Object3DHelperController.html +24 -24
  13. package/docs/classes/PaintBrush.html +15 -15
  14. package/docs/classes/PanoTagPluginController.html +41 -41
  15. package/docs/classes/Util.BetterTween.html +8 -8
  16. package/docs/classes/Util.FivePointSelector.html +12 -12
  17. package/docs/classes/Util.Interval.html +12 -12
  18. package/docs/classes/Util.Magnifier.html +17 -17
  19. package/docs/classes/Util.PointDomHelper.html +11 -11
  20. package/docs/classes/Util.PointHelper.html +11 -11
  21. package/docs/classes/Util.Rectangle.html +13 -13
  22. package/docs/enums/CameraMovementEffect.html +7 -7
  23. package/docs/enums/ContentType.html +16 -16
  24. package/docs/enums/DIRECTION.html +9 -9
  25. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  26. package/docs/enums/DimensionType.html +7 -7
  27. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  28. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  29. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  30. package/docs/enums/PointType.html +7 -7
  31. package/docs/enums/Rotation.html +8 -8
  32. package/docs/functions/CSS3DRenderPlugin.html +5 -4
  33. package/docs/functions/CameraMovementPlugin.html +5 -4
  34. package/docs/functions/CruisePlugin.html +5 -4
  35. package/docs/functions/GuideLinePlugin.html +6 -5
  36. package/docs/functions/ItemLabelPlugin.html +5 -4
  37. package/docs/functions/MapviewFloorplanPlugin.html +5 -4
  38. package/docs/functions/ModelChassisCompassPlugin.html +5 -4
  39. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
  40. package/docs/functions/ModelFloorplanPlugin.html +5 -4
  41. package/docs/functions/ModelItemLabelPlugin.html +5 -4
  42. package/docs/functions/ModelRoomLabelPlugin.html +5 -4
  43. package/docs/functions/ModelTVVideoPlugin.html +5 -4
  44. package/docs/functions/ModelViewPlugin.html +5 -4
  45. package/docs/functions/Object3DHelperPlugin.html +5 -4
  46. package/docs/functions/PanoCompassPlugin.html +5 -4
  47. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
  48. package/docs/functions/PanoDoorLabelPlugin.html +5 -4
  49. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
  50. package/docs/functions/PanoMeasurePlugin.html +5 -4
  51. package/docs/functions/PanoRulerPlugin.html +5 -4
  52. package/docs/functions/PanoRulerProPlugin.html +5 -4
  53. package/docs/functions/PanoSpatialTagPlugin.html +5 -4
  54. package/docs/functions/PanoTagPlugin.html +5 -4
  55. package/docs/functions/TopviewFloorplanPlugin.html +5 -4
  56. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  57. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  58. package/docs/functions/Util.getFrameTime.html +5 -5
  59. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  60. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  61. package/docs/functions/Util.isNil.html +5 -5
  62. package/docs/functions/Util.nextFrame.html +5 -5
  63. package/docs/functions/Util.notNil.html +5 -5
  64. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  65. package/docs/functions/Util.tweenProgress.html +5 -5
  66. package/docs/functions/pluginFlag.html +6 -5
  67. package/docs/index.html +5 -4
  68. package/docs/interfaces/AddTagConfig.html +6 -6
  69. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  70. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  71. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  72. package/docs/interfaces/EventMap.html +15 -15
  73. package/docs/interfaces/FloorplanBounding.html +8 -8
  74. package/docs/interfaces/FloorplanData.html +10 -10
  75. package/docs/interfaces/FloorplanEntrance.html +11 -11
  76. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  77. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  78. package/docs/interfaces/FloorplanFloorData.html +9 -9
  79. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  80. package/docs/interfaces/FloorplanObserver.html +9 -9
  81. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  82. package/docs/interfaces/FloorplanPosition.html +7 -7
  83. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  84. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  85. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  86. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  87. package/docs/interfaces/FloorplanServerData.html +7 -7
  88. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  89. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  90. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  91. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  92. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  93. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  94. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  95. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  96. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  97. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  98. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  99. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  100. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  101. package/docs/interfaces/LineJson.html +7 -7
  102. package/docs/interfaces/MinMax.html +7 -7
  103. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  104. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  105. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  106. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  107. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  108. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  109. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  110. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  111. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  112. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  113. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  114. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  115. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  116. package/docs/interfaces/Object3DHelperState.html +8 -8
  117. package/docs/interfaces/OpenParameter.html +7 -7
  118. package/docs/interfaces/PaintBrushAction.html +12 -12
  119. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  120. package/docs/interfaces/PaintBrushState.html +10 -10
  121. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  122. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
  123. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  124. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  125. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  126. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  127. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  128. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  129. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  130. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  131. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
  132. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
  133. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  134. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  135. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  136. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  137. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  138. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  139. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  140. package/docs/interfaces/Point.html +8 -8
  141. package/docs/interfaces/PointJson.html +8 -8
  142. package/docs/interfaces/Room.html +9 -9
  143. package/docs/interfaces/RoomInfo.html +7 -7
  144. package/docs/interfaces/RoomLabel.html +14 -14
  145. package/docs/interfaces/RoomRules.html +6 -5
  146. package/docs/interfaces/Rooms.html +6 -5
  147. package/docs/interfaces/Scissor.html +9 -9
  148. package/docs/interfaces/State.html +8 -8
  149. package/docs/interfaces/TagCache.html +10 -10
  150. package/docs/interfaces/TagConfig.html +10 -10
  151. package/docs/interfaces/TagIconUrl.html +9 -9
  152. package/docs/interfaces/Tags.html +9 -9
  153. package/docs/interfaces/TemporaryState.html +6 -6
  154. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  155. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  156. package/docs/modules/Util.html +5 -5
  157. package/docs/modules.html +6 -4
  158. package/docs/types/ArrayPosition.html +6 -5
  159. package/docs/types/CSS3DRenderExportType.html +6 -5
  160. package/docs/types/CSS3DRenderPluginExportType.html +6 -5
  161. package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
  162. package/docs/types/Color.html +6 -5
  163. package/docs/types/ContentTypeConfigKey.html +6 -5
  164. package/docs/types/ContentTypeMap.html +6 -5
  165. package/docs/types/Create3DDomContainerReturnType.html +6 -5
  166. package/docs/types/Create3DElementReturnType.html +6 -5
  167. package/docs/types/CruisePluginExportType.html +6 -5
  168. package/docs/types/Direction-1.html +6 -5
  169. package/docs/types/Direction4.html +6 -5
  170. package/docs/types/FloorplanRuleLabels.html +6 -5
  171. package/docs/types/FloorplanServerRuleLabels.html +6 -5
  172. package/docs/types/GuideLinePluginExportType.html +6 -5
  173. package/docs/types/HelperEventMap.html +6 -5
  174. package/docs/types/LoadTagConfig.html +248 -0
  175. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
  176. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
  177. package/docs/types/MediaData.html +6 -5
  178. package/docs/types/MediaStore.html +6 -5
  179. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
  180. package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
  181. package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
  182. package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
  183. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
  184. package/docs/types/MoveArgs.html +6 -5
  185. package/docs/types/MoveOpts.html +6 -5
  186. package/docs/types/Object3DHelperEventMap.html +6 -5
  187. package/docs/types/ObjectFit.html +6 -5
  188. package/docs/types/PaintBrushEventMap.html +6 -5
  189. package/docs/types/PanoCompassPluginData.html +6 -5
  190. package/docs/types/PanoCompassPluginExportType.html +6 -5
  191. package/docs/types/PanoCompassPluginParameterType.html +6 -5
  192. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
  193. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
  194. package/docs/types/PanoIndex.html +6 -5
  195. package/docs/types/PanoMeasurePluginEvent.html +6 -5
  196. package/docs/types/PanoMeasureReturnType.html +6 -5
  197. package/docs/types/PanoSpatialTagPluginId.html +6 -5
  198. package/docs/types/PanoTagPluginExportInterface.html +6 -5
  199. package/docs/types/PanoTagPluginParamsInterface.html +6 -5
  200. package/docs/types/PlaneTag.html +6 -5
  201. package/docs/types/PlaneTagElement.html +6 -5
  202. package/docs/types/Point2DElement.html +6 -5
  203. package/docs/types/Point2DTag.html +6 -5
  204. package/docs/types/Point3DElement.html +6 -5
  205. package/docs/types/Point3DTag.html +6 -5
  206. package/docs/types/PointTag.html +6 -5
  207. package/docs/types/PointTagElement.html +6 -5
  208. package/docs/types/Position.html +6 -5
  209. package/docs/types/RotateArgs.html +6 -5
  210. package/docs/types/RotateOpts.html +6 -5
  211. package/docs/types/RuleLabelsKey.html +6 -5
  212. package/docs/types/RuleLabelsValue.html +6 -5
  213. package/docs/types/StickType.html +6 -5
  214. package/docs/types/Tag.html +6 -5
  215. package/docs/types/Tag2D.html +6 -5
  216. package/docs/types/Tag3D.html +6 -5
  217. package/docs/types/TagContentType.html +6 -5
  218. package/docs/types/TagDimensionType.html +6 -5
  219. package/docs/types/TagElement.html +6 -5
  220. package/docs/types/TagEvents.html +6 -5
  221. package/docs/types/TagHooks.html +6 -5
  222. package/docs/types/TagIconSize.html +6 -5
  223. package/docs/types/TagId.html +6 -5
  224. package/docs/types/TagPointType.html +6 -5
  225. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
  226. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
  227. package/docs/types/WorkCode.html +6 -5
  228. package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
  229. package/docs/variables/PLUGIN.html +6 -5
  230. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
  231. package/docs/variables/ROOM_TYPE_MAP.html +6 -5
  232. package/docs/variables/VERSION.html +6 -5
  233. package/docs/variables/itemLabelPluginServerParams.html +6 -5
  234. package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
  235. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
  236. package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -1
  237. package/libs/CSS3DRenderPlugin/Controller.js +2 -2
  238. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +1 -1
  239. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +1 -1
  240. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +4 -4
  241. package/libs/CSS3DRenderPlugin/utils/index.js +12 -0
  242. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +2 -1
  243. package/libs/CSS3DRenderPlugin/utils/random.js +6 -1
  244. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +3 -2
  245. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +2 -1
  246. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +6 -4
  247. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +1 -1
  248. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +6 -6
  249. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +13 -13
  250. package/libs/CruisePlugin/Controller.js +1 -1
  251. package/libs/CruisePlugin/utils/coordinatesAngle.js +3 -2
  252. package/libs/CruisePlugin/utils/linerValue.js +4 -4
  253. package/libs/GuideLinePlugin/Controller.js +1 -1
  254. package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -1
  255. package/libs/GuideLinePlugin/utils/getPoint.d.ts +3 -0
  256. package/libs/GuideLinePlugin/utils/getPoint.js +18 -0
  257. package/libs/Object3DHelperPlugin/Controller.js +2 -2
  258. package/libs/PanoMeasurePlugin/Controller/BaseController.js +25 -15
  259. package/libs/PanoMeasurePlugin/Controller/EditController.js +21 -9
  260. package/libs/PanoMeasurePlugin/Controller/MixedController.js +23 -10
  261. package/libs/PanoMeasurePlugin/Controller/ViewController.js +25 -14
  262. package/libs/PanoMeasurePlugin/Controller/WatchController.js +44 -29
  263. package/libs/PanoMeasurePlugin/Controller/index.js +58 -21
  264. package/libs/PanoMeasurePlugin/Model/index.js +47 -40
  265. package/libs/PanoMeasurePlugin/Model/line.js +15 -11
  266. package/libs/PanoMeasurePlugin/Model/point.js +5 -5
  267. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +1 -1
  268. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
  269. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
  270. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +4 -4
  271. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
  272. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +30 -30
  273. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +2 -2
  274. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +2 -2
  275. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -3
  276. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
  277. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +24 -16
  278. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +4 -3
  279. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +8 -5
  280. package/libs/PanoMeasurePlugin/index.js +2 -2
  281. package/libs/PanoMeasurePlugin/typings/data.js +1 -0
  282. package/libs/PanoMeasurePlugin/typings/event.type.js +1 -0
  283. package/libs/PanoMeasurePlugin/typings/index.js +1 -0
  284. package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
  285. package/libs/PanoMeasurePlugin/typings/utils.type.js +1 -0
  286. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
  287. package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
  288. package/libs/PanoMeasurePlugin/utils/clearGroup.js +6 -0
  289. package/libs/PanoMeasurePlugin/utils/constants.js +15 -16
  290. package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -1
  291. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +7 -6
  292. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
  293. package/libs/PanoMeasurePlugin/utils/line.js +1 -0
  294. package/libs/PanoMeasurePlugin/utils/math.js +2 -1
  295. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
  296. package/libs/PanoSpatialTagPlugin/Components/origins.js +3 -2
  297. package/libs/PanoSpatialTagPlugin/Components/tag.js +3 -2
  298. package/libs/PanoSpatialTagPlugin/Plugin.js +2 -2
  299. package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
  300. package/libs/PanoTagPlugin/Components/Common/Audio.js +24 -24
  301. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +20 -18
  302. package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +31 -29
  303. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +19 -19
  304. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +25 -24
  305. package/libs/PanoTagPlugin/Components/Common/Media.js +47 -39
  306. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
  307. package/libs/PanoTagPlugin/Components/Common/Shadow.js +10 -9
  308. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +46 -43
  309. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +37 -27
  310. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +25 -25
  311. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +26 -26
  312. package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
  313. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +22 -18
  314. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +54 -43
  315. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +83 -61
  316. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
  317. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +103 -81
  318. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +17 -13
  319. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +5 -3
  320. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +74 -56
  321. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +27 -23
  322. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +51 -39
  323. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +69 -52
  324. package/libs/PanoTagPlugin/Components/Tag/index.js +119 -79
  325. package/libs/PanoTagPlugin/Components/TagContainer.js +132 -81
  326. package/libs/PanoTagPlugin/Components/TagItem.js +110 -63
  327. package/libs/PanoTagPlugin/controller/TagCacheController.js +3 -2
  328. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  329. package/libs/PanoTagPlugin/controller/TagComputer.js +40 -34
  330. package/libs/PanoTagPlugin/controller/index.d.ts +2 -2
  331. package/libs/PanoTagPlugin/controller/index.js +158 -89
  332. package/libs/PanoTagPlugin/index.js +2 -2
  333. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
  334. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
  335. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
  336. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
  337. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
  338. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
  339. package/libs/PanoTagPlugin/mocks/v1/mock1.js +122 -0
  340. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
  341. package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
  342. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
  343. package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
  344. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
  345. package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
  346. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
  347. package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
  348. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
  349. package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
  350. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
  351. package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
  352. package/libs/PanoTagPlugin/mocks/v2/mock1.d.ts +128 -0
  353. package/libs/PanoTagPlugin/mocks/v2/mock1.js +114 -0
  354. package/libs/PanoTagPlugin/typings/controller.d.ts +1 -0
  355. package/libs/PanoTagPlugin/typings/index.js +7 -1
  356. package/libs/PanoTagPlugin/typings/tag/Tag.js +4 -1
  357. package/libs/PanoTagPlugin/utils/constants.js +2 -1
  358. package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
  359. package/libs/PanoTagPlugin/utils/getImageInfo.js +16 -15
  360. package/libs/PanoTagPlugin/utils/index.js +35 -0
  361. package/libs/PanoTagPlugin/utils/px2rem.js +3 -3
  362. package/libs/PanoTagPlugin/utils/search.js +27 -9
  363. package/libs/PanoTagPlugin/utils/tag/format.js +4 -4
  364. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +22 -6
  365. package/libs/PanoTagPlugin/utils/timeToString.js +4 -4
  366. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
  367. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +10 -6
  368. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
  369. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +83 -74
  370. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  371. package/libs/index.js +7 -7
  372. package/package.json +1 -1
@@ -2,31 +2,37 @@ var U = Object.defineProperty, j = Object.defineProperties;
2
2
  var w = Object.getOwnPropertyDescriptors;
3
3
  var k = Object.getOwnPropertySymbols;
4
4
  var B = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
5
- var P = (u, c, e) => c in u ? U(u, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[c] = e, x = (u, c) => {
5
+ var T = (u, c, e) => c in u ? U(u, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[c] = e, x = (u, c) => {
6
6
  for (var e in c || (c = {}))
7
- B.call(c, e) && P(u, e, c[e]);
7
+ B.call(c, e) && T(u, e, c[e]);
8
8
  if (k)
9
9
  for (var e of k(c))
10
- A.call(c, e) && P(u, e, c[e]);
10
+ A.call(c, e) && T(u, e, c[e]);
11
11
  return u;
12
12
  }, D = (u, c) => j(u, w(c));
13
- var y = (u, c, e) => (P(u, typeof c != "symbol" ? c + "" : c, e), e);
14
- import C from "object-assign-deep";
13
+ var y = (u, c, e) => (T(u, typeof c != "symbol" ? c + "" : c, e), e);
14
+ import P from "object-assign-deep";
15
15
  import * as I from "three";
16
16
  import { DefaultConfig as E } from "../tag.config.js";
17
- import { is3DTag as V, isPointTag as R } from "../utils/tag/tagCheck.js";
17
+ import { is3DTag as R, isPointTag as V } from "../utils/tag/tagCheck.js";
18
18
  import { arrayPositionToVector3 as M, anyPositionToVector3 as S } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
19
19
  import { planeNormal as $ } from "../utils/planeNormal.js";
20
- import { tagPosition as T } from "../utils/tagPosition.js";
20
+ import { tagPosition as C } from "../utils/tagPosition.js";
21
21
  import { checkRange as v } from "../utils/checkRange.js";
22
22
  import { TagCacheController as z } from "./TagCacheController.js";
23
- class q extends z {
23
+ import "../../CSS3DRenderPlugin/utils/centerPoint.js";
24
+ import "../../base/BasePlugin.js";
25
+ import "../../shared-utils/Subscribe.js";
26
+ class Y extends z {
24
27
  constructor(e) {
25
28
  super(e);
26
29
  y(this, "tags", []);
27
30
  y(this, "config", E);
28
31
  y(this, "raycaster", new I.Raycaster());
29
32
  }
33
+ get isPanorama() {
34
+ return this.five.currentMode === "Panorama";
35
+ }
30
36
  getTagById(e) {
31
37
  const t = this.tags.find((i) => i.id === e);
32
38
  if (!t) {
@@ -36,13 +42,13 @@ class q extends z {
36
42
  return t;
37
43
  }
38
44
  changeConfig(e, t = !0) {
39
- t ? this.config = C({}, this.config, e) : this.config = e, this.clearCache();
45
+ t ? this.config = P({}, this.config, e) : this.config = e, this.clearCache();
40
46
  }
41
47
  changeGlobalConfig(e, t = !0) {
42
- t ? this.config.globalConfig = C({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.clearCache();
48
+ t ? this.config.globalConfig = P({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.clearCache();
43
49
  }
44
50
  changeContentTypeConfig(e, t, i = !0) {
45
- this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = C({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.clearCache();
51
+ this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = P({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.clearCache();
46
52
  }
47
53
  getVisibleByPanoIndex(e, t) {
48
54
  var n;
@@ -51,7 +57,7 @@ class q extends z {
51
57
  return i.visible;
52
58
  {
53
59
  const l = (() => {
54
- var d, p, r;
60
+ var d, p, f;
55
61
  const o = (d = this.getTagConfig(e).visibleConfig) != null ? d : {}, a = this.getDistance(e);
56
62
  if (typeof o == "function")
57
63
  return o(this.five, { tag: e, distance: a });
@@ -61,14 +67,14 @@ class q extends z {
61
67
  return !0;
62
68
  if (o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && s !== void 0 && (Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(s) || o.visiblePanoIndex === "current" && s !== ((p = e.fiveState) == null ? void 0 : p.panoIndex)) || o.visibleDistance !== void 0 && o.visibleDistance !== "unLimited" && v(a, o.visibleDistance) === !1)
63
69
  return !1;
64
- if (o.intersectRaycaster !== !1 && o.intersectRaycaster) {
70
+ if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
65
71
  if (s === void 0)
66
72
  return !1;
67
- const f = (r = this.five.work.observers[s]) == null ? void 0 : r.position;
68
- if (f === void 0)
69
- throw new Error(`getVisible(): observerPosition is ${f}`);
70
- const h = T(e.position).sub(f).normalize();
71
- this.raycaster.set(f, h);
73
+ const r = (f = this.five.work.observers[s]) == null ? void 0 : f.position;
74
+ if (r === void 0)
75
+ throw new Error(`getVisible(): observerPosition is ${r}`);
76
+ const h = C(e.position).sub(r).normalize();
77
+ this.raycaster.set(r, h);
72
78
  const [g] = this.five.model.intersectRaycaster(this.raycaster), b = (() => {
73
79
  var m;
74
80
  return typeof o.intersectRaycaster == "object" && (m = o.intersectRaycaster.distanceAccuracy) != null ? m : 0.01;
@@ -76,7 +82,7 @@ class q extends z {
76
82
  if (g && g.distance + b < a)
77
83
  return !1;
78
84
  }
79
- return !(o.angleRange && V(e) && v(this.getAngle(e), o.angleRange) === !1);
85
+ return !(o.angleRange && R(e) && v(this.getAngle(e), o.angleRange) === !1);
80
86
  })();
81
87
  return i.visible = l, i.visible;
82
88
  }
@@ -126,19 +132,19 @@ class q extends z {
126
132
  return !1;
127
133
  }
128
134
  if (n.autoUnfold.strategy === "MinimumDistance") {
129
- const d = this.filterPointTag().filter((r) => this.getVisibleByPanoIndex(r)).filter((r) => {
130
- const f = this.getTagProject(r);
131
- if (!f)
135
+ const d = this.filterPointTag().filter((f) => this.getVisibleByPanoIndex(f)).filter((f) => {
136
+ const r = this.getTagProject(f);
137
+ if (!r)
132
138
  return !1;
133
- const { x: h, y: g, z: b } = f;
139
+ const { x: h, y: g, z: b } = r;
134
140
  return !(Math.abs(b) > 1 || Math.abs(h) > 1 || Math.abs(g) > 1);
135
- }).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: f }) => {
141
+ }).map((f) => ({ tag: f, id: f.id, tagConfig: this.getTagConfig(f).unfoldedConfig })).filter(({ tag: f, tagConfig: r }) => {
136
142
  var h, g;
137
- return !(typeof f != "object" || f.keep || f.autoUnfold === !1 || ((h = f.autoUnfold) == null ? void 0 : h.enable) === !1 || ((g = f.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance");
138
- }).map((r) => D(x({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: f }) => {
143
+ return !(typeof r != "object" || r.keep || r.autoUnfold === !1 || ((h = r.autoUnfold) == null ? void 0 : h.enable) === !1 || ((g = r.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance");
144
+ }).map((f) => D(x({}, f), { distance: this.getDistance(f.tag) })).filter(({ distance: f, tagConfig: r }) => {
139
145
  var h, g;
140
- return !(r === void 0 || typeof f != "object" || f.autoUnfold === !1 || ((h = f.autoUnfold) == null ? void 0 : h.enable) === !1 || ((g = f.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance" || f.autoUnfold.distance && v(r, f.autoUnfold.distance) === !1);
141
- }).sort((r, f) => r.distance - f.distance).findIndex((r) => r.id === e.id);
146
+ return !(f === void 0 || typeof r != "object" || r.autoUnfold === !1 || ((h = r.autoUnfold) == null ? void 0 : h.enable) === !1 || ((g = r.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance" || r.autoUnfold.distance && v(f, r.autoUnfold.distance) === !1);
147
+ }).sort((f, r) => f.distance - r.distance).findIndex((f) => f.id === e.id);
142
148
  if (d === -1 || d <= ((l = n.autoUnfold.maxNumber) != null ? l : 1) - 1 === !1)
143
149
  return !1;
144
150
  }
@@ -158,7 +164,7 @@ class q extends z {
158
164
  const a = (o = (l = this.five.work) == null ? void 0 : l.observers[i]) == null ? void 0 : o.position;
159
165
  if (a === void 0)
160
166
  throw new Error(`getDistance(): observerPosition is ${a}`);
161
- const d = (() => R(e) ? M(e == null ? void 0 : e.position) : T(e.position))(), p = a.distanceTo(d);
167
+ const d = (() => V(e) ? M(e == null ? void 0 : e.position) : C(e.position))(), p = a.distanceTo(d);
162
168
  return s.distance = p, p;
163
169
  }
164
170
  }
@@ -177,8 +183,8 @@ class q extends z {
177
183
  const d = (() => e.stickType === "3DPoint" ? S(e.normal) : $(e.position))();
178
184
  if (!d)
179
185
  return;
180
- const p = new I.Vector3().copy(a).sub(T(e.position)), r = d.angleTo(p) * 180 / Math.PI;
181
- return s.angle = r, s.angle;
186
+ const p = new I.Vector3().copy(a).sub(C(e.position)), f = d.angleTo(p) * 180 / Math.PI;
187
+ return s.angle = f, s.angle;
182
188
  }
183
189
  }
184
190
  getTagConfig(e) {
@@ -195,7 +201,7 @@ class q extends z {
195
201
  const [a = "Any", d = "Any"] = o || [];
196
202
  (e.stickType === a || a === "Any") && (e.contentType === d || d === "Any") && (t[l] = this.config.contentTypeConfig[l]);
197
203
  });
198
- const i = C({}, this.config.globalConfig, ...Object.values(t), e.config);
204
+ const i = P({}, this.config.globalConfig, ...Object.values(t), e.config);
199
205
  return typeof i.unfoldedConfig == "object" && (i.unfoldedConfig.disableFold && (i.unfoldedConfig = { keep: "unfolded" }), i.unfoldedConfig.disableUnfold && (i.unfoldedConfig = { keep: "folded" }), i.unfoldedConfig.keep && (i.unfoldedConfig = { keep: i.unfoldedConfig.keep })), typeof i.visibleConfig == "object" && i.visibleConfig.keep && (i.visibleConfig = { keep: i.visibleConfig.keep }), i;
200
206
  }
201
207
  can(e, t) {
@@ -256,7 +262,7 @@ class q extends z {
256
262
  getTagProject(e) {
257
263
  if (!this.getVisibleByPanoIndex(e))
258
264
  return;
259
- const i = T(e.position), { x: s, y: n, z: l } = i.project(this.five.camera);
265
+ const i = C(e.position), { x: s, y: n, z: l } = i.project(this.five.camera);
260
266
  if (!(l > 1))
261
267
  return { x: s, y: n, z: l };
262
268
  }
@@ -277,5 +283,5 @@ class q extends z {
277
283
  }
278
284
  }
279
285
  export {
280
- q as TagComputer
286
+ Y as TagComputer
281
287
  };
@@ -1,4 +1,4 @@
1
- import type { Tag, PartialDeep, TagId, Tags, State, AddTagConfig } from '../typings';
1
+ import type { Tag, PartialDeep, TagId, Tags, State, AddTagConfig, LoadTagConfig } from '../typings';
2
2
  import type { TagContentType } from '..';
3
3
  import type { ArrayPosition } from '../typings';
4
4
  import { Five } from '@realsee/five';
@@ -35,7 +35,7 @@ declare class PanoTagPluginController extends TagComputer {
35
35
  /**
36
36
  * @description: 加载数据
37
37
  */
38
- load(data: Tags, config?: AddTagConfig): void;
38
+ load(data: Tags, config?: LoadTagConfig): void;
39
39
  /**
40
40
  * @description: 添加标签
41
41
  */
@@ -1,39 +1,39 @@
1
- var A = Object.defineProperty, y = Object.defineProperties;
1
+ var S = Object.defineProperty, y = Object.defineProperties;
2
2
  var P = Object.getOwnPropertyDescriptors;
3
3
  var T = Object.getOwnPropertySymbols;
4
4
  var w = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
5
- var u = (h, a, e) => a in h ? A(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, f = (h, a) => {
5
+ var g = (h, a, e) => a in h ? S(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, p = (h, a) => {
6
6
  for (var e in a || (a = {}))
7
- w.call(a, e) && u(h, e, a[e]);
7
+ w.call(a, e) && g(h, e, a[e]);
8
8
  if (T)
9
9
  for (var e of T(a))
10
- E.call(a, e) && u(h, e, a[e]);
10
+ E.call(a, e) && g(h, e, a[e]);
11
11
  return h;
12
- }, c = (h, a) => y(h, P(a));
13
- var l = (h, a, e) => (u(h, typeof a != "symbol" ? a + "" : a, e), e);
14
- var g = (h, a, e) => new Promise((t, i) => {
15
- var s = (n) => {
12
+ }, m = (h, a) => y(h, P(a));
13
+ var d = (h, a, e) => (g(h, typeof a != "symbol" ? a + "" : a, e), e);
14
+ var f = (h, a, e) => new Promise((t, i) => {
15
+ var s = (r) => {
16
16
  try {
17
- r(e.next(n));
18
- } catch (d) {
19
- i(d);
17
+ n(e.next(r));
18
+ } catch (l) {
19
+ i(l);
20
20
  }
21
- }, o = (n) => {
21
+ }, o = (r) => {
22
22
  try {
23
- r(e.throw(n));
24
- } catch (d) {
25
- i(d);
23
+ n(e.throw(r));
24
+ } catch (l) {
25
+ i(l);
26
26
  }
27
- }, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
28
- r((e = e.apply(h, a)).next());
27
+ }, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
28
+ n((e = e.apply(h, a)).next());
29
29
  });
30
- import { Subscribe as k } from "@realsee/five";
31
- import { Quaternion as F } from "three";
32
- import v from "object-assign-deep";
30
+ import { Subscribe as F } from "@realsee/five";
31
+ import { Quaternion as k } from "three";
32
+ import u from "object-assign-deep";
33
33
  import { writable as R } from "../../vendor/svelte/store/index.js";
34
- import { TagContainer as U } from "../Components/TagContainer.js";
35
- import { Tag as L } from "../Components/Tag/index.js";
36
- import { arrayPositionToVector3 as p } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
34
+ import U from "../Components/TagContainer.js";
35
+ import L from "../Components/Tag/index.js";
36
+ import { arrayPositionToVector3 as c } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
37
37
  import { addDebugPoints as O } from "../utils/addDebugPoints.js";
38
38
  import { planeNormal as I } from "../utils/planeNormal.js";
39
39
  import { actionAfterFiveModelLoad as B } from "../utils/actionAfterFiveModelLoad.js";
@@ -43,64 +43,131 @@ import { throttle as V } from "../utils/throttle.js";
43
43
  import { resizeObserver as D } from "../utils/resizeObserver.js";
44
44
  import { TagComputer as z } from "./TagComputer.js";
45
45
  import { CSS3DRenderPlugin as N } from "../../CSS3DRenderPlugin/index.js";
46
- import { formatTag as W } from "../utils/tag/format.js";
47
- const S = "2.0.0-dev.8", m = `DnalogelPlugin-PanoTagPlugin@${S}`, $ = !1, re = (h) => `${m}--${h}`;
48
- class ae extends z {
46
+ import W from "../utils/tag/format.js";
47
+ import "../../vendor/svelte/internal/index.js";
48
+ import "../Components/TagItem.js";
49
+ import "../utils/noTypecheck.js";
50
+ import "../Components/Common/TagPoint.js";
51
+ import "../Components/Common/Shadow.js";
52
+ import "../../vendor/svelte/transition/index.js";
53
+ import "../../vendor/svelte/easing/index.js";
54
+ import "../Components/Common/Icon/Icon.js";
55
+ import "../utils/getImageInfo.js";
56
+ import "../utils/px2rem.js";
57
+ import "../Assets/Icon.js";
58
+ import "../Components/Tag/TextTag/index.js";
59
+ import "../Components/Tag/TextTag/TextTag.js";
60
+ import "../Components/Common/Line/Straight.js";
61
+ import "../../shared-utils/uuid.js";
62
+ import "../Components/Common/Text/FlyMText.js";
63
+ import "../Components/Common/Text/FlyText.js";
64
+ import "animejs";
65
+ import "../../shared-utils/isNil.js";
66
+ import "../utils/search.js";
67
+ import "../utils/constants.js";
68
+ import "../Components/Common/Arrow.js";
69
+ import "../utils/doUtil.js";
70
+ import "../Components/Tag/TextTag/TextPlaneTag.js";
71
+ import "../Components/Common/Text/MText.js";
72
+ import "../Components/Tag/ImageTextTag.js";
73
+ import "../Components/Common/Line/Polyline.js";
74
+ import "../Components/Common/Media.js";
75
+ import "../../vendor/swiper/svelte/swiper.js";
76
+ import "swiper";
77
+ import "../../vendor/swiper/components-shared/get-params.js";
78
+ import "../../vendor/swiper/components-shared/utils.js";
79
+ import "../../vendor/swiper/components-shared/params-list.js";
80
+ import "../../vendor/swiper/components-shared/mount-swiper.js";
81
+ import "../../vendor/swiper/components-shared/get-changed-params.js";
82
+ import "../../vendor/swiper/components-shared/update-swiper.js";
83
+ import "../../vendor/swiper/svelte/swiper-slide.js";
84
+ import "swiper/css";
85
+ import "swiper/css/autoplay";
86
+ import "../Components/Common/MediaItem.js";
87
+ import "../Components/Tag/MarketingTag.js";
88
+ import "../Components/Tag/AudioTag/index.js";
89
+ import "../Components/Tag/AudioTag/AudioTag.js";
90
+ import "../Components/Common/Audio.js";
91
+ import "../Components/Common/Icon/audioIcon.js";
92
+ import "../Components/Tag/AudioTag/AudioPlaneTag.js";
93
+ import "../utils/timeToString.js";
94
+ import "../utils/color.js";
95
+ import "../Components/Tag/MediaPlane.js";
96
+ import "../Components/Tag/LinkTag.js";
97
+ import "../Components/Tag/CustomTag.js";
98
+ import "../tag.config.js";
99
+ import "../utils/tag/tagCheck.js";
100
+ import "../utils/tagPosition.js";
101
+ import "../../CSS3DRenderPlugin/utils/centerPoint.js";
102
+ import "../utils/checkRange.js";
103
+ import "./TagCacheController.js";
104
+ import "../../base/BasePlugin.js";
105
+ import "../../shared-utils/Subscribe.js";
106
+ import "../../CSS3DRenderPlugin/Controller.js";
107
+ import "../../CSS3DRenderPlugin/CSS3DRender.js";
108
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
109
+ import "three/examples/jsm/renderers/CSS3DRenderer";
110
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
111
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
112
+ import "../../CSS3DRenderPlugin/utils/even.js";
113
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
114
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
115
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
116
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
117
+ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
118
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
119
+ const A = "2.0.0-dev.10", v = `DnalogelPlugin-PanoTagPlugin@${A}`, $ = !1, Pt = (h) => `${v}--${h}`;
120
+ class wt extends z {
49
121
  constructor(e, t) {
50
122
  super(e);
51
- l(this, "version", S);
52
- l(this, "state", { enabled: !0, visible: !0 });
53
- l(this, "params");
54
- l(this, "debug");
55
- l(this, "css3DRenderPlugin");
56
- l(this, "TagContainerSvelte");
57
- l(this, "temporaryState", { visible: !0 });
58
- l(this, "mediaStore", R({
123
+ d(this, "version", A);
124
+ d(this, "state", { enabled: !0, visible: !0 });
125
+ d(this, "params");
126
+ d(this, "debug");
127
+ d(this, "css3DRenderPlugin");
128
+ d(this, "TagContainerSvelte");
129
+ d(this, "temporaryState", { visible: !0 });
130
+ d(this, "mediaStore", R({
59
131
  currentMediaElement: null
60
132
  }));
61
- l(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
62
- l(this, "store", {
133
+ d(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
134
+ d(this, "store", {
63
135
  disposers: [],
64
136
  disposed: !1,
65
137
  resizeObserverDisposerAdding: !1,
66
138
  css3DRenderDisposer: /* @__PURE__ */ new Map()
67
139
  });
68
- l(this, "disposedErrorLog", () => {
69
- console.error(`${m} is disposed`);
140
+ d(this, "disposedErrorLog", () => {
141
+ console.error(`${v} is disposed`);
70
142
  });
71
- this.params = f({
72
- debug: !1,
73
- config: this.config
74
- }, t), this.debug = this.params.debug, this.config = this.params.config, Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this });
143
+ this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this });
75
144
  }
76
145
  load(e, t) {
77
146
  var i, s;
78
- this.clearTags(), console.log(m, " load:", { data: e }), this.config = v({}, this.config, {
147
+ this.clearTags(), console.log(v, " load:", { data: e }), this.config = u({}, this.config, {
79
148
  globalConfig: (i = e.globalConfig) != null ? i : {},
80
149
  contentTypeConfig: (s = e.contentTypeConfig) != null ? s : {}
81
150
  }), this.addTag(e.tagList, t), this.debug && O(this.five, this.tags);
82
151
  }
83
152
  addTag(e, t) {
84
153
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
85
- const r = this.getTagConfig(o);
86
- return c(f({}, o), {
87
- state: f({ visible: void 0, unfolded: $ }, r.initialState),
88
- hooks: new k(),
89
- clickable: r.clickable
154
+ const n = this.getTagConfig(o);
155
+ return m(p({}, o), {
156
+ state: p({ visible: void 0, unfolded: $ }, n.initialState),
157
+ hooks: new F(),
158
+ clickable: n.clickable
90
159
  });
91
160
  }).filter((o) => o.position);
92
161
  s.forEach(W), this.tags.push(...s), B(this.five, () => {
93
- var r, n, d;
94
- this.store.eventListenerDisposer && ((n = (r = this.store).eventListenerDisposer) == null || n.call(r)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener());
95
- const o = this.five.getCurrentState().mode;
96
- o && o !== "Panorama" && this.temporaryHide(), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (d = t == null ? void 0 : t.withAnimation) != null ? d : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags();
162
+ var o, n, r;
163
+ this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags();
97
164
  });
98
165
  }
99
166
  clearTags() {
100
167
  this.tags = [], this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
101
168
  }
102
169
  show(e) {
103
- return g(this, null, function* () {
170
+ return f(this, null, function* () {
104
171
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
105
172
  if (this.store.disposed)
106
173
  return this.disposedErrorLog();
@@ -108,7 +175,7 @@ class ae extends z {
108
175
  });
109
176
  }
110
177
  hide(e) {
111
- return g(this, null, function* () {
178
+ return f(this, null, function* () {
112
179
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
113
180
  if (this.store.disposed)
114
181
  return this.disposedErrorLog();
@@ -128,16 +195,16 @@ class ae extends z {
128
195
  this.setState({ enabled: !1 }, { userAction: t }), this.hooks.emit("disable", { userAction: t });
129
196
  }
130
197
  dispose() {
131
- var e, t, i, s, o, r;
132
- this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((n) => {
133
- var d;
134
- return (d = n.tag3DContentSvelte) == null ? void 0 : d.svelteApp.$destroy();
135
- }), this.tags = [], (t = this.store.disposers) == null || t.forEach((n) => n == null ? void 0 : n()), this.store.disposers = [], this.store.disposed = !0, (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (r = (o = this.store).resizeObserverDisposer) == null || r.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.clearCache(), this.hooks.emit("dispose");
198
+ var e, t, i, s, o, n;
199
+ this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((r) => {
200
+ var l;
201
+ return (l = r.tag3DContentSvelte) == null ? void 0 : l.svelteApp.$destroy();
202
+ }), this.tags = [], (t = this.store.disposers) == null || t.forEach((r) => r == null ? void 0 : r()), this.store.disposers = [], this.store.disposed = !0, (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (n = (o = this.store).resizeObserverDisposer) == null || n.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.clearCache(), this.hooks.emit("dispose");
136
203
  }
137
204
  setState(e, t) {
138
205
  if (this.store.disposed)
139
206
  return this.disposedErrorLog();
140
- const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = f({}, this.state);
207
+ const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = p({}, this.state);
141
208
  this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = s, o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
142
209
  }
143
210
  changeUnfoldedById(e, t) {
@@ -151,18 +218,18 @@ class ae extends z {
151
218
  }
152
219
  changeTagNormalById(e, t) {
153
220
  const i = this.getTagById(e);
154
- !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = p(t), this.updateRenderPlaneTag());
221
+ !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = c(t), this.updateRenderPlaneTag());
155
222
  }
156
223
  changeDataById(e, t, i = !0) {
157
224
  const s = this.getTagById(e);
158
- !s || (i ? s.data = v({}, s.data, t) : s.data = f(f({}, s.data), t), this.checkPanelTag(), this.updateRenderAllTags());
225
+ !s || (i ? s.data = u({}, s.data, t) : s.data = p(p({}, s.data), t), this.checkPanelTag(), this.updateRenderAllTags());
159
226
  }
160
227
  changeStickTypeById(e, t, i = !0) {
161
228
  this.changeTagById(e, t, i);
162
229
  }
163
230
  changeTagById(e, t, i = !0) {
164
231
  const s = this.getTagById(e);
165
- !t || (i ? v(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = p(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
232
+ !t || (i ? u(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = c(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
166
233
  }
167
234
  destroyTagById(e) {
168
235
  (Array.isArray(e) ? e : [e]).forEach((i) => {
@@ -174,12 +241,13 @@ class ae extends z {
174
241
  this.mediaStore.set({ currentMediaElement: null });
175
242
  }
176
243
  setVisibleAndUnfolded() {
177
- return g(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
178
- return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
179
- setTimeout(() => {
180
- this.setUnfoldedByPanoIndex(), t();
181
- }, 10);
182
- }) : (this.setUnfoldedByPanoIndex(), Promise.resolve());
244
+ return f(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
245
+ if (!!this.isPanorama)
246
+ return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
247
+ setTimeout(() => {
248
+ this.setUnfoldedByPanoIndex(), t();
249
+ }, 10);
250
+ }) : (this.setUnfoldedByPanoIndex(), Promise.resolve());
183
251
  });
184
252
  }
185
253
  handleShow() {
@@ -199,9 +267,9 @@ class ae extends z {
199
267
  });
200
268
  }
201
269
  addEventListener() {
202
- const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), d = this.loadVideoFirstFrame.bind(this), b = this.clickhandler.bind(this);
203
- return e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived", d), t.on("click", b), () => {
204
- e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived", d), t.off("click", b), this.store.eventListenerDisposer = void 0;
270
+ const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), l = this.loadVideoFirstFrame.bind(this), b = this.clickhandler.bind(this);
271
+ return this.five.currentMode && (this.isPanorama ? (this.handleFivePanoArrived(), this.temporaryShow({ withAnimation: !0 })) : this.temporaryHide()), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("cameraUpdate", o), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", l), t.on("click", b), () => {
272
+ e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", l), t.off("click", b), this.store.eventListenerDisposer = void 0;
205
273
  };
206
274
  }
207
275
  loadVideoFirstFrame() {
@@ -227,12 +295,12 @@ class ae extends z {
227
295
  !this.store.resizeObserverDisposer || i();
228
296
  }, 500),
229
297
  e
230
- ), { observe: r, unobserve: n } = D(
298
+ ), { observe: n, unobserve: r } = D(
231
299
  C(() => t(), 400),
232
300
  e
233
301
  );
234
- return s(), r(), () => {
235
- o(), n();
302
+ return s(), n(), () => {
303
+ o(), r();
236
304
  };
237
305
  }
238
306
  handleFiveModeChange(e) {
@@ -241,7 +309,7 @@ class ae extends z {
241
309
  handleFiveWantsMoveToPano() {
242
310
  this.tags.forEach((e) => {
243
311
  const t = this.getTagConfig(e);
244
- typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = c(f({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = c(f({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
312
+ typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = m(p({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = m(p({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
245
313
  }), this.updateTagContainerVisible();
246
314
  }
247
315
  temporaryShow({ withAnimation: e } = { withAnimation: !1 }) {
@@ -287,9 +355,9 @@ class ae extends z {
287
355
  this.updateRenderPointTag();
288
356
  }
289
357
  handleFivePanoArrived() {
290
- return g(this, null, function* () {
358
+ return f(this, null, function* () {
291
359
  yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
292
- e.temporaryState = c(f({}, e.temporaryState), { visible: !0 });
360
+ e.temporaryState = m(p({}, e.temporaryState), { visible: !0 });
293
361
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
294
362
  });
295
363
  }
@@ -322,27 +390,27 @@ class ae extends z {
322
390
  this.sort([...this.filterPlaneTag(), ...this.filter3DPointTag()]).forEach((t) => {
323
391
  var i;
324
392
  if (t.tag3DContentSvelte) {
325
- const { svelteApp: s, domContainer: o, initialNormal: r, currentNormal: n } = t.tag3DContentSvelte;
393
+ const { svelteApp: s, domContainer: o, initialNormal: n, currentNormal: r } = t.tag3DContentSvelte;
326
394
  if (s.$set({
327
395
  tag: t,
328
396
  hooks: this.hooks,
329
397
  state: this.state,
330
398
  temporaryState: this.temporaryState
331
- }), !r.equals(n)) {
332
- const d = new F().setFromUnitVectors(r, n);
333
- o.css3DObject.setRotationFromQuaternion(d);
399
+ }), !n.equals(r)) {
400
+ const l = new k().setFromUnitVectors(n, r);
401
+ o.css3DObject.setRotationFromQuaternion(l);
334
402
  }
335
403
  } else {
336
404
  if (((i = t.state) == null ? void 0 : i.visible) === !1)
337
405
  return;
338
406
  if (this.css3DRenderPlugin || (this.css3DRenderPlugin = N(this.five)), t.stickType === "3DPoint" && !t.normal)
339
407
  return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
340
- const s = t.stickType === "Plane" ? t.position : M(this.five.camera.position, p(t.position), p(t.normal)), o = t.stickType === "Plane" ? I(t.position) : p(t.normal), r = this.getTagConfig(t).tag3DConfig, n = this.css3DRenderPlugin.create3DDomContainer(s, r);
341
- if (!n)
408
+ const s = t.stickType === "Plane" ? t.position : M(this.five.camera.position, c(t.position), c(t.normal)), o = t.stickType === "Plane" ? I(t.position) : c(t.normal), n = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(s, n);
409
+ if (!r)
342
410
  return;
343
- this.store.css3DRenderDisposer.set(t.id, n.dispose), t.tag3DContentSvelte = {
411
+ this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
344
412
  svelteApp: new L({
345
- target: n.container,
413
+ target: r.container,
346
414
  props: {
347
415
  tag: t,
348
416
  hooks: this.hooks,
@@ -351,7 +419,7 @@ class ae extends z {
351
419
  temporaryState: this.temporaryState
352
420
  }
353
421
  }),
354
- domContainer: n,
422
+ domContainer: r,
355
423
  initialNormal: o,
356
424
  currentNormal: o
357
425
  };
@@ -375,6 +443,7 @@ class ae extends z {
375
443
  }
376
444
  }
377
445
  export {
378
- ae as PanoTagPluginController,
379
- re as pluginFlag
446
+ wt as PanoTagPluginController,
447
+ wt as default,
448
+ Pt as pluginFlag
380
449
  };
@@ -1,5 +1,5 @@
1
- import { PanoTagPluginController as t } from "./controller/index.js";
2
- import { PanoTagPluginController as Qo, pluginFlag as Ro } from "./controller/index.js";
1
+ import t from "./controller/index.js";
2
+ import { default as Qo, pluginFlag as Ro } from "./controller/index.js";
3
3
  import { ContentType as Uo } from "./typings/tag/TagData.js";
4
4
  import { DimensionType as Wo, PointType as Xo } from "./typings/tag/Utils.js";
5
5
  import "@realsee/five";
@@ -0,0 +1,4 @@
1
+ declare const data: {
2
+ tagList: any[];
3
+ };
4
+ export default data;
@@ -0,0 +1,6 @@
1
+ const t = {
2
+ tagList: []
3
+ };
4
+ export {
5
+ t as default
6
+ };