@realsee/dnalogel 3.5.0-dev.1 → 3.5.0-dev.3

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