@realsee/dnalogel 3.4.0-dev.3 → 3.4.0-tag-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (402) hide show
  1. package/dist/CruisePlugin/{Work.d.ts → Controller.d.ts} +8 -1
  2. package/dist/CruisePlugin/index.d.ts +3 -4
  3. package/dist/CruisePlugin/typing.d.ts +2 -2
  4. package/dist/CruisePlugin/utils/linerValue.d.ts +1 -0
  5. package/dist/GuideLinePlugin/Controller.d.ts +6 -1
  6. package/dist/PanoTagPlugin/Archive/deprecated.d.ts +2 -0
  7. package/dist/PanoTagPlugin/Components/Tag/PanoramaTag.svelte.d.ts +1 -0
  8. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +0 -4
  9. package/dist/PanoTagPlugin/controller/TagRender.d.ts +4 -0
  10. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +3 -3
  11. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +6 -0
  12. package/dist/index.cjs.js +53 -53
  13. package/dist/index.js +4491 -4556
  14. package/dist/index.umd.js +46 -46
  15. package/docs/assets/search.js +1 -1
  16. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +31 -33
  17. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +32 -34
  18. package/docs/classes/CSS3DRender.html +31 -33
  19. package/docs/classes/{WalkController.html → CruisePluginController.html} +57 -52
  20. package/docs/classes/GuideLineItem.GuideLineItem.html +19 -21
  21. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +41 -43
  22. package/docs/classes/Magnifier.html +20 -22
  23. package/docs/classes/ModelRoomLabelController.html +11 -13
  24. package/docs/classes/Object3DHelperController.html +25 -27
  25. package/docs/classes/PaintBrush.html +15 -17
  26. package/docs/classes/PanoMeasurePluginLine.html +27 -29
  27. package/docs/classes/PanoMeasurePluginModel.html +27 -29
  28. package/docs/classes/PanoMeasurePluginPoint.html +11 -13
  29. package/docs/classes/PanoMeasurePluginPolyline.html +27 -29
  30. package/docs/classes/PanoTagPluginController.html +54 -56
  31. package/docs/classes/Util.BetterTween.html +9 -11
  32. package/docs/classes/Util.Interval.html +12 -14
  33. package/docs/classes/Util.LineSegments.html +8 -10
  34. package/docs/classes/Util.Magnifier.html +20 -22
  35. package/docs/classes/Util.Object3D.html +8 -10
  36. package/docs/classes/Util.PointDomHelper.html +11 -13
  37. package/docs/classes/Util.PointHelper.html +11 -13
  38. package/docs/classes/Util.PointSelectorHelper.html +16 -18
  39. package/docs/classes/Util.Rectangle.html +13 -15
  40. package/docs/enums/CameraMovementEffect.html +7 -9
  41. package/docs/enums/ContentType.html +30 -22
  42. package/docs/enums/DIRECTION.html +9 -11
  43. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -11
  44. package/docs/enums/DimensionType.html +7 -9
  45. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -10
  46. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -11
  47. package/docs/enums/PaintBrushTypeEnum.html +8 -10
  48. package/docs/enums/PointType.html +7 -9
  49. package/docs/enums/Rotation.html +8 -10
  50. package/docs/functions/AreaMakerPlugin.html +5 -7
  51. package/docs/functions/CSS3DRenderPlugin.html +4 -6
  52. package/docs/functions/CameraMovementPlugin.html +4 -6
  53. package/docs/functions/CruisePlugin.html +6 -8
  54. package/docs/functions/CurrentPanoImagePlugin.html +4 -6
  55. package/docs/functions/GuideLinePlugin.html +5 -7
  56. package/docs/functions/ItemLabelPlugin.html +4 -6
  57. package/docs/functions/MapviewFloorplanPlugin.html +4 -6
  58. package/docs/functions/ModelChassisCompassPlugin.html +4 -6
  59. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -6
  60. package/docs/functions/ModelFloorplanPlugin.html +4 -6
  61. package/docs/functions/ModelItemLabelPlugin.html +4 -6
  62. package/docs/functions/ModelRoomLabelPlugin.html +4 -6
  63. package/docs/functions/ModelTVVideoPlugin.html +4 -6
  64. package/docs/functions/ModelViewPlugin.html +4 -6
  65. package/docs/functions/Object3DHelperPlugin.html +4 -6
  66. package/docs/functions/PanoCompassPlugin.html +4 -6
  67. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -6
  68. package/docs/functions/PanoDoorLabelPlugin.html +4 -6
  69. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -6
  70. package/docs/functions/PanoMeasurePlugin.html +4 -6
  71. package/docs/functions/PanoRulerPlugin.html +4 -6
  72. package/docs/functions/PanoRulerProPlugin.html +4 -6
  73. package/docs/functions/PanoSpatialTagPlugin.html +4 -6
  74. package/docs/functions/PanoTagPlugin.html +4 -6
  75. package/docs/functions/PanoVideoPlugin.html +4 -6
  76. package/docs/functions/PipelinePlugin.html +4 -6
  77. package/docs/functions/TopviewFloorplanPlugin.html +4 -6
  78. package/docs/functions/Util.absoluteUrl.html +5 -7
  79. package/docs/functions/Util.checkFiveModelLoaded.html +5 -7
  80. package/docs/functions/Util.equal.html +5 -7
  81. package/docs/functions/Util.getCoordsFromClient.html +5 -7
  82. package/docs/functions/Util.getCoordsFromElement.html +5 -7
  83. package/docs/functions/Util.getFrameTime.html +5 -7
  84. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -7
  85. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -7
  86. package/docs/functions/Util.isAbsoluteURL.html +5 -7
  87. package/docs/functions/Util.isModelLike.html +5 -7
  88. package/docs/functions/Util.isNil.html +5 -7
  89. package/docs/functions/Util.isPanoramaLike.html +5 -7
  90. package/docs/functions/Util.nextFrame.html +5 -7
  91. package/docs/functions/Util.notNil.html +5 -7
  92. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -7
  93. package/docs/functions/Util.tweenProgress.html +5 -7
  94. package/docs/functions/Util.uuid.html +5 -7
  95. package/docs/functions/pluginFlag.html +5 -7
  96. package/docs/index.html +5 -7
  97. package/docs/interfaces/AddTagConfig.html +6 -8
  98. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +6 -8
  99. package/docs/interfaces/AreaMakerPluginType.Config.html +6 -8
  100. package/docs/interfaces/AreaMakerPluginType.EventMap.html +15 -17
  101. package/docs/interfaces/AreaMakerPluginType.Params.html +7 -9
  102. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +9 -11
  103. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +8 -10
  104. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +6 -8
  105. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +6 -8
  106. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +6 -8
  107. package/docs/interfaces/AreaMakerPluginType.State.html +8 -10
  108. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -13
  109. package/docs/interfaces/CSS3DRenderPluginState.html +8 -10
  110. package/docs/interfaces/CameraMovementPluginExportType.html +7 -9
  111. package/docs/interfaces/CruisePluginTypes.Config.html +9 -11
  112. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +13 -15
  113. package/docs/interfaces/CruisePluginTypes.EventMap.html +21 -23
  114. package/docs/interfaces/CruisePluginTypes.MoveAction.html +13 -15
  115. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +15 -17
  116. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +15 -17
  117. package/docs/interfaces/CruisePluginTypes.PluginData.html +10 -12
  118. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +7 -9
  119. package/docs/interfaces/CruisePluginTypes.PluginState.html +36 -17
  120. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +11 -13
  121. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +12 -14
  122. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +7 -9
  123. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +6 -8
  124. package/docs/interfaces/CurrentPanoImagePluginType.State.html +8 -10
  125. package/docs/interfaces/EventMap.html +15 -17
  126. package/docs/interfaces/FloorplanBounding.html +8 -10
  127. package/docs/interfaces/FloorplanData.html +10 -12
  128. package/docs/interfaces/FloorplanEntrance.html +11 -13
  129. package/docs/interfaces/FloorplanExtraObject.html +10 -12
  130. package/docs/interfaces/FloorplanExtraObject3D.html +8 -10
  131. package/docs/interfaces/FloorplanFloorData.html +9 -11
  132. package/docs/interfaces/FloorplanImagePosition.html +7 -9
  133. package/docs/interfaces/FloorplanObserver.html +9 -11
  134. package/docs/interfaces/FloorplanOutlineItem.html +9 -11
  135. package/docs/interfaces/FloorplanPosition.html +7 -9
  136. package/docs/interfaces/FloorplanRoomItem.html +13 -15
  137. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -9
  138. package/docs/interfaces/FloorplanServerBounding.html +8 -10
  139. package/docs/interfaces/FloorplanServerComputedData.html +10 -12
  140. package/docs/interfaces/FloorplanServerData.html +7 -9
  141. package/docs/interfaces/FloorplanServerDoorItem.html +10 -12
  142. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -10
  143. package/docs/interfaces/FloorplanServerEntrance.html +11 -13
  144. package/docs/interfaces/FloorplanServerFloorData.html +9 -11
  145. package/docs/interfaces/FloorplanServerImagePosition.html +7 -9
  146. package/docs/interfaces/FloorplanServerObserver.html +9 -11
  147. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -11
  148. package/docs/interfaces/FloorplanServerPosition.html +7 -9
  149. package/docs/interfaces/FloorplanServerRoomItem.html +14 -16
  150. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -9
  151. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +8 -10
  152. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +11 -13
  153. package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -16
  154. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -11
  155. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -9
  156. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +14 -16
  157. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +7 -9
  158. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -11
  159. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +20 -22
  160. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +8 -10
  161. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +20 -22
  162. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -8
  163. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +7 -9
  164. package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -11
  165. package/docs/interfaces/GuideLinePluginType.Route.html +12 -14
  166. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -12
  167. package/docs/interfaces/HelperOffset.html +8 -10
  168. package/docs/interfaces/ImagePlaneGroup.html +6 -8
  169. package/docs/interfaces/ItemLabelPluginData.html +6 -8
  170. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -13
  171. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -11
  172. package/docs/interfaces/MinMax.html +7 -9
  173. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -9
  174. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -10
  175. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -9
  176. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -10
  177. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -10
  178. package/docs/interfaces/ModelItemLabelPluginData.html +6 -8
  179. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -13
  180. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -9
  181. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -8
  182. package/docs/interfaces/ModelTVVideoPluginData.html +9 -11
  183. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -10
  184. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -8
  185. package/docs/interfaces/ModelViewPluginExportType.html +11 -13
  186. package/docs/interfaces/Object3DHelperState.html +8 -10
  187. package/docs/interfaces/ObjectHelperControllers.html +9 -11
  188. package/docs/interfaces/PaintBrushAction.html +12 -14
  189. package/docs/interfaces/PaintBrushConfigs.html +12 -14
  190. package/docs/interfaces/PaintBrushState.html +10 -12
  191. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -12
  192. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -7
  193. package/docs/interfaces/PanoMeasureParameterType.html +16 -18
  194. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -10
  195. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -9
  196. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -9
  197. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -10
  198. package/docs/interfaces/PanoRulerPluginExportType.html +10 -12
  199. package/docs/interfaces/PanoRulerPluginOptions.html +7 -9
  200. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -10
  201. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -11
  202. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -9
  203. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -9
  204. package/docs/interfaces/PanoRulerProPluginState.html +8 -10
  205. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -7
  206. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -7
  207. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -13
  208. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -12
  209. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -15
  210. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -12
  211. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -15
  212. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -13
  213. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -12
  214. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -8
  215. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -10
  216. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -8
  217. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -11
  218. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -8
  219. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -10
  220. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -12
  221. package/docs/interfaces/Point.html +8 -10
  222. package/docs/interfaces/Room.html +9 -11
  223. package/docs/interfaces/RoomInfo.html +7 -9
  224. package/docs/interfaces/RoomLabel.html +14 -16
  225. package/docs/interfaces/RoomRules.html +5 -7
  226. package/docs/interfaces/Rooms.html +5 -7
  227. package/docs/interfaces/Scissor.html +9 -11
  228. package/docs/interfaces/State.html +8 -10
  229. package/docs/interfaces/TagCacheInterface.html +12 -14
  230. package/docs/interfaces/TagConfig.html +14 -16
  231. package/docs/interfaces/TagGLTFObjectGroup.html +6 -8
  232. package/docs/interfaces/TagIconUrl.html +12 -14
  233. package/docs/interfaces/TagObjectGroup.html +6 -8
  234. package/docs/interfaces/TagStyle.html +6 -8
  235. package/docs/interfaces/Tags.html +144 -14
  236. package/docs/interfaces/TemporaryState.html +6 -8
  237. package/docs/interfaces/Util.MagnifierParameter.html +11 -13
  238. package/docs/interfaces/Util.MouseGroupParameter.html +8 -10
  239. package/docs/interfaces/Util.PointIntersection.html +8 -10
  240. package/docs/modules/AreaMakerPluginType.html +5 -7
  241. package/docs/modules/CruisePluginTypes.html +5 -7
  242. package/docs/modules/CurrentPanoImagePluginType.html +5 -7
  243. package/docs/modules/GuideLineItem.html +5 -7
  244. package/docs/modules/GuideLineModeItem.html +5 -7
  245. package/docs/modules/GuideLinePluginType.html +5 -7
  246. package/docs/modules/PanoVideoPluginType.html +5 -7
  247. package/docs/modules/Util.html +5 -7
  248. package/docs/modules.html +9 -27
  249. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +5 -7
  250. package/docs/types/AreaMakerPluginType.PluginData.html +5 -7
  251. package/docs/types/AreaMakerPluginType.ServerData.html +5 -7
  252. package/docs/types/ArrayPosition.html +5 -7
  253. package/docs/types/AudioAppearance.html +5 -7
  254. package/docs/types/AudioTagTypeConfigKey.html +5 -7
  255. package/docs/types/CSS3DRenderExportType.html +5 -7
  256. package/docs/types/CSS3DRenderPluginExportType.html +5 -7
  257. package/docs/types/CSS3DRenderPluginParameterType.html +5 -7
  258. package/docs/types/ClassFunctionParameters.html +5 -7
  259. package/docs/types/Color.html +5 -7
  260. package/docs/types/ContentTypeConfigKey.html +5 -7
  261. package/docs/types/ContentTypeConfigKeySplit.html +5 -7
  262. package/docs/types/ContentTypeMap.html +5 -7
  263. package/docs/types/Create3DDomContainerReturnType.html +5 -7
  264. package/docs/types/Create3DElementReturnType.html +5 -7
  265. package/docs/types/CruisePluginExportType.html +5 -7
  266. package/docs/types/CruisePluginTypes.CruiseData.html +6 -8
  267. package/docs/types/CruisePluginTypes.MoveEffect.html +6 -8
  268. package/docs/types/CurrentPanoImagePluginExportType.html +5 -7
  269. package/docs/types/DeprecatedMediaPlaneProperty.html +5 -7
  270. package/docs/types/DeprecatedTagProperty.html +5 -7
  271. package/docs/types/Direction-1.html +5 -7
  272. package/docs/types/Direction4.html +5 -7
  273. package/docs/types/ElementRenderer.html +5 -7
  274. package/docs/types/FloorplanRuleLabels.html +5 -7
  275. package/docs/types/FloorplanServerRuleLabels.html +5 -7
  276. package/docs/types/GuideLinePluginExportType.html +5 -7
  277. package/docs/types/GuideLinePluginType.GuideLineItem.html +6 -8
  278. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +6 -8
  279. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +6 -8
  280. package/docs/types/GuideLinePluginType.GuideLineStyle.html +6 -8
  281. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +6 -8
  282. package/docs/types/GuideLinePluginType.PathItem.html +6 -8
  283. package/docs/types/GuideLinePluginType.PluginData.html +6 -8
  284. package/docs/types/HelperEventMap.html +5 -7
  285. package/docs/types/LoadTagConfig.html +5 -7
  286. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -7
  287. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -7
  288. package/docs/types/MediaData.html +11 -8
  289. package/docs/types/MediaStore.html +5 -7
  290. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -7
  291. package/docs/types/ModelFloorplanPluginParameterType.html +5 -7
  292. package/docs/types/ModelFloorplanPluginReturnType.html +5 -7
  293. package/docs/types/ModelId.html +5 -7
  294. package/docs/types/ModelRoomLabelPluginParameters.html +5 -7
  295. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -7
  296. package/docs/types/MoveArgs.html +5 -7
  297. package/docs/types/MoveOpts.html +5 -7
  298. package/docs/types/Object3DHelperEventMap.html +5 -7
  299. package/docs/types/ObjectFit.html +5 -7
  300. package/docs/types/PaintBrushEventMap.html +5 -7
  301. package/docs/types/PanoCompassPluginData.html +5 -7
  302. package/docs/types/PanoCompassPluginExportType.html +5 -7
  303. package/docs/types/PanoCompassPluginParameterType.html +5 -7
  304. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -7
  305. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -7
  306. package/docs/types/PanoIndex.html +5 -7
  307. package/docs/types/PanoMeasurePluginEvent.html +5 -7
  308. package/docs/types/PanoMeasureReturnType.html +5 -7
  309. package/docs/types/PanoSpatialTagPluginId.html +5 -7
  310. package/docs/types/PanoTagPluginExportInterface.html +5 -7
  311. package/docs/types/PanoTagPluginParamsInterface.html +5 -7
  312. package/docs/types/PanoVideoPluginParameterType.html +5 -7
  313. package/docs/types/PanoVideoPluginReturnType.html +5 -7
  314. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -7
  315. package/docs/types/PipelinePluginParameterType.html +5 -7
  316. package/docs/types/PipelinePluginReturnType.html +5 -7
  317. package/docs/types/PlaneTag.html +5 -7
  318. package/docs/types/Point2DTag.html +5 -7
  319. package/docs/types/Point3DTag.html +5 -7
  320. package/docs/types/PointTag.html +5 -7
  321. package/docs/types/PointTagInstance.html +5 -7
  322. package/docs/types/Position.html +5 -7
  323. package/docs/types/RotateArgs.html +5 -7
  324. package/docs/types/RotateOpts.html +5 -7
  325. package/docs/types/RuleLabelsKey.html +5 -7
  326. package/docs/types/RuleLabelsValue.html +5 -7
  327. package/docs/types/StickType.html +5 -7
  328. package/docs/types/Tag.html +5 -7
  329. package/docs/types/Tag2D.html +5 -7
  330. package/docs/types/Tag3D.html +5 -7
  331. package/docs/types/TagConfigByKey.html +5 -7
  332. package/docs/types/TagContentType.html +5 -7
  333. package/docs/types/TagDimensionType.html +5 -7
  334. package/docs/types/TagElement.html +5 -7
  335. package/docs/types/TagEvents.html +5 -7
  336. package/docs/types/TagGLTFObject.html +5 -7
  337. package/docs/types/TagHooks.html +5 -7
  338. package/docs/types/TagId.html +5 -7
  339. package/docs/types/TagInstance.html +5 -7
  340. package/docs/types/TagPointType.html +5 -7
  341. package/docs/types/TagRendererMap.html +5 -7
  342. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -7
  343. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -7
  344. package/docs/types/WorkCode.html +5 -7
  345. package/docs/variables/FLOOR_TYPE_MAP.html +5 -7
  346. package/docs/variables/PLUGIN.html +5 -7
  347. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -7
  348. package/docs/variables/ROOM_TYPE_MAP.html +5 -7
  349. package/docs/variables/defaultGlobalConfig.html +5 -7
  350. package/docs/variables/itemLabelPluginServerParams.html +5 -7
  351. package/docs/variables/modelItemLabelPluginServerParams.html +5 -7
  352. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -7
  353. package/libs/CruisePlugin/{Work.d.ts → Controller.d.ts} +8 -1
  354. package/libs/CruisePlugin/{Work.js → Controller.js} +177 -148
  355. package/libs/CruisePlugin/index.d.ts +3 -4
  356. package/libs/CruisePlugin/index.js +11 -15
  357. package/libs/CruisePlugin/typing.d.ts +2 -2
  358. package/libs/GuideLinePlugin/Controller.d.ts +6 -1
  359. package/libs/GuideLinePlugin/Controller.js +63 -48
  360. package/libs/GuideLinePlugin/GuideLineItem/index.js +43 -53
  361. package/libs/GuideLinePlugin/GuideLineItem.js +10 -12
  362. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
  363. package/libs/GuideLinePlugin/index.js +18 -20
  364. package/libs/PanoTagPlugin/Archive/deprecated.d.ts +2 -0
  365. package/libs/PanoTagPlugin/Archive/deprecated.js +1 -1
  366. package/libs/PanoTagPlugin/Components/Tag/PanoramaTag.js +96 -0
  367. package/libs/PanoTagPlugin/Components/Tag/PanoramaTag.svelte.d.ts +1 -0
  368. package/libs/PanoTagPlugin/Components/Tag/index.js +166 -128
  369. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  370. package/libs/PanoTagPlugin/Components/TagItem.js +288 -255
  371. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +0 -4
  372. package/libs/PanoTagPlugin/controller/TagComputer.js +116 -135
  373. package/libs/PanoTagPlugin/controller/TagRender.d.ts +4 -0
  374. package/libs/PanoTagPlugin/controller/TagRender.js +92 -72
  375. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +3 -3
  376. package/libs/PanoTagPlugin/controller/index.js +6 -5
  377. package/libs/PanoTagPlugin/index.js +12 -11
  378. package/libs/PanoTagPlugin/tag.config.js +6 -12
  379. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +6 -0
  380. package/libs/base/BasePlugin.js +1 -1
  381. package/libs/index.js +100 -104
  382. package/libs/shared-utils/logger.js +1 -1
  383. package/package.json +2 -2
  384. package/dist/CruisePlugin/CruiseController.d.ts +0 -147
  385. package/dist/CruisePlugin/Move.d.ts +0 -28
  386. package/dist/CruisePlugin/utils/getFiveStateOnCurve.d.ts +0 -11
  387. package/dist/shared-utils/five/fiveLoaded.d.ts +0 -2
  388. package/docs/classes/MoveController.html +0 -641
  389. package/libs/CruisePlugin/CruiseController.d.ts +0 -147
  390. package/libs/CruisePlugin/CruiseController.js +0 -236
  391. package/libs/CruisePlugin/Move.d.ts +0 -28
  392. package/libs/CruisePlugin/Move.js +0 -112
  393. package/libs/CruisePlugin/utils/getFiveStateOnCurve.d.ts +0 -11
  394. package/libs/CruisePlugin/utils/getFiveStateOnCurve.js +0 -11
  395. package/libs/shared-utils/five/fiveLoaded.d.ts +0 -2
  396. package/libs/shared-utils/five/fiveLoaded.js +0 -30
  397. package/libs/shared-utils/formatRad.d.ts +0 -7
  398. package/libs/shared-utils/formatRad.js +0 -7
  399. /package/dist/{shared-utils → CruisePlugin/utils}/formatRad.d.ts +0 -0
  400. /package/dist/{shared-utils/vectorToCoordinate.d.ts → CruisePlugin/utils/vectorToCoordinates.d.ts} +0 -0
  401. /package/libs/{shared-utils/vectorToCoordinate.d.ts → CruisePlugin/utils/vectorToCoordinates.d.ts} +0 -0
  402. /package/libs/{shared-utils/vectorToCoordinate.js → CruisePlugin/utils/vectorToCoordinates.js} +0 -0
