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