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

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 (494) hide show
  1. package/README.md +3 -12
  2. package/dist/CSS3DRenderPlugin/index..js +88 -0
  3. package/dist/CSS3DRenderPlugin/index.cjs.js +1 -0
  4. package/dist/CameraMovementPlugin/index..js +11 -0
  5. package/dist/CameraMovementPlugin/index.cjs.js +1 -0
  6. package/dist/CruisePlugin/index..js +527 -0
  7. package/dist/CruisePlugin/index.cjs.js +1 -0
  8. package/dist/GuideLinePlugin/index..js +214 -0
  9. package/dist/GuideLinePlugin/index.cjs.js +1 -0
  10. package/dist/ItemLabelPlugin/index..js +508 -0
  11. package/dist/ItemLabelPlugin/index.cjs.js +10 -0
  12. package/dist/ModelChassisCompassPlugin/index..js +9 -0
  13. package/dist/ModelChassisCompassPlugin/index.cjs.js +1 -0
  14. package/dist/ModelEntryDoorGuidePlugin/index..js +9 -0
  15. package/dist/ModelEntryDoorGuidePlugin/index.cjs.js +1 -0
  16. package/dist/ModelItemLabelPlugin/index..js +334 -0
  17. package/dist/ModelItemLabelPlugin/index.cjs.js +10 -0
  18. package/dist/ModelRoomLabelPlugin/index..js +274 -0
  19. package/dist/ModelRoomLabelPlugin/index.cjs.js +1 -0
  20. package/dist/ModelTVVideoPlugin/index..js +12 -0
  21. package/dist/ModelTVVideoPlugin/index.cjs.js +1 -0
  22. package/dist/ModelViewPlugin/index..js +8 -0
  23. package/dist/ModelViewPlugin/index.cjs.js +1 -0
  24. package/dist/Object3DHelperPlugin/index..js +1414 -0
  25. package/dist/Object3DHelperPlugin/index.cjs.js +1 -0
  26. package/dist/PanoCompassPlugin/index..js +258 -0
  27. package/dist/PanoCompassPlugin/index.cjs.js +1 -0
  28. package/dist/PanoCursorRaycasterPlugin/index..js +63 -0
  29. package/dist/PanoCursorRaycasterPlugin/index.cjs.js +1 -0
  30. package/dist/PanoDoorLabelPlugin/index..js +340 -0
  31. package/dist/PanoDoorLabelPlugin/index.cjs.js +1 -0
  32. package/dist/PanoMeasurePlugin/index..js +15 -0
  33. package/dist/PanoMeasurePlugin/index.cjs.js +1 -0
  34. package/dist/PanoRulerPlugin/index..js +9 -0
  35. package/dist/PanoRulerPlugin/index.cjs.js +1 -0
  36. package/dist/PanoRulerProPlugin/index..js +395 -0
  37. package/dist/PanoRulerProPlugin/index.cjs.js +1 -0
  38. package/dist/PanoSpatialTagPlugin/index..js +15 -0
  39. package/dist/PanoSpatialTagPlugin/index.cjs.js +1 -0
  40. package/dist/PanoTagPlugin/index..js +4522 -0
  41. package/dist/PanoTagPlugin/index.cjs.js +17 -0
  42. package/dist/chunks/cjs/BasePlugin.57e5204f.cjs.js +1 -0
  43. package/dist/chunks/cjs/BasePluginWithData.0a28882d.cjs.js +1 -0
  44. package/dist/chunks/cjs/CSS3DRender.15349564.cjs.js +1 -0
  45. package/dist/chunks/cjs/CameraMovementPlugin.2b342576.cjs.js +1 -0
  46. package/dist/chunks/cjs/Plugin.5f616fb3.cjs.js +1 -0
  47. package/dist/chunks/cjs/Plugin.609da4aa.cjs.js +94 -0
  48. package/dist/chunks/cjs/Plugin.67936d0e.cjs.js +16 -0
  49. package/dist/chunks/cjs/Plugin.8a110c53.cjs.js +1 -0
  50. package/dist/chunks/cjs/Plugin.9971108a.cjs.js +1 -0
  51. package/dist/chunks/cjs/Plugin.fd42bf8a.cjs.js +1 -0
  52. package/dist/chunks/cjs/Subscribe.5398d5c6.cjs.js +1 -0
  53. package/dist/chunks/cjs/changeModelCanvasOpacity.8d84f111.cjs.js +1 -0
  54. package/dist/chunks/cjs/correctFiveState.4c8472bd.cjs.js +1 -0
  55. package/dist/chunks/cjs/debounce.93dfb637.cjs.js +1 -0
  56. package/dist/chunks/cjs/equal.e9fcbd4e.cjs.js +1 -0
  57. package/dist/chunks/cjs/filter.cf9ebbb3.cjs.js +1 -0
  58. package/dist/chunks/cjs/formatData.81e95011.cjs.js +10 -0
  59. package/dist/chunks/cjs/index.30b7baeb.cjs.js +101 -0
  60. package/dist/chunks/cjs/index.686e84d1.cjs.js +290 -0
  61. package/dist/chunks/cjs/index.7d2010ce.cjs.js +1 -0
  62. package/dist/chunks/cjs/isNil.b3a58990.cjs.js +1 -0
  63. package/dist/chunks/cjs/planimetry.7fce816a.cjs.js +1 -0
  64. package/dist/chunks/cjs/throttle.86c209eb.cjs.js +1 -0
  65. package/dist/chunks/cjs/transfromToMeshBasicMaterial.9db6d46a.cjs.js +1 -0
  66. package/dist/chunks/cjs/uuid.29ed9c88.cjs.js +1 -0
  67. package/dist/chunks/es/BasePlugin.813e25f7.es.js +18 -0
  68. package/dist/chunks/es/BasePluginWithData.4bf4e649.es.js +6 -0
  69. package/dist/chunks/es/CSS3DRender.5652510e.es.js +393 -0
  70. package/dist/chunks/es/CameraMovementPlugin.4a7c3e46.es.js +120 -0
  71. package/dist/chunks/es/Plugin.26c2df05.es.js +106 -0
  72. package/dist/chunks/es/Plugin.435485ed.es.js +584 -0
  73. package/dist/chunks/es/Plugin.a98418f0.es.js +82 -0
  74. package/dist/chunks/es/Plugin.ae4ee6f8.es.js +82 -0
  75. package/dist/chunks/es/Plugin.dd11e0ad.es.js +180 -0
  76. package/dist/chunks/es/Plugin.f4cf895f.es.js +355 -0
  77. package/dist/chunks/es/Subscribe.c73e0f91.es.js +50 -0
  78. package/dist/chunks/es/changeModelCanvasOpacity.45ef9fd6.es.js +1551 -0
  79. package/dist/chunks/es/correctFiveState.e7feab9f.es.js +66 -0
  80. package/dist/chunks/es/debounce.ef83f417.es.js +11 -0
  81. package/dist/chunks/es/equal.7db4a6f7.es.js +56 -0
  82. package/dist/chunks/es/filter.97ec06c4.es.js +12 -0
  83. package/dist/chunks/es/formatData.a2b39ef9.es.js +483 -0
  84. package/dist/chunks/es/index.a273f06e.es.js +532 -0
  85. package/dist/chunks/es/index.b8fdb59b.es.js +50 -0
  86. package/dist/chunks/es/index.f74f4851.es.js +1787 -0
  87. package/dist/chunks/es/isNil.212842d9.es.js +10 -0
  88. package/dist/chunks/es/planimetry.b0b4a28d.es.js +43 -0
  89. package/dist/chunks/es/throttle.db66bac3.es.js +11 -0
  90. package/dist/chunks/es/transfromToMeshBasicMaterial.849ee069.es.js +24 -0
  91. package/dist/chunks/es/uuid.676cb2c8.es.js +9 -0
  92. package/dist/components/PaintBrush/index..js +6 -0
  93. package/dist/components/PaintBrush/index.cjs.js +1 -0
  94. package/dist/components/index..js +7 -0
  95. package/dist/components/index.cjs.js +1 -0
  96. package/dist/floorplan/MapviewFloorplanPlugin/index..js +324 -0
  97. package/dist/floorplan/MapviewFloorplanPlugin/index.cjs.js +1 -0
  98. package/dist/floorplan/ModelFloorplanPlugin/index..js +320 -0
  99. package/dist/floorplan/ModelFloorplanPlugin/index.cjs.js +1 -0
  100. package/dist/floorplan/PanoFloorplanRadarPlugin/index..js +613 -0
  101. package/dist/floorplan/PanoFloorplanRadarPlugin/index.cjs.js +1 -0
  102. package/dist/floorplan/TopviewFloorplanPlugin/index..js +277 -0
  103. package/dist/floorplan/TopviewFloorplanPlugin/index.cjs.js +1 -0
  104. package/dist/index..js +530 -0
  105. package/dist/index.cjs.js +3 -543
  106. package/docs/classes/CruisePluginController.html +24 -24
  107. package/docs/classes/Magnifier.html +16 -16
  108. package/docs/classes/ModelRoomLabelController.html +11 -11
  109. package/docs/classes/Object3DHelperController.html +24 -24
  110. package/docs/classes/PaintBrush.html +15 -15
  111. package/docs/classes/PanoTagPluginController.html +39 -39
  112. package/docs/classes/Util.BetterTween.html +8 -8
  113. package/docs/classes/Util.FivePointSelector.html +12 -12
  114. package/docs/classes/Util.Interval.html +12 -12
  115. package/docs/classes/Util.Magnifier.html +17 -17
  116. package/docs/classes/Util.PointDomHelper.html +11 -11
  117. package/docs/classes/Util.PointHelper.html +11 -11
  118. package/docs/classes/Util.Rectangle.html +13 -13
  119. package/docs/enums/CameraMovementEffect.html +7 -7
  120. package/docs/enums/ContentType.html +12 -12
  121. package/docs/enums/DIRECTION.html +9 -9
  122. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  123. package/docs/enums/DimensionType.html +7 -7
  124. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  125. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  126. package/docs/enums/LinkType.html +7 -7
  127. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  128. package/docs/enums/PointType.html +7 -7
  129. package/docs/enums/Rotation.html +8 -8
  130. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  131. package/docs/functions/CameraMovementPlugin.html +4 -4
  132. package/docs/functions/CruisePlugin.html +4 -4
  133. package/docs/functions/GuideLinePlugin.html +5 -5
  134. package/docs/functions/ItemLabelPlugin.html +4 -4
  135. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  136. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  137. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  138. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  139. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  140. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  141. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  142. package/docs/functions/ModelViewPlugin.html +4 -4
  143. package/docs/functions/Object3DHelperPlugin.html +4 -4
  144. package/docs/functions/PanoCompassPlugin.html +4 -4
  145. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  146. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  147. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  148. package/docs/functions/PanoMeasurePlugin.html +4 -4
  149. package/docs/functions/PanoRulerPlugin.html +4 -4
  150. package/docs/functions/PanoRulerProPlugin.html +4 -4
  151. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  152. package/docs/functions/PanoTagPlugin.html +4 -4
  153. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  154. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  155. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  156. package/docs/functions/Util.getFrameTime.html +5 -5
  157. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  158. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  159. package/docs/functions/Util.isNil.html +5 -5
  160. package/docs/functions/Util.nextFrame.html +5 -5
  161. package/docs/functions/Util.notNil.html +5 -5
  162. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  163. package/docs/functions/Util.tweenProgress.html +5 -5
  164. package/docs/functions/pluginFlag.html +5 -5
  165. package/docs/index.html +6 -11
  166. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  167. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  168. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  169. package/docs/interfaces/ContentTypeMap.html +12 -12
  170. package/docs/interfaces/FloorplanBounding.html +8 -8
  171. package/docs/interfaces/FloorplanData.html +10 -10
  172. package/docs/interfaces/FloorplanEntrance.html +11 -11
  173. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  174. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  175. package/docs/interfaces/FloorplanFloorData.html +9 -9
  176. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  177. package/docs/interfaces/FloorplanObserver.html +9 -9
  178. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  179. package/docs/interfaces/FloorplanPosition.html +7 -7
  180. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  181. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  182. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  183. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  184. package/docs/interfaces/FloorplanServerData.html +7 -7
  185. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  186. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  187. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  188. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  189. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  190. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  191. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  192. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  193. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  194. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  195. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  196. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  197. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  198. package/docs/interfaces/LineJson.html +7 -7
  199. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  200. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  201. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  202. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  203. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  204. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  205. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  206. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  207. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  208. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  209. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  210. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  211. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  212. package/docs/interfaces/Object3DHelperState.html +8 -8
  213. package/docs/interfaces/OpenParameter.html +7 -7
  214. package/docs/interfaces/PaintBrushAction.html +12 -12
  215. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  216. package/docs/interfaces/PaintBrushState.html +10 -10
  217. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  218. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  219. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  220. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  221. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  222. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  223. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  224. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  225. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  226. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  227. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  228. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  229. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  230. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  231. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  232. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  233. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  234. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  235. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  236. package/docs/interfaces/Point.html +8 -8
  237. package/docs/interfaces/PointJson.html +8 -8
  238. package/docs/interfaces/Room.html +9 -9
  239. package/docs/interfaces/RoomInfo.html +7 -7
  240. package/docs/interfaces/RoomLabel.html +14 -14
  241. package/docs/interfaces/RoomRules.html +5 -5
  242. package/docs/interfaces/Rooms.html +5 -5
  243. package/docs/interfaces/Scissor.html +9 -9
  244. package/docs/interfaces/TagConfig.html +10 -10
  245. package/docs/interfaces/Tags.html +9 -9
  246. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  247. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  248. package/docs/modules/Util.html +5 -5
  249. package/docs/modules.html +4 -4
  250. package/docs/types/ArrayPosition.html +5 -5
  251. package/docs/types/CSS3DRenderExportType.html +5 -5
  252. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  253. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  254. package/docs/types/Color.html +5 -5
  255. package/docs/types/ContentTypeConfigKey.html +5 -5
  256. package/docs/types/ContentTypeConfigKeyArray.html +5 -5
  257. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  258. package/docs/types/Create3DElementReturnType.html +5 -5
  259. package/docs/types/CruisePluginExportType.html +5 -5
  260. package/docs/types/Direction-1.html +5 -5
  261. package/docs/types/Direction4.html +5 -5
  262. package/docs/types/FloorplanRuleLabels.html +5 -5
  263. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  264. package/docs/types/GuideLinePluginExportType.html +5 -5
  265. package/docs/types/HelperEventMap.html +5 -5
  266. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  267. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  268. package/docs/types/MediaData.html +5 -5
  269. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  270. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  271. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  272. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  273. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  274. package/docs/types/MoveArgs.html +5 -5
  275. package/docs/types/MoveOpts.html +5 -5
  276. package/docs/types/Object3DHelperEventMap.html +5 -5
  277. package/docs/types/ObjectFit.html +5 -5
  278. package/docs/types/PaintBrushEventMap.html +5 -5
  279. package/docs/types/PanoCompassPluginData.html +5 -5
  280. package/docs/types/PanoCompassPluginExportType.html +5 -5
  281. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  282. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  283. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  284. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  285. package/docs/types/PanoMeasureReturnType.html +5 -5
  286. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  287. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  288. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  289. package/docs/types/PlaneTag.html +5 -5
  290. package/docs/types/PointTag.html +5 -5
  291. package/docs/types/Position.html +5 -5
  292. package/docs/types/RotateArgs.html +5 -5
  293. package/docs/types/RotateOpts.html +5 -5
  294. package/docs/types/RuleLabelsKey.html +5 -5
  295. package/docs/types/RuleLabelsValue.html +5 -5
  296. package/docs/types/Tag.html +5 -5
  297. package/docs/types/Tag2D.html +5 -5
  298. package/docs/types/Tag3D.html +5 -5
  299. package/docs/types/TagId.html +5 -5
  300. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  301. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  302. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  303. package/docs/variables/PLUGIN.html +5 -5
  304. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  305. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  306. package/docs/variables/VERSION.html +5 -5
  307. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  308. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  309. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  310. package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -5
  311. package/libs/CSS3DRenderPlugin/Controller.js +6 -7
  312. package/libs/CSS3DRenderPlugin/index.js +3 -4
  313. package/libs/CSS3DRenderPlugin/typing.js +1 -0
  314. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +1 -3
  315. package/libs/CSS3DRenderPlugin/utils/index.js +1 -0
  316. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -2
  317. package/libs/CSS3DRenderPlugin/utils/random.js +1 -0
  318. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +16 -17
  319. package/libs/CameraMovementPlugin/index.js +3 -0
  320. package/libs/CruisePlugin/Controller.js +4 -4
  321. package/libs/CruisePlugin/index.js +3 -6
  322. package/libs/CruisePlugin/utils/linerValue.js +4 -4
  323. package/libs/GuideLinePlugin/Controller.js +3 -4
  324. package/libs/GuideLinePlugin/index.js +3 -4
  325. package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -1
  326. package/libs/ItemLabelPlugin/ItemLabelComponent.js +34 -32
  327. package/libs/ItemLabelPlugin/Plugin.js +5 -6
  328. package/libs/ModelChassisCompassPlugin/Plugin.js +3 -4
  329. package/libs/ModelChassisCompassPlugin/index.js +2 -0
  330. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +22 -23
  331. package/libs/ModelEntryDoorGuidePlugin/index.js +2 -0
  332. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +4 -3
  333. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +5 -6
  334. package/libs/ModelItemLabelPlugin/events.type.js +1 -0
  335. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +11 -10
  336. package/libs/ModelRoomLabelPlugin/index.js +0 -1
  337. package/libs/ModelTVVideoPlugin/Plugin.js +1 -2
  338. package/libs/ModelTVVideoPlugin/index.js +2 -0
  339. package/libs/ModelViewPlugin/Plugin.js +1 -2
  340. package/libs/ModelViewPlugin/index.js +2 -0
  341. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +6 -7
  342. package/libs/Object3DHelperPlugin/index.js +1 -6
  343. package/libs/PanoCompassPlugin/index.js +3 -4
  344. package/libs/PanoCursorRaycasterPlugin/index.js +7 -8
  345. package/libs/PanoDoorLabelPlugin/index.js +1 -2
  346. package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -3
  347. package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -5
  348. package/libs/PanoMeasurePlugin/Controller/MixedController.js +17 -17
  349. package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -3
  350. package/libs/PanoMeasurePlugin/Controller/WatchController.js +9 -9
  351. package/libs/PanoMeasurePlugin/Controller/index.js +8 -8
  352. package/libs/PanoMeasurePlugin/Model/index.js +3 -3
  353. package/libs/PanoMeasurePlugin/Model/line.js +11 -11
  354. package/libs/PanoMeasurePlugin/Model/point.js +7 -7
  355. package/libs/PanoMeasurePlugin/Model/polyline.js +1 -1
  356. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +1 -1
  357. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
  358. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
  359. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +4 -4
  360. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
  361. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +30 -30
  362. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +2 -2
  363. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +2 -2
  364. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -3
  365. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
  366. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +3 -4
  367. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +5 -5
  368. package/libs/PanoMeasurePlugin/index.js +3 -4
  369. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
  370. package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -1
  371. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +2 -2
  372. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
  373. package/libs/PanoMeasurePlugin/utils/line.js +0 -1
  374. package/libs/PanoMeasurePlugin/utils/math.js +1 -2
  375. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
  376. package/libs/PanoRulerPlugin/Plugin.js +2 -3
  377. package/libs/PanoRulerPlugin/index.js +2 -0
  378. package/libs/PanoRulerPlugin/style.js +1 -1
  379. package/libs/PanoRulerProPlugin/Controller.js +15 -15
  380. package/libs/PanoRulerProPlugin/RulerItems.js +7 -4
  381. package/libs/PanoRulerProPlugin/index.js +3 -4
  382. package/libs/PanoSpatialTagPlugin/Components/origins.js +3 -2
  383. package/libs/PanoSpatialTagPlugin/Components/tag.js +3 -2
  384. package/libs/PanoSpatialTagPlugin/Plugin.js +2 -3
  385. package/libs/PanoSpatialTagPlugin/index.js +6 -0
  386. package/libs/PanoSpatialTagPlugin/typings.js +1 -0
  387. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -1
  388. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -1
  389. package/libs/PanoTagPlugin/Components/Common/Media.js +43 -36
  390. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +88 -78
  391. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -4
  392. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +3 -2
  393. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +30 -27
  394. package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
  395. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +20 -14
  396. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +114 -92
  397. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +3 -2
  398. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
  399. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +71 -52
  400. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +62 -50
  401. package/libs/PanoTagPlugin/Components/Tag/index.js +92 -63
  402. package/libs/PanoTagPlugin/Components/TagContainer.js +108 -64
  403. package/libs/PanoTagPlugin/Components/TagWrapper.js +113 -75
  404. package/libs/PanoTagPlugin/controller/index.js +0 -1
  405. package/libs/PanoTagPlugin/index.js +3 -7
  406. package/libs/PanoTagPlugin/tag.config.js +1 -2
  407. package/libs/PanoTagPlugin/typings/controller.js +1 -0
  408. package/libs/PanoTagPlugin/typings/index.js +1 -0
  409. package/libs/PanoTagPlugin/utils/constants.js +1 -2
  410. package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
  411. package/libs/PanoTagPlugin/utils/index.js +1 -0
  412. package/libs/components/PaintBrush/Controller.js +3 -3
  413. package/libs/components/PaintBrush/style.js +1 -1
  414. package/libs/components/PaintBrush/tween.js +4 -4
  415. package/libs/components/index.js +2 -0
  416. package/libs/floorplan/Components/Camera.js +1 -1
  417. package/libs/floorplan/Components/CurrentFloor.js +51 -41
  418. package/libs/floorplan/Components/Main.js +41 -22
  419. package/libs/floorplan/Components/RoomHighlight/Room.js +3 -3
  420. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +3 -2
  421. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +37 -36
  422. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -1
  423. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +7 -7
  424. package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -4
  425. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +7 -7
  426. package/libs/floorplan/ModelFloorplanPlugin/index.js +2 -3
  427. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
  428. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +6 -2
  429. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -65
  430. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +2 -2
  431. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +2 -3
  432. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +5 -5
  433. package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -4
  434. package/libs/floorplan/index.js +6 -0
  435. package/libs/floorplan/typings/floorplanData.js +1 -0
  436. package/libs/floorplan/utils/correctFiveState.js +19 -19
  437. package/libs/floorplan/utils/formatData.js +16 -16
  438. package/libs/floorplan/utils/formatPosition.js +7 -7
  439. package/libs/index.js +344 -90
  440. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +2 -3
  441. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +1 -3
  442. package/libs/shared-utils/Object3DHelper/Constants/color.js +0 -1
  443. package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -2
  444. package/libs/shared-utils/Object3DHelper/Helper/index.js +3 -0
  445. package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -0
  446. package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -0
  447. package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -0
  448. package/libs/shared-utils/Object3DHelper/typings/index.js +1 -0
  449. package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -0
  450. package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -0
  451. package/libs/shared-utils/Object3DHelper/utils/index.js +1 -0
  452. package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -0
  453. package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -0
  454. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -1
  455. package/libs/shared-utils/animationFrame/index.js +13 -16
  456. package/libs/shared-utils/animationFrame/tween.js +0 -2
  457. package/libs/shared-utils/changeModelCanvasOpacity.js +1 -1
  458. package/libs/shared-utils/createCanvasTextTexture.js +6 -6
  459. package/libs/shared-utils/createLine/index.js +3 -3
  460. package/libs/shared-utils/debounce.js +5 -5
  461. package/libs/shared-utils/equal.js +16 -16
  462. package/libs/shared-utils/filter.js +1 -1
  463. package/libs/shared-utils/five/changeMode.js +14 -14
  464. package/libs/shared-utils/getPxmm.js +7 -8
  465. package/libs/shared-utils/index.js +33 -29
  466. package/libs/shared-utils/isTruelyObject.js +1 -1
  467. package/libs/shared-utils/math/index.js +1 -0
  468. package/libs/shared-utils/math/planimetry.js +1 -6
  469. package/libs/shared-utils/math/rad2Deg.js +3 -3
  470. package/libs/shared-utils/nearlyEqual.js +3 -3
  471. package/libs/shared-utils/noop.js +1 -1
  472. package/libs/shared-utils/object3d2LocalMatrix.js +6 -7
  473. package/libs/shared-utils/removeArrayItem.js +5 -5
  474. package/libs/shared-utils/tap.js +3 -3
  475. package/libs/shared-utils/three/index.js +6 -0
  476. package/libs/shared-utils/three/transformPositionToVector3.js +2 -2
  477. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +12 -12
  478. package/libs/shared-utils/throttle.js +2 -2
  479. package/libs/shared-utils/tinyEJSrender.js +7 -7
  480. package/libs/shared-utils/to.js +14 -15
  481. package/libs/shared-utils/uuid.js +0 -1
  482. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/get-changed-params.js +0 -0
  483. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/get-params.js +0 -0
  484. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/mount-swiper.js +0 -0
  485. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/params-list.js +0 -0
  486. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/update-swiper.js +0 -0
  487. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/utils.js +0 -0
  488. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/svelte/swiper-slide.js +1 -1
  489. package/libs/vendor/swiper/svelte/swiper-svelte.js +3 -0
  490. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/svelte/swiper.js +1 -1
  491. package/package.json +19 -17
  492. package/dist/index.es.js +0 -16650
  493. package/dist/index.js +0 -16650
  494. package/dist/index.umd.js +0 -556
