@realsee/dnalogel 2.27.4 → 2.28.0-dev.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 (403) hide show
  1. package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +5 -0
  2. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
  3. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +4 -2
  4. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +0 -2
  5. package/dist/base/BasePluginWithData.d.ts +1 -1
  6. package/dist/floorplan/FloorplanRoomsPlugin/BasePlugin.d.ts +114 -0
  7. package/dist/floorplan/FloorplanRoomsPlugin/BasePluginWithData.d.ts +23 -0
  8. package/dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.svelte.d.ts +1 -0
  9. package/dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.svelte.d.ts +1 -0
  10. package/dist/floorplan/FloorplanRoomsPlugin/Components/Main.svelte.d.ts +1 -0
  11. package/dist/floorplan/FloorplanRoomsPlugin/Controller.d.ts +40 -0
  12. package/dist/floorplan/FloorplanRoomsPlugin/index.d.ts +6 -0
  13. package/dist/floorplan/FloorplanRoomsPlugin/typing.d.ts +60 -0
  14. package/dist/floorplan/index.d.ts +1 -0
  15. package/dist/index.cjs.js +67 -67
  16. package/dist/index.d.ts +0 -1
  17. package/dist/index.js +7269 -6976
  18. package/dist/index.umd.js +60 -60
  19. package/dist/shared-utils/index.d.ts +0 -1
  20. package/dist/shared-utils/math/planimetry.d.ts +1 -1
  21. package/dist/shared-utils/three/index.d.ts +0 -2
  22. package/dist/shared-utils/three/loadVideoTexture.d.ts +1 -1
  23. package/docs/.nojekyll +1 -0
  24. package/docs/assets/highlight.css +120 -0
  25. package/docs/assets/main.js +58 -0
  26. package/docs/assets/search.js +1 -0
  27. package/docs/assets/style.css +1367 -0
  28. package/docs/classes/CSS3DRender.html +770 -0
  29. package/docs/classes/CruisePluginController.html +669 -0
  30. package/docs/classes/GuideLineItem.GuideLineItem.html +488 -0
  31. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +789 -0
  32. package/docs/classes/Magnifier.html +477 -0
  33. package/docs/classes/ModelRoomLabelController.html +395 -0
  34. package/docs/classes/Object3DHelperController.html +637 -0
  35. package/docs/classes/PaintBrush.html +499 -0
  36. package/docs/classes/PanoMeasurePluginLine.html +519 -0
  37. package/docs/classes/PanoMeasurePluginModel.html +568 -0
  38. package/docs/classes/PanoMeasurePluginPoint.html +359 -0
  39. package/docs/classes/PanoMeasurePluginPolyline.html +564 -0
  40. package/docs/classes/PanoTagPluginController.html +1087 -0
  41. package/docs/classes/Util.BetterTween.html +409 -0
  42. package/docs/classes/Util.Interval.html +425 -0
  43. package/docs/classes/Util.Magnifier.html +496 -0
  44. package/docs/classes/Util.PointDomHelper.html +400 -0
  45. package/docs/classes/Util.PointHelper.html +391 -0
  46. package/docs/classes/Util.PointSelectorHelper.html +447 -0
  47. package/docs/classes/Util.Rectangle.html +448 -0
  48. package/docs/enums/CameraMovementEffect.html +307 -0
  49. package/docs/enums/ContentType.html +443 -0
  50. package/docs/enums/DIRECTION.html +317 -0
  51. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +317 -0
  52. package/docs/enums/DimensionType.html +307 -0
  53. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +310 -0
  54. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +317 -0
  55. package/docs/enums/PaintBrushTypeEnum.html +310 -0
  56. package/docs/enums/PointType.html +307 -0
  57. package/docs/enums/Rotation.html +314 -0
  58. package/docs/functions/CSS3DRenderPlugin.html +285 -0
  59. package/docs/functions/CameraMovementPlugin.html +290 -0
  60. package/docs/functions/CruisePlugin.html +287 -0
  61. package/docs/functions/FloorplanRoomsPlugin.html +285 -0
  62. package/docs/functions/GuideLinePlugin.html +287 -0
  63. package/docs/functions/ItemLabelPlugin.html +287 -0
  64. package/docs/functions/MapviewFloorplanPlugin.html +287 -0
  65. package/docs/functions/ModelChassisCompassPlugin.html +290 -0
  66. package/docs/functions/ModelEntryDoorGuidePlugin.html +290 -0
  67. package/docs/functions/ModelFloorplanPlugin.html +287 -0
  68. package/docs/functions/ModelItemLabelPlugin.html +287 -0
  69. package/docs/functions/ModelRoomLabelPlugin.html +285 -0
  70. package/docs/functions/ModelTVVideoPlugin.html +287 -0
  71. package/docs/functions/ModelViewPlugin.html +290 -0
  72. package/docs/functions/Object3DHelperPlugin.html +285 -0
  73. package/docs/functions/PanoCompassPlugin.html +287 -0
  74. package/docs/functions/PanoCursorRaycasterPlugin.html +291 -0
  75. package/docs/functions/PanoDoorLabelPlugin.html +287 -0
  76. package/docs/functions/PanoFloorplanRadarPlugin.html +287 -0
  77. package/docs/functions/PanoMeasurePlugin.html +287 -0
  78. package/docs/functions/PanoRulerPlugin.html +290 -0
  79. package/docs/functions/PanoRulerProPlugin.html +290 -0
  80. package/docs/functions/PanoSpatialTagPlugin.html +290 -0
  81. package/docs/functions/PanoTagPlugin.html +292 -0
  82. package/docs/functions/PanoVideoPlugin.html +296 -0
  83. package/docs/functions/PipelinePlugin.html +285 -0
  84. package/docs/functions/TopviewFloorplanPlugin.html +287 -0
  85. package/docs/functions/Util.absoluteUrl.html +319 -0
  86. package/docs/functions/Util.getCoordsFromClient.html +321 -0
  87. package/docs/functions/Util.getCoordsFromElement.html +321 -0
  88. package/docs/functions/Util.getFrameTime.html +313 -0
  89. package/docs/functions/Util.getIntersectFromRelativePosition.html +321 -0
  90. package/docs/functions/Util.getRaycasterFromFivePointer.html +321 -0
  91. package/docs/functions/Util.isAbsoluteURL.html +314 -0
  92. package/docs/functions/Util.isModelLike.html +314 -0
  93. package/docs/functions/Util.isNil.html +322 -0
  94. package/docs/functions/Util.isPanoramaLike.html +314 -0
  95. package/docs/functions/Util.nextFrame.html +327 -0
  96. package/docs/functions/Util.notNil.html +322 -0
  97. package/docs/functions/Util.requestAnimationFrameInterval.html +343 -0
  98. package/docs/functions/Util.tweenProgress.html +316 -0
  99. package/docs/functions/Util.uuid.html +312 -0
  100. package/docs/functions/pluginFlag.html +285 -0
  101. package/docs/index.html +351 -0
  102. package/docs/interfaces/AddTagConfig.html +300 -0
  103. package/docs/interfaces/CSS3DRenderPluginEventMap.html +446 -0
  104. package/docs/interfaces/CSS3DRenderPluginState.html +322 -0
  105. package/docs/interfaces/CameraMovementPluginExportType.html +355 -0
  106. package/docs/interfaces/CruisePluginTypes.Config.html +356 -0
  107. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +358 -0
  108. package/docs/interfaces/CruisePluginTypes.EventMap.html +693 -0
  109. package/docs/interfaces/CruisePluginTypes.MoveAction.html +382 -0
  110. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +418 -0
  111. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +408 -0
  112. package/docs/interfaces/CruisePluginTypes.PluginData.html +348 -0
  113. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +316 -0
  114. package/docs/interfaces/CruisePluginTypes.PluginState.html +405 -0
  115. package/docs/interfaces/EventMap.html +539 -0
  116. package/docs/interfaces/FloorplanBounding.html +329 -0
  117. package/docs/interfaces/FloorplanData.html +332 -0
  118. package/docs/interfaces/FloorplanEntrance.html +357 -0
  119. package/docs/interfaces/FloorplanExtraObject.html +347 -0
  120. package/docs/interfaces/FloorplanExtraObject3D.html +336 -0
  121. package/docs/interfaces/FloorplanFloorData.html +325 -0
  122. package/docs/interfaces/FloorplanImagePosition.html +311 -0
  123. package/docs/interfaces/FloorplanObserver.html +329 -0
  124. package/docs/interfaces/FloorplanOutlineItem.html +325 -0
  125. package/docs/interfaces/FloorplanPosition.html +311 -0
  126. package/docs/interfaces/FloorplanRoomItem.html +376 -0
  127. package/docs/interfaces/FloorplanRoomLabelItem.html +317 -0
  128. package/docs/interfaces/FloorplanServerBounding.html +329 -0
  129. package/docs/interfaces/FloorplanServerComputedData.html +328 -0
  130. package/docs/interfaces/FloorplanServerData.html +311 -0
  131. package/docs/interfaces/FloorplanServerDoorItem.html +328 -0
  132. package/docs/interfaces/FloorplanServerDoorPosition.html +314 -0
  133. package/docs/interfaces/FloorplanServerEntrance.html +357 -0
  134. package/docs/interfaces/FloorplanServerFloorData.html +325 -0
  135. package/docs/interfaces/FloorplanServerImagePosition.html +311 -0
  136. package/docs/interfaces/FloorplanServerObserver.html +329 -0
  137. package/docs/interfaces/FloorplanServerOutlineItem.html +325 -0
  138. package/docs/interfaces/FloorplanServerPosition.html +311 -0
  139. package/docs/interfaces/FloorplanServerRoomItem.html +388 -0
  140. package/docs/interfaces/FloorplanServerRoomLabelItem.html +317 -0
  141. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +320 -0
  142. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +358 -0
  143. package/docs/interfaces/GuideLinePluginType.EventMap.html +522 -0
  144. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +353 -0
  145. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +344 -0
  146. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +411 -0
  147. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +343 -0
  148. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +468 -0
  149. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +340 -0
  150. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +468 -0
  151. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +305 -0
  152. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +326 -0
  153. package/docs/interfaces/GuideLinePluginType.PluginState.html +351 -0
  154. package/docs/interfaces/GuideLinePluginType.Route.html +367 -0
  155. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +349 -0
  156. package/docs/interfaces/HelperOffset.html +329 -0
  157. package/docs/interfaces/ImagePlaneGroup.html +303 -0
  158. package/docs/interfaces/ItemLabelPluginData.html +300 -0
  159. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +385 -0
  160. package/docs/interfaces/ItemLabelPluginParametersType.html +321 -0
  161. package/docs/interfaces/MinMax.html +307 -0
  162. package/docs/interfaces/ModelChassisCompassPluginData.html +307 -0
  163. package/docs/interfaces/ModelChassisCompassPluginExportType.html +343 -0
  164. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +307 -0
  165. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +314 -0
  166. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +351 -0
  167. package/docs/interfaces/ModelItemLabelPluginData.html +300 -0
  168. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +385 -0
  169. package/docs/interfaces/ModelItemLabelPluginParametersType.html +307 -0
  170. package/docs/interfaces/ModelRoomLabelPluginData.html +300 -0
  171. package/docs/interfaces/ModelTVVideoPluginData.html +321 -0
  172. package/docs/interfaces/ModelTVVideoPluginExportType.html +345 -0
  173. package/docs/interfaces/ModelTVVideoPluginParameterType.html +300 -0
  174. package/docs/interfaces/ModelViewPluginExportType.html +413 -0
  175. package/docs/interfaces/Object3DHelperState.html +314 -0
  176. package/docs/interfaces/ObjectHelperControllers.html +321 -0
  177. package/docs/interfaces/PaintBrushAction.html +360 -0
  178. package/docs/interfaces/PaintBrushConfigs.html +358 -0
  179. package/docs/interfaces/PaintBrushState.html +342 -0
  180. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +422 -0
  181. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +279 -0
  182. package/docs/interfaces/PanoMeasureParameterType.html +446 -0
  183. package/docs/interfaces/PanoMeasurePluginLineJson.html +314 -0
  184. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +311 -0
  185. package/docs/interfaces/PanoMeasurePluginPointJson.html +307 -0
  186. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +317 -0
  187. package/docs/interfaces/PanoRulerPluginExportType.html +374 -0
  188. package/docs/interfaces/PanoRulerPluginOptions.html +323 -0
  189. package/docs/interfaces/PanoRulerPluginParameterType.html +314 -0
  190. package/docs/interfaces/PanoRulerProPluginExportType.html +350 -0
  191. package/docs/interfaces/PanoRulerProPluginOptions.html +320 -0
  192. package/docs/interfaces/PanoRulerProPluginParameterType.html +307 -0
  193. package/docs/interfaces/PanoRulerProPluginState.html +314 -0
  194. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +293 -0
  195. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +282 -0
  196. package/docs/interfaces/PanoSpatialTagPluginData.html +350 -0
  197. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +332 -0
  198. package/docs/interfaces/PanoSpatialTagPluginExportType.html +428 -0
  199. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +328 -0
  200. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +349 -0
  201. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +335 -0
  202. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +328 -0
  203. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +320 -0
  204. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +338 -0
  205. package/docs/interfaces/PanoVideoPluginType.PluginData.html +311 -0
  206. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +417 -0
  207. package/docs/interfaces/PanoVideoPluginType.PluginState.html +311 -0
  208. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +346 -0
  209. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +365 -0
  210. package/docs/interfaces/Point.html +314 -0
  211. package/docs/interfaces/Room.html +321 -0
  212. package/docs/interfaces/RoomInfo.html +307 -0
  213. package/docs/interfaces/RoomLabel.html +383 -0
  214. package/docs/interfaces/RoomRules.html +282 -0
  215. package/docs/interfaces/Rooms.html +282 -0
  216. package/docs/interfaces/Scissor.html +341 -0
  217. package/docs/interfaces/State.html +328 -0
  218. package/docs/interfaces/TagCacheInterface.html +352 -0
  219. package/docs/interfaces/TagConfig.html +542 -0
  220. package/docs/interfaces/TagGLTFObjectGroup.html +303 -0
  221. package/docs/interfaces/TagIconUrl.html +360 -0
  222. package/docs/interfaces/TagObjectGroup.html +303 -0
  223. package/docs/interfaces/TagStyle.html +313 -0
  224. package/docs/interfaces/Tags.html +543 -0
  225. package/docs/interfaces/TemporaryState.html +300 -0
  226. package/docs/interfaces/Util.MagnifierParameter.html +384 -0
  227. package/docs/interfaces/Util.MouseGroupParameter.html +343 -0
  228. package/docs/interfaces/Util.PointIntersection.html +358 -0
  229. package/docs/modules/CruisePluginTypes.html +325 -0
  230. package/docs/modules/GuideLineItem.html +286 -0
  231. package/docs/modules/GuideLineModeItem.html +291 -0
  232. package/docs/modules/GuideLinePluginType.html +345 -0
  233. package/docs/modules/PanoVideoPluginType.html +298 -0
  234. package/docs/modules/Util.html +340 -0
  235. package/docs/modules.html +534 -0
  236. package/docs/types/ArrayPosition.html +276 -0
  237. package/docs/types/AudioAppearance.html +276 -0
  238. package/docs/types/AudioTagTypeConfigKey.html +276 -0
  239. package/docs/types/CSS3DRenderExportType.html +276 -0
  240. package/docs/types/CSS3DRenderPluginExportType.html +276 -0
  241. package/docs/types/CSS3DRenderPluginParameterType.html +276 -0
  242. package/docs/types/ClassFunctionParameters.html +283 -0
  243. package/docs/types/Color.html +276 -0
  244. package/docs/types/ContentTypeConfigKey.html +276 -0
  245. package/docs/types/ContentTypeConfigKeySplit.html +276 -0
  246. package/docs/types/ContentTypeMap.html +276 -0
  247. package/docs/types/Create3DDomContainerReturnType.html +276 -0
  248. package/docs/types/Create3DElementReturnType.html +276 -0
  249. package/docs/types/CruisePluginExportType.html +276 -0
  250. package/docs/types/CruisePluginTypes.CruiseData.html +315 -0
  251. package/docs/types/CruisePluginTypes.MoveEffect.html +292 -0
  252. package/docs/types/DeprecatedMediaPlaneProperty.html +288 -0
  253. package/docs/types/DeprecatedTagProperty.html +291 -0
  254. package/docs/types/Direction-1.html +276 -0
  255. package/docs/types/Direction4.html +276 -0
  256. package/docs/types/ElementRenderer.html +300 -0
  257. package/docs/types/FloorplanRoomsPluginParameterType.html +276 -0
  258. package/docs/types/FloorplanRoomsPluginReturnType.html +276 -0
  259. package/docs/types/FloorplanRuleLabels.html +279 -0
  260. package/docs/types/FloorplanServerRuleLabels.html +276 -0
  261. package/docs/types/GuideLinePluginExportType.html +276 -0
  262. package/docs/types/GuideLinePluginType.GuideLineItem.html +348 -0
  263. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +369 -0
  264. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +302 -0
  265. package/docs/types/GuideLinePluginType.GuideLineStyle.html +305 -0
  266. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +305 -0
  267. package/docs/types/GuideLinePluginType.PathItem.html +305 -0
  268. package/docs/types/GuideLinePluginType.PluginData.html +314 -0
  269. package/docs/types/HelperEventMap.html +514 -0
  270. package/docs/types/LoadTagConfig.html +276 -0
  271. package/docs/types/MapviewFloorplanPluginParameterType.html +276 -0
  272. package/docs/types/MapviewFloorplanPluginReturnType.html +276 -0
  273. package/docs/types/MediaData.html +292 -0
  274. package/docs/types/MediaStore.html +281 -0
  275. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +283 -0
  276. package/docs/types/ModelFloorplanPluginParameterType.html +276 -0
  277. package/docs/types/ModelFloorplanPluginReturnType.html +276 -0
  278. package/docs/types/ModelRoomLabelPluginParameters.html +276 -0
  279. package/docs/types/ModelRoomLabelPluginReturnType.html +276 -0
  280. package/docs/types/MoveArgs.html +286 -0
  281. package/docs/types/MoveOpts.html +284 -0
  282. package/docs/types/Object3DHelperEventMap.html +369 -0
  283. package/docs/types/ObjectFit.html +276 -0
  284. package/docs/types/PaintBrushEventMap.html +307 -0
  285. package/docs/types/PanoCompassPluginData.html +276 -0
  286. package/docs/types/PanoCompassPluginExportType.html +276 -0
  287. package/docs/types/PanoCompassPluginParameterType.html +276 -0
  288. package/docs/types/PanoFloorplanRadarPluginParameterType.html +276 -0
  289. package/docs/types/PanoFloorplanRadarPluginReturnType.html +276 -0
  290. package/docs/types/PanoIndex.html +276 -0
  291. package/docs/types/PanoMeasurePluginEvent.html +276 -0
  292. package/docs/types/PanoMeasureReturnType.html +276 -0
  293. package/docs/types/PanoSpatialTagPluginId.html +276 -0
  294. package/docs/types/PanoTagPluginExportInterface.html +276 -0
  295. package/docs/types/PanoTagPluginParamsInterface.html +276 -0
  296. package/docs/types/PanoVideoPluginParameterType.html +276 -0
  297. package/docs/types/PanoVideoPluginReturnType.html +276 -0
  298. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +284 -0
  299. package/docs/types/PipelinePluginParameterType.html +276 -0
  300. package/docs/types/PipelinePluginReturnType.html +276 -0
  301. package/docs/types/PlaneTag.html +284 -0
  302. package/docs/types/Point2DTag.html +284 -0
  303. package/docs/types/Point3DTag.html +284 -0
  304. package/docs/types/PointTag.html +281 -0
  305. package/docs/types/PointTagInstance.html +281 -0
  306. package/docs/types/Position.html +276 -0
  307. package/docs/types/RotateArgs.html +288 -0
  308. package/docs/types/RotateOpts.html +284 -0
  309. package/docs/types/RuleLabelsKey.html +276 -0
  310. package/docs/types/RuleLabelsValue.html +276 -0
  311. package/docs/types/StickType.html +276 -0
  312. package/docs/types/Tag.html +342 -0
  313. package/docs/types/Tag2D.html +284 -0
  314. package/docs/types/Tag3D.html +284 -0
  315. package/docs/types/TagConfigByKey.html +281 -0
  316. package/docs/types/TagContentType.html +276 -0
  317. package/docs/types/TagDimensionType.html +278 -0
  318. package/docs/types/TagElement.html +286 -0
  319. package/docs/types/TagEvents.html +329 -0
  320. package/docs/types/TagGLTFObject.html +299 -0
  321. package/docs/types/TagHooks.html +276 -0
  322. package/docs/types/TagId.html +276 -0
  323. package/docs/types/TagInstance.html +348 -0
  324. package/docs/types/TagPointType.html +279 -0
  325. package/docs/types/TagRendererMap.html +281 -0
  326. package/docs/types/TopviewFloorplanPluginParameterType.html +276 -0
  327. package/docs/types/TopviewFloorplanPluginReturnType.html +276 -0
  328. package/docs/types/WorkCode.html +276 -0
  329. package/docs/variables/FLOOR_TYPE_MAP.html +286 -0
  330. package/docs/variables/PLUGIN.html +276 -0
  331. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +279 -0
  332. package/docs/variables/ROOM_TYPE_MAP.html +286 -0
  333. package/docs/variables/defaultGlobalConfig.html +276 -0
  334. package/docs/variables/itemLabelPluginServerParams.html +283 -0
  335. package/docs/variables/modelItemLabelPluginServerParams.html +283 -0
  336. package/docs/variables/modelRoomLabelPluginServerParams.html +283 -0
  337. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +39 -42
  338. package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +5 -0
  339. package/libs/GuideLinePlugin/utils/createLineGeometry.js +13 -13
  340. package/libs/PanoTagPlugin/controller/TagRender.js +18 -19
  341. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
  342. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +4 -2
  343. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +0 -2
  344. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +10 -10
  345. package/libs/base/BasePlugin.js +1 -1
  346. package/libs/base/BasePluginWithData.d.ts +1 -1
  347. package/libs/floorplan/FloorplanRoomsPlugin/BasePlugin.d.ts +114 -0
  348. package/libs/floorplan/FloorplanRoomsPlugin/BasePlugin.js +51 -0
  349. package/libs/floorplan/FloorplanRoomsPlugin/BasePluginWithData.d.ts +23 -0
  350. package/libs/floorplan/FloorplanRoomsPlugin/BasePluginWithData.js +25 -0
  351. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.js +188 -0
  352. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.svelte.d.ts +1 -0
  353. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.js +94 -0
  354. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.svelte.d.ts +1 -0
  355. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.js +111 -0
  356. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.svelte.d.ts +1 -0
  357. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.js +191 -0
  358. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.svelte.d.ts +1 -0
  359. package/libs/floorplan/FloorplanRoomsPlugin/Components/Main.js +237 -0
  360. package/libs/floorplan/FloorplanRoomsPlugin/Components/Main.svelte.d.ts +1 -0
  361. package/libs/floorplan/FloorplanRoomsPlugin/Controller.d.ts +40 -0
  362. package/libs/floorplan/FloorplanRoomsPlugin/Controller.js +207 -0
  363. package/libs/floorplan/FloorplanRoomsPlugin/index.d.ts +6 -0
  364. package/libs/floorplan/FloorplanRoomsPlugin/index.js +43 -0
  365. package/libs/floorplan/FloorplanRoomsPlugin/typing.d.ts +60 -0
  366. package/libs/floorplan/index.d.ts +1 -0
  367. package/libs/index.d.ts +0 -1
  368. package/libs/index.js +122 -120
  369. package/libs/shared-utils/device.js +1 -0
  370. package/libs/shared-utils/index.d.ts +0 -1
  371. package/libs/shared-utils/index.js +21 -27
  372. package/libs/shared-utils/logger.js +1 -1
  373. package/libs/shared-utils/math/planimetry.d.ts +1 -1
  374. package/libs/shared-utils/math/planimetry.js +29 -36
  375. package/libs/shared-utils/three/index.d.ts +0 -2
  376. package/libs/shared-utils/three/loadVideoTexture.d.ts +1 -1
  377. package/libs/shared-utils/three/loadVideoTexture.js +6 -6
  378. package/libs/vendor/svelte/internal/index.js +85 -79
  379. package/package.json +2 -2
  380. package/dist/AreaMakerPlugin/Controller.d.ts +0 -94
  381. package/dist/AreaMakerPlugin/index.d.ts +0 -4
  382. package/dist/AreaMakerPlugin/typing.d.ts +0 -148
  383. package/dist/AreaMakerPlugin/utils/Item.d.ts +0 -114
  384. package/dist/components/AreaLabel/Assets/roomLabelBg.d.ts +0 -1
  385. package/dist/shared-utils/three/core/Object3D.d.ts +0 -8
  386. package/dist/shared-utils/three/objects/LineSegments.d.ts +0 -9
  387. package/libs/AreaMakerPlugin/Controller.d.ts +0 -94
  388. package/libs/AreaMakerPlugin/Controller.js +0 -336
  389. package/libs/AreaMakerPlugin/index.d.ts +0 -4
  390. package/libs/AreaMakerPlugin/index.js +0 -37
  391. package/libs/AreaMakerPlugin/typing.d.ts +0 -148
  392. package/libs/AreaMakerPlugin/utils/Item.d.ts +0 -114
  393. package/libs/AreaMakerPlugin/utils/Item.js +0 -263
  394. package/libs/components/AreaLabel/Assets/roomLabelBg.d.ts +0 -1
  395. package/libs/components/AreaLabel/Assets/roomLabelBg.js +0 -4
  396. package/libs/components/AreaLabel/LabelItem.js +0 -125
  397. package/libs/shared-utils/three/core/Object3D.d.ts +0 -8
  398. package/libs/shared-utils/three/core/Object3D.js +0 -22
  399. package/libs/shared-utils/three/objects/LineSegments.d.ts +0 -9
  400. package/libs/shared-utils/three/objects/LineSegments.js +0 -9
  401. /package/dist/{components/AreaLabel/LabelItem.svelte.d.ts → floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.svelte.d.ts} +0 -0
  402. /package/{libs/components/AreaLabel/LabelItem.svelte.d.ts → dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.svelte.d.ts} +0 -0
  403. /package/libs/{AreaMakerPlugin → floorplan/FloorplanRoomsPlugin}/typing.js +0 -0
