@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,6 +1,8 @@
1
1
  import type { FivePlugin } from '@realsee/five';
2
2
  import CruisePluginController from './Controller';
3
+ import * as CruisePluginTypes from './typing';
3
4
  export { CruisePluginController };
4
5
  export declare const CruisePlugin: FivePlugin<void, InstanceType<typeof CruisePluginController>>;
5
6
  export type { CruisePluginExportType } from './typing';
6
7
  export default CruisePlugin;
8
+ export { CruisePluginTypes };
@@ -34,47 +34,39 @@ export interface PluginData {
34
34
  unitHeight?: number;
35
35
  };
36
36
  }
37
+ export interface MoveAction {
38
+ /** five走点动画 */
39
+ moveEffect?: MoveEffect;
40
+ /** 到第一个点的走点动画 / 续播到暂停处的走点动画 */
41
+ moveToFirstPanoEffect?: MoveEffect;
42
+ /** 到第一个点的走点时长 / 续播到暂停处的走点时长 */
43
+ moveToFirstPanoDuration?: number;
44
+ /** 漫游方式:justMove 为移动到指定点位,且朝向为下一个点的朝向;moveAndRotate 为先移动到指定点位且朝向不变,然后旋转到下一个点的朝向 */
45
+ moveType?: 'justMove' | 'moveAndRotate';
46
+ /** 停留时长 */
47
+ stay?: number;
48
+ /** 传递给 GuildPlugin 的参数 */
49
+ guildPluginOptions?: GuideLinePluginData['config'];
50
+ }
51
+ export interface MoveWithPanoIndexAction extends MoveAction {
52
+ /** 点位列表 */
53
+ panoIndexList: number[];
54
+ /** for ts check, no care */
55
+ keyframes?: undefined;
56
+ }
57
+ export interface MoveWithKeyframesAction extends MoveAction {
58
+ keyframes: {
59
+ uuid?: string;
60
+ id?: string;
61
+ start?: number;
62
+ end?: number;
63
+ data: CruiseData;
64
+ }[];
65
+ /** for ts check, no care */
66
+ panoIndexList?: undefined;
67
+ }
37
68
  export interface PluginServerData extends BasePluginWithData.ServerData {
38
- data: {
39
- keyframes: {
40
- uuid?: string;
41
- id?: string;
42
- start?: number;
43
- end?: number;
44
- data: CruiseData;
45
- }[];
46
- /** 传递给 GuildPlugin 的参数 */
47
- guildPluginOptions?: GuideLinePluginData['config'];
48
- /** for ts check, no care */
49
- panoIndexList?: undefined;
50
- /** for ts check, no care */
51
- moveEffect?: undefined;
52
- /** for ts check, no care */
53
- moveType?: undefined;
54
- /** for ts check, no care */
55
- moveToFirstPanoEffect?: undefined;
56
- /** for ts check, no care */
57
- moveToFirstPanoDuration?: undefined;
58
- /** for ts check, no care */
59
- stay?: undefined;
60
- } | {
61
- /** 点位列表 */
62
- panoIndexList: number[];
63
- /** five走点动画 */
64
- moveEffect?: MoveEffect;
65
- /** 到第一个点的走点动画 / 续播到暂停处的走点动画 */
66
- moveToFirstPanoEffect?: MoveEffect;
67
- /** 到第一个点的走点时长 / 续播到暂停处的走点时长 */
68
- moveToFirstPanoDuration?: number;
69
- /** 漫游方式:justMove 为移动到指定点位,且朝向为下一个点的朝向;moveAndRotate 为先移动到指定点位且朝向不变,然后旋转到下一个点的朝向 */
70
- moveType?: 'justMove' | 'moveAndRotate';
71
- /** 停留时长 */
72
- stay?: number;
73
- /** 传递给 GuildPlugin 的参数 */
74
- guildPluginOptions?: GuideLinePluginData['config'];
75
- /** for ts check, no care */
76
- keyframes?: undefined;
77
- };
69
+ data: MoveWithKeyframesAction | MoveWithPanoIndexAction;
78
70
  }
79
71
  export interface PluginState extends BasePluginWithData.State {
80
72
  /** 是否可见 */
@@ -4,10 +4,12 @@ import type { EventMap, PluginData, PluginServerData, PluginState } from './typi
4
4
  import type * as PluginType from './typing';
5
5
  import type { Config } from '../base/BasePlugin';
6
6
  import { GuideLineItem } from './GuideLineItem';
7
+ import CruisePluginController from '../CruisePlugin/Controller';
7
8
  export declare const pluginFlag: (name: string) => string;
8
9
  export default class Controller extends BasePluginWithData.Controller<PluginState, EventMap, PluginServerData, PluginData> {
9
10
  readonly version = "v1.1.0";
10
11
  readonly name = "GuideLinePlugin";
12
+ readonly cruisePlugin: CruisePluginController;
11
13
  state: {
12
14
  visible: boolean;
13
15
  enabled: boolean;
@@ -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 };
@@ -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;
@@ -1,6 +1,7 @@
1
1
  import type GuideLinePlugin from '.';
2
2
  import type { RequireAtLeastOne } from 'type-fest';
3
3
  import type * as BasePluginWithData from '../base/BasePluginWithData';
4
+ import { Tag } from '../PanoTagPlugin';
4
5
  export interface RouteConfig {
5
6
  arrowTextureUrl?: string;
6
7
  skipPanoIndexMesh?: boolean;
@@ -40,6 +41,14 @@ export interface EventMap extends BasePluginWithData.EventMap<PluginState, Plugi
40
41
  userAction: boolean;
41
42
  }) => void;
42
43
  }
