@realsee/dnalogel 2.26.2 → 2.27.0-dev.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 (408) hide show
  1. package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +1 -13
  2. package/dist/PanoTagPlugin/controller/TagCache.d.ts +6 -3
  3. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +21 -15
  4. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +7 -2
  5. package/dist/PanoTagPlugin/controller/index.d.ts +3 -3
  6. package/dist/PanoTagPlugin/typings/controller.d.ts +3 -1
  7. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +2 -2
  8. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +26 -4
  9. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
  10. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
  11. package/dist/index.cjs.js +44 -45
  12. package/dist/index.js +2880 -2846
  13. package/dist/index.umd.js +36 -37
  14. package/dist/shared-utils/five/FiveDomEvents.d.ts +6 -0
  15. package/dist/shared-utils/positionToVector3.d.ts +16 -0
  16. package/dist/shared-utils/safeObj.d.ts +1 -1
  17. package/dist/shared-utils/util.d.ts +1 -0
  18. package/docs/assets/search.js +1 -1
  19. package/docs/classes/CSS3DRender.html +5 -3
  20. package/docs/classes/CruisePluginController.html +5 -3
  21. package/docs/classes/GuideLineItem.GuideLineItem.html +5 -3
  22. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +5 -3
  23. package/docs/classes/Magnifier.html +5 -3
  24. package/docs/classes/ModelRoomLabelController.html +5 -3
  25. package/docs/classes/Object3DHelperController.html +5 -3
  26. package/docs/classes/PaintBrush.html +5 -3
  27. package/docs/classes/PanoMeasurePluginLine.html +5 -3
  28. package/docs/classes/PanoMeasurePluginModel.html +5 -3
  29. package/docs/classes/PanoMeasurePluginPoint.html +5 -3
  30. package/docs/classes/PanoMeasurePluginPolyline.html +5 -3
  31. package/docs/classes/PanoTagPluginController.html +57 -48
  32. package/docs/classes/Util.BetterTween.html +5 -3
  33. package/docs/classes/Util.Interval.html +5 -3
  34. package/docs/classes/Util.Magnifier.html +5 -3
  35. package/docs/classes/Util.PointDomHelper.html +5 -3
  36. package/docs/classes/Util.PointHelper.html +5 -3
  37. package/docs/classes/Util.PointSelectorHelper.html +5 -3
  38. package/docs/classes/Util.Rectangle.html +5 -3
  39. package/docs/enums/CameraMovementEffect.html +5 -3
  40. package/docs/enums/ContentType.html +5 -3
  41. package/docs/enums/DIRECTION.html +5 -3
  42. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -3
  43. package/docs/enums/DimensionType.html +5 -3
  44. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +5 -3
  45. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -3
  46. package/docs/enums/PaintBrushTypeEnum.html +5 -3
  47. package/docs/enums/PointType.html +5 -3
  48. package/docs/enums/Rotation.html +5 -3
  49. package/docs/functions/CSS3DRenderPlugin.html +5 -3
  50. package/docs/functions/CameraMovementPlugin.html +5 -3
  51. package/docs/functions/CruisePlugin.html +5 -3
  52. package/docs/functions/GuideLinePlugin.html +5 -3
  53. package/docs/functions/ItemLabelPlugin.html +5 -3
  54. package/docs/functions/MapviewFloorplanPlugin.html +5 -3
  55. package/docs/functions/ModelChassisCompassPlugin.html +5 -3
  56. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -3
  57. package/docs/functions/ModelFloorplanPlugin.html +5 -3
  58. package/docs/functions/ModelItemLabelPlugin.html +5 -3
  59. package/docs/functions/ModelRoomLabelPlugin.html +5 -3
  60. package/docs/functions/ModelTVVideoPlugin.html +5 -3
  61. package/docs/functions/ModelViewPlugin.html +5 -3
  62. package/docs/functions/Object3DHelperPlugin.html +5 -3
  63. package/docs/functions/PanoCompassPlugin.html +5 -3
  64. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -3
  65. package/docs/functions/PanoDoorLabelPlugin.html +5 -3
  66. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -3
  67. package/docs/functions/PanoMeasurePlugin.html +5 -3
  68. package/docs/functions/PanoRulerPlugin.html +5 -3
  69. package/docs/functions/PanoRulerProPlugin.html +5 -3
  70. package/docs/functions/PanoSpatialTagPlugin.html +5 -3
  71. package/docs/functions/PanoTagPlugin.html +5 -3
  72. package/docs/functions/PanoVideoPlugin.html +5 -3
  73. package/docs/functions/PipelinePlugin.html +5 -3
  74. package/docs/functions/TopviewFloorplanPlugin.html +5 -3
  75. package/docs/functions/Util.absoluteUrl.html +5 -3
  76. package/docs/functions/Util.getCoordsFromClient.html +5 -3
  77. package/docs/functions/Util.getCoordsFromElement.html +5 -3
  78. package/docs/functions/Util.getFrameTime.html +5 -3
  79. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -3
  80. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -3
  81. package/docs/functions/Util.isAbsoluteURL.html +5 -3
  82. package/docs/functions/Util.isModelLike.html +5 -3
  83. package/docs/functions/Util.isNil.html +5 -3
  84. package/docs/functions/Util.isPanoramaLike.html +5 -3
  85. package/docs/functions/Util.nextFrame.html +5 -3
  86. package/docs/functions/Util.notNil.html +5 -3
  87. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -3
  88. package/docs/functions/Util.tweenProgress.html +5 -3
  89. package/docs/functions/Util.uuid.html +5 -3
  90. package/docs/functions/pluginFlag.html +6 -4
  91. package/docs/index.html +6 -4
  92. package/docs/interfaces/AddTagConfig.html +7 -5
  93. package/docs/interfaces/CSS3DRenderPluginEventMap.html +5 -3
  94. package/docs/interfaces/CSS3DRenderPluginState.html +5 -3
  95. package/docs/interfaces/CameraMovementPluginExportType.html +5 -3
  96. package/docs/interfaces/CruisePluginTypes.Config.html +5 -3
  97. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +5 -3
  98. package/docs/interfaces/CruisePluginTypes.EventMap.html +5 -3
  99. package/docs/interfaces/CruisePluginTypes.MoveAction.html +5 -3
  100. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +5 -3
  101. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +5 -3
  102. package/docs/interfaces/CruisePluginTypes.PluginData.html +5 -3
  103. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -3
  104. package/docs/interfaces/CruisePluginTypes.PluginState.html +5 -3
  105. package/docs/interfaces/EventMap.html +14 -12
  106. package/docs/interfaces/FloorplanBounding.html +5 -3
  107. package/docs/interfaces/FloorplanData.html +5 -3
  108. package/docs/interfaces/FloorplanEntrance.html +5 -3
  109. package/docs/interfaces/FloorplanExtraObject.html +5 -3
  110. package/docs/interfaces/FloorplanExtraObject3D.html +5 -3
  111. package/docs/interfaces/FloorplanFloorData.html +5 -3
  112. package/docs/interfaces/FloorplanImagePosition.html +5 -3
  113. package/docs/interfaces/FloorplanObserver.html +5 -3
  114. package/docs/interfaces/FloorplanOutlineItem.html +5 -3
  115. package/docs/interfaces/FloorplanPosition.html +5 -3
  116. package/docs/interfaces/FloorplanRoomItem.html +5 -3
  117. package/docs/interfaces/FloorplanRoomLabelItem.html +5 -3
  118. package/docs/interfaces/FloorplanServerBounding.html +5 -3
  119. package/docs/interfaces/FloorplanServerComputedData.html +5 -3
  120. package/docs/interfaces/FloorplanServerData.html +5 -3
  121. package/docs/interfaces/FloorplanServerDoorItem.html +5 -3
  122. package/docs/interfaces/FloorplanServerDoorPosition.html +5 -3
  123. package/docs/interfaces/FloorplanServerEntrance.html +5 -3
  124. package/docs/interfaces/FloorplanServerFloorData.html +5 -3
  125. package/docs/interfaces/FloorplanServerImagePosition.html +5 -3
  126. package/docs/interfaces/FloorplanServerObserver.html +5 -3
  127. package/docs/interfaces/FloorplanServerOutlineItem.html +5 -3
  128. package/docs/interfaces/FloorplanServerPosition.html +5 -3
  129. package/docs/interfaces/FloorplanServerRoomItem.html +5 -3
  130. package/docs/interfaces/FloorplanServerRoomLabelItem.html +5 -3
  131. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +5 -3
  132. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +5 -3
  133. package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -3
  134. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -3
  135. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -3
  136. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +5 -3
  137. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -3
  138. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +5 -3
  139. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +5 -3
  140. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +5 -3
  141. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +5 -3
  142. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -3
  143. package/docs/interfaces/GuideLinePluginType.PluginState.html +5 -3
  144. package/docs/interfaces/GuideLinePluginType.Route.html +5 -3
  145. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +5 -3
  146. package/docs/interfaces/HelperOffset.html +5 -3
  147. package/docs/interfaces/ImagePlaneGroup.html +5 -3
  148. package/docs/interfaces/ItemLabelPluginData.html +5 -3
  149. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +5 -3
  150. package/docs/interfaces/ItemLabelPluginParametersType.html +5 -3
  151. package/docs/interfaces/MinMax.html +5 -3
  152. package/docs/interfaces/ModelChassisCompassPluginData.html +5 -3
  153. package/docs/interfaces/ModelChassisCompassPluginExportType.html +5 -3
  154. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +5 -3
  155. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +5 -3
  156. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +5 -3
  157. package/docs/interfaces/ModelItemLabelPluginData.html +5 -3
  158. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +5 -3
  159. package/docs/interfaces/ModelItemLabelPluginParametersType.html +5 -3
  160. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -3
  161. package/docs/interfaces/ModelTVVideoPluginData.html +5 -3
  162. package/docs/interfaces/ModelTVVideoPluginExportType.html +5 -3
  163. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -3
  164. package/docs/interfaces/ModelViewPluginExportType.html +5 -3
  165. package/docs/interfaces/Object3DHelperState.html +5 -3
  166. package/docs/interfaces/ObjectHelperControllers.html +5 -3
  167. package/docs/interfaces/PaintBrushAction.html +5 -3
  168. package/docs/interfaces/PaintBrushConfigs.html +5 -3
  169. package/docs/interfaces/PaintBrushState.html +5 -3
  170. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +5 -3
  171. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -3
  172. package/docs/interfaces/PanoMeasureParameterType.html +5 -3
  173. package/docs/interfaces/PanoMeasurePluginLineJson.html +5 -3
  174. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +5 -3
  175. package/docs/interfaces/PanoMeasurePluginPointJson.html +5 -3
  176. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +5 -3
  177. package/docs/interfaces/PanoRulerPluginExportType.html +5 -3
  178. package/docs/interfaces/PanoRulerPluginOptions.html +5 -3
  179. package/docs/interfaces/PanoRulerPluginParameterType.html +5 -3
  180. package/docs/interfaces/PanoRulerProPluginExportType.html +5 -3
  181. package/docs/interfaces/PanoRulerProPluginOptions.html +5 -3
  182. package/docs/interfaces/PanoRulerProPluginParameterType.html +5 -3
  183. package/docs/interfaces/PanoRulerProPluginState.html +5 -3
  184. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -3
  185. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -3
  186. package/docs/interfaces/PanoSpatialTagPluginData.html +5 -3
  187. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +5 -3
  188. package/docs/interfaces/PanoSpatialTagPluginExportType.html +5 -3
  189. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +5 -3
  190. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +5 -3
  191. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +5 -3
  192. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +5 -3
  193. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -3
  194. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -3
  195. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -3
  196. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +5 -3
  197. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -3
  198. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -3
  199. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +5 -3
  200. package/docs/interfaces/Point.html +5 -3
  201. package/docs/interfaces/Room.html +5 -3
  202. package/docs/interfaces/RoomInfo.html +5 -3
  203. package/docs/interfaces/RoomLabel.html +5 -3
  204. package/docs/interfaces/RoomRules.html +5 -3
  205. package/docs/interfaces/Rooms.html +5 -3
  206. package/docs/interfaces/Scissor.html +5 -3
  207. package/docs/interfaces/State.html +6 -4
  208. package/docs/interfaces/TagCacheInterface.html +22 -13
  209. package/docs/interfaces/TagConfig.html +27 -15
  210. package/docs/interfaces/TagGLTFObjectGroup.html +5 -3
  211. package/docs/interfaces/TagIconUrl.html +5 -3
  212. package/docs/interfaces/TagObjectGroup.html +5 -3
  213. package/docs/interfaces/TagStyle.html +5 -3
  214. package/docs/interfaces/Tags.html +16 -14
  215. package/docs/interfaces/TemporaryState.html +7 -5
  216. package/docs/interfaces/Util.MagnifierParameter.html +5 -3
  217. package/docs/interfaces/Util.MouseGroupParameter.html +5 -3
  218. package/docs/interfaces/Util.PointIntersection.html +5 -3
  219. package/docs/modules/CruisePluginTypes.html +5 -3
  220. package/docs/modules/GuideLineItem.html +5 -3
  221. package/docs/modules/GuideLineModeItem.html +5 -3
  222. package/docs/modules/GuideLinePluginType.html +5 -3
  223. package/docs/modules/PanoVideoPluginType.html +5 -3
  224. package/docs/modules/Util.html +5 -3
  225. package/docs/modules.html +8 -4
  226. package/docs/types/ArrayPosition.html +5 -3
  227. package/docs/types/AudioAppearance.html +5 -3
  228. package/docs/types/AudioTagTypeConfigKey.html +5 -3
  229. package/docs/types/CSS3DRenderExportType.html +5 -3
  230. package/docs/types/CSS3DRenderPluginExportType.html +5 -3
  231. package/docs/types/CSS3DRenderPluginParameterType.html +5 -3
  232. package/docs/types/ClassFunctionParameters.html +5 -3
  233. package/docs/types/Color.html +5 -3
  234. package/docs/types/ContentTypeConfigKey.html +5 -3
  235. package/docs/types/ContentTypeConfigKeySplit.html +6 -4
  236. package/docs/types/ContentTypeMap.html +5 -3
  237. package/docs/types/Create3DDomContainerReturnType.html +5 -3
  238. package/docs/types/Create3DElementReturnType.html +5 -3
  239. package/docs/types/CruisePluginExportType.html +5 -3
  240. package/docs/types/CruisePluginTypes.CruiseData.html +5 -3
  241. package/docs/types/CruisePluginTypes.MoveEffect.html +5 -3
  242. package/docs/types/DeprecatedMediaPlaneProperty.html +5 -3
  243. package/docs/types/DeprecatedTagProperty.html +5 -3
  244. package/docs/types/Direction-1.html +5 -3
  245. package/docs/types/Direction4.html +5 -3
  246. package/docs/types/ElementRenderer.html +5 -3
  247. package/docs/types/FloorplanRuleLabels.html +5 -3
  248. package/docs/types/FloorplanServerRuleLabels.html +5 -3
  249. package/docs/types/GuideLinePluginExportType.html +5 -3
  250. package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -3
  251. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -3
  252. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -3
  253. package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -3
  254. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +5 -3
  255. package/docs/types/GuideLinePluginType.PathItem.html +5 -3
  256. package/docs/types/GuideLinePluginType.PluginData.html +5 -3
  257. package/docs/types/HelperEventMap.html +5 -3
  258. package/docs/types/LoadTagConfig.html +6 -4
  259. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -3
  260. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -3
  261. package/docs/types/MediaData.html +5 -3
  262. package/docs/types/MediaStore.html +6 -4
  263. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -3
  264. package/docs/types/ModelFloorplanPluginParameterType.html +5 -3
  265. package/docs/types/ModelFloorplanPluginReturnType.html +5 -3
  266. package/docs/types/ModelRoomLabelPluginParameters.html +5 -3
  267. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -3
  268. package/docs/types/MoveArgs.html +5 -3
  269. package/docs/types/MoveOpts.html +5 -3
  270. package/docs/types/Object3DHelperEventMap.html +5 -3
  271. package/docs/types/ObjectFit.html +5 -3
  272. package/docs/types/PaintBrushEventMap.html +5 -3
  273. package/docs/types/PanoCompassPluginData.html +5 -3
  274. package/docs/types/PanoCompassPluginExportType.html +5 -3
  275. package/docs/types/PanoCompassPluginParameterType.html +5 -3
  276. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -3
  277. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -3
  278. package/docs/types/PanoIndex.html +5 -3
  279. package/docs/types/PanoMeasurePluginEvent.html +5 -3
  280. package/docs/types/PanoMeasureReturnType.html +5 -3
  281. package/docs/types/PanoSpatialTagPluginId.html +5 -3
  282. package/docs/types/PanoTagPluginExportInterface.html +5 -3
  283. package/docs/types/PanoTagPluginParamsInterface.html +5 -3
  284. package/docs/types/PanoVideoPluginParameterType.html +5 -3
  285. package/docs/types/PanoVideoPluginReturnType.html +5 -3
  286. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -3
  287. package/docs/types/PipelinePluginParameterType.html +5 -3
  288. package/docs/types/PipelinePluginReturnType.html +5 -3
  289. package/docs/types/PlaneTag.html +6 -4
  290. package/docs/types/Point2DTag.html +6 -4
  291. package/docs/types/Point3DTag.html +6 -4
  292. package/docs/types/PointTag.html +6 -4
  293. package/docs/types/PointTagInstance.html +6 -4
  294. package/docs/types/Position.html +5 -3
  295. package/docs/types/RotateArgs.html +5 -3
  296. package/docs/types/RotateOpts.html +5 -3
  297. package/docs/types/RuleLabelsKey.html +5 -3
  298. package/docs/types/RuleLabelsValue.html +5 -3
  299. package/docs/types/StickType.html +5 -3
  300. package/docs/types/Tag.html +6 -4
  301. package/docs/types/Tag2D.html +5 -3
  302. package/docs/types/Tag3D.html +5 -3
  303. package/docs/types/TagConfigByKey.html +365 -0
  304. package/docs/types/TagContentType.html +5 -3
  305. package/docs/types/TagDimensionType.html +5 -3
  306. package/docs/types/TagElement.html +5 -3
  307. package/docs/types/TagEvents.html +6 -4
  308. package/docs/types/TagGLTFObject.html +5 -3
  309. package/docs/types/TagHooks.html +6 -4
  310. package/docs/types/TagId.html +5 -3
  311. package/docs/types/TagInstance.html +5 -3
  312. package/docs/types/TagPointType.html +5 -3
  313. package/docs/types/TagRendererMap.html +5 -3
  314. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -3
  315. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -3
  316. package/docs/types/WorkCode.html +5 -3
  317. package/docs/variables/FLOOR_TYPE_MAP.html +5 -3
  318. package/docs/variables/PLUGIN.html +5 -3
  319. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -3
  320. package/docs/variables/ROOM_TYPE_MAP.html +5 -3
  321. package/docs/variables/defaultGlobalConfig.html +360 -0
  322. package/docs/variables/itemLabelPluginServerParams.html +5 -3
  323. package/docs/variables/modelItemLabelPluginServerParams.html +5 -3
  324. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -3
  325. package/libs/CSS3DRenderPlugin/Controller.js +1 -1
  326. package/libs/CSS3DRenderPlugin/index.js +1 -1
  327. package/libs/CSS3DRenderPlugin/utils/index.js +1 -1
  328. package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +1 -13
  329. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +4 -4
  330. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +1 -1
  331. package/libs/CruisePlugin/Controller.js +6 -3
  332. package/libs/CruisePlugin/index.js +9 -6
  333. package/libs/GuideLinePlugin/Controller.js +8 -5
  334. package/libs/GuideLinePlugin/GuideLineItem.js +6 -3
  335. package/libs/GuideLinePlugin/GuideLineModeItem.js +6 -3
  336. package/libs/GuideLinePlugin/index.js +11 -8
  337. package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
  338. package/libs/ModelTVVideoPlugin/index.js +1 -1
  339. package/libs/Object3DHelperPlugin/Controller.js +1 -1
  340. package/libs/Object3DHelperPlugin/index.js +1 -1
  341. package/libs/PanoCompassPlugin/Controller.js +1 -1
  342. package/libs/PanoCompassPlugin/index.js +1 -1
  343. package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
  344. package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
  345. package/libs/PanoDoorLabelPlugin/index.js +1 -1
  346. package/libs/PanoMeasurePlugin/Components/Controller0.js +1 -1
  347. package/libs/PanoMeasurePlugin/Components/Controller1.js +1 -1
  348. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
  349. package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -1
  350. package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
  351. package/libs/PanoMeasurePlugin/Model/area.js +1 -1
  352. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -1
  353. package/libs/PanoMeasurePlugin/index.js +1 -1
  354. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +1 -1
  355. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
  356. package/libs/PanoSpatialTagPlugin/index.js +1 -1
  357. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
  358. package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
  359. package/libs/PanoTagPlugin/Components/TagContainer.js +1 -1
  360. package/libs/PanoTagPlugin/Components/TagItem.js +1 -1
  361. package/libs/PanoTagPlugin/controller/TagCache.d.ts +6 -3
  362. package/libs/PanoTagPlugin/controller/TagCache.js +17 -21
  363. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +21 -15
  364. package/libs/PanoTagPlugin/controller/TagComputer.js +187 -188
  365. package/libs/PanoTagPlugin/controller/TagRender.js +69 -66
  366. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +7 -2
  367. package/libs/PanoTagPlugin/controller/TagUtil.js +160 -141
  368. package/libs/PanoTagPlugin/controller/index.d.ts +3 -3
  369. package/libs/PanoTagPlugin/controller/index.js +57 -53
  370. package/libs/PanoTagPlugin/index.js +14 -10
  371. package/libs/PanoTagPlugin/typings/controller.d.ts +3 -1
  372. package/libs/PanoTagPlugin/typings/index.js +6 -4
  373. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +2 -2
  374. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +26 -4
  375. package/libs/PanoTagPlugin/typings/tag/TagConfig.js +13 -1
  376. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
  377. package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -1
  378. package/libs/PanoTagPlugin/utils/index.js +15 -15
  379. package/libs/PanoTagPlugin/utils/planeNormal.js +1 -1
  380. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
  381. package/libs/PanoTagPlugin/utils/tagPosition.js +17 -18
  382. package/libs/PanoVideoPlugin/Controller.js +1 -1
  383. package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
  384. package/libs/PanoVideoPlugin/index.js +1 -1
  385. package/libs/PipelinePlugin/Controller.js +1 -1
  386. package/libs/PipelinePlugin/index.js +1 -1
  387. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +1 -1
  388. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +1 -1
  389. package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -1
  390. package/libs/base/BasePlugin.js +1 -1
  391. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
  392. package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
  393. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
  394. package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
  395. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  396. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
  397. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
  398. package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
  399. package/libs/index.js +111 -108
  400. package/libs/shared-utils/five/FiveDomEvents.d.ts +6 -0
  401. package/libs/shared-utils/five/FiveDomEvents.js +53 -48
  402. package/libs/shared-utils/logger.js +1 -1
  403. package/libs/shared-utils/positionToVector3.d.ts +16 -0
  404. package/libs/shared-utils/positionToVector3.js +12 -0
  405. package/libs/shared-utils/safeObj.d.ts +1 -1
  406. package/libs/shared-utils/util.d.ts +1 -0
  407. package/libs/shared-utils/util.js +6 -0
  408. package/package.json +1 -1
