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