@realsee/dnalogel 3.3.5-dev.0 → 3.4.0-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 (386) hide show
  1. package/dist/CruisePlugin/CruiseController.d.ts +146 -0
  2. package/dist/CruisePlugin/Move.d.ts +25 -0
  3. package/dist/CruisePlugin/{Controller.d.ts → Work.d.ts} +1 -8
  4. package/dist/CruisePlugin/index.d.ts +4 -3
  5. package/dist/CruisePlugin/typing.d.ts +2 -2
  6. package/dist/CruisePlugin/utils/getFiveStateOnCurve.d.ts +11 -0
  7. package/dist/GuideLinePlugin/Controller.d.ts +1 -6
  8. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +4 -0
  9. package/dist/PanoTagPlugin/controller/TagRender.d.ts +0 -4
  10. package/dist/index.cjs.js +53 -53
  11. package/dist/index.js +4420 -4234
  12. package/dist/index.umd.js +48 -48
  13. package/dist/shared-utils/five/fiveLoaded.d.ts +2 -0
  14. package/docs/assets/search.js +1 -1
  15. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +32 -31
  16. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +33 -32
  17. package/docs/classes/CSS3DRender.html +32 -31
  18. package/docs/classes/GuideLineItem.GuideLineItem.html +20 -19
  19. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +42 -41
  20. package/docs/classes/Magnifier.html +21 -20
  21. package/docs/classes/ModelRoomLabelController.html +12 -11
  22. package/docs/classes/MoveController.html +640 -0
  23. package/docs/classes/Object3DHelperController.html +26 -25
  24. package/docs/classes/PaintBrush.html +16 -15
  25. package/docs/classes/PanoMeasurePluginLine.html +28 -27
  26. package/docs/classes/PanoMeasurePluginModel.html +28 -27
  27. package/docs/classes/PanoMeasurePluginPoint.html +12 -11
  28. package/docs/classes/PanoMeasurePluginPolyline.html +28 -27
  29. package/docs/classes/PanoTagPluginController.html +49 -48
  30. package/docs/classes/Util.BetterTween.html +10 -9
  31. package/docs/classes/Util.Interval.html +13 -12
  32. package/docs/classes/Util.LineSegments.html +9 -8
  33. package/docs/classes/Util.Magnifier.html +21 -20
  34. package/docs/classes/Util.Object3D.html +9 -8
  35. package/docs/classes/Util.PointDomHelper.html +12 -11
  36. package/docs/classes/Util.PointHelper.html +12 -11
  37. package/docs/classes/Util.PointSelectorHelper.html +17 -16
  38. package/docs/classes/Util.Rectangle.html +14 -13
  39. package/docs/classes/{CruisePluginController.html → WalkController.html} +51 -57
  40. package/docs/enums/CameraMovementEffect.html +8 -7
  41. package/docs/enums/ContentType.html +21 -20
  42. package/docs/enums/DIRECTION.html +10 -9
  43. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
  44. package/docs/enums/DimensionType.html +8 -7
  45. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
  46. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
  47. package/docs/enums/PaintBrushTypeEnum.html +9 -8
  48. package/docs/enums/PointType.html +8 -7
  49. package/docs/enums/Rotation.html +9 -8
  50. package/docs/functions/AreaMakerPlugin.html +6 -5
  51. package/docs/functions/CSS3DRenderPlugin.html +5 -4
  52. package/docs/functions/CameraMovementPlugin.html +5 -4
  53. package/docs/functions/CruisePlugin.html +7 -6
  54. package/docs/functions/CurrentPanoImagePlugin.html +5 -4
  55. package/docs/functions/GuideLinePlugin.html +6 -5
  56. package/docs/functions/ItemLabelPlugin.html +5 -4
  57. package/docs/functions/MapviewFloorplanPlugin.html +5 -4
  58. package/docs/functions/ModelChassisCompassPlugin.html +5 -4
  59. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
  60. package/docs/functions/ModelFloorplanPlugin.html +5 -4
  61. package/docs/functions/ModelItemLabelPlugin.html +5 -4
  62. package/docs/functions/ModelRoomLabelPlugin.html +5 -4
  63. package/docs/functions/ModelTVVideoPlugin.html +5 -4
  64. package/docs/functions/ModelViewPlugin.html +5 -4
  65. package/docs/functions/Object3DHelperPlugin.html +5 -4
  66. package/docs/functions/PanoCompassPlugin.html +5 -4
  67. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
  68. package/docs/functions/PanoDoorLabelPlugin.html +5 -4
  69. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
  70. package/docs/functions/PanoMeasurePlugin.html +5 -4
  71. package/docs/functions/PanoRulerPlugin.html +5 -4
  72. package/docs/functions/PanoRulerProPlugin.html +5 -4
  73. package/docs/functions/PanoSpatialTagPlugin.html +5 -4
  74. package/docs/functions/PanoTagPlugin.html +5 -4
  75. package/docs/functions/PanoVideoPlugin.html +5 -4
  76. package/docs/functions/PipelinePlugin.html +5 -4
  77. package/docs/functions/TopviewFloorplanPlugin.html +5 -4
  78. package/docs/functions/Util.absoluteUrl.html +6 -5
  79. package/docs/functions/Util.checkFiveModelLoaded.html +6 -5
  80. package/docs/functions/Util.equal.html +6 -5
  81. package/docs/functions/Util.getCoordsFromClient.html +6 -5
  82. package/docs/functions/Util.getCoordsFromElement.html +6 -5
  83. package/docs/functions/Util.getFrameTime.html +6 -5
  84. package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
  85. package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
  86. package/docs/functions/Util.isAbsoluteURL.html +6 -5
  87. package/docs/functions/Util.isModelLike.html +6 -5
  88. package/docs/functions/Util.isNil.html +6 -5
  89. package/docs/functions/Util.isPanoramaLike.html +6 -5
  90. package/docs/functions/Util.nextFrame.html +6 -5
  91. package/docs/functions/Util.notNil.html +6 -5
  92. package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
  93. package/docs/functions/Util.tweenProgress.html +6 -5
  94. package/docs/functions/Util.uuid.html +6 -5
  95. package/docs/functions/pluginFlag.html +6 -5
  96. package/docs/index.html +6 -5
  97. package/docs/interfaces/AddTagConfig.html +7 -6
  98. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +7 -6
  99. package/docs/interfaces/AreaMakerPluginType.Config.html +7 -6
  100. package/docs/interfaces/AreaMakerPluginType.EventMap.html +16 -15
  101. package/docs/interfaces/AreaMakerPluginType.Params.html +8 -7
  102. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +10 -9
  103. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +9 -8
  104. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +7 -6
  105. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +7 -6
  106. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +7 -6
  107. package/docs/interfaces/AreaMakerPluginType.State.html +9 -8
  108. package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
  109. package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
  110. package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
  111. package/docs/interfaces/CruisePluginTypes.Config.html +9 -8
  112. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +13 -12
  113. package/docs/interfaces/CruisePluginTypes.EventMap.html +21 -20
  114. package/docs/interfaces/CruisePluginTypes.MoveAction.html +13 -12
  115. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +15 -14
  116. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +15 -14
  117. package/docs/interfaces/CruisePluginTypes.PluginData.html +10 -9
  118. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +7 -6
  119. package/docs/interfaces/CruisePluginTypes.PluginState.html +15 -35
  120. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +12 -11
  121. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +13 -12
  122. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +8 -7
  123. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +7 -6
  124. package/docs/interfaces/CurrentPanoImagePluginType.State.html +9 -8
  125. package/docs/interfaces/EventMap.html +16 -15
  126. package/docs/interfaces/FloorplanBounding.html +9 -8
  127. package/docs/interfaces/FloorplanData.html +11 -10
  128. package/docs/interfaces/FloorplanEntrance.html +12 -11
  129. package/docs/interfaces/FloorplanExtraObject.html +11 -10
  130. package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
  131. package/docs/interfaces/FloorplanFloorData.html +10 -9
  132. package/docs/interfaces/FloorplanImagePosition.html +8 -7
  133. package/docs/interfaces/FloorplanObserver.html +10 -9
  134. package/docs/interfaces/FloorplanOutlineItem.html +10 -9
  135. package/docs/interfaces/FloorplanPosition.html +8 -7
  136. package/docs/interfaces/FloorplanRoomItem.html +14 -13
  137. package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
  138. package/docs/interfaces/FloorplanServerBounding.html +9 -8
  139. package/docs/interfaces/FloorplanServerComputedData.html +11 -10
  140. package/docs/interfaces/FloorplanServerData.html +8 -7
  141. package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
  142. package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
  143. package/docs/interfaces/FloorplanServerEntrance.html +12 -11
  144. package/docs/interfaces/FloorplanServerFloorData.html +10 -9
  145. package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
  146. package/docs/interfaces/FloorplanServerObserver.html +10 -9
  147. package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
  148. package/docs/interfaces/FloorplanServerPosition.html +8 -7
  149. package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
  150. package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
  151. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +9 -8
  152. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +11 -10
  153. package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -13
  154. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -8
  155. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -6
  156. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +14 -13
  157. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +7 -6
  158. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -8
  159. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +20 -19
  160. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +8 -7
  161. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +20 -19
  162. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -5
  163. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +7 -6
  164. package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -8
  165. package/docs/interfaces/GuideLinePluginType.Route.html +12 -11
  166. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -9
  167. package/docs/interfaces/HelperOffset.html +9 -8
  168. package/docs/interfaces/ImagePlaneGroup.html +7 -6
  169. package/docs/interfaces/ItemLabelPluginData.html +7 -6
  170. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
  171. package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
  172. package/docs/interfaces/MinMax.html +8 -7
  173. package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
  174. package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
  175. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
  176. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
  177. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
  178. package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
  179. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
  180. package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
  181. package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
  182. package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
  183. package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
  184. package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
  185. package/docs/interfaces/ModelViewPluginExportType.html +12 -11
  186. package/docs/interfaces/Object3DHelperState.html +9 -8
  187. package/docs/interfaces/ObjectHelperControllers.html +10 -9
  188. package/docs/interfaces/PaintBrushAction.html +13 -12
  189. package/docs/interfaces/PaintBrushConfigs.html +13 -12
  190. package/docs/interfaces/PaintBrushState.html +11 -10
  191. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
  192. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
  193. package/docs/interfaces/PanoMeasureParameterType.html +17 -16
  194. package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
  195. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
  196. package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
  197. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
  198. package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
  199. package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
  200. package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
  201. package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
  202. package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
  203. package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
  204. package/docs/interfaces/PanoRulerProPluginState.html +9 -8
  205. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
  206. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
  207. package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
  208. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
  209. package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
  210. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
  211. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
  212. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
  213. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
  214. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -6
  215. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -8
  216. package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -6
  217. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -9
  218. package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -6
  219. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -8
  220. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -10
  221. package/docs/interfaces/Point.html +9 -8
  222. package/docs/interfaces/Room.html +10 -9
  223. package/docs/interfaces/RoomInfo.html +8 -7
  224. package/docs/interfaces/RoomLabel.html +15 -14
  225. package/docs/interfaces/RoomRules.html +6 -5
  226. package/docs/interfaces/Rooms.html +6 -5
  227. package/docs/interfaces/Scissor.html +10 -9
  228. package/docs/interfaces/State.html +9 -8
  229. package/docs/interfaces/TagCacheInterface.html +13 -12
  230. package/docs/interfaces/TagConfig.html +15 -14
  231. package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
  232. package/docs/interfaces/TagIconUrl.html +13 -12
  233. package/docs/interfaces/TagObjectGroup.html +7 -6
  234. package/docs/interfaces/TagStyle.html +7 -6
  235. package/docs/interfaces/Tags.html +10 -9
  236. package/docs/interfaces/TemporaryState.html +7 -6
  237. package/docs/interfaces/Util.MagnifierParameter.html +12 -11
  238. package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
  239. package/docs/interfaces/Util.PointIntersection.html +9 -8
  240. package/docs/modules/AreaMakerPluginType.html +6 -5
  241. package/docs/modules/CruisePluginTypes.html +6 -5
  242. package/docs/modules/CurrentPanoImagePluginType.html +6 -5
  243. package/docs/modules/GuideLineItem.html +6 -5
  244. package/docs/modules/GuideLineModeItem.html +6 -5
  245. package/docs/modules/GuideLinePluginType.html +6 -5
  246. package/docs/modules/PanoVideoPluginType.html +6 -5
  247. package/docs/modules/Util.html +6 -5
  248. package/docs/modules.html +8 -6
  249. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +6 -5
  250. package/docs/types/AreaMakerPluginType.PluginData.html +6 -5
  251. package/docs/types/AreaMakerPluginType.ServerData.html +6 -5
  252. package/docs/types/ArrayPosition.html +6 -5
  253. package/docs/types/AudioAppearance.html +6 -5
  254. package/docs/types/AudioTagTypeConfigKey.html +6 -5
  255. package/docs/types/CSS3DRenderExportType.html +6 -5
  256. package/docs/types/CSS3DRenderPluginExportType.html +6 -5
  257. package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
  258. package/docs/types/ClassFunctionParameters.html +6 -5
  259. package/docs/types/Color.html +6 -5
  260. package/docs/types/ContentTypeConfigKey.html +6 -5
  261. package/docs/types/ContentTypeConfigKeySplit.html +6 -5
  262. package/docs/types/ContentTypeMap.html +6 -5
  263. package/docs/types/Create3DDomContainerReturnType.html +6 -5
  264. package/docs/types/Create3DElementReturnType.html +6 -5
  265. package/docs/types/CruisePluginExportType.html +6 -5
  266. package/docs/types/CruisePluginTypes.CruiseData.html +6 -5
  267. package/docs/types/CruisePluginTypes.MoveEffect.html +6 -5
  268. package/docs/types/CurrentPanoImagePluginExportType.html +6 -5
  269. package/docs/types/DeprecatedMediaPlaneProperty.html +6 -5
  270. package/docs/types/DeprecatedTagProperty.html +6 -5
  271. package/docs/types/Direction-1.html +6 -5
  272. package/docs/types/Direction4.html +6 -5
  273. package/docs/types/ElementRenderer.html +6 -5
  274. package/docs/types/FloorplanRuleLabels.html +6 -5
  275. package/docs/types/FloorplanServerRuleLabels.html +6 -5
  276. package/docs/types/GuideLinePluginExportType.html +6 -5
  277. package/docs/types/GuideLinePluginType.GuideLineItem.html +6 -5
  278. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +6 -5
  279. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +6 -5
  280. package/docs/types/GuideLinePluginType.GuideLineStyle.html +6 -5
  281. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +6 -5
  282. package/docs/types/GuideLinePluginType.PathItem.html +6 -5
  283. package/docs/types/GuideLinePluginType.PluginData.html +6 -5
  284. package/docs/types/HelperEventMap.html +6 -5
  285. package/docs/types/LoadTagConfig.html +6 -5
  286. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
  287. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
  288. package/docs/types/MediaData.html +6 -5
  289. package/docs/types/MediaStore.html +6 -5
  290. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
  291. package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
  292. package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
  293. package/docs/types/ModelId.html +6 -5
  294. package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
  295. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
  296. package/docs/types/MoveArgs.html +6 -5
  297. package/docs/types/MoveOpts.html +6 -5
  298. package/docs/types/Object3DHelperEventMap.html +6 -5
  299. package/docs/types/ObjectFit.html +6 -5
  300. package/docs/types/PaintBrushEventMap.html +6 -5
  301. package/docs/types/PanoCompassPluginData.html +6 -5
  302. package/docs/types/PanoCompassPluginExportType.html +6 -5
  303. package/docs/types/PanoCompassPluginParameterType.html +6 -5
  304. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
  305. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
  306. package/docs/types/PanoIndex.html +6 -5
  307. package/docs/types/PanoMeasurePluginEvent.html +6 -5
  308. package/docs/types/PanoMeasureReturnType.html +6 -5
  309. package/docs/types/PanoSpatialTagPluginId.html +6 -5
  310. package/docs/types/PanoTagPluginExportInterface.html +6 -5
  311. package/docs/types/PanoTagPluginParamsInterface.html +6 -5
  312. package/docs/types/PanoVideoPluginParameterType.html +6 -5
  313. package/docs/types/PanoVideoPluginReturnType.html +6 -5
  314. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +6 -5
  315. package/docs/types/PipelinePluginParameterType.html +6 -5
  316. package/docs/types/PipelinePluginReturnType.html +6 -5
  317. package/docs/types/PlaneTag.html +6 -5
  318. package/docs/types/Point2DTag.html +6 -5
  319. package/docs/types/Point3DTag.html +6 -5
  320. package/docs/types/PointTag.html +6 -5
  321. package/docs/types/PointTagInstance.html +6 -5
  322. package/docs/types/Position.html +6 -5
  323. package/docs/types/RotateArgs.html +6 -5
  324. package/docs/types/RotateOpts.html +6 -5
  325. package/docs/types/RuleLabelsKey.html +6 -5
  326. package/docs/types/RuleLabelsValue.html +6 -5
  327. package/docs/types/StickType.html +6 -5
  328. package/docs/types/Tag.html +6 -5
  329. package/docs/types/Tag2D.html +6 -5
  330. package/docs/types/Tag3D.html +6 -5
  331. package/docs/types/TagConfigByKey.html +6 -5
  332. package/docs/types/TagContentType.html +6 -5
  333. package/docs/types/TagDimensionType.html +6 -5
  334. package/docs/types/TagElement.html +6 -5
  335. package/docs/types/TagEvents.html +6 -5
  336. package/docs/types/TagGLTFObject.html +6 -5
  337. package/docs/types/TagHooks.html +6 -5
  338. package/docs/types/TagId.html +6 -5
  339. package/docs/types/TagInstance.html +6 -5
  340. package/docs/types/TagPointType.html +6 -5
  341. package/docs/types/TagRendererMap.html +6 -5
  342. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
  343. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
  344. package/docs/types/WorkCode.html +6 -5
  345. package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
  346. package/docs/variables/PLUGIN.html +6 -5
  347. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
  348. package/docs/variables/ROOM_TYPE_MAP.html +6 -5
  349. package/docs/variables/defaultGlobalConfig.html +6 -5
  350. package/docs/variables/itemLabelPluginServerParams.html +6 -5
  351. package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
  352. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
  353. package/libs/CruisePlugin/CruiseController.d.ts +146 -0
  354. package/libs/CruisePlugin/CruiseController.js +235 -0
  355. package/libs/CruisePlugin/Move.d.ts +25 -0
  356. package/libs/CruisePlugin/Move.js +111 -0
  357. package/libs/CruisePlugin/{Controller.d.ts → Work.d.ts} +1 -8
  358. package/libs/CruisePlugin/{Controller.js → Work.js} +149 -177
  359. package/libs/CruisePlugin/index.d.ts +4 -3
  360. package/libs/CruisePlugin/index.js +14 -10
  361. package/libs/CruisePlugin/typing.d.ts +2 -2
  362. package/libs/CruisePlugin/utils/getFiveStateOnCurve.d.ts +11 -0
  363. package/libs/CruisePlugin/utils/getFiveStateOnCurve.js +11 -0
  364. package/libs/GuideLinePlugin/Controller.d.ts +1 -6
  365. package/libs/GuideLinePlugin/Controller.js +60 -74
  366. package/libs/GuideLinePlugin/GuideLineItem/index.js +53 -43
  367. package/libs/GuideLinePlugin/GuideLineItem.js +12 -9
  368. package/libs/GuideLinePlugin/index.js +20 -17
  369. package/libs/PanoTagPlugin/Components/TagItem.js +255 -287
  370. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +4 -0
  371. package/libs/PanoTagPlugin/controller/TagComputer.js +135 -116
  372. package/libs/PanoTagPlugin/controller/TagRender.d.ts +0 -4
  373. package/libs/PanoTagPlugin/controller/TagRender.js +71 -90
  374. package/libs/base/BasePlugin.js +1 -1
  375. package/libs/index.js +123 -119
  376. package/libs/shared-utils/five/fiveLoaded.d.ts +2 -0
  377. package/libs/shared-utils/five/fiveLoaded.js +30 -0
  378. package/libs/shared-utils/formatRad.d.ts +7 -0
  379. package/libs/shared-utils/formatRad.js +7 -0
  380. package/libs/shared-utils/logger.js +1 -1
  381. package/package.json +2 -2
  382. package/dist/CruisePlugin/utils/linerValue.d.ts +0 -1
  383. /package/dist/{CruisePlugin/utils → shared-utils}/formatRad.d.ts +0 -0
  384. /package/dist/{CruisePlugin/utils/vectorToCoordinates.d.ts → shared-utils/vectorToCoordinate.d.ts} +0 -0
  385. /package/libs/{CruisePlugin/utils/vectorToCoordinates.d.ts → shared-utils/vectorToCoordinate.d.ts} +0 -0
  386. /package/libs/{CruisePlugin/utils/vectorToCoordinates.js → shared-utils/vectorToCoordinate.js} +0 -0
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelItemLabelPluginServerParams | 如视看房插件合集 - v3.3.5-dev.0</title><meta name="description" content="Documentation for 如视看房插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelItemLabelPluginServerParams | 如视看房插件合集 - v3.4.0-dev.0</title><meta name="description" content="Documentation for 如视看房插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,7 +6,7 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v3.3.5-dev.0</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v3.4.0-dev.0</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-content">
@@ -24,7 +24,7 @@
24
24
  <li class="tsd-parameter">
