@realsee/dnalogel 2.15.0 → 2.16.0-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 (357) hide show
  1. package/dist/CSS3DRenderPlugin/Controller.d.ts +1 -0
  2. package/dist/CruisePlugin/Controller.d.ts +1 -2
  3. package/dist/CruisePlugin/typing.d.ts +12 -2
  4. package/dist/GuideLinePlugin/Controller.d.ts +17 -11
  5. package/dist/GuideLinePlugin/GuideLineItem.d.ts +26 -0
  6. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +61 -0
  7. package/dist/GuideLinePlugin/index.d.ts +3 -0
  8. package/dist/GuideLinePlugin/typing.d.ts +78 -1
  9. package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +19 -0
  10. package/dist/GuideLinePlugin/utils/index.d.ts +7 -0
  11. package/dist/base/BasePlugin.d.ts +1 -0
  12. package/dist/index.cjs.js +118 -118
  13. package/dist/index.js +4431 -4294
  14. package/dist/index.umd.js +117 -117
  15. package/dist/shared-utils/five/index.d.ts +1 -0
  16. package/dist/shared-utils/five/mode.d.ts +3 -0
  17. package/dist/shared-utils/index.d.ts +3 -0
  18. package/dist/shared-utils/isAbsoluteURL.d.ts +1 -0
  19. package/dist/shared-utils/log.d.ts +2 -0
  20. package/docs/assets/search.js +1 -1
  21. package/docs/classes/CSS3DRender.html +33 -31
  22. package/docs/classes/CruisePluginController.html +43 -25
  23. package/docs/classes/GuideLineItem.GuideLineItem.html +168 -0
  24. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +283 -0
  25. package/docs/classes/Magnifier.html +22 -20
  26. package/docs/classes/ModelRoomLabelController.html +13 -11
  27. package/docs/classes/Object3DHelperController.html +42 -24
  28. package/docs/classes/PaintBrush.html +17 -15
  29. package/docs/classes/PanoMeasurePluginLine.html +25 -23
  30. package/docs/classes/PanoMeasurePluginModel.html +24 -22
  31. package/docs/classes/PanoMeasurePluginPoint.html +16 -14
  32. package/docs/classes/PanoMeasurePluginPolyline.html +28 -26
  33. package/docs/classes/PanoTagPluginController.html +64 -46
  34. package/docs/classes/Util.BetterTween.html +10 -8
  35. package/docs/classes/Util.FivePointSelector.html +14 -12
  36. package/docs/classes/Util.Interval.html +14 -12
  37. package/docs/classes/Util.Magnifier.html +19 -17
  38. package/docs/classes/Util.PointDomHelper.html +13 -11
  39. package/docs/classes/Util.PointHelper.html +13 -11
  40. package/docs/classes/Util.Rectangle.html +15 -13
  41. package/docs/enums/CameraMovementEffect.html +9 -7
  42. package/docs/enums/ContentType.html +21 -19
  43. package/docs/enums/DIRECTION.html +11 -9
  44. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -9
  45. package/docs/enums/DimensionType.html +9 -7
  46. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -8
  47. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -9
  48. package/docs/enums/PaintBrushTypeEnum.html +10 -8
  49. package/docs/enums/Rotation.html +10 -8
  50. package/docs/functions/CSS3DRenderPlugin.html +6 -4
  51. package/docs/functions/CameraMovementPlugin.html +6 -4
  52. package/docs/functions/CruisePlugin.html +6 -4
  53. package/docs/functions/GuideLinePlugin.html +7 -5
  54. package/docs/functions/ItemLabelPlugin.html +6 -4
  55. package/docs/functions/MapviewFloorplanPlugin.html +6 -4
  56. package/docs/functions/ModelChassisCompassPlugin.html +6 -4
  57. package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -4
  58. package/docs/functions/ModelFloorplanPlugin.html +6 -4
  59. package/docs/functions/ModelItemLabelPlugin.html +6 -4
  60. package/docs/functions/ModelRoomLabelPlugin.html +6 -4
  61. package/docs/functions/ModelTVVideoPlugin.html +6 -4
  62. package/docs/functions/ModelViewPlugin.html +6 -4
  63. package/docs/functions/Object3DHelperPlugin.html +6 -4
  64. package/docs/functions/PanoCompassPlugin.html +6 -4
  65. package/docs/functions/PanoCursorRaycasterPlugin.html +6 -4
  66. package/docs/functions/PanoDoorLabelPlugin.html +6 -4
  67. package/docs/functions/PanoFloorplanRadarPlugin.html +6 -4
  68. package/docs/functions/PanoMeasurePlugin.html +6 -4
  69. package/docs/functions/PanoRulerPlugin.html +6 -4
  70. package/docs/functions/PanoRulerProPlugin.html +6 -4
  71. package/docs/functions/PanoSpatialTagPlugin.html +6 -4
  72. package/docs/functions/PanoTagPlugin.html +6 -4
  73. package/docs/functions/PanoVideoPlugin.html +6 -4
  74. package/docs/functions/TopviewFloorplanPlugin.html +6 -4
  75. package/docs/functions/Util.getCoordsFromClient.html +12 -6
  76. package/docs/functions/Util.getCoordsFromElement.html +12 -6
  77. package/docs/functions/Util.getFrameTime.html +12 -6
  78. package/docs/functions/Util.getIntersectFromRelativePosition.html +12 -6
  79. package/docs/functions/Util.getRaycasterFromFivePointer.html +12 -6
  80. package/docs/functions/Util.isAbsoluteURL.html +78 -0
  81. package/docs/functions/Util.isModelLike.html +78 -0
  82. package/docs/functions/Util.isNil.html +12 -6
  83. package/docs/functions/Util.isPanoramaLike.html +78 -0
  84. package/docs/functions/Util.nextFrame.html +12 -6
  85. package/docs/functions/Util.notNil.html +12 -6
  86. package/docs/functions/Util.requestAnimationFrameInterval.html +12 -6
  87. package/docs/functions/Util.tweenProgress.html +12 -6
  88. package/docs/functions/Util.uuid.html +75 -0
  89. package/docs/functions/pluginFlag.html +7 -5
  90. package/docs/index.html +6 -4
  91. package/docs/interfaces/AddTagConfig.html +8 -6
  92. package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -11
  93. package/docs/interfaces/CSS3DRenderPluginState.html +10 -8
  94. package/docs/interfaces/CameraMovementPluginExportType.html +9 -7
  95. package/docs/interfaces/EventMap.html +17 -15
  96. package/docs/interfaces/FloorplanBounding.html +10 -8
  97. package/docs/interfaces/FloorplanData.html +12 -10
  98. package/docs/interfaces/FloorplanEntrance.html +13 -11
  99. package/docs/interfaces/FloorplanExtraObject.html +12 -10
  100. package/docs/interfaces/FloorplanExtraObject3D.html +10 -8
  101. package/docs/interfaces/FloorplanFloorData.html +11 -9
  102. package/docs/interfaces/FloorplanImagePosition.html +9 -7
  103. package/docs/interfaces/FloorplanObserver.html +11 -9
  104. package/docs/interfaces/FloorplanOutlineItem.html +11 -9
  105. package/docs/interfaces/FloorplanPosition.html +9 -7
  106. package/docs/interfaces/FloorplanRoomItem.html +15 -13
  107. package/docs/interfaces/FloorplanRoomLabelItem.html +9 -7
  108. package/docs/interfaces/FloorplanServerBounding.html +10 -8
  109. package/docs/interfaces/FloorplanServerComputedData.html +12 -10
  110. package/docs/interfaces/FloorplanServerData.html +9 -7
  111. package/docs/interfaces/FloorplanServerDoorItem.html +12 -10
  112. package/docs/interfaces/FloorplanServerDoorPosition.html +10 -8
  113. package/docs/interfaces/FloorplanServerEntrance.html +13 -11
  114. package/docs/interfaces/FloorplanServerFloorData.html +11 -9
  115. package/docs/interfaces/FloorplanServerImagePosition.html +9 -7
  116. package/docs/interfaces/FloorplanServerObserver.html +11 -9
  117. package/docs/interfaces/FloorplanServerOutlineItem.html +11 -9
  118. package/docs/interfaces/FloorplanServerPosition.html +9 -7
  119. package/docs/interfaces/FloorplanServerRoomItem.html +16 -14
  120. package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -7
  121. package/docs/interfaces/HelperOffset.html +10 -8
  122. package/docs/interfaces/ImagePlaneGroup.html +8 -6
  123. package/docs/interfaces/ItemLabelPluginData.html +8 -6
  124. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -11
  125. package/docs/interfaces/ItemLabelPluginParametersType.html +11 -9
  126. package/docs/interfaces/MinMax.html +9 -7
  127. package/docs/interfaces/ModelChassisCompassPluginData.html +9 -7
  128. package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -8
  129. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -7
  130. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -8
  131. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -8
  132. package/docs/interfaces/ModelItemLabelPluginData.html +8 -6
  133. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -11
  134. package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -7
  135. package/docs/interfaces/ModelRoomLabelPluginData.html +8 -6
  136. package/docs/interfaces/ModelTVVideoPluginData.html +11 -9
  137. package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -8
  138. package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -6
  139. package/docs/interfaces/ModelViewPluginExportType.html +13 -11
  140. package/docs/interfaces/Object3DHelperState.html +10 -8
  141. package/docs/interfaces/ObjectHelperControllers.html +11 -9
  142. package/docs/interfaces/PaintBrushAction.html +14 -12
  143. package/docs/interfaces/PaintBrushConfigs.html +14 -12
  144. package/docs/interfaces/PaintBrushState.html +12 -10
  145. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -10
  146. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -5
  147. package/docs/interfaces/PanoMeasureParameterType.html +16 -14
  148. package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -8
  149. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -7
  150. package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -7
  151. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -8
  152. package/docs/interfaces/PanoRulerPluginExportType.html +12 -10
  153. package/docs/interfaces/PanoRulerPluginOptions.html +9 -7
  154. package/docs/interfaces/PanoRulerPluginParameterType.html +10 -8
  155. package/docs/interfaces/PanoRulerProPluginExportType.html +11 -9
  156. package/docs/interfaces/PanoRulerProPluginOptions.html +9 -7
  157. package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -7
  158. package/docs/interfaces/PanoRulerProPluginState.html +10 -8
  159. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -5
  160. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -5
  161. package/docs/interfaces/PanoSpatialTagPluginData.html +13 -11
  162. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -10
  163. package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -13
  164. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -10
  165. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -13
  166. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -11
  167. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -10
  168. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -6
  169. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -8
  170. package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -6
  171. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -9
  172. package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -6
  173. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -8
  174. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -10
  175. package/docs/interfaces/Point.html +10 -8
  176. package/docs/interfaces/Room.html +11 -9
  177. package/docs/interfaces/RoomInfo.html +9 -7
  178. package/docs/interfaces/RoomLabel.html +16 -14
  179. package/docs/interfaces/RoomRules.html +7 -5
  180. package/docs/interfaces/Rooms.html +7 -5
  181. package/docs/interfaces/Scissor.html +11 -9
  182. package/docs/interfaces/State.html +10 -8
  183. package/docs/interfaces/TagCacheInterface.html +14 -12
  184. package/docs/interfaces/TagConfig.html +13 -11
  185. package/docs/interfaces/TagGLTFObjectGroup.html +8 -6
  186. package/docs/interfaces/TagIconUrl.html +13 -11
  187. package/docs/interfaces/TagObjectGroup.html +8 -6
  188. package/docs/interfaces/TagStyle.html +8 -6
  189. package/docs/interfaces/Tags.html +11 -9
  190. package/docs/interfaces/TemporaryState.html +8 -6
  191. package/docs/interfaces/Util.MagnifierParameter.html +13 -11
  192. package/docs/interfaces/Util.MouseGroupParameter.html +10 -8
  193. package/docs/modules/GuideLineItem.html +52 -0
  194. package/docs/modules/GuideLineModeItem.html +52 -0
  195. package/docs/modules/PanoVideoPluginType.html +7 -5
  196. package/docs/modules/Util.html +16 -6
  197. package/docs/modules.html +9 -5
  198. package/docs/types/ArrayPosition.html +7 -5
  199. package/docs/types/AudioAppearance.html +7 -5
  200. package/docs/types/AudioTagTypeConfigKey.html +7 -5
  201. package/docs/types/CSS3DRenderExportType.html +7 -5
  202. package/docs/types/CSS3DRenderPluginExportType.html +7 -5
  203. package/docs/types/CSS3DRenderPluginParameterType.html +7 -5
  204. package/docs/types/ClassFunctionParameters.html +7 -5
  205. package/docs/types/Color.html +7 -5
  206. package/docs/types/ContentTypeConfigKey.html +7 -5
  207. package/docs/types/ContentTypeConfigKeySplit.html +7 -5
  208. package/docs/types/ContentTypeMap.html +7 -5
  209. package/docs/types/Create3DDomContainerReturnType.html +7 -5
  210. package/docs/types/Create3DElementReturnType.html +7 -5
  211. package/docs/types/CruisePluginExportType.html +7 -5
  212. package/docs/types/Direction-1.html +7 -5
  213. package/docs/types/Direction4.html +7 -5
  214. package/docs/types/FloorplanRuleLabels.html +7 -5
  215. package/docs/types/FloorplanServerRuleLabels.html +7 -5
  216. package/docs/types/GuideLinePluginExportType.html +7 -5
  217. package/docs/types/HelperEventMap.html +7 -5
  218. package/docs/types/LoadTagConfig.html +7 -5
  219. package/docs/types/MapviewFloorplanPluginParameterType.html +7 -5
  220. package/docs/types/MapviewFloorplanPluginReturnType.html +7 -5
  221. package/docs/types/MediaData.html +7 -5
  222. package/docs/types/MediaStore.html +7 -5
  223. package/docs/types/ModelElement.html +7 -5
  224. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -5
  225. package/docs/types/ModelFloorplanPluginParameterType.html +7 -5
  226. package/docs/types/ModelFloorplanPluginReturnType.html +7 -5
  227. package/docs/types/ModelRoomLabelPluginParameters.html +7 -5
  228. package/docs/types/ModelRoomLabelPluginReturnType.html +7 -5
  229. package/docs/types/MoveArgs.html +7 -5
  230. package/docs/types/MoveOpts.html +7 -5
  231. package/docs/types/Object3DHelperEventMap.html +7 -5
  232. package/docs/types/ObjectFit.html +7 -5
  233. package/docs/types/PaintBrushEventMap.html +7 -5
  234. package/docs/types/PanoCompassPluginData.html +7 -5
  235. package/docs/types/PanoCompassPluginExportType.html +7 -5
  236. package/docs/types/PanoCompassPluginParameterType.html +7 -5
  237. package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -5
  238. package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -5
  239. package/docs/types/PanoIndex.html +7 -5
  240. package/docs/types/PanoMeasurePluginEvent.html +7 -5
  241. package/docs/types/PanoMeasureReturnType.html +7 -5
  242. package/docs/types/PanoSpatialTagPluginId.html +7 -5
  243. package/docs/types/PanoTagPluginExportInterface.html +7 -5
  244. package/docs/types/PanoTagPluginParamsInterface.html +7 -5
  245. package/docs/types/PanoVideoPluginParameterType.html +7 -5
  246. package/docs/types/PanoVideoPluginReturnType.html +7 -5
  247. package/docs/types/PlaneTag.html +7 -5
  248. package/docs/types/PlaneTagElement.html +7 -5
  249. package/docs/types/Point2DElement.html +7 -5
  250. package/docs/types/Point2DTag.html +7 -5
  251. package/docs/types/Point3DElement.html +7 -5
  252. package/docs/types/Point3DTag.html +7 -5
  253. package/docs/types/PointTag.html +7 -5
  254. package/docs/types/PointTagElement.html +7 -5
  255. package/docs/types/Position.html +7 -5
  256. package/docs/types/RotateArgs.html +7 -5
  257. package/docs/types/RotateOpts.html +7 -5
  258. package/docs/types/RuleLabelsKey.html +7 -5
  259. package/docs/types/RuleLabelsValue.html +7 -5
  260. package/docs/types/StickType.html +7 -5
  261. package/docs/types/Tag.html +7 -5
  262. package/docs/types/Tag2D.html +7 -5
  263. package/docs/types/Tag3D.html +7 -5
  264. package/docs/types/TagContentType.html +7 -5
  265. package/docs/types/TagDimensionType.html +7 -5
  266. package/docs/types/TagElement.html +7 -5
  267. package/docs/types/TagEvents.html +7 -5
  268. package/docs/types/TagGLTFObject.html +7 -5
  269. package/docs/types/TagHooks.html +7 -5
  270. package/docs/types/TagIconSize.html +7 -5
  271. package/docs/types/TagId.html +7 -5
  272. package/docs/types/TopviewFloorplanPluginParameterType.html +7 -5
  273. package/docs/types/TopviewFloorplanPluginReturnType.html +7 -5
  274. package/docs/types/WorkCode.html +7 -5
  275. package/docs/variables/FLOOR_TYPE_MAP.html +7 -5
  276. package/docs/variables/PLUGIN.html +7 -5
  277. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -5
  278. package/docs/variables/ROOM_TYPE_MAP.html +7 -5
  279. package/docs/variables/itemLabelPluginServerParams.html +7 -5
  280. package/docs/variables/modelItemLabelPluginServerParams.html +7 -5
  281. package/docs/variables/modelRoomLabelPluginServerParams.html +7 -5
  282. package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -0
  283. package/libs/CSS3DRenderPlugin/Controller.js +40 -31
  284. package/libs/CSS3DRenderPlugin/index.js +12 -6
  285. package/libs/CruisePlugin/Controller.d.ts +1 -2
  286. package/libs/CruisePlugin/Controller.js +197 -174
  287. package/libs/CruisePlugin/index.js +33 -10
  288. package/libs/CruisePlugin/typing.d.ts +12 -2
  289. package/libs/GuideLinePlugin/Controller.d.ts +17 -11
  290. package/libs/GuideLinePlugin/Controller.js +111 -85
  291. package/libs/GuideLinePlugin/GuideLineItem/index.js +35 -0
  292. package/libs/GuideLinePlugin/GuideLineItem.d.ts +26 -0
  293. package/libs/GuideLinePlugin/GuideLineItem.js +31 -0
  294. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +148 -0
  295. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +61 -0
  296. package/libs/GuideLinePlugin/GuideLineModeItem.js +29 -0
  297. package/libs/GuideLinePlugin/index.d.ts +3 -0
  298. package/libs/GuideLinePlugin/index.js +33 -7
  299. package/libs/GuideLinePlugin/typing.d.ts +78 -1
  300. package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +19 -0
  301. package/libs/GuideLinePlugin/utils/createLineGeometry.js +35 -0
  302. package/libs/GuideLinePlugin/utils/dataFormatter.d.ts +2 -0
  303. package/libs/GuideLinePlugin/utils/dataFormatter.js +6 -0
  304. package/libs/GuideLinePlugin/utils/index.d.ts +7 -0
  305. package/libs/GuideLinePlugin/utils/index.js +32 -0
  306. package/libs/ModelTVVideoPlugin/Plugin.js +37 -31
  307. package/libs/ModelTVVideoPlugin/index.js +11 -5
  308. package/libs/Object3DHelperPlugin/Controller.js +33 -28
  309. package/libs/Object3DHelperPlugin/index.js +18 -13
  310. package/libs/PanoCompassPlugin/Controller.js +8 -6
  311. package/libs/PanoCompassPlugin/index.js +12 -10
  312. package/libs/PanoDoorLabelPlugin/BaseController.js +47 -28
  313. package/libs/PanoDoorLabelPlugin/Controller.js +40 -22
  314. package/libs/PanoDoorLabelPlugin/index.js +21 -3
  315. package/libs/PanoMeasurePlugin/typings/index.js +20 -1
  316. package/libs/PanoSpatialTagPlugin/Plugin.js +8 -3
  317. package/libs/PanoSpatialTagPlugin/index.js +8 -3
  318. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
  319. package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
  320. package/libs/PanoTagPlugin/Components/TagContainer.js +1 -1
  321. package/libs/PanoTagPlugin/Components/TagItem.js +1 -1
  322. package/libs/PanoTagPlugin/controller/TagCache.js +42 -22
  323. package/libs/PanoTagPlugin/controller/TagComputer.js +4 -3
  324. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  325. package/libs/PanoTagPlugin/controller/TagUtil.js +8 -3
  326. package/libs/PanoTagPlugin/controller/index.js +6 -5
  327. package/libs/PanoTagPlugin/index.js +11 -10
  328. package/libs/PanoVideoPlugin/Controller.js +4 -3
  329. package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
  330. package/libs/PanoVideoPlugin/index.js +7 -6
  331. package/libs/base/BasePlugin.d.ts +1 -0
  332. package/libs/base/BasePlugin.js +21 -10
  333. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +57 -38
  334. package/libs/floorplan/MapviewFloorplanPlugin/index.js +22 -3
  335. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +48 -29
  336. package/libs/floorplan/ModelFloorplanPlugin/index.js +22 -3
  337. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +31 -11
  338. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +23 -3
  339. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +59 -40
  340. package/libs/floorplan/TopviewFloorplanPlugin/index.js +22 -3
  341. package/libs/floorplan/index.js +6 -0
  342. package/libs/index.js +116 -110
  343. package/libs/shared-utils/five/index.d.ts +1 -0
  344. package/libs/shared-utils/five/index.js +1 -0
  345. package/libs/shared-utils/five/mode.d.ts +3 -0
  346. package/libs/shared-utils/five/mode.js +11 -0
  347. package/libs/shared-utils/index.d.ts +3 -0
  348. package/libs/shared-utils/index.js +36 -29
  349. package/libs/shared-utils/isAbsoluteURL.d.ts +1 -0
  350. package/libs/shared-utils/isAbsoluteURL.js +6 -0
  351. package/libs/shared-utils/log.d.ts +2 -0
  352. package/libs/shared-utils/log.js +10 -0
  353. package/libs/shared-utils/three/PointDomHelper.js +1 -1
  354. package/package.json +2 -2
  355. package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +0 -16
  356. package/libs/GuideLinePlugin/utils/getLineGeometries.d.ts +0 -16
  357. package/libs/GuideLinePlugin/utils/getLineGeometries.js +0 -64
