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