@realsee/dnalogel 2.16.0-4 → 2.16.0-7

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 (336) hide show
  1. package/dist/CruisePlugin/index.d.ts +2 -0
  2. package/dist/CruisePlugin/typing.d.ts +32 -40
  3. package/dist/GuideLinePlugin/Controller.d.ts +2 -0
  4. package/dist/GuideLinePlugin/GuideLineItem.d.ts +6 -0
  5. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +38 -5
  6. package/dist/GuideLinePlugin/typing.d.ts +33 -4
  7. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  8. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +5 -5
  9. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +3 -1
  10. package/dist/index.cjs.js +67 -67
  11. package/dist/index.js +8846 -8678
  12. package/dist/index.umd.js +54 -54
  13. package/docs/assets/search.js +1 -1
  14. package/docs/classes/CSS3DRender.html +32 -31
  15. package/docs/classes/CruisePluginController.html +39 -38
  16. package/docs/classes/GuideLineItem.GuideLineItem.html +49 -16
  17. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +218 -49
  18. package/docs/classes/Magnifier.html +21 -20
  19. package/docs/classes/ModelRoomLabelController.html +12 -11
  20. package/docs/classes/Object3DHelperController.html +26 -25
  21. package/docs/classes/PaintBrush.html +16 -15
  22. package/docs/classes/PanoMeasurePluginLine.html +24 -23
  23. package/docs/classes/PanoMeasurePluginModel.html +23 -22
  24. package/docs/classes/PanoMeasurePluginPoint.html +15 -14
  25. package/docs/classes/PanoMeasurePluginPolyline.html +27 -26
  26. package/docs/classes/PanoTagPluginController.html +48 -47
  27. package/docs/classes/Util.BetterTween.html +9 -8
  28. package/docs/classes/Util.FivePointSelector.html +13 -12
  29. package/docs/classes/Util.Interval.html +13 -12
  30. package/docs/classes/Util.Magnifier.html +18 -17
  31. package/docs/classes/Util.PointDomHelper.html +12 -11
  32. package/docs/classes/Util.PointHelper.html +12 -11
  33. package/docs/classes/Util.Rectangle.html +14 -13
  34. package/docs/enums/CameraMovementEffect.html +8 -7
  35. package/docs/enums/ContentType.html +20 -19
  36. package/docs/enums/DIRECTION.html +10 -9
  37. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
  38. package/docs/enums/DimensionType.html +8 -7
  39. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
  40. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
  41. package/docs/enums/PaintBrushTypeEnum.html +9 -8
  42. package/docs/enums/Rotation.html +9 -8
  43. package/docs/functions/CSS3DRenderPlugin.html +5 -4
  44. package/docs/functions/CameraMovementPlugin.html +5 -4
  45. package/docs/functions/CruisePlugin.html +5 -4
  46. package/docs/functions/GuideLinePlugin.html +6 -5
  47. package/docs/functions/ItemLabelPlugin.html +5 -4
  48. package/docs/functions/MapviewFloorplanPlugin.html +5 -4
  49. package/docs/functions/ModelChassisCompassPlugin.html +5 -4
  50. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
  51. package/docs/functions/ModelFloorplanPlugin.html +5 -4
  52. package/docs/functions/ModelItemLabelPlugin.html +5 -4
  53. package/docs/functions/ModelRoomLabelPlugin.html +5 -4
  54. package/docs/functions/ModelTVVideoPlugin.html +5 -4
  55. package/docs/functions/ModelViewPlugin.html +5 -4
  56. package/docs/functions/Object3DHelperPlugin.html +5 -4
  57. package/docs/functions/PanoCompassPlugin.html +5 -4
  58. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
  59. package/docs/functions/PanoDoorLabelPlugin.html +5 -4
  60. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
  61. package/docs/functions/PanoMeasurePlugin.html +5 -4
  62. package/docs/functions/PanoRulerPlugin.html +5 -4
  63. package/docs/functions/PanoRulerProPlugin.html +5 -4
  64. package/docs/functions/PanoSpatialTagPlugin.html +5 -4
  65. package/docs/functions/PanoTagPlugin.html +5 -4
  66. package/docs/functions/PanoVideoPlugin.html +5 -4
  67. package/docs/functions/TopviewFloorplanPlugin.html +5 -4
  68. package/docs/functions/Util.getCoordsFromClient.html +6 -5
  69. package/docs/functions/Util.getCoordsFromElement.html +6 -5
  70. package/docs/functions/Util.getFrameTime.html +6 -5
  71. package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
  72. package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
  73. package/docs/functions/Util.isAbsoluteURL.html +6 -5
  74. package/docs/functions/Util.isModelLike.html +6 -5
  75. package/docs/functions/Util.isNil.html +6 -5
  76. package/docs/functions/Util.isPanoramaLike.html +6 -5
  77. package/docs/functions/Util.nextFrame.html +6 -5
  78. package/docs/functions/Util.notNil.html +6 -5
  79. package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
  80. package/docs/functions/Util.tweenProgress.html +6 -5
  81. package/docs/functions/Util.uuid.html +6 -5
  82. package/docs/functions/pluginFlag.html +6 -5
  83. package/docs/index.html +5 -4
  84. package/docs/interfaces/AddTagConfig.html +7 -6
  85. package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
  86. package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
  87. package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
  88. package/docs/interfaces/CruisePluginTypes.Config.html +107 -0
  89. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +112 -0
  90. package/docs/interfaces/CruisePluginTypes.EventMap.html +429 -0
  91. package/docs/interfaces/CruisePluginTypes.MoveAction.html +120 -0
  92. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +141 -0
  93. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +143 -0
  94. package/docs/interfaces/CruisePluginTypes.PluginData.html +95 -0
  95. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +83 -0
  96. package/docs/interfaces/CruisePluginTypes.PluginState.html +148 -0
  97. package/docs/interfaces/EventMap.html +16 -15
  98. package/docs/interfaces/FloorplanBounding.html +9 -8
  99. package/docs/interfaces/FloorplanData.html +11 -10
  100. package/docs/interfaces/FloorplanEntrance.html +12 -11
  101. package/docs/interfaces/FloorplanExtraObject.html +11 -10
  102. package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
  103. package/docs/interfaces/FloorplanFloorData.html +10 -9
  104. package/docs/interfaces/FloorplanImagePosition.html +8 -7
  105. package/docs/interfaces/FloorplanObserver.html +10 -9
  106. package/docs/interfaces/FloorplanOutlineItem.html +10 -9
  107. package/docs/interfaces/FloorplanPosition.html +8 -7
  108. package/docs/interfaces/FloorplanRoomItem.html +14 -13
  109. package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
  110. package/docs/interfaces/FloorplanServerBounding.html +9 -8
  111. package/docs/interfaces/FloorplanServerComputedData.html +11 -10
  112. package/docs/interfaces/FloorplanServerData.html +8 -7
  113. package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
  114. package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
  115. package/docs/interfaces/FloorplanServerEntrance.html +12 -11
  116. package/docs/interfaces/FloorplanServerFloorData.html +10 -9
  117. package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
  118. package/docs/interfaces/FloorplanServerObserver.html +10 -9
  119. package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
  120. package/docs/interfaces/FloorplanServerPosition.html +8 -7
  121. package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
  122. package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
  123. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +15 -10
  124. package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -13
  125. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -8
  126. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -6
  127. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -11
  128. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -8
  129. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +179 -0
  130. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTag.html +211 -0
  131. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +293 -0
  132. package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +8 -7
  133. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +7 -6
  134. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -7
  135. package/docs/interfaces/GuideLinePluginType.PluginState.html +10 -9
  136. package/docs/interfaces/GuideLinePluginType.Route.html +11 -10
  137. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -9
  138. package/docs/interfaces/HelperOffset.html +9 -8
  139. package/docs/interfaces/ImagePlaneGroup.html +7 -6
  140. package/docs/interfaces/ItemLabelPluginData.html +7 -6
  141. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
  142. package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
  143. package/docs/interfaces/MinMax.html +8 -7
  144. package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
  145. package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
  146. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
  147. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
  148. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
  149. package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
  150. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
  151. package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
  152. package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
  153. package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
  154. package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
  155. package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
  156. package/docs/interfaces/ModelViewPluginExportType.html +12 -11
  157. package/docs/interfaces/Object3DHelperState.html +9 -8
  158. package/docs/interfaces/ObjectHelperControllers.html +10 -9
  159. package/docs/interfaces/PaintBrushAction.html +13 -12
  160. package/docs/interfaces/PaintBrushConfigs.html +13 -12
  161. package/docs/interfaces/PaintBrushState.html +11 -10
  162. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
  163. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
  164. package/docs/interfaces/PanoMeasureParameterType.html +15 -14
  165. package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
  166. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
  167. package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
  168. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
  169. package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
  170. package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
  171. package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
  172. package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
  173. package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
  174. package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
  175. package/docs/interfaces/PanoRulerProPluginState.html +9 -8
  176. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
  177. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
  178. package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
  179. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
  180. package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
  181. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
  182. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
  183. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
  184. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
  185. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -6
  186. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -8
  187. package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -6
  188. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -9
  189. package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -6
  190. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -8
  191. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -10
  192. package/docs/interfaces/Point.html +9 -8
  193. package/docs/interfaces/Room.html +10 -9
  194. package/docs/interfaces/RoomInfo.html +8 -7
  195. package/docs/interfaces/RoomLabel.html +15 -14
  196. package/docs/interfaces/RoomRules.html +6 -5
  197. package/docs/interfaces/Rooms.html +6 -5
  198. package/docs/interfaces/Scissor.html +10 -9
  199. package/docs/interfaces/State.html +9 -8
  200. package/docs/interfaces/TagCacheInterface.html +13 -12
  201. package/docs/interfaces/TagConfig.html +12 -11
  202. package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
  203. package/docs/interfaces/TagIconUrl.html +27 -17
  204. package/docs/interfaces/TagObjectGroup.html +7 -6
  205. package/docs/interfaces/TagStyle.html +7 -6
  206. package/docs/interfaces/Tags.html +10 -9
  207. package/docs/interfaces/TemporaryState.html +7 -6
  208. package/docs/interfaces/Util.MagnifierParameter.html +12 -11
  209. package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
  210. package/docs/modules/CruisePluginTypes.html +88 -0
  211. package/docs/modules/GuideLineItem.html +6 -5
  212. package/docs/modules/GuideLineModeItem.html +6 -5
  213. package/docs/modules/GuideLinePluginType.html +14 -5
  214. package/docs/modules/PanoVideoPluginType.html +6 -5
  215. package/docs/modules/Util.html +6 -5
  216. package/docs/modules.html +7 -5
  217. package/docs/types/ArrayPosition.html +6 -5
  218. package/docs/types/AudioAppearance.html +6 -5
  219. package/docs/types/AudioTagTypeConfigKey.html +6 -5
  220. package/docs/types/CSS3DRenderExportType.html +6 -5
  221. package/docs/types/CSS3DRenderPluginExportType.html +6 -5
  222. package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
  223. package/docs/types/ClassFunctionParameters.html +6 -5
  224. package/docs/types/Color.html +6 -5
  225. package/docs/types/ContentTypeConfigKey.html +6 -5
  226. package/docs/types/ContentTypeConfigKeySplit.html +6 -5
  227. package/docs/types/ContentTypeMap.html +6 -5
  228. package/docs/types/Create3DDomContainerReturnType.html +6 -5
  229. package/docs/types/Create3DElementReturnType.html +6 -5
  230. package/docs/types/CruisePluginExportType.html +6 -5
  231. package/docs/types/CruisePluginTypes.CruiseData.html +60 -0
  232. package/docs/types/CruisePluginTypes.MoveEffect.html +60 -0
  233. package/docs/types/Direction-1.html +6 -5
  234. package/docs/types/Direction4.html +6 -5
  235. package/docs/types/FloorplanRuleLabels.html +6 -5
  236. package/docs/types/FloorplanServerRuleLabels.html +6 -5
  237. package/docs/types/GuideLinePluginExportType.html +6 -5
  238. package/docs/types/GuideLinePluginType.GuideLineItem.html +11 -6
  239. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +105 -0
  240. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +10 -5
  241. package/docs/types/GuideLinePluginType.GuideLineStyle.html +10 -5
  242. package/docs/types/GuideLinePluginType.PathItem.html +10 -5
  243. package/docs/types/GuideLinePluginType.PluginData.html +10 -5
  244. package/docs/types/HelperEventMap.html +6 -5
  245. package/docs/types/LoadTagConfig.html +6 -5
  246. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
  247. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
  248. package/docs/types/MediaData.html +6 -5
  249. package/docs/types/MediaStore.html +6 -5
  250. package/docs/types/ModelElement.html +6 -5
  251. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
  252. package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
  253. package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
  254. package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
  255. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
  256. package/docs/types/MoveArgs.html +6 -5
  257. package/docs/types/MoveOpts.html +6 -5
  258. package/docs/types/Object3DHelperEventMap.html +6 -5
  259. package/docs/types/ObjectFit.html +6 -5
  260. package/docs/types/PaintBrushEventMap.html +6 -5
  261. package/docs/types/PanoCompassPluginData.html +6 -5
  262. package/docs/types/PanoCompassPluginExportType.html +6 -5
  263. package/docs/types/PanoCompassPluginParameterType.html +6 -5
  264. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
  265. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
  266. package/docs/types/PanoIndex.html +6 -5
  267. package/docs/types/PanoMeasurePluginEvent.html +6 -5
  268. package/docs/types/PanoMeasureReturnType.html +6 -5
  269. package/docs/types/PanoSpatialTagPluginId.html +6 -5
  270. package/docs/types/PanoTagPluginExportInterface.html +6 -5
  271. package/docs/types/PanoTagPluginParamsInterface.html +6 -5
  272. package/docs/types/PanoVideoPluginParameterType.html +6 -5
  273. package/docs/types/PanoVideoPluginReturnType.html +6 -5
  274. package/docs/types/PlaneTag.html +6 -5
  275. package/docs/types/PlaneTagElement.html +6 -5
  276. package/docs/types/Point2DElement.html +6 -5
  277. package/docs/types/Point2DTag.html +6 -5
  278. package/docs/types/Point3DElement.html +6 -5
  279. package/docs/types/Point3DTag.html +6 -5
  280. package/docs/types/PointTag.html +6 -5
  281. package/docs/types/PointTagElement.html +6 -5
  282. package/docs/types/Position.html +6 -5
  283. package/docs/types/RotateArgs.html +6 -5
  284. package/docs/types/RotateOpts.html +6 -5
  285. package/docs/types/RuleLabelsKey.html +6 -5
  286. package/docs/types/RuleLabelsValue.html +6 -5
  287. package/docs/types/StickType.html +6 -5
  288. package/docs/types/Tag.html +6 -5
  289. package/docs/types/Tag2D.html +6 -5
  290. package/docs/types/Tag3D.html +6 -5
  291. package/docs/types/TagContentType.html +6 -5
  292. package/docs/types/TagDimensionType.html +6 -5
  293. package/docs/types/TagElement.html +6 -5
  294. package/docs/types/TagEvents.html +6 -5
  295. package/docs/types/TagGLTFObject.html +6 -5
  296. package/docs/types/TagHooks.html +6 -5
  297. package/docs/types/TagIconSize.html +6 -5
  298. package/docs/types/TagId.html +6 -5
  299. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
  300. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
  301. package/docs/types/WorkCode.html +6 -5
  302. package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
  303. package/docs/variables/PLUGIN.html +6 -5
  304. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
  305. package/docs/variables/ROOM_TYPE_MAP.html +6 -5
  306. package/docs/variables/itemLabelPluginServerParams.html +6 -5
  307. package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
  308. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
  309. package/libs/CruisePlugin/Controller.js +222 -118
  310. package/libs/CruisePlugin/index.d.ts +2 -0
  311. package/libs/CruisePlugin/index.js +110 -5
  312. package/libs/CruisePlugin/typing/index.js +6 -0
  313. package/libs/CruisePlugin/typing.d.ts +32 -40
  314. package/libs/GuideLinePlugin/Components/Tag.js +49 -0
  315. package/libs/GuideLinePlugin/Controller.d.ts +2 -0
  316. package/libs/GuideLinePlugin/Controller.js +199 -85
  317. package/libs/GuideLinePlugin/GuideLineItem/index.js +109 -22
  318. package/libs/GuideLinePlugin/GuideLineItem.d.ts +6 -0
  319. package/libs/GuideLinePlugin/GuideLineItem.js +123 -4
  320. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +84 -53
  321. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +38 -5
  322. package/libs/GuideLinePlugin/GuideLineModeItem.js +106 -2
  323. package/libs/GuideLinePlugin/index.js +119 -7
  324. package/libs/GuideLinePlugin/typing.d.ts +33 -4
  325. package/libs/GuideLinePlugin/typing.js +34 -1
  326. package/libs/GuideLinePlugin/utils/createLineGeometry.js +19 -16
  327. package/libs/GuideLinePlugin/utils/index.js +17 -4
  328. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +92 -66
  329. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  330. package/libs/PanoTagPlugin/controller/TagComputer.js +6 -0
  331. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +5 -5
  332. package/libs/PanoTagPlugin/controller/index.js +5 -5
  333. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +3 -1
  334. package/libs/base/BasePlugin.js +1 -1
  335. package/libs/index.js +120 -117
  336. package/package.json +1 -1
