@realsee/dnalogel 3.2.0 → 3.3.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 (377) hide show
  1. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +8 -4
  2. package/dist/PanoTagPlugin/controller/index.d.ts +1 -1
  3. package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +1 -0
  4. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
  5. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
  6. package/dist/index.cjs.js +55 -55
  7. package/dist/index.js +4088 -4068
  8. package/dist/index.umd.js +52 -52
  9. package/dist/shared-utils/five/getFloorIndex.d.ts +2 -8
  10. package/dist/shared-utils/five/transformPosition.d.ts +2 -0
  11. package/docs/.nojekyll +1 -0
  12. package/docs/assets/highlight.css +120 -0
  13. package/docs/assets/main.js +58 -0
  14. package/docs/assets/search.js +1 -0
  15. package/docs/assets/style.css +1367 -0
  16. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +725 -0
  17. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +678 -0
  18. package/docs/classes/CSS3DRender.html +773 -0
  19. package/docs/classes/CruisePluginController.html +672 -0
  20. package/docs/classes/GuideLineItem.GuideLineItem.html +476 -0
  21. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +856 -0
  22. package/docs/classes/Magnifier.html +480 -0
  23. package/docs/classes/ModelRoomLabelController.html +398 -0
  24. package/docs/classes/Object3DHelperController.html +640 -0
  25. package/docs/classes/PaintBrush.html +502 -0
  26. package/docs/classes/PanoMeasurePluginLine.html +522 -0
  27. package/docs/classes/PanoMeasurePluginModel.html +571 -0
  28. package/docs/classes/PanoMeasurePluginPoint.html +362 -0
  29. package/docs/classes/PanoMeasurePluginPolyline.html +567 -0
  30. package/docs/classes/PanoTagPluginController.html +1077 -0
  31. package/docs/classes/Util.BetterTween.html +416 -0
  32. package/docs/classes/Util.Interval.html +432 -0
  33. package/docs/classes/Util.LineSegments.html +384 -0
  34. package/docs/classes/Util.Magnifier.html +503 -0
  35. package/docs/classes/Util.Object3D.html +406 -0
  36. package/docs/classes/Util.PointDomHelper.html +407 -0
  37. package/docs/classes/Util.PointHelper.html +398 -0
  38. package/docs/classes/Util.PointSelectorHelper.html +454 -0
  39. package/docs/classes/Util.Rectangle.html +455 -0
  40. package/docs/enums/CameraMovementEffect.html +310 -0
  41. package/docs/enums/ContentType.html +446 -0
  42. package/docs/enums/DIRECTION.html +320 -0
  43. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +320 -0
  44. package/docs/enums/DimensionType.html +310 -0
  45. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +313 -0
  46. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +320 -0
  47. package/docs/enums/PaintBrushTypeEnum.html +313 -0
  48. package/docs/enums/PointType.html +310 -0
  49. package/docs/enums/Rotation.html +317 -0
  50. package/docs/functions/AreaMakerPlugin.html +290 -0
  51. package/docs/functions/CSS3DRenderPlugin.html +288 -0
  52. package/docs/functions/CameraMovementPlugin.html +293 -0
  53. package/docs/functions/CruisePlugin.html +290 -0
  54. package/docs/functions/CurrentPanoImagePlugin.html +290 -0
  55. package/docs/functions/GuideLinePlugin.html +290 -0
  56. package/docs/functions/ItemLabelPlugin.html +290 -0
  57. package/docs/functions/MapviewFloorplanPlugin.html +290 -0
  58. package/docs/functions/ModelChassisCompassPlugin.html +293 -0
  59. package/docs/functions/ModelEntryDoorGuidePlugin.html +293 -0
  60. package/docs/functions/ModelFloorplanPlugin.html +290 -0
  61. package/docs/functions/ModelItemLabelPlugin.html +290 -0
  62. package/docs/functions/ModelRoomLabelPlugin.html +288 -0
  63. package/docs/functions/ModelTVVideoPlugin.html +290 -0
  64. package/docs/functions/ModelViewPlugin.html +293 -0
  65. package/docs/functions/Object3DHelperPlugin.html +288 -0
  66. package/docs/functions/PanoCompassPlugin.html +290 -0
  67. package/docs/functions/PanoCursorRaycasterPlugin.html +294 -0
  68. package/docs/functions/PanoDoorLabelPlugin.html +290 -0
  69. package/docs/functions/PanoFloorplanRadarPlugin.html +290 -0
  70. package/docs/functions/PanoMeasurePlugin.html +290 -0
  71. package/docs/functions/PanoRulerPlugin.html +293 -0
  72. package/docs/functions/PanoRulerProPlugin.html +293 -0
  73. package/docs/functions/PanoSpatialTagPlugin.html +293 -0
  74. package/docs/functions/PanoTagPlugin.html +295 -0
  75. package/docs/functions/PanoVideoPlugin.html +299 -0
  76. package/docs/functions/PipelinePlugin.html +288 -0
  77. package/docs/functions/TopviewFloorplanPlugin.html +290 -0
  78. package/docs/functions/Util.absoluteUrl.html +326 -0
  79. package/docs/functions/Util.checkFiveModelLoaded.html +329 -0
  80. package/docs/functions/Util.equal.html +338 -0
  81. package/docs/functions/Util.getCoordsFromClient.html +328 -0
  82. package/docs/functions/Util.getCoordsFromElement.html +328 -0
  83. package/docs/functions/Util.getFrameTime.html +320 -0
  84. package/docs/functions/Util.getIntersectFromRelativePosition.html +328 -0
  85. package/docs/functions/Util.getRaycasterFromFivePointer.html +328 -0
  86. package/docs/functions/Util.isAbsoluteURL.html +321 -0
  87. package/docs/functions/Util.isModelLike.html +321 -0
  88. package/docs/functions/Util.isNil.html +329 -0
  89. package/docs/functions/Util.isPanoramaLike.html +321 -0
  90. package/docs/functions/Util.nextFrame.html +334 -0
  91. package/docs/functions/Util.notNil.html +329 -0
  92. package/docs/functions/Util.requestAnimationFrameInterval.html +350 -0
  93. package/docs/functions/Util.tweenProgress.html +323 -0
  94. package/docs/functions/Util.uuid.html +319 -0
  95. package/docs/functions/pluginFlag.html +288 -0
  96. package/docs/index.html +354 -0
  97. package/docs/interfaces/AddTagConfig.html +303 -0
  98. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +329 -0
  99. package/docs/interfaces/AreaMakerPluginType.Config.html +334 -0
  100. package/docs/interfaces/AreaMakerPluginType.EventMap.html +620 -0
  101. package/docs/interfaces/AreaMakerPluginType.Params.html +333 -0
  102. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +383 -0
  103. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +368 -0
  104. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +333 -0
  105. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +326 -0
  106. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +325 -0
  107. package/docs/interfaces/AreaMakerPluginType.State.html +354 -0
  108. package/docs/interfaces/CSS3DRenderPluginEventMap.html +449 -0
  109. package/docs/interfaces/CSS3DRenderPluginState.html +325 -0
  110. package/docs/interfaces/CameraMovementPluginExportType.html +358 -0
  111. package/docs/interfaces/CruisePluginTypes.Config.html +359 -0
  112. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +361 -0
  113. package/docs/interfaces/CruisePluginTypes.EventMap.html +696 -0
  114. package/docs/interfaces/CruisePluginTypes.MoveAction.html +385 -0
  115. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +421 -0
  116. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +411 -0
  117. package/docs/interfaces/CruisePluginTypes.PluginData.html +351 -0
  118. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +319 -0
  119. package/docs/interfaces/CruisePluginTypes.PluginState.html +408 -0
  120. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +382 -0
  121. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +521 -0
  122. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +323 -0
  123. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +315 -0
  124. package/docs/interfaces/CurrentPanoImagePluginType.State.html +337 -0
  125. package/docs/interfaces/EventMap.html +542 -0
  126. package/docs/interfaces/FloorplanBounding.html +332 -0
  127. package/docs/interfaces/FloorplanData.html +335 -0
  128. package/docs/interfaces/FloorplanEntrance.html +360 -0
  129. package/docs/interfaces/FloorplanExtraObject.html +350 -0
  130. package/docs/interfaces/FloorplanExtraObject3D.html +339 -0
  131. package/docs/interfaces/FloorplanFloorData.html +328 -0
  132. package/docs/interfaces/FloorplanImagePosition.html +314 -0
  133. package/docs/interfaces/FloorplanObserver.html +332 -0
  134. package/docs/interfaces/FloorplanOutlineItem.html +328 -0
  135. package/docs/interfaces/FloorplanPosition.html +314 -0
  136. package/docs/interfaces/FloorplanRoomItem.html +379 -0
  137. package/docs/interfaces/FloorplanRoomLabelItem.html +320 -0
  138. package/docs/interfaces/FloorplanServerBounding.html +332 -0
  139. package/docs/interfaces/FloorplanServerComputedData.html +331 -0
  140. package/docs/interfaces/FloorplanServerData.html +314 -0
  141. package/docs/interfaces/FloorplanServerDoorItem.html +331 -0
  142. package/docs/interfaces/FloorplanServerDoorPosition.html +317 -0
  143. package/docs/interfaces/FloorplanServerEntrance.html +360 -0
  144. package/docs/interfaces/FloorplanServerFloorData.html +328 -0
  145. package/docs/interfaces/FloorplanServerImagePosition.html +314 -0
  146. package/docs/interfaces/FloorplanServerObserver.html +332 -0
  147. package/docs/interfaces/FloorplanServerOutlineItem.html +328 -0
  148. package/docs/interfaces/FloorplanServerPosition.html +314 -0
  149. package/docs/interfaces/FloorplanServerRoomItem.html +391 -0
  150. package/docs/interfaces/FloorplanServerRoomLabelItem.html +320 -0
  151. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +323 -0
  152. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +362 -0
  153. package/docs/interfaces/GuideLinePluginType.EventMap.html +526 -0
  154. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +357 -0
  155. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +348 -0
  156. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +415 -0
  157. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +337 -0
  158. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +347 -0
  159. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +483 -0
  160. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +344 -0
  161. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +483 -0
  162. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +309 -0
  163. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +330 -0
  164. package/docs/interfaces/GuideLinePluginType.PluginState.html +355 -0
  165. package/docs/interfaces/GuideLinePluginType.Route.html +371 -0
  166. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +353 -0
  167. package/docs/interfaces/HelperOffset.html +332 -0
  168. package/docs/interfaces/ImagePlaneGroup.html +306 -0
  169. package/docs/interfaces/ItemLabelPluginData.html +303 -0
  170. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +388 -0
  171. package/docs/interfaces/ItemLabelPluginParametersType.html +324 -0
  172. package/docs/interfaces/MinMax.html +310 -0
  173. package/docs/interfaces/ModelChassisCompassPluginData.html +310 -0
  174. package/docs/interfaces/ModelChassisCompassPluginExportType.html +346 -0
  175. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +310 -0
  176. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +317 -0
  177. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +354 -0
  178. package/docs/interfaces/ModelItemLabelPluginData.html +303 -0
  179. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +388 -0
  180. package/docs/interfaces/ModelItemLabelPluginParametersType.html +310 -0
  181. package/docs/interfaces/ModelRoomLabelPluginData.html +303 -0
  182. package/docs/interfaces/ModelTVVideoPluginData.html +324 -0
  183. package/docs/interfaces/ModelTVVideoPluginExportType.html +348 -0
  184. package/docs/interfaces/ModelTVVideoPluginParameterType.html +303 -0
  185. package/docs/interfaces/ModelViewPluginExportType.html +416 -0
  186. package/docs/interfaces/Object3DHelperState.html +317 -0
  187. package/docs/interfaces/ObjectHelperControllers.html +324 -0
  188. package/docs/interfaces/PaintBrushAction.html +363 -0
  189. package/docs/interfaces/PaintBrushConfigs.html +361 -0
  190. package/docs/interfaces/PaintBrushState.html +345 -0
  191. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +425 -0
  192. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +282 -0
  193. package/docs/interfaces/PanoMeasureParameterType.html +449 -0
  194. package/docs/interfaces/PanoMeasurePluginLineJson.html +317 -0
  195. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +314 -0
  196. package/docs/interfaces/PanoMeasurePluginPointJson.html +310 -0
  197. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +320 -0
  198. package/docs/interfaces/PanoRulerPluginExportType.html +377 -0
  199. package/docs/interfaces/PanoRulerPluginOptions.html +326 -0
  200. package/docs/interfaces/PanoRulerPluginParameterType.html +317 -0
  201. package/docs/interfaces/PanoRulerProPluginExportType.html +353 -0
  202. package/docs/interfaces/PanoRulerProPluginOptions.html +323 -0
  203. package/docs/interfaces/PanoRulerProPluginParameterType.html +310 -0
  204. package/docs/interfaces/PanoRulerProPluginState.html +317 -0
  205. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +296 -0
  206. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +285 -0
  207. package/docs/interfaces/PanoSpatialTagPluginData.html +353 -0
  208. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +335 -0
  209. package/docs/interfaces/PanoSpatialTagPluginExportType.html +431 -0
  210. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +331 -0
  211. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +352 -0
  212. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +338 -0
  213. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +331 -0
  214. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +323 -0
  215. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +341 -0
  216. package/docs/interfaces/PanoVideoPluginType.PluginData.html +314 -0
  217. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +420 -0
  218. package/docs/interfaces/PanoVideoPluginType.PluginState.html +314 -0
  219. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +349 -0
  220. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +368 -0
  221. package/docs/interfaces/Point.html +317 -0
  222. package/docs/interfaces/Room.html +324 -0
  223. package/docs/interfaces/RoomInfo.html +310 -0
  224. package/docs/interfaces/RoomLabel.html +386 -0
  225. package/docs/interfaces/RoomRules.html +285 -0
  226. package/docs/interfaces/Rooms.html +285 -0
  227. package/docs/interfaces/Scissor.html +344 -0
  228. package/docs/interfaces/State.html +331 -0
  229. package/docs/interfaces/TagCacheInterface.html +362 -0
  230. package/docs/interfaces/TagConfig.html +565 -0
  231. package/docs/interfaces/TagGLTFObjectGroup.html +306 -0
  232. package/docs/interfaces/TagIconUrl.html +363 -0
  233. package/docs/interfaces/TagObjectGroup.html +306 -0
  234. package/docs/interfaces/TagStyle.html +316 -0
  235. package/docs/interfaces/Tags.html +2688 -0
  236. package/docs/interfaces/TemporaryState.html +303 -0
  237. package/docs/interfaces/Util.MagnifierParameter.html +391 -0
  238. package/docs/interfaces/Util.MouseGroupParameter.html +350 -0
  239. package/docs/interfaces/Util.PointIntersection.html +365 -0
  240. package/docs/modules/AreaMakerPluginType.html +323 -0
  241. package/docs/modules/CruisePluginTypes.html +328 -0
  242. package/docs/modules/CurrentPanoImagePluginType.html +297 -0
  243. package/docs/modules/GuideLineItem.html +289 -0
  244. package/docs/modules/GuideLineModeItem.html +294 -0
  245. package/docs/modules/GuideLinePluginType.html +350 -0
  246. package/docs/modules/PanoVideoPluginType.html +301 -0
  247. package/docs/modules/Util.html +351 -0
  248. package/docs/modules.html +540 -0
  249. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +331 -0
  250. package/docs/types/AreaMakerPluginType.PluginData.html +301 -0
  251. package/docs/types/AreaMakerPluginType.ServerData.html +301 -0
  252. package/docs/types/ArrayPosition.html +279 -0
  253. package/docs/types/AudioAppearance.html +279 -0
  254. package/docs/types/AudioTagTypeConfigKey.html +279 -0
  255. package/docs/types/CSS3DRenderExportType.html +279 -0
  256. package/docs/types/CSS3DRenderPluginExportType.html +279 -0
  257. package/docs/types/CSS3DRenderPluginParameterType.html +279 -0
  258. package/docs/types/ClassFunctionParameters.html +286 -0
  259. package/docs/types/Color.html +279 -0
  260. package/docs/types/ContentTypeConfigKey.html +279 -0
  261. package/docs/types/ContentTypeConfigKeySplit.html +279 -0
  262. package/docs/types/ContentTypeMap.html +279 -0
  263. package/docs/types/Create3DDomContainerReturnType.html +279 -0
  264. package/docs/types/Create3DElementReturnType.html +279 -0
  265. package/docs/types/CruisePluginExportType.html +279 -0
  266. package/docs/types/CruisePluginTypes.CruiseData.html +318 -0
  267. package/docs/types/CruisePluginTypes.MoveEffect.html +295 -0
  268. package/docs/types/CurrentPanoImagePluginExportType.html +279 -0
  269. package/docs/types/DeprecatedMediaPlaneProperty.html +291 -0
  270. package/docs/types/DeprecatedTagProperty.html +294 -0
  271. package/docs/types/Direction-1.html +279 -0
  272. package/docs/types/Direction4.html +279 -0
  273. package/docs/types/ElementRenderer.html +303 -0
  274. package/docs/types/FloorplanRuleLabels.html +282 -0
  275. package/docs/types/FloorplanServerRuleLabels.html +279 -0
  276. package/docs/types/GuideLinePluginExportType.html +279 -0
  277. package/docs/types/GuideLinePluginType.GuideLineItem.html +352 -0
  278. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +373 -0
  279. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +306 -0
  280. package/docs/types/GuideLinePluginType.GuideLineStyle.html +309 -0
  281. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +309 -0
  282. package/docs/types/GuideLinePluginType.PathItem.html +309 -0
  283. package/docs/types/GuideLinePluginType.PluginData.html +318 -0
  284. package/docs/types/HelperEventMap.html +517 -0
  285. package/docs/types/LoadTagConfig.html +279 -0
  286. package/docs/types/MapviewFloorplanPluginParameterType.html +279 -0
  287. package/docs/types/MapviewFloorplanPluginReturnType.html +279 -0
  288. package/docs/types/MediaData.html +295 -0
  289. package/docs/types/MediaStore.html +284 -0
  290. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +286 -0
  291. package/docs/types/ModelFloorplanPluginParameterType.html +279 -0
  292. package/docs/types/ModelFloorplanPluginReturnType.html +279 -0
  293. package/docs/types/ModelId.html +279 -0
  294. package/docs/types/ModelRoomLabelPluginParameters.html +279 -0
  295. package/docs/types/ModelRoomLabelPluginReturnType.html +279 -0
  296. package/docs/types/MoveArgs.html +289 -0
  297. package/docs/types/MoveOpts.html +287 -0
  298. package/docs/types/Object3DHelperEventMap.html +372 -0
  299. package/docs/types/ObjectFit.html +279 -0
  300. package/docs/types/PaintBrushEventMap.html +310 -0
  301. package/docs/types/PanoCompassPluginData.html +279 -0
  302. package/docs/types/PanoCompassPluginExportType.html +279 -0
  303. package/docs/types/PanoCompassPluginParameterType.html +279 -0
  304. package/docs/types/PanoFloorplanRadarPluginParameterType.html +279 -0
  305. package/docs/types/PanoFloorplanRadarPluginReturnType.html +279 -0
  306. package/docs/types/PanoIndex.html +279 -0
  307. package/docs/types/PanoMeasurePluginEvent.html +279 -0
  308. package/docs/types/PanoMeasureReturnType.html +279 -0
  309. package/docs/types/PanoSpatialTagPluginId.html +279 -0
  310. package/docs/types/PanoTagPluginExportInterface.html +279 -0
  311. package/docs/types/PanoTagPluginParamsInterface.html +279 -0
  312. package/docs/types/PanoVideoPluginParameterType.html +279 -0
  313. package/docs/types/PanoVideoPluginReturnType.html +279 -0
  314. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +287 -0
  315. package/docs/types/PipelinePluginParameterType.html +279 -0
  316. package/docs/types/PipelinePluginReturnType.html +279 -0
  317. package/docs/types/PlaneTag.html +287 -0
  318. package/docs/types/Point2DTag.html +287 -0
  319. package/docs/types/Point3DTag.html +287 -0
  320. package/docs/types/PointTag.html +284 -0
  321. package/docs/types/PointTagInstance.html +284 -0
  322. package/docs/types/Position.html +279 -0
  323. package/docs/types/RotateArgs.html +291 -0
  324. package/docs/types/RotateOpts.html +287 -0
  325. package/docs/types/RuleLabelsKey.html +279 -0
  326. package/docs/types/RuleLabelsValue.html +279 -0
  327. package/docs/types/StickType.html +279 -0
  328. package/docs/types/Tag.html +345 -0
  329. package/docs/types/Tag2D.html +287 -0
  330. package/docs/types/Tag3D.html +287 -0
  331. package/docs/types/TagConfigByKey.html +284 -0
  332. package/docs/types/TagContentType.html +279 -0
  333. package/docs/types/TagDimensionType.html +281 -0
  334. package/docs/types/TagElement.html +289 -0
  335. package/docs/types/TagEvents.html +332 -0
  336. package/docs/types/TagGLTFObject.html +302 -0
  337. package/docs/types/TagHooks.html +279 -0
  338. package/docs/types/TagId.html +279 -0
  339. package/docs/types/TagInstance.html +355 -0
  340. package/docs/types/TagPointType.html +282 -0
  341. package/docs/types/TagRendererMap.html +284 -0
  342. package/docs/types/TopviewFloorplanPluginParameterType.html +279 -0
  343. package/docs/types/TopviewFloorplanPluginReturnType.html +279 -0
  344. package/docs/types/WorkCode.html +279 -0
  345. package/docs/variables/FLOOR_TYPE_MAP.html +289 -0
  346. package/docs/variables/PLUGIN.html +279 -0
  347. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +282 -0
  348. package/docs/variables/ROOM_TYPE_MAP.html +289 -0
  349. package/docs/variables/defaultGlobalConfig.html +279 -0
  350. package/docs/variables/itemLabelPluginServerParams.html +286 -0
  351. package/docs/variables/modelItemLabelPluginServerParams.html +286 -0
  352. package/docs/variables/modelRoomLabelPluginServerParams.html +286 -0
  353. package/libs/CruisePlugin/Controller.js +35 -34
  354. package/libs/CruisePlugin/index.js +6 -5
  355. package/libs/GuideLinePlugin/Controller.js +5 -4
  356. package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
  357. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
  358. package/libs/GuideLinePlugin/index.js +8 -7
  359. package/libs/PanoTagPlugin/controller/TagComputer.js +90 -96
  360. package/libs/PanoTagPlugin/controller/TagRender.js +86 -86
  361. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +8 -4
  362. package/libs/PanoTagPlugin/controller/TagUtil.js +119 -103
  363. package/libs/PanoTagPlugin/controller/index.d.ts +1 -1
  364. package/libs/PanoTagPlugin/controller/index.js +43 -38
  365. package/libs/PanoTagPlugin/index.js +12 -11
  366. package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +1 -0
  367. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
  368. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
  369. package/libs/PanoTagPlugin/utils/tagPosition.js +15 -15
  370. package/libs/base/BasePlugin.js +1 -1
  371. package/libs/index.js +117 -116
  372. package/libs/shared-utils/five/getFloorIndex.d.ts +2 -8
  373. package/libs/shared-utils/five/getFloorIndex.js +16 -12
  374. package/libs/shared-utils/five/transformPosition.d.ts +2 -0
  375. package/libs/shared-utils/five/transformPosition.js +10 -0
  376. package/libs/shared-utils/logger.js +1 -1
  377. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import i from "./Controller.js";
