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