@@ -2,30 +2,30 @@ var T = Object.defineProperty, K = Object.defineProperties;
2
2
  var O = Object.getOwnPropertyDescriptors;
3
3
  var L = Object.getOwnPropertySymbols;
4
4
  var U = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
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]);
5
+ var C = (c, h, e) => h in c ? T(c, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[h] = e, g = (c, h) => {
6
+ for (var e in h || (h = {}))
7
+ U.call(h, e) && C(c, e, h[e]);
8
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) => {
9
+ for (var e of L(h))
10
+ A.call(h, e) && C(c, e, h[e]);
11
+ return c;
12
+ }, E = (c, h) => K(c, O(h));
13
+ var I = (c, h, e) => (C(c, typeof h != "symbol" ? h + "" : h, e), e);
14
+ var v = (c, h, e) => new Promise((t, i) => {
15
+ var r = (m) => {
16
16
  try {
17
- n(e.next(f));
17
+ s(e.next(m));
18
18
  } catch (a) {
19
19
  i(a);
20
20
  }
21
- }, o = (f) => {
21
+ }, n = (m) => {
22
22
  try {
23
- n(e.throw(f));
23
+ s(e.throw(m));
24
24
  } catch (a) {
25
25
  i(a);
26
26
  }
27
- }, n = (f) => f.done ? t(f.value) : Promise.resolve(f.value).then(r, o);
28
- n((e = e.apply(p, u)).next());
27
+ }, s = (m) => m.done ? t(m.value) : Promise.resolve(m.value).then(r, n);
28
+ s((e = e.apply(c, h)).next());
29
29
  });
