@realsee/dnalogel 3.77.2 → 3.78.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 (558) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/CruisePlugin/Work.d.ts +4 -0
  3. package/dist/CruisePlugin/typing.d.ts +7 -0
  4. package/dist/CruisePlugin/utils/coordinatesAngle.d.ts +19 -3
  5. package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +5 -1
  6. package/dist/PanoTagPlugin/controller/Tag/BoxTag.d.ts +118 -0
  7. package/dist/PanoTagPlugin/controller/Tag/MaskTag.d.ts +157 -0
  8. package/dist/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +13 -0
  9. package/dist/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
  10. package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  11. package/dist/PanoTagPlugin/controller/index.d.ts +36 -1
  12. package/dist/PanoTagPlugin/typings/controller.d.ts +10 -0
  13. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
  14. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
  15. package/dist/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
  16. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
  17. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -2
  18. package/dist/index.cjs.js +160 -82
  19. package/dist/index.js +12244 -10999
  20. package/dist/index.umd.js +159 -81
  21. package/docs/.nojekyll +1 -0
  22. package/docs/assets/custom.css +0 -0
  23. package/docs/assets/highlight.css +127 -0
  24. package/docs/assets/icons.js +18 -0
  25. package/docs/assets/icons.svg +1 -0
  26. package/docs/assets/main.js +60 -0
  27. package/docs/assets/navigation.js +1 -0
  28. package/docs/assets/search.js +1 -0
  29. package/docs/assets/style.css +1493 -0
  30. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +59 -0
  31. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +71 -0
  32. package/docs/classes/CSS3DRender.html +100 -0
  33. package/docs/classes/GuideLineItem.GuideLineItem.html +21 -0
  34. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +70 -0
  35. package/docs/classes/ModelMakerPluginInstance.html +116 -0
  36. package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +52 -0
  37. package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +52 -0
  38. package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +53 -0
  39. package/docs/classes/ModelRoomLabelController.html +19 -0
  40. package/docs/classes/MoveController.html +45 -0
  41. package/docs/classes/Object3DHelperController.html +45 -0
  42. package/docs/classes/PaintBrush.html +15 -0
  43. package/docs/classes/PanoMeasurePluginLine.html +24 -0
  44. package/docs/classes/PanoMeasurePluginModel.html +23 -0
  45. package/docs/classes/PanoMeasurePluginPoint.html +7 -0
  46. package/docs/classes/PanoMeasurePluginPolyline.html +27 -0
  47. package/docs/classes/PanoTagPluginController.html +119 -0
  48. package/docs/classes/Sculpt.html +77 -0
  49. package/docs/classes/Util.BetterTween.html +6 -0
  50. package/docs/classes/Util.FiveDomEvents.html +13 -0
  51. package/docs/classes/Util.FivePuppet.html +20 -0
  52. package/docs/classes/Util.Interval.html +11 -0
  53. package/docs/classes/Util.LegacyPointHelper.html +7 -0
  54. package/docs/classes/Util.LightTag.html +47 -0
  55. package/docs/classes/Util.LineSegments.html +4 -0
  56. package/docs/classes/Util.Magnifier.html +26 -0
  57. package/docs/classes/Util.Object3D.html +8 -0
  58. package/docs/classes/Util.PointDomHelper.html +8 -0
  59. package/docs/classes/Util.PointHelper.html +10 -0
  60. package/docs/classes/Util.PointSelector.html +66 -0
  61. package/docs/classes/Util.PointSelectorHelper.html +14 -0
  62. package/docs/classes/Util.Rectangle.html +12 -0
  63. package/docs/classes/Util.sculpt.BaseEditor.html +17 -0
  64. package/docs/classes/Util.sculpt.BoxMesh.html +48 -0
  65. package/docs/classes/Util.sculpt.BoxMeshEditor.html +18 -0
  66. package/docs/classes/Util.sculpt.CircleMesh.html +26 -0
  67. package/docs/classes/Util.sculpt.CircleMeshEditor.html +18 -0
  68. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +26 -0
  69. package/docs/classes/Util.sculpt.CylinderMesh.html +25 -0
  70. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +18 -0
  71. package/docs/classes/Util.sculpt.LineMesh.html +34 -0
  72. package/docs/classes/Util.sculpt.PointMesh.html +24 -0
  73. package/docs/classes/Util.sculpt.PolygonMesh.html +40 -0
  74. package/docs/classes/Util.sculpt.PrismMesh.html +48 -0
  75. package/docs/classes/Util.sculpt.PrismMeshEditor.html +18 -0
  76. package/docs/classes/Util.sculpt.RectangleMesh.html +41 -0
  77. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +18 -0
  78. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +44 -0
  79. package/docs/classes/WalkController.html +42 -0
  80. package/docs/enums/CameraMovementEffect.html +4 -0
  81. package/docs/enums/ContentType.html +34 -0
  82. package/docs/enums/DIRECTION.html +5 -0
  83. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -0
  84. package/docs/enums/DimensionType.html +4 -0
  85. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -0
  86. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -0
  87. package/docs/enums/PaintBrushTypeEnum.html +4 -0
  88. package/docs/enums/PointType.html +4 -0
  89. package/docs/enums/Rotation.html +5 -0
  90. package/docs/functions/AreaMakerPlugin.html +1 -0
  91. package/docs/functions/CSS3DRenderPlugin.html +1 -0
  92. package/docs/functions/CameraMovementPlugin.html +2 -0
  93. package/docs/functions/CruisePlugin.html +1 -0
  94. package/docs/functions/CurrentPanoImagePlugin.html +1 -0
  95. package/docs/functions/FloorplanGuidePlugin.html +1 -0
  96. package/docs/functions/GuideLinePlugin.html +1 -0
  97. package/docs/functions/ItemLabelPlugin.html +1 -0
  98. package/docs/functions/MapviewFloorplanPlugin.html +1 -0
  99. package/docs/functions/MeasurePlugin.html +1 -0
  100. package/docs/functions/ModelChassisCompassPlugin.html +2 -0
  101. package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -0
  102. package/docs/functions/ModelFloorplanPlugin.html +1 -0
  103. package/docs/functions/ModelItemLabelPlugin.html +1 -0
  104. package/docs/functions/ModelMakerPlugin.html +1 -0
  105. package/docs/functions/ModelRoomLabelPlugin.html +1 -0
  106. package/docs/functions/ModelTVVideoPlugin.html +1 -0
  107. package/docs/functions/ModelViewPlugin.html +2 -0
  108. package/docs/functions/MovePlugin.html +1 -0
  109. package/docs/functions/Object3DHelperPlugin.html +1 -0
  110. package/docs/functions/PanoCompassPlugin.html +1 -0
  111. package/docs/functions/PanoCursorRaycasterPlugin.html +2 -0
  112. package/docs/functions/PanoDoorLabelPlugin.html +1 -0
  113. package/docs/functions/PanoFloorplanRadarPlugin.html +1 -0
  114. package/docs/functions/PanoMeasurePlugin.html +1 -0
  115. package/docs/functions/PanoRulerPlugin.html +2 -0
  116. package/docs/functions/PanoRulerProPlugin.html +2 -0
  117. package/docs/functions/PanoSpatialTagPlugin.html +2 -0
  118. package/docs/functions/PanoTagPlugin.html +1 -0
  119. package/docs/functions/PanoVideoPlugin.html +10 -0
  120. package/docs/functions/PipelinePlugin.html +1 -0
  121. package/docs/functions/SculptPlugin.html +2 -0
  122. package/docs/functions/SculptPluginForFive.html +2 -0
  123. package/docs/functions/TopviewFloorplanPlugin.html +1 -0
  124. package/docs/functions/Util.awaitNextFrame.html +1 -0
  125. package/docs/functions/Util.blink.html +13 -0
  126. package/docs/functions/Util.blinkWithPreset.html +6 -0
  127. package/docs/functions/Util.bounding.html +1 -0
  128. package/docs/functions/Util.boundingBox.html +1 -0
  129. package/docs/functions/Util.boundingSphere.html +1 -0
  130. package/docs/functions/Util.boxVertex.html +7 -0
  131. package/docs/functions/Util.boxVertexes.html +1 -0
  132. package/docs/functions/Util.checkFiveModelLoaded.html +2 -0
  133. package/docs/functions/Util.cleanup.html +3 -0
  134. package/docs/functions/Util.convexHull.html +2 -0
  135. package/docs/functions/Util.equal.html +5 -0
  136. package/docs/functions/Util.fiveModelIsLoaded.html +2 -0
  137. package/docs/functions/Util.generatePolygonGeometry.html +2 -0
  138. package/docs/functions/Util.getCoordsFromClient.html +1 -0
  139. package/docs/functions/Util.getCoordsFromElement.html +1 -0
  140. package/docs/functions/Util.getFrameTime.html +3 -0
  141. package/docs/functions/Util.getGeometryArea.html +1 -0
  142. package/docs/functions/Util.getGeometryInfo.html +1 -0
  143. package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -0
  144. package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -0
  145. package/docs/functions/Util.initialCSS3DRender.html +1 -0
  146. package/docs/functions/Util.inside.html +1 -0
  147. package/docs/functions/Util.isModelLike.html +1 -0
  148. package/docs/functions/Util.isNil.html +2 -0
  149. package/docs/functions/Util.isPanoramaLike.html +1 -0
  150. package/docs/functions/Util.lookObject.html +7 -0
  151. package/docs/functions/Util.lookPoint.html +5 -0
  152. package/docs/functions/Util.nextFrame.html +1 -0
  153. package/docs/functions/Util.notNil.html +2 -0
  154. package/docs/functions/Util.reblink.html +13 -0
  155. package/docs/functions/Util.replaceStaticPrefix.html +8 -0
  156. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -0
  157. package/docs/functions/Util.sculpt.createBox.html +1 -0
  158. package/docs/functions/Util.sculpt.createCircle.html +1 -0
  159. package/docs/functions/Util.sculpt.createCylinder.html +1 -0
  160. package/docs/functions/Util.sculpt.createLine.html +2 -0
  161. package/docs/functions/Util.sculpt.createPoint.html +1 -0
  162. package/docs/functions/Util.sculpt.createPolygon.html +1 -0
  163. package/docs/functions/Util.sculpt.createPrism.html +1 -0
  164. package/docs/functions/Util.sculpt.createRectangle.html +2 -0
  165. package/docs/functions/Util.sculpt.transformUnit.html +1 -0
  166. package/docs/functions/Util.sculpt.transformUnitSquare.html +1 -0
  167. package/docs/functions/Util.tag.html +1 -0
  168. package/docs/functions/Util.triangleArea.html +2 -0
  169. package/docs/functions/Util.triangleCenter.html +2 -0
  170. package/docs/functions/Util.tweenProgress.html +1 -0
  171. package/docs/functions/Util.uuid.html +2 -0
  172. package/docs/functions/Util.waitFiveModelLoaded.html +2 -0
  173. package/docs/functions/Util.worldBounding.html +1 -0
  174. package/docs/functions/Util.worldBoundingBox.html +1 -0
  175. package/docs/functions/Util.worldBoundingSphere.html +1 -0
  176. package/docs/functions/createPolyline.html +2 -0
  177. package/docs/functions/pluginFlag.html +1 -0
  178. package/docs/functions/validatePolygon.html +1 -0
  179. package/docs/hierarchy.html +1 -0
  180. package/docs/index.html +70 -0
  181. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +4 -0
  182. package/docs/interfaces/AreaMakerPluginType.Config.html +8 -0
  183. package/docs/interfaces/AreaMakerPluginType.EventMap.html +25 -0
  184. package/docs/interfaces/AreaMakerPluginType.Params.html +4 -0
  185. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +20 -0
  186. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +13 -0
  187. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +9 -0
  188. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -0
  189. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -0
  190. package/docs/interfaces/AreaMakerPluginType.State.html +8 -0
  191. package/docs/interfaces/BoxAnimationConfig.html +6 -0
  192. package/docs/interfaces/BoxPosition.html +8 -0
  193. package/docs/interfaces/CSS3DRenderPluginEventMap.html +9 -0
  194. package/docs/interfaces/CSS3DRenderPluginState.html +7 -0
  195. package/docs/interfaces/CameraMovementPluginExportType.html +11 -0
  196. package/docs/interfaces/ContentTypeMapInterface.html +73 -0
  197. package/docs/interfaces/CruisePluginTypes.Config.html +7 -0
  198. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +8 -0
  199. package/docs/interfaces/CruisePluginTypes.EventMap.html +33 -0
  200. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +6 -0
  201. package/docs/interfaces/CruisePluginTypes.MoveAction.html +16 -0
  202. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +19 -0
  203. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +20 -0
  204. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -0
  205. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -0
  206. package/docs/interfaces/CruisePluginTypes.PluginState.html +15 -0
  207. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +13 -0
  208. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +15 -0
  209. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +4 -0
  210. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -0
  211. package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -0
  212. package/docs/interfaces/FloorplanBounding.html +9 -0
  213. package/docs/interfaces/FloorplanData.html +7 -0
  214. package/docs/interfaces/FloorplanEntrance.html +14 -0
  215. package/docs/interfaces/FloorplanExtraObject.html +9 -0
  216. package/docs/interfaces/FloorplanExtraObject3D.html +5 -0
  217. package/docs/interfaces/FloorplanFloorData.html +9 -0
  218. package/docs/interfaces/FloorplanImagePosition.html +4 -0
  219. package/docs/interfaces/FloorplanObserver.html +8 -0
  220. package/docs/interfaces/FloorplanOutlineItem.html +6 -0
  221. package/docs/interfaces/FloorplanPosition.html +4 -0
  222. package/docs/interfaces/FloorplanRoomItem.html +24 -0
  223. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -0
  224. package/docs/interfaces/FloorplanServerBounding.html +9 -0
  225. package/docs/interfaces/FloorplanServerComputedData.html +6 -0
  226. package/docs/interfaces/FloorplanServerData.html +4 -0
  227. package/docs/interfaces/FloorplanServerDoorItem.html +6 -0
  228. package/docs/interfaces/FloorplanServerDoorPosition.html +4 -0
  229. package/docs/interfaces/FloorplanServerEntrance.html +14 -0
  230. package/docs/interfaces/FloorplanServerFloorData.html +8 -0
  231. package/docs/interfaces/FloorplanServerImagePosition.html +4 -0
  232. package/docs/interfaces/FloorplanServerObserver.html +8 -0
  233. package/docs/interfaces/FloorplanServerOutlineItem.html +6 -0
  234. package/docs/interfaces/FloorplanServerPosition.html +4 -0
  235. package/docs/interfaces/FloorplanServerRoomItem.html +27 -0
  236. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -0
  237. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +4 -0
  238. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +7 -0
  239. package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -0
  240. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +5 -0
  241. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -0
  242. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -0
  243. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +32 -0
  244. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +4 -0
  245. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -0
  246. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +42 -0
  247. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -0
  248. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +57 -0
  249. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -0
  250. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -0
  251. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -0
  252. package/docs/interfaces/GuideLinePluginType.Route.html +13 -0
  253. package/docs/interfaces/HelperOffset.html +4 -0
  254. package/docs/interfaces/ImagePlaneGroup.html +3 -0
  255. package/docs/interfaces/ItemLabelPluginData.html +2 -0
  256. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +7 -0
  257. package/docs/interfaces/ItemLabelPluginParametersType.html +5 -0
  258. package/docs/interfaces/MinMax.html +3 -0
  259. package/docs/interfaces/ModelChassisCompassPluginData.html +3 -0
  260. package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -0
  261. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -0
  262. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -0
  263. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -0
  264. package/docs/interfaces/ModelItemLabelPluginData.html +2 -0
  265. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +7 -0
  266. package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -0
  267. package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +17 -0
  268. package/docs/interfaces/ModelMakerPluginType.EventMap.html +18 -0
  269. package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +23 -0
  270. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +11 -0
  271. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +10 -0
  272. package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -0
  273. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +10 -0
  274. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +10 -0
  275. package/docs/interfaces/ModelMakerPluginType.State.html +8 -0
  276. package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +11 -0
  277. package/docs/interfaces/ModelRoomLabelPluginData.html +2 -0
  278. package/docs/interfaces/ModelTVVideoPluginData.html +5 -0
  279. package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -0
  280. package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -0
  281. package/docs/interfaces/ModelViewPluginExportType.html +8 -0
  282. package/docs/interfaces/Object3DHelperState.html +4 -0
  283. package/docs/interfaces/ObjectHelperControllers.html +5 -0
  284. package/docs/interfaces/PaintBrushAction.html +14 -0
  285. package/docs/interfaces/PaintBrushConfigs.html +8 -0
  286. package/docs/interfaces/PaintBrushState.html +6 -0
  287. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +16 -0
  288. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -0
  289. package/docs/interfaces/PanoMeasureParameterType.html +20 -0
  290. package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -0
  291. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -0
  292. package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -0
  293. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -0
  294. package/docs/interfaces/PanoRulerPluginExportType.html +6 -0
  295. package/docs/interfaces/PanoRulerPluginOptions.html +3 -0
  296. package/docs/interfaces/PanoRulerPluginParameterType.html +4 -0
  297. package/docs/interfaces/PanoRulerProPluginExportType.html +5 -0
  298. package/docs/interfaces/PanoRulerProPluginOptions.html +3 -0
  299. package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -0
  300. package/docs/interfaces/PanoRulerProPluginState.html +4 -0
  301. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -0
  302. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -0
  303. package/docs/interfaces/PanoSpatialTagPluginData.html +7 -0
  304. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +6 -0
  305. package/docs/interfaces/PanoSpatialTagPluginExportType.html +9 -0
  306. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +6 -0
  307. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +9 -0
  308. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +7 -0
  309. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +6 -0
  310. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -0
  311. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -0
  312. package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -0
  313. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +15 -0
  314. package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -0
  315. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +14 -0
  316. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +13 -0
  317. package/docs/interfaces/PluginEventMap.html +16 -0
  318. package/docs/interfaces/Point.html +4 -0
  319. package/docs/interfaces/Room.html +5 -0
  320. package/docs/interfaces/RoomInfo.html +3 -0
  321. package/docs/interfaces/RoomLabel.html +16 -0
  322. package/docs/interfaces/RoomRules.html +1 -0
  323. package/docs/interfaces/Rooms.html +1 -0
  324. package/docs/interfaces/Scissor.html +13 -0
  325. package/docs/interfaces/SculptConfig.html +19 -0
  326. package/docs/interfaces/State.html +7 -0
  327. package/docs/interfaces/TagCacheInterface.html +9 -0
  328. package/docs/interfaces/TagConfig.html +174 -0
  329. package/docs/interfaces/TagGLTFObjectGroup.html +3 -0
  330. package/docs/interfaces/TagIconAnimationConfig.html +7 -0
  331. package/docs/interfaces/TagIconUrl.html +22 -0
  332. package/docs/interfaces/TagObjectGroup.html +3 -0
  333. package/docs/interfaces/TagState.html +3 -0
  334. package/docs/interfaces/TagStyle.html +17 -0
  335. package/docs/interfaces/Tags.html +8 -0
  336. package/docs/interfaces/TemporaryState.html +2 -0
  337. package/docs/interfaces/Util.AnimeInstance.html +14 -0
  338. package/docs/interfaces/Util.BlinkAnimeOptions.html +21 -0
  339. package/docs/interfaces/Util.EventHandlerConfig.html +21 -0
  340. package/docs/interfaces/Util.FiveDomEvent.html +7 -0
  341. package/docs/interfaces/Util.FiveDomEventMap.html +20 -0
  342. package/docs/interfaces/Util.LegacyMouseGroupParameter.html +4 -0
  343. package/docs/interfaces/Util.MagnifierParameter.html +13 -0
  344. package/docs/interfaces/Util.MouseGroupParameter.html +4 -0
  345. package/docs/interfaces/Util.ObjectInitialState.html +9 -0
  346. package/docs/interfaces/Util.PointIntersection.html +21 -0
  347. package/docs/interfaces/Util.PointSelectorHelperConfig.html +6 -0
  348. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +27 -0
  349. package/docs/modules/AreaMakerPluginType.html +17 -0
  350. package/docs/modules/CruisePluginTypes.html +14 -0
  351. package/docs/modules/CurrentPanoImagePluginType.html +6 -0
  352. package/docs/modules/GuideLineItem.html +2 -0
  353. package/docs/modules/GuideLineModeItem.html +3 -0
  354. package/docs/modules/GuideLinePluginType.html +25 -0
  355. package/docs/modules/ModelMakerPluginType.html +19 -0
  356. package/docs/modules/PanoVideoPluginType.html +8 -0
  357. package/docs/modules/SculptData.html +9 -0
  358. package/docs/modules/SculptType.html +2 -0
  359. package/docs/modules/Util.html +91 -0
  360. package/docs/modules/Util.sculpt.html +27 -0
  361. package/docs/modules.html +287 -0
  362. package/docs/types/AddObject3DHelperConfig.html +19 -0
  363. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +7 -0
  364. package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -0
  365. package/docs/types/AreaMakerPluginType.PluginData.html +2 -0
  366. package/docs/types/AreaMakerPluginType.ServerData.html +2 -0
  367. package/docs/types/ArrayPosition.html +1 -0
  368. package/docs/types/AudioAppearance.html +1 -0
  369. package/docs/types/BoxTag.html +2 -0
  370. package/docs/types/CSS3DRenderExportType.html +1 -0
  371. package/docs/types/CSS3DRenderPluginExportType.html +1 -0
  372. package/docs/types/CSS3DRenderPluginParameterType.html +1 -0
  373. package/docs/types/ClassFunctionParameters.html +1 -0
  374. package/docs/types/Color.html +1 -0
  375. package/docs/types/ContentTypeConfigKey.html +1 -0
  376. package/docs/types/ContentTypeConfigKeySplit.html +1 -0
  377. package/docs/types/ContentTypeMap.html +1 -0
  378. package/docs/types/Create3DDomContainerReturnType.html +1 -0
  379. package/docs/types/Create3DElementReturnType.html +1 -0
  380. package/docs/types/CruisePluginExportType.html +1 -0
  381. package/docs/types/CruisePluginTypes.CruiseData.html +6 -0
  382. package/docs/types/CruisePluginTypes.MoveEffect.html +1 -0
  383. package/docs/types/CurrentPanoImagePluginExportType.html +1 -0
  384. package/docs/types/DeprecatedMediaPlaneProperty.html +3 -0
  385. package/docs/types/DeprecatedTagProperty.html +3 -0
  386. package/docs/types/Direction-1.html +1 -0
  387. package/docs/types/Direction4.html +1 -0
  388. package/docs/types/ElementRenderer.html +2 -0
  389. package/docs/types/FloorplanGuidePluginParameterType.html +1 -0
  390. package/docs/types/FloorplanGuidePluginReturnType.html +1 -0
  391. package/docs/types/FloorplanRuleLabels.html +2 -0
  392. package/docs/types/FloorplanServerRuleLabels.html +1 -0
  393. package/docs/types/GuideLinePluginExportType.html +1 -0
  394. package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -0
  395. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -0
  396. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -0
  397. package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -0
  398. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -0
  399. package/docs/types/GuideLinePluginType.PathItem.html +2 -0
  400. package/docs/types/GuideLinePluginType.PluginData.html +2 -0
  401. package/docs/types/GuideLinePluginType.RouteConfig.html +4 -0
  402. package/docs/types/HelperEventMap.html +1 -0
  403. package/docs/types/InternalHelperEventMap.html +1 -0
  404. package/docs/types/MapviewFloorplanPluginParameterType.html +1 -0
  405. package/docs/types/MapviewFloorplanPluginReturnType.html +1 -0
  406. package/docs/types/MaskPosition.html +3 -0
  407. package/docs/types/MaskTag.html +2 -0
  408. package/docs/types/MeasureEndReason.html +1 -0
  409. package/docs/types/MeasurePluginConfig.html +5 -0
  410. package/docs/types/MeasurePluginEventMap.html +1 -0
  411. package/docs/types/MediaData.html +2 -0
  412. package/docs/types/MediaStore.html +1 -0
  413. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -0
  414. package/docs/types/ModelFloorplanPluginParameterType.html +1 -0
  415. package/docs/types/ModelFloorplanPluginReturnType.html +1 -0
  416. package/docs/types/ModelId.html +1 -0
  417. package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -0
  418. package/docs/types/ModelMakerPluginType.ItemType.html +2 -0
  419. package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -0
  420. package/docs/types/ModelMakerPluginType.ServerItem.html +2 -0
  421. package/docs/types/ModelRoomLabelPluginParameters.html +1 -0
  422. package/docs/types/ModelRoomLabelPluginReturnType.html +1 -0
  423. package/docs/types/MoveArgs.html +2 -0
  424. package/docs/types/MoveOpts.html +2 -0
  425. package/docs/types/Object3DHelperEventMap.html +1 -0
  426. package/docs/types/ObjectFit.html +1 -0
  427. package/docs/types/PaintBrushEventMap.html +1 -0
  428. package/docs/types/PanoCompassPluginData.html +1 -0
  429. package/docs/types/PanoCompassPluginExportType.html +1 -0
  430. package/docs/types/PanoCompassPluginParameterType.html +1 -0
  431. package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -0
  432. package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -0
  433. package/docs/types/PanoIndex.html +1 -0
  434. package/docs/types/PanoMeasurePluginEvent.html +1 -0
  435. package/docs/types/PanoMeasureReturnType.html +1 -0
  436. package/docs/types/PanoSpatialTagPluginId.html +1 -0
  437. package/docs/types/PanoTagPluginExportInterface.html +1 -0
  438. package/docs/types/PanoTagPluginParamsInterface.html +1 -0
  439. package/docs/types/PanoVideoPluginParameterType.html +1 -0
  440. package/docs/types/PanoVideoPluginReturnType.html +1 -0
  441. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -0
  442. package/docs/types/PipelinePluginParameterType.html +1 -0
  443. package/docs/types/PipelinePluginReturnType.html +1 -0
  444. package/docs/types/PlaneTag.html +2 -0
  445. package/docs/types/Point2DTag.html +2 -0
  446. package/docs/types/Point3DTag.html +2 -0
  447. package/docs/types/PointTagInstance.html +1 -0
  448. package/docs/types/PolygonPosition.html +3 -0
  449. package/docs/types/PolygonTag.html +2 -0
  450. package/docs/types/Position.html +1 -0
  451. package/docs/types/PositionFrom.html +1 -0
  452. package/docs/types/RotateArgs.html +2 -0
  453. package/docs/types/RotateOpts.html +2 -0
  454. package/docs/types/RuleLabelsKey.html +1 -0
  455. package/docs/types/RuleLabelsValue.html +1 -0
  456. package/docs/types/ScaleCallback.html +1 -0
  457. package/docs/types/ScalePosition.html +3 -0
  458. package/docs/types/SculptData.BoxData.html +1 -0
  459. package/docs/types/SculptData.CircleData.html +1 -0
  460. package/docs/types/SculptData.CylinderData.html +1 -0
  461. package/docs/types/SculptData.PointData.html +1 -0
  462. package/docs/types/SculptData.PolygonData.html +1 -0
  463. package/docs/types/SculptData.PolylineData.html +1 -0
  464. package/docs/types/SculptData.PrismData.html +1 -0
  465. package/docs/types/SculptData.RectangleData.html +1 -0
  466. package/docs/types/SculptType.Theme.html +10 -0
  467. package/docs/types/StickType.html +1 -0
  468. package/docs/types/Tag.html +17 -0
  469. package/docs/types/Tag2D.html +2 -0
  470. package/docs/types/Tag3D.html +2 -0
  471. package/docs/types/TagClickParams.html +1 -0
  472. package/docs/types/TagConfigByKey.html +1 -0
  473. package/docs/types/TagContentType.html +1 -0
  474. package/docs/types/TagContentTypeMapping.html +1 -0
  475. package/docs/types/TagDimensionType.html +1 -0
  476. package/docs/types/TagElement.html +2 -0
  477. package/docs/types/TagEvents.html +1 -0
  478. package/docs/types/TagGLTFObject.html +1 -0
  479. package/docs/types/TagHooks.html +1 -0
  480. package/docs/types/TagId.html +1 -0
  481. package/docs/types/TagInstance.html +1 -0
  482. package/docs/types/TagPlacement.html +5 -0
  483. package/docs/types/TagPointType.html +2 -0
  484. package/docs/types/TagRendererMap.html +1 -0
  485. package/docs/types/TopviewFloorplanPluginParameterType.html +1 -0
  486. package/docs/types/TopviewFloorplanPluginReturnType.html +1 -0
  487. package/docs/types/Util.ActionIfNoIntersection.html +1 -0
  488. package/docs/types/Util.AdherePoint.html +2 -0
  489. package/docs/types/Util.PointSelectorConfig.html +1 -0
  490. package/docs/types/Util.SupportedTarget.html +2 -0
  491. package/docs/types/Util.Target.html +2 -0
  492. package/docs/types/Util.ThreeObject.html +2 -0
  493. package/docs/types/WorkCode.html +1 -0
  494. package/docs/variables/FLOOR_TYPE_MAP.html +2 -0
  495. package/docs/variables/PLUGIN.html +1 -0
  496. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -0
  497. package/docs/variables/ROOM_TYPE_MAP.html +2 -0
  498. package/docs/variables/Util.ANIME_PRESETS.html +2 -0
  499. package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +2 -0
  500. package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +2 -0
  501. package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +2 -0
  502. package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +2 -0
  503. package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +2 -0
  504. package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +2 -0
  505. package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +2 -0
  506. package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +2 -0
  507. package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +2 -0
  508. package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +2 -0
  509. package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +2 -0
  510. package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +2 -0
  511. package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +2 -0
  512. package/docs/variables/defaultGlobalConfig.html +1 -0
  513. package/docs/variables/itemLabelPluginServerParams.html +1 -0
  514. package/docs/variables/modelItemLabelPluginServerParams.html +1 -0
  515. package/docs/variables/modelRoomLabelPluginServerParams.html +1 -0
  516. package/libs/CruisePlugin/BaseController.js +8 -1
  517. package/libs/CruisePlugin/Move.js +7 -2
  518. package/libs/CruisePlugin/Work.d.ts +4 -0
  519. package/libs/CruisePlugin/Work.js +302 -213
  520. package/libs/CruisePlugin/index.js +11 -6
  521. package/libs/CruisePlugin/typing.d.ts +7 -0
  522. package/libs/CruisePlugin/utils/coordinatesAngle.d.ts +19 -3
  523. package/libs/CruisePlugin/utils/coordinatesAngle.js +10 -5
  524. package/libs/GuideLinePlugin/Controller.js +9 -4
  525. package/libs/GuideLinePlugin/GuideLineItem.js +7 -2
  526. package/libs/GuideLinePlugin/GuideLineModeItem.js +7 -2
  527. package/libs/GuideLinePlugin/index.js +11 -6
  528. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +7 -10
  529. package/libs/PanoTagPlugin/Components/TagItem.js +122 -122
  530. package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +5 -1
  531. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +320 -289
  532. package/libs/PanoTagPlugin/controller/Tag/BoxTag.d.ts +118 -0
  533. package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +505 -0
  534. package/libs/PanoTagPlugin/controller/Tag/MaskTag.d.ts +157 -0
  535. package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +492 -0
  536. package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +13 -0
  537. package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.js +89 -0
  538. package/libs/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
  539. package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +478 -0
  540. package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  541. package/libs/PanoTagPlugin/controller/TagUtil.js +21 -19
  542. package/libs/PanoTagPlugin/controller/index.d.ts +36 -1
  543. package/libs/PanoTagPlugin/controller/index.js +184 -121
  544. package/libs/PanoTagPlugin/index.js +16 -11
  545. package/libs/PanoTagPlugin/typings/controller.d.ts +10 -0
  546. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
  547. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
  548. package/libs/PanoTagPlugin/utils/addDebugPoints.js +27 -13
  549. package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
  550. package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.js +18 -0
  551. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
  552. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +26 -14
  553. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -2
  554. package/libs/PanoTagPlugin/utils/tagPosition.js +46 -17
  555. package/libs/base/BasePlugin.js +5 -5
  556. package/libs/index.js +155 -150
  557. package/libs/shared-utils/logger.js +1 -1
  558. package/package.json +1 -1
