@realsee/dnalogel 3.4.0 → 3.5.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (383) hide show
  1. package/dist/CruisePlugin/CruiseController.d.ts +147 -0
  2. package/dist/CruisePlugin/Move.d.ts +36 -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 +3413 -3184
  10. package/dist/index.umd.js +47 -47
  11. package/dist/shared-utils/five/fiveLoaded.d.ts +2 -0
  12. package/docs/.nojekyll +1 -0
  13. package/docs/assets/highlight.css +120 -0
  14. package/docs/assets/main.js +58 -0
  15. package/docs/assets/search.js +1 -0
  16. package/docs/assets/style.css +1367 -0
  17. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +727 -0
  18. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +680 -0
  19. package/docs/classes/CSS3DRender.html +775 -0
  20. package/docs/classes/GuideLineItem.GuideLineItem.html +478 -0
  21. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +858 -0
  22. package/docs/classes/Magnifier.html +482 -0
  23. package/docs/classes/ModelRoomLabelController.html +400 -0
  24. package/docs/classes/MoveController.html +651 -0
  25. package/docs/classes/Object3DHelperController.html +642 -0
  26. package/docs/classes/PaintBrush.html +504 -0
  27. package/docs/classes/PanoMeasurePluginLine.html +524 -0
  28. package/docs/classes/PanoMeasurePluginModel.html +573 -0
  29. package/docs/classes/PanoMeasurePluginPoint.html +364 -0
  30. package/docs/classes/PanoMeasurePluginPolyline.html +569 -0
  31. package/docs/classes/PanoTagPluginController.html +1079 -0
  32. package/docs/classes/Util.BetterTween.html +418 -0
  33. package/docs/classes/Util.Interval.html +434 -0
  34. package/docs/classes/Util.LineSegments.html +386 -0
  35. package/docs/classes/Util.Magnifier.html +505 -0
  36. package/docs/classes/Util.Object3D.html +408 -0
  37. package/docs/classes/Util.PointDomHelper.html +409 -0
  38. package/docs/classes/Util.PointHelper.html +400 -0
  39. package/docs/classes/Util.PointSelectorHelper.html +456 -0
  40. package/docs/classes/Util.Rectangle.html +457 -0
  41. package/docs/classes/WalkController.html +667 -0
  42. package/docs/enums/CameraMovementEffect.html +312 -0
  43. package/docs/enums/ContentType.html +458 -0
  44. package/docs/enums/DIRECTION.html +322 -0
  45. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +322 -0
  46. package/docs/enums/DimensionType.html +312 -0
  47. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +315 -0
  48. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +322 -0
  49. package/docs/enums/PaintBrushTypeEnum.html +315 -0
  50. package/docs/enums/PointType.html +312 -0
  51. package/docs/enums/Rotation.html +319 -0
  52. package/docs/functions/AreaMakerPlugin.html +292 -0
  53. package/docs/functions/CSS3DRenderPlugin.html +290 -0
  54. package/docs/functions/CameraMovementPlugin.html +295 -0
  55. package/docs/functions/CruisePlugin.html +292 -0
  56. package/docs/functions/CurrentPanoImagePlugin.html +292 -0
  57. package/docs/functions/GuideLinePlugin.html +292 -0
  58. package/docs/functions/ItemLabelPlugin.html +292 -0
  59. package/docs/functions/MapviewFloorplanPlugin.html +292 -0
  60. package/docs/functions/ModelChassisCompassPlugin.html +295 -0
  61. package/docs/functions/ModelEntryDoorGuidePlugin.html +295 -0
  62. package/docs/functions/ModelFloorplanPlugin.html +292 -0
  63. package/docs/functions/ModelItemLabelPlugin.html +292 -0
  64. package/docs/functions/ModelRoomLabelPlugin.html +290 -0
  65. package/docs/functions/ModelTVVideoPlugin.html +292 -0
  66. package/docs/functions/ModelViewPlugin.html +295 -0
  67. package/docs/functions/Object3DHelperPlugin.html +290 -0
  68. package/docs/functions/PanoCompassPlugin.html +292 -0
  69. package/docs/functions/PanoCursorRaycasterPlugin.html +296 -0
  70. package/docs/functions/PanoDoorLabelPlugin.html +292 -0
  71. package/docs/functions/PanoFloorplanRadarPlugin.html +292 -0
  72. package/docs/functions/PanoMeasurePlugin.html +292 -0
  73. package/docs/functions/PanoRulerPlugin.html +295 -0
  74. package/docs/functions/PanoRulerProPlugin.html +295 -0
  75. package/docs/functions/PanoSpatialTagPlugin.html +295 -0
  76. package/docs/functions/PanoTagPlugin.html +297 -0
  77. package/docs/functions/PanoVideoPlugin.html +301 -0
  78. package/docs/functions/PipelinePlugin.html +290 -0
  79. package/docs/functions/TopviewFloorplanPlugin.html +292 -0
  80. package/docs/functions/Util.absoluteUrl.html +328 -0
  81. package/docs/functions/Util.checkFiveModelLoaded.html +331 -0
  82. package/docs/functions/Util.equal.html +340 -0
  83. package/docs/functions/Util.getCoordsFromClient.html +330 -0
  84. package/docs/functions/Util.getCoordsFromElement.html +330 -0
  85. package/docs/functions/Util.getFrameTime.html +322 -0
  86. package/docs/functions/Util.getIntersectFromRelativePosition.html +330 -0
  87. package/docs/functions/Util.getRaycasterFromFivePointer.html +330 -0
  88. package/docs/functions/Util.isAbsoluteURL.html +323 -0
  89. package/docs/functions/Util.isModelLike.html +323 -0
  90. package/docs/functions/Util.isNil.html +331 -0
  91. package/docs/functions/Util.isPanoramaLike.html +323 -0
  92. package/docs/functions/Util.nextFrame.html +336 -0
  93. package/docs/functions/Util.notNil.html +331 -0
  94. package/docs/functions/Util.requestAnimationFrameInterval.html +352 -0
  95. package/docs/functions/Util.tweenProgress.html +325 -0
  96. package/docs/functions/Util.uuid.html +321 -0
  97. package/docs/functions/pluginFlag.html +290 -0
  98. package/docs/index.html +356 -0
  99. package/docs/interfaces/AddTagConfig.html +305 -0
  100. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +331 -0
  101. package/docs/interfaces/AreaMakerPluginType.Config.html +336 -0
  102. package/docs/interfaces/AreaMakerPluginType.EventMap.html +622 -0
  103. package/docs/interfaces/AreaMakerPluginType.Params.html +335 -0
  104. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +385 -0
  105. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +370 -0
  106. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +335 -0
  107. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +328 -0
  108. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +327 -0
  109. package/docs/interfaces/AreaMakerPluginType.State.html +356 -0
  110. package/docs/interfaces/CSS3DRenderPluginEventMap.html +451 -0
  111. package/docs/interfaces/CSS3DRenderPluginState.html +327 -0
  112. package/docs/interfaces/CameraMovementPluginExportType.html +360 -0
  113. package/docs/interfaces/CruisePluginTypes.Config.html +361 -0
  114. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +363 -0
  115. package/docs/interfaces/CruisePluginTypes.EventMap.html +698 -0
  116. package/docs/interfaces/CruisePluginTypes.MoveAction.html +387 -0
  117. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +423 -0
  118. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +413 -0
  119. package/docs/interfaces/CruisePluginTypes.PluginData.html +353 -0
  120. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +321 -0
  121. package/docs/interfaces/CruisePluginTypes.PluginState.html +389 -0
  122. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +384 -0
  123. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +523 -0
  124. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +325 -0
  125. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +317 -0
  126. package/docs/interfaces/CurrentPanoImagePluginType.State.html +339 -0
  127. package/docs/interfaces/EventMap.html +544 -0
  128. package/docs/interfaces/FloorplanBounding.html +334 -0
  129. package/docs/interfaces/FloorplanData.html +337 -0
  130. package/docs/interfaces/FloorplanEntrance.html +362 -0
  131. package/docs/interfaces/FloorplanExtraObject.html +352 -0
  132. package/docs/interfaces/FloorplanExtraObject3D.html +341 -0
  133. package/docs/interfaces/FloorplanFloorData.html +330 -0
  134. package/docs/interfaces/FloorplanImagePosition.html +316 -0
  135. package/docs/interfaces/FloorplanObserver.html +334 -0
  136. package/docs/interfaces/FloorplanOutlineItem.html +330 -0
  137. package/docs/interfaces/FloorplanPosition.html +316 -0
  138. package/docs/interfaces/FloorplanRoomItem.html +381 -0
  139. package/docs/interfaces/FloorplanRoomLabelItem.html +322 -0
  140. package/docs/interfaces/FloorplanServerBounding.html +334 -0
  141. package/docs/interfaces/FloorplanServerComputedData.html +333 -0
  142. package/docs/interfaces/FloorplanServerData.html +316 -0
  143. package/docs/interfaces/FloorplanServerDoorItem.html +333 -0
  144. package/docs/interfaces/FloorplanServerDoorPosition.html +319 -0
  145. package/docs/interfaces/FloorplanServerEntrance.html +362 -0
  146. package/docs/interfaces/FloorplanServerFloorData.html +330 -0
  147. package/docs/interfaces/FloorplanServerImagePosition.html +316 -0
  148. package/docs/interfaces/FloorplanServerObserver.html +334 -0
  149. package/docs/interfaces/FloorplanServerOutlineItem.html +330 -0
  150. package/docs/interfaces/FloorplanServerPosition.html +316 -0
  151. package/docs/interfaces/FloorplanServerRoomItem.html +393 -0
  152. package/docs/interfaces/FloorplanServerRoomLabelItem.html +322 -0
  153. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +325 -0
  154. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +364 -0
  155. package/docs/interfaces/GuideLinePluginType.EventMap.html +528 -0
  156. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +359 -0
  157. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +350 -0
  158. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +417 -0
  159. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +339 -0
  160. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +349 -0
  161. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +485 -0
  162. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +346 -0
  163. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +485 -0
  164. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +311 -0
  165. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +332 -0
  166. package/docs/interfaces/GuideLinePluginType.PluginState.html +357 -0
  167. package/docs/interfaces/GuideLinePluginType.Route.html +373 -0
  168. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +355 -0
  169. package/docs/interfaces/HelperOffset.html +334 -0
  170. package/docs/interfaces/ImagePlaneGroup.html +308 -0
  171. package/docs/interfaces/ItemLabelPluginData.html +305 -0
  172. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +390 -0
  173. package/docs/interfaces/ItemLabelPluginParametersType.html +326 -0
  174. package/docs/interfaces/MinMax.html +312 -0
  175. package/docs/interfaces/ModelChassisCompassPluginData.html +312 -0
  176. package/docs/interfaces/ModelChassisCompassPluginExportType.html +348 -0
  177. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +312 -0
  178. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +319 -0
  179. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +356 -0
  180. package/docs/interfaces/ModelItemLabelPluginData.html +305 -0
  181. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +390 -0
  182. package/docs/interfaces/ModelItemLabelPluginParametersType.html +312 -0
  183. package/docs/interfaces/ModelRoomLabelPluginData.html +305 -0
  184. package/docs/interfaces/ModelTVVideoPluginData.html +326 -0
  185. package/docs/interfaces/ModelTVVideoPluginExportType.html +350 -0
  186. package/docs/interfaces/ModelTVVideoPluginParameterType.html +305 -0
  187. package/docs/interfaces/ModelViewPluginExportType.html +418 -0
  188. package/docs/interfaces/Object3DHelperState.html +319 -0
  189. package/docs/interfaces/ObjectHelperControllers.html +326 -0
  190. package/docs/interfaces/PaintBrushAction.html +365 -0
  191. package/docs/interfaces/PaintBrushConfigs.html +363 -0
  192. package/docs/interfaces/PaintBrushState.html +347 -0
  193. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +427 -0
  194. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +284 -0
  195. package/docs/interfaces/PanoMeasureParameterType.html +451 -0
  196. package/docs/interfaces/PanoMeasurePluginLineJson.html +319 -0
  197. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +316 -0
  198. package/docs/interfaces/PanoMeasurePluginPointJson.html +312 -0
  199. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +322 -0
  200. package/docs/interfaces/PanoRulerPluginExportType.html +379 -0
  201. package/docs/interfaces/PanoRulerPluginOptions.html +328 -0
  202. package/docs/interfaces/PanoRulerPluginParameterType.html +319 -0
  203. package/docs/interfaces/PanoRulerProPluginExportType.html +355 -0
  204. package/docs/interfaces/PanoRulerProPluginOptions.html +325 -0
  205. package/docs/interfaces/PanoRulerProPluginParameterType.html +312 -0
  206. package/docs/interfaces/PanoRulerProPluginState.html +319 -0
  207. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +298 -0
  208. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +287 -0
  209. package/docs/interfaces/PanoSpatialTagPluginData.html +355 -0
  210. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +337 -0
  211. package/docs/interfaces/PanoSpatialTagPluginExportType.html +433 -0
  212. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +333 -0
  213. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +354 -0
  214. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +340 -0
  215. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +333 -0
  216. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +325 -0
  217. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +343 -0
  218. package/docs/interfaces/PanoVideoPluginType.PluginData.html +316 -0
  219. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +422 -0
  220. package/docs/interfaces/PanoVideoPluginType.PluginState.html +316 -0
  221. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +351 -0
  222. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +370 -0
  223. package/docs/interfaces/Point.html +319 -0
  224. package/docs/interfaces/Room.html +326 -0
  225. package/docs/interfaces/RoomInfo.html +312 -0
  226. package/docs/interfaces/RoomLabel.html +388 -0
  227. package/docs/interfaces/RoomRules.html +287 -0
  228. package/docs/interfaces/Rooms.html +287 -0
  229. package/docs/interfaces/Scissor.html +346 -0
  230. package/docs/interfaces/State.html +333 -0
  231. package/docs/interfaces/TagCacheInterface.html +364 -0
  232. package/docs/interfaces/TagConfig.html +567 -0
  233. package/docs/interfaces/TagGLTFObjectGroup.html +308 -0
  234. package/docs/interfaces/TagIconUrl.html +365 -0
  235. package/docs/interfaces/TagObjectGroup.html +308 -0
  236. package/docs/interfaces/TagStyle.html +318 -0
  237. package/docs/interfaces/Tags.html +2822 -0
  238. package/docs/interfaces/TemporaryState.html +305 -0
  239. package/docs/interfaces/Util.MagnifierParameter.html +393 -0
  240. package/docs/interfaces/Util.MouseGroupParameter.html +352 -0
  241. package/docs/interfaces/Util.PointIntersection.html +367 -0
  242. package/docs/modules/AreaMakerPluginType.html +325 -0
  243. package/docs/modules/CruisePluginTypes.html +330 -0
  244. package/docs/modules/CurrentPanoImagePluginType.html +299 -0
  245. package/docs/modules/GuideLineItem.html +291 -0
  246. package/docs/modules/GuideLineModeItem.html +296 -0
  247. package/docs/modules/GuideLinePluginType.html +352 -0
  248. package/docs/modules/PanoVideoPluginType.html +303 -0
  249. package/docs/modules/Util.html +353 -0
  250. package/docs/modules.html +558 -0
  251. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +333 -0
  252. package/docs/types/AreaMakerPluginType.PluginData.html +303 -0
  253. package/docs/types/AreaMakerPluginType.ServerData.html +303 -0
  254. package/docs/types/ArrayPosition.html +281 -0
  255. package/docs/types/AudioAppearance.html +281 -0
  256. package/docs/types/AudioTagTypeConfigKey.html +281 -0
  257. package/docs/types/CSS3DRenderExportType.html +281 -0
  258. package/docs/types/CSS3DRenderPluginExportType.html +281 -0
  259. package/docs/types/CSS3DRenderPluginParameterType.html +281 -0
  260. package/docs/types/ClassFunctionParameters.html +288 -0
  261. package/docs/types/Color.html +281 -0
  262. package/docs/types/ContentTypeConfigKey.html +281 -0
  263. package/docs/types/ContentTypeConfigKeySplit.html +281 -0
  264. package/docs/types/ContentTypeMap.html +281 -0
  265. package/docs/types/Create3DDomContainerReturnType.html +281 -0
  266. package/docs/types/Create3DElementReturnType.html +281 -0
  267. package/docs/types/CruisePluginExportType.html +281 -0
  268. package/docs/types/CruisePluginTypes.CruiseData.html +320 -0
  269. package/docs/types/CruisePluginTypes.MoveEffect.html +297 -0
  270. package/docs/types/CurrentPanoImagePluginExportType.html +281 -0
  271. package/docs/types/DeprecatedMediaPlaneProperty.html +293 -0
  272. package/docs/types/DeprecatedTagProperty.html +296 -0
  273. package/docs/types/Direction-1.html +281 -0
  274. package/docs/types/Direction4.html +281 -0
  275. package/docs/types/ElementRenderer.html +305 -0
  276. package/docs/types/FloorplanRuleLabels.html +284 -0
  277. package/docs/types/FloorplanServerRuleLabels.html +281 -0
  278. package/docs/types/GuideLinePluginExportType.html +281 -0
  279. package/docs/types/GuideLinePluginType.GuideLineItem.html +354 -0
  280. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +375 -0
  281. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +308 -0
  282. package/docs/types/GuideLinePluginType.GuideLineStyle.html +311 -0
  283. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +311 -0
  284. package/docs/types/GuideLinePluginType.PathItem.html +311 -0
  285. package/docs/types/GuideLinePluginType.PluginData.html +320 -0
  286. package/docs/types/HelperEventMap.html +519 -0
  287. package/docs/types/LoadTagConfig.html +281 -0
  288. package/docs/types/MapviewFloorplanPluginParameterType.html +281 -0
  289. package/docs/types/MapviewFloorplanPluginReturnType.html +281 -0
  290. package/docs/types/MediaData.html +302 -0
  291. package/docs/types/MediaStore.html +286 -0
  292. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +288 -0
  293. package/docs/types/ModelFloorplanPluginParameterType.html +281 -0
  294. package/docs/types/ModelFloorplanPluginReturnType.html +281 -0
  295. package/docs/types/ModelId.html +281 -0
  296. package/docs/types/ModelRoomLabelPluginParameters.html +281 -0
  297. package/docs/types/ModelRoomLabelPluginReturnType.html +281 -0
  298. package/docs/types/MoveArgs.html +291 -0
  299. package/docs/types/MoveOpts.html +289 -0
  300. package/docs/types/Object3DHelperEventMap.html +374 -0
  301. package/docs/types/ObjectFit.html +281 -0
  302. package/docs/types/PaintBrushEventMap.html +312 -0
  303. package/docs/types/PanoCompassPluginData.html +281 -0
  304. package/docs/types/PanoCompassPluginExportType.html +281 -0
  305. package/docs/types/PanoCompassPluginParameterType.html +281 -0
  306. package/docs/types/PanoFloorplanRadarPluginParameterType.html +281 -0
  307. package/docs/types/PanoFloorplanRadarPluginReturnType.html +281 -0
  308. package/docs/types/PanoIndex.html +281 -0
  309. package/docs/types/PanoMeasurePluginEvent.html +281 -0
  310. package/docs/types/PanoMeasureReturnType.html +281 -0
  311. package/docs/types/PanoSpatialTagPluginId.html +281 -0
  312. package/docs/types/PanoTagPluginExportInterface.html +281 -0
  313. package/docs/types/PanoTagPluginParamsInterface.html +281 -0
  314. package/docs/types/PanoVideoPluginParameterType.html +281 -0
  315. package/docs/types/PanoVideoPluginReturnType.html +281 -0
  316. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +289 -0
  317. package/docs/types/PipelinePluginParameterType.html +281 -0
  318. package/docs/types/PipelinePluginReturnType.html +281 -0
  319. package/docs/types/PlaneTag.html +289 -0
  320. package/docs/types/Point2DTag.html +289 -0
  321. package/docs/types/Point3DTag.html +289 -0
  322. package/docs/types/PointTag.html +286 -0
  323. package/docs/types/PointTagInstance.html +286 -0
  324. package/docs/types/Position.html +281 -0
  325. package/docs/types/RotateArgs.html +293 -0
  326. package/docs/types/RotateOpts.html +289 -0
  327. package/docs/types/RuleLabelsKey.html +281 -0
  328. package/docs/types/RuleLabelsValue.html +281 -0
  329. package/docs/types/StickType.html +281 -0
  330. package/docs/types/Tag.html +347 -0
  331. package/docs/types/Tag2D.html +289 -0
  332. package/docs/types/Tag3D.html +289 -0
  333. package/docs/types/TagConfigByKey.html +286 -0
  334. package/docs/types/TagContentType.html +281 -0
  335. package/docs/types/TagDimensionType.html +283 -0
  336. package/docs/types/TagElement.html +291 -0
  337. package/docs/types/TagEvents.html +334 -0
  338. package/docs/types/TagGLTFObject.html +304 -0
  339. package/docs/types/TagHooks.html +281 -0
  340. package/docs/types/TagId.html +281 -0
  341. package/docs/types/TagInstance.html +357 -0
  342. package/docs/types/TagPointType.html +284 -0
  343. package/docs/types/TagRendererMap.html +286 -0
  344. package/docs/types/TopviewFloorplanPluginParameterType.html +281 -0
  345. package/docs/types/TopviewFloorplanPluginReturnType.html +281 -0
  346. package/docs/types/WorkCode.html +281 -0
  347. package/docs/variables/FLOOR_TYPE_MAP.html +291 -0
  348. package/docs/variables/PLUGIN.html +281 -0
  349. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +284 -0
  350. package/docs/variables/ROOM_TYPE_MAP.html +291 -0
  351. package/docs/variables/defaultGlobalConfig.html +281 -0
  352. package/docs/variables/itemLabelPluginServerParams.html +288 -0
  353. package/docs/variables/modelItemLabelPluginServerParams.html +288 -0
  354. package/docs/variables/modelRoomLabelPluginServerParams.html +288 -0
  355. package/libs/CruisePlugin/CruiseController.d.ts +147 -0
  356. package/libs/CruisePlugin/CruiseController.js +237 -0
  357. package/libs/CruisePlugin/Move.d.ts +36 -0
  358. package/libs/CruisePlugin/Move.js +120 -0
  359. package/libs/CruisePlugin/{Controller.d.ts → Work.d.ts} +1 -8
  360. package/libs/CruisePlugin/{Controller.js → Work.js} +149 -177
  361. package/libs/CruisePlugin/index.d.ts +4 -3
  362. package/libs/CruisePlugin/index.js +15 -10
  363. package/libs/CruisePlugin/typing.d.ts +2 -2
  364. package/libs/CruisePlugin/utils/getFiveStateOnCurve.d.ts +11 -0
  365. package/libs/CruisePlugin/utils/getFiveStateOnCurve.js +11 -0
  366. package/libs/GuideLinePlugin/Controller.d.ts +1 -6
  367. package/libs/GuideLinePlugin/Controller.js +48 -62
  368. package/libs/GuideLinePlugin/GuideLineItem/index.js +53 -43
  369. package/libs/GuideLinePlugin/GuideLineItem.js +12 -9
  370. package/libs/GuideLinePlugin/index.js +20 -17
  371. package/libs/base/BasePlugin.js +1 -1
  372. package/libs/index.js +124 -119
  373. package/libs/shared-utils/five/fiveLoaded.d.ts +2 -0
  374. package/libs/shared-utils/five/fiveLoaded.js +30 -0
  375. package/libs/shared-utils/formatRad.d.ts +7 -0
  376. package/libs/shared-utils/formatRad.js +7 -0
  377. package/libs/shared-utils/logger.js +1 -1
  378. package/package.json +2 -2
  379. package/dist/CruisePlugin/utils/linerValue.d.ts +0 -1
  380. /package/dist/{CruisePlugin/utils → shared-utils}/formatRad.d.ts +0 -0
  381. /package/dist/{CruisePlugin/utils/vectorToCoordinates.d.ts → shared-utils/vectorToCoordinate.d.ts} +0 -0
  382. /package/libs/{CruisePlugin/utils/vectorToCoordinates.d.ts → shared-utils/vectorToCoordinate.d.ts} +0 -0
  383. /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
  };