30
30
  import { Controller as V } from "../base/BasePluginWithData.js";
31
31
  import { GuideLinePlugin as Q } from "../GuideLinePlugin/index.js";
@@ -67,10 +67,114 @@ import "../GuideLinePlugin/utils/createLineGeometry.js";
67
67
  import "polyline-normals";
68
68
  import "../shared-utils/five/mode.js";
69
69
  import "../shared-utils/three/loadTexture.js";
70
+ import "../PanoTagPlugin/controller/index.js";
71
+ import "../PanoTagPlugin/utils/addDebugPoints.js";
72
+ import "@realsee/five/gltf-loader";
73
+ import "../PanoTagPlugin/utils/tag/tagCheck.js";
74
+ import "../PanoTagPlugin/utils/actionAfterFiveModelLoad.js";
75
+ import "../PanoTagPlugin/utils/debounce.js";
76
+ import "../PanoTagPlugin/utils/throttle.js";
77
+ import "../PanoTagPlugin/utils/resizeObserver.js";
78
+ import "../PanoTagPlugin/utils/tag/format.js";
79
+ import "../shared-utils/audio.js";
80
+ import "../PanoTagPlugin/controller/TagRender.js";
81
+ import "../PanoTagPlugin/controller/TagComputer.js";
82
+ import "../PanoTagPlugin/utils/tagPosition.js";
83
+ import "../PanoTagPlugin/utils/checkRange.js";
84
+ import "../shared-utils/isNil.js";
85
+ import "../PanoTagPlugin/controller/TagUtil.js";
86
+ import "../PanoTagPlugin/tag.config.js";
87
+ import "../PanoTagPlugin/utils/planeNormal.js";
88
+ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
89
+ import "../PanoTagPlugin/controller/TagCache.js";
90
+ import "../vendor/svelte/store/index.js";
91
+ import "../vendor/svelte/internal/index.js";
92
+ import "../PanoTagPlugin/utils/device.js";
93
+ import "../shared-utils/threex/domevents/index.js";
94
+ import "../PanoTagPlugin/Components/TagContainer.js";
95
+ import "../PanoTagPlugin/Components/TagItem.js";
96
+ import "../PanoTagPlugin/Components/Tag/index.js";
97
+ import "../PanoTagPlugin/Components/Tag/TextTag/index.js";
98
+ import "../PanoTagPlugin/Components/Tag/TextTag/TextTag.js";
99
+ import "../PanoTagPlugin/Components/Common/Line/Straight.js";
100
+ import "../vendor/svelte/transition/index.js";
101
+ import "../vendor/svelte/easing/index.js";
102
+ import "../PanoTagPlugin/Components/Common/Shadow.js";
103
+ import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
104
+ import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
105
+ import "animejs";
106
+ import "../PanoTagPlugin/utils/search.js";
107
+ import "../PanoTagPlugin/utils/constants.js";
108
+ import "../PanoTagPlugin/Components/Common/Arrow.js";
109
+ import "../PanoTagPlugin/Assets/Icon.js";
110
+ import "../PanoTagPlugin/utils/doUtil.js";
111
+ import "../shared-utils/svelte/resizeObserver.js";
112
+ import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
113
+ import "../PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js";
114
+ import "../PanoTagPlugin/Components/Common/Text/MText.js";
115
+ import "../PanoTagPlugin/utils/px2rem.js";
116
+ import "../PanoTagPlugin/Components/Tag/ImageTextTag.js";
117
+ import "../PanoTagPlugin/Components/Common/Line/Polyline.js";
118
+ import "../PanoTagPlugin/Components/Common/Media.js";
119
+ import "../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
120
+ import "../vendor/svelte-carousel/src/components/Dots/Dots.js";
121
+ import "../vendor/svelte-carousel/src/components/Dot/Dot.js";
122
+ import "../vendor/svelte-carousel/src/components/Arrow/Arrow.js";
123
+ import "../vendor/svelte-carousel/src/direction.js";
124
+ import "../vendor/svelte-carousel/src/components/Progress/Progress.js";
125
+ import "../vendor/svelte-carousel/src/actions/swipeable/swipeable.js";
126
+ import "../vendor/svelte-carousel/src/actions/swipeable/event.js";
127
+ import "../vendor/svelte-carousel/src/utils/event.js";
128
+ import "../vendor/svelte-carousel/src/units.js";
129
+ import "../vendor/svelte-carousel/src/actions/hoverable/hoverable.js";
130
+ import "../vendor/svelte-carousel/src/actions/hoverable/event.js";
131
+ import "../vendor/svelte-carousel/src/actions/tappable/tappable.js";
132
+ import "../vendor/svelte-carousel/src/utils/math.js";
133
+ import "../vendor/svelte-carousel/src/actions/tappable/event.js";
134
+ import "../vendor/svelte-carousel/src/utils/page.js";
135
+ import "../vendor/svelte-carousel/src/utils/clones.js";
136
+ import "../vendor/svelte-carousel/src/utils/object.js";
137
+ import "../vendor/svelte-carousel/src/components/Carousel/createCarousel.js";
138
+ import "../vendor/simply-reactive/src/simply-reactive.js";
139
+ import "lodash.get";
140
+ import "lodash.clonedeep";
141
+ import "../vendor/simply-reactive/src/utils/subscription.js";
142
+ import "../vendor/simply-reactive/src/utils/object.js";
143
+ import "lodash.isequal";
144
+ import "../vendor/simply-reactive/src/utils/watcher.js";
145
+ import "../vendor/svelte-carousel/src/utils/lazy.js";
146
+ import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
147
+ import "../vendor/svelte-carousel/src/utils/interval.js";
148
+ import "../PanoTagPlugin/Components/Common/MediaItem.js";
149
+ import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
150
+ import "../PanoTagPlugin/utils/noTypecheck.js";
151
+ import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
152
+ import "../PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
153
+ import "../PanoTagPlugin/Components/Common/Audio.js";
154
+ import "../PanoTagPlugin/utils/audio/SharedAudio.js";
155
+ import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
156
+ import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
157
+ import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
158
+ import "../PanoTagPlugin/Components/Tag/LinkTag.js";
159
+ import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
160
+ import "../PanoTagPlugin/utils/getImageInfo.js";
161
+ import "../PanoTagPlugin/Components/Tag/CustomTag.js";
162
+ import "classnames";
163
+ import "../PanoTagPlugin/Components/Common/TagPoint.js";
164
+ import "../PanoTagPlugin/utils/model/imagePlane.js";
165
+ import "../CSS3DRenderPlugin/index.js";
166
+ import "../CSS3DRenderPlugin/Controller.js";
167
+ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
168
+ import "../shared-utils/three/GLTFLoader.js";
169
+ import "../GuideLinePlugin/Components/Tag.js";
170
+ import "./Controller.js";
171
+ import "../shared-utils/to.js";
172
+ import "../shared-utils/five/changeMode.js";
173
+ import "../shared-utils/nearlyEqual.js";
70
174
  import "./utils/coordinatesToVector.js";