25
25
  <h5><span class="tsd-kind-property">version</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
26
26
  <ul>
27
- <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/575e8df/plugins/src/ModelItemLabelPlugin/index.ts#L7">plugins/src/ModelItemLabelPlugin/index.ts:7</a></li></ul></aside></div>
27
+ <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/9a02a15/plugins/src/ModelItemLabelPlugin/index.ts#L7">plugins/src/ModelItemLabelPlugin/index.ts:7</a></li></ul></aside></div>
28
28
  <div class="col-sidebar">
29
29
  <div class="page-menu">
30
30
  <div class="tsd-navigation settings">
@@ -38,7 +38,7 @@
38
38
  <div class="tsd-theme-toggle">
39
39
  <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
40
40
  <div class="site-menu">
41
- <nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>如视看房插件合集 -<wbr/> v3.3.5-<wbr/>dev.0</span></a>
41
+ <nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>如视看房插件合集 -<wbr/> v3.4.0-<wbr/>dev.0</span></a>
42
42
  <ul class="tsd-small-nested-navigation">
43
43
  <li><a href="../modules/AreaMakerPluginType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Area<wbr/>Maker<wbr/>Plugin<wbr/>Type</span></a></li>
44
44
  <li><a href="../modules/CruisePluginTypes.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Cruise<wbr/>Plugin<wbr/>Types</span></a></li>
