@realsee/dnalogel 2.28.0-dev.1 → 2.28.1-0

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 (421) hide show
  1. package/dist/AreaMakerPlugin/Controller.d.ts +94 -0
  2. package/dist/AreaMakerPlugin/index.d.ts +4 -0
  3. package/dist/AreaMakerPlugin/typing.d.ts +148 -0
  4. package/dist/AreaMakerPlugin/utils/Item.d.ts +115 -0
  5. package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
  6. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
  7. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -4
  8. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +2 -0
  9. package/dist/base/BasePluginWithData.d.ts +1 -1
  10. package/dist/components/AreaLabel/Assets/roomLabelBg.d.ts +1 -0
  11. package/dist/floorplan/index.d.ts +0 -1
  12. package/dist/floorplan/utils/correctFiveState.d.ts +2 -0
  13. package/dist/index.cjs.js +67 -67
  14. package/dist/index.d.ts +1 -0
  15. package/dist/index.js +6901 -7187
  16. package/dist/index.umd.js +60 -60
  17. package/dist/shared-utils/index.d.ts +1 -0
  18. package/dist/shared-utils/math/planimetry.d.ts +1 -1
  19. package/dist/shared-utils/three/core/Object3D.d.ts +8 -0
  20. package/dist/shared-utils/three/index.d.ts +2 -0
  21. package/dist/shared-utils/three/loadVideoTexture.d.ts +1 -1
  22. package/dist/shared-utils/three/objects/LineSegments.d.ts +9 -0
  23. package/docs/assets/search.js +1 -1
  24. package/docs/classes/AreaMakerPluginPluginType.AreaMakerController.html +711 -0
  25. package/docs/classes/AreaMakerPluginPluginType.AreaMakerItem.html +671 -0
  26. package/docs/classes/CSS3DRender.html +33 -34
  27. package/docs/classes/CruisePluginController.html +29 -30
  28. package/docs/classes/GuideLineItem.GuideLineItem.html +22 -23
  29. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +37 -38
  30. package/docs/classes/Magnifier.html +22 -23
  31. package/docs/classes/ModelRoomLabelController.html +13 -14
  32. package/docs/classes/Object3DHelperController.html +27 -28
  33. package/docs/classes/PaintBrush.html +17 -18
  34. package/docs/classes/PanoMeasurePluginLine.html +29 -30
  35. package/docs/classes/PanoMeasurePluginModel.html +29 -30
  36. package/docs/classes/PanoMeasurePluginPoint.html +13 -14
  37. package/docs/classes/PanoMeasurePluginPolyline.html +29 -30
  38. package/docs/classes/PanoTagPluginController.html +52 -53
  39. package/docs/classes/Util.BetterTween.html +13 -11
  40. package/docs/classes/Util.Interval.html +16 -14
  41. package/docs/classes/Util.LineSegments.html +379 -0
  42. package/docs/classes/Util.Magnifier.html +24 -22
  43. package/docs/classes/Util.Object3D.html +401 -0
  44. package/docs/classes/Util.PointDomHelper.html +15 -13
  45. package/docs/classes/Util.PointHelper.html +15 -13
  46. package/docs/classes/Util.PointSelectorHelper.html +20 -18
  47. package/docs/classes/Util.Rectangle.html +17 -15
  48. package/docs/enums/CameraMovementEffect.html +9 -10
  49. package/docs/enums/ContentType.html +22 -23
  50. package/docs/enums/DIRECTION.html +11 -12
  51. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -12
  52. package/docs/enums/DimensionType.html +9 -10
  53. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -11
  54. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -12
  55. package/docs/enums/PaintBrushTypeEnum.html +10 -11
  56. package/docs/enums/PointType.html +9 -10
  57. package/docs/enums/Rotation.html +10 -11
  58. package/docs/functions/{FloorplanRoomsPlugin.html → AreaMakerPluginPlugin.html} +12 -13
  59. package/docs/functions/CSS3DRenderPlugin.html +6 -7
  60. package/docs/functions/CameraMovementPlugin.html +6 -7
  61. package/docs/functions/CruisePlugin.html +7 -8
  62. package/docs/functions/GuideLinePlugin.html +7 -8
  63. package/docs/functions/ItemLabelPlugin.html +6 -7
  64. package/docs/functions/MapviewFloorplanPlugin.html +6 -7
  65. package/docs/functions/ModelChassisCompassPlugin.html +6 -7
  66. package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -7
  67. package/docs/functions/ModelFloorplanPlugin.html +6 -7
  68. package/docs/functions/ModelItemLabelPlugin.html +6 -7
  69. package/docs/functions/ModelRoomLabelPlugin.html +6 -7
  70. package/docs/functions/ModelTVVideoPlugin.html +6 -7
  71. package/docs/functions/ModelViewPlugin.html +6 -7
  72. package/docs/functions/Object3DHelperPlugin.html +6 -7
  73. package/docs/functions/PanoCompassPlugin.html +6 -7
  74. package/docs/functions/PanoCursorRaycasterPlugin.html +6 -7
  75. package/docs/functions/PanoDoorLabelPlugin.html +6 -7
  76. package/docs/functions/PanoFloorplanRadarPlugin.html +6 -7
  77. package/docs/functions/PanoMeasurePlugin.html +6 -7
  78. package/docs/functions/PanoRulerPlugin.html +6 -7
  79. package/docs/functions/PanoRulerProPlugin.html +6 -7
  80. package/docs/functions/PanoSpatialTagPlugin.html +6 -7
  81. package/docs/functions/PanoTagPlugin.html +6 -7
  82. package/docs/functions/PanoVideoPlugin.html +6 -7
  83. package/docs/functions/PipelinePlugin.html +6 -7
  84. package/docs/functions/TopviewFloorplanPlugin.html +6 -7
  85. package/docs/functions/Util.absoluteUrl.html +9 -7
  86. package/docs/functions/Util.equal.html +333 -0
  87. package/docs/functions/Util.getCoordsFromClient.html +9 -7
  88. package/docs/functions/Util.getCoordsFromElement.html +9 -7
  89. package/docs/functions/Util.getFrameTime.html +9 -7
  90. package/docs/functions/Util.getIntersectFromRelativePosition.html +9 -7
  91. package/docs/functions/Util.getRaycasterFromFivePointer.html +9 -7
  92. package/docs/functions/Util.isAbsoluteURL.html +9 -7
  93. package/docs/functions/Util.isModelLike.html +9 -7
  94. package/docs/functions/Util.isNil.html +9 -7
  95. package/docs/functions/Util.isPanoramaLike.html +9 -7
  96. package/docs/functions/Util.nextFrame.html +9 -7
  97. package/docs/functions/Util.notNil.html +9 -7
  98. package/docs/functions/Util.requestAnimationFrameInterval.html +9 -7
  99. package/docs/functions/Util.tweenProgress.html +9 -7
  100. package/docs/functions/Util.uuid.html +9 -7
  101. package/docs/functions/pluginFlag.html +7 -8
  102. package/docs/index.html +7 -8
  103. package/docs/interfaces/AddTagConfig.html +8 -9
  104. package/docs/interfaces/AreaMakerPluginPluginType.AnimeOptions.html +325 -0
  105. package/docs/interfaces/AreaMakerPluginPluginType.Config.html +330 -0
  106. package/docs/interfaces/AreaMakerPluginPluginType.EventMap.html +616 -0
  107. package/docs/interfaces/AreaMakerPluginPluginType.Params.html +329 -0
  108. package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItem.html +379 -0
  109. package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItemV1.html +364 -0
  110. package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV1.html +329 -0
  111. package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV2.html +322 -0
  112. package/docs/interfaces/AreaMakerPluginPluginType.ShowHideOptions.html +321 -0
  113. package/docs/interfaces/AreaMakerPluginPluginType.State.html +350 -0
  114. package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -14
  115. package/docs/interfaces/CSS3DRenderPluginState.html +10 -11
  116. package/docs/interfaces/CameraMovementPluginExportType.html +9 -10
  117. package/docs/interfaces/CruisePluginTypes.Config.html +10 -11
  118. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +14 -15
  119. package/docs/interfaces/CruisePluginTypes.EventMap.html +22 -23
  120. package/docs/interfaces/CruisePluginTypes.MoveAction.html +14 -15
  121. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +16 -17
  122. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +16 -17
  123. package/docs/interfaces/CruisePluginTypes.PluginData.html +11 -12
  124. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -9
  125. package/docs/interfaces/CruisePluginTypes.PluginState.html +13 -14
  126. package/docs/interfaces/EventMap.html +17 -18
  127. package/docs/interfaces/FloorplanBounding.html +10 -11
  128. package/docs/interfaces/FloorplanData.html +12 -13
  129. package/docs/interfaces/FloorplanEntrance.html +13 -14
  130. package/docs/interfaces/FloorplanExtraObject.html +12 -13
  131. package/docs/interfaces/FloorplanExtraObject3D.html +10 -11
  132. package/docs/interfaces/FloorplanFloorData.html +11 -12
  133. package/docs/interfaces/FloorplanImagePosition.html +9 -10
  134. package/docs/interfaces/FloorplanObserver.html +11 -12
  135. package/docs/interfaces/FloorplanOutlineItem.html +11 -12
  136. package/docs/interfaces/FloorplanPosition.html +9 -10
  137. package/docs/interfaces/FloorplanRoomItem.html +15 -16
  138. package/docs/interfaces/FloorplanRoomLabelItem.html +9 -10
  139. package/docs/interfaces/FloorplanServerBounding.html +10 -11
  140. package/docs/interfaces/FloorplanServerComputedData.html +12 -13
  141. package/docs/interfaces/FloorplanServerData.html +9 -10
  142. package/docs/interfaces/FloorplanServerDoorItem.html +12 -13
  143. package/docs/interfaces/FloorplanServerDoorPosition.html +10 -11
  144. package/docs/interfaces/FloorplanServerEntrance.html +13 -14
  145. package/docs/interfaces/FloorplanServerFloorData.html +11 -12
  146. package/docs/interfaces/FloorplanServerImagePosition.html +9 -10
  147. package/docs/interfaces/FloorplanServerObserver.html +11 -12
  148. package/docs/interfaces/FloorplanServerOutlineItem.html +11 -12
  149. package/docs/interfaces/FloorplanServerPosition.html +9 -10
  150. package/docs/interfaces/FloorplanServerRoomItem.html +16 -17
  151. package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -10
  152. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -11
  153. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +12 -13
  154. package/docs/interfaces/GuideLinePluginType.EventMap.html +15 -16
  155. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +10 -11
  156. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +8 -9
  157. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +15 -16
  158. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +10 -11
  159. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +20 -21
  160. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -10
  161. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +20 -21
  162. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +7 -8
  163. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -9
  164. package/docs/interfaces/GuideLinePluginType.PluginState.html +10 -11
  165. package/docs/interfaces/GuideLinePluginType.Route.html +13 -14
  166. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +11 -12
  167. package/docs/interfaces/HelperOffset.html +10 -11
  168. package/docs/interfaces/ImagePlaneGroup.html +8 -9
  169. package/docs/interfaces/ItemLabelPluginData.html +8 -9
  170. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -14
  171. package/docs/interfaces/ItemLabelPluginParametersType.html +11 -12
  172. package/docs/interfaces/MinMax.html +9 -10
  173. package/docs/interfaces/ModelChassisCompassPluginData.html +9 -10
  174. package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -11
  175. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -10
  176. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -11
  177. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -11
  178. package/docs/interfaces/ModelItemLabelPluginData.html +8 -9
  179. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -14
  180. package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -10
  181. package/docs/interfaces/ModelRoomLabelPluginData.html +8 -9
  182. package/docs/interfaces/ModelTVVideoPluginData.html +11 -12
  183. package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -11
  184. package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -9
  185. package/docs/interfaces/ModelViewPluginExportType.html +13 -14
  186. package/docs/interfaces/Object3DHelperState.html +10 -11
  187. package/docs/interfaces/ObjectHelperControllers.html +11 -12
  188. package/docs/interfaces/PaintBrushAction.html +14 -15
  189. package/docs/interfaces/PaintBrushConfigs.html +14 -15
  190. package/docs/interfaces/PaintBrushState.html +12 -13
  191. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -13
  192. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -8
  193. package/docs/interfaces/PanoMeasureParameterType.html +18 -19
  194. package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -11
  195. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -10
  196. package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -10
  197. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -11
  198. package/docs/interfaces/PanoRulerPluginExportType.html +12 -13
  199. package/docs/interfaces/PanoRulerPluginOptions.html +9 -10
  200. package/docs/interfaces/PanoRulerPluginParameterType.html +10 -11
  201. package/docs/interfaces/PanoRulerProPluginExportType.html +11 -12
  202. package/docs/interfaces/PanoRulerProPluginOptions.html +9 -10
  203. package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -10
  204. package/docs/interfaces/PanoRulerProPluginState.html +10 -11
  205. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -8
  206. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -8
  207. package/docs/interfaces/PanoSpatialTagPluginData.html +13 -14
  208. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -13
  209. package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -16
  210. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -13
  211. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -16
  212. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -14
  213. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -13
  214. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -9
  215. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -11
  216. package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -9
  217. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -12
  218. package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -9
  219. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -11
  220. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -13
  221. package/docs/interfaces/Point.html +10 -11
  222. package/docs/interfaces/Room.html +11 -12
  223. package/docs/interfaces/RoomInfo.html +9 -10
  224. package/docs/interfaces/RoomLabel.html +16 -17
  225. package/docs/interfaces/RoomRules.html +7 -8
  226. package/docs/interfaces/Rooms.html +7 -8
  227. package/docs/interfaces/Scissor.html +11 -12
  228. package/docs/interfaces/State.html +10 -11
  229. package/docs/interfaces/TagCacheInterface.html +14 -15
  230. package/docs/interfaces/TagConfig.html +17 -18
  231. package/docs/interfaces/TagGLTFObjectGroup.html +8 -9
  232. package/docs/interfaces/TagIconUrl.html +14 -15
  233. package/docs/interfaces/TagObjectGroup.html +8 -9
  234. package/docs/interfaces/TagStyle.html +8 -9
  235. package/docs/interfaces/Tags.html +11 -12
  236. package/docs/interfaces/TemporaryState.html +8 -9
  237. package/docs/interfaces/Util.MagnifierParameter.html +15 -13
  238. package/docs/interfaces/Util.MouseGroupParameter.html +12 -10
  239. package/docs/interfaces/Util.PointIntersection.html +12 -10
  240. package/docs/modules/AreaMakerPluginPluginType.html +319 -0
  241. package/docs/modules/CruisePluginTypes.html +7 -8
  242. package/docs/modules/GuideLineItem.html +7 -8
  243. package/docs/modules/GuideLineModeItem.html +7 -8
  244. package/docs/modules/GuideLinePluginType.html +7 -8
  245. package/docs/modules/PanoVideoPluginType.html +7 -8
  246. package/docs/modules/Util.html +12 -7
  247. package/docs/modules.html +10 -12
  248. package/docs/types/AreaMakerPluginPluginType.AreaMakerItemEventMap.html +327 -0
  249. package/docs/types/{FloorplanRoomsPluginReturnType.html → AreaMakerPluginPluginType.PluginData.html} +35 -14
  250. package/docs/types/{FloorplanRoomsPluginParameterType.html → AreaMakerPluginPluginType.ServerData.html} +35 -14
  251. package/docs/types/ArrayPosition.html +7 -8
  252. package/docs/types/AudioAppearance.html +7 -8
  253. package/docs/types/AudioTagTypeConfigKey.html +7 -8
  254. package/docs/types/CSS3DRenderExportType.html +7 -8
  255. package/docs/types/CSS3DRenderPluginExportType.html +7 -8
  256. package/docs/types/CSS3DRenderPluginParameterType.html +7 -8
  257. package/docs/types/ClassFunctionParameters.html +7 -8
  258. package/docs/types/Color.html +7 -8
  259. package/docs/types/ContentTypeConfigKey.html +7 -8
  260. package/docs/types/ContentTypeConfigKeySplit.html +7 -8
  261. package/docs/types/ContentTypeMap.html +7 -8
  262. package/docs/types/Create3DDomContainerReturnType.html +7 -8
  263. package/docs/types/Create3DElementReturnType.html +7 -8
  264. package/docs/types/CruisePluginExportType.html +7 -8
  265. package/docs/types/CruisePluginTypes.CruiseData.html +7 -8
  266. package/docs/types/CruisePluginTypes.MoveEffect.html +7 -8
  267. package/docs/types/DeprecatedMediaPlaneProperty.html +7 -8
  268. package/docs/types/DeprecatedTagProperty.html +7 -8
  269. package/docs/types/Direction-1.html +7 -8
  270. package/docs/types/Direction4.html +7 -8
  271. package/docs/types/ElementRenderer.html +7 -8
  272. package/docs/types/FloorplanRuleLabels.html +7 -8
  273. package/docs/types/FloorplanServerRuleLabels.html +7 -8
  274. package/docs/types/GuideLinePluginExportType.html +7 -8
  275. package/docs/types/GuideLinePluginType.GuideLineItem.html +7 -8
  276. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +7 -8
  277. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +7 -8
  278. package/docs/types/GuideLinePluginType.GuideLineStyle.html +7 -8
  279. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +7 -8
  280. package/docs/types/GuideLinePluginType.PathItem.html +7 -8
  281. package/docs/types/GuideLinePluginType.PluginData.html +7 -8
  282. package/docs/types/HelperEventMap.html +7 -8
  283. package/docs/types/LoadTagConfig.html +7 -8
  284. package/docs/types/MapviewFloorplanPluginParameterType.html +7 -8
  285. package/docs/types/MapviewFloorplanPluginReturnType.html +7 -8
  286. package/docs/types/MediaData.html +7 -8
  287. package/docs/types/MediaStore.html +7 -8
  288. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -8
  289. package/docs/types/ModelFloorplanPluginParameterType.html +7 -8
  290. package/docs/types/ModelFloorplanPluginReturnType.html +7 -8
  291. package/docs/types/ModelRoomLabelPluginParameters.html +7 -8
  292. package/docs/types/ModelRoomLabelPluginReturnType.html +7 -8
  293. package/docs/types/MoveArgs.html +7 -8
  294. package/docs/types/MoveOpts.html +7 -8
  295. package/docs/types/Object3DHelperEventMap.html +7 -8
  296. package/docs/types/ObjectFit.html +7 -8
  297. package/docs/types/PaintBrushEventMap.html +7 -8
  298. package/docs/types/PanoCompassPluginData.html +7 -8
  299. package/docs/types/PanoCompassPluginExportType.html +7 -8
  300. package/docs/types/PanoCompassPluginParameterType.html +7 -8
  301. package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -8
  302. package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -8
  303. package/docs/types/PanoIndex.html +7 -8
  304. package/docs/types/PanoMeasurePluginEvent.html +7 -8
  305. package/docs/types/PanoMeasureReturnType.html +7 -8
  306. package/docs/types/PanoSpatialTagPluginId.html +7 -8
  307. package/docs/types/PanoTagPluginExportInterface.html +7 -8
  308. package/docs/types/PanoTagPluginParamsInterface.html +7 -8
  309. package/docs/types/PanoVideoPluginParameterType.html +7 -8
  310. package/docs/types/PanoVideoPluginReturnType.html +7 -8
  311. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +7 -8
  312. package/docs/types/PipelinePluginParameterType.html +7 -8
  313. package/docs/types/PipelinePluginReturnType.html +7 -8
  314. package/docs/types/PlaneTag.html +7 -8
  315. package/docs/types/Point2DTag.html +7 -8
  316. package/docs/types/Point3DTag.html +7 -8
  317. package/docs/types/PointTag.html +7 -8
  318. package/docs/types/PointTagInstance.html +7 -8
  319. package/docs/types/Position.html +7 -8
  320. package/docs/types/RotateArgs.html +7 -8
  321. package/docs/types/RotateOpts.html +7 -8
  322. package/docs/types/RuleLabelsKey.html +7 -8
  323. package/docs/types/RuleLabelsValue.html +7 -8
  324. package/docs/types/StickType.html +7 -8
  325. package/docs/types/Tag.html +9 -10
  326. package/docs/types/Tag2D.html +7 -8
  327. package/docs/types/Tag3D.html +7 -8
  328. package/docs/types/TagConfigByKey.html +7 -8
  329. package/docs/types/TagContentType.html +7 -8
  330. package/docs/types/TagDimensionType.html +7 -8
  331. package/docs/types/TagElement.html +7 -8
  332. package/docs/types/TagEvents.html +7 -8
  333. package/docs/types/TagGLTFObject.html +7 -8
  334. package/docs/types/TagHooks.html +7 -8
  335. package/docs/types/TagId.html +7 -8
  336. package/docs/types/TagInstance.html +7 -8
  337. package/docs/types/TagPointType.html +7 -8
  338. package/docs/types/TagRendererMap.html +7 -8
  339. package/docs/types/TopviewFloorplanPluginParameterType.html +7 -8
  340. package/docs/types/TopviewFloorplanPluginReturnType.html +7 -8
  341. package/docs/types/WorkCode.html +7 -8
  342. package/docs/variables/FLOOR_TYPE_MAP.html +7 -8
  343. package/docs/variables/PLUGIN.html +7 -8
  344. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -8
  345. package/docs/variables/ROOM_TYPE_MAP.html +7 -8
  346. package/docs/variables/defaultGlobalConfig.html +8 -9
  347. package/docs/variables/itemLabelPluginServerParams.html +7 -8
  348. package/docs/variables/modelItemLabelPluginServerParams.html +7 -8
  349. package/docs/variables/modelRoomLabelPluginServerParams.html +7 -8
  350. package/libs/AreaMakerPlugin/Controller.d.ts +94 -0
  351. package/libs/AreaMakerPlugin/Controller.js +336 -0
  352. package/libs/AreaMakerPlugin/index.d.ts +4 -0
  353. package/libs/AreaMakerPlugin/index.js +37 -0
  354. package/libs/AreaMakerPlugin/typing.d.ts +148 -0
  355. package/libs/AreaMakerPlugin/utils/Item.d.ts +115 -0
  356. package/libs/AreaMakerPlugin/utils/Item.js +266 -0
  357. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +42 -39
  358. package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
  359. package/libs/GuideLinePlugin/utils/createLineGeometry.js +13 -13
  360. package/libs/PanoTagPlugin/controller/TagRender.js +19 -18
  361. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
  362. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -4
  363. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +2 -0
  364. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +10 -10
  365. package/libs/base/BasePlugin.js +1 -1
  366. package/libs/base/BasePluginWithData.d.ts +1 -1
  367. package/libs/components/AreaLabel/Assets/roomLabelBg.d.ts +1 -0
  368. package/libs/components/AreaLabel/Assets/roomLabelBg.js +4 -0
  369. package/libs/components/AreaLabel/LabelItem.js +125 -0
  370. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +49 -48
  371. package/libs/floorplan/index.d.ts +0 -1
  372. package/libs/floorplan/utils/correctFiveState.d.ts +2 -0
  373. package/libs/floorplan/utils/correctFiveState.js +28 -28
  374. package/libs/index.d.ts +1 -0
  375. package/libs/index.js +120 -122
  376. package/libs/shared-utils/device.js +0 -1
  377. package/libs/shared-utils/five/changeMode.js +32 -29
  378. package/libs/shared-utils/index.d.ts +1 -0
  379. package/libs/shared-utils/index.js +27 -21
  380. package/libs/shared-utils/logger.js +1 -1
  381. package/libs/shared-utils/math/planimetry.d.ts +1 -1
  382. package/libs/shared-utils/math/planimetry.js +36 -29
  383. package/libs/shared-utils/three/core/Object3D.d.ts +8 -0
  384. package/libs/shared-utils/three/core/Object3D.js +22 -0
  385. package/libs/shared-utils/three/index.d.ts +2 -0
  386. package/libs/shared-utils/three/loadVideoTexture.d.ts +1 -1
  387. package/libs/shared-utils/three/loadVideoTexture.js +6 -6
  388. package/libs/shared-utils/three/objects/LineSegments.d.ts +9 -0
  389. package/libs/shared-utils/three/objects/LineSegments.js +9 -0
  390. package/libs/vendor/svelte/internal/index.js +79 -85
  391. package/package.json +2 -2
  392. package/dist/floorplan/FloorplanRoomsPlugin/BasePlugin.d.ts +0 -114
  393. package/dist/floorplan/FloorplanRoomsPlugin/BasePluginWithData.d.ts +0 -23
  394. package/dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.svelte.d.ts +0 -1
  395. package/dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.svelte.d.ts +0 -1
  396. package/dist/floorplan/FloorplanRoomsPlugin/Components/Main.svelte.d.ts +0 -1
  397. package/dist/floorplan/FloorplanRoomsPlugin/Controller.d.ts +0 -40
  398. package/dist/floorplan/FloorplanRoomsPlugin/index.d.ts +0 -6
  399. package/dist/floorplan/FloorplanRoomsPlugin/typing.d.ts +0 -60
  400. package/libs/floorplan/FloorplanRoomsPlugin/BasePlugin.d.ts +0 -114
  401. package/libs/floorplan/FloorplanRoomsPlugin/BasePlugin.js +0 -51
  402. package/libs/floorplan/FloorplanRoomsPlugin/BasePluginWithData.d.ts +0 -23
  403. package/libs/floorplan/FloorplanRoomsPlugin/BasePluginWithData.js +0 -25
  404. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.js +0 -188
  405. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.svelte.d.ts +0 -1
  406. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.js +0 -94
  407. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.svelte.d.ts +0 -1
  408. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.js +0 -111
  409. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.svelte.d.ts +0 -1
  410. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.js +0 -191
  411. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.svelte.d.ts +0 -1
  412. package/libs/floorplan/FloorplanRoomsPlugin/Components/Main.js +0 -237
  413. package/libs/floorplan/FloorplanRoomsPlugin/Components/Main.svelte.d.ts +0 -1
  414. package/libs/floorplan/FloorplanRoomsPlugin/Controller.d.ts +0 -40
  415. package/libs/floorplan/FloorplanRoomsPlugin/Controller.js +0 -207
  416. package/libs/floorplan/FloorplanRoomsPlugin/index.d.ts +0 -6
  417. package/libs/floorplan/FloorplanRoomsPlugin/index.js +0 -43
  418. package/libs/floorplan/FloorplanRoomsPlugin/typing.d.ts +0 -60
  419. /package/dist/{floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.svelte.d.ts → components/AreaLabel/LabelItem.svelte.d.ts} +0 -0
  420. /package/libs/{floorplan/FloorplanRoomsPlugin → AreaMakerPlugin}/typing.js +0 -0
  421. /package/{dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.svelte.d.ts → libs/components/AreaLabel/LabelItem.svelte.d.ts} +0 -0
