@realsee/dnalogel 2.16.0-2 → 2.16.0-alpha.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 (427) hide show
  1. package/dist/CSS3DRenderPlugin/Controller.d.ts +0 -1
  2. package/dist/CruisePlugin/Controller.d.ts +2 -1
  3. package/dist/CruisePlugin/typing.d.ts +2 -12
  4. package/dist/GuideLinePlugin/Controller.d.ts +12 -20
  5. package/dist/GuideLinePlugin/index.d.ts +0 -4
  6. package/dist/GuideLinePlugin/typing.d.ts +1 -70
  7. package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
  8. package/dist/PanoTagPlugin/typings/controller.d.ts +5 -2
  9. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -3
  10. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +4 -1
  11. package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +69 -0
  12. package/dist/base/BasePlugin.d.ts +0 -1
  13. package/dist/index.cjs.js +115 -162
  14. package/dist/index.js +5234 -5141
  15. package/dist/index.umd.js +116 -163
  16. package/dist/shared-utils/five/FiveDomEvents.d.ts +11 -0
  17. package/dist/shared-utils/index.d.ts +0 -3
  18. package/dist/shared-utils/logger.d.ts +17 -0
  19. package/dist/shared-utils/math/pointIsRectangle.d.ts +2 -0
  20. package/dist/shared-utils/offscreenCanvas.d.ts +2 -0
  21. package/dist/shared-utils/three/Quadrangle.d.ts +20 -0
  22. package/dist/shared-utils/three/getPositionsByObjectFit.d.ts +2 -0
  23. package/dist/shared-utils/three/loadVideoTexture.d.ts +4 -0
  24. package/docs/assets/search.js +1 -1
  25. package/docs/classes/CSS3DRender.html +31 -34
  26. package/docs/classes/CruisePluginController.html +27 -46
  27. package/docs/classes/Magnifier.html +20 -23
  28. package/docs/classes/ModelRoomLabelController.html +11 -14
  29. package/docs/classes/Object3DHelperController.html +24 -43
  30. package/docs/classes/PaintBrush.html +15 -18
  31. package/docs/classes/PanoMeasurePluginLine.html +23 -26
  32. package/docs/classes/PanoMeasurePluginModel.html +22 -25
  33. package/docs/classes/PanoMeasurePluginPoint.html +14 -17
  34. package/docs/classes/PanoMeasurePluginPolyline.html +26 -29
  35. package/docs/classes/PanoTagPluginController.html +65 -84
  36. package/docs/classes/Util.BetterTween.html +8 -11
  37. package/docs/classes/Util.FivePointSelector.html +12 -15
  38. package/docs/classes/Util.Interval.html +12 -15
  39. package/docs/classes/Util.Magnifier.html +17 -20
  40. package/docs/classes/Util.PointDomHelper.html +11 -14
  41. package/docs/classes/Util.PointHelper.html +11 -14
  42. package/docs/classes/Util.Rectangle.html +13 -16
  43. package/docs/enums/CameraMovementEffect.html +7 -10
  44. package/docs/enums/ContentType.html +19 -22
  45. package/docs/enums/DIRECTION.html +9 -12
  46. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -12
  47. package/docs/enums/DimensionType.html +7 -10
  48. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -11
  49. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -12
  50. package/docs/enums/PaintBrushTypeEnum.html +8 -11
  51. package/docs/enums/Rotation.html +8 -11
  52. package/docs/functions/CSS3DRenderPlugin.html +5 -7
  53. package/docs/functions/CameraMovementPlugin.html +5 -7
  54. package/docs/functions/CruisePlugin.html +5 -7
  55. package/docs/functions/GuideLinePlugin.html +6 -8
  56. package/docs/functions/ItemLabelPlugin.html +5 -7
  57. package/docs/functions/MapviewFloorplanPlugin.html +5 -7
  58. package/docs/functions/ModelChassisCompassPlugin.html +5 -7
  59. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -7
  60. package/docs/functions/ModelFloorplanPlugin.html +5 -7
  61. package/docs/functions/ModelItemLabelPlugin.html +5 -7
  62. package/docs/functions/ModelRoomLabelPlugin.html +5 -7
  63. package/docs/functions/ModelTVVideoPlugin.html +5 -7
  64. package/docs/functions/ModelViewPlugin.html +5 -7
  65. package/docs/functions/Object3DHelperPlugin.html +5 -7
  66. package/docs/functions/PanoCompassPlugin.html +5 -7
  67. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -7
  68. package/docs/functions/PanoDoorLabelPlugin.html +5 -7
  69. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -7
  70. package/docs/functions/PanoMeasurePlugin.html +5 -7
  71. package/docs/functions/PanoRulerPlugin.html +5 -7
  72. package/docs/functions/PanoRulerProPlugin.html +5 -7
  73. package/docs/functions/PanoSpatialTagPlugin.html +5 -7
  74. package/docs/functions/PanoTagPlugin.html +5 -7
  75. package/docs/functions/PanoVideoPlugin.html +5 -7
  76. package/docs/functions/TopviewFloorplanPlugin.html +5 -7
  77. package/docs/functions/Util.getCoordsFromClient.html +6 -13
  78. package/docs/functions/Util.getCoordsFromElement.html +6 -13
  79. package/docs/functions/Util.getFrameTime.html +6 -13
  80. package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -13
  81. package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -13
  82. package/docs/functions/Util.isNil.html +6 -13
  83. package/docs/functions/Util.nextFrame.html +6 -13
  84. package/docs/functions/Util.notNil.html +6 -13
  85. package/docs/functions/Util.requestAnimationFrameInterval.html +6 -13
  86. package/docs/functions/Util.tweenProgress.html +6 -13
  87. package/docs/functions/pluginFlag.html +6 -8
  88. package/docs/index.html +5 -7
  89. package/docs/interfaces/AddTagConfig.html +6 -9
  90. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -14
  91. package/docs/interfaces/CSS3DRenderPluginState.html +8 -11
  92. package/docs/interfaces/CameraMovementPluginExportType.html +7 -10
  93. package/docs/interfaces/EventMap.html +15 -18
  94. package/docs/interfaces/FloorplanBounding.html +8 -11
  95. package/docs/interfaces/FloorplanData.html +10 -13
  96. package/docs/interfaces/FloorplanEntrance.html +11 -14
  97. package/docs/interfaces/FloorplanExtraObject.html +10 -13
  98. package/docs/interfaces/FloorplanExtraObject3D.html +8 -11
  99. package/docs/interfaces/FloorplanFloorData.html +9 -12
  100. package/docs/interfaces/FloorplanImagePosition.html +7 -10
  101. package/docs/interfaces/FloorplanObserver.html +9 -12
  102. package/docs/interfaces/FloorplanOutlineItem.html +9 -12
  103. package/docs/interfaces/FloorplanPosition.html +7 -10
  104. package/docs/interfaces/FloorplanRoomItem.html +13 -16
  105. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -10
  106. package/docs/interfaces/FloorplanServerBounding.html +8 -11
  107. package/docs/interfaces/FloorplanServerComputedData.html +10 -13
  108. package/docs/interfaces/FloorplanServerData.html +7 -10
  109. package/docs/interfaces/FloorplanServerDoorItem.html +10 -13
  110. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -11
  111. package/docs/interfaces/FloorplanServerEntrance.html +11 -14
  112. package/docs/interfaces/FloorplanServerFloorData.html +9 -12
  113. package/docs/interfaces/FloorplanServerImagePosition.html +7 -10
  114. package/docs/interfaces/FloorplanServerObserver.html +9 -12
  115. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -12
  116. package/docs/interfaces/FloorplanServerPosition.html +7 -10
  117. package/docs/interfaces/FloorplanServerRoomItem.html +14 -17
  118. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -10
  119. package/docs/interfaces/HelperOffset.html +8 -11
  120. package/docs/interfaces/ImagePlaneGroup.html +6 -9
  121. package/docs/interfaces/ItemLabelPluginData.html +6 -9
  122. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -14
  123. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -12
  124. package/docs/interfaces/MinMax.html +7 -10
  125. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -10
  126. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -11
  127. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -10
  128. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -11
  129. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -11
  130. package/docs/interfaces/ModelItemLabelPluginData.html +6 -9
  131. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -14
  132. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -10
  133. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -9
  134. package/docs/interfaces/ModelTVVideoPluginData.html +9 -12
  135. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -11
  136. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -9
  137. package/docs/interfaces/ModelViewPluginExportType.html +11 -14
  138. package/docs/interfaces/Object3DHelperState.html +8 -11
  139. package/docs/interfaces/ObjectHelperControllers.html +9 -12
  140. package/docs/interfaces/PaintBrushAction.html +12 -15
  141. package/docs/interfaces/PaintBrushConfigs.html +12 -15
  142. package/docs/interfaces/PaintBrushState.html +10 -13
  143. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -13
  144. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -8
  145. package/docs/interfaces/PanoMeasureParameterType.html +14 -17
  146. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -11
  147. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -10
  148. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -10
  149. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -11
  150. package/docs/interfaces/PanoRulerPluginExportType.html +10 -13
  151. package/docs/interfaces/PanoRulerPluginOptions.html +7 -10
  152. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -11
  153. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -12
  154. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -10
  155. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -10
  156. package/docs/interfaces/PanoRulerProPluginState.html +8 -11
  157. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -8
  158. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -8
  159. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -14
  160. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -13
  161. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -16
  162. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -13
  163. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -16
  164. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -14
  165. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -13
  166. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -9
  167. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -11
  168. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -9
  169. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +15 -18
  170. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -9
  171. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -11
  172. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -13
  173. package/docs/interfaces/Point.html +8 -11
  174. package/docs/interfaces/Room.html +9 -12
  175. package/docs/interfaces/RoomInfo.html +7 -10
  176. package/docs/interfaces/RoomLabel.html +14 -17
  177. package/docs/interfaces/RoomRules.html +6 -8
  178. package/docs/interfaces/Rooms.html +6 -8
  179. package/docs/interfaces/Scissor.html +9 -12
  180. package/docs/interfaces/State.html +8 -11
  181. package/docs/interfaces/TagCacheInterface.html +12 -15
  182. package/docs/interfaces/TagConfig.html +11 -14
  183. package/docs/interfaces/TagGLTFObjectGroup.html +6 -9
  184. package/docs/interfaces/TagIconUrl.html +11 -14
  185. package/docs/interfaces/TagObjectGroup.html +6 -9
  186. package/docs/interfaces/TagStyle.html +6 -9
  187. package/docs/interfaces/Tags.html +10 -13
  188. package/docs/interfaces/TemporaryState.html +6 -9
  189. package/docs/interfaces/Util.MagnifierParameter.html +11 -14
  190. package/docs/interfaces/Util.MouseGroupParameter.html +8 -11
  191. package/docs/modules/PanoVideoPluginType.html +5 -8
  192. package/docs/modules/Util.html +6 -17
  193. package/docs/modules.html +7 -11
  194. package/docs/types/ArrayPosition.html +6 -8
  195. package/docs/types/AudioAppearance.html +6 -8
  196. package/docs/types/AudioTagTypeConfigKey.html +6 -8
  197. package/docs/types/CSS3DRenderExportType.html +6 -8
  198. package/docs/types/CSS3DRenderPluginExportType.html +6 -8
  199. package/docs/types/CSS3DRenderPluginParameterType.html +6 -8
  200. package/docs/types/ClassFunctionParameters.html +6 -8
  201. package/docs/types/Color.html +6 -8
  202. package/docs/types/ContentTypeConfigKey.html +6 -8
  203. package/docs/types/ContentTypeConfigKeySplit.html +6 -8
  204. package/docs/types/ContentTypeMap.html +6 -8
  205. package/docs/types/Create3DDomContainerReturnType.html +6 -8
  206. package/docs/types/Create3DElementReturnType.html +6 -8
  207. package/docs/types/CruisePluginExportType.html +6 -8
  208. package/docs/types/Direction-1.html +6 -8
  209. package/docs/types/Direction4.html +6 -8
  210. package/docs/types/ElementRenderer.html +288 -0
  211. package/docs/types/FloorplanRuleLabels.html +6 -8
  212. package/docs/types/FloorplanServerRuleLabels.html +6 -8
  213. package/docs/types/GuideLinePluginExportType.html +6 -8
  214. package/docs/types/HelperEventMap.html +6 -8
  215. package/docs/types/LoadTagConfig.html +6 -8
  216. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -8
  217. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -8
  218. package/docs/types/MediaData.html +6 -8
  219. package/docs/types/MediaStore.html +6 -8
  220. package/docs/types/ModelElement.html +6 -8
  221. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -8
  222. package/docs/types/ModelFloorplanPluginParameterType.html +6 -8
  223. package/docs/types/ModelFloorplanPluginReturnType.html +6 -8
  224. package/docs/types/ModelRoomLabelPluginParameters.html +6 -8
  225. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -8
  226. package/docs/types/MoveArgs.html +6 -8
  227. package/docs/types/MoveOpts.html +6 -8
  228. package/docs/types/Object3DHelperEventMap.html +6 -8
  229. package/docs/types/ObjectFit.html +6 -8
  230. package/docs/types/PaintBrushEventMap.html +6 -8
  231. package/docs/types/PanoCompassPluginData.html +6 -8
  232. package/docs/types/PanoCompassPluginExportType.html +6 -8
  233. package/docs/types/PanoCompassPluginParameterType.html +6 -8
  234. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -8
  235. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -8
  236. package/docs/types/PanoIndex.html +6 -8
  237. package/docs/types/PanoMeasurePluginEvent.html +6 -8
  238. package/docs/types/PanoMeasureReturnType.html +6 -8
  239. package/docs/types/PanoSpatialTagPluginId.html +6 -8
  240. package/docs/types/PanoTagPluginExportInterface.html +6 -8
  241. package/docs/types/PanoTagPluginParamsInterface.html +6 -8
  242. package/docs/types/PanoVideoPluginParameterType.html +6 -8
  243. package/docs/types/PanoVideoPluginReturnType.html +6 -8
  244. package/docs/types/PlaneTag.html +6 -8
  245. package/docs/types/PlaneTagElement.html +6 -8
  246. package/docs/types/Point2DElement.html +6 -8
  247. package/docs/types/Point2DTag.html +6 -8
  248. package/docs/types/Point3DElement.html +6 -8
  249. package/docs/types/Point3DTag.html +6 -8
  250. package/docs/types/PointTag.html +6 -8
  251. package/docs/types/PointTagElement.html +6 -8
  252. package/docs/types/Position.html +6 -8
  253. package/docs/types/RotateArgs.html +6 -8
  254. package/docs/types/RotateOpts.html +6 -8
  255. package/docs/types/RuleLabelsKey.html +6 -8
  256. package/docs/types/RuleLabelsValue.html +6 -8
  257. package/docs/types/StickType.html +6 -8
  258. package/docs/types/Tag.html +7 -9
  259. package/docs/types/Tag2D.html +6 -8
  260. package/docs/types/Tag3D.html +6 -8
  261. package/docs/types/TagContentType.html +6 -8
  262. package/docs/types/TagDimensionType.html +6 -8
  263. package/docs/types/TagElement.html +7 -9
  264. package/docs/types/TagEvents.html +6 -8
  265. package/docs/types/TagGLTFObject.html +7 -9
  266. package/docs/types/TagHooks.html +6 -8
  267. package/docs/types/TagIconSize.html +6 -8
  268. package/docs/types/TagId.html +6 -8
  269. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -8
  270. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -8
  271. package/docs/types/WorkCode.html +6 -8
  272. package/docs/variables/FLOOR_TYPE_MAP.html +6 -8
  273. package/docs/variables/PLUGIN.html +6 -8
  274. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -8
  275. package/docs/variables/ROOM_TYPE_MAP.html +6 -8
  276. package/docs/variables/itemLabelPluginServerParams.html +6 -8
  277. package/docs/variables/modelItemLabelPluginServerParams.html +6 -8
  278. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -8
  279. package/libs/CSS3DRenderPlugin/Controller.d.ts +0 -1
  280. package/libs/CSS3DRenderPlugin/Controller.js +31 -40
  281. package/libs/CSS3DRenderPlugin/index.js +6 -12
  282. package/libs/CruisePlugin/Controller.d.ts +2 -1
  283. package/libs/CruisePlugin/Controller.js +174 -197
  284. package/libs/CruisePlugin/index.js +10 -33
  285. package/libs/CruisePlugin/typing.d.ts +2 -12
  286. package/libs/GuideLinePlugin/Controller.d.ts +12 -20
  287. package/libs/GuideLinePlugin/Controller.js +88 -125
  288. package/libs/GuideLinePlugin/index.d.ts +0 -4
  289. package/libs/GuideLinePlugin/index.js +7 -33
  290. package/libs/GuideLinePlugin/typing.d.ts +1 -70
  291. package/libs/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
  292. package/libs/GuideLinePlugin/utils/getLineGeometries.js +64 -0
  293. package/libs/ModelTVVideoPlugin/Plugin.js +45 -53
  294. package/libs/ModelTVVideoPlugin/index.js +5 -11
  295. package/libs/Object3DHelperPlugin/Controller.js +28 -33
  296. package/libs/Object3DHelperPlugin/index.js +13 -18
  297. package/libs/PanoCompassPlugin/Controller.js +6 -8
  298. package/libs/PanoCompassPlugin/index.js +10 -12
  299. package/libs/PanoDoorLabelPlugin/BaseController.js +28 -47
  300. package/libs/PanoDoorLabelPlugin/Controller.js +22 -40
  301. package/libs/PanoDoorLabelPlugin/index.js +3 -21
  302. package/libs/PanoMeasurePlugin/typings/index.js +1 -20
  303. package/libs/PanoSpatialTagPlugin/Plugin.js +3 -8
  304. package/libs/PanoSpatialTagPlugin/index.js +3 -8
  305. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +4 -2
  306. package/libs/PanoTagPlugin/Components/Common/Media.js +49 -49
  307. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
  308. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +13 -11
  309. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +4 -2
  310. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +4 -2
  311. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +4 -2
  312. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +20 -18
  313. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +4 -2
  314. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
  315. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +38 -36
  316. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +25 -23
  317. package/libs/PanoTagPlugin/Components/Tag/index.js +26 -25
  318. package/libs/PanoTagPlugin/Components/TagContainer.js +4 -3
  319. package/libs/PanoTagPlugin/Components/TagItem.js +4 -3
  320. package/libs/PanoTagPlugin/controller/TagCache.js +22 -42
  321. package/libs/PanoTagPlugin/controller/TagComputer.js +4 -5
  322. package/libs/PanoTagPlugin/controller/TagRender.js +82 -63
  323. package/libs/PanoTagPlugin/controller/TagUtil.js +13 -20
  324. package/libs/PanoTagPlugin/controller/index.js +22 -15
  325. package/libs/PanoTagPlugin/index.js +17 -13
  326. package/libs/PanoTagPlugin/typings/controller.d.ts +5 -2
  327. package/libs/PanoTagPlugin/typings/index.js +6 -4
  328. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -3
  329. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +4 -1
  330. package/libs/PanoTagPlugin/typings/tag/Utils.js +2 -0
  331. package/libs/PanoTagPlugin/utils/addDebugPoints.js +4 -2
  332. package/libs/PanoTagPlugin/utils/index.js +35 -33
  333. package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +69 -0
  334. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +214 -0
  335. package/libs/PanoTagPlugin/utils/planeNormal.js +4 -2
  336. package/libs/PanoTagPlugin/utils/tagPosition.js +9 -7
  337. package/libs/PanoVideoPlugin/Controller.js +3 -4
  338. package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
  339. package/libs/PanoVideoPlugin/index.js +6 -7
  340. package/libs/base/BasePlugin.d.ts +0 -1
  341. package/libs/base/BasePlugin.js +10 -21
  342. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +38 -57
  343. package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -22
  344. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +29 -48
  345. package/libs/floorplan/ModelFloorplanPlugin/index.js +3 -22
  346. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +11 -31
  347. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +3 -23
  348. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +40 -59
  349. package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -22
  350. package/libs/floorplan/index.js +0 -6
  351. package/libs/index.js +120 -118
  352. package/libs/shared-utils/five/FiveDomEvents.d.ts +11 -0
  353. package/libs/shared-utils/five/FiveDomEvents.js +77 -0
  354. package/libs/shared-utils/index.d.ts +0 -3
  355. package/libs/shared-utils/index.js +29 -36
  356. package/libs/shared-utils/logger.d.ts +17 -0
  357. package/libs/shared-utils/logger.js +16 -0
  358. package/libs/shared-utils/math/pointIsRectangle.d.ts +2 -0
  359. package/libs/shared-utils/math/pointIsRectangle.js +10 -0
  360. package/libs/shared-utils/offscreenCanvas.d.ts +2 -0
  361. package/libs/shared-utils/offscreenCanvas.js +12 -0
  362. package/libs/shared-utils/three/PointDomHelper.js +1 -1
  363. package/libs/shared-utils/three/Quadrangle.d.ts +20 -0
  364. package/libs/shared-utils/three/Quadrangle.js +41 -0
  365. package/libs/shared-utils/three/getPositionsByObjectFit.d.ts +2 -0
  366. package/libs/shared-utils/three/getPositionsByObjectFit.js +20 -0
  367. package/libs/shared-utils/three/loadTexture.js +19 -21
  368. package/libs/shared-utils/three/loadVideoTexture.d.ts +4 -0
  369. package/libs/shared-utils/three/loadVideoTexture.js +14 -0
  370. package/package.json +2 -2
  371. package/dist/GuideLinePlugin/GuideLineItem.d.ts +0 -26
  372. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
  373. package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -19
  374. package/dist/GuideLinePlugin/utils/index.d.ts +0 -7
  375. package/dist/PanoTagPlugin/utils/model/imagePlane.d.ts +0 -9
  376. package/dist/shared-utils/five/index.d.ts +0 -1
  377. package/dist/shared-utils/five/mode.d.ts +0 -3
  378. package/dist/shared-utils/isAbsoluteURL.d.ts +0 -1
  379. package/dist/shared-utils/log.d.ts +0 -2
  380. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -169
  381. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -344
  382. package/docs/functions/Util.isAbsoluteURL.html +0 -79
  383. package/docs/functions/Util.isModelLike.html +0 -79
  384. package/docs/functions/Util.isPanoramaLike.html +0 -79
  385. package/docs/functions/Util.uuid.html +0 -76
  386. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -97
  387. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -258
  388. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -92
  389. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -87
  390. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -108
  391. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -85
  392. package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +0 -76
  393. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -71
  394. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -82
  395. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -99
  396. package/docs/interfaces/GuideLinePluginType.Route.html +0 -103
  397. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -92
  398. package/docs/modules/GuideLineItem.html +0 -53
  399. package/docs/modules/GuideLineModeItem.html +0 -53
  400. package/docs/modules/GuideLinePluginType.html +0 -99
  401. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -67
  402. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -65
  403. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -67
  404. package/docs/types/GuideLinePluginType.PathItem.html +0 -67
  405. package/docs/types/GuideLinePluginType.PluginData.html +0 -65
  406. package/libs/GuideLinePlugin/GuideLineItem/index.js +0 -35
  407. package/libs/GuideLinePlugin/GuideLineItem.d.ts +0 -26
  408. package/libs/GuideLinePlugin/GuideLineItem.js +0 -31
  409. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +0 -231
  410. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
  411. package/libs/GuideLinePlugin/GuideLineModeItem.js +0 -29
  412. package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -19
  413. package/libs/GuideLinePlugin/utils/createLineGeometry.js +0 -35
  414. package/libs/GuideLinePlugin/utils/dataFormatter.d.ts +0 -2
  415. package/libs/GuideLinePlugin/utils/dataFormatter.js +0 -6
  416. package/libs/GuideLinePlugin/utils/index.d.ts +0 -7
  417. package/libs/GuideLinePlugin/utils/index.js +0 -32
  418. package/libs/PanoTagPlugin/utils/model/imagePlane.d.ts +0 -9
  419. package/libs/PanoTagPlugin/utils/model/imagePlane.js +0 -33
  420. package/libs/shared-utils/five/index.d.ts +0 -1
  421. package/libs/shared-utils/five/index.js +0 -1
  422. package/libs/shared-utils/five/mode.d.ts +0 -3
  423. package/libs/shared-utils/five/mode.js +0 -11
  424. package/libs/shared-utils/isAbsoluteURL.d.ts +0 -1
  425. package/libs/shared-utils/isAbsoluteURL.js +0 -6
  426. package/libs/shared-utils/log.d.ts +0 -2
  427. package/libs/shared-utils/log.js +0 -10
