@realsee/dnalogel 2.25.0 → 2.26.1

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 (390) hide show
  1. package/dist/CruisePlugin/typing.d.ts +1 -1
  2. package/dist/GuideLinePlugin/typing.d.ts +1 -1
  3. package/dist/PanoCompassPlugin/typings.d.ts +1 -1
  4. package/dist/PanoMeasurePlugin/Model/point.d.ts +0 -4
  5. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +1 -1
  6. package/dist/PipelinePlugin/Controller.d.ts +108 -0
  7. package/dist/PipelinePlugin/index.d.ts +6 -0
  8. package/dist/PipelinePlugin/typing/PluginData.d.ts +20 -0
  9. package/dist/PipelinePlugin/typing/ServerData.d.ts +28 -0
  10. package/dist/PipelinePlugin/typing/index.d.ts +79 -0
  11. package/dist/PipelinePlugin/utils/Objects/FlowPipe.d.ts +34 -0
  12. package/dist/PipelinePlugin/utils/Objects/Pipe.d.ts +49 -0
  13. package/dist/PipelinePlugin/utils/formatData.d.ts +12 -0
  14. package/dist/base/BasePluginWithData.d.ts +3 -15
  15. package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +1 -1
  16. package/dist/floorplan/typings/index.d.ts +1 -1
  17. package/dist/index.cjs.js +100 -65
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.js +9180 -8600
  20. package/dist/index.umd.js +89 -54
  21. package/dist/shared-utils/three/Extras/Core/Interpolations.d.ts +11 -0
  22. package/dist/shared-utils/three/Extras/Curves/BezierCurve3.d.ts +13 -0
  23. package/docs/assets/search.js +1 -1
  24. package/docs/classes/CSS3DRender.html +33 -30
  25. package/docs/classes/CruisePluginController.html +28 -25
  26. package/docs/classes/GuideLineItem.GuideLineItem.html +22 -19
  27. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +37 -34
  28. package/docs/classes/Magnifier.html +22 -19
  29. package/docs/classes/ModelRoomLabelController.html +13 -10
  30. package/docs/classes/Object3DHelperController.html +27 -24
  31. package/docs/classes/PaintBrush.html +17 -14
  32. package/docs/classes/PanoMeasurePluginLine.html +29 -26
  33. package/docs/classes/PanoMeasurePluginModel.html +29 -26
  34. package/docs/classes/PanoMeasurePluginPoint.html +14 -48
  35. package/docs/classes/PanoMeasurePluginPolyline.html +43 -32
  36. package/docs/classes/PanoTagPluginController.html +49 -46
  37. package/docs/classes/Util.BetterTween.html +11 -8
  38. package/docs/classes/Util.Interval.html +14 -11
  39. package/docs/classes/Util.Magnifier.html +22 -19
  40. package/docs/classes/Util.PointDomHelper.html +13 -10
  41. package/docs/classes/Util.PointHelper.html +13 -10
  42. package/docs/classes/Util.PointSelectorHelper.html +18 -15
  43. package/docs/classes/Util.Rectangle.html +15 -12
  44. package/docs/enums/CameraMovementEffect.html +9 -6
  45. package/docs/enums/ContentType.html +22 -19
  46. package/docs/enums/DIRECTION.html +11 -8
  47. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -8
  48. package/docs/enums/DimensionType.html +9 -6
  49. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -7
  50. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -8
  51. package/docs/enums/PaintBrushTypeEnum.html +10 -7
  52. package/docs/enums/PointType.html +9 -6
  53. package/docs/enums/Rotation.html +10 -7
  54. package/docs/functions/CSS3DRenderPlugin.html +6 -3
  55. package/docs/functions/CameraMovementPlugin.html +6 -3
  56. package/docs/functions/CruisePlugin.html +6 -3
  57. package/docs/functions/GuideLinePlugin.html +7 -4
  58. package/docs/functions/ItemLabelPlugin.html +6 -3
  59. package/docs/functions/MapviewFloorplanPlugin.html +6 -3
  60. package/docs/functions/ModelChassisCompassPlugin.html +6 -3
  61. package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -3
  62. package/docs/functions/ModelFloorplanPlugin.html +6 -3
  63. package/docs/functions/ModelItemLabelPlugin.html +6 -3
  64. package/docs/functions/ModelRoomLabelPlugin.html +6 -3
  65. package/docs/functions/ModelTVVideoPlugin.html +6 -3
  66. package/docs/functions/ModelViewPlugin.html +6 -3
  67. package/docs/functions/Object3DHelperPlugin.html +6 -3
  68. package/docs/functions/PanoCompassPlugin.html +6 -3
  69. package/docs/functions/PanoCursorRaycasterPlugin.html +6 -3
  70. package/docs/functions/PanoDoorLabelPlugin.html +6 -3
  71. package/docs/functions/PanoFloorplanRadarPlugin.html +6 -3
  72. package/docs/functions/PanoMeasurePlugin.html +6 -3
  73. package/docs/functions/PanoRulerPlugin.html +6 -3
  74. package/docs/functions/PanoRulerProPlugin.html +6 -3
  75. package/docs/functions/PanoSpatialTagPlugin.html +6 -3
  76. package/docs/functions/PanoTagPlugin.html +6 -3
  77. package/docs/functions/PanoVideoPlugin.html +6 -3
  78. package/docs/functions/PipelinePlugin.html +280 -0
  79. package/docs/functions/TopviewFloorplanPlugin.html +6 -3
  80. package/docs/functions/Util.absoluteUrl.html +7 -4
  81. package/docs/functions/Util.getCoordsFromClient.html +7 -4
  82. package/docs/functions/Util.getCoordsFromElement.html +7 -4
  83. package/docs/functions/Util.getFrameTime.html +7 -4
  84. package/docs/functions/Util.getIntersectFromRelativePosition.html +7 -4
  85. package/docs/functions/Util.getRaycasterFromFivePointer.html +7 -4
  86. package/docs/functions/Util.isAbsoluteURL.html +7 -4
  87. package/docs/functions/Util.isModelLike.html +7 -4
  88. package/docs/functions/Util.isNil.html +7 -4
  89. package/docs/functions/Util.isPanoramaLike.html +7 -4
  90. package/docs/functions/Util.nextFrame.html +7 -4
  91. package/docs/functions/Util.notNil.html +7 -4
  92. package/docs/functions/Util.requestAnimationFrameInterval.html +7 -4
  93. package/docs/functions/Util.tweenProgress.html +7 -4
  94. package/docs/functions/Util.uuid.html +7 -4
  95. package/docs/functions/pluginFlag.html +7 -4
  96. package/docs/index.html +7 -4
  97. package/docs/interfaces/AddTagConfig.html +8 -5
  98. package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -10
  99. package/docs/interfaces/CSS3DRenderPluginState.html +10 -7
  100. package/docs/interfaces/CameraMovementPluginExportType.html +9 -6
  101. package/docs/interfaces/CruisePluginTypes.Config.html +10 -7
  102. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +14 -11
  103. package/docs/interfaces/CruisePluginTypes.EventMap.html +22 -19
  104. package/docs/interfaces/CruisePluginTypes.MoveAction.html +14 -11
  105. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +16 -13
  106. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +16 -13
  107. package/docs/interfaces/CruisePluginTypes.PluginData.html +11 -8
  108. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +10 -21
  109. package/docs/interfaces/CruisePluginTypes.PluginState.html +13 -10
  110. package/docs/interfaces/EventMap.html +17 -14
  111. package/docs/interfaces/FloorplanBounding.html +10 -7
  112. package/docs/interfaces/FloorplanData.html +12 -9
  113. package/docs/interfaces/FloorplanEntrance.html +13 -10
  114. package/docs/interfaces/FloorplanExtraObject.html +12 -9
  115. package/docs/interfaces/FloorplanExtraObject3D.html +10 -7
  116. package/docs/interfaces/FloorplanFloorData.html +11 -8
  117. package/docs/interfaces/FloorplanImagePosition.html +9 -6
  118. package/docs/interfaces/FloorplanObserver.html +11 -8
  119. package/docs/interfaces/FloorplanOutlineItem.html +11 -8
  120. package/docs/interfaces/FloorplanPosition.html +9 -6
  121. package/docs/interfaces/FloorplanRoomItem.html +15 -12
  122. package/docs/interfaces/FloorplanRoomLabelItem.html +9 -6
  123. package/docs/interfaces/FloorplanServerBounding.html +10 -7
  124. package/docs/interfaces/FloorplanServerComputedData.html +12 -9
  125. package/docs/interfaces/FloorplanServerData.html +9 -6
  126. package/docs/interfaces/FloorplanServerDoorItem.html +12 -9
  127. package/docs/interfaces/FloorplanServerDoorPosition.html +10 -7
  128. package/docs/interfaces/FloorplanServerEntrance.html +13 -10
  129. package/docs/interfaces/FloorplanServerFloorData.html +11 -8
  130. package/docs/interfaces/FloorplanServerImagePosition.html +9 -6
  131. package/docs/interfaces/FloorplanServerObserver.html +11 -8
  132. package/docs/interfaces/FloorplanServerOutlineItem.html +11 -8
  133. package/docs/interfaces/FloorplanServerPosition.html +9 -6
  134. package/docs/interfaces/FloorplanServerRoomItem.html +16 -13
  135. package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -6
  136. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -7
  137. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +12 -9
  138. package/docs/interfaces/GuideLinePluginType.EventMap.html +15 -12
  139. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +10 -7
  140. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +8 -5
  141. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +15 -12
  142. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +10 -7
  143. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +20 -17
  144. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -6
  145. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +20 -17
  146. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +7 -4
  147. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +10 -21
  148. package/docs/interfaces/GuideLinePluginType.PluginState.html +10 -7
  149. package/docs/interfaces/GuideLinePluginType.Route.html +13 -10
  150. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +11 -8
  151. package/docs/interfaces/HelperOffset.html +10 -7
  152. package/docs/interfaces/ImagePlaneGroup.html +8 -5
  153. package/docs/interfaces/ItemLabelPluginData.html +8 -5
  154. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -10
  155. package/docs/interfaces/ItemLabelPluginParametersType.html +11 -8
  156. package/docs/interfaces/MinMax.html +9 -6
  157. package/docs/interfaces/ModelChassisCompassPluginData.html +9 -6
  158. package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -7
  159. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -6
  160. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -7
  161. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -7
  162. package/docs/interfaces/ModelItemLabelPluginData.html +8 -5
  163. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -10
  164. package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -6
  165. package/docs/interfaces/ModelRoomLabelPluginData.html +8 -5
  166. package/docs/interfaces/ModelTVVideoPluginData.html +11 -8
  167. package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -7
  168. package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -5
  169. package/docs/interfaces/ModelViewPluginExportType.html +13 -10
  170. package/docs/interfaces/Object3DHelperState.html +10 -7
  171. package/docs/interfaces/ObjectHelperControllers.html +11 -8
  172. package/docs/interfaces/PaintBrushAction.html +14 -11
  173. package/docs/interfaces/PaintBrushConfigs.html +14 -11
  174. package/docs/interfaces/PaintBrushState.html +12 -9
  175. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -9
  176. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -4
  177. package/docs/interfaces/PanoMeasureParameterType.html +18 -15
  178. package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -7
  179. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -6
  180. package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -6
  181. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -7
  182. package/docs/interfaces/PanoRulerPluginExportType.html +12 -9
  183. package/docs/interfaces/PanoRulerPluginOptions.html +9 -6
  184. package/docs/interfaces/PanoRulerPluginParameterType.html +10 -7
  185. package/docs/interfaces/PanoRulerProPluginExportType.html +11 -8
  186. package/docs/interfaces/PanoRulerProPluginOptions.html +9 -6
  187. package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -6
  188. package/docs/interfaces/PanoRulerProPluginState.html +10 -7
  189. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -4
  190. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -4
  191. package/docs/interfaces/PanoSpatialTagPluginData.html +13 -10
  192. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -9
  193. package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -12
  194. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -9
  195. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -12
  196. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -10
  197. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -9
  198. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -5
  199. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -7
  200. package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -5
  201. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -8
  202. package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -5
  203. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -7
  204. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -9
  205. package/docs/interfaces/Point.html +10 -7
  206. package/docs/interfaces/Room.html +11 -8
  207. package/docs/interfaces/RoomInfo.html +9 -6
  208. package/docs/interfaces/RoomLabel.html +16 -13
  209. package/docs/interfaces/RoomRules.html +7 -4
  210. package/docs/interfaces/Rooms.html +7 -4
  211. package/docs/interfaces/Scissor.html +11 -8
  212. package/docs/interfaces/State.html +10 -7
  213. package/docs/interfaces/TagCacheInterface.html +14 -11
  214. package/docs/interfaces/TagConfig.html +15 -12
  215. package/docs/interfaces/TagGLTFObjectGroup.html +8 -5
  216. package/docs/interfaces/TagIconUrl.html +14 -11
  217. package/docs/interfaces/TagObjectGroup.html +8 -5
  218. package/docs/interfaces/TagStyle.html +8 -5
  219. package/docs/interfaces/Tags.html +11 -8
  220. package/docs/interfaces/TemporaryState.html +8 -5
  221. package/docs/interfaces/Util.MagnifierParameter.html +13 -10
  222. package/docs/interfaces/Util.MouseGroupParameter.html +10 -7
  223. package/docs/interfaces/Util.PointIntersection.html +10 -7
  224. package/docs/modules/CruisePluginTypes.html +7 -4
  225. package/docs/modules/GuideLineItem.html +7 -4
  226. package/docs/modules/GuideLineModeItem.html +7 -4
  227. package/docs/modules/GuideLinePluginType.html +7 -4
  228. package/docs/modules/PanoVideoPluginType.html +7 -4
  229. package/docs/modules/Util.html +7 -4
  230. package/docs/modules.html +10 -4
  231. package/docs/types/ArrayPosition.html +7 -4
  232. package/docs/types/AudioAppearance.html +7 -4
  233. package/docs/types/AudioTagTypeConfigKey.html +7 -4
  234. package/docs/types/CSS3DRenderExportType.html +7 -4
  235. package/docs/types/CSS3DRenderPluginExportType.html +7 -4
  236. package/docs/types/CSS3DRenderPluginParameterType.html +7 -4
  237. package/docs/types/ClassFunctionParameters.html +7 -4
  238. package/docs/types/Color.html +7 -4
  239. package/docs/types/ContentTypeConfigKey.html +7 -4
  240. package/docs/types/ContentTypeConfigKeySplit.html +7 -4
  241. package/docs/types/ContentTypeMap.html +7 -4
  242. package/docs/types/Create3DDomContainerReturnType.html +7 -4
  243. package/docs/types/Create3DElementReturnType.html +7 -4
  244. package/docs/types/CruisePluginExportType.html +7 -4
  245. package/docs/types/CruisePluginTypes.CruiseData.html +7 -4
  246. package/docs/types/CruisePluginTypes.MoveEffect.html +7 -4
  247. package/docs/types/DeprecatedMediaPlaneProperty.html +7 -4
  248. package/docs/types/DeprecatedTagProperty.html +7 -4
  249. package/docs/types/Direction-1.html +7 -4
  250. package/docs/types/Direction4.html +7 -4
  251. package/docs/types/ElementRenderer.html +7 -4
  252. package/docs/types/FloorplanRuleLabels.html +7 -4
  253. package/docs/types/FloorplanServerRuleLabels.html +7 -4
  254. package/docs/types/GuideLinePluginExportType.html +7 -4
  255. package/docs/types/GuideLinePluginType.GuideLineItem.html +7 -4
  256. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +7 -4
  257. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +7 -4
  258. package/docs/types/GuideLinePluginType.GuideLineStyle.html +7 -4
  259. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +7 -4
  260. package/docs/types/GuideLinePluginType.PathItem.html +7 -4
  261. package/docs/types/GuideLinePluginType.PluginData.html +7 -4
  262. package/docs/types/HelperEventMap.html +7 -4
  263. package/docs/types/LoadTagConfig.html +7 -4
  264. package/docs/types/MapviewFloorplanPluginParameterType.html +7 -4
  265. package/docs/types/MapviewFloorplanPluginReturnType.html +7 -4
  266. package/docs/types/MediaData.html +7 -4
  267. package/docs/types/MediaStore.html +7 -4
  268. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -4
  269. package/docs/types/ModelFloorplanPluginParameterType.html +7 -4
  270. package/docs/types/ModelFloorplanPluginReturnType.html +7 -4
  271. package/docs/types/ModelRoomLabelPluginParameters.html +7 -4
  272. package/docs/types/ModelRoomLabelPluginReturnType.html +7 -4
  273. package/docs/types/MoveArgs.html +7 -4
  274. package/docs/types/MoveOpts.html +7 -4
  275. package/docs/types/Object3DHelperEventMap.html +7 -4
  276. package/docs/types/ObjectFit.html +7 -4
  277. package/docs/types/PaintBrushEventMap.html +7 -4
  278. package/docs/types/PanoCompassPluginData.html +7 -4
  279. package/docs/types/PanoCompassPluginExportType.html +7 -4
  280. package/docs/types/PanoCompassPluginParameterType.html +7 -4
  281. package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -4
  282. package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -4
  283. package/docs/types/PanoIndex.html +7 -4
  284. package/docs/types/PanoMeasurePluginEvent.html +7 -4
  285. package/docs/types/PanoMeasureReturnType.html +7 -4
  286. package/docs/types/PanoSpatialTagPluginId.html +7 -4
  287. package/docs/types/PanoTagPluginExportInterface.html +7 -4
  288. package/docs/types/PanoTagPluginParamsInterface.html +7 -4
  289. package/docs/types/PanoVideoPluginParameterType.html +7 -4
  290. package/docs/types/PanoVideoPluginReturnType.html +7 -4
  291. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +7 -4
  292. package/docs/types/PipelinePluginParameterType.html +271 -0
  293. package/docs/types/PipelinePluginReturnType.html +271 -0
  294. package/docs/types/PlaneTag.html +7 -4
  295. package/docs/types/Point2DTag.html +7 -4
  296. package/docs/types/Point3DTag.html +7 -4
  297. package/docs/types/PointTag.html +7 -4
  298. package/docs/types/PointTagInstance.html +7 -4
  299. package/docs/types/Position.html +7 -4
  300. package/docs/types/RotateArgs.html +7 -4
  301. package/docs/types/RotateOpts.html +7 -4
  302. package/docs/types/RuleLabelsKey.html +7 -4
  303. package/docs/types/RuleLabelsValue.html +7 -4
  304. package/docs/types/StickType.html +7 -4
  305. package/docs/types/Tag.html +7 -4
  306. package/docs/types/Tag2D.html +7 -4
  307. package/docs/types/Tag3D.html +7 -4
  308. package/docs/types/TagContentType.html +7 -4
  309. package/docs/types/TagDimensionType.html +7 -4
  310. package/docs/types/TagElement.html +7 -4
  311. package/docs/types/TagEvents.html +7 -4
  312. package/docs/types/TagGLTFObject.html +7 -4
  313. package/docs/types/TagHooks.html +7 -4
  314. package/docs/types/TagId.html +7 -4
  315. package/docs/types/TagInstance.html +7 -4
  316. package/docs/types/TagPointType.html +7 -4
  317. package/docs/types/TagRendererMap.html +7 -4
  318. package/docs/types/TopviewFloorplanPluginParameterType.html +7 -4
  319. package/docs/types/TopviewFloorplanPluginReturnType.html +7 -4
  320. package/docs/types/WorkCode.html +7 -4
  321. package/docs/variables/FLOOR_TYPE_MAP.html +7 -4
  322. package/docs/variables/PLUGIN.html +7 -4
  323. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -4
  324. package/docs/variables/ROOM_TYPE_MAP.html +7 -4
  325. package/docs/variables/itemLabelPluginServerParams.html +7 -4
  326. package/docs/variables/modelItemLabelPluginServerParams.html +7 -4
  327. package/docs/variables/modelRoomLabelPluginServerParams.html +7 -4
  328. package/libs/CruisePlugin/typing.d.ts +1 -1
  329. package/libs/GuideLinePlugin/typing.d.ts +1 -1
  330. package/libs/PanoCompassPlugin/typings.d.ts +1 -1
  331. package/libs/PanoMeasurePlugin/Components/Controller0.js +2 -4
  332. package/libs/PanoMeasurePlugin/Components/Controller1.js +52 -54
  333. package/libs/PanoMeasurePlugin/Controller/BaseController.js +2 -3
  334. package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -7
  335. package/libs/PanoMeasurePlugin/Controller/MixedController.js +14 -16
  336. package/libs/PanoMeasurePlugin/Controller/ViewController.js +2 -3
  337. package/libs/PanoMeasurePlugin/Controller/WatchController.js +41 -43
  338. package/libs/PanoMeasurePlugin/Controller/index.js +26 -30
  339. package/libs/PanoMeasurePlugin/Model/area.js +2 -3
  340. package/libs/PanoMeasurePlugin/Model/index.js +2 -3
  341. package/libs/PanoMeasurePlugin/Model/line.js +20 -20
  342. package/libs/PanoMeasurePlugin/Model/point.d.ts +0 -4
  343. package/libs/PanoMeasurePlugin/Model/point.js +12 -20
  344. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +1 -1
  345. package/libs/PanoMeasurePlugin/Model/polyline.js +59 -51
  346. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +22 -24
  347. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +2 -3
  348. package/libs/PanoMeasurePlugin/index.js +13 -15
  349. package/libs/PanoVideoPlugin/VideoMeshController.js +1 -2
  350. package/libs/PipelinePlugin/Controller.d.ts +108 -0
  351. package/libs/PipelinePlugin/Controller.js +344 -0
  352. package/libs/PipelinePlugin/index.d.ts +6 -0
  353. package/libs/PipelinePlugin/index.js +39 -0
  354. package/libs/PipelinePlugin/typing/PluginData/index.js +6 -0
  355. package/libs/PipelinePlugin/typing/PluginData.d.ts +20 -0
  356. package/libs/PipelinePlugin/typing/PluginData.js +1 -0
  357. package/libs/PipelinePlugin/typing/ServerData/index.js +6 -0
  358. package/libs/PipelinePlugin/typing/ServerData.d.ts +28 -0
  359. package/libs/PipelinePlugin/typing/ServerData.js +1 -0
  360. package/libs/PipelinePlugin/typing/index.d.ts +79 -0
  361. package/libs/PipelinePlugin/typing/index.js +6 -0
  362. package/libs/PipelinePlugin/utils/Objects/FlowPipe.d.ts +34 -0
  363. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +106 -0
  364. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.d.ts +11 -0
  365. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +52 -0
  366. package/libs/PipelinePlugin/utils/Objects/Pipe.d.ts +49 -0
  367. package/libs/PipelinePlugin/utils/Objects/Pipe.js +179 -0
  368. package/libs/PipelinePlugin/utils/formatData.d.ts +12 -0
  369. package/libs/PipelinePlugin/utils/formatData.js +46 -0
  370. package/libs/base/BasePlugin.js +1 -1
  371. package/libs/base/BasePluginWithData.d.ts +3 -15
  372. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +87 -88
  373. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +75 -76
  374. package/libs/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +1 -1
  375. package/libs/floorplan/typings/index.d.ts +1 -1
  376. package/libs/index.d.ts +1 -0
  377. package/libs/index.js +117 -110
  378. package/libs/shared-utils/logger.js +1 -1
  379. package/libs/shared-utils/three/Extras/Core/Interpolations.d.ts +11 -0
  380. package/libs/shared-utils/three/Extras/Core/Interpolations.js +28 -0
  381. package/libs/shared-utils/three/Extras/Core/Interpolations2.js +34 -0
  382. package/libs/shared-utils/three/Extras/Curves/BezierCurve3.d.ts +13 -0
  383. package/libs/shared-utils/three/Extras/Curves/BezierCurve3.js +30 -0
  384. package/package.json +1 -1
  385. package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +0 -2
  386. package/dist/shared-utils/removeArrayItem.d.ts +0 -7
  387. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +0 -2
  388. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +0 -13
  389. package/libs/shared-utils/removeArrayItem.d.ts +0 -7
  390. package/libs/shared-utils/removeArrayItem.js +0 -8