@@ -0,0 +1,94 @@
1
+ import * as THREE from 'three';
2
+ import type { Five } from '@realsee/five';
3
+ import * as BasePlugin from '../base/BasePluginWithData';
4
+ import { AreaMakerItem } from './utils/Item';
5
+ import type * as PluginType from './typing';
6
+ export declare class Controller extends BasePlugin.Controller<PluginType.State, PluginType.EventMap, PluginType.ServerData, PluginType.PluginData> {
7
+ /** 插件当前状态 */
8
+ state: PluginType.State;
9
+ /** 标注模型 { id: item } 的映射表 */
10
+ itemMap: Map<string | number, AreaMakerItem>;
11
+ /** 标注模型容器 */
12
+ modelGroup: THREE.Group;
13
+ /** 当前使用的数据 */
14
+ data?: PluginType.PluginData;
15
+ /** tag 容器 */
16
+ tagDomContainer: HTMLDivElement;
17
+ /** 插件配置项 */
18
+ get config(): {
19
+ modelDepthTest: boolean;
20
+ };
21
+ /** 是否已经被销毁 */
22
+ get disposed(): boolean;
23
+ /** 查询问题使用的调试对象 */
24
+ checkMsg: {
25
+ childrenMountedState: string;
26
+ };
27
+ /** 是否在 Five Change Mode 动画中 */
28
+ private isInFiveChangeModeAnime;
29
+ /** 子组件是否挂载 */
30
+ private childrenMountedState;
31
+ /** config 的原始值 */
32
+ private _config;
33
+ /** disposed 的原始值 */
34
+ private _disposed;
35
+ /** AreaMakerPlugin
36
+ * @param `five` `<Five>` Five 实例
37
+ * @param `params` `<PluginType.Params> | <undefined>` 插件初始化参数
38
+ * @param `params.initialState` `<PluginType.State> | <undefined>` 插件初始化后,使用的状态
39
+ */
40
+ constructor(five: Five, params?: PluginType.Params);
41
+ /** 加载数据,重复调用会使用新数据覆盖旧数据 */
42
+ load(data: PluginType.ServerData): Promise<void>;
43
+ /** 将插件的 DOM 容器添加到指定的 DOM 元素上 */
44
+ appendTo(wrapper: Element): void;
45
+ /** 启用插件
46
+ * @param `options` `<Option> | <undefined>`
47
+ * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
48
+ */
49
+ enable(options?: BasePlugin.BaseOptions): void;
50
+ /** 禁用插件
51
+ * @param `options` `<Option> | <undefined>`
52
+ * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
53
+ */
54
+ disable(options?: BasePlugin.BaseOptions): void;
55
+ /** 展示标注
56
+ * @param `options` `<Partial<ShowHideOptions>> | <undefined>`
57
+ * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
58
+ */
59
+ show(options?: Partial<PluginType.ShowHideOptions>): Promise<void>;
60
+ /** 插件内容整体隐藏
61
+ * @param `options` `<Partial<ShowHideOptions>> | <undefined>`
62
+ * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
63
+ */
64
+ hide(options?: Partial<PluginType.ShowHideOptions>): Promise<void>;
65
+ /** 更改插件 State
66
+ * @param `state` `<Partial<Plugin.State>>` 插件属性 `state` 的子集。
67
+ * @param `options` `<Option> | <undefined>`
68
+ * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
69
+ */
70
+ setState(state: Partial<PluginType.State>, options?: BasePlugin.BaseOptions): void;
71
+ /** 更改插件 Config
72
+ * @param `config` `<Partial<Plugin.Config>>` 插件属性 `config` 的子集。
73
+ * @param `options` `<Option> | <undefined>`
74
+ */
75
+ updateConfig(config: Partial<PluginType.Config>, options?: BasePlugin.BaseOptions): void;
76
+ /** 根据 ID 获取标注 */
77
+ getMaskItemByID(id: string | number): AreaMakerItem;
78
+ /** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
79
+ dispose: () => void;
80
+ protected formatData(serverData: PluginType.ServerData): PluginType.PluginData;
81
+ private checkChildrenMountedState;
82
+ private updateChildrenMountedState;
83
+ private onFiveInitAnimationWillStart;
84
+ private onFiveInitAnimationEnded;
85
+ private onFiveCameraUpdate;
86
+ private onFiveModeChange;
87
+ private onMakerTagClick;
88
+ private updateState;
89
+ private _enable;
90
+ private onWantsFiveTapGesture;
91
+ private _disable;
92
+ private _show;
93
+ private _hide;
94
+ }
@@ -0,0 +1,4 @@
1
+ import type { Five } from '@realsee/five';
2
+ import type * as AreaMakerPluginType from './typing';
3
+ export declare const AreaMakerPlugin: (five: Five) => AreaMakerPluginType.AreaMakerController;
4
+ export type { AreaMakerPluginType };
@@ -0,0 +1,148 @@
1
+ import type * as BasePlugin from '../base/BasePluginWithData';
2
+ import type * as THREE from 'three';
3
+ import type { AreaMakerItem } from './utils/Item';
4
+ export type { Controller as AreaMakerController } from './Controller';
5
+ export type { AreaMakerItem };
6
+ /** 插件初始化参数 */
7
+ export interface Params {
8
+ config?: Partial<Config>;
9
+ initialState?: Partial<State>;
10
+ }
11
+ /** 插件状态 */
12
+ export interface State extends BasePlugin.State {
13
+ /** 插件是否启用 */
14
+ enabled: boolean;
15
+ /** 插件整体是否可见 */
16
+ visible: boolean;
17
+ }
18
+ /** 插件配置 */
19
+ export interface Config {
20
+ /** 标注模型是否开启深度检测,此配置仅对模型生效,不会影响标签的展示效果。
21
+ * @default true
22
+ * @description 关闭后,标注模型不会被其他模型遮挡
23
+ */
24
+ modelDepthTest: boolean;
25
+ }
26
+ /** 插件事件 */
27
+ export interface EventMap extends BasePlugin.EventMap<State, ServerData> {
28
+ /** visible 从 false 到 true 的回调
29
+ * @param event.userAction 是否是用户操作
30
+ */
31
+ show: (event: {
32
+ userAction: boolean;
33
+ }) => void;
34
+ /** visible 从 true 到 false 的回调
35
+ * @param event.userAction 是否是用户操作
36
+ */
37
+ hide: (event: {
38
+ userAction: boolean;
39
+ }) => void;
40
+ /** enabled 从 false 到 true 的回调
41
+ * @param event.userAction 是否是用户操作
42
+ */
43
+ enable: (event: {
44
+ userAction: boolean;
45
+ }) => void;
46
+ /** enabled 从 true 到 false 的回调
47
+ * @param event.userAction 是否是用户操作
48
+ */
49
+ disable: (event: {
50
+ userAction: boolean;
51
+ }) => void;
52
+ /** config 变更的回调
53
+ * @param event.prevConfig 变更前的 config
54
+ * @param event.config 变更后的 config
55
+ * @param event.userAction 是否是用户操作
56
+ */
57
+ configChange: (event: {
58
+ prevConfig: Config;
59
+ config: Config;
60
+ userAction: boolean;
61
+ }) => void;
62
+ /** 插件内容点击的回调
63
+ * @param event.target 点击的标注实例
64
+ * @param event.intersectObjects 射线与标注模型的交点集合
65
+ * @param event.wantsFiveTapGestureParams Five wantsFiveTapGesture 的回调参数
66
+ * @returns <boolean> | <void> 返回 false 会阻止 Five wantsFiveTapGesture 的回调,其余 return 值会被忽略
67
+ */
68
+ wantsTap: (event: {
69
+ target: AreaMakerItem;
70
+ intersectObjects: THREE.Intersection[];
71
+ }) => boolean | void;
72
+ }
73
+ /** 标注实例事件 */
74
+ export type AreaMakerItemEventMap = {
75
+ /** 标注标签点击的回调
76
+ * @param event.target 点击的标注实例
77
+ * @param event.nativeEvent 点击事件的的原始 MouseEvent
78
+ */
79
+ tagClick: (event: {
80
+ target: AreaMakerItem;
81
+ nativeEvent: MouseEvent;
82
+ }) => void;
83
+ };
84
+ /** 动画相关的配置 */
85
+ export interface AnimeOptions {
86
+ /** 动画时长,单位是毫秒 */
87
+ duration?: number;
88
+ }
89
+ export interface ShowHideOptions extends BasePlugin.BaseOptions {
90
+ userAction: boolean;
91
+ }
92
+ /** 第一版数据
93
+ * @description 为什么会存在两种数据?
94
+ * 目前数据是线上已经存在的,这一版数据目前存在以下问题:
95
+ * 1. 无法描述弧线。
96
+ * 2. 数据结构不够清晰,数据存在一定产品逻辑上的抽象,比如说标注的高度,是由楼层高度和人工设置的高度修正组成的。
97
+ */
98
+ export interface ServerDataV1 {
99
+ list: ServerAreaMakerItemV1[];
100
+ }
101
+ /** 第二版数据 */
102
+ export interface ServerDataV2 {
103
+ list: ServerAreaMakerItem[];
104
+ }
105
+ /** load 的数据 */
106
+ export type ServerData = ServerDataV1 | ServerDataV2;
107
+ /** 插件使用的数据 */
108
+ export type PluginData = ServerDataV2;
109
+ export interface ServerAreaMakerItem {
110
+ id: number | string;
111
+ /** 标注名称 */
112
+ name?: string;
113
+ /** 标注所在楼层 */
114
+ floor_index: number;
115
+ /** 标注物体 */
116
+ object_data: {
117
+ /** 标注底面形状,THREE.Shape().toJSON() 的结果 */
118
+ shape: Record<string, any>;
119
+ /** 标注底面 y 坐标 */
120
+ bottom_y: number;
121
+ /** 标注高度,指标注顶部距离底部的距离。只能为正值,单位是米 */
122
+ height: number;
123
+ /** 标注颜色
124
+ * @example "#ffffff"
125
+ */
126
+ color?: string;
127
+ /** 标注透明度 */
128
+ opacity?: number;
129
+ };
130
+ }
131
+ export interface ServerAreaMakerItemV1 {
132
+ id: number;
133
+ name: string;
134
+ object_data: {
135
+ /** 绘制平面的三维世界坐标点集合 */
136
+ points: number[][];
137
+ /** 楼层索引 */
138
+ floorIndex: number;
139
+ /** 楼层高度 */
140
+ height: number;
141
+ /** 人工设置的y坐标方向偏移 */
142
+ fixedY: number;
143
+ /** 人工设置的高度修正 */
144
+ fixedHeight: number;
145
+ color: string;
146
+ opacity?: number;
147
+ };
148
+ }
@@ -0,0 +1,115 @@
1
+ import * as THREE from 'three';
2
+ import { Object3D } from '../../shared-utils';
3
+ import { LineSegments } from '../../shared-utils';
4
+ import type { Controller } from '../Controller';
5
+ import type * as PluginType from '../typing';
6
+ import LabelItem from '../../components/AreaLabel/LabelItem.svelte';
7
+ import { Subscribe } from '../../shared-utils/Subscribe';
8
+ declare class AreaMakerModelGroup extends Object3D {
9
+ private areaMakerItem;
10
+ constructor(areaMakerItem: AreaMakerItem);
11
+ raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
12
+ }
13
+ export declare class AreaMakerItem {
14
+ id: string | number;
15
+ /** 标注名称 */
16
+ name: string;
17
+ /** 标注几何体 */
18
+ makerObject: THREE.Mesh<THREE.ExtrudeBufferGeometry, THREE.MeshBasicMaterial>;
19
+ /** 标注几何体的边框 */
20
+ outline: LineSegments<THREE.EdgesGeometry, THREE.LineBasicMaterial>;
21
+ /** 标注底面 Y 坐标 */
22
+ bottomY: PluginType.ServerAreaMakerItem['object_data']['bottom_y'];
23
+ /** 标注透明度 */
24
+ opacity: PluginType.ServerAreaMakerItem['object_data']['opacity'];
25
+ /** 标注高度 */
26
+ height: PluginType.ServerAreaMakerItem['object_data']['height'];
27
+ /** 标注所在楼层 */
28
+ floorIndex: PluginType.ServerAreaMakerItem['floor_index'];
29
+ /** 标注底面形状 */
30
+ shape: THREE.Shape;
31
+ /** 是否被挂载 */
32
+ mounted: boolean;
33
+ /** 查询问题使用的调试对象 */
34
+ checkMsg: {
35
+ /** 当标注没有展示时,可以通过这个字段查看原因 */
36
+ checkVisibleMsg: string;
37
+ /** 当标注标签没有展示时,可以通过这个字段查看原因 */
38
+ checkTagVisibleMsg: string;
39
+ };
40
+ /** 模型容器 */
41
+ modelGroup: AreaMakerModelGroup;
42
+ /** 标注是否可见 */
43
+ visible: boolean;
44
+ /** 标注标签实例 */
45
+ tagApp: LabelItem | null;
46
+ /** 标注标签是否可见 */
47
+ tagVisible: boolean;
48
+ /** 标注标签的世界坐标 */
49
+ tagPosition: THREE.Vector3;
50
+ /** 标注标签的 NDC 坐标 */
51
+ tagNDCPosition: THREE.Vector3;
52
+ /** 标注标签的 transform */
53
+ tagTransform: {
54
+ left: number;
55
+ top: number;
56
+ };
57
+ /** 标注标签的显示层级 */
58
+ tagZIndex: number;
59
+ hooks: Subscribe<PluginType.AreaMakerItemEventMap>;
60
+ /** Plugin 实例 */
61
+ private plugin;
62
+ /** 标注透明度动画 */
63
+ private opacityAnime?;
64
+ constructor(plugin: Controller, data: PluginType.ServerAreaMakerItem);
65
+ /** 挂载标注 */
66
+ mount(): void;
67
+ /** 卸载标注 */
68
+ unmount(): void;
69
+ /** 更改标注透明度
70
+ * @param opacity 标注透明度,范围:0-1
71
+ */
72
+ setOpacity(opacity: number): void;
73
+ /** 更改标注颜色
74
+ * @param color 标注颜色,支持 hex
75
+ * @example setColor('#FF0000')
76
+ */
77
+ setColor(color: string): void;
78
+ /** 更改标注高度
79
+ * @param height 标注高度,单位:米
80
+ */
81
+ setHeight(height: number): void;
82
+ /** 更改标注标签的显示层级
83
+ * @description 为什么需要这个方法
84
+ * 在相机朝向或位置发生变化时,各个标签所在的坐标与相机的远近关系发生了变化,所以标签的层级也会有变化。
85
+ * 比如:
86
+ * - 相机 -> 标签 A -> 标签 B: 标签 A 在标签 B 的前面
87
+ * - 标签 A <- 标签 B <- 相机: 标签 A 在标签 B 的后面
88
+ * 但是当前元素是无法感知到这种变化的,所以需要通过父元素调用这个方法来更新标签的层级。
89
+ */
90
+ setTagZIndex(zIndex: number): void;
91
+ /** 显示标注 */
92
+ /** 隐藏标注 */
93
+ /** 透明度动画 */
94
+ private doOpacityAnime;
95
+ /** 插件 Config 变化时更新自身 depthTest */
96
+ private onPluginConfigChange;
97
+ private onPluginStateChange;
98
+ /** 更新标注可见性 */
99
+ private updateVisible;
100
+ /** 检测标注是否可见 */
101
+ private checkVisible;
102
+ /** 更新标注标签 */
103
+ private updateTag;
104
+ /** 更新标注标签的 NDC Position */
105
+ private updateTagNDCPosition;
106
+ /** 更新标注标签的 transform */
107
+ private updateTagDomTransform;
108
+ /** 更新标注标签可见性 */
109
+ private updateTagVisible;
110
+ /** 检测标注标签是否可见 */
111
+ private checkTagVisible;
112
+ /** 相机位姿发生变化时,更新标签 */
113
+ private onFiveCameraUpdate;
114
+ }
115
+ export {};
@@ -17,11 +17,6 @@ interface LineGeometryOption {
17
17
  * @returns THREE BufferGeometry
18
18
  */
19
19
  export declare function createLineGeometry(options: LineGeometryOption): {
20
- geometry: THREE.BufferGeometry;
21
- maxU: number;
22
- curvePath?: undefined;
23
- curvePoints?: undefined;
24
- } | {
25
20
  geometry: THREE.BufferGeometry;
26
21
  maxU: number;
27
22
  curvePath: THREE.CurvePath<THREE.Vector3>;
@@ -33,7 +33,7 @@ export type Tag<C extends TagContentType = TagContentType, S extends StickType =
33
33
  /** 标签 wrapper 的 classname */
34
34
  className?: string;
35
35
  /** 标签数据 */
36
- data: C extends TagContentType ? ContentTypeMap[C] : ContentTypeMap[keyof ContentTypeMap];
36
+ data: ContentTypeMap[C];
37
37
  /** 「展开/收起」 「可见/不可见」 的策略配置 */
38
38
  config?: TagConfig<C>;
39
39
  /** 打标签时的 five state */
@@ -141,9 +141,7 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
141
141
  * @description: 标签的默认数据,会将 tag.data 深度合并进来
142
142
  * @code `tag.data = ObjectAssignDeep(initialData, tag.data)`
143
143
  */
144
- initialData?: (C extends TagContentType ? PartialObjectDeep<ContentTypeMap[C]> : {
145
- [key: string]: any;
146
- }) & {
144
+ initialData?: PartialObjectDeep<ContentTypeMap[C]> & {
147
145
  /**
148
146
  * @description: 类似 css 的 !important,会覆盖掉 tag.data 中对应的数据
149
147
  * @code
@@ -173,5 +171,5 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
173
171
  clickable?: boolean;
174
172
  isMerged?: boolean;
175
173
  }
176
- export declare const defaultGlobalConfig: TagConfig<any>;
174
+ export declare const defaultGlobalConfig: TagConfig;
177
175
  export {};
@@ -156,6 +156,8 @@ interface ContentTypeMapInterface {
156
156
  type ContentTypeMapInterfaceWithExtraData = {
157
157
  [key in keyof ContentTypeMapInterface]: ContentTypeMapInterface[key] & {
158
158
  extraData?: Object;
159
+ } & {
160
+ [key: string]: any;
159
161
  };
160
162
  };
161
163
  export type ContentTypeMap = Pick<ContentTypeMapInterfaceWithExtraData, TagContentType>;
@@ -16,7 +16,7 @@ declare abstract class Controller<PluginState extends State, PluginEventMap exte
16
16
  */
17
17
  abstract load(serverData: PluginServerData, state?: PluginState, userAction?: boolean): Promise<void>;
18
18
  /** 把原始数据转化为插件数据 */
19
- protected abstract formatData?(serverData: PluginServerData): Promise<PluginData>;
19
+ protected abstract formatData?(serverData: PluginServerData): Promise<PluginData> | PluginData;
20
20
  }
21
21
  export type { State, EventMap, Config };
22
22
  export type { BaseOptions } from './BasePlugin';
@@ -0,0 +1 @@
1
+ export declare const ROOM_LABEL_BG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAYAAACZ1L+0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAPAAAAABU0H2EAAARRElEQVR4Ad2czY9cRZbFq1yFoQGDNCzwuAENohl54dkgdrNh34tZ8GciFi31nwEsmAEhhAWD1GMJCZgx5sMfUHN+J+NE3XfrZWWVcVVLHVLmuXG/74148V5m2bm/N8bR0dH+Bx988Po333zzbz///PONg4ODa+I9I9y/cuXKgV77h4eH+1KH3hP/yv7+vuBAsG+5UCIpCkMzDQ962Eu80Q1P/KmHT82v8IocZFL4pslDvL3fNARHoPI2wtbrV1jBIf9N8SEZ0UUP2wFHv2ocSc/2ouEz8PVooJXQ0/j10aNHoH2Idj4PHz4k1n29/k+5/u3ll1/+r7fffvtLzfGzd8ibjK6+9957f5ajf1XzH9y7d+8Xjf9FRs1SdvNBBg2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5TYbnxo2OoufXmNPcX+XWv4QLMo+taJkfeY4gvtRs/n8vzY/cssxB5CyKxi96/aB+/Y9+KfE/X3vttS8lI7e9/wfu514OAjYP0QAAAABJRU5ErkJggg==";
@@ -3,6 +3,5 @@ export * from './ModelFloorplanPlugin';
3
3
  export * from './MapviewFloorplanPlugin';
4
4
  export * from './TopviewFloorplanPlugin';
5
5
  export * from './PanoFloorplanRadarPlugin';
6
- export * from './FloorplanRoomsPlugin';
7
6
  export * from './typings/floorplanServerData';
8
7
  export * from './typings/floorplanData';
@@ -1,9 +1,11 @@
1
+ import type * as THREE from 'three';
1
2
  import type { Five, Mode } from '@realsee/five';
2
3
  export interface ShowState {
3
4
  latitude: number;
4
5
  longitude: number;
5
6
  fov: number;
6
7
  mode: Mode;
8
+ offset?: THREE.Vector3;
7
9
  }
8
10
  /** 判断当前状态是否可以展示户型图 */
9
11
  export declare function checkShowState(five: Five, showState: ShowState): boolean;