@realsee/dnalogel 3.5.0-dev.5 → 3.5.0-tag-dev.1

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 (394) 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/dist/shared-utils/util.d.ts +1 -1
  12. package/docs/assets/search.js +1 -1
  13. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +32 -33
  14. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +33 -34
  15. package/docs/classes/CSS3DRender.html +32 -33
  16. package/docs/classes/{WalkController.html → CruisePluginController.html} +100 -97
  17. package/docs/classes/GuideLineItem.GuideLineItem.html +20 -21
  18. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +42 -43
  19. package/docs/classes/Magnifier.html +21 -22
  20. package/docs/classes/ModelRoomLabelController.html +12 -13
  21. package/docs/classes/Object3DHelperController.html +26 -27
  22. package/docs/classes/PaintBrush.html +16 -17
  23. package/docs/classes/PanoMeasurePluginLine.html +28 -29
  24. package/docs/classes/PanoMeasurePluginModel.html +28 -29
  25. package/docs/classes/PanoMeasurePluginPoint.html +12 -13
  26. package/docs/classes/PanoMeasurePluginPolyline.html +28 -29
  27. package/docs/classes/PanoTagPluginController.html +66 -49
  28. package/docs/classes/Util.BetterTween.html +10 -11
  29. package/docs/classes/Util.Interval.html +13 -14
  30. package/docs/classes/Util.LineSegments.html +9 -10
  31. package/docs/classes/Util.Magnifier.html +21 -22
  32. package/docs/classes/Util.Object3D.html +9 -10
  33. package/docs/classes/Util.PointDomHelper.html +12 -13
  34. package/docs/classes/Util.PointHelper.html +12 -13
  35. package/docs/classes/Util.PointSelectorHelper.html +17 -18
  36. package/docs/classes/Util.Rectangle.html +14 -15
  37. package/docs/enums/CameraMovementEffect.html +8 -9
  38. package/docs/enums/ContentType.html +22 -23
  39. package/docs/enums/DIRECTION.html +10 -11
  40. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -11
  41. package/docs/enums/DimensionType.html +8 -9
  42. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -10
  43. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -11
  44. package/docs/enums/PaintBrushTypeEnum.html +9 -10
  45. package/docs/enums/PointType.html +8 -9
  46. package/docs/enums/Rotation.html +9 -10
  47. package/docs/functions/AreaMakerPlugin.html +6 -7
  48. package/docs/functions/CSS3DRenderPlugin.html +5 -6
  49. package/docs/functions/CameraMovementPlugin.html +5 -6
  50. package/docs/functions/CruisePlugin.html +7 -8
  51. package/docs/functions/CurrentPanoImagePlugin.html +5 -6
  52. package/docs/functions/GuideLinePlugin.html +6 -7
  53. package/docs/functions/ItemLabelPlugin.html +5 -6
  54. package/docs/functions/MapviewFloorplanPlugin.html +5 -6
  55. package/docs/functions/ModelChassisCompassPlugin.html +5 -6
  56. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -6
  57. package/docs/functions/ModelFloorplanPlugin.html +5 -6
  58. package/docs/functions/ModelItemLabelPlugin.html +5 -6
  59. package/docs/functions/ModelRoomLabelPlugin.html +5 -6
  60. package/docs/functions/ModelTVVideoPlugin.html +5 -6
  61. package/docs/functions/ModelViewPlugin.html +5 -6
  62. package/docs/functions/Object3DHelperPlugin.html +5 -6
  63. package/docs/functions/PanoCompassPlugin.html +5 -6
  64. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -6
  65. package/docs/functions/PanoDoorLabelPlugin.html +5 -6
  66. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -6
  67. package/docs/functions/PanoMeasurePlugin.html +5 -6
  68. package/docs/functions/PanoRulerPlugin.html +5 -6
  69. package/docs/functions/PanoRulerProPlugin.html +5 -6
  70. package/docs/functions/PanoSpatialTagPlugin.html +5 -6
  71. package/docs/functions/PanoTagPlugin.html +5 -6
  72. package/docs/functions/PanoVideoPlugin.html +5 -6
  73. package/docs/functions/PipelinePlugin.html +5 -6
  74. package/docs/functions/TopviewFloorplanPlugin.html +5 -6
  75. package/docs/functions/Util.absoluteUrl.html +6 -7
  76. package/docs/functions/Util.checkFiveModelLoaded.html +6 -7
  77. package/docs/functions/Util.equal.html +6 -7
  78. package/docs/functions/Util.getCoordsFromClient.html +6 -7
  79. package/docs/functions/Util.getCoordsFromElement.html +6 -7
  80. package/docs/functions/Util.getFrameTime.html +6 -7
  81. package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -7
  82. package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -7
  83. package/docs/functions/Util.isAbsoluteURL.html +6 -7
  84. package/docs/functions/Util.isModelLike.html +6 -7
  85. package/docs/functions/Util.isNil.html +6 -7
  86. package/docs/functions/Util.isPanoramaLike.html +6 -7
  87. package/docs/functions/Util.nextFrame.html +6 -7
  88. package/docs/functions/Util.notNil.html +6 -7
  89. package/docs/functions/Util.requestAnimationFrameInterval.html +6 -7
  90. package/docs/functions/Util.tweenProgress.html +6 -7
  91. package/docs/functions/Util.uuid.html +6 -7
  92. package/docs/functions/pluginFlag.html +6 -7
  93. package/docs/index.html +6 -7
  94. package/docs/interfaces/AddTagConfig.html +7 -8
  95. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +7 -8
  96. package/docs/interfaces/AreaMakerPluginType.Config.html +7 -8
  97. package/docs/interfaces/AreaMakerPluginType.EventMap.html +16 -17
  98. package/docs/interfaces/AreaMakerPluginType.Params.html +8 -9
  99. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +10 -11
  100. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +9 -10
  101. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +7 -8
  102. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +7 -8
  103. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +7 -8
  104. package/docs/interfaces/AreaMakerPluginType.State.html +9 -10
  105. package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -13
  106. package/docs/interfaces/CSS3DRenderPluginState.html +9 -10
  107. package/docs/interfaces/CameraMovementPluginExportType.html +8 -9
  108. package/docs/interfaces/CruisePluginTypes.Config.html +10 -11
  109. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +14 -15
  110. package/docs/interfaces/CruisePluginTypes.EventMap.html +22 -23
  111. package/docs/interfaces/CruisePluginTypes.MoveAction.html +14 -15
  112. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +16 -17
  113. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +16 -17
  114. package/docs/interfaces/CruisePluginTypes.PluginData.html +11 -12
  115. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -9
  116. package/docs/interfaces/CruisePluginTypes.PluginState.html +37 -17
  117. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +12 -13
  118. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +13 -14
  119. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +8 -9
  120. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +7 -8
  121. package/docs/interfaces/CurrentPanoImagePluginType.State.html +9 -10
  122. package/docs/interfaces/EventMap.html +16 -17
  123. package/docs/interfaces/FloorplanBounding.html +9 -10
  124. package/docs/interfaces/FloorplanData.html +11 -12
  125. package/docs/interfaces/FloorplanEntrance.html +12 -13
  126. package/docs/interfaces/FloorplanExtraObject.html +11 -12
  127. package/docs/interfaces/FloorplanExtraObject3D.html +9 -10
  128. package/docs/interfaces/FloorplanFloorData.html +10 -11
  129. package/docs/interfaces/FloorplanImagePosition.html +8 -9
  130. package/docs/interfaces/FloorplanObserver.html +10 -11
  131. package/docs/interfaces/FloorplanOutlineItem.html +10 -11
  132. package/docs/interfaces/FloorplanPosition.html +8 -9
  133. package/docs/interfaces/FloorplanRoomItem.html +14 -15
  134. package/docs/interfaces/FloorplanRoomLabelItem.html +8 -9
  135. package/docs/interfaces/FloorplanServerBounding.html +9 -10
  136. package/docs/interfaces/FloorplanServerComputedData.html +11 -12
  137. package/docs/interfaces/FloorplanServerData.html +8 -9
  138. package/docs/interfaces/FloorplanServerDoorItem.html +11 -12
  139. package/docs/interfaces/FloorplanServerDoorPosition.html +9 -10
  140. package/docs/interfaces/FloorplanServerEntrance.html +12 -13
  141. package/docs/interfaces/FloorplanServerFloorData.html +10 -11
  142. package/docs/interfaces/FloorplanServerImagePosition.html +8 -9
  143. package/docs/interfaces/FloorplanServerObserver.html +10 -11
  144. package/docs/interfaces/FloorplanServerOutlineItem.html +10 -11
  145. package/docs/interfaces/FloorplanServerPosition.html +8 -9
  146. package/docs/interfaces/FloorplanServerRoomItem.html +15 -16
  147. package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -9
  148. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +9 -10
  149. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +12 -13
  150. package/docs/interfaces/GuideLinePluginType.EventMap.html +15 -16
  151. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +10 -11
  152. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +8 -9
  153. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +15 -16
  154. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +8 -9
  155. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +10 -11
  156. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +21 -22
  157. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -10
  158. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +21 -22
  159. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +7 -8
  160. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -9
  161. package/docs/interfaces/GuideLinePluginType.PluginState.html +10 -11
  162. package/docs/interfaces/GuideLinePluginType.Route.html +13 -14
  163. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +11 -12
  164. package/docs/interfaces/HelperOffset.html +9 -10
  165. package/docs/interfaces/ImagePlaneGroup.html +7 -8
  166. package/docs/interfaces/ItemLabelPluginData.html +7 -8
  167. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -13
  168. package/docs/interfaces/ItemLabelPluginParametersType.html +10 -11
  169. package/docs/interfaces/MinMax.html +8 -9
  170. package/docs/interfaces/ModelChassisCompassPluginData.html +8 -9
  171. package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -10
  172. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -9
  173. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -10
  174. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -10
  175. package/docs/interfaces/ModelItemLabelPluginData.html +7 -8
  176. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -13
  177. package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -9
  178. package/docs/interfaces/ModelRoomLabelPluginData.html +7 -8
  179. package/docs/interfaces/ModelTVVideoPluginData.html +10 -11
  180. package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -10
  181. package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -8
  182. package/docs/interfaces/ModelViewPluginExportType.html +12 -13
  183. package/docs/interfaces/Object3DHelperState.html +9 -10
  184. package/docs/interfaces/ObjectHelperControllers.html +10 -11
  185. package/docs/interfaces/PaintBrushAction.html +13 -14
  186. package/docs/interfaces/PaintBrushConfigs.html +13 -14
  187. package/docs/interfaces/PaintBrushState.html +11 -12
  188. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -12
  189. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -7
  190. package/docs/interfaces/PanoMeasureParameterType.html +17 -18
  191. package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -10
  192. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -9
  193. package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -9
  194. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -10
  195. package/docs/interfaces/PanoRulerPluginExportType.html +11 -12
  196. package/docs/interfaces/PanoRulerPluginOptions.html +8 -9
  197. package/docs/interfaces/PanoRulerPluginParameterType.html +9 -10
  198. package/docs/interfaces/PanoRulerProPluginExportType.html +10 -11
  199. package/docs/interfaces/PanoRulerProPluginOptions.html +8 -9
  200. package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -9
  201. package/docs/interfaces/PanoRulerProPluginState.html +9 -10
  202. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -7
  203. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -7
  204. package/docs/interfaces/PanoSpatialTagPluginData.html +12 -13
  205. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -12
  206. package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -15
  207. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -12
  208. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -15
  209. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -13
  210. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -12
  211. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -8
  212. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -10
  213. package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -8
  214. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -11
  215. package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -8
  216. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -10
  217. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -12
  218. package/docs/interfaces/Point.html +9 -10
  219. package/docs/interfaces/Room.html +10 -11
  220. package/docs/interfaces/RoomInfo.html +8 -9
  221. package/docs/interfaces/RoomLabel.html +15 -16
  222. package/docs/interfaces/RoomRules.html +6 -7
  223. package/docs/interfaces/Rooms.html +6 -7
  224. package/docs/interfaces/Scissor.html +10 -11
  225. package/docs/interfaces/State.html +9 -10
  226. package/docs/interfaces/TagCacheInterface.html +13 -14
  227. package/docs/interfaces/TagConfig.html +15 -16
  228. package/docs/interfaces/TagGLTFObjectGroup.html +7 -8
  229. package/docs/interfaces/TagIconUrl.html +13 -14
  230. package/docs/interfaces/TagObjectGroup.html +7 -8
  231. package/docs/interfaces/TagStyle.html +7 -8
  232. package/docs/interfaces/Tags.html +10 -11
  233. package/docs/interfaces/TemporaryState.html +7 -8
  234. package/docs/interfaces/Util.MagnifierParameter.html +12 -13
  235. package/docs/interfaces/Util.MouseGroupParameter.html +9 -10
  236. package/docs/interfaces/Util.PointIntersection.html +9 -10
  237. package/docs/modules/AreaMakerPluginType.html +6 -7
  238. package/docs/modules/CruisePluginTypes.html +6 -7
  239. package/docs/modules/CurrentPanoImagePluginType.html +6 -7
  240. package/docs/modules/GuideLineItem.html +6 -7
  241. package/docs/modules/GuideLineModeItem.html +6 -7
  242. package/docs/modules/GuideLinePluginType.html +6 -7
  243. package/docs/modules/PanoVideoPluginType.html +6 -7
  244. package/docs/modules/Util.html +6 -7
  245. package/docs/modules.html +11 -27
  246. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +6 -7
  247. package/docs/types/AreaMakerPluginType.PluginData.html +6 -7
  248. package/docs/types/AreaMakerPluginType.ServerData.html +6 -7
  249. package/docs/types/ArrayPosition.html +6 -7
  250. package/docs/types/AudioAppearance.html +6 -7
  251. package/docs/types/AudioTagTypeConfigKey.html +6 -7
  252. package/docs/types/CSS3DRenderExportType.html +6 -7
  253. package/docs/types/CSS3DRenderPluginExportType.html +6 -7
  254. package/docs/types/CSS3DRenderPluginParameterType.html +6 -7
  255. package/docs/types/ClassFunctionParameters.html +6 -7
  256. package/docs/types/Color.html +6 -7
  257. package/docs/types/ContentTypeConfigKey.html +6 -7
  258. package/docs/types/ContentTypeConfigKeySplit.html +6 -7
  259. package/docs/types/ContentTypeMap.html +6 -7
  260. package/docs/types/Create3DDomContainerReturnType.html +6 -7
  261. package/docs/types/Create3DElementReturnType.html +6 -7
  262. package/docs/types/CruisePluginExportType.html +6 -7
  263. package/docs/types/CruisePluginTypes.CruiseData.html +7 -8
  264. package/docs/types/CruisePluginTypes.MoveEffect.html +7 -8
  265. package/docs/types/CurrentPanoImagePluginExportType.html +6 -7
  266. package/docs/types/DeprecatedMediaPlaneProperty.html +6 -7
  267. package/docs/types/DeprecatedTagProperty.html +6 -7
  268. package/docs/types/Direction-1.html +6 -7
  269. package/docs/types/Direction4.html +6 -7
  270. package/docs/types/ElementRenderer.html +6 -7
  271. package/docs/types/FloorplanRuleLabels.html +6 -7
  272. package/docs/types/FloorplanServerRuleLabels.html +6 -7
  273. package/docs/types/GuideLinePluginExportType.html +6 -7
  274. package/docs/types/GuideLinePluginType.GuideLineItem.html +7 -8
  275. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +7 -8
  276. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +7 -8
  277. package/docs/types/GuideLinePluginType.GuideLineStyle.html +7 -8
  278. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +7 -8
  279. package/docs/types/GuideLinePluginType.PathItem.html +7 -8
  280. package/docs/types/GuideLinePluginType.PluginData.html +7 -8
  281. package/docs/types/HelperEventMap.html +6 -7
  282. package/docs/types/LoadTagConfig.html +6 -7
  283. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -7
  284. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -7
  285. package/docs/types/MediaData.html +6 -7
  286. package/docs/types/MediaStore.html +6 -7
  287. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -7
  288. package/docs/types/ModelFloorplanPluginParameterType.html +6 -7
  289. package/docs/types/ModelFloorplanPluginReturnType.html +6 -7
  290. package/docs/types/ModelId.html +6 -7
  291. package/docs/types/ModelRoomLabelPluginParameters.html +6 -7
  292. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -7
  293. package/docs/types/MoveArgs.html +6 -7
  294. package/docs/types/MoveOpts.html +6 -7
  295. package/docs/types/Object3DHelperEventMap.html +6 -7
  296. package/docs/types/ObjectFit.html +6 -7
  297. package/docs/types/PaintBrushEventMap.html +6 -7
  298. package/docs/types/PanoCompassPluginData.html +6 -7
  299. package/docs/types/PanoCompassPluginExportType.html +6 -7
  300. package/docs/types/PanoCompassPluginParameterType.html +6 -7
  301. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -7
  302. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -7
  303. package/docs/types/PanoIndex.html +6 -7
  304. package/docs/types/PanoMeasurePluginEvent.html +6 -7
  305. package/docs/types/PanoMeasureReturnType.html +6 -7
  306. package/docs/types/PanoSpatialTagPluginId.html +6 -7
  307. package/docs/types/PanoTagPluginExportInterface.html +6 -7
  308. package/docs/types/PanoTagPluginParamsInterface.html +6 -7
  309. package/docs/types/PanoVideoPluginParameterType.html +6 -7
  310. package/docs/types/PanoVideoPluginReturnType.html +6 -7
  311. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +6 -7
  312. package/docs/types/PipelinePluginParameterType.html +6 -7
  313. package/docs/types/PipelinePluginReturnType.html +6 -7
  314. package/docs/types/PlaneTag.html +6 -7
  315. package/docs/types/Point2DTag.html +6 -7
  316. package/docs/types/Point3DTag.html +6 -7
  317. package/docs/types/PointTag.html +6 -7
  318. package/docs/types/PointTagInstance.html +6 -7
  319. package/docs/types/Position.html +6 -7
  320. package/docs/types/RotateArgs.html +6 -7
  321. package/docs/types/RotateOpts.html +6 -7
  322. package/docs/types/RuleLabelsKey.html +6 -7
  323. package/docs/types/RuleLabelsValue.html +6 -7
  324. package/docs/types/StickType.html +6 -7
  325. package/docs/types/Tag.html +6 -7
  326. package/docs/types/Tag2D.html +6 -7
  327. package/docs/types/Tag3D.html +6 -7
  328. package/docs/types/TagConfigByKey.html +6 -7
  329. package/docs/types/TagContentType.html +6 -7
  330. package/docs/types/TagContentTypeMapping.html +280 -0
  331. package/docs/types/TagDimensionType.html +6 -7
  332. package/docs/types/TagElement.html +6 -7
  333. package/docs/types/TagEvents.html +6 -7
  334. package/docs/types/TagGLTFObject.html +6 -7
  335. package/docs/types/TagHooks.html +6 -7
  336. package/docs/types/TagId.html +6 -7
  337. package/docs/types/TagInstance.html +6 -7
  338. package/docs/types/TagPointType.html +6 -7
  339. package/docs/types/TagRendererMap.html +6 -7
  340. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -7
  341. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -7
  342. package/docs/types/WorkCode.html +6 -7
  343. package/docs/variables/FLOOR_TYPE_MAP.html +6 -7
  344. package/docs/variables/PLUGIN.html +6 -7
  345. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -7
  346. package/docs/variables/ROOM_TYPE_MAP.html +6 -7
  347. package/docs/variables/defaultGlobalConfig.html +6 -7
  348. package/docs/variables/itemLabelPluginServerParams.html +6 -7
  349. package/docs/variables/modelItemLabelPluginServerParams.html +6 -7
  350. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -7
  351. package/libs/CruisePlugin/Controller.d.ts +171 -0
  352. package/libs/CruisePlugin/Controller.js +760 -0
  353. package/libs/CruisePlugin/index.d.ts +3 -4
  354. package/libs/CruisePlugin/index.js +12 -17
  355. package/libs/CruisePlugin/typing.d.ts +2 -2
  356. package/libs/GuideLinePlugin/Controller.d.ts +6 -1
  357. package/libs/GuideLinePlugin/Controller.js +62 -48
  358. package/libs/GuideLinePlugin/GuideLineItem/index.js +43 -53
  359. package/libs/GuideLinePlugin/GuideLineItem.js +10 -13
  360. package/libs/GuideLinePlugin/index.js +17 -20
  361. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +8 -8
  362. package/libs/PanoTagPlugin/Components/Tag/index.js +336 -291
  363. package/libs/PanoTagPlugin/Components/TagContainer.js +100 -84
  364. package/libs/PanoTagPlugin/Components/TagItem.js +122 -114
  365. package/libs/PanoTagPlugin/controller/TagRender.d.ts +4 -2
  366. package/libs/PanoTagPlugin/controller/TagRender.js +51 -46
  367. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -0
  368. package/libs/base/BasePlugin.js +1 -1
  369. package/libs/index.js +119 -124
  370. package/libs/shared-utils/logger.js +1 -1
  371. package/libs/shared-utils/util.d.ts +1 -1
  372. package/package.json +2 -2
  373. package/dist/CruisePlugin/BaseController.d.ts +0 -159
  374. package/dist/CruisePlugin/Move.d.ts +0 -40
  375. package/dist/CruisePlugin/Work.d.ts +0 -120
  376. package/dist/CruisePlugin/utils/getFiveStateOnCurve.d.ts +0 -11
  377. package/dist/shared-utils/five/fiveLoaded.d.ts +0 -2
  378. package/docs/classes/MoveController.html +0 -651
  379. package/libs/CruisePlugin/BaseController.d.ts +0 -159
  380. package/libs/CruisePlugin/BaseController.js +0 -231
  381. package/libs/CruisePlugin/Move.d.ts +0 -40
  382. package/libs/CruisePlugin/Move.js +0 -120
  383. package/libs/CruisePlugin/Work.d.ts +0 -120
  384. package/libs/CruisePlugin/Work.js +0 -597
  385. package/libs/CruisePlugin/utils/getFiveStateOnCurve.d.ts +0 -11
  386. package/libs/CruisePlugin/utils/getFiveStateOnCurve.js +0 -11
  387. package/libs/shared-utils/five/fiveLoaded.d.ts +0 -2
  388. package/libs/shared-utils/five/fiveLoaded.js +0 -30
  389. package/libs/shared-utils/formatRad.d.ts +0 -7
  390. package/libs/shared-utils/formatRad.js +0 -7
  391. /package/dist/{shared-utils → CruisePlugin/utils}/formatRad.d.ts +0 -0
  392. /package/dist/{shared-utils/vectorToCoordinate.d.ts → CruisePlugin/utils/vectorToCoordinates.d.ts} +0 -0
  393. /package/libs/{shared-utils/vectorToCoordinate.d.ts → CruisePlugin/utils/vectorToCoordinates.d.ts} +0 -0
  394. /package/libs/{shared-utils/vectorToCoordinate.js → CruisePlugin/utils/vectorToCoordinates.js} +0 -0