@@ -1,30 +1,31 @@
1
- var M = Object.defineProperty, U = Object.defineProperties;
2
- var D = Object.getOwnPropertyDescriptors;
3
- var P = Object.getOwnPropertySymbols;
4
- var R = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
5
- var g = (d, l, e) => l in d ? M(d, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[l] = e, x = (d, l) => {
6
- for (var e in l || (l = {}))
7
- R.call(l, e) && g(d, e, l[e]);
8
- if (P)
9
- for (var e of P(l))
10
- B.call(l, e) && g(d, e, l[e]);
11
- return d;
12
- }, I = (d, l) => U(d, D(l));
13
- var T = (d, l, e) => (g(d, typeof l != "symbol" ? l + "" : l, e), e);
14
- import * as C from "three";
15
- import { is3DTag as j, isMediaModelTag as y } from "../utils/tag/tagCheck.js";
16
- import { tagPosition as V, getTagPosition as k } from "../utils/tagPosition.js";
17
- import { checkRange as h } from "../utils/checkRange.js";
1
+ var F = Object.defineProperty, $ = Object.defineProperties;
2
+ var w = Object.getOwnPropertyDescriptors;
3
+ var V = Object.getOwnPropertySymbols;
4
+ var A = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
5
+ var C = (c, e, i) => e in c ? F(c, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : c[e] = i, M = (c, e) => {
6
+ for (var i in e || (e = {}))
7
+ A.call(e, i) && C(c, i, e[i]);
8
+ if (V)
9
+ for (var i of V(e))
10
+ z.call(e, i) && C(c, i, e[i]);
11
+ return c;
12
+ }, U = (c, e) => $(c, w(e));
13
+ import * as B from "three";
14
+ import { is3DTag as H, isMediaModelTag as P } from "../utils/tag/tagCheck.js";
15
+ import { getTagCenterPosition as x, getTagPosition as N } from "../utils/tagPosition.js";
16
+ import { checkRange as p } from "../utils/checkRange.js";
18
17
  import "hammerjs";
19
18
  import "@realsee/five";
20
19
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
21
20
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
22
21
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
23
- import { notNil as $ } from "../../shared-utils/isNil.js";
24
- import { TagUtil as S } from "./TagUtil.js";
25
- import { getFloorIndex as E } from "../../shared-utils/five/getFloorIndex.js";
26
- import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
22
+ import { notNil as O } from "../../shared-utils/isNil.js";
23
+ import { TagUtil as q } from "./TagUtil.js";
24
+ import { getFloorIndex as L } from "../../shared-utils/five/getFloorIndex.js";
25
+ import { safeObj as k } from "../../shared-utils/safeObj.js";
26
+ import { toArray as W } from "../../shared-utils/util.js";
27
27
  import "../../shared-utils/three/centerPoint.js";
28
+ import "../../shared-utils/positionToVector3.js";
28
29
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
29
30
  import "three/examples/jsm/renderers/CSS3DRenderer";
30
31
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -35,6 +36,7 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
35
36
  import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
36
37
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
37
38
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
39
+ import "../typings/tag/TagConfig.js";
38
40
  import "../../vendor/object-assign-deep/objectAssignDeep.js";
39
41
  import "../tag.config.js";
40
42
  import "../utils/planeNormal.js";
@@ -55,136 +57,123 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
55
57
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
56
58
  import "../../shared-utils/five/FiveDomEvents.js";
57
59
  import "../../shared-utils/threex/domevents/index.js";
58
- class Ue extends S {
60
+ const I = new B.Raycaster();
61
+ class Ne extends q {
59
62
  constructor(e) {
60
63
  super(e);
61
- T(this, "raycaster", new C.Raycaster());
62
64
  }
63
65
  /**
64
66
  * @description: 获取是否可见
65
67
  */
66
- getVisibleByPanoIndex(e, t) {
67
- const n = this.getCache({ panoIndex: t, id: e.id }), s = t != null ? t : this.five.getCurrentState().panoIndex;
68
+ getVisibleByPanoIndex(e, i) {
69
+ const t = this.getCache({ panoIndex: i, id: e.id }), n = i != null ? i : this.five.getCurrentState().panoIndex;
68
70
  if (e.stickType === "Model")
69
71
  return !0;
70
- if (n.visible !== void 0)
71
- return n.visible;
72
+ if (t.visible !== void 0)
73
+ return t.visible;
72
74
  {
73
- const i = (() => {
74
- var c, u, v;
75
- const o = (c = this.getTagConfig(e).visibleConfig) != null ? c : {}, f = this.getDistance(e);
75
+ const s = (() => {
76
+ var f, d, m;
77
+ const o = (f = e.config.visibleConfig) != null ? f : {}, a = this.getDistance(e);
76
78
  if (typeof o == "function")
77
- return { value: o(this.five, { tag: e, distance: f }), reason: "config function result" };
79
+ return { value: o(this.five, { tag: e, distance: a }), reason: "config function result" };
78
80
  if (o.keep === "hidden")
79
81
  return { value: !1, reason: "config.keep is hidden" };
80
82
  if (o.keep === "visible")
81
83
  return { value: !0, reason: "config.keep is visible" };
82
- if (o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && s !== void 0) {
83
- if (Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(s))
84
+ if (o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && n !== void 0) {
85
+ if (Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(n))
84
86
  return {
85
87
  value: !1,
86
- reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${s}, visiblePanoIndex: ${o.visiblePanoIndex}`
88
+ reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${n}, visiblePanoIndex: ${o.visiblePanoIndex}`
87
89
  };
88
- if (o.visiblePanoIndex === "current" && s !== ((u = e.fiveState) == null ? void 0 : u.panoIndex))
90
+ if (o.visiblePanoIndex === "current" && n !== ((d = e.fiveState) == null ? void 0 : d.panoIndex))
89
91
  return {
90
92
  value: !1,
91
- reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${s}, tag.panoIndex: ${(v = e.fiveState) == null ? void 0 : v.panoIndex}`
93
+ reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${n}, tag.panoIndex: ${(m = e.fiveState) == null ? void 0 : m.panoIndex}`
92
94
  };
93
95
  }
94
- if (o.visibleDistance !== void 0 && o.visibleDistance !== "unLimited" && h(f, o.visibleDistance) === !1)
96
+ if (o.visibleDistance !== void 0 && o.visibleDistance !== "unLimited" && p(a, o.visibleDistance) === !1)
95
97
  return {
96
98
  value: !1,
97
- reason: `distance is not in visibleDistance. distance: ${f}, visibleDistance: ${o.visibleDistance}`
99
+ reason: `distance is not in visibleDistance. distance: ${a}, visibleDistance: ${o.visibleDistance}`
98
100
  };
99
101
  if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
100
- if (s === void 0)
102
+ if (n === void 0)
101
103
  return {
102
104
  value: !1,
103
- reason: `intersectRaycaster check failed: fivePanoIndex is ${s}`
105
+ reason: `intersectRaycaster check failed: fivePanoIndex is ${n}`
104
106
  };
105
- const r = this.getRaycasterFromPanoIndex(e, s);
106
- if (!r)
107
- return { value: !1, reason: `intersectRaycaster check failed: raycaster is ${r}` };
108
- const a = this.getTagEnableByIntersect(e, r);
109
- if (a.value === !1)
110
- return a;
107
+ const r = this.getTagEnableByIntersect(e, n);
108
+ if (r.value === !1)
109
+ return r;
111
110
  }
112
- if (o.angleRange && j(e)) {
111
+ if (o.angleRange && H(e)) {
113
112
  const r = this.getAngle(e);
114
- if (h(r, o.angleRange) === !1)
113
+ if (p(r, o.angleRange) === !1)
115
114
  return { value: !1, reason: `angle is not in angleRange. angle: ${r}, angleRange: ${o.angleRange}` };
116
115
  }
117
- return {
116
+ return console.debug(e.id, "全部检测通过", e), {
118
117
  value: !0,
119
118
  reason: "all check passed"
120
119
  };
121
120
  })();
122
- return n.visible = i.value, n.__debug_visible_reason__ = i, n.visible;
121
+ return t.visible = s.value, t.__debug_visible_reason__ = s, t.visible;
123
122
  }
124
123
  }
125
- getVisibleByFiveMode(e, t) {
126
- const n = t != null ? t : this.five.getCurrentState().mode, s = this.getTagConfig(e).visibleConfig;
127
- if (s) {
128
- if (typeof s == "object") {
129
- const i = s == null ? void 0 : s.visibleFiveMode;
130
- return i ? i != null && i.includes(n) ? s.followModelVisibility === !0 && (n === "Floorplan" || n === "Mapview") ? this.getVisibleByFloorIndex(e) : !0 : !1 : n === "Panorama";
131
- } else if (typeof s == "function")
132
- return t === "Panorama";
124
+ getVisibleByFiveMode(e, i) {
125
+ const t = i != null ? i : this.five.getCurrentState().mode, n = this.getTagConfig(e).visibleConfig;
126
+ if (n) {
127
+ if (typeof n == "object") {
128
+ const s = n == null ? void 0 : n.visibleFiveMode;
129
+ return s ? s != null && s.includes(t) ? n.followModelVisibility === !0 && (t === "Floorplan" || t === "Mapview") ? this.getVisibleByFloorIndex(e) : !0 : !1 : t === "Panorama";
130
+ } else if (typeof n == "function")
131
+ return i === "Panorama";
133
132
  } else
134
- return n === "Panorama";
133
+ return t === "Panorama";
135
134
  }
136
- /**
137
- * @description 获取标签当前状态
138
- * @return (this.state.visible && tag.state.visible) ?? true
139
- */
140
- getCurrentVisibleState(e) {
141
- var t;
142
- return (t = this.state.visible && e.state.visible) != null ? t : !0;
143
- }
144
- getVisible(e) {
145
- const t = this.five.getCurrentState(), n = this.getVisibleByFiveMode(e), s = t.mode === "Panorama" ? this.getVisibleByPanoIndex(e, t.panoIndex) : !0;
146
- return n && s;
135
+ getVisible(e, i) {
136
+ var a, f;
137
+ const t = (a = i == null ? void 0 : i.panoIndex) != null ? a : this.five.getCurrentState().panoIndex, n = (f = i == null ? void 0 : i.mode) != null ? f : this.five.getCurrentState().mode, s = this.getVisibleByFiveMode(e), o = n === "Panorama" ? this.getVisibleByPanoIndex(e, t) : !0;
138
+ return s && o;
147
139
  }
148
140
  /** 获取当前点位上模型中的多媒体是否应该展示 */
149
- getModelMedialVisibleByPanoIndex(e) {
141
+ getModelMedialVisibleByPanoIndex(e, i) {
150
142
  if (!this.getCurrentVisibleState(e))
151
143
  return !1;
152
- const t = this.five.getCurrentState().panoIndex, n = this.getCache({ panoIndex: t, id: e.id });
153
- if (n.modelMedialVisible !== void 0)
154
- return n.modelMedialVisible;
155
- const s = this.getRaycasterFromPanoIndex(e, t);
156
- if (!s)
157
- return !1;
158
- const i = this.getTagEnableByIntersect(e, s);
159
- return n.modelMedialVisible = i.value, n.__debug_visible_reason__ = i, i.value !== !1;
144
+ const t = this.getCache({ panoIndex: i, id: e.id });
145
+ if (t.modelMedialVisible !== void 0)
146
+ return t.modelMedialVisible;
147
+ const n = this.getTagEnableByIntersect(e, i);
148
+ return t.modelMedialVisible = n.value, t.__debug_visible_reason__ = n, n.value !== !1;
160
149
  }
161
150
  /**
162
151
  * @description: 获取是否展开
163
152
  */
164
- getUnfoldedByPanoIndex(e, t) {
153
+ getUnfoldedByPanoIndex(e, i) {
165
154
  if (!this.getVisibleByPanoIndex(e))
166
155
  return;
167
- const s = this.getCache({ panoIndex: t, id: e.id });
168
- if (s.unfolded !== void 0)
169
- return s.unfolded;
156
+ const n = this.getCache({ panoIndex: i, id: e.id });
157
+ if (n.unfolded !== void 0)
158
+ return n.unfolded;
170
159
  {
171
- const i = this.getTagConfig(e).unfoldedConfig;
172
- if (!i)
160
+ const s = this.getTagConfig(e).unfoldedConfig;
161
+ if (!s)
173
162
  return;
174
163
  const o = (() => {
175
- const c = this.getDistance(e);
176
- if (typeof i == "function")
177
- return i(this.five, { tag: e, distance: c });
178
- if (i.keep === "folded")
164
+ const f = this.getDistance(e);
165
+ if (typeof s == "function")
166
+ return s(this.five, { tag: e, distance: f });
167
+ if (s.keep === "folded")
179
168
  return !1;
180
- if (i.keep === "unfolded")
169
+ if (s.keep === "unfolded")
181
170
  return !0;
182
- if (i.unfoldDistance && h(c, i.unfoldDistance) === !1)
171
+ if (s.unfoldDistance && p(f, s.unfoldDistance) === !1)
183
172
  return !1;
184
173
  })();
185
- s.unfolded = o;
186
- const f = this.getUnfoldedByCamera(e);
187
- return f !== void 0 ? f : s.unfolded;
174
+ n.unfolded = o;
175
+ const a = this.getUnfoldedByCamera(e);
176
+ return a !== void 0 ? a : n.unfolded;
188
177
  }
189
178
  }
190
179
  /**
@@ -193,36 +182,36 @@ class Ue extends S {
193
182
  getUnfoldedByCamera(e) {
194
183
  return this.getVisible(e) ? (() => {
195
184
  var o;
196
- const s = this.getDistance(e), i = this.getTagConfig(e).unfoldedConfig;
197
- if (i) {
198
- if (typeof i == "function")
199
- return i(this.five, { tag: e, distance: s });
200
- if (i.keep === "folded")
185
+ const n = this.getDistance(e), s = this.getTagConfig(e).unfoldedConfig;
186
+ if (s) {
187
+ if (typeof s == "function")
188
+ return s(this.five, { tag: e, distance: n });
189
+ if (s.keep === "folded")
201
190
  return !1;
202
- if (i.keep === "unfolded")
191
+ if (s.keep === "unfolded")
203
192
  return !0;
204
- if (i.autoUnfold === void 0 || i.autoUnfold === !1 || i.autoUnfold.enable === !1 || !i.autoUnfold.strategy)
193
+ if (s.autoUnfold === void 0 || s.autoUnfold === !1 || s.autoUnfold.enable === !1 || !s.autoUnfold.strategy)
205
194
  return;
206
- if (i.autoUnfold.strategy === "ScreenPostion") {
207
- const f = this.getTagProject(e);
208
- if (f && h(f.x, i.autoUnfold.autoUnfoldProjectX) === !1)
195
+ if (s.autoUnfold.strategy === "ScreenPostion") {
196
+ const a = this.getTagProject(e);
197
+ if (a && p(a.x, s.autoUnfold.autoUnfoldProjectX) === !1)
209
198
  return !1;
210
199
  }
211
- if (i.autoUnfold.strategy === "MinimumDistance") {
212
- const u = this.filterPointTag.filter((r) => this.getVisible(r)).filter((r) => {
213
- const a = this.getTagProject(r);
214
- if (!a)
200
+ if (s.autoUnfold.strategy === "MinimumDistance") {
201
+ const d = this.filterPointTag.filter((r) => this.getVisible(r)).filter((r) => {
202
+ const l = this.getTagProject(r);
203
+ if (!l)
215
204
  return !1;
216
- const { x: p, y: b, z: m } = a;
217
- return !(Math.abs(m) > 1 || Math.abs(p) > 1 || Math.abs(b) > 1);
218
- }).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: a }) => {
219
- var p, b;
220
- return !(typeof a != "object" || a.keep || a.autoUnfold === !1 || ((p = a.autoUnfold) == null ? void 0 : p.enable) === !1 || ((b = a.autoUnfold) == null ? void 0 : b.strategy) !== "MinimumDistance");
221
- }).map((r) => I(x({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: a }) => {
222
- var p, b;
223
- return !(r === void 0 || typeof a != "object" || a.autoUnfold === !1 || ((p = a.autoUnfold) == null ? void 0 : p.enable) === !1 || ((b = a.autoUnfold) == null ? void 0 : b.strategy) !== "MinimumDistance" || a.autoUnfold.distance && h(r, a.autoUnfold.distance) === !1);
224
- }).sort((r, a) => r.distance - a.distance).findIndex((r) => r.id === e.id);
225
- if (u === -1 || u <= ((o = i.autoUnfold.maxNumber) != null ? o : 1) - 1 === !1)
205
+ const { x: u, y: v, z: b } = l;
206
+ return !(Math.abs(b) > 1 || Math.abs(u) > 1 || Math.abs(v) > 1);
207
+ }).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: l }) => {
208
+ var u, v;
209
+ return !(typeof l != "object" || l.keep || l.autoUnfold === !1 || ((u = l.autoUnfold) == null ? void 0 : u.enable) === !1 || ((v = l.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance");
210
+ }).map((r) => U(M({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: l }) => {
211
+ var u, v;
212
+ return !(r === void 0 || typeof l != "object" || l.autoUnfold === !1 || ((u = l.autoUnfold) == null ? void 0 : u.enable) === !1 || ((v = l.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance" || l.autoUnfold.distance && p(r, l.autoUnfold.distance) === !1);
213
+ }).sort((r, l) => r.distance - l.distance).findIndex((r) => r.id === e.id);
214
+ if (d === -1 || d <= ((o = s.autoUnfold.maxNumber) != null ? o : 1) - 1 === !1)
226
215
  return !1;
227
216
  }
228
217
  return !0;
@@ -230,15 +219,15 @@ class Ue extends S {
230
219
  })() : void 0;
231
220
  }
232
221
  sort(e) {
233
- return e.sort((t, n) => {
234
- const s = this.getDistance(t), i = this.getDistance(n);
235
- return s === void 0 || i === void 0 ? 0 : i - s;
222
+ return e.sort((i, t) => {
223
+ const n = this.getDistance(i), s = this.getDistance(t);
224
+ return n === void 0 || s === void 0 ? 0 : s - n;
236
225
  });
237
226
  }
238
227
  setTagZIndex(e) {
239
- return e.forEach((t) => {
240
- const n = this.getDistance(t);
241
- t.zIndex = Math.round((n != null ? n : 0) * 100);
228
+ return e.forEach((i) => {
229
+ const t = this.getDistance(i);
230
+ i.zIndex = Math.round((t != null ? t : 0) * 100);
242
231
  });
243
232
  }
244
233
  /**
@@ -246,52 +235,52 @@ class Ue extends S {
246
235
  */
247
236
  setPointTagPosition() {
248
237
  const e = this.filterPointTag;
249
- e.length !== 0 && e.forEach((t) => {
250
- var s;
251
- if (!((s = t.state) != null && s.visible)) {
252
- t.screenPosition = null;
238
+ e.length !== 0 && e.forEach((i) => {
239
+ var n;
240
+ if (!((n = i.state) != null && n.visible)) {
241
+ i.screenPosition = null;
253
242
  return;
254
243
  }
255
- const n = this.getTagProject(t);
256
- if (!n) {
257
- t.screenPosition = null;
244
+ const t = this.getTagProject(i);
245
+ if (!t) {
246
+ i.screenPosition = null;
258
247
  return;
259
248
  }
260
- t.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 };
249
+ i.screenPosition = { leftPercent: (t.x + 1) / 2 * 100, topPercent: (-t.y + 1) / 2 * 100 };
261
250
  });
262
251
  }
263
252
  setVisible() {
264
253
  this.tags.forEach((e) => {
265
- const t = this.getVisible(e);
266
- e.state && (e.state.visible = t);
254
+ const i = this.getVisible(e);
255
+ e.state && (e.state.visible = i);
267
256
  });
268
257
  }
269
258
  setVisibleByPanoIndex() {
270
259
  this.tags.forEach((e) => {
271
- const t = this.getVisibleByPanoIndex(e);
272
- e.state && (e.state.visible = t);
260
+ const i = this.getVisibleByPanoIndex(e);
261
+ e.state && (e.state.visible = i);
273
262
  });
274
263
  }
275
264
  setModelMedialVisible() {
276
265
  const e = this.five.getCurrentState().mode;
277
- this.tags.forEach((t) => {
278
- var s;
279
- if (!y(t))
266
+ this.tags.forEach((i) => {
267
+ var n;
268
+ if (!P(i))
280
269
  return;
281
- if (!((s = t.model) != null && s.object)) {
282
- t.mediaVisible = !1;
270
+ if (!((n = i.model) != null && n.object)) {
271
+ i.mediaVisible = !1;
283
272
  return;
284
273
  }
285
- const n = e === "Panorama" ? this.getModelMedialVisibleByPanoIndex(t) : !0;
286
- t.mediaVisible = n;
274
+ const t = e === "Panorama" ? this.getModelMedialVisibleByPanoIndex(i) : !0;
275
+ i.mediaVisible = t;
287
276
  });
288
277
  }
289
278
  setUnfoldedByPanoIndex() {
290
279
  this.tags.forEach((e) => {
291
- const t = this.getUnfoldedByPanoIndex(e);
292
- if (e.state && (t !== void 0 && (e.state.unfolded = t), t && !e.state.visible)) {
293
- const n = this.getTagConfig(e);
294
- typeof n.unfoldedConfig == "object" && n.unfoldedConfig.autoFoldWhenHide !== !1 && (e.state.unfolded = !1);
280
+ const i = this.getUnfoldedByPanoIndex(e);
281
+ if (e.state && (i !== void 0 && (e.state.unfolded = i), i && !e.state.visible)) {
282
+ const t = this.getTagConfig(e);
283
+ typeof t.unfoldedConfig == "object" && t.unfoldedConfig.autoFoldWhenHide !== !1 && (e.state.unfolded = !1);
295
284
  }
296
285
  });
297
286
  }
@@ -301,56 +290,66 @@ class Ue extends S {
301
290
  getTagProject(e) {
302
291
  if (!this.getVisible(e))
303
292
  return;
304
- const n = V(e.position);
305
- if (!n)
293
+ const t = x(e);
294
+ if (!t)
306
295
  return;
307
- const { x: s, y: i, z: o } = n.project(this.five.camera);
296
+ const { x: n, y: s, z: o } = t.project(this.five.camera);
308
297
  if (!(o > 1))
309
- return { x: s, y: i, z: o };
298
+ return { x: n, y: s, z: o };
310
299
  }
311
300
  /** 通过射线检测标签可用性 */
312
- getTagEnableByIntersect(e, t) {
313
- var u, v, r;
314
- const n = (u = this.getTagConfig(e).visibleConfig) != null ? u : {}, s = this.getDistance(e), [i] = this.five.model.intersectRaycaster(t), o = (() => {
315
- if (!y(e))
316
- return;
317
- const a = this.tags.filter(y).map((b) => {
318
- var m;
319
- return (m = b.model) == null ? void 0 : m.object;
320
- }).filter($);
321
- return t.intersectObjects(a, !0)[0];
322
- })(), f = (() => {
323
- var a;
324
- return typeof n == "object" && typeof n.intersectRaycaster == "object" && (a = n.intersectRaycaster.distanceAccuracy) != null ? a : 0.01;
325
- })(), c = Math.min((v = i == null ? void 0 : i.distance) != null ? v : 1 / 0, (r = o == null ? void 0 : o.distance) != null ? r : 1 / 0);
326
- return c + f < s ? {
301
+ getTagEnableByIntersect(e, i) {
302
+ var d, m, r, l, u, v;
303
+ const t = k(k((d = this.getTagConfig(e).visibleConfig) != null ? d : {}).intersectRaycaster), n = i != null ? i : this.five.getCurrentState().panoIndex, s = (m = this.five.work.observers[n]) == null ? void 0 : m.position;
304
+ if (s === void 0)
305
+ return { value: !1, reason: { type: "observerPosition is undefined", fivePanoIndex: n } };
306
+ const o = W(
307
+ (() => {
308
+ var h;
309
+ const b = (h = t.checkPoints) != null ? h : "center";
310
+ return b === "center" ? x(e) : b === "corner" ? N(e) : Array.isArray(b) ? b : [];
311
+ })()
312
+ );
313
+ let a = 0, f = 0;
314
+ for (const b of o) {
315
+ const h = new B.Vector3().subVectors(b, s).normalize();
316
+ I.set(s, h);
317
+ const D = s.distanceTo(b), [g] = this.five.model.intersectRaycaster(I), y = (() => {
318
+ if (!P(e))
319
+ return;
320
+ const S = this.tags.filter(P).map((_) => {
321
+ var T;
322
+ return (T = _.model) == null ? void 0 : T.object;
323
+ }).filter(O), [E] = I.intersectObjects(S, !0);
324
+ return E;
325
+ })(), j = (r = t.distanceAccuracy) != null ? r : 0.01;
326
+ Math.min((l = g == null ? void 0 : g.distance) != null ? l : 1 / 0, (u = y == null ? void 0 : y.distance) != null ? u : 1 / 0) + j >= D ? a++ : f++;
327
+ const R = (v = t.needPassed) != null ? v : 1;
328
+ if (a >= R)
329
+ return { value: !0 };
330
+ }
331
+ return f === 0 ? { value: !0 } : {
327
332
  value: !1,
328
- reason: `intersectRaycaster check failed: distance is ${s}, intersection.distance is ${i == null ? void 0 : i.distance}, intersection.point is ${i == null ? void 0 : i.point.toArray()},
329
- customModelIntersection.point is ${o == null ? void 0 : o.point.toArray()}, minIntersectionDistance is ${c}`
330
- } : { value: !0, reason: "" };
331
- }
332
- /** 获取点位看向标签的射线 */
333
- getRaycasterFromPanoIndex(e, t) {
334
- var o;
335
- const n = (o = this.five.work.observers[t]) == null ? void 0 : o.position;
336
- if (n === void 0)
337
- throw new Error(`getVisible(): observerPosition is ${n}`);
338
- const s = V(e.position);
339
- if (!s)
340
- return;
341
- const i = s.sub(n).normalize();
342
- return this.raycaster.set(n, i), this.raycaster;
333
+ reason: {
334
+ type: "intersectRaycaster check failed",
335
+ passedCount: a,
336
+ needPassed: t.needPassed
337
+ }
338
+ };
343
339
  }
344
340
  /** 检测是否匹配当前楼层 */
345
341
  getVisibleByFloorIndex(e) {
346
- var i, o, f, c, u, v, r;
347
- let t = 0;
348
- const n = (i = e.fiveState) == null ? void 0 : i.panoIndex;
349
- n !== void 0 ? t = (o = this.five.work.observers[n]) == null ? void 0 : o.floorIndex : t = E(this.five.work.observers, (r = (v = (c = (f = e.model) == null ? void 0 : f.object) == null ? void 0 : c.position) != null ? v : (u = e.mediaPlane) == null ? void 0 : u.position) != null ? r : k(e));
350
- const s = this.five.model.shownFloor;
351
- return s === null || s === t;
342
+ var s, o, a, f, d, m, r;
343
+ let i = 0;
344
+ const t = (s = e.fiveState) == null ? void 0 : s.panoIndex;
345
+ t !== void 0 ? i = (o = this.five.work.observers[t]) == null ? void 0 : o.floorIndex : i = L(
346
+ this.five.work.observers,
347
+ (r = (m = (f = (a = e.model) == null ? void 0 : a.object) == null ? void 0 : f.position) != null ? m : (d = e.mediaPlane) == null ? void 0 : d.position) != null ? r : x(e)
348
+ );
349
+ const n = this.five.model.shownFloor;
350
+ return n === null || n === i;
352
351
  }
353
352
  }
354
353
  export {
355
- Ue as TagComputer
354
+ Ne as TagComputer
356
355
  };