@@ -59,9 +59,9 @@
59
59
  <li><a href="../enums/PointType.html" class="deprecated"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Point<wbr/>Type</span></a></li>
60
60
  <li><a href="../enums/Rotation.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Rotation</span></a></li>
61
61
  <li><a href="../classes/CSS3DRender.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g></svg><span>CSS3DRender</span></a></li>
62
- <li><a href="../classes/CruisePluginController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Cruise<wbr/>Plugin<wbr/>Controller</span></a></li>
63
62
  <li><a href="../classes/Magnifier.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Magnifier</span></a></li>
64
63
  <li><a href="../classes/ModelRoomLabelController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Model<wbr/>Room<wbr/>Label<wbr/>Controller</span></a></li>
64
+ <li><a href="../classes/MoveController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Move<wbr/>Controller</span></a></li>
65
65
  <li><a href="../classes/Object3DHelperController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Object3DHelper<wbr/>Controller</span></a></li>
66
66
  <li><a href="../classes/PaintBrush.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Paint<wbr/>Brush</span></a></li>
67
67
  <li><a href="../classes/PanoMeasurePluginLine.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Pano<wbr/>Measure<wbr/>Plugin<wbr/>Line</span></a></li>
@@ -69,6 +69,7 @@
69
69
  <li><a href="../classes/PanoMeasurePluginPoint.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Pano<wbr/>Measure<wbr/>Plugin<wbr/>Point</span></a></li>
