@realsee/dnalogel 3.5.0-dev.4 → 3.5.0-tag-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/dist/CruisePlugin/Controller.d.ts +171 -0
  2. package/dist/CruisePlugin/index.d.ts +3 -4
  3. package/dist/CruisePlugin/typing.d.ts +2 -2
  4. package/dist/CruisePlugin/utils/linerValue.d.ts +1 -0
  5. package/dist/GuideLinePlugin/Controller.d.ts +6 -1
  6. package/dist/PanoTagPlugin/controller/TagRender.d.ts +4 -2
  7. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +1 -0
  8. package/dist/index.cjs.js +53 -53
  9. package/dist/index.js +4141 -4156
  10. package/dist/index.umd.js +46 -46
  11. package/docs/assets/search.js +1 -1
  12. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +5 -6
  13. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +5 -6
  14. package/docs/classes/CSS3DRender.html +5 -6
  15. package/docs/classes/{WalkController.html → CruisePluginController.html} +94 -91
  16. package/docs/classes/GuideLineItem.GuideLineItem.html +20 -21
  17. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +5 -6
  18. package/docs/classes/Magnifier.html +5 -6
  19. package/docs/classes/ModelRoomLabelController.html +5 -6
  20. package/docs/classes/Object3DHelperController.html +5 -6
  21. package/docs/classes/PaintBrush.html +5 -6
  22. package/docs/classes/PanoMeasurePluginLine.html +5 -6
  23. package/docs/classes/PanoMeasurePluginModel.html +5 -6
  24. package/docs/classes/PanoMeasurePluginPoint.html +5 -6
  25. package/docs/classes/PanoMeasurePluginPolyline.html +5 -6
  26. package/docs/classes/PanoTagPluginController.html +25 -8
  27. package/docs/classes/Util.BetterTween.html +5 -6
  28. package/docs/classes/Util.Interval.html +5 -6
  29. package/docs/classes/Util.LineSegments.html +5 -6
  30. package/docs/classes/Util.Magnifier.html +5 -6
  31. package/docs/classes/Util.Object3D.html +5 -6
  32. package/docs/classes/Util.PointDomHelper.html +5 -6
  33. package/docs/classes/Util.PointHelper.html +5 -6
  34. package/docs/classes/Util.PointSelectorHelper.html +5 -6
  35. package/docs/classes/Util.Rectangle.html +5 -6
  36. package/docs/enums/CameraMovementEffect.html +5 -6
  37. package/docs/enums/ContentType.html +5 -6
  38. package/docs/enums/DIRECTION.html +5 -6
  39. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -6
  40. package/docs/enums/DimensionType.html +5 -6
  41. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +5 -6
  42. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -6
  43. package/docs/enums/PaintBrushTypeEnum.html +5 -6
  44. package/docs/enums/PointType.html +5 -6
  45. package/docs/enums/Rotation.html +5 -6
  46. package/docs/functions/AreaMakerPlugin.html +5 -6
  47. package/docs/functions/CSS3DRenderPlugin.html +5 -6
  48. package/docs/functions/CameraMovementPlugin.html +5 -6
  49. package/docs/functions/CruisePlugin.html +7 -8
  50. package/docs/functions/CurrentPanoImagePlugin.html +5 -6
  51. package/docs/functions/GuideLinePlugin.html +5 -6
  52. package/docs/functions/ItemLabelPlugin.html +5 -6
  53. package/docs/functions/MapviewFloorplanPlugin.html +5 -6
  54. package/docs/functions/ModelChassisCompassPlugin.html +5 -6
  55. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -6
  56. package/docs/functions/ModelFloorplanPlugin.html +5 -6
  57. package/docs/functions/ModelItemLabelPlugin.html +5 -6
  58. package/docs/functions/ModelRoomLabelPlugin.html +5 -6
  59. package/docs/functions/ModelTVVideoPlugin.html +5 -6
  60. package/docs/functions/ModelViewPlugin.html +5 -6
  61. package/docs/functions/Object3DHelperPlugin.html +5 -6
  62. package/docs/functions/PanoCompassPlugin.html +5 -6
  63. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -6
  64. package/docs/functions/PanoDoorLabelPlugin.html +5 -6
  65. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -6
  66. package/docs/functions/PanoMeasurePlugin.html +5 -6
  67. package/docs/functions/PanoRulerPlugin.html +5 -6
  68. package/docs/functions/PanoRulerProPlugin.html +5 -6
  69. package/docs/functions/PanoSpatialTagPlugin.html +5 -6
  70. package/docs/functions/PanoTagPlugin.html +5 -6
  71. package/docs/functions/PanoVideoPlugin.html +5 -6
  72. package/docs/functions/PipelinePlugin.html +5 -6
  73. package/docs/functions/TopviewFloorplanPlugin.html +5 -6
  74. package/docs/functions/Util.absoluteUrl.html +5 -6
  75. package/docs/functions/Util.checkFiveModelLoaded.html +5 -6
  76. package/docs/functions/Util.equal.html +5 -6
  77. package/docs/functions/Util.getCoordsFromClient.html +5 -6
  78. package/docs/functions/Util.getCoordsFromElement.html +5 -6
  79. package/docs/functions/Util.getFrameTime.html +5 -6
  80. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -6
  81. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -6
  82. package/docs/functions/Util.isAbsoluteURL.html +5 -6
  83. package/docs/functions/Util.isModelLike.html +5 -6
  84. package/docs/functions/Util.isNil.html +5 -6
  85. package/docs/functions/Util.isPanoramaLike.html +5 -6
  86. package/docs/functions/Util.nextFrame.html +5 -6
  87. package/docs/functions/Util.notNil.html +5 -6
  88. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -6
  89. package/docs/functions/Util.tweenProgress.html +5 -6
  90. package/docs/functions/Util.uuid.html +5 -6
  91. package/docs/functions/pluginFlag.html +5 -6
  92. package/docs/index.html +6 -7
  93. package/docs/interfaces/AddTagConfig.html +5 -6
  94. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +5 -6
  95. package/docs/interfaces/AreaMakerPluginType.Config.html +5 -6
  96. package/docs/interfaces/AreaMakerPluginType.EventMap.html +5 -6
  97. package/docs/interfaces/AreaMakerPluginType.Params.html +5 -6
  98. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +5 -6
  99. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +5 -6
  100. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +5 -6
  101. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +5 -6
  102. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +5 -6
  103. package/docs/interfaces/AreaMakerPluginType.State.html +5 -6
  104. package/docs/interfaces/CSS3DRenderPluginEventMap.html +5 -6
  105. package/docs/interfaces/CSS3DRenderPluginState.html +5 -6
  106. package/docs/interfaces/CameraMovementPluginExportType.html +5 -6
  107. package/docs/interfaces/CruisePluginTypes.Config.html +6 -7
  108. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +6 -7
  109. package/docs/interfaces/CruisePluginTypes.EventMap.html +6 -7
  110. package/docs/interfaces/CruisePluginTypes.MoveAction.html +6 -7
  111. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +6 -7
  112. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +6 -7
  113. package/docs/interfaces/CruisePluginTypes.PluginData.html +6 -7
  114. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -7
  115. package/docs/interfaces/CruisePluginTypes.PluginState.html +30 -10
  116. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +5 -6
  117. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +5 -6
  118. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +5 -6
  119. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +5 -6
  120. package/docs/interfaces/CurrentPanoImagePluginType.State.html +5 -6
  121. package/docs/interfaces/EventMap.html +5 -6
  122. package/docs/interfaces/FloorplanBounding.html +5 -6
  123. package/docs/interfaces/FloorplanData.html +5 -6
  124. package/docs/interfaces/FloorplanEntrance.html +5 -6
  125. package/docs/interfaces/FloorplanExtraObject.html +5 -6
  126. package/docs/interfaces/FloorplanExtraObject3D.html +5 -6
  127. package/docs/interfaces/FloorplanFloorData.html +5 -6
  128. package/docs/interfaces/FloorplanImagePosition.html +5 -6
  129. package/docs/interfaces/FloorplanObserver.html +5 -6
  130. package/docs/interfaces/FloorplanOutlineItem.html +5 -6
  131. package/docs/interfaces/FloorplanPosition.html +5 -6
  132. package/docs/interfaces/FloorplanRoomItem.html +5 -6
  133. package/docs/interfaces/FloorplanRoomLabelItem.html +5 -6
  134. package/docs/interfaces/FloorplanServerBounding.html +5 -6
  135. package/docs/interfaces/FloorplanServerComputedData.html +5 -6
  136. package/docs/interfaces/FloorplanServerData.html +5 -6
  137. package/docs/interfaces/FloorplanServerDoorItem.html +5 -6
  138. package/docs/interfaces/FloorplanServerDoorPosition.html +5 -6
  139. package/docs/interfaces/FloorplanServerEntrance.html +5 -6
  140. package/docs/interfaces/FloorplanServerFloorData.html +5 -6
  141. package/docs/interfaces/FloorplanServerImagePosition.html +5 -6
  142. package/docs/interfaces/FloorplanServerObserver.html +5 -6
  143. package/docs/interfaces/FloorplanServerOutlineItem.html +5 -6
  144. package/docs/interfaces/FloorplanServerPosition.html +5 -6
  145. package/docs/interfaces/FloorplanServerRoomItem.html +5 -6
  146. package/docs/interfaces/FloorplanServerRoomLabelItem.html +5 -6
  147. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +5 -6
  148. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +6 -7
  149. package/docs/interfaces/GuideLinePluginType.EventMap.html +6 -7
  150. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +6 -7
  151. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +6 -7
  152. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +6 -7
  153. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +6 -7
  154. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +6 -7
  155. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +6 -7
  156. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -7
  157. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +6 -7
  158. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -7
  159. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -7
  160. package/docs/interfaces/GuideLinePluginType.PluginState.html +6 -7
  161. package/docs/interfaces/GuideLinePluginType.Route.html +6 -7
  162. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +6 -7
  163. package/docs/interfaces/HelperOffset.html +5 -6
  164. package/docs/interfaces/ImagePlaneGroup.html +7 -8
  165. package/docs/interfaces/ItemLabelPluginData.html +5 -6
  166. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +5 -6
  167. package/docs/interfaces/ItemLabelPluginParametersType.html +5 -6
  168. package/docs/interfaces/MinMax.html +5 -6
  169. package/docs/interfaces/ModelChassisCompassPluginData.html +5 -6
  170. package/docs/interfaces/ModelChassisCompassPluginExportType.html +5 -6
  171. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +5 -6
  172. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +5 -6
  173. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +5 -6
  174. package/docs/interfaces/ModelItemLabelPluginData.html +5 -6
  175. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +5 -6
  176. package/docs/interfaces/ModelItemLabelPluginParametersType.html +5 -6
  177. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -6
  178. package/docs/interfaces/ModelTVVideoPluginData.html +5 -6
  179. package/docs/interfaces/ModelTVVideoPluginExportType.html +5 -6
  180. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -6
  181. package/docs/interfaces/ModelViewPluginExportType.html +5 -6
  182. package/docs/interfaces/Object3DHelperState.html +5 -6
  183. package/docs/interfaces/ObjectHelperControllers.html +5 -6
  184. package/docs/interfaces/PaintBrushAction.html +5 -6
  185. package/docs/interfaces/PaintBrushConfigs.html +5 -6
  186. package/docs/interfaces/PaintBrushState.html +5 -6
  187. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +5 -6
  188. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -6
  189. package/docs/interfaces/PanoMeasureParameterType.html +5 -6
  190. package/docs/interfaces/PanoMeasurePluginLineJson.html +5 -6
  191. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +5 -6
  192. package/docs/interfaces/PanoMeasurePluginPointJson.html +5 -6
  193. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +5 -6
  194. package/docs/interfaces/PanoRulerPluginExportType.html +5 -6
  195. package/docs/interfaces/PanoRulerPluginOptions.html +5 -6
  196. package/docs/interfaces/PanoRulerPluginParameterType.html +5 -6
  197. package/docs/interfaces/PanoRulerProPluginExportType.html +5 -6
  198. package/docs/interfaces/PanoRulerProPluginOptions.html +5 -6
  199. package/docs/interfaces/PanoRulerProPluginParameterType.html +5 -6
  200. package/docs/interfaces/PanoRulerProPluginState.html +5 -6
  201. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -6
  202. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -6
  203. package/docs/interfaces/PanoSpatialTagPluginData.html +5 -6
  204. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +5 -6
  205. package/docs/interfaces/PanoSpatialTagPluginExportType.html +5 -6
  206. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +5 -6
  207. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +5 -6
  208. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +5 -6
  209. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +5 -6
  210. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -6
  211. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -6
  212. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -6
  213. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +5 -6
  214. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -6
  215. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -6
  216. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +5 -6
  217. package/docs/interfaces/Point.html +5 -6
  218. package/docs/interfaces/Room.html +5 -6
  219. package/docs/interfaces/RoomInfo.html +5 -6
  220. package/docs/interfaces/RoomLabel.html +5 -6
  221. package/docs/interfaces/RoomRules.html +5 -6
  222. package/docs/interfaces/Rooms.html +5 -6
  223. package/docs/interfaces/Scissor.html +5 -6
  224. package/docs/interfaces/State.html +5 -6
  225. package/docs/interfaces/TagCacheInterface.html +5 -6
  226. package/docs/interfaces/TagConfig.html +5 -6
  227. package/docs/interfaces/TagGLTFObjectGroup.html +7 -8
  228. package/docs/interfaces/TagIconUrl.html +5 -6
  229. package/docs/interfaces/TagObjectGroup.html +7 -8
  230. package/docs/interfaces/TagStyle.html +5 -6
  231. package/docs/interfaces/Tags.html +5 -6
  232. package/docs/interfaces/TemporaryState.html +5 -6
  233. package/docs/interfaces/Util.MagnifierParameter.html +5 -6
  234. package/docs/interfaces/Util.MouseGroupParameter.html +5 -6
  235. package/docs/interfaces/Util.PointIntersection.html +5 -6
  236. package/docs/modules/AreaMakerPluginType.html +5 -6
  237. package/docs/modules/CruisePluginTypes.html +5 -6
  238. package/docs/modules/CurrentPanoImagePluginType.html +5 -6
  239. package/docs/modules/GuideLineItem.html +5 -6
  240. package/docs/modules/GuideLineModeItem.html +5 -6
  241. package/docs/modules/GuideLinePluginType.html +5 -6
  242. package/docs/modules/PanoVideoPluginType.html +5 -6
  243. package/docs/modules/Util.html +5 -6
  244. package/docs/modules.html +11 -27
  245. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +5 -6
  246. package/docs/types/AreaMakerPluginType.PluginData.html +5 -6
  247. package/docs/types/AreaMakerPluginType.ServerData.html +5 -6
  248. package/docs/types/ArrayPosition.html +5 -6
  249. package/docs/types/AudioAppearance.html +6 -7
  250. package/docs/types/AudioTagTypeConfigKey.html +6 -7
  251. package/docs/types/CSS3DRenderExportType.html +5 -6
  252. package/docs/types/CSS3DRenderPluginExportType.html +5 -6
  253. package/docs/types/CSS3DRenderPluginParameterType.html +5 -6
  254. package/docs/types/ClassFunctionParameters.html +5 -6
  255. package/docs/types/Color.html +5 -6
  256. package/docs/types/ContentTypeConfigKey.html +6 -7
  257. package/docs/types/ContentTypeConfigKeySplit.html +6 -7
  258. package/docs/types/ContentTypeMap.html +5 -6
  259. package/docs/types/Create3DDomContainerReturnType.html +5 -6
  260. package/docs/types/Create3DElementReturnType.html +5 -6
  261. package/docs/types/CruisePluginExportType.html +5 -6
  262. package/docs/types/CruisePluginTypes.CruiseData.html +6 -7
  263. package/docs/types/CruisePluginTypes.MoveEffect.html +6 -7
  264. package/docs/types/CurrentPanoImagePluginExportType.html +5 -6
  265. package/docs/types/DeprecatedMediaPlaneProperty.html +5 -6
  266. package/docs/types/DeprecatedTagProperty.html +5 -6
  267. package/docs/types/Direction-1.html +5 -6
  268. package/docs/types/Direction4.html +5 -6
  269. package/docs/types/ElementRenderer.html +5 -6
  270. package/docs/types/FloorplanRuleLabels.html +5 -6
  271. package/docs/types/FloorplanServerRuleLabels.html +5 -6
  272. package/docs/types/GuideLinePluginExportType.html +5 -6
  273. package/docs/types/GuideLinePluginType.GuideLineItem.html +6 -7
  274. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +6 -7
  275. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +6 -7
  276. package/docs/types/GuideLinePluginType.GuideLineStyle.html +6 -7
  277. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +6 -7
  278. package/docs/types/GuideLinePluginType.PathItem.html +6 -7
  279. package/docs/types/GuideLinePluginType.PluginData.html +6 -7
  280. package/docs/types/HelperEventMap.html +5 -6
  281. package/docs/types/LoadTagConfig.html +5 -6
  282. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -6
  283. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -6
  284. package/docs/types/MediaData.html +5 -6
  285. package/docs/types/MediaStore.html +5 -6
  286. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -6
  287. package/docs/types/ModelFloorplanPluginParameterType.html +5 -6
  288. package/docs/types/ModelFloorplanPluginReturnType.html +5 -6
  289. package/docs/types/ModelId.html +5 -6
  290. package/docs/types/ModelRoomLabelPluginParameters.html +5 -6
  291. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -6
  292. package/docs/types/MoveArgs.html +5 -6
  293. package/docs/types/MoveOpts.html +5 -6
  294. package/docs/types/Object3DHelperEventMap.html +5 -6
  295. package/docs/types/ObjectFit.html +5 -6
  296. package/docs/types/PaintBrushEventMap.html +5 -6
  297. package/docs/types/PanoCompassPluginData.html +5 -6
  298. package/docs/types/PanoCompassPluginExportType.html +5 -6
  299. package/docs/types/PanoCompassPluginParameterType.html +5 -6
  300. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -6
  301. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -6
  302. package/docs/types/PanoIndex.html +5 -6
  303. package/docs/types/PanoMeasurePluginEvent.html +5 -6
  304. package/docs/types/PanoMeasureReturnType.html +5 -6
  305. package/docs/types/PanoSpatialTagPluginId.html +5 -6
  306. package/docs/types/PanoTagPluginExportInterface.html +5 -6
  307. package/docs/types/PanoTagPluginParamsInterface.html +5 -6
  308. package/docs/types/PanoVideoPluginParameterType.html +5 -6
  309. package/docs/types/PanoVideoPluginReturnType.html +5 -6
  310. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +6 -7
  311. package/docs/types/PipelinePluginParameterType.html +5 -6
  312. package/docs/types/PipelinePluginReturnType.html +5 -6
  313. package/docs/types/PlaneTag.html +6 -7
  314. package/docs/types/Point2DTag.html +6 -7
  315. package/docs/types/Point3DTag.html +6 -7
  316. package/docs/types/PointTag.html +6 -7
  317. package/docs/types/PointTagInstance.html +5 -6
  318. package/docs/types/Position.html +5 -6
  319. package/docs/types/RotateArgs.html +5 -6
  320. package/docs/types/RotateOpts.html +5 -6
  321. package/docs/types/RuleLabelsKey.html +5 -6
  322. package/docs/types/RuleLabelsValue.html +5 -6
  323. package/docs/types/StickType.html +5 -6
  324. package/docs/types/Tag.html +5 -6
  325. package/docs/types/Tag2D.html +5 -6
  326. package/docs/types/Tag3D.html +5 -6
  327. package/docs/types/TagConfigByKey.html +6 -7
  328. package/docs/types/TagContentType.html +5 -6
  329. package/docs/types/TagContentTypeMapping.html +280 -0
  330. package/docs/types/TagDimensionType.html +5 -6
  331. package/docs/types/TagElement.html +5 -6
  332. package/docs/types/TagEvents.html +5 -6
  333. package/docs/types/TagGLTFObject.html +5 -6
  334. package/docs/types/TagHooks.html +5 -6
  335. package/docs/types/TagId.html +5 -6
  336. package/docs/types/TagInstance.html +5 -6
  337. package/docs/types/TagPointType.html +5 -6
  338. package/docs/types/TagRendererMap.html +5 -6
  339. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -6
  340. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -6
  341. package/docs/types/WorkCode.html +5 -6
  342. package/docs/variables/FLOOR_TYPE_MAP.html +5 -6
  343. package/docs/variables/PLUGIN.html +5 -6
  344. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -6
  345. package/docs/variables/ROOM_TYPE_MAP.html +5 -6
  346. package/docs/variables/defaultGlobalConfig.html +5 -6
  347. package/docs/variables/itemLabelPluginServerParams.html +5 -6
  348. package/docs/variables/modelItemLabelPluginServerParams.html +5 -6
  349. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -6
  350. package/libs/CruisePlugin/Controller.d.ts +171 -0
  351. package/libs/CruisePlugin/Controller.js +760 -0
  352. package/libs/CruisePlugin/index.d.ts +3 -4
  353. package/libs/CruisePlugin/index.js +12 -17
  354. package/libs/CruisePlugin/typing.d.ts +2 -2
  355. package/libs/GuideLinePlugin/Controller.d.ts +6 -1
  356. package/libs/GuideLinePlugin/Controller.js +62 -48
  357. package/libs/GuideLinePlugin/GuideLineItem/index.js +43 -53
  358. package/libs/GuideLinePlugin/GuideLineItem.js +10 -13
  359. package/libs/GuideLinePlugin/index.js +17 -20
  360. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +8 -8
  361. package/libs/PanoTagPlugin/Components/Tag/index.js +336 -291
  362. package/libs/PanoTagPlugin/Components/TagContainer.js +100 -84
  363. package/libs/PanoTagPlugin/Components/TagItem.js +122 -114
  364. package/libs/PanoTagPlugin/controller/TagRender.d.ts +4 -2
  365. package/libs/PanoTagPlugin/controller/TagRender.js +51 -46
  366. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -0
  367. package/libs/base/BasePlugin.js +1 -1
  368. package/libs/index.js +119 -124
  369. package/libs/shared-utils/logger.js +1 -1
  370. package/package.json +2 -2
  371. package/dist/CruisePlugin/BaseController.d.ts +0 -159
  372. package/dist/CruisePlugin/Move.d.ts +0 -40
  373. package/dist/CruisePlugin/Work.d.ts +0 -120
  374. package/dist/CruisePlugin/utils/getFiveStateOnCurve.d.ts +0 -11
  375. package/dist/shared-utils/five/fiveLoaded.d.ts +0 -2
  376. package/docs/classes/MoveController.html +0 -651
  377. package/libs/CruisePlugin/BaseController.d.ts +0 -159
  378. package/libs/CruisePlugin/BaseController.js +0 -231
  379. package/libs/CruisePlugin/Move.d.ts +0 -40
  380. package/libs/CruisePlugin/Move.js +0 -120
  381. package/libs/CruisePlugin/Work.d.ts +0 -120
  382. package/libs/CruisePlugin/Work.js +0 -597
  383. package/libs/CruisePlugin/utils/getFiveStateOnCurve.d.ts +0 -11
  384. package/libs/CruisePlugin/utils/getFiveStateOnCurve.js +0 -11
  385. package/libs/shared-utils/five/fiveLoaded.d.ts +0 -2
  386. package/libs/shared-utils/five/fiveLoaded.js +0 -30
  387. package/libs/shared-utils/formatRad.d.ts +0 -7
  388. package/libs/shared-utils/formatRad.js +0 -7
  389. /package/dist/{shared-utils → CruisePlugin/utils}/formatRad.d.ts +0 -0
  390. /package/dist/{shared-utils/vectorToCoordinate.d.ts → CruisePlugin/utils/vectorToCoordinates.d.ts} +0 -0
  391. /package/libs/{shared-utils/vectorToCoordinate.d.ts → CruisePlugin/utils/vectorToCoordinates.d.ts} +0 -0
  392. /package/libs/{shared-utils/vectorToCoordinate.js → CruisePlugin/utils/vectorToCoordinates.js} +0 -0