2
- import { typing as ao } from "./typing/index.js";
2
+ import { typing as fo } from "./typing/index.js";
3
3
  import "../base/BasePluginWithData.js";
4
4
  import "../base/BasePlugin.js";
5
5
  import "../shared-utils/Subscribe.js";
@@ -78,6 +78,7 @@ import "../shared-utils/five/calculateThreeMouse.js";
78
78
  import "../PanoTagPlugin/utils/tag/adaptConfig.js";
79
79
  import "../shared-utils/typescript/entries.js";
80
80
  import "../shared-utils/url/getUrl.js";
81
+ import "../shared-utils/five/transformPosition.js";
81
82
  import "../shared-utils/five/getFloorIndex.js";
82
83
  import "../shared-utils/safeObj.js";
83
84
  import "../PanoTagPlugin/Components/TagContainer.js";
@@ -169,10 +170,10 @@ import "./utils/vectorToCoordinates.js";
169
170
  import "./utils/formatRad.js";
170
171
  import "./utils/linerValue.js";
171
172
  import "./utils/sleep.js";
172
- const lo = (r) => new i(r);
173
+ const go = (r) => new i(r);
173
174
  export {
174
- lo as CruisePlugin,
175
+ go as CruisePlugin,
175
176
  i as CruisePluginController,
176
- ao as CruisePluginTypes,
177
- lo as default
177
+ fo as CruisePluginTypes,
178
+ go as default
178
179
  };
