@realsee/dnalogel 2.3.7-alpha.1 → 2.3.7

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 (422) hide show
  1. package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
  2. package/dist/PanoTagPlugin/Assets/Icon.d.ts +2 -3
  3. package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +2 -1
  4. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +22 -19
  5. package/dist/PanoTagPlugin/controller/index.d.ts +13 -24
  6. package/dist/PanoTagPlugin/index.d.ts +1 -1
  7. package/dist/PanoTagPlugin/typings/controller.d.ts +17 -21
  8. package/dist/PanoTagPlugin/typings/index.d.ts +1 -5
  9. package/dist/PanoTagPlugin/typings/tag.d.ts +247 -0
  10. package/dist/index.cjs.js +56 -56
  11. package/dist/index.js +6020 -7072
  12. package/dist/index.umd.js +49 -49
  13. package/docs/assets/search.js +1 -1
  14. package/docs/classes/CSS3DRender.html +31 -31
  15. package/docs/classes/CruisePluginController.html +24 -24
  16. package/docs/classes/Magnifier.html +16 -16
  17. package/docs/classes/ModelRoomLabelController.html +11 -11
  18. package/docs/classes/Object3DHelperController.html +24 -24
  19. package/docs/classes/PaintBrush.html +15 -15
  20. package/docs/classes/PanoTagPluginController.html +174 -221
  21. package/docs/classes/Util.BetterTween.html +8 -8
  22. package/docs/classes/Util.FivePointSelector.html +12 -12
  23. package/docs/classes/Util.Interval.html +12 -12
  24. package/docs/classes/Util.Magnifier.html +17 -17
  25. package/docs/classes/Util.PointDomHelper.html +11 -11
  26. package/docs/classes/Util.PointHelper.html +11 -11
  27. package/docs/classes/Util.Rectangle.html +13 -13
  28. package/docs/enums/CameraMovementEffect.html +7 -7
  29. package/docs/enums/ContentType.html +35 -75
  30. package/docs/enums/DIRECTION.html +9 -9
  31. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  32. package/docs/enums/DimensionType.html +15 -19
  33. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  34. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  35. package/docs/enums/LinkType.html +67 -0
  36. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  37. package/docs/enums/PointType.html +15 -19
  38. package/docs/enums/Rotation.html +8 -8
  39. package/docs/functions/CSS3DRenderPlugin.html +13 -36
  40. package/docs/functions/CameraMovementPlugin.html +13 -36
  41. package/docs/functions/CruisePlugin.html +13 -36
  42. package/docs/functions/GuideLinePlugin.html +14 -37
  43. package/docs/functions/ItemLabelPlugin.html +13 -36
  44. package/docs/functions/MapviewFloorplanPlugin.html +13 -36
  45. package/docs/functions/ModelChassisCompassPlugin.html +13 -36
  46. package/docs/functions/ModelEntryDoorGuidePlugin.html +13 -36
  47. package/docs/functions/ModelFloorplanPlugin.html +13 -36
  48. package/docs/functions/ModelItemLabelPlugin.html +13 -36
  49. package/docs/functions/ModelRoomLabelPlugin.html +13 -36
  50. package/docs/functions/ModelTVVideoPlugin.html +13 -36
  51. package/docs/functions/ModelViewPlugin.html +13 -36
  52. package/docs/functions/Object3DHelperPlugin.html +13 -36
  53. package/docs/functions/PanoCompassPlugin.html +13 -36
  54. package/docs/functions/PanoCursorRaycasterPlugin.html +13 -36
  55. package/docs/functions/PanoDoorLabelPlugin.html +13 -36
  56. package/docs/functions/PanoFloorplanRadarPlugin.html +13 -36
  57. package/docs/functions/PanoMeasurePlugin.html +13 -36
  58. package/docs/functions/PanoRulerPlugin.html +13 -36
  59. package/docs/functions/PanoRulerProPlugin.html +13 -36
  60. package/docs/functions/PanoSpatialTagPlugin.html +13 -36
  61. package/docs/functions/PanoTagPlugin.html +23 -42
  62. package/docs/functions/TopviewFloorplanPlugin.html +13 -36
  63. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  64. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  65. package/docs/functions/Util.getFrameTime.html +5 -5
  66. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  67. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  68. package/docs/functions/Util.isNil.html +5 -5
  69. package/docs/functions/Util.nextFrame.html +5 -5
  70. package/docs/functions/Util.notNil.html +5 -5
  71. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  72. package/docs/functions/Util.tweenProgress.html +5 -5
  73. package/docs/functions/pluginFlag.html +14 -37
  74. package/docs/index.html +13 -36
  75. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  76. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  77. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  78. package/docs/interfaces/ContentTypeMap.html +212 -0
  79. package/docs/interfaces/FloorplanBounding.html +8 -8
  80. package/docs/interfaces/FloorplanData.html +10 -10
  81. package/docs/interfaces/FloorplanEntrance.html +11 -11
  82. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  83. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  84. package/docs/interfaces/FloorplanFloorData.html +9 -9
  85. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  86. package/docs/interfaces/FloorplanObserver.html +9 -9
  87. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  88. package/docs/interfaces/FloorplanPosition.html +7 -7
  89. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  90. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  91. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  92. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  93. package/docs/interfaces/FloorplanServerData.html +7 -7
  94. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  95. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  96. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  97. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  98. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  99. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  100. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  101. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  102. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  103. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  104. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  105. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  106. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  107. package/docs/interfaces/LineJson.html +7 -7
  108. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  109. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  110. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  111. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  112. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  113. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  114. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  115. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  116. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  117. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  118. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  119. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  120. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  121. package/docs/interfaces/Object3DHelperState.html +8 -8
  122. package/docs/interfaces/OpenParameter.html +7 -7
  123. package/docs/interfaces/PaintBrushAction.html +12 -12
  124. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  125. package/docs/interfaces/PaintBrushState.html +10 -10
  126. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  127. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +14 -37
  128. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  129. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  130. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  131. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  132. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  133. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  134. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  135. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  136. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +14 -37
  137. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +14 -37
  138. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  139. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  140. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  141. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  142. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  143. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  144. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  145. package/docs/interfaces/Point.html +8 -8
  146. package/docs/interfaces/PointJson.html +8 -8
  147. package/docs/interfaces/Room.html +9 -9
  148. package/docs/interfaces/RoomInfo.html +7 -7
  149. package/docs/interfaces/RoomLabel.html +14 -14
  150. package/docs/interfaces/RoomRules.html +14 -37
  151. package/docs/interfaces/Rooms.html +14 -37
  152. package/docs/interfaces/Scissor.html +9 -9
  153. package/docs/interfaces/TagConfig.html +19 -15
  154. package/docs/interfaces/Tags.html +12 -14
  155. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  156. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  157. package/docs/modules/Util.html +5 -5
  158. package/docs/modules.html +21 -67
  159. package/docs/types/ArrayPosition.html +15 -38
  160. package/docs/types/CSS3DRenderExportType.html +14 -37
  161. package/docs/types/CSS3DRenderPluginExportType.html +14 -37
  162. package/docs/types/CSS3DRenderPluginParameterType.html +14 -37
  163. package/docs/types/Color.html +14 -37
  164. package/docs/types/ContentTypeConfigKey.html +15 -38
  165. package/docs/types/{PanoIndex.html → ContentTypeConfigKeyArray.html} +17 -40
  166. package/docs/types/Create3DDomContainerReturnType.html +14 -37
  167. package/docs/types/Create3DElementReturnType.html +14 -37
  168. package/docs/types/CruisePluginExportType.html +14 -37
  169. package/docs/types/Direction-1.html +14 -37
  170. package/docs/types/Direction4.html +14 -37
  171. package/docs/types/FloorplanRuleLabels.html +14 -37
  172. package/docs/types/FloorplanServerRuleLabels.html +14 -37
  173. package/docs/types/GuideLinePluginExportType.html +14 -37
  174. package/docs/types/HelperEventMap.html +14 -37
  175. package/docs/types/MapviewFloorplanPluginParameterType.html +14 -37
  176. package/docs/types/MapviewFloorplanPluginReturnType.html +14 -37
  177. package/docs/types/MediaData.html +14 -37
  178. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +14 -37
  179. package/docs/types/ModelFloorplanPluginParameterType.html +14 -37
  180. package/docs/types/ModelFloorplanPluginReturnType.html +14 -37
  181. package/docs/types/ModelRoomLabelPluginParameters.html +14 -37
  182. package/docs/types/ModelRoomLabelPluginReturnType.html +14 -37
  183. package/docs/types/MoveArgs.html +14 -37
  184. package/docs/types/MoveOpts.html +14 -37
  185. package/docs/types/Object3DHelperEventMap.html +14 -37
  186. package/docs/types/ObjectFit.html +14 -37
  187. package/docs/types/PaintBrushEventMap.html +14 -37
  188. package/docs/types/PanoCompassPluginData.html +14 -37
  189. package/docs/types/PanoCompassPluginExportType.html +14 -37
  190. package/docs/types/PanoCompassPluginParameterType.html +14 -37
  191. package/docs/types/PanoFloorplanRadarPluginParameterType.html +14 -37
  192. package/docs/types/PanoFloorplanRadarPluginReturnType.html +14 -37
  193. package/docs/types/PanoMeasurePluginEvent.html +14 -37
  194. package/docs/types/PanoMeasureReturnType.html +14 -37
  195. package/docs/types/PanoSpatialTagPluginId.html +14 -37
  196. package/docs/types/PanoTagPluginExportInterface.html +14 -37
  197. package/docs/types/PanoTagPluginParamsInterface.html +14 -37
  198. package/docs/types/PlaneTag.html +19 -40
  199. package/docs/types/PointTag.html +23 -40
  200. package/docs/types/Position.html +14 -37
  201. package/docs/types/RotateArgs.html +14 -37
  202. package/docs/types/RotateOpts.html +14 -37
  203. package/docs/types/RuleLabelsKey.html +14 -37
  204. package/docs/types/RuleLabelsValue.html +14 -37
  205. package/docs/types/Tag.html +22 -41
  206. package/docs/types/Tag2D.html +20 -42
  207. package/docs/types/Tag3D.html +20 -42
  208. package/docs/types/TagId.html +14 -37
  209. package/docs/types/TopviewFloorplanPluginParameterType.html +14 -37
  210. package/docs/types/TopviewFloorplanPluginReturnType.html +14 -37
  211. package/docs/variables/FLOOR_TYPE_MAP.html +14 -37
  212. package/docs/variables/PLUGIN.html +14 -37
  213. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +14 -37
  214. package/docs/variables/ROOM_TYPE_MAP.html +14 -37
  215. package/docs/variables/VERSION.html +14 -37
  216. package/docs/variables/itemLabelPluginServerParams.html +14 -37
  217. package/docs/variables/modelItemLabelPluginServerParams.html +14 -37
  218. package/docs/variables/modelRoomLabelPluginServerParams.html +14 -37
  219. package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -1
  220. package/libs/CSS3DRenderPlugin/Controller.js +2 -2
  221. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +1 -1
  222. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +1 -1
  223. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +4 -4
  224. package/libs/CSS3DRenderPlugin/utils/index.js +0 -12
  225. package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
  226. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +3 -4
  227. package/libs/CSS3DRenderPlugin/utils/random.js +1 -6
  228. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +2 -3
  229. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +1 -2
  230. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +4 -6
  231. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +1 -1
  232. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +6 -6
  233. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +13 -13
  234. package/libs/CruisePlugin/Controller.js +1 -1
  235. package/libs/CruisePlugin/utils/coordinatesAngle.js +2 -3
  236. package/libs/CruisePlugin/utils/linerValue.js +4 -4
  237. package/libs/GuideLinePlugin/Controller.js +1 -1
  238. package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -1
  239. package/libs/Object3DHelperPlugin/Controller.js +36 -38
  240. package/libs/PanoMeasurePlugin/Controller/BaseController.js +15 -25
  241. package/libs/PanoMeasurePlugin/Controller/EditController.js +9 -21
  242. package/libs/PanoMeasurePlugin/Controller/MixedController.js +10 -23
  243. package/libs/PanoMeasurePlugin/Controller/ViewController.js +14 -25
  244. package/libs/PanoMeasurePlugin/Controller/WatchController.js +29 -44
  245. package/libs/PanoMeasurePlugin/Controller/index.js +21 -58
  246. package/libs/PanoMeasurePlugin/Model/index.js +40 -47
  247. package/libs/PanoMeasurePlugin/Model/line.js +11 -15
  248. package/libs/PanoMeasurePlugin/Model/point.js +5 -5
  249. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +1 -1
  250. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
  251. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
  252. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +4 -4
  253. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
  254. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +30 -30
  255. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +2 -2
  256. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +2 -2
  257. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -3
  258. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
  259. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +16 -24
  260. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +3 -4
  261. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +5 -8
  262. package/libs/PanoMeasurePlugin/index.js +2 -2
  263. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
  264. package/libs/PanoMeasurePlugin/utils/constants.js +16 -15
  265. package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -1
  266. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +6 -7
  267. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
  268. package/libs/PanoMeasurePlugin/utils/line.js +0 -1
  269. package/libs/PanoMeasurePlugin/utils/math.js +1 -2
  270. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
  271. package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -3
  272. package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
  273. package/libs/PanoSpatialTagPlugin/Plugin.js +2 -2
  274. package/libs/PanoTagPlugin/Assets/Icon.d.ts +2 -3
  275. package/libs/PanoTagPlugin/Assets/Icon.js +3 -4
  276. package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
  277. package/libs/PanoTagPlugin/Components/Common/Audio.js +132 -137
  278. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +30 -30
  279. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +59 -95
  280. package/libs/PanoTagPlugin/Components/Common/Media.js +249 -275
  281. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +79 -143
  282. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +170 -0
  283. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +50 -0
  284. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +50 -0
  285. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +166 -0
  286. package/libs/PanoTagPlugin/Components/Common/Shadow.js +9 -10
  287. package/libs/PanoTagPlugin/Components/Common/Text.js +130 -0
  288. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +131 -0
  289. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
  290. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +131 -126
  291. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +96 -58
  292. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -5
  293. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +45 -75
  294. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +122 -0
  295. package/libs/PanoTagPlugin/Components/Tag/index.js +148 -235
  296. package/libs/PanoTagPlugin/Components/TagContainer.js +109 -144
  297. package/libs/PanoTagPlugin/Components/TagWrapper.js +152 -0
  298. package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +2 -1
  299. package/libs/PanoTagPlugin/controller/TagCacheController.js +2 -3
  300. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +22 -19
  301. package/libs/PanoTagPlugin/controller/TagComputer.js +151 -174
  302. package/libs/PanoTagPlugin/controller/index.d.ts +13 -24
  303. package/libs/PanoTagPlugin/controller/index.js +165 -245
  304. package/libs/PanoTagPlugin/index.d.ts +1 -1
  305. package/libs/PanoTagPlugin/index.js +21 -32
  306. package/libs/PanoTagPlugin/tag.config.js +16 -23
  307. package/libs/PanoTagPlugin/typings/controller.d.ts +17 -21
  308. package/libs/PanoTagPlugin/typings/index.d.ts +1 -5
  309. package/libs/PanoTagPlugin/typings/index.js +1 -7
  310. package/libs/PanoTagPlugin/typings/tag.d.ts +247 -0
  311. package/libs/PanoTagPlugin/typings/tag.js +7 -0
  312. package/libs/PanoTagPlugin/utils/constants.js +1 -2
  313. package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
  314. package/libs/PanoTagPlugin/utils/index.js +0 -35
  315. package/libs/PanoTagPlugin/utils/search.js +9 -27
  316. package/libs/PanoTagPlugin/utils/tagPosition.js +2 -2
  317. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
  318. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +6 -10
  319. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
  320. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -83
  321. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  322. package/libs/index.js +101 -112
  323. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +20 -17
  324. package/libs/vendor/svelte/internal/index.js +338 -382
  325. package/package.json +3 -3
  326. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +0 -53
  327. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -88
  328. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +0 -155
  329. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +0 -50
  330. package/dist/PanoTagPlugin/utils/color.d.ts +0 -7
  331. package/dist/PanoTagPlugin/utils/getImageInfo.d.ts +0 -16
  332. package/dist/PanoTagPlugin/utils/px2rem.d.ts +0 -1
  333. package/dist/PanoTagPlugin/utils/tag/format.d.ts +0 -2
  334. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +0 -7
  335. package/dist/PanoTagPlugin/utils/timeToString.d.ts +0 -1
  336. package/docs/interfaces/AddTagConfig.html +0 -64
  337. package/docs/interfaces/EventMap.html +0 -298
  338. package/docs/interfaces/MinMax.html +0 -71
  339. package/docs/interfaces/State.html +0 -89
  340. package/docs/interfaces/TagCache.html +0 -92
  341. package/docs/interfaces/TagIconUrl.html +0 -91
  342. package/docs/interfaces/TemporaryState.html +0 -64
  343. package/docs/types/ContentTypeMap.html +0 -248
  344. package/docs/types/LoadTagConfig.html +0 -248
  345. package/docs/types/MediaStore.html +0 -248
  346. package/docs/types/PlaneTagElement.html +0 -253
  347. package/docs/types/Point2DElement.html +0 -253
  348. package/docs/types/Point2DTag.html +0 -255
  349. package/docs/types/Point3DElement.html +0 -253
  350. package/docs/types/Point3DTag.html +0 -255
  351. package/docs/types/PointTagElement.html +0 -253
  352. package/docs/types/StickType.html +0 -248
  353. package/docs/types/TagContentType.html +0 -248
  354. package/docs/types/TagDimensionType.html +0 -248
  355. package/docs/types/TagElement.html +0 -255
  356. package/docs/types/TagEvents.html +0 -283
  357. package/docs/types/TagHooks.html +0 -248
  358. package/docs/types/TagIconSize.html +0 -251
  359. package/docs/types/TagPointType.html +0 -251
  360. package/docs/types/WorkCode.html +0 -248
  361. package/libs/GuideLinePlugin/utils/getPoint.d.ts +0 -3
  362. package/libs/GuideLinePlugin/utils/getPoint.js +0 -18
  363. package/libs/PanoMeasurePlugin/typings/data.js +0 -1
  364. package/libs/PanoMeasurePlugin/typings/event.type.js +0 -1
  365. package/libs/PanoMeasurePlugin/typings/index.js +0 -1
  366. package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +0 -1
  367. package/libs/PanoMeasurePlugin/typings/utils.type.js +0 -1
  368. package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -2
  369. package/libs/PanoMeasurePlugin/utils/clearGroup.js +0 -6
  370. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +0 -175
  371. package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +0 -110
  372. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +0 -81
  373. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +0 -145
  374. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +0 -147
  375. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +0 -166
  376. package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
  377. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +0 -213
  378. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +0 -215
  379. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +0 -120
  380. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +0 -102
  381. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +0 -134
  382. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +0 -115
  383. package/libs/PanoTagPlugin/Components/TagItem.js +0 -233
  384. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
  385. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
  386. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
  387. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
  388. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
  389. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
  390. package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -122
  391. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
  392. package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
  393. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
  394. package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
  395. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
  396. package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
  397. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
  398. package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
  399. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
  400. package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
  401. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
  402. package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
  403. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +0 -53
  404. package/libs/PanoTagPlugin/typings/tag/Tag.js +0 -4
  405. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -88
  406. package/libs/PanoTagPlugin/typings/tag/TagConfig.js +0 -1
  407. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +0 -155
  408. package/libs/PanoTagPlugin/typings/tag/TagData.js +0 -4
  409. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +0 -50
  410. package/libs/PanoTagPlugin/typings/tag/Utils.js +0 -5
  411. package/libs/PanoTagPlugin/utils/color.d.ts +0 -7
  412. package/libs/PanoTagPlugin/utils/color.js +0 -17
  413. package/libs/PanoTagPlugin/utils/getImageInfo.d.ts +0 -16
  414. package/libs/PanoTagPlugin/utils/getImageInfo.js +0 -51
  415. package/libs/PanoTagPlugin/utils/px2rem.d.ts +0 -1
  416. package/libs/PanoTagPlugin/utils/px2rem.js +0 -6
  417. package/libs/PanoTagPlugin/utils/tag/format.d.ts +0 -2
  418. package/libs/PanoTagPlugin/utils/tag/format.js +0 -18
  419. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +0 -7
  420. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +0 -26
  421. package/libs/PanoTagPlugin/utils/timeToString.d.ts +0 -1
  422. package/libs/PanoTagPlugin/utils/timeToString.js +0 -7
