@realsee/dnalogel 2.16.0-4 → 2.16.0-6

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 (327) 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 +37 -5
  6. package/dist/GuideLinePlugin/typing.d.ts +33 -4
  7. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +5 -5
  8. package/dist/index.cjs.js +61 -61
  9. package/dist/index.js +8345 -8265
  10. package/dist/index.umd.js +54 -54
  11. package/docs/assets/search.js +1 -1
  12. package/docs/classes/CSS3DRender.html +32 -31
  13. package/docs/classes/CruisePluginController.html +39 -38
  14. package/docs/classes/GuideLineItem.GuideLineItem.html +49 -16
  15. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +218 -49
  16. package/docs/classes/Magnifier.html +21 -20
  17. package/docs/classes/ModelRoomLabelController.html +12 -11
  18. package/docs/classes/Object3DHelperController.html +26 -25
  19. package/docs/classes/PaintBrush.html +16 -15
  20. package/docs/classes/PanoMeasurePluginLine.html +24 -23
  21. package/docs/classes/PanoMeasurePluginModel.html +23 -22
  22. package/docs/classes/PanoMeasurePluginPoint.html +15 -14
  23. package/docs/classes/PanoMeasurePluginPolyline.html +27 -26
  24. package/docs/classes/PanoTagPluginController.html +48 -47
  25. package/docs/classes/Util.BetterTween.html +9 -8
  26. package/docs/classes/Util.FivePointSelector.html +13 -12
  27. package/docs/classes/Util.Interval.html +13 -12
  28. package/docs/classes/Util.Magnifier.html +18 -17
  29. package/docs/classes/Util.PointDomHelper.html +12 -11
  30. package/docs/classes/Util.PointHelper.html +12 -11
  31. package/docs/classes/Util.Rectangle.html +14 -13
  32. package/docs/enums/CameraMovementEffect.html +8 -7
  33. package/docs/enums/ContentType.html +20 -19
  34. package/docs/enums/DIRECTION.html +10 -9
  35. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
  36. package/docs/enums/DimensionType.html +8 -7
  37. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
  38. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
  39. package/docs/enums/PaintBrushTypeEnum.html +9 -8
  40. package/docs/enums/Rotation.html +9 -8
  41. package/docs/functions/CSS3DRenderPlugin.html +5 -4
  42. package/docs/functions/CameraMovementPlugin.html +5 -4
  43. package/docs/functions/CruisePlugin.html +5 -4
  44. package/docs/functions/GuideLinePlugin.html +6 -5
  45. package/docs/functions/ItemLabelPlugin.html +5 -4
  46. package/docs/functions/MapviewFloorplanPlugin.html +5 -4
  47. package/docs/functions/ModelChassisCompassPlugin.html +5 -4
  48. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
  49. package/docs/functions/ModelFloorplanPlugin.html +5 -4
  50. package/docs/functions/ModelItemLabelPlugin.html +5 -4
  51. package/docs/functions/ModelRoomLabelPlugin.html +5 -4
  52. package/docs/functions/ModelTVVideoPlugin.html +5 -4
  53. package/docs/functions/ModelViewPlugin.html +5 -4
  54. package/docs/functions/Object3DHelperPlugin.html +5 -4
  55. package/docs/functions/PanoCompassPlugin.html +5 -4
  56. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
  57. package/docs/functions/PanoDoorLabelPlugin.html +5 -4
  58. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
  59. package/docs/functions/PanoMeasurePlugin.html +5 -4
  60. package/docs/functions/PanoRulerPlugin.html +5 -4
  61. package/docs/functions/PanoRulerProPlugin.html +5 -4
  62. package/docs/functions/PanoSpatialTagPlugin.html +5 -4
  63. package/docs/functions/PanoTagPlugin.html +5 -4
  64. package/docs/functions/PanoVideoPlugin.html +5 -4
  65. package/docs/functions/TopviewFloorplanPlugin.html +5 -4
  66. package/docs/functions/Util.getCoordsFromClient.html +6 -5
  67. package/docs/functions/Util.getCoordsFromElement.html +6 -5
  68. package/docs/functions/Util.getFrameTime.html +6 -5
  69. package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
  70. package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
  71. package/docs/functions/Util.isAbsoluteURL.html +6 -5
  72. package/docs/functions/Util.isModelLike.html +6 -5
  73. package/docs/functions/Util.isNil.html +6 -5
  74. package/docs/functions/Util.isPanoramaLike.html +6 -5
  75. package/docs/functions/Util.nextFrame.html +6 -5
  76. package/docs/functions/Util.notNil.html +6 -5
  77. package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
  78. package/docs/functions/Util.tweenProgress.html +6 -5
  79. package/docs/functions/Util.uuid.html +6 -5
  80. package/docs/functions/pluginFlag.html +6 -5
  81. package/docs/index.html +5 -4
  82. package/docs/interfaces/AddTagConfig.html +7 -6
  83. package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
  84. package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
  85. package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
  86. package/docs/interfaces/CruisePluginTypes.Config.html +107 -0
  87. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +112 -0
  88. package/docs/interfaces/CruisePluginTypes.EventMap.html +429 -0
  89. package/docs/interfaces/CruisePluginTypes.MoveAction.html +120 -0
  90. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +141 -0
  91. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +143 -0
  92. package/docs/interfaces/CruisePluginTypes.PluginData.html +95 -0
  93. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +83 -0
  94. package/docs/interfaces/CruisePluginTypes.PluginState.html +148 -0
  95. package/docs/interfaces/EventMap.html +16 -15
  96. package/docs/interfaces/FloorplanBounding.html +9 -8
  97. package/docs/interfaces/FloorplanData.html +11 -10
  98. package/docs/interfaces/FloorplanEntrance.html +12 -11
  99. package/docs/interfaces/FloorplanExtraObject.html +11 -10
  100. package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
  101. package/docs/interfaces/FloorplanFloorData.html +10 -9
  102. package/docs/interfaces/FloorplanImagePosition.html +8 -7
  103. package/docs/interfaces/FloorplanObserver.html +10 -9
  104. package/docs/interfaces/FloorplanOutlineItem.html +10 -9
  105. package/docs/interfaces/FloorplanPosition.html +8 -7
  106. package/docs/interfaces/FloorplanRoomItem.html +14 -13
  107. package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
  108. package/docs/interfaces/FloorplanServerBounding.html +9 -8
  109. package/docs/interfaces/FloorplanServerComputedData.html +11 -10
  110. package/docs/interfaces/FloorplanServerData.html +8 -7
  111. package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
  112. package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
  113. package/docs/interfaces/FloorplanServerEntrance.html +12 -11
  114. package/docs/interfaces/FloorplanServerFloorData.html +10 -9
  115. package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
  116. package/docs/interfaces/FloorplanServerObserver.html +10 -9
  117. package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
  118. package/docs/interfaces/FloorplanServerPosition.html +8 -7
  119. package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
  120. package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
  121. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +15 -10
  122. package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -13
  123. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -8
  124. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -6
  125. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -11
  126. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -8
  127. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +179 -0
  128. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTag.html +211 -0
  129. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +293 -0
  130. package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +8 -7
  131. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +7 -6
  132. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -7
  133. package/docs/interfaces/GuideLinePluginType.PluginState.html +10 -9
  134. package/docs/interfaces/GuideLinePluginType.Route.html +11 -10
  135. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -9
  136. package/docs/interfaces/HelperOffset.html +9 -8
  137. package/docs/interfaces/ImagePlaneGroup.html +7 -6
  138. package/docs/interfaces/ItemLabelPluginData.html +7 -6
  139. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
  140. package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
  141. package/docs/interfaces/MinMax.html +8 -7
  142. package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
  143. package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
  144. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
  145. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
  146. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
  147. package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
  148. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
  149. package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
  150. package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
  151. package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
  152. package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
  153. package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
  154. package/docs/interfaces/ModelViewPluginExportType.html +12 -11
  155. package/docs/interfaces/Object3DHelperState.html +9 -8
  156. package/docs/interfaces/ObjectHelperControllers.html +10 -9
  157. package/docs/interfaces/PaintBrushAction.html +13 -12
  158. package/docs/interfaces/PaintBrushConfigs.html +13 -12
  159. package/docs/interfaces/PaintBrushState.html +11 -10
  160. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
  161. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
  162. package/docs/interfaces/PanoMeasureParameterType.html +15 -14
  163. package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
  164. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
  165. package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
  166. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
  167. package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
  168. package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
  169. package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
  170. package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
  171. package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
  172. package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
  173. package/docs/interfaces/PanoRulerProPluginState.html +9 -8
  174. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
  175. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
  176. package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
  177. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
  178. package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
  179. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
  180. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
  181. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
  182. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
  183. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -6
  184. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -8
  185. package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -6
  186. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -9
  187. package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -6
  188. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -8
  189. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -10
  190. package/docs/interfaces/Point.html +9 -8
  191. package/docs/interfaces/Room.html +10 -9
  192. package/docs/interfaces/RoomInfo.html +8 -7
  193. package/docs/interfaces/RoomLabel.html +15 -14
  194. package/docs/interfaces/RoomRules.html +6 -5
  195. package/docs/interfaces/Rooms.html +6 -5
  196. package/docs/interfaces/Scissor.html +10 -9
  197. package/docs/interfaces/State.html +9 -8
  198. package/docs/interfaces/TagCacheInterface.html +13 -12
  199. package/docs/interfaces/TagConfig.html +12 -11
  200. package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
  201. package/docs/interfaces/TagIconUrl.html +12 -11
  202. package/docs/interfaces/TagObjectGroup.html +7 -6
  203. package/docs/interfaces/TagStyle.html +7 -6
  204. package/docs/interfaces/Tags.html +10 -9
  205. package/docs/interfaces/TemporaryState.html +7 -6
  206. package/docs/interfaces/Util.MagnifierParameter.html +12 -11
  207. package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
  208. package/docs/modules/CruisePluginTypes.html +88 -0
  209. package/docs/modules/GuideLineItem.html +6 -5
  210. package/docs/modules/GuideLineModeItem.html +6 -5
  211. package/docs/modules/GuideLinePluginType.html +14 -5
  212. package/docs/modules/PanoVideoPluginType.html +6 -5
  213. package/docs/modules/Util.html +6 -5
  214. package/docs/modules.html +7 -5
  215. package/docs/types/ArrayPosition.html +6 -5
  216. package/docs/types/AudioAppearance.html +6 -5
  217. package/docs/types/AudioTagTypeConfigKey.html +6 -5
  218. package/docs/types/CSS3DRenderExportType.html +6 -5
  219. package/docs/types/CSS3DRenderPluginExportType.html +6 -5
  220. package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
  221. package/docs/types/ClassFunctionParameters.html +6 -5
  222. package/docs/types/Color.html +6 -5
  223. package/docs/types/ContentTypeConfigKey.html +6 -5
  224. package/docs/types/ContentTypeConfigKeySplit.html +6 -5
  225. package/docs/types/ContentTypeMap.html +6 -5
  226. package/docs/types/Create3DDomContainerReturnType.html +6 -5
  227. package/docs/types/Create3DElementReturnType.html +6 -5
  228. package/docs/types/CruisePluginExportType.html +6 -5
  229. package/docs/types/CruisePluginTypes.CruiseData.html +60 -0
  230. package/docs/types/CruisePluginTypes.MoveEffect.html +60 -0
  231. package/docs/types/Direction-1.html +6 -5
  232. package/docs/types/Direction4.html +6 -5
  233. package/docs/types/FloorplanRuleLabels.html +6 -5
  234. package/docs/types/FloorplanServerRuleLabels.html +6 -5
  235. package/docs/types/GuideLinePluginExportType.html +6 -5
  236. package/docs/types/GuideLinePluginType.GuideLineItem.html +11 -6
  237. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +105 -0
  238. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +10 -5
  239. package/docs/types/GuideLinePluginType.GuideLineStyle.html +10 -5
  240. package/docs/types/GuideLinePluginType.PathItem.html +10 -5
  241. package/docs/types/GuideLinePluginType.PluginData.html +10 -5
  242. package/docs/types/HelperEventMap.html +6 -5
  243. package/docs/types/LoadTagConfig.html +6 -5
  244. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
  245. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
  246. package/docs/types/MediaData.html +6 -5
  247. package/docs/types/MediaStore.html +6 -5
  248. package/docs/types/ModelElement.html +6 -5
  249. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
  250. package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
  251. package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
  252. package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
  253. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
  254. package/docs/types/MoveArgs.html +6 -5
  255. package/docs/types/MoveOpts.html +6 -5
  256. package/docs/types/Object3DHelperEventMap.html +6 -5
  257. package/docs/types/ObjectFit.html +6 -5
  258. package/docs/types/PaintBrushEventMap.html +6 -5
  259. package/docs/types/PanoCompassPluginData.html +6 -5
  260. package/docs/types/PanoCompassPluginExportType.html +6 -5
  261. package/docs/types/PanoCompassPluginParameterType.html +6 -5
  262. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
  263. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
  264. package/docs/types/PanoIndex.html +6 -5
  265. package/docs/types/PanoMeasurePluginEvent.html +6 -5
  266. package/docs/types/PanoMeasureReturnType.html +6 -5
  267. package/docs/types/PanoSpatialTagPluginId.html +6 -5
  268. package/docs/types/PanoTagPluginExportInterface.html +6 -5
  269. package/docs/types/PanoTagPluginParamsInterface.html +6 -5
  270. package/docs/types/PanoVideoPluginParameterType.html +6 -5
  271. package/docs/types/PanoVideoPluginReturnType.html +6 -5
  272. package/docs/types/PlaneTag.html +6 -5
  273. package/docs/types/PlaneTagElement.html +6 -5
  274. package/docs/types/Point2DElement.html +6 -5
  275. package/docs/types/Point2DTag.html +6 -5
  276. package/docs/types/Point3DElement.html +6 -5
  277. package/docs/types/Point3DTag.html +6 -5
  278. package/docs/types/PointTag.html +6 -5
  279. package/docs/types/PointTagElement.html +6 -5
  280. package/docs/types/Position.html +6 -5
  281. package/docs/types/RotateArgs.html +6 -5
  282. package/docs/types/RotateOpts.html +6 -5
  283. package/docs/types/RuleLabelsKey.html +6 -5
  284. package/docs/types/RuleLabelsValue.html +6 -5
  285. package/docs/types/StickType.html +6 -5
  286. package/docs/types/Tag.html +6 -5
  287. package/docs/types/Tag2D.html +6 -5
  288. package/docs/types/Tag3D.html +6 -5
  289. package/docs/types/TagContentType.html +6 -5
  290. package/docs/types/TagDimensionType.html +6 -5
  291. package/docs/types/TagElement.html +6 -5
  292. package/docs/types/TagEvents.html +6 -5
  293. package/docs/types/TagGLTFObject.html +6 -5
  294. package/docs/types/TagHooks.html +6 -5
  295. package/docs/types/TagIconSize.html +6 -5
  296. package/docs/types/TagId.html +6 -5
  297. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
  298. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
  299. package/docs/types/WorkCode.html +6 -5
  300. package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
  301. package/docs/variables/PLUGIN.html +6 -5
  302. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
  303. package/docs/variables/ROOM_TYPE_MAP.html +6 -5
  304. package/docs/variables/itemLabelPluginServerParams.html +6 -5
  305. package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
  306. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
  307. package/libs/CruisePlugin/Controller.js +221 -118
  308. package/libs/CruisePlugin/index.d.ts +2 -0
  309. package/libs/CruisePlugin/index.js +109 -5
  310. package/libs/CruisePlugin/typing/index.js +6 -0
  311. package/libs/CruisePlugin/typing.d.ts +32 -40
  312. package/libs/GuideLinePlugin/Controller.d.ts +2 -0
  313. package/libs/GuideLinePlugin/Controller.js +198 -85
  314. package/libs/GuideLinePlugin/GuideLineItem/index.js +109 -22
  315. package/libs/GuideLinePlugin/GuideLineItem.d.ts +6 -0
  316. package/libs/GuideLinePlugin/GuideLineItem.js +122 -4
  317. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +72 -49
  318. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +37 -5
  319. package/libs/GuideLinePlugin/GuideLineModeItem.js +105 -2
  320. package/libs/GuideLinePlugin/index.js +118 -7
  321. package/libs/GuideLinePlugin/typing.d.ts +33 -4
  322. package/libs/GuideLinePlugin/typing.js +34 -1
  323. package/libs/GuideLinePlugin/utils/index.js +17 -4
  324. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +5 -5
  325. package/libs/base/BasePlugin.js +1 -1
  326. package/libs/index.js +39 -37
  327. package/package.json +1 -1