70
70
  <li><a href="../classes/PanoMeasurePluginPolyline.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Pano<wbr/>Measure<wbr/>Plugin<wbr/>Polyline</span></a></li>
71
71
  <li><a href="../classes/PanoTagPluginController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Pano<wbr/>Tag<wbr/>Plugin<wbr/>Controller</span></a></li>
72
+ <li><a href="../classes/WalkController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Walk<wbr/>Controller</span></a></li>
72
73
  <li><a href="../interfaces/AddTagConfig.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g></svg><span>Add<wbr/>Tag<wbr/>Config</span></a></li>
73
74
  <li><a href="../interfaces/CSS3DRenderPluginEventMap.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>CSS3DRender<wbr/>Plugin<wbr/>Event<wbr/>Map</span></a></li>
74
75
  <li><a href="../interfaces/CSS3DRenderPluginState.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>CSS3DRender<wbr/>Plugin<wbr/>State</span></a></li>
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v3.3.5-dev.0</title><meta name="description" content="Documentation for 如视看房插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v3.4.0-dev.0</title><meta name="description" content="Documentation for 如视看房插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,7 +6,7 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v3.3.5-dev.0</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v3.4.0-dev.0</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-content">
@@ -24,7 +24,7 @@
24
24
  <li class="tsd-parameter">