@@ -1,159 +0,0 @@
1
- import type { Five, State } from '@realsee/five';
2
- import type { BaseOptions } from '../base/BasePlugin';
3
- import type { GuideLinePluginExportType } from '../GuideLinePlugin';
4
- import * as BasePlugin from '../base/BasePlugin';
5
- import type { PluginState, EventMap, MoveEffect } from './typing';
6
- import type { PartialDeep } from 'type-fest';
7
- export declare const pluginFlag: (name: string) => string;
8
- export default abstract class CruiseController<PluginData, Config = unknown> extends BasePlugin.Controller<PluginState, EventMap> {
9
- state: PluginState;
10
- protected data?: PluginData & {
11
- id: string | number;
12
- };
13
- protected config?: Config;
14
- protected privateState: {
15
- /**
16
- * privateState.playing 和 state.playing 的区别:
17
- * state.playing 先为true,然后才 handleplay,handleplay方法内会检查privateState.playing,如果已经开始(privateState.playing === true),就不执行操作,如果为false,就执行操作
18
- * 其实就是加了一个不允许重复执行handleplay的逻辑
19
- */
20
- playing: boolean;
21
- broke: boolean;
22
- playId?: string;
23
- moveToFirstPanoEffect?: MoveEffect;
24
- moveToFirstPanoDuration?: number;
25
- modeChanging?: boolean;
26
- };
27
- protected GuideLine?: GuideLinePluginExportType;
28
- constructor(five: Five, config?: Config);
29
- /**
30
- * @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
31
- */
32
- play(options?: {
33
- userAction?: boolean;
34
- }): void;
35
- /**
36
- * @description Pause
37
- */
38
- pause(options?: {
39
- userAction?: boolean;
40
- }): void;
41
- /**
42
- * @description Show guide line
43
- */
44
- show(options?: {
45
- userAction?: boolean;
46
- }): Promise<void>;
47
- /**
48
- * @description Hide guide line
49
- */
50
- hide(options?: {
51
- userAction?: boolean;
52
- }): Promise<void>;
53
- /**
54
- * @description Enable
55
- */
56
- enable(options?: {
57
- userAction?: boolean;
58
- }): void;
59
- /**
60
- * @description Disable
61
- */
62
- disable(options?: {
63
- userAction?: boolean;
64
- }): void;
65
- /**
66
- * @description Dispose
67
- */
68
- dispose(): void;
69
- /**
70
- * @description Set state
71
- */
72
- setState(state: PartialDeep<PluginState>, options?: BaseOptions & Record<string, any>): void;
73
- /**
74
- * @description Clear pause data
75
- */
76
- protected clearPauseData(): boolean;
77
- protected changePlayState(play: boolean, options?: {
78
- userAction?: boolean;
79
- playFromIndex?: number;
80
- playFromId?: string;
81
- }): void;
82
- protected handleEnable(enabled: boolean, userAction?: boolean): void;
83
- protected handleVisible(visible: boolean, userAction?: boolean): void;
84
- /**
85
- * @description: listen interupted by five gesture
86
- */
87
- protected addInterruptListener(interrupt: () => void): () => void;
88
- /**
89
- * @description Get duration by speed
90
- */
91
- protected getSpeededDuration(duration: number): number;
92
- /**
93
- * @description Force interupt five updateCamera
94
- */
95
- protected forceInteruptUpdateCamera(): void;
96
- protected getPauseData(): {
97
- fiveState: Partial<State>;
98
- id?: string | number;
99
- playedProgress: number;
100
- duration?: number;
101
- };
102
- /**
103
- * @description Set pause data
104
- */
105
- protected setPauseData(): Map<string | number, {
106
- fiveState: Partial<State>;
107
- id?: string | number;
108
- playedProgress: number;
109
- duration?: number;
110
- }>;
111
- /**
112
- * @description: Restore state that before loaded
113
- */
114
- protected clear(): void;
115
- protected handleDispose(): void;
116
- /**
117
- * @description Action function if plugin is enable
118
- */
119
- protected actionIfStateIsEnabled<T = any>(func: () => T, options?: {
120
- warnLog?: true;
121
- }): T;
122
- protected disposedErrorLog: () => void;
123
- protected disableWarnLog: () => void;
124
- protected disableErrorLog: () => void;
125
- /**
126
- * @description Load Data and State
127
- */
128
- abstract load(serverData: unknown, state?: PluginState, userAction?: boolean): Promise<void>;
129
- /**
130
- * @description Play from first keyframe
131
- */
132
- abstract playFromStart(): void;
133
- /**
134
- * @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
135
- * @param {number} options.playFromIndex play from keyframes index
136
- * @param {string} options.playFromId play from keyframes id
137
- */
138
- protected abstract handlePlay(options?: {
139
- userAction?: boolean;
140
- playFromIndex?: number;
141
- playFromId?: string;
142
- notEmitEvent?: true;
143
- }): Promise<string>;
144
- /**
145
- * @description: Change play speed
146
- */
147
- protected abstract changeSpeed(speed: number): void;
148
- /**
149
- * @description Get ratate progress
150
- */
151
- protected abstract getProgress(): number;
152
- /**
153
- * @description: Pause and record pause state
154
- */
155
- protected abstract handlePause(options?: {
156
- userAction?: boolean;
157
- notEmitEvent?: true;
158
- }): void;
159
- }
@@ -1,231 +0,0 @@
1
- var v = Object.defineProperty;
2
- var g = Object.getOwnPropertySymbols;
3
- var S = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
4
- var u = (a, s, e) => s in a ? v(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, b = (a, s) => {
5
- for (var e in s || (s = {}))
6
- S.call(s, e) && u(a, e, s[e]);
7
- if (g)
8
- for (var e of g(s))
9
- y.call(s, e) && u(a, e, s[e]);
10
- return a;
11
- };
12
- var d = (a, s, e) => (u(a, typeof s != "symbol" ? s + "" : s, e), e);
13
- var f = (a, s, e) => new Promise((i, t) => {
14
- var r = (h) => {
15
- try {
16
- n(e.next(h));
17
- } catch (o) {
18
- t(o);
19
- }
20
- }, c = (h) => {
21
- try {
22
- n(e.throw(h));
23
- } catch (o) {
24
- t(o);
25
- }
26
- }, n = (h) => h.done ? i(h.value) : Promise.resolve(h.value).then(r, c);
27
- n((e = e.apply(a, s)).next());
28
- });
29
- import { Controller as L } from "../base/BasePlugin.js";
30
- import { equal as C } from "../shared-utils/equal.js";
31
- import { objectAssignDeepExports as P } from "../vendor/object-assign-deep/objectAssignDeep.js";
32
- import "../shared-utils/Subscribe.js";
33
- import "hammerjs";
34
- import "three";
35
- import "@realsee/five";
36
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
37
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
38
- import "../shared-utils/positionToVector3.js";
39
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
40
- import "three/examples/jsm/renderers/CSS3DRenderer";
41
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
42
- import "../shared-utils/util.js";
43
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
44
- import "../CSS3DRenderPlugin/utils/even.js";
45
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
46
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
47
- import "../shared-utils/three/centerPoint.js";
48
- import "../shared-utils/three/getObjectVisible.js";
49
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
50
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
51
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
52
- import "../shared-utils/url/absoluteUrl.js";
53
- import "../shared-utils/isTruelyObject.js";
54
- const m = "CruisePlugin", l = `${m}`, T = (a) => `${l}--${a}`, p = /* @__PURE__ */ new Map();
55
- class X extends L {
56
- constructor(e, i) {
57
- super(e, i);
58
- d(this, "state", {
59
- visible: !0,
60
- enabled: !0,
61
- disposed: !1,
62
- playing: !1,
63
- speed: 1
64
- });
65
- d(this, "data");
66
- d(this, "config");
67
- d(this, "privateState", {
68
- playing: !1,
69
- broke: !1,
70
- modeChanging: !1
71
- });
72
- d(this, "GuideLine");
73
- d(this, "disposedErrorLog", () => {
74
- console.error(`${l} is disposed`);
75
- });
76
- d(this, "disableWarnLog", () => {
77
- console.warn(`${l} is disabled`);
78
- });
79
- d(this, "disableErrorLog", () => {
80
- console.error(`${l} is disabled`);
81
- });
82
- this.config = i, Object.assign(window, { [`__${m}_DEBUG__`]: this });
83
- }
84
- /**
85
- * @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
86
- */
87
- play(e) {
88
- this.setState({ playing: !0 }, e);
89
- }
90
- /**
91
- * @description Pause
92
- */
93
- pause(e) {
94
- this.setState({ playing: !1 }, e);
95
- }
96
- /**
97
- * @description Show guide line
98
- */
99
- show(e) {
100
- return f(this, null, function* () {
101
- this.setState({ visible: !0 }, e);
102
- });
103
- }
104
- /**
105
- * @description Hide guide line
106
- */
107
- hide(e) {
108
- return f(this, null, function* () {
109
- this.setState({ visible: !1 }, e);
110
- });
111
- }
112
- /**
113
- * @description Enable
114
- */
115
- enable(e) {
116
- this.setState({ enabled: !0 }, e);
117
- }
118
- /**
119
- * @description Disable
120
- */
121
- disable(e) {
122
- this.setState({ enabled: !1 }, e);
123
- }
124
- /**
125
- * @description Dispose
126
- */
127
- dispose() {
128
- this.setState({ disposed: !0 });
129
- }
130
- /**
131
- * @description Set state
132
- */
133
- setState(e, i) {
134
- var r;
135
- if (this.state.disposed)
136
- return this.disposedErrorLog();
137
- if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
138
- return this.disableErrorLog();
139
- const t = b({}, this.state);
140
- this.state = P({}, this.state, e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== t.visible && this.handleVisible(e.visible, i == null ? void 0 : i.userAction), e.enabled !== void 0 && e.enabled !== t.enabled && this.handleEnable(e.enabled, i == null ? void 0 : i.userAction), e.playing !== void 0 && e.playing !== t.playing && this.changePlayState(e.playing, i), e.speed !== void 0 && e.speed !== t.speed && this.changeSpeed(e.speed), C(t, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: t, userAction: (r = i == null ? void 0 : i.userAction) != null ? r : !0 });
141
- }
142
- /**
143
- * @description Clear pause data
144
- */
145
- clearPauseData() {
146
- var e, i;
147
- if ((e = this.data) != null && e.id)
148
- return p.delete((i = this.data) == null ? void 0 : i.id);
149
- }
150
- changePlayState(e, i) {
151
- this.actionIfStateIsEnabled(
152
- () => {
153
- var t;
154
- return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (t = i == null ? void 0 : i.userAction) != null ? t : !0 });
155
- }
156
- ), e ? this.handlePlay(i) : this.handlePause(i), this.state.playing = e;
157
- }
158
- handleEnable(e, i = !0) {
159
- var t, r;
160
- e ? ((t = this.GuideLine) == null || t.enable(), this.hooks.emit("enable", { userAction: i })) : ((r = this.GuideLine) == null || r.disable(), this.changePlayState(!1, { userAction: i }), this.hooks.emit("disable", { userAction: i })), this.state.enabled = e;
161
- }
162
- handleVisible(e, i = !0) {
163
- var t, r;
164
- e ? ((t = this.GuideLine) == null || t.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: i }))) : ((r = this.GuideLine) == null || r.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: i }))), this.state.visible = e;
165
- }
166
- /**
167
- * @description: listen interupted by five gesture
168
- */
169
- addInterruptListener(e) {
170
- const i = () => {
171
- this.privateState.modeChanging || e();
172
- }, t = (r) => {
173
- r !== "mouseMove" && (e(), this.five.off("gesture", t));
174
- };
175
- return this.five.on("gesture", t), this.five.once("wantsChangeMode", i), () => {
176
- this.five.off("gesture", t), this.five.off("wantsChangeMode", i);
177
- };
178
- }
179
- /**
180
- * @description Get duration by speed
181
- */
182
- getSpeededDuration(e) {
183
- return e / this.state.speed;
184
- }
185
- /**
186
- * @description Force interupt five updateCamera
187
- */
188
- forceInteruptUpdateCamera() {
189
- this.five.updateCamera({}, 0);
190
- }
191
- getPauseData() {
192
- var e;
193
- if ((e = this.data) != null && e.id)
194
- return p.get(this.data.id);
195
- }
196
- /**
197
- * @description Set pause data
198
- */
199
- setPauseData() {
200
- var i;
201
- const e = (i = this.data) == null ? void 0 : i.id;
202
- if (e)
203
- return p.set(e, {
204
- fiveState: this.five.getCurrentState(),
205
- playedProgress: this.getProgress()
206
- });
207
- }
208
- /**
209
- * @description: Restore state that before loaded
210
- */
211
- clear() {
212
- this.clearPauseData();
213
- }
214
- // TODO
215
- handleDispose() {
216
- var e;
217
- this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (e = this.GuideLine) == null || e.dispose(), this.GuideLine = void 0;
218
- }
219
- /**
220
- * @description Action function if plugin is enable
221
- */
222
- actionIfStateIsEnabled(e, i) {
223
- if (this.state.enabled)
224
- return e();
225
- i != null && i.warnLog && this.disableWarnLog();
226
- }
227
- }
228
- export {
229
- X as default,
230
- T as pluginFlag
231
- };
@@ -1,40 +0,0 @@
1
- import type { Five } from '@realsee/five';
2
- import CruiseController from './BaseController';
3
- import type { PluginState } from './typing';
4
- import type { PartialDeep } from 'type-fest';
5
- import type * as THREE from 'three';
6
- type Data = {
7
- path: THREE.CurvePath<THREE.Vector3>;
8
- offset?: Partial<{
9
- x: number;
10
- y: number;
11
- z: number;
12
- }>;
13
- };
14
- type Config = {
15
- offset?: Partial<{
16
- x: number;
17
- y: number;
18
- z: number;
19
- }>;
20
- allowBroke?: boolean;
21
- };
22
- export default class MoveController extends CruiseController<Data, Config> {
23
- private curve;
24
- private baseCurveOffset;
25
- private curveOffset;
26
- private playStartedTime;
27
- private duration;
28
- constructor(five: Five, config?: Config);
29
- load(data: Data, state?: PartialDeep<PluginState>): Promise<void>;
30
- changeSpeed: (speed: number, userAction?: boolean) => void;
31
- moveToStart: () => void;
32
- playFromStart: () => void;
33
- protected getDuration: () => number;
34
- protected getProgress: () => number;
35
- protected handlePlay(): Promise<string>;
36
- protected handlePause(options?: {
37
- userAction?: boolean;
38
- }): void;
39
- }
40
- export {};
@@ -1,120 +0,0 @@
1
- var S = Object.defineProperty;
2
- var g = Object.getOwnPropertySymbols;
3
- var y = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
4
- var m = (o, e, t) => e in o ? S(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, v = (o, e) => {
5
- for (var t in e || (e = {}))
6
- y.call(e, t) && m(o, t, e[t]);
7
- if (g)
8
- for (var t of g(e))
9
- P.call(e, t) && m(o, t, e[t]);
10
- return o;
11
- };
12
- var r = (o, e, t) => (m(o, typeof e != "symbol" ? e + "" : e, t), t);
13
- import C from "./BaseController.js";
14
- import { objectAssignDeepExports as u } from "../vendor/object-assign-deep/objectAssignDeep.js";
15
- import "hammerjs";
16
- import "three";
17
- import "@realsee/five";
18
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
19
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
20
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
21
- import { uuid as b } from "../shared-utils/uuid.js";
22
- import { getFiveStateOnCurve as c } from "./utils/getFiveStateOnCurve.js";
23
- import "../base/BasePlugin.js";
24
- import "../shared-utils/Subscribe.js";
25
- import "../shared-utils/url/absoluteUrl.js";
26
- import "../shared-utils/equal.js";
27
- import "../shared-utils/isTruelyObject.js";
28
- import "../shared-utils/positionToVector3.js";
29
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
30
- import "three/examples/jsm/renderers/CSS3DRenderer";
31
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
32
- import "../shared-utils/util.js";
33
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
34
- import "../CSS3DRenderPlugin/utils/even.js";
35
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
36
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
37
- import "../shared-utils/three/centerPoint.js";
38
- import "../shared-utils/three/getObjectVisible.js";
39
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
40
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
41
- import "../shared-utils/vectorToCoordinate.js";
42
- import "../shared-utils/formatRad.js";
43
- class tt extends C {
44
- constructor(t, s) {
45
- var i;
46
- super(t, s);
47
- r(this, "curve");
48
- r(this, "baseCurveOffset");
49
- r(this, "curveOffset");
50
- r(this, "playStartedTime", performance.now());
51
- r(this, "duration");
52
- r(this, "changeSpeed", (t, s = !0) => {
53
- this.state.speed = t, this.hooks.emit("speedChange", t, { userAction: s });
54
- });
55
- r(this, "moveToStart", () => {
56
- this.five.setState(c(this.curve, 0, this.curveOffset));
57
- });
58
- r(this, "playFromStart", () => {
59
- this.clearPauseData(), this.setState({ playing: !0 });
60
- });
61
- r(this, "getDuration", () => this.getSpeededDuration(this.duration));
62
- r(this, "getProgress", () => {
63
- var n;
64
- const t = this.getPauseData(), s = 1 - ((n = t == null ? void 0 : t.playedProgress) != null ? n : 0), a = this.getDuration(), i = (performance.now() - this.playStartedTime) / a;
65
- return 1 - s + i;
66
- });
67
- const a = {
68
- config: {
69
- speedConfig: {
70
- moveSpeed: 2,
71
- moveSpeedUnit: "m/s"
72
- }
73
- }
74
- }, f = {
75
- allowBroke: !0
76
- };
77
- this.state = u({}, a, this.state), this.config = u({}, f, this.config), this.baseCurveOffset = u({ x: 0, y: 0, z: 0 }, { y: 2 }, (i = this.config) == null ? void 0 : i.offset);
78
- }
79
- load(t, s) {
80
- var i, n, h, p, d, l;
81
- if (this.handlePause(), this.clear(), this.data = v({ id: b() }, t), this.curve = this.data.path.curves[0], this.curveOffset = {
82
- x: this.baseCurveOffset.x + ((n = (i = this.data.offset) == null ? void 0 : i.x) != null ? n : 0),
83
- y: this.baseCurveOffset.y + ((p = (h = this.data.offset) == null ? void 0 : h.y) != null ? p : 0),
84
- z: this.baseCurveOffset.z + ((l = (d = this.data.offset) == null ? void 0 : d.z) != null ? l : 0)
85
- }, !this.curve)
86
- throw new Error("curve is not defined");
87
- const a = this.curve.getLength(), f = this.state.config.speedConfig.moveSpeedUnit === "m/ms" ? 1 : 1e3;
88
- return this.duration = a / (this.state.config.speedConfig.moveSpeed / f), s ? this.setState(s) : (this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed)), Promise.resolve();
89
- }
90
- handlePlay() {
91
- return new Promise((t, s) => {
92
- var n;
93
- const a = this.getPauseData(), f = c(this.curve, (n = a == null ? void 0 : a.playedProgress) != null ? n : 0, this.curveOffset);
94
- if (this.five.setState(f), this.playStartedTime = performance.now(), this.config.allowBroke) {
95
- const h = this.addInterruptListener(() => {
96
- this.hooks.emit("broke"), this.handlePause(), h();
97
- });
98
- }
99
- const i = () => {
100
- const h = this.getProgress();
101
- if (h >= 1)
102
- this.five.off("renderFrame", i), t("end");
103
- else if (this.state.playing === !1)
104
- this.five.off("renderFrame", i);
105
- else if (h >= 0) {
106
- const p = c(this.curve, h, this.curveOffset);
107
- this.five.setState(p, !0);
108
- }
109
- };
110
- this.five.on("renderFrame", i);
111
- });
112
- }
113
- handlePause(t) {
114
- var s;
115
- this.state.playing = !1, this.hooks.emit("pause", { userAction: (s = t == null ? void 0 : t.userAction) != null ? s : !0 }), this.setPauseData();
116
- }
117
- }
118
- export {
119
- tt as default
120
- };
@@ -1,120 +0,0 @@
1
- import type { Five, State } from '@realsee/five';
2
- import type { PluginState, PluginServerData, PluginData, CruiseKeyframe, MoveEffect, Config } from './typing';
3
- import CruiseController from './BaseController';
4
- export default class WalkController extends CruiseController<PluginData, Config> {
5
- state: PluginState;
6
- protected privateState: {
7
- /**
8
- * privateState.playing 和 state.playing 的区别:
9
- * state.playing 先为true,然后才 handleplay,handleplay方法内会检查privateState.playing,如果已经开始(privateState.playing === true),就不执行操作,如果为false,就执行操作
10
- * 其实就是加了一个不允许重复执行handleplay的逻辑
11
- */
12
- playing: boolean;
13
- currentPlayKeyframe: {
14
- keyframe: CruiseKeyframe;
15
- originDuration?: number;
16
- } | null;
17
- currentPlayQueue: Promise<any>[];
18
- broke: boolean;
19
- playId?: string;
20
- moveToFirstPanoEffect?: MoveEffect;
21
- moveToFirstPanoDuration?: number;
22
- modeChanging?: boolean;
23
- };
24
- constructor(five: Five, config?: Config);
25
- /**
26
- * @description Load Data and State
27
- */
28
- load(serverData: PluginServerData | PluginServerData['data'], state?: PluginState, userAction?: boolean): Promise<void>;
29
- /**
30
- * @description If playing, first pause, then play from keyframes index/id
31
- * @param {number} options.index play from keyframes index
32
- * @param {string} options.id play from keyframes id
33
- */
34
- playFrom(options: {
35
- userAction?: boolean;
36
- index?: number;
37
- id?: string;
38
- }): void;
39
- /**
40
- * @description Play from first keyframe
41
- */
42
- playFromStart(options?: {
43
- userAction?: boolean;
44
- }): void;
45
- /**
46
- * @description Format data
47
- */
48
- protected formatData(serverData: PluginServerData | PluginServerData['data']): Promise<PluginData>;
49
- /**
50
- * @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
51
- * @param {number} options.playFromIndex play from keyframes index
52
- * @param {string} options.playFromId play from keyframes id
53
- */
54
- protected handlePlay(options?: {
55
- userAction?: boolean;
56
- playFromIndex?: number;
57
- playFromId?: string;
58
- notEmitEvent?: true;
59
- }): Promise<string>;
60
- /**
61
- * @description: Pause and record pause state
62
- */
63
- protected handlePause(options?: {
64
- userAction?: boolean;
65
- notEmitEvent?: true;
66
- }): void;
67
- /**
68
- * @description: Change play speed
69
- */
70
- protected changeSpeed(speed: number, userAction?: boolean): void;
71
- /**
72
- * @description Get ratate progress
73
- */
74
- protected getProgress(): any;
75
- /**
76
- * @description Set pause data
77
- */
78
- protected setPauseData(): Map<string, {
79
- fiveState: Partial<State>;
80
- id?: string | number;
81
- playedProgress: number;
82
- duration?: number;
83
- }>;
84
- /**
85
- * @description: Restore state that before loaded
86
- */
87
- protected clear(): void;
88
- /**
89
- * @description Play single keyframe
90
- */
91
- private playKeyframe;
92
- /**
93
- * @description: getPlayPromise
94
- */
95
- private getPlayPromise;
96
- /**
97
- * @description Action promise queue in sequence
98
- */
99
- private actionPromiseQueue;
100
- /**
101
- * @description Action move keyframe
102
- */
103
- private move;
104
- /**
105
- * @description Action rotate keyframe
106
- */
107
- private rotate;
108
- /**
109
- * @description Update five camera
110
- */
111
- private updateCamera;
112
- /**
113
- * @description: Change five pano
114
- */
115
- private changePano;
116
- /**
117
- * @description Change five mode
118
- */
119
- private changeMode;
120
- }