@@ -1,35 +1,35 @@
1
- var G = Object.defineProperty, K = Object.defineProperties;
1
+ var T = Object.defineProperty, K = Object.defineProperties;
2
2
  var O = Object.getOwnPropertyDescriptors;
3
- var F = Object.getOwnPropertySymbols;
3
+ var L = Object.getOwnPropertySymbols;
4
4
  var U = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
5
- var x = (y, l, e) => l in y ? G(y, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : y[l] = e, P = (y, l) => {
6
- for (var e in l || (l = {}))
7
- U.call(l, e) && x(y, e, l[e]);
8
- if (F)
9
- for (var e of F(l))
10
- A.call(l, e) && x(y, e, l[e]);
11
- return y;
12
- }, C = (y, l) => K(y, O(l));
13
- var I = (y, l, e) => (x(y, typeof l != "symbol" ? l + "" : l, e), e);
14
- var p = (y, l, e) => new Promise((t, i) => {
15
- var a = (f) => {
5
+ var C = (p, u, e) => u in p ? T(p, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[u] = e, g = (p, u) => {
6
+ for (var e in u || (u = {}))
7
+ U.call(u, e) && C(p, e, u[e]);
8
+ if (L)
9
+ for (var e of L(u))
10
+ A.call(u, e) && C(p, e, u[e]);
11
+ return p;
12
+ }, E = (p, u) => K(p, O(u));
13
+ var I = (p, u, e) => (C(p, typeof u != "symbol" ? u + "" : u, e), e);
14
+ var v = (p, u, e) => new Promise((t, i) => {
15
+ var r = (f) => {
16
16
  try {
17
17
  n(e.next(f));
18
- } catch (r) {
19
- i(r);
18
+ } catch (a) {
19
+ i(a);
20
20
  }
21
21
  }, o = (f) => {
22
22
  try {
23
23
  n(e.throw(f));
24
- } catch (r) {
25
- i(r);
24
+ } catch (a) {
25
+ i(a);
26
26
  }
27
- }, n = (f) => f.done ? t(f.value) : Promise.resolve(f.value).then(a, o);
28
- n((e = e.apply(y, l)).next());
27
+ }, n = (f) => f.done ? t(f.value) : Promise.resolve(f.value).then(r, o);
28
+ n((e = e.apply(p, u)).next());
29
29
  });
30
30
  import { Controller as V } from "../base/BasePluginWithData.js";
31
31
  import { GuideLinePlugin as Q } from "../GuideLinePlugin/index.js";
32
- import { uuid as k } from "../shared-utils/uuid.js";
32
+ import { uuid as w } from "../shared-utils/uuid.js";
33
33
  import { coordinatesAngle as $ } from "./utils/coordinatesAngle.js";
34
34
  import { safeCall as _ } from "./utils/safeCall.js";
35
35
  import { equal as R } from "../shared-utils/equal.js";
@@ -39,21 +39,44 @@ import H from "./utils/linerValue.js";
39
39
  import { sleep as J } from "./utils/sleep.js";
40
40
  import "../base/BasePlugin.js";
41
41
  import "../shared-utils/Subscribe.js";
42
+ import "@realsee/five";
43
+ import "hammerjs";
44
+ import "@tweenjs/tween.js";
45
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
46
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
47
+ import "three/examples/jsm/renderers/CSS3DRenderer";
48
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
49
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
50
+ import "../CSS3DRenderPlugin/utils/even.js";
51
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
52
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
53
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
54
+ import "../shared-utils/three/centerPoint.js";
55
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
56
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
57
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
58
+ import "../shared-utils/isAbsoluteURL.js";
59
+ import "../shared-utils/animationFrame/BetterTween.js";
60
+ import "../shared-utils/animationFrame/index.js";
42
61
  import "../GuideLinePlugin/Controller.js";
43
- import "../GuideLinePlugin/utils/getLineGeometries.js";
62
+ import "../GuideLinePlugin/GuideLineItem/index.js";
63
+ import "object-assign-deep";
64
+ import "../GuideLinePlugin/GuideLineModeItem/index.js";
65
+ import "../shared-utils/log.js";
66
+ import "../GuideLinePlugin/utils/createLineGeometry.js";
44
67
  import "polyline-normals";
45
- import "../GuideLinePlugin/utils/getArrowMaterial.js";
46
- import "../shared-utils/isNil.js";
68
+ import "../shared-utils/five/mode.js";
69
+ import "../shared-utils/three/loadTexture.js";
47
70
  import "./utils/coordinatesToVector.js";
48
71
  import "../shared-utils/isTruelyObject.js";
49
72
  import "./utils/formatRad.js";
50
- const D = "v1.0.6", M = "CruisePlugin", w = `${M}@${D}`, ye = (y) => `${w}--${y}`, L = () => {
51
- console.error(`${w} is disposed`);
73
+ const M = "v1.0.6", G = "CruisePlugin", x = `${G}@${M}`, Qe = (p) => `${x}--${p}`, D = () => {
74
+ console.error(`${x} is disposed`);
52
75
  }, W = () => {
53
- console.warn(`${w} is disabled`);
76
+ console.warn(`${x} is disabled`);
54
77
  }, q = () => {
55
- console.error(`${w} is disabled`);
56
- }, E = /* @__PURE__ */ new Map();
78
+ console.error(`${x} is disabled`);
79
+ }, F = /* @__PURE__ */ new Map();
57
80
  class z extends V {
58
81
  constructor(e, t) {
59
82
  super(e, t);
@@ -83,60 +106,60 @@ class z extends V {
83
106
  modeChanging: !1
84
107
  });
85
108
  I(this, "GuideLine");
86
- this.config = t, Object.assign(window, { [`__${M}_DEBUG__`]: this });
87
- const i = this.setFiveLinearUpdateCamera.bind(this), a = this.setFiveOriginUpdateCamera.bind(this);
88
- this.hooks.on("play", i), this.hooks.on("broke", a), this.hooks.on("end", a), this.hooks.on("pause", a), this.privateState.disposers.push(() => {
89
- this.hooks.off("play", i), this.hooks.off("broke", a), this.hooks.off("end", a), this.hooks.off("pause", a);
109
+ this.config = t, Object.assign(window, { [`__${G}_DEBUG__`]: this });
110
+ const i = this.setFiveLinearUpdateCamera.bind(this), r = this.setFiveOriginUpdateCamera.bind(this);
111
+ this.hooks.on("play", i), this.hooks.on("broke", r), this.hooks.on("end", r), this.hooks.on("pause", r), this.privateState.disposers.push(() => {
112
+ this.hooks.off("play", i), this.hooks.off("broke", r), this.hooks.off("end", r), this.hooks.off("pause", r);
90
113
  });
91
114
  }
92
115
  load(e, t, i) {
93
- return p(this, null, function* () {
94
- var s, d, h, u, c;
116
+ return v(this, null, function* () {
117
+ var s, d, l, c, m, P;
95
118
  if (this.state.disposed)
96
- return L();
97
- this.privateState.fiveOriginGetProgress || (d = (s = this.five.controller) == null ? void 0 : s.cameraMotion) != null && d.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (u = (h = this.five.controller) == null ? void 0 : h.cameraMotion) == null ? void 0 : u.getProgress), this.clear();
98
- const a = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, o = yield this.formatData(e);
99
- this.data = o, this.hooks.emit("dataChange", o, a);
119
+ return D();
120
+ this.privateState.fiveOriginGetProgress || (d = (s = this.five.controller) == null ? void 0 : s.cameraMotion) != null && d.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (c = (l = this.five.controller) == null ? void 0 : l.cameraMotion) == null ? void 0 : c.getProgress), this.clear();
121
+ const r = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, o = yield this.formatData(e);
122
+ this.data = o, this.hooks.emit("dataChange", o, r);
100
123
  let n = [], f;
101
- const r = this.data.keyframes.filter((m) => m.data.panoIndex !== void 0);
102
- r.filter((m, v) => {
103
- var g;
104
- return m.data.panoIndex !== ((g = r[v - 1]) == null ? void 0 : g.data.panoIndex);
105
- }).map((m) => m.data.panoIndex).forEach((m) => {
106
- var g, b;
107
- const v = (g = this.five.work.observers[m]) == null ? void 0 : g.floorIndex;
108
- if (v !== void 0)
109
- if (f === v) {
110
- const S = n.length - 1;
111
- n[S] = [...(b = n[S]) != null ? b : [], m];
124
+ const a = this.data.keyframes.filter((h) => h.data.panoIndex !== void 0);
125
+ a.filter((h, y) => {
126
+ var S;
127
+ return h.data.panoIndex !== ((S = a[y - 1]) == null ? void 0 : S.data.panoIndex);
128
+ }).map((h) => h.data.panoIndex).forEach((h) => {
129
+ var S, k;
130
+ const y = (S = this.five.work.observers[h]) == null ? void 0 : S.floorIndex;
131
+ if (y !== void 0)
132
+ if (f === y) {
133
+ const b = n.length - 1;
134
+ n[b] = [...(k = n[b]) != null ? k : [], h];
112
135
  } else {
113
- f = v;
114
- const S = n.length;
115
- n[S] = [m];
136
+ f = y;
137
+ const b = n.length;
138
+ n[b] = [h];
116
139
  }
117
- }), this.GuideLine || (this.GuideLine = Q(this.five, this.config)), (c = this.GuideLine) == null || c.load({ routes: n.map((m) => ({ panoIndexList: m })), config: o.guildPluginOptions }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), t && this.setState(t, { userAction: i }), console.info(`${w} loaded`, o), this.hooks.emit("dataLoaded", o);
140
+ }), !this.GuideLine && ((m = this.config) == null ? void 0 : m.useGuideLine) !== !1 && (this.GuideLine = Q(this.five, this.config)), (P = this.GuideLine) == null || P.load({ routes: n.map((h) => ({ panoIndexList: h })), config: o.guildPluginOptions }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), t && this.setState(t, { userAction: i }), console.info(`${x} loaded`, o), this.hooks.emit("dataLoaded", o);
118
141
  });
119
142
  }
120
143
  play(e) {
121
144
  this.setState({ playing: !0 }, e);
122
145
  }
123
146
  playFrom(e) {
124
- const { index: t, id: i, userAction: a } = e;
125
- this.state.playing && this.setState({ playing: !1 }, { userAction: a }), this.setState({ playing: !0 }, { userAction: a, playFromIndex: t, playFromId: i });
147
+ const { index: t, id: i, userAction: r } = e;
148
+ this.state.playing && this.setState({ playing: !1 }, { userAction: r }), this.setState({ playing: !0 }, { userAction: r, playFromIndex: t, playFromId: i });
126
149
  }
127
150
  playFromStart(e) {
128
- return this.playFrom(C(P({}, e), { index: 0 }));
151
+ return this.playFrom(E(g({}, e), { index: 0 }));
129
152
  }
130
153
  pause(e) {
131
154
  this.setState({ playing: !1 }, e);
132
155
  }
133
156
  show(e) {
134
- return p(this, null, function* () {
157
+ return v(this, null, function* () {
135
158
  this.setState({ visible: !0 }, e);
136
159
  });
137
160
  }
138
161
  hide(e) {
139
- return p(this, null, function* () {
162
+ return v(this, null, function* () {
140
163
  this.setState({ visible: !1 }, e);
141
164
  });
142
165
  }
@@ -150,53 +173,53 @@ class z extends V {
150
173
  this.setState({ disposed: !0 });
151
174
  }
152
175
  setState(e, t) {
153
- var a;
176
+ var r;
154
177
  if (this.state.disposed)
155
- return L();
178
+ return D();
156
179
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
157
180
  return q();
158
- const i = P({}, this.state);
159
- this.state = P(P({}, this.state), e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction), R(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (a = t == null ? void 0 : t.userAction) != null ? a : !0 });
181
+ const i = g({}, this.state);
182
+ this.state = g(g({}, this.state), e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction), R(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (r = t == null ? void 0 : t.userAction) != null ? r : !0 });
160
183
  }
161
184
  formatData(e) {
162
- return p(this, null, function* () {
185
+ return v(this, null, function* () {
163
186
  this.five.work || (yield this.waitFiveLoaded());
164
187
  const t = this.five.work.observers, i = (() => {
165
- const a = e;
166
- return typeof a == "object" && a !== null && a.version && a.data ? a.data : a;
188
+ const r = e;
189
+ return typeof r == "object" && r !== null && r.version && r.data ? r.data : r;
167
190
  })();
168
191
  if (i.keyframes)
169
192
  return {
170
- keyframesId: k(),
171
- keyframes: i.keyframes.map((a, o) => {
172
- var r;
173
- const n = i.keyframes[o + 1], f = (() => !n || n.start === void 0 || a.end === void 0 ? 0 : n.start - a.end)();
174
- return C(P({ id: (r = a.uuid) != null ? r : k(), moveIndex: o, stay: f, index: o }, a), { guildPluginOptions: i.guildPluginOptions });
193
+ keyframesId: w(),
194
+ keyframes: i.keyframes.map((r, o) => {
195
+ var a;
196
+ const n = i.keyframes[o + 1], f = (() => !n || n.start === void 0 || r.end === void 0 ? 0 : n.start - r.end)();
197
+ return E(g({ id: (a = r.uuid) != null ? a : w(), moveIndex: o, stay: f, index: o }, r), { guildPluginOptions: i.guildPluginOptions });
175
198
  })
176
199
  };
177
200
  if (i.panoIndexList) {
178
- let a = [];
201
+ let r = [];
179
202
  const { moveEffect: o, moveToFirstPanoEffect: n, moveToFirstPanoDuration: f } = i;
180
- return this.privateState.moveToFirstPanoEffect = n, this.privateState.moveToFirstPanoDuration = f, i.panoIndexList.forEach((r, s) => {
203
+ return this.privateState.moveToFirstPanoEffect = n, this.privateState.moveToFirstPanoDuration = f, i.panoIndexList.forEach((a, s) => {
181
204
  const d = (() => {
182
- var v, g, b, S;
183
- const h = i.panoIndexList.slice(s).find((T) => T !== r);
184
- if (h === void 0)
205
+ var h, y, S, k;
206
+ const l = i.panoIndexList.slice(s).find((b) => b !== a);
207
+ if (l === void 0)
185
208
  return;
186
- const u = (v = t[r]) == null ? void 0 : v.position, c = (g = t[h]) == null ? void 0 : g.position;
187
- if (!c || !u || ((b = t[r]) == null ? void 0 : b.floorIndex) !== ((S = t[h]) == null ? void 0 : S.floorIndex))
209
+ const c = (h = t[a]) == null ? void 0 : h.position, m = (y = t[l]) == null ? void 0 : y.position;
210
+ if (!m || !c || ((S = t[a]) == null ? void 0 : S.floorIndex) !== ((k = t[l]) == null ? void 0 : k.floorIndex))
188
211
  return;
189
- const m = new j.Vector3().subVectors(c, u);
190
- return N(m.normalize());
212
+ const P = new j.Vector3().subVectors(m, c);
213
+ return N(P.normalize());
191
214
  })();
192
- i.moveType === void 0 || i.moveType === "justMove" ? a.push({
215
+ i.moveType === void 0 || i.moveType === "justMove" ? r.push({
193
216
  moveIndex: s,
194
217
  stay: i.stay,
195
- data: P({ effect: "Move", panoIndex: r, moveEffect: o }, d != null ? d : {})
196
- }) : i.moveType === "moveAndRotate" && (a.push({ moveIndex: s, stay: i.stay, data: { effect: "Move", panoIndex: r, moveEffect: o } }), d && a.push({ moveIndex: s, stay: i.stay, data: P({ effect: "Rotate", panoIndex: r }, d) }));
218
+ data: g({ effect: "Move", panoIndex: a, moveEffect: o }, d != null ? d : {})
219
+ }) : i.moveType === "moveAndRotate" && (r.push({ moveIndex: s, stay: i.stay, data: { effect: "Move", panoIndex: a, moveEffect: o } }), d && r.push({ moveIndex: s, stay: i.stay, data: g({ effect: "Rotate", panoIndex: a }, d) }));
197
220
  }), {
198
- keyframesId: k(),
199
- keyframes: a.map((r, s) => P({ id: k(), index: s }, r)),
221
+ keyframesId: w(),
222
+ keyframes: r.map((a, s) => g({ id: w(), index: s }, a)),
200
223
  guildPluginOptions: i.guildPluginOptions
201
224
  };
202
225
  } else
@@ -204,12 +227,12 @@ class z extends V {
204
227
  });
205
228
  }
206
229
  handleEnable(e, t = !0) {
207
- var i, a;
208
- e ? ((i = this.GuideLine) == null || i.enable(), this.hooks.emit("enable", { userAction: t })) : ((a = this.GuideLine) == null || a.disable(), this.changePlayState(!1, { userAction: t }), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
230
+ var i, r;
231
+ e ? ((i = this.GuideLine) == null || i.enable(), this.hooks.emit("enable", { userAction: t })) : ((r = this.GuideLine) == null || r.disable(), this.changePlayState(!1, { userAction: t }), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
209
232
  }
210
233
  handleVisible(e, t = !0) {
211
- var i, a;
212
- e ? ((i = this.GuideLine) == null || i.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : ((a = this.GuideLine) == null || a.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
234
+ var i, r;
235
+ e ? ((i = this.GuideLine) == null || i.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : ((r = this.GuideLine) == null || r.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
213
236
  }
214
237
  changePlayState(e, t) {
215
238
  this.actionIfStateIsEnabled(
@@ -220,64 +243,64 @@ class z extends V {
220
243
  ), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
221
244
  }
222
245
  handlePlay(e) {
223
- return p(this, null, function* () {
224
- var u;
225
- const { data: t, state: i, privateState: a, hooks: o } = this;
226
- if (a.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
246
+ return v(this, null, function* () {
247
+ var c;
248
+ const { data: t, state: i, privateState: r, hooks: o } = this;
249
+ if (r.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
227
250
  return;
228
- const n = k();
229
- a.playId = n, a.playing = !0, a.broke = !1;
230
- const f = t.keyframes, r = this.getPauseData();
231
- (e == null ? void 0 : e.notEmitEvent) !== !0 && o.emit("play", { userAction: (u = e == null ? void 0 : e.userAction) != null ? u : !0 });
251
+ const n = w();
252
+ r.playId = n, r.playing = !0, r.broke = !1;
253
+ const f = t.keyframes, a = this.getPauseData();
254
+ (e == null ? void 0 : e.notEmitEvent) !== !0 && o.emit("play", { userAction: (c = e == null ? void 0 : e.userAction) != null ? c : !0 });
232
255
  let s = !1;
233
- const h = yield (() => p(this, null, function* () {
234
- var c, m;
256
+ const l = yield (() => v(this, null, function* () {
257
+ var m, P;
235
258
  if ((e == null ? void 0 : e.playFromIndex) !== void 0)
236
259
  return e.playFromIndex;
237
260
  if ((e == null ? void 0 : e.playFromId) !== void 0)
238
- return (c = this.data) == null ? void 0 : c.keyframes.findIndex((v) => v.id === e.playFromId);
239
- if (r != null && r.keyframeId) {
240
- const v = (m = this.data) == null ? void 0 : m.keyframes.find((g) => g.id === r.keyframeId);
241
- if (r != null && r.fiveState && (yield this.move(r.fiveState, {
242
- moveEffect: a.moveToFirstPanoEffect,
243
- duration: a.moveToFirstPanoDuration
244
- })), v) {
245
- if (v.data.effect === "Move")
246
- return v.index;
247
- if (v.data.effect === "Rotate") {
248
- const g = r.duration !== void 0 ? r.duration * (1 - r.playedProgress) : void 0;
249
- return yield this.playKeyframe(v, { duration: g }), s = !0, v.index + 1;
261
+ return (m = this.data) == null ? void 0 : m.keyframes.findIndex((h) => h.id === e.playFromId);
262
+ if (a != null && a.keyframeId) {
263
+ const h = (P = this.data) == null ? void 0 : P.keyframes.find((y) => y.id === a.keyframeId);
264
+ if (a != null && a.fiveState && (yield this.move(a.fiveState, {
265
+ moveEffect: r.moveToFirstPanoEffect,
266
+ duration: r.moveToFirstPanoDuration
267
+ })), h) {
268
+ if (h.data.effect === "Move")
269
+ return h.index;
270
+ if (h.data.effect === "Rotate") {
271
+ const y = a.duration !== void 0 ? a.duration * (1 - a.playedProgress) : void 0;
272
+ return yield this.playKeyframe(h, { duration: y }), s = !0, h.index + 1;
250
273
  }
251
274
  }
252
275
  }
253
276
  }))();
254
277
  this.clearPauseData();
255
- for (const c of f) {
256
- if (a.broke || !i.playing || !a.playing || n !== a.playId)
278
+ for (const m of f) {
279
+ if (r.broke || !i.playing || !r.playing || n !== r.playId)
257
280
  return;
258
- if (!(h !== void 0 && c.index < h))
281
+ if (!(l !== void 0 && m.index < l))
259
282
  try {
260
- o.emit("playIndexChange", c.index, c), yield this.playKeyframe(c, {
261
- moveEffect: s === !1 ? a.moveToFirstPanoEffect : void 0,
262
- duration: s === !1 && typeof a.moveToFirstPanoDuration == "number" ? a.moveToFirstPanoDuration : void 0
263
- }), c.stay && (yield J(c.stay)), s === !1 && (s = !0);
264
- } catch (m) {
283
+ o.emit("playIndexChange", m.index, m), yield this.playKeyframe(m, {
284
+ moveEffect: s === !1 ? r.moveToFirstPanoEffect : void 0,
285
+ duration: s === !1 && typeof r.moveToFirstPanoDuration == "number" ? r.moveToFirstPanoDuration : void 0
286
+ }), m.stay && (yield J(m.stay)), s === !1 && (s = !0);
287
+ } catch (P) {
265
288
  return Promise.resolve("broke");
266
289
  }
267
290
  }
268
- i.playing && n === a.playId && (this.setState({ playing: !1 }, { userAction: !1 }), o.emit("end"), this.clearPauseData());
291
+ i.playing && n === r.playId && (this.setState({ playing: !1 }, { userAction: !1 }), o.emit("end"), this.clearPauseData());
269
292
  });
270
293
  }
271
294
  handlePause(e) {
272
295
  var o;
273
- const { state: t, privateState: i, hooks: a } = this;
274
- t.playing = !1, i.playing !== !1 && (i.playing = !1, this.setPauseData(), i.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && a.emit("pause", { userAction: (o = e == null ? void 0 : e.userAction) != null ? o : !0 }));
296
+ const { state: t, privateState: i, hooks: r } = this;
297
+ t.playing = !1, i.playing !== !1 && (i.playing = !1, this.setPauseData(), i.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("pause", { userAction: (o = e == null ? void 0 : e.userAction) != null ? o : !0 }));
275
298
  }
276
299
  playKeyframe(e, t) {
277
- return p(this, null, function* () {
278
- var a;
300
+ return v(this, null, function* () {
301
+ var r;
279
302
  const { privateState: i } = this;
280
- return ((a = this.privateState.currentPlayKeyframe) == null ? void 0 : a.keyframe.id) !== e.id && (this.privateState.currentPlayKeyframe = { keyframe: e }), i.currentPlayQueue.push(this.getPlayPromise(e, t)), this.actionPromiseQueue();
303
+ return ((r = this.privateState.currentPlayKeyframe) == null ? void 0 : r.keyframe.id) !== e.id && (this.privateState.currentPlayKeyframe = { keyframe: e }), i.currentPlayQueue.push(this.getPlayPromise(e, t)), this.actionPromiseQueue();
281
304
  });
282
305
  }
283
306
  addInterruptListener(e) {
@@ -289,31 +312,31 @@ class z extends V {
289
312
  };
290
313
  }
291
314
  getPlayPromise(i) {
292
- return p(this, arguments, function* (e, t = {}) {
315
+ return v(this, arguments, function* (e, t = {}) {
293
316
  var o;
294
- const a = e.data;
295
- if (t.duration = (o = t.duration) != null ? o : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!a)
317
+ const r = e.data;
318
+ if (t.duration = (o = t.duration) != null ? o : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!r)
296
319
  return new Promise((n, f) => {
297
- let r = !1;
320
+ let a = !1;
298
321
  this.addInterruptListener(() => {
299
- if (!r)
300
- return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), r = !0, f(new Error("play is interupted"));
322
+ if (!a)
323
+ return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), a = !0, f(new Error("play is interupted"));
301
324
  });
302
325
  try {
303
- if (r)
326
+ if (a)
304
327
  return;
305
328
  const s = () => {
306
- n(), r = !0;
329
+ n(), a = !0;
307
330
  };
308
- switch (a.effect) {
331
+ switch (r.effect) {
309
332
  case "Move":
310
- this.move(a, t).then(s);
333
+ this.move(r, t).then(s);
311
334
  break;
312
335
  case "Rotate":
313
- this.rotate(a, t).then(s);
336
+ this.rotate(r, t).then(s);
314
337
  break;
315
338
  default:
316
- this.rotate(a, t).then(s);
339
+ this.rotate(r, t).then(s);
317
340
  }
318
341
  } catch (s) {
319
342
  }
@@ -321,24 +344,24 @@ class z extends V {
321
344
  });
322
345
  }
323
346
  actionPromiseQueue() {
324
- return p(this, null, function* () {
347
+ return v(this, null, function* () {
325
348
  const { privateState: e } = this;
326
349
  return new Promise((t, i) => {
327
350
  if (e.currentPlayQueue.length === 0) {
328
351
  t();
329
352
  return;
330
353
  }
331
- const a = e.currentPlayQueue.shift();
332
- if (!a) {
354
+ const r = e.currentPlayQueue.shift();
355
+ if (!r) {
333
356
  t();
334
357
  return;
335
358
  }
336
- a.then(t, i);
359
+ r.then(t, i);
337
360
  }).then(() => e.currentPlayQueue.length === 0 ? Promise.resolve() : this.actionPromiseQueue());
338
361
  });
339
362
  }
340
363
  move(e, t) {
341
- return p(this, null, function* () {
364
+ return v(this, null, function* () {
342
365
  if (e.mode && e.mode !== this.five.currentMode)
343
366
  yield this.changeMode(e);
344
367
  else if (e.panoIndex !== this.five.panoIndex)
@@ -348,7 +371,7 @@ class z extends V {
348
371
  });
349
372
  }
350
373
  rotate(e, t) {
351
- return p(this, null, function* () {
374
+ return v(this, null, function* () {
352
375
  if (e.mode && e.mode !== this.five.currentMode)
353
376
  yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
354
377
  else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
@@ -357,15 +380,15 @@ class z extends V {
357
380
  });
358
381
  }
359
382
  updateCamera(i) {
360
- return p(this, arguments, function* (e, t = {}) {
361
- const { five: a, privateState: o, state: n } = this, f = (() => {
362
- var u, c;
363
- const d = (u = n.config) == null ? void 0 : u.speedConfig, h = (c = e.rotateSpeed) != null ? c : d == null ? void 0 : d.rotateSpeed;
383
+ return v(this, arguments, function* (e, t = {}) {
384
+ const { five: r, privateState: o, state: n } = this, f = (() => {
385
+ var c, m;
386
+ const d = (c = n.config) == null ? void 0 : c.speedConfig, l = (m = e.rotateSpeed) != null ? m : d == null ? void 0 : d.rotateSpeed;
364
387
  if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
365
- return h;
366
- if (h !== void 0)
367
- return d.rotateSpeedUnit === "rad/ms" ? h : h / 1e3;
368
- })(), r = (() => {
388
+ return l;
389
+ if (l !== void 0)
390
+ return d.rotateSpeedUnit === "rad/ms" ? l : l / 1e3;
391
+ })(), a = (() => {
369
392
  if (t.duration)
370
393
  return t.duration;
371
394
  if (f) {
@@ -374,28 +397,28 @@ class z extends V {
374
397
  }
375
398
  return 800;
376
399
  })();
377
- o.currentPlayKeyframe && (o.currentPlayKeyframe.originDuration = r);
378
- const s = this.getSpeededDuration(r);
400
+ o.currentPlayKeyframe && (o.currentPlayKeyframe.originDuration = a);
401
+ const s = this.getSpeededDuration(a);
379
402
  return new Promise((d) => {
380
- _(() => a.updateCamera(e, s)), setTimeout(() => d(), s);
403
+ _(() => r.updateCamera(e, s)), setTimeout(() => d(), s);
381
404
  });
382
405
  });
383
406
  }
384
407
  changePano(e, t) {
385
- return p(this, null, function* () {
386
- const { five: i, privateState: a, state: o } = this;
408
+ return v(this, null, function* () {
409
+ const { five: i, privateState: r, state: o } = this;
387
410
  if (typeof e.panoIndex != "number" || e.panoIndex === i.panoIndex)
388
411
  return;
389
412
  const n = i.getCurrentState().mode !== "Panorama";
390
413
  n && (this.privateState.modeChanging = !0);
391
414
  const f = (() => {
392
- var h, u;
393
- const s = (h = o.config) == null ? void 0 : h.speedConfig, d = (u = e.moveSpeed) != null ? u : s == null ? void 0 : s.moveSpeed;
415
+ var l, c;
416
+ const s = (l = o.config) == null ? void 0 : l.speedConfig, d = (c = e.moveSpeed) != null ? c : s == null ? void 0 : s.moveSpeed;
394
417
  if ((s == null ? void 0 : s.moveSpeedUnit) === void 0)
395
418
  return d;
396
419
  if (d !== void 0)
397
420
  return s.moveSpeedUnit === "m/ms" ? d : d / 1e3;
398
- })(), r = (() => {
421
+ })(), a = (() => {
399
422
  if (t != null && t.duration)
400
423
  return t.duration;
401
424
  if (f && typeof i.panoIndex == "number" && typeof e.panoIndex == "number") {
@@ -404,14 +427,14 @@ class z extends V {
404
427
  }
405
428
  return 800;
406
429
  })();
407
- a.currentPlayKeyframe && (a.currentPlayKeyframe.originDuration = r), yield new Promise((s) => {
408
- var d, h, u;
430
+ r.currentPlayKeyframe && (r.currentPlayKeyframe.originDuration = a), yield new Promise((s) => {
431
+ var d, l, c;
409
432
  i.moveToPano(e.panoIndex, {
410
433
  latitude: e.latitude,
411
434
  longitude: e.longitude,
412
435
  fov: e.fov,
413
- duration: this.getSpeededDuration(r),
414
- effect: (u = (h = t == null ? void 0 : t.moveEffect) != null ? h : (d = this.state.config) == null ? void 0 : d.moveEffect) != null ? u : e.moveEffect,
436
+ duration: this.getSpeededDuration(a),
437
+ effect: (c = (l = t == null ? void 0 : t.moveEffect) != null ? l : (d = this.state.config) == null ? void 0 : d.moveEffect) != null ? c : e.moveEffect,
415
438
  moveCancelCallback: () => s(),
416
439
  moveEndCallback: () => s()
417
440
  }), n && i.once("panoArrived", () => s());
@@ -419,11 +442,11 @@ class z extends V {
419
442
  });
420
443
  }
421
444
  changeSpeed(e, t = !0) {
422
- const { state: i, privateState: a, hooks: o } = this, { currentPlayKeyframe: n } = a;
445
+ const { state: i, privateState: r, hooks: o } = this, { currentPlayKeyframe: n } = r;
423
446
  if (o.emit("speedChange", e, { userAction: t }), i.playing && n)
424
447
  try {
425
- const f = n.originDuration !== void 0 ? n.originDuration * (1 - this.getProgress()) : void 0, r = this.playKeyframe(n.keyframe, { duration: f });
426
- a.currentPlayQueue.push(r);
448
+ const f = n.originDuration !== void 0 ? n.originDuration * (1 - this.getProgress()) : void 0, a = this.playKeyframe(n.keyframe, { duration: f });
449
+ r.currentPlayQueue.push(a);
427
450
  } catch (f) {
428
451
  }
429
452
  }
@@ -434,7 +457,7 @@ class z extends V {
434
457
  return this.five.controller.cameraMotion.progress;
435
458
  }
436
459
  changeMode(e, t) {
437
- return p(this, null, function* () {
460
+ return v(this, null, function* () {
438
461
  e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
439
462
  });
440
463
  }
@@ -444,22 +467,22 @@ class z extends V {
444
467
  getPauseData() {
445
468
  var e, t;
446
469
  if ((e = this.data) != null && e.keyframesId)
447
- return E.get((t = this.data) == null ? void 0 : t.keyframesId);
470
+ return F.get((t = this.data) == null ? void 0 : t.keyframesId);
448
471
  }
449
472
  setPauseData() {
450
- var e, t, i, a;
473
+ var e, t, i, r;
451
474
  if ((e = this.data) != null && e.keyframesId)
452
- return E.set((t = this.data) == null ? void 0 : t.keyframesId, {
475
+ return F.set((t = this.data) == null ? void 0 : t.keyframesId, {
453
476
  keyframeId: (i = this.privateState.currentPlayKeyframe) == null ? void 0 : i.keyframe.id,
454
477
  fiveState: this.five.getCurrentState(),
455
- duration: (a = this.privateState.currentPlayKeyframe) == null ? void 0 : a.originDuration,
478
+ duration: (r = this.privateState.currentPlayKeyframe) == null ? void 0 : r.originDuration,
456
479
  playedProgress: this.getProgress()
457
480
  });
458
481
  }
459
482
  clearPauseData() {
460
483
  var e, t;
461
484
  if ((e = this.data) != null && e.keyframesId)
462
- return E.delete((t = this.data) == null ? void 0 : t.keyframesId);
485
+ return F.delete((t = this.data) == null ? void 0 : t.keyframesId);
463
486
  }
464
487
  clear() {
465
488
  this.clearPauseData(), this.privateState.currentPlayKeyframe = null;
@@ -474,7 +497,7 @@ class z extends V {
474
497
  t != null && t.warnLog && W();
475
498
  }
476
499
  waitFiveLoaded() {
477
- return p(this, null, function* () {
500
+ return v(this, null, function* () {
478
501
  return new Promise((e) => {
479
502
  if (this.five.work) {
480
503
  e();
@@ -496,8 +519,8 @@ class z extends V {
496
519
  !this.privateState.fiveOriginGetProgress || (this.five.controller.cameraMotion.getProgress = this.privateState.fiveOriginGetProgress);
497
520
  }
498
521
  }
499
- I(z, "PluginVersion", D);
522
+ I(z, "PluginVersion", M);
500
523
  export {
501
524
  z as default,
502
- ye as pluginFlag
525
+ Qe as pluginFlag
503
526
  };