@@ -1,35 +1,35 @@
1
- var T = Object.defineProperty, K = Object.defineProperties;
1
+ var G = Object.defineProperty, K = Object.defineProperties;
2
2
  var O = Object.getOwnPropertyDescriptors;
3
- var L = Object.getOwnPropertySymbols;
3
+ var F = Object.getOwnPropertySymbols;
4
4
  var U = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
5
- var C = (p, u, e) => u in p ? T(p, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[u] = e, g = (p, u) => {
6
- for (var e in u || (u = {}))
7
- U.call(u, e) && C(p, e, u[e]);
8
- if (L)
9
- for (var e of L(u))
10
- A.call(u, e) && C(p, e, u[e]);
11
- return p;
12
- }, E = (p, u) => K(p, O(u));
13
- var I = (p, u, e) => (C(p, typeof u != "symbol" ? u + "" : u, e), e);
14
- var v = (p, u, e) => new Promise((t, i) => {
15
- var r = (f) => {
5
+ var x = (y, l, e) => l in y ? G(y, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : y[l] = e, P = (y, l) => {
6
+ for (var e in l || (l = {}))
7
+ U.call(l, e) && x(y, e, l[e]);
8
+ if (F)
9
+ for (var e of F(l))
10
+ A.call(l, e) && x(y, e, l[e]);
11
+ return y;
12
+ }, C = (y, l) => K(y, O(l));
13
+ var I = (y, l, e) => (x(y, typeof l != "symbol" ? l + "" : l, e), e);
14
+ var p = (y, l, e) => new Promise((t, i) => {
15
+ var a = (f) => {
16
16
  try {
17
17
  n(e.next(f));
18
- } catch (a) {
19
- i(a);
18
+ } catch (r) {
19
+ i(r);
20
20
  }
21
21
  }, o = (f) => {
22
22
  try {
23
23
  n(e.throw(f));
24
- } catch (a) {
25
- i(a);
24
+ } catch (r) {
25
+ i(r);
26
26
  }
27
- }, n = (f) => f.done ? t(f.value) : Promise.resolve(f.value).then(r, o);
28
- n((e = e.apply(p, u)).next());
27
+ }, n = (f) => f.done ? t(f.value) : Promise.resolve(f.value).then(a, o);
28
+ n((e = e.apply(y, l)).next());
29
29
  });
30
30
  import { Controller as V } from "../base/BasePluginWithData.js";
31
31
  import { GuideLinePlugin as Q } from "../GuideLinePlugin/index.js";
32
- import { uuid as w } from "../shared-utils/uuid.js";
32
+ import { uuid as k } from "../shared-utils/uuid.js";
33
33
  import { coordinatesAngle as $ } from "./utils/coordinatesAngle.js";
34
34
  import { safeCall as _ } from "./utils/safeCall.js";
35
35
  import { equal as R } from "../shared-utils/equal.js";
@@ -39,44 +39,21 @@ import H from "./utils/linerValue.js";
39
39
  import { sleep as J } from "./utils/sleep.js";
40
40
  import "../base/BasePlugin.js";
41
41
  import "../shared-utils/Subscribe.js";
42
- import "@realsee/five";
43
- import "hammerjs";
44
- import "@tweenjs/tween.js";
45
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
46
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
47
- import "three/examples/jsm/renderers/CSS3DRenderer";
48
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
49
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
50
- import "../CSS3DRenderPlugin/utils/even.js";
51
- import "../CSS3DRenderPlugin/utils/positionToVector3.js";
52
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
53
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
54
- import "../shared-utils/three/centerPoint.js";
55
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
56
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
57
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
58
- import "../shared-utils/isAbsoluteURL.js";
59
- import "../shared-utils/animationFrame/BetterTween.js";
60
- import "../shared-utils/animationFrame/index.js";
61
42
  import "../GuideLinePlugin/Controller.js";
62
- import "../GuideLinePlugin/GuideLineItem/index.js";
63
- import "object-assign-deep";
64
- import "../GuideLinePlugin/GuideLineModeItem/index.js";
65
- import "../shared-utils/log.js";
66
- import "../GuideLinePlugin/utils/createLineGeometry.js";
43
+ import "../GuideLinePlugin/utils/getLineGeometries.js";
67
44
  import "polyline-normals";
68
- import "../shared-utils/five/mode.js";
69
- import "../shared-utils/three/loadTexture.js";
45
+ import "../GuideLinePlugin/utils/getArrowMaterial.js";
46
+ import "../shared-utils/isNil.js";
70
47
  import "./utils/coordinatesToVector.js";
71
48
  import "../shared-utils/isTruelyObject.js";
72
49
  import "./utils/formatRad.js";
73
- const M = "v1.0.6", G = "CruisePlugin", x = `${G}@${M}`, Qe = (p) => `${x}--${p}`, D = () => {
74
- console.error(`${x} is disposed`);
50
+ const D = "v1.0.6", M = "CruisePlugin", w = `${M}@${D}`, ye = (y) => `${w}--${y}`, L = () => {
51
+ console.error(`${w} is disposed`);
75
52
  }, W = () => {
76
- console.warn(`${x} is disabled`);
53
+ console.warn(`${w} is disabled`);
77
54
  }, q = () => {
78
- console.error(`${x} is disabled`);
79
- }, F = /* @__PURE__ */ new Map();
55
+ console.error(`${w} is disabled`);
56
+ }, E = /* @__PURE__ */ new Map();
80
57
  class z extends V {
81
58
  constructor(e, t) {
82
59
  super(e, t);
@@ -106,60 +83,60 @@ class z extends V {
106
83
  modeChanging: !1
107
84
  });
108
85
  I(this, "GuideLine");
109
- this.config = t, Object.assign(window, { [`__${G}_DEBUG__`]: this });
110
- const i = this.setFiveLinearUpdateCamera.bind(this), r = this.setFiveOriginUpdateCamera.bind(this);
111
- this.hooks.on("play", i), this.hooks.on("broke", r), this.hooks.on("end", r), this.hooks.on("pause", r), this.privateState.disposers.push(() => {
112
- this.hooks.off("play", i), this.hooks.off("broke", r), this.hooks.off("end", r), this.hooks.off("pause", r);
86
+ this.config = t, Object.assign(window, { [`__${M}_DEBUG__`]: this });
87
+ const i = this.setFiveLinearUpdateCamera.bind(this), a = this.setFiveOriginUpdateCamera.bind(this);
88
+ this.hooks.on("play", i), this.hooks.on("broke", a), this.hooks.on("end", a), this.hooks.on("pause", a), this.privateState.disposers.push(() => {
89
+ this.hooks.off("play", i), this.hooks.off("broke", a), this.hooks.off("end", a), this.hooks.off("pause", a);
113
90
  });
114
91
  }
115
92
  load(e, t, i) {
116
- return v(this, null, function* () {
117
- var s, d, l, c, m, P;
93
+ return p(this, null, function* () {
94
+ var s, d, h, u, c;
118
95
  if (this.state.disposed)
119
- return D();
120
- this.privateState.fiveOriginGetProgress || (d = (s = this.five.controller) == null ? void 0 : s.cameraMotion) != null && d.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (c = (l = this.five.controller) == null ? void 0 : l.cameraMotion) == null ? void 0 : c.getProgress), this.clear();
121
- const r = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, o = yield this.formatData(e);
122
- this.data = o, this.hooks.emit("dataChange", o, r);
96
+ return L();
97
+ this.privateState.fiveOriginGetProgress || (d = (s = this.five.controller) == null ? void 0 : s.cameraMotion) != null && d.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (u = (h = this.five.controller) == null ? void 0 : h.cameraMotion) == null ? void 0 : u.getProgress), this.clear();
98
+ const a = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, o = yield this.formatData(e);
99
+ this.data = o, this.hooks.emit("dataChange", o, a);
123
100
  let n = [], f;
124
- const a = this.data.keyframes.filter((h) => h.data.panoIndex !== void 0);
125
- a.filter((h, y) => {
126
- var S;
127
- return h.data.panoIndex !== ((S = a[y - 1]) == null ? void 0 : S.data.panoIndex);
128
- }).map((h) => h.data.panoIndex).forEach((h) => {
129
- var S, k;
130
- const y = (S = this.five.work.observers[h]) == null ? void 0 : S.floorIndex;
131
- if (y !== void 0)
132
- if (f === y) {
133
- const b = n.length - 1;
134
- n[b] = [...(k = n[b]) != null ? k : [], h];
101
+ const r = this.data.keyframes.filter((m) => m.data.panoIndex !== void 0);
102
+ r.filter((m, v) => {
103
+ var g;
104
+ return m.data.panoIndex !== ((g = r[v - 1]) == null ? void 0 : g.data.panoIndex);
105
+ }).map((m) => m.data.panoIndex).forEach((m) => {
106
+ var g, b;
107
+ const v = (g = this.five.work.observers[m]) == null ? void 0 : g.floorIndex;
108
+ if (v !== void 0)
109
+ if (f === v) {
110
+ const S = n.length - 1;
111
+ n[S] = [...(b = n[S]) != null ? b : [], m];
135
112
  } else {
136
- f = y;
137
- const b = n.length;
138
- n[b] = [h];
113
+ f = v;
114
+ const S = n.length;
115
+ n[S] = [m];
139
116
  }
140
- }), !this.GuideLine && ((m = this.config) == null ? void 0 : m.useGuideLine) !== !1 && (this.GuideLine = Q(this.five, this.config)), (P = this.GuideLine) == null || P.load({ routes: n.map((h) => ({ panoIndexList: h })), config: o.guildPluginOptions }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), t && this.setState(t, { userAction: i }), console.info(`${x} loaded`, o), this.hooks.emit("dataLoaded", o);
117
+ }), this.GuideLine || (this.GuideLine = Q(this.five, this.config)), (c = this.GuideLine) == null || c.load({ routes: n.map((m) => ({ panoIndexList: m })), config: o.guildPluginOptions }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), t && this.setState(t, { userAction: i }), console.info(`${w} loaded`, o), this.hooks.emit("dataLoaded", o);
141
118
  });
142
119
  }
143
120
  play(e) {
144
121
  this.setState({ playing: !0 }, e);
145
122
  }
146
123
  playFrom(e) {
147
- const { index: t, id: i, userAction: r } = e;
148
- this.state.playing && this.setState({ playing: !1 }, { userAction: r }), this.setState({ playing: !0 }, { userAction: r, playFromIndex: t, playFromId: i });
124
+ const { index: t, id: i, userAction: a } = e;
125
+ this.state.playing && this.setState({ playing: !1 }, { userAction: a }), this.setState({ playing: !0 }, { userAction: a, playFromIndex: t, playFromId: i });
149
126
  }
150
127
  playFromStart(e) {
151
- return this.playFrom(E(g({}, e), { index: 0 }));
128
+ return this.playFrom(C(P({}, e), { index: 0 }));
152
129
  }
153
130
  pause(e) {
154
131
  this.setState({ playing: !1 }, e);
155
132
  }
156
133
  show(e) {
157
- return v(this, null, function* () {
134
+ return p(this, null, function* () {
158
135
  this.setState({ visible: !0 }, e);
159
136
  });
160
137
  }
161
138
  hide(e) {
162
- return v(this, null, function* () {
139
+ return p(this, null, function* () {
163
140
  this.setState({ visible: !1 }, e);
164
141
  });
165
142
  }
@@ -173,53 +150,53 @@ class z extends V {
173
150
  this.setState({ disposed: !0 });
174
151
  }
175
152
  setState(e, t) {
176
- var r;
153
+ var a;
177
154
  if (this.state.disposed)
178
- return D();
155
+ return L();
179
156
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
180
157
  return q();
181
- const i = g({}, this.state);
182
- 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 });
158
+ const i = P({}, this.state);
159
+ this.state = P(P({}, 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: (a = t == null ? void 0 : t.userAction) != null ? a : !0 });
183
160
  }
184
161
  formatData(e) {
185
- return v(this, null, function* () {
162
+ return p(this, null, function* () {
186
163
  this.five.work || (yield this.waitFiveLoaded());
187
164
  const t = this.five.work.observers, i = (() => {
188
- const r = e;
189
- return typeof r == "object" && r !== null && r.version && r.data ? r.data : r;
165
+ const a = e;
166
+ return typeof a == "object" && a !== null && a.version && a.data ? a.data : a;
190
167
  })();
191
168
  if (i.keyframes)
192
169
  return {
193
- keyframesId: w(),
194
- keyframes: i.keyframes.map((r, o) => {
195
- var a;
196
- const n = i.keyframes[o + 1], f = (() => !n || n.start === void 0 || r.end === void 0 ? 0 : n.start - r.end)();
197
- return E(g({ id: (a = r.uuid) != null ? a : w(), moveIndex: o, stay: f, index: o }, r), { guildPluginOptions: i.guildPluginOptions });
170
+ keyframesId: k(),
171
+ keyframes: i.keyframes.map((a, o) => {
172
+ var r;
173
+ const n = i.keyframes[o + 1], f = (() => !n || n.start === void 0 || a.end === void 0 ? 0 : n.start - a.end)();
174
+ return C(P({ id: (r = a.uuid) != null ? r : k(), moveIndex: o, stay: f, index: o }, a), { guildPluginOptions: i.guildPluginOptions });
198
175
  })
199
176
  };
200
177
  if (i.panoIndexList) {
201
- let r = [];
178
+ let a = [];
202
179
  const { moveEffect: o, moveToFirstPanoEffect: n, moveToFirstPanoDuration: f } = i;
203
- return this.privateState.moveToFirstPanoEffect = n, this.privateState.moveToFirstPanoDuration = f, i.panoIndexList.forEach((a, s) => {
180
+ return this.privateState.moveToFirstPanoEffect = n, this.privateState.moveToFirstPanoDuration = f, i.panoIndexList.forEach((r, s) => {
204
181
  const d = (() => {
205
- var h, y, S, k;
206
- const l = i.panoIndexList.slice(s).find((b) => b !== a);
207
- if (l === void 0)
182
+ var v, g, b, S;
183
+ const h = i.panoIndexList.slice(s).find((T) => T !== r);
184
+ if (h === void 0)
208
185
  return;
209
- const c = (h = t[a]) == null ? void 0 : h.position, m = (y = t[l]) == null ? void 0 : y.position;
210
- if (!m || !c || ((S = t[a]) == null ? void 0 : S.floorIndex) !== ((k = t[l]) == null ? void 0 : k.floorIndex))
186
+ const u = (v = t[r]) == null ? void 0 : v.position, c = (g = t[h]) == null ? void 0 : g.position;
187
+ if (!c || !u || ((b = t[r]) == null ? void 0 : b.floorIndex) !== ((S = t[h]) == null ? void 0 : S.floorIndex))
211
188
  return;
212
- const P = new j.Vector3().subVectors(m, c);
213
- return N(P.normalize());
189
+ const m = new j.Vector3().subVectors(c, u);
190
+ return N(m.normalize());
214
191
  })();
215
- i.moveType === void 0 || i.moveType === "justMove" ? r.push({
192
+ i.moveType === void 0 || i.moveType === "justMove" ? a.push({
216
193
  moveIndex: s,
217
194
  stay: i.stay,
218
- data: g({ effect: "Move", panoIndex: a, moveEffect: o }, d != null ? d : {})
219
- }) : i.moveType === "moveAndRotate" && (r.push({ moveIndex: s, stay: i.stay, data: { effect: "Move", panoIndex: a, moveEffect: o } }), d && r.push({ moveIndex: s, stay: i.stay, data: g({ effect: "Rotate", panoIndex: a }, d) }));
195
+ data: P({ effect: "Move", panoIndex: r, moveEffect: o }, d != null ? d : {})
196
+ }) : i.moveType === "moveAndRotate" && (a.push({ moveIndex: s, stay: i.stay, data: { effect: "Move", panoIndex: r, moveEffect: o } }), d && a.push({ moveIndex: s, stay: i.stay, data: P({ effect: "Rotate", panoIndex: r }, d) }));
220
197
  }), {
221
- keyframesId: w(),
222
- keyframes: r.map((a, s) => g({ id: w(), index: s }, a)),
198
+ keyframesId: k(),
199
+ keyframes: a.map((r, s) => P({ id: k(), index: s }, r)),
223
200
  guildPluginOptions: i.guildPluginOptions
224
201
  };
225
202
  } else
@@ -227,12 +204,12 @@ class z extends V {
227
204
  });
228
205
  }
229
206
  handleEnable(e, t = !0) {
230
- var i, r;
231
- 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;
207
+ var i, a;
208
+ e ? ((i = this.GuideLine) == null || i.enable(), this.hooks.emit("enable", { userAction: t })) : ((a = this.GuideLine) == null || a.disable(), this.changePlayState(!1, { userAction: t }), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
232
209
  }
233
210
  handleVisible(e, t = !0) {
234
- var i, r;
235
- 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;
211
+ var i, a;
212
+ e ? ((i = this.GuideLine) == null || i.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : ((a = this.GuideLine) == null || a.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
236
213
  }
237
214
  changePlayState(e, t) {
238
215
  this.actionIfStateIsEnabled(
@@ -243,64 +220,64 @@ class z extends V {
243
220
  ), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
244
221
  }
245
222
  handlePlay(e) {
246
- return v(this, null, function* () {
247
- var c;
248
- const { data: t, state: i, privateState: r, hooks: o } = this;
249
- if (r.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
223
+ return p(this, null, function* () {
224
+ var u;
225
+ const { data: t, state: i, privateState: a, hooks: o } = this;
226
+ if (a.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
250
227
  return;
251
- const n = w();
252
- r.playId = n, r.playing = !0, r.broke = !1;
253
- const f = t.keyframes, a = this.getPauseData();
254
- (e == null ? void 0 : e.notEmitEvent) !== !0 && o.emit("play", { userAction: (c = e == null ? void 0 : e.userAction) != null ? c : !0 });
228
+ const n = k();
229
+ a.playId = n, a.playing = !0, a.broke = !1;
230
+ const f = t.keyframes, r = this.getPauseData();
231
+ (e == null ? void 0 : e.notEmitEvent) !== !0 && o.emit("play", { userAction: (u = e == null ? void 0 : e.userAction) != null ? u : !0 });
255
232
  let s = !1;
256
- const l = yield (() => v(this, null, function* () {
257
- var m, P;
233
+ const h = yield (() => p(this, null, function* () {
234
+ var c, m;
258
235
  if ((e == null ? void 0 : e.playFromIndex) !== void 0)
259
236
  return e.playFromIndex;
260
237
  if ((e == null ? void 0 : e.playFromId) !== void 0)
261
- return (m = this.data) == null ? void 0 : m.keyframes.findIndex((h) => h.id === e.playFromId);
262
- if (a != null && a.keyframeId) {
263
- const h = (P = this.data) == null ? void 0 : P.keyframes.find((y) => y.id === a.keyframeId);
264
- if (a != null && a.fiveState && (yield this.move(a.fiveState, {
265
- moveEffect: r.moveToFirstPanoEffect,
266
- duration: r.moveToFirstPanoDuration
267
- })), h) {
268
- if (h.data.effect === "Move")
269
- return h.index;
270
- if (h.data.effect === "Rotate") {
271
- const y = a.duration !== void 0 ? a.duration * (1 - a.playedProgress) : void 0;
272
- return yield this.playKeyframe(h, { duration: y }), s = !0, h.index + 1;
238
+ return (c = this.data) == null ? void 0 : c.keyframes.findIndex((v) => v.id === e.playFromId);
239
+ if (r != null && r.keyframeId) {
240
+ const v = (m = this.data) == null ? void 0 : m.keyframes.find((g) => g.id === r.keyframeId);
241
+ if (r != null && r.fiveState && (yield this.move(r.fiveState, {
242
+ moveEffect: a.moveToFirstPanoEffect,
243
+ duration: a.moveToFirstPanoDuration
244
+ })), v) {
245
+ if (v.data.effect === "Move")
246
+ return v.index;
247
+ if (v.data.effect === "Rotate") {
248
+ const g = r.duration !== void 0 ? r.duration * (1 - r.playedProgress) : void 0;
249
+ return yield this.playKeyframe(v, { duration: g }), s = !0, v.index + 1;
273
250
  }
274
251
  }
275
252
  }
276
253
  }))();
277
254
  this.clearPauseData();
278
- for (const m of f) {
279
- if (r.broke || !i.playing || !r.playing || n !== r.playId)
255
+ for (const c of f) {
256
+ if (a.broke || !i.playing || !a.playing || n !== a.playId)
280
257
  return;
281
- if (!(l !== void 0 && m.index < l))
258
+ if (!(h !== void 0 && c.index < h))
282
259
  try {
283
- o.emit("playIndexChange", m.index, m), yield this.playKeyframe(m, {
284
- moveEffect: s === !1 ? r.moveToFirstPanoEffect : void 0,
285
- duration: s === !1 && typeof r.moveToFirstPanoDuration == "number" ? r.moveToFirstPanoDuration : void 0
286
- }), m.stay && (yield J(m.stay)), s === !1 && (s = !0);
287
- } catch (P) {
260
+ o.emit("playIndexChange", c.index, c), yield this.playKeyframe(c, {
261
+ moveEffect: s === !1 ? a.moveToFirstPanoEffect : void 0,
262
+ duration: s === !1 && typeof a.moveToFirstPanoDuration == "number" ? a.moveToFirstPanoDuration : void 0
263
+ }), c.stay && (yield J(c.stay)), s === !1 && (s = !0);
264
+ } catch (m) {
288
265
  return Promise.resolve("broke");
289
266
  }
290
267
  }
291
- i.playing && n === r.playId && (this.setState({ playing: !1 }, { userAction: !1 }), o.emit("end"), this.clearPauseData());
268
+ i.playing && n === a.playId && (this.setState({ playing: !1 }, { userAction: !1 }), o.emit("end"), this.clearPauseData());
292
269
  });
293
270
  }
294
271
  handlePause(e) {
295
272
  var o;
296
- const { state: t, privateState: i, hooks: r } = this;
297
- t.playing = !1, i.playing !== !1 && (i.playing = !1, this.setPauseData(), i.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("pause", { userAction: (o = e == null ? void 0 : e.userAction) != null ? o : !0 }));
273
+ const { state: t, privateState: i, hooks: a } = this;
274
+ t.playing = !1, i.playing !== !1 && (i.playing = !1, this.setPauseData(), i.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && a.emit("pause", { userAction: (o = e == null ? void 0 : e.userAction) != null ? o : !0 }));
298
275
  }
299
276
  playKeyframe(e, t) {
300
- return v(this, null, function* () {
301
- var r;
277
+ return p(this, null, function* () {
278
+ var a;
302
279
  const { privateState: i } = this;
303
- 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();
280
+ return ((a = this.privateState.currentPlayKeyframe) == null ? void 0 : a.keyframe.id) !== e.id && (this.privateState.currentPlayKeyframe = { keyframe: e }), i.currentPlayQueue.push(this.getPlayPromise(e, t)), this.actionPromiseQueue();
304
281
  });
305
282
  }
306
283
  addInterruptListener(e) {
@@ -312,31 +289,31 @@ class z extends V {
312
289
  };
313
290
  }
314
291
  getPlayPromise(i) {
315
- return v(this, arguments, function* (e, t = {}) {
292
+ return p(this, arguments, function* (e, t = {}) {
316
293
  var o;
317
- const r = e.data;
318
- if (t.duration = (o = t.duration) != null ? o : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!r)
294
+ const a = e.data;
295
+ if (t.duration = (o = t.duration) != null ? o : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!a)
319
296
  return new Promise((n, f) => {
320
- let a = !1;
297
+ let r = !1;
321
298
  this.addInterruptListener(() => {
322
- if (!a)
323
- return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), a = !0, f(new Error("play is interupted"));
299
+ if (!r)
300
+ return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), r = !0, f(new Error("play is interupted"));
324
301
  });
325
302
  try {
326
- if (a)
303
+ if (r)
327
304
  return;
328
305
  const s = () => {
329
- n(), a = !0;
306
+ n(), r = !0;
330
307
  };
331
- switch (r.effect) {
308
+ switch (a.effect) {
332
309
  case "Move":
333
- this.move(r, t).then(s);
310
+ this.move(a, t).then(s);
334
311
  break;
335
312
  case "Rotate":
336
- this.rotate(r, t).then(s);
313
+ this.rotate(a, t).then(s);
337
314
  break;
338
315
  default:
339
- this.rotate(r, t).then(s);
316
+ this.rotate(a, t).then(s);
340
317
  }
341
318
  } catch (s) {
342
319
  }
@@ -344,24 +321,24 @@ class z extends V {
344
321
  });
345
322
  }
346
323
  actionPromiseQueue() {
347
- return v(this, null, function* () {
324
+ return p(this, null, function* () {
348
325
  const { privateState: e } = this;
349
326
  return new Promise((t, i) => {
350
327
  if (e.currentPlayQueue.length === 0) {
351
328
  t();
352
329
  return;
353
330
  }
354
- const r = e.currentPlayQueue.shift();
355
- if (!r) {
331
+ const a = e.currentPlayQueue.shift();
332
+ if (!a) {
356
333
  t();
357
334
  return;
358
335
  }
359
- r.then(t, i);
336
+ a.then(t, i);
360
337
  }).then(() => e.currentPlayQueue.length === 0 ? Promise.resolve() : this.actionPromiseQueue());
361
338
  });
362
339
  }
363
340
  move(e, t) {
364
- return v(this, null, function* () {
341
+ return p(this, null, function* () {
365
342
  if (e.mode && e.mode !== this.five.currentMode)
366
343
  yield this.changeMode(e);
367
344
  else if (e.panoIndex !== this.five.panoIndex)
@@ -371,7 +348,7 @@ class z extends V {
371
348
  });
372
349
  }
373
350
  rotate(e, t) {
374
- return v(this, null, function* () {
351
+ return p(this, null, function* () {
375
352
  if (e.mode && e.mode !== this.five.currentMode)
376
353
  yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
377
354
  else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
@@ -380,15 +357,15 @@ class z extends V {
380
357
  });
381
358
  }
382
359
  updateCamera(i) {
383
- return v(this, arguments, function* (e, t = {}) {
384
- const { five: r, privateState: o, state: n } = this, f = (() => {
385
- var c, m;
386
- const d = (c = n.config) == null ? void 0 : c.speedConfig, l = (m = e.rotateSpeed) != null ? m : d == null ? void 0 : d.rotateSpeed;
360
+ return p(this, arguments, function* (e, t = {}) {
361
+ const { five: a, privateState: o, state: n } = this, f = (() => {
362
+ var u, c;
363
+ const d = (u = n.config) == null ? void 0 : u.speedConfig, h = (c = e.rotateSpeed) != null ? c : d == null ? void 0 : d.rotateSpeed;
387
364
  if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
388
- return l;
389
- if (l !== void 0)
390
- return d.rotateSpeedUnit === "rad/ms" ? l : l / 1e3;
391
- })(), a = (() => {
365
+ return h;
366
+ if (h !== void 0)
367
+ return d.rotateSpeedUnit === "rad/ms" ? h : h / 1e3;
368
+ })(), r = (() => {
392
369
  if (t.duration)
393
370
  return t.duration;
394
371
  if (f) {
@@ -397,28 +374,28 @@ class z extends V {
397
374
  }
398
375
  return 800;
399
376
  })();
400
- o.currentPlayKeyframe && (o.currentPlayKeyframe.originDuration = a);
401
- const s = this.getSpeededDuration(a);
377
+ o.currentPlayKeyframe && (o.currentPlayKeyframe.originDuration = r);
378
+ const s = this.getSpeededDuration(r);
402
379
  return new Promise((d) => {
403
- _(() => r.updateCamera(e, s)), setTimeout(() => d(), s);
380
+ _(() => a.updateCamera(e, s)), setTimeout(() => d(), s);
404
381
  });
405
382
  });
406
383
  }
407
384
  changePano(e, t) {
408
- return v(this, null, function* () {
409
- const { five: i, privateState: r, state: o } = this;
385
+ return p(this, null, function* () {
386
+ const { five: i, privateState: a, state: o } = this;
410
387
  if (typeof e.panoIndex != "number" || e.panoIndex === i.panoIndex)
411
388
  return;
412
389
  const n = i.getCurrentState().mode !== "Panorama";
413
390
  n && (this.privateState.modeChanging = !0);
414
391
  const f = (() => {
415
- var l, c;
416
- const s = (l = o.config) == null ? void 0 : l.speedConfig, d = (c = e.moveSpeed) != null ? c : s == null ? void 0 : s.moveSpeed;
392
+ var h, u;
393
+ const s = (h = o.config) == null ? void 0 : h.speedConfig, d = (u = e.moveSpeed) != null ? u : s == null ? void 0 : s.moveSpeed;
417
394
  if ((s == null ? void 0 : s.moveSpeedUnit) === void 0)
418
395
  return d;
419
396
  if (d !== void 0)
420
397
  return s.moveSpeedUnit === "m/ms" ? d : d / 1e3;
421
- })(), a = (() => {
398
+ })(), r = (() => {
422
399
  if (t != null && t.duration)
423
400
  return t.duration;
424
401
  if (f && typeof i.panoIndex == "number" && typeof e.panoIndex == "number") {
@@ -427,14 +404,14 @@ class z extends V {
427
404
  }
428
405
  return 800;
429
406
  })();
430
- r.currentPlayKeyframe && (r.currentPlayKeyframe.originDuration = a), yield new Promise((s) => {
431
- var d, l, c;
407
+ a.currentPlayKeyframe && (a.currentPlayKeyframe.originDuration = r), yield new Promise((s) => {
408
+ var d, h, u;
432
409
  i.moveToPano(e.panoIndex, {
433
410
  latitude: e.latitude,
434
411
  longitude: e.longitude,
435
412
  fov: e.fov,
436
- duration: this.getSpeededDuration(a),
437
- effect: (c = (l = t == null ? void 0 : t.moveEffect) != null ? l : (d = this.state.config) == null ? void 0 : d.moveEffect) != null ? c : e.moveEffect,
413
+ duration: this.getSpeededDuration(r),
414
+ effect: (u = (h = t == null ? void 0 : t.moveEffect) != null ? h : (d = this.state.config) == null ? void 0 : d.moveEffect) != null ? u : e.moveEffect,
438
415
  moveCancelCallback: () => s(),
439
416
  moveEndCallback: () => s()
440
417
  }), n && i.once("panoArrived", () => s());
@@ -442,11 +419,11 @@ class z extends V {
442
419
  });
443
420
  }
444
421
  changeSpeed(e, t = !0) {
445
- const { state: i, privateState: r, hooks: o } = this, { currentPlayKeyframe: n } = r;
422
+ const { state: i, privateState: a, hooks: o } = this, { currentPlayKeyframe: n } = a;
446
423
  if (o.emit("speedChange", e, { userAction: t }), i.playing && n)
447
424
  try {
448
- const f = n.originDuration !== void 0 ? n.originDuration * (1 - this.getProgress()) : void 0, a = this.playKeyframe(n.keyframe, { duration: f });
449
- r.currentPlayQueue.push(a);
425
+ const f = n.originDuration !== void 0 ? n.originDuration * (1 - this.getProgress()) : void 0, r = this.playKeyframe(n.keyframe, { duration: f });
426
+ a.currentPlayQueue.push(r);
450
427
  } catch (f) {
451
428
  }
452
429
  }
@@ -457,7 +434,7 @@ class z extends V {
457
434
  return this.five.controller.cameraMotion.progress;
458
435
  }
459
436
  changeMode(e, t) {
460
- return v(this, null, function* () {
437
+ return p(this, null, function* () {
461
438
  e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
462
439
  });
463
440
  }
@@ -467,22 +444,22 @@ class z extends V {
467
444
  getPauseData() {
468
445
  var e, t;
469
446
  if ((e = this.data) != null && e.keyframesId)
470
- return F.get((t = this.data) == null ? void 0 : t.keyframesId);
447
+ return E.get((t = this.data) == null ? void 0 : t.keyframesId);
471
448
  }
472
449
  setPauseData() {
473
- var e, t, i, r;
450
+ var e, t, i, a;
474
451
  if ((e = this.data) != null && e.keyframesId)
475
- return F.set((t = this.data) == null ? void 0 : t.keyframesId, {
452
+ return E.set((t = this.data) == null ? void 0 : t.keyframesId, {
476
453
  keyframeId: (i = this.privateState.currentPlayKeyframe) == null ? void 0 : i.keyframe.id,
477
454
  fiveState: this.five.getCurrentState(),
478
- duration: (r = this.privateState.currentPlayKeyframe) == null ? void 0 : r.originDuration,
455
+ duration: (a = this.privateState.currentPlayKeyframe) == null ? void 0 : a.originDuration,
479
456
  playedProgress: this.getProgress()
480
457
  });
481
458
  }
482
459
  clearPauseData() {
483
460
  var e, t;
484
461
  if ((e = this.data) != null && e.keyframesId)
485
- return F.delete((t = this.data) == null ? void 0 : t.keyframesId);
462
+ return E.delete((t = this.data) == null ? void 0 : t.keyframesId);
486
463
  }
487
464
  clear() {
488
465
  this.clearPauseData(), this.privateState.currentPlayKeyframe = null;
@@ -497,7 +474,7 @@ class z extends V {
497
474
  t != null && t.warnLog && W();
498
475
  }
499
476
  waitFiveLoaded() {
500
- return v(this, null, function* () {
477
+ return p(this, null, function* () {
501
478
  return new Promise((e) => {
502
479
  if (this.five.work) {
503
480
  e();
@@ -519,8 +496,8 @@ class z extends V {
519
496
  !this.privateState.fiveOriginGetProgress || (this.five.controller.cameraMotion.getProgress = this.privateState.fiveOriginGetProgress);
520
497
  }
521
498
  }
522
- I(z, "PluginVersion", M);
499
+ I(z, "PluginVersion", D);
523
500
  export {
524
501
  z as default,
525
- Qe as pluginFlag
502
+ ye as pluginFlag
526
503
  };