@@ -1,48 +1,48 @@
1
- var b = Object.defineProperty, F = Object.defineProperties;
2
- var E = Object.getOwnPropertyDescriptors;
3
- var w = Object.getOwnPropertySymbols;
4
- var D = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
5
- var I = (h, l, t) => l in h ? b(h, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[l] = t, g = (h, l) => {
6
- for (var t in l || (l = {}))
7
- D.call(l, t) && I(h, t, l[t]);
8
- if (w)
9
- for (var t of w(l))
10
- C.call(l, t) && I(h, t, l[t]);
1
+ var K = Object.defineProperty, L = Object.defineProperties;
2
+ var A = Object.getOwnPropertyDescriptors;
3
+ var F = Object.getOwnPropertySymbols;
4
+ var T = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
5
+ var E = (h, f, t) => f in h ? K(h, f, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[f] = t, I = (h, f) => {
6
+ for (var t in f || (f = {}))
7
+ T.call(f, t) && E(h, t, f[t]);
8
+ if (F)
9
+ for (var t of F(f))
10
+ D.call(f, t) && E(h, t, f[t]);
11
11
  return h;
12
- }, x = (h, l) => F(h, E(l));
13
- var k = (h, l, t) => (I(h, typeof l != "symbol" ? l + "" : l, t), t);
14
- var y = (h, l, t) => new Promise((i, e) => {
15
- var r = (a) => {
12
+ }, k = (h, f) => L(h, A(f));
13
+ var C = (h, f, t) => (E(h, typeof f != "symbol" ? f + "" : f, t), t);
14
+ var g = (h, f, t) => new Promise((i, r) => {
15
+ var o = (m) => {
16
16
  try {
17
- s(t.next(a));
18
- } catch (m) {
19
- e(m);
17
+ s(t.next(m));
18
+ } catch (e) {
19
+ r(e);
20
20
  }
21
- }, p = (a) => {
21
+ }, n = (m) => {
22
22
  try {
23
- s(t.throw(a));
24
- } catch (m) {
25
- e(m);
23
+ s(t.throw(m));
24
+ } catch (e) {
25
+ r(e);
26
26
  }
27
- }, s = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(r, p);
28
- s((t = t.apply(h, l)).next());
27
+ }, s = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(o, n);
28
+ s((t = t.apply(h, f)).next());
29
29
  });
30
- import { GuideLinePlugin as K } from "../GuideLinePlugin/index.js";
31
- import { uuid as S } from "../shared-utils/uuid.js";
32
- import { coordinatesAngle as L } from "./utils/coordinatesAngle.js";
33
- import { safeCall as T } from "./utils/safeCall.js";
34
- import * as U from "three";
35
- import { sleep as O } from "./utils/sleep.js";
36
- import { waitFiveLoaded as M } from "../shared-utils/five/fiveLoaded.js";
37
- import { vectorToCoordinates as A } from "../shared-utils/vectorToCoordinate.js";
38
- import G from "./BaseController.js";
30
+ import { GuideLinePlugin as U } from "../GuideLinePlugin/index.js";
31
+ import { uuid as x } from "../shared-utils/uuid.js";
32
+ import { coordinatesRotation as M } from "./utils/coordinatesAngle.js";
33
+ import { safeCall as O } from "./utils/safeCall.js";
34
+ import * as G from "three";
35
+ import { sleep as Q } from "./utils/sleep.js";
36
+ import { waitFiveLoaded as R } from "../shared-utils/five/fiveLoaded.js";
37
+ import { vectorToCoordinates as _ } from "../shared-utils/vectorToCoordinate.js";
38
+ import V from "./BaseController.js";
39
39
  import "../shared-utils/tag.js";
40
40
  import "../vendor/hammerjs/hammer.js";
41
41
  import "../shared-utils/three/PointSelector/index.js";
42
42
  import "../shared-utils/three/CSS3DRenderer/index.js";
43
43
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
44
44
  import "@realsee/five/line";
45
- import { notNil as Q } from "../shared-utils/isNil.js";
45
+ import { notNil as W } from "../shared-utils/isNil.js";
46
46
  import "../shared-utils/three/core/Five_LineMaterial2.js";
47
47
  import "../shared-utils/three/core/Sphere.js";
48
48
  import "../shared-utils/three/blink.js";
@@ -320,6 +320,11 @@ import "../Sculpt/Meshes/Box.js";
320
320
  import "../shared-utils/forReverseEach.js";
321
321
  import "../Sculpt/Objects/Line/index.js";
322
322
  import "../shared-utils/five/getFloorMesh.js";
323
+ import "../PanoTagPlugin/controller/Tag/BoxTag.js";
324
+ import "../PanoTagPlugin/utils/sculptDataToBoxPosition.js";
325
+ import "../PanoTagPlugin/controller/Tag/PolygonTag.js";
326
+ import "../PanoTagPlugin/controller/Tag/MaskTag.js";
327
+ import "../PanoTagPlugin/controller/Tag/MaskTag.shaders.js";
323
328
  import "../PanoTagPlugin/Components/TagContainer.js";
324
329
  import "../PanoTagPlugin/Components/TagItem.js";
325
330
  import "../PanoTagPlugin/Components/Common/TagPoint.js";
@@ -366,10 +371,10 @@ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
366
371
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
367
372
  import "./Work.js";
368
373
  import "./utils/coordinatesToVector.js";
369
- class ia extends G {
374
+ class um extends V {
370
375
  constructor(t, i) {
371
376
  super(t, i);
372
- k(this, "state", {
377
+ C(this, "state", {
373
378
  visible: !0,
374
379
  enabled: !0,
375
380
  disposed: !1,
@@ -384,7 +389,7 @@ class ia extends G {
384
389
  }
385
390
  }
386
391
  });
387
- k(this, "privateState", {
392
+ C(this, "privateState", {
388
393
  playing: !1,
389
394
  currentPlayQueue: [],
390
395
  currentPlayKeyframe: null,
@@ -396,30 +401,30 @@ class ia extends G {
396
401
  /**
397
402
  * @description Load Data and State
398
403
  */
399
- load(t, i, e) {
400
- return y(this, null, function* () {
401
- var o, n;
404
+ load(t, i, r) {
405
+ return g(this, null, function* () {
406
+ var a, p;
402
407
  this.clear();
403
- const r = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, p = yield this.formatData(t);
404
- this.data = g({ id: p.keyframesId }, p), this.hooks.emit("dataChange", p, r);
405
- let s = [], a;
406
- const m = this.data.keyframes.filter((f) => f.data.panoIndex !== void 0);
407
- m.filter((f, d) => {
408
- var u;
409
- return f.data.panoIndex !== ((u = m[d - 1]) == null ? void 0 : u.data.panoIndex);
410
- }).map((f) => f.data.panoIndex).forEach((f) => {
411
- var u, v;
412
- const d = (u = this.workUtil.getObserver(f)) == null ? void 0 : u.floorIndex;
413
- if (d !== void 0)
414
- if (a === d) {
415
- const c = s.length - 1;
416
- s[c] = [...(v = s[c]) != null ? v : [], f];
408
+ const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(t);
409
+ this.data = I({ id: n.keyframesId }, n), this.hooks.emit("dataChange", n, o);
410
+ let s = [], m;
411
+ const e = this.data.keyframes.filter((u) => u.data.panoIndex !== void 0);
412
+ e.filter((u, l) => {
413
+ var d;
414
+ return u.data.panoIndex !== ((d = e[l - 1]) == null ? void 0 : d.data.panoIndex);
415
+ }).map((u) => u.data.panoIndex).forEach((u) => {
416
+ var d, c;
417
+ const l = (d = this.workUtil.getObserver(u)) == null ? void 0 : d.floorIndex;
418
+ if (l !== void 0)
419
+ if (m === l) {
420
+ const v = s.length - 1;
421
+ s[v] = [...(c = s[v]) != null ? c : [], u];
417
422
  } else {
418
- a = d;
419
- const c = s.length;
420
- s[c] = [f];
423
+ m = l;
424
+ const v = s.length;
425
+ s[v] = [u];
421
426
  }
422
- }), !this.GuideLine && ((o = this.config) == null ? void 0 : o.useGuideLine) !== !1 && p.useGuildLine !== !1 && (this.GuideLine = K(this.five, this.config)), (n = this.GuideLine) == null || n.load({ routes: s.map((f) => ({ panoIndexList: f })), config: p.guildPluginOptions }), i ? this.setState(i, { userAction: e }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug("WORKPLUGIN loaded", p), this.hooks.emit("dataLoaded", p);
427
+ }), !this.GuideLine && ((a = this.config) == null ? void 0 : a.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = U(this.five, this.config)), (p = this.GuideLine) == null || p.load({ routes: s.map((u) => ({ panoIndexList: u })), config: n.guildPluginOptions }), i ? this.setState(i, { userAction: r }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug("WORKPLUGIN loaded", n), this.hooks.emit("dataLoaded", n);
423
428
  });
424
429
  }
425
430
  /**
@@ -428,57 +433,57 @@ class ia extends G {
428
433
  * @param {string} options.id play from keyframes id
429
434
  */
430
435
  playFrom(t) {
431
- const { index: i, id: e, userAction: r } = t;
432
- this.state.playing && this.setState({ playing: !1 }, { userAction: r }), this.setState({ playing: !0 }, { userAction: r, playFromIndex: i, playFromId: e });
436
+ const { index: i, id: r, userAction: o } = t;
437
+ this.state.playing && this.setState({ playing: !1 }, { userAction: o }), this.setState({ playing: !0 }, { userAction: o, playFromIndex: i, playFromId: r });
433
438
  }
434
439
  /**
435
440
  * @description Play from first keyframe
436
441
  */
437
442
  playFromStart(t) {
438
- return this.playFrom(x(g({}, t), { index: 0 }));
443
+ return this.playFrom(k(I({}, t), { index: 0 }));
439
444
  }
440
445
  /**
441
446
  * @description Format data
442
447
  */
443
448
  formatData(t) {
444
- return y(this, null, function* () {
445
- this.five.work || (yield M(this.five));
449
+ return g(this, null, function* () {
450
+ this.five.work || (yield R(this.five));
446
451
  const i = (() => {
447
- const e = t;
448
- return typeof e == "object" && e !== null && Q(e.version) && e.data ? e.data : e;
452
+ const r = t;
453
+ return typeof r == "object" && r !== null && W(r.version) && r.data ? r.data : r;
449
454
  })();
450
455
  if (i.keyframes)
451
456
  return {
452
- keyframesId: S(),
453
- keyframes: i.keyframes.map((e, r) => {
454
- var a;
455
- const p = i.keyframes[r + 1], s = (() => !p || p.start === void 0 || e.end === void 0 ? 0 : p.start - e.end)();
456
- return x(g({ id: (a = e.uuid) != null ? a : S(), moveIndex: r, stay: s, index: r }, e), { guildPluginOptions: i.guildPluginOptions });
457
+ keyframesId: x(),
458
+ keyframes: i.keyframes.map((r, o) => {
459
+ var m;
460
+ const n = i.keyframes[o + 1], s = (() => !n || n.start === void 0 || r.end === void 0 ? 0 : n.start - r.end)();
461
+ return k(I({ id: (m = r.uuid) != null ? m : x(), moveIndex: o, stay: s, index: o }, r), { guildPluginOptions: i.guildPluginOptions });
457
462
  })
458
463
  };
459
464
  if (i.panoIndexList) {
460
- let e = [];
461
- const { moveEffect: r, moveToFirstPanoEffect: p, moveToFirstPanoDuration: s } = i;
462
- return this.privateState.moveToFirstPanoEffect = p, this.privateState.moveToFirstPanoDuration = s, i.panoIndexList.forEach((a, m) => {
463
- const o = (() => {
464
- var v, c;
465
- const n = i.panoIndexList.slice(m).find((P) => P !== a);
466
- if (n === void 0)
465
+ let r = [];
466
+ const { moveEffect: o, moveToFirstPanoEffect: n, moveToFirstPanoDuration: s } = i;
467
+ return this.privateState.moveToFirstPanoEffect = n, this.privateState.moveToFirstPanoDuration = s, i.panoIndexList.forEach((m, e) => {
468
+ const a = (() => {
469
+ var c, v;
470
+ const p = i.panoIndexList.slice(e).find((w) => w !== m);
471
+ if (p === void 0)
467
472
  return;
468
- const f = this.workUtil.getObserverPosition(a), d = this.workUtil.getObserverPosition(n);
469
- if (!d || !f || ((v = this.workUtil.getObserver(a)) == null ? void 0 : v.floorIndex) !== ((c = this.workUtil.getObserver(n)) == null ? void 0 : c.floorIndex))
473
+ const u = this.workUtil.getObserverPosition(m), l = this.workUtil.getObserverPosition(p);
474
+ if (!l || !u || ((c = this.workUtil.getObserver(m)) == null ? void 0 : c.floorIndex) !== ((v = this.workUtil.getObserver(p)) == null ? void 0 : v.floorIndex))
470
475
  return;
471
- const u = new U.Vector3().subVectors(d, f);
472
- return A(u.normalize());
476
+ const d = new G.Vector3().subVectors(l, u);
477
+ return _(d.normalize());
473
478
  })();
474
- i.moveType === void 0 || i.moveType === "justMove" ? e.push({
475
- moveIndex: m,
479
+ i.moveType === void 0 || i.moveType === "justMove" ? r.push({
480
+ moveIndex: e,
476
481
  stay: i.stay,
477
- data: g({ effect: "Move", panoIndex: a, moveEffect: r }, o != null ? o : {})
478
- }) : i.moveType === "moveAndRotate" && (e.push({ moveIndex: m, stay: i.stay, data: { effect: "Move", panoIndex: a, moveEffect: r } }), o && e.push({ moveIndex: m, stay: i.stay, data: g({ effect: "Rotate", panoIndex: a }, o) }));
482
+ data: I({ effect: "Move", panoIndex: m, moveEffect: o }, a != null ? a : {})
483
+ }) : i.moveType === "moveAndRotate" && (r.push({ moveIndex: e, stay: i.stay, data: { effect: "Move", panoIndex: m, moveEffect: o } }), a && r.push({ moveIndex: e, stay: i.stay, data: I({ effect: "Rotate", panoIndex: m }, a) }));
479
484
  }), {
480
- keyframesId: S(),
481
- keyframes: e.map((a, m) => g({ id: S(), index: m }, a)),
485
+ keyframesId: x(),
486
+ keyframes: r.map((m, e) => I({ id: x(), index: e }, m)),
482
487
  guildPluginOptions: i.guildPluginOptions,
483
488
  useGuildLine: i.useGuildLine
484
489
  };
@@ -493,74 +498,84 @@ class ia extends G {
493
498
  */
494
499
  // eslint-disable-next-line complexity
495
500
  handlePlay(t) {
496
- return y(this, null, function* () {
497
- var d;
498
- const { data: i, state: e, privateState: r, hooks: p } = this;
499
- if (r.playing || !(i != null && i.keyframes) || (i == null ? void 0 : i.keyframes.length) === 0)
501
+ return g(this, null, function* () {
502
+ var d, c, v, w;
503
+ const { data: i, state: r, privateState: o, hooks: n } = this;
504
+ if (o.playing || !(i != null && i.keyframes) || (i == null ? void 0 : i.keyframes.length) === 0)
500
505
  return;
501
- const s = S();
502
- r.playId = s, r.playing = !0, r.broke = !1;
503
- const a = i.keyframes, m = this.getPauseData();
504
- (t == null ? void 0 : t.notEmitEvent) !== !0 && p.emit("play", { userAction: (d = t == null ? void 0 : t.userAction) != null ? d : !0 });
505
- let o = !1;
506
- const f = yield (() => y(this, null, function* () {
507
- var u, v;
506
+ const s = x();
507
+ o.playId = s, o.audio && o.audio.paused && (((c = this.data) == null ? void 0 : c.keyframes[(d = t == null ? void 0 : t.playFromIndex) != null ? d : 0]).data.effect === "Move" ? this.privateState.audio && (this.privateState.audio.pause(), this.privateState.audio.currentTime = 0, this.privateState.audio = null) : o.audio.play()), o.playing = !0, o.broke = !1;
508
+ const m = i.keyframes, e = this.getPauseData();
509
+ (t == null ? void 0 : t.notEmitEvent) !== !0 && n.emit("play", { userAction: (v = t == null ? void 0 : t.userAction) != null ? v : !0 });
510
+ let a = !1;
511
+ const u = yield (() => g(this, null, function* () {
512
+ var y, S;
508
513
  if ((t == null ? void 0 : t.playFromIndex) !== void 0)
509
514
  return t.playFromIndex;
510
515
  if ((t == null ? void 0 : t.playFromId) !== void 0)
511
- return (u = this.data) == null ? void 0 : u.keyframes.findIndex((c) => c.id === t.playFromId);
512
- if (m != null && m.id) {
513
- const c = (v = this.data) == null ? void 0 : v.keyframes.find((P) => P.id === m.id);
514
- if (m != null && m.fiveState && (yield this.move(m.fiveState, {
515
- moveEffect: r.moveToFirstPanoEffect,
516
- duration: r.moveToFirstPanoDuration
517
- })), c) {
518
- if (c.data.effect === "Move")
519
- return c.index;
520
- if (c.data.effect === "Rotate") {
521
- const P = m.duration !== void 0 ? m.duration * (1 - m.playedProgress) : void 0;
522
- return yield this.playKeyframe(c, { duration: P }), o = !0, c.index + 1;
516
+ return (y = this.data) == null ? void 0 : y.keyframes.findIndex((P) => P.id === t.playFromId);
517
+ if (e != null && e.id) {
518
+ const P = (S = this.data) == null ? void 0 : S.keyframes.find((b) => b.id === e.id);
519
+ if (e != null && e.fiveState && (yield this.move(e.fiveState, {
520
+ moveEffect: o.moveToFirstPanoEffect,
521
+ duration: o.moveToFirstPanoDuration
522
+ })), P) {
523
+ if (P.data.effect === "Move")
524
+ return P.index;
525
+ if (P.data.effect === "Rotate") {
526
+ const b = e.duration !== void 0 ? e.duration * (1 - e.playedProgress) : void 0;
527
+ return yield this.playKeyframe(P, { duration: b }), a = !0, P.index + 1;
523
528
  }
524
529
  }
525
530
  }
526
531
  }))();
532
+ if ((t == null ? void 0 : t.userAction) !== !1) {
533
+ this.privateState.audioCache || (this.privateState.audioCache = /* @__PURE__ */ new Map());
534
+ for (let y = u; y < m.length; y++) {
535
+ const S = m[y];
536
+ if ((w = S == null ? void 0 : S.data) != null && w.audio && !this.privateState.audioCache.has(S.data.audio.url)) {
537
+ const P = new Audio(S.data.audio.url);
538
+ P.preload = "auto", this.privateState.audioCache.set(S.data.audio.url, P);
539
+ }
540
+ }
541
+ }
527
542
  this.clearPauseData();
528
- for (const u of a) {
529
- if (r.broke || !e.playing || !r.playing || s !== r.playId)
543
+ for (const y of m) {
544
+ if (o.broke || !r.playing || !o.playing || s !== o.playId)
530
545
  return;
531
- if (!(f !== void 0 && u.index < f))
546
+ if (!(u !== void 0 && y.index < u))
532
547
  try {
533
- p.emit("playIndexChange", u.index, u), yield this.playKeyframe(u, {
534
- moveEffect: o === !1 ? r.moveToFirstPanoEffect : void 0,
535
- duration: o === !1 && typeof r.moveToFirstPanoDuration == "number" ? r.moveToFirstPanoDuration : void 0
536
- }), u.stay && (yield O(u.stay)), o === !1 && (o = !0);
537
- } catch (v) {
548
+ n.emit("playIndexChange", y.index, y), yield this.playKeyframe(y, {
549
+ moveEffect: a === !1 ? o.moveToFirstPanoEffect : void 0,
550
+ duration: a === !1 && typeof o.moveToFirstPanoDuration == "number" ? o.moveToFirstPanoDuration : void 0
551
+ }), y.stay && (yield Q(y.stay)), a === !1 && (a = !0);
552
+ } catch (S) {
538
553
  return Promise.resolve("broke");
539
554
  }
540
555
  }
541
- e.playing && s === r.playId && (this.setState({ playing: !1 }, { userAction: !1 }), p.emit("end"), this.clearPauseData());
556
+ r.playing && s === o.playId && (this.setState({ playing: !1 }, { userAction: !1 }), n.emit("end"), this.clearPauseData());
542
557
  });
543
558
  }
544
559
  /**
545
560
  * @description: Pause and record pause state
546
561
  */
547
562
  handlePause(t) {
548
- var p;
549
- const { state: i, privateState: e, hooks: r } = this;
550
- i.playing = !1, e.playing !== !1 && (e.playing = !1, (t == null ? void 0 : t.userAction) !== !1 && this.setPauseData(), e.broke || this.forceInteruptUpdateCamera(), (t == null ? void 0 : t.notEmitEvent) !== !0 && r.emit("pause", { userAction: (p = t == null ? void 0 : t.userAction) != null ? p : !0 }));
563
+ var n;
564
+ const { state: i, privateState: r, hooks: o } = this;
565
+ i.playing = !1, r.playing !== !1 && (r.playing = !1, r.audio && r.audio.pause(), (t == null ? void 0 : t.userAction) !== !1 && this.setPauseData(), r.broke || this.forceInteruptUpdateCamera(), (t == null ? void 0 : t.notEmitEvent) !== !0 && o.emit("pause", { userAction: (n = t == null ? void 0 : t.userAction) != null ? n : !0 }));
551
566
  }
552
567
  /**
553
568
  * @description: Change play speed
554
569
  */
555
570
  changeSpeed(t, i = !0) {
556
- var a;
557
- const { state: e, privateState: r, hooks: p } = this, { currentPlayKeyframe: s } = r;
558
- if (p.emit("speedChange", t, { userAction: i }), e.playing && s)
571
+ var m;
572
+ const { state: r, privateState: o, hooks: n } = this, { currentPlayKeyframe: s } = o;
573
+ if (n.emit("speedChange", t, { userAction: i }), r.playing && s)
559
574
  try {
560
- const m = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, o = s.keyframe, { privateState: n } = this;
561
- ((a = this.privateState.currentPlayKeyframe) == null ? void 0 : a.keyframe.id) !== o.id && (this.privateState.currentPlayKeyframe = { keyframe: o }), n.currentPlayQueue.push(this.getPlayPromise(o, { duration: m }));
562
- } catch (m) {
563
- console.error(m);
575
+ const e = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, a = s.keyframe, { privateState: p } = this;
576
+ ((m = this.privateState.currentPlayKeyframe) == null ? void 0 : m.keyframe.id) !== a.id && (this.privateState.currentPlayKeyframe = { keyframe: a }), p.currentPlayQueue.push(this.getPlayPromise(a, { duration: e }));
577
+ } catch (e) {
578
+ console.error(e);
564
579
  }
565
580
  }
566
581
  /**
@@ -573,12 +588,12 @@ class ia extends G {
573
588
  * @description Set pause data
574
589
  */
575
590
  setPauseData() {
576
- var t, i, e;
591
+ var t, i, r;
577
592
  if ((t = this.data) != null && t.id)
578
593
  return this.pauseDataMap.set(this.data.id, {
579
594
  id: (i = this.privateState.currentPlayKeyframe) == null ? void 0 : i.keyframe.id,
580
595
  fiveState: this.five.getCurrentState(),
581
- duration: (e = this.privateState.currentPlayKeyframe) == null ? void 0 : e.originDuration,
596
+ duration: (r = this.privateState.currentPlayKeyframe) == null ? void 0 : r.originDuration,
582
597
  playedProgress: this.getProgress()
583
598
  });
584
599
  }
@@ -592,43 +607,43 @@ class ia extends G {
592
607
  * @description Play single keyframe
593
608
  */
594
609
  playKeyframe(t, i) {
595
- return y(this, null, function* () {
596
- var r;
597
- const { privateState: e } = this;
598
- return ((r = this.privateState.currentPlayKeyframe) == null ? void 0 : r.keyframe.id) !== t.id && (this.privateState.currentPlayKeyframe = { keyframe: t }), e.currentPlayQueue.push(this.getPlayPromise(t, i)), this.actionPromiseQueue();
610
+ return g(this, null, function* () {
611
+ var o;
612
+ const { privateState: r } = this;
613
+ return ((o = this.privateState.currentPlayKeyframe) == null ? void 0 : o.keyframe.id) !== t.id && (this.privateState.currentPlayKeyframe = { keyframe: t }), r.currentPlayQueue.push(this.getPlayPromise(t, i)), this.actionPromiseQueue();
599
614
  });
600
615
  }
601
616
  /**
602
617
  * @description: getPlayPromise
603
618
  */
604
- getPlayPromise(e) {
605
- return y(this, arguments, function* (t, i = {}) {
606
- var p;
607
- const r = t.data;
608
- if (i.duration = (p = i.duration) != null ? p : t.start !== void 0 && t.end !== void 0 ? t.end - t.start : void 0, !!r)
609
- return new Promise((s, a) => {
610
- let m = !1;
619
+ getPlayPromise(r) {
620
+ return g(this, arguments, function* (t, i = {}) {
621
+ var n;
622
+ const o = t.data;
623
+ if (i.duration = (n = i.duration) != null ? n : t.start !== void 0 && t.end !== void 0 ? t.end - t.start : void 0, !!o)
624
+ return new Promise((s, m) => {
625
+ let e = !1;
611
626
  this.addInterruptListener(() => {
612
- if (!m)
613
- return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), m = !0, a(new Error("play is interupted"));
627
+ if (!e)
628
+ return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), e = !0, m(new Error("play is interupted"));
614
629
  });
615
630
  try {
616
- if (m)
631
+ if (e)
617
632
  return;
618
- const o = () => {
619
- s(), m = !0;
633
+ const a = () => {
634
+ s(), e = !0;
620
635
  };
621
- switch (r.effect) {
636
+ switch (o.effect) {
622
637
  case "Move":
623
- this.move(r, i).then(o);
638
+ this.move(o, i).then(a);
624
639
  break;
625
640
  case "Rotate":
626
- this.rotate(r, i).then(o);
641
+ this.rotate(o, i).then(a);
627
642
  break;
628
643
  default:
629
- this.rotate(r, i).then(o);
644
+ this.rotate(o, i).then(a);
630
645
  }
631
- } catch (o) {
646
+ } catch (a) {
632
647
  }
633
648
  });
634
649
  });
@@ -637,19 +652,19 @@ class ia extends G {
637
652
  * @description Action promise queue in sequence
638
653
  */
639
654
  actionPromiseQueue() {
640
- return y(this, null, function* () {
655
+ return g(this, null, function* () {
641
656
  const { privateState: t } = this;
642
- return new Promise((i, e) => {
657
+ return new Promise((i, r) => {
643
658
  if (t.currentPlayQueue.length === 0) {
644
659
  i();
645
660
  return;
646
661
  }
647
- const r = t.currentPlayQueue.shift();
648
- if (!r) {
662
+ const o = t.currentPlayQueue.shift();
663
+ if (!o) {
649
664
  i();
650
665
  return;
651
666
  }
652
- r.then(i, e);
667
+ o.then(i, r);
653
668
  }).then(() => t.currentPlayQueue.length === 0 ? Promise.resolve() : this.actionPromiseQueue());
654
669
  });
655
670
  }
@@ -657,52 +672,103 @@ class ia extends G {
657
672
  * @description Action move keyframe
658
673
  */
659
674
  move(t, i) {
660
- return y(this, null, function* () {
661
- if (t.mode && t.mode !== this.five.currentMode)
662
- yield this.changeMode(t);
663
- else if (t.panoIndex !== this.five.panoIndex)
664
- yield this.changePano(t, i);
665
- else
666
- return Promise.resolve();
675
+ return g(this, null, function* () {
676
+ var r;
677
+ return this.privateState.audio && (this.privateState.audio.pause(), this.privateState.audio.currentTime = 0, this.privateState.audio = null), t.mode && t.mode !== this.five.currentMode ? yield this.changeMode(t) : t.panoIndex !== this.five.panoIndex && (yield this.changePano(t, i)), (r = this.privateState.audio) != null && r.pause || (this.loadAudio(t.audio), yield this.playAudio()), Promise.resolve();
667
678
  });
668
679
  }
669
680
  /**
670
681
  * @description Action rotate keyframe
671
682
  */
672
683
  rotate(t, i) {
673
- return y(this, null, function* () {
674
- if (t.mode && t.mode !== this.five.currentMode)
684
+ return g(this, null, function* () {
685
+ var r;
686
+ if (t.audio && this.privateState.audio && (this.privateState.audio.pause(), this.privateState.audio.currentTime = 0, this.privateState.audio = null), t.mode && t.mode !== this.five.currentMode)
675
687
  yield this.changeMode({ mode: t.mode, panoIndex: t.panoIndex });
676
688
  else if (t.panoIndex && t.panoIndex !== this.five.panoIndex)
677
689
  return yield this.changePano(t, i);
678
- yield this.updateCamera(t, i);
690
+ yield this.updateCamera(t, i), t.audio && !((r = this.privateState.audio) != null && r.pause) && (this.loadAudio(t.audio), yield this.playAudio());
679
691
  });
680
692
  }
681
693
  /**
682
694
  * @description Update five camera
683
695
  */
684
- updateCamera(e) {
685
- return y(this, arguments, function* (t, i = {}) {
686
- const { five: r, privateState: p, state: s } = this, a = (() => {
687
- var d, u;
688
- const n = (d = s.config) == null ? void 0 : d.speedConfig, f = (u = t.rotateSpeed) != null ? u : n == null ? void 0 : n.rotateSpeed;
689
- if ((n == null ? void 0 : n.rotateSpeedUnit) === void 0)
690
- return f;
691
- if (f !== void 0)
692
- return n.rotateSpeedUnit === "rad/ms" ? f : f / 1e3;
693
- })(), m = (() => {
694
- if (i.duration)
695
- return i.duration;
696
- if (a) {
697
- const n = this.five.getCurrentState();
698
- return L(n, t) / a;
699
- }
700
- return 800;
701
- })();
702
- p.currentPlayKeyframe && (p.currentPlayKeyframe.originDuration = m);
703
- const o = this.getSpeededDuration(m);
704
- return new Promise((n) => {
705
- T(() => r.updateCamera(t, o)), setTimeout(() => n(), o);
696
+ updateCamera(r) {
697
+ return g(this, arguments, function* (t, i = {}) {
698
+ const { five: o, privateState: n, state: s } = this, m = (() => {
699
+ var v, w;
700
+ const d = (v = s.config) == null ? void 0 : v.speedConfig, c = (w = t.rotateSpeed) != null ? w : d == null ? void 0 : d.rotateSpeed;
701
+ if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
702
+ return c;
703
+ if (c !== void 0)
704
+ return d.rotateSpeedUnit === "rad/ms" ? c : c / 1e3;
705
+ })(), e = this.five.getCurrentState(), a = Math.PI * 2;
706
+ let p = t.longitude;
707
+ p !== void 0 && (p = (p % a + a) % a, t.direction === "left" ? p <= e.longitude && (p += a) : t.direction === "right" && p >= e.longitude && (p -= a));
708
+ const u = (() => i.duration ? i.duration : m ? M(e, k(I({}, t), { longitude: p })) / m : 800)();
709
+ n.currentPlayKeyframe && (n.currentPlayKeyframe.originDuration = u);
710
+ const l = this.getSpeededDuration(u);
711
+ return new Promise((d) => {
712
+ O(
713
+ () => {
714
+ var c;
715
+ return o.updateCameraWithKeyframes(
716
+ [
717
+ {
718
+ progress: 0,
719
+ value: {
720
+ longitude: e.longitude,
721
+ latitude: e.latitude,
722
+ fov: e.fov,
723
+ offset: e.offset.clone(),
724
+ distance: e.distance
725
+ }
726
+ },
727
+ {
728
+ progress: 0.25,
729
+ value: {
730
+ longitude: p !== void 0 ? (e.longitude + (p + e.longitude) / 2) / 2 : e.longitude,
731
+ latitude: e.latitude,
732
+ fov: e.fov,
733
+ offset: e.offset.clone(),
734
+ distance: e.distance
735
+ }
736
+ },
737
+ {
738
+ progress: 0.5,
739
+ value: {
740
+ longitude: p !== void 0 ? (p + e.longitude) / 2 : e.longitude,
741
+ latitude: t.latitude !== void 0 ? (t.latitude + e.latitude) / 2 : e.latitude,
742
+ fov: e.fov,
743
+ offset: e.offset.clone(),
744
+ distance: e.distance
745
+ }
746
+ },
747
+ {
748
+ progress: 0.75,
749
+ value: {
750
+ longitude: p !== void 0 ? (p + (p + e.longitude) / 2) / 2 : e.longitude,
751
+ latitude: e.latitude,
752
+ fov: e.fov,
753
+ offset: e.offset.clone(),
754
+ distance: e.distance
755
+ }
756
+ },
757
+ {
758
+ progress: 1,
759
+ value: {
760
+ longitude: p !== void 0 ? p : (c = t.longitude) != null ? c : e.longitude,
761
+ latitude: t.latitude !== void 0 ? t.latitude : e.latitude,
762
+ fov: e.fov,
763
+ offset: e.offset.clone(),
764
+ distance: e.distance
765
+ }
766
+ }
767
+ ],
768
+ l
769
+ );
770
+ }
771
+ ), setTimeout(() => d(), l);
706
772
  });
707
773
  });
708
774
  }
@@ -710,40 +776,40 @@ class ia extends G {
710
776
  * @description: Change five pano
711
777
  */
712
778
  changePano(t, i) {
713
- return y(this, null, function* () {
714
- const { five: e, privateState: r, state: p } = this;
715
- if (typeof t.panoIndex != "number" || t.panoIndex === e.panoIndex)
779
+ return g(this, null, function* () {
780
+ const { five: r, privateState: o, state: n } = this;
781
+ if (typeof t.panoIndex != "number" || t.panoIndex === r.panoIndex)
716
782
  return;
717
- const s = e.getCurrentState().mode !== "Panorama";
783
+ const s = r.getCurrentState().mode !== "Panorama";
718
784
  s && (this.privateState.modeChanging = !0);
719
- const a = (() => {
720
- var f, d;
721
- const o = (f = p.config) == null ? void 0 : f.speedConfig, n = (d = t.moveSpeed) != null ? d : o == null ? void 0 : o.moveSpeed;
722
- if ((o == null ? void 0 : o.moveSpeedUnit) === void 0)
723
- return n;
724
- if (n !== void 0)
725
- return o.moveSpeedUnit === "m/ms" ? n : n / 1e3;
726
- })(), m = (() => {
785
+ const m = (() => {
786
+ var u, l;
787
+ const a = (u = n.config) == null ? void 0 : u.speedConfig, p = (l = t.moveSpeed) != null ? l : a == null ? void 0 : a.moveSpeed;
788
+ if ((a == null ? void 0 : a.moveSpeedUnit) === void 0)
789
+ return p;
790
+ if (p !== void 0)
791
+ return a.moveSpeedUnit === "m/ms" ? p : p / 1e3;
792
+ })(), e = (() => {
727
793
  if (i != null && i.duration)
728
794
  return i.duration;
729
- if (a && typeof e.panoIndex == "number" && typeof t.panoIndex == "number") {
730
- const o = this.workUtil.getObserverPosition(e.panoIndex), n = this.workUtil.getObserverPosition(t.panoIndex);
731
- return o && n ? o.distanceTo(n) / a : 800;
795
+ if (m && typeof r.panoIndex == "number" && typeof t.panoIndex == "number") {
796
+ const a = this.workUtil.getObserverPosition(r.panoIndex), p = this.workUtil.getObserverPosition(t.panoIndex);
797
+ return a && p ? a.distanceTo(p) / m : 800;
732
798
  }
733
799
  return 800;
734
800
  })();
735
- r.currentPlayKeyframe && (r.currentPlayKeyframe.originDuration = m), yield new Promise((o) => {
736
- var f, d, u;
737
- const n = this.fiveUtil.moveToPano(t.panoIndex, {
801
+ o.currentPlayKeyframe && (o.currentPlayKeyframe.originDuration = e), yield new Promise((a) => {
802
+ var u, l, d;
803
+ const p = this.fiveUtil.moveToPano(t.panoIndex, {
738
804
  latitude: t.latitude,
739
805
  longitude: t.longitude,
740
806
  fov: t.fov,
741
- duration: this.getSpeededDuration(m),
742
- effect: (u = (d = i == null ? void 0 : i.moveEffect) != null ? d : (f = this.state.config) == null ? void 0 : f.moveEffect) != null ? u : t.moveEffect,
743
- moveCancelCallback: () => o(),
744
- moveEndCallback: () => o()
807
+ duration: this.getSpeededDuration(e),
808
+ effect: (d = (l = i == null ? void 0 : i.moveEffect) != null ? l : (u = this.state.config) == null ? void 0 : u.moveEffect) != null ? d : t.moveEffect,
809
+ moveCancelCallback: () => a(),
810
+ moveEndCallback: () => a()
745
811
  });
746
- n instanceof Promise && n.then(() => o()), s && e.once("panoArrived", () => o());
812
+ p instanceof Promise && p.then(() => a()), s && r.once("panoArrived", () => a());
747
813
  }), s && (this.privateState.modeChanging = !1);
748
814
  });
749
815
  }
@@ -751,11 +817,34 @@ class ia extends G {
751
817
  * @description Change five mode
752
818
  */
753
819
  changeMode(t, i) {
754
- return y(this, null, function* () {
820
+ return g(this, null, function* () {
755
821
  t.mode && t.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(t.mode, t, i), this.privateState.modeChanging = !1);
756
822
  });
757
823
  }
824
+ loadAudio(t) {
825
+ if (t) {
826
+ let i;
827
+ this.privateState.audioCache && (i = this.privateState.audioCache.get(t.url)), i || (i = new Audio(t.url), i.preload = "auto", i.load()), this.privateState.audio && (this.privateState.audio.pause(), this.privateState.audio.currentTime = 0, this.privateState.audio = null), this.privateState.audio = i;
828
+ }
829
+ }
830
+ playAudio() {
831
+ return g(this, null, function* () {
832
+ const t = this.privateState.audio;
833
+ t && (yield new Promise((i, r) => {
834
+ const o = () => {
835
+ m(), i();
836
+ }, n = () => {
837
+ m(), r(new Error("Audio failed to play"));
838
+ }, s = () => {
839
+ this.privateState.audio && (this.privateState.audio.pause(), this.privateState.audio.currentTime = 0, this.privateState.audio = null);
840
+ }, m = () => {
841
+ t.removeEventListener("playing", o), t.removeEventListener("error", n);
842
+ };
843
+ t.addEventListener("playing", o), t.addEventListener("error", n), t.addEventListener("ended", s), t.play().catch(r);
844
+ }));
845
+ });
846
+ }
758
847
  }
759
848
  export {
760
- ia as default
849
+ um as default
761
850
  };