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

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