@realsee/dnalogel 3.2.0-dev.4 → 3.2.0-dev.5

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 (369) hide show
  1. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +4 -2
  2. package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +1 -0
  3. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
  4. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
  5. package/dist/index.cjs.js +54 -54
  6. package/dist/index.js +3195 -3175
  7. package/dist/index.umd.js +44 -44
  8. package/dist/shared-utils/five/getFloorIndex.d.ts +2 -8
  9. package/dist/shared-utils/five/transformPosition.d.ts +2 -0
  10. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
  11. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
  12. package/docs/classes/CSS3DRender.html +3 -3
  13. package/docs/classes/CruisePluginController.html +3 -3
  14. package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
  15. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
  16. package/docs/classes/Magnifier.html +3 -3
  17. package/docs/classes/ModelRoomLabelController.html +3 -3
  18. package/docs/classes/Object3DHelperController.html +3 -3
  19. package/docs/classes/PaintBrush.html +3 -3
  20. package/docs/classes/PanoMeasurePluginLine.html +3 -3
  21. package/docs/classes/PanoMeasurePluginModel.html +3 -3
  22. package/docs/classes/PanoMeasurePluginPoint.html +3 -3
  23. package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
  24. package/docs/classes/PanoTagPluginController.html +29 -29
  25. package/docs/classes/Util.BetterTween.html +3 -3
  26. package/docs/classes/Util.Interval.html +3 -3
  27. package/docs/classes/Util.LineSegments.html +3 -3
  28. package/docs/classes/Util.Magnifier.html +3 -3
  29. package/docs/classes/Util.Object3D.html +3 -3
  30. package/docs/classes/Util.PointDomHelper.html +3 -3
  31. package/docs/classes/Util.PointHelper.html +3 -3
  32. package/docs/classes/Util.PointSelectorHelper.html +3 -3
  33. package/docs/classes/Util.Rectangle.html +3 -3
  34. package/docs/enums/CameraMovementEffect.html +3 -3
  35. package/docs/enums/ContentType.html +3 -3
  36. package/docs/enums/DIRECTION.html +3 -3
  37. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
  38. package/docs/enums/DimensionType.html +3 -3
  39. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
  40. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
  41. package/docs/enums/PaintBrushTypeEnum.html +3 -3
  42. package/docs/enums/PointType.html +3 -3
  43. package/docs/enums/Rotation.html +3 -3
  44. package/docs/functions/AreaMakerPlugin.html +3 -3
  45. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  46. package/docs/functions/CameraMovementPlugin.html +3 -3
  47. package/docs/functions/CruisePlugin.html +3 -3
  48. package/docs/functions/CurrentPanoImagePlugin.html +3 -3
  49. package/docs/functions/GuideLinePlugin.html +3 -3
  50. package/docs/functions/ItemLabelPlugin.html +3 -3
  51. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  52. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  53. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  54. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  55. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  56. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  57. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  58. package/docs/functions/ModelViewPlugin.html +3 -3
  59. package/docs/functions/Object3DHelperPlugin.html +3 -3
  60. package/docs/functions/PanoCompassPlugin.html +3 -3
  61. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  62. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  63. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  64. package/docs/functions/PanoMeasurePlugin.html +3 -3
  65. package/docs/functions/PanoRulerPlugin.html +3 -3
  66. package/docs/functions/PanoRulerProPlugin.html +3 -3
  67. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  68. package/docs/functions/PanoTagPlugin.html +3 -3
  69. package/docs/functions/PanoVideoPlugin.html +3 -3
  70. package/docs/functions/PipelinePlugin.html +3 -3
  71. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  72. package/docs/functions/Util.absoluteUrl.html +3 -3
  73. package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
  74. package/docs/functions/Util.equal.html +3 -3
  75. package/docs/functions/Util.getCoordsFromClient.html +3 -3
  76. package/docs/functions/Util.getCoordsFromElement.html +3 -3
  77. package/docs/functions/Util.getFrameTime.html +3 -3
  78. package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
  79. package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
  80. package/docs/functions/Util.isAbsoluteURL.html +3 -3
  81. package/docs/functions/Util.isModelLike.html +3 -3
  82. package/docs/functions/Util.isNil.html +3 -3
  83. package/docs/functions/Util.isPanoramaLike.html +3 -3
  84. package/docs/functions/Util.nextFrame.html +3 -3
  85. package/docs/functions/Util.notNil.html +3 -3
  86. package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
  87. package/docs/functions/Util.tweenProgress.html +3 -3
  88. package/docs/functions/Util.uuid.html +3 -3
  89. package/docs/functions/pluginFlag.html +3 -3
  90. package/docs/index.html +4 -4
  91. package/docs/interfaces/AddTagConfig.html +3 -3
  92. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
  93. package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
  94. package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
  95. package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
  96. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
  97. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
  98. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
  99. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
  100. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
  101. package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
  102. package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
  103. package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
  104. package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
  105. package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
  106. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
  107. package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
  108. package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
  109. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
  110. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
  111. package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
  112. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
  113. package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
  114. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
  115. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
  116. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
  117. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
  118. package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
  119. package/docs/interfaces/EventMap.html +3 -3
  120. package/docs/interfaces/FloorplanBounding.html +3 -3
  121. package/docs/interfaces/FloorplanData.html +3 -3
  122. package/docs/interfaces/FloorplanEntrance.html +3 -3
  123. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  124. package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
  125. package/docs/interfaces/FloorplanFloorData.html +3 -3
  126. package/docs/interfaces/FloorplanImagePosition.html +3 -3
  127. package/docs/interfaces/FloorplanObserver.html +3 -3
  128. package/docs/interfaces/FloorplanOutlineItem.html +3 -3
  129. package/docs/interfaces/FloorplanPosition.html +3 -3
  130. package/docs/interfaces/FloorplanRoomItem.html +3 -3
  131. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  132. package/docs/interfaces/FloorplanServerBounding.html +3 -3
  133. package/docs/interfaces/FloorplanServerComputedData.html +3 -3
  134. package/docs/interfaces/FloorplanServerData.html +3 -3
  135. package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
  136. package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
  137. package/docs/interfaces/FloorplanServerEntrance.html +3 -3
  138. package/docs/interfaces/FloorplanServerFloorData.html +3 -3
  139. package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
  140. package/docs/interfaces/FloorplanServerObserver.html +3 -3
  141. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
  142. package/docs/interfaces/FloorplanServerPosition.html +3 -3
  143. package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
  144. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  145. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
  146. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
  147. package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
  148. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
  149. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
  150. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
  151. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
  152. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
  153. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
  154. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
  155. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
  156. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
  157. package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
  158. package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
  159. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
  160. package/docs/interfaces/HelperOffset.html +3 -3
  161. package/docs/interfaces/ImagePlaneGroup.html +3 -3
  162. package/docs/interfaces/ItemLabelPluginData.html +3 -3
  163. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
  164. package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
  165. package/docs/interfaces/MinMax.html +3 -3
  166. package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
  167. package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
  168. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
  169. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
  170. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
  171. package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
  172. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
  173. package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
  174. package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
  175. package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
  176. package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
  177. package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
  178. package/docs/interfaces/ModelViewPluginExportType.html +3 -3
  179. package/docs/interfaces/Object3DHelperState.html +3 -3
  180. package/docs/interfaces/ObjectHelperControllers.html +3 -3
  181. package/docs/interfaces/PaintBrushAction.html +3 -3
  182. package/docs/interfaces/PaintBrushConfigs.html +3 -3
  183. package/docs/interfaces/PaintBrushState.html +3 -3
  184. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
  185. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
  186. package/docs/interfaces/PanoMeasureParameterType.html +3 -3
  187. package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
  188. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
  189. package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
  190. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
  191. package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
  192. package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
  193. package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
  194. package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
  195. package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
  196. package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
  197. package/docs/interfaces/PanoRulerProPluginState.html +3 -3
  198. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
  199. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
  200. package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
  201. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
  202. package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
  203. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
  204. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
  205. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
  206. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
  207. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
  208. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
  209. package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
  210. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
  211. package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
  212. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
  213. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
  214. package/docs/interfaces/Point.html +3 -3
  215. package/docs/interfaces/Room.html +3 -3
  216. package/docs/interfaces/RoomInfo.html +3 -3
  217. package/docs/interfaces/RoomLabel.html +3 -3
  218. package/docs/interfaces/RoomRules.html +3 -3
  219. package/docs/interfaces/Rooms.html +3 -3
  220. package/docs/interfaces/Scissor.html +3 -3
  221. package/docs/interfaces/State.html +3 -3
  222. package/docs/interfaces/TagCacheInterface.html +3 -3
  223. package/docs/interfaces/TagConfig.html +3 -3
  224. package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
  225. package/docs/interfaces/TagIconUrl.html +3 -3
  226. package/docs/interfaces/TagObjectGroup.html +3 -3
  227. package/docs/interfaces/TagStyle.html +3 -3
  228. package/docs/interfaces/Tags.html +3 -3
  229. package/docs/interfaces/TemporaryState.html +3 -3
  230. package/docs/interfaces/Util.MagnifierParameter.html +3 -3
  231. package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
  232. package/docs/interfaces/Util.PointIntersection.html +3 -3
  233. package/docs/modules/AreaMakerPluginType.html +3 -3
  234. package/docs/modules/CruisePluginTypes.html +3 -3
  235. package/docs/modules/CurrentPanoImagePluginType.html +3 -3
  236. package/docs/modules/GuideLineItem.html +3 -3
  237. package/docs/modules/GuideLineModeItem.html +3 -3
  238. package/docs/modules/GuideLinePluginType.html +3 -3
  239. package/docs/modules/PanoVideoPluginType.html +3 -3
  240. package/docs/modules/Util.html +3 -3
  241. package/docs/modules.html +4 -4
  242. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
  243. package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
  244. package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
  245. package/docs/types/ArrayPosition.html +3 -3
  246. package/docs/types/AudioAppearance.html +3 -3
  247. package/docs/types/AudioTagTypeConfigKey.html +3 -3
  248. package/docs/types/CSS3DRenderExportType.html +3 -3
  249. package/docs/types/CSS3DRenderPluginExportType.html +3 -3
  250. package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
  251. package/docs/types/ClassFunctionParameters.html +3 -3
  252. package/docs/types/Color.html +3 -3
  253. package/docs/types/ContentTypeConfigKey.html +3 -3
  254. package/docs/types/ContentTypeConfigKeySplit.html +3 -3
  255. package/docs/types/ContentTypeMap.html +3 -3
  256. package/docs/types/Create3DDomContainerReturnType.html +3 -3
  257. package/docs/types/Create3DElementReturnType.html +3 -3
  258. package/docs/types/CruisePluginExportType.html +3 -3
  259. package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
  260. package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
  261. package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
  262. package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
  263. package/docs/types/DeprecatedTagProperty.html +3 -3
  264. package/docs/types/Direction-1.html +3 -3
  265. package/docs/types/Direction4.html +3 -3
  266. package/docs/types/ElementRenderer.html +3 -3
  267. package/docs/types/FloorplanRuleLabels.html +3 -3
  268. package/docs/types/FloorplanServerRuleLabels.html +3 -3
  269. package/docs/types/GuideLinePluginExportType.html +3 -3
  270. package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
  271. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
  272. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
  273. package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
  274. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
  275. package/docs/types/GuideLinePluginType.PathItem.html +3 -3
  276. package/docs/types/GuideLinePluginType.PluginData.html +3 -3
  277. package/docs/types/HelperEventMap.html +3 -3
  278. package/docs/types/LoadTagConfig.html +3 -3
  279. package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
  280. package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
  281. package/docs/types/MediaData.html +3 -3
  282. package/docs/types/MediaStore.html +3 -3
  283. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
  284. package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
  285. package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
  286. package/docs/types/ModelId.html +3 -3
  287. package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
  288. package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
  289. package/docs/types/MoveArgs.html +3 -3
  290. package/docs/types/MoveOpts.html +3 -3
  291. package/docs/types/Object3DHelperEventMap.html +3 -3
  292. package/docs/types/ObjectFit.html +3 -3
  293. package/docs/types/PaintBrushEventMap.html +3 -3
  294. package/docs/types/PanoCompassPluginData.html +3 -3
  295. package/docs/types/PanoCompassPluginExportType.html +3 -3
  296. package/docs/types/PanoCompassPluginParameterType.html +3 -3
  297. package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
  298. package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
  299. package/docs/types/PanoIndex.html +3 -3
  300. package/docs/types/PanoMeasurePluginEvent.html +3 -3
  301. package/docs/types/PanoMeasureReturnType.html +3 -3
  302. package/docs/types/PanoSpatialTagPluginId.html +3 -3
  303. package/docs/types/PanoTagPluginExportInterface.html +3 -3
  304. package/docs/types/PanoTagPluginParamsInterface.html +3 -3
  305. package/docs/types/PanoVideoPluginParameterType.html +3 -3
  306. package/docs/types/PanoVideoPluginReturnType.html +3 -3
  307. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
  308. package/docs/types/PipelinePluginParameterType.html +3 -3
  309. package/docs/types/PipelinePluginReturnType.html +3 -3
  310. package/docs/types/PlaneTag.html +3 -3
  311. package/docs/types/Point2DTag.html +3 -3
  312. package/docs/types/Point3DTag.html +3 -3
  313. package/docs/types/PointTag.html +3 -3
  314. package/docs/types/PointTagInstance.html +3 -3
  315. package/docs/types/Position.html +4 -4
  316. package/docs/types/RotateArgs.html +3 -3
  317. package/docs/types/RotateOpts.html +3 -3
  318. package/docs/types/RuleLabelsKey.html +3 -3
  319. package/docs/types/RuleLabelsValue.html +3 -3
  320. package/docs/types/StickType.html +3 -3
  321. package/docs/types/Tag.html +3 -3
  322. package/docs/types/Tag2D.html +3 -3
  323. package/docs/types/Tag3D.html +3 -3
  324. package/docs/types/TagConfigByKey.html +3 -3
  325. package/docs/types/TagContentType.html +3 -3
  326. package/docs/types/TagDimensionType.html +3 -3
  327. package/docs/types/TagElement.html +3 -3
  328. package/docs/types/TagEvents.html +3 -3
  329. package/docs/types/TagGLTFObject.html +3 -3
  330. package/docs/types/TagHooks.html +3 -3
  331. package/docs/types/TagId.html +3 -3
  332. package/docs/types/TagInstance.html +6 -4
  333. package/docs/types/TagPointType.html +3 -3
  334. package/docs/types/TagRendererMap.html +3 -3
  335. package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
  336. package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
  337. package/docs/types/WorkCode.html +3 -3
  338. package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
  339. package/docs/variables/PLUGIN.html +3 -3
  340. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
  341. package/docs/variables/ROOM_TYPE_MAP.html +3 -3
  342. package/docs/variables/defaultGlobalConfig.html +3 -3
  343. package/docs/variables/itemLabelPluginServerParams.html +3 -3
  344. package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
  345. package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
  346. package/libs/CruisePlugin/Controller.js +35 -34
  347. package/libs/CruisePlugin/index.js +6 -5
  348. package/libs/GuideLinePlugin/Controller.js +5 -4
  349. package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
  350. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
  351. package/libs/GuideLinePlugin/index.js +8 -7
  352. package/libs/PanoTagPlugin/controller/TagComputer.js +69 -68
  353. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  354. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +4 -2
  355. package/libs/PanoTagPlugin/controller/TagUtil.js +97 -87
  356. package/libs/PanoTagPlugin/controller/index.js +8 -5
  357. package/libs/PanoTagPlugin/index.js +12 -11
  358. package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +1 -0
  359. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
  360. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
  361. package/libs/PanoTagPlugin/utils/tagPosition.js +15 -15
  362. package/libs/base/BasePlugin.js +1 -1
  363. package/libs/index.js +117 -116
  364. package/libs/shared-utils/five/getFloorIndex.d.ts +2 -8
  365. package/libs/shared-utils/five/getFloorIndex.js +16 -12
  366. package/libs/shared-utils/five/transformPosition.d.ts +2 -0
  367. package/libs/shared-utils/five/transformPosition.js +10 -0
  368. package/libs/shared-utils/logger.js +1 -1
  369. package/package.json +1 -1