25
25
  <h5><span class="tsd-kind-property">version</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
26
26
  <ul>
27
- <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/575e8df/plugins/src/ModelRoomLabelPlugin/index.ts#L9">plugins/src/ModelRoomLabelPlugin/index.ts:9</a></li></ul></aside></div>
27
+ <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/9a02a15/plugins/src/ModelRoomLabelPlugin/index.ts#L9">plugins/src/ModelRoomLabelPlugin/index.ts:9</a></li></ul></aside></div>
28
28
  <div class="col-sidebar">
29
29
  <div class="page-menu">
30
30
  <div class="tsd-navigation settings">
@@ -38,7 +38,7 @@
38
38
  <div class="tsd-theme-toggle">
39
39
  <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
40
40
  <div class="site-menu">
41
- <nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>如视看房插件合集 -<wbr/> v3.3.5-<wbr/>dev.0</span></a>
41
+ <nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>如视看房插件合集 -<wbr/> v3.4.0-<wbr/>dev.0</span></a>
42
42
  <ul class="tsd-small-nested-navigation">
43
43
  <li><a href="../modules/AreaMakerPluginType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Area<wbr/>Maker<wbr/>Plugin<wbr/>Type</span></a></li>
44
44
  <li><a href="../modules/CruisePluginTypes.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Cruise<wbr/>Plugin<wbr/>Types</span></a></li>
@@ -59,9 +59,9 @@
59
59
  <li><a href="../enums/PointType.html" class="deprecated"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Point<wbr/>Type</span></a></li>
60
60
  <li><a href="../enums/Rotation.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Rotation</span></a></li>
61
61
  <li><a href="../classes/CSS3DRender.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g></svg><span>CSS3DRender</span></a></li>
62
- <li><a href="../classes/CruisePluginController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Cruise<wbr/>Plugin<wbr/>Controller</span></a></li>
63
62
  <li><a href="../classes/Magnifier.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Magnifier</span></a></li>
64
63
  <li><a href="../classes/ModelRoomLabelController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Model<wbr/>Room<wbr/>Label<wbr/>Controller</span></a></li>
64
+ <li><a href="../classes/MoveController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Move<wbr/>Controller</span></a></li>
65
65
  <li><a href="../classes/Object3DHelperController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Object3DHelper<wbr/>Controller</span></a></li>
66
66
  <li><a href="../classes/PaintBrush.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Paint<wbr/>Brush</span></a></li>
67
67
  <li><a href="../classes/PanoMeasurePluginLine.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Pano<wbr/>Measure<wbr/>Plugin<wbr/>Line</span></a></li>
@@ -69,6 +69,7 @@
69
69
  <li><a href="../classes/PanoMeasurePluginPoint.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Pano<wbr/>Measure<wbr/>Plugin<wbr/>Point</span></a></li>
70
70
  <li><a href="../classes/PanoMeasurePluginPolyline.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Pano<wbr/>Measure<wbr/>Plugin<wbr/>Polyline</span></a></li>
71
71
  <li><a href="../classes/PanoTagPluginController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Pano<wbr/>Tag<wbr/>Plugin<wbr/>Controller</span></a></li>
72
+ <li><a href="../classes/WalkController.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Walk<wbr/>Controller</span></a></li>
72
73
  <li><a href="../interfaces/AddTagConfig.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g></svg><span>Add<wbr/>Tag<wbr/>Config</span></a></li>
73
74
  <li><a href="../interfaces/CSS3DRenderPluginEventMap.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>CSS3DRender<wbr/>Plugin<wbr/>Event<wbr/>Map</span></a></li>
74
75
  <li><a href="../interfaces/CSS3DRenderPluginState.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>CSS3DRender<wbr/>Plugin<wbr/>State</span></a></li>
