@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
@@ -1,191 +0,0 @@
1
- import { SvelteComponent as y, init as k, safe_not_equal as D, append_styles as v, element as p, svg_element as w, attr as s, insert as m, append as S, update_keyed_each as q, check_outros as E, transition_in as d, transition_out as c, detach as b, assign as I, empty as H, create_component as R, mount_component as B, get_spread_update as C, destroy_component as M, group_outros as W, outro_and_destroy_block as j } from "../../../../../vendor/svelte/internal/index.js";
2
- import z from "./Room.js";
3
- import "../../../../utils/formatPosition.js";
4
- function A(a) {
5
- v(a, "svelte-1kqo6e4", ".floorplan-plugin__room-highlight.svelte-1kqo6e4{position:absolute;width:100%;height:100%}svg.svelte-1kqo6e4{width:100%;height:100%;overflow:visible}");
6
- }
7
- function u(a, e, i) {
8
- const t = a.slice();
9
- return t[7] = e[i], t;
10
- }
11
- function _(a, e) {
12
- let i, t, g;
13
- const f = [
14
- {
15
- room: (
16
- /*room*/
17
- e[7]
18
- ),
19
- highlightEnable: (
20
- /*highlightEnable*/
21
- e[4]
22
- ),
23
- floorplanData: (
24
- /*floorplanData*/
25
- e[1]
26
- ),
27
- floorIndex: (
28
- /*floorIndex*/
29
- e[0]
30
- ),
31
- highlightData: (
32
- /*highlightData*/
33
- e[2]
34
- ),
35
- highlightStyle: (
36
- /*highlightStyle*/
37
- e[3]
38
- )
39
- }
40
- ];
41
- let r = {};
42
- for (let n = 0; n < f.length; n += 1)
43
- r = I(r, f[n]);
44
- return t = new z({ props: r }), {
45
- key: a,
46
- first: null,
47
- c() {
48
- i = H(), R(t.$$.fragment), this.first = i;
49
- },
50
- m(n, l) {
51
- m(n, i, l), B(t, n, l), g = !0;
52
- },
53
- p(n, l) {
54
- e = n;
55
- const o = l & /*floorplanData, floorIndex, highlightEnable, highlightData, highlightStyle*/
56
- 31 ? C(f, [
57
- {
58
- room: (
59
- /*room*/
60
- e[7]
61
- ),
62
- highlightEnable: (
63
- /*highlightEnable*/
64
- e[4]
65
- ),
66
- floorplanData: (
67
- /*floorplanData*/
68
- e[1]
69
- ),
70
- floorIndex: (
71
- /*floorIndex*/
72
- e[0]
73
- ),
74
- highlightData: (
75
- /*highlightData*/
76
- e[2]
77
- ),
78
- highlightStyle: (
79
- /*highlightStyle*/
80
- e[3]
81
- )
82
- }
83
- ]) : {};
84
- t.$set(o);
85
- },
86
- i(n) {
87
- g || (d(t.$$.fragment, n), g = !0);
88
- },
89
- o(n) {
90
- c(t.$$.fragment, n), g = !1;
91
- },
92
- d(n) {
93
- n && b(i), M(t, n);
94
- }
95
- };
96
- }
97
- function F(a) {
98
- let e, i, t = [], g = /* @__PURE__ */ new Map(), f, r = (
99
- /*floorplanData*/
100
- a[1].floorDatas[
101
- /*floorIndex*/
102
- a[0]
103
- ].rooms
104
- );
105
- const n = (l) => (
106
- /*room*/
107
- l[7].id
108
- );
109
- for (let l = 0; l < r.length; l += 1) {
110
- let o = u(a, r, l), h = n(o);
111
- g.set(h, t[l] = _(h, o));
112
- }
113
- return {
114
- c() {
115
- e = p("div"), i = w("svg");
116
- for (let l = 0; l < t.length; l += 1)
117
- t[l].c();
118
- s(i, "width", "100%"), s(i, "height", "100%"), s(i, "viewBox", `0 0 ${/*boundingWidth*/
119
- a[5]} ${/*boundingHeight*/
120
- a[6]}`), s(i, "class", "svelte-1kqo6e4"), s(e, "class", "floorplan-plugin__room-highlight svelte-1kqo6e4");
121
- },
122
- m(l, o) {
123
- m(l, e, o), S(e, i);
124
- for (let h = 0; h < t.length; h += 1)
125
- t[h] && t[h].m(i, null);
126
- f = !0;
127
- },
128
- p(l, [o]) {
129
- o & /*floorplanData, floorIndex, highlightEnable, highlightData, highlightStyle*/
130
- 31 && (r = /*floorplanData*/
131
- l[1].floorDatas[
132
- /*floorIndex*/
133
- l[0]
134
- ].rooms, W(), t = q(t, o, n, 1, l, r, g, i, j, _, null, u), E());
135
- },
136
- i(l) {
137
- if (!f) {
138
- for (let o = 0; o < r.length; o += 1)
139
- d(t[o]);
140
- f = !0;
141
- }
142
- },
143
- o(l) {
144
- for (let o = 0; o < t.length; o += 1)
145
- c(t[o]);
146
- f = !1;
147
- },
148
- d(l) {
149
- l && b(e);
150
- for (let o = 0; o < t.length; o += 1)
151
- t[o].d();
152
- }
153
- };
154
- }
155
- function G(a, e, i) {
156
- let { floorIndex: t } = e, { floorplanData: g } = e, { highlightData: f } = e, { highlightStyle: r } = e, { highlightEnable: n } = e;
157
- const l = g.bounding.max.x - g.bounding.min.x, o = g.bounding.max.y - g.bounding.min.y;
158
- return a.$$set = (h) => {
159
- "floorIndex" in h && i(0, t = h.floorIndex), "floorplanData" in h && i(1, g = h.floorplanData), "highlightData" in h && i(2, f = h.highlightData), "highlightStyle" in h && i(3, r = h.highlightStyle), "highlightEnable" in h && i(4, n = h.highlightEnable);
160
- }, [
161
- t,
162
- g,
163
- f,
164
- r,
165
- n,
166
- l,
167
- o
168
- ];
169
- }
170
- class N extends y {
171
- constructor(e) {
172
- super(), k(
173
- this,
174
- e,
175
- G,
176
- F,
177
- D,
178
- {
179
- floorIndex: 0,
180
- floorplanData: 1,
181
- highlightData: 2,
182
- highlightStyle: 3,
183
- highlightEnable: 4
184
- },
185
- A
186
- );
187
- }
188
- }
189
- export {
190
- N as default
191
- };
@@ -1 +0,0 @@
1
- export { SvelteComponentTyped as default } from 'svelte/internal';
@@ -1,237 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- export { SvelteComponentTyped as default } from 'svelte/internal';
@@ -1,40 +0,0 @@
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
- }
@@ -1,207 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
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;