@@ -0,0 +1,344 @@
1
+ var j = Object.defineProperty;
2
+ var v = Object.getOwnPropertySymbols;
3
+ var P = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
4
+ var A = (p, n, e) => n in p ? j(p, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[n] = e, m = (p, n) => {
5
+ for (var e in n || (n = {}))
6
+ P.call(n, e) && A(p, e, n[e]);
7
+ if (v)
8
+ for (var e of v(n))
9
+ _.call(n, e) && A(p, e, n[e]);
10
+ return p;
11
+ };
12
+ var u = (p, n, e) => (A(p, typeof n != "symbol" ? n + "" : n, e), e);
13
+ var d = (p, n, e) => new Promise((t, i) => {
14
+ var s = (a) => {
15
+ try {
16
+ h(e.next(a));
17
+ } catch (c) {
18
+ i(c);
19
+ }
20
+ }, r = (a) => {
21
+ try {
22
+ h(e.throw(a));
23
+ } catch (c) {
24
+ i(c);
25
+ }
26
+ }, h = (a) => a.done ? t(a.value) : Promise.resolve(a.value).then(s, r);
27
+ h((e = e.apply(p, n)).next());
28
+ });
29
+ import * as F from "three";
30
+ import { Controller as S } from "../base/BasePluginWithData.js";
31
+ import { equal as O } from "../shared-utils/equal.js";
32
+ import { notNil as T } from "../shared-utils/isNil.js";
33
+ import { loadTexture as x } from "../shared-utils/three/loadTexture.js";
34
+ import { format as y, getPipesFromLibrary as C } from "./utils/formatData.js";
35
+ import { ObjectFlowPipe as D } from "./utils/Objects/FlowPipe.js";
36
+ import "../base/BasePlugin.js";
37
+ import "../shared-utils/Subscribe.js";
38
+ import "hammerjs";
39
+ import "@realsee/five";
40
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
41
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
42
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
43
+ import "three/examples/jsm/renderers/CSS3DRenderer";
44
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
45
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
46
+ import "../CSS3DRenderPlugin/utils/even.js";
47
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
48
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
49
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
50
+ import "../shared-utils/three/centerPoint.js";
51
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
52
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
53
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
54
+ import "../shared-utils/absoluteUrl.js";
55
+ import "../shared-utils/isTruelyObject.js";
56
+ import "../shared-utils/animationFrame/index.js";
57
+ import "./utils/Objects/Pipe.js";
58
+ import "../shared-utils/animationFrame/BetterTween.js";
59
+ import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
60
+ import "../shared-utils/three/Extras/Core/Interpolations.js";
61
+ import "../shared-utils/three/Extras/Core/Interpolations2.js";
62
+ const g = { flowSpeed: 0.6, rotateSpeed: 0 };
63
+ class de extends S {
64
+ constructor(e) {
65
+ super(e);
66
+ // ==================== public properties ====================
67
+ u(this, "data");
68
+ /** 插件状态
69
+ * @property `visible` `<boolean>` 是否可见
70
+ * @property `enabled` `<boolean>` 是否启用
71
+ * @property `visiblePipeIDs` `<string[]>` 可见的管道 ID
72
+ * @property `speed` `<Speed>` 水流速度
73
+ * @property `speed.flowSpeed` `<number>` 横向流动速度,默认是 0.6 m/s
74
+ * @property `speed.rotateSpeed` `<number>` 纵向旋转速度:默认是 0 deg/s
75
+ */
76
+ u(this, "state");
77
+ /** 当前插件所有新增 THREE 相关副作用都在 group 下 */
78
+ u(this, "group");
79
+ /** 用于展示水流的水管 */
80
+ u(this, "pipeObjects", []);
81
+ // ==================== private properties ====================
82
+ /** 水管贴图缓存 */
83
+ u(this, "texturePromiseCache", /* @__PURE__ */ new Map());
84
+ /** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
85
+ u(this, "dispose", () => {
86
+ this.disable(), this.five.scene.remove(this.group), this.texturePromiseCache.forEach((e) => e.then((t) => t.dispose())), this.texturePromiseCache.clear();
87
+ });
88
+ u(this, "onWantsFiveTapGesture", (...e) => {
89
+ const [t] = e, i = t.intersectObjects(this.pipeObjects, !1);
90
+ if (i.length === 0 || !this.data)
91
+ return;
92
+ const h = i[0].object.customID, a = this.data.pipes.find(({ id: o }) => o === h), c = this.data.pipelines.find((o) => a && o.pipes.includes(a));
93
+ if (!(!a || !c))
94
+ return this.hooks.emit("tap", {
95
+ intersectObjects: i,
96
+ pipe: a,
97
+ pipeline: c,
98
+ wantsFiveTapGestureParams: e
99
+ }), !1;
100
+ });
101
+ this.state = {
102
+ target: null,
103
+ visible: !0,
104
+ enabled: !0,
105
+ isFlowing: !1,
106
+ speed: g
107
+ }, this.five = e, this.group = new F.Group(), this.group.name = "water-pipe-group", this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.five.on("wantsTapGesture", this.onWantsFiveTapGesture);
108
+ }
109
+ /** 加载管道数据,重复调用会使用新数据覆盖旧数据
110
+ * @param `data` `<Plugin.ServerData>` Open API 接口返回的数据。
111
+ * @param `initialState` `<Plugin.State> | <undefined>` 数据加载后,要应用的 state,默认是 undefined。
112
+ * @param `userAction` `<boolean> | <undefined>` 是否是用户操作,默认是 true。
113
+ * @param `options` `<Plugin.LoadOptions> | <undefined>` 数据加载配置项。
114
+ * @param `options.getPipeRadius` `<(pipe: ServerData.LinesDataset) => number> | <undefined>` 允许用户通过函数自定义管道半径。
115
+ * @param `options.getPipeUrl` `<(water: Water) => string> | <undefined>` 允许用户通过函数自定义管道贴图,
116
+ * 函数返回的 string 就是当前 water 对应的贴图地址。
117
+ */
118
+ // eslint-disable-next-line max-params
119
+ load(e, t, i, s) {
120
+ return d(this, null, function* () {
121
+ const r = this.data;
122
+ this.data = yield this.formatData(e, s), this.removeAllPipes(), this.hooks.emit("dataChange", this.data, r), this.pipeObjects = yield Promise.all(
123
+ this.data.pipes.filter((h) => !!(h != null && h.texture)).map((b) => d(this, [b], function* ({ id: h, texture: a, path: c, radius: o }) {
124
+ const l = yield this.loadPipeTexture(a), f = { id: h, path: c, textureURL: a, texture: l, geometryConfig: { radius: o } };
125
+ return new D(f);
126
+ }))
127
+ ), this.data.pipelines.forEach((h) => {
128
+ h.pipes.reduce((a, c) => {
129
+ const o = this.findPipeObjectWithID(c.id);
130
+ return o == null || o.setInitialDisplacement(a), a + ((o == null ? void 0 : o.pathLength) || 0);
131
+ }, 0);
132
+ }), this.hooks.emit("dataLoaded", this.data), this.state.visible === !1 && this.pipeObjects.forEach((h) => h.setOpacity(0)), this.state.enabled && (this.group.add(...this.pipeObjects), this.five.needsRender = !0), t && this.setState(t, { userAction: i });
133
+ });
134
+ }
135
+ /** 更改插件 State
136
+ * @param `state` `<Partial<Plugin.State>>` 插件属性 `state` 的子集。
137
+ * @param `options` `<Option> | <undefined>`
138
+ * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
139
+ */
140
+ setState(e, t = {}) {
141
+ const i = this.state;
142
+ if (O(e, i, { deep: !0 }))
143
+ return;
144
+ const s = t.userAction !== void 0 ? t.userAction : !0;
145
+ if (this.updateState(e, s), e.enabled !== void 0 && i.enabled !== e.enabled && (e.enabled ? this._enable({ userAction: s }) : this._disable({ userAction: s })), e.visible !== void 0 && i.visible !== e.visible) {
146
+ const r = { userAction: s, anime: { duration: 500 } };
147
+ e.visible ? this._show(r) : this._hide(r);
148
+ }
149
+ if (e.isFlowing !== void 0 && i.isFlowing !== e.isFlowing && (e.isFlowing ? this._flow() : this._stopFlow()), e.speed !== void 0 && !O(i.speed, this.state.speed, { deep: !0 }) && this._setSpeed(e.speed), e.target !== void 0 && !O(i.target, this.state.target, { deep: !0 })) {
150
+ const r = {
151
+ target: e.target,
152
+ showAnime: { duration: 500 },
153
+ hideAnime: { duration: 500 }
154
+ };
155
+ this._switchPipelines(r);
156
+ }
157
+ }
158
+ /** 启用插件
159
+ * @param `options` `<Option> | <undefined>`
160
+ * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
161
+ */
162
+ enable(e = {}) {
163
+ var i;
164
+ if (this.state.enabled)
165
+ return;
166
+ const t = (i = e.userAction) != null ? i : !0;
167
+ this.updateState({ enabled: !0 }, t), this._enable({ userAction: t });
168
+ }
169
+ /** 禁用插件
170
+ * @param `options` `<Option> | <undefined>`
171
+ * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
172
+ */
173
+ disable(e = {}) {
174
+ var i;
175
+ if (this.state.enabled === !1)
176
+ return;
177
+ const t = (i = e.userAction) != null ? i : !0;
178
+ this.updateState({ enabled: !1, isFlowing: !1 }, t), this._disable({ userAction: t });
179
+ }
180
+ /** 展示管道模型,注意如果通过 `switchPipelines` 更改过 `visibleIDs`,则只会展示这一部分模型。
181
+ * @param `options` `<Partial<ShowHideOptions>> | <undefined>`
182
+ * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
183
+ * @param `options.anime` `<AnimeOptions> | <undefined>` 动画配置。
184
+ * @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
185
+ */
186
+ show() {
187
+ return d(this, arguments, function* (e = {}) {
188
+ if (this.state.visible)
189
+ return;
190
+ const t = m({
191
+ userAction: !0,
192
+ anime: { duration: 500 }
193
+ }, e);
194
+ this.updateState({ visible: !0 }, t.userAction), yield this._show(t);
195
+ });
196
+ }
197
+ /** 插件内容整体隐藏
198
+ * @param `options` `<Partial<ShowHideOptions>> | <undefined>`
199
+ * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
200
+ * @param `options.anime` `<AnimeOptions> | <undefined>` 动画配置。
201
+ * @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
202
+ */
203
+ hide() {
204
+ return d(this, arguments, function* (e = {}) {
205
+ if (this.state.visible === !1)
206
+ return;
207
+ const t = m({
208
+ userAction: !0,
209
+ anime: { duration: 500 }
210
+ }, e);
211
+ this.updateState({ visible: !1 }, t.userAction), yield this._hide(t);
212
+ });
213
+ }
214
+ /** 切换管路
215
+ * @param `options` `Partial<ShowPipelinesOptions> | <undefined>`
216
+ * @param `options.target` `<{ startLibraryID: number; endLibraryID: number }[]> | <undefined>`
217
+ * 目标管路,存在时,展示目标管路包含的管道,同时隐藏其他管道。不存在则展示所有管道。
218
+ * startLibraryID 和 endLibraryID 是起始和结束的设备 ID。
219
+ * @param `options.showAnime` `<AnimeOptions> | <undefined>` 展示的动画配置。
220
+ * @param `options.hideAnime` `<AnimeOptions> | <undefined>` 隐藏的动画配置。
221
+ * @param `options.anime` `<AnimeOptions> | <undefined>` 兜底的动画配置。
222
+ * @param `options.userAction` `<boolean> | <undefined>` 是否是否是用户操作。
223
+ * */
224
+ switchPipelines(e) {
225
+ return d(this, null, function* () {
226
+ var c, o, b, l, f, w;
227
+ if (!this.data)
228
+ return;
229
+ const t = (c = e == null ? void 0 : e.target) != null ? c : null, i = (o = e == null ? void 0 : e.userAction) != null ? o : !0;
230
+ this.updateState({ target: t }, i);
231
+ const s = { duration: 500 }, r = (l = (b = e == null ? void 0 : e.hideAnime) != null ? b : e == null ? void 0 : e.anime) != null ? l : s, h = (w = (f = e == null ? void 0 : e.showAnime) != null ? f : e == null ? void 0 : e.anime) != null ? w : s, a = {
232
+ target: t,
233
+ showAnime: h,
234
+ hideAnime: r
235
+ };
236
+ this._switchPipelines(a);
237
+ });
238
+ }
239
+ /** 开始流动 */
240
+ flow(e = {}) {
241
+ var i;
242
+ if (this.state.isFlowing)
243
+ return;
244
+ const t = (i = e.userAction) != null ? i : !0;
245
+ this.updateState({ isFlowing: !0 }, t), this._flow();
246
+ }
247
+ /** 停止流动 */
248
+ stopFlow(e = {}) {
249
+ var i;
250
+ if (this.state.isFlowing === !1)
251
+ return;
252
+ const t = (i = e.userAction) != null ? i : !0;
253
+ this.updateState({ isFlowing: !1 }, t), this._stopFlow();
254
+ }
255
+ /** 更改水管流速
256
+ * @param `options` `<SetSpeedOptions> | <undefined>`
257
+ * @param `options.speed` `<Speed> | <undefined>` 参考 `state.speed` 的描述。
258
+ * @param `options.userAction` `<boolean> | <undefined>` 是否是否是用户操作。
259
+ */
260
+ setSpeed(e) {
261
+ var s, r;
262
+ const t = (s = e == null ? void 0 : e.speed) != null ? s : g, i = (r = e.userAction) != null ? r : !0;
263
+ this.updateState({ speed: t }, i), this._setSpeed(t);
264
+ }
265
+ formatData(e, t) {
266
+ return d(this, null, function* () {
267
+ return y(e, t);
268
+ });
269
+ }
270
+ _enable(e) {
271
+ this.hooks.emit("enable", { userAction: e.userAction }), this.five.scene.add(this.group), this.five.needsRender = !0, this.five.on("wantsTapGesture", this.onWantsFiveTapGesture);
272
+ }
273
+ _disable(e) {
274
+ this.hooks.emit("disable", { userAction: e.userAction }), this.disposeAnime(), this.five.scene.remove(this.group), this.five.needsRender = !0, this.five.off("wantsTapGesture", this.onWantsFiveTapGesture);
275
+ }
276
+ _show(e) {
277
+ return d(this, null, function* () {
278
+ var s;
279
+ this.hooks.emit("show", { userAction: e.userAction });
280
+ const t = (s = e == null ? void 0 : e.anime) != null ? s : { duration: 500 }, i = this.findPipeObjectWithTarget(this.state.target);
281
+ yield Promise.all(i.map((r) => r == null ? void 0 : r.show(t))), this.five.needsRender = !0;
282
+ });
283
+ }
284
+ _hide(e) {
285
+ return d(this, null, function* () {
286
+ var i;
287
+ this.hooks.emit("hide", { userAction: e.userAction });
288
+ const t = (i = e == null ? void 0 : e.anime) != null ? i : { duration: 500 };
289
+ yield Promise.all(this.pipeObjects.map((s) => s.hide(t))), this.five.needsRender = !0;
290
+ });
291
+ }
292
+ _switchPipelines(e) {
293
+ return d(this, null, function* () {
294
+ if (!this.data)
295
+ return;
296
+ const t = this.findPipeObjectWithTarget(e.target), i = e.hideAnime;
297
+ yield Promise.all(this.pipeObjects.map((r) => r.hide(i)));
298
+ const s = e.showAnime;
299
+ yield Promise.all(t.map((r) => r.show(s)));
300
+ });
301
+ }
302
+ _flow() {
303
+ this.pipeObjects.forEach((e) => e.flow());
304
+ }
305
+ _stopFlow() {
306
+ this.pipeObjects.forEach((e) => e.stopFlow());
307
+ }
308
+ _setSpeed(e) {
309
+ this.pipeObjects.forEach((t) => t.setSpeed(e));
310
+ }
311
+ updateState(e, t) {
312
+ const i = this.state;
313
+ this.state = m(m({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: t });
314
+ }
315
+ /** 加载管道贴图,如果再加载中,复用之前的加载 Promise */
316
+ loadPipeTexture(e) {
317
+ return d(this, null, function* () {
318
+ const t = this.texturePromiseCache.get(e);
319
+ if (t)
320
+ return t;
321
+ const i = x(e);
322
+ return this.texturePromiseCache.set(e, i), i;
323
+ });
324
+ }
325
+ /** 销毁所有动画 */
326
+ disposeAnime() {
327
+ this.pipeObjects.forEach((e) => e.disposeAnime()), this.five.needsRender = !0;
328
+ }
329
+ /** 移除所有管道模型 */
330
+ removeAllPipes() {
331
+ this.disposeAnime(), this.group.remove(...this.pipeObjects), this.pipeObjects.forEach((e) => e.dispose()), this.pipeObjects = [], this.five.needsRender = !0;
332
+ }
333
+ /** 根据 ID 查找管道模型 */
334
+ findPipeObjectWithID(e) {
335
+ return this.pipeObjects.find(({ customID: t }) => t === e);
336
+ }
337
+ /** 根据 target 查找管道模型 */
338
+ findPipeObjectWithTarget(e) {
339
+ return e ? C({ data: this.data, target: e }).map(({ id: i }) => this.findPipeObjectWithID(i)).filter(T) : this.pipeObjects;
340
+ }
341
+ }
342
+ export {
343
+ de as Controller
344
+ };
@@ -0,0 +1,6 @@
1
+ import type { FivePlugin } from '@realsee/five';
2
+ import { Controller } from './Controller';
3
+ export declare const PipelinePlugin: FivePlugin<undefined, Controller>;
4
+ export type PipelinePluginParameterType = undefined;
5
+ export type PipelinePluginReturnType = InstanceType<typeof Controller>;
6
+ export default PipelinePlugin;
@@ -0,0 +1,39 @@
1
+ import { Controller as o } from "./Controller.js";
2
+ import "three";
3
+ import "../base/BasePluginWithData.js";
4
+ import "../base/BasePlugin.js";
5
+ import "../shared-utils/Subscribe.js";
6
+ import "hammerjs";
7
+ import "@realsee/five";
8
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
9
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
10
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
11
+ import "three/examples/jsm/renderers/CSS3DRenderer";
12
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
13
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
14
+ import "../CSS3DRenderPlugin/utils/even.js";
15
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
16
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
17
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
18
+ import "../shared-utils/three/centerPoint.js";
19
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
20
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
21
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
22
+ import "../shared-utils/absoluteUrl.js";
23
+ import "../shared-utils/equal.js";
24
+ import "../shared-utils/isTruelyObject.js";
25
+ import "../shared-utils/isNil.js";
26
+ import "../shared-utils/three/loadTexture.js";
27
+ import "./utils/formatData.js";
28
+ import "./utils/Objects/FlowPipe.js";
29
+ import "../shared-utils/animationFrame/index.js";
30
+ import "./utils/Objects/Pipe.js";
31
+ import "../shared-utils/animationFrame/BetterTween.js";
32
+ import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
33
+ import "../shared-utils/three/Extras/Core/Interpolations.js";
34
+ import "../shared-utils/three/Extras/Core/Interpolations2.js";
35
+ const J = (r) => new o(r);
36
+ export {
37
+ J as PipelinePlugin,
38
+ J as default
39
+ };
@@ -0,0 +1,6 @@
1
+ const e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2
+ __proto__: null
3
+ }, Symbol.toStringTag, { value: "Module" }));
4
+ export {
5
+ e as PluginData
6
+ };
@@ -0,0 +1,20 @@
1
+ export interface Water {
2
+ isHot: boolean;
3
+ quality: number;
4
+ }
5
+ export interface Pipe {
6
+ id: string;
7
+ path: number[][];
8
+ texture?: string;
9
+ radius: number;
10
+ water: Water;
11
+ }
12
+ export interface Pipeline {
13
+ startLibraryID: number;
14
+ endLibraryID: number;
15
+ pipes: Pipe[];
16
+ }
17
+ export interface RootObject {
18
+ pipelines: Pipeline[];
19
+ pipes: Pipe[];
20
+ }
@@ -0,0 +1,6 @@
1
+ const e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2
+ __proto__: null
3
+ }, Symbol.toStringTag, { value: "Module" }));
4
+ export {
5
+ e as ServerData
6
+ };
@@ -0,0 +1,28 @@
1
+ export interface LinesDataset {
2
+ id: string;
3
+ type: string;
4
+ name: string;
5
+ data: number[][];
6
+ }
7
+ export interface ConnectsDataset {
8
+ waterType: number;
9
+ start: number;
10
+ end: number;
11
+ data: string[];
12
+ }
13
+ export interface WaterTypeMap {
14
+ name: string;
15
+ type: number;
16
+ }
17
+ export interface ModelMap {
18
+ library: number;
19
+ name: string;
20
+ }
21
+ /** LinesDataset 的别名 */
22
+ export type PipeItem = LinesDataset;
23
+ export interface RootObject {
24
+ LinesDataset: LinesDataset[];
25
+ ConnectsDataset: ConnectsDataset[];
26
+ WaterTypeMap: WaterTypeMap[];
27
+ ModelMap: ModelMap[];
28
+ }
@@ -0,0 +1,79 @@
1
+ import type * as THREE from 'THREE';
2
+ import type * as PluginData from './PluginData';
3
+ import type * as ServerData from './ServerData';
4
+ import type * as BasePlugin from '../../base/BasePluginWithData';
5
+ import type { EventCallback } from '@realsee/five';
6
+ import type { AnimeOptions } from '../utils/Objects/Pipe';
7
+ export interface PipelineTargetItem {
8
+ startLibraryID: number;
9
+ endLibraryID: number;
10
+ }
11
+ export interface State extends BasePlugin.State {
12
+ enabled: boolean;
13
+ visible: boolean;
14
+ isFlowing: boolean;
15
+ speed: Speed;
16
+ target: null | PipelineTargetItem[];
17
+ }
18
+ export interface LoadOptions {
19
+ /** 获取管道半径,单位是 m。默认是 0.016 m */
20
+ getPipeRadius: (pipe: ServerData.LinesDataset) => number;
21
+ /** 自定义不同水质的贴图 */
22
+ getPipeUrl: <T extends PluginData.Water>(water: T) => string;
23
+ }
24
+ export interface EventMap extends BasePlugin.EventMap<State, PluginData.RootObject> {
25
+ /** visible 从 false 到 true 的回调
26
+ * @param event.userAction 是否是用户操作
27
+ */
28
+ show: (event: {
29
+ userAction: boolean;
30
+ }) => void;
31
+ /** visible 从 true 到 false 的回调
32
+ * @param event.userAction 是否是用户操作
33
+ */
34
+ hide: (event: {
35
+ userAction: boolean;
36
+ }) => void;
37
+ /** enabled 从 false 到 true 的回调
38
+ * @param event.userAction 是否是用户操作
39
+ */
40
+ enable: (event: {
41
+ userAction: boolean;
42
+ }) => void;
43
+ /** enabled 从 true 到 false 的回调
44
+ * @param event.userAction 是否是用户操作
45
+ */
46
+ disable: (event: {
47
+ userAction: boolean;
48
+ }) => void;
49
+ tap: (data: {
50
+ pipe: PluginData.Pipe;
51
+ pipeline: PluginData.Pipeline;
52
+ intersectObjects: THREE.Intersection[];
53
+ wantsFiveTapGestureParams: Parameters<EventCallback['wantsTapGesture']>;
54
+ }) => any;
55
+ }
56
+ export interface ShowHideOptions {
57
+ userAction: boolean;
58
+ anime: AnimeOptions;
59
+ }
60
+ export interface ShowPipelinesOptions {
61
+ userAction: boolean;
62
+ showAnime: AnimeOptions;
63
+ hideAnime: AnimeOptions;
64
+ anime: AnimeOptions;
65
+ target: PipelineTargetItem[];
66
+ }
67
+ /** 流速 */
68
+ export interface Speed {
69
+ /** 横向流速:m/s */
70
+ flowSpeed?: number;
71
+ /** 纵向旋转速度:deg/s */
72
+ rotateSpeed?: number;
73
+ }
74
+ export interface SetSpeedOptions {
75
+ speed: Speed;
76
+ userAction: boolean;
77
+ }
78
+ export * as ServerData from './ServerData';
79
+ export * as PluginData from './PluginData';
@@ -0,0 +1,6 @@
1
+ import { ServerData as e } from "./ServerData/index.js";
2
+ import { PluginData as t } from "./PluginData/index.js";
3
+ export {
4
+ t as PluginData,
5
+ e as ServerData
6
+ };
@@ -0,0 +1,34 @@
1
+ import type { PipeParams as BasePipeParams } from './Pipe';
2
+ import { ObjectPipe } from './Pipe';
3
+ export type PipeParams = BasePipeParams;
4
+ export declare class ObjectFlowPipe extends ObjectPipe {
5
+ /** 初始状态下,当前水管内的水流在整体管道上的位移
6
+ * @description 因为水管是不连续的,而要达到水流的连续效果,需要用过贴图的 uOffset 控制每根水管的初始状态
7
+ */
8
+ private initialDisplacement;
9
+ private oldTime;
10
+ /** 横向流动速度:m / s */
11
+ private flowSpeed;
12
+ /** 纵向旋转速度:deg / s */
13
+ private rotateSpeed;
14
+ constructor(params: PipeParams);
15
+ setInitialDisplacement(distance: number, direction?: 'forward' | 'backward'): void;
16
+ /** 水流移动「基于初始位置」
17
+ * @description 因为贴图的运动与 u 的 uOffset 相反,比较反直觉,所以封装方法易于理解
18
+ * @param displacement 位移:米 * 方向(向前 -> 正, 向后 -> 负)
19
+ */
20
+ moveFromOrigin(displacement: number): boolean;
21
+ /** 水流移动「基于调整管道差值之后的位置」
22
+ *
23
+ * @param distance 位移:米 * 方向
24
+ */
25
+ moveForwardFromInitialOffset(distance: number): void;
26
+ flow(): void;
27
+ stopFlow(): void;
28
+ setSpeed(speed?: {
29
+ flowSpeed?: number;
30
+ rotateSpeed?: number;
31
+ }): void;
32
+ disposeAnime(): void;
33
+ private flowAnimationDisposer;
34
+ }