@realsee/dnalogel 3.2.0 → 3.3.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (377) hide show
  1. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +6 -2
  2. package/dist/PanoTagPlugin/controller/index.d.ts +1 -1
  3. package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +1 -0
  4. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
  5. package/dist/index.cjs.js +55 -55
  6. package/dist/index.js +4091 -4068
  7. package/dist/index.umd.js +52 -52
  8. package/dist/shared-utils/five/getFloorIndex.d.ts +2 -8
  9. package/dist/shared-utils/five/transformPosition.d.ts +2 -0
  10. package/dist/shared-utils/three/getPositionsByObjectFit.d.ts +1 -1
  11. package/docs/.nojekyll +1 -0
  12. package/docs/assets/highlight.css +120 -0
  13. package/docs/assets/main.js +58 -0
  14. package/docs/assets/search.js +1 -0
  15. package/docs/assets/style.css +1367 -0
  16. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +725 -0
  17. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +678 -0
  18. package/docs/classes/CSS3DRender.html +773 -0
  19. package/docs/classes/CruisePluginController.html +672 -0
  20. package/docs/classes/GuideLineItem.GuideLineItem.html +476 -0
  21. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +856 -0
  22. package/docs/classes/Magnifier.html +480 -0
  23. package/docs/classes/ModelRoomLabelController.html +398 -0
  24. package/docs/classes/Object3DHelperController.html +640 -0
  25. package/docs/classes/PaintBrush.html +502 -0
  26. package/docs/classes/PanoMeasurePluginLine.html +522 -0
  27. package/docs/classes/PanoMeasurePluginModel.html +571 -0
  28. package/docs/classes/PanoMeasurePluginPoint.html +362 -0
  29. package/docs/classes/PanoMeasurePluginPolyline.html +567 -0
  30. package/docs/classes/PanoTagPluginController.html +1077 -0
  31. package/docs/classes/Util.BetterTween.html +416 -0
  32. package/docs/classes/Util.Interval.html +432 -0
  33. package/docs/classes/Util.LineSegments.html +384 -0
  34. package/docs/classes/Util.Magnifier.html +503 -0
  35. package/docs/classes/Util.Object3D.html +406 -0
  36. package/docs/classes/Util.PointDomHelper.html +407 -0
  37. package/docs/classes/Util.PointHelper.html +398 -0
  38. package/docs/classes/Util.PointSelectorHelper.html +454 -0
  39. package/docs/classes/Util.Rectangle.html +455 -0
  40. package/docs/enums/CameraMovementEffect.html +310 -0
  41. package/docs/enums/ContentType.html +446 -0
  42. package/docs/enums/DIRECTION.html +320 -0
  43. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +320 -0
  44. package/docs/enums/DimensionType.html +310 -0
  45. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +313 -0
  46. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +320 -0
  47. package/docs/enums/PaintBrushTypeEnum.html +313 -0
  48. package/docs/enums/PointType.html +310 -0
  49. package/docs/enums/Rotation.html +317 -0
  50. package/docs/functions/AreaMakerPlugin.html +290 -0
  51. package/docs/functions/CSS3DRenderPlugin.html +288 -0
  52. package/docs/functions/CameraMovementPlugin.html +293 -0
  53. package/docs/functions/CruisePlugin.html +290 -0
  54. package/docs/functions/CurrentPanoImagePlugin.html +290 -0
  55. package/docs/functions/GuideLinePlugin.html +290 -0
  56. package/docs/functions/ItemLabelPlugin.html +290 -0
  57. package/docs/functions/MapviewFloorplanPlugin.html +290 -0
  58. package/docs/functions/ModelChassisCompassPlugin.html +293 -0
  59. package/docs/functions/ModelEntryDoorGuidePlugin.html +293 -0
  60. package/docs/functions/ModelFloorplanPlugin.html +290 -0
  61. package/docs/functions/ModelItemLabelPlugin.html +290 -0
  62. package/docs/functions/ModelRoomLabelPlugin.html +288 -0
  63. package/docs/functions/ModelTVVideoPlugin.html +290 -0
  64. package/docs/functions/ModelViewPlugin.html +293 -0
  65. package/docs/functions/Object3DHelperPlugin.html +288 -0
  66. package/docs/functions/PanoCompassPlugin.html +290 -0
  67. package/docs/functions/PanoCursorRaycasterPlugin.html +294 -0
  68. package/docs/functions/PanoDoorLabelPlugin.html +290 -0
  69. package/docs/functions/PanoFloorplanRadarPlugin.html +290 -0
  70. package/docs/functions/PanoMeasurePlugin.html +290 -0
  71. package/docs/functions/PanoRulerPlugin.html +293 -0
  72. package/docs/functions/PanoRulerProPlugin.html +293 -0
  73. package/docs/functions/PanoSpatialTagPlugin.html +293 -0
  74. package/docs/functions/PanoTagPlugin.html +295 -0
  75. package/docs/functions/PanoVideoPlugin.html +299 -0
  76. package/docs/functions/PipelinePlugin.html +288 -0
  77. package/docs/functions/TopviewFloorplanPlugin.html +290 -0
  78. package/docs/functions/Util.absoluteUrl.html +326 -0
  79. package/docs/functions/Util.checkFiveModelLoaded.html +329 -0
  80. package/docs/functions/Util.equal.html +338 -0
  81. package/docs/functions/Util.getCoordsFromClient.html +328 -0
  82. package/docs/functions/Util.getCoordsFromElement.html +328 -0
  83. package/docs/functions/Util.getFrameTime.html +320 -0
  84. package/docs/functions/Util.getIntersectFromRelativePosition.html +328 -0
  85. package/docs/functions/Util.getRaycasterFromFivePointer.html +328 -0
  86. package/docs/functions/Util.isAbsoluteURL.html +321 -0
  87. package/docs/functions/Util.isModelLike.html +321 -0
  88. package/docs/functions/Util.isNil.html +329 -0
  89. package/docs/functions/Util.isPanoramaLike.html +321 -0
  90. package/docs/functions/Util.nextFrame.html +334 -0
  91. package/docs/functions/Util.notNil.html +329 -0
  92. package/docs/functions/Util.requestAnimationFrameInterval.html +350 -0
  93. package/docs/functions/Util.tweenProgress.html +323 -0
  94. package/docs/functions/Util.uuid.html +319 -0
  95. package/docs/functions/pluginFlag.html +288 -0
  96. package/docs/index.html +354 -0
  97. package/docs/interfaces/AddTagConfig.html +303 -0
  98. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +329 -0
  99. package/docs/interfaces/AreaMakerPluginType.Config.html +334 -0
  100. package/docs/interfaces/AreaMakerPluginType.EventMap.html +620 -0
  101. package/docs/interfaces/AreaMakerPluginType.Params.html +333 -0
  102. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +383 -0
  103. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +368 -0
  104. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +333 -0
  105. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +326 -0
  106. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +325 -0
  107. package/docs/interfaces/AreaMakerPluginType.State.html +354 -0
  108. package/docs/interfaces/CSS3DRenderPluginEventMap.html +449 -0
  109. package/docs/interfaces/CSS3DRenderPluginState.html +325 -0
  110. package/docs/interfaces/CameraMovementPluginExportType.html +358 -0
  111. package/docs/interfaces/CruisePluginTypes.Config.html +359 -0
  112. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +361 -0
  113. package/docs/interfaces/CruisePluginTypes.EventMap.html +696 -0
  114. package/docs/interfaces/CruisePluginTypes.MoveAction.html +385 -0
  115. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +421 -0
  116. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +411 -0
  117. package/docs/interfaces/CruisePluginTypes.PluginData.html +351 -0
  118. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +319 -0
  119. package/docs/interfaces/CruisePluginTypes.PluginState.html +408 -0
  120. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +382 -0
  121. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +521 -0
  122. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +323 -0
  123. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +315 -0
  124. package/docs/interfaces/CurrentPanoImagePluginType.State.html +337 -0
  125. package/docs/interfaces/EventMap.html +542 -0
  126. package/docs/interfaces/FloorplanBounding.html +332 -0
  127. package/docs/interfaces/FloorplanData.html +335 -0
  128. package/docs/interfaces/FloorplanEntrance.html +360 -0
  129. package/docs/interfaces/FloorplanExtraObject.html +350 -0
  130. package/docs/interfaces/FloorplanExtraObject3D.html +339 -0
  131. package/docs/interfaces/FloorplanFloorData.html +328 -0
  132. package/docs/interfaces/FloorplanImagePosition.html +314 -0
  133. package/docs/interfaces/FloorplanObserver.html +332 -0
  134. package/docs/interfaces/FloorplanOutlineItem.html +328 -0
  135. package/docs/interfaces/FloorplanPosition.html +314 -0
  136. package/docs/interfaces/FloorplanRoomItem.html +379 -0
  137. package/docs/interfaces/FloorplanRoomLabelItem.html +320 -0
  138. package/docs/interfaces/FloorplanServerBounding.html +332 -0
  139. package/docs/interfaces/FloorplanServerComputedData.html +331 -0
  140. package/docs/interfaces/FloorplanServerData.html +314 -0
  141. package/docs/interfaces/FloorplanServerDoorItem.html +331 -0
  142. package/docs/interfaces/FloorplanServerDoorPosition.html +317 -0
  143. package/docs/interfaces/FloorplanServerEntrance.html +360 -0
  144. package/docs/interfaces/FloorplanServerFloorData.html +328 -0
  145. package/docs/interfaces/FloorplanServerImagePosition.html +314 -0
  146. package/docs/interfaces/FloorplanServerObserver.html +332 -0
  147. package/docs/interfaces/FloorplanServerOutlineItem.html +328 -0
  148. package/docs/interfaces/FloorplanServerPosition.html +314 -0
  149. package/docs/interfaces/FloorplanServerRoomItem.html +391 -0
  150. package/docs/interfaces/FloorplanServerRoomLabelItem.html +320 -0
  151. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +323 -0
  152. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +362 -0
  153. package/docs/interfaces/GuideLinePluginType.EventMap.html +526 -0
  154. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +357 -0
  155. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +348 -0
  156. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +415 -0
  157. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +337 -0
  158. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +347 -0
  159. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +483 -0
  160. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +344 -0
  161. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +483 -0
  162. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +309 -0
  163. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +330 -0
  164. package/docs/interfaces/GuideLinePluginType.PluginState.html +355 -0
  165. package/docs/interfaces/GuideLinePluginType.Route.html +371 -0
  166. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +353 -0
  167. package/docs/interfaces/HelperOffset.html +332 -0
  168. package/docs/interfaces/ImagePlaneGroup.html +306 -0
  169. package/docs/interfaces/ItemLabelPluginData.html +303 -0
  170. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +388 -0
  171. package/docs/interfaces/ItemLabelPluginParametersType.html +324 -0
  172. package/docs/interfaces/MinMax.html +310 -0
  173. package/docs/interfaces/ModelChassisCompassPluginData.html +310 -0
  174. package/docs/interfaces/ModelChassisCompassPluginExportType.html +346 -0
  175. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +310 -0
  176. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +317 -0
  177. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +354 -0
  178. package/docs/interfaces/ModelItemLabelPluginData.html +303 -0
  179. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +388 -0
  180. package/docs/interfaces/ModelItemLabelPluginParametersType.html +310 -0
  181. package/docs/interfaces/ModelRoomLabelPluginData.html +303 -0
  182. package/docs/interfaces/ModelTVVideoPluginData.html +324 -0
  183. package/docs/interfaces/ModelTVVideoPluginExportType.html +348 -0
  184. package/docs/interfaces/ModelTVVideoPluginParameterType.html +303 -0
  185. package/docs/interfaces/ModelViewPluginExportType.html +416 -0
  186. package/docs/interfaces/Object3DHelperState.html +317 -0
  187. package/docs/interfaces/ObjectHelperControllers.html +324 -0
  188. package/docs/interfaces/PaintBrushAction.html +363 -0
  189. package/docs/interfaces/PaintBrushConfigs.html +361 -0
  190. package/docs/interfaces/PaintBrushState.html +345 -0
  191. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +425 -0
  192. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +282 -0
  193. package/docs/interfaces/PanoMeasureParameterType.html +449 -0
  194. package/docs/interfaces/PanoMeasurePluginLineJson.html +317 -0
  195. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +314 -0
  196. package/docs/interfaces/PanoMeasurePluginPointJson.html +310 -0
  197. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +320 -0
  198. package/docs/interfaces/PanoRulerPluginExportType.html +377 -0
  199. package/docs/interfaces/PanoRulerPluginOptions.html +326 -0
  200. package/docs/interfaces/PanoRulerPluginParameterType.html +317 -0
  201. package/docs/interfaces/PanoRulerProPluginExportType.html +353 -0
  202. package/docs/interfaces/PanoRulerProPluginOptions.html +323 -0
  203. package/docs/interfaces/PanoRulerProPluginParameterType.html +310 -0
  204. package/docs/interfaces/PanoRulerProPluginState.html +317 -0
  205. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +296 -0
  206. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +285 -0
  207. package/docs/interfaces/PanoSpatialTagPluginData.html +353 -0
  208. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +335 -0
  209. package/docs/interfaces/PanoSpatialTagPluginExportType.html +431 -0
  210. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +331 -0
  211. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +352 -0
  212. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +338 -0
  213. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +331 -0
  214. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +323 -0
  215. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +341 -0
  216. package/docs/interfaces/PanoVideoPluginType.PluginData.html +314 -0
  217. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +420 -0
  218. package/docs/interfaces/PanoVideoPluginType.PluginState.html +314 -0
  219. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +349 -0
  220. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +368 -0
  221. package/docs/interfaces/Point.html +317 -0
  222. package/docs/interfaces/Room.html +324 -0
  223. package/docs/interfaces/RoomInfo.html +310 -0
  224. package/docs/interfaces/RoomLabel.html +386 -0
  225. package/docs/interfaces/RoomRules.html +285 -0
  226. package/docs/interfaces/Rooms.html +285 -0
  227. package/docs/interfaces/Scissor.html +344 -0
  228. package/docs/interfaces/State.html +331 -0
  229. package/docs/interfaces/TagCacheInterface.html +362 -0
  230. package/docs/interfaces/TagConfig.html +565 -0
  231. package/docs/interfaces/TagGLTFObjectGroup.html +306 -0
  232. package/docs/interfaces/TagIconUrl.html +363 -0
  233. package/docs/interfaces/TagObjectGroup.html +306 -0
  234. package/docs/interfaces/TagStyle.html +316 -0
  235. package/docs/interfaces/Tags.html +2688 -0
  236. package/docs/interfaces/TemporaryState.html +303 -0
  237. package/docs/interfaces/Util.MagnifierParameter.html +391 -0
  238. package/docs/interfaces/Util.MouseGroupParameter.html +350 -0
  239. package/docs/interfaces/Util.PointIntersection.html +365 -0
  240. package/docs/modules/AreaMakerPluginType.html +323 -0
  241. package/docs/modules/CruisePluginTypes.html +328 -0
  242. package/docs/modules/CurrentPanoImagePluginType.html +297 -0
  243. package/docs/modules/GuideLineItem.html +289 -0
  244. package/docs/modules/GuideLineModeItem.html +294 -0
  245. package/docs/modules/GuideLinePluginType.html +350 -0
  246. package/docs/modules/PanoVideoPluginType.html +301 -0
  247. package/docs/modules/Util.html +351 -0
  248. package/docs/modules.html +540 -0
  249. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +331 -0
  250. package/docs/types/AreaMakerPluginType.PluginData.html +301 -0
  251. package/docs/types/AreaMakerPluginType.ServerData.html +301 -0
  252. package/docs/types/ArrayPosition.html +279 -0
  253. package/docs/types/AudioAppearance.html +279 -0
  254. package/docs/types/AudioTagTypeConfigKey.html +279 -0
  255. package/docs/types/CSS3DRenderExportType.html +279 -0
  256. package/docs/types/CSS3DRenderPluginExportType.html +279 -0
  257. package/docs/types/CSS3DRenderPluginParameterType.html +279 -0
  258. package/docs/types/ClassFunctionParameters.html +286 -0
  259. package/docs/types/Color.html +279 -0
  260. package/docs/types/ContentTypeConfigKey.html +279 -0
  261. package/docs/types/ContentTypeConfigKeySplit.html +279 -0
  262. package/docs/types/ContentTypeMap.html +279 -0
  263. package/docs/types/Create3DDomContainerReturnType.html +279 -0
  264. package/docs/types/Create3DElementReturnType.html +279 -0
  265. package/docs/types/CruisePluginExportType.html +279 -0
  266. package/docs/types/CruisePluginTypes.CruiseData.html +318 -0
  267. package/docs/types/CruisePluginTypes.MoveEffect.html +295 -0
  268. package/docs/types/CurrentPanoImagePluginExportType.html +279 -0
  269. package/docs/types/DeprecatedMediaPlaneProperty.html +291 -0
  270. package/docs/types/DeprecatedTagProperty.html +294 -0
  271. package/docs/types/Direction-1.html +279 -0
  272. package/docs/types/Direction4.html +279 -0
  273. package/docs/types/ElementRenderer.html +303 -0
  274. package/docs/types/FloorplanRuleLabels.html +282 -0
  275. package/docs/types/FloorplanServerRuleLabels.html +279 -0
  276. package/docs/types/GuideLinePluginExportType.html +279 -0
  277. package/docs/types/GuideLinePluginType.GuideLineItem.html +352 -0
  278. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +373 -0
  279. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +306 -0
  280. package/docs/types/GuideLinePluginType.GuideLineStyle.html +309 -0
  281. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +309 -0
  282. package/docs/types/GuideLinePluginType.PathItem.html +309 -0
  283. package/docs/types/GuideLinePluginType.PluginData.html +318 -0
  284. package/docs/types/HelperEventMap.html +517 -0
  285. package/docs/types/LoadTagConfig.html +279 -0
  286. package/docs/types/MapviewFloorplanPluginParameterType.html +279 -0
  287. package/docs/types/MapviewFloorplanPluginReturnType.html +279 -0
  288. package/docs/types/MediaData.html +295 -0
  289. package/docs/types/MediaStore.html +284 -0
  290. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +286 -0
  291. package/docs/types/ModelFloorplanPluginParameterType.html +279 -0
  292. package/docs/types/ModelFloorplanPluginReturnType.html +279 -0
  293. package/docs/types/ModelId.html +279 -0
  294. package/docs/types/ModelRoomLabelPluginParameters.html +279 -0
  295. package/docs/types/ModelRoomLabelPluginReturnType.html +279 -0
  296. package/docs/types/MoveArgs.html +289 -0
  297. package/docs/types/MoveOpts.html +287 -0
  298. package/docs/types/Object3DHelperEventMap.html +372 -0
  299. package/docs/types/ObjectFit.html +279 -0
  300. package/docs/types/PaintBrushEventMap.html +310 -0
  301. package/docs/types/PanoCompassPluginData.html +279 -0
  302. package/docs/types/PanoCompassPluginExportType.html +279 -0
  303. package/docs/types/PanoCompassPluginParameterType.html +279 -0
  304. package/docs/types/PanoFloorplanRadarPluginParameterType.html +279 -0
  305. package/docs/types/PanoFloorplanRadarPluginReturnType.html +279 -0
  306. package/docs/types/PanoIndex.html +279 -0
  307. package/docs/types/PanoMeasurePluginEvent.html +279 -0
  308. package/docs/types/PanoMeasureReturnType.html +279 -0
  309. package/docs/types/PanoSpatialTagPluginId.html +279 -0
  310. package/docs/types/PanoTagPluginExportInterface.html +279 -0
  311. package/docs/types/PanoTagPluginParamsInterface.html +279 -0
  312. package/docs/types/PanoVideoPluginParameterType.html +279 -0
  313. package/docs/types/PanoVideoPluginReturnType.html +279 -0
  314. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +287 -0
  315. package/docs/types/PipelinePluginParameterType.html +279 -0
  316. package/docs/types/PipelinePluginReturnType.html +279 -0
  317. package/docs/types/PlaneTag.html +287 -0
  318. package/docs/types/Point2DTag.html +287 -0
  319. package/docs/types/Point3DTag.html +287 -0
  320. package/docs/types/PointTag.html +284 -0
  321. package/docs/types/PointTagInstance.html +284 -0
  322. package/docs/types/Position.html +279 -0
  323. package/docs/types/RotateArgs.html +291 -0
  324. package/docs/types/RotateOpts.html +287 -0
  325. package/docs/types/RuleLabelsKey.html +279 -0
  326. package/docs/types/RuleLabelsValue.html +279 -0
  327. package/docs/types/StickType.html +279 -0
  328. package/docs/types/Tag.html +345 -0
  329. package/docs/types/Tag2D.html +287 -0
  330. package/docs/types/Tag3D.html +287 -0
  331. package/docs/types/TagConfigByKey.html +284 -0
  332. package/docs/types/TagContentType.html +279 -0
  333. package/docs/types/TagDimensionType.html +281 -0
  334. package/docs/types/TagElement.html +289 -0
  335. package/docs/types/TagEvents.html +332 -0
  336. package/docs/types/TagGLTFObject.html +302 -0
  337. package/docs/types/TagHooks.html +279 -0
  338. package/docs/types/TagId.html +279 -0
  339. package/docs/types/TagInstance.html +355 -0
  340. package/docs/types/TagPointType.html +282 -0
  341. package/docs/types/TagRendererMap.html +284 -0
  342. package/docs/types/TopviewFloorplanPluginParameterType.html +279 -0
  343. package/docs/types/TopviewFloorplanPluginReturnType.html +279 -0
  344. package/docs/types/WorkCode.html +279 -0
  345. package/docs/variables/FLOOR_TYPE_MAP.html +289 -0
  346. package/docs/variables/PLUGIN.html +279 -0
  347. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +282 -0
  348. package/docs/variables/ROOM_TYPE_MAP.html +289 -0
  349. package/docs/variables/defaultGlobalConfig.html +279 -0
  350. package/docs/variables/itemLabelPluginServerParams.html +286 -0
  351. package/docs/variables/modelItemLabelPluginServerParams.html +286 -0
  352. package/docs/variables/modelRoomLabelPluginServerParams.html +286 -0
  353. package/libs/CruisePlugin/Controller.js +35 -34
  354. package/libs/CruisePlugin/index.js +6 -5
  355. package/libs/GuideLinePlugin/Controller.js +5 -4
  356. package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
  357. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
  358. package/libs/GuideLinePlugin/index.js +8 -7
  359. package/libs/PanoTagPlugin/controller/TagComputer.js +90 -96
  360. package/libs/PanoTagPlugin/controller/TagRender.js +86 -86
  361. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +6 -2
  362. package/libs/PanoTagPlugin/controller/TagUtil.js +119 -103
  363. package/libs/PanoTagPlugin/controller/index.d.ts +1 -1
  364. package/libs/PanoTagPlugin/controller/index.js +74 -66
  365. package/libs/PanoTagPlugin/index.js +12 -11
  366. package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +1 -0
  367. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
  368. package/libs/PanoTagPlugin/utils/tagPosition.js +15 -15
  369. package/libs/base/BasePlugin.js +1 -1
  370. package/libs/index.js +117 -116
  371. package/libs/shared-utils/five/getFloorIndex.d.ts +2 -8
  372. package/libs/shared-utils/five/getFloorIndex.js +16 -12
  373. package/libs/shared-utils/five/transformPosition.d.ts +2 -0
  374. package/libs/shared-utils/five/transformPosition.js +10 -0
  375. package/libs/shared-utils/logger.js +1 -1
  376. package/libs/shared-utils/three/getPositionsByObjectFit.d.ts +1 -1
  377. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
