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