@@ -0,0 +1,1551 @@
1
+ var Ke = Object.defineProperty, Je = Object.defineProperties;
2
+ var $e = Object.getOwnPropertyDescriptors;
3
+ var me = Object.getOwnPropertySymbols;
4
+ var et = Object.prototype.hasOwnProperty, tt = Object.prototype.propertyIsEnumerable;
5
+ var ce = (o, e, t) => e in o ? Ke(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, de = (o, e) => {
6
+ for (var t in e || (e = {}))
7
+ et.call(e, t) && ce(o, t, e[t]);
8
+ if (me)
9
+ for (var t of me(e))
10
+ tt.call(e, t) && ce(o, t, e[t]);
11
+ return o;
12
+ }, ge = (o, e) => Je(o, $e(e));
13
+ var be = (o, e, t) => new Promise((l, a) => {
14
+ var n = (r) => {
15
+ try {
16
+ i(t.next(r));
17
+ } catch (u) {
18
+ a(u);
19
+ }
20
+ }, f = (r) => {
21
+ try {
22
+ i(t.throw(r));
23
+ } catch (u) {
24
+ a(u);
25
+ }
26
+ }, i = (r) => r.done ? l(r.value) : Promise.resolve(r.value).then(n, f);
27
+ i((t = t.apply(o, e)).next());
28
+ });
29
+ import { SvelteComponent as A, init as G, safe_not_equal as x, append_styles as S, element as P, attr as m, set_style as I, insert as E, append as L, noop as V, detach as w, empty as O, space as j, text as oe, set_data as ne, binding_callbacks as lt, HtmlTag as ot, transition_in as v, group_outros as z, transition_out as y, check_outros as T, add_render_callback as Ue, add_resize_listener as nt, update_keyed_each as ie, outro_and_destroy_block as Ye, assign as U, create_component as C, mount_component as N, get_spread_update as Y, destroy_component as q, toggle_class as te, destroy_block as at, destroy_each as fe, svg_element as W, null_to_empty as he, create_in_transition as rt } from "svelte/internal";
30
+ import { linear as it } from "svelte/easing";
31
+ import { fade as ft } from "svelte/transition";
32
+ import { CAMERA_IMAGE as pe, pathD as se, formatFloorplanPoint as st, BaseImage as ut, RoomHighlight as mt } from "./formatData.a2b39ef9.es.js";
33
+ import { writable as ct } from "svelte/store";
34
+ import { onMount as dt } from "svelte";
35
+ import * as _e from "three";
36
+ var le = /* @__PURE__ */ ((o) => (o[o.FLOOR = 1] = "FLOOR", o[o.CEILING = 2] = "CEILING", o[o.BOUNDING_CENTER = 3] = "BOUNDING_CENTER", o))(le || {});
37
+ function gt(o) {
38
+ return o * 180 / Math.PI;
39
+ }
40
+ function bt(o) {
41
+ S(o, "svelte-17cl35n", ".floorplan__camera-position.svelte-17cl35n{position:absolute;width:0;height:0}.floorplan__camera-rotate.svelte-17cl35n{position:absolute;background-repeat:no-repeat;background-size:100%}");
42
+ }
43
+ function ht(o) {
44
+ let e, t;
45
+ return {
46
+ c() {
47
+ e = P("div"), t = P("div"), m(t, "class", "floorplan__camera-rotate svelte-17cl35n"), I(t, "background-image", `url(${o[0] || pe})`), I(t, "width", o[4], !1), I(t, "height", o[4], !1), I(t, "left", "-" + o[4], !1), I(t, "top", "-" + o[4], !1), I(t, "transform", `rotate(${o[3]}deg)`, !1), I(t, "transform-origin", `${o[4]} ${o[4]}`, !1), m(e, "class", "floorplan__camera-position svelte-17cl35n"), I(e, "left", o[1], !1), I(e, "top", o[2], !1);
48
+ },
49
+ m(l, a) {
50
+ E(l, e, a), L(e, t);
51
+ },
52
+ p(l, [a]) {
53
+ a & 1 && I(t, "background-image", `url(${l[0] || pe})`);
54
+ },
55
+ i: V,
56
+ o: V,
57
+ d(l) {
58
+ l && w(e);
59
+ }
60
+ };
61
+ }
62
+ function pt(o, e, t) {
63
+ let { panoIndex: l } = e, { floorplanData: a } = e, { lastPanoramaLongitude: n } = e, { cameraImageUrl: f } = e;
64
+ const { observers: i } = a, r = i[l], u = r.positionInImage.x, b = r.positionInImage.y, p = u * 100 + "%", d = b * 100 + "%", g = -gt(n) + 45, s = document.body.clientWidth, h = document.body.clientHeight, _ = `${(s < 500 || h < 500 ? 17 : 37) / 16}rem`;
65
+ return o.$$set = (R) => {
66
+ "panoIndex" in R && t(5, l = R.panoIndex), "floorplanData" in R && t(6, a = R.floorplanData), "lastPanoramaLongitude" in R && t(7, n = R.lastPanoramaLongitude), "cameraImageUrl" in R && t(0, f = R.cameraImageUrl);
67
+ }, [
68
+ f,
69
+ p,
70
+ d,
71
+ g,
72
+ _,
73
+ l,
74
+ a,
75
+ n
76
+ ];
77
+ }
78
+ class _t extends A {
79
+ constructor(e) {
80
+ super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PN7Li1PPIRhN6sjtBjTmm+KmYcwPEOKs9tHF1JDHCoHLZ5DQ8yPBic9DoHjAKvsb85qjbFxHOCprMZaf5qdhlorxwGeTsPIttvPlno0y3GAZfbHp6n3ynGAV0m99u/2J6H3znGAvW4n+J25tdY7xwFey1pvQe6/DlrjOMDLqfXW7N5pbs0YWhxgtpj0rl1uiaHFISzccSWohUCzOIemm0VKChwHOMutKCVwHOA4av/JVi0xtDiRpCRfRcvQ4lBfxSnG0OJc/+xTjKHFyVRMP38iDC0O92lZVRhanO+vcVWGFu9BRWkW7+Z3rapEizdy7ZVm8V5Gtr8AtSnix59eOmYAAAAASUVORK5CYII=";
97
+ function kt(o) {
98
+ S(o, "svelte-rpkaro", ".floorplan-plugin__compass.svelte-rpkaro{position:absolute;left:50%;top:-2.875rem;width:14.4375rem;height:2.5625rem;will-change:opacity;transform-origin:center 11.5rem}.floorplan-plugin__compass-image.svelte-rpkaro{width:100%;height:100%;position:absolute;left:0;top:0;opacity:0.1;background-repeat:no-repeat;background-size:100% 100%}.floorplan-plugin__compass-text.svelte-rpkaro{position:absolute;left:50%;top:0.9375rem;transform:translateX(-50%);opacity:0.2;font-weight:bold;font-size:0.625rem;color:#fff}");
99
+ }
100
+ function yt(o) {
101
+ let e, t, l, a, n;
102
+ return {
103
+ c() {
104
+ e = P("div"), t = P("div"), l = j(), a = P("span"), n = oe(o[0]), m(t, "class", "floorplan-plugin__compass-image svelte-rpkaro"), I(t, "background-image", `url(${vt})`), m(a, "class", "floorplan-plugin__compass-text svelte-rpkaro"), m(e, "class", "floorplan-plugin__compass svelte-rpkaro"), I(e, "transform", o[2], !1);
105
+ },
106
+ m(f, i) {
107
+ E(f, e, i), L(e, t), L(e, l), L(e, a), L(a, n);
108
+ },
109
+ p(f, i) {
110
+ i & 1 && ne(n, f[0]);
111
+ },
112
+ d(f) {
113
+ f && w(e);
114
+ }
115
+ };
116
+ }
117
+ function Et(o) {
118
+ let e, t = o[1] && yt(o);
119
+ return {
120
+ c() {
121
+ t && t.c(), e = O();
122
+ },
123
+ m(l, a) {
124
+ t && t.m(l, a), E(l, e, a);
125
+ },
126
+ p(l, [a]) {
127
+ l[1] && t.p(l, a);
128
+ },
129
+ i: V,
130
+ o: V,
131
+ d(l) {
132
+ t && t.d(l), l && w(e);
133
+ }
134
+ };
135
+ }
136
+ function wt(o) {
137
+ return o / Math.PI * 180;
138
+ }
139
+ function Rt(o, e, t) {
140
+ var u;
141
+ let { floorplanData: l } = e, { northDesc: a } = e;
142
+ const n = (u = l.entrance) == null ? void 0 : u.northRad, f = typeof n == "number", r = `translateX(-50%) translateZ(10px) rotate(${-(n ? wt(n) : 0) + 90}deg)`;
143
+ return o.$$set = (b) => {
144
+ "floorplanData" in b && t(3, l = b.floorplanData), "northDesc" in b && t(0, a = b.northDesc);
145
+ }, [a, f, r, l];
146
+ }
147
+ class Lt extends A {
148
+ constructor(e) {
149
+ super(), G(this, e, Rt, Et, x, { floorplanData: 3, northDesc: 0 }, kt);
150
+ }
151
+ }
152
+ function It(o) {
153
+ S(o, "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}");
154
+ }
155
+ function Dt(o) {
156
+ let e, t = o[4].outerHTML + "", l;
157
+ return {
158
+ c() {
159
+ e = new ot(!1), l = O(), e.a = l;
160
+ },
161
+ m(a, n) {
162
+ e.m(t, a, n), E(a, l, n);
163
+ },
164
+ p(a, n) {
165
+ n & 16 && t !== (t = a[4].outerHTML + "") && e.p(t);
166
+ },
167
+ d(a) {
168
+ a && w(l), a && e.d();
169
+ }
170
+ };
171
+ }
172
+ function Pt(o) {
173
+ let e, t = o[0].name + "", l, a, n, f;
174
+ return {
175
+ c() {
176
+ e = P("span"), l = oe(t), a = j(), n = P("span"), f = oe(o[5]), m(e, "class", "floorplan-plugin__room-name"), m(n, "class", "floorplan-plugin__room-size svelte-12pzct5");
177
+ },
178
+ m(i, r) {
179
+ E(i, e, r), L(e, l), E(i, a, r), E(i, n, r), L(n, f);
180
+ },
181
+ p(i, r) {
182
+ r & 1 && t !== (t = i[0].name + "") && ne(l, t), r & 32 && ne(f, i[5]);
183
+ },
184
+ d(i) {
185
+ i && w(e), i && w(a), i && w(n);
186
+ }
187
+ };
188
+ }
189
+ function Wt(o) {
190
+ let e;
191
+ function t(n, f) {
192
+ if (n[1] === void 0)
193
+ return Pt;
194
+ if (n[4])
195
+ return Dt;
196
+ }
197
+ let l = t(o), a = l && l(o);
198
+ return {
199
+ c() {
200
+ e = P("div"), a && a.c(), m(e, "class", "floorplan-plugin__room-label-item svelte-12pzct5"), I(e, "left", o[6], !1), I(e, "top", o[7], !1), I(e, "font-size", o[8], !1), I(e, "opacity", o[3] ? "1" : "0", !1);
201
+ },
202
+ m(n, f) {
203
+ E(n, e, f), a && a.m(e, null), o[16](e);
204
+ },
205
+ p(n, [f]) {
206
+ l === (l = t(n)) && a ? a.p(n, f) : (a && a.d(1), a = l && l(n), a && (a.c(), a.m(e, null))), f & 8 && I(e, "opacity", n[3] ? "1" : "0", !1);
207
+ },
208
+ i: V,
209
+ o: V,
210
+ d(n) {
211
+ n && w(e), a && a.d(), o[16](null);
212
+ }
213
+ };
214
+ }
215
+ function jt(o, e) {
216
+ const t = o[0], l = o[1];
217
+ let a = !1;
218
+ for (let n = 0, f = e.length - 1; n < e.length; f = n++) {
219
+ const i = e[n][0], r = e[n][1], u = e[f][0], b = e[f][1];
220
+ r > l != b > l && t < (u - i) * (l - r) / (b - r) + i && (a = !a);
221
+ }
222
+ return a;
223
+ }
224
+ function Vt(o, e, t) {
225
+ let l, a, n, f, { pxmm: i } = e, { room: r } = e, { hoveredRoom: u } = e, { getRoomAreaText: b } = e, { getLabelElement: p } = e, { adaptiveRoomLabelVisibleEnable: d } = e;
226
+ function g(D, M) {
227
+ if (M.width === 0 || M.height === 0)
228
+ return () => !1;
229
+ const Fe = D.path.map(({ x: ue, y: Q }) => [ue, Q]), Be = D.roomLabel.position, { x: Me, y: Qe } = Be, { width: Ze, height: He } = M, K = Ze / 2, J = He / 2;
230
+ return function(Q) {
231
+ const $ = Me * Q, ee = Qe * Q, Oe = Fe.map(([ae, Xe]) => [ae * Q, Xe * Q]);
232
+ return [
233
+ [$ + K, ee - J],
234
+ [$ - K, ee - J],
235
+ [$ - K, ee + J],
236
+ [$ + K, ee + J]
237
+ ].every((ae) => jt(ae, Oe));
238
+ };
239
+ }
240
+ const s = document.body.clientWidth, h = document.body.clientHeight, c = r.roomLabel, _ = c.positionInImage.x * 100 + "%", R = c.positionInImage.y * 100 + "%", k = (s < 500 || h < 500 ? 10 : 14) / 16 + "rem";
241
+ let F = !1, B, X;
242
+ u.subscribe(function(M) {
243
+ t(13, F = !!M && M.id === r.id);
244
+ }), dt(() => {
245
+ const D = B == null ? void 0 : B.getClientRects()[0];
246
+ t(14, X = {
247
+ width: D.width,
248
+ height: D.height
249
+ });
250
+ });
251
+ function Se(D) {
252
+ lt[D ? "unshift" : "push"](() => {
253
+ B = D, t(2, B);
254
+ });
255
+ }
256
+ return o.$$set = (D) => {
257
+ "pxmm" in D && t(9, i = D.pxmm), "room" in D && t(0, r = D.room), "hoveredRoom" in D && t(10, u = D.hoveredRoom), "getRoomAreaText" in D && t(11, b = D.getRoomAreaText), "getLabelElement" in D && t(1, p = D.getLabelElement), "adaptiveRoomLabelVisibleEnable" in D && t(12, d = D.adaptiveRoomLabelVisibleEnable);
258
+ }, o.$$.update = () => {
259
+ o.$$.dirty & 2049 && t(5, l = r.size ? b(r.size) : ""), o.$$.dirty & 16385 && t(15, a = X ? g(r, X) : void 0), o.$$.dirty & 3 && t(4, n = p == null ? void 0 : p(r)), o.$$.dirty & 45568 && t(3, f = d ? F ? !0 : !!(a != null && a(i)) : !0);
260
+ }, [
261
+ r,
262
+ p,
263
+ B,
264
+ f,
265
+ n,
266
+ l,
267
+ _,
268
+ R,
269
+ k,
270
+ i,
271
+ u,
272
+ b,
273
+ d,
274
+ F,
275
+ X,
276
+ a,
277
+ Se
278
+ ];
279
+ }
280
+ class Ct extends A {
281
+ constructor(e) {
282
+ super(), G(
283
+ this,
284
+ e,
285
+ Vt,
286
+ Wt,
287
+ x,
288
+ {
289
+ pxmm: 9,
290
+ room: 0,
291
+ hoveredRoom: 10,
292
+ getRoomAreaText: 11,
293
+ getLabelElement: 1,
294
+ adaptiveRoomLabelVisibleEnable: 12
295
+ },
296
+ It
297
+ );
298
+ }
299
+ }
300
+ function Nt(o) {
301
+ S(o, "svelte-13xux0b", ".floorplan-plugin__room-labels.svelte-13xux0b{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20;pointer-events:none}");
302
+ }
303
+ function ve(o, e, t) {
304
+ const l = o.slice();
305
+ return l[10] = e[t], l;
306
+ }
307
+ function ke(o) {
308
+ let e, t = [], l = /* @__PURE__ */ new Map(), a, n, f = o[6];
309
+ const i = (r) => r[10].id;
310
+ for (let r = 0; r < f.length; r += 1) {
311
+ let u = ve(o, f, r), b = i(u);
312
+ l.set(b, t[r] = ye(b, u));
313
+ }
314
+ return {
315
+ c() {
316
+ e = P("div");
317
+ for (let r = 0; r < t.length; r += 1)
318
+ t[r].c();
319
+ m(e, "class", "floorplan-plugin__room-labels svelte-13xux0b"), Ue(() => o[9].call(e));
320
+ },
321
+ m(r, u) {
322
+ E(r, e, u);
323
+ for (let b = 0; b < t.length; b += 1)
324
+ t[b].m(e, null);
325
+ a = nt(e, o[9].bind(e)), n = !0;
326
+ },
327
+ p(r, u) {
328
+ u & 111 && (f = r[6], z(), t = ie(t, u, i, 1, r, f, l, e, Ye, ye, null, ve), T());
329
+ },
330
+ i(r) {
331
+ if (!n) {
332
+ for (let u = 0; u < f.length; u += 1)
333
+ v(t[u]);
334
+ n = !0;
335
+ }
336
+ },
337
+ o(r) {
338
+ for (let u = 0; u < t.length; u += 1)
339
+ y(t[u]);
340
+ n = !1;
341
+ },
342
+ d(r) {
343
+ r && w(e);
344
+ for (let u = 0; u < t.length; u += 1)
345
+ t[u].d();
346
+ a();
347
+ }
348
+ };
349
+ }
350
+ function ye(o, e) {
351
+ let t, l, a;
352
+ const n = [
353
+ {
354
+ pxmm: e[5],
355
+ room: e[10],
356
+ getLabelElement: e[2],
357
+ getRoomAreaText: e[1],
358
+ hoveredRoom: e[0],
359
+ adaptiveRoomLabelVisibleEnable: e[3]
360
+ }
361
+ ];
362
+ let f = {};
363
+ for (let i = 0; i < n.length; i += 1)
364
+ f = U(f, n[i]);
365
+ return l = new Ct({ props: f }), {
366
+ key: o,
367
+ first: null,
368
+ c() {
369
+ t = O(), C(l.$$.fragment), this.first = t;
370
+ },
371
+ m(i, r) {
372
+ E(i, t, r), N(l, i, r), a = !0;
373
+ },
374
+ p(i, r) {
375
+ e = i;
376
+ const u = r & 111 ? Y(n, [
377
+ {
378
+ pxmm: e[5],
379
+ room: e[10],
380
+ getLabelElement: e[2],
381
+ getRoomAreaText: e[1],
382
+ hoveredRoom: e[0],
383
+ adaptiveRoomLabelVisibleEnable: e[3]
384
+ }
385
+ ]) : {};
386
+ l.$set(u);
387
+ },
388
+ i(i) {
389
+ a || (v(l.$$.fragment, i), a = !0);
390
+ },
391
+ o(i) {
392
+ y(l.$$.fragment, i), a = !1;
393
+ },
394
+ d(i) {
395
+ i && w(t), q(l, i);
396
+ }
397
+ };
398
+ }
399
+ function qt(o) {
400
+ let e, t, l = o[6] && ke(o);
401
+ return {
402
+ c() {
403
+ l && l.c(), e = O();
404
+ },
405
+ m(a, n) {
406
+ l && l.m(a, n), E(a, e, n), t = !0;
407
+ },
408
+ p(a, [n]) {
409
+ a[6] ? l ? (l.p(a, n), n & 64 && v(l, 1)) : (l = ke(a), l.c(), v(l, 1), l.m(e.parentNode, e)) : l && (z(), y(l, 1, 1, () => {
410
+ l = null;
411
+ }), T());
412
+ },
413
+ i(a) {
414
+ t || (v(l), t = !0);
415
+ },
416
+ o(a) {
417
+ y(l), t = !1;
418
+ },
419
+ d(a) {
420
+ l && l.d(a), a && w(e);
421
+ }
422
+ };
423
+ }
424
+ function At(o, e, t) {
425
+ let l, { floorIndex: a } = e, { floorplanData: n } = e, { hoveredRoom: f } = e, { getRoomAreaText: i } = e, { getLabelElement: r } = e, { adaptiveRoomLabelVisibleEnable: u } = e, b = 0, p = 0;
426
+ function d() {
427
+ b = this.clientWidth, t(4, b);
428
+ }
429
+ return o.$$set = (g) => {
430
+ "floorIndex" in g && t(7, a = g.floorIndex), "floorplanData" in g && t(8, n = g.floorplanData), "hoveredRoom" in g && t(0, f = g.hoveredRoom), "getRoomAreaText" in g && t(1, i = g.getRoomAreaText), "getLabelElement" in g && t(2, r = g.getLabelElement), "adaptiveRoomLabelVisibleEnable" in g && t(3, u = g.adaptiveRoomLabelVisibleEnable);
431
+ }, o.$$.update = () => {
432
+ if (o.$$.dirty & 384 && t(6, l = n.floorDatas[a].rooms), o.$$.dirty & 272) {
433
+ const { max: g, min: s } = n.bounding, h = g.x - s.x;
434
+ t(5, p = b / h);
435
+ }
436
+ }, [
437
+ f,
438
+ i,
439
+ r,
440
+ u,
441
+ b,
442
+ p,
443
+ l,
444
+ a,
445
+ n,
446
+ d
447
+ ];
448
+ }
449
+ class Gt extends A {
450
+ constructor(e) {
451
+ super(), G(
452
+ this,
453
+ e,
454
+ At,
455
+ qt,
456
+ x,
457
+ {
458
+ floorIndex: 7,
459
+ floorplanData: 8,
460
+ hoveredRoom: 0,
461
+ getRoomAreaText: 1,
462
+ getLabelElement: 2,
463
+ adaptiveRoomLabelVisibleEnable: 3
464
+ },
465
+ Nt
466
+ );
467
+ }
468
+ }
469
+ function xt(o) {
470
+ S(o, "svelte-djlmk4", ".floorplan-plugin__rule-labels.svelte-djlmk4.svelte-djlmk4{position:absolute;display:flex}.floorplan-plugin__rule-labels--top.svelte-djlmk4.svelte-djlmk4{left:0;top:-1.25rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4.svelte-djlmk4{left:0;bottom:-1.25rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4.svelte-djlmk4{top:0;left:-1.25rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4.svelte-djlmk4{top:0;right:-1.25rem}.floorplan-plugin__rule-line.svelte-djlmk4.svelte-djlmk4{background:#fff;opacity:0.05;width:100%;height:100%}.floorplan-plugin__rule-scale-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute;width:0.3125rem;height:100%;left:50%;top:0;transform:translateX(-50%)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale-wrapper.svelte-djlmk4{width:100%;height:0.3125rem;top:50%;left:0;transform:translateY(-50%)}.floorplan-plugin__rule-scale.svelte-djlmk4.svelte-djlmk4{position:absolute;background:#fff;opacity:0.05;width:100%;height:0.0625rem}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale.svelte-djlmk4{width:0.0625rem;height:100%}.floorplan-plugin__rule-text-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute}.floorplan-plugin__rule-labels--top.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;top:0.625rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;bottom:0.625rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;left:0.625rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;right:0.625rem}.floorplan-plugin__rule-text-item.svelte-djlmk4.svelte-djlmk4{width:0;height:0;position:absolute;transform:rotate(90deg)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-text-item.svelte-djlmk4{transform:rotate(0)}.floorplan-plugin__rule-text.svelte-djlmk4.svelte-djlmk4{width:-moz-max-content;width:max-content;transform:translate(-50%, -50%);font-size:0.625rem;color:#fff;opacity:0.2}");
471
+ }
472
+ function Ee(o, e, t) {
473
+ const l = o.slice();
474
+ return l[11] = e[t], l[13] = t, l;
475
+ }
476
+ function we(o, e, t) {
477
+ const l = o.slice();
478
+ return l[14] = e[t], l;
479
+ }
480
+ function Re(o) {
481
+ let e;
482
+ return {
483
+ c() {
484
+ e = P("div"), m(e, "class", "floorplan-plugin__rule-scale svelte-djlmk4"), I(e, "left", o[14].left * 100 + "%", !1), I(e, "bottom", o[14].bottom * 100 + "%", !1);
485
+ },
486
+ m(t, l) {
487
+ E(t, e, l);
488
+ },
489
+ p: V,
490
+ d(t) {
491
+ t && w(e);
492
+ }
493
+ };
494
+ }
495
+ function Le(o, e) {
496
+ let t, l, a = e[1](e[11].distance) + "", n, f;
497
+ return {
498
+ key: o,
499
+ first: null,
500
+ c() {
501
+ t = P("div"), l = P("div"), n = oe(a), f = j(), m(l, "class", "floorplan-plugin__rule-text svelte-djlmk4"), te(l, "is-row", e[2]), m(t, "class", "floorplan-plugin__rule-text-item svelte-djlmk4"), I(t, "left", e[11].left * 100 + "%", !1), I(t, "bottom", e[11].bottom * 100 + "%", !1), this.first = t;
502
+ },
503
+ m(i, r) {
504
+ E(i, t, r), L(t, l), L(l, n), L(t, f);
505
+ },
506
+ p(i, r) {
507
+ e = i, r & 2 && a !== (a = e[1](e[11].distance) + "") && ne(n, a);
508
+ },
509
+ d(i) {
510
+ i && w(t);
511
+ }
512
+ };
513
+ }
514
+ function zt(o) {
515
+ let e, t, l, a, n, f, i = [], r = /* @__PURE__ */ new Map(), u, b = o[3], p = [];
516
+ for (let s = 0; s < b.length; s += 1)
517
+ p[s] = Re(we(o, b, s));
518
+ let d = o[4];
519
+ const g = (s) => s[13];
520
+ for (let s = 0; s < d.length; s += 1) {
521
+ let h = Ee(o, d, s), c = g(h);
522
+ r.set(c, i[s] = Le(c, h));
523
+ }
524
+ return {
525
+ c() {
526
+ e = P("div"), t = P("div"), l = j(), a = P("div");
527
+ for (let s = 0; s < p.length; s += 1)
528
+ p[s].c();
529
+ n = j(), f = P("div");
530
+ for (let s = 0; s < i.length; s += 1)
531
+ i[s].c();
532
+ m(t, "class", "floorplan-plugin__rule-line svelte-djlmk4"), m(a, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), te(a, "is-row", o[2]), m(f, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), m(e, "class", u = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + o[0] + " svelte-djlmk4"), te(e, "is-row", o[2]), I(e, "width", o[2] ? "100%" : 1 / 16 + "rem", !1), I(e, "height", o[2] ? 1 / 16 + "rem" : "100%", !1);
533
+ },
534
+ m(s, h) {
535
+ E(s, e, h), L(e, t), L(e, l), L(e, a);
536
+ for (let c = 0; c < p.length; c += 1)
537
+ p[c].m(a, null);
538
+ L(e, n), L(e, f);
539
+ for (let c = 0; c < i.length; c += 1)
540
+ i[c].m(f, null);
541
+ },
542
+ p(s, [h]) {
543
+ if (h & 8) {
544
+ b = s[3];
545
+ let c;
546
+ for (c = 0; c < b.length; c += 1) {
547
+ const _ = we(s, b, c);
548
+ p[c] ? p[c].p(_, h) : (p[c] = Re(_), p[c].c(), p[c].m(a, null));
549
+ }
550
+ for (; c < p.length; c += 1)
551
+ p[c].d(1);
552
+ p.length = b.length;
553
+ }
554
+ h & 22 && (d = s[4], i = ie(i, h, g, 1, s, d, r, f, at, Le, null, Ee)), h & 1 && u !== (u = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + s[0] + " svelte-djlmk4") && m(e, "class", u), h & 5 && te(e, "is-row", s[2]);
555
+ },
556
+ i: V,
557
+ o: V,
558
+ d(s) {
559
+ s && w(e), fe(p, s);
560
+ for (let h = 0; h < i.length; h += 1)
561
+ i[h].d();
562
+ }
563
+ };
564
+ }
565
+ const Z = 1e3, H = 180;
566
+ function Tt(o, e, t) {
567
+ let { type: l } = e, { data: a } = e, { bounding: n } = e, { getRuleDistanceText: f } = e;
568
+ const i = l === "top" || l === "bottom", r = n.max.x - n.min.x - (Z - H) * 2, u = n.max.y - n.min.y - (Z - H) * 2, b = a.map(([s, h]) => i ? [s.x, h.x] : [s.y, h.y]).flat().sort().filter((s, h, c) => h === 0 ? !0 : s !== c[h - 1]), p = b.map((s) => {
569
+ const h = i ? (s - n.min.x - Z + H) / r : 0, c = i ? 0 : (s - n.min.y - Z + H) / u;
570
+ return { left: h, bottom: c };
571
+ });
572
+ p.unshift({ left: 0, bottom: 0 }), p.push(i ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
573
+ const d = b[b.length - 1] - b[0], g = b.map((s, h, c) => {
574
+ const _ = h === 0 ? 0 : s - c[h - 1], R = h === 0 ? 0 : (s + c[h - 1]) / 2, k = i ? (R - n.min.x - Z + H) / r : 0, F = i ? 0 : (R - n.min.y - Z + H) / u;
575
+ return { left: k, bottom: F, distance: _ };
576
+ }).filter(({ distance: s }) => s / d > 0.1);
577
+ return o.$$set = (s) => {
578
+ "type" in s && t(0, l = s.type), "data" in s && t(5, a = s.data), "bounding" in s && t(6, n = s.bounding), "getRuleDistanceText" in s && t(1, f = s.getRuleDistanceText);
579
+ }, [l, f, i, p, g, a, n];
580
+ }
581
+ class Ut extends A {
582
+ constructor(e) {
583
+ super(), G(
584
+ this,
585
+ e,
586
+ Tt,
587
+ zt,
588
+ x,
589
+ {
590
+ type: 0,
591
+ data: 5,
592
+ bounding: 6,
593
+ getRuleDistanceText: 1
594
+ },
595
+ xt
596
+ );
597
+ }
598
+ }
599
+ function Yt(o) {
600
+ S(o, "svelte-1mzj9p3", ".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}");
601
+ }
602
+ function Ie(o, e, t) {
603
+ const l = o.slice();
604
+ return l[13] = e[t][0], l[14] = e[t][1], l;
605
+ }
606
+ function De(o, e) {
607
+ let t, l, a;
608
+ const n = [
609
+ {
610
+ type: e[13],
611
+ data: e[14],
612
+ bounding: e[1],
613
+ getRuleDistanceText: e[0]
614
+ }
615
+ ];
616
+ let f = {};
617
+ for (let i = 0; i < n.length; i += 1)
618
+ f = U(f, n[i]);
619
+ return l = new Ut({ props: f }), {
620
+ key: o,
621
+ first: null,
622
+ c() {
623
+ t = O(), C(l.$$.fragment), this.first = t;
624
+ },
625
+ m(i, r) {
626
+ E(i, t, r), N(l, i, r), a = !0;
627
+ },
628
+ p(i, r) {
629
+ e = i;
630
+ const u = r & 19 ? Y(n, [
631
+ {
632
+ type: e[13],
633
+ data: e[14],
634
+ bounding: e[1],
635
+ getRuleDistanceText: e[0]
636
+ }
637
+ ]) : {};
638
+ l.$set(u);
639
+ },
640
+ i(i) {
641
+ a || (v(l.$$.fragment, i), a = !0);
642
+ },
643
+ o(i) {
644
+ y(l.$$.fragment, i), a = !1;
645
+ },
646
+ d(i) {
647
+ i && w(t), q(l, i);
648
+ }
649
+ };
650
+ }
651
+ function St(o) {
652
+ let e, t = [], l = /* @__PURE__ */ new Map(), a, n = o[4];
653
+ const f = (i) => i[13];
654
+ for (let i = 0; i < n.length; i += 1) {
655
+ let r = Ie(o, n, i), u = f(r);
656
+ l.set(u, t[i] = De(u, r));
657
+ }
658
+ return {
659
+ c() {
660
+ e = P("div");
661
+ for (let i = 0; i < t.length; i += 1)
662
+ t[i].c();
663
+ m(e, "class", "floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3"), I(e, "width", o[3], !1), I(e, "height", o[2], !1);
664
+ },
665
+ m(i, r) {
666
+ E(i, e, r);
667
+ for (let u = 0; u < t.length; u += 1)
668
+ t[u].m(e, null);
669
+ a = !0;
670
+ },
671
+ p(i, [r]) {
672
+ r & 19 && (n = i[4], z(), t = ie(t, r, f, 1, i, n, l, e, Ye, De, null, Ie), T()), r & 8 && I(e, "width", i[3], !1), r & 4 && I(e, "height", i[2], !1);
673
+ },
674
+ i(i) {
675
+ if (!a) {
676
+ for (let r = 0; r < n.length; r += 1)
677
+ v(t[r]);
678
+ a = !0;
679
+ }
680
+ },
681
+ o(i) {
682
+ for (let r = 0; r < t.length; r += 1)
683
+ y(t[r]);
684
+ a = !1;
685
+ },
686
+ d(i) {
687
+ i && w(e);
688
+ for (let r = 0; r < t.length; r += 1)
689
+ t[r].d();
690
+ }
691
+ };
692
+ }
693
+ const Pe = 1e3, We = 180;
694
+ function Ft(o, e, t) {
695
+ let l, a, n, f, i, r, u, b, p, d, { floorIndex: g } = e, { floorplanData: s } = e, { getRuleDistanceText: h } = e;
696
+ return o.$$set = (c) => {
697
+ "floorIndex" in c && t(5, g = c.floorIndex), "floorplanData" in c && t(6, s = c.floorplanData), "getRuleDistanceText" in c && t(0, h = c.getRuleDistanceText);
698
+ }, o.$$.update = () => {
699
+ o.$$.dirty & 64 && t(1, l = s.bounding), o.$$.dirty & 96 && t(11, a = s.floorDatas[g].rules), o.$$.dirty & 2048 && t(12, n = Object.keys(a)), o.$$.dirty & 6144 && t(4, f = n.map((c) => [c, a[c]])), o.$$.dirty & 2 && t(9, i = l.max.x - l.min.x), o.$$.dirty & 2 && t(7, r = l.max.y - l.min.y), o.$$.dirty & 2 && t(10, u = l.max.x - l.min.x - (Pe - We) * 2), o.$$.dirty & 2 && t(8, b = l.max.y - l.min.y - (Pe - We) * 2), o.$$.dirty & 1536 && t(3, p = u / i * 100 + "%"), o.$$.dirty & 384 && t(2, d = b / r * 100 + "%");
700
+ }, [
701
+ h,
702
+ l,
703
+ d,
704
+ p,
705
+ f,
706
+ g,
707
+ s,
708
+ r,
709
+ b,
710
+ i,
711
+ u,
712
+ a,
713
+ n
714
+ ];
715
+ }
716
+ class Bt extends A {
717
+ constructor(e) {
718
+ super(), G(
719
+ this,
720
+ e,
721
+ Ft,
722
+ St,
723
+ x,
724
+ {
725
+ floorIndex: 5,
726
+ floorplanData: 6,
727
+ getRuleDistanceText: 0
728
+ },
729
+ Yt
730
+ );
731
+ }
732
+ }
733
+ function Mt(o) {
734
+ let e;
735
+ return {
736
+ c() {
737
+ e = W("path"), m(e, "d", o[0]), m(e, "fill", "#2F313A");
738
+ },
739
+ m(t, l) {
740
+ E(t, e, l);
741
+ },
742
+ p(t, [l]) {
743
+ l & 1 && m(e, "d", t[0]);
744
+ },
745
+ i: V,
746
+ o: V,
747
+ d(t) {
748
+ t && w(e);
749
+ }
750
+ };
751
+ }
752
+ function Qt(o, e, t) {
753
+ let l, { path: a } = e;
754
+ return o.$$set = (n) => {
755
+ "path" in n && t(1, a = n.path);
756
+ }, o.$$.update = () => {
757
+ o.$$.dirty & 2 && t(0, l = se(a, { needZ: !0 }));
758
+ }, [l, a];
759
+ }
760
+ class Zt extends A {
761
+ constructor(e) {
762
+ super(), G(this, e, Qt, Mt, x, { path: 1 });
763
+ }
764
+ }
765
+ function Ht(o) {
766
+ let e, t, l, a, n, f;
767
+ return {
768
+ c() {
769
+ e = W("defs"), t = W("pattern"), l = W("rect"), a = W("path"), n = j(), f = W("path"), m(l, "x", "0"), m(l, "y", "0"), m(l, "width", o[1]), m(l, "height", o[1]), m(l, "fill", "#323747"), m(a, "d", o[2]), m(a, "stroke", "#ffffff"), m(a, "stroke-opacity", "0.06"), m(a, "stroke-width", "0.5"), m(a, "fill", "none"), m(t, "id", "fpm-room-pattern-0"), m(t, "x", "0"), m(t, "y", "0"), m(t, "width", o[1]), m(t, "height", o[1]), m(t, "patternUnits", "userSpaceOnUse"), m(t, "patternTransform", "scale(50 50)"), m(f, "d", o[0]), m(f, "fill", "url(#fpm-room-pattern-0)");
770
+ },
771
+ m(i, r) {
772
+ E(i, e, r), L(e, t), L(t, l), L(t, a), E(i, n, r), E(i, f, r);
773
+ },
774
+ p(i, [r]) {
775
+ r & 1 && m(f, "d", i[0]);
776
+ },
777
+ i: V,
778
+ o: V,
779
+ d(i) {
780
+ i && w(e), i && w(n), i && w(f);
781
+ }
782
+ };
783
+ }
784
+ const re = 6;
785
+ function Ot(o, e, t) {
786
+ let l, { path: a } = e;
787
+ const n = re * 2, f = `M0 ${re} h ${n} M${re} 0 v ${n}`;
788
+ return o.$$set = (i) => {
789
+ "path" in i && t(3, a = i.path);
790
+ }, o.$$.update = () => {
791
+ o.$$.dirty & 8 && t(0, l = se(a, { needZ: !0 }));
792
+ }, [l, n, f, a];
793
+ }
794
+ class Xt extends A {
795
+ constructor(e) {
796
+ super(), G(this, e, Ot, Ht, x, { path: 3 });
797
+ }
798
+ }
799
+ function Kt(o) {
800
+ let e, t, l, a, n, f, i, r, u, b, p;
801
+ return {
802
+ c() {
803
+ e = W("defs"), t = W("pattern"), l = W("rect"), a = W("pattern"), n = W("rect"), f = j(), i = W("path"), r = j(), u = W("path"), b = j(), p = W("path"), m(l, "x", "0"), m(l, "y", "0"), m(l, "width", "6"), m(l, "height", "50"), m(l, "fill", "none"), m(l, "stroke", "#4B4B57"), m(l, "stroke-width", "0.5"), m(t, "id", "room-material-pattern-1"), m(t, "x", "0"), m(t, "y", "0"), m(t, "width", "12"), m(t, "height", "50"), m(t, "patternUnits", "userSpaceOnUse"), m(t, "patternTransform", "scale(50 50)"), m(n, "x", "0"), m(n, "y", "0"), m(n, "width", "6"), m(n, "height", "50"), m(n, "fill", "none"), m(n, "stroke", "#4B4B57"), m(n, "stroke-width", "0.5"), m(a, "id", "room-material-pattern-2"), m(a, "x", "6"), m(a, "y", "25"), m(a, "width", "12"), m(a, "height", "50"), m(a, "patternUnits", "userSpaceOnUse"), m(a, "patternTransform", "scale(50 50)"), m(i, "d", o[0]), m(i, "fill", "#43434D"), m(u, "d", o[0]), m(u, "fill", "url(#room-material-pattern-1)"), m(p, "d", o[0]), m(p, "fill", "url(#room-material-pattern-2)");
804
+ },
805
+ m(d, g) {
806
+ E(d, e, g), L(e, t), L(t, l), L(e, a), L(a, n), E(d, f, g), E(d, i, g), E(d, r, g), E(d, u, g), E(d, b, g), E(d, p, g);
807
+ },
808
+ p(d, [g]) {
809
+ g & 1 && m(i, "d", d[0]), g & 1 && m(u, "d", d[0]), g & 1 && m(p, "d", d[0]);
810
+ },
811
+ i: V,
812
+ o: V,
813
+ d(d) {
814
+ d && w(e), d && w(f), d && w(i), d && w(r), d && w(u), d && w(b), d && w(p);
815
+ }
816
+ };
817
+ }
818
+ function Jt(o, e, t) {
819
+ let l, { path: a } = e;
820
+ return o.$$set = (n) => {
821
+ "path" in n && t(1, a = n.path);
822
+ }, o.$$.update = () => {
823
+ o.$$.dirty & 2 && t(0, l = se(a, { needZ: !0 }));
824
+ }, [l, a];
825
+ }
826
+ class $t extends A {
827
+ constructor(e) {
828
+ super(), G(this, e, Jt, Kt, x, { path: 1 });
829
+ }
830
+ }
831
+ function el(o) {
832
+ S(o, "svelte-1dykexu", ".floorplan-plugin__room-material.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%}svg.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}");
833
+ }
834
+ function je(o, e, t) {
835
+ const l = o.slice();
836
+ return l[5] = e[t], l;
837
+ }
838
+ function tl(o) {
839
+ let e, t;
840
+ return e = new Xt({ props: { path: o[5].path } }), {
841
+ c() {
842
+ C(e.$$.fragment);
843
+ },
844
+ m(l, a) {
845
+ N(e, l, a), t = !0;
846
+ },
847
+ p(l, a) {
848
+ const n = {};
849
+ a & 1 && (n.path = l[5].path), e.$set(n);
850
+ },
851
+ i(l) {
852
+ t || (v(e.$$.fragment, l), t = !0);
853
+ },
854
+ o(l) {
855
+ y(e.$$.fragment, l), t = !1;
856
+ },
857
+ d(l) {
858
+ q(e, l);
859
+ }
860
+ };
861
+ }
862
+ function ll(o) {
863
+ let e, t;
864
+ return e = new $t({ props: { path: o[5].path } }), {
865
+ c() {
866
+ C(e.$$.fragment);
867
+ },
868
+ m(l, a) {
869
+ N(e, l, a), t = !0;
870
+ },
871
+ p(l, a) {
872
+ const n = {};
873
+ a & 1 && (n.path = l[5].path), e.$set(n);
874
+ },
875
+ i(l) {
876
+ t || (v(e.$$.fragment, l), t = !0);
877
+ },
878
+ o(l) {
879
+ y(e.$$.fragment, l), t = !1;
880
+ },
881
+ d(l) {
882
+ q(e, l);
883
+ }
884
+ };
885
+ }
886
+ function ol(o) {
887
+ let e, t;
888
+ return e = new Zt({ props: { path: o[5].path } }), {
889
+ c() {
890
+ C(e.$$.fragment);
891
+ },
892
+ m(l, a) {
893
+ N(e, l, a), t = !0;
894
+ },
895
+ p(l, a) {
896
+ const n = {};
897
+ a & 1 && (n.path = l[5].path), e.$set(n);
898
+ },
899
+ i(l) {
900
+ t || (v(e.$$.fragment, l), t = !0);
901
+ },
902
+ o(l) {
903
+ y(e.$$.fragment, l), t = !1;
904
+ },
905
+ d(l) {
906
+ q(e, l);
907
+ }
908
+ };
909
+ }
910
+ function Ve(o) {
911
+ let e, t, l, a;
912
+ const n = [ol, ll, tl], f = [];
913
+ function i(r, u) {
914
+ return r[5].floorType === 1 ? 0 : r[5].floorType === 0 ? 1 : 2;
915
+ }
916
+ return t = i(o), l = f[t] = n[t](o), {
917
+ c() {
918
+ e = W("svg"), l.c(), m(e, "width", "100%"), m(e, "height", "100%"), m(e, "viewBox", `0 0 ${o[1]} ${o[2]}`), m(e, "class", "svelte-1dykexu");
919
+ },
920
+ m(r, u) {
921
+ E(r, e, u), f[t].m(e, null), a = !0;
922
+ },
923
+ p(r, u) {
924
+ let b = t;
925
+ t = i(r), t === b ? f[t].p(r, u) : (z(), y(f[b], 1, 1, () => {
926
+ f[b] = null;
927
+ }), T(), l = f[t], l ? l.p(r, u) : (l = f[t] = n[t](r), l.c()), v(l, 1), l.m(e, null));
928
+ },
929
+ i(r) {
930
+ a || (v(l), a = !0);
931
+ },
932
+ o(r) {
933
+ y(l), a = !1;
934
+ },
935
+ d(r) {
936
+ r && w(e), f[t].d();
937
+ }
938
+ };
939
+ }
940
+ function nl(o) {
941
+ let e, t, l = o[0], a = [];
942
+ for (let f = 0; f < l.length; f += 1)
943
+ a[f] = Ve(je(o, l, f));
944
+ const n = (f) => y(a[f], 1, 1, () => {
945
+ a[f] = null;
946
+ });
947
+ return {
948
+ c() {
949
+ e = P("div");
950
+ for (let f = 0; f < a.length; f += 1)
951
+ a[f].c();
952
+ m(e, "class", "floorplan-plugin__room-material svelte-1dykexu");
953
+ },
954
+ m(f, i) {
955
+ E(f, e, i);
956
+ for (let r = 0; r < a.length; r += 1)
957
+ a[r].m(e, null);
958
+ t = !0;
959
+ },
960
+ p(f, [i]) {
961
+ if (i & 7) {
962
+ l = f[0];
963
+ let r;
964
+ for (r = 0; r < l.length; r += 1) {
965
+ const u = je(f, l, r);
966
+ a[r] ? (a[r].p(u, i), v(a[r], 1)) : (a[r] = Ve(u), a[r].c(), v(a[r], 1), a[r].m(e, null));
967
+ }
968
+ for (z(), r = l.length; r < a.length; r += 1)
969
+ n(r);
970
+ T();
971
+ }
972
+ },
973
+ i(f) {
974
+ if (!t) {
975
+ for (let i = 0; i < l.length; i += 1)
976
+ v(a[i]);
977
+ t = !0;
978
+ }
979
+ },
980
+ o(f) {
981
+ a = a.filter(Boolean);
982
+ for (let i = 0; i < a.length; i += 1)
983
+ y(a[i]);
984
+ t = !1;
985
+ },
986
+ d(f) {
987
+ f && w(e), fe(a, f);
988
+ }
989
+ };
990
+ }
991
+ function al(o, e, t) {
992
+ let l, { floorIndex: a } = e, { floorplanData: n } = e;
993
+ const f = n.bounding.max.x - n.bounding.min.x, i = n.bounding.max.y - n.bounding.min.y;
994
+ return o.$$set = (r) => {
995
+ "floorIndex" in r && t(3, a = r.floorIndex), "floorplanData" in r && t(4, n = r.floorplanData);
996
+ }, o.$$.update = () => {
997
+ o.$$.dirty & 24 && t(0, l = n.floorDatas[a].rooms.map((r) => ge(de({}, r), {
998
+ path: r.path.map((u) => st(u, n.bounding))
999
+ })));
1000
+ }, [l, f, i, a, n];
1001
+ }
1002
+ class rl extends A {
1003
+ constructor(e) {
1004
+ super(), G(this, e, al, nl, x, { floorIndex: 3, floorplanData: 4 }, el);
1005
+ }
1006
+ }
1007
+ function il(o) {
1008
+ S(o, "svelte-bl8zrz", ".floorplan-plugin__floor.svelte-bl8zrz{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;pointer-events:none}.floorplan-plugin__floor--is-current.svelte-bl8zrz{opacity:1;pointer-events:auto}");
1009
+ }
1010
+ function Ce(o) {
1011
+ let e, t;
1012
+ const l = [
1013
+ {
1014
+ floorIndex: o[1],
1015
+ floorplanData: o[5],
1016
+ hoveredRoom: o[10]
1017
+ }
1018
+ ];
1019
+ let a = {};
1020
+ for (let n = 0; n < l.length; n += 1)
1021
+ a = U(a, l[n]);
1022
+ return e = new mt({ props: a }), {
1023
+ c() {
1024
+ C(e.$$.fragment);
1025
+ },
1026
+ m(n, f) {
1027
+ N(e, n, f), t = !0;
1028
+ },
1029
+ p(n, f) {
1030
+ const i = f & 1058 ? Y(l, [
1031
+ {
1032
+ floorIndex: n[1],
1033
+ floorplanData: n[5],
1034
+ hoveredRoom: n[10]
1035
+ }
1036
+ ]) : {};
1037
+ e.$set(i);
1038
+ },
1039
+ i(n) {
1040
+ t || (v(e.$$.fragment, n), t = !0);
1041
+ },
1042
+ o(n) {
1043
+ y(e.$$.fragment, n), t = !1;
1044
+ },
1045
+ d(n) {
1046
+ q(e, n);
1047
+ }
1048
+ };
1049
+ }
1050
+ function Ne(o) {
1051
+ let e, t;
1052
+ const l = [
1053
+ {
1054
+ floorplanData: o[5],
1055
+ floorIndex: o[1],
1056
+ getRoomAreaText: o[6],
1057
+ getLabelElement: o[7],
1058
+ hoveredRoom: o[10],
1059
+ adaptiveRoomLabelVisibleEnable: o[9]
1060
+ }
1061
+ ];
1062
+ let a = {};
1063
+ for (let n = 0; n < l.length; n += 1)
1064
+ a = U(a, l[n]);
1065
+ return e = new Gt({ props: a }), {
1066
+ c() {
1067
+ C(e.$$.fragment);
1068
+ },
1069
+ m(n, f) {
1070
+ N(e, n, f), t = !0;
1071
+ },
1072
+ p(n, f) {
1073
+ const i = f & 1762 ? Y(l, [
1074
+ {
1075
+ floorplanData: n[5],
1076
+ floorIndex: n[1],
1077
+ getRoomAreaText: n[6],
1078
+ getLabelElement: n[7],
1079
+ hoveredRoom: n[10],
1080
+ adaptiveRoomLabelVisibleEnable: n[9]
1081
+ }
1082
+ ]) : {};
1083
+ e.$set(i);
1084
+ },
1085
+ i(n) {
1086
+ t || (v(e.$$.fragment, n), t = !0);
1087
+ },
1088
+ o(n) {
1089
+ y(e.$$.fragment, n), t = !1;
1090
+ },
1091
+ d(n) {
1092
+ q(e, n);
1093
+ }
1094
+ };
1095
+ }
1096
+ function qe(o) {
1097
+ let e, t;
1098
+ const l = [
1099
+ {
1100
+ floorplanData: o[5],
1101
+ floorIndex: o[1],
1102
+ getRuleDistanceText: o[8]
1103
+ }
1104
+ ];
1105
+ let a = {};
1106
+ for (let n = 0; n < l.length; n += 1)
1107
+ a = U(a, l[n]);
1108
+ return e = new Bt({ props: a }), {
1109
+ c() {
1110
+ C(e.$$.fragment);
1111
+ },
1112
+ m(n, f) {
1113
+ N(e, n, f), t = !0;
1114
+ },
1115
+ p(n, f) {
1116
+ const i = f & 290 ? Y(l, [
1117
+ {
1118
+ floorplanData: n[5],
1119
+ floorIndex: n[1],
1120
+ getRuleDistanceText: n[8]
1121
+ }
1122
+ ]) : {};
1123
+ e.$set(i);
1124
+ },
1125
+ i(n) {
1126
+ t || (v(e.$$.fragment, n), t = !0);
1127
+ },
1128
+ o(n) {
1129
+ y(e.$$.fragment, n), t = !1;
1130
+ },
1131
+ d(n) {
1132
+ q(e, n);
1133
+ }
1134
+ };
1135
+ }
1136
+ function fl(o) {
1137
+ let e, t, l, a, n, f, i, r, u;
1138
+ const b = [
1139
+ {
1140
+ floorIndex: o[1],
1141
+ floorplanData: o[5]
1142
+ }
1143
+ ];
1144
+ let p = {};
1145
+ for (let _ = 0; _ < b.length; _ += 1)
1146
+ p = U(p, b[_]);
1147
+ t = new rl({ props: p });
1148
+ let d = o[2] && Ce(o);
1149
+ const g = [
1150
+ {
1151
+ floorplanData: o[5],
1152
+ floorIndex: o[1]
1153
+ }
1154
+ ];
1155
+ let s = {};
1156
+ for (let _ = 0; _ < g.length; _ += 1)
1157
+ s = U(s, g[_]);
1158
+ n = new ut({ props: s });
1159
+ let h = o[3] && Ne(o), c = o[4] && qe(o);
1160
+ return {
1161
+ c() {
1162
+ e = P("div"), C(t.$$.fragment), l = j(), d && d.c(), a = j(), C(n.$$.fragment), f = j(), h && h.c(), i = j(), c && c.c(), m(e, "class", r = he(`floorplan-plugin__floor${o[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
1163
+ },
1164
+ m(_, R) {
1165
+ E(_, e, R), N(t, e, null), L(e, l), d && d.m(e, null), L(e, a), N(n, e, null), L(e, f), h && h.m(e, null), L(e, i), c && c.m(e, null), u = !0;
1166
+ },
1167
+ p(_, [R]) {
1168
+ const k = R & 34 ? Y(b, [
1169
+ {
1170
+ floorIndex: _[1],
1171
+ floorplanData: _[5]
1172
+ }
1173
+ ]) : {};
1174
+ t.$set(k), _[2] ? d ? (d.p(_, R), R & 4 && v(d, 1)) : (d = Ce(_), d.c(), v(d, 1), d.m(e, a)) : d && (z(), y(d, 1, 1, () => {
1175
+ d = null;
1176
+ }), T());
1177
+ const F = R & 34 ? Y(g, [
1178
+ {
1179
+ floorplanData: _[5],
1180
+ floorIndex: _[1]
1181
+ }
1182
+ ]) : {};
1183
+ n.$set(F), _[3] ? h ? (h.p(_, R), R & 8 && v(h, 1)) : (h = Ne(_), h.c(), v(h, 1), h.m(e, i)) : h && (z(), y(h, 1, 1, () => {
1184
+ h = null;
1185
+ }), T()), _[4] ? c ? (c.p(_, R), R & 16 && v(c, 1)) : (c = qe(_), c.c(), v(c, 1), c.m(e, null)) : c && (z(), y(c, 1, 1, () => {
1186
+ c = null;
1187
+ }), T()), (!u || R & 1 && r !== (r = he(`floorplan-plugin__floor${_[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && m(e, "class", r);
1188
+ },
1189
+ i(_) {
1190
+ u || (v(t.$$.fragment, _), v(d), v(n.$$.fragment, _), v(h), v(c), u = !0);
1191
+ },
1192
+ o(_) {
1193
+ y(t.$$.fragment, _), y(d), y(n.$$.fragment, _), y(h), y(c), u = !1;
1194
+ },
1195
+ d(_) {
1196
+ _ && w(e), q(t), d && d.d(), q(n), h && h.d(), c && c.d();
1197
+ }
1198
+ };
1199
+ }
1200
+ function sl(o, e, t) {
1201
+ let { isCurrent: l } = e, { floorIndex: a } = e, { hoverEnable: n } = e, { roomLabelsEnable: f } = e, { ruleLabelsEnable: i } = e, { floorplanData: r } = e, { getRoomAreaText: u } = e, { getLabelElement: b } = e, { getRuleDistanceText: p } = e, { adaptiveRoomLabelVisibleEnable: d } = e;
1202
+ const g = ct(void 0);
1203
+ return o.$$set = (s) => {
1204
+ "isCurrent" in s && t(0, l = s.isCurrent), "floorIndex" in s && t(1, a = s.floorIndex), "hoverEnable" in s && t(2, n = s.hoverEnable), "roomLabelsEnable" in s && t(3, f = s.roomLabelsEnable), "ruleLabelsEnable" in s && t(4, i = s.ruleLabelsEnable), "floorplanData" in s && t(5, r = s.floorplanData), "getRoomAreaText" in s && t(6, u = s.getRoomAreaText), "getLabelElement" in s && t(7, b = s.getLabelElement), "getRuleDistanceText" in s && t(8, p = s.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in s && t(9, d = s.adaptiveRoomLabelVisibleEnable);
1205
+ }, [
1206
+ l,
1207
+ a,
1208
+ n,
1209
+ f,
1210
+ i,
1211
+ r,
1212
+ u,
1213
+ b,
1214
+ p,
1215
+ d,
1216
+ g
1217
+ ];
1218
+ }
1219
+ class ul extends A {
1220
+ constructor(e) {
1221
+ super(), G(
1222
+ this,
1223
+ e,
1224
+ sl,
1225
+ fl,
1226
+ x,
1227
+ {
1228
+ isCurrent: 0,
1229
+ floorIndex: 1,
1230
+ hoverEnable: 2,
1231
+ roomLabelsEnable: 3,
1232
+ ruleLabelsEnable: 4,
1233
+ floorplanData: 5,
1234
+ getRoomAreaText: 6,
1235
+ getLabelElement: 7,
1236
+ getRuleDistanceText: 8,
1237
+ adaptiveRoomLabelVisibleEnable: 9
1238
+ },
1239
+ il
1240
+ );
1241
+ }
1242
+ }
1243
+ function ml(o) {
1244
+ S(o, "svelte-86bqav", ".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}");
1245
+ }
1246
+ function Ae(o, e, t) {
1247
+ const l = o.slice();
1248
+ return l[16] = e[t], l;
1249
+ }
1250
+ function Ge(o) {
1251
+ let e, t, l, a, n, f, i = o[9].floorDatas, r = [];
1252
+ for (let g = 0; g < i.length; g += 1)
1253
+ r[g] = xe(Ae(o, i, g));
1254
+ const u = (g) => y(r[g], 1, 1, () => {
1255
+ r[g] = null;
1256
+ }), b = [
1257
+ {
1258
+ panoIndex: o[3],
1259
+ floorplanData: o[9],
1260
+ lastPanoramaLongitude: o[10],
1261
+ cameraImageUrl: o[11]
1262
+ }
1263
+ ];
1264
+ let p = {};
1265
+ for (let g = 0; g < b.length; g += 1)
1266
+ p = U(p, b[g]);
1267
+ l = new _t({ props: p });
1268
+ let d = o[6] && ze(o);
1269
+ return {
1270
+ c() {
1271
+ e = P("div");
1272
+ for (let g = 0; g < r.length; g += 1)
1273
+ r[g].c();
1274
+ t = j(), C(l.$$.fragment), a = j(), d && d.c(), m(e, "class", "floorplan-main svelte-86bqav");
1275
+ },
1276
+ m(g, s) {
1277
+ E(g, e, s);
1278
+ for (let h = 0; h < r.length; h += 1)
1279
+ r[h].m(e, null);
1280
+ L(e, t), N(l, e, null), L(e, a), d && d.m(e, null), f = !0;
1281
+ },
1282
+ p(g, s) {
1283
+ if (o = g, s & 62384) {
1284
+ i = o[9].floorDatas;
1285
+ let c;
1286
+ for (c = 0; c < i.length; c += 1) {
1287
+ const _ = Ae(o, i, c);
1288
+ r[c] ? (r[c].p(_, s), v(r[c], 1)) : (r[c] = xe(_), r[c].c(), v(r[c], 1), r[c].m(e, t));
1289
+ }
1290
+ for (z(), c = i.length; c < r.length; c += 1)
1291
+ u(c);
1292
+ T();
1293
+ }
1294
+ const h = s & 3592 ? Y(b, [
1295
+ {
1296
+ panoIndex: o[3],
1297
+ floorplanData: o[9],
1298
+ lastPanoramaLongitude: o[10],
1299
+ cameraImageUrl: o[11]
1300
+ }
1301
+ ]) : {};
1302
+ l.$set(h), o[6] ? d ? (d.p(o, s), s & 64 && v(d, 1)) : (d = ze(o), d.c(), v(d, 1), d.m(e, null)) : d && (z(), y(d, 1, 1, () => {
1303
+ d = null;
1304
+ }), T());
1305
+ },
1306
+ i(g) {
1307
+ if (!f) {
1308
+ for (let s = 0; s < i.length; s += 1)
1309
+ v(r[s]);
1310
+ v(l.$$.fragment, g), v(d), n || Ue(() => {
1311
+ n = rt(e, ft, {
1312
+ duration: o[0],
1313
+ easing: it
1314
+ }), n.start();
1315
+ }), f = !0;
1316
+ }
1317
+ },
1318
+ o(g) {
1319
+ r = r.filter(Boolean);
1320
+ for (let s = 0; s < r.length; s += 1)
1321
+ y(r[s]);
1322
+ y(l.$$.fragment, g), y(d), f = !1;
1323
+ },
1324
+ d(g) {
1325
+ g && w(e), fe(r, g), q(l), d && d.d();
1326
+ }
1327
+ };
1328
+ }
1329
+ function xe(o) {
1330
+ let e, t;
1331
+ const l = [
1332
+ {
1333
+ hoverEnable: o[5],
1334
+ floorplanData: o[9],
1335
+ getRoomAreaText: o[12],
1336
+ getLabelElement: o[13],
1337
+ getRuleDistanceText: o[14],
1338
+ roomLabelsEnable: o[7],
1339
+ ruleLabelsEnable: o[8],
1340
+ adaptiveRoomLabelVisibleEnable: o[15]
1341
+ },
1342
+ {
1343
+ floorIndex: o[16].floorIndex
1344
+ },
1345
+ {
1346
+ isCurrent: o[16].floorIndex === o[4]
1347
+ }
1348
+ ];
1349
+ let a = {};
1350
+ for (let n = 0; n < l.length; n += 1)
1351
+ a = U(a, l[n]);
1352
+ return e = new ul({ props: a }), {
1353
+ c() {
1354
+ C(e.$$.fragment);
1355
+ },
1356
+ m(n, f) {
1357
+ N(e, n, f), t = !0;
1358
+ },
1359
+ p(n, f) {
1360
+ const i = f & 62384 ? Y(l, [
1361
+ f & 62368 && {
1362
+ hoverEnable: n[5],
1363
+ floorplanData: n[9],
1364
+ getRoomAreaText: n[12],
1365
+ getLabelElement: n[13],
1366
+ getRuleDistanceText: n[14],
1367
+ roomLabelsEnable: n[7],
1368
+ ruleLabelsEnable: n[8],
1369
+ adaptiveRoomLabelVisibleEnable: n[15]
1370
+ },
1371
+ f & 512 && {
1372
+ floorIndex: n[16].floorIndex
1373
+ },
1374
+ f & 528 && {
1375
+ isCurrent: n[16].floorIndex === n[4]
1376
+ }
1377
+ ]) : {};
1378
+ e.$set(i);
1379
+ },
1380
+ i(n) {
1381
+ t || (v(e.$$.fragment, n), t = !0);
1382
+ },
1383
+ o(n) {
1384
+ y(e.$$.fragment, n), t = !1;
1385
+ },
1386
+ d(n) {
1387
+ q(e, n);
1388
+ }
1389
+ };
1390
+ }
1391
+ function ze(o) {
1392
+ let e, t;
1393
+ return e = new Lt({
1394
+ props: {
1395
+ floorplanData: o[9],
1396
+ northDesc: o[2]
1397
+ }
1398
+ }), {
1399
+ c() {
1400
+ C(e.$$.fragment);
1401
+ },
1402
+ m(l, a) {
1403
+ N(e, l, a), t = !0;
1404
+ },
1405
+ p(l, a) {
1406
+ const n = {};
1407
+ a & 512 && (n.floorplanData = l[9]), a & 4 && (n.northDesc = l[2]), e.$set(n);
1408
+ },
1409
+ i(l) {
1410
+ t || (v(e.$$.fragment, l), t = !0);
1411
+ },
1412
+ o(l) {
1413
+ y(e.$$.fragment, l), t = !1;
1414
+ },
1415
+ d(l) {
1416
+ q(e, l);
1417
+ }
1418
+ };
1419
+ }
1420
+ function cl(o) {
1421
+ let e, t, l = o[1] && Ge(o);
1422
+ return {
1423
+ c() {
1424
+ l && l.c(), e = O();
1425
+ },
1426
+ m(a, n) {
1427
+ l && l.m(a, n), E(a, e, n), t = !0;
1428
+ },
1429
+ p(a, [n]) {
1430
+ a[1] ? l ? (l.p(a, n), n & 2 && v(l, 1)) : (l = Ge(a), l.c(), v(l, 1), l.m(e.parentNode, e)) : l && (z(), y(l, 1, 1, () => {
1431
+ l = null;
1432
+ }), T());
1433
+ },
1434
+ i(a) {
1435
+ t || (v(l), t = !0);
1436
+ },
1437
+ o(a) {
1438
+ y(l), t = !1;
1439
+ },
1440
+ d(a) {
1441
+ l && l.d(a), a && w(e);
1442
+ }
1443
+ };
1444
+ }
1445
+ function dl(o, e, t) {
1446
+ let { duration: l = 0 } = e, { visible: a } = e, { northDesc: n } = e, { panoIndex: f } = e, { floorIndex: i } = e, { hoverEnable: r } = e, { compassEnable: u } = e, { roomLabelsEnable: b } = e, { ruleLabelsEnable: p } = e, { floorplanData: d } = e, { lastPanoramaLongitude: g } = e, { cameraImageUrl: s } = e, { getRoomAreaText: h } = e, { getLabelElement: c } = e, { getRuleDistanceText: _ } = e, { adaptiveRoomLabelVisibleEnable: R } = e;
1447
+ return o.$$set = (k) => {
1448
+ "duration" in k && t(0, l = k.duration), "visible" in k && t(1, a = k.visible), "northDesc" in k && t(2, n = k.northDesc), "panoIndex" in k && t(3, f = k.panoIndex), "floorIndex" in k && t(4, i = k.floorIndex), "hoverEnable" in k && t(5, r = k.hoverEnable), "compassEnable" in k && t(6, u = k.compassEnable), "roomLabelsEnable" in k && t(7, b = k.roomLabelsEnable), "ruleLabelsEnable" in k && t(8, p = k.ruleLabelsEnable), "floorplanData" in k && t(9, d = k.floorplanData), "lastPanoramaLongitude" in k && t(10, g = k.lastPanoramaLongitude), "cameraImageUrl" in k && t(11, s = k.cameraImageUrl), "getRoomAreaText" in k && t(12, h = k.getRoomAreaText), "getLabelElement" in k && t(13, c = k.getLabelElement), "getRuleDistanceText" in k && t(14, _ = k.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in k && t(15, R = k.adaptiveRoomLabelVisibleEnable);
1449
+ }, [
1450
+ l,
1451
+ a,
1452
+ n,
1453
+ f,
1454
+ i,
1455
+ r,
1456
+ u,
1457
+ b,
1458
+ p,
1459
+ d,
1460
+ g,
1461
+ s,
1462
+ h,
1463
+ c,
1464
+ _,
1465
+ R
1466
+ ];
1467
+ }
1468
+ class Rl extends A {
1469
+ constructor(e) {
1470
+ super(), G(
1471
+ this,
1472
+ e,
1473
+ dl,
1474
+ cl,
1475
+ x,
1476
+ {
1477
+ duration: 0,
1478
+ visible: 1,
1479
+ northDesc: 2,
1480
+ panoIndex: 3,
1481
+ floorIndex: 4,
1482
+ hoverEnable: 5,
1483
+ compassEnable: 6,
1484
+ roomLabelsEnable: 7,
1485
+ ruleLabelsEnable: 8,
1486
+ floorplanData: 9,
1487
+ lastPanoramaLongitude: 10,
1488
+ cameraImageUrl: 11,
1489
+ getRoomAreaText: 12,
1490
+ getLabelElement: 13,
1491
+ getRuleDistanceText: 14,
1492
+ adaptiveRoomLabelVisibleEnable: 15
1493
+ },
1494
+ ml
1495
+ );
1496
+ }
1497
+ }
1498
+ function Te(o, e) {
1499
+ const t = Math.max(...o.work.observers.map((l) => l.floorIndex));
1500
+ return e > t ? o.model.bounding.max.y : Math.max(
1501
+ ...o.work.observers.filter((l) => l.floorIndex === e).map((l) => l.standingPosition.y)
1502
+ );
1503
+ }
1504
+ function gl(o, e, t = le.BOUNDING_CENTER) {
1505
+ const l = Te(o, e), a = Te(o, e + 1);
1506
+ return t === le.BOUNDING_CENTER ? (o.model.bounding.max.y + o.model.bounding.min.y) / 2 : t === le.CEILING ? a : l;
1507
+ }
1508
+ function Ll(o, e, t, l) {
1509
+ const a = gl(o, t, l == null ? void 0 : l.attachedTo), n = new _e.Vector3(0, a, 0), f = new _e.Vector3(1, a, 0), i = n.clone().project(o.camera), r = f.clone().project(o.camera);
1510
+ return Math.abs((r.x - i.x) / 1e3) * (e.getBoundingClientRect().width / 2);
1511
+ }
1512
+ function bl(o, e, t = 4) {
1513
+ return Math.floor(o * Math.pow(10, t)) === Math.floor(e * Math.pow(10, t));
1514
+ }
1515
+ function Il(o, e) {
1516
+ return be(this, null, function* () {
1517
+ yield new Promise((t, l) => {
1518
+ o.changeMode(...e).catch((a) => l(a)), o.once("initAnimationEnded", () => {
1519
+ const a = o.getCurrentState(), n = e[0];
1520
+ a.mode !== n && l(new Error("mode \u4E0E\u9884\u671F\u4E0D\u7B26")), (() => {
1521
+ const r = e[1];
1522
+ return r ? Object.keys(r).every((u) => {
1523
+ const b = a[u];
1524
+ if (b === void 0)
1525
+ return !0;
1526
+ const p = r[u];
1527
+ return typeof b == "number" && typeof p == "number" ? bl(b, p, 2) : b === p;
1528
+ }) : !0;
1529
+ })() || l(new Error("five pose \u4E0E\u9884\u671F\u4E0D\u7B26")), t();
1530
+ });
1531
+ });
1532
+ });
1533
+ }
1534
+ function Dl(o, e, t = 300) {
1535
+ const l = o.getElement();
1536
+ !l || (l.style.opacity = e + "", l.style.transition = t === 0 ? "none" : `opacity ${t}ms linear`, t !== 0 && Promise.race([
1537
+ new Promise((a) => l.addEventListener("transitionend", a, { once: !0 })),
1538
+ new Promise((a) => setTimeout(a, t))
1539
+ ]).then(() => {
1540
+ l.style.transition = "none";
1541
+ }));
1542
+ }
1543
+ export {
1544
+ le as FLOOR_PLAN_ATTACHED_TO,
1545
+ Rl as Main,
1546
+ Il as changeMode,
1547
+ Dl as changeModelCanvasOpacity,
1548
+ gl as getAttachedY,
1549
+ Ll as getPxmm,
1550
+ bl as nearlyEqual
1551
+ };