@@ -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, a) => {
14
+ var l = (i) => {
15
+ try {
16
+ r(t.next(i));
17
+ } catch (m) {
18
+ a(m);
19
+ }
20
+ }, p = (i) => {
21
+ try {
22
+ r(t.throw(i));
23
+ } catch (m) {
24
+ a(m);
25
+ }
26
+ }, r = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(l, p);
27
+ r((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, a = e === "panorama" ? t.panorama_style : t.model_style;
54
+ if (!a)
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" }, r = a, i = S({ texture: p }, a);
57
+ if (t.path)
58
+ n.setGeometryByPath(l, r);
59
+ else if (t.pano_group) {
60
+ const m = e === "panorama";
61
+ n.setGeometryByPanoGroup(t.pano_group, c({ skipPanoGroup: m }, r));
62
+ }
63
+ n.setMartial(i), a.start_tag && n.setStartTag(a.start_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((a, l) => {
88
+ const p = o.getCurrentState();
89
+ let r = e.panoIndexList.slice();
90
+ p.panoIndex === r[0] && m(p.panoIndex), n.playFromStart();
91
+ function i(u) {
92
+ if (u !== "Panorama")
93
+ return g(new Error("mode not match"));
94
+ }
95
+ function m(u) {
96
+ const I = r[0];
97
+ if (r = r.slice(1), u !== I)
98
+ return g(new Error("panoIndex not match, wanted: " + I + ", got: " + u));
99
+ if (r.length === 0)
100
+ return x();
101
+ }
102
+ function f() {
103
+ o.off("modeChange", i), o.off("panoArrived", m);
104
+ }
105
+ function g(u) {
106
+ f(), l(u);
107
+ }
108
+ function x() {
109
+ f(), a();
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 };
@@ -1,12 +1,15 @@
1
1
  import "object-assign-deep";
2
2
  import "./GuideLineModeItem/index.js";
3
- import { GuideLineItem as A } from "./GuideLineItem/index.js";
4
- import "three";
3
+ import "../CruisePlugin/Controller.js";
5
4
  import "../shared-utils/log.js";
5
+ import "../shared-utils/to.js";
6
+ import "@realsee/five";
7
+ import "../shared-utils/five/changeMode.js";
8
+ import { GuideLineItem as Nm } from "./GuideLineItem/index.js";
9
+ import "three";
6
10
  import "./utils/createLineGeometry.js";
7
11
  import "polyline-normals";
8
12
  import "../shared-utils/five/mode.js";
9
- import "@realsee/five";
10
13
  import "hammerjs";
11
14
  import "@tweenjs/tween.js";
12
15
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
@@ -26,6 +29,121 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
26
29
  import "../shared-utils/animationFrame/BetterTween.js";
27
30
  import "../shared-utils/animationFrame/index.js";
28
31
  import "../shared-utils/three/loadTexture.js";
32
+ import "../PanoTagPlugin/controller/index.js";
33
+ import "../PanoTagPlugin/utils/addDebugPoints.js";
34
+ import "@realsee/five/gltf-loader";
35
+ import "../PanoTagPlugin/utils/tag/tagCheck.js";
36
+ import "../PanoTagPlugin/utils/actionAfterFiveModelLoad.js";
37
+ import "../PanoTagPlugin/utils/debounce.js";
38
+ import "../PanoTagPlugin/utils/throttle.js";
39
+ import "../PanoTagPlugin/utils/resizeObserver.js";
40
+ import "../PanoTagPlugin/utils/tag/format.js";
41
+ import "../shared-utils/audio.js";
42
+ import "../PanoTagPlugin/controller/TagRender.js";
43
+ import "../PanoTagPlugin/controller/TagComputer.js";
44
+ import "../PanoTagPlugin/utils/tagPosition.js";
45
+ import "../PanoTagPlugin/utils/checkRange.js";
46
+ import "../shared-utils/isNil.js";
47
+ import "../PanoTagPlugin/controller/TagUtil.js";
48
+ import "../PanoTagPlugin/tag.config.js";
49
+ import "../PanoTagPlugin/utils/planeNormal.js";
50
+ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
51
+ import "../PanoTagPlugin/controller/TagCache.js";
52
+ import "../base/BasePlugin.js";
53
+ import "../shared-utils/isAbsoluteURL.js";
54
+ import "../vendor/svelte/store/index.js";
55
+ import "../vendor/svelte/internal/index.js";
56
+ import "../PanoTagPlugin/utils/device.js";
57
+ import "../shared-utils/threex/domevents/index.js";
58
+ import "../PanoTagPlugin/Components/TagContainer.js";
59
+ import "../PanoTagPlugin/Components/TagItem.js";
60
+ import "../PanoTagPlugin/Components/Tag/index.js";
61
+ import "../PanoTagPlugin/Components/Tag/TextTag/index.js";
62
+ import "../PanoTagPlugin/Components/Tag/TextTag/TextTag.js";
63
+ import "../PanoTagPlugin/Components/Common/Line/Straight.js";
64
+ import "../vendor/svelte/transition/index.js";
65
+ import "../vendor/svelte/easing/index.js";
66
+ import "../shared-utils/uuid.js";
67
+ import "../PanoTagPlugin/Components/Common/Shadow.js";
68
+ import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
69
+ import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
70
+ import "animejs";
71
+ import "../PanoTagPlugin/utils/search.js";
72
+ import "../PanoTagPlugin/utils/constants.js";
73
+ import "../PanoTagPlugin/Components/Common/Arrow.js";
74
+ import "../PanoTagPlugin/Assets/Icon.js";
75
+ import "../PanoTagPlugin/utils/doUtil.js";
76
+ import "../shared-utils/svelte/resizeObserver.js";
77
+ import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
78
+ import "../PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js";
79
+ import "../PanoTagPlugin/Components/Common/Text/MText.js";
80
+ import "../PanoTagPlugin/utils/px2rem.js";
81
+ import "../PanoTagPlugin/Components/Tag/ImageTextTag.js";
82
+ import "../PanoTagPlugin/Components/Common/Line/Polyline.js";
83
+ import "../PanoTagPlugin/Components/Common/Media.js";
84
+ import "../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
85
+ import "../vendor/svelte-carousel/src/components/Dots/Dots.js";
86
+ import "../vendor/svelte-carousel/src/components/Dot/Dot.js";
87
+ import "../vendor/svelte-carousel/src/components/Arrow/Arrow.js";
88
+ import "../vendor/svelte-carousel/src/direction.js";
89
+ import "../vendor/svelte-carousel/src/components/Progress/Progress.js";
90
+ import "../vendor/svelte-carousel/src/actions/swipeable/swipeable.js";
91
+ import "../vendor/svelte-carousel/src/actions/swipeable/event.js";
92
+ import "../vendor/svelte-carousel/src/utils/event.js";
93
+ import "../vendor/svelte-carousel/src/units.js";
94
+ import "../vendor/svelte-carousel/src/actions/hoverable/hoverable.js";
95
+ import "../vendor/svelte-carousel/src/actions/hoverable/event.js";
96
+ import "../vendor/svelte-carousel/src/actions/tappable/tappable.js";
97
+ import "../vendor/svelte-carousel/src/utils/math.js";
98
+ import "../vendor/svelte-carousel/src/actions/tappable/event.js";
99
+ import "../vendor/svelte-carousel/src/utils/page.js";
100
+ import "../vendor/svelte-carousel/src/utils/clones.js";
101
+ import "../vendor/svelte-carousel/src/utils/object.js";
102
+ import "../vendor/svelte-carousel/src/components/Carousel/createCarousel.js";
103
+ import "../vendor/simply-reactive/src/simply-reactive.js";
104
+ import "lodash.get";
105
+ import "lodash.clonedeep";
106
+ import "../vendor/simply-reactive/src/utils/subscription.js";
107
+ import "../vendor/simply-reactive/src/utils/object.js";
108
+ import "lodash.isequal";
109
+ import "../vendor/simply-reactive/src/utils/watcher.js";
110
+ import "../vendor/svelte-carousel/src/utils/lazy.js";
111
+ import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
112
+ import "../vendor/svelte-carousel/src/utils/interval.js";
113
+ import "../PanoTagPlugin/Components/Common/MediaItem.js";
114
+ import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
115
+ import "../PanoTagPlugin/utils/noTypecheck.js";
116
+ import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
117
+ import "../PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
118
+ import "../PanoTagPlugin/Components/Common/Audio.js";
119
+ import "../PanoTagPlugin/utils/audio/SharedAudio.js";
120
+ import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
121
+ import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
122
+ import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
123
+ import "../PanoTagPlugin/Components/Tag/LinkTag.js";
124
+ import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
125
+ import "../PanoTagPlugin/utils/getImageInfo.js";
126
+ import "../PanoTagPlugin/Components/Tag/CustomTag.js";
127
+ import "classnames";
128
+ import "../PanoTagPlugin/Components/Common/TagPoint.js";
129
+ import "../PanoTagPlugin/utils/model/imagePlane.js";
130
+ import "../CSS3DRenderPlugin/index.js";
131
+ import "../CSS3DRenderPlugin/Controller.js";
132
+ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
133
+ import "../shared-utils/three/GLTFLoader.js";
134
+ import "../base/BasePluginWithData.js";
135
+ import "./index.js";
136
+ import "./Controller.js";
137
+ import "../shared-utils/equal.js";
138
+ import "../shared-utils/isTruelyObject.js";
139
+ import "../shared-utils/nearlyEqual.js";
140
+ import "../CruisePlugin/utils/coordinatesAngle.js";
141
+ import "../CruisePlugin/utils/coordinatesToVector.js";
142
+ import "../CruisePlugin/utils/safeCall.js";
143
+ import "../CruisePlugin/utils/vectorToCoordinates.js";
144
+ import "../CruisePlugin/utils/formatRad.js";
145
+ import "../CruisePlugin/utils/linerValue.js";
146
+ import "../CruisePlugin/utils/sleep.js";
29
147
  export {
30
- A as GuideLineItem
148
+ Nm as GuideLineItem
31
149
  };
@@ -1,26 +1,29 @@
1
1
  var c = Object.defineProperty;
2
2
  var g = Object.getOwnPropertySymbols;
3
- var v = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
4
- var n = (r, e, i) => e in r ? c(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i, f = (r, e) => {
3
+ var C = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
+ var h = (r, e, i) => e in r ? c(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i, f = (r, e) => {
5
5
  for (var i in e || (e = {}))
6
- v.call(e, i) && n(r, i, e[i]);
6
+ C.call(e, i) && h(r, i, e[i]);
7
7
  if (g)
8
8
  for (var i of g(e))
9
- C.call(e, i) && n(r, i, e[i]);
9
+ b.call(e, i) && h(r, i, e[i]);
10
10
  return r;
11
11
  };
12
- var t = (r, e, i) => (n(r, typeof e != "symbol" ? e + "" : e, i), i);
13
- import * as u from "three";
14
- import { logWarning as b, logError as E } from "../../shared-utils/log.js";
15
- import { createLineGeometry as F } from "../utils/createLineGeometry.js";
16
- import { isPanoramaLike as y, isModelLike as k } from "../../shared-utils/five/mode.js";
12
+ var t = (r, e, i) => (h(r, typeof e != "symbol" ? e + "" : e, i), i);
13
+ import * as a from "three";
14
+ import { logWarning as E, logError as F } from "../../shared-utils/log.js";
15
+ import { createLineGeometry as k } from "../utils/createLineGeometry.js";
16
+ import { isPanoramaLike as y, isModelLike as P } from "../../shared-utils/five/mode.js";
17
17
  import "hammerjs";
18
18
  import "@realsee/five";
19
19
  import "@tweenjs/tween.js";
20
20
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
21
21
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
22
22
  import "../../shared-utils/animationFrame/BetterTween.js";
23
- import { loadTexture as P } from "../../shared-utils/three/loadTexture.js";
23
+ import { loadTexture as w } from "../../shared-utils/three/loadTexture.js";
24
+ import "object-assign-deep";
25
+ import p from "../../PanoTagPlugin/controller/index.js";
26
+ import "@realsee/five/gltf-loader";
24
27
  const U = `
25
28
  varying vec2 vUv;
26
29
 
@@ -28,7 +31,7 @@ const U = `
28
31
  vUv = uv;
29
32
  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
30
33
  }
31
- `, w = `
34
+ `, x = `
32
35
  // \u662F\u5426\u4F7F\u7528\u989C\u8272
33
36
  uniform int useMapColor;
34
37
  // \u8D34\u56FE
@@ -86,12 +89,15 @@ const U = `
86
89
  gl_FragColor.a = gl_FragColor.a * linearGradientOpacity();
87
90
  }
88
91
  `;
89
- class x {
92
+ class L {
90
93
  constructor(e, i) {
94
+ t(this, "startTagPlugin");
95
+ t(this, "endTagPlugin");
91
96
  t(this, "mesh");
92
97
  t(this, "five");
93
98
  t(this, "mode");
94
99
  t(this, "path", []);
100
+ t(this, "_panoGroup", null);
95
101
  t(this, "skippedPositions", null);
96
102
  t(this, "textureUrl", "");
97
103
  t(this, "scale", 1);
@@ -99,7 +105,10 @@ class x {
99
105
  t(this, "unitLength", 0.5);
100
106
  t(this, "visible", !1);
101
107
  t(this, "modeVisible", !1);
108
+ t(this, "defaultVisible", !0);
109
+ t(this, "inWalkAnimation", !1);
102
110
  t(this, "customVisible", null);
111
+ t(this, "parent");
103
112
  t(this, "plugin");
104
113
  t(this, "textureHasLoaded", !1);
105
114
  t(this, "disposed", !1);
@@ -115,38 +124,47 @@ class x {
115
124
  t(this, "onPluginDisable", () => {
116
125
  this.updateVisible();
117
126
  });
127
+ t(this, "onWalkAnimationStart", () => {
128
+ this.inWalkAnimation = !0, this.updateVisible();
129
+ });
130
+ t(this, "onWalkAnimationEnd", () => {
131
+ this.inWalkAnimation = !1, this.updateVisible();
132
+ });
118
133
  t(this, "onFiveModeChange", (e) => {
119
- this.modeVisible = this.mode === "panorama" ? y(e) : k(e), this.updateVisible();
134
+ this.modeVisible = this.mode === "panorama" ? y(e) : P(e), this.updateVisible();
120
135
  });
121
- t(this, "logWarning", (e) => b("GuideLineModeItem: ", e));
122
- t(this, "logError", (e) => E("GuideLineModeItem: ", e));
123
- this.five = e, this.mode = i.mode, this.plugin = i.plugin;
124
- const s = new u.BufferGeometry(), o = new u.ShaderMaterial({
136
+ t(this, "logWarning", (e) => E("GuideLineModeItem: ", e));
137
+ t(this, "logError", (e) => F("GuideLineModeItem: ", e));
138
+ this.five = e, this.mode = i.mode, this.plugin = i.plugin, this.parent = i.parent, this.startTagPlugin = new p(this.five), this.endTagPlugin = new p(this.five);
139
+ const s = new a.BufferGeometry(), o = new a.ShaderMaterial({
125
140
  vertexShader: U,
126
- fragmentShader: w,
141
+ fragmentShader: x,
127
142
  transparent: !0,
128
143
  uniforms: {
129
144
  map: { value: null },
130
145
  useMapColor: { value: 0 },
131
- mapColor: { value: new u.Color() },
146
+ mapColor: { value: new a.Color() },
132
147
  mapOpacity: { value: 1 },
133
- backgroundColor: { value: new u.Color() },
148
+ backgroundColor: { value: new a.Color() },
134
149
  backgroundOpacity: { value: 0 },
135
150
  opacity: { value: 1 },
136
151
  maxU: { value: 0 }
137
152
  }
138
153
  });
139
- this.mesh = new u.Mesh(s, o), this.mesh.name = "GuideLineModeItem", this.plugin.hooks.on("show", this.onPluginShow), this.plugin.hooks.on("hide", this.onPluginHide), this.plugin.hooks.on("enable", this.onPluginEnable), this.plugin.hooks.on("disable", this.onPluginDisable), this.five.on("modeChange", this.onFiveModeChange), this.onFiveModeChange(this.five.getCurrentState().mode);
154
+ this.mesh = new a.Mesh(s, o), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.plugin.hooks.on("show", this.onPluginShow), this.plugin.hooks.on("hide", this.onPluginHide), this.plugin.hooks.on("enable", this.onPluginEnable), this.plugin.hooks.on("disable", this.onPluginDisable), this.five.on("modeChange", this.onFiveModeChange), this.onFiveModeChange(this.five.getCurrentState().mode);
155
+ }
156
+ get panoGroup() {
157
+ return this._panoGroup;
140
158
  }
141
159
  setCustomVisible(e) {
142
160
  if (this.disposed)
143
161
  return this.logError("disposed");
144
162
  this.customVisible !== e && (this.customVisible = e, this.updateVisible());
145
163
  }
146
- setModeVisible(e) {
164
+ setDefaultVisible(e) {
147
165
  if (this.disposed)
148
166
  return this.logError("disposed");
149
- this.modeVisible !== e && (this.modeVisible = e, this.updateVisible());
167
+ this.defaultVisible !== e && (this.defaultVisible = e, this.updateVisible());
150
168
  }
151
169
  dispose() {
152
170
  this.disposed || (this.disposed = !0, this.five.off("modeChange", this.onFiveModeChange), this.plugin.hooks.off("show", this.onPluginShow), this.plugin.hooks.off("hide", this.onPluginHide), this.plugin.hooks.off("enable", this.onPluginEnable), this.plugin.hooks.off("disable", this.onPluginDisable), this.doHide());
@@ -166,46 +184,42 @@ class x {
166
184
  return this.logError("disposed");
167
185
  if (!this.five.work)
168
186
  return this.logError("setPathByPanoGroup: work is not ready");
187
+ if (this._panoGroup = e, (i == null ? void 0 : i.skipPanoGroup) !== void 0) {
188
+ const o = i.skipPanoGroup ? e.map((u) => this.five.work.observers[u]).map((u) => u.standingPosition.clone()) : null;
189
+ this.skippedPositions = o;
190
+ }
169
191
  const s = this.getPathFromPanoGroup(e, this.five.work, i);
170
192
  this.path = s, this.setGeometryByPath(s, i);
171
193
  }
172
194
  setGeometryByPath(e, i) {
173
- var d, l, m;
195
+ var l, d, m;
174
196
  if (this.disposed)
175
197
  return this.logError("disposed");
176
- const s = (d = i == null ? void 0 : i.scale) != null ? d : this.scale, o = (l = i == null ? void 0 : i.width) != null ? l : this.width, h = (m = i == null ? void 0 : i.unit_length) != null ? m : this.unitLength;
177
- this.path = e, this.scale = s, this.width = o, this.unitLength = h;
178
- const { geometry: a, maxU: p } = F({
198
+ const s = (l = i == null ? void 0 : i.scale) != null ? l : this.scale, o = (d = i == null ? void 0 : i.width) != null ? d : this.width, u = (m = i == null ? void 0 : i.unit_length) != null ? m : this.unitLength;
199
+ this.path = e, this.scale = s, this.width = o, this.unitLength = u;
200
+ const { geometry: n, maxU: v } = k({
179
201
  path: e,
180
202
  width: o * s,
181
- unitLength: h * s,
203
+ unitLength: u * s,
182
204
  skipPositions: this.skippedPositions
183
205
  });
184
- this.mesh.geometry = a, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = p, this.five.needsRender = !0;
185
- }
186
- setSkippedPanoGroup(e) {
187
- if (this.disposed)
188
- return this.logError("disposed");
189
- if (!this.five.work)
190
- return this.logError("setSkippedPanoGroup: work is not ready");
191
- const i = e ? e.map((s) => this.five.work.observers[s]).map((s) => s.standingPosition.clone()) : null;
192
- this.skippedPositions = i;
206
+ this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = v, this.five.needsRender = !0;
193
207
  }
194
208
  setMartial(e) {
195
209
  var i;
196
210
  if (this.disposed)
197
211
  return this.logError("disposed");
198
- e != null && e.color && this.setColor(e.color), e != null && e.opacity && this.setOpacity(e.opacity), (i = e == null ? void 0 : e.texture) != null && i.url && this.setTextureUrl(e.texture.url), e != null && e.background_color && this.setBackgroundColor(e.background_color), e != null && e.background_opacity && this.setBackgroundOpacity(e.background_opacity);
212
+ (e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((i = e == null ? void 0 : e.texture) == null ? void 0 : i.url) !== void 0 && this.setTextureUrl(e.texture.url), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity);
199
213
  }
200
214
  setColor(e) {
201
215
  if (this.disposed)
202
216
  return this.logError("disposed");
203
- this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniforms.mapColor.value = new u.Color().setRGB(e[0], e[1], e[2]), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
217
+ this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniforms.mapColor.value = new a.Color().setRGB(e[0], e[1], e[2]), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
204
218
  }
205
219
  setBackgroundColor(e) {
206
220
  if (this.disposed)
207
221
  return this.logError("disposed");
208
- this.mesh.material.uniforms.backgroundColor.value = new u.Color().setRGB(e[0], e[1], e[2]), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
222
+ this.mesh.material.uniforms.backgroundColor.value = new a.Color().setRGB(e[0], e[1], e[2]), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
209
223
  }
210
224
  setOpacity(e) {
211
225
  if (this.disposed)
@@ -225,12 +239,21 @@ class x {
225
239
  setTextureUrl(e) {
226
240
  if (this.disposed)
227
241
  return this.logError("disposed");
228
- this.textureUrl = e, P(e).then((i) => {
229
- this.disposed || this.textureUrl === e && (i.wrapT = u.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
242
+ this.textureUrl = e, w(e).then((i) => {
243
+ this.disposed || this.textureUrl === e && (i.wrapT = a.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
230
244
  });
231
245
  }
246
+ setStartTag(e) {
247
+ this.setTag("start", e);
248
+ }
249
+ setEndTag(e) {
250
+ this.setTag("end", e);
251
+ }
252
+ setTag(e, i) {
253
+ (e === "start" ? this.startTagPlugin : this.endTagPlugin).load({ tagList: [i] });
254
+ }
232
255
  updateVisible() {
233
- const e = (() => !this.plugin.state.enabled || !this.plugin.state.visible ? !1 : this.customVisible !== null ? this.customVisible : this.modeVisible && this.textureHasLoaded)();
256
+ const e = (() => !this.plugin.state.enabled || !this.plugin.state.visible ? !1 : this.customVisible !== null ? this.customVisible : this.inWalkAnimation ? !0 : this.modeVisible && this.textureHasLoaded && this.defaultVisible)();
234
257
  this.visible !== e && (this.visible = e, e ? this.doShow() : this.doHide());
235
258
  }
236
259
  doShow() {
@@ -240,15 +263,15 @@ class x {
240
263
  this.five.scene.remove(this.mesh), this.five.needsRender = !0;
241
264
  }
242
265
  getPathFromPanoGroup(e, i, s) {
243
- const h = e.map((a) => i.observers[a]).map((a) => a.standingPosition.toArray());
244
- return [f({ type: "CatmullRomCurve3", points: h }, s)];
266
+ const u = e.map((n) => i.observers[n]).map((n) => n.standingPosition.toArray());
267
+ return [f({ type: "CatmullRomCurve3", points: u }, s)];
245
268
  }
246
269
  }
247
- const H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
270
+ const I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
248
271
  __proto__: null,
249
- GuideLineModeItem: x
272
+ GuideLineModeItem: L
250
273
  }, Symbol.toStringTag, { value: "Module" }));
251
274
  export {
252
- x as GuideLineModeItem,
253
- H as GuideLineModeItem$1
275
+ L as GuideLineModeItem,
276
+ I as GuideLineModeItem$1
254
277
  };
@@ -2,61 +2,93 @@ import type GuideLinePlugin from './Controller';
2
2
  import type { Five } from '@realsee/five';
3
3
  import type * as PluginType from './typing';
4
4
  import * as THREE from 'three';
5
+ import { GuideLineItem } from './GuideLineItem';
6
+ import { PanoTagPluginController, Tag } from '../PanoTagPlugin';
5
7
  /** @link https://threejs.org/docs/index.html#api/en/extras/curves/CatmullRomCurve3 */
6
8
  declare type CatmullRomCurve3RestParams = Omit<PluginType.CatmullRomCurve3, 'type' | 'points'>;
7
9
  /** 在不同模态下的 GuideLine */
8
10
  declare class GuideLineModeItem {
11
+ get panoGroup(): number[];
12
+ startTagPlugin: PanoTagPluginController;
13
+ endTagPlugin: PanoTagPluginController;
9
14
  readonly mesh: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
10
15
  private five;
11
16
  private mode;
12
17
  private path;
18
+ private _panoGroup;
13
19
  private skippedPositions;
14
20
  private textureUrl;
15
21
  private scale;
16
22
  private width;
17
23
  private unitLength;
18
24
  private visible;
19
- /** 在当前模态下,是否展示 */
25
+ /** Five Mode 是否满足 */
20
26
  private modeVisible;
27
+ /** 默认是否展示 */
28
+ private defaultVisible;
29
+ /** 走点动画 */
30
+ private inWalkAnimation;
21
31
  private customVisible;
32
+ private parent;
22
33
  private plugin;
23
34
  private textureHasLoaded;
24
35
  private disposed;
25
36
  constructor(five: Five, options: {
26
37
  mode: PluginType.GuideLineModeItemMode;
27
38
  plugin: GuideLinePlugin;
39
+ parent: GuideLineItem;
28
40
  });
29
41
  /** 自定义展示 */
30
42
  setCustomVisible(visible: boolean | null): void;
31
- /** 设置模型态展示 */
32
- setModeVisible(visible: boolean): void;
43
+ /** 设置默认展示 */
44
+ setDefaultVisible(visible: boolean): void;
33
45
  dispose(): void;
34
46
  /** 基础宽、长 */
35
47
  setUnitSize(width: number, length: number): void;
36
48
  /** 设置缩放 */
37
49
  setScale(scale: number): void;
38
50
  /** 通过点位设置线条形状 */
39
- setGeometryByPanoGroup(panoGroup: number[], options?: CatmullRomCurve3RestParams & PluginType.GuideLineGeometryStyle): void;
51
+ setGeometryByPanoGroup(panoGroup: number[], options?: CatmullRomCurve3RestParams & PluginType.GuideLineGeometryStyle & {
52
+ skipPanoGroup?: boolean;
53
+ }): void;
40
54
  /** 通过路径设置线条形状 */
41
55
  setGeometryByPath(path: PluginType.PathItem[], options?: PluginType.GuideLineGeometryStyle): void;
42
- setSkippedPanoGroup(panoGroup: null | number[]): void;
43
56
  /** 设置线条材质 */
44
57
  setMartial(options?: PluginType.GuideLineMaterialStyle): void;
58
+ /** 设置贴图颜色 */
45
59
  setColor(color: null | number[]): void;
60
+ /** 设置背景颜色 */
46
61
  setBackgroundColor(color: number[]): void;
62
+ /** 设置整体透明度 */
47
63
  setOpacity(opacity: number): void;
64
+ /** 设置背景透明度 */
48
65
  setBackgroundOpacity(opacity: number): void;
66
+ /** 设置贴图透明度 */
49
67
  setMapOpacity(opacity: number): void;
68
+ /** 设置贴图 */
50
69
  setTextureUrl(url: string): void;
70
+ setStartTag(tag: Tag): void;
71
+ setEndTag(tag: Tag): void;
72
+ private setTag;
73
+ /** 当设置 GuideLinePLugin 展示 */
51
74
  private onPluginShow;
75
+ /** 当设置 GuideLinePLugin 隐藏 */
52
76
  private onPluginHide;
77
+ /** 当设置 GuideLinePLugin 开启 */
53
78
  private onPluginEnable;
79
+ /** 当设置 GuideLinePLugin 关闭 */
54
80
  private onPluginDisable;
81
+ /** 开始走点动画 */
82
+ private onWalkAnimationStart;
83
+ /** 结束走点动画 */
84
+ private onWalkAnimationEnd;
55
85
  /** 模型状态变更 */
56
86
  private onFiveModeChange;
87
+ /** 更新可见性 */
57
88
  private updateVisible;
58
89
  private doShow;
59
90
  private doHide;
91
+ /** 通过 panoIndex 数组计算路径 */
60
92
  private getPathFromPanoGroup;
61
93
  private logWarning;
62
94
  private logError;