@@ -0,0 +1,237 @@
1
+ import { SvelteComponent as I, init as N, safe_not_equal as R, append_styles as A, empty as B, insert as p, transition_in as g, transition_out as c, check_outros as W, detach as v, element as z, attr as C, action_destroyer as G, listen as O, group_outros as M, run_all as J, assign as K, create_component as L, set_style as m, mount_component as P, get_spread_update as Q, destroy_component as T } from "../../../vendor/svelte/internal/index.js";
2
+ import U from "./CurrentFloor/CurrentFloor.js";
3
+ import { svelteResizeObserver as V } from "../../../shared-utils/svelte/resizeObserver.js";
4
+ import "./CurrentFloor/ExtraObjects.js";
5
+ import "../../Components/BaseImage.js";
6
+ import "../../Components/Normalmage.js";
7
+ import "../../Components/SvgImage.js";
8
+ import "./CurrentFloor/RoomHighlight/RoomHighlight.js";
9
+ import "./CurrentFloor/RoomHighlight/Room.js";
10
+ import "../../utils/formatPosition.js";
11
+ import "../../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
12
+ function X(n) {
13
+ A(n, "svelte-se81j2", ".plugin-floorplan-rooms.svelte-se81j2{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-rooms-container.svelte-se81j2{position:relative}");
14
+ }
15
+ function k(n) {
16
+ let e, i, l, h, t = (
17
+ /*clientWidth*/
18
+ n[7] !== 0 && w(n)
19
+ );
20
+ return {
21
+ c() {
22
+ e = z("div"), t && t.c(), C(e, "class", "plugin-floorplan-rooms svelte-se81j2");
23
+ },
24
+ m(a, f) {
25
+ p(a, e, f), t && t.m(e, null), i = !0, l || (h = [
26
+ G(V.call(null, e)),
27
+ O(
28
+ e,
29
+ "clientWidth",
30
+ /*clientWidth_handler*/
31
+ n[11]
32
+ ),
33
+ O(
34
+ e,
35
+ "clientHeight",
36
+ /*clientHeight_handler*/
37
+ n[12]
38
+ )
39
+ ], l = !0);
40
+ },
41
+ p(a, f) {
42
+ /*clientWidth*/
43
+ a[7] !== 0 ? t ? (t.p(a, f), f & /*clientWidth*/
44
+ 128 && g(t, 1)) : (t = w(a), t.c(), g(t, 1), t.m(e, null)) : t && (M(), c(t, 1, 1, () => {
45
+ t = null;
46
+ }), W());
47
+ },
48
+ i(a) {
49
+ i || (g(t), i = !0);
50
+ },
51
+ o(a) {
52
+ c(t), i = !1;
53
+ },
54
+ d(a) {
55
+ a && v(e), t && t.d(), l = !1, J(h);
56
+ }
57
+ };
58
+ }
59
+ function w(n) {
60
+ let e, i, l = `${/*contentWidth*/
61
+ n[9]}px`, h = `${/*contentHeight*/
62
+ n[10]}px`, t;
63
+ const a = [
64
+ {
65
+ highlightEnable: (
66
+ /*highlightEnable*/
67
+ n[6]
68
+ ),
69
+ floorIndex: H,
70
+ floorplanData: (
71
+ /*floorplanData*/
72
+ n[2]
73
+ ),
74
+ hoverEnable: (
75
+ /*hoverEnable*/
76
+ n[1]
77
+ ),
78
+ extraObjects: (
79
+ /*extraObjects*/
80
+ n[3]
81
+ ),
82
+ highlightData: (
83
+ /*highlightData*/
84
+ n[4]
85
+ ),
86
+ highlightStyle: (
87
+ /*highlightStyle*/
88
+ n[5]
89
+ )
90
+ }
91
+ ];
92
+ let f = {};
93
+ for (let o = 0; o < a.length; o += 1)
94
+ f = K(f, a[o]);
95
+ return i = new U({ props: f }), {
96
+ c() {
97
+ e = z("div"), L(i.$$.fragment), C(e, "class", "plugin-floorplan-rooms-container svelte-se81j2"), m(e, "width", l), m(e, "height", h);
98
+ },
99
+ m(o, s) {
100
+ p(o, e, s), P(i, e, null), t = !0;
101
+ },
102
+ p(o, s) {
103
+ const u = s & /*highlightEnable, floorIndex, floorplanData, hoverEnable, extraObjects, highlightData, highlightStyle*/
104
+ 126 ? Q(a, [
105
+ {
106
+ highlightEnable: (
107
+ /*highlightEnable*/
108
+ o[6]
109
+ ),
110
+ floorIndex: H,
111
+ floorplanData: (
112
+ /*floorplanData*/
113
+ o[2]
114
+ ),
115
+ hoverEnable: (
116
+ /*hoverEnable*/
117
+ o[1]
118
+ ),
119
+ extraObjects: (
120
+ /*extraObjects*/
121
+ o[3]
122
+ ),
123
+ highlightData: (
124
+ /*highlightData*/
125
+ o[4]
126
+ ),
127
+ highlightStyle: (
128
+ /*highlightStyle*/
129
+ o[5]
130
+ )
131
+ }
132
+ ]) : {};
133
+ i.$set(u), s & /*contentWidth*/
134
+ 512 && l !== (l = `${/*contentWidth*/
135
+ o[9]}px`) && m(e, "width", l), s & /*contentHeight*/
136
+ 1024 && h !== (h = `${/*contentHeight*/
137
+ o[10]}px`) && m(e, "height", h);
138
+ },
139
+ i(o) {
140
+ t || (g(i.$$.fragment, o), t = !0);
141
+ },
142
+ o(o) {
143
+ c(i.$$.fragment, o), t = !1;
144
+ },
145
+ d(o) {
146
+ o && v(e), T(i);
147
+ }
148
+ };
149
+ }
150
+ function Y(n) {
151
+ let e, i, l = (
152
+ /*visible*/
153
+ n[0] && k(n)
154
+ );
155
+ return {
156
+ c() {
157
+ l && l.c(), e = B();
158
+ },
159
+ m(h, t) {
160
+ l && l.m(h, t), p(h, e, t), i = !0;
161
+ },
162
+ p(h, [t]) {
163
+ /*visible*/
164
+ h[0] ? l ? (l.p(h, t), t & /*visible*/
165
+ 1 && g(l, 1)) : (l = k(h), l.c(), g(l, 1), l.m(e.parentNode, e)) : l && (M(), c(l, 1, 1, () => {
166
+ l = null;
167
+ }), W());
168
+ },
169
+ i(h) {
170
+ i || (g(l), i = !0);
171
+ },
172
+ o(h) {
173
+ c(l), i = !1;
174
+ },
175
+ d(h) {
176
+ l && l.d(h), h && v(e);
177
+ }
178
+ };
179
+ }
180
+ let H = 0;
181
+ function Z(n, e, i) {
182
+ let { visible: l } = e, { hoverEnable: h } = e, { floorplanData: t } = e, { extraObjects: a = [] } = e, { highlightData: f } = e, { highlightStyle: o } = e, { highlightEnable: s = !0 } = e, u = 0, _ = 0, y = 0, j = 0;
183
+ const q = (r) => {
184
+ i(7, u = r.detail);
185
+ }, F = (r) => {
186
+ i(8, _ = r.detail);
187
+ };
188
+ return n.$$set = (r) => {
189
+ "visible" in r && i(0, l = r.visible), "hoverEnable" in r && i(1, h = r.hoverEnable), "floorplanData" in r && i(2, t = r.floorplanData), "extraObjects" in r && i(3, a = r.extraObjects), "highlightData" in r && i(4, f = r.highlightData), "highlightStyle" in r && i(5, o = r.highlightStyle), "highlightEnable" in r && i(6, s = r.highlightEnable);
190
+ }, n.$$.update = () => {
191
+ if (n.$$.dirty & /*clientWidth, clientHeight, floorplanData*/
192
+ 388) {
193
+ const r = Math.min(u, _), { max: D, min: E } = t.bounding, b = D.x - E.x, d = D.y - E.y, S = function() {
194
+ return b > d ? [r, r / b * d] : [r / d * b, r];
195
+ }();
196
+ i(9, y = S[0]), i(10, j = S[1]);
197
+ }
198
+ }, [
199
+ l,
200
+ h,
201
+ t,
202
+ a,
203
+ f,
204
+ o,
205
+ s,
206
+ u,
207
+ _,
208
+ y,
209
+ j,
210
+ q,
211
+ F
212
+ ];
213
+ }
214
+ class se extends I {
215
+ constructor(e) {
216
+ super(), N(
217
+ this,
218
+ e,
219
+ Z,
220
+ Y,
221
+ R,
222
+ {
223
+ visible: 0,
224
+ hoverEnable: 1,
225
+ floorplanData: 2,
226
+ extraObjects: 3,
227
+ highlightData: 4,
228
+ highlightStyle: 5,
229
+ highlightEnable: 6
230
+ },
231
+ X
232
+ );
233
+ }
234
+ }
235
+ export {
236
+ se as default
237
+ };
@@ -0,0 +1 @@
1
+ export { SvelteComponentTyped as default } from 'svelte/internal';
@@ -0,0 +1,40 @@
1
+ import type { BaseOptions } from './BasePlugin';
2
+ import type { FloorplanServerData } from '../typings/floorplanServerData';
3
+ import type { FloorplanExtraObject3D } from '../typings/floorplanData';
4
+ import type { HighlightData } from '../typings';
5
+ import type { State, Config, EventMap, Parameters, PluginData, PluginServerData } from './typing';
6
+ import * as BasePlugin from './BasePluginWithData';
7
+ export declare class Controller extends BasePlugin.Controller<State, EventMap, PluginServerData, PluginData> {
8
+ name: string;
9
+ state: State;
10
+ protected data?: PluginData;
11
+ private app?;
12
+ private wrapperSelector;
13
+ private wrapper;
14
+ private disposed;
15
+ private extraObjects;
16
+ private highlightData;
17
+ constructor(params?: Parameters);
18
+ dispose: () => void;
19
+ load(serverData: PluginServerData | FloorplanServerData, state?: Partial<State>, userAction?: boolean): Promise<void>;
20
+ show(options?: BaseOptions): Promise<void>;
21
+ hide(options?: BaseOptions): Promise<void>;
22
+ enable(options?: BaseOptions): void;
23
+ disable(options?: BaseOptions): void;
24
+ highlight: (highlightData: HighlightData) => void;
25
+ unhighlight: () => void;
26
+ getHighlightData: () => HighlightData;
27
+ /** 更改插件 State */
28
+ setState(state: Partial<State>, options?: BaseOptions): void;
29
+ /** 把插件的渲染DOM插入到对应的容器中去 */
30
+ appendTo(wrapper: Element): void;
31
+ changeConfigs(config: Config, userAction?: boolean): void;
32
+ setExtraObjectsWith3DPositions(data: FloorplanExtraObject3D[]): void;
33
+ protected formatData(serverData: PluginServerData): Promise<PluginData>;
34
+ private _enable;
35
+ private _disable;
36
+ private _show;
37
+ private _hide;
38
+ private updateState;
39
+ private render;
40
+ }
@@ -0,0 +1,207 @@
1
+ var m = Object.defineProperty, w = Object.defineProperties;
2
+ var v = Object.getOwnPropertyDescriptors;
3
+ var b = Object.getOwnPropertySymbols;
4
+ var S = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
5
+ var u = (r, i, t) => i in r ? m(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t, p = (r, i) => {
6
+ for (var t in i || (i = {}))
7
+ S.call(i, t) && u(r, t, i[t]);
8
+ if (b)
9
+ for (var t of b(i))
10
+ A.call(i, t) && u(r, t, i[t]);
11
+ return r;
12
+ }, f = (r, i) => w(r, v(i));
13
+ var s = (r, i, t) => (u(r, typeof i != "symbol" ? i + "" : i, t), t);
14
+ var c = (r, i, t) => new Promise((e, o) => {
15
+ var a = (n) => {
16
+ try {
17
+ l(t.next(n));
18
+ } catch (d) {
19
+ o(d);
20
+ }
21
+ }, h = (n) => {
22
+ try {
23
+ l(t.throw(n));
24
+ } catch (d) {
25
+ o(d);
26
+ }
27
+ }, l = (n) => n.done ? e(n.value) : Promise.resolve(n.value).then(a, h);
28
+ l((t = t.apply(r, i)).next());
29
+ });
30
+ import D from "./Components/Main.js";
31
+ import { equal as _ } from "../../shared-utils/equal.js";
32
+ import { Controller as y } from "./BasePluginWithData.js";
33
+ import { formatData as g, formatExtraObjects as O } from "../utils/formatData.js";
34
+ import "../../vendor/svelte/internal/index.js";
35
+ import "./Components/CurrentFloor/CurrentFloor.js";
36
+ import "./Components/CurrentFloor/ExtraObjects.js";
37
+ import "../Components/BaseImage.js";
38
+ import "../Components/Normalmage.js";
39
+ import "../Components/SvgImage.js";
40
+ import "./Components/CurrentFloor/RoomHighlight/RoomHighlight.js";
41
+ import "./Components/CurrentFloor/RoomHighlight/Room.js";
42
+ import "../utils/formatPosition.js";
43
+ import "../../shared-utils/svelte/resizeObserver.js";
44
+ import "../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
45
+ import "../../shared-utils/isTruelyObject.js";
46
+ import "./BasePlugin.js";
47
+ import "../../shared-utils/Subscribe.js";
48
+ import "hammerjs";
49
+ import "three";
50
+ import "@realsee/five";
51
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
52
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
53
+ import "../../shared-utils/positionToVector3.js";
54
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
55
+ import "three/examples/jsm/renderers/CSS3DRenderer";
56
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
57
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
58
+ import "../../CSS3DRenderPlugin/utils/even.js";
59
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
60
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
61
+ import "../../shared-utils/three/centerPoint.js";
62
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
63
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
64
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
65
+ import "../../shared-utils/absoluteUrl.js";
66
+ import "../Assets/floorplanExtraObject.js";
67
+ class lt extends y {
68
+ constructor(t) {
69
+ super();
70
+ // =============== public properties =================
71
+ s(this, "name", "FloorplanRoomsPlugin");
72
+ s(this, "state");
73
+ // =============== protected properties =================
74
+ s(this, "data");
75
+ // =============== private properties =================
76
+ s(this, "app");
77
+ s(this, "wrapperSelector", "");
78
+ s(this, "wrapper", null);
79
+ s(this, "disposed", !1);
80
+ s(this, "extraObjects", []);
81
+ s(this, "highlightData", {});
82
+ s(this, "dispose", () => {
83
+ this.disposed = !0, this.wrapper = null, this.wrapperSelector = "", this.hooks.emit("dispose");
84
+ });
85
+ s(this, "highlight", (t) => {
86
+ this.state.config.highlightEnable && (this.highlightData = t, this.render());
87
+ });
88
+ s(this, "unhighlight", () => {
89
+ this.highlightData = {}, this.render();
90
+ });
91
+ s(this, "getHighlightData", () => this.highlightData);
92
+ s(this, "_disable", (t) => {
93
+ const { userAction: e } = t;
94
+ this.app = void 0, this.hooks.emit("disable", { userAction: e });
95
+ });
96
+ const e = {
97
+ hoverEnable: !0,
98
+ highlightEnable: !0
99
+ }, o = t != null && t.configs ? t.configs : {}, a = p(p({}, e), o);
100
+ this.state = { enabled: !0, visible: !0, config: a }, typeof (t == null ? void 0 : t.wrapper) == "string" ? this.wrapperSelector = t.wrapper : (t == null ? void 0 : t.wrapper) instanceof Element && (this.wrapper = t.wrapper);
101
+ }
102
+ load(t, e, o = !0) {
103
+ return c(this, null, function* () {
104
+ function a(d) {
105
+ return Object.prototype.hasOwnProperty.apply(d, ["version"]);
106
+ }
107
+ const h = JSON.parse(JSON.stringify(t)), l = a(h) ? h.data : h, n = this.data;
108
+ this.data = yield g(l), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, n), e && this.updateState(e, o), this.render();
109
+ });
110
+ }
111
+ show() {
112
+ return c(this, arguments, function* (t = {}) {
113
+ if (this.state.visible)
114
+ return;
115
+ const e = t.userAction !== void 0 ? t.userAction : !0;
116
+ this.updateState({ visible: !0 }, e), this._show({ userAction: e });
117
+ });
118
+ }
119
+ hide() {
120
+ return c(this, arguments, function* (t = {}) {
121
+ if (!this.state.visible)
122
+ return;
123
+ const e = t.userAction !== void 0 ? t.userAction : !0;
124
+ this.updateState({ visible: !1 }, e), this._hide({ userAction: e });
125
+ });
126
+ }
127
+ enable(t = {}) {
128
+ if (this.state.enabled)
129
+ return;
130
+ const e = t.userAction !== void 0 ? t.userAction : !0;
131
+ this.updateState({ enabled: !0 }, t.userAction || e), this._enable({ userAction: e });
132
+ }
133
+ disable(t = {}) {
134
+ if (!this.state.enabled)
135
+ return;
136
+ const e = t.userAction !== void 0 ? t.userAction : !0;
137
+ this.updateState({ enabled: !1 }, t.userAction || e), this._disable({ userAction: e });
138
+ }
139
+ /** 更改插件 State */
140
+ setState(t, e = {}) {
141
+ const o = this.state, a = e.userAction !== void 0 ? e.userAction : !0;
142
+ if (this.updateState(t, a), t.enabled !== void 0 && o.enabled !== t.enabled) {
143
+ const h = { userAction: a };
144
+ t.enabled ? this._enable(h) : this._disable(h);
145
+ }
146
+ if (t.visible !== void 0 && o.visible !== t.visible) {
147
+ const h = { userAction: a };
148
+ t.visible ? this._show(h) : this._hide(h);
149
+ }
150
+ }
151
+ /** 把插件的渲染DOM插入到对应的容器中去 */
152
+ appendTo(t) {
153
+ this.wrapper = t, this.render();
154
+ }
155
+ changeConfigs(t, e = !0) {
156
+ this.setState({ config: t }, { userAction: e }), this.render();
157
+ }
158
+ setExtraObjectsWith3DPositions(t) {
159
+ this.data && (this.extraObjects = O(t, null, this.data), this.render());
160
+ }
161
+ formatData(t) {
162
+ return c(this, null, function* () {
163
+ return yield g(t.data);
164
+ });
165
+ }
166
+ _enable(t) {
167
+ const { userAction: e } = t;
168
+ this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e });
169
+ }
170
+ _show(t) {
171
+ if (this.disposed || !this.state.enabled)
172
+ return;
173
+ const { userAction: e } = t;
174
+ this.hooks.emit("show", { userAction: e }), this.render();
175
+ }
176
+ _hide(t) {
177
+ if (this.disposed || !this.state.enabled)
178
+ return;
179
+ const { userAction: e } = t;
180
+ this.hooks.emit("hide", { userAction: e }), this.render();
181
+ }
182
+ updateState(t, e) {
183
+ const o = this.state;
184
+ this.state = p(p({}, this.state), t), !_(this.state, o, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: e });
185
+ }
186
+ render() {
187
+ if (this.disposed || !this.state.enabled)
188
+ return;
189
+ if (!this.wrapper && this.wrapperSelector) {
190
+ const e = document.querySelector(this.wrapperSelector);
191
+ this.wrapper = e;
192
+ }
193
+ if (!this.data || !this.wrapper)
194
+ return;
195
+ const t = f(p({}, this.state.config), {
196
+ floorplanData: this.data,
197
+ visible: this.state.visible,
198
+ extraObjects: this.extraObjects,
199
+ highlightData: this.highlightData,
200
+ highlightStyle: this.state.config.highlightStyle
201
+ });
202
+ this.app ? this.app.$set(t) : this.app = new D({ target: this.wrapper, props: t });
203
+ }
204
+ }
205
+ export {
206
+ lt as Controller
207
+ };
@@ -0,0 +1,6 @@
1
+ import type { Parameters } from './typing';
2
+ import { Controller } from './Controller';
3
+ export declare const FloorplanRoomsPlugin: (params: any) => Controller;
4
+ export type FloorplanRoomsPluginParameterType = Parameters | undefined;
5
+ export type FloorplanRoomsPluginReturnType = InstanceType<typeof Controller>;
6
+ export default FloorplanRoomsPlugin;
@@ -0,0 +1,43 @@
1
+ import { Controller as r } from "./Controller.js";
2
+ import "./Components/Main.js";
3
+ import "../../vendor/svelte/internal/index.js";
4
+ import "./Components/CurrentFloor/CurrentFloor.js";
5
+ import "./Components/CurrentFloor/ExtraObjects.js";
6
+ import "../Components/BaseImage.js";
7
+ import "../Components/Normalmage.js";
8
+ import "../Components/SvgImage.js";
9
+ import "./Components/CurrentFloor/RoomHighlight/RoomHighlight.js";
10
+ import "./Components/CurrentFloor/RoomHighlight/Room.js";
11
+ import "../utils/formatPosition.js";
12
+ import "../../shared-utils/svelte/resizeObserver.js";
13
+ import "../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
14
+ import "../../shared-utils/equal.js";
15
+ import "../../shared-utils/isTruelyObject.js";
16
+ import "./BasePluginWithData.js";
17
+ import "./BasePlugin.js";
18
+ import "../../shared-utils/Subscribe.js";
19
+ import "hammerjs";
20
+ import "three";
21
+ import "@realsee/five";
22
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
23
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
24
+ import "../../shared-utils/positionToVector3.js";
25
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
26
+ import "three/examples/jsm/renderers/CSS3DRenderer";
27
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
28
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
29
+ import "../../CSS3DRenderPlugin/utils/even.js";
30
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
31
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
32
+ import "../../shared-utils/three/centerPoint.js";
33
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
34
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
35
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
36
+ import "../../shared-utils/absoluteUrl.js";
37
+ import "../utils/formatData.js";
38
+ import "../Assets/floorplanExtraObject.js";
39
+ const M = (o) => new r(o);
40
+ export {
41
+ M as FloorplanRoomsPlugin,
42
+ M as default
43
+ };
@@ -0,0 +1,60 @@
1
+ import type * as BasePlugin from './BasePluginWithData';
2
+ import type { FloorplanData } from '../typings/floorplanData';
3
+ import type { FloorplanServerData } from '../typings/floorplanServerData';
4
+ export interface HighlightStyle {
5
+ color: string;
6
+ opacity: number;
7
+ disabled?: boolean;
8
+ }
9
+ export interface Config {
10
+ /** 鼠标放置在分间上时,是否要自动高亮分间 */
11
+ hoverEnable: boolean;
12
+ /** 支持highlight功能,默认为 false */
13
+ highlightEnable: boolean;
14
+ /** highlight的样式 */
15
+ highlightStyle?: HighlightStyle;
16
+ }
17
+ export interface State extends BasePlugin.State {
18
+ visible: boolean;
19
+ config: Config;
20
+ }
21
+ export interface EventMap extends BasePlugin.EventMap<State, FloorplanData> {
22
+ /** visible 从 false 到 true 的回调
23
+ * @param event.userAction 是否是用户操作
24
+ */
25
+ show: (event: {
26
+ userAction: boolean;
27
+ }) => void;
28
+ /** visible 从 true 到 false 的回调
29
+ * @param event.userAction 是否是用户操作
30
+ */
31
+ hide: (event: {
32
+ userAction: boolean;
33
+ }) => void;
34
+ /** enabled 从 false 到 true 的回调
35
+ * @param event.userAction 是否是用户操作
36
+ */
37
+ enable: (event: {
38
+ userAction: boolean;
39
+ }) => void;
40
+ /** enabled 从 true 到 false 的回调
41
+ * @param event.userAction 是否是用户操作
42
+ */
43
+ disable: (event: {
44
+ userAction: boolean;
45
+ }) => void;
46
+ }
47
+ /** 插件初始化参数 */
48
+ export interface Parameters extends Partial<Config> {
49
+ wrapper?: string | Element;
50
+ configs?: {
51
+ hoverEnable?: boolean;
52
+ highlightEnable?: boolean;
53
+ highlightStyle?: HighlightStyle;
54
+ };
55
+ }
56
+ export interface PluginServerData {
57
+ version: number;
58
+ data: FloorplanServerData;
59
+ }
60
+ export type { FloorplanData as PluginData };
@@ -3,5 +3,6 @@ export * from './ModelFloorplanPlugin';
3
3
  export * from './MapviewFloorplanPlugin';
4
4
  export * from './TopviewFloorplanPlugin';
5
5
  export * from './PanoFloorplanRadarPlugin';
6
+ export * from './FloorplanRoomsPlugin';
6
7
  export * from './typings/floorplanServerData';
7
8
  export * from './typings/floorplanData';
package/libs/index.d.ts CHANGED
@@ -22,5 +22,4 @@ export * from './PanoTagPlugin';
22
22
  export * from './Object3DHelperPlugin';
23
23
  export * from './PanoVideoPlugin';
24
24
  export * from './PipelinePlugin';
25
- export * from './AreaMakerPlugin';
26
25
  export * as Util from './shared-utils';