@@ -1,597 +0,0 @@
1
- var D = Object.defineProperty, C = Object.defineProperties;
2
- var K = Object.getOwnPropertyDescriptors;
3
- var E = Object.getOwnPropertySymbols;
4
- var L = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
5
- var I = (h, l, t) => l in h ? D(h, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[l] = t, g = (h, l) => {
6
- for (var t in l || (l = {}))
7
- L.call(l, t) && I(h, t, l[t]);
8
- if (E)
9
- for (var t of E(l))
10
- T.call(l, t) && I(h, t, l[t]);
11
- return h;
12
- }, x = (h, l) => C(h, K(l));
13
- var k = (h, l, t) => (I(h, typeof l != "symbol" ? l + "" : l, t), t);
14
- var y = (h, l, t) => new Promise((i, r) => {
15
- var e = (d) => {
16
- try {
17
- s(t.next(d));
18
- } catch (o) {
19
- r(o);
20
- }
21
- }, n = (d) => {
22
- try {
23
- s(t.throw(d));
24
- } catch (o) {
25
- r(o);
26
- }
27
- }, s = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(e, n);
28
- s((t = t.apply(h, l)).next());
29
- });
30
- import { GuideLinePlugin as M } from "../GuideLinePlugin/index.js";
31
- import { uuid as S } from "../shared-utils/uuid.js";
32
- import { coordinatesAngle as A } from "./utils/coordinatesAngle.js";
33
- import { safeCall as G } from "./utils/safeCall.js";
34
- import * as O from "three";
35
- import { sleep as Q } from "./utils/sleep.js";
36
- import { waitFiveLoaded as U } from "../shared-utils/five/fiveLoaded.js";
37
- import { vectorToCoordinates as _ } from "../shared-utils/vectorToCoordinate.js";
38
- import R from "./BaseController.js";
39
- import "../GuideLinePlugin/Controller.js";
40
- import "../base/BasePluginWithData.js";
41
- import "../base/BasePlugin.js";
42
- import "../shared-utils/Subscribe.js";
43
- import "hammerjs";
44
- import "@realsee/five";
45
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
46
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
47
- import "../shared-utils/positionToVector3.js";
48
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
49
- import "three/examples/jsm/renderers/CSS3DRenderer";
50
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
51
- import "../shared-utils/util.js";
52
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
53
- import "../CSS3DRenderPlugin/utils/even.js";
54
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
55
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
56
- import "../shared-utils/three/centerPoint.js";
57
- import "../shared-utils/three/getObjectVisible.js";
58
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
59
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
60
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
61
- import "../shared-utils/url/absoluteUrl.js";
62
- import "../shared-utils/equal.js";
63
- import "../shared-utils/isTruelyObject.js";
64
- import "../GuideLinePlugin/GuideLineItem/index.js";
65
- import "../GuideLinePlugin/GuideLineModeItem/index.js";
66
- import "../shared-utils/log.js";
67
- import "../GuideLinePlugin/utils/createLineGeometry.js";
68
- import "../vendor/polyline-normals/index.js";
69
- import "../vendor/polyline-miter-util/index.js";
70
- import "../vendor/gl-vec2/add.js";
71
- import "../vendor/gl-vec2/set.js";
72
- import "../vendor/gl-vec2/normalize.js";
73
- import "../vendor/gl-vec2/subtract.js";
74
- import "../vendor/gl-vec2/dot.js";
75
- import "../shared-utils/five/mode.js";
76
- import "../shared-utils/animationFrame/BetterTween.js";
77
- import "../shared-utils/animationFrame/index.js";
78
- import "../shared-utils/three/loadTexture.js";
79
- import "../PanoTagPlugin/controller/index.js";
80
- import "../vendor/object-assign-deep/objectAssignDeep.js";
81
- import "../PanoTagPlugin/utils/addDebugPoints.js";
82
- import "../PanoTagPlugin/utils/tag/tagCheck.js";
83
- import "../PanoTagPlugin/utils/debounce.js";
84
- import "../PanoTagPlugin/utils/throttle.js";
85
- import "../PanoTagPlugin/utils/resizeObserver.js";
86
- import "../PanoTagPlugin/utils/tag/format.js";
87
- import "../shared-utils/audio.js";
88
- import "../PanoTagPlugin/controller/TagRender.js";
89
- import "../PanoTagPlugin/controller/TagComputer.js";
90
- import "../PanoTagPlugin/utils/tagPosition.js";
91
- import "../PanoTagPlugin/utils/checkRange.js";
92
- import "../shared-utils/isNil.js";
93
- import "../PanoTagPlugin/controller/TagUtil.js";
94
- import "../PanoTagPlugin/typings/tag/TagConfig.js";
95
- import "../PanoTagPlugin/tag.config.js";
96
- import "../PanoTagPlugin/utils/planeNormal.js";
97
- import "../PanoTagPlugin/utils/normalPositionToPositions.js";
98
- import "../PanoTagPlugin/controller/TagCache.js";
99
- import "../vendor/svelte/store/index.js";
100
- import "../vendor/svelte/internal/index.js";
101
- import "../shared-utils/device.js";
102
- import "../PanoTagPlugin/utils/model/mediaPlane.js";
103
- import "../shared-utils/three/Quadrangle.js";
104
- import "../shared-utils/math/pointIsRectangle.js";
105
- import "../shared-utils/three/loadVideoTexture.js";
106
- import "../PanoTagPlugin/Assets/Icon.js";
107
- import "../shared-utils/three/getPositionsByObjectFit.js";
108
- import "../shared-utils/three/FragmentTransparencyMaterial.js";
109
- import "../shared-utils/three/getNormal.js";
110
- import "../shared-utils/five/FiveDomEvents.js";
111
- import "../shared-utils/five/calculateThreeMouse.js";
112
- import "../PanoTagPlugin/utils/tag/adaptConfig.js";
113
- import "../shared-utils/typescript/entries.js";
114
- import "../shared-utils/url/getUrl.js";
115
- import "../shared-utils/five/transformPosition.js";
116
- import "../shared-utils/five/getFloorIndex.js";
117
- import "../shared-utils/safeObj.js";
118
- import "../PanoTagPlugin/Components/TagContainer.js";
119
- import "../PanoTagPlugin/Components/TagItem.js";
120
- import "../PanoTagPlugin/Components/Tag/index.js";
121
- import "../PanoTagPlugin/Components/Tag/TextTag/index.js";
122
- import "../PanoTagPlugin/Components/Tag/TextTag/TextTag.js";
123
- import "../PanoTagPlugin/Components/Common/Line/Straight.js";
124
- import "../vendor/svelte/transition/index.js";
125
- import "../vendor/svelte/easing/index.js";
126
- import "../PanoTagPlugin/Components/Common/Shadow.js";
127
- import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
128
- import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
129
- import "animejs";
130
- import "../PanoTagPlugin/utils/search.js";
131
- import "../PanoTagPlugin/utils/constants.js";
132
- import "../PanoTagPlugin/Components/Common/Arrow.js";
133
- import "../PanoTagPlugin/utils/doUtil.js";
134
- import "../shared-utils/svelte/resizeObserver.js";
135
- import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
136
- import "../PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js";
137
- import "../PanoTagPlugin/Components/Common/Text/MText.js";
138
- import "../PanoTagPlugin/utils/px2rem.js";
139
- import "../PanoTagPlugin/Components/Tag/ImageTextTag.js";
140
- import "../PanoTagPlugin/Components/Common/Line/Polyline.js";
141
- import "../PanoTagPlugin/Components/Common/Media.js";
142
- import "../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
143
- import "../vendor/svelte-carousel/src/components/Dots/Dots.js";
144
- import "../vendor/svelte-carousel/src/components/Dot/Dot.js";
145
- import "../vendor/svelte-carousel/src/components/Arrow/Arrow.js";
146
- import "../vendor/svelte-carousel/src/direction.js";
147
- import "../vendor/svelte-carousel/src/components/Progress/Progress.js";
148
- import "../vendor/svelte-carousel/src/actions/swipeable/swipeable.js";
149
- import "../vendor/svelte-carousel/src/actions/swipeable/event.js";
150
- import "../vendor/svelte-carousel/src/utils/event.js";
151
- import "../vendor/svelte-carousel/src/units.js";
152
- import "../vendor/svelte-carousel/src/actions/hoverable/hoverable.js";
153
- import "../vendor/svelte-carousel/src/actions/hoverable/event.js";
154
- import "../vendor/svelte-carousel/src/actions/tappable/tappable.js";
155
- import "../vendor/svelte-carousel/src/utils/math.js";
156
- import "../vendor/svelte-carousel/src/actions/tappable/event.js";
157
- import "../vendor/svelte-carousel/src/utils/page.js";
158
- import "../vendor/svelte-carousel/src/utils/clones.js";
159
- import "../vendor/svelte-carousel/src/utils/object.js";
160
- import "../vendor/svelte-carousel/src/components/Carousel/createCarousel.js";
161
- import "../vendor/easy-reactive/src/simply-reactive.js";
162
- import "../vendor/lodash.get/index.js";
163
- import "../_commonjsHelpers.js";
164
- import "../vendor/lodash.clonedeep/index.js";
165
- import "../vendor/easy-reactive/src/utils/subscription.js";
166
- import "../vendor/easy-reactive/src/utils/object.js";
167
- import "../vendor/lodash.isequal/index.js";
168
- import "../vendor/easy-reactive/src/utils/watcher.js";
169
- import "../vendor/svelte-carousel/src/utils/lazy.js";
170
- import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
171
- import "../vendor/svelte-carousel/src/utils/interval.js";
172
- import "../PanoTagPlugin/Components/Common/MediaItem.js";
173
- import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
174
- import "../PanoTagPlugin/utils/noTypecheck.js";
175
- import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
176
- import "../PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
177
- import "../PanoTagPlugin/Components/Common/Audio.js";
178
- import "../PanoTagPlugin/utils/audio/SharedAudio.js";
179
- import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
180
- import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
181
- import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
182
- import "../PanoTagPlugin/Components/Tag/LinkTag.js";
183
- import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
184
- import "../PanoTagPlugin/utils/getImageInfo.js";
185
- import "../PanoTagPlugin/Components/Tag/PanoramaTag.js";
186
- import "../PanoTagPlugin/Components/Tag/CustomTag.js";
187
- import "../vendor/classnames/index.js";
188
- import "../PanoTagPlugin/Components/Common/TagPoint.js";
189
- import "../CSS3DRenderPlugin/index.js";
190
- import "../CSS3DRenderPlugin/Controller.js";
191
- import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
192
- import "../shared-utils/three/GLTFLoader.js";
193
- import "@realsee/five/gltf-loader";
194
- import "../shared-utils/five/fiveModelLoad.js";
195
- import "../GuideLinePlugin/Components/Tag.js";
196
- import "../GuideLinePlugin/utils/index.js";
197
- import "../shared-utils/to.js";
198
- import "../shared-utils/five/changeMode.js";
199
- import "../shared-utils/nearlyEqual.js";
200
- import "./Move.js";
201
- import "./utils/getFiveStateOnCurve.js";
202
- import "../shared-utils/formatRad.js";
203
- import "./Work.js";
204
- import "./utils/coordinatesToVector.js";
205
- const V = /* @__PURE__ */ new Map();
206
- class er extends R {
207
- constructor(t, i) {
208
- super(t, i);
209
- k(this, "state", {
210
- visible: !0,
211
- enabled: !0,
212
- disposed: !1,
213
- playing: !1,
214
- speed: 1,
215
- config: {
216
- speedConfig: {
217
- rotateSpeed: 1e-3,
218
- rotateSpeedUnit: "rad/ms",
219
- moveSpeed: 2e-3,
220
- moveSpeedUnit: "m/ms"
221
- }
222
- }
223
- });
224
- k(this, "privateState", {
225
- playing: !1,
226
- currentPlayQueue: [],
227
- currentPlayKeyframe: null,
228
- broke: !1,
229
- modeChanging: !1
230
- });
231
- this.config = i, Object.assign(window, { __WalkPlugin_DEBUG__: this });
232
- }
233
- /**
234
- * @description Load Data and State
235
- */
236
- load(t, i, r) {
237
- return y(this, null, function* () {
238
- var a, m;
239
- if (this.state.disposed)
240
- return this.disposedErrorLog();
241
- this.clear();
242
- const e = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(t);
243
- this.data = g({ id: n.keyframesId }, n), this.hooks.emit("dataChange", n, e);
244
- let s = [], d;
245
- const o = this.data.keyframes.filter((p) => p.data.panoIndex !== void 0);
246
- o.filter((p, f) => {
247
- var u;
248
- return p.data.panoIndex !== ((u = o[f - 1]) == null ? void 0 : u.data.panoIndex);
249
- }).map((p) => p.data.panoIndex).forEach((p) => {
250
- var u, v;
251
- const f = (u = this.five.work.observers[p]) == null ? void 0 : u.floorIndex;
252
- if (f !== void 0)
253
- if (d === f) {
254
- const c = s.length - 1;
255
- s[c] = [...(v = s[c]) != null ? v : [], p];
256
- } else {
257
- d = f;
258
- const c = s.length;
259
- s[c] = [p];
260
- }
261
- }), !this.GuideLine && ((a = this.config) == null ? void 0 : a.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = M(this.five, this.config)), (m = this.GuideLine) == null || m.load({ routes: s.map((p) => ({ panoIndexList: p })), config: n.guildPluginOptions }), i ? this.setState(i, { userAction: r }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug("WORKPLUGIN loaded", n), this.hooks.emit("dataLoaded", n);
262
- });
263
- }
264
- /**
265
- * @description If playing, first pause, then play from keyframes index/id
266
- * @param {number} options.index play from keyframes index
267
- * @param {string} options.id play from keyframes id
268
- */
269
- playFrom(t) {
270
- const { index: i, id: r, userAction: e } = t;
271
- this.state.playing && this.setState({ playing: !1 }, { userAction: e }), this.setState({ playing: !0 }, { userAction: e, playFromIndex: i, playFromId: r });
272
- }
273
- /**
274
- * @description Play from first keyframe
275
- */
276
- playFromStart(t) {
277
- return this.playFrom(x(g({}, t), { index: 0 }));
278
- }
279
- /**
280
- * @description Format data
281
- */
282
- formatData(t) {
283
- return y(this, null, function* () {
284
- this.five.work || (yield U(this.five));
285
- const i = this.five.work.observers, r = (() => {
286
- const e = t;
287
- return typeof e == "object" && e !== null && e.version && e.data ? e.data : e;
288
- })();
289
- if (r.keyframes)
290
- return {
291
- keyframesId: S(),
292
- keyframes: r.keyframes.map((e, n) => {
293
- var o;
294
- const s = r.keyframes[n + 1], d = (() => !s || s.start === void 0 || e.end === void 0 ? 0 : s.start - e.end)();
295
- return x(g({ id: (o = e.uuid) != null ? o : S(), moveIndex: n, stay: d, index: n }, e), { guildPluginOptions: r.guildPluginOptions });
296
- })
297
- };
298
- if (r.panoIndexList) {
299
- let e = [];
300
- const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: d } = r;
301
- return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = d, r.panoIndexList.forEach((o, a) => {
302
- const m = (() => {
303
- var c, P, w, b;
304
- const p = r.panoIndexList.slice(a).find((F) => F !== o);
305
- if (p === void 0)
306
- return;
307
- const f = (c = i[o]) == null ? void 0 : c.position, u = (P = i[p]) == null ? void 0 : P.position;
308
- if (!u || !f || ((w = i[o]) == null ? void 0 : w.floorIndex) !== ((b = i[p]) == null ? void 0 : b.floorIndex))
309
- return;
310
- const v = new O.Vector3().subVectors(u, f);
311
- return _(v.normalize());
312
- })();
313
- r.moveType === void 0 || r.moveType === "justMove" ? e.push({
314
- moveIndex: a,
315
- stay: r.stay,
316
- data: g({ effect: "Move", panoIndex: o, moveEffect: n }, m != null ? m : {})
317
- }) : r.moveType === "moveAndRotate" && (e.push({ moveIndex: a, stay: r.stay, data: { effect: "Move", panoIndex: o, moveEffect: n } }), m && e.push({ moveIndex: a, stay: r.stay, data: g({ effect: "Rotate", panoIndex: o }, m) }));
318
- }), {
319
- keyframesId: S(),
320
- keyframes: e.map((o, a) => g({ id: S(), index: a }, o)),
321
- guildPluginOptions: r.guildPluginOptions,
322
- useGuildLine: r.useGuildLine
323
- };
324
- } else
325
- throw new Error("format error: data no keyframes or no panoIndexList");
326
- });
327
- }
328
- /**
329
- * @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
330
- * @param {number} options.playFromIndex play from keyframes index
331
- * @param {string} options.playFromId play from keyframes id
332
- */
333
- // eslint-disable-next-line complexity
334
- handlePlay(t) {
335
- return y(this, null, function* () {
336
- var f;
337
- const { data: i, state: r, privateState: e, hooks: n } = this;
338
- if (e.playing || !(i != null && i.keyframes) || (i == null ? void 0 : i.keyframes.length) === 0)
339
- return;
340
- const s = S();
341
- e.playId = s, e.playing = !0, e.broke = !1;
342
- const d = i.keyframes, o = this.getPauseData();
343
- (t == null ? void 0 : t.notEmitEvent) !== !0 && n.emit("play", { userAction: (f = t == null ? void 0 : t.userAction) != null ? f : !0 });
344
- let a = !1;
345
- const p = yield (() => y(this, null, function* () {
346
- var u, v;
347
- if ((t == null ? void 0 : t.playFromIndex) !== void 0)
348
- return t.playFromIndex;
349
- if ((t == null ? void 0 : t.playFromId) !== void 0)
350
- return (u = this.data) == null ? void 0 : u.keyframes.findIndex((c) => c.id === t.playFromId);
351
- if (o != null && o.id) {
352
- const c = (v = this.data) == null ? void 0 : v.keyframes.find((P) => P.id === o.id);
353
- if (o != null && o.fiveState && (yield this.move(o.fiveState, {
354
- moveEffect: e.moveToFirstPanoEffect,
355
- duration: e.moveToFirstPanoDuration
356
- })), c) {
357
- if (c.data.effect === "Move")
358
- return c.index;
359
- if (c.data.effect === "Rotate") {
360
- const P = o.duration !== void 0 ? o.duration * (1 - o.playedProgress) : void 0;
361
- return yield this.playKeyframe(c, { duration: P }), a = !0, c.index + 1;
362
- }
363
- }
364
- }
365
- }))();
366
- this.clearPauseData();
367
- for (const u of d) {
368
- if (e.broke || !r.playing || !e.playing || s !== e.playId)
369
- return;
370
- if (!(p !== void 0 && u.index < p))
371
- try {
372
- n.emit("playIndexChange", u.index, u), yield this.playKeyframe(u, {
373
- moveEffect: a === !1 ? e.moveToFirstPanoEffect : void 0,
374
- duration: a === !1 && typeof e.moveToFirstPanoDuration == "number" ? e.moveToFirstPanoDuration : void 0
375
- }), u.stay && (yield Q(u.stay)), a === !1 && (a = !0);
376
- } catch (v) {
377
- return console.error(v), Promise.resolve("broke");
378
- }
379
- }
380
- r.playing && s === e.playId && (this.setState({ playing: !1 }, { userAction: !1 }), n.emit("end"), this.clearPauseData());
381
- });
382
- }
383
- /**
384
- * @description: Pause and record pause state
385
- */
386
- handlePause(t) {
387
- var n;
388
- const { state: i, privateState: r, hooks: e } = this;
389
- i.playing = !1, r.playing !== !1 && (r.playing = !1, (t == null ? void 0 : t.userAction) !== !1 && this.setPauseData(), r.broke || this.forceInteruptUpdateCamera(), (t == null ? void 0 : t.notEmitEvent) !== !0 && e.emit("pause", { userAction: (n = t == null ? void 0 : t.userAction) != null ? n : !0 }));
390
- }
391
- /**
392
- * @description: Change play speed
393
- */
394
- changeSpeed(t, i = !0) {
395
- const { state: r, privateState: e, hooks: n } = this, { currentPlayKeyframe: s } = e;
396
- if (n.emit("speedChange", t, { userAction: i }), r.playing && s)
397
- try {
398
- const d = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, o = this.playKeyframe(s.keyframe, { duration: d });
399
- e.currentPlayQueue.push(o);
400
- } catch (d) {
401
- }
402
- }
403
- /**
404
- * @description Get ratate progress
405
- */
406
- getProgress() {
407
- return this.five.controller.cameraMotion.progress;
408
- }
409
- /**
410
- * @description Set pause data
411
- */
412
- setPauseData() {
413
- var t, i, r, e;
414
- if ((t = this.data) != null && t.keyframesId)
415
- return V.set((i = this.data) == null ? void 0 : i.keyframesId, {
416
- id: (r = this.privateState.currentPlayKeyframe) == null ? void 0 : r.keyframe.id,
417
- fiveState: this.five.getCurrentState(),
418
- duration: (e = this.privateState.currentPlayKeyframe) == null ? void 0 : e.originDuration,
419
- playedProgress: this.getProgress()
420
- });
421
- }
422
- /**
423
- * @description: Restore state that before loaded
424
- */
425
- clear() {
426
- this.clearPauseData(), this.privateState.currentPlayKeyframe = null;
427
- }
428
- /**
429
- * @description Play single keyframe
430
- */
431
- playKeyframe(t, i) {
432
- return y(this, null, function* () {
433
- var e;
434
- const { privateState: r } = this;
435
- return ((e = this.privateState.currentPlayKeyframe) == null ? void 0 : e.keyframe.id) !== t.id && (this.privateState.currentPlayKeyframe = { keyframe: t }), r.currentPlayQueue.push(this.getPlayPromise(t, i)), this.actionPromiseQueue();
436
- });
437
- }
438
- /**
439
- * @description: getPlayPromise
440
- */
441
- getPlayPromise(r) {
442
- return y(this, arguments, function* (t, i = {}) {
443
- var n;
444
- const e = t.data;
445
- if (i.duration = (n = i.duration) != null ? n : t.start !== void 0 && t.end !== void 0 ? t.end - t.start : void 0, !!e)
446
- return new Promise((s, d) => {
447
- let o = !1;
448
- this.addInterruptListener(() => {
449
- if (!o)
450
- return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), o = !0, d(new Error("play is interupted"));
451
- });
452
- try {
453
- if (o)
454
- return;
455
- const a = () => {
456
- s(), o = !0;
457
- };
458
- switch (e.effect) {
459
- case "Move":
460
- this.move(e, i).then(a);
461
- break;
462
- case "Rotate":
463
- this.rotate(e, i).then(a);
464
- break;
465
- default:
466
- this.rotate(e, i).then(a);
467
- }
468
- } catch (a) {
469
- }
470
- });
471
- });
472
- }
473
- /**
474
- * @description Action promise queue in sequence
475
- */
476
- actionPromiseQueue() {
477
- return y(this, null, function* () {
478
- const { privateState: t } = this;
479
- return new Promise((i, r) => {
480
- if (t.currentPlayQueue.length === 0) {
481
- i();
482
- return;
483
- }
484
- const e = t.currentPlayQueue.shift();
485
- if (!e) {
486
- i();
487
- return;
488
- }
489
- e.then(i, r);
490
- }).then(() => t.currentPlayQueue.length === 0 ? Promise.resolve() : this.actionPromiseQueue());
491
- });
492
- }
493
- /**
494
- * @description Action move keyframe
495
- */
496
- move(t, i) {
497
- return y(this, null, function* () {
498
- if (t.mode && t.mode !== this.five.currentMode)
499
- yield this.changeMode(t);
500
- else if (t.panoIndex !== this.five.panoIndex)
501
- yield this.changePano(t, i);
502
- else
503
- return Promise.resolve();
504
- });
505
- }
506
- /**
507
- * @description Action rotate keyframe
508
- */
509
- rotate(t, i) {
510
- return y(this, null, function* () {
511
- if (t.mode && t.mode !== this.five.currentMode)
512
- yield this.changeMode({ mode: t.mode, panoIndex: t.panoIndex });
513
- else if (t.panoIndex && t.panoIndex !== this.five.panoIndex)
514
- return yield this.changePano(t, i);
515
- yield this.updateCamera(t, i);
516
- });
517
- }
518
- /**
519
- * @description Update five camera
520
- */
521
- updateCamera(r) {
522
- return y(this, arguments, function* (t, i = {}) {
523
- const { five: e, privateState: n, state: s } = this, d = (() => {
524
- var f, u;
525
- const m = (f = s.config) == null ? void 0 : f.speedConfig, p = (u = t.rotateSpeed) != null ? u : m == null ? void 0 : m.rotateSpeed;
526
- if ((m == null ? void 0 : m.rotateSpeedUnit) === void 0)
527
- return p;
528
- if (p !== void 0)
529
- return m.rotateSpeedUnit === "rad/ms" ? p : p / 1e3;
530
- })(), o = (() => {
531
- if (i.duration)
532
- return i.duration;
533
- if (d) {
534
- const m = this.five.getCurrentState();
535
- return A(m, t) / d;
536
- }
537
- return 800;
538
- })();
539
- n.currentPlayKeyframe && (n.currentPlayKeyframe.originDuration = o);
540
- const a = this.getSpeededDuration(o);
541
- return new Promise((m) => {
542
- G(() => e.updateCamera(t, a)), setTimeout(() => m(), a);
543
- });
544
- });
545
- }
546
- /**
547
- * @description: Change five pano
548
- */
549
- changePano(t, i) {
550
- return y(this, null, function* () {
551
- const { five: r, privateState: e, state: n } = this;
552
- if (typeof t.panoIndex != "number" || t.panoIndex === r.panoIndex)
553
- return;
554
- const s = r.getCurrentState().mode !== "Panorama";
555
- s && (this.privateState.modeChanging = !0);
556
- const d = (() => {
557
- var p, f;
558
- const a = (p = n.config) == null ? void 0 : p.speedConfig, m = (f = t.moveSpeed) != null ? f : a == null ? void 0 : a.moveSpeed;
559
- if ((a == null ? void 0 : a.moveSpeedUnit) === void 0)
560
- return m;
561
- if (m !== void 0)
562
- return a.moveSpeedUnit === "m/ms" ? m : m / 1e3;
563
- })(), o = (() => {
564
- if (i != null && i.duration)
565
- return i.duration;
566
- if (d && typeof r.panoIndex == "number" && typeof t.panoIndex == "number") {
567
- const a = r.work.observers[r.panoIndex].position, m = r.work.observers[t.panoIndex].position;
568
- return a.distanceTo(m) / d;
569
- }
570
- return 800;
571
- })();
572
- e.currentPlayKeyframe && (e.currentPlayKeyframe.originDuration = o), yield new Promise((a) => {
573
- var m, p, f;
574
- r.moveToPano(t.panoIndex, {
575
- latitude: t.latitude,
576
- longitude: t.longitude,
577
- fov: t.fov,
578
- duration: this.getSpeededDuration(o),
579
- effect: (f = (p = i == null ? void 0 : i.moveEffect) != null ? p : (m = this.state.config) == null ? void 0 : m.moveEffect) != null ? f : t.moveEffect,
580
- moveCancelCallback: () => a(),
581
- moveEndCallback: () => a()
582
- }), s && r.once("panoArrived", () => a());
583
- }), s && (this.privateState.modeChanging = !1);
584
- });
585
- }
586
- /**
587
- * @description Change five mode
588
- */
589
- changeMode(t, i) {
590
- return y(this, null, function* () {
591
- t.mode && t.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(t.mode, t, i), this.privateState.modeChanging = !1);
592
- });
593
- }
594
- }
595
- export {
596
- er as default
597
- };
@@ -1,11 +0,0 @@
1
- import * as THREE from 'three';
2
- export declare function getFiveStateOnCurve(curve: THREE.Curve<THREE.Vector3>, progress: number, curveOffset: Partial<{
3
- x: number;
4
- y: number;
5
- z: number;
6
- }>): {
7
- offset: THREE.Vector3;
8
- longitude: number;
9
- latitude: number;
10
- distance: number;
11
- };
@@ -1,11 +0,0 @@
1
- import * as g from "three";
2
- import { vectorToCoordinates as f } from "../../shared-utils/vectorToCoordinate.js";
3
- import "../../shared-utils/formatRad.js";
4
- function A(o, n, t) {
5
- var e, i, r;
6
- const a = new g.Vector3().fromArray([(e = t.x) != null ? e : 0, (i = t.y) != null ? i : 0, (r = t.z) != null ? r : 0]), c = o.getPointAt(n).clone().add(a), d = o.getTangentAt(n), { longitude: m, latitude: s } = f(d);
7
- return { offset: c.clone(), longitude: m, latitude: s, distance: 0 };
8
- }
9
- export {
10
- A as getFiveStateOnCurve
11
- };
@@ -1,2 +0,0 @@
1
- import type { Five } from '@realsee/five';
2
- export declare function waitFiveLoaded(five: Five): Promise<void>;
@@ -1,30 +0,0 @@
1
- var i = (e, o, r) => new Promise((c, d) => {
2
- var u = (n) => {
3
- try {
4
- t(r.next(n));
5
- } catch (a) {
6
- d(a);
7
- }
8
- }, w = (n) => {
9
- try {
10
- t(r.throw(n));
11
- } catch (a) {
12
- d(a);
13
- }
14
- }, t = (n) => n.done ? c(n.value) : Promise.resolve(n.value).then(u, w);
15
- t((r = r.apply(e, o)).next());
16
- });
17
- function k(e) {
18
- return i(this, null, function* () {
19
- return new Promise((o) => {
20
- if (e.work) {
21
- o();
22
- return;
23
- }
24
- e.once("loaded", () => o());
25
- });
26
- });
27
- }
28
- export {
29
- k as waitFiveLoaded
30
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * 将弧度转成 0 - 2PI 中的值
3
- * @param rad - 任意弧度值
4
- * @return 0 - 2PI 的数值
5
- */
6
- declare function formatRad(rad: number): number;
7
- export { formatRad };
@@ -1,7 +0,0 @@
1
- const t = Math.PI * 2;
2
- function o(n) {
3
- return (n % t + t) % t;
4
- }
5
- export {
6
- o as formatRad
7
- };