@realsee/dnalogel 2.1.2-alpha.0 → 2.1.2-alpha.2

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 (521) hide show
  1. package/README.md +3 -12
  2. package/docs/classes/CruisePluginController.html +24 -24
  3. package/docs/classes/Magnifier.html +16 -16
  4. package/docs/classes/ModelRoomLabelController.html +11 -11
  5. package/docs/classes/Object3DHelperController.html +24 -24
  6. package/docs/classes/PaintBrush.html +15 -15
  7. package/docs/classes/PanoTagPluginController.html +39 -39
  8. package/docs/classes/Util.BetterTween.html +8 -8
  9. package/docs/classes/Util.FivePointSelector.html +12 -12
  10. package/docs/classes/Util.Interval.html +12 -12
  11. package/docs/classes/Util.Magnifier.html +17 -17
  12. package/docs/classes/Util.PointDomHelper.html +11 -11
  13. package/docs/classes/Util.PointHelper.html +11 -11
  14. package/docs/classes/Util.Rectangle.html +13 -13
  15. package/docs/enums/CameraMovementEffect.html +7 -7
  16. package/docs/enums/ContentType.html +12 -12
  17. package/docs/enums/DIRECTION.html +9 -9
  18. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  19. package/docs/enums/DimensionType.html +7 -7
  20. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  21. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  22. package/docs/enums/LinkType.html +7 -7
  23. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  24. package/docs/enums/PointType.html +7 -7
  25. package/docs/enums/Rotation.html +8 -8
  26. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  27. package/docs/functions/CameraMovementPlugin.html +4 -4
  28. package/docs/functions/CruisePlugin.html +4 -4
  29. package/docs/functions/GuideLinePlugin.html +5 -5
  30. package/docs/functions/ItemLabelPlugin.html +4 -4
  31. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  32. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  33. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  34. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  35. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  36. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  37. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  38. package/docs/functions/ModelViewPlugin.html +4 -4
  39. package/docs/functions/Object3DHelperPlugin.html +4 -4
  40. package/docs/functions/PanoCompassPlugin.html +4 -4
  41. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  42. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  43. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  44. package/docs/functions/PanoMeasurePlugin.html +4 -4
  45. package/docs/functions/PanoRulerPlugin.html +4 -4
  46. package/docs/functions/PanoRulerProPlugin.html +4 -4
  47. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  48. package/docs/functions/PanoTagPlugin.html +4 -4
  49. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  50. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  51. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  52. package/docs/functions/Util.getFrameTime.html +5 -5
  53. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  54. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  55. package/docs/functions/Util.isNil.html +5 -5
  56. package/docs/functions/Util.nextFrame.html +5 -5
  57. package/docs/functions/Util.notNil.html +5 -5
  58. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  59. package/docs/functions/Util.tweenProgress.html +5 -5
  60. package/docs/functions/pluginFlag.html +5 -5
  61. package/docs/index.html +6 -11
  62. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  63. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  64. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  65. package/docs/interfaces/ContentTypeMap.html +12 -12
  66. package/docs/interfaces/FloorplanBounding.html +8 -8
  67. package/docs/interfaces/FloorplanData.html +10 -10
  68. package/docs/interfaces/FloorplanEntrance.html +11 -11
  69. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  70. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  71. package/docs/interfaces/FloorplanFloorData.html +9 -9
  72. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  73. package/docs/interfaces/FloorplanObserver.html +9 -9
  74. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  75. package/docs/interfaces/FloorplanPosition.html +7 -7
  76. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  77. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  78. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  79. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  80. package/docs/interfaces/FloorplanServerData.html +7 -7
  81. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  82. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  83. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  84. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  85. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  86. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  87. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  88. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  89. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  90. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  91. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  92. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  93. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  94. package/docs/interfaces/LineJson.html +7 -7
  95. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  96. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  97. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  98. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  99. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  100. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  101. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  102. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  103. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  104. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  105. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  106. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  107. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  108. package/docs/interfaces/Object3DHelperState.html +8 -8
  109. package/docs/interfaces/OpenParameter.html +7 -7
  110. package/docs/interfaces/PaintBrushAction.html +12 -12
  111. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  112. package/docs/interfaces/PaintBrushState.html +10 -10
  113. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  114. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  115. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  116. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  117. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  118. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  119. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  120. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  121. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  122. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  123. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  124. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  125. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  126. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  127. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  128. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  129. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  130. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  131. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  132. package/docs/interfaces/Point.html +8 -8
  133. package/docs/interfaces/PointJson.html +8 -8
  134. package/docs/interfaces/Room.html +9 -9
  135. package/docs/interfaces/RoomInfo.html +7 -7
  136. package/docs/interfaces/RoomLabel.html +14 -14
  137. package/docs/interfaces/RoomRules.html +5 -5
  138. package/docs/interfaces/Rooms.html +5 -5
  139. package/docs/interfaces/Scissor.html +9 -9
  140. package/docs/interfaces/TagConfig.html +10 -10
  141. package/docs/interfaces/Tags.html +9 -9
  142. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  143. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  144. package/docs/modules/Util.html +5 -5
  145. package/docs/modules.html +4 -4
  146. package/docs/types/ArrayPosition.html +5 -5
  147. package/docs/types/CSS3DRenderExportType.html +5 -5
  148. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  149. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  150. package/docs/types/Color.html +5 -5
  151. package/docs/types/ContentTypeConfigKey.html +5 -5
  152. package/docs/types/ContentTypeConfigKeyArray.html +5 -5
  153. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  154. package/docs/types/Create3DElementReturnType.html +5 -5
  155. package/docs/types/CruisePluginExportType.html +5 -5
  156. package/docs/types/Direction-1.html +5 -5
  157. package/docs/types/Direction4.html +5 -5
  158. package/docs/types/FloorplanRuleLabels.html +5 -5
  159. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  160. package/docs/types/GuideLinePluginExportType.html +5 -5
  161. package/docs/types/HelperEventMap.html +5 -5
  162. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  163. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  164. package/docs/types/MediaData.html +5 -5
  165. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  166. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  167. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  168. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  169. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  170. package/docs/types/MoveArgs.html +5 -5
  171. package/docs/types/MoveOpts.html +5 -5
  172. package/docs/types/Object3DHelperEventMap.html +5 -5
  173. package/docs/types/ObjectFit.html +5 -5
  174. package/docs/types/PaintBrushEventMap.html +5 -5
  175. package/docs/types/PanoCompassPluginData.html +5 -5
  176. package/docs/types/PanoCompassPluginExportType.html +5 -5
  177. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  178. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  179. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  180. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  181. package/docs/types/PanoMeasureReturnType.html +5 -5
  182. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  183. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  184. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  185. package/docs/types/PlaneTag.html +5 -5
  186. package/docs/types/PointTag.html +5 -5
  187. package/docs/types/Position.html +5 -5
  188. package/docs/types/RotateArgs.html +5 -5
  189. package/docs/types/RotateOpts.html +5 -5
  190. package/docs/types/RuleLabelsKey.html +5 -5
  191. package/docs/types/RuleLabelsValue.html +5 -5
  192. package/docs/types/Tag.html +5 -5
  193. package/docs/types/Tag2D.html +5 -5
  194. package/docs/types/Tag3D.html +5 -5
  195. package/docs/types/TagId.html +5 -5
  196. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  197. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  198. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  199. package/docs/variables/PLUGIN.html +5 -5
  200. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  201. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  202. package/docs/variables/VERSION.html +5 -5
  203. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  204. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  205. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  206. package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -331
  207. package/libs/CSS3DRenderPlugin/Controller.js +1 -84
  208. package/libs/CSS3DRenderPlugin/index.js +1 -6
  209. package/libs/CSS3DRenderPlugin/typing.js +1 -0
  210. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +1 -67
  211. package/libs/CSS3DRenderPlugin/utils/centerPoint.js +1 -10
  212. package/libs/CSS3DRenderPlugin/utils/evenNumber.js +1 -7
  213. package/libs/CSS3DRenderPlugin/utils/index.js +1 -0
  214. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -7
  215. package/libs/CSS3DRenderPlugin/utils/random.js +1 -0
  216. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +1 -88
  217. package/libs/CameraMovementPlugin/index.js +1 -0
  218. package/libs/CameraMovementPlugin/typing.js +1 -5
  219. package/libs/CruisePlugin/Controller.js +1 -484
  220. package/libs/CruisePlugin/index.js +1 -8
  221. package/libs/CruisePlugin/utils/coordinatesAngle.js +1 -8
  222. package/libs/CruisePlugin/utils/coordinatesToVector.js +1 -12
  223. package/libs/CruisePlugin/utils/formatRad.js +1 -7
  224. package/libs/CruisePlugin/utils/linerValue.js +1 -7
  225. package/libs/CruisePlugin/utils/safeCall.js +1 -28
  226. package/libs/CruisePlugin/utils/sleep.js +1 -10
  227. package/libs/CruisePlugin/utils/vectorToCoordinates.js +1 -10
  228. package/libs/GuideLinePlugin/Controller.js +1 -144
  229. package/libs/GuideLinePlugin/index.js +1 -6
  230. package/libs/GuideLinePlugin/utils/getArrowMaterial.js +1 -13
  231. package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -64
  232. package/libs/ItemLabelPlugin/ItemLabelComponent.js +1 -271
  233. package/libs/ItemLabelPlugin/ItemLabelItem.js +2 -133
  234. package/libs/ItemLabelPlugin/Plugin.js +2 -76
  235. package/libs/ItemLabelPlugin/index.js +1 -12
  236. package/libs/ItemLabelPlugin/typings.js +1 -4
  237. package/libs/ItemLabelPlugin/utils/getLabelTransform.js +1 -4
  238. package/libs/ItemLabelPlugin/utils/getStrokeLength.js +1 -16
  239. package/libs/ItemLabelPlugin/utils/isImpacted.js +1 -10
  240. package/libs/ItemLabelPlugin/utils/parseData.js +1 -21
  241. package/libs/ItemLabelPlugin/utils/transform2RenderData.js +1 -21
  242. package/libs/ModelChassisCompassPlugin/Plugin.js +1 -71
  243. package/libs/ModelChassisCompassPlugin/index.js +1 -0
  244. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +1 -78
  245. package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
  246. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +1 -212
  247. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +2 -42
  248. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +2 -74
  249. package/libs/ModelItemLabelPlugin/events.type.js +1 -0
  250. package/libs/ModelItemLabelPlugin/index.js +1 -12
  251. package/libs/ModelItemLabelPlugin/typings.js +1 -4
  252. package/libs/ModelItemLabelPlugin/utils/parseData.js +1 -19
  253. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -4
  254. package/libs/ModelRoomLabelPlugin/Controller.js +1 -60
  255. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +1 -45
  256. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +1 -162
  257. package/libs/ModelRoomLabelPlugin/index.js +1 -10
  258. package/libs/ModelRoomLabelPlugin/utils/parseData.js +1 -16
  259. package/libs/ModelTVVideoPlugin/Plugin.js +1 -164
  260. package/libs/ModelTVVideoPlugin/index.js +1 -0
  261. package/libs/ModelTVVideoPlugin/typings.js +1 -4
  262. package/libs/ModelTVVideoPlugin/utils/parseData.js +1 -20
  263. package/libs/ModelViewPlugin/Plugin.js +1 -107
  264. package/libs/ModelViewPlugin/index.js +1 -0
  265. package/libs/Object3DHelperPlugin/Controller.js +1 -145
  266. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +1 -32
  267. package/libs/Object3DHelperPlugin/index.js +1 -10
  268. package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -4
  269. package/libs/PanoCompassPlugin/Controller.js +1 -224
  270. package/libs/PanoCompassPlugin/getRoomInfoInstance.js +1 -24
  271. package/libs/PanoCompassPlugin/index.js +1 -6
  272. package/libs/PanoCursorRaycasterPlugin/index.js +1 -59
  273. package/libs/PanoDoorLabelPlugin/BaseController.js +1 -59
  274. package/libs/PanoDoorLabelPlugin/Controller.js +1 -219
  275. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -65
  276. package/libs/PanoDoorLabelPlugin/index.js +1 -6
  277. package/libs/PanoDoorLabelPlugin/utils.js +1 -23
  278. package/libs/PanoMeasurePlugin/Controller/BaseController.js +1 -53
  279. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -102
  280. package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -125
  281. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +1 -33
  282. package/libs/PanoMeasurePlugin/Controller/ViewController.js +1 -90
  283. package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -154
  284. package/libs/PanoMeasurePlugin/Controller/index.js +1 -140
  285. package/libs/PanoMeasurePlugin/Model/index.js +1 -92
  286. package/libs/PanoMeasurePlugin/Model/line.js +1 -56
  287. package/libs/PanoMeasurePlugin/Model/point.js +1 -30
  288. package/libs/PanoMeasurePlugin/Model/polyline.js +1 -47
  289. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +2 -5
  290. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -4
  291. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -4
  292. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +3 -67
  293. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +1 -28
  294. package/libs/PanoMeasurePlugin/Modules/GuideController.js +1 -41
  295. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -103
  296. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +8 -12
  297. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +1 -50
  298. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +1 -36
  299. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -48
  300. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +3 -8
  301. package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +1 -39
  302. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +1 -62
  303. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +2 -7
  304. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -130
  305. package/libs/PanoMeasurePlugin/index.js +1 -11
  306. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -12
  307. package/libs/PanoMeasurePlugin/utils/constants.js +1 -36
  308. package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -62
  309. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +1 -13
  310. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +1 -15
  311. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +1 -9
  312. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +1 -8
  313. package/libs/PanoMeasurePlugin/utils/ironbox.js +1 -4
  314. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +1 -7
  315. package/libs/PanoMeasurePlugin/utils/line.js +1 -18
  316. package/libs/PanoMeasurePlugin/utils/math.js +1 -13
  317. package/libs/PanoMeasurePlugin/utils/mouseGroup.js +3 -33
  318. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +1 -8
  319. package/libs/PanoRulerPlugin/Plugin.js +2 -263
  320. package/libs/PanoRulerPlugin/index.js +1 -0
  321. package/libs/PanoRulerPlugin/style.js +2 -5
  322. package/libs/PanoRulerProPlugin/Controller.js +1 -93
  323. package/libs/PanoRulerProPlugin/RulerItem.js +1 -128
  324. package/libs/PanoRulerProPlugin/RulerItems.js +1 -180
  325. package/libs/PanoRulerProPlugin/index.js +1 -6
  326. package/libs/PanoSpatialTagPlugin/Components/origins.js +1 -81
  327. package/libs/PanoSpatialTagPlugin/Components/tag.js +1 -124
  328. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -247
  329. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  330. package/libs/PanoSpatialTagPlugin/store.js +1 -5
  331. package/libs/PanoSpatialTagPlugin/style.js +1 -11
  332. package/libs/PanoSpatialTagPlugin/typings.js +1 -0
  333. package/libs/PanoTagPlugin/Assets/Icon.js +1 -6
  334. package/libs/PanoTagPlugin/Components/Common/Arrow.js +1 -103
  335. package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -166
  336. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -93
  337. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -90
  338. package/libs/PanoTagPlugin/Components/Common/Media.js +1 -393
  339. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -139
  340. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +1 -170
  341. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +1 -51
  342. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +1 -51
  343. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +1 -166
  344. package/libs/PanoTagPlugin/Components/Common/Shadow.js +15 -124
  345. package/libs/PanoTagPlugin/Components/Common/Text.js +1 -131
  346. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +1 -134
  347. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +1 -73
  348. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -192
  349. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +1 -126
  350. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -258
  351. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +1 -87
  352. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +1 -122
  353. package/libs/PanoTagPlugin/Components/Tag/index.js +2 -289
  354. package/libs/PanoTagPlugin/Components/TagContainer.js +1 -156
  355. package/libs/PanoTagPlugin/Components/TagWrapper.js +1 -153
  356. package/libs/PanoTagPlugin/controller/TagCacheController.js +1 -31
  357. package/libs/PanoTagPlugin/controller/TagComputer.js +1 -264
  358. package/libs/PanoTagPlugin/controller/index.js +1 -377
  359. package/libs/PanoTagPlugin/index.js +1 -9
  360. package/libs/PanoTagPlugin/tag.config.js +1 -44
  361. package/libs/PanoTagPlugin/typings/controller.js +1 -0
  362. package/libs/PanoTagPlugin/typings/index.js +1 -0
  363. package/libs/PanoTagPlugin/typings/tag.js +1 -7
  364. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +1 -6
  365. package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -27
  366. package/libs/PanoTagPlugin/utils/checkRange.js +1 -10
  367. package/libs/PanoTagPlugin/utils/constants.js +1 -8
  368. package/libs/PanoTagPlugin/utils/debounce.js +1 -12
  369. package/libs/PanoTagPlugin/utils/doUtil.js +1 -12
  370. package/libs/PanoTagPlugin/utils/index.js +1 -0
  371. package/libs/PanoTagPlugin/utils/noTypecheck.js +1 -4
  372. package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +1 -13
  373. package/libs/PanoTagPlugin/utils/planeNormal.js +1 -11
  374. package/libs/PanoTagPlugin/utils/resizeObserver.js +1 -17
  375. package/libs/PanoTagPlugin/utils/search.js +1 -15
  376. package/libs/PanoTagPlugin/utils/tagPosition.js +1 -13
  377. package/libs/PanoTagPlugin/utils/throttle.js +1 -11
  378. package/libs/base/BasePlugin.js +1 -18
  379. package/libs/base/BasePluginWithData.js +1 -6
  380. package/libs/components/PaintBrush/Controller.js +1 -308
  381. package/libs/components/PaintBrush/Subscribe.js +1 -47
  382. package/libs/components/PaintBrush/index.js +1 -45
  383. package/libs/components/PaintBrush/style.js +2 -5
  384. package/libs/components/PaintBrush/tween.js +1 -11
  385. package/libs/components/PaintBrush/typings.js +1 -4
  386. package/libs/components/PaintBrush/utils.js +1 -45
  387. package/libs/components/index.js +1 -0
  388. package/libs/floorplan/Assets/camera.js +1 -4
  389. package/libs/floorplan/Assets/compass.js +1 -4
  390. package/libs/floorplan/Assets/floorplanExtraObject.js +1 -4
  391. package/libs/floorplan/Components/BaseImage.js +1 -103
  392. package/libs/floorplan/Components/Camera.js +1 -62
  393. package/libs/floorplan/Components/Compass.js +1 -60
  394. package/libs/floorplan/Components/CurrentFloor.js +1 -246
  395. package/libs/floorplan/Components/Main.js +1 -264
  396. package/libs/floorplan/Components/Normalmage.js +1 -37
  397. package/libs/floorplan/Components/RoomHighlight/Room.js +1 -61
  398. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +1 -121
  399. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -153
  400. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +1 -174
  401. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -196
  402. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -37
  403. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -39
  404. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -37
  405. package/libs/floorplan/Components/RuleLabels/RuleItem.js +1 -134
  406. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +1 -139
  407. package/libs/floorplan/Components/SvgImage.js +2 -39
  408. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -321
  409. package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -6
  410. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -316
  411. package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -6
  412. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -85
  413. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +1 -129
  414. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +1 -72
  415. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +1 -183
  416. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -164
  417. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -6
  418. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -273
  419. package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -6
  420. package/libs/floorplan/constant.js +1 -4
  421. package/libs/floorplan/index.js +1 -0
  422. package/libs/floorplan/typings/floorplanData.js +1 -0
  423. package/libs/floorplan/typings/floorplanServerData.js +1 -101
  424. package/libs/floorplan/utils/constant.js +1 -7
  425. package/libs/floorplan/utils/correctFiveState.js +1 -54
  426. package/libs/floorplan/utils/formatData.js +1 -104
  427. package/libs/floorplan/utils/formatPosition.js +1 -35
  428. package/libs/index.js +1 -92
  429. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -152
  430. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +1 -53
  431. package/libs/shared-utils/Object3DHelper/Constants/color.js +1 -21
  432. package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +1 -18
  433. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -66
  434. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +1 -109
  435. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +1 -134
  436. package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +1 -79
  437. package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -41
  438. package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -14
  439. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -30
  440. package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +1 -35
  441. package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +1 -2
  442. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +1 -137
  443. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +1 -136
  444. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
  445. package/libs/shared-utils/Object3DHelper/index.js +1 -169
  446. package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -0
  447. package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -0
  448. package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -0
  449. package/libs/shared-utils/Object3DHelper/typings/index.js +1 -0
  450. package/libs/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +1 -11
  451. package/libs/shared-utils/Object3DHelper/utils/direction.js +1 -22
  452. package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -0
  453. package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +1 -14
  454. package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -0
  455. package/libs/shared-utils/Object3DHelper/utils/index.js +1 -0
  456. package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -0
  457. package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -0
  458. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -191
  459. package/libs/shared-utils/Object3DHelper/utils/vectorIsEqual.js +1 -6
  460. package/libs/shared-utils/Subscribe.js +1 -50
  461. package/libs/shared-utils/animationFrame/BetterTween.js +1 -26
  462. package/libs/shared-utils/animationFrame/calculateProgress.js +1 -6
  463. package/libs/shared-utils/animationFrame/formatRad.js +1 -11
  464. package/libs/shared-utils/animationFrame/index.js +1 -31
  465. package/libs/shared-utils/animationFrame/tween.js +1 -30
  466. package/libs/shared-utils/changeModelCanvasOpacity.js +1 -12
  467. package/libs/shared-utils/createCanvasTextTexture.js +1 -11
  468. package/libs/shared-utils/createLine/index.js +1 -9
  469. package/libs/shared-utils/debounce.js +1 -11
  470. package/libs/shared-utils/equal.js +1 -54
  471. package/libs/shared-utils/filter.js +1 -10
  472. package/libs/shared-utils/five/changeMode.js +1 -39
  473. package/libs/shared-utils/getPxmm.js +1 -21
  474. package/libs/shared-utils/index.js +1 -31
  475. package/libs/shared-utils/isNil.js +1 -10
  476. package/libs/shared-utils/isTruelyObject.js +1 -6
  477. package/libs/shared-utils/math/Interval.js +1 -23
  478. package/libs/shared-utils/math/Rectangle.js +1 -23
  479. package/libs/shared-utils/math/index.js +1 -0
  480. package/libs/shared-utils/math/planimetry.js +1 -48
  481. package/libs/shared-utils/math/rad2Deg.js +1 -6
  482. package/libs/shared-utils/nearlyEqual.js +1 -6
  483. package/libs/shared-utils/nextFrame.js +1 -6
  484. package/libs/shared-utils/noop.js +1 -5
  485. package/libs/shared-utils/object3d2LocalMatrix.js +1 -19
  486. package/libs/shared-utils/removeArrayItem.js +1 -8
  487. package/libs/shared-utils/tap.js +1 -6
  488. package/libs/shared-utils/three/Assets/index.js +1 -4
  489. package/libs/shared-utils/three/FivePointSelector.js +1 -49
  490. package/libs/shared-utils/three/Magnifier.js +1 -104
  491. package/libs/shared-utils/three/PointDomHelper.js +1 -60
  492. package/libs/shared-utils/three/PointHelper.js +3 -60
  493. package/libs/shared-utils/three/getCoords.js +1 -13
  494. package/libs/shared-utils/three/getIntersect.js +1 -8
  495. package/libs/shared-utils/three/getRaycaster.js +1 -12
  496. package/libs/shared-utils/three/index.js +1 -0
  497. package/libs/shared-utils/three/loadTexture.js +1 -28
  498. package/libs/shared-utils/three/transformPositionToVector3.js +1 -5
  499. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +1 -24
  500. package/libs/shared-utils/throttle.js +1 -11
  501. package/libs/shared-utils/tinyEJSrender.js +14 -138
  502. package/libs/shared-utils/to.js +1 -29
  503. package/libs/shared-utils/uuid.js +1 -10
  504. package/libs/vendor/swiper/components-shared/get-changed-params.js +1 -0
  505. package/libs/vendor/swiper/components-shared/get-params.js +1 -0
  506. package/libs/vendor/swiper/components-shared/mount-swiper.js +1 -0
  507. package/libs/vendor/swiper/components-shared/params-list.js +1 -0
  508. package/libs/vendor/swiper/components-shared/update-swiper.js +1 -0
  509. package/libs/vendor/swiper/components-shared/utils.js +1 -0
  510. package/libs/vendor/swiper/svelte/swiper-slide.js +1 -0
  511. package/libs/vendor/swiper/svelte/swiper-svelte.js +1 -0
  512. package/libs/vendor/swiper/svelte/swiper.js +1 -0
  513. package/package.json +187 -17
  514. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/get-changed-params.js +0 -29
  515. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/get-params.js +0 -23
  516. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/mount-swiper.js +0 -14
  517. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/params-list.js +0 -120
  518. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/update-swiper.js +0 -36
  519. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/utils.js +0 -32
  520. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/svelte/swiper-slide.js +0 -182
  521. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/svelte/swiper.js +0 -254