@@ -1,30 +1,30 @@
1
- var w = Object.defineProperty, E = Object.defineProperties;
1
+ var B = Object.defineProperty, E = Object.defineProperties;
2
2
  var $ = Object.getOwnPropertyDescriptors;
3
- var k = Object.getOwnPropertySymbols;
4
- var L = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
5
- var M = (m, e, i) => e in m ? w(m, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : m[e] = i, y = (m, e) => {
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
- L.call(e, i) && M(m, i, e[i]);
8
- if (k)
9
- for (var i of k(e))
10
- O.call(e, i) && M(m, i, e[i]);
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
11
  return m;
12
- }, D = (m, e) => E(m, $(e));
13
- import * as U from "three";
14
- import { is3DTag as z, isMediaModelTag as R } from "../utils/tag/tagCheck.js";
15
- import { getTagCenterPosition as I, getTagPosition as Z } from "../utils/tagPosition.js";
16
- import { checkRange as b } from "../utils/checkRange.js";
17
- import { isPanoramaLike as h, isModelLike as H } from "../../shared-utils/five/mode.js";
12
+ }, M = (m, e) => E(m, $(e));
13
+ import * as j from "three";
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 j } 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 U.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,12 +73,12 @@ 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, f = h(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
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;
76
77
  if ((f == null ? void 0 : f.visible) !== void 0)
77
78
  return f.visible;
78
79
  {
79
- const s = [], d = (() => {
80
- var r, c, u;
80
+ const s = [], u = (() => {
81
+ var r, c, v;
81
82
  const o = (r = e.config.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" };
@@ -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 = !h(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,
@@ -99,7 +100,7 @@ class Je extends q {
99
100
  }
100
101
  if (o.followModelVisibility === !0 && (n === "Floorplan" || n === "Mapview") && this.getVisibleByFloorIndex(e) === !1)
101
102
  return { value: !1, checkedList: s, reason: "followModelVisibility check failed" };
102
- if (h(n) && o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && t !== void 0) {
103
+ if (b(n) && o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && t !== void 0) {
103
104
  if (s.push("visiblePanoIndex"), Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(t))
104
105
  return {
105
106
  value: !1,
@@ -110,22 +111,22 @@ class Je extends q {
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
117
  if (o.visibleDistance !== void 0 && (s.push("visibleDistance"), o.visibleDistance !== "unLimited")) {
117
118
  const a = this.getDistance(e);
118
- if (b(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 (h(n) && o.angleRange && z(e)) {
126
+ if (b(n) && o.angleRange && L(e)) {
126
127
  s.push("angleRange");
127
128
  const a = this.getAngle(e);
128
- if (b(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 f && (f.visible = d.value, f.__debug_visible_reason__ = d), d.value;
149
+ return f && (f.visible = u.value, f.__debug_visible_reason__ = u), u.value;
149
150
  }
150
151
  }
151
152
  /**
@@ -168,7 +169,7 @@ class Je extends q {
168
169
  return !1;
169
170
  if (n.keep === "unfolded")
170
171
  return !0;
171
- if (n.unfoldDistance && b(this.getDistance(e), n.unfoldDistance) === !1)
172
+ if (n.unfoldDistance && p(this.getDistance(e), n.unfoldDistance) === !1)
172
173
  return !1;
173
174
  })();
174
175
  t.unfolded = f;
@@ -194,24 +195,24 @@ class Je extends q {
194
195
  return;
195
196
  if (t.autoUnfold.strategy === "ScreenPostion") {
196
197
  const f = this.getTagProject(e);
197
- if (f && b(f.x, t.autoUnfold.autoUnfoldProjectX) === !1)
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 d = this.filterPointTag.filter((r) => this.getCurrentVisibleState(r)).filter((r) => {
202
+ const u = this.filterPointTag.filter((r) => this.getCurrentVisibleState(r)).filter((r) => {
202
203
  const c = this.getTagProject(r);
203
204
  if (!c)
204
205
  return !1;
205
- const { x: u, y: a, z: v } = c;
206
- return !(Math.abs(v) > 1 || Math.abs(u) > 1 || Math.abs(a) > 1);
206
+ const { x: v, y: a, z: d } = c;
207
+ return !(Math.abs(d) > 1 || Math.abs(v) > 1 || Math.abs(a) > 1);
207
208
  }).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: c }) => {
208
- var u, a;
209
- return !(typeof c == "function" || c.keep || c.autoUnfold === !1 || ((u = c.autoUnfold) == null ? void 0 : u.enable) === !1 || ((a = c.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
210
- }).map((r) => D(y({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: c }) => {
211
- const u = c.autoUnfold.distance;
212
- return !(u && b(r, u) === !1);
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);
213
214
  }).sort((r, c) => r.distance - c.distance).findIndex((r) => r.id === e.id);
214
- if (d === -1 || d <= ((n = t.autoUnfold.maxNumber) != null ? n : 1) - 1 === !1)
215
+ if (u === -1 || u <= ((n = t.autoUnfold.maxNumber) != null ? n : 1) - 1 === !1)
215
216
  return !1;
216
217
  }
217
218
  return !0;
@@ -265,7 +266,7 @@ class Je extends q {
265
266
  * @description 一个点的标签
266
267
  */
267
268
  getTagProject(e) {
268
- const i = I(e);
269
+ const i = x(e);
269
270
  if (!i)
270
271
  return;
271
272
  const { x: l, y: t, z: n } = i.project(this.five.camera);
@@ -274,36 +275,36 @@ class Je extends q {
274
275
  }
275
276
  /** 通过射线检测标签可用性 */
276
277
  getTagEnableByIntersect(e, i) {
277
- var o, r, c, u, a, v;
278
- const l = j(j((o = this.getTagConfig(e).visibleConfig) != null ? o : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, n = h(this.five.getCurrentState().mode) ? (r = this.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;
279
280
  if (n === void 0)
280
281
  return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
281
- const f = X(
282
+ const f = W(
282
283
  (() => {
283
- var g;
284
- const p = (g = l.checkPoints) != null ? g : "center";
285
- return p === "center" ? I(e) : p === "corner" ? Z(e) : Array.isArray(p) ? p : [];
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 : [];
286
287
  })()
287
288
  );
288
- let s = 0, d = 0;
289
- for (const p of f) {
290
- const g = new U.Vector3().subVectors(p, n).normalize();
291
- T.set(n, g);
292
- const _ = n.distanceTo(p), [P] = this.five.model.intersectRaycaster(T), x = (() => {
293
- 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))
294
295
  return;
295
- const S = this.tags.filter(R).map((B) => {
296
- var C;
297
- return (C = B.model) == null ? void 0 : C.object;
298
- }).filter(N), [V] = T.intersectObjects(S, !0);
299
- return V;
300
- })(), F = (c = l.distanceAccuracy) != null ? c : 0.01;
301
- Math.min((u = P == null ? void 0 : P.distance) != null ? u : 1 / 0, (a = x == null ? void 0 : x.distance) != null ? a : 1 / 0) + F >= _ ? s++ : d++;
302
- const A = (v = l.needPassed) != null ? v : 1;
303
- if (s >= A)
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)
304
305
  return { value: !0 };
305
306
  }
306
- return d === 0 ? { value: !0 } : {
307
+ return u === 0 ? { value: !0 } : {
307
308
  value: !1,
308
309
  reason: {
309
310
  type: "intersectRaycaster check failed",
@@ -314,10 +315,10 @@ class Je extends q {
314
315
  }
315
316
  /** 检测是否匹配当前楼层 */
316
317
  getVisibleByFloorIndex(e) {
317
- var n, f, s, d, o, r, c;
318
+ var n, f, s, u, o, r, c;
318
319
  let i = 0;
319
320
  const l = (n = e.fiveState) == null ? void 0 : n.panoIndex;
320
- l !== void 0 ? i = (f = this.work.observers[l]) == null ? void 0 : f.floorIndex : i = W(this.work.observers, (c = (r = (d = (s = e.model) == null ? void 0 : s.object) == null ? void 0 : d.position) != null ? r : (o = e.mediaPlane) == null ? void 0 : o.position) != null ? c : I(e));
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));
321
322
  const t = this.five.model.shownFloor;
322
323
  return t === null || t === i;
323
324
  }
@@ -74,6 +74,7 @@ import "../../shared-utils/five/calculateThreeMouse.js";
74
74
  import "../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 "../../shared-utils/three/loadTexture.js";
@@ -158,7 +159,7 @@ import "../../CSS3DRenderPlugin/Controller.js";
158
159
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
159
160
  import "@realsee/five/gltf-loader";
160
161
  const q = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
161
- class hi extends x {
162
+ class ui extends x {
162
163
  constructor(t) {
163
164
  super(t);
164
165
  P(this, "group", new y());
@@ -464,5 +465,5 @@ class hi extends x {
464
465
  }
465
466
  }
466
467
  export {
467
- hi as TagRender
468
+ ui as TagRender
468
469
  };
@@ -1,4 +1,4 @@
1
- import type { TagInstance, TagContentType, StickType, TagId, TagConfig, PlaneTag, MediaStore } from '../typings';
1
+ import type { TagInstance, TagContentType, StickType, TagId, TagConfig, PlaneTag, MediaStore, Position } from '../typings';
2
2
  import * as THREE from 'three';
3
3
  import type { Tag, Tags, PointTagInstance, Point3DTag } from '../typings';
4
4
  import { TagCache } from './TagCache';
@@ -40,6 +40,7 @@ export declare abstract class TagUtil extends TagCache {
40
40
  * @description 获取标签当前状态
41
41
  */
42
42
  getCurrentVisibleState(tag: TagInstance): boolean;
43
+ protected getObserverPosition: (index: number) => THREE.Vector3;
43
44
  protected loadVideoFirstFrame: () => void;
44
45
  protected updateTagConfig(): void;
45
46
  protected can<T extends Tag>(action: 'show' | 'hide' | 'fold' | 'unfold', paramsTag: T): boolean;
@@ -52,7 +53,7 @@ export declare abstract class TagUtil extends TagCache {
52
53
  * @description: 获取距离
53
54
  */
54
55
  protected getDistance(tag: TagInstance, fiveState?: Partial<FiveState>): number;
55
- protected getPositions(tag: TagInstance): [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3] | [import("../typings").ArrayPosition, import("../typings").ArrayPosition, import("../typings").ArrayPosition, import("../typings").ArrayPosition];
56
+ protected getPositions(tag: TagInstance): [Position, Position, Position, Position];
56
57
  protected addObjectClickHandler(tag: TagInstance, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
57
58
  protected getTagNormal(tag: TagInstance): THREE.Vector3 | undefined;
58
59
  protected get filterPointTag(): PointTagInstance[];
@@ -60,6 +61,7 @@ export declare abstract class TagUtil extends TagCache {
60
61
  protected get filterImagePlane(): TagInstance<"MediaPlane", "Plane">[];
61
62
  protected get filterMediaModel(): TagInstance<"MediaModel", "Model">[];
62
63
  protected get filterCSS3DTag(): (TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Plane"> | TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Model"> | TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "3DPoint">)[];
64
+ protected getTransformedPostion(position: Tag['position']): THREE.Vector3 | [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3];
63
65
  /**
64
66
  * @description 检查是否已经销毁
65
67
  * @returns isDisposed; 已经销毁返回 true,否则返回 false
@@ -1,39 +1,40 @@
1
- var G = Object.defineProperty, X = Object.defineProperties;
2
- var q = Object.getOwnPropertyDescriptors;
1
+ var X = Object.defineProperty, q = Object.defineProperties;
2
+ var K = Object.getOwnPropertyDescriptors;
3
3
  var R = Object.getOwnPropertySymbols;
4
- var K = Object.prototype.hasOwnProperty, Q = Object.prototype.propertyIsEnumerable;
5
- var E = (a, r, e) => r in a ? G(a, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[r] = e, b = (a, r) => {
6
- for (var e in r || (r = {}))
7
- K.call(r, e) && E(a, e, r[e]);
4
+ var Q = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
5
+ var E = (a, s, e) => s in a ? X(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, M = (a, s) => {
6
+ for (var e in s || (s = {}))
7
+ Q.call(s, e) && E(a, e, s[e]);
8
8
  if (R)
9
- for (var e of R(r))
10
- Q.call(r, e) && E(a, e, r[e]);
9
+ for (var e of R(s))
10
+ Y.call(s, e) && E(a, e, s[e]);
11
11
  return a;
12
- }, B = (a, r) => X(a, q(r));
13
- var h = (a, r, e) => (E(a, typeof r != "symbol" ? r + "" : r, e), e);
14
- import { defaultGlobalConfig as Y } from "../typings/tag/TagConfig.js";
15
- import { objectAssignDeepExports as C } from "../../vendor/object-assign-deep/objectAssignDeep.js";
16
- import * as Z from "three";
17
- import { DefaultConfig as ee } from "../tag.config.js";
18
- import { anyPositionToVector3 as ie, arrayPositionToVector3 as w } from "../../shared-utils/positionToVector3.js";
19
- import { planeNormal as j } from "../utils/planeNormal.js";
12
+ }, B = (a, s) => q(a, K(s));
13
+ var m = (a, s, e) => (E(a, typeof s != "symbol" ? s + "" : s, e), e);
14
+ import { defaultGlobalConfig as Z } from "../typings/tag/TagConfig.js";
15
+ import { objectAssignDeepExports as y } from "../../vendor/object-assign-deep/objectAssignDeep.js";
16
+ import * as ee from "three";
17
+ import { DefaultConfig as ie } from "../tag.config.js";
18
+ import { anyPositionToVector3 as P } from "../../shared-utils/positionToVector3.js";
19
+ import { planeNormal as w } from "../utils/planeNormal.js";
20
20
  import { getTagCenterPosition as N } from "../utils/tagPosition.js";
21
21
  import { normalPositionToPositions as te } from "../utils/normalPositionToPositions.js";
22
22
  import { TagCache as oe } from "./TagCache.js";
23
- import { writable as ne } from "../../vendor/svelte/store/index.js";
24
- import { isIOSWX as re } from "../../shared-utils/device.js";
23
+ import { writable as re } from "../../vendor/svelte/store/index.js";
24
+ import { isIOSWX as ne } from "../../shared-utils/device.js";
25
25
  import { Five as se } from "@realsee/five";
26
26
  import { isMediaPlaneTag as fe, isMediaModelTag as _, isPlaneTag as ae, isPoint3DTag as ce } from "../utils/tag/tagCheck.js";
27
27
  import { VideoPlane as le } from "../utils/model/mediaPlane.js";
28
28
  import { FiveDomEvents as de } from "../../shared-utils/five/FiveDomEvents.js";
29
29
  import $ from "../utils/tag/adaptConfig.js";
30
- import { isPanoramaLike as A, isModelLike as z } from "../../shared-utils/five/mode.js";
30
+ import { isPanoramaLike as O, isModelLike as z } from "../../shared-utils/five/mode.js";
31
31
  import "hammerjs";
32
32
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
33
33
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
34
34
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
35
35
  import { entries as H } from "../../shared-utils/typescript/entries.js";
36
36
  import { getUrlExt as J } from "../../shared-utils/url/getUrl.js";
37
+ import { transformPosition as j } from "../../shared-utils/five/transformPosition.js";
37
38
  import "../../shared-utils/three/centerPoint.js";
38
39
  import "../../base/BasePlugin.js";
39
40
  import "../../shared-utils/Subscribe.js";
@@ -59,25 +60,31 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
59
60
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
60
61
  import "../../shared-utils/three/getNormal.js";
61
62
  import "../../shared-utils/five/calculateThreeMouse.js";
62
- class si extends oe {
63
+ class fi extends oe {
63
64
  constructor(e) {
64
65
  super(e);
65
- h(this, "tags", []);
66
- h(this, "config", ee);
67
- h(this, "mediaStore", ne({
66
+ m(this, "tags", []);
67
+ m(this, "config", ie);
68
+ m(this, "mediaStore", re({
68
69
  currentMediaElement: null
69
70
  }));
70
71
  /** css3DRenderPlugin */
71
- h(this, "css3DRenderPlugin");
72
- h(this, "store", {
72
+ m(this, "css3DRenderPlugin");
73
+ m(this, "store", {
73
74
  disposers: [],
74
75
  disposed: !1,
75
76
  resizeObserverDisposerAdding: !1,
76
77
  css3DRenderDisposer: /* @__PURE__ */ new Map()
77
78
  });
78
- h(this, "domEvents", new de(this.five));
79
- h(this, "loadVideoFirstFrame", () => {
80
- re && this.hooks.emit("loadVideoFirstFrame");
79
+ m(this, "domEvents", new de(this.five));
80
+ m(this, "getObserverPosition", (e) => {
81
+ var o, t;
82
+ const i = (o = this.work) == null ? void 0 : o.observers[e];
83
+ if (i)
84
+ return j(i.position, (t = this.work) == null ? void 0 : t.options.transform);
85
+ });
86
+ m(this, "loadVideoFirstFrame", () => {
87
+ ne && this.hooks.emit("loadVideoFirstFrame");
81
88
  });
82
89
  this.mediaStore.subscribe(({ currentMediaElement: i }) => {
83
90
  this.tags.forEach((o) => {
@@ -110,9 +117,9 @@ class si extends oe {
110
117
  * @description: 获取标签配置
111
118
  */
112
119
  getTagConfig(e, i) {
113
- var n, f;
114
- const o = this.calculateTagConfig(e, i), t = (n = i == null ? void 0 : i.fiveMode) != null ? n : this.five.getCurrentState().mode, s = (f = o.configWithFiveMode) == null ? void 0 : f[t];
115
- return s != null ? s : o;
120
+ var r, f;
121
+ const o = this.calculateTagConfig(e, i), t = (r = i == null ? void 0 : i.fiveMode) != null ? r : this.five.getCurrentState().mode, n = (f = o.configWithFiveMode) == null ? void 0 : f[t];
122
+ return n != null ? n : o;
116
123
  }
117
124
  /**
118
125
  * @description 获取标签当前状态
@@ -126,7 +133,7 @@ class si extends oe {
126
133
  const i = this.getTagConfig(e, { useCache: !1 });
127
134
  if (e.config = i, e.config.initialData) {
128
135
  const t = JSON.parse(JSON.stringify(e.data));
129
- e.data = (o = i.initialData) != null && o.important ? C(e.data, t, i.initialData) : C(e.data, i.initialData, t);
136
+ e.data = (o = i.initialData) != null && o.important ? y(e.data, t, i.initialData) : y(e.data, i.initialData, t);
130
137
  }
131
138
  });
132
139
  }
@@ -174,7 +181,6 @@ class si extends oe {
174
181
  * @description: 获取角度
175
182
  */
176
183
  getAngle(e, i) {
177
- var s, n;
178
184
  const o = i != null ? i : this.five.getCurrentState().panoIndex;
179
185
  if (o === void 0)
180
186
  throw new Error(`getAngle(): fivePanoIndex is ${o}`);
@@ -182,38 +188,37 @@ class si extends oe {
182
188
  if (t.angle !== void 0)
183
189
  return t.angle;
184
190
  {
185
- const f = (n = (s = this.work) == null ? void 0 : s.observers[o]) == null ? void 0 : n.position;
186
- if (f === void 0)
187
- throw new Error(`getAngle(): observerPosition is ${f}`);
188
- const d = (() => e.stickType === "3DPoint" ? ie(e.normal) : j(e.position))();
189
- if (!d)
191
+ const n = this.getObserverPosition(o);
192
+ if (n === void 0)
193
+ throw new Error(`getAngle(): observerPosition is ${n}`);
194
+ const r = (() => e.stickType === "3DPoint" ? P(e.normal) : w(e.position))();
195
+ if (!r)
190
196
  return;
191
- const g = N(e);
192
- if (!g)
197
+ const f = N(e);
198
+ if (!f)
193
199
  return;
194
- const l = new Z.Vector3().copy(f).sub(g), v = d.angleTo(l) * 180 / Math.PI;
195
- return t.angle = v, t.angle;
200
+ const l = new ee.Vector3().copy(n).sub(f), g = r.angleTo(l) * 180 / Math.PI;
201
+ return t.angle = g, t.angle;
196
202
  }
197
203
  }
198
204
  /**
199
205
  * @description: 获取距离
200
206
  */
201
207
  getDistance(e, i) {
202
- var d, g;
203
- const o = b(b({}, this.five.getCurrentState()), i), { panoIndex: t, mode: s } = o, n = A(s) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
204
- if ((n == null ? void 0 : n.distance) !== void 0)
205
- return n.distance;
208
+ const o = M(M({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = o, r = O(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
209
+ if ((r == null ? void 0 : r.distance) !== void 0)
210
+ return r.distance;
206
211
  const f = N(e);
207
212
  if (!f)
208
213
  return -1;
209
- if (A(s)) {
210
- const l = (g = (d = this.work) == null ? void 0 : d.observers[t]) == null ? void 0 : g.position;
214
+ if (O(n)) {
215
+ const l = this.getObserverPosition(t);
211
216
  if (l === void 0)
212
217
  return -1;
213
- const v = l.distanceTo(f);
214
- return n && (n.distance = v), v;
218
+ const g = l.distanceTo(f);
219
+ return r && (r.distance = g), g;
215
220
  }
216
- if (z(s))
221
+ if (z(n))
217
222
  return this.five.camera.position.distanceTo(f);
218
223
  }
219
224
  getPositions(e) {
@@ -222,29 +227,29 @@ class si extends oe {
222
227
  if (_(e))
223
228
  return e.data.mediaPosition;
224
229
  if (ce(e))
225
- return te(this.five.camera.position, w(e.position), w(e.normal));
230
+ return te(this.five.camera.position, P(e.position), P(e.normal));
226
231
  }
227
232
  addObjectClickHandler(e, i, o) {
228
233
  if (!i || !this.domEvents)
229
234
  return () => {
230
235
  };
231
- const t = () => !(!this.getCurrentVisibleState(e) || e.loading), s = (n) => {
236
+ const t = () => !(!this.getCurrentVisibleState(e) || e.loading), n = (r) => {
232
237
  if (!t())
233
238
  return !1;
234
- o(n.origDomEvent);
239
+ o(r.origDomEvent);
235
240
  };
236
- return this.domEvents.addEventListener(i, "click", s), () => {
237
- var n;
238
- (n = this.domEvents) == null || n.removeEventListener(i, "click", s);
241
+ return this.domEvents.addEventListener(i, "click", n), () => {
242
+ var r;
243
+ (r = this.domEvents) == null || r.removeEventListener(i, "click", n);
239
244
  };
240
245
  }
241
246
  getTagNormal(e) {
242
247
  if (e.normal)
243
- return w(e.normal);
248
+ return P(e.normal);
244
249
  if (e.stickType === "Plane")
245
- return j(e.position);
250
+ return w(e.position);
246
251
  if (e.stickType === "Model")
247
- return j(this.getPositions(e));
252
+ return w(this.getPositions(e));
248
253
  }
249
254
  // TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
250
255
  get filterPointTag() {
@@ -269,6 +274,11 @@ class si extends oe {
269
274
  return o === "BehindDom" || o === "Dom";
270
275
  });
271
276
  }
277
+ getTransformedPostion(e) {
278
+ var o;
279
+ const i = (o = this.work) == null ? void 0 : o.options.transform;
280
+ return e.length === 4 ? e.map(P).map((t) => j(t, i)) : j(P(e), i);
281
+ }
272
282
  /**
273
283
  * @description 检查是否已经销毁
274
284
  * @returns isDisposed; 已经销毁返回 true,否则返回 false
@@ -280,46 +290,46 @@ class si extends oe {
280
290
  * @description: 获取merge后的配置
281
291
  */
282
292
  calculateTagConfig(e, i) {
283
- var S, O, I, V;
284
- const o = (S = i == null ? void 0 : i.useCache) != null ? S : !0;
293
+ var A, S, I, W;
294
+ const o = (A = i == null ? void 0 : i.useCache) != null ? A : !0;
285
295
  if (!e)
286
- return (O = this.config.globalConfig) != null ? O : {};
296
+ return (S = this.config.globalConfig) != null ? S : {};
287
297
  if (o && ((I = e.config) != null && I._isMerged))
288
298
  return e.config;
289
- const t = {}, s = {}, n = {};
290
- this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([u, p]) => {
291
- var F, L;
292
- const c = u, D = c.split("-"), W = u.startsWith("["), y = W ? D[0].slice(1, -1) : void 0, T = W ? D.slice(1) : D, P = y ? ["PanoramaLike", "ModelLike"].includes(y) ? (F = s[y]) != null ? F : s[y] = {} : (L = n[y]) != null ? L : n[y] = {} : t;
293
- if (!P[c]) {
294
- if (T.length === 0 && (P[c] = p), T.length === 1) {
295
- const [m] = T;
296
- (e.contentType === m || m === "Any") && (P[c] = p);
299
+ const t = {}, n = {}, r = {};
300
+ this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([d, u]) => {
301
+ var V, L;
302
+ const c = d, D = c.split("-"), F = d.startsWith("["), T = F ? D[0].slice(1, -1) : void 0, h = F ? D.slice(1) : D, v = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (V = n[T]) != null ? V : n[T] = {} : (L = r[T]) != null ? L : r[T] = {} : t;
303
+ if (!v[c]) {
304
+ if (h.length === 0 && (v[c] = u), h.length === 1) {
305
+ const [p] = h;
306
+ (e.contentType === p || p === "Any") && (v[c] = u);
297
307
  }
298
- if (T.length === 2) {
299
- const [m = "Any", M = "Any"] = T;
300
- m === "Mixin" && e.contentType === M && (P[c] = p), (e.stickType === m || m === "Any") && (e.contentType === M || M === "Any") && (P[c] = p);
308
+ if (h.length === 2) {
309
+ const [p = "Any", b = "Any"] = h;
310
+ p === "Mixin" && e.contentType === b && (v[c] = u), (e.stickType === p || p === "Any") && (e.contentType === b || b === "Any") && (v[c] = u);
301
311
  }
302
- if (T.length === 3) {
303
- const [m = "Any", M, U] = T;
304
- if (M === "Audio" && e.contentType === "Audio") {
312
+ if (h.length === 3) {
313
+ const [p = "Any", b, G] = h;
314
+ if (b === "Audio" && e.contentType === "Audio") {
305
315
  const x = e;
306
- (x.stickType === m || m === "Any") && x.data.appearance === U && (P[c] = p);
316
+ (x.stickType === p || p === "Any") && x.data.appearance === G && (v[c] = u);
307
317
  }
308
318
  }
309
319
  }
310
320
  });
311
- const f = (V = e.config) != null && V._isMerged ? e.initialConfig : e.config, d = C({}, Y, this.config.globalConfig, ...Object.values(t)), g = C({}, d, f), l = {}, v = Object.values(se.Mode);
312
- H(s).forEach(([u, p]) => {
313
- v.forEach((c) => {
314
- (u === "PanoramaLike" && A(c) || u === "ModelLike" && z(c)) && (l[c] = C({}, d, ...Object.values(p), f));
321
+ const f = (W = e.config) != null && W._isMerged ? e.initialConfig : e.config, l = y({}, Z, this.config.globalConfig, ...Object.values(t)), g = y({}, l, f), C = {}, U = Object.values(se.Mode);
322
+ H(n).forEach(([d, u]) => {
323
+ U.forEach((c) => {
324
+ (d === "PanoramaLike" && O(c) || d === "ModelLike" && z(c)) && (C[c] = y({}, l, ...Object.values(u), f));
315
325
  });
316
- }), H(n).forEach(([u, p]) => {
317
- l[u] = C({}, d, ...Object.values(p), f);
326
+ }), H(r).forEach(([d, u]) => {
327
+ C[d] = y({}, l, ...Object.values(u), f);
318
328
  });
319
- const k = B(b({}, g), { configWithFiveMode: l });
320
- return $(k, e), Object.values(l).forEach((u) => $(u, e)), k._isMerged = !0, k;
329
+ const k = B(M({}, g), { configWithFiveMode: C });
330
+ return $(k, e), Object.values(C).forEach((d) => $(d, e)), k._isMerged = !0, k;
321
331
  }
322
332
  }
323
333
  export {
324
- si as TagUtil
334
+ fi as TagUtil
325
335
  };