@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
@@ -1,45 +1,45 @@
1
- var E = Object.defineProperty, P = Object.defineProperties;
2
- var C = Object.getOwnPropertyDescriptors;
1
+ var S = Object.defineProperty, A = Object.defineProperties;
2
+ var P = Object.getOwnPropertyDescriptors;
3
3
  var w = Object.getOwnPropertySymbols;
4
- var y = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
5
- var m = (h, n, t) => n in h ? E(h, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[n] = t, c = (h, n) => {
4
+ var E = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
5
+ var m = (d, n, t) => n in d ? S(d, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[n] = t, c = (d, n) => {
6
6
  for (var t in n || (n = {}))
7
- y.call(n, t) && m(h, t, n[t]);
7
+ E.call(n, t) && m(d, t, n[t]);
8
8
  if (w)
9
9
  for (var t of w(n))
10
- I.call(n, t) && m(h, t, n[t]);
11
- return h;
12
- }, v = (h, n) => P(h, C(n));
13
- var o = (h, n, t) => (m(h, typeof n != "symbol" ? n + "" : n, t), t);
14
- var u = (h, n, t) => new Promise((e, i) => {
15
- var s = (d) => {
10
+ C.call(n, t) && m(d, t, n[t]);
11
+ return d;
12
+ }, v = (d, n) => A(d, P(n));
13
+ var o = (d, n, t) => (m(d, typeof n != "symbol" ? n + "" : n, t), t);
14
+ var u = (d, n, t) => new Promise((e, i) => {
15
+ var r = (a) => {
16
16
  try {
17
- r(t.next(d));
17
+ s(t.next(a));
18
18
  } catch (l) {
19
19
  i(l);
20
20
  }
21
- }, a = (d) => {
21
+ }, h = (a) => {
22
22
  try {
23
- r(t.throw(d));
23
+ s(t.throw(a));
24
24
  } catch (l) {
25
25
  i(l);
26
26
  }
27
- }, r = (d) => d.done ? e(d.value) : Promise.resolve(d.value).then(s, a);
28
- r((t = t.apply(h, n)).next());
27
+ }, s = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(r, h);
28
+ s((t = t.apply(d, n)).next());
29
29
  });
30
- import * as F from "three";
31
- import { to as x } from "../../shared-utils/to.js";
32
- import { equal as M } from "../../shared-utils/equal.js";
33
- import { Main as _ } from "../Components/Main.js";
34
- import { formatData as b } from "../utils/formatData.js";
35
- import { CAMERA_IMAGE as L } from "../Assets/camera.js";
36
- import { omit as O } from "../../shared-utils/filter.js";
37
- import { FLOOR_PLAN_ATTACHED_TO as D } from "../constant.js";
38
- import { Controller as T } from "../../base/BasePluginWithData.js";
39
- import { getPxmm as k, getAttachedY as H } from "../../shared-utils/getPxmm.js";
40
- import { checkShowState as R, correctFiveState as G } from "../utils/correctFiveState.js";
41
- import { changeModelCanvasOpacity as S } from "../../shared-utils/changeModelCanvasOpacity.js";
42
- import { FloorplanErrorType as f, SHOW_ANIME_DURATION as W } from "../utils/constant.js";
30
+ import * as I from "three";
31
+ import { to as y } from "../../shared-utils/to.js";
32
+ import { equal as F } from "../../shared-utils/equal.js";
33
+ import { Main as x } from "../Components/Main.js";
34
+ import { formatData as g } from "../utils/formatData.js";
35
+ import { CAMERA_IMAGE as M } from "../Assets/camera.js";
36
+ import { omit as _ } from "../../shared-utils/filter.js";
37
+ import { FLOOR_PLAN_ATTACHED_TO as L } from "../constant.js";
38
+ import { Controller as O } from "../../base/BasePluginWithData.js";
39
+ import { getPxmm as D, getAttachedY as T } from "../../shared-utils/getPxmm.js";
40
+ import { checkShowState as k, correctFiveState as H } from "../utils/correctFiveState.js";
41
+ import { changeModelCanvasOpacity as b } from "../../shared-utils/changeModelCanvasOpacity.js";
42
+ import { FloorplanErrorType as f, SHOW_ANIME_DURATION as R } from "../utils/constant.js";
43
43
  import "../../shared-utils/isTruelyObject.js";
44
44
  import "../../vendor/svelte/internal/index.js";
45
45
  import "../../vendor/svelte/transition/index.js";
@@ -89,15 +89,15 @@ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
89
89
  import "../../shared-utils/absoluteUrl.js";
90
90
  import "../../shared-utils/nearlyEqual.js";
91
91
  import "../../shared-utils/five/changeMode.js";
92
- function N(h) {
93
- const { latitude: n, longitude: t } = h, e = Math.abs(n - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
92
+ function G(d) {
93
+ const { latitude: n, longitude: t } = d, e = Math.abs(n - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
94
94
  return e || i;
95
95
  }
96
- function z(h) {
97
- const { latitude: n, longitude: t } = h, e = Math.abs(n - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
96
+ function W(d) {
97
+ const { latitude: n, longitude: t } = d, e = Math.abs(n - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
98
98
  return e && i;
99
99
  }
100
- class Kt extends T {
100
+ class Jt extends O {
101
101
  constructor(t, e) {
102
102
  super(t);
103
103
  // =============== public properties =================
@@ -158,10 +158,10 @@ class Kt extends T {
158
158
  }));
159
159
  /** 更新户型图大小 */
160
160
  o(this, "updateSize", () => {
161
- if (!this.data || !R(this.five, this.showState) || !this.container || !this.wrapper)
161
+ if (!this.data || !k(this.five, this.showState) || !this.container || !this.wrapper)
162
162
  return;
163
- const { min: t, max: e } = this.data.bounding, i = e.x - t.x, s = e.y - t.y, a = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, r = k(this.five, this.wrapper, this.floorIndex, a), d = Math.ceil(i * r), l = Math.ceil(s * r);
164
- this.size.width === d && this.size.height === l || (this.container.style.width = d + "px", this.container.style.height = l + "px", this.size = { width: d, height: l });
163
+ const { min: t, max: e } = this.data.bounding, i = e.x - t.x, r = e.y - t.y, h = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, s = D(this.five, this.wrapper, this.floorIndex, h), a = Math.ceil(i * s), l = Math.ceil(r * s);
164
+ this.size.width === a && this.size.height === l || (this.container.style.width = a + "px", this.container.style.height = l + "px", this.size = { width: a, height: l });
165
165
  });
166
166
  o(this, "highlight", (t) => {
167
167
  this.state.config.highlightEnable && (this.highlightData = t, this.render());
@@ -170,64 +170,63 @@ class Kt extends T {
170
170
  this.highlightData = {}, this.render();
171
171
  });
172
172
  o(this, "_disable", (t) => {
173
- var i, s, a;
173
+ var i, r, h;
174
174
  const { userAction: e } = t;
175
- this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (a = this.container) == null || a.remove(), this.removeEventListener();
175
+ this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (r = this.app) == null || r.$destroy(), this.app = void 0, (h = this.container) == null || h.remove(), this.removeEventListener();
176
176
  });
177
177
  o(this, "_enable", (t) => {
178
178
  const { userAction: e } = t;
179
179
  this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e }));
180
180
  });
181
181
  o(this, "_show", (t) => u(this, null, function* () {
182
- var a;
182
+ var h;
183
183
  if (!this.state.enabled)
184
184
  return;
185
- if (!((a = this.five.model) != null && a.loaded))
185
+ if (!((h = this.five.model) != null && h.loaded))
186
186
  throw new Error(f.ModelNotLoaded);
187
187
  if (!this.data)
188
188
  throw new Error(f.DataNotLoaded);
189
- this.isHiddenByHideFunc = !1;
189
+ if (this.showPromise)
190
+ return this.showPromise;
190
191
  const e = {
191
192
  floorIndex: this.floorIndex,
192
193
  modelOpacity: this.state.config.modelOpacity,
193
194
  immediately: !1,
194
195
  isAutoShow: !1,
195
196
  userAction: !0
196
- }, i = c(c({}, e), t), s = () => u(this, null, function* () {
197
+ }, i = c(c({}, e), t), r = () => u(this, null, function* () {
197
198
  this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
198
- let r = !1, d;
199
- this.showRejection = (A) => {
200
- r = !0, d = A;
199
+ let s = !1, a;
200
+ this.showRejection = (p) => {
201
+ s = !0, a = p;
201
202
  };
202
- const [l] = yield x(G(this.five, this.showState, i.userAction));
203
+ const [l] = yield y(H(this.five, this.showState, i.userAction));
203
204
  if (l)
204
205
  throw l;
205
- if (r)
206
- throw d ? new Error(d) : new Error(f.UnknownError);
206
+ if (s)
207
+ throw a ? new Error(a) : new Error(f.UnknownError);
207
208
  this.updateSize(), this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
208
- const p = i.modelOpacity, g = i.immediately ? 0 : W;
209
- S(this.five, p, g), this.render(g);
210
209
  });
211
- return this.showPromise = s().then(() => {
212
- this.hooks.emit("showAnimationEnded", {
210
+ return this.isHiddenByHideFunc = !1, this.showPromise = r().then(() => {
211
+ this.showPromise = void 0, this.showRejection = void 0;
212
+ const s = i.modelOpacity, a = i.immediately ? 0 : R;
213
+ b(this.five, s, a), this.render(a), this.hooks.emit("showAnimationEnded", {
213
214
  auto: i.isAutoShow,
214
215
  userAction: i.userAction
215
216
  });
216
- }).catch((r) => {
217
- if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && r instanceof Error)
218
- throw r;
219
- }).finally(() => {
220
- this.showPromise = void 0, this.showRejection = void 0;
217
+ }).catch((s) => {
218
+ if (this.showPromise = void 0, this.showRejection = void 0, this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && s instanceof Error)
219
+ throw s;
221
220
  }), this.showPromise;
222
221
  }));
223
222
  o(this, "_hide", (t) => {
224
- var s;
225
- (s = this.showRejection) == null || s.call(this, f.BreakOffByHide), this.showPromise = void 0;
223
+ var r;
224
+ (r = this.showRejection) == null || r.call(this, f.BreakOffByHide), this.showPromise = void 0;
226
225
  const i = c(c({}, {
227
226
  userAction: !0,
228
227
  isAutoHide: !1
229
228
  }), t);
230
- S(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
229
+ b(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
231
230
  });
232
231
  o(this, "handleClick", () => {
233
232
  if (!this.state.visible)
@@ -253,7 +252,7 @@ class Kt extends T {
253
252
  if (!e || this.state.visible || this.state.config.autoShowEnable === !1 || this.isHiddenByHideFunc)
254
253
  return;
255
254
  const i = this.five.getCurrentState();
256
- i.mode === this.showState.mode && z(i) && (this.updateState({ visible: !0 }, !0), this._show({ isAutoShow: !0 }));
255
+ i.mode === this.showState.mode && W(i) && (this.updateState({ visible: !0 }, !0), this._show({ isAutoShow: !0 }));
257
256
  });
258
257
  /** panoIndex 改变时,更新 floorIndex */
259
258
  o(this, "onFivePanoArrived", (t) => {
@@ -265,7 +264,7 @@ class Kt extends T {
265
264
  if (!this.state.visible || this.showPromise)
266
265
  return;
267
266
  const i = this.five.getCurrentState();
268
- this.updatePosition(), this.updateSize(), N(i) && (this.updateState({ visible: !1 }, e), this._hide({ userAction: e }));
267
+ this.updatePosition(), this.updateSize(), G(i) && (this.updateState({ visible: !1 }, e), this._hide({ userAction: e }));
269
268
  });
270
269
  /** 户型图展示中,转动三维模型,结束时应该自动修复模型状态 */
271
270
  o(this, "onFiveWantsPanGesture", (t, e) => {
@@ -307,28 +306,28 @@ class Kt extends T {
307
306
  roomLabelsEnable: !0,
308
307
  roomAreaEnable: !0,
309
308
  roomNameEnable: !0,
310
- cameraImageUrl: L,
311
- attachedTo: D.BOUNDING_CENTER,
309
+ cameraImageUrl: M,
310
+ attachedTo: L.BOUNDING_CENTER,
312
311
  getLabelElement: void 0,
313
312
  adaptiveRoomLabelVisibleEnable: !0,
314
- getRoomAreaText: (r) => (r / 1e6).toFixed(1) + "㎡",
315
- getRuleDistanceText: (r) => r.toString()
316
- }, s = e ? O(e, ["selector", "scale"]) : {}, a = c(c({}, i), s);
313
+ getRoomAreaText: (s) => (s / 1e6).toFixed(1) + "㎡",
314
+ getRuleDistanceText: (s) => s.toString()
315
+ }, r = e ? _(e, ["selector", "scale"]) : {}, h = c(c({}, i), r);
317
316
  this.state = {
318
317
  enabled: !0,
319
318
  visible: !1,
320
- config: a
319
+ config: h
321
320
  }, this.initContainer(), t.model.loaded ? this.onFiveModelLoaded() : t.once("modelLoaded", this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
322
321
  }
323
322
  load(t, e, i = !0) {
324
323
  return u(this, null, function* () {
325
- function s(p) {
324
+ function r(p) {
326
325
  return Object.prototype.hasOwnProperty.apply(p, ["version"]);
327
326
  }
328
- const a = t;
329
- a && !a.version && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
330
- const r = JSON.parse(JSON.stringify(t)), d = s(r) ? r.data : r, l = this.data;
331
- this.data = yield b(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, l), e && this.updateState(e, i), this.render();
327
+ const h = t;
328
+ h && !h.version && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
329
+ const s = JSON.parse(JSON.stringify(t)), a = r(s) ? s.data : s, l = this.data;
330
+ this.data = yield g(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, l), e && this.updateState(e, i), this.render();
332
331
  });
333
332
  }
334
333
  /** 把插件的渲染DOM插入到对应的容器中去 */
@@ -352,10 +351,10 @@ class Kt extends T {
352
351
  }
353
352
  /** 更改插件 State */
354
353
  setState(t, e = {}) {
355
- const i = this.state, s = e.userAction !== void 0 ? e.userAction : !0;
356
- if (this.updateState(t, s), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: s }) : this._disable({ userAction: s })), t.visible !== void 0 && i.visible !== t.visible) {
357
- const a = { userAction: s };
358
- t.visible ? this._show(a) : this._hide(a);
354
+ const i = this.state, r = e.userAction !== void 0 ? e.userAction : !0;
355
+ if (this.updateState(t, r), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: r }) : this._disable({ userAction: r })), t.visible !== void 0 && i.visible !== t.visible) {
356
+ const h = { userAction: r };
357
+ t.visible ? this._show(h) : this._hide(h);
359
358
  }
360
359
  }
361
360
  changeConfigs(t, e = !0) {
@@ -363,21 +362,21 @@ class Kt extends T {
363
362
  }
364
363
  /** 更新户型图位置 */
365
364
  updatePosition() {
366
- var r;
367
- const t = H(this.five, this.floorIndex, this.state.config.attachedTo), e = (r = this.five.model) == null ? void 0 : r.bounding.getCenter(new F.Vector3()).setY(t);
365
+ var s;
366
+ const t = T(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new I.Vector3()).setY(t);
368
367
  if (!e)
369
368
  return;
370
- const i = e.clone().project(this.five.camera), s = (i.x + 1) / 2, a = -(i.y - 1) / 2;
371
- this.container.style.left = s * 100 + "%", this.container.style.top = a * 100 + "%";
369
+ const i = e.clone().project(this.five.camera), r = (i.x + 1) / 2, h = -(i.y - 1) / 2;
370
+ this.container.style.left = r * 100 + "%", this.container.style.top = h * 100 + "%";
372
371
  }
373
372
  formatData(t) {
374
373
  return u(this, null, function* () {
375
- return yield b(t.data);
374
+ return yield g(t.data);
376
375
  });
377
376
  }
378
377
  updateState(t, e) {
379
- const i = this.state, s = t.config ? c(c({}, i.config), t.config) : i.config;
380
- this.state = v(c(c({}, this.state), t), { config: s }), !M(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
378
+ const i = this.state, r = t.config ? c(c({}, i.config), t.config) : i.config;
379
+ this.state = v(c(c({}, this.state), t), { config: r }), !F(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
381
380
  }
382
381
  /** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
383
382
  *
@@ -404,7 +403,7 @@ class Kt extends T {
404
403
  this.hasAddedEventListener = !1, t.off("modelLoaded", this.onFiveModelLoaded), t.off("modeChange", this.onFiveModeChange), t.off("panoArrived", this.onFivePanoArrived), t.off("cameraUpdate", this.onFiveCameraUpdate), t.off("wantsPanGesture", this.onFiveWantsPanGesture), t.off("wantsTapGesture", this.onFiveWantsTapGesture), t.off("wantsChangeMode", this.onFiveWantsChangeMode), t.off("modelShownFloorChange", this.onModelShownFloorChange);
405
404
  }
406
405
  render(t) {
407
- if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
406
+ if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
408
407
  return;
409
408
  const e = v(c({}, this.state.config), {
410
409
  visible: this.state.visible,
@@ -417,9 +416,9 @@ class Kt extends T {
417
416
  });
418
417
  if (this.app)
419
418
  return this.app.$set(e);
420
- this.app = new _({ target: this.container, intro: !0, props: e });
419
+ this.app = new x({ target: this.container, intro: !0, props: e });
421
420
  }
422
421
  }
423
422
  export {
424
- Kt as Controller
423
+ Jt as Controller
425
424
  };
@@ -1,44 +1,44 @@
1
- var F = Object.defineProperty, E = Object.defineProperties;
2
- var C = Object.getOwnPropertyDescriptors;
1
+ var A = Object.defineProperty, S = Object.defineProperties;
2
+ var F = Object.getOwnPropertyDescriptors;
3
3
  var w = Object.getOwnPropertySymbols;
4
- var P = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
5
- var m = (h, s, t) => s in h ? F(h, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[s] = t, u = (h, s) => {
6
- for (var t in s || (s = {}))
7
- P.call(s, t) && m(h, t, s[t]);
4
+ var E = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
5
+ var m = (h, r, t) => r in h ? A(h, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[r] = t, u = (h, r) => {
6
+ for (var t in r || (r = {}))
7
+ E.call(r, t) && m(h, t, r[t]);
8
8
  if (w)
9
- for (var t of w(s))
10
- I.call(s, t) && m(h, t, s[t]);
9
+ for (var t of w(r))
10
+ P.call(r, t) && m(h, t, r[t]);
11
11
  return h;
12
- }, v = (h, s) => E(h, C(s));
13
- var o = (h, s, t) => (m(h, typeof s != "symbol" ? s + "" : s, t), t);
14
- var f = (h, s, t) => new Promise((e, i) => {
15
- var r = (n) => {
12
+ }, v = (h, r) => S(h, F(r));
13
+ var o = (h, r, t) => (m(h, typeof r != "symbol" ? r + "" : r, t), t);
14
+ var f = (h, r, t) => new Promise((e, i) => {
15
+ var n = (s) => {
16
16
  try {
17
- a(t.next(n));
17
+ a(t.next(s));
18
18
  } catch (l) {
19
19
  i(l);
20
20
  }
21
- }, d = (n) => {
21
+ }, d = (s) => {
22
22
  try {
23
- a(t.throw(n));
23
+ a(t.throw(s));
24
24
  } catch (l) {
25
25
  i(l);
26
26
  }
27
- }, a = (n) => n.done ? e(n.value) : Promise.resolve(n.value).then(r, d);
28
- a((t = t.apply(h, s)).next());
27
+ }, a = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(n, d);
28
+ a((t = t.apply(h, r)).next());
29
29
  });
30
- import { to as M } from "../../shared-utils/to.js";
31
- import { equal as x } from "../../shared-utils/equal.js";
32
- import { Main as y } from "../Components/Main.js";
33
- import { formatData as b } from "../utils/formatData.js";
34
- import { CAMERA_IMAGE as _ } from "../Assets/camera.js";
35
- import { omit as L } from "../../shared-utils/filter.js";
36
- import { getPxmm as O } from "../../shared-utils/getPxmm.js";
37
- import { FLOOR_PLAN_ATTACHED_TO as D } from "../constant.js";
38
- import { Controller as k } from "../../base/BasePluginWithData.js";
39
- import { checkShowState as T, correctFiveState as G } from "../utils/correctFiveState.js";
40
- import { changeModelCanvasOpacity as A } from "../../shared-utils/changeModelCanvasOpacity.js";
41
- import { FIVE_CAMERA_DEFAULT_FOV as H, FloorplanErrorType as c, SHOW_ANIME_DURATION as W } from "../utils/constant.js";
30
+ import { to as C } from "../../shared-utils/to.js";
31
+ import { equal as I } from "../../shared-utils/equal.js";
32
+ import { Main as M } from "../Components/Main.js";
33
+ import { formatData as g } from "../utils/formatData.js";
34
+ import { CAMERA_IMAGE as x } from "../Assets/camera.js";
35
+ import { omit as y } from "../../shared-utils/filter.js";
36
+ import { getPxmm as _ } from "../../shared-utils/getPxmm.js";
37
+ import { FLOOR_PLAN_ATTACHED_TO as L } from "../constant.js";
38
+ import { Controller as O } from "../../base/BasePluginWithData.js";
39
+ import { checkShowState as D, correctFiveState as k } from "../utils/correctFiveState.js";
40
+ import { changeModelCanvasOpacity as b } from "../../shared-utils/changeModelCanvasOpacity.js";
41
+ import { FIVE_CAMERA_DEFAULT_FOV as T, FloorplanErrorType as c, SHOW_ANIME_DURATION as G } from "../utils/constant.js";
42
42
  import "../../shared-utils/isTruelyObject.js";
43
43
  import "../../vendor/svelte/internal/index.js";
44
44
  import "../../vendor/svelte/transition/index.js";
@@ -89,15 +89,15 @@ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
89
89
  import "../../shared-utils/absoluteUrl.js";
90
90
  import "../../shared-utils/nearlyEqual.js";
91
91
  import "../../shared-utils/five/changeMode.js";
92
- function R(h) {
93
- const { latitude: s, longitude: t } = h, e = Math.abs(s - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
92
+ function H(h) {
93
+ const { latitude: r, longitude: t } = h, e = Math.abs(r - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
94
94
  return e || i;
95
95
  }
96
- function N(h) {
97
- const { latitude: s, longitude: t } = h, e = Math.abs(s - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
96
+ function W(h) {
97
+ const { latitude: r, longitude: t } = h, e = Math.abs(r - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
98
98
  return e && i;
99
99
  }
100
- class Qt extends k {
100
+ class Jt extends O {
101
101
  constructor(t, e) {
102
102
  var a;
103
103
  super(t);
@@ -159,10 +159,10 @@ class Qt extends k {
159
159
  }));
160
160
  /** 更新户型图大小 */
161
161
  o(this, "updateSize", () => {
162
- if (!this.data || !T(this.five, this.showState) || !this.container || !this.wrapper)
162
+ if (!this.data || !D(this.five, this.showState) || !this.container || !this.wrapper)
163
163
  return;
164
- const { min: t, max: e } = this.data.bounding, i = e.x - t.x, r = e.y - t.y, d = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = O(this.five, this.wrapper, this.floorIndex, d), n = Math.ceil(i * a), l = Math.ceil(r * a);
165
- this.size.width === n && this.size.height === l || (this.container.style.width = n + "px", this.container.style.height = l + "px", this.size = { width: n, height: l });
164
+ const { min: t, max: e } = this.data.bounding, i = e.x - t.x, n = e.y - t.y, d = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = _(this.five, this.wrapper, this.floorIndex, d), s = Math.ceil(i * a), l = Math.ceil(n * a);
165
+ this.size.width === s && this.size.height === l || (this.container.style.width = s + "px", this.container.style.height = l + "px", this.size = { width: s, height: l });
166
166
  });
167
167
  o(this, "highlight", (t) => {
168
168
  this.state.config.highlightEnable && (this.highlightData = t, this.render());
@@ -171,9 +171,9 @@ class Qt extends k {
171
171
  this.highlightData = {}, this.render();
172
172
  });
173
173
  o(this, "_disable", (t) => {
174
- var i, r, d;
174
+ var i, n, d;
175
175
  const { userAction: e } = t;
176
- this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, c.BreakOffByDisable), this.showPromise = void 0, (r = this.app) == null || r.$destroy(), this.app = void 0, (d = this.container) == null || d.remove(), this.removeEventListener();
176
+ this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, c.BreakOffByDisable), this.showPromise = void 0, (n = this.app) == null || n.$destroy(), this.app = void 0, (d = this.container) == null || d.remove(), this.removeEventListener();
177
177
  });
178
178
  o(this, "_enable", (t) => {
179
179
  const { userAction: e } = t;
@@ -187,48 +187,47 @@ class Qt extends k {
187
187
  throw new Error(c.ModelNotLoaded);
188
188
  if (!this.data)
189
189
  throw new Error(c.DataNotLoaded);
190
- this.isHiddenByHideFunc = !1;
190
+ if (this.showPromise)
191
+ return this.showPromise;
191
192
  const e = {
192
193
  floorIndex: this.floorIndex,
193
194
  modelOpacity: this.state.config.modelOpacity,
194
195
  immediately: !1,
195
196
  isAutoShow: !1,
196
197
  userAction: !0
197
- }, i = u(u({}, e), t), r = () => f(this, null, function* () {
198
+ }, i = u(u({}, e), t), n = () => f(this, null, function* () {
198
199
  this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
199
- let a = !1, n;
200
- this.showRejection = (S) => {
201
- a = !0, n = S;
200
+ let a = !1, s;
201
+ this.showRejection = (p) => {
202
+ a = !0, s = p;
202
203
  };
203
- const [l] = yield M(G(this.five, this.showState, i.userAction));
204
+ const [l] = yield C(k(this.five, this.showState, i.userAction));
204
205
  if (l)
205
206
  throw l;
206
207
  if (a)
207
- throw n ? new Error(n) : new Error(c.UnknownError);
208
+ throw s ? new Error(s) : new Error(c.UnknownError);
208
209
  this.updateSize(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
209
- const p = i.modelOpacity, g = i.immediately ? 0 : W;
210
- A(this.five, p, g), this.render(g);
211
210
  });
212
- return this.showPromise = r().then(() => {
213
- this.hooks.emit("showAnimationEnded", {
211
+ return this.isHiddenByHideFunc = !1, this.showPromise = n().then(() => {
212
+ this.showPromise = void 0, this.showRejection = void 0;
213
+ const a = i.modelOpacity, s = i.immediately ? 0 : G;
214
+ b(this.five, a, s), this.render(s), this.hooks.emit("showAnimationEnded", {
214
215
  auto: i.isAutoShow,
215
216
  userAction: i.userAction
216
217
  });
217
218
  }).catch((a) => {
218
- if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && a instanceof Error)
219
+ if (this.showPromise = void 0, this.showRejection = void 0, this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && a instanceof Error)
219
220
  throw a;
220
- }).finally(() => {
221
- this.showPromise = void 0, this.showRejection = void 0;
222
221
  }), this.showPromise;
223
222
  }));
224
223
  o(this, "_hide", (t) => {
225
- var r;
226
- (r = this.showRejection) == null || r.call(this, c.BreakOffByHide), this.showPromise = void 0;
224
+ var n;
225
+ (n = this.showRejection) == null || n.call(this, c.BreakOffByHide), this.showPromise = void 0;
227
226
  const i = u(u({}, {
228
227
  userAction: !0,
229
228
  isAutoHide: !1
230
229
  }), t);
231
- A(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
230
+ b(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
232
231
  });
233
232
  o(this, "handleClick", () => {
234
233
  if (!this.state.visible)
@@ -254,7 +253,7 @@ class Qt extends k {
254
253
  if (!e || this.state.config.autoShowEnable === !1 || this.isHiddenByHideFunc)
255
254
  return;
256
255
  const i = this.five.getCurrentState();
257
- i.mode === "Floorplan" && (this.state.visible || N(i) && (this.updateState({ visible: !0 }, !0), this._show({ isAutoShow: !0 })));
256
+ i.mode === "Floorplan" && (this.state.visible || W(i) && (this.updateState({ visible: !0 }, !0), this._show({ isAutoShow: !0 })));
258
257
  });
259
258
  /** panoIndex 改变时,更新 floorIndex */
260
259
  o(this, "onFivePanoArrived", (t) => {
@@ -266,7 +265,7 @@ class Qt extends k {
266
265
  if (!this.state.visible || this.showPromise)
267
266
  return;
268
267
  const i = this.five.getCurrentState();
269
- R(i) && (this.updateState({ visible: !1 }, e), this._hide({ userAction: e, isAutoHide: !0 }));
268
+ H(i) && (this.updateState({ visible: !1 }, e), this._hide({ userAction: e, isAutoHide: !0 }));
270
269
  });
271
270
  /** 在户型图展示时阻止多指操作, 阻止鼠标放大 */
272
271
  o(this, "onFiveWantsGesture", (t, e) => {
@@ -299,7 +298,7 @@ class Qt extends k {
299
298
  mode: "Floorplan",
300
299
  longitude: 0,
301
300
  latitude: Math.PI / 2,
302
- fov: H / ((a = e == null ? void 0 : e.scale) != null ? a : 1)
301
+ fov: T / ((a = e == null ? void 0 : e.scale) != null ? a : 1)
303
302
  };
304
303
  const i = {
305
304
  northDesc: "北",
@@ -314,12 +313,12 @@ class Qt extends k {
314
313
  roomAreaEnable: !0,
315
314
  roomNameEnable: !0,
316
315
  adaptiveRoomLabelVisibleEnable: !0,
317
- cameraImageUrl: _,
318
- attachedTo: D.BOUNDING_CENTER,
316
+ cameraImageUrl: x,
317
+ attachedTo: L.BOUNDING_CENTER,
319
318
  getLabelElement: void 0,
320
- getRoomAreaText: (n) => (n / 1e6).toFixed(1) + "㎡",
321
- getRuleDistanceText: (n) => n.toString()
322
- }, r = e ? L(e, ["selector", "scale"]) : {}, d = u(u({}, i), r);
319
+ getRoomAreaText: (s) => (s / 1e6).toFixed(1) + "㎡",
320
+ getRuleDistanceText: (s) => s.toString()
321
+ }, n = e ? y(e, ["selector", "scale"]) : {}, d = u(u({}, i), n);
323
322
  this.state = {
324
323
  enabled: !0,
325
324
  visible: !1,
@@ -328,13 +327,13 @@ class Qt extends k {
328
327
  }
329
328
  load(t, e, i = !0) {
330
329
  return f(this, null, function* () {
331
- function r(p) {
330
+ function n(p) {
332
331
  return Object.prototype.hasOwnProperty.apply(p, ["version"]);
333
332
  }
334
333
  const d = t;
335
334
  d && !d.version && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
336
- const a = JSON.parse(JSON.stringify(t)), n = r(a) ? a.data : a, l = this.data;
337
- this.data = yield b(n), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, l), e && this.updateState(e, i), this.render();
335
+ const a = JSON.parse(JSON.stringify(t)), s = n(a) ? a.data : a, l = this.data;
336
+ this.data = yield g(s), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, l), e && this.updateState(e, i), this.render();
338
337
  });
339
338
  }
340
339
  /** 把插件的渲染DOM插入到对应的容器中去 */
@@ -358,9 +357,9 @@ class Qt extends k {
358
357
  }
359
358
  /** 更改插件 State */
360
359
  setState(t, e = {}) {
361
- const i = this.state, r = e.userAction !== void 0 ? e.userAction : !0;
362
- if (this.updateState(t, r), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: r }) : this._disable({ userAction: r })), t.visible !== void 0 && i.visible !== t.visible) {
363
- const d = { userAction: r };
360
+ const i = this.state, n = e.userAction !== void 0 ? e.userAction : !0;
361
+ if (this.updateState(t, n), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: n }) : this._disable({ userAction: n })), t.visible !== void 0 && i.visible !== t.visible) {
362
+ const d = { userAction: n };
364
363
  t.visible ? this._show(d) : this._hide(d);
365
364
  }
366
365
  this.render();
@@ -370,12 +369,12 @@ class Qt extends k {
370
369
  }
371
370
  formatData(t) {
372
371
  return f(this, null, function* () {
373
- return yield b(t.data);
372
+ return yield g(t.data);
374
373
  });
375
374
  }
376
375
  updateState(t, e) {
377
- const i = this.state, r = t.config ? u(u({}, i.config), t.config) : i.config;
378
- this.state = v(u(u({}, this.state), t), { config: r }), !x(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
376
+ const i = this.state, n = t.config ? u(u({}, i.config), t.config) : i.config;
377
+ this.state = v(u(u({}, this.state), t), { config: n }), !I(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
379
378
  }
380
379
  /** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
381
380
  *
@@ -402,7 +401,7 @@ class Qt extends k {
402
401
  this.hasAddedEventListener = !1, t.off("modelLoaded", this.onFiveModelLoaded), t.off("modeChange", this.onFiveModeChange), t.off("interiaPan", this.onFiveInteriaPan), t.off("panoArrived", this.onFivePanoArrived), t.off("cameraUpdate", this.onFiveCameraUpdate), t.off("wantsGesture", this.onFiveWantsGesture), t.off("wantsPanGesture", this.onFiveWantsPanGesture), t.off("wantsTapGesture", this.onFiveWantsTapGesture), t.off("wantsChangeMode", this.onFiveWantsChangeMode), t.off("modelShownFloorChange", this.onModelShownFloorChange);
403
402
  }
404
403
  render(t) {
405
- if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
404
+ if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
406
405
  return;
407
406
  const e = v(u({}, this.state.config), {
408
407
  visible: this.state.visible,
@@ -415,9 +414,9 @@ class Qt extends k {
415
414
  });
416
415
  if (this.app)
417
416
  return this.app.$set(e);
418
- this.app = new y({ target: this.container, intro: !0, props: e });
417
+ this.app = new M({ target: this.container, intro: !0, props: e });
419
418
  }
420
419
  }
421
420
  export {
422
- Qt as Controller
421
+ Jt as Controller
423
422
  };
@@ -47,7 +47,7 @@ export interface Parameters extends Partial<Config> {
47
47
  cameraImageUrl?: string;
48
48
  };
49
49
  }
50
- export interface PluginServerData extends BasePlugin.ServerData {
50
+ export interface PluginServerData {
51
51
  version: number;
52
52
  data: FloorplanServerData;
53
53
  }
@@ -60,7 +60,7 @@ export interface Parameters extends Partial<Config> {
60
60
  selector?: string | Element;
61
61
  scale?: number;
62
62
  }
63
- export interface PluginServerData extends BasePlugin.ServerData {
63
+ export interface PluginServerData {
64
64
  version: number;
65
65
  data: FloorplanServerData;
66
66
  }