@realsee/dnalogel 3.25.10 → 3.27.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 (384) hide show
  1. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -1
  2. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +11 -1
  3. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +4 -5
  4. package/dist/index.cjs.js +19 -19
  5. package/dist/index.js +511 -500
  6. package/dist/index.umd.js +19 -19
  7. package/docs/assets/search.js +1 -1
  8. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -4
  9. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -4
  10. package/docs/classes/CSS3DRender.html +3 -4
  11. package/docs/classes/GuideLineItem.GuideLineItem.html +3 -4
  12. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -4
  13. package/docs/classes/ModelMakerPluginType.ModelMakerController.html +3 -4
  14. package/docs/classes/ModelRoomLabelController.html +3 -4
  15. package/docs/classes/MoveController.html +3 -4
  16. package/docs/classes/Object3DHelperController.html +3 -4
  17. package/docs/classes/PaintBrush.html +3 -4
  18. package/docs/classes/PanoMeasurePluginLine.html +3 -4
  19. package/docs/classes/PanoMeasurePluginModel.html +3 -4
  20. package/docs/classes/PanoMeasurePluginPoint.html +3 -4
  21. package/docs/classes/PanoMeasurePluginPolyline.html +3 -4
  22. package/docs/classes/PanoTagPluginController.html +7 -8
  23. package/docs/classes/Sculpt.html +3 -4
  24. package/docs/classes/Util.BetterTween.html +3 -4
  25. package/docs/classes/Util.Interval.html +3 -4
  26. package/docs/classes/Util.LineSegments.html +3 -4
  27. package/docs/classes/Util.Magnifier.html +3 -4
  28. package/docs/classes/Util.Object3D.html +3 -4
  29. package/docs/classes/Util.PointDomHelper.html +3 -4
  30. package/docs/classes/Util.PointHelper.html +3 -4
  31. package/docs/classes/Util.PointSelectorHelper.html +3 -4
  32. package/docs/classes/Util.Rectangle.html +3 -4
  33. package/docs/classes/WalkController.html +3 -4
  34. package/docs/enums/CameraMovementEffect.html +3 -4
  35. package/docs/enums/ContentType.html +3 -4
  36. package/docs/enums/DIRECTION.html +3 -4
  37. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -4
  38. package/docs/enums/DimensionType.html +3 -4
  39. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -4
  40. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -4
  41. package/docs/enums/PaintBrushTypeEnum.html +3 -4
  42. package/docs/enums/PointType.html +3 -4
  43. package/docs/enums/Rotation.html +3 -4
  44. package/docs/functions/AreaMakerPlugin.html +3 -4
  45. package/docs/functions/CSS3DRenderPlugin.html +3 -4
  46. package/docs/functions/CameraMovementPlugin.html +3 -4
  47. package/docs/functions/CruisePlugin.html +3 -4
  48. package/docs/functions/CurrentPanoImagePlugin.html +3 -4
  49. package/docs/functions/GuideLinePlugin.html +3 -4
  50. package/docs/functions/ItemLabelPlugin.html +3 -4
  51. package/docs/functions/MapviewFloorplanPlugin.html +3 -4
  52. package/docs/functions/ModelChassisCompassPlugin.html +3 -4
  53. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -4
  54. package/docs/functions/ModelFloorplanPlugin.html +3 -4
  55. package/docs/functions/ModelItemLabelPlugin.html +3 -4
  56. package/docs/functions/ModelMakerPlugin.html +3 -4
  57. package/docs/functions/ModelRoomLabelPlugin.html +3 -4
  58. package/docs/functions/ModelTVVideoPlugin.html +3 -4
  59. package/docs/functions/ModelViewPlugin.html +3 -4
  60. package/docs/functions/MovePlugin.html +3 -4
  61. package/docs/functions/Object3DHelperPlugin.html +3 -4
  62. package/docs/functions/PanoCompassPlugin.html +3 -4
  63. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -4
  64. package/docs/functions/PanoDoorLabelPlugin.html +3 -4
  65. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -4
  66. package/docs/functions/PanoMeasurePlugin.html +3 -4
  67. package/docs/functions/PanoRulerPlugin.html +3 -4
  68. package/docs/functions/PanoRulerProPlugin.html +3 -4
  69. package/docs/functions/PanoSpatialTagPlugin.html +3 -4
  70. package/docs/functions/PanoTagPlugin.html +3 -4
  71. package/docs/functions/PanoVideoPlugin.html +3 -4
  72. package/docs/functions/PipelinePlugin.html +3 -4
  73. package/docs/functions/SculptPlugin.html +3 -4
  74. package/docs/functions/TopviewFloorplanPlugin.html +3 -4
  75. package/docs/functions/Util.absoluteUrl.html +3 -4
  76. package/docs/functions/Util.checkFiveModelLoaded.html +3 -4
  77. package/docs/functions/Util.equal.html +3 -4
  78. package/docs/functions/Util.getCoordsFromClient.html +3 -4
  79. package/docs/functions/Util.getCoordsFromElement.html +3 -4
  80. package/docs/functions/Util.getFrameTime.html +3 -4
  81. package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -4
  82. package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -4
  83. package/docs/functions/Util.isAbsoluteURL.html +3 -4
  84. package/docs/functions/Util.isModelLike.html +3 -4
  85. package/docs/functions/Util.isNil.html +3 -4
  86. package/docs/functions/Util.isPanoramaLike.html +3 -4
  87. package/docs/functions/Util.nextFrame.html +3 -4
  88. package/docs/functions/Util.notNil.html +3 -4
  89. package/docs/functions/Util.requestAnimationFrameInterval.html +3 -4
  90. package/docs/functions/Util.tweenProgress.html +3 -4
  91. package/docs/functions/Util.uuid.html +3 -4
  92. package/docs/functions/pluginFlag.html +3 -4
  93. package/docs/index.html +4 -5
  94. package/docs/interfaces/AddTagConfig.html +3 -4
  95. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -4
  96. package/docs/interfaces/AreaMakerPluginType.Config.html +3 -4
  97. package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -4
  98. package/docs/interfaces/AreaMakerPluginType.Params.html +3 -4
  99. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -4
  100. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -4
  101. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -4
  102. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -4
  103. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -4
  104. package/docs/interfaces/AreaMakerPluginType.State.html +3 -4
  105. package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -4
  106. package/docs/interfaces/CSS3DRenderPluginState.html +3 -4
  107. package/docs/interfaces/CameraMovementPluginExportType.html +3 -4
  108. package/docs/interfaces/ContentTypeMapInterface.html +3 -4
  109. package/docs/interfaces/CruisePluginTypes.Config.html +3 -4
  110. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -4
  111. package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -4
  112. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -4
  113. package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -4
  114. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -4
  115. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -4
  116. package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -4
  117. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -4
  118. package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -4
  119. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -4
  120. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -4
  121. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -4
  122. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -4
  123. package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -4
  124. package/docs/interfaces/EventMap.html +3 -4
  125. package/docs/interfaces/FloorplanBounding.html +3 -4
  126. package/docs/interfaces/FloorplanData.html +3 -4
  127. package/docs/interfaces/FloorplanEntrance.html +3 -4
  128. package/docs/interfaces/FloorplanExtraObject.html +3 -4
  129. package/docs/interfaces/FloorplanExtraObject3D.html +3 -4
  130. package/docs/interfaces/FloorplanFloorData.html +3 -4
  131. package/docs/interfaces/FloorplanImagePosition.html +3 -4
  132. package/docs/interfaces/FloorplanObserver.html +3 -4
  133. package/docs/interfaces/FloorplanOutlineItem.html +3 -4
  134. package/docs/interfaces/FloorplanPosition.html +3 -4
  135. package/docs/interfaces/FloorplanRoomItem.html +3 -4
  136. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -4
  137. package/docs/interfaces/FloorplanServerBounding.html +3 -4
  138. package/docs/interfaces/FloorplanServerComputedData.html +3 -4
  139. package/docs/interfaces/FloorplanServerData.html +3 -4
  140. package/docs/interfaces/FloorplanServerDoorItem.html +3 -4
  141. package/docs/interfaces/FloorplanServerDoorPosition.html +3 -4
  142. package/docs/interfaces/FloorplanServerEntrance.html +3 -4
  143. package/docs/interfaces/FloorplanServerFloorData.html +3 -4
  144. package/docs/interfaces/FloorplanServerImagePosition.html +3 -4
  145. package/docs/interfaces/FloorplanServerObserver.html +3 -4
  146. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -4
  147. package/docs/interfaces/FloorplanServerPosition.html +3 -4
  148. package/docs/interfaces/FloorplanServerRoomItem.html +3 -4
  149. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -4
  150. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -4
  151. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -4
  152. package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -4
  153. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -4
  154. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -4
  155. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -4
  156. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -4
  157. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -4
  158. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -4
  159. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -4
  160. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -4
  161. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -4
  162. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -4
  163. package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -4
  164. package/docs/interfaces/GuideLinePluginType.Route.html +3 -4
  165. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -4
  166. package/docs/interfaces/HelperOffset.html +3 -4
  167. package/docs/interfaces/ImagePlaneGroup.html +3 -4
  168. package/docs/interfaces/ItemLabelPluginData.html +3 -4
  169. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -4
  170. package/docs/interfaces/ItemLabelPluginParametersType.html +3 -4
  171. package/docs/interfaces/MinMax.html +3 -4
  172. package/docs/interfaces/ModelChassisCompassPluginData.html +3 -4
  173. package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -4
  174. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -4
  175. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -4
  176. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -4
  177. package/docs/interfaces/ModelItemLabelPluginData.html +3 -4
  178. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -4
  179. package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -4
  180. package/docs/interfaces/ModelMakerPluginType.EventMap.html +3 -4
  181. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -4
  182. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +3 -4
  183. package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -4
  184. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +3 -4
  185. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +3 -4
  186. package/docs/interfaces/ModelMakerPluginType.State.html +3 -4
  187. package/docs/interfaces/ModelRoomLabelPluginData.html +3 -4
  188. package/docs/interfaces/ModelTVVideoPluginData.html +3 -4
  189. package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -4
  190. package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -4
  191. package/docs/interfaces/ModelViewPluginExportType.html +3 -4
  192. package/docs/interfaces/Object3DHelperState.html +3 -4
  193. package/docs/interfaces/ObjectHelperControllers.html +3 -4
  194. package/docs/interfaces/PaintBrushAction.html +3 -4
  195. package/docs/interfaces/PaintBrushConfigs.html +3 -4
  196. package/docs/interfaces/PaintBrushState.html +3 -4
  197. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -4
  198. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -4
  199. package/docs/interfaces/PanoMeasureParameterType.html +3 -4
  200. package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -4
  201. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -4
  202. package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -4
  203. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -4
  204. package/docs/interfaces/PanoRulerPluginExportType.html +3 -4
  205. package/docs/interfaces/PanoRulerPluginOptions.html +3 -4
  206. package/docs/interfaces/PanoRulerPluginParameterType.html +3 -4
  207. package/docs/interfaces/PanoRulerProPluginExportType.html +3 -4
  208. package/docs/interfaces/PanoRulerProPluginOptions.html +3 -4
  209. package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -4
  210. package/docs/interfaces/PanoRulerProPluginState.html +3 -4
  211. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -4
  212. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -4
  213. package/docs/interfaces/PanoSpatialTagPluginData.html +3 -4
  214. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -4
  215. package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -4
  216. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -4
  217. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -4
  218. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -4
  219. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -4
  220. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -4
  221. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -4
  222. package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -4
  223. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -4
  224. package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -4
  225. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -4
  226. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -4
  227. package/docs/interfaces/Point.html +3 -4
  228. package/docs/interfaces/Room.html +3 -4
  229. package/docs/interfaces/RoomInfo.html +3 -4
  230. package/docs/interfaces/RoomLabel.html +3 -4
  231. package/docs/interfaces/RoomRules.html +3 -4
  232. package/docs/interfaces/Rooms.html +3 -4
  233. package/docs/interfaces/Scissor.html +3 -4
  234. package/docs/interfaces/State.html +3 -4
  235. package/docs/interfaces/TagCacheInterface.html +3 -4
  236. package/docs/interfaces/TagConfig.html +21 -16
  237. package/docs/interfaces/TagGLTFObjectGroup.html +3 -4
  238. package/docs/interfaces/TagIconUrl.html +3 -4
  239. package/docs/interfaces/TagObjectGroup.html +3 -4
  240. package/docs/interfaces/TagStyle.html +3 -4
  241. package/docs/interfaces/Tags.html +24 -411
  242. package/docs/interfaces/TemporaryState.html +3 -4
  243. package/docs/interfaces/Util.MagnifierParameter.html +3 -4
  244. package/docs/interfaces/Util.MouseGroupParameter.html +3 -4
  245. package/docs/interfaces/Util.PointIntersection.html +3 -4
  246. package/docs/modules/AreaMakerPluginType.html +3 -4
  247. package/docs/modules/CruisePluginTypes.html +3 -4
  248. package/docs/modules/CurrentPanoImagePluginType.html +3 -4
  249. package/docs/modules/GuideLineItem.html +3 -4
  250. package/docs/modules/GuideLineModeItem.html +3 -4
  251. package/docs/modules/GuideLinePluginType.html +3 -4
  252. package/docs/modules/ModelMakerPluginType.html +3 -4
  253. package/docs/modules/PanoVideoPluginType.html +3 -4
  254. package/docs/modules/SculptData.html +3 -4
  255. package/docs/modules/Util.html +3 -4
  256. package/docs/modules.html +4 -6
  257. package/docs/types/AddObject3DHelperConfig.html +3 -4
  258. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -4
  259. package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -4
  260. package/docs/types/AreaMakerPluginType.PluginData.html +3 -4
  261. package/docs/types/AreaMakerPluginType.ServerData.html +3 -4
  262. package/docs/types/ArrayPosition.html +3 -4
  263. package/docs/types/AudioAppearance.html +3 -4
  264. package/docs/types/CSS3DRenderExportType.html +3 -4
  265. package/docs/types/CSS3DRenderPluginExportType.html +3 -4
  266. package/docs/types/CSS3DRenderPluginParameterType.html +3 -4
  267. package/docs/types/ClassFunctionParameters.html +3 -4
  268. package/docs/types/Color.html +3 -4
  269. package/docs/types/ContentTypeConfigKey.html +4 -5
  270. package/docs/types/ContentTypeConfigKeySplit.html +5 -6
  271. package/docs/types/ContentTypeMap.html +3 -4
  272. package/docs/types/Create3DDomContainerReturnType.html +3 -4
  273. package/docs/types/Create3DElementReturnType.html +3 -4
  274. package/docs/types/CruisePluginExportType.html +3 -4
  275. package/docs/types/CruisePluginTypes.CruiseData.html +3 -4
  276. package/docs/types/CruisePluginTypes.MoveEffect.html +3 -4
  277. package/docs/types/CurrentPanoImagePluginExportType.html +3 -4
  278. package/docs/types/DeprecatedMediaPlaneProperty.html +3 -4
  279. package/docs/types/DeprecatedTagProperty.html +3 -4
  280. package/docs/types/Direction-1.html +3 -4
  281. package/docs/types/Direction4.html +3 -4
  282. package/docs/types/ElementRenderer.html +3 -4
  283. package/docs/types/FloorplanRuleLabels.html +3 -4
  284. package/docs/types/FloorplanServerRuleLabels.html +3 -4
  285. package/docs/types/GuideLinePluginExportType.html +3 -4
  286. package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -4
  287. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -4
  288. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -4
  289. package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -4
  290. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -4
  291. package/docs/types/GuideLinePluginType.PathItem.html +3 -4
  292. package/docs/types/GuideLinePluginType.PluginData.html +3 -4
  293. package/docs/types/HelperEventMap.html +3 -4
  294. package/docs/types/InternalHelperEventMap.html +3 -4
  295. package/docs/types/LoadTagConfig.html +3 -4
  296. package/docs/types/MapviewFloorplanPluginParameterType.html +3 -4
  297. package/docs/types/MapviewFloorplanPluginReturnType.html +3 -4
  298. package/docs/types/MediaData.html +3 -4
  299. package/docs/types/MediaStore.html +3 -4
  300. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -4
  301. package/docs/types/ModelFloorplanPluginParameterType.html +3 -4
  302. package/docs/types/ModelFloorplanPluginReturnType.html +3 -4
  303. package/docs/types/ModelId.html +3 -4
  304. package/docs/types/ModelMakerPluginType.ElementRenderer.html +3 -4
  305. package/docs/types/ModelMakerPluginType.ItemType.html +3 -4
  306. package/docs/types/ModelRoomLabelPluginParameters.html +3 -4
  307. package/docs/types/ModelRoomLabelPluginReturnType.html +3 -4
  308. package/docs/types/MoveArgs.html +3 -4
  309. package/docs/types/MoveOpts.html +3 -4
  310. package/docs/types/Object3DHelperEventMap.html +3 -4
  311. package/docs/types/ObjectFit.html +3 -4
  312. package/docs/types/PaintBrushEventMap.html +3 -4
  313. package/docs/types/PanoCompassPluginData.html +3 -4
  314. package/docs/types/PanoCompassPluginExportType.html +3 -4
  315. package/docs/types/PanoCompassPluginParameterType.html +3 -4
  316. package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -4
  317. package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -4
  318. package/docs/types/PanoIndex.html +3 -4
  319. package/docs/types/PanoMeasurePluginEvent.html +3 -4
  320. package/docs/types/PanoMeasureReturnType.html +3 -4
  321. package/docs/types/PanoSpatialTagPluginId.html +3 -4
  322. package/docs/types/PanoTagPluginExportInterface.html +3 -4
  323. package/docs/types/PanoTagPluginParamsInterface.html +3 -4
  324. package/docs/types/PanoVideoPluginParameterType.html +3 -4
  325. package/docs/types/PanoVideoPluginReturnType.html +3 -4
  326. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -6
  327. package/docs/types/PipelinePluginParameterType.html +3 -4
  328. package/docs/types/PipelinePluginReturnType.html +3 -4
  329. package/docs/types/PlaneTag.html +4 -5
  330. package/docs/types/Point2DTag.html +4 -5
  331. package/docs/types/Point3DTag.html +4 -5
  332. package/docs/types/PointTag.html +4 -5
  333. package/docs/types/PointTagInstance.html +3 -4
  334. package/docs/types/Position.html +3 -4
  335. package/docs/types/PositionFrom.html +3 -4
  336. package/docs/types/RotateArgs.html +3 -4
  337. package/docs/types/RotateOpts.html +3 -4
  338. package/docs/types/RuleLabelsKey.html +3 -4
  339. package/docs/types/RuleLabelsValue.html +3 -4
  340. package/docs/types/ScaleCallback.html +3 -4
  341. package/docs/types/ScalePosition.html +3 -4
  342. package/docs/types/SculptData.BoxData.html +3 -4
  343. package/docs/types/SculptData.CircleData.html +3 -4
  344. package/docs/types/SculptData.CylinderData.html +3 -4
  345. package/docs/types/SculptData.PointData.html +3 -4
  346. package/docs/types/SculptData.PolygonData.html +3 -4
  347. package/docs/types/SculptData.PolylineData.html +3 -4
  348. package/docs/types/SculptData.PrismData.html +3 -4
  349. package/docs/types/SculptData.RectangleData.html +3 -4
  350. package/docs/types/StickType.html +3 -4
  351. package/docs/types/Tag.html +3 -4
  352. package/docs/types/Tag2D.html +3 -4
  353. package/docs/types/Tag3D.html +3 -4
  354. package/docs/types/TagConfigByKey.html +4 -5
  355. package/docs/types/TagContentType.html +3 -4
  356. package/docs/types/TagContentTypeMapping.html +3 -4
  357. package/docs/types/TagDimensionType.html +3 -4
  358. package/docs/types/TagElement.html +3 -4
  359. package/docs/types/TagEvents.html +3 -4
  360. package/docs/types/TagGLTFObject.html +3 -4
  361. package/docs/types/TagHooks.html +3 -4
  362. package/docs/types/TagId.html +3 -4
  363. package/docs/types/TagInstance.html +3 -4
  364. package/docs/types/TagPointType.html +3 -4
  365. package/docs/types/TagRendererMap.html +3 -4
  366. package/docs/types/TopviewFloorplanPluginParameterType.html +3 -4
  367. package/docs/types/TopviewFloorplanPluginReturnType.html +3 -4
  368. package/docs/types/WorkCode.html +3 -4
  369. package/docs/variables/FLOOR_TYPE_MAP.html +3 -4
  370. package/docs/variables/PLUGIN.html +3 -4
  371. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -4
  372. package/docs/variables/ROOM_TYPE_MAP.html +3 -4
  373. package/docs/variables/defaultGlobalConfig.html +4 -5
  374. package/docs/variables/itemLabelPluginServerParams.html +3 -4
  375. package/docs/variables/modelItemLabelPluginServerParams.html +3 -4
  376. package/docs/variables/modelRoomLabelPluginServerParams.html +3 -4
  377. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -1
  378. package/libs/PanoTagPlugin/controller/TagComputer.js +134 -123
  379. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +11 -1
  380. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +4 -5
  381. package/libs/base/BasePlugin.js +1 -1
  382. package/libs/shared-utils/logger.js +1 -1
  383. package/package.json +1 -1
  384. package/docs/types/AudioTagTypeConfigKey.html +0 -294