44
+ export declare type GuideLineItemEventMap = {
45
+ walkStart: (options: {
46
+ userAction: boolean;
47
+ }) => void;
48
+ walkEnded: (options: {
49
+ userAction: boolean;
50
+ }) => void;
51
+ };
43
52
  export declare type GuideLinePluginExportType = ReturnType<typeof GuideLinePlugin>;
44
53
  export interface LineGeometriesConfig {
45
54
  /** 是否越过点位圆环。可以开启此选项来使越过点位,使其不会重叠显示 */
@@ -66,10 +75,22 @@ export declare type GuideLineItem = RequireAtLeastOne<{
66
75
  /** 路径:由多个曲线组合而成的路径,路径为空时,会使用 pano_group 自动创建 */
67
76
  path?: PathItem[];
68
77
  /** 全景态使用的数据 */
69
- panorama_style?: GuideLineStyle;
78
+ panorama_style?: PanoramaGuideLineStyle;
70
79
  /** 模型态使用的数据 */
71
- model_style?: GuideLineStyle;
80
+ model_style?: ModelGuideLineStyle;
72
81
  }, 'id' | 'render_id'>;
82
+ /** 全景路径样式 */
83
+ export interface PanoramaGuideLineStyle extends GuideLineStyle {
84
+ start_tag?: Tag;
85
+ end_tag?: Tag;
86
+ }
87
+ /** 模型路径样式 */
88
+ export interface ModelGuideLineStyle extends GuideLineStyle {
89
+ start_tag?: ModelGuideLineTag;
90
+ end_tag?: ModelGuideLineTag;
91
+ }
92
+ /** 不同模态下的路线数据 */
93
+ export declare type GuideLineStyle = GuideLineGeometryStyle & GuideLineMaterialStyle;
73
94
  /** 影响形状的样式 */
74
95
  export interface GuideLineGeometryStyle {
75
96
  /** scale 之前的路线宽度,默认值是 0.5 */
@@ -97,10 +118,18 @@ export interface GuideLineMaterialStyle {
97
118
  url: string;
98
119
  };
99
120
  }
100
- /** 不同模态下的路线数据 */
101
- export declare type GuideLineStyle = GuideLineGeometryStyle & GuideLineMaterialStyle;
121
+ /** 模型路线引导标签 */
122
+ export interface ModelGuideLineTag extends Tag<'Custom', '2DPoint'> {
123
+ position: number[];
124
+ data: {
125
+ text: string;
126
+ icon_url: string;
127
+ text_background_url: string;
128
+ };
129
+ }
102
130
  /** 目前只支持 CatmullRomCurve3 */
103
131
  export declare type PathItem = CatmullRomCurve3;
132
+ /** @link https://threejs.org/docs/index.html?q=cu#api/zh/extras/curves/CatmullRomCurve3 */
104
133
  export interface CatmullRomCurve3 {
105
134
  type: 'CatmullRomCurve3';
106
135
  points: number[][];
@@ -31,7 +31,7 @@ export declare abstract class TagUtil extends TagCache {
31
31
  * @description: 获取merge后的配置
32
32
  * TODO: 缓存
33
33
  */
34
- getTagConfig(tag: Tag<any, any>): TagConfig<"Image" | "Link" | "Audio" | "Text" | "ImageText" | "Video" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown", StickType>;
34
+ getTagConfig(tag: Tag<any, any>): TagConfig<"Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown", StickType>;
35
35
  protected loadVideoFirstFrame(): void;
36
36
  protected updateTagConfig(params?: {
37
37
  force?: boolean;
@@ -50,12 +50,12 @@ export declare abstract class TagUtil extends TagCache {
50
50
  protected preventWhenMouseDown: () => false | void;
51
51
  protected addObjectClickHandler(tag: TagElement, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
52
52
  protected getTagNormal(tag: TagElement<any, 'Plane'> | TagElement<any, 'Model'> | TagElement<any, '3DPoint'>): THREE.Vector3;
53
- protected get filterPointTag(): PointTagElement<"Image" | "Link" | "Audio" | "Text" | "ImageText" | "Video" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
54
- protected get filter2DPointTag(): Point2DElement<"Image" | "Link" | "Audio" | "Text" | "ImageText" | "Video" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
55
- protected get filter3DPointTag(): Point3DElement<"Image" | "Link" | "Audio" | "Text" | "ImageText" | "Video" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
53
+ protected get filterPointTag(): PointTagElement<"Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
54
+ protected get filter2DPointTag(): Point2DElement<"Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
55
+ protected get filter3DPointTag(): Point3DElement<"Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
56
56
  protected get filterImagePlane(): PlaneTagElement<"MediaPlane">[];
57
57
  protected get filterMediaModel(): ModelElement<"MediaModel">[];
58
- protected get filterModelTag(): ModelElement<"Image" | "Link" | "Audio" | "Text" | "ImageText" | "Video" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
58
+ protected get filterModelTag(): ModelElement<"Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
59
59
  protected get filterCSS3DTag(): (TagElement<any, "Plane"> | TagElement<any, "Model"> | TagElement<any, "3DPoint">)[];
60
60
  /**
61
61
  * @description 检查是否已经销毁