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