@@ -1,30 +1,30 @@
1
- var $ = Object.defineProperty, A = Object.defineProperties;
2
- var E = Object.getOwnPropertyDescriptors;
3
- var T = Object.getOwnPropertySymbols;
4
- var L = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
5
- var D = (b, e, i) => e in b ? $(b, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : b[e] = i, x = (b, e) => {
1
+ var A = Object.defineProperty, E = Object.defineProperties;
2
+ var L = Object.getOwnPropertyDescriptors;
3
+ var U = Object.getOwnPropertySymbols;
4
+ var O = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
5
+ var S = (m, e, i) => e in m ? A(m, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : m[e] = i, k = (m, e) => {
6
6
  for (var i in e || (e = {}))
7
- L.call(e, i) && D(b, i, e[i]);
8
- if (T)
9
- for (var i of T(e))
10
- _.call(e, i) && D(b, i, e[i]);
11
- return b;
12
- }, M = (b, e) => A(b, E(e));
13
- import * as F from "three";
14
- import { is3DTag as O, isMediaModelTag as U } from "../utils/tag/tagCheck.js";
15
- import { getTagCenterPosition as C, getTagPosition as z } from "../utils/tagPosition.js";
16
- import { checkRange as h } from "../utils/checkRange.js";
17
- import { isPanoramaLike as y, isModelLike as Z } from "../../shared-utils/five/mode.js";
7
+ O.call(e, i) && S(m, i, e[i]);
8
+ if (U)
9
+ for (var i of U(e))
10
+ z.call(e, i) && S(m, i, e[i]);
11
+ return m;
12
+ }, R = (m, e) => E(m, L(e));
13
+ import * as V from "three";
14
+ import { is3DTag as Z, isMediaModelTag as F } from "../utils/tag/tagCheck.js";
15
+ import { getTagCenterPosition as M, getTagPosition as q } from "../utils/tagPosition.js";
16
+ import { checkRange as P } from "../utils/checkRange.js";
17
+ import { isPanoramaLike as x, isModelLike as H } 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 q } from "../../shared-utils/isNil.js";
24
- import { TagUtil as H } from "./TagUtil.js";
25
- import { getFloorIndex as N } 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";
23
+ import { notNil as N } from "../../shared-utils/isNil.js";
24
+ import { TagUtil as W } from "./TagUtil.js";
25
+ import { getFloorIndex as X } from "../../shared-utils/five/getFloorIndex.js";
26
+ import { safeObj as j } from "../../shared-utils/safeObj.js";
27
+ import { toArray as G } 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";
@@ -66,9 +66,9 @@ import "../../shared-utils/url/getUrl.js";
66
66
  import "../../shared-utils/five/transformPosition.js";
67
67
  import "../../shared-utils/Utils/WorkUtil.js";
68
68
  import "../../shared-utils/Utils/BaseUtil.js";
69
- const I = new F.Raycaster();
70
- I.params.Points.threshold = 0.1;
71
- class Qe extends H {
69
+ const T = new V.Raycaster();
70
+ T.params.Points.threshold = 0.1;
71
+ class Qe extends W {
72
72
  constructor(e) {
73
73
  super(e);
74
74
  }
@@ -76,85 +76,96 @@ class Qe extends H {
76
76
  * @description: 获取是否可见
77
77
  */
78
78
  getVisible(e, i) {
79
- const f = x(x({}, this.five.getCurrentState()), i), { panoIndex: t, mode: o } = f, d = y(o) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
80
- if ((d == null ? void 0 : d.visible) !== void 0)
81
- return d.visible;
79
+ const l = k(k({}, this.five.getCurrentState()), i), { panoIndex: n, mode: o } = l, f = x(o) ? this.getPanoIndexCache({ panoIndex: n, id: e.id }) : void 0;
80
+ if ((f == null ? void 0 : f.visible) !== void 0)
81
+ return f.visible;
82
82
  {
83
83
  const s = [], c = (() => {
84
- var r, a, u, p, v, g, P;
85
- const n = (r = this.getTagConfig(e).visibleConfig) != null ? r : {};
86
- if (typeof n == "function")
84
+ var v, u, g, I, h, y, C;
85
+ const p = this.getTagConfig(e);
86
+ console.log("getVisible", l.mode, p.initialState);
87
+ const r = p.initialState, a = e.__lastInitialState;
88
+ if (r.visible !== void 0 && r.visible !== (a == null ? void 0 : a.visible))
87
89
  return {
88
- value: n(this.five, { tag: e, distance: this.getDistance(e, f) }),
90
+ value: r.visible,
91
+ checkedList: s,
92
+ reason: "initialState changed",
93
+ do_not_cache: !0
94
+ };
95
+ e.__lastInitialState = r;
96
+ const t = (v = p.visibleConfig) != null ? v : {};
97
+ if (typeof t == "function")
98
+ return {
99
+ value: t(this.five, { tag: e, distance: this.getDistance(e, l) }),
89
100
  checkedList: s,
90
101
  reason: "config function result"
91
102
  };
92
- if (n.keep === "hidden")
103
+ if (t.keep === "hidden")
93
104
  return { value: !1, checkedList: s, reason: "config.keep is hidden" };
94
- if (n.keep === "visible")
105
+ if (t.keep === "visible")
95
106
  return { value: !0, checkedList: s, reason: "config.keep is visible" };
96
- if (n.visibleFiveMode !== void 0) {
97
- const l = typeof n.visibleFiveMode == "function" ? n.visibleFiveMode(e) : n.visibleFiveMode;
98
- let m = !1;
99
- if (Array.isArray(l) ? m = l.includes(o) : l === "ModelLike" ? m = Z(o) : l === "PanoramaLike" ? m = !y(o) : l === "all" ? m = !0 : typeof l == "string" && (m = l === o), m === !1)
107
+ if (t.visibleFiveMode !== void 0) {
108
+ const d = typeof t.visibleFiveMode == "function" ? t.visibleFiveMode(e) : t.visibleFiveMode;
109
+ let b = !1;
110
+ if (Array.isArray(d) ? b = d.includes(o) : d === "ModelLike" ? b = H(o) : d === "PanoramaLike" ? b = !x(o) : d === "all" ? b = !0 : typeof d == "string" && (b = d === o), b === !1)
100
111
  return {
101
112
  value: !1,
102
113
  checkedList: s,
103
114
  reason: "current mode is not included in visibleFiveMode",
104
- visibleFiveMode: n.visibleFiveMode,
115
+ visibleFiveMode: t.visibleFiveMode,
105
116
  mode: o
106
117
  };
107
- } else if (n.visibleFiveMode === void 0 && ((a = this.five.getCurrentState()) == null ? void 0 : a.mode) !== ((p = (u = e.fiveState) == null ? void 0 : u.mode) != null ? p : "Panorama"))
118
+ } else if (t.visibleFiveMode === void 0 && ((u = this.five.getCurrentState()) == null ? void 0 : u.mode) !== ((I = (g = e.fiveState) == null ? void 0 : g.mode) != null ? I : "Panorama"))
108
119
  return {
109
120
  value: !1,
110
121
  checkedList: s,
111
122
  reason: "current mode is not equal to tag.fiveState.mode",
112
- tagFiveMode: (v = e.fiveState) == null ? void 0 : v.mode,
123
+ tagFiveMode: (h = e.fiveState) == null ? void 0 : h.mode,
113
124
  mode: o
114
125
  };
115
- if (n.followModelVisibility === !0 && (o === "Floorplan" || o === "Mapview") && this.getVisibleByFloorIndex(e) === !1)
126
+ if (t.followModelVisibility === !0 && (o === "Floorplan" || o === "Mapview") && this.getVisibleByFloorIndex(e) === !1)
116
127
  return { value: !1, checkedList: s, reason: "followModelVisibility check failed" };
117
- if (y(o) && n.visiblePanoIndex !== void 0 && n.visiblePanoIndex !== "all" && t !== void 0) {
118
- if (s.push("visiblePanoIndex"), Array.isArray(n.visiblePanoIndex) && !n.visiblePanoIndex.includes(t))
128
+ if (x(o) && t.visiblePanoIndex !== void 0 && t.visiblePanoIndex !== "all" && n !== void 0) {
129
+ if (s.push("visiblePanoIndex"), Array.isArray(t.visiblePanoIndex) && !t.visiblePanoIndex.includes(n))
119
130
  return {
120
131
  value: !1,
121
132
  checkedList: s,
122
- reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${n.visiblePanoIndex}`
133
+ reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${n}, visiblePanoIndex: ${t.visiblePanoIndex}`
123
134
  };
124
- if (n.visiblePanoIndex === "current" && t !== ((g = e.fiveState) == null ? void 0 : g.panoIndex))
135
+ if (t.visiblePanoIndex === "current" && n !== ((y = e.fiveState) == null ? void 0 : y.panoIndex))
125
136
  return {
126
137
  value: !1,
127
138
  checkedList: s,
128
- reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(P = e.fiveState) == null ? void 0 : P.panoIndex}`
139
+ reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${n}, tag.panoIndex: ${(C = e.fiveState) == null ? void 0 : C.panoIndex}`
129
140
  };
130
141
  }
131
- if (n.visibleDistance !== void 0 && (s.push("visibleDistance"), n.visibleDistance !== "unLimited")) {
132
- const l = this.getDistance(e, f);
133
- if (h(l, n.visibleDistance) === !1)
142
+ if (t.visibleDistance !== void 0 && (s.push("visibleDistance"), t.visibleDistance !== "unLimited")) {
143
+ const d = this.getDistance(e, l);
144
+ if (P(d, t.visibleDistance) === !1)
134
145
  return {
135
146
  value: !1,
136
147
  checkedList: s,
137
- panoIndex: t,
138
- visibleDistance: n.visibleDistance,
139
- reason: `distance is not in visibleDistance. distance: ${l}, visibleDistance: ${n.visibleDistance.min} - ${n.visibleDistance.max}`
148
+ panoIndex: n,
149
+ visibleDistance: t.visibleDistance,
150
+ reason: `distance is not in visibleDistance. distance: ${d}, visibleDistance: ${t.visibleDistance.min} - ${t.visibleDistance.max}`
140
151
  };
141
152
  }
142
- if (y(o) && n.angleRange && O(e)) {
153
+ if (x(o) && t.angleRange && Z(e)) {
143
154
  s.push("angleRange");
144
- const l = this.getAngle(e, t);
145
- if (h(l, n.angleRange) === !1)
146
- return { value: !1, checkedList: s, reason: `angle is not in angleRange. angle: ${l}, angleRange: ${n.angleRange}` };
155
+ const d = this.getAngle(e, n);
156
+ if (P(d, t.angleRange) === !1)
157
+ return { value: !1, checkedList: s, reason: `angle is not in angleRange. angle: ${d}, angleRange: ${t.angleRange}` };
147
158
  }
148
- if (n.intersectRaycaster !== !1 && (typeof n.intersectRaycaster != "object" || n.intersectRaycaster.enabled !== !1)) {
149
- if (s.push("intersectRaycaster"), t === void 0)
159
+ if (t.intersectRaycaster !== !1 && (typeof t.intersectRaycaster != "object" || t.intersectRaycaster.enabled !== !1)) {
160
+ if (s.push("intersectRaycaster"), n === void 0)
150
161
  return {
151
162
  value: !1,
152
163
  checkedList: s,
153
- reason: `intersectRaycaster check failed: panoIndex is ${t}`
164
+ reason: `intersectRaycaster check failed: panoIndex is ${n}`
154
165
  };
155
- const l = this.getTagEnableByIntersect(e, t);
156
- if (l.value === !1)
157
- return Object.assign(l, { checkedList: s });
166
+ const d = this.getTagEnableByIntersect(e, n);
167
+ if (d.value === !1)
168
+ return Object.assign(d, { checkedList: s });
158
169
  }
159
170
  return {
160
171
  value: !0,
@@ -162,7 +173,7 @@ class Qe extends H {
162
173
  reason: "all check passed"
163
174
  };
164
175
  })();
165
- return d && (d.visible = c.value, d.__debug_visible_reason__ = c), c.value;
176
+ return f && c.do_not_cache !== !0 && (f.visible = c.value, f.__debug_visible_reason__ = c), c.value;
166
177
  }
167
178
  }
168
179
  /**
@@ -171,26 +182,26 @@ class Qe extends H {
171
182
  getUnfoldedByPanoIndex(e, i) {
172
183
  if (!this.getCurrentVisibleState(e))
173
184
  return;
174
- const t = this.getPanoIndexCache({ panoIndex: i, id: e.id });
175
- if (t.unfolded !== void 0)
176
- return t.unfolded;
185
+ const n = this.getPanoIndexCache({ panoIndex: i, id: e.id });
186
+ if (n.unfolded !== void 0)
187
+ return n.unfolded;
177
188
  {
178
189
  const o = this.getTagConfig(e).unfoldedConfig;
179
190
  if (!o)
180
191
  return;
181
- const d = (() => {
192
+ const f = (() => {
182
193
  if (typeof o == "function")
183
194
  return o(this.five, { tag: e, distance: this.getDistance(e, { panoIndex: i }) });
184
195
  if (o.keep === "folded")
185
196
  return !1;
186
197
  if (o.keep === "unfolded")
187
198
  return !0;
188
- if (o.unfoldDistance && h(this.getDistance(e, { panoIndex: i }), o.unfoldDistance) === !1)
199
+ if (o.unfoldDistance && P(this.getDistance(e, { panoIndex: i }), o.unfoldDistance) === !1)
189
200
  return !1;
190
201
  })();
191
- t.unfolded = d;
202
+ n.unfolded = f;
192
203
  const s = this.getUnfoldedByCamera(e);
193
- return s !== void 0 ? s : t.unfolded;
204
+ return s !== void 0 ? s : n.unfolded;
194
205
  }
195
206
  }
196
207
  /**
@@ -199,39 +210,39 @@ class Qe extends H {
199
210
  getUnfoldedByCamera(e) {
200
211
  return this.getCurrentVisibleState(e) ? (() => {
201
212
  var o;
202
- const t = this.getTagConfig(e).unfoldedConfig;
203
- if (t) {
204
- if (typeof t == "function")
205
- return t(this.five, { tag: e, distance: this.getDistance(e) });
206
- if (t.keep === "folded")
213
+ const n = this.getTagConfig(e).unfoldedConfig;
214
+ if (n) {
215
+ if (typeof n == "function")
216
+ return n(this.five, { tag: e, distance: this.getDistance(e) });
217
+ if (n.keep === "folded")
207
218
  return !1;
208
- if (t.keep === "unfolded")
219
+ if (n.keep === "unfolded")
209
220
  return !0;
210
- if (t.autoUnfold === void 0 || t.autoUnfold === !1 || t.autoUnfold.enable === !1 || !t.autoUnfold.strategy)
221
+ if (n.autoUnfold === void 0 || n.autoUnfold === !1 || n.autoUnfold.enable === !1 || !n.autoUnfold.strategy)
211
222
  return;
212
- if (t.autoUnfold.strategy === "ScreenPostion") {
213
- const d = this.getTagProject(e);
214
- if (d && h(d.x, t.autoUnfold.autoUnfoldProjectX) === !1)
223
+ if (n.autoUnfold.strategy === "ScreenPostion") {
224
+ const f = this.getTagProject(e);
225
+ if (f && P(f.x, n.autoUnfold.autoUnfoldProjectX) === !1)
215
226
  return !1;
216
227
  }
217
- if (t.autoUnfold.strategy === "MinimumDistance") {
228
+ if (n.autoUnfold.strategy === "MinimumDistance") {
218
229
  const c = this.filterPointTag.filter((r) => this.getCurrentVisibleState(r)).filter((r) => {
219
230
  const a = this.getTagProject(r);
220
231
  if (!a)
221
232
  return !1;
222
- const { x: u, y: p, z: v } = a;
223
- return !(Math.abs(v) > 1 || Math.abs(u) > 1 || Math.abs(p) > 1);
233
+ const { x: t, y: v, z: u } = a;
234
+ return !(Math.abs(u) > 1 || Math.abs(t) > 1 || Math.abs(v) > 1);
224
235
  }).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: a }) => {
225
- var u, p;
226
- return !(typeof a == "function" || a.keep || a.autoUnfold === !1 || ((u = a.autoUnfold) == null ? void 0 : u.enable) === !1 || ((p = a.autoUnfold) == null ? void 0 : p.strategy) !== "MinimumDistance");
227
- }).map((r) => M(x({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: a }) => {
228
- const u = a.autoUnfold.distance;
229
- return !(u && h(r, u) === !1);
236
+ var t, v;
237
+ return !(typeof a == "function" || a.keep || a.autoUnfold === !1 || ((t = a.autoUnfold) == null ? void 0 : t.enable) === !1 || ((v = a.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance");
238
+ }).map((r) => R(k({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: a }) => {
239
+ const t = a.autoUnfold.distance;
240
+ return !(t && P(r, t) === !1);
230
241
  }).sort((r, a) => r.distance - a.distance).findIndex((r) => r.id === e.id);
231
- if (c === -1 || c <= ((o = t.autoUnfold.maxNumber) != null ? o : 1) - 1 === !1)
242
+ if (c === -1 || c <= ((o = n.autoUnfold.maxNumber) != null ? o : 1) - 1 === !1)
232
243
  return !1;
233
244
  }
234
- return !0;
245
+ return n.autoUnfold.strategy !== "FoldWhenMove";
235
246
  }
236
247
  })() : void 0;
237
248
  }
@@ -246,16 +257,16 @@ class Qe extends H {
246
257
  }
247
258
  setVisible(e) {
248
259
  (e != null ? e : this.tags).forEach((i) => {
249
- const f = this.getVisible(i);
250
- i.state && (i.state.visible = f);
260
+ const l = this.getVisible(i);
261
+ i.state && (i.state.visible = l);
251
262
  });
252
263
  }
253
264
  setUnfoldedByPanoIndex() {
254
265
  this.tags.forEach((e) => {
255
266
  const i = this.getUnfoldedByPanoIndex(e);
256
267
  if (e.state && (i !== void 0 && (e.state.unfolded = i), i && !e.state.visible)) {
257
- const f = this.getTagConfig(e);
258
- typeof f.unfoldedConfig == "object" && f.unfoldedConfig.autoFoldWhenHide !== !1 && (e.state.unfolded = !1);
268
+ const l = this.getTagConfig(e);
269
+ typeof l.unfoldedConfig == "object" && l.unfoldedConfig.autoFoldWhenHide !== !1 && (e.state.unfolded = !1);
259
270
  }
260
271
  });
261
272
  }
@@ -263,42 +274,42 @@ class Qe extends H {
263
274
  * @description 一个点的标签
264
275
  */
265
276
  getTagProject(e) {
266
- const i = C(e);
277
+ const i = M(e);
267
278
  if (!i)
268
279
  return;
269
- const { x: f, y: t, z: o } = i.project(this.five.camera);
280
+ const { x: l, y: n, z: o } = i.project(this.five.camera);
270
281
  if (!(o > 1))
271
- return { x: f, y: t, z: o };
282
+ return { x: l, y: n, z: o };
272
283
  }
273
284
  /** 通过射线检测标签可用性 */
274
285
  getTagEnableByIntersect(e, i) {
275
- var n, r, a, u, p;
276
- const f = R(R((n = this.getTagConfig(e).visibleConfig) != null ? n : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, o = y(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
286
+ var p, r, a, t, v;
287
+ const l = j(j((p = this.getTagConfig(e).visibleConfig) != null ? p : {}).intersectRaycaster), n = i != null ? i : this.five.getCurrentState().panoIndex, o = x(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(n) : this.five.camera.position;
277
288
  if (o === void 0)
278
- return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
279
- const d = W(
289
+ return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: n } };
290
+ const f = G(
280
291
  (() => {
281
292
  var g;
282
- const v = (g = f.checkPoints) != null ? g : "center";
283
- return v === "center" ? C(e) : v === "corner" ? z(e) : Array.isArray(v) ? v : [];
293
+ const u = (g = l.checkPoints) != null ? g : "center";
294
+ return u === "center" ? M(e) : u === "corner" ? q(e) : Array.isArray(u) ? u : [];
284
295
  })()
285
296
  );
286
297
  let s = 0, c = 0;
287
- for (const v of d) {
288
- const g = new F.Vector3().subVectors(v, o).normalize();
289
- I.set(o, g);
290
- const P = o.distanceTo(v), [l] = this.five.model.intersectRaycaster(I), m = (() => {
291
- if (!U(e))
298
+ for (const u of f) {
299
+ const g = new V.Vector3().subVectors(u, o).normalize();
300
+ T.set(o, g);
301
+ const I = o.distanceTo(u), [h] = this.five.model.intersectRaycaster(T), y = (() => {
302
+ if (!F(e))
292
303
  return;
293
- const V = this.tags.filter(U).map((B) => {
294
- var k;
295
- return (k = B.model) == null ? void 0 : k.object;
296
- }).filter(q), [w] = I.intersectObjects(V, !0);
297
- return w;
298
- })(), S = (r = f.distanceAccuracy) != null ? r : 0.01;
299
- Math.min((a = l == null ? void 0 : l.distance) != null ? a : 1 / 0, (u = m == null ? void 0 : m.distance) != null ? u : 1 / 0) + S >= P ? s++ : c++;
300
- const j = (p = f.needPassed) != null ? p : 1;
301
- if (s >= j)
304
+ const w = this.tags.filter(F).map(($) => {
305
+ var D;
306
+ return (D = $.model) == null ? void 0 : D.object;
307
+ }).filter(N), [B] = T.intersectObjects(w, !0);
308
+ return B;
309
+ })(), C = (r = l.distanceAccuracy) != null ? r : 0.01;
310
+ Math.min((a = h == null ? void 0 : h.distance) != null ? a : 1 / 0, (t = y == null ? void 0 : y.distance) != null ? t : 1 / 0) + C >= I ? s++ : c++;
311
+ const _ = (v = l.needPassed) != null ? v : 1;
312
+ if (s >= _)
302
313
  return { value: !0 };
303
314
  }
304
315
  return c === 0 ? { value: !0 } : {
@@ -306,18 +317,18 @@ class Qe extends H {
306
317
  reason: {
307
318
  type: "intersectRaycaster check failed",
308
319
  passedCount: s,
309
- needPassed: f.needPassed
320
+ needPassed: l.needPassed
310
321
  }
311
322
  };
312
323
  }
313
324
  /** 检测是否匹配当前楼层 */
314
325
  getVisibleByFloorIndex(e) {
315
- var o, d, s, c, n, r, a;
326
+ var o, f, s, c, p, r, a;
316
327
  let i = 0;
317
- const f = (o = e.fiveState) == null ? void 0 : o.panoIndex;
318
- f !== void 0 ? i = (d = this.workUtil.getObserver(f)) == null ? void 0 : d.floorIndex : i = N(this.workUtil.work, (a = (r = (c = (s = e.model) == null ? void 0 : s.object) == null ? void 0 : c.position) != null ? r : (n = e.mediaPlane) == null ? void 0 : n.position) != null ? a : C(e));
319
- const t = this.five.model.shownFloor;
320
- return t === null || t === i;
328
+ const l = (o = e.fiveState) == null ? void 0 : o.panoIndex;
329
+ l !== void 0 ? i = (f = this.workUtil.getObserver(l)) == null ? void 0 : f.floorIndex : i = X(this.workUtil.work, (a = (r = (c = (s = e.model) == null ? void 0 : s.object) == null ? void 0 : c.position) != null ? r : (p = e.mediaPlane) == null ? void 0 : p.position) != null ? a : M(e));
330
+ const n = this.five.model.shownFloor;
331
+ return n === null || n === i;
321
332
  }
322
333
  }
323
334
  export {
@@ -147,7 +147,13 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
147
147
  disableFold?: true;
148
148
  /** min-max米内自动展开,否则收起 */
149
149
  unfoldDistance?: MinMax;
150
- /** 自动展开策略, false 时不自动展开 */
150
+ /**
151
+ * @description 自动展开策略
152
+ *
153
+ * @strategy 'ScreenPostion':根据屏幕位置展开
154
+ * @strategy 'MinimumDistance':最近标签自动展开
155
+ * @strategy 'FoldWhenMove':移动屏幕自动收起
156
+ */
151
157
  autoUnfold?: false | {
152
158
  enable?: boolean;
153
159
  /** 自动展开 策略 */
@@ -168,6 +174,10 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
168
174
  * @default 无限制
169
175
  */
170
176
  distance?: MinMax;
177
+ } | {
178
+ enable?: boolean;
179
+ /** 移动屏幕自动收起 */
180
+ strategy?: 'FoldWhenMove';
171
181
  };
172
182
  } | ConfigFunction;
173
183
  /** 初始状态 */
@@ -64,15 +64,14 @@ export interface ImagePlaneGroup extends Group {
64
64
  children: ImagePlane[];
65
65
  }
66
66
  export type AudioAppearance = TagInstance<'Audio'>['data']['appearance'];
67
- export type AudioTagTypeConfigKey = `${StickType | 'Any'}-Audio-${AudioAppearance}`;
68
- type _ContentTypeConfigKey = `${StickType | 'Any'}-${TagContentType | 'Any'}` | TagContentType | AudioTagTypeConfigKey | `Mixin-${string}` | 'Any';
69
- export type ContentTypeConfigKeySplit = [StickType | 'Any', TagContentType | 'Any'] | [TagContentType] | [StickType | 'Any', 'Audio', AudioAppearance] | ['Mixin', string] | ['Any'] | [];
70
- type FiveModeType = `[${Mode | 'PanoramaLike' | 'ModelLike'}]`;
67
+ type _ContentTypeConfigKey = `${StickType | 'Any'}-${TagContentType | 'Any'}` | TagContentType | `Any-Audio-${AudioAppearance}` | 'Any';
68
+ export type ContentTypeConfigKeySplit = [StickType | 'Any', TagContentType | 'Any'] | [TagContentType] | [StickType | 'Any', 'Audio', AudioAppearance] | ['Any'] | [];
69
+ type FiveModeType = `[${Exclude<Mode, 'DepthPanorama'> | 'PanoramaLike' | 'ModelLike'}]`;
71
70
  export type ContentTypeConfigKey = FiveModeType | `${FiveModeType}-${_ContentTypeConfigKey}` | _ContentTypeConfigKey;
72
71
  /**
73
72
  * @description: 从 ContentTypeConfigKey 中提取 ContentTypeConfigKey 对应的 TagContentType 是啥
74
73
  */
75
- export type PickTagContentTypeInContentTypeConfigKey<T> = T extends FiveModeType ? any : T extends `${FiveModeType}-${infer P extends _ContentTypeConfigKey}` ? PickTagContentTypeInContentTypeConfigKey<P> : T extends `${any}-Audio-${any}` ? 'Audio' : T extends `Mixin-${string}` ? string : T extends `${any}-${infer C}` ? C : T extends TagContentType ? T : any;
74
+ export type PickTagContentTypeInContentTypeConfigKey<T> = T extends FiveModeType ? any : T extends `${FiveModeType}-${infer P extends _ContentTypeConfigKey}` ? PickTagContentTypeInContentTypeConfigKey<P> : T extends `${any}-${infer C}` ? C : T extends TagContentType ? T : any;
76
75
  export type TagConfigByKey<T> = PickTagContentTypeInContentTypeConfigKey<T> extends TagContentType ? TagConfig<PickTagContentTypeInContentTypeConfigKey<T>> : TagConfig<any>;
77
76
  export type PointTag<C extends TagContentType = TagContentType> = TagInstance<C, '2DPoint' | '3DPoint'>;
78
77
  /** 二维标签 */
@@ -14,7 +14,7 @@ let b = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- i(this, "VERSION", "3.25.10");
17
+ i(this, "VERSION", "3.27.0");
18
18
  i(this, "five");
19
19
  /**
20
20
  * @description: 插件事件钩子
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.25.10",
3
+ "%c %c@realsee/dnalogel %cv3.27.0",
4
4
  [
5
5
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
6
6
  "background-repeat: no-repeat",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.25.10",
3
+ "version": "3.27.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",