@@ -1,205 +1,194 @@
1
- var U = Object.defineProperty, j = Object.defineProperties;
2
- var w = Object.getOwnPropertyDescriptors;
3
- var m = Object.getOwnPropertySymbols;
4
- var B = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
5
- var P = (u, d, e) => d in u ? U(u, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[d] = e, k = (u, d) => {
6
- for (var e in d || (d = {}))
7
- B.call(d, e) && P(u, e, d[e]);
8
- if (m)
9
- for (var e of m(d))
10
- A.call(d, e) && P(u, e, d[e]);
11
- return u;
12
- }, x = (u, d) => j(u, w(d));
13
- var b = (u, d, e) => (P(u, typeof d != "symbol" ? d + "" : d, e), e);
14
- import D from "object-assign-deep";
1
+ var w = Object.defineProperty;
2
+ var j = (p, u, e) => u in p ? w(p, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[u] = e;
3
+ var b = (p, u, e) => (j(p, typeof u != "symbol" ? u + "" : u, e), e);
4
+ import T from "object-assign-deep";
15
5
  import * as I from "three";
16
- import { DefaultConfig as E } from "../tag.config.js";
17
- import { is3DTag as R, isPointTag as V } from "../utils/tag/tagCheck.js";
18
- import { arrayPositionToVector3 as M, anyPositionToVector3 as S } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
19
- import { planeNormal as $ } from "../utils/planeNormal.js";
20
- import { tagPosition as T } from "../utils/tagPosition.js";
21
- import { checkRange as v } from "../utils/checkRange.js";
22
- import { TagCacheController as z } from "./TagCacheController.js";
23
- import "../../CSS3DRenderPlugin/utils/centerPoint.js";
24
- import "../../base/BasePlugin.js";
25
- import "../../shared-utils/Subscribe.js";
26
- class Y extends z {
6
+ import { DefaultConfig as k } from "../tag.config.js";
7
+ import { DimensionType as y, PointType as v } from "../typings/tag.js";
8
+ import { arrayPositionToVector3 as B, anyPositionToVector3 as U } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
9
+ import { planeNormal as E } from "../utils/planeNormal.js";
10
+ import { tagPosition as C } from "../utils/tagPosition.js";
11
+ import { checkRange as P } from "../utils/checkRange.js";
12
+ import { TagCacheController as V } from "./TagCacheController.js";
13
+ class O extends V {
27
14
  constructor(e) {
28
15
  super(e);
29
16
  b(this, "tags", []);
30
- b(this, "config", E);
17
+ b(this, "config", k);
31
18
  b(this, "raycaster", new I.Raycaster());
32
19
  }
33
- get isPanorama() {
34
- return this.five.currentMode === "Panorama";
35
- }
36
20
  getTagById(e) {
37
- const t = this.tags.find((i) => i.id === e);
38
- if (!t) {
39
- console.error(`getTagById(): tag is ${t}, id is ${e}`);
21
+ const n = this.tags.find((i) => i.id === e);
22
+ if (!n) {
23
+ console.error(`getTagById(): tag is ${n}, id is ${e}`);
40
24
  return;
41
25
  }
42
- return t;
26
+ return n;
27
+ }
28
+ changeConfig(e, n = !0) {
29
+ n ? this.config = T({}, this.config, e) : this.config = e, this.clearCache();
30
+ }
31
+ changeGlobalConfig(e, n = !0) {
32
+ n ? this.config.globalConfig = T({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.clearCache();
43
33
  }
44
- changeContentTypeConfig(e, t, i = !0) {
45
- this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = D({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.clearCache();
34
+ changeContentTypeConfig(e, n, i = !0) {
35
+ this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = T({}, this.config.contentTypeConfig[e], n) : this.config.contentTypeConfig[e] = n, this.clearCache();
46
36
  }
47
- getVisibleByPanoIndex(e, t) {
48
- var n;
49
- const i = this.getCaches({ panoIndex: t, id: e.id }), s = (n = this.five.panoIndex) != null ? n : t;
37
+ getVisibleByPanoIndex(e, n) {
38
+ var t;
39
+ const i = this.getCaches({ panoIndex: n, id: e.id }), o = (t = this.five.panoIndex) != null ? t : n;
50
40
  if (i.visible !== void 0)
51
41
  return i.visible;
52
42
  {
53
- const l = (() => {
54
- var c, p, f;
55
- const o = (c = this.getTagConfig(e).visibleConfig) != null ? c : {}, a = this.getDistance(e);
56
- if (typeof o == "function")
57
- return o(this.five, { tag: e, distance: a });
58
- if (o.keep === "hidden")
43
+ const r = (() => {
44
+ var a, d, l, c, h;
45
+ const s = (a = this.getTagConfig(e).visibleConfig) != null ? a : {}, f = this.getDistance(e);
46
+ if (typeof s == "function")
47
+ return s(this.five, { tag: e, distance: f });
48
+ if (s.keep === "hidden")
59
49
  return !1;
60
- if (o.keep === "visible")
50
+ if (s.keep === "visible")
61
51
  return !0;
62
- 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)
52
+ if (s.visiblePanoIndex !== void 0 && (o === void 0 || !s.visiblePanoIndex.includes(o)) || s.visibleDistance !== void 0 && s.visibleDistance !== "unLimited" && P(f, s.visibleDistance) === !1)
63
53
  return !1;
64
- if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
65
- if (s === void 0)
54
+ if (((d = s.intersectRaycaster) == null ? void 0 : d.enabled) !== !1) {
55
+ if (o === void 0)
66
56
  return !1;
67
- const r = (f = this.five.work.observers[s]) == null ? void 0 : f.position;
68
- if (r === void 0)
69
- throw new Error(`getVisible(): observerPosition is ${r}`);
70
- const h = T(e.position).sub(r).normalize();
71
- this.raycaster.set(r, h);
72
- const [g] = this.five.model.intersectRaycaster(this.raycaster), y = (() => {
73
- var C;
74
- return typeof o.intersectRaycaster == "object" && (C = o.intersectRaycaster.distanceAccuracy) != null ? C : 0.01;
75
- })();
76
- if (g && g.distance + y < a)
57
+ const g = (l = this.five.work.observers[o]) == null ? void 0 : l.position;
58
+ if (g === void 0)
59
+ throw new Error(`getVisible(): observerPosition is ${g}`);
60
+ const m = C(e.position).sub(g).normalize();
61
+ this.raycaster.set(g, m);
62
+ const [x] = this.five.model.intersectRaycaster(this.raycaster), D = (h = (c = s.intersectRaycaster) == null ? void 0 : c.distanceAccuracy) != null ? h : 0.01;
63
+ if (x && x.distance + D < f)
77
64
  return !1;
78
65
  }
79
- return !(o.angleRange && R(e) && v(this.getAngle(e), o.angleRange) === !1);
66
+ return !(s.angleRange && e.dimensionType === y.Three && P(this.getAngle(e), s.angleRange) === !1);
80
67
  })();
81
- return i.visible = l, i.visible;
68
+ return i.visible = r, i.visible;
82
69
  }
83
70
  }
84
- getUnfoldedByPanoIndex(e, t) {
71
+ getUnfoldedByPanoIndex(e, n) {
85
72
  if (!this.getVisibleByPanoIndex(e))
86
73
  return;
87
- const s = this.getCaches({ panoIndex: t, id: e.id });
88
- if (s.unfolded !== void 0)
89
- return s.unfolded;
74
+ const o = this.getCaches({ panoIndex: n, id: e.id });
75
+ if (o.unfolded !== void 0)
76
+ return o.unfolded;
90
77
  {
91
- const n = this.getTagConfig(e).unfoldedConfig;
92
- if (!n)
78
+ const t = this.getTagConfig(e).unfoldedConfig;
79
+ if (!t)
93
80
  return;
94
- const l = (() => {
95
- const a = this.getDistance(e);
96
- if (typeof n == "function")
97
- return n(this.five, { tag: e, distance: a });
98
- if (n.keep === "folded")
81
+ const r = (() => {
82
+ const f = this.getDistance(e);
83
+ if (typeof t == "function")
84
+ return t(this.five, { tag: e, distance: f });
85
+ if (t.keep === "folded")
99
86
  return !1;
100
- if (n.keep === "unfolded")
87
+ if (t.keep === "unfolded")
101
88
  return !0;
102
- if (n.unfoldDistance && v(a, n.unfoldDistance) === !1)
89
+ if (t.disableUnfold === !0)
90
+ return !1;
91
+ if (t.disableFold === !0)
92
+ return !0;
93
+ if (t.unfoldDistance && P(f, t.unfoldDistance) === !1)
103
94
  return !1;
104
95
  })();
105
- s.unfolded = l;
106
- const o = this.getUnfoldedByCamera(e);
107
- return o !== void 0 ? o : s.unfolded;
96
+ o.unfolded = r;
97
+ const s = this.getUnfoldedByCamera(e);
98
+ return s !== void 0 ? s : o.unfolded;
108
99
  }
109
100
  }
110
101
  getUnfoldedByCamera(e) {
111
102
  return this.getVisibleByPanoIndex(e) ? (() => {
112
- var l;
113
- const s = this.getDistance(e), n = this.getTagConfig(e).unfoldedConfig;
114
- if (!!n) {
115
- if (typeof n == "function")
116
- return n(this.five, { tag: e, distance: s });
117
- if (n.keep === "folded")
103
+ var r;
104
+ const o = this.getDistance(e), t = this.getTagConfig(e).unfoldedConfig;
105
+ if (!!t) {
106
+ if (typeof t == "function")
107
+ return t(this.five, { tag: e, distance: o });
108
+ if (t.keep === "folded")
109
+ return !1;
110
+ if (t.keep === "unfolded")
111
+ return !0;
112
+ if (t.disableUnfold === !0)
118
113
  return !1;
119
- if (n.keep === "unfolded")
114
+ if (t.disableFold === !0)
120
115
  return !0;
121
- if (n.autoUnfold === void 0 || n.autoUnfold === !1 || n.autoUnfold.enable === !1)
116
+ if (t.autoUnfold === void 0)
122
117
  return;
123
- if (n.autoUnfold.strategy === "ScreenPostion") {
124
- const o = this.getTagProject(e);
125
- if (o && v(o.x, n.autoUnfold.autoUnfoldProjectX) === !1)
118
+ if (t.autoUnfold.strategy === "ScreenPostion") {
119
+ const s = this.getTagProject(e);
120
+ if (s && P(s.x, t.autoUnfold.autoUnfoldProjectX) === !1)
126
121
  return !1;
127
122
  }
128
- if (n.autoUnfold.strategy === "MinimumDistance") {
129
- const c = this.filterPointTag().filter((f) => this.getVisibleByPanoIndex(f)).filter((f) => {
130
- const r = this.getTagProject(f);
131
- if (!r)
123
+ if (t.autoUnfold.strategy === "MinimumDistance") {
124
+ const a = this.filterPointTag().filter((l) => this.getVisibleByPanoIndex(l)).filter((l) => {
125
+ const c = this.getTagProject(l);
126
+ if (!c)
132
127
  return !1;
133
- const { x: h, y: g, z: y } = r;
134
- return !(Math.abs(y) > 1 || Math.abs(h) > 1 || Math.abs(g) > 1);
135
- }).map((f) => ({ tag: f, id: f.id, tagConfig: this.getTagConfig(f).unfoldedConfig })).filter(({ tag: f, tagConfig: r }) => {
136
- var h, g;
137
- 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");
138
- }).map((f) => x(k({}, f), { distance: this.getDistance(f.tag) })).filter(({ distance: f, tagConfig: r }) => {
139
- var h, g;
140
- 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);
141
- }).sort((f, r) => f.distance - r.distance).findIndex((f) => f.id === e.id);
142
- if (c === -1 || c <= ((l = n.autoUnfold.maxNumber) != null ? l : 1) - 1 === !1)
128
+ const { x: h, y: g, z: m } = c;
129
+ return !(Math.abs(m) > 1 || Math.abs(h) > 1 || Math.abs(g) > 1);
130
+ }).filter((l) => {
131
+ var h;
132
+ const c = this.getTagConfig(l).unfoldedConfig;
133
+ return typeof c == "object" && ((h = c.autoUnfold) == null ? void 0 : h.strategy) === "MinimumDistance";
134
+ }).map((l) => ({ id: l.id, distance: this.getDistance(l) })).filter((l) => l.distance !== void 0).sort((l, c) => l.distance - c.distance).findIndex((l) => l.id === e.id);
135
+ if (a === -1 || a <= ((r = t.autoUnfold.maxNumber) != null ? r : 1) - 1 === !1)
143
136
  return !1;
144
137
  }
145
138
  return !0;
146
139
  }
147
140
  })() : void 0;
148
141
  }
149
- getDistance(e, t) {
150
- var n, l, o;
151
- const i = (n = this.five.panoIndex) != null ? n : t;
142
+ getDistance(e, n) {
143
+ var t, r, s;
144
+ const i = (t = this.five.panoIndex) != null ? t : n;
152
145
  if (i === void 0)
153
146
  throw new Error(`getDistance(): fivePanoIndex is ${i}`);
154
- const s = this.getCaches({ panoIndex: t, id: e.id });
155
- if (s.distance !== void 0)
156
- return s.distance;
147
+ const o = this.getCaches({ panoIndex: n, id: e.id });
148
+ if (o.distance !== void 0)
149
+ return o.distance;
157
150
  {
158
- const a = (o = (l = this.five.work) == null ? void 0 : l.observers[i]) == null ? void 0 : o.position;
159
- if (a === void 0)
160
- throw new Error(`getDistance(): observerPosition is ${a}`);
161
- const c = (() => V(e) ? M(e == null ? void 0 : e.position) : T(e.position))(), p = a.distanceTo(c);
162
- return s.distance = p, p;
151
+ const f = (s = (r = this.five.work) == null ? void 0 : r.observers[i]) == null ? void 0 : s.position;
152
+ if (f === void 0)
153
+ throw new Error(`getDistance(): observerPosition is ${f}`);
154
+ const a = (() => e.pointType === v.PointTag ? B(e == null ? void 0 : e.position) : C(e.position))(), d = f.distanceTo(a);
155
+ return o.distance = d, d;
163
156
  }
164
157
  }
165
- getAngle(e, t) {
166
- var n, l, o;
167
- const i = (n = this.five.panoIndex) != null ? n : t;
158
+ getAngle(e, n) {
159
+ var t, r, s;
160
+ const i = (t = this.five.panoIndex) != null ? t : n;
168
161
  if (i === void 0)
169
162
  throw new Error(`getDistance(): fivePanoIndex is ${i}`);
170
- const s = this.getCaches({ panoIndex: t, id: e.id });
171
- if (s.angle !== void 0)
172
- return s.angle;
163
+ const o = this.getCaches({ panoIndex: n, id: e.id });
164
+ if (o.angle !== void 0)
165
+ return o.angle;
173
166
  {
174
- const a = (o = (l = this.five.work) == null ? void 0 : l.observers[i]) == null ? void 0 : o.position;
175
- if (a === void 0)
176
- throw new Error(`getAngleRange(): observerPosition is ${a}`);
177
- const c = (() => e.stickType === "3DPoint" ? S(e.normal) : $(e.position))();
178
- if (!c)
167
+ const f = (s = (r = this.five.work) == null ? void 0 : r.observers[i]) == null ? void 0 : s.position;
168
+ if (f === void 0)
169
+ throw new Error(`getAngleRange(): observerPosition is ${f}`);
170
+ const a = (() => e.pointType === v.PointTag ? U(e.normal) : E(e.position))();
171
+ if (!a)
179
172
  return;
180
- const p = new I.Vector3().copy(a).sub(T(e.position)), f = c.angleTo(p) * 180 / Math.PI;
181
- return s.angle = f, s.angle;
173
+ const d = new I.Vector3().copy(f).sub(C(e.position)), l = a.angleTo(d) * 180 / Math.PI;
174
+ return o.angle = l, o.angle;
182
175
  }
183
176
  }
184
177
  getTagConfig(e) {
185
- var s;
178
+ var o;
186
179
  if (!e)
187
- return (s = this.config.globalConfig) != null ? s : {};
188
- const t = {};
189
- this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((n) => {
190
- const l = n;
191
- if (t[l])
180
+ return (o = this.config.globalConfig) != null ? o : {};
181
+ const n = {};
182
+ return this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((t) => {
183
+ const r = t;
184
+ if (n[r])
192
185
  return;
193
- const o = l.split("-");
194
- o.length === 1 && o.unshift("Any");
195
- const [a = "Any", c = "Any"] = o || [];
196
- (e.stickType === a || a === "Any") && (e.contentType === c || c === "Any") && (t[l] = this.config.contentTypeConfig[l]);
197
- });
198
- const i = D({}, this.config.globalConfig, ...Object.values(t), e.config);
199
- 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;
186
+ const s = r.split("-"), [f = "Any", a = "Any", d = "Any"] = s || [];
187
+ (e.dimensionType === f || f === "Any") && (e.contentType === a || a === "Any") && (e.pointType === d || d === "Any") && (n[r] = this.config.contentTypeConfig[r]);
188
+ }), T({}, this.config.globalConfig, ...Object.values(n), e.config);
200
189
  }
201
- can(e, t) {
202
- const i = this.getTagConfig(t);
190
+ canBe(e, n) {
191
+ const i = this.getTagConfig(n);
203
192
  if (!i || typeof i != "object")
204
193
  return !0;
205
194
  if (e === "show" || e === "hide") {
@@ -211,43 +200,37 @@ class Y extends z {
211
200
  if (e === "fold" || e === "unfold") {
212
201
  if (!i.unfoldedConfig || typeof i.unfoldedConfig != "object")
213
202
  return !0;
214
- if (e === "fold" && i.unfoldedConfig.keep === "unfolded" || e === "unfold" && i.unfoldedConfig.keep === "folded")
203
+ if (e === "fold" && (i.unfoldedConfig.disableFold || i.unfoldedConfig.keep === "unfolded") || e === "unfold" && (i.unfoldedConfig.disableUnfold || i.unfoldedConfig.keep === "folded"))
215
204
  return !1;
216
205
  }
217
206
  return !0;
218
207
  }
219
- sort(e) {
220
- return e.sort((t, i) => {
221
- const s = this.getDistance(t), n = this.getDistance(i);
222
- return s === void 0 || n === void 0 ? 0 : n - s;
223
- });
224
- }
225
208
  setPointTagPosition() {
226
209
  const e = this.filterPointTag();
227
- e.length !== 0 && e.forEach((t) => {
228
- var s;
229
- if (!((s = t.state) != null && s.visible)) {
230
- t.pointTagStyle = void 0;
210
+ e.length !== 0 && e.forEach((n) => {
211
+ var o;
212
+ if (!((o = n.state) != null && o.visible)) {
213
+ n.pointTagStyle = void 0;
231
214
  return;
232
215
  }
233
- const i = this.getTagProject(t);
216
+ const i = this.getTagProject(n);
234
217
  if (!i) {
235
- t.pointTagStyle = void 0;
218
+ n.pointTagStyle = void 0;
236
219
  return;
237
220
  }
238
- t.pointTagStyle = { leftPercent: (i.x + 1) / 2 * 100, topPercent: (-i.y + 1) / 2 * 100 };
221
+ n.pointTagStyle = { leftPercent: (i.x + 1) / 2 * 100, topPercent: (-i.y + 1) / 2 * 100 };
239
222
  });
240
223
  }
241
224
  setVisibleByPanoIndex() {
242
225
  this.tags.forEach((e) => {
243
- const t = this.getVisibleByPanoIndex(e);
244
- e.state && (e.state.visible = t);
226
+ const n = this.getVisibleByPanoIndex(e);
227
+ e.state && (e.state.visible = n);
245
228
  });
246
229
  }
247
230
  setUnfoldedByPanoIndex() {
248
231
  this.tags.forEach((e) => {
249
- const t = this.getUnfoldedByPanoIndex(e);
250
- if (!!e.state && (t !== void 0 && (e.state.unfolded = t), t && !e.state.visible)) {
232
+ const n = this.getUnfoldedByPanoIndex(e);
233
+ if (!!e.state && (n !== void 0 && (e.state.unfolded = n), n && !e.state.visible)) {
251
234
  const i = this.getTagConfig(e);
252
235
  typeof i.unfoldedConfig == "object" && i.unfoldedConfig.autoUnfoldWhenHide !== !1 && (e.state.unfolded = !1);
253
236
  }
@@ -256,32 +239,26 @@ class Y extends z {
256
239
  getTagProject(e) {
257
240
  if (!this.getVisibleByPanoIndex(e))
258
241
  return;
259
- const i = T(e.position), { x: s, y: n, z: l } = i.project(this.five.camera);
260
- if (!(l > 1))
261
- return { x: s, y: n, z: l };
242
+ const i = C(e.position), { x: o, y: t, z: r } = i.project(this.five.camera);
243
+ if (!(r > 1))
244
+ return { x: o, y: t, z: r };
262
245
  }
263
246
  filterPointTag() {
264
- return this.tags.filter((e) => e.stickType === "2DPoint" || e.stickType === "3DPoint");
247
+ return this.tags.filter((e) => e.pointType === v.PointTag);
265
248
  }
266
- filter2DPointTag() {
267
- return this.tags.filter((e) => e.stickType === "2DPoint");
249
+ filterTag2D() {
250
+ return this.tags.filter((e) => e.dimensionType === y.Two);
268
251
  }
269
252
  filter3DPointTag() {
270
- return this.tags.filter((e) => e.stickType === "3DPoint");
253
+ return this.tags.filter((e) => e.dimensionType === y.Three && e.pointType === v.PointTag);
271
254
  }
272
255
  filter3DTag() {
273
- return this.tags.filter((e) => e.stickType === "3DPoint" || e.stickType === "Plane");
256
+ return this.tags.filter((e) => e.dimensionType === y.Three);
274
257
  }
275
258
  filterPlaneTag() {
276
- return this.tags.filter((e) => e.stickType === "Plane");
277
- }
278
- updateTagConfig(e) {
279
- e != null && e.force && this.clearCache(), this.tags.forEach((t) => {
280
- const i = this.getTagConfig(t);
281
- t.mergedConfig = i;
282
- });
259
+ return this.tags.filter((e) => e.dimensionType === y.Three && e.pointType === v.PlaneTag);
283
260
  }
284
261
  }
285
262
  export {
286
- Y as TagComputer
263
+ O as TagComputer
287
264
  };
@@ -1,8 +1,7 @@
1
- import type { Tag, PartialDeep, TagId, Tags, State, AddTagConfig, LoadTagConfig } from '../typings';
2
- import type { TagContentType } from '..';
3
- import type { ArrayPosition } from '../typings';
4
1
  import { Five } from '@realsee/five';
2
+ import type { Tag, ContentType, PartialDeep, TagId, Tags, State, AddTagConfig } from '../typings';
5
3
  import { TagComputer } from './TagComputer';
4
+ import { ArrayPosition } from '../typings';
6
5
  export declare const pluginFlag: (name: string) => string;
7
6
  declare class PanoTagPluginController extends TagComputer {
8
7
  /** 版本号 */
@@ -23,10 +22,16 @@ declare class PanoTagPluginController extends TagComputer {
23
22
  /** 临时状态 */
24
23
  private temporaryState;
25
24
  private mediaStore;
26
- private isIOSWX;
27
25
  private store;
26
+ private staticUrl;
28
27
  constructor(five: Five, params?: {
29
28
  debug?: boolean;
29
+ mergePluginDefaultConfigToLoadDataConfig?: boolean;
30
+ staticConfig?: {
31
+ host?: string;
32
+ protocol?: string;
33
+ port?: number;
34
+ } | string;
30
35
  config?: {
31
36
  globalConfig?: Tags['globalConfig'];
32
37
  contentTypeConfig?: Tags['contentTypeConfig'];
@@ -35,19 +40,11 @@ declare class PanoTagPluginController extends TagComputer {
35
40
  /**
36
41
  * @description: 加载数据
37
42
  */
38
- load(data: Tags, config?: LoadTagConfig): void;
43
+ load(data: Tags, config?: AddTagConfig): void;
39
44
  /**
40
45
  * @description: 添加标签
41
46
  */
42
47
  addTag(tag: Tag | Tag[], config?: AddTagConfig): void;
43
- /**
44
- * @description: 改变配置
45
- */
46
- changeConfig(config: TagComputer['config'], merge?: boolean): void;
47
- /**
48
- * @description: 改变全局配置
49
- */
50
- changeGlobalConfig(globalConfig: TagComputer['config']['globalConfig'], merge?: boolean): void;
51
48
  clearTags(): void;
52
49
  show(params?: {
53
50
  userAction?: boolean;
@@ -71,7 +68,6 @@ declare class PanoTagPluginController extends TagComputer {
71
68
  userAction?: boolean;
72
69
  visibleWithAnimation?: boolean;
73
70
  }): void;
74
- changeUnfoldedById(id: TagId, unfolded: boolean): void;
75
71
  /**
76
72
  * @description: 修改3D标签normal
77
73
  */
@@ -79,18 +75,12 @@ declare class PanoTagPluginController extends TagComputer {
79
75
  /**
80
76
  * @description: 改变data
81
77
  */
82
- changeDataById<C extends TagContentType = any>(id: TagId, data: PartialDeep<Tag<C>['data']>, deepMerge?: boolean): void;
83
- /**
84
- * @description: 改变tag的stickType
85
- */
86
- changeStickTypeById<C extends TagContentType = any>(id: TagId, data: PartialDeep<{
87
- [P in keyof Pick<Tag<C>, 'stickType' | 'position' | 'normal' | 'data'>]: Tag[P];
88
- }>, deepMerge?: boolean): void;
78
+ changeDataById<C extends ContentType = ContentType.Custom>(id: TagId, data: PartialDeep<Tag<C>['data']>, deepMerge?: boolean): void;
89
79
  /**
90
80
  * @description: 改变tag任意属性
91
81
  */
92
- changeTagById<C extends TagContentType = any>(id: TagId, tag: PartialDeep<{
93
- [P in keyof Pick<Tag<C>, 'enabled' | 'style' | 'stickType' | 'contentType' | 'data' | 'normal'>]: Tag[P];
82
+ changeTagById<C extends ContentType = ContentType.Custom>(id: TagId, tag: PartialDeep<{
83
+ [P in keyof Pick<Tag<C>, 'enabled' | 'style' | 'dimensionType' | 'contentType' | 'data' | 'normal'>]: Tag[P];
94
84
  }>, deepMerge?: boolean): void;
95
85
  /**
96
86
  * @description: 销毁tag
@@ -111,7 +101,6 @@ declare class PanoTagPluginController extends TagComputer {
111
101
  * @description: 添加 cameraUpdate, panoArrived 等事件监听
112
102
  */
113
103
  private addEventListener;
114
- private loadVideoFirstFrame;
115
104
  private addResizeListener;
116
105
  private addResizeObserver;
117
106
  /**