@realsee/dnalogel 2.16.0-4 → 2.16.0-7

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 (336) hide show
  1. package/dist/CruisePlugin/index.d.ts +2 -0
  2. package/dist/CruisePlugin/typing.d.ts +32 -40
  3. package/dist/GuideLinePlugin/Controller.d.ts +2 -0
  4. package/dist/GuideLinePlugin/GuideLineItem.d.ts +6 -0
  5. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +38 -5
  6. package/dist/GuideLinePlugin/typing.d.ts +33 -4
  7. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  8. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +5 -5
  9. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +3 -1
  10. package/dist/index.cjs.js +67 -67
  11. package/dist/index.js +8846 -8678
  12. package/dist/index.umd.js +54 -54
  13. package/docs/assets/search.js +1 -1
  14. package/docs/classes/CSS3DRender.html +32 -31
  15. package/docs/classes/CruisePluginController.html +39 -38
  16. package/docs/classes/GuideLineItem.GuideLineItem.html +49 -16
  17. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +218 -49
  18. package/docs/classes/Magnifier.html +21 -20
  19. package/docs/classes/ModelRoomLabelController.html +12 -11
  20. package/docs/classes/Object3DHelperController.html +26 -25
  21. package/docs/classes/PaintBrush.html +16 -15
  22. package/docs/classes/PanoMeasurePluginLine.html +24 -23
  23. package/docs/classes/PanoMeasurePluginModel.html +23 -22
  24. package/docs/classes/PanoMeasurePluginPoint.html +15 -14
  25. package/docs/classes/PanoMeasurePluginPolyline.html +27 -26
  26. package/docs/classes/PanoTagPluginController.html +48 -47
  27. package/docs/classes/Util.BetterTween.html +9 -8
  28. package/docs/classes/Util.FivePointSelector.html +13 -12
  29. package/docs/classes/Util.Interval.html +13 -12
  30. package/docs/classes/Util.Magnifier.html +18 -17
  31. package/docs/classes/Util.PointDomHelper.html +12 -11
  32. package/docs/classes/Util.PointHelper.html +12 -11
  33. package/docs/classes/Util.Rectangle.html +14 -13
  34. package/docs/enums/CameraMovementEffect.html +8 -7
  35. package/docs/enums/ContentType.html +20 -19
  36. package/docs/enums/DIRECTION.html +10 -9
  37. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
  38. package/docs/enums/DimensionType.html +8 -7
  39. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
  40. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
  41. package/docs/enums/PaintBrushTypeEnum.html +9 -8
  42. package/docs/enums/Rotation.html +9 -8
  43. package/docs/functions/CSS3DRenderPlugin.html +5 -4
  44. package/docs/functions/CameraMovementPlugin.html +5 -4
  45. package/docs/functions/CruisePlugin.html +5 -4
  46. package/docs/functions/GuideLinePlugin.html +6 -5
  47. package/docs/functions/ItemLabelPlugin.html +5 -4
  48. package/docs/functions/MapviewFloorplanPlugin.html +5 -4
  49. package/docs/functions/ModelChassisCompassPlugin.html +5 -4
  50. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
  51. package/docs/functions/ModelFloorplanPlugin.html +5 -4
  52. package/docs/functions/ModelItemLabelPlugin.html +5 -4
  53. package/docs/functions/ModelRoomLabelPlugin.html +5 -4
  54. package/docs/functions/ModelTVVideoPlugin.html +5 -4
  55. package/docs/functions/ModelViewPlugin.html +5 -4
  56. package/docs/functions/Object3DHelperPlugin.html +5 -4
  57. package/docs/functions/PanoCompassPlugin.html +5 -4
  58. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
  59. package/docs/functions/PanoDoorLabelPlugin.html +5 -4
  60. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
  61. package/docs/functions/PanoMeasurePlugin.html +5 -4
  62. package/docs/functions/PanoRulerPlugin.html +5 -4
  63. package/docs/functions/PanoRulerProPlugin.html +5 -4
  64. package/docs/functions/PanoSpatialTagPlugin.html +5 -4
  65. package/docs/functions/PanoTagPlugin.html +5 -4
  66. package/docs/functions/PanoVideoPlugin.html +5 -4
  67. package/docs/functions/TopviewFloorplanPlugin.html +5 -4
  68. package/docs/functions/Util.getCoordsFromClient.html +6 -5
  69. package/docs/functions/Util.getCoordsFromElement.html +6 -5
  70. package/docs/functions/Util.getFrameTime.html +6 -5
  71. package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
  72. package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
  73. package/docs/functions/Util.isAbsoluteURL.html +6 -5
  74. package/docs/functions/Util.isModelLike.html +6 -5
  75. package/docs/functions/Util.isNil.html +6 -5
  76. package/docs/functions/Util.isPanoramaLike.html +6 -5
  77. package/docs/functions/Util.nextFrame.html +6 -5
  78. package/docs/functions/Util.notNil.html +6 -5
  79. package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
  80. package/docs/functions/Util.tweenProgress.html +6 -5
  81. package/docs/functions/Util.uuid.html +6 -5
  82. package/docs/functions/pluginFlag.html +6 -5
  83. package/docs/index.html +5 -4
  84. package/docs/interfaces/AddTagConfig.html +7 -6
  85. package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
  86. package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
  87. package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
  88. package/docs/interfaces/CruisePluginTypes.Config.html +107 -0
  89. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +112 -0
  90. package/docs/interfaces/CruisePluginTypes.EventMap.html +429 -0
  91. package/docs/interfaces/CruisePluginTypes.MoveAction.html +120 -0
  92. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +141 -0
  93. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +143 -0
  94. package/docs/interfaces/CruisePluginTypes.PluginData.html +95 -0
  95. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +83 -0
  96. package/docs/interfaces/CruisePluginTypes.PluginState.html +148 -0
  97. package/docs/interfaces/EventMap.html +16 -15
  98. package/docs/interfaces/FloorplanBounding.html +9 -8
  99. package/docs/interfaces/FloorplanData.html +11 -10
  100. package/docs/interfaces/FloorplanEntrance.html +12 -11
  101. package/docs/interfaces/FloorplanExtraObject.html +11 -10
  102. package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
  103. package/docs/interfaces/FloorplanFloorData.html +10 -9
  104. package/docs/interfaces/FloorplanImagePosition.html +8 -7
  105. package/docs/interfaces/FloorplanObserver.html +10 -9
  106. package/docs/interfaces/FloorplanOutlineItem.html +10 -9
  107. package/docs/interfaces/FloorplanPosition.html +8 -7
  108. package/docs/interfaces/FloorplanRoomItem.html +14 -13
  109. package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
  110. package/docs/interfaces/FloorplanServerBounding.html +9 -8
  111. package/docs/interfaces/FloorplanServerComputedData.html +11 -10
  112. package/docs/interfaces/FloorplanServerData.html +8 -7
  113. package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
  114. package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
  115. package/docs/interfaces/FloorplanServerEntrance.html +12 -11
  116. package/docs/interfaces/FloorplanServerFloorData.html +10 -9
  117. package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
  118. package/docs/interfaces/FloorplanServerObserver.html +10 -9
  119. package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
  120. package/docs/interfaces/FloorplanServerPosition.html +8 -7
  121. package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
  122. package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
  123. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +15 -10
  124. package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -13
  125. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -8
  126. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -6
  127. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -11
  128. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -8
  129. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +179 -0
  130. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTag.html +211 -0
  131. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +293 -0
  132. package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +8 -7
  133. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +7 -6
  134. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -7
  135. package/docs/interfaces/GuideLinePluginType.PluginState.html +10 -9
  136. package/docs/interfaces/GuideLinePluginType.Route.html +11 -10
  137. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -9
  138. package/docs/interfaces/HelperOffset.html +9 -8
  139. package/docs/interfaces/ImagePlaneGroup.html +7 -6
  140. package/docs/interfaces/ItemLabelPluginData.html +7 -6
  141. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
  142. package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
  143. package/docs/interfaces/MinMax.html +8 -7
  144. package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
  145. package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
  146. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
  147. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
  148. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
  149. package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
  150. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
  151. package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
  152. package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
  153. package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
  154. package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
  155. package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
  156. package/docs/interfaces/ModelViewPluginExportType.html +12 -11
  157. package/docs/interfaces/Object3DHelperState.html +9 -8
  158. package/docs/interfaces/ObjectHelperControllers.html +10 -9
  159. package/docs/interfaces/PaintBrushAction.html +13 -12
  160. package/docs/interfaces/PaintBrushConfigs.html +13 -12
  161. package/docs/interfaces/PaintBrushState.html +11 -10
  162. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
  163. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
  164. package/docs/interfaces/PanoMeasureParameterType.html +15 -14
  165. package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
  166. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
  167. package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
  168. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
  169. package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
  170. package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
  171. package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
  172. package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
  173. package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
  174. package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
  175. package/docs/interfaces/PanoRulerProPluginState.html +9 -8
  176. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
  177. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
  178. package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
  179. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
  180. package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
  181. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
  182. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
  183. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
  184. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
  185. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -6
  186. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -8
  187. package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -6
  188. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -9
  189. package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -6
  190. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -8
  191. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -10
  192. package/docs/interfaces/Point.html +9 -8
  193. package/docs/interfaces/Room.html +10 -9
  194. package/docs/interfaces/RoomInfo.html +8 -7
  195. package/docs/interfaces/RoomLabel.html +15 -14
  196. package/docs/interfaces/RoomRules.html +6 -5
  197. package/docs/interfaces/Rooms.html +6 -5
  198. package/docs/interfaces/Scissor.html +10 -9
  199. package/docs/interfaces/State.html +9 -8
  200. package/docs/interfaces/TagCacheInterface.html +13 -12
  201. package/docs/interfaces/TagConfig.html +12 -11
  202. package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
  203. package/docs/interfaces/TagIconUrl.html +27 -17
  204. package/docs/interfaces/TagObjectGroup.html +7 -6
  205. package/docs/interfaces/TagStyle.html +7 -6
  206. package/docs/interfaces/Tags.html +10 -9
  207. package/docs/interfaces/TemporaryState.html +7 -6
  208. package/docs/interfaces/Util.MagnifierParameter.html +12 -11
  209. package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
  210. package/docs/modules/CruisePluginTypes.html +88 -0
  211. package/docs/modules/GuideLineItem.html +6 -5
  212. package/docs/modules/GuideLineModeItem.html +6 -5
  213. package/docs/modules/GuideLinePluginType.html +14 -5
  214. package/docs/modules/PanoVideoPluginType.html +6 -5
  215. package/docs/modules/Util.html +6 -5
  216. package/docs/modules.html +7 -5
  217. package/docs/types/ArrayPosition.html +6 -5
  218. package/docs/types/AudioAppearance.html +6 -5
  219. package/docs/types/AudioTagTypeConfigKey.html +6 -5
  220. package/docs/types/CSS3DRenderExportType.html +6 -5
  221. package/docs/types/CSS3DRenderPluginExportType.html +6 -5
  222. package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
  223. package/docs/types/ClassFunctionParameters.html +6 -5
  224. package/docs/types/Color.html +6 -5
  225. package/docs/types/ContentTypeConfigKey.html +6 -5
  226. package/docs/types/ContentTypeConfigKeySplit.html +6 -5
  227. package/docs/types/ContentTypeMap.html +6 -5
  228. package/docs/types/Create3DDomContainerReturnType.html +6 -5
  229. package/docs/types/Create3DElementReturnType.html +6 -5
  230. package/docs/types/CruisePluginExportType.html +6 -5
  231. package/docs/types/CruisePluginTypes.CruiseData.html +60 -0
  232. package/docs/types/CruisePluginTypes.MoveEffect.html +60 -0
  233. package/docs/types/Direction-1.html +6 -5
  234. package/docs/types/Direction4.html +6 -5
  235. package/docs/types/FloorplanRuleLabels.html +6 -5
  236. package/docs/types/FloorplanServerRuleLabels.html +6 -5
  237. package/docs/types/GuideLinePluginExportType.html +6 -5
  238. package/docs/types/GuideLinePluginType.GuideLineItem.html +11 -6
  239. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +105 -0
  240. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +10 -5
  241. package/docs/types/GuideLinePluginType.GuideLineStyle.html +10 -5
  242. package/docs/types/GuideLinePluginType.PathItem.html +10 -5
  243. package/docs/types/GuideLinePluginType.PluginData.html +10 -5
  244. package/docs/types/HelperEventMap.html +6 -5
  245. package/docs/types/LoadTagConfig.html +6 -5
  246. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
  247. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
  248. package/docs/types/MediaData.html +6 -5
  249. package/docs/types/MediaStore.html +6 -5
  250. package/docs/types/ModelElement.html +6 -5
  251. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
  252. package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
  253. package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
  254. package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
  255. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
  256. package/docs/types/MoveArgs.html +6 -5
  257. package/docs/types/MoveOpts.html +6 -5
  258. package/docs/types/Object3DHelperEventMap.html +6 -5
  259. package/docs/types/ObjectFit.html +6 -5
  260. package/docs/types/PaintBrushEventMap.html +6 -5
  261. package/docs/types/PanoCompassPluginData.html +6 -5
  262. package/docs/types/PanoCompassPluginExportType.html +6 -5
  263. package/docs/types/PanoCompassPluginParameterType.html +6 -5
  264. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
  265. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
  266. package/docs/types/PanoIndex.html +6 -5
  267. package/docs/types/PanoMeasurePluginEvent.html +6 -5
  268. package/docs/types/PanoMeasureReturnType.html +6 -5
  269. package/docs/types/PanoSpatialTagPluginId.html +6 -5
  270. package/docs/types/PanoTagPluginExportInterface.html +6 -5
  271. package/docs/types/PanoTagPluginParamsInterface.html +6 -5
  272. package/docs/types/PanoVideoPluginParameterType.html +6 -5
  273. package/docs/types/PanoVideoPluginReturnType.html +6 -5
  274. package/docs/types/PlaneTag.html +6 -5
  275. package/docs/types/PlaneTagElement.html +6 -5
  276. package/docs/types/Point2DElement.html +6 -5
  277. package/docs/types/Point2DTag.html +6 -5
  278. package/docs/types/Point3DElement.html +6 -5
  279. package/docs/types/Point3DTag.html +6 -5
  280. package/docs/types/PointTag.html +6 -5
  281. package/docs/types/PointTagElement.html +6 -5
  282. package/docs/types/Position.html +6 -5
  283. package/docs/types/RotateArgs.html +6 -5
  284. package/docs/types/RotateOpts.html +6 -5
  285. package/docs/types/RuleLabelsKey.html +6 -5
  286. package/docs/types/RuleLabelsValue.html +6 -5
  287. package/docs/types/StickType.html +6 -5
  288. package/docs/types/Tag.html +6 -5
  289. package/docs/types/Tag2D.html +6 -5
  290. package/docs/types/Tag3D.html +6 -5
  291. package/docs/types/TagContentType.html +6 -5
  292. package/docs/types/TagDimensionType.html +6 -5
  293. package/docs/types/TagElement.html +6 -5
  294. package/docs/types/TagEvents.html +6 -5
  295. package/docs/types/TagGLTFObject.html +6 -5
  296. package/docs/types/TagHooks.html +6 -5
  297. package/docs/types/TagIconSize.html +6 -5
  298. package/docs/types/TagId.html +6 -5
  299. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
  300. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
  301. package/docs/types/WorkCode.html +6 -5
  302. package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
  303. package/docs/variables/PLUGIN.html +6 -5
  304. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
  305. package/docs/variables/ROOM_TYPE_MAP.html +6 -5
  306. package/docs/variables/itemLabelPluginServerParams.html +6 -5
  307. package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
  308. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
  309. package/libs/CruisePlugin/Controller.js +222 -118
  310. package/libs/CruisePlugin/index.d.ts +2 -0
  311. package/libs/CruisePlugin/index.js +110 -5
  312. package/libs/CruisePlugin/typing/index.js +6 -0
  313. package/libs/CruisePlugin/typing.d.ts +32 -40
  314. package/libs/GuideLinePlugin/Components/Tag.js +49 -0
  315. package/libs/GuideLinePlugin/Controller.d.ts +2 -0
  316. package/libs/GuideLinePlugin/Controller.js +199 -85
  317. package/libs/GuideLinePlugin/GuideLineItem/index.js +109 -22
  318. package/libs/GuideLinePlugin/GuideLineItem.d.ts +6 -0
  319. package/libs/GuideLinePlugin/GuideLineItem.js +123 -4
  320. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +84 -53
  321. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +38 -5
  322. package/libs/GuideLinePlugin/GuideLineModeItem.js +106 -2
  323. package/libs/GuideLinePlugin/index.js +119 -7
  324. package/libs/GuideLinePlugin/typing.d.ts +33 -4
  325. package/libs/GuideLinePlugin/typing.js +34 -1
  326. package/libs/GuideLinePlugin/utils/createLineGeometry.js +19 -16
  327. package/libs/GuideLinePlugin/utils/index.js +17 -4
  328. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +92 -66
  329. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  330. package/libs/PanoTagPlugin/controller/TagComputer.js +6 -0
  331. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +5 -5
  332. package/libs/PanoTagPlugin/controller/index.js +5 -5
  333. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +3 -1
  334. package/libs/base/BasePlugin.js +1 -1
  335. package/libs/index.js +120 -117
  336. package/package.json +1 -1
@@ -1,30 +1,30 @@
1
1
  var g = Object.defineProperty;
2
2
  var b = Object.getOwnPropertySymbols;
3
3
  var L = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
4
- var u = (s, t, e) => t in s ? g(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, m = (s, t) => {
5
- for (var e in t || (t = {}))
6
- L.call(t, e) && u(s, e, t[e]);
4
+ var u = (e, r, i) => r in e ? g(e, r, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[r] = i, h = (e, r) => {
5
+ for (var i in r || (r = {}))
6
+ L.call(r, i) && u(e, i, r[i]);
7
7
  if (b)
8
- for (var e of b(t))
9
- w.call(t, e) && u(s, e, t[e]);
10
- return s;
8
+ for (var i of b(r))
9
+ w.call(r, i) && u(e, i, r[i]);
10
+ return e;
11
11
  };
12
- var n = (s, t, e) => (u(s, typeof t != "symbol" ? t + "" : t, e), e);
13
- var l = (s, t, e) => new Promise((i, r) => {
14
- var d = (a) => {
12
+ var p = (e, r, i) => (u(e, typeof r != "symbol" ? r + "" : r, i), i);
13
+ var d = (e, r, i) => new Promise((t, o) => {
14
+ var a = (s) => {
15
15
  try {
16
- h(e.next(a));
17
- } catch (p) {
18
- r(p);
16
+ n(i.next(s));
17
+ } catch (l) {
18
+ o(l);
19
19
  }
20
- }, o = (a) => {
20
+ }, m = (s) => {
21
21
  try {
22
- h(e.throw(a));
23
- } catch (p) {
24
- r(p);
22
+ n(i.throw(s));
23
+ } catch (l) {
24
+ o(l);
25
25
  }
26
- }, h = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(d, o);
27
- h((e = e.apply(s, t)).next());
26
+ }, n = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(a, m);
27
+ n((i = i.apply(e, r)).next());
28
28
  });
29
29
  import { Controller as G } from "../base/BasePluginWithData.js";
30
30
  import "three";
@@ -39,70 +39,184 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
39
39
  import { uuid as S } from "../shared-utils/uuid.js";
40
40
  import "../shared-utils/animationFrame/BetterTween.js";
41
41
  import "../shared-utils/three/loadTexture.js";
42
+ import "object-assign-deep";
43
+ import "@realsee/five/gltf-loader";
44
+ import "../vendor/svelte/internal/index.js";
45
+ import "../PanoTagPlugin/utils/device.js";
46
+ import "../shared-utils/threex/domevents/index.js";
47
+ import "animejs";
48
+ import "../PanoTagPlugin/utils/constants.js";
49
+ import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
50
+ import "lodash.get";
51
+ import "lodash.clonedeep";
52
+ import "lodash.isequal";
53
+ import "classnames";
54
+ import "../shared-utils/three/GLTFLoader.js";
55
+ import _ from "../CruisePlugin/Controller.js";
42
56
  import "../base/BasePlugin.js";
43
57
  import "../shared-utils/Subscribe.js";
44
58
  import "../shared-utils/isAbsoluteURL.js";
45
59
  import "../shared-utils/isTruelyObject.js";
46
- import "object-assign-deep";
47
60
  import "./GuideLineModeItem/index.js";
48
61
  import "../shared-utils/log.js";
49
62
  import "./utils/createLineGeometry.js";
50
63
  import "../shared-utils/five/mode.js";
64
+ import "../PanoTagPlugin/controller/index.js";
65
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
66
+ import "../PanoTagPlugin/utils/addDebugPoints.js";
67
+ import "../PanoTagPlugin/utils/tag/tagCheck.js";
68
+ import "../PanoTagPlugin/utils/actionAfterFiveModelLoad.js";
69
+ import "../PanoTagPlugin/utils/debounce.js";
70
+ import "../PanoTagPlugin/utils/throttle.js";
71
+ import "../PanoTagPlugin/utils/resizeObserver.js";
72
+ import "../PanoTagPlugin/utils/tag/format.js";
73
+ import "../shared-utils/audio.js";
74
+ import "../PanoTagPlugin/controller/TagRender.js";
75
+ import "../PanoTagPlugin/controller/TagComputer.js";
76
+ import "../PanoTagPlugin/utils/tagPosition.js";
77
+ import "../shared-utils/three/centerPoint.js";
78
+ import "../PanoTagPlugin/utils/checkRange.js";
79
+ import "../shared-utils/isNil.js";
80
+ import "../PanoTagPlugin/controller/TagUtil.js";
81
+ import "../PanoTagPlugin/tag.config.js";
82
+ import "../PanoTagPlugin/utils/planeNormal.js";
83
+ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
84
+ import "../PanoTagPlugin/controller/TagCache.js";
85
+ import "../vendor/svelte/store/index.js";
86
+ import "../PanoTagPlugin/Components/TagContainer.js";
87
+ import "../PanoTagPlugin/Components/TagItem.js";
88
+ import "../PanoTagPlugin/Components/Tag/index.js";
89
+ import "../PanoTagPlugin/Components/Tag/TextTag/index.js";
90
+ import "../PanoTagPlugin/Components/Tag/TextTag/TextTag.js";
91
+ import "../PanoTagPlugin/Components/Common/Line/Straight.js";
92
+ import "../vendor/svelte/transition/index.js";
93
+ import "../vendor/svelte/easing/index.js";
94
+ import "../PanoTagPlugin/Components/Common/Shadow.js";
95
+ import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
96
+ import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
97
+ import "../PanoTagPlugin/utils/search.js";
98
+ import "../PanoTagPlugin/Components/Common/Arrow.js";
99
+ import "../PanoTagPlugin/Assets/Icon.js";
100
+ import "../PanoTagPlugin/utils/doUtil.js";
101
+ import "../shared-utils/svelte/resizeObserver.js";
102
+ import "../PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js";
103
+ import "../PanoTagPlugin/Components/Common/Text/MText.js";
104
+ import "../PanoTagPlugin/utils/px2rem.js";
105
+ import "../PanoTagPlugin/Components/Tag/ImageTextTag.js";
106
+ import "../PanoTagPlugin/Components/Common/Line/Polyline.js";
107
+ import "../PanoTagPlugin/Components/Common/Media.js";
108
+ import "../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
109
+ import "../vendor/svelte-carousel/src/components/Dots/Dots.js";
110
+ import "../vendor/svelte-carousel/src/components/Dot/Dot.js";
111
+ import "../vendor/svelte-carousel/src/components/Arrow/Arrow.js";
112
+ import "../vendor/svelte-carousel/src/direction.js";
113
+ import "../vendor/svelte-carousel/src/components/Progress/Progress.js";
114
+ import "../vendor/svelte-carousel/src/actions/swipeable/swipeable.js";
115
+ import "../vendor/svelte-carousel/src/actions/swipeable/event.js";
116
+ import "../vendor/svelte-carousel/src/utils/event.js";
117
+ import "../vendor/svelte-carousel/src/units.js";
118
+ import "../vendor/svelte-carousel/src/actions/hoverable/hoverable.js";
119
+ import "../vendor/svelte-carousel/src/actions/hoverable/event.js";
120
+ import "../vendor/svelte-carousel/src/actions/tappable/tappable.js";
121
+ import "../vendor/svelte-carousel/src/utils/math.js";
122
+ import "../vendor/svelte-carousel/src/actions/tappable/event.js";
123
+ import "../vendor/svelte-carousel/src/utils/page.js";
124
+ import "../vendor/svelte-carousel/src/utils/clones.js";
125
+ import "../vendor/svelte-carousel/src/utils/object.js";
126
+ import "../vendor/svelte-carousel/src/components/Carousel/createCarousel.js";
127
+ import "../vendor/simply-reactive/src/simply-reactive.js";
128
+ import "../vendor/simply-reactive/src/utils/subscription.js";
129
+ import "../vendor/simply-reactive/src/utils/object.js";
130
+ import "../vendor/simply-reactive/src/utils/watcher.js";
131
+ import "../vendor/svelte-carousel/src/utils/lazy.js";
132
+ import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
133
+ import "../vendor/svelte-carousel/src/utils/interval.js";
134
+ import "../PanoTagPlugin/Components/Common/MediaItem.js";
135
+ import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
136
+ import "../PanoTagPlugin/utils/noTypecheck.js";
137
+ import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
138
+ import "../PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
139
+ import "../PanoTagPlugin/Components/Common/Audio.js";
140
+ import "../PanoTagPlugin/utils/audio/SharedAudio.js";
141
+ import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
142
+ import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
143
+ import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
144
+ import "../PanoTagPlugin/Components/Tag/LinkTag.js";
145
+ import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
146
+ import "../PanoTagPlugin/utils/getImageInfo.js";
147
+ import "../PanoTagPlugin/Components/Tag/CustomTag.js";
148
+ import "../PanoTagPlugin/Components/Common/TagPoint.js";
149
+ import "../PanoTagPlugin/utils/model/imagePlane.js";
150
+ import "../CSS3DRenderPlugin/index.js";
151
+ import "../CSS3DRenderPlugin/Controller.js";
152
+ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
51
153
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
52
154
  import "three/examples/jsm/renderers/CSS3DRenderer";
53
155
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
54
156
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
55
157
  import "../CSS3DRenderPlugin/utils/even.js";
56
- import "../CSS3DRenderPlugin/utils/positionToVector3.js";
57
158
  import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
58
159
  import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
59
- import "../shared-utils/three/centerPoint.js";
60
160
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
61
161
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
62
162
  import "../shared-utils/animationFrame/index.js";
63
- const v = "v1.1.0", c = "GuideLinePlugin", f = `${c}@${v}`, ne = (s) => `${f}--${s}`;
64
- function _(s) {
65
- return Object.hasOwn(s, "routes");
163
+ import "./Components/Tag.js";
164
+ import "../shared-utils/to.js";
165
+ import "../shared-utils/five/changeMode.js";
166
+ import "../shared-utils/nearlyEqual.js";
167
+ import "./index.js";
168
+ import "./Controller.js";
169
+ import "../CruisePlugin/utils/coordinatesAngle.js";
170
+ import "../CruisePlugin/utils/coordinatesToVector.js";
171
+ import "../CruisePlugin/utils/safeCall.js";
172
+ import "../CruisePlugin/utils/vectorToCoordinates.js";
173
+ import "../CruisePlugin/utils/formatRad.js";
174
+ import "../CruisePlugin/utils/linerValue.js";
175
+ import "../CruisePlugin/utils/sleep.js";
176
+ const v = "v1.1.0", c = "GuideLinePlugin", f = `${c}@${v}`, ur = (e) => `${f}--${e}`;
177
+ function E(e) {
178
+ return Object.hasOwn(e, "routes");
66
179
  }
67
- class de extends G {
68
- constructor(e, i) {
69
- super(e, i);
70
- n(this, "version", v);
71
- n(this, "name", c);
72
- n(this, "state", {
180
+ class cr extends G {
181
+ constructor(i, t) {
182
+ super(i, t);
183
+ p(this, "version", v);
184
+ p(this, "name", c);
185
+ p(this, "cruisePlugin");
186
+ p(this, "state", {
73
187
  visible: !1,
74
188
  enabled: !0,
75
189
  disposed: !1
76
190
  });
77
- n(this, "data");
78
- n(this, "linesGroup");
79
- n(this, "itemMap", /* @__PURE__ */ new Map());
80
- n(this, "disposedErrorLog", () => {
191
+ p(this, "data");
192
+ p(this, "linesGroup");
193
+ p(this, "itemMap", /* @__PURE__ */ new Map());
194
+ p(this, "disposedErrorLog", () => {
81
195
  console.error(`${f} is disposed`);
82
196
  });
83
- Object.assign(window, { [`__${c}_DEBUG__`]: this });
197
+ this.cruisePlugin = new _(i, { useGuideLine: !1 }), Object.assign(window, { [`__${c}_DEBUG__`]: this });
84
198
  }
85
- load(e, i, r = !0) {
86
- return l(this, null, function* () {
199
+ load(i, t, o = !0) {
200
+ return d(this, null, function* () {
87
201
  if (this.state.disposed)
88
202
  return;
89
203
  this.clear();
90
- const d = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, o = yield this.formatData(e);
91
- this.hooks.emit("dataChange", o, d), this.data = o, o.lines.forEach((h) => {
92
- this.addGuideLineItem(h);
93
- }), yield this.waitFiveLoaded(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: r }), this.hooks.emit("dataLoaded", o), console.info(`${f} loaded`, o);
204
+ const a = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, m = yield this.formatData(i);
205
+ this.hooks.emit("dataChange", m, a), this.data = m, m.lines.forEach((n) => {
206
+ this.addGuideLineItem(n);
207
+ }), yield this.waitFiveLoaded(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), t && this.setState(t, { userAction: o }), this.hooks.emit("dataLoaded", m), console.info(`${f} loaded`, m);
94
208
  });
95
209
  }
96
- formatData(e) {
97
- return l(this, null, function* () {
98
- const i = this.getDataWithoutVersion(e);
99
- if (_(i)) {
100
- const { routes: r } = i;
101
- return { lines: r.map((o) => {
102
- const { panoIndexList: h } = o;
210
+ formatData(i) {
211
+ return d(this, null, function* () {
212
+ const t = this.getDataWithoutVersion(i);
213
+ if (E(t)) {
214
+ const { routes: o } = t;
215
+ return { lines: o.map((m) => {
216
+ const { panoIndexList: n } = m;
103
217
  return {
104
218
  render_id: S(),
105
- pano_group: h,
219
+ pano_group: n,
106
220
  panorama_style: {
107
221
  visible: !0,
108
222
  width: 0.6,
@@ -111,77 +225,77 @@ class de extends G {
111
225
  };
112
226
  }) };
113
227
  }
114
- return i;
228
+ return t;
115
229
  });
116
230
  }
117
- show(e) {
118
- return l(this, null, function* () {
119
- this.setState({ visible: !0 }, e);
231
+ show(i) {
232
+ return d(this, null, function* () {
233
+ this.setState({ visible: !0 }, i);
120
234
  });
121
235
  }
122
- hide(e) {
123
- return l(this, null, function* () {
124
- this.setState({ visible: !1 }, e);
236
+ hide(i) {
237
+ return d(this, null, function* () {
238
+ this.setState({ visible: !1 }, i);
125
239
  });
126
240
  }
127
- enable(e) {
128
- this.setState({ enabled: !0 }, e);
241
+ enable(i) {
242
+ this.setState({ enabled: !0 }, i);
129
243
  }
130
- disable(e) {
131
- this.setState({ enabled: !1 }, e);
244
+ disable(i) {
245
+ this.setState({ enabled: !1 }, i);
132
246
  }
133
247
  dispose() {
134
248
  this.setState({ disposed: !0 });
135
249
  }
136
- setState(e, i) {
137
- var d;
250
+ setState(i, t) {
251
+ var a;
138
252
  if (this.state.disposed)
139
253
  return this.disposedErrorLog();
140
- const r = m({}, this.state);
141
- this.state = m(m({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible, i == null ? void 0 : i.userAction), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled, i == null ? void 0 : i.userAction), I(r, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: (d = i == null ? void 0 : i.userAction) != null ? d : !0 }), this.five.needsRender = !0);
254
+ const o = h({}, this.state);
255
+ this.state = h(h({}, this.state), i), i.disposed !== void 0 && i.disposed !== o.disposed && i.disposed && this.handleDispose(), i.visible !== void 0 && i.visible !== o.visible && this.handleVisible(i.visible, t == null ? void 0 : t.userAction), i.enabled !== void 0 && i.enabled !== o.enabled && this.handleEnable(i.enabled, t == null ? void 0 : t.userAction), I(o, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: (a = t == null ? void 0 : t.userAction) != null ? a : !0 }), this.five.needsRender = !0);
142
256
  }
143
- addGuideLineItem(e) {
144
- const i = e.render_id || e.id, r = new D({ five: this.five, id: i, plugin: this });
145
- return this.itemMap.set(i, r), e && r.setData(e), r;
257
+ addGuideLineItem(i) {
258
+ const t = i.render_id || i.id, o = new D({ five: this.five, id: t, plugin: this });
259
+ return this.itemMap.set(t, o), i && o.setData(i), o;
146
260
  }
147
- getGuideLineItemByID(e) {
148
- return this.itemMap.get(e);
261
+ getGuideLineItemByID(i) {
262
+ return this.itemMap.get(i);
149
263
  }
150
- removeGuideLineItem(e) {
151
- this.itemMap.delete(e.id), e.panoramaItem.dispose(), e.modelItem.dispose();
264
+ removeGuideLineItem(i) {
265
+ this.itemMap.delete(i.id), i.panoramaItem.dispose(), i.modelItem.dispose();
152
266
  }
153
267
  clear() {
154
- this.itemMap.forEach((e) => {
155
- this.removeGuideLineItem(e);
268
+ this.itemMap.forEach((i) => {
269
+ this.removeGuideLineItem(i);
156
270
  });
157
271
  }
158
- handleEnable(e, i = !0) {
159
- this.hooks.emit(e ? "enable" : "disable", { userAction: i });
272
+ handleEnable(i, t = !0) {
273
+ this.hooks.emit(i ? "enable" : "disable", { userAction: t });
160
274
  }
161
- handleVisible(e, i = !0) {
162
- !this.state.enabled || this.hooks.emit(e ? "show" : "hide", { userAction: i });
275
+ handleVisible(i, t = !0) {
276
+ !this.state.enabled || this.hooks.emit(i ? "show" : "hide", { userAction: t });
163
277
  }
164
278
  handleDispose() {
165
279
  this.linesGroup && this.five.scene.remove(this.linesGroup), this.hooks.emit("dispose");
166
280
  }
167
281
  waitFiveLoaded() {
168
- return l(this, null, function* () {
169
- return new Promise((e) => {
282
+ return d(this, null, function* () {
283
+ return new Promise((i) => {
170
284
  if (this.five.work) {
171
- e();
285
+ i();
172
286
  return;
173
287
  }
174
288
  this.five.once("loaded", () => {
175
- e();
289
+ i();
176
290
  });
177
291
  });
178
292
  });
179
293
  }
180
- getDataWithoutVersion(e) {
181
- return typeof e == "object" && e !== null && e.version && e.data ? e.data : e;
294
+ getDataWithoutVersion(i) {
295
+ return typeof i == "object" && i !== null && i.version && i.data ? i.data : i;
182
296
  }
183
297
  }
184
298
  export {
185
- de as default,
186
- ne as pluginFlag
299
+ cr as default,
300
+ ur as pluginFlag
187
301
  };
@@ -1,35 +1,122 @@
1
- var u = Object.defineProperty;
2
- var h = (o, e, t) => e in o ? u(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
- var i = (o, e, t) => (h(o, typeof e != "symbol" ? e + "" : e, t), t);
4
- import g from "object-assign-deep";
5
- import { GuideLineModeItem as s } from "../GuideLineModeItem/index.js";
6
- class c {
1
+ var G = Object.defineProperty;
2
+ var w = Object.getOwnPropertySymbols;
3
+ var L = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
4
+ var d = (o, e, t) => e in o ? G(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, c = (o, e) => {
5
+ for (var t in e || (e = {}))
6
+ L.call(e, t) && d(o, t, e[t]);
7
+ if (w)
8
+ for (var t of w(e))
9
+ P.call(e, t) && d(o, t, e[t]);
10
+ return o;
11
+ };
12
+ var s = (o, e, t) => (d(o, typeof e != "symbol" ? e + "" : e, t), t);
13
+ var h = (o, e, t) => new Promise((n, r) => {
14
+ var l = (i) => {
15
+ try {
16
+ a(t.next(i));
17
+ } catch (m) {
18
+ r(m);
19
+ }
20
+ }, p = (i) => {
21
+ try {
22
+ a(t.throw(i));
23
+ } catch (m) {
24
+ r(m);
25
+ }
26
+ }, a = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(l, p);
27
+ a((t = t.apply(o, e)).next());
28
+ });
29
+ import S from "object-assign-deep";
30
+ import { GuideLineModeItem as y } from "../GuideLineModeItem/index.js";
31
+ import _ from "../../CruisePlugin/Controller.js";
32
+ import { logError as k } from "../../shared-utils/log.js";
33
+ import { to as v } from "../../shared-utils/to.js";
34
+ import { Subscribe as C } from "@realsee/five";
35
+ import { changeMode as b } from "../../shared-utils/five/changeMode.js";
36
+ class M {
7
37
  constructor(e) {
8
- i(this, "id");
9
- i(this, "renderID");
10
- i(this, "isGuideLine", !0);
11
- i(this, "panoramaItem");
12
- i(this, "modelItem");
13
- i(this, "plugin");
14
- i(this, "five");
15
- this.id = e.id, this.five = e.five, this.plugin = e.plugin, this.panoramaItem = new s(this.five, { mode: "panorama", plugin: this.plugin }), this.modelItem = new s(this.five, { mode: "model", plugin: this.plugin });
38
+ s(this, "id");
39
+ s(this, "renderID");
40
+ s(this, "isGuideLine", !0);
41
+ s(this, "panoramaItem");
42
+ s(this, "modelItem");
43
+ s(this, "hooks", new C());
44
+ s(this, "plugin");
45
+ s(this, "five");
46
+ s(this, "logError", (e) => k("GuideLineItem: ", e));
47
+ this.id = e.id, this.five = e.five, this.plugin = e.plugin, this.panoramaItem = new y(this.five, { mode: "panorama", plugin: this.plugin, parent: this }), this.modelItem = new y(this.five, { mode: "model", plugin: this.plugin, parent: this });
16
48
  }
17
49
  setData(e) {
18
50
  this.setDataByMode("panorama", e), this.setDataByMode("model", e);
19
51
  }
20
52
  setDataByMode(e, t) {
21
- const r = e === "panorama" ? this.panoramaItem : this.modelItem, n = e === "panorama" ? t.panorama_style : t.model_style;
22
- if (!n)
53
+ const n = e === "panorama" ? this.panoramaItem : this.modelItem, r = e === "panorama" ? t.panorama_style : t.model_style;
54
+ if (!r)
23
55
  return;
24
- const p = t.path, m = { url: this.plugin.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }, a = n, l = g({ texture: m }, n);
25
- t.pano_group && e === "panorama" && r.setSkippedPanoGroup(t.pano_group), t.path ? r.setGeometryByPath(p, a) : t.pano_group && r.setGeometryByPanoGroup(t.pano_group, a), r.setMartial(l);
56
+ const l = t.path, p = { url: this.plugin.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }, a = r, i = S({ texture: p }, r);
57
+ if (t.path)
58
+ n.setGeometryByPath(l, a);
59
+ else if (t.pano_group) {
60
+ const m = e === "panorama";
61
+ n.setGeometryByPanoGroup(t.pano_group, c({ skipPanoGroup: m }, a));
62
+ }
63
+ n.setMartial(i), r.start_tag && n.setStartTag(r.start_tag), r.end_tag && n.setEndTag(r.end_tag);
64
+ }
65
+ dispose() {
66
+ this.panoramaItem.dispose(), this.modelItem.dispose();
67
+ }
68
+ walk(e) {
69
+ return h(this, null, function* () {
70
+ if (!this.panoramaItem.panoGroup)
71
+ return;
72
+ const t = c({ panoIndexList: this.panoramaItem.panoGroup }, e);
73
+ this.hooks.emit("walkStart", { userAction: !0 });
74
+ const [n] = yield v(D(this.five, t));
75
+ if (this.hooks.emit("walkEnded", { userAction: !0 }), n)
76
+ return this.logError(n.message);
77
+ });
26
78
  }
27
79
  }
28
- const I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
80
+ function D(o, e) {
81
+ return h(this, null, function* () {
82
+ if (e.panoIndexList.length === 0)
83
+ return;
84
+ const t = o.getCurrentState();
85
+ t.mode !== "Panorama" && (yield b(o, ["Panorama", { longitude: t.longitude, latitude: 0, panoIndex: e.panoIndexList[0] }]));
86
+ const n = new _(o, { useGuideLine: !1 });
87
+ yield n.load(e), yield new Promise((r, l) => {
88
+ const p = o.getCurrentState();
89
+ let a = e.panoIndexList.slice();
90
+ p.panoIndex === a[0] && m(p.panoIndex), n.playFromStart();
91
+ function i(u) {
92
+ if (u !== "Panorama")
93
+ return f(new Error("mode not match"));
94
+ }
95
+ function m(u) {
96
+ const I = a[0];
97
+ if (a = a.slice(1), u !== I)
98
+ return f(new Error("panoIndex not match, wanted: " + I + ", got: " + u));
99
+ if (a.length === 0)
100
+ return x();
101
+ }
102
+ function g() {
103
+ o.off("modeChange", i), o.off("panoArrived", m);
104
+ }
105
+ function f(u) {
106
+ g(), l(u);
107
+ }
108
+ function x() {
109
+ g(), r();
110
+ }
111
+ o.on("modeChange", i), o.on("panoArrived", m);
112
+ });
113
+ });
114
+ }
115
+ const z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
29
116
  __proto__: null,
30
- GuideLineItem: c
117
+ GuideLineItem: M
31
118
  }, Symbol.toStringTag, { value: "Module" }));
32
119
  export {
33
- c as GuideLineItem,
34
- I as GuideLineItem$1
120
+ M as GuideLineItem,
121
+ z as GuideLineItem$1
35
122
  };
@@ -2,6 +2,8 @@ import type { Five } from '@realsee/five';
2
2
  import type GuideLinePlugin from './Controller';
3
3
  import type * as PluginType from './typing';
4
4
  import { GuideLineModeItem } from './GuideLineModeItem';
5
+ import { CruisePluginTypes } from '../CruisePlugin';
6
+ import { Subscribe } from '@realsee/five';
5
7
  /** 路线引导实例。
6
8
  * - 路线包括两个部分:全景路线和模型路线。
7
9
  * - Five 切换模态时,路线会自动切换。
@@ -13,6 +15,7 @@ declare class GuideLineItem {
13
15
  readonly isGuideLine = true;
14
16
  readonly panoramaItem: GuideLineModeItem;
15
17
  readonly modelItem: GuideLineModeItem;
18
+ readonly hooks: Subscribe<PluginType.GuideLineItemEventMap>;
16
19
  private plugin;
17
20
  private five;
18
21
  constructor(options: {
@@ -22,5 +25,8 @@ declare class GuideLineItem {
22
25
  });
23
26
  setData(data: PluginType.GuideLineItem): void;
24
27
  setDataByMode(mode: PluginType.GuideLineModeItemMode, data: PluginType.GuideLineItem): void;
28
+ dispose(): void;
29
+ walk(options?: CruisePluginTypes.MoveAction): Promise<void>;
30
+ private logError;
25
31
  }
26
32
  export { GuideLineItem };