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