- var w = Object.defineProperty, E = Object.defineProperties;
2
- var U = Object.getOwnPropertyDescriptors;
3
- var C = Object.getOwnPropertySymbols;
4
- var I = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
5
- var m = (d, a, e) => a in d ? w(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
1
+ var E = Object.defineProperty, U = Object.defineProperties;
2
+ var I = Object.getOwnPropertyDescriptors;
3
+ var A = Object.getOwnPropertySymbols;
4
+ var R = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
5
+ var u = (d, a, e) => a in d ? E(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
6
6
  for (var e in a || (a = {}))
7
- I.call(a, e) && m(d, e, a[e]);
8
- if (C)
9
- for (var e of C(a))
10
- B.call(a, e) && m(d, e, a[e]);
7
+ R.call(a, e) && u(d, e, a[e]);
8
+ if (A)
9
+ for (var e of A(a))
10
+ B.call(a, e) && u(d, e, a[e]);
11
11
  return d;
12
- }, u = (d, a) => E(d, U(a));
13
- var l = (d, a, e) => (m(d, typeof a != "symbol" ? a + "" : a, e), e);
14
- var p = (d, a, e) => new Promise((t, i) => {
12
+ }, v = (d, a) => U(d, I(a));
13
+ var l = (d, a, e) => (u(d, typeof a != "symbol" ? a + "" : a, e), e);
14
+ var f = (d, a, e) => new Promise((t, i) => {
15
15
  var s = (r) => {
16
16
  try {
17
17
  n(e.next(r));
@@ -27,26 +27,26 @@ var p = (d, a, e) => new Promise((t, i) => {
27
27
  }, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
28
28
  n((e = e.apply(d, a)).next());
29
29
  });
30
- import * as v from "three";
30
+ import * as b from "three";
31
31
  import { Subscribe as F } from "@realsee/five";
32
- import { objectAssignDeepExports as f } from "../../vendor/object-assign-deep/objectAssignDeep.js";
32
+ import { objectAssignDeepExports as p } from "../../vendor/object-assign-deep/objectAssignDeep.js";
33
33
  import { addDebugPoints as M } from "../utils/addDebugPoints.js";
34
- import { arrayPositionToVector3 as A } from "../../shared-utils/positionToVector3.js";
35
- import { isMediaModelTag as R, isModelTag as _ } from "../utils/tag/tagCheck.js";
36
- import { debounce as k } from "../utils/debounce.js";
37
- import { throttle as O } from "../utils/throttle.js";
34
+ import { arrayPositionToVector3 as P } from "../../shared-utils/positionToVector3.js";
35
+ import { isMediaModelTag as _, isModelTag as k } from "../utils/tag/tagCheck.js";
36
+ import { debounce as O } from "../utils/debounce.js";
37
+ import { throttle as V } from "../utils/throttle.js";
38
38
  import { resizeObserver as D } from "../utils/resizeObserver.js";
39
- import V from "../utils/tag/format.js";
40
- import { generateBlankAudio as L, AudioNamespace as G } from "../../shared-utils/audio.js";
41
- import { TagRender as N } from "./TagRender.js";
42
- import { uuid as z } from "../../shared-utils/uuid.js";
43
- import { isModelLike as x } from "../../shared-utils/five/mode.js";
39
+ import L from "../utils/tag/format.js";
40
+ import { generateBlankAudio as G, AudioNamespace as N } from "../../shared-utils/audio.js";
41
+ import { TagRender as z } from "./TagRender.js";
42
+ import { uuid as x } from "../../shared-utils/uuid.js";
43
+ import { isModelLike as $ } from "../../shared-utils/five/mode.js";
44
44
  import "hammerjs";
45
45
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
46
46
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
47
47
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
48
- import { tweenProgress as $ } from "../../shared-utils/animationFrame/BetterTween.js";
49
- import { waitFiveModelLoaded as W } from "../../shared-utils/five/fiveModelLoad.js";
48
+ import { tweenProgress as W } from "../../shared-utils/animationFrame/BetterTween.js";
49
+ import { waitFiveModelLoaded as j } from "../../shared-utils/five/fiveModelLoad.js";
50
50
  import "./TagComputer.js";
51
51
  import "../utils/tagPosition.js";
52
52
  import "../../shared-utils/three/centerPoint.js";
@@ -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 S = "Dnalogel-PanoTagPlugin", wi = (d) => `${S}--${d}`;
172
+ class Ei extends z {
172
173
  constructor(e, t) {
173
174
  super(e);
174
175
  /** state */
@@ -178,8 +179,8 @@ class Pi extends N {
178
179
  /** debug */
179
180
  l(this, "debug");
180
181
  /** 更改 tag 模型 */
181
- l(this, "changeTagModel", (e, t) => p(this, null, function* () {
182
- e.data = f({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
182
+ l(this, "changeTagModel", (e, t) => f(this, null, function* () {
183
+ e.data = p({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
183
184
  }));
184
185
  l(this, "whyHide", (e) => {
185
186
  var i, s, o;
@@ -192,16 +193,18 @@ class Pi extends N {
192
193
  return { reason: `tag ${e} not found` };
193
194
  if (!t.enabled)
194
195
  return { reason: `tag ${e} enabled is ${t.enabled}` };
196
+ if (t.stickType === "Model" || t.stickType === "Plane")
197
+ return { reason: "maybe blocked by the five model" };
195
198
  if (!t.state.visible) {
196
199
  const n = (s = (i = this.getPanoIndexCache({ panoIndex: this.five.panoIndex, id: e })) == null ? void 0 : i.__debug_visible_reason__) == null ? void 0 : s.reason;
197
- return { reason: (o = n.type) != null ? o : n, reasonObj: n };
200
+ return { reason: (o = n == null ? void 0 : n.type) != null ? o : n, reasonObj: n };
198
201
  }
199
- return t.stickType === "Model" || t.stickType === "Plane" ? { reason: "maybe blocked by the five model" } : { reason: "check your eyes" };
202
+ return { reason: "check your eyes" };
200
203
  });
201
204
  l(this, "updateVisible", () => {
202
205
  const e = this.five.getCurrentState().mode;
203
206
  this.tags.forEach((t) => {
204
- R(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
207
+ _(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
205
208
  }), this.setVisible(), this.updateRenderAllTags();
206
209
  });
207
210
  l(this, "handleFiveWantsMoveToPano", (e) => {
@@ -240,21 +243,21 @@ class Pi extends N {
240
243
  l(this, "handleFiveCameraUpdate", () => {
241
244
  this.updatePointTagPosition();
242
245
  });
243
- l(this, "handleFivePanoArrived", () => p(this, null, function* () {
246
+ l(this, "handleFivePanoArrived", () => f(this, null, function* () {
244
247
  this.setVisible(), this.updatePointTagPosition(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
245
- e.temporaryState = u(c({}, e.temporaryState), { visible: !0 });
246
- }), this.tags.filter(_).filter((e) => {
247
- var t, i;
248
- return (i = (t = e.config) == null ? void 0 : t.modelConfig) == null ? void 0 : i.autoLookAtEnabled;
248
+ e.temporaryState = v(c({}, e.temporaryState), { visible: !0 });
249
+ }), this.tags.filter(k).filter((e) => {
250
+ var t;
251
+ return (t = this.getTagConfig(e).modelConfig) == null ? void 0 : t.autoLookAtEnabled;
249
252
  }).forEach((e) => {
250
253
  var h;
251
- const t = new v.Mesh(new v.BoxGeometry(), new v.MeshBasicMaterial()), i = (h = e.model) == null ? void 0 : h.object;
254
+ const t = new b.Mesh(new b.BoxGeometry(), new b.MeshBasicMaterial()), i = (h = e.model) == null ? void 0 : h.object;
252
255
  if (!i)
253
256
  return;
254
257
  t.position.copy(i.position), t.quaternion.copy(i.quaternion);
255
258
  const s = this.five.camera.position;
256
259
  t.lookAt(s.clone().setY(t.position.y));
257
- const o = i.quaternion.clone(), n = t.quaternion.clone(), r = $();
260
+ const o = i.quaternion.clone(), n = t.quaternion.clone(), r = W();
258
261
  r.onUpdate(({ progress: g }) => {
259
262
  i.quaternion.copy(o.clone().slerp(n, g));
260
263
  }), r.play();
@@ -265,9 +268,9 @@ class Pi extends N {
265
268
  this.setVisible(), this.updateRenderAllTags();
266
269
  });
267
270
  l(this, "onFiveEveryReady", () => {
268
- this.setUnfoldedByCamera(), x(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(this.filterPointTag), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 });
271
+ this.setUnfoldedByCamera(), $(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 }), this.updateRenderVideoPlane(), this.updateRenderImagePlane(), this.updateRenderModelTag();
269
272
  });
270
- this.params = f({}, { debug: !1, config: this.config }, c({}, t)), this.debug = this.params.debug, this.config = this.params.config, L(1, { namespace: G.PlayAudio });
273
+ this.params = p({}, { debug: !1, config: this.config }, c({}, t)), this.debug = this.params.debug, this.config = this.params.config, G(1, { namespace: N.PlayAudio });
271
274
  try {
272
275
  const i = window;
273
276
  Array.isArray(i.__PANOTAGPLUGIN_DEBUG_LIST__) || (i.__PANOTAGPLUGIN_DEBUG_LIST__ = []), i.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), i.__PANOTAGPLUGIN_DEBUG__ = this;
@@ -278,9 +281,9 @@ class Pi extends N {
278
281
  * @description: 加载数据
279
282
  */
280
283
  load(e, t) {
281
- return p(this, null, function* () {
284
+ return f(this, null, function* () {
282
285
  var s, o;
283
- this.clearTags(), console.debug(P, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = f({}, this.config, {
286
+ this.clearTags(), console.debug(S, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = p({}, this.config, {
284
287
  globalConfig: (s = e.globalConfig) != null ? s : {},
285
288
  contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
286
289
  });
@@ -298,19 +301,24 @@ class Pi extends N {
298
301
  * @description: 添加标签
299
302
  */
300
303
  addTag(e, t) {
301
- return p(this, null, function* () {
304
+ return f(this, null, function* () {
302
305
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
303
- var b, T, y;
306
+ var T, y, C;
304
307
  const n = this.getTagConfig(o), r = JSON.parse(JSON.stringify(o.data)), h = o.config;
305
- return o.config = n, u(c({}, o), {
306
- enabled: (b = o.enabled) != null ? b : !0,
307
- id: (T = o.id) != null ? T : z(),
308
- data: (y = n.initialData) != null && y.important ? f(o.data, r, n.initialData) : f(o.data, n.initialData, r),
308
+ return o.config = n, v(c({}, o), {
309
+ enabled: (T = o.enabled) != null ? T : !0,
310
+ id: (y = o.id) != null ? y : x(),
311
+ data: (C = n.initialData) != null && C.important ? p(o.data, r, n.initialData) : p(o.data, n.initialData, r),
309
312
  state: c({
310
313
  visible: void 0,
311
314
  unfolded: !this.can("fold", o)
312
315
  }, n.initialState),
313
316
  hooks: new F(),
317
+ originPosition: o.position,
318
+ position: (() => {
319
+ const m = this.getTransformedPostion(o.position);
320
+ return Array.isArray(m) ? m.map((w) => w.toArray()) : m.toArray();
321
+ })(),
314
322
  initialConfig: h,
315
323
  config: n,
316
324
  unfold: () => this.changeUnfoldedById(o.id, !0),
@@ -318,10 +326,10 @@ class Pi extends N {
318
326
  enable: () => this.changeEnabledById(o.id, !0),
319
327
  disable: () => this.changeEnabledById(o.id, !1),
320
328
  destroy: () => this.destroyTagById(o.id),
321
- changeData: (S) => this.changeDataById(o.id, S)
329
+ changeData: (m) => this.changeDataById(o.id, m)
322
330
  });
323
331
  }).filter((o) => o.position);
324
- return s.forEach(V), this.tags.push(...s), W(this.five).then(() => p(this, null, function* () {
332
+ return s.forEach(L), this.tags.push(...s), j(this.five).then(() => f(this, null, function* () {
325
333
  var o, n, r;
326
334
  this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(s), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }), this.updatePointTagPosition(), this.updateRenderAllTags();
327
335
  }));
@@ -331,22 +339,22 @@ class Pi extends N {
331
339
  * @description: 改变配置
332
340
  */
333
341
  changeConfig(e, t = !0) {
334
- t ? this.config = f({}, this.config, e) : this.config = e, this.updateTagConfig(), this.updateRenderAllTags();
342
+ t ? this.config = p({}, this.config, e) : this.config = e, this.updateTagConfig(), this.updateRenderAllTags();
335
343
  }
336
344
  /**
337
345
  * @description: 改变全局配置
338
346
  */
339
347
  changeGlobalConfig(e, t = !0) {
340
- t ? this.config.globalConfig = f({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig(), this.updateRenderAllTags();
348
+ t ? this.config.globalConfig = p({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig(), this.updateRenderAllTags();
341
349
  }
342
350
  /**
343
351
  * @description: 改变类型配置
344
352
  */
345
353
  changeContentTypeConfig(e, t, i = !0) {
346
- this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = f({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig(), this.updateRenderAllTags();
354
+ this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = p({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig(), this.updateRenderAllTags();
347
355
  }
348
356
  show(e) {
349
- return p(this, null, function* () {
357
+ return f(this, null, function* () {
350
358
  if (this.checkDisposed())
351
359
  return;
352
360
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
@@ -354,7 +362,7 @@ class Pi extends N {
354
362
  });
355
363
  }
356
364
  hide(e) {
357
- return p(this, null, function* () {
365
+ return f(this, null, function* () {
358
366
  if (this.checkDisposed())
359
367
  return;
360
368
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
@@ -376,7 +384,7 @@ class Pi extends N {
376
384
  setState(e, t) {
377
385
  if (this.checkDisposed())
378
386
  return;
379
- const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = c({}, this.state);
387
+ const { userAction: i = !0, visibleWithAnimation: s = !1 } = t != null ? t : {}, o = c({}, this.state);
380
388
  this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = s, o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
381
389
  }
382
390
  /**
@@ -411,7 +419,7 @@ class Pi extends N {
411
419
  */
412
420
  changeTagNormalById(e, t) {
413
421
  const i = this.getTagById(e);
414
- i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = A(t));
422
+ i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = P(t));
415
423
  }
416
424
  /**
417
425
  * @description: 改变data
@@ -419,7 +427,7 @@ class Pi extends N {
419
427
  changeDataById(e, t, i = !0) {
420
428
  const s = this.getTagById(e);
421
429
  let o = !1;
422
- s && (s.data && (o = !0), i ? s.data = f(s.data, t) : s.data = c(c({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags(), o && s.hooks.emit("dataChanged", s.data));
430
+ s && (s.data && (o = !0), i ? s.data = p(s.data, t) : s.data = c(c({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags(), o && s.hooks.emit("dataChanged", s.data));
423
431
  }
424
432
  /**
425
433
  * @description: 改变tag的stickType
@@ -433,7 +441,7 @@ class Pi extends N {
433
441
  changeTagById(e, t, i = !0) {
434
442
  const s = this.getTagById(e);
435
443
  let o = !1;
436
- t && (t.data && (o = !0), i ? f(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = A(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag(), o && s.hooks.emit("dataChanged", s.data));
444
+ t && (t.data && (o = !0), i ? p(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = P(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag(), o && s.hooks.emit("dataChanged", s.data));
437
445
  }
438
446
  /**
439
447
  * @description: 销毁tag
@@ -448,7 +456,7 @@ class Pi extends N {
448
456
  * @description: 设置 visible 和 unfolded
449
457
  */
450
458
  setVisibleAndUnfolded() {
451
- return p(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
459
+ return f(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
452
460
  return this.setVisible(), e ? new Promise((t) => {
453
461
  setTimeout(() => {
454
462
  this.setUnfoldedByPanoIndex(), t();
@@ -506,12 +514,12 @@ class Pi extends N {
506
514
  }, i = () => {
507
515
  this.state.enabled && this.hide();
508
516
  }, { observe: s, unobserve: o } = D(
509
- O(() => {
517
+ V(() => {
510
518
  this.store.resizeObserverDisposer && i();
511
519
  }, 500),
512
520
  e
513
521
  ), { observe: n, unobserve: r } = D(
514
- k(() => t(), 400),
522
+ O(() => t(), 400),
515
523
  e
516
524
  );
517
525
  return s(), n(), () => {
@@ -534,7 +542,7 @@ class Pi extends N {
534
542
  }
535
543
  }
536
544
  export {
537
- Pi as PanoTagPluginController,
538
- Pi as default,
539
- Di as pluginFlag
545
+ Ei as PanoTagPluginController,
546
+ Ei as default,
547
+ wi as pluginFlag
540
548
  };
@@ -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,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");
17
+ i(this, "VERSION", "3.3.0-dev.1");
18
18
  i(this, "five");
19
19
  /**
20
20
  * 插件事件钩子