@@ -1,264 +1 @@
1
- import { SvelteComponent as S, init as j, safe_not_equal as z, append_styles as G, empty as H, insert as B, transition_in as g, group_outros as I, transition_out as _, check_outros as R, detach as F, assign as M, element as J, space as C, create_component as v, attr as K, append as P, mount_component as T, get_spread_update as N, add_render_callback as O, create_in_transition as Q, destroy_each as W, destroy_component as k } from "svelte/internal";
2
- import { linear as X } from "svelte/easing";
3
- import { fade as Y } from "svelte/transition";
4
- import Z from "./Camera.js";
5
- import y from "./Compass.js";
6
- import x from "./CurrentFloor.js";
7
- function p(a) {
8
- G(a, "svelte-86bqav", ".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}");
9
- }
10
- function U(a, e, t) {
11
- const l = a.slice();
12
- return l[16] = e[t], l;
13
- }
14
- function V(a) {
15
- let e, t, l, i, n, b, c = a[9].floorDatas, f = [];
16
- for (let r = 0; r < c.length; r += 1)
17
- f[r] = q(U(a, c, r));
18
- const D = (r) => _(f[r], 1, 1, () => {
19
- f[r] = null;
20
- }), h = [
21
- {
22
- panoIndex: a[3],
23
- floorplanData: a[9],
24
- lastPanoramaLongitude: a[10],
25
- cameraImageUrl: a[11]
26
- }
27
- ];
28
- let E = {};
29
- for (let r = 0; r < h.length; r += 1)
30
- E = M(E, h[r]);
31
- l = new Z({ props: E });
32
- let m = a[6] && w(a);
33
- return {
34
- c() {
35
- e = J("div");
36
- for (let r = 0; r < f.length; r += 1)
37
- f[r].c();
38
- t = C(), v(l.$$.fragment), i = C(), m && m.c(), K(e, "class", "floorplan-main svelte-86bqav");
39
- },
40
- m(r, s) {
41
- B(r, e, s);
42
- for (let d = 0; d < f.length; d += 1)
43
- f[d].m(e, null);
44
- P(e, t), T(l, e, null), P(e, i), m && m.m(e, null), b = !0;
45
- },
46
- p(r, s) {
47
- if (a = r, s & 62384) {
48
- c = a[9].floorDatas;
49
- let u;
50
- for (u = 0; u < c.length; u += 1) {
51
- const L = U(a, c, u);
52
- f[u] ? (f[u].p(L, s), g(f[u], 1)) : (f[u] = q(L), f[u].c(), g(f[u], 1), f[u].m(e, t));
53
- }
54
- for (I(), u = c.length; u < f.length; u += 1)
55
- D(u);
56
- R();
57
- }
58
- const d = s & 3592 ? N(h, [
59
- {
60
- panoIndex: a[3],
61
- floorplanData: a[9],
62
- lastPanoramaLongitude: a[10],
63
- cameraImageUrl: a[11]
64
- }
65
- ]) : {};
66
- l.$set(d), a[6] ? m ? (m.p(a, s), s & 64 && g(m, 1)) : (m = w(a), m.c(), g(m, 1), m.m(e, null)) : m && (I(), _(m, 1, 1, () => {
67
- m = null;
68
- }), R());
69
- },
70
- i(r) {
71
- if (!b) {
72
- for (let s = 0; s < c.length; s += 1)
73
- g(f[s]);
74
- g(l.$$.fragment, r), g(m), n || O(() => {
75
- n = Q(e, Y, {
76
- duration: a[0],
77
- easing: X
78
- }), n.start();
79
- }), b = !0;
80
- }
81
- },
82
- o(r) {
83
- f = f.filter(Boolean);
84
- for (let s = 0; s < f.length; s += 1)
85
- _(f[s]);
86
- _(l.$$.fragment, r), _(m), b = !1;
87
- },
88
- d(r) {
89
- r && F(e), W(f, r), k(l), m && m.d();
90
- }
91
- };
92
- }
93
- function q(a) {
94
- let e, t;
95
- const l = [
96
- {
97
- hoverEnable: a[5],
98
- floorplanData: a[9],
99
- getRoomAreaText: a[12],
100
- getLabelElement: a[13],
101
- getRuleDistanceText: a[14],
102
- roomLabelsEnable: a[7],
103
- ruleLabelsEnable: a[8],
104
- adaptiveRoomLabelVisibleEnable: a[15]
105
- },
106
- {
107
- floorIndex: a[16].floorIndex
108
- },
109
- {
110
- isCurrent: a[16].floorIndex === a[4]
111
- }
112
- ];
113
- let i = {};
114
- for (let n = 0; n < l.length; n += 1)
115
- i = M(i, l[n]);
116
- return e = new x({ props: i }), {
117
- c() {
118
- v(e.$$.fragment);
119
- },
120
- m(n, b) {
121
- T(e, n, b), t = !0;
122
- },
123
- p(n, b) {
124
- const c = b & 62384 ? N(l, [
125
- b & 62368 && {
126
- hoverEnable: n[5],
127
- floorplanData: n[9],
128
- getRoomAreaText: n[12],
129
- getLabelElement: n[13],
130
- getRuleDistanceText: n[14],
131
- roomLabelsEnable: n[7],
132
- ruleLabelsEnable: n[8],
133
- adaptiveRoomLabelVisibleEnable: n[15]
134
- },
135
- b & 512 && {
136
- floorIndex: n[16].floorIndex
137
- },
138
- b & 528 && {
139
- isCurrent: n[16].floorIndex === n[4]
140
- }
141
- ]) : {};
142
- e.$set(c);
143
- },
144
- i(n) {
145
- t || (g(e.$$.fragment, n), t = !0);
146
- },
147
- o(n) {
148
- _(e.$$.fragment, n), t = !1;
149
- },
150
- d(n) {
151
- k(e, n);
152
- }
153
- };
154
- }
155
- function w(a) {
156
- let e, t;
157
- return e = new y({
158
- props: {
159
- floorplanData: a[9],
160
- northDesc: a[2]
161
- }
162
- }), {
163
- c() {
164
- v(e.$$.fragment);
165
- },
166
- m(l, i) {
167
- T(e, l, i), t = !0;
168
- },
169
- p(l, i) {
170
- const n = {};
171
- i & 512 && (n.floorplanData = l[9]), i & 4 && (n.northDesc = l[2]), e.$set(n);
172
- },
173
- i(l) {
174
- t || (g(e.$$.fragment, l), t = !0);
175
- },
176
- o(l) {
177
- _(e.$$.fragment, l), t = !1;
178
- },
179
- d(l) {
180
- k(e, l);
181
- }
182
- };
183
- }
184
- function $(a) {
185
- let e, t, l = a[1] && V(a);
186
- return {
187
- c() {
188
- l && l.c(), e = H();
189
- },
190
- m(i, n) {
191
- l && l.m(i, n), B(i, e, n), t = !0;
192
- },
193
- p(i, [n]) {
194
- i[1] ? l ? (l.p(i, n), n & 2 && g(l, 1)) : (l = V(i), l.c(), g(l, 1), l.m(e.parentNode, e)) : l && (I(), _(l, 1, 1, () => {
195
- l = null;
196
- }), R());
197
- },
198
- i(i) {
199
- t || (g(l), t = !0);
200
- },
201
- o(i) {
202
- _(l), t = !1;
203
- },
204
- d(i) {
205
- l && l.d(i), i && F(e);
206
- }
207
- };
208
- }
209
- function ee(a, e, t) {
210
- let { duration: l = 0 } = e, { visible: i } = e, { northDesc: n } = e, { panoIndex: b } = e, { floorIndex: c } = e, { hoverEnable: f } = e, { compassEnable: D } = e, { roomLabelsEnable: h } = e, { ruleLabelsEnable: E } = e, { floorplanData: m } = e, { lastPanoramaLongitude: r } = e, { cameraImageUrl: s } = e, { getRoomAreaText: d } = e, { getLabelElement: u } = e, { getRuleDistanceText: L } = e, { adaptiveRoomLabelVisibleEnable: A } = e;
211
- return a.$$set = (o) => {
212
- "duration" in o && t(0, l = o.duration), "visible" in o && t(1, i = o.visible), "northDesc" in o && t(2, n = o.northDesc), "panoIndex" in o && t(3, b = o.panoIndex), "floorIndex" in o && t(4, c = o.floorIndex), "hoverEnable" in o && t(5, f = o.hoverEnable), "compassEnable" in o && t(6, D = o.compassEnable), "roomLabelsEnable" in o && t(7, h = o.roomLabelsEnable), "ruleLabelsEnable" in o && t(8, E = o.ruleLabelsEnable), "floorplanData" in o && t(9, m = o.floorplanData), "lastPanoramaLongitude" in o && t(10, r = o.lastPanoramaLongitude), "cameraImageUrl" in o && t(11, s = o.cameraImageUrl), "getRoomAreaText" in o && t(12, d = o.getRoomAreaText), "getLabelElement" in o && t(13, u = o.getLabelElement), "getRuleDistanceText" in o && t(14, L = o.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in o && t(15, A = o.adaptiveRoomLabelVisibleEnable);
213
- }, [
214
- l,
215
- i,
216
- n,
217
- b,
218
- c,
219
- f,
220
- D,
221
- h,
222
- E,
223
- m,
224
- r,
225
- s,
226
- d,
227
- u,
228
- L,
229
- A
230
- ];
231
- }
232
- class ie extends S {
233
- constructor(e) {
234
- super(), j(
235
- this,
236
- e,
237
- ee,
238
- $,
239
- z,
240
- {
241
- duration: 0,
242
- visible: 1,
243
- northDesc: 2,
244
- panoIndex: 3,
245
- floorIndex: 4,
246
- hoverEnable: 5,
247
- compassEnable: 6,
248
- roomLabelsEnable: 7,
249
- ruleLabelsEnable: 8,
250
- floorplanData: 9,
251
- lastPanoramaLongitude: 10,
252
- cameraImageUrl: 11,
253
- getRoomAreaText: 12,
254
- getLabelElement: 13,
255
- getRuleDistanceText: 14,
256
- adaptiveRoomLabelVisibleEnable: 15
257
- },
258
- p
259
- );
260
- }
261
- }
262
- export {
263
- ie as default
264
- };
1
+ "use strict";const e=require("svelte/internal"),T=require("svelte/easing"),k=require("svelte/transition"),q=require("./Camera.js"),A=require("./Compass.js"),P=require("./CurrentFloor.js");function U(a){e.append_styles(a,"svelte-86bqav",".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}")}function I(a,n,l){const t=a.slice();return t[16]=n[l],t}function v(a){let n,l,t,s,o,c,b=a[9].floorDatas,f=[];for(let i=0;i<b.length;i+=1)f[i]=R(I(a,b,i));const L=i=>e.transition_out(f[i],1,1,()=>{f[i]=null}),d=[{panoIndex:a[3],floorplanData:a[9],lastPanoramaLongitude:a[10],cameraImageUrl:a[11]}];let h={};for(let i=0;i<d.length;i+=1)h=e.assign(h,d[i]);t=new q.Camera({props:h});let u=a[6]&&C(a);return{c(){n=e.element("div");for(let i=0;i<f.length;i+=1)f[i].c();l=e.space(),e.create_component(t.$$.fragment),s=e.space(),u&&u.c(),e.attr(n,"class","floorplan-main svelte-86bqav")},m(i,m){e.insert(i,n,m);for(let g=0;g<f.length;g+=1)f[g].m(n,null);e.append(n,l),e.mount_component(t,n,null),e.append(n,s),u&&u.m(n,null),c=!0},p(i,m){if(a=i,m&62384){b=a[9].floorDatas;let _;for(_=0;_<b.length;_+=1){const E=I(a,b,_);f[_]?(f[_].p(E,m),e.transition_in(f[_],1)):(f[_]=R(E),f[_].c(),e.transition_in(f[_],1),f[_].m(n,l))}for(e.group_outros(),_=b.length;_<f.length;_+=1)L(_);e.check_outros()}const g=m&3592?e.get_spread_update(d,[{panoIndex:a[3],floorplanData:a[9],lastPanoramaLongitude:a[10],cameraImageUrl:a[11]}]):{};t.$set(g),a[6]?u?(u.p(a,m),m&64&&e.transition_in(u,1)):(u=C(a),u.c(),e.transition_in(u,1),u.m(n,null)):u&&(e.group_outros(),e.transition_out(u,1,1,()=>{u=null}),e.check_outros())},i(i){if(!c){for(let m=0;m<b.length;m+=1)e.transition_in(f[m]);e.transition_in(t.$$.fragment,i),e.transition_in(u),o||e.add_render_callback(()=>{o=e.create_in_transition(n,k.fade,{duration:a[0],easing:T.linear}),o.start()}),c=!0}},o(i){f=f.filter(Boolean);for(let m=0;m<f.length;m+=1)e.transition_out(f[m]);e.transition_out(t.$$.fragment,i),e.transition_out(u),c=!1},d(i){i&&e.detach(n),e.destroy_each(f,i),e.destroy_component(t),u&&u.d()}}}function R(a){let n,l;const t=[{hoverEnable:a[5],floorplanData:a[9],getRoomAreaText:a[12],getLabelElement:a[13],getRuleDistanceText:a[14],roomLabelsEnable:a[7],ruleLabelsEnable:a[8],adaptiveRoomLabelVisibleEnable:a[15]},{floorIndex:a[16].floorIndex},{isCurrent:a[16].floorIndex===a[4]}];let s={};for(let o=0;o<t.length;o+=1)s=e.assign(s,t[o]);return n=new P.CurrentFloor({props:s}),{c(){e.create_component(n.$$.fragment)},m(o,c){e.mount_component(n,o,c),l=!0},p(o,c){const b=c&62384?e.get_spread_update(t,[c&62368&&{hoverEnable:o[5],floorplanData:o[9],getRoomAreaText:o[12],getLabelElement:o[13],getRuleDistanceText:o[14],roomLabelsEnable:o[7],ruleLabelsEnable:o[8],adaptiveRoomLabelVisibleEnable:o[15]},c&512&&{floorIndex:o[16].floorIndex},c&528&&{isCurrent:o[16].floorIndex===o[4]}]):{};n.$set(b)},i(o){l||(e.transition_in(n.$$.fragment,o),l=!0)},o(o){e.transition_out(n.$$.fragment,o),l=!1},d(o){e.destroy_component(n,o)}}}function C(a){let n,l;return n=new A.Compass({props:{floorplanData:a[9],northDesc:a[2]}}),{c(){e.create_component(n.$$.fragment)},m(t,s){e.mount_component(n,t,s),l=!0},p(t,s){const o={};s&512&&(o.floorplanData=t[9]),s&4&&(o.northDesc=t[2]),n.$set(o)},i(t){l||(e.transition_in(n.$$.fragment,t),l=!0)},o(t){e.transition_out(n.$$.fragment,t),l=!1},d(t){e.destroy_component(n,t)}}}function V(a){let n,l,t=a[1]&&v(a);return{c(){t&&t.c(),n=e.empty()},m(s,o){t&&t.m(s,o),e.insert(s,n,o),l=!0},p(s,[o]){s[1]?t?(t.p(s,o),o&2&&e.transition_in(t,1)):(t=v(s),t.c(),e.transition_in(t,1),t.m(n.parentNode,n)):t&&(e.group_outros(),e.transition_out(t,1,1,()=>{t=null}),e.check_outros())},i(s){l||(e.transition_in(t),l=!0)},o(s){e.transition_out(t),l=!1},d(s){t&&t.d(s),s&&e.detach(n)}}}function w(a,n,l){let{duration:t=0}=n,{visible:s}=n,{northDesc:o}=n,{panoIndex:c}=n,{floorIndex:b}=n,{hoverEnable:f}=n,{compassEnable:L}=n,{roomLabelsEnable:d}=n,{ruleLabelsEnable:h}=n,{floorplanData:u}=n,{lastPanoramaLongitude:i}=n,{cameraImageUrl:m}=n,{getRoomAreaText:g}=n,{getLabelElement:_}=n,{getRuleDistanceText:E}=n,{adaptiveRoomLabelVisibleEnable:D}=n;return a.$$set=r=>{"duration"in r&&l(0,t=r.duration),"visible"in r&&l(1,s=r.visible),"northDesc"in r&&l(2,o=r.northDesc),"panoIndex"in r&&l(3,c=r.panoIndex),"floorIndex"in r&&l(4,b=r.floorIndex),"hoverEnable"in r&&l(5,f=r.hoverEnable),"compassEnable"in r&&l(6,L=r.compassEnable),"roomLabelsEnable"in r&&l(7,d=r.roomLabelsEnable),"ruleLabelsEnable"in r&&l(8,h=r.ruleLabelsEnable),"floorplanData"in r&&l(9,u=r.floorplanData),"lastPanoramaLongitude"in r&&l(10,i=r.lastPanoramaLongitude),"cameraImageUrl"in r&&l(11,m=r.cameraImageUrl),"getRoomAreaText"in r&&l(12,g=r.getRoomAreaText),"getLabelElement"in r&&l(13,_=r.getLabelElement),"getRuleDistanceText"in r&&l(14,E=r.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in r&&l(15,D=r.adaptiveRoomLabelVisibleEnable)},[t,s,o,c,b,f,L,d,h,u,i,m,g,_,E,D]}class j extends e.SvelteComponent{constructor(n){super(),e.init(this,n,w,V,e.safe_not_equal,{duration:0,visible:1,northDesc:2,panoIndex:3,floorIndex:4,hoverEnable:5,compassEnable:6,roomLabelsEnable:7,ruleLabelsEnable:8,floorplanData:9,lastPanoramaLongitude:10,cameraImageUrl:11,getRoomAreaText:12,getLabelElement:13,getRuleDistanceText:14,adaptiveRoomLabelVisibleEnable:15},U)}}exports.Main=j;
@@ -1,37 +1 @@
1
- import { SvelteComponent as o, init as c, safe_not_equal as u, append_styles as f, element as m, src_url_equal as l, attr as s, insert as g, noop as a, detach as _ } from "svelte/internal";
2
- function d(n) {
3
- f(n, "svelte-1gfoniz", "img.svelte-1gfoniz{width:100%;height:100%}");
4
- }
5
- function p(n) {
6
- let e, r;
7
- return {
8
- c() {
9
- e = m("img"), l(e.src, r = n[0]) || s(e, "src", r), s(e, "alt", "floorplan iamge"), s(e, "class", "svelte-1gfoniz");
10
- },
11
- m(t, i) {
12
- g(t, e, i);
13
- },
14
- p(t, [i]) {
15
- i & 1 && !l(e.src, r = t[0]) && s(e, "src", r);
16
- },
17
- i: a,
18
- o: a,
19
- d(t) {
20
- t && _(e);
21
- }
22
- };
23
- }
24
- function h(n, e, r) {
25
- let { url: t } = e;
26
- return n.$$set = (i) => {
27
- "url" in i && r(0, t = i.url);
28
- }, [t];
29
- }
30
- class z extends o {
31
- constructor(e) {
32
- super(), c(this, e, h, p, u, { url: 0 }, d);
33
- }
34
- }
35
- export {
36
- z as default
37
- };
1
+ "use strict";const e=require("svelte/internal");function i(n){e.append_styles(n,"svelte-1gfoniz","img.svelte-1gfoniz{width:100%;height:100%}")}function a(n){let t,l;return{c(){t=e.element("img"),e.src_url_equal(t.src,l=n[0])||e.attr(t,"src",l),e.attr(t,"alt","floorplan iamge"),e.attr(t,"class","svelte-1gfoniz")},m(r,s){e.insert(r,t,s)},p(r,[s]){s&1&&!e.src_url_equal(t.src,l=r[0])&&e.attr(t,"src",l)},i:e.noop,o:e.noop,d(r){r&&e.detach(t)}}}function c(n,t,l){let{url:r}=t;return n.$$set=s=>{"url"in s&&l(0,r=s.url)},[r]}class o extends e.SvelteComponent{constructor(t){super(),e.init(this,t,c,a,e.safe_not_equal,{url:0},i)}}exports.Normalmage=o;
@@ -1,61 +1 @@
1
- import { SvelteComponent as d, init as h, safe_not_equal as p, append_styles as _, svg_element as D, attr as r, insert as R, listen as i, noop as f, detach as g, run_all as y } from "svelte/internal";
2
- import M, { pathD as b } from "../../utils/formatPosition.js";
3
- function q(t) {
4
- _(t, "svelte-19uvvss", "path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}");
5
- }
6
- function C(t) {
7
- let e, n, a;
8
- return {
9
- c() {
10
- e = D("path"), r(e, "d", t[2]), r(e, "fill", "#fff"), r(e, "class", "svelte-19uvvss");
11
- },
12
- m(s, l) {
13
- R(s, e, l), n || (a = [
14
- i(e, "mouseenter", t[0]),
15
- i(e, "mouseleave", t[1])
16
- ], n = !0);
17
- },
18
- p: f,
19
- i: f,
20
- o: f,
21
- d(s) {
22
- s && g(e), n = !1, y(a);
23
- }
24
- };
25
- }
26
- function E(t, e, n) {
27
- let { room: a } = e, { floorplanData: s } = e, { hoveredRoom: l } = e;
28
- function u() {
29
- l.set(a);
30
- }
31
- function m() {
32
- l.set(void 0);
33
- }
34
- const { bounding: v } = s, c = b(a.path, {
35
- needZ: !0,
36
- format: (o) => M(o, v)
37
- });
38
- return t.$$set = (o) => {
39
- "room" in o && n(3, a = o.room), "floorplanData" in o && n(4, s = o.floorplanData), "hoveredRoom" in o && n(5, l = o.hoveredRoom);
40
- }, [u, m, c, a, s, l];
41
- }
42
- class P extends d {
43
- constructor(e) {
44
- super(), h(
45
- this,
46
- e,
47
- E,
48
- C,
49
- p,
50
- {
51
- room: 3,
52
- floorplanData: 4,
53
- hoveredRoom: 5
54
- },
55
- q
56
- );
57
- }
58
- }
59
- export {
60
- P as default
61
- };
1
+ "use strict";const e=require("svelte/internal"),i=require("../../utils/formatPosition.js");function c(o){e.append_styles(o,"svelte-19uvvss","path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}")}function d(o){let t,s,a;return{c(){t=e.svg_element("path"),e.attr(t,"d",o[2]),e.attr(t,"fill","#fff"),e.attr(t,"class","svelte-19uvvss")},m(l,r){e.insert(l,t,r),s||(a=[e.listen(t,"mouseenter",o[0]),e.listen(t,"mouseleave",o[1])],s=!0)},p:e.noop,i:e.noop,o:e.noop,d(l){l&&e.detach(t),s=!1,e.run_all(a)}}}function h(o,t,s){let{room:a}=t,{floorplanData:l}=t,{hoveredRoom:r}=t;function u(){r.set(a)}function f(){r.set(void 0)}const{bounding:m}=l,v=i.pathD(a.path,{needZ:!0,format:n=>i.formatFloorplanPoint(n,m)});return o.$$set=n=>{"room"in n&&s(3,a=n.room),"floorplanData"in n&&s(4,l=n.floorplanData),"hoveredRoom"in n&&s(5,r=n.hoveredRoom)},[u,f,v,a,l,r]}class p extends e.SvelteComponent{constructor(t){super(),e.init(this,t,h,d,e.safe_not_equal,{room:3,floorplanData:4,hoveredRoom:5},c)}}exports.Room=p;
@@ -1,121 +1 @@
1
- import { SvelteComponent as v, init as k, safe_not_equal as b, append_styles as y, element as D, svg_element as R, attr as u, insert as _, append as w, group_outros as q, update_keyed_each as I, outro_and_destroy_block as x, check_outros as H, transition_in as g, transition_out as c, detach as p, assign as B, empty as C, create_component as M, mount_component as S, get_spread_update as W, destroy_component as j } from "svelte/internal";
2
- import z from "./Room.js";
3
- function A(i) {
4
- y(i, "svelte-1kqo6e4", ".floorplan-plugin__room-highlight.svelte-1kqo6e4{position:absolute;width:100%;height:100%}svg.svelte-1kqo6e4{width:100%;height:100%;overflow:visible}");
5
- }
6
- function m(i, t, r) {
7
- const o = i.slice();
8
- return o[5] = t[r], o;
9
- }
10
- function d(i, t) {
11
- let r, o, a;
12
- const s = [
13
- {
14
- room: t[5],
15
- floorplanData: t[1],
16
- hoveredRoom: t[2]
17
- }
18
- ];
19
- let f = {};
20
- for (let l = 0; l < s.length; l += 1)
21
- f = B(f, s[l]);
22
- return o = new z({ props: f }), {
23
- key: i,
24
- first: null,
25
- c() {
26
- r = C(), M(o.$$.fragment), this.first = r;
27
- },
28
- m(l, e) {
29
- _(l, r, e), S(o, l, e), a = !0;
30
- },
31
- p(l, e) {
32
- t = l;
33
- const n = e & 7 ? W(s, [
34
- {
35
- room: t[5],
36
- floorplanData: t[1],
37
- hoveredRoom: t[2]
38
- }
39
- ]) : {};
40
- o.$set(n);
41
- },
42
- i(l) {
43
- a || (g(o.$$.fragment, l), a = !0);
44
- },
45
- o(l) {
46
- c(o.$$.fragment, l), a = !1;
47
- },
48
- d(l) {
49
- l && p(r), j(o, l);
50
- }
51
- };
52
- }
53
- function E(i) {
54
- let t, r, o = [], a = /* @__PURE__ */ new Map(), s, f = i[1].floorDatas[i[0]].rooms;
55
- const l = (e) => e[5].id;
56
- for (let e = 0; e < f.length; e += 1) {
57
- let n = m(i, f, e), h = l(n);
58
- a.set(h, o[e] = d(h, n));
59
- }
60
- return {
61
- c() {
62
- t = D("div"), r = R("svg");
63
- for (let e = 0; e < o.length; e += 1)
64
- o[e].c();
65
- u(r, "width", "100%"), u(r, "height", "100%"), u(r, "viewBox", `0 0 ${i[3]} ${i[4]}`), u(r, "class", "svelte-1kqo6e4"), u(t, "class", "floorplan-plugin__room-highlight svelte-1kqo6e4");
66
- },
67
- m(e, n) {
68
- _(e, t, n), w(t, r);
69
- for (let h = 0; h < o.length; h += 1)
70
- o[h].m(r, null);
71
- s = !0;
72
- },
73
- p(e, [n]) {
74
- n & 7 && (f = e[1].floorDatas[e[0]].rooms, q(), o = I(o, n, l, 1, e, f, a, r, x, d, null, m), H());
75
- },
76
- i(e) {
77
- if (!s) {
78
- for (let n = 0; n < f.length; n += 1)
79
- g(o[n]);
80
- s = !0;
81
- }
82
- },
83
- o(e) {
84
- for (let n = 0; n < o.length; n += 1)
85
- c(o[n]);
86
- s = !1;
87
- },
88
- d(e) {
89
- e && p(t);
90
- for (let n = 0; n < o.length; n += 1)
91
- o[n].d();
92
- }
93
- };
94
- }
95
- function F(i, t, r) {
96
- let { floorIndex: o } = t, { floorplanData: a } = t, { hoveredRoom: s } = t;
97
- const f = a.bounding.max.x - a.bounding.min.x, l = a.bounding.max.y - a.bounding.min.y;
98
- return i.$$set = (e) => {
99
- "floorIndex" in e && r(0, o = e.floorIndex), "floorplanData" in e && r(1, a = e.floorplanData), "hoveredRoom" in e && r(2, s = e.hoveredRoom);
100
- }, [o, a, s, f, l];
101
- }
102
- class K extends v {
103
- constructor(t) {
104
- super(), k(
105
- this,
106
- t,
107
- F,
108
- E,
109
- b,
110
- {
111
- floorIndex: 0,
112
- floorplanData: 1,
113
- hoveredRoom: 2
114
- },
115
- A
116
- );
117
- }
118
- }
119
- export {
120
- K as default
121
- };
1
+ "use strict";const o=require("svelte/internal"),g=require("./Room.js");function c(a){o.append_styles(a,"svelte-1kqo6e4",".floorplan-plugin__room-highlight.svelte-1kqo6e4{position:absolute;width:100%;height:100%}svg.svelte-1kqo6e4{width:100%;height:100%;overflow:visible}")}function _(a,n,i){const t=a.slice();return t[5]=n[i],t}function m(a,n){let i,t,s;const h=[{room:n[5],floorplanData:n[1],hoveredRoom:n[2]}];let f={};for(let r=0;r<h.length;r+=1)f=o.assign(f,h[r]);return t=new g.Room({props:f}),{key:a,first:null,c(){i=o.empty(),o.create_component(t.$$.fragment),this.first=i},m(r,e){o.insert(r,i,e),o.mount_component(t,r,e),s=!0},p(r,e){n=r;const l=e&7?o.get_spread_update(h,[{room:n[5],floorplanData:n[1],hoveredRoom:n[2]}]):{};t.$set(l)},i(r){s||(o.transition_in(t.$$.fragment,r),s=!0)},o(r){o.transition_out(t.$$.fragment,r),s=!1},d(r){r&&o.detach(i),o.destroy_component(t,r)}}}function d(a){let n,i,t=[],s=new Map,h,f=a[1].floorDatas[a[0]].rooms;const r=e=>e[5].id;for(let e=0;e<f.length;e+=1){let l=_(a,f,e),u=r(l);s.set(u,t[e]=m(u,l))}return{c(){n=o.element("div"),i=o.svg_element("svg");for(let e=0;e<t.length;e+=1)t[e].c();o.attr(i,"width","100%"),o.attr(i,"height","100%"),o.attr(i,"viewBox",`0 0 ${a[3]} ${a[4]}`),o.attr(i,"class","svelte-1kqo6e4"),o.attr(n,"class","floorplan-plugin__room-highlight svelte-1kqo6e4")},m(e,l){o.insert(e,n,l),o.append(n,i);for(let u=0;u<t.length;u+=1)t[u].m(i,null);h=!0},p(e,[l]){l&7&&(f=e[1].floorDatas[e[0]].rooms,o.group_outros(),t=o.update_keyed_each(t,l,r,1,e,f,s,i,o.outro_and_destroy_block,m,null,_),o.check_outros())},i(e){if(!h){for(let l=0;l<f.length;l+=1)o.transition_in(t[l]);h=!0}},o(e){for(let l=0;l<t.length;l+=1)o.transition_out(t[l]);h=!1},d(e){e&&o.detach(n);for(let l=0;l<t.length;l+=1)t[l].d()}}}function p(a,n,i){let{floorIndex:t}=n,{floorplanData:s}=n,{hoveredRoom:h}=n;const f=s.bounding.max.x-s.bounding.min.x,r=s.bounding.max.y-s.bounding.min.y;return a.$$set=e=>{"floorIndex"in e&&i(0,t=e.floorIndex),"floorplanData"in e&&i(1,s=e.floorplanData),"hoveredRoom"in e&&i(2,h=e.hoveredRoom)},[t,s,h,f,r]}class v extends o.SvelteComponent{constructor(n){super(),o.init(this,n,p,d,o.safe_not_equal,{floorIndex:0,floorplanData:1,hoveredRoom:2},c)}}exports.RoomHighlight=v;
@@ -1,153 +1 @@
1
- import { SvelteComponent as O, init as Q, safe_not_equal as Z, append_styles as $, element as k, attr as C, set_style as _, insert as p, noop as E, detach as g, binding_callbacks as ee, HtmlTag as te, empty as oe, text as V, space as ne, append as A, set_data as j } from "svelte/internal";
2
- import { onMount as ie } from "svelte";
3
- function le(i) {
4
- $(i, "svelte-12pzct5", ".floorplan-plugin__room-label-item.svelte-12pzct5{position:absolute;display:flex;flex-flow:column;align-items:center;line-height:1;color:#fff;transform:translate(-50%, -50%);white-space:nowrap;will-change:opacity;transition:opacity 300ms}.floorplan-plugin__room-size.svelte-12pzct5{opacity:0.45}");
5
- }
6
- function se(i) {
7
- let e, n = i[4].outerHTML + "", l;
8
- return {
9
- c() {
10
- e = new te(!1), l = oe(), e.a = l;
11
- },
12
- m(t, o) {
13
- e.m(n, t, o), p(t, l, o);
14
- },
15
- p(t, o) {
16
- o & 16 && n !== (n = t[4].outerHTML + "") && e.p(n);
17
- },
18
- d(t) {
19
- t && g(l), t && e.d();
20
- }
21
- };
22
- }
23
- function fe(i) {
24
- let e, n = i[0].name + "", l, t, o, c;
25
- return {
26
- c() {
27
- e = k("span"), l = V(n), t = ne(), o = k("span"), c = V(i[5]), C(e, "class", "floorplan-plugin__room-name"), C(o, "class", "floorplan-plugin__room-size svelte-12pzct5");
28
- },
29
- m(a, f) {
30
- p(a, e, f), A(e, l), p(a, t, f), p(a, o, f), A(o, c);
31
- },
32
- p(a, f) {
33
- f & 1 && n !== (n = a[0].name + "") && j(l, n), f & 32 && j(c, a[5]);
34
- },
35
- d(a) {
36
- a && g(e), a && g(t), a && g(o);
37
- }
38
- };
39
- }
40
- function ae(i) {
41
- let e;
42
- function n(o, c) {
43
- if (o[1] === void 0)
44
- return fe;
45
- if (o[4])
46
- return se;
47
- }
48
- let l = n(i), t = l && l(i);
49
- return {
50
- c() {
51
- e = k("div"), t && t.c(), C(e, "class", "floorplan-plugin__room-label-item svelte-12pzct5"), _(e, "left", i[6], !1), _(e, "top", i[7], !1), _(e, "font-size", i[8], !1), _(e, "opacity", i[3] ? "1" : "0", !1);
52
- },
53
- m(o, c) {
54
- p(o, e, c), t && t.m(e, null), i[16](e);
55
- },
56
- p(o, [c]) {
57
- l === (l = n(o)) && t ? t.p(o, c) : (t && t.d(1), t = l && l(o), t && (t.c(), t.m(e, null))), c & 8 && _(e, "opacity", o[3] ? "1" : "0", !1);
58
- },
59
- i: E,
60
- o: E,
61
- d(o) {
62
- o && g(e), t && t.d(), i[16](null);
63
- }
64
- };
65
- }
66
- function ce(i, e) {
67
- const n = i[0], l = i[1];
68
- let t = !1;
69
- for (let o = 0, c = e.length - 1; o < e.length; c = o++) {
70
- const a = e[o][0], f = e[o][1], h = e[c][0], r = e[c][1];
71
- f > l != r > l && n < (h - a) * (l - f) / (r - f) + a && (t = !t);
72
- }
73
- return t;
74
- }
75
- function re(i, e, n) {
76
- let l, t, o, c, { pxmm: a } = e, { room: f } = e, { hoveredRoom: h } = e, { getRoomAreaText: r } = e, { getLabelElement: m } = e, { adaptiveRoomLabelVisibleEnable: v } = e;
77
- function M(s, b) {
78
- if (b.width === 0 || b.height === 0)
79
- return () => !1;
80
- const X = s.path.map(({ x: P, y: d }) => [P, d]), Y = s.roomLabel.position, { x: B, y: F } = Y, { width: G, height: J } = b, R = G / 2, L = J / 2;
81
- return function(d) {
82
- const z = B * d, w = F * d, K = X.map(([T, N]) => [T * d, N * d]);
83
- return [
84
- [z + R, w - L],
85
- [z - R, w - L],
86
- [z - R, w + L],
87
- [z + R, w + L]
88
- ].every((T) => ce(T, K));
89
- };
90
- }
91
- const W = document.body.clientWidth, x = document.body.clientHeight, I = f.roomLabel, D = I.positionInImage.x * 100 + "%", S = I.positionInImage.y * 100 + "%", q = (W < 500 || x < 500 ? 10 : 14) / 16 + "rem";
92
- let H = !1, u, y;
93
- h.subscribe(function(b) {
94
- n(13, H = !!b && b.id === f.id);
95
- }), ie(() => {
96
- const s = u == null ? void 0 : u.getClientRects()[0];
97
- n(14, y = {
98
- width: s.width,
99
- height: s.height
100
- });
101
- });
102
- function U(s) {
103
- ee[s ? "unshift" : "push"](() => {
104
- u = s, n(2, u);
105
- });
106
- }
107
- return i.$$set = (s) => {
108
- "pxmm" in s && n(9, a = s.pxmm), "room" in s && n(0, f = s.room), "hoveredRoom" in s && n(10, h = s.hoveredRoom), "getRoomAreaText" in s && n(11, r = s.getRoomAreaText), "getLabelElement" in s && n(1, m = s.getLabelElement), "adaptiveRoomLabelVisibleEnable" in s && n(12, v = s.adaptiveRoomLabelVisibleEnable);
109
- }, i.$$.update = () => {
110
- i.$$.dirty & 2049 && n(5, l = f.size ? r(f.size) : ""), i.$$.dirty & 16385 && n(15, t = y ? M(f, y) : void 0), i.$$.dirty & 3 && n(4, o = m == null ? void 0 : m(f)), i.$$.dirty & 45568 && n(3, c = v ? H ? !0 : !!(t != null && t(a)) : !0);
111
- }, [
112
- f,
113
- m,
114
- u,
115
- c,
116
- o,
117
- l,
118
- D,
119
- S,
120
- q,
121
- a,
122
- h,
123
- r,
124
- v,
125
- H,
126
- y,
127
- t,
128
- U
129
- ];
130
- }
131
- class de extends O {
132
- constructor(e) {
133
- super(), Q(
134
- this,
135
- e,
136
- re,
137
- ae,
138
- Z,
139
- {
140
- pxmm: 9,
141
- room: 0,
142
- hoveredRoom: 10,
143
- getRoomAreaText: 11,
144
- getLabelElement: 1,
145
- adaptiveRoomLabelVisibleEnable: 12
146
- },
147
- le
148
- );
149
- }
150
- }
151
- export {
152
- de as default
153
- };
1
+ "use strict";const t=require("svelte/internal"),X=require("svelte");function Y(l){t.append_styles(l,"svelte-12pzct5",".floorplan-plugin__room-label-item.svelte-12pzct5{position:absolute;display:flex;flex-flow:column;align-items:center;line-height:1;color:#fff;transform:translate(-50%, -50%);white-space:nowrap;will-change:opacity;transition:opacity 300ms}.floorplan-plugin__room-size.svelte-12pzct5{opacity:0.45}")}function B(l){let e,i=l[4].outerHTML+"",s;return{c(){e=new t.HtmlTag(!1),s=t.empty(),e.a=s},m(n,o){e.m(i,n,o),t.insert(n,s,o)},p(n,o){o&16&&i!==(i=n[4].outerHTML+"")&&e.p(i)},d(n){n&&t.detach(s),n&&e.d()}}}function F(l){let e,i=l[0].name+"",s,n,o,r;return{c(){e=t.element("span"),s=t.text(i),n=t.space(),o=t.element("span"),r=t.text(l[5]),t.attr(e,"class","floorplan-plugin__room-name"),t.attr(o,"class","floorplan-plugin__room-size svelte-12pzct5")},m(f,c){t.insert(f,e,c),t.append(e,s),t.insert(f,n,c),t.insert(f,o,c),t.append(o,r)},p(f,c){c&1&&i!==(i=f[0].name+"")&&t.set_data(s,i),c&32&&t.set_data(r,f[5])},d(f){f&&t.detach(e),f&&t.detach(n),f&&t.detach(o)}}}function G(l){let e;function i(o,r){if(o[1]===void 0)return F;if(o[4])return B}let s=i(l),n=s&&s(l);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","floorplan-plugin__room-label-item svelte-12pzct5"),t.set_style(e,"left",l[6],!1),t.set_style(e,"top",l[7],!1),t.set_style(e,"font-size",l[8],!1),t.set_style(e,"opacity",l[3]?"1":"0",!1)},m(o,r){t.insert(o,e,r),n&&n.m(e,null),l[16](e)},p(o,[r]){s===(s=i(o))&&n?n.p(o,r):(n&&n.d(1),n=s&&s(o),n&&(n.c(),n.m(e,null))),r&8&&t.set_style(e,"opacity",o[3]?"1":"0",!1)},i:t.noop,o:t.noop,d(o){o&&t.detach(e),n&&n.d(),l[16](null)}}}function J(l,e){const i=l[0],s=l[1];let n=!1;for(let o=0,r=e.length-1;o<e.length;r=o++){const f=e[o][0],c=e[o][1],h=e[r][0],m=e[r][1];c>s!=m>s&&i<(h-f)*(s-c)/(m-c)+f&&(n=!n)}return n}function K(l,e,i){let s,n,o,r,{pxmm:f}=e,{room:c}=e,{hoveredRoom:h}=e,{getRoomAreaText:m}=e,{getLabelElement:u}=e,{adaptiveRoomLabelVisibleEnable:v}=e;function k(a,b){if(b.width===0||b.height===0)return()=>!1;const j=a.path.map(({x:T,y:_})=>[T,_]),q=a.roomLabel.position,{x:M,y:W}=q,{width:x,height:D}=b,p=x/2,g=D/2;return function(_){const R=M*_,L=W*_,S=j.map(([w,U])=>[w*_,U*_]);return[[R+p,L-g],[R-p,L-g],[R-p,L+g],[R+p,L+g]].every(w=>J(w,S))}}const C=document.body.clientWidth,I=document.body.clientHeight,H=c.roomLabel,P=H.positionInImage.x*100+"%",E=H.positionInImage.y*100+"%",V=(C<500||I<500?10:14)/16+"rem";let z=!1,d,y;h.subscribe(function(b){i(13,z=!!b&&b.id===c.id)}),X.onMount(()=>{const a=d==null?void 0:d.getClientRects()[0];i(14,y={width:a.width,height:a.height})});function A(a){t.binding_callbacks[a?"unshift":"push"](()=>{d=a,i(2,d)})}return l.$$set=a=>{"pxmm"in a&&i(9,f=a.pxmm),"room"in a&&i(0,c=a.room),"hoveredRoom"in a&&i(10,h=a.hoveredRoom),"getRoomAreaText"in a&&i(11,m=a.getRoomAreaText),"getLabelElement"in a&&i(1,u=a.getLabelElement),"adaptiveRoomLabelVisibleEnable"in a&&i(12,v=a.adaptiveRoomLabelVisibleEnable)},l.$$.update=()=>{l.$$.dirty&2049&&i(5,s=c.size?m(c.size):""),l.$$.dirty&16385&&i(15,n=y?k(c,y):void 0),l.$$.dirty&3&&i(4,o=u==null?void 0:u(c)),l.$$.dirty&45568&&i(3,r=v?z?!0:!!(n!=null&&n(f)):!0)},[c,u,d,r,o,s,P,E,V,f,h,m,v,z,y,n,A]}class N extends t.SvelteComponent{constructor(e){super(),t.init(this,e,K,G,t.safe_not_equal,{pxmm:9,room:0,hoveredRoom:10,getRoomAreaText:11,getLabelElement:1,adaptiveRoomLabelVisibleEnable:12},Y)}}exports.RoomLabel=N;