@@ -0,0 +1,146 @@
1
+ import type { Five, State } from '@realsee/five';
2
+ import type { BaseOptions } from '../base/BasePlugin';
3
+ import * as BasePlugin from '../base/BasePlugin';
4
+ import type { PluginState, EventMap } from './typing';
5
+ export declare const pluginFlag: (name: string) => string;
6
+ export default abstract class CruiseController<PluginData, Config = unknown> extends BasePlugin.Controller<PluginState, EventMap> {
7
+ state: PluginState;
8
+ protected data?: PluginData & {
9
+ id: string | number;
10
+ };
11
+ protected config?: Config;
12
+ private privateState;
13
+ private GuideLine?;
14
+ constructor(five: Five, config?: Config);
15
+ /**
16
+ * @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
17
+ */
18
+ play(options?: {
19
+ userAction?: boolean;
20
+ }): void;
21
+ /**
22
+ * @description Pause
23
+ */
24
+ pause(options?: {
25
+ userAction?: boolean;
26
+ }): void;
27
+ /**
28
+ * @description Show guide line
29
+ */
30
+ show(options?: {
31
+ userAction?: boolean;
32
+ }): Promise<void>;
33
+ /**
34
+ * @description Hide guide line
35
+ */
36
+ hide(options?: {
37
+ userAction?: boolean;
38
+ }): Promise<void>;
39
+ /**
40
+ * @description Enable
41
+ */
42
+ enable(options?: {
43
+ userAction?: boolean;
44
+ }): void;
45
+ /**
46
+ * @description Disable
47
+ */
48
+ disable(options?: {
49
+ userAction?: boolean;
50
+ }): void;
51
+ /**
52
+ * @description Dispose
53
+ */
54
+ dispose(): void;
55
+ /**
56
+ * @description Set state
57
+ */
58
+ setState(state: Partial<PluginState>, options?: BaseOptions & Record<string, any>): void;
59
+ /**
60
+ * @description Clear pause data
61
+ */
62
+ protected clearPauseData(): boolean;
63
+ protected changePlayState(play: boolean, options?: {
64
+ userAction?: boolean;
65
+ playFromIndex?: number;
66
+ playFromId?: string;
67
+ }): void;
68
+ protected handleEnable(enabled: boolean, userAction?: boolean): void;
69
+ protected handleVisible(visible: boolean, userAction?: boolean): void;
70
+ /**
71
+ * @description: listen interupted by five gesture
72
+ */
73
+ protected addInterruptListener(interrupt: () => void): () => void;
74
+ /**
75
+ * @description Get duration by speed
76
+ */
77
+ protected getSpeededDuration(duration: number): number;
78
+ /**
79
+ * @description Change five mode
80
+ */
81
+ protected changeMode(data: Partial<State>, duration?: number): Promise<void>;
82
+ /**
83
+ * @description Force interupt five updateCamera
84
+ */
85
+ protected forceInteruptUpdateCamera(): void;
86
+ protected getPauseData(): {
87
+ fiveState: Partial<State>;
88
+ id?: string | number;
89
+ playedProgress: number;
90
+ duration?: number;
91
+ };
92
+ /**
93
+ * @description Set pause data
94
+ */
95
+ protected setPauseData(): Map<string | number, {
96
+ fiveState: Partial<State>;
97
+ id?: string | number;
98
+ playedProgress: number;
99
+ duration?: number;
100
+ }>;
101
+ /**
102
+ * @description: Restore state that before loaded
103
+ */
104
+ protected clear(): void;
105
+ protected handleDispose(): void;
106
+ /**
107
+ * @description Action function if plugin is enable
108
+ */
109
+ protected actionIfStateIsEnabled<T = any>(func: () => T, options?: {
110
+ warnLog?: true;
111
+ }): T;
112
+ /**
113
+ * @description Load Data and State
114
+ */
115
+ abstract load(serverData: unknown, state?: PluginState, userAction?: boolean): Promise<void>;
116
+ /**
117
+ * @description Play from first keyframe
118
+ */
119
+ abstract playFromStart(): void;
120
+ /**
121
+ * @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
122
+ * @param {number} options.playFromIndex play from keyframes index
123
+ * @param {string} options.playFromId play from keyframes id
124
+ */
125
+ protected abstract handlePlay(options?: {
126
+ userAction?: boolean;
127
+ playFromIndex?: number;
128
+ playFromId?: string;
129
+ notEmitEvent?: true;
130
+ }): Promise<string>;
131
+ /**
132
+ * @description: Change play speed
133
+ */
134
+ protected abstract changeSpeed(speed: number): void;
135
+ /**
136
+ * @description Get ratate progress
137
+ */
138
+ protected abstract getProgress(): number;
139
+ /**
140
+ * @description: Pause and record pause state
141
+ */
142
+ protected abstract handlePause(options?: {
143
+ userAction?: boolean;
144
+ notEmitEvent?: true;
145
+ }): void;
146
+ }
@@ -0,0 +1,235 @@
1
+ var v = Object.defineProperty;
2
+ var c = Object.getOwnPropertySymbols;
3
+ var S = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
4
+ var p = (a, s, e) => s in a ? v(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, n = (a, s) => {
5
+ for (var e in s || (s = {}))
6
+ S.call(s, e) && p(a, e, s[e]);
7
+ if (c)
8
+ for (var e of c(s))
9
+ y.call(s, e) && p(a, e, s[e]);
10
+ return a;
11
+ };
12
+ var h = (a, s, e) => (p(a, typeof s != "symbol" ? s + "" : s, e), e);
13
+ var l = (a, s, e) => new Promise((t, i) => {
14
+ var r = (d) => {
15
+ try {
16
+ u(e.next(d));
17
+ } catch (f) {
18
+ i(f);
19
+ }
20
+ }, b = (d) => {
21
+ try {
22
+ u(e.throw(d));
23
+ } catch (f) {
24
+ i(f);
25
+ }
26
+ }, u = (d) => d.done ? t(d.value) : Promise.resolve(d.value).then(r, b);
27
+ u((e = e.apply(a, s)).next());
28
+ });
29
+ import { Controller as C } from "../base/BasePlugin.js";
30
+ import { equal as P } from "../shared-utils/equal.js";
31
+ import "../shared-utils/Subscribe.js";
32
+ import "hammerjs";
33
+ import "three";
34
+ import "@realsee/five";
35
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
36
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
37
+ import "../shared-utils/positionToVector3.js";
38
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
39
+ import "three/examples/jsm/renderers/CSS3DRenderer";
40
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
41
+ import "../shared-utils/util.js";
42
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
43
+ import "../CSS3DRenderPlugin/utils/even.js";
44
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
45
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
46
+ import "../shared-utils/three/centerPoint.js";
47
+ import "../shared-utils/three/getObjectVisible.js";
48
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
49
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
50
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
51
+ import "../shared-utils/url/absoluteUrl.js";
52
+ import "../shared-utils/isTruelyObject.js";
53
+ const m = "CruisePlugin", o = `${m}`, X = (a) => `${o}--${a}`, L = () => {
54
+ console.error(`${o} is disposed`);
55
+ }, w = () => {
56
+ console.warn(`${o} is disabled`);
57
+ }, I = () => {
58
+ console.error(`${o} is disabled`);
59
+ }, g = /* @__PURE__ */ new Map();
60
+ class Y extends C {
61
+ constructor(e, t) {
62
+ super(e, t);
63
+ h(this, "state", {
64
+ visible: !0,
65
+ enabled: !0,
66
+ disposed: !1,
67
+ playing: !1,
68
+ speed: 1
69
+ });
70
+ h(this, "data");
71
+ h(this, "config");
72
+ h(this, "privateState", {
73
+ playing: !1,
74
+ broke: !1,
75
+ modeChanging: !1
76
+ });
77
+ h(this, "GuideLine");
78
+ this.config = t, Object.assign(window, { [`__${m}_DEBUG__`]: this });
79
+ }
80
+ /**
81
+ * @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
82
+ */
83
+ play(e) {
84
+ this.setState({ playing: !0 }, e);
85
+ }
86
+ /**
87
+ * @description Pause
88
+ */
89
+ pause(e) {
90
+ this.setState({ playing: !1 }, e);
91
+ }
92
+ /**
93
+ * @description Show guide line
94
+ */
95
+ show(e) {
96
+ return l(this, null, function* () {
97
+ this.setState({ visible: !0 }, e);
98
+ });
99
+ }
100
+ /**
101
+ * @description Hide guide line
102
+ */
103
+ hide(e) {
104
+ return l(this, null, function* () {
105
+ this.setState({ visible: !1 }, e);
106
+ });
107
+ }
108
+ /**
109
+ * @description Enable
110
+ */
111
+ enable(e) {
112
+ this.setState({ enabled: !0 }, e);
113
+ }
114
+ /**
115
+ * @description Disable
116
+ */
117
+ disable(e) {
118
+ this.setState({ enabled: !1 }, e);
119
+ }
120
+ /**
121
+ * @description Dispose
122
+ */
123
+ dispose() {
124
+ this.setState({ disposed: !0 });
125
+ }
126
+ /**
127
+ * @description Set state
128
+ */
129
+ setState(e, t) {
130
+ var r;
131
+ if (this.state.disposed)
132
+ return L();
133
+ if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
134
+ return I();
135
+ const i = n({}, this.state);
136
+ this.state = n(n({}, this.state), e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed), P(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (r = t == null ? void 0 : t.userAction) != null ? r : !0 });
137
+ }
138
+ /**
139
+ * @description Clear pause data
140
+ */
141
+ clearPauseData() {
142
+ var e, t;
143
+ if ((e = this.data) != null && e.id)
144
+ return g.delete((t = this.data) == null ? void 0 : t.id);
145
+ }
146
+ changePlayState(e, t) {
147
+ this.actionIfStateIsEnabled(
148
+ () => {
149
+ var i;
150
+ return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (i = t == null ? void 0 : t.userAction) != null ? i : !0 });
151
+ }
152
+ ), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
153
+ }
154
+ handleEnable(e, t = !0) {
155
+ var i, r;
156
+ e ? ((i = this.GuideLine) == null || i.enable(), this.hooks.emit("enable", { userAction: t })) : ((r = this.GuideLine) == null || r.disable(), this.changePlayState(!1, { userAction: t }), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
157
+ }
158
+ handleVisible(e, t = !0) {
159
+ var i, r;
160
+ e ? ((i = this.GuideLine) == null || i.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : ((r = this.GuideLine) == null || r.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
161
+ }
162
+ /**
163
+ * @description: listen interupted by five gesture
164
+ */
165
+ addInterruptListener(e) {
166
+ const t = () => {
167
+ this.privateState.modeChanging || e();
168
+ }, i = (r) => {
169
+ r !== "mouseMove" && (e(), this.five.off("gesture", i));
170
+ };
171
+ return this.five.on("gesture", i), this.five.once("wantsChangeMode", t), () => {
172
+ this.five.off("gesture", i), this.five.off("wantsChangeMode", t);
173
+ };
174
+ }
175
+ /**
176
+ * @description Get duration by speed
177
+ */
178
+ getSpeededDuration(e) {
179
+ return e / this.state.speed;
180
+ }
181
+ /**
182
+ * @description Change five mode
183
+ */
184
+ changeMode(e, t) {
185
+ return l(this, null, function* () {
186
+ e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
187
+ });
188
+ }
189
+ /**
190
+ * @description Force interupt five updateCamera
191
+ */
192
+ forceInteruptUpdateCamera() {
193
+ this.five.updateCamera({}, 0);
194
+ }
195
+ getPauseData() {
196
+ var e;
197
+ if ((e = this.data) != null && e.id)
198
+ return g.get(this.data.id);
199
+ }
200
+ /**
201
+ * @description Set pause data
202
+ */
203
+ setPauseData() {
204
+ var t;
205
+ const e = (t = this.data) == null ? void 0 : t.id;
206
+ if (e)
207
+ return g.set(e, {
208
+ fiveState: this.five.getCurrentState(),
209
+ playedProgress: this.getProgress()
210
+ });
211
+ }
212
+ /**
213
+ * @description: Restore state that before loaded
214
+ */
215
+ clear() {
216
+ this.clearPauseData();
217
+ }
218
+ // TODO
219
+ handleDispose() {
220
+ var e;
221
+ this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (e = this.GuideLine) == null || e.dispose(), this.GuideLine = void 0;
222
+ }
223
+ /**
224
+ * @description Action function if plugin is enable
225
+ */
226
+ actionIfStateIsEnabled(e, t) {
227
+ if (this.state.enabled)
228
+ return e();
229
+ t != null && t.warnLog && w();
230
+ }
231
+ }
232
+ export {
233
+ Y as default,
234
+ X as pluginFlag
235
+ };
@@ -0,0 +1,25 @@
1
+ import type { Five } from '@realsee/five';
2
+ import CruiseController from './CruiseController';
3
+ import type { PluginState } from './typing';
4
+ import type * as THREE from 'three';
5
+ type Data = {
6
+ path: THREE.CurvePath<THREE.Vector3>;
7
+ };
8
+ type Config = {
9
+ allowBreak?: boolean;
10
+ };
11
+ export default class MoveController extends CruiseController<Data, Config> {
12
+ private curve;
13
+ private curveOffset;
14
+ private playStartedTime;
15
+ private duration;
16
+ constructor(five: Five, config?: Config);
17
+ load(data: Data, state?: PluginState): Promise<void>;
18
+ changeSpeed: (speed: number, userAction?: boolean) => void;
19
+ playFromStart(): void;
20
+ protected getDuration(): number;
21
+ protected getProgress(): number;
22
+ protected handlePlay(): Promise<string>;
23
+ protected handlePause(): void;
24
+ }
25
+ export {};
@@ -0,0 +1,111 @@
1
+ var g = Object.defineProperty;
2
+ var c = Object.getOwnPropertySymbols;
3
+ var v = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
4
+ var m = (s, e, t) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, d = (s, e) => {
5
+ for (var t in e || (e = {}))
6
+ v.call(e, t) && m(s, t, e[t]);
7
+ if (c)
8
+ for (var t of c(e))
9
+ S.call(e, t) && m(s, t, e[t]);
10
+ return s;
11
+ };
12
+ var a = (s, e, t) => (m(s, typeof e != "symbol" ? e + "" : e, t), t);
13
+ import P from "./CruiseController.js";
14
+ import { objectAssignDeepExports as l } 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 y } from "../shared-utils/uuid.js";
22
+ import { getFiveStateOnCurve as u } 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 _ extends P {
44
+ constructor(t, i) {
45
+ super(t, i);
46
+ a(this, "curve");
47
+ a(this, "curveOffset", { y: 2 });
48
+ a(this, "playStartedTime", performance.now());
49
+ a(this, "duration");
50
+ a(this, "changeSpeed", (t, i = !0) => {
51
+ this.state.speed = t, this.hooks.emit("speedChange", t, { userAction: i });
52
+ });
53
+ const r = {
54
+ config: {
55
+ speedConfig: {
56
+ moveSpeed: 2,
57
+ moveSpeedUnit: "m/s"
58
+ }
59
+ }
60
+ }, o = {
61
+ allowBreak: !0
62
+ };
63
+ this.state = l({}, r, this.state), this.config = l({}, o, this.config);
64
+ }
65
+ load(t, i) {
66
+ if (this.clearPauseData(), this.data = d({ id: y() }, t), this.curve = this.data.path.curves[0], !this.curve)
67
+ throw new Error("curve is not defined");
68
+ const r = this.curve.getLength(), o = this.state.config.speedConfig.moveSpeedUnit === "m/ms" ? 1 : 1e3;
69
+ return this.duration = r / (this.state.config.speedConfig.moveSpeed / o), i ? this.setState(i) : (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();
70
+ }
71
+ playFromStart() {
72
+ this.clearPauseData(), this.setState({ playing: !0 });
73
+ }
74
+ getDuration() {
75
+ return this.getSpeededDuration(this.duration);
76
+ }
77
+ getProgress() {
78
+ var h;
79
+ const t = this.getPauseData(), i = 1 - ((h = t == null ? void 0 : t.playedProgress) != null ? h : 0), r = this.getDuration(), n = (performance.now() - this.playStartedTime) / r;
80
+ return 1 - i + n;
81
+ }
82
+ handlePlay() {
83
+ return new Promise((t, i) => {
84
+ var h;
85
+ const r = this.getPauseData(), o = u(this.curve, (h = r == null ? void 0 : r.playedProgress) != null ? h : 0, this.curveOffset);
86
+ if (this.five.setState(o), this.playStartedTime = performance.now(), this.config.allowBreak) {
87
+ const p = this.addInterruptListener(() => {
88
+ this.hooks.emit("broke"), this.handlePause(), p();
89
+ });
90
+ }
91
+ const n = () => {
92
+ const p = this.getProgress();
93
+ if (p >= 1)
94
+ this.five.off("renderFrame", n), t("end");
95
+ else if (this.state.playing === !1)
96
+ this.five.off("renderFrame", n);
97
+ else if (p >= 0) {
98
+ const f = u(this.curve, p, this.curveOffset);
99
+ this.five.setState(f);
100
+ }
101
+ };
102
+ this.five.on("renderFrame", n);
103
+ });
104
+ }
105
+ handlePause() {
106
+ this.state.playing = !1, this.hooks.emit("playStateChange", "pause", { userAction: !0 }), this.setPauseData();
107
+ }
108
+ }
109
+ export {
110
+ _ as default
111
+ };