@@ -1,42 +1,42 @@
1
- var G = Object.defineProperty, K = Object.defineProperties;
2
- var T = Object.getOwnPropertyDescriptors;
3
- var C = Object.getOwnPropertySymbols;
4
- var A = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
5
- var k = (h, f, e) => f in h ? G(h, f, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[f] = e, g = (h, f) => {
6
- for (var e in f || (f = {}))
7
- A.call(f, e) && k(h, e, f[e]);
8
- if (C)
9
- for (var e of C(f))
10
- U.call(f, e) && k(h, e, f[e]);
11
- return h;
12
- }, x = (h, f) => K(h, T(f));
13
- var S = (h, f, e) => (k(h, typeof f != "symbol" ? f + "" : f, e), e);
14
- var y = (h, f, e) => new Promise((t, r) => {
15
- var i = (p) => {
1
+ var T = Object.defineProperty, K = Object.defineProperties;
2
+ var A = Object.getOwnPropertyDescriptors;
3
+ var F = Object.getOwnPropertySymbols;
4
+ var O = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
5
+ var L = (c, l, e) => l in c ? T(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e, P = (c, l) => {
6
+ for (var e in l || (l = {}))
7
+ O.call(l, e) && L(c, e, l[e]);
8
+ if (F)
9
+ for (var e of F(l))
10
+ U.call(l, e) && L(c, e, l[e]);
11
+ return c;
12
+ }, C = (c, l) => K(c, A(l));
13
+ var I = (c, l, e) => (L(c, typeof l != "symbol" ? l + "" : l, e), e);
14
+ var v = (c, l, e) => new Promise((t, r) => {
15
+ var i = (d) => {
16
16
  try {
17
- s(e.next(p));
17
+ s(e.next(d));
18
18
  } catch (a) {
19
19
  r(a);
20
20
  }
21
- }, n = (p) => {
21
+ }, n = (d) => {
22
22
  try {
23
- s(e.throw(p));
23
+ s(e.throw(d));
24
24
  } catch (a) {
25
25
  r(a);
26
26
  }
27
- }, s = (p) => p.done ? t(p.value) : Promise.resolve(p.value).then(i, n);
28
- s((e = e.apply(h, f)).next());
27
+ }, s = (d) => d.done ? t(d.value) : Promise.resolve(d.value).then(i, n);
28
+ s((e = e.apply(c, l)).next());
29
29
  });
30
- import { Controller as Q } from "../base/BasePluginWithData.js";
30
+ import { Controller as V } from "../base/BasePluginWithData.js";
31
31
  import { GuideLinePlugin as $ } from "../GuideLinePlugin/index.js";
32
- import { uuid as I } from "../shared-utils/uuid.js";
33
- import { coordinatesAngle as O } from "./utils/coordinatesAngle.js";
32
+ import { uuid as w } from "../shared-utils/uuid.js";
33
+ import { coordinatesAngle as Q } from "./utils/coordinatesAngle.js";
34
34
  import { safeCall as _ } from "./utils/safeCall.js";
35
- import { equal as V } from "../shared-utils/equal.js";
36
- import * as R from "three";
37
- import { sleep as N } from "./utils/sleep.js";
38
- import { waitFiveLoaded as j } from "../shared-utils/five/fiveLoaded.js";
39
- import { vectorToCoordinates as W } from "../shared-utils/vectorToCoordinate.js";
35
+ import { equal as R } from "../shared-utils/equal.js";
36
+ import { vectorToCoordinates as N } from "./utils/vectorToCoordinates.js";
37
+ import * as j from "three";
38
+ import H from "./utils/linerValue.js";
39
+ import { sleep as J } from "./utils/sleep.js";
40
40
  import "../base/BasePlugin.js";
41
41
  import "../shared-utils/Subscribe.js";
42
42
  import "hammerjs";
@@ -180,6 +180,7 @@ import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
180
180
  import "../PanoTagPlugin/Components/Tag/LinkTag.js";
181
181
  import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
182
182
  import "../PanoTagPlugin/utils/getImageInfo.js";
183
+ import "../PanoTagPlugin/Components/Tag/PanoramaTag.js";
183
184
  import "../PanoTagPlugin/Components/Tag/CustomTag.js";
184
185
  import "../vendor/classnames/index.js";
185
186
  import "../PanoTagPlugin/Components/Common/TagPoint.js";
@@ -191,27 +192,24 @@ import "@realsee/five/gltf-loader";
191
192
  import "../shared-utils/five/fiveModelLoad.js";
192
193
  import "../GuideLinePlugin/Components/Tag.js";
193
194
  import "../GuideLinePlugin/utils/index.js";
195
+ import "./Controller.js";
194
196
  import "../shared-utils/to.js";
195
197
  import "../shared-utils/five/changeMode.js";
196
198
  import "../shared-utils/nearlyEqual.js";
197
- import "./Move.js";
198
- import "./CruiseController.js";
199
- import "../shared-utils/isTruelyObject.js";
200
- import "./utils/getFiveStateOnCurve.js";
201
- import "../shared-utils/formatRad.js";
202
- import "./Work.js";
203
199
  import "./utils/coordinatesToVector.js";
204
- const F = "CruisePlugin", b = `${F}`, sr = (h) => `${b}--${h}`, D = () => {
205
- console.error(`${b} is disposed`);
206
- }, H = () => {
207
- console.warn(`${b} is disabled`);
208
- }, J = () => {
209
- console.error(`${b} is disabled`);
210
- }, w = /* @__PURE__ */ new Map();
211
- class nr extends Q {
200
+ import "../shared-utils/isTruelyObject.js";
201
+ import "./utils/formatRad.js";
202
+ const M = "v1.0.6", G = "CruisePlugin", x = `${G}@${M}`, sr = (c) => `${x}--${c}`, D = () => {
203
+ console.error(`${x} is disposed`);
204
+ }, W = () => {
205
+ console.warn(`${x} is disabled`);
206
+ }, q = () => {
207
+ console.error(`${x} is disabled`);
208
+ }, E = /* @__PURE__ */ new Map();
209
+ class z extends V {
212
210
  constructor(e, t) {
213
211
  super(e, t);
214
- S(this, "state", {
212
+ I(this, "state", {
215
213
  visible: !0,
216
214
  enabled: !0,
217
215
  disposed: !1,
@@ -226,47 +224,52 @@ class nr extends Q {
226
224
  }
227
225
  }
228
226
  });
229
- S(this, "data");
230
- S(this, "config");
231
- S(this, "privateState", {
227
+ I(this, "data");
228
+ I(this, "config");
229
+ I(this, "privateState", {
232
230
  playing: !1,
233
231
  currentPlayQueue: [],
234
232
  currentPlayKeyframe: null,
235
233
  broke: !1,
234
+ disposers: [],
236
235
  modeChanging: !1
237
236
  });
238
- S(this, "GuideLine");
239
- this.config = t, Object.assign(window, { [`__${F}_DEBUG__`]: this });
237
+ I(this, "GuideLine");
238
+ this.config = t, Object.assign(window, { [`__${G}_DEBUG__`]: this });
239
+ const r = this.setFiveLinearUpdateCamera.bind(this), i = this.setFiveOriginUpdateCamera.bind(this);
240
+ this.hooks.on("play", r), this.hooks.on("broke", i), this.hooks.on("end", i), this.hooks.on("pause", i), this.privateState.disposers.push(() => {
241
+ this.hooks.off("play", r), this.hooks.off("broke", i), this.hooks.off("end", i), this.hooks.off("pause", i);
242
+ });
240
243
  }
241
244
  /**
242
245
  * @description Load Data and State
243
246
  */
244
247
  load(e, t, r) {
245
- return y(this, null, function* () {
246
- var o, m;
248
+ return v(this, null, function* () {
249
+ var o, m, f, u, h, g;
247
250
  if (this.state.disposed)
248
251
  return D();
249
- this.clear();
252
+ this.privateState.fiveOriginGetProgress || (m = (o = this.five.controller) == null ? void 0 : o.cameraMotion) != null && m.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (u = (f = this.five.controller) == null ? void 0 : f.cameraMotion) == null ? void 0 : u.getProgress), this.clear();
250
253
  const i = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(e);
251
254
  this.data = n, this.hooks.emit("dataChange", n, i);
252
- let s = [], p;
253
- const a = this.data.keyframes.filter((d) => d.data.panoIndex !== void 0);
254
- a.filter((d, l) => {
255
- var u;
256
- return d.data.panoIndex !== ((u = a[l - 1]) == null ? void 0 : u.data.panoIndex);
257
- }).map((d) => d.data.panoIndex).forEach((d) => {
258
- var u, v;
259
- const l = (u = this.five.work.observers[d]) == null ? void 0 : u.floorIndex;
260
- if (l !== void 0)
261
- if (p === l) {
262
- const c = s.length - 1;
263
- s[c] = [...(v = s[c]) != null ? v : [], d];
255
+ let s = [], d;
256
+ const a = this.data.keyframes.filter((p) => p.data.panoIndex !== void 0);
257
+ a.filter((p, y) => {
258
+ var S;
259
+ return p.data.panoIndex !== ((S = a[y - 1]) == null ? void 0 : S.data.panoIndex);
260
+ }).map((p) => p.data.panoIndex).forEach((p) => {
261
+ var S, k;
262
+ const y = (S = this.five.work.observers[p]) == null ? void 0 : S.floorIndex;
263
+ if (y !== void 0)
264
+ if (d === y) {
265
+ const b = s.length - 1;
266
+ s[b] = [...(k = s[b]) != null ? k : [], p];
264
267
  } else {
265
- p = l;
266
- const c = s.length;
267
- s[c] = [d];
268
+ d = y;
269
+ const b = s.length;
270
+ s[b] = [p];
268
271
  }
269
- }), !this.GuideLine && ((o = this.config) == null ? void 0 : o.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = $(this.five, this.config)), (m = this.GuideLine) == null || m.load({ routes: s.map((d) => ({ panoIndexList: d })), config: n.guildPluginOptions }), t ? this.setState(t, { userAction: r }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug(`${b} loaded`, n), this.hooks.emit("dataLoaded", n);
272
+ }), !this.GuideLine && ((h = this.config) == null ? void 0 : h.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = $(this.five, this.config)), (g = this.GuideLine) == null || g.load({ routes: s.map((p) => ({ panoIndexList: p })), config: n.guildPluginOptions }), t ? this.setState(t, { userAction: r }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug(`${x} loaded`, n), this.hooks.emit("dataLoaded", n);
270
273
  });
271
274
  }
272
275
  /**
@@ -288,7 +291,7 @@ class nr extends Q {
288
291
  * @description Play from first keyframe
289
292
  */
290
293
  playFromStart(e) {
291
- return this.playFrom(x(g({}, e), { index: 0 }));
294
+ return this.playFrom(C(P({}, e), { index: 0 }));
292
295
  }
293
296
  /**
294
297
  * @description Pause
@@ -300,7 +303,7 @@ class nr extends Q {
300
303
  * @description Show guide line
301
304
  */
302
305
  show(e) {
303
- return y(this, null, function* () {
306
+ return v(this, null, function* () {
304
307
  this.setState({ visible: !0 }, e);
305
308
  });
306
309
  }
@@ -308,7 +311,7 @@ class nr extends Q {
308
311
  * @description Hide guide line
309
312
  */
310
313
  hide(e) {
311
- return y(this, null, function* () {
314
+ return v(this, null, function* () {
312
315
  this.setState({ visible: !1 }, e);
313
316
  });
314
317
  }
@@ -338,52 +341,52 @@ class nr extends Q {
338
341
  if (this.state.disposed)
339
342
  return D();
340
343
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
341
- return J();
342
- const r = g({}, this.state);
343
- this.state = g(g({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== r.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== r.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction), V(r, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: (i = t == null ? void 0 : t.userAction) != null ? i : !0 });
344
+ return q();
345
+ const r = P({}, this.state);
346
+ this.state = P(P({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== r.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== r.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction), R(r, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: (i = t == null ? void 0 : t.userAction) != null ? i : !0 });
344
347
  }
345
348
  /**
346
349
  * @description Format data
347
350
  */
348
351
  formatData(e) {
349
- return y(this, null, function* () {
350
- this.five.work || (yield j(this.five));
352
+ return v(this, null, function* () {
353
+ this.five.work || (yield this.waitFiveLoaded());
351
354
  const t = this.five.work.observers, r = (() => {
352
355
  const i = e;
353
356
  return typeof i == "object" && i !== null && i.version && i.data ? i.data : i;
354
357
  })();
355
358
  if (r.keyframes)
356
359
  return {
357
- keyframesId: I(),
360
+ keyframesId: w(),
358
361
  keyframes: r.keyframes.map((i, n) => {
359
362
  var a;
360
- const s = r.keyframes[n + 1], p = (() => !s || s.start === void 0 || i.end === void 0 ? 0 : s.start - i.end)();
361
- return x(g({ id: (a = i.uuid) != null ? a : I(), moveIndex: n, stay: p, index: n }, i), { guildPluginOptions: r.guildPluginOptions });
363
+ const s = r.keyframes[n + 1], d = (() => !s || s.start === void 0 || i.end === void 0 ? 0 : s.start - i.end)();
364
+ return C(P({ id: (a = i.uuid) != null ? a : w(), moveIndex: n, stay: d, index: n }, i), { guildPluginOptions: r.guildPluginOptions });
362
365
  })
363
366
  };
364
367
  if (r.panoIndexList) {
365
368
  let i = [];
366
- const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: p } = r;
367
- return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = p, r.panoIndexList.forEach((a, o) => {
369
+ const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: d } = r;
370
+ return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = d, r.panoIndexList.forEach((a, o) => {
368
371
  const m = (() => {
369
- var c, P, E, L;
370
- const d = r.panoIndexList.slice(o).find((M) => M !== a);
371
- if (d === void 0)
372
+ var p, y, S, k;
373
+ const f = r.panoIndexList.slice(o).find((b) => b !== a);
374
+ if (f === void 0)
372
375
  return;
373
- const l = (c = t[a]) == null ? void 0 : c.position, u = (P = t[d]) == null ? void 0 : P.position;
374
- if (!u || !l || ((E = t[a]) == null ? void 0 : E.floorIndex) !== ((L = t[d]) == null ? void 0 : L.floorIndex))
376
+ const u = (p = t[a]) == null ? void 0 : p.position, h = (y = t[f]) == null ? void 0 : y.position;
377
+ if (!h || !u || ((S = t[a]) == null ? void 0 : S.floorIndex) !== ((k = t[f]) == null ? void 0 : k.floorIndex))
375
378
  return;
376
- const v = new R.Vector3().subVectors(u, l);
377
- return W(v.normalize());
379
+ const g = new j.Vector3().subVectors(h, u);
380
+ return N(g.normalize());
378
381
  })();
379
382
  r.moveType === void 0 || r.moveType === "justMove" ? i.push({
380
383
  moveIndex: o,
381
384
  stay: r.stay,
382
- data: g({ effect: "Move", panoIndex: a, moveEffect: n }, m != null ? m : {})
383
- }) : r.moveType === "moveAndRotate" && (i.push({ moveIndex: o, stay: r.stay, data: { effect: "Move", panoIndex: a, moveEffect: n } }), m && i.push({ moveIndex: o, stay: r.stay, data: g({ effect: "Rotate", panoIndex: a }, m) }));
385
+ data: P({ effect: "Move", panoIndex: a, moveEffect: n }, m != null ? m : {})
386
+ }) : r.moveType === "moveAndRotate" && (i.push({ moveIndex: o, stay: r.stay, data: { effect: "Move", panoIndex: a, moveEffect: n } }), m && i.push({ moveIndex: o, stay: r.stay, data: P({ effect: "Rotate", panoIndex: a }, m) }));
384
387
  }), {
385
- keyframesId: I(),
386
- keyframes: i.map((a, o) => g({ id: I(), index: o }, a)),
388
+ keyframesId: w(),
389
+ keyframes: i.map((a, o) => P({ id: w(), index: o }, a)),
387
390
  guildPluginOptions: r.guildPluginOptions,
388
391
  useGuildLine: r.useGuildLine
389
392
  };
@@ -414,49 +417,49 @@ class nr extends Q {
414
417
  */
415
418
  // eslint-disable-next-line complexity
416
419
  handlePlay(e) {
417
- return y(this, null, function* () {
418
- var l;
420
+ return v(this, null, function* () {
421
+ var u;
419
422
  const { data: t, state: r, privateState: i, hooks: n } = this;
420
423
  if (i.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
421
424
  return;
422
- const s = I();
425
+ const s = w();
423
426
  i.playId = s, i.playing = !0, i.broke = !1;
424
- const p = t.keyframes, a = this.getPauseData();
425
- (e == null ? void 0 : e.notEmitEvent) !== !0 && n.emit("play", { userAction: (l = e == null ? void 0 : e.userAction) != null ? l : !0 });
427
+ const d = t.keyframes, a = this.getPauseData();
428
+ (e == null ? void 0 : e.notEmitEvent) !== !0 && n.emit("play", { userAction: (u = e == null ? void 0 : e.userAction) != null ? u : !0 });
426
429
  let o = !1;
427
- const d = yield (() => y(this, null, function* () {
428
- var u, v;
430
+ const f = yield (() => v(this, null, function* () {
431
+ var h, g;
429
432
  if ((e == null ? void 0 : e.playFromIndex) !== void 0)
430
433
  return e.playFromIndex;
431
434
  if ((e == null ? void 0 : e.playFromId) !== void 0)
432
- return (u = this.data) == null ? void 0 : u.keyframes.findIndex((c) => c.id === e.playFromId);
433
- if (a != null && a.id) {
434
- const c = (v = this.data) == null ? void 0 : v.keyframes.find((P) => P.id === a.id);
435
+ return (h = this.data) == null ? void 0 : h.keyframes.findIndex((p) => p.id === e.playFromId);
436
+ if (a != null && a.keyframeId) {
437
+ const p = (g = this.data) == null ? void 0 : g.keyframes.find((y) => y.id === a.keyframeId);
435
438
  if (a != null && a.fiveState && (yield this.move(a.fiveState, {
436
439
  moveEffect: i.moveToFirstPanoEffect,
437
440
  duration: i.moveToFirstPanoDuration
438
- })), c) {
439
- if (c.data.effect === "Move")
440
- return c.index;
441
- if (c.data.effect === "Rotate") {
442
- const P = a.duration !== void 0 ? a.duration * (1 - a.playedProgress) : void 0;
443
- return yield this.playKeyframe(c, { duration: P }), o = !0, c.index + 1;
441
+ })), p) {
442
+ if (p.data.effect === "Move")
443
+ return p.index;
444
+ if (p.data.effect === "Rotate") {
445
+ const y = a.duration !== void 0 ? a.duration * (1 - a.playedProgress) : void 0;
446
+ return yield this.playKeyframe(p, { duration: y }), o = !0, p.index + 1;
444
447
  }
445
448
  }
446
449
  }
447
450
  }))();
448
451
  this.clearPauseData();
449
- for (const u of p) {
452
+ for (const h of d) {
450
453
  if (i.broke || !r.playing || !i.playing || s !== i.playId)
451
454
  return;
452
- if (!(d !== void 0 && u.index < d))
455
+ if (!(f !== void 0 && h.index < f))
453
456
  try {
454
- n.emit("playIndexChange", u.index, u), yield this.playKeyframe(u, {
457
+ n.emit("playIndexChange", h.index, h), yield this.playKeyframe(h, {
455
458
  moveEffect: o === !1 ? i.moveToFirstPanoEffect : void 0,
456
459
  duration: o === !1 && typeof i.moveToFirstPanoDuration == "number" ? i.moveToFirstPanoDuration : void 0
457
- }), u.stay && (yield N(u.stay)), o === !1 && (o = !0);
458
- } catch (v) {
459
- return console.error(v), Promise.resolve("broke");
460
+ }), h.stay && (yield J(h.stay)), o === !1 && (o = !0);
461
+ } catch (g) {
462
+ return console.error(g), Promise.resolve("broke");
460
463
  }
461
464
  }
462
465
  r.playing && s === i.playId && (this.setState({ playing: !1 }, { userAction: !1 }), n.emit("end"), this.clearPauseData());
@@ -474,7 +477,7 @@ class nr extends Q {
474
477
  * @description Play single keyframe
475
478
  */
476
479
  playKeyframe(e, t) {
477
- return y(this, null, function* () {
480
+ return v(this, null, function* () {
478
481
  var i;
479
482
  const { privateState: r } = this;
480
483
  return ((i = this.privateState.currentPlayKeyframe) == null ? void 0 : i.keyframe.id) !== e.id && (this.privateState.currentPlayKeyframe = { keyframe: e }), r.currentPlayQueue.push(this.getPlayPromise(e, t)), this.actionPromiseQueue();
@@ -497,15 +500,15 @@ class nr extends Q {
497
500
  * @description: getPlayPromise
498
501
  */
499
502
  getPlayPromise(r) {
500
- return y(this, arguments, function* (e, t = {}) {
503
+ return v(this, arguments, function* (e, t = {}) {
501
504
  var n;
502
505
  const i = e.data;
503
506
  if (t.duration = (n = t.duration) != null ? n : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!i)
504
- return new Promise((s, p) => {
507
+ return new Promise((s, d) => {
505
508
  let a = !1;
506
509
  this.addInterruptListener(() => {
507
510
  if (!a)
508
- return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), a = !0, p(new Error("play is interupted"));
511
+ return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), a = !0, d(new Error("play is interupted"));
509
512
  });
510
513
  try {
511
514
  if (a)
@@ -532,7 +535,7 @@ class nr extends Q {
532
535
  * @description Action promise queue in sequence
533
536
  */
534
537
  actionPromiseQueue() {
535
- return y(this, null, function* () {
538
+ return v(this, null, function* () {
536
539
  const { privateState: e } = this;
537
540
  return new Promise((t, r) => {
538
541
  if (e.currentPlayQueue.length === 0) {
@@ -552,7 +555,7 @@ class nr extends Q {
552
555
  * @description Action move keyframe
553
556
  */
554
557
  move(e, t) {
555
- return y(this, null, function* () {
558
+ return v(this, null, function* () {
556
559
  if (e.mode && e.mode !== this.five.currentMode)
557
560
  yield this.changeMode(e);
558
561
  else if (e.panoIndex !== this.five.panoIndex)
@@ -565,7 +568,7 @@ class nr extends Q {
565
568
  * @description Action rotate keyframe
566
569
  */
567
570
  rotate(e, t) {
568
- return y(this, null, function* () {
571
+ return v(this, null, function* () {
569
572
  if (e.mode && e.mode !== this.five.currentMode)
570
573
  yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
571
574
  else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
@@ -577,20 +580,20 @@ class nr extends Q {
577
580
  * @description Update five camera
578
581
  */
579
582
  updateCamera(r) {
580
- return y(this, arguments, function* (e, t = {}) {
581
- const { five: i, privateState: n, state: s } = this, p = (() => {
582
- var l, u;
583
- const m = (l = s.config) == null ? void 0 : l.speedConfig, d = (u = e.rotateSpeed) != null ? u : m == null ? void 0 : m.rotateSpeed;
583
+ return v(this, arguments, function* (e, t = {}) {
584
+ const { five: i, privateState: n, state: s } = this, d = (() => {
585
+ var u, h;
586
+ const m = (u = s.config) == null ? void 0 : u.speedConfig, f = (h = e.rotateSpeed) != null ? h : m == null ? void 0 : m.rotateSpeed;
584
587
  if ((m == null ? void 0 : m.rotateSpeedUnit) === void 0)
585
- return d;
586
- if (d !== void 0)
587
- return m.rotateSpeedUnit === "rad/ms" ? d : d / 1e3;
588
+ return f;
589
+ if (f !== void 0)
590
+ return m.rotateSpeedUnit === "rad/ms" ? f : f / 1e3;
588
591
  })(), a = (() => {
589
592
  if (t.duration)
590
593
  return t.duration;
591
- if (p) {
594
+ if (d) {
592
595
  const m = this.five.getCurrentState();
593
- return O(m, e) / p;
596
+ return Q(m, e) / d;
594
597
  }
595
598
  return 800;
596
599
  })();
@@ -605,15 +608,15 @@ class nr extends Q {
605
608
  * @description: Change five pano
606
609
  */
607
610
  changePano(e, t) {
608
- return y(this, null, function* () {
611
+ return v(this, null, function* () {
609
612
  const { five: r, privateState: i, state: n } = this;
610
613
  if (typeof e.panoIndex != "number" || e.panoIndex === r.panoIndex)
611
614
  return;
612
615
  const s = r.getCurrentState().mode !== "Panorama";
613
616
  s && (this.privateState.modeChanging = !0);
614
- const p = (() => {
615
- var d, l;
616
- const o = (d = n.config) == null ? void 0 : d.speedConfig, m = (l = e.moveSpeed) != null ? l : o == null ? void 0 : o.moveSpeed;
617
+ const d = (() => {
618
+ var f, u;
619
+ const o = (f = n.config) == null ? void 0 : f.speedConfig, m = (u = e.moveSpeed) != null ? u : o == null ? void 0 : o.moveSpeed;
617
620
  if ((o == null ? void 0 : o.moveSpeedUnit) === void 0)
618
621
  return m;
619
622
  if (m !== void 0)
@@ -621,20 +624,20 @@ class nr extends Q {
621
624
  })(), a = (() => {
622
625
  if (t != null && t.duration)
623
626
  return t.duration;
624
- if (p && typeof r.panoIndex == "number" && typeof e.panoIndex == "number") {
627
+ if (d && typeof r.panoIndex == "number" && typeof e.panoIndex == "number") {
625
628
  const o = r.work.observers[r.panoIndex].position, m = r.work.observers[e.panoIndex].position;
626
- return o.distanceTo(m) / p;
629
+ return o.distanceTo(m) / d;
627
630
  }
628
631
  return 800;
629
632
  })();
630
633
  i.currentPlayKeyframe && (i.currentPlayKeyframe.originDuration = a), yield new Promise((o) => {
631
- var m, d, l;
634
+ var m, f, u;
632
635
  r.moveToPano(e.panoIndex, {
633
636
  latitude: e.latitude,
634
637
  longitude: e.longitude,
635
638
  fov: e.fov,
636
639
  duration: this.getSpeededDuration(a),
637
- effect: (l = (d = t == null ? void 0 : t.moveEffect) != null ? d : (m = this.state.config) == null ? void 0 : m.moveEffect) != null ? l : e.moveEffect,
640
+ effect: (u = (f = t == null ? void 0 : t.moveEffect) != null ? f : (m = this.state.config) == null ? void 0 : m.moveEffect) != null ? u : e.moveEffect,
638
641
  moveCancelCallback: () => o(),
639
642
  moveEndCallback: () => o()
640
643
  }), s && r.once("panoArrived", () => o());
@@ -648,9 +651,9 @@ class nr extends Q {
648
651
  const { state: r, privateState: i, hooks: n } = this, { currentPlayKeyframe: s } = i;
649
652
  if (n.emit("speedChange", e, { userAction: t }), r.playing && s)
650
653
  try {
651
- const p = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, a = this.playKeyframe(s.keyframe, { duration: p });
654
+ const d = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, a = this.playKeyframe(s.keyframe, { duration: d });
652
655
  i.currentPlayQueue.push(a);
653
- } catch (p) {
656
+ } catch (d) {
654
657
  }
655
658
  }
656
659
  /**
@@ -669,7 +672,7 @@ class nr extends Q {
669
672
  * @description Change five mode
670
673
  */
671
674
  changeMode(e, t) {
672
- return y(this, null, function* () {
675
+ return v(this, null, function* () {
673
676
  e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
674
677
  });
675
678
  }
@@ -682,7 +685,7 @@ class nr extends Q {
682
685
  getPauseData() {
683
686
  var e, t;
684
687
  if ((e = this.data) != null && e.keyframesId)
685
- return w.get((t = this.data) == null ? void 0 : t.keyframesId);
688
+ return E.get((t = this.data) == null ? void 0 : t.keyframesId);
686
689
  }
687
690
  /**
688
691
  * @description Set pause data
@@ -690,8 +693,8 @@ class nr extends Q {
690
693
  setPauseData() {
691
694
  var e, t, r, i;
692
695
  if ((e = this.data) != null && e.keyframesId)
693
- return w.set((t = this.data) == null ? void 0 : t.keyframesId, {
694
- id: (r = this.privateState.currentPlayKeyframe) == null ? void 0 : r.keyframe.id,
696
+ return E.set((t = this.data) == null ? void 0 : t.keyframesId, {
697
+ keyframeId: (r = this.privateState.currentPlayKeyframe) == null ? void 0 : r.keyframe.id,
695
698
  fiveState: this.five.getCurrentState(),
696
699
  duration: (i = this.privateState.currentPlayKeyframe) == null ? void 0 : i.originDuration,
697
700
  playedProgress: this.getProgress()
@@ -703,7 +706,7 @@ class nr extends Q {
703
706
  clearPauseData() {
704
707
  var e, t;
705
708
  if ((e = this.data) != null && e.keyframesId)
706
- return w.delete((t = this.data) == null ? void 0 : t.keyframesId);
709
+ return E.delete((t = this.data) == null ? void 0 : t.keyframesId);
707
710
  }
708
711
  /**
709
712
  * @description: Restore state that before loaded
@@ -713,8 +716,8 @@ class nr extends Q {
713
716
  }
714
717
  // TODO
715
718
  handleDispose() {
716
- var e;
717
- this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (e = this.GuideLine) == null || e.dispose(), this.GuideLine = void 0;
719
+ var e, t;
720
+ this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (e = this.GuideLine) == null || e.dispose(), this.GuideLine = void 0, (t = this.privateState.disposers) == null || t.forEach((r) => r == null ? void 0 : r());
718
721
  }
719
722
  /**
720
723
  * @description Action function if plugin is enable
@@ -722,10 +725,36 @@ class nr extends Q {
722
725
  actionIfStateIsEnabled(e, t) {
723
726
  if (this.state.enabled)
724
727
  return e();
725
- t != null && t.warnLog && H();
728
+ t != null && t.warnLog && W();
729
+ }
730
+ /**
731
+ * @description: Wait for five work ready
732
+ */
733
+ waitFiveLoaded() {
734
+ return v(this, null, function* () {
735
+ return new Promise((e) => {
736
+ if (this.five.work) {
737
+ e();
738
+ return;
739
+ }
740
+ this.five.once("loaded", () => {
741
+ e();
742
+ });
743
+ });
744
+ });
745
+ }
746
+ setFiveLinearUpdateCamera() {
747
+ this.privateState.fiveOriginGetProgress && (this.five.controller.cameraMotion.getProgress = (e) => {
748
+ const t = this.five.controller.cameraMotion, r = e - t.startTime;
749
+ return r < 0 ? 0 : r >= t.duration ? 1 : 1 - H(1, t.startVelocity, t.duration, r);
750
+ });
751
+ }
752
+ setFiveOriginUpdateCamera() {
753
+ this.privateState.fiveOriginGetProgress && (this.five.controller.cameraMotion.getProgress = this.privateState.fiveOriginGetProgress);
726
754
  }
727
755
  }
756
+ I(z, "PluginVersion", M);
728
757
  export {
729
- nr as default,
758
+ z as default,
730
759
  sr as pluginFlag
731
760
  };
@@ -1,10 +1,9 @@
1
1
  import type { FivePlugin } from '@realsee/five';
2
+ import CruisePluginController from './Controller';
2
3
  import * as CruisePluginTypes from './typing';
3
4
  import type { Config } from './typing';
4
- import WalkController from './Work';
5
- import MoveController from './Move';
6
- export declare const CruisePlugin: FivePlugin<Config | undefined, InstanceType<typeof WalkController>>;
7
- export { WalkController, MoveController, MoveController as CruisePluginController };
5
+ export { CruisePluginController };
6
+ export declare const CruisePlugin: FivePlugin<Config | undefined, InstanceType<typeof CruisePluginController>>;
8
7
  export type { CruisePluginExportType } from './typing';
9
8
  export default CruisePlugin;
10
9
  export { CruisePluginTypes };