@@ -103,6 +103,7 @@ import "../shared-utils/five/calculateThreeMouse.js";
103
103
  import "../PanoTagPlugin/utils/tag/adaptConfig.js";
104
104
  import "../shared-utils/typescript/entries.js";
105
105
  import "../shared-utils/url/getUrl.js";
106
+ import "../shared-utils/five/transformPosition.js";
106
107
  import "../shared-utils/five/getFloorIndex.js";
107
108
  import "../shared-utils/safeObj.js";
108
109
  import "../PanoTagPlugin/Components/TagContainer.js";
@@ -196,8 +197,8 @@ import "../CruisePlugin/utils/vectorToCoordinates.js";
196
197
  import "../CruisePlugin/utils/formatRad.js";
197
198
  import "../CruisePlugin/utils/linerValue.js";
198
199
  import "../CruisePlugin/utils/sleep.js";
199
- const V = "v1.1.0", b = "GuideLinePlugin", g = `${b}@${V}`, qr = (p) => `${g}--${p}`;
200
- class zr extends P {
200
+ const V = "v1.1.0", b = "GuideLinePlugin", g = `${b}@${V}`, zr = (p) => `${g}--${p}`;
201
+ class Kr extends P {
201
202
  constructor(t, i) {
202
203
  super(t, i);
203
204
  d(this, "version", V);
@@ -356,6 +357,6 @@ class zr extends P {
356
357
  }
357
358
  }
358
359
  export {
359
- zr as default,
360
- qr as pluginFlag
360
+ Kr as default,
361
+ zr as pluginFlag
361
362
  };
@@ -4,7 +4,7 @@ import "../shared-utils/log.js";
4
4
  import "../shared-utils/to.js";
5
5
  import "@realsee/five";
6
6
  import "../shared-utils/five/changeMode.js";
7
- import { GuideLineItem as uo } from "./GuideLineItem/index.js";
7
+ import { GuideLineItem as xo } from "./GuideLineItem/index.js";
8
8
  import "three";
9
9
  import "./utils/createLineGeometry.js";
10
10
  import "../vendor/polyline-normals/index.js";
@@ -74,6 +74,7 @@ import "../shared-utils/five/calculateThreeMouse.js";
74
74
  import "../PanoTagPlugin/utils/tag/adaptConfig.js";
75
75
  import "../shared-utils/typescript/entries.js";
76
76
  import "../shared-utils/url/getUrl.js";
77
+ import "../shared-utils/five/transformPosition.js";
77
78
  import "../shared-utils/five/getFloorIndex.js";
78
79
  import "../shared-utils/safeObj.js";
79
80
  import "../PanoTagPlugin/Components/TagContainer.js";
@@ -169,5 +170,5 @@ import "../CruisePlugin/utils/formatRad.js";
169
170
  import "../CruisePlugin/utils/linerValue.js";
170
171
  import "../CruisePlugin/utils/sleep.js";
171
172
  export {
172
- uo as GuideLineItem
173
+ xo as GuideLineItem
173
174
  };
@@ -13,7 +13,7 @@ import "../PanoTagPlugin/controller/index.js";
13
13
  import "./Components/Tag.js";
14
14
  import "./utils/index.js";
15
15
  import "../vendor/object-assign-deep/objectAssignDeep.js";
16
- import { GuideLineModeItem as Vi } from "./GuideLineModeItem/index.js";
16
+ import { GuideLineModeItem as Wi } from "./GuideLineModeItem/index.js";
17
17
  import "../vendor/polyline-normals/index.js";
18
18
  import "../vendor/polyline-miter-util/index.js";
19
19
  import "../vendor/gl-vec2/add.js";
@@ -72,6 +72,7 @@ import "../shared-utils/five/calculateThreeMouse.js";
72
72
  import "../PanoTagPlugin/utils/tag/adaptConfig.js";
73
73
  import "../shared-utils/typescript/entries.js";
74
74
  import "../shared-utils/url/getUrl.js";
75
+ import "../shared-utils/five/transformPosition.js";
75
76
  import "../shared-utils/five/getFloorIndex.js";
76
77
  import "../shared-utils/safeObj.js";
77
78
  import "../PanoTagPlugin/Components/TagContainer.js";
@@ -152,5 +153,5 @@ import "../shared-utils/three/GLTFLoader.js";
152
153
  import "@realsee/five/gltf-loader";
153
154
  import "../shared-utils/five/fiveModelLoad.js";
154
155
  export {
155
- Vi as GuideLineModeItem
156
+ Wi as GuideLineModeItem
156
157
  };
@@ -1,6 +1,6 @@
1
1
  import t from "./Controller.js";
2
- import { GuideLineItem$1 as ft } from "./GuideLineItem/index.js";
3
- import { GuideLineModeItem$1 as st } from "./GuideLineModeItem/index.js";
2
+ import { GuideLineItem$1 as lt } from "./GuideLineItem/index.js";
3
+ import { GuideLineModeItem$1 as It } from "./GuideLineModeItem/index.js";
4
4
  import "../base/BasePluginWithData.js";
5
5
  import "../base/BasePlugin.js";
6
6
  import "../shared-utils/Subscribe.js";
@@ -85,6 +85,7 @@ import "../shared-utils/five/calculateThreeMouse.js";
85
85
  import "../PanoTagPlugin/utils/tag/adaptConfig.js";
86
86
  import "../shared-utils/typescript/entries.js";
87
87
  import "../shared-utils/url/getUrl.js";
88
+ import "../shared-utils/five/transformPosition.js";
88
89
  import "../shared-utils/five/getFloorIndex.js";
89
90
  import "../shared-utils/safeObj.js";
90
91
  import "../PanoTagPlugin/Components/TagContainer.js";
@@ -168,10 +169,10 @@ import "./utils/index.js";
168
169
  import "../shared-utils/to.js";
169
170
  import "../shared-utils/five/changeMode.js";
170
171
  import "../shared-utils/nearlyEqual.js";
171
- const Gt = (i, o) => new t(i, o);
172
+ const Lt = (i, o) => new t(i, o);
172
173
  export {
173
- ft as GuideLineItem,
174
- st as GuideLineModeItem,
175
- Gt as GuideLinePlugin,
176
- Gt as default
174
+ lt as GuideLineItem,
175
+ It as GuideLineModeItem,
176
+ Lt as GuideLinePlugin,
177
+ Lt as default
177
178
  };
@@ -1,30 +1,30 @@
1
- var E = Object.defineProperty, $ = Object.defineProperties;
2
- var L = Object.getOwnPropertyDescriptors;
3
- var k = Object.getOwnPropertySymbols;
4
- var _ = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
5
- var M = (p, e, i) => e in p ? E(p, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : p[e] = i, y = (p, e) => {
1
+ var B = Object.defineProperty, E = Object.defineProperties;
2
+ var $ = Object.getOwnPropertyDescriptors;
3
+ var C = Object.getOwnPropertySymbols;
4
+ var w = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
5
+ var k = (m, e, i) => e in m ? B(m, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : m[e] = i, g = (m, e) => {
6
6
  for (var i in e || (e = {}))
7
- _.call(e, i) && M(p, i, e[i]);
8
- if (k)
9
- for (var i of k(e))
10
- z.call(e, i) && M(p, i, e[i]);
11
- return p;
12
- }, D = (p, e) => $(p, L(e));
7
+ w.call(e, i) && k(m, i, e[i]);
8
+ if (C)
9
+ for (var i of C(e))
10
+ O.call(e, i) && k(m, i, e[i]);
11
+ return m;
12
+ }, M = (m, e) => E(m, $(e));
13
13
  import * as j from "three";
14
- import { is3DTag as O, isMediaModelTag as R } from "../utils/tag/tagCheck.js";
15
- import { getTagCenterPosition as I, getTagPosition as Z } from "../utils/tagPosition.js";
16
- import { checkRange as h } from "../utils/checkRange.js";
17
- import { isPanoramaLike as b, isModelLike as H } from "../../shared-utils/five/mode.js";
14
+ import { is3DTag as L, isMediaModelTag as D } from "../utils/tag/tagCheck.js";
15
+ import { getTagCenterPosition as x, getTagPosition as z } from "../utils/tagPosition.js";
16
+ import { checkRange as p } from "../utils/checkRange.js";
17
+ import { isPanoramaLike as b, isModelLike as Z } from "../../shared-utils/five/mode.js";
18
18
  import "hammerjs";
19
19
  import "@realsee/five";
20
20
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
21
21
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
22
22
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
23
- import { notNil as N } from "../../shared-utils/isNil.js";
24
- import { TagUtil as q } from "./TagUtil.js";
25
- import { getFloorIndex as W } from "../../shared-utils/five/getFloorIndex.js";
26
- import { safeObj as U } from "../../shared-utils/safeObj.js";
27
- import { toArray as X } from "../../shared-utils/util.js";
23
+ import { notNil as H } from "../../shared-utils/isNil.js";
24
+ import { TagUtil as N } from "./TagUtil.js";
25
+ import { getFloorIndex as q } from "../../shared-utils/five/getFloorIndex.js";
26
+ import { safeObj as R } from "../../shared-utils/safeObj.js";
27
+ import { toArray as W } from "../../shared-utils/util.js";
28
28
  import "../../shared-utils/three/centerPoint.js";
29
29
  import "../../shared-utils/positionToVector3.js";
30
30
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
@@ -63,8 +63,9 @@ import "../../shared-utils/five/calculateThreeMouse.js";
63
63
  import "../utils/tag/adaptConfig.js";
64
64
  import "../../shared-utils/typescript/entries.js";
65
65
  import "../../shared-utils/url/getUrl.js";
66
- const T = new j.Raycaster();
67
- class Je extends q {
66
+ import "../../shared-utils/five/transformPosition.js";
67
+ const I = new j.Raycaster();
68
+ class Je extends N {
68
69
  constructor(e) {
69
70
  super(e);
70
71
  }
@@ -72,13 +73,13 @@ class Je extends q {
72
73
  * @description: 获取是否可见
73
74
  */
74
75
  getVisible(e, i) {
75
- const l = y(y({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = l, d = b(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
76
- if ((d == null ? void 0 : d.visible) !== void 0)
77
- return d.visible;
76
+ const l = g(g({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = l, f = b(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
77
+ if ((f == null ? void 0 : f.visible) !== void 0)
78
+ return f.visible;
78
79
  {
79
- const s = [], c = (() => {
80
- var r, f, u;
81
- const o = (r = e.config.visibleConfig) != null ? r : {};
80
+ const s = [], u = (() => {
81
+ var r, c, v;
82
+ const o = (r = this.getTagConfig(e).visibleConfig) != null ? r : {};
82
83
  if (typeof o == "function")
83
84
  return { value: o(this.five, { tag: e, distance: this.getDistance(e) }), checkedList: s, reason: "config function result" };
84
85
  if (o.keep === "hidden")
@@ -87,8 +88,8 @@ class Je extends q {
87
88
  return { value: !0, checkedList: s, reason: "config.keep is visible" };
88
89
  if (o.visibleFiveMode !== void 0) {
89
90
  const a = typeof o.visibleFiveMode == "function" ? o.visibleFiveMode(e) : o.visibleFiveMode;
90
- let v = !1;
91
- if (Array.isArray(a) ? v = a.includes(n) : a === "ModelLike" ? v = H(n) : a === "PanoramaLike" ? v = !b(n) : a === "all" ? v = !0 : typeof a == "string" && (v = a === n), v === !1)
91
+ let d = !1;
92
+ if (Array.isArray(a) ? d = a.includes(n) : a === "ModelLike" ? d = Z(n) : a === "PanoramaLike" ? d = !b(n) : a === "all" ? d = !0 : typeof a == "string" && (d = a === n), d === !1)
92
93
  return {
93
94
  value: !1,
94
95
  checkedList: s,
@@ -106,26 +107,26 @@ class Je extends q {
106
107
  checkedList: s,
107
108
  reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${o.visiblePanoIndex}`
108
109
  };
109
- if (o.visiblePanoIndex === "current" && t !== ((f = e.fiveState) == null ? void 0 : f.panoIndex))
110
+ if (o.visiblePanoIndex === "current" && t !== ((c = e.fiveState) == null ? void 0 : c.panoIndex))
110
111
  return {
111
112
  value: !1,
112
113
  checkedList: s,
113
- reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(u = e.fiveState) == null ? void 0 : u.panoIndex}`
114
+ reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(v = e.fiveState) == null ? void 0 : v.panoIndex}`
114
115
  };
115
116
  }
116
- if (b(n) && o.visibleDistance !== void 0 && (s.push("visibleDistance"), o.visibleDistance !== "unLimited")) {
117
+ if (o.visibleDistance !== void 0 && (s.push("visibleDistance"), o.visibleDistance !== "unLimited")) {
117
118
  const a = this.getDistance(e);
118
- if (h(a, o.visibleDistance) === !1)
119
+ if (p(a, o.visibleDistance) === !1)
119
120
  return {
120
121
  value: !1,
121
122
  checkedList: s,
122
123
  reason: `distance is not in visibleDistance. distance: ${a}, visibleDistance: ${o.visibleDistance}`
123
124
  };
124
125
  }
125
- if (b(n) && o.angleRange && O(e)) {
126
+ if (b(n) && o.angleRange && L(e)) {
126
127
  s.push("angleRange");
127
128
  const a = this.getAngle(e);
128
- if (h(a, o.angleRange) === !1)
129
+ if (p(a, o.angleRange) === !1)
129
130
  return { value: !1, checkedList: s, reason: `angle is not in angleRange. angle: ${a}, angleRange: ${o.angleRange}` };
130
131
  }
131
132
  if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
@@ -145,7 +146,7 @@ class Je extends q {
145
146
  reason: "all check passed"
146
147
  };
147
148
  })();
148
- return d && (d.visible = c.value, d.__debug_visible_reason__ = c), c.value;
149
+ return f && (f.visible = u.value, f.__debug_visible_reason__ = u), u.value;
149
150
  }
150
151
  }
151
152
  /**
@@ -161,17 +162,17 @@ class Je extends q {
161
162
  const n = this.getTagConfig(e).unfoldedConfig;
162
163
  if (!n)
163
164
  return;
164
- const d = (() => {
165
+ const f = (() => {
165
166
  if (typeof n == "function")
166
167
  return n(this.five, { tag: e, distance: this.getDistance(e) });
167
168
  if (n.keep === "folded")
168
169
  return !1;
169
170
  if (n.keep === "unfolded")
170
171
  return !0;
171
- if (n.unfoldDistance && h(this.getDistance(e), n.unfoldDistance) === !1)
172
+ if (n.unfoldDistance && p(this.getDistance(e), n.unfoldDistance) === !1)
172
173
  return !1;
173
174
  })();
174
- t.unfolded = d;
175
+ t.unfolded = f;
175
176
  const s = this.getUnfoldedByCamera(e);
176
177
  return s !== void 0 ? s : t.unfolded;
177
178
  }
@@ -193,25 +194,25 @@ class Je extends q {
193
194
  if (t.autoUnfold === void 0 || t.autoUnfold === !1 || t.autoUnfold.enable === !1 || !t.autoUnfold.strategy)
194
195
  return;
195
196
  if (t.autoUnfold.strategy === "ScreenPostion") {
196
- const d = this.getTagProject(e);
197
- if (d && h(d.x, t.autoUnfold.autoUnfoldProjectX) === !1)
197
+ const f = this.getTagProject(e);
198
+ if (f && p(f.x, t.autoUnfold.autoUnfoldProjectX) === !1)
198
199
  return !1;
199
200
  }
200
201
  if (t.autoUnfold.strategy === "MinimumDistance") {
201
- const c = this.filterPointTag.filter((r) => this.getCurrentVisibleState(r)).filter((r) => {
202
- const f = this.getTagProject(r);
203
- if (!f)
202
+ const u = this.filterPointTag.filter((r) => this.getCurrentVisibleState(r)).filter((r) => {
203
+ const c = this.getTagProject(r);
204
+ if (!c)
204
205
  return !1;
205
- const { x: u, y: a, z: v } = f;
206
- return !(Math.abs(v) > 1 || Math.abs(u) > 1 || Math.abs(a) > 1);
207
- }).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: f }) => {
208
- var u, a;
209
- return !(typeof f == "function" || f.keep || f.autoUnfold === !1 || ((u = f.autoUnfold) == null ? void 0 : u.enable) === !1 || ((a = f.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
210
- }).map((r) => D(y({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: f }) => {
211
- const u = f.autoUnfold.distance;
212
- return !(u && h(r, u) === !1);
213
- }).sort((r, f) => r.distance - f.distance).findIndex((r) => r.id === e.id);
214
- if (c === -1 || c <= ((n = t.autoUnfold.maxNumber) != null ? n : 1) - 1 === !1)
206
+ const { x: v, y: a, z: d } = c;
207
+ return !(Math.abs(d) > 1 || Math.abs(v) > 1 || Math.abs(a) > 1);
208
+ }).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: c }) => {
209
+ var v, a;
210
+ return !(typeof c == "function" || c.keep || c.autoUnfold === !1 || ((v = c.autoUnfold) == null ? void 0 : v.enable) === !1 || ((a = c.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
211
+ }).map((r) => M(g({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: c }) => {
212
+ const v = c.autoUnfold.distance;
213
+ return !(v && p(r, v) === !1);
214
+ }).sort((r, c) => r.distance - c.distance).findIndex((r) => r.id === e.id);
215
+ if (u === -1 || u <= ((n = t.autoUnfold.maxNumber) != null ? n : 1) - 1 === !1)
215
216
  return !1;
216
217
  }
217
218
  return !0;
@@ -233,21 +234,17 @@ class Je extends q {
233
234
  setPointTagPosition() {
234
235
  const e = this.filterPointTag;
235
236
  e.length !== 0 && e.forEach((i) => {
236
- const l = this.getCurrentVisibleState(i);
237
- let t;
238
- if (!l) {
239
- t = setTimeout(() => {
240
- l || (i.screenPosition = null);
241
- }, 1e3);
237
+ var f;
238
+ const l = this.getCurrentVisibleState(i), t = (f = i.__Object__) != null ? f : {
239
+ timeoutId: void 0,
240
+ inAnimation: !0
241
+ };
242
+ if (i.__Object__ = t, !l && i.screenPosition ? (t.inAnimation = !0, t.timeoutId = setTimeout(() => {
243
+ this.getCurrentVisibleState(i) || (t.inAnimation = !1, i.screenPosition = null);
244
+ }, 1e3)) : t.timeoutId && (t.inAnimation = !1, clearTimeout(t.timeoutId)), !l && !t.inAnimation)
242
245
  return;
243
- }
244
- clearTimeout(t);
245
246
  const n = this.getTagProject(i);
246
- if (!n) {
247
- i.screenPosition = null;
248
- return;
249
- }
250
- i.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 };
247
+ n ? i.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 } : i.screenPosition = null;
251
248
  });
252
249
  }
253
250
  setVisible(e) {
@@ -269,7 +266,7 @@ class Je extends q {
269
266
  * @description 一个点的标签
270
267
  */
271
268
  getTagProject(e) {
272
- const i = I(e);
269
+ const i = x(e);
273
270
  if (!i)
274
271
  return;
275
272
  const { x: l, y: t, z: n } = i.project(this.five.camera);
@@ -278,36 +275,36 @@ class Je extends q {
278
275
  }
279
276
  /** 通过射线检测标签可用性 */
280
277
  getTagEnableByIntersect(e, i) {
281
- var o, r, f, u, a, v;
282
- const l = U(U((o = this.getTagConfig(e).visibleConfig) != null ? o : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, n = b(this.five.getCurrentState().mode) ? (r = this.five.work.observers[t]) == null ? void 0 : r.position : this.five.camera.position;
278
+ var o, r, c, v, a;
279
+ const l = R(R((o = this.getTagConfig(e).visibleConfig) != null ? o : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, n = b(this.five.getCurrentState().mode) ? this.getObserverPosition(t) : this.five.camera.position;
283
280
  if (n === void 0)
284
281
  return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
285
- const d = X(
282
+ const f = W(
286
283
  (() => {
287
- var g;
288
- const m = (g = l.checkPoints) != null ? g : "center";
289
- return m === "center" ? I(e) : m === "corner" ? Z(e) : Array.isArray(m) ? m : [];
284
+ var h;
285
+ const d = (h = l.checkPoints) != null ? h : "center";
286
+ return d === "center" ? x(e) : d === "corner" ? z(e) : Array.isArray(d) ? d : [];
290
287
  })()
291
288
  );
292
- let s = 0, c = 0;
293
- for (const m of d) {
294
- const g = new j.Vector3().subVectors(m, n).normalize();
295
- T.set(n, g);
296
- const F = n.distanceTo(m), [P] = this.five.model.intersectRaycaster(T), x = (() => {
297
- if (!R(e))
289
+ let s = 0, u = 0;
290
+ for (const d of f) {
291
+ const h = new j.Vector3().subVectors(d, n).normalize();
292
+ I.set(n, h);
293
+ const U = n.distanceTo(d), [y] = this.five.model.intersectRaycaster(I), P = (() => {
294
+ if (!D(e))
298
295
  return;
299
- const B = this.tags.filter(R).map((A) => {
300
- var C;
301
- return (C = A.model) == null ? void 0 : C.object;
302
- }).filter(N), [w] = T.intersectObjects(B, !0);
303
- return w;
304
- })(), S = (f = l.distanceAccuracy) != null ? f : 0.01;
305
- Math.min((u = P == null ? void 0 : P.distance) != null ? u : 1 / 0, (a = x == null ? void 0 : x.distance) != null ? a : 1 / 0) + S >= F ? s++ : c++;
306
- const V = (v = l.needPassed) != null ? v : 1;
307
- if (s >= V)
296
+ const A = this.tags.filter(D).map((V) => {
297
+ var T;
298
+ return (T = V.model) == null ? void 0 : T.object;
299
+ }).filter(H), [S] = I.intersectObjects(A, !0);
300
+ return S;
301
+ })(), _ = (r = l.distanceAccuracy) != null ? r : 0.01;
302
+ Math.min((c = y == null ? void 0 : y.distance) != null ? c : 1 / 0, (v = P == null ? void 0 : P.distance) != null ? v : 1 / 0) + _ >= U ? s++ : u++;
303
+ const F = (a = l.needPassed) != null ? a : 1;
304
+ if (s >= F)
308
305
  return { value: !0 };
309
306
  }
310
- return c === 0 ? { value: !0 } : {
307
+ return u === 0 ? { value: !0 } : {
311
308
  value: !1,
312
309
  reason: {
313
310
  type: "intersectRaycaster check failed",
@@ -318,13 +315,10 @@ class Je extends q {
318
315
  }
319
316
  /** 检测是否匹配当前楼层 */
320
317
  getVisibleByFloorIndex(e) {
321
- var n, d, s, c, o, r, f;
318
+ var n, f, s, u, o, r, c;
322
319
  let i = 0;
323
320
  const l = (n = e.fiveState) == null ? void 0 : n.panoIndex;
324
- l !== void 0 ? i = (d = this.five.work.observers[l]) == null ? void 0 : d.floorIndex : i = W(
325
- this.five.work.observers,
326
- (f = (r = (c = (s = e.model) == null ? void 0 : s.object) == null ? void 0 : c.position) != null ? r : (o = e.mediaPlane) == null ? void 0 : o.position) != null ? f : I(e)
327
- );
321
+ l !== void 0 ? i = (f = this.work.observers[l]) == null ? void 0 : f.floorIndex : i = q(this.work, (c = (r = (u = (s = e.model) == null ? void 0 : s.object) == null ? void 0 : u.position) != null ? r : (o = e.mediaPlane) == null ? void 0 : o.position) != null ? c : x(e));
328
322
  const t = this.five.model.shownFloor;
329
323
  return t === null || t === i;
330
324
  }