71
175
  import "../shared-utils/isTruelyObject.js";
72
176
  import "./utils/formatRad.js";
73
- const M = "v1.0.6", G = "CruisePlugin", x = `${G}@${M}`, Qe = (p) => `${x}--${p}`, D = () => {
177
+ const M = "v1.0.6", G = "CruisePlugin", x = `${G}@${M}`, Oi = (c) => `${x}--${c}`, D = () => {
74
178
  console.error(`${x} is disposed`);
75
179
  }, W = () => {
76
180
  console.warn(`${x} is disabled`);
@@ -114,30 +218,30 @@ class z extends V {
114
218
  }
115
219
  load(e, t, i) {
116
220
  return v(this, null, function* () {
117
- var s, d, l, c, m, P;
221
+ var o, d, p, l, u, P;
118
222
  if (this.state.disposed)
119
223
  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);
123
- let n = [], f;
124
- const a = this.data.keyframes.filter((h) => h.data.panoIndex !== void 0);
125
- a.filter((h, y) => {
224
+ this.privateState.fiveOriginGetProgress || (d = (o = this.five.controller) == null ? void 0 : o.cameraMotion) != null && d.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (l = (p = this.five.controller) == null ? void 0 : p.cameraMotion) == null ? void 0 : l.getProgress), this.clear();
225
+ const r = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(e);
226
+ this.data = n, this.hooks.emit("dataChange", n, r);
227
+ let s = [], m;
228
+ const a = this.data.keyframes.filter((f) => f.data.panoIndex !== void 0);
229
+ a.filter((f, y) => {
126
230
  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) => {
231
+ return f.data.panoIndex !== ((S = a[y - 1]) == null ? void 0 : S.data.panoIndex);
232
+ }).map((f) => f.data.panoIndex).forEach((f) => {
129
233
  var S, k;
130
- const y = (S = this.five.work.observers[h]) == null ? void 0 : S.floorIndex;
234
+ const y = (S = this.five.work.observers[f]) == null ? void 0 : S.floorIndex;
131
235
  if (y !== void 0)
132
- if (f === y) {
133
- const b = n.length - 1;
134
- n[b] = [...(k = n[b]) != null ? k : [], h];
236
+ if (m === y) {
237
+ const b = s.length - 1;
238
+ s[b] = [...(k = s[b]) != null ? k : [], f];
135
239
  } else {
136
- f = y;
137
- const b = n.length;
138
- n[b] = [h];
240
+ m = y;
241
+ const b = s.length;
242
+ s[b] = [f];
139
243
  }
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);
244
+ }), !this.GuideLine && ((u = this.config) == null ? void 0 : u.useGuideLine) !== !1 && (this.GuideLine = Q(this.five, this.config)), (P = this.GuideLine) == null || P.load({ routes: s.map((f) => ({ panoIndexList: f })), config: n.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`, n), this.hooks.emit("dataLoaded", n);
141
245
  });
142
246
  }
143
247
  play(e) {
@@ -191,35 +295,35 @@ class z extends V {
191
295
  if (i.keyframes)
192
296
  return {
193
297
  keyframesId: w(),
194
- keyframes: i.keyframes.map((r, o) => {
298
+ keyframes: i.keyframes.map((r, n) => {
195
299
  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 });
300
+ const s = i.keyframes[n + 1], m = (() => !s || s.start === void 0 || r.end === void 0 ? 0 : s.start - r.end)();
301
+ return E(g({ id: (a = r.uuid) != null ? a : w(), moveIndex: n, stay: m, index: n }, r), { guildPluginOptions: i.guildPluginOptions });
198
302
  })
199
303
  };
200
304
  if (i.panoIndexList) {
201
305
  let r = [];
202
- const { moveEffect: o, moveToFirstPanoEffect: n, moveToFirstPanoDuration: f } = i;
203
- return this.privateState.moveToFirstPanoEffect = n, this.privateState.moveToFirstPanoDuration = f, i.panoIndexList.forEach((a, s) => {
306
+ const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: m } = i;
307
+ return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = m, i.panoIndexList.forEach((a, o) => {
204
308
  const d = (() => {
205
- var h, y, S, k;
206
- const l = i.panoIndexList.slice(s).find((b) => b !== a);
207
- if (l === void 0)
309
+ var f, y, S, k;
310
+ const p = i.panoIndexList.slice(o).find((b) => b !== a);
311
+ if (p === void 0)
208
312
  return;
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))
313
+ const l = (f = t[a]) == null ? void 0 : f.position, u = (y = t[p]) == null ? void 0 : y.position;
314
+ if (!u || !l || ((S = t[a]) == null ? void 0 : S.floorIndex) !== ((k = t[p]) == null ? void 0 : k.floorIndex))
211
315
  return;
212
- const P = new j.Vector3().subVectors(m, c);
316
+ const P = new j.Vector3().subVectors(u, l);
213
317
  return N(P.normalize());
214
318
  })();
215
319
  i.moveType === void 0 || i.moveType === "justMove" ? r.push({
216
- moveIndex: s,
320
+ moveIndex: o,
217
321
  stay: i.stay,
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) }));
322
+ data: g({ effect: "Move", panoIndex: a, moveEffect: n }, d != null ? d : {})
323
+ }) : i.moveType === "moveAndRotate" && (r.push({ moveIndex: o, stay: i.stay, data: { effect: "Move", panoIndex: a, moveEffect: n } }), d && r.push({ moveIndex: o, stay: i.stay, data: g({ effect: "Rotate", panoIndex: a }, d) }));
220
324
  }), {
221
325
  keyframesId: w(),
222
- keyframes: r.map((a, s) => g({ id: w(), index: s }, a)),
326
+ keyframes: r.map((a, o) => g({ id: w(), index: o }, a)),
223
327
  guildPluginOptions: i.guildPluginOptions
224
328
  };
225
329
  } else
@@ -244,57 +348,57 @@ class z extends V {
244
348
  }
245
349
  handlePlay(e) {
246
350
  return v(this, null, function* () {
247
- var c;
248
- const { data: t, state: i, privateState: r, hooks: o } = this;
351
+ var l;
352
+ const { data: t, state: i, privateState: r, hooks: n } = this;
249
353
  if (r.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
250
354
  return;
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 });
255
- let s = !1;
256
- const l = yield (() => v(this, null, function* () {
257
- var m, P;
355
+ const s = w();
356
+ r.playId = s, r.playing = !0, r.broke = !1;
357
+ const m = t.keyframes, a = this.getPauseData();
358
+ (e == null ? void 0 : e.notEmitEvent) !== !0 && n.emit("play", { userAction: (l = e == null ? void 0 : e.userAction) != null ? l : !0 });
359
+ let o = !1;
360
+ const p = yield (() => v(this, null, function* () {
361
+ var u, P;
258
362
  if ((e == null ? void 0 : e.playFromIndex) !== void 0)
259
363
  return e.playFromIndex;
260
364
  if ((e == null ? void 0 : e.playFromId) !== void 0)
261
- return (m = this.data) == null ? void 0 : m.keyframes.findIndex((h) => h.id === e.playFromId);
365
+ return (u = this.data) == null ? void 0 : u.keyframes.findIndex((f) => f.id === e.playFromId);
262
366
  if (a != null && a.keyframeId) {
263
- const h = (P = this.data) == null ? void 0 : P.keyframes.find((y) => y.id === a.keyframeId);
367
+ const f = (P = this.data) == null ? void 0 : P.keyframes.find((y) => y.id === a.keyframeId);
264
368
  if (a != null && a.fiveState && (yield this.move(a.fiveState, {
265
369
  moveEffect: r.moveToFirstPanoEffect,
266
370
  duration: r.moveToFirstPanoDuration
267
- })), h) {
268
- if (h.data.effect === "Move")
269
- return h.index;
270
- if (h.data.effect === "Rotate") {
371
+ })), f) {
372
+ if (f.data.effect === "Move")
373
+ return f.index;
374
+ if (f.data.effect === "Rotate") {
271
375
  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;
376
+ return yield this.playKeyframe(f, { duration: y }), o = !0, f.index + 1;
273
377
  }
274
378
  }
275
379
  }
276
380
  }))();
277
381
  this.clearPauseData();
278
- for (const m of f) {
279
- if (r.broke || !i.playing || !r.playing || n !== r.playId)
382
+ for (const u of m) {
383
+ if (r.broke || !i.playing || !r.playing || s !== r.playId)
280
384
  return;
281
- if (!(l !== void 0 && m.index < l))
385
+ if (!(p !== void 0 && u.index < p))
282
386
  try {
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);
387
+ n.emit("playIndexChange", u.index, u), yield this.playKeyframe(u, {
388
+ moveEffect: o === !1 ? r.moveToFirstPanoEffect : void 0,
389
+ duration: o === !1 && typeof r.moveToFirstPanoDuration == "number" ? r.moveToFirstPanoDuration : void 0
390
+ }), u.stay && (yield J(u.stay)), o === !1 && (o = !0);
287
391
  } catch (P) {
288
392
  return Promise.resolve("broke");
289
393
  }
290
394
  }
291
- i.playing && n === r.playId && (this.setState({ playing: !1 }, { userAction: !1 }), o.emit("end"), this.clearPauseData());
395
+ i.playing && s === r.playId && (this.setState({ playing: !1 }, { userAction: !1 }), n.emit("end"), this.clearPauseData());
292
396
  });
293
397
  }
294
398
  handlePause(e) {
295
- var o;
399
+ var n;
296
400
  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 }));
401
+ 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: (n = e == null ? void 0 : e.userAction) != null ? n : !0 }));
298
402
  }
299
403
  playKeyframe(e, t) {
300
404
  return v(this, null, function* () {
@@ -313,32 +417,32 @@ class z extends V {
313
417
  }
314
418
  getPlayPromise(i) {
315
419
  return v(this, arguments, function* (e, t = {}) {
316
- var o;
420
+ var n;
317
421
  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)
319
- return new Promise((n, f) => {
422
+ if (t.duration = (n = t.duration) != null ? n : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!r)
423
+ return new Promise((s, m) => {
320
424
  let a = !1;
321
425
  this.addInterruptListener(() => {
322
426
  if (!a)
323
- return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), a = !0, f(new Error("play is interupted"));
427
+ return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), a = !0, m(new Error("play is interupted"));
324
428
  });
325
429
  try {
326
430
  if (a)
327
431
  return;
328
- const s = () => {
329
- n(), a = !0;
432
+ const o = () => {
433
+ s(), a = !0;
330
434
  };
331
435
  switch (r.effect) {
332
436
  case "Move":
333
- this.move(r, t).then(s);
437
+ this.move(r, t).then(o);
334
438
  break;
335
439
  case "Rotate":
336
- this.rotate(r, t).then(s);
440
+ this.rotate(r, t).then(o);
337
441
  break;
338
442
  default:
339
- this.rotate(r, t).then(s);
443
+ this.rotate(r, t).then(o);
340
444
  }
341
- } catch (s) {
445
+ } catch (o) {
342
446
  }
343
447
  });
344
448
  });
@@ -381,73 +485,73 @@ class z extends V {
381
485
  }
382
486
  updateCamera(i) {
383
487
  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;
488
+ const { five: r, privateState: n, state: s } = this, m = (() => {
489
+ var l, u;
490
+ const d = (l = s.config) == null ? void 0 : l.speedConfig, p = (u = e.rotateSpeed) != null ? u : d == null ? void 0 : d.rotateSpeed;
387
491
  if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
388
- return l;
389
- if (l !== void 0)
390
- return d.rotateSpeedUnit === "rad/ms" ? l : l / 1e3;
492
+ return p;
493
+ if (p !== void 0)
494
+ return d.rotateSpeedUnit === "rad/ms" ? p : p / 1e3;
391
495
  })(), a = (() => {
392
496
  if (t.duration)
393
497
  return t.duration;
394
- if (f) {
498
+ if (m) {
395
499
  const d = this.five.getCurrentState();
396
- return $(d, e) / f;
500
+ return $(d, e) / m;
397
501
  }
398
502
  return 800;
399
503
  })();
400
- o.currentPlayKeyframe && (o.currentPlayKeyframe.originDuration = a);
401
- const s = this.getSpeededDuration(a);
504
+ n.currentPlayKeyframe && (n.currentPlayKeyframe.originDuration = a);
505
+ const o = this.getSpeededDuration(a);
402
506
  return new Promise((d) => {
403
- _(() => r.updateCamera(e, s)), setTimeout(() => d(), s);
507
+ _(() => r.updateCamera(e, o)), setTimeout(() => d(), o);
404
508
  });
405
509
  });
406
510
  }
407
511
  changePano(e, t) {
408
512
  return v(this, null, function* () {
409
- const { five: i, privateState: r, state: o } = this;
513
+ const { five: i, privateState: r, state: n } = this;
410
514
  if (typeof e.panoIndex != "number" || e.panoIndex === i.panoIndex)
411
515
  return;
412
- const n = i.getCurrentState().mode !== "Panorama";
413
- n && (this.privateState.modeChanging = !0);
414
- const f = (() => {
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;
417
- if ((s == null ? void 0 : s.moveSpeedUnit) === void 0)
516
+ const s = i.getCurrentState().mode !== "Panorama";
517
+ s && (this.privateState.modeChanging = !0);
518
+ const m = (() => {
519
+ var p, l;
520
+ const o = (p = n.config) == null ? void 0 : p.speedConfig, d = (l = e.moveSpeed) != null ? l : o == null ? void 0 : o.moveSpeed;
521
+ if ((o == null ? void 0 : o.moveSpeedUnit) === void 0)
418
522
  return d;
419
523
  if (d !== void 0)
420
- return s.moveSpeedUnit === "m/ms" ? d : d / 1e3;
524
+ return o.moveSpeedUnit === "m/ms" ? d : d / 1e3;
421
525
  })(), a = (() => {
422
526
  if (t != null && t.duration)
423
527
  return t.duration;
424
- if (f && typeof i.panoIndex == "number" && typeof e.panoIndex == "number") {
425
- const s = i.work.observers[i.panoIndex].position, d = i.work.observers[e.panoIndex].position;
426
- return s.distanceTo(d) / f;
528
+ if (m && typeof i.panoIndex == "number" && typeof e.panoIndex == "number") {
529
+ const o = i.work.observers[i.panoIndex].position, d = i.work.observers[e.panoIndex].position;
530
+ return o.distanceTo(d) / m;
427
531
  }
428
532
  return 800;
429
533
  })();
430
- r.currentPlayKeyframe && (r.currentPlayKeyframe.originDuration = a), yield new Promise((s) => {
431
- var d, l, c;
534
+ r.currentPlayKeyframe && (r.currentPlayKeyframe.originDuration = a), yield new Promise((o) => {
535
+ var d, p, l;
432
536
  i.moveToPano(e.panoIndex, {
433
537
  latitude: e.latitude,
434
538
  longitude: e.longitude,
435
539
  fov: e.fov,
436
540
  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,
438
- moveCancelCallback: () => s(),
439
- moveEndCallback: () => s()
440
- }), n && i.once("panoArrived", () => s());
441
- }), n && (this.privateState.modeChanging = !1);
541
+ effect: (l = (p = t == null ? void 0 : t.moveEffect) != null ? p : (d = this.state.config) == null ? void 0 : d.moveEffect) != null ? l : e.moveEffect,
542
+ moveCancelCallback: () => o(),
543
+ moveEndCallback: () => o()
544
+ }), s && i.once("panoArrived", () => o());
545
+ }), s && (this.privateState.modeChanging = !1);
442
546
  });
443
547
  }
444
548
  changeSpeed(e, t = !0) {
445
- const { state: i, privateState: r, hooks: o } = this, { currentPlayKeyframe: n } = r;
446
- if (o.emit("speedChange", e, { userAction: t }), i.playing && n)
549
+ const { state: i, privateState: r, hooks: n } = this, { currentPlayKeyframe: s } = r;
550
+ if (n.emit("speedChange", e, { userAction: t }), i.playing && s)
447
551
  try {
448
- const f = n.originDuration !== void 0 ? n.originDuration * (1 - this.getProgress()) : void 0, a = this.playKeyframe(n.keyframe, { duration: f });
552
+ const m = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, a = this.playKeyframe(s.keyframe, { duration: m });
449
553
  r.currentPlayQueue.push(a);
450
- } catch (f) {
554
+ } catch (m) {
451
555
  }
452
556
  }
453
557
  getSpeededDuration(e) {
@@ -522,5 +626,5 @@ class z extends V {
522
626
  I(z, "PluginVersion", M);
523
627
  export {
524
628
  z as default,
525
- Qe as pluginFlag
629
+ Oi as pluginFlag
526
630
  };
@@ -1,6 +1,8 @@
1
1
  import type { FivePlugin } from '@realsee/five';
2
2
  import CruisePluginController from './Controller';
3
+ import * as CruisePluginTypes from './typing';
3
4
  export { CruisePluginController };
4
5
  export declare const CruisePlugin: FivePlugin<void, InstanceType<typeof CruisePluginController>>;
5
6
  export type { CruisePluginExportType } from './typing';
6
7
  export default CruisePlugin;
8
+ export { CruisePluginTypes };