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