@realsee/dnalogel 2.3.5-dev.7 → 2.3.6-alpha.0

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