@realsee/dnalogel 2.0.1 → 2.0.2-alpha

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 (346) hide show
  1. package/dist/CSS3DRenderPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  2. package/dist/CSS3DRenderPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  3. package/dist/CSS3DRenderPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  4. package/dist/CSS3DRenderPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  5. package/dist/CSS3DRenderPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  6. package/dist/CSS3DRenderPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  7. package/dist/CSS3DRenderPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  8. package/dist/CSS3DRenderPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  9. package/dist/CSS3DRenderPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  10. package/dist/CSS3DRenderPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  11. package/dist/CameraMovementPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  12. package/dist/CameraMovementPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  13. package/dist/CameraMovementPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  14. package/dist/CameraMovementPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  15. package/dist/CameraMovementPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  16. package/dist/CameraMovementPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  17. package/dist/CameraMovementPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  18. package/dist/CameraMovementPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  19. package/dist/CameraMovementPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  20. package/dist/CameraMovementPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  21. package/dist/CruisePlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  22. package/dist/CruisePlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  23. package/dist/CruisePlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  24. package/dist/CruisePlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  25. package/dist/CruisePlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  26. package/dist/CruisePlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  27. package/dist/CruisePlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  28. package/dist/CruisePlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  29. package/dist/CruisePlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  30. package/dist/CruisePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  31. package/dist/GuideLinePlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  32. package/dist/GuideLinePlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  33. package/dist/GuideLinePlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  34. package/dist/GuideLinePlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  35. package/dist/GuideLinePlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  36. package/dist/GuideLinePlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  37. package/dist/GuideLinePlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  38. package/dist/GuideLinePlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  39. package/dist/GuideLinePlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  40. package/dist/GuideLinePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  41. package/dist/ItemLabelPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  42. package/dist/ItemLabelPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  43. package/dist/ItemLabelPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  44. package/dist/ItemLabelPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  45. package/dist/ItemLabelPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  46. package/dist/ItemLabelPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  47. package/dist/ItemLabelPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  48. package/dist/ItemLabelPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  49. package/dist/ItemLabelPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  50. package/dist/ItemLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  51. package/dist/ModelChassisCompassPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  52. package/dist/ModelChassisCompassPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  53. package/dist/ModelChassisCompassPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  54. package/dist/ModelChassisCompassPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  55. package/dist/ModelChassisCompassPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  56. package/dist/ModelChassisCompassPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  57. package/dist/ModelChassisCompassPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  58. package/dist/ModelChassisCompassPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  59. package/dist/ModelChassisCompassPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  60. package/dist/ModelChassisCompassPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  61. package/dist/ModelEntryDoorGuidePlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  62. package/dist/ModelEntryDoorGuidePlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  63. package/dist/ModelEntryDoorGuidePlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  64. package/dist/ModelEntryDoorGuidePlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  65. package/dist/ModelEntryDoorGuidePlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  66. package/dist/ModelEntryDoorGuidePlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  67. package/dist/ModelEntryDoorGuidePlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  68. package/dist/ModelEntryDoorGuidePlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  69. package/dist/ModelEntryDoorGuidePlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  70. package/dist/ModelEntryDoorGuidePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  71. package/dist/ModelItemLabelPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  72. package/dist/ModelItemLabelPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  73. package/dist/ModelItemLabelPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  74. package/dist/ModelItemLabelPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  75. package/dist/ModelItemLabelPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  76. package/dist/ModelItemLabelPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  77. package/dist/ModelItemLabelPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  78. package/dist/ModelItemLabelPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  79. package/dist/ModelItemLabelPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  80. package/dist/ModelItemLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  81. package/dist/ModelRoomLabelPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  82. package/dist/ModelRoomLabelPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  83. package/dist/ModelRoomLabelPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  84. package/dist/ModelRoomLabelPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  85. package/dist/ModelRoomLabelPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  86. package/dist/ModelRoomLabelPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  87. package/dist/ModelRoomLabelPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  88. package/dist/ModelRoomLabelPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  89. package/dist/ModelRoomLabelPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  90. package/dist/ModelRoomLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  91. package/dist/ModelTVVideoPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  92. package/dist/ModelTVVideoPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  93. package/dist/ModelTVVideoPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  94. package/dist/ModelTVVideoPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  95. package/dist/ModelTVVideoPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  96. package/dist/ModelTVVideoPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  97. package/dist/ModelTVVideoPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  98. package/dist/ModelTVVideoPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  99. package/dist/ModelTVVideoPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  100. package/dist/ModelTVVideoPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  101. package/dist/ModelViewPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  102. package/dist/ModelViewPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  103. package/dist/ModelViewPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  104. package/dist/ModelViewPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  105. package/dist/ModelViewPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  106. package/dist/ModelViewPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  107. package/dist/ModelViewPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  108. package/dist/ModelViewPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  109. package/dist/ModelViewPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  110. package/dist/ModelViewPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  111. package/dist/PanoCompassPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  112. package/dist/PanoCompassPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  113. package/dist/PanoCompassPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  114. package/dist/PanoCompassPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  115. package/dist/PanoCompassPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  116. package/dist/PanoCompassPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  117. package/dist/PanoCompassPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  118. package/dist/PanoCompassPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  119. package/dist/PanoCompassPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  120. package/dist/PanoCompassPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  121. package/dist/PanoCursorRaycasterPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  122. package/dist/PanoCursorRaycasterPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  123. package/dist/PanoCursorRaycasterPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  124. package/dist/PanoCursorRaycasterPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  125. package/dist/PanoCursorRaycasterPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  126. package/dist/PanoCursorRaycasterPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  127. package/dist/PanoCursorRaycasterPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  128. package/dist/PanoCursorRaycasterPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  129. package/dist/PanoCursorRaycasterPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  130. package/dist/PanoCursorRaycasterPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  131. package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  132. package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  133. package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  134. package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  135. package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  136. package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  137. package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  138. package/dist/PanoDoorLabelPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  139. package/dist/PanoDoorLabelPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  140. package/dist/PanoDoorLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  141. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  142. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  143. package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  144. package/dist/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  145. package/dist/PanoMeasurePlugin/Model/index.d.ts +3 -6
  146. package/dist/PanoMeasurePlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  147. package/dist/PanoMeasurePlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  148. package/dist/PanoMeasurePlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  149. package/dist/PanoMeasurePlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  150. package/dist/PanoMeasurePlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  151. package/dist/PanoMeasurePlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  152. package/dist/PanoMeasurePlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  153. package/dist/PanoMeasurePlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  154. package/dist/PanoMeasurePlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  155. package/dist/PanoMeasurePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  156. package/dist/PanoMeasurePlugin/index.js +75 -31
  157. package/dist/PanoMeasurePlugin/typings/index.d.ts +8 -0
  158. package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  159. package/dist/PanoRulerPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  160. package/dist/PanoRulerPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  161. package/dist/PanoRulerPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  162. package/dist/PanoRulerPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  163. package/dist/PanoRulerPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  164. package/dist/PanoRulerPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  165. package/dist/PanoRulerPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  166. package/dist/PanoRulerPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  167. package/dist/PanoRulerPlugin/Plugin.d.ts +5 -2
  168. package/dist/PanoRulerPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  169. package/dist/PanoRulerPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  170. package/dist/PanoRulerPlugin/index.js +17 -0
  171. package/dist/PanoRulerProPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  172. package/dist/PanoRulerProPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  173. package/dist/PanoRulerProPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  174. package/dist/PanoRulerProPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  175. package/dist/PanoRulerProPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  176. package/dist/PanoRulerProPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  177. package/dist/PanoRulerProPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  178. package/dist/PanoRulerProPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  179. package/dist/PanoRulerProPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  180. package/dist/PanoRulerProPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  181. package/dist/PanoSpatialTagPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  182. package/dist/PanoSpatialTagPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  183. package/dist/PanoSpatialTagPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  184. package/dist/PanoSpatialTagPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  185. package/dist/PanoSpatialTagPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  186. package/dist/PanoSpatialTagPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  187. package/dist/PanoSpatialTagPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  188. package/dist/PanoSpatialTagPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  189. package/dist/PanoSpatialTagPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  190. package/dist/PanoSpatialTagPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  191. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  192. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  193. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  194. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  195. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  196. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  197. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  198. package/dist/floorplan/MapviewFloorplanPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  199. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  200. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  201. package/dist/floorplan/MapviewFloorplanPlugin/index.js +233 -157
  202. package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  203. package/dist/floorplan/ModelFloorplanPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  204. package/dist/floorplan/ModelFloorplanPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  205. package/dist/floorplan/ModelFloorplanPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  206. package/dist/floorplan/ModelFloorplanPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  207. package/dist/floorplan/ModelFloorplanPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  208. package/dist/floorplan/ModelFloorplanPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  209. package/dist/floorplan/ModelFloorplanPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  210. package/dist/floorplan/ModelFloorplanPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  211. package/dist/floorplan/ModelFloorplanPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  212. package/dist/floorplan/ModelFloorplanPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  213. package/dist/floorplan/ModelFloorplanPlugin/index.js +240 -163
  214. package/dist/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  215. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  216. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  217. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  218. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  219. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  220. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  221. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  222. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  223. package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  224. package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  225. package/dist/floorplan/TopviewFloorplanPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  226. package/dist/floorplan/TopviewFloorplanPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  227. package/dist/floorplan/TopviewFloorplanPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  228. package/dist/floorplan/TopviewFloorplanPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  229. package/dist/floorplan/TopviewFloorplanPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
  230. package/dist/floorplan/TopviewFloorplanPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
  231. package/dist/floorplan/TopviewFloorplanPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  232. package/dist/floorplan/TopviewFloorplanPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
  233. package/dist/floorplan/TopviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  234. package/dist/floorplan/TopviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  235. package/dist/floorplan/TopviewFloorplanPlugin/index.js +233 -157
  236. package/dist/index.es.js +303 -194
  237. package/dist/index.js +303 -194
  238. package/dist/index.umd.js +303 -194
  239. package/docs/assets/search.js +1 -1
  240. package/docs/classes/CruisePluginController.html +14 -14
  241. package/docs/classes/Magnifier.html +4 -4
  242. package/docs/classes/ModelRoomLabelController.html +4 -4
  243. package/docs/enums/CameraMovementEffect.html +2 -2
  244. package/docs/enums/DIRECTION.html +1 -1
  245. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  246. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  247. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  248. package/docs/enums/Rotation.html +2 -2
  249. package/docs/index.html +1 -1
  250. package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
  251. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  252. package/docs/interfaces/FloorplanBounding.html +4 -4
  253. package/docs/interfaces/FloorplanData.html +2 -2
  254. package/docs/interfaces/FloorplanEntrance.html +7 -7
  255. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  256. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  257. package/docs/interfaces/FloorplanFloorData.html +2 -2
  258. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  259. package/docs/interfaces/FloorplanObserver.html +2 -2
  260. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  261. package/docs/interfaces/FloorplanPosition.html +2 -2
  262. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  263. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  264. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  265. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  266. package/docs/interfaces/FloorplanServerData.html +2 -2
  267. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  268. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  269. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  270. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  271. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  272. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  273. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  274. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  275. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  276. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  277. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  278. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  279. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  280. package/docs/interfaces/LineJson.html +1 -1
  281. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  282. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  283. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  284. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  285. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  286. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  287. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  288. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  289. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  290. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  291. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  292. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  293. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  294. package/docs/interfaces/OpenParameter.html +2 -2
  295. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  296. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  297. package/docs/interfaces/PanoMeasureParameterType.html +5 -1
  298. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  299. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  300. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  301. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  302. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  303. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  304. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  305. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  306. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  307. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  308. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  309. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  310. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  311. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  312. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  313. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  314. package/docs/interfaces/Point.html +1 -1
  315. package/docs/interfaces/PointJson.html +1 -1
  316. package/docs/interfaces/Room.html +1 -1
  317. package/docs/interfaces/RoomInfo.html +1 -1
  318. package/docs/interfaces/RoomLabel.html +7 -7
  319. package/docs/interfaces/RoomRules.html +1 -1
  320. package/docs/interfaces/Rooms.html +1 -1
  321. package/docs/modules.html +18 -18
  322. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
  323. package/libs/PanoMeasurePlugin/Controller/BaseController.js +21 -1
  324. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
  325. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -16
  326. package/libs/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
  327. package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -13
  328. package/libs/PanoMeasurePlugin/Controller/index.d.ts +4 -1
  329. package/libs/PanoMeasurePlugin/Controller/index.js +24 -1
  330. package/libs/PanoMeasurePlugin/Model/index.d.ts +3 -6
  331. package/libs/PanoMeasurePlugin/typings/index.d.ts +8 -0
  332. package/libs/PanoMeasurePlugin/typings/index.js +1 -0
  333. package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  334. package/libs/PanoMeasurePlugin/utils/distanceDom.js +2 -1
  335. package/libs/PanoRulerPlugin/Plugin.d.ts +5 -2
  336. package/libs/PanoRulerPlugin/Plugin.js +17 -0
  337. package/libs/floorplan/Components/CurrentFloor.js +32 -20
  338. package/libs/floorplan/Components/Main.js +31 -19
  339. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +24 -13
  340. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +40 -34
  341. package/libs/floorplan/Components/RuleLabels/RuleItem.js +46 -28
  342. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +61 -43
  343. package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
  344. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +7 -6
  345. package/libs/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
  346. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -1682,7 +1682,7 @@ function add_css$j(target) {
1682
1682
  internal.append_styles(target, "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}");
1683
1683
  }
1684
1684
 
1685
- // (95:30)
1685
+ // (96:30)
1686
1686
  function create_if_block_1$5(ctx) {
1687
1687
  let html_tag;
1688
1688
  let raw_value = /*userConfigElement*/ ctx[4].outerHTML + "";
@@ -1708,13 +1708,14 @@ function create_if_block_1$5(ctx) {
1708
1708
  };
1709
1709
  }
1710
1710
 
1711
- // (89:2) {#if getLabelElement === undefined}
1711
+ // (90:2) {#if getLabelElement === undefined}
1712
1712
  function create_if_block$9(ctx) {
1713
1713
  let span0;
1714
1714
  let t0_value = /*room*/ ctx[0].name + "";
1715
1715
  let t0;
1716
1716
  let t1;
1717
1717
  let span1;
1718
+ let t2;
1718
1719
 
1719
1720
  return {
1720
1721
  c() {
@@ -1722,7 +1723,7 @@ function create_if_block$9(ctx) {
1722
1723
  t0 = internal.text(t0_value);
1723
1724
  t1 = internal.space();
1724
1725
  span1 = internal.element("span");
1725
- span1.textContent = `${/*roomSizeDes*/ ctx[5]}`;
1726
+ t2 = internal.text(/*roomSizeDes*/ ctx[5]);
1726
1727
  internal.attr(span0, "class", "floorplan-plugin__room-name");
1727
1728
  internal.attr(span1, "class", "floorplan-plugin__room-size svelte-12pzct5");
1728
1729
  },
@@ -1731,9 +1732,11 @@ function create_if_block$9(ctx) {
1731
1732
  internal.append(span0, t0);
1732
1733
  internal.insert(target, t1, anchor);
1733
1734
  internal.insert(target, span1, anchor);
1735
+ internal.append(span1, t2);
1734
1736
  },
1735
1737
  p(ctx, dirty) {
1736
1738
  if (dirty & /*room*/ 1 && t0_value !== (t0_value = /*room*/ ctx[0].name + "")) internal.set_data(t0, t0_value);
1739
+ if (dirty & /*roomSizeDes*/ 32) internal.set_data(t2, /*roomSizeDes*/ ctx[5]);
1737
1740
  },
1738
1741
  d(detaching) {
1739
1742
  if (detaching) internal.detach(span0);
@@ -1767,7 +1770,7 @@ function create_fragment$o(ctx) {
1767
1770
  m(target, anchor) {
1768
1771
  internal.insert(target, div, anchor);
1769
1772
  if (if_block) if_block.m(div, null);
1770
- /*div_binding*/ ctx[15](div);
1773
+ /*div_binding*/ ctx[16](div);
1771
1774
  },
1772
1775
  p(ctx, [dirty]) {
1773
1776
  if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
@@ -1795,7 +1798,7 @@ function create_fragment$o(ctx) {
1795
1798
  if_block.d();
1796
1799
  }
1797
1800
 
1798
- /*div_binding*/ ctx[15](null);
1801
+ /*div_binding*/ ctx[16](null);
1799
1802
  }
1800
1803
  };
1801
1804
  }
@@ -1818,12 +1821,14 @@ function isPointInPolygon(point, polygon) {
1818
1821
  }
1819
1822
 
1820
1823
  function instance$o($$self, $$props, $$invalidate) {
1824
+ let roomSizeDes;
1821
1825
  let isLabelInRoom;
1822
1826
  let userConfigElement;
1823
1827
  let labelVisible;
1824
1828
  let { pxmm } = $$props;
1825
1829
  let { room } = $$props;
1826
1830
  let { hoveredRoom } = $$props;
1831
+ let { getRoomAreaText } = $$props;
1827
1832
  let { getLabelElement } = $$props;
1828
1833
  let { adaptiveRoomLabelVisibleEnable } = $$props;
1829
1834
 
@@ -1863,7 +1868,6 @@ function instance$o($$self, $$props, $$invalidate) {
1863
1868
  const bodyWidth = document.body.clientWidth;
1864
1869
 
1865
1870
  const bodyHeight = document.body.clientHeight;
1866
- const roomSizeDes = room.size ? (room.size / 1000000).toFixed(1) + '㎡' : '';
1867
1871
 
1868
1872
  // ====================================
1869
1873
  const roomLabel = room.roomLabel;
@@ -1879,7 +1883,7 @@ function instance$o($$self, $$props, $$invalidate) {
1879
1883
  let labelElementSize;
1880
1884
 
1881
1885
  hoveredRoom.subscribe(function onHoverdRoomUpdate(_room) {
1882
- $$invalidate(12, isHoverd = !!_room && _room.id === room.id);
1886
+ $$invalidate(13, isHoverd = !!_room && _room.id === room.id);
1883
1887
  });
1884
1888
 
1885
1889
  svelte.onMount(() => {
@@ -1889,7 +1893,7 @@ function instance$o($$self, $$props, $$invalidate) {
1889
1893
  ? void 0
1890
1894
  : labelElement.getClientRects()[0];
1891
1895
 
1892
- $$invalidate(13, labelElementSize = {
1896
+ $$invalidate(14, labelElementSize = {
1893
1897
  width: labelDomRect.width,
1894
1898
  height: labelDomRect.height
1895
1899
  });
@@ -1906,13 +1910,18 @@ function instance$o($$self, $$props, $$invalidate) {
1906
1910
  if ('pxmm' in $$props) $$invalidate(9, pxmm = $$props.pxmm);
1907
1911
  if ('room' in $$props) $$invalidate(0, room = $$props.room);
1908
1912
  if ('hoveredRoom' in $$props) $$invalidate(10, hoveredRoom = $$props.hoveredRoom);
1913
+ if ('getRoomAreaText' in $$props) $$invalidate(11, getRoomAreaText = $$props.getRoomAreaText);
1909
1914
  if ('getLabelElement' in $$props) $$invalidate(1, getLabelElement = $$props.getLabelElement);
1910
- if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(11, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
1915
+ if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(12, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
1911
1916
  };
1912
1917
 
1913
1918
  $$self.$$.update = () => {
1914
- if ($$self.$$.dirty & /*labelElementSize, room*/ 8193) {
1915
- $$invalidate(14, isLabelInRoom = labelElementSize
1919
+ if ($$self.$$.dirty & /*room, getRoomAreaText*/ 2049) {
1920
+ $$invalidate(5, roomSizeDes = room.size ? getRoomAreaText(room.size) : '');
1921
+ }
1922
+
1923
+ if ($$self.$$.dirty & /*labelElementSize, room*/ 16385) {
1924
+ $$invalidate(15, isLabelInRoom = labelElementSize
1916
1925
  ? isLabelInRoomCurry(room, labelElementSize)
1917
1926
  : undefined);
1918
1927
  }
@@ -1923,7 +1932,7 @@ function instance$o($$self, $$props, $$invalidate) {
1923
1932
  : getLabelElement(room));
1924
1933
  }
1925
1934
 
1926
- if ($$self.$$.dirty & /*adaptiveRoomLabelVisibleEnable, isHoverd, isLabelInRoom, pxmm*/ 23040) {
1935
+ if ($$self.$$.dirty & /*adaptiveRoomLabelVisibleEnable, isHoverd, isLabelInRoom, pxmm*/ 45568) {
1927
1936
  $$invalidate(3, labelVisible = adaptiveRoomLabelVisibleEnable
1928
1937
  ? isHoverd
1929
1938
  ? true
@@ -1946,6 +1955,7 @@ function instance$o($$self, $$props, $$invalidate) {
1946
1955
  fontSize,
1947
1956
  pxmm,
1948
1957
  hoveredRoom,
1958
+ getRoomAreaText,
1949
1959
  adaptiveRoomLabelVisibleEnable,
1950
1960
  isHoverd,
1951
1961
  labelElementSize,
@@ -1968,8 +1978,9 @@ class RoomLabel extends internal.SvelteComponent {
1968
1978
  pxmm: 9,
1969
1979
  room: 0,
1970
1980
  hoveredRoom: 10,
1981
+ getRoomAreaText: 11,
1971
1982
  getLabelElement: 1,
1972
- adaptiveRoomLabelVisibleEnable: 11
1983
+ adaptiveRoomLabelVisibleEnable: 12
1973
1984
  },
1974
1985
  add_css$j
1975
1986
  );
@@ -1984,19 +1995,19 @@ function add_css$i(target) {
1984
1995
 
1985
1996
  function get_each_context$b(ctx, list, i) {
1986
1997
  const child_ctx = ctx.slice();
1987
- child_ctx[9] = list[i];
1998
+ child_ctx[10] = list[i];
1988
1999
  return child_ctx;
1989
2000
  }
1990
2001
 
1991
- // (17:0) {#if rooms}
2002
+ // (18:0) {#if rooms}
1992
2003
  function create_if_block$8(ctx) {
1993
2004
  let div;
1994
2005
  let each_blocks = [];
1995
2006
  let each_1_lookup = new Map();
1996
2007
  let div_resize_listener;
1997
2008
  let current;
1998
- let each_value = /*rooms*/ ctx[5];
1999
- const get_key = ctx => /*room*/ ctx[9].id;
2009
+ let each_value = /*rooms*/ ctx[6];
2010
+ const get_key = ctx => /*room*/ ctx[10].id;
2000
2011
 
2001
2012
  for (let i = 0; i < each_value.length; i += 1) {
2002
2013
  let child_ctx = get_each_context$b(ctx, each_value, i);
@@ -2013,7 +2024,7 @@ function create_if_block$8(ctx) {
2013
2024
  }
2014
2025
 
2015
2026
  internal.attr(div, "class", "floorplan-plugin__room-labels svelte-13xux0b");
2016
- internal.add_render_callback(() => /*div_elementresize_handler*/ ctx[8].call(div));
2027
+ internal.add_render_callback(() => /*div_elementresize_handler*/ ctx[9].call(div));
2017
2028
  },
2018
2029
  m(target, anchor) {
2019
2030
  internal.insert(target, div, anchor);
@@ -2022,12 +2033,12 @@ function create_if_block$8(ctx) {
2022
2033
  each_blocks[i].m(div, null);
2023
2034
  }
2024
2035
 
2025
- div_resize_listener = internal.add_resize_listener(div, /*div_elementresize_handler*/ ctx[8].bind(div));
2036
+ div_resize_listener = internal.add_resize_listener(div, /*div_elementresize_handler*/ ctx[9].bind(div));
2026
2037
  current = true;
2027
2038
  },
2028
2039
  p(ctx, dirty) {
2029
- if (dirty & /*pxmm, rooms, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 55) {
2030
- each_value = /*rooms*/ ctx[5];
2040
+ if (dirty & /*pxmm, rooms, getLabelElement, getRoomAreaText, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 111) {
2041
+ each_value = /*rooms*/ ctx[6];
2031
2042
  internal.group_outros();
2032
2043
  each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, internal.outro_and_destroy_block, create_each_block$b, null, get_each_context$b);
2033
2044
  internal.check_outros();
@@ -2061,7 +2072,7 @@ function create_if_block$8(ctx) {
2061
2072
  };
2062
2073
  }
2063
2074
 
2064
- // (19:4) {#each rooms as room (room.id)}
2075
+ // (20:4) {#each rooms as room (room.id)}
2065
2076
  function create_each_block$b(key_1, ctx) {
2066
2077
  let first;
2067
2078
  let roomlabel;
@@ -2069,11 +2080,12 @@ function create_each_block$b(key_1, ctx) {
2069
2080
 
2070
2081
  const roomlabel_spread_levels = [
2071
2082
  {
2072
- pxmm: /*pxmm*/ ctx[4],
2073
- room: /*room*/ ctx[9],
2074
- getLabelElement: /*getLabelElement*/ ctx[1],
2083
+ pxmm: /*pxmm*/ ctx[5],
2084
+ room: /*room*/ ctx[10],
2085
+ getLabelElement: /*getLabelElement*/ ctx[2],
2086
+ getRoomAreaText: /*getRoomAreaText*/ ctx[1],
2075
2087
  hoveredRoom: /*hoveredRoom*/ ctx[0],
2076
- adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[2]
2088
+ adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[3]
2077
2089
  }
2078
2090
  ];
2079
2091
 
@@ -2101,14 +2113,15 @@ function create_each_block$b(key_1, ctx) {
2101
2113
  p(new_ctx, dirty) {
2102
2114
  ctx = new_ctx;
2103
2115
 
2104
- const roomlabel_changes = (dirty & /*pxmm, rooms, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 55)
2116
+ const roomlabel_changes = (dirty & /*pxmm, rooms, getLabelElement, getRoomAreaText, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 111)
2105
2117
  ? internal.get_spread_update(roomlabel_spread_levels, [
2106
2118
  {
2107
- pxmm: /*pxmm*/ ctx[4],
2108
- room: /*room*/ ctx[9],
2109
- getLabelElement: /*getLabelElement*/ ctx[1],
2119
+ pxmm: /*pxmm*/ ctx[5],
2120
+ room: /*room*/ ctx[10],
2121
+ getLabelElement: /*getLabelElement*/ ctx[2],
2122
+ getRoomAreaText: /*getRoomAreaText*/ ctx[1],
2110
2123
  hoveredRoom: /*hoveredRoom*/ ctx[0],
2111
- adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[2]
2124
+ adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[3]
2112
2125
  }
2113
2126
  ])
2114
2127
  : {};
@@ -2134,7 +2147,7 @@ function create_each_block$b(key_1, ctx) {
2134
2147
  function create_fragment$n(ctx) {
2135
2148
  let if_block_anchor;
2136
2149
  let current;
2137
- let if_block = /*rooms*/ ctx[5] && create_if_block$8(ctx);
2150
+ let if_block = /*rooms*/ ctx[6] && create_if_block$8(ctx);
2138
2151
 
2139
2152
  return {
2140
2153
  c() {
@@ -2147,11 +2160,11 @@ function create_fragment$n(ctx) {
2147
2160
  current = true;
2148
2161
  },
2149
2162
  p(ctx, [dirty]) {
2150
- if (/*rooms*/ ctx[5]) {
2163
+ if (/*rooms*/ ctx[6]) {
2151
2164
  if (if_block) {
2152
2165
  if_block.p(ctx, dirty);
2153
2166
 
2154
- if (dirty & /*rooms*/ 32) {
2167
+ if (dirty & /*rooms*/ 64) {
2155
2168
  internal.transition_in(if_block, 1);
2156
2169
  }
2157
2170
  } else {
@@ -2191,6 +2204,7 @@ function instance$n($$self, $$props, $$invalidate) {
2191
2204
  let { floorIndex } = $$props;
2192
2205
  let { floorplanData } = $$props;
2193
2206
  let { hoveredRoom } = $$props;
2207
+ let { getRoomAreaText } = $$props;
2194
2208
  let { getLabelElement } = $$props;
2195
2209
  let { adaptiveRoomLabelVisibleEnable } = $$props;
2196
2210
  let clientWidth = 0;
@@ -2198,33 +2212,35 @@ function instance$n($$self, $$props, $$invalidate) {
2198
2212
 
2199
2213
  function div_elementresize_handler() {
2200
2214
  clientWidth = this.clientWidth;
2201
- $$invalidate(3, clientWidth);
2215
+ $$invalidate(4, clientWidth);
2202
2216
  }
2203
2217
 
2204
2218
  $$self.$$set = $$props => {
2205
- if ('floorIndex' in $$props) $$invalidate(6, floorIndex = $$props.floorIndex);
2206
- if ('floorplanData' in $$props) $$invalidate(7, floorplanData = $$props.floorplanData);
2219
+ if ('floorIndex' in $$props) $$invalidate(7, floorIndex = $$props.floorIndex);
2220
+ if ('floorplanData' in $$props) $$invalidate(8, floorplanData = $$props.floorplanData);
2207
2221
  if ('hoveredRoom' in $$props) $$invalidate(0, hoveredRoom = $$props.hoveredRoom);
2208
- if ('getLabelElement' in $$props) $$invalidate(1, getLabelElement = $$props.getLabelElement);
2209
- if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(2, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
2222
+ if ('getRoomAreaText' in $$props) $$invalidate(1, getRoomAreaText = $$props.getRoomAreaText);
2223
+ if ('getLabelElement' in $$props) $$invalidate(2, getLabelElement = $$props.getLabelElement);
2224
+ if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(3, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
2210
2225
  };
2211
2226
 
2212
2227
  $$self.$$.update = () => {
2213
- if ($$self.$$.dirty & /*floorplanData, floorIndex*/ 192) {
2214
- $$invalidate(5, rooms = floorplanData.floorDatas[floorIndex].rooms);
2228
+ if ($$self.$$.dirty & /*floorplanData, floorIndex*/ 384) {
2229
+ $$invalidate(6, rooms = floorplanData.floorDatas[floorIndex].rooms);
2215
2230
  }
2216
2231
 
2217
- if ($$self.$$.dirty & /*floorplanData, clientWidth*/ 136) {
2232
+ if ($$self.$$.dirty & /*floorplanData, clientWidth*/ 272) {
2218
2233
  {
2219
2234
  const { max, min } = floorplanData.bounding;
2220
2235
  const boundingWidth = max.x - min.x;
2221
- $$invalidate(4, pxmm = clientWidth / boundingWidth);
2236
+ $$invalidate(5, pxmm = clientWidth / boundingWidth);
2222
2237
  }
2223
2238
  }
2224
2239
  };
2225
2240
 
2226
2241
  return [
2227
2242
  hoveredRoom,
2243
+ getRoomAreaText,
2228
2244
  getLabelElement,
2229
2245
  adaptiveRoomLabelVisibleEnable,
2230
2246
  clientWidth,
@@ -2247,11 +2263,12 @@ class RoomLabels extends internal.SvelteComponent {
2247
2263
  create_fragment$n,
2248
2264
  internal.safe_not_equal,
2249
2265
  {
2250
- floorIndex: 6,
2251
- floorplanData: 7,
2266
+ floorIndex: 7,
2267
+ floorplanData: 8,
2252
2268
  hoveredRoom: 0,
2253
- getLabelElement: 1,
2254
- adaptiveRoomLabelVisibleEnable: 2
2269
+ getRoomAreaText: 1,
2270
+ getLabelElement: 2,
2271
+ adaptiveRoomLabelVisibleEnable: 3
2255
2272
  },
2256
2273
  add_css$i
2257
2274
  );
@@ -2266,18 +2283,18 @@ function add_css$h(target) {
2266
2283
 
2267
2284
  function get_each_context$a(ctx, list, i) {
2268
2285
  const child_ctx = ctx.slice();
2269
- child_ctx[10] = list[i];
2270
- child_ctx[12] = i;
2286
+ child_ctx[11] = list[i];
2287
+ child_ctx[13] = i;
2271
2288
  return child_ctx;
2272
2289
  }
2273
2290
 
2274
2291
  function get_each_context_1(ctx, list, i) {
2275
2292
  const child_ctx = ctx.slice();
2276
- child_ctx[13] = list[i];
2293
+ child_ctx[14] = list[i];
2277
2294
  return child_ctx;
2278
2295
  }
2279
2296
 
2280
- // (47:4) {#each rulerLabels as rulerLabel}
2297
+ // (48:4) {#each rulerLabels as rulerLabel}
2281
2298
  function create_each_block_1(ctx) {
2282
2299
  let div;
2283
2300
 
@@ -2285,8 +2302,8 @@ function create_each_block_1(ctx) {
2285
2302
  c() {
2286
2303
  div = internal.element("div");
2287
2304
  internal.attr(div, "class", "floorplan-plugin__rule-scale svelte-xt7p1v");
2288
- internal.set_style(div, "left", /*rulerLabel*/ ctx[13].left * 100 + '%', false);
2289
- internal.set_style(div, "bottom", /*rulerLabel*/ ctx[13].bottom * 100 + '%', false);
2305
+ internal.set_style(div, "left", /*rulerLabel*/ ctx[14].left * 100 + '%', false);
2306
+ internal.set_style(div, "bottom", /*rulerLabel*/ ctx[14].bottom * 100 + '%', false);
2290
2307
  },
2291
2308
  m(target, anchor) {
2292
2309
  internal.insert(target, div, anchor);
@@ -2298,11 +2315,11 @@ function create_each_block_1(ctx) {
2298
2315
  };
2299
2316
  }
2300
2317
 
2301
- // (56:4) {#each rulerTexts as textItem, textItemIndex (textItemIndex)}
2318
+ // (57:4) {#each rulerTexts as textItem, textItemIndex (textItemIndex)}
2302
2319
  function create_each_block$a(key_1, ctx) {
2303
2320
  let div1;
2304
2321
  let div0;
2305
- let t0_value = /*textItem*/ ctx[10].distance + "";
2322
+ let t0_value = /*getRuleDistanceText*/ ctx[1](/*textItem*/ ctx[11].distance) + "";
2306
2323
  let t0;
2307
2324
  let t1;
2308
2325
 
@@ -2315,10 +2332,10 @@ function create_each_block$a(key_1, ctx) {
2315
2332
  t0 = internal.text(t0_value);
2316
2333
  t1 = internal.space();
2317
2334
  internal.attr(div0, "class", "floorplan-plugin__rule-text svelte-xt7p1v");
2318
- internal.toggle_class(div0, "is-row", /*isRow*/ ctx[1]);
2335
+ internal.toggle_class(div0, "is-row", /*isRow*/ ctx[2]);
2319
2336
  internal.attr(div1, "class", "floorplan-plugin__rule-text-item svelte-xt7p1v");
2320
- internal.set_style(div1, "left", /*textItem*/ ctx[10].left * 100 + '%', false);
2321
- internal.set_style(div1, "bottom", /*textItem*/ ctx[10].bottom * 100 + '%', false);
2337
+ internal.set_style(div1, "left", /*textItem*/ ctx[11].left * 100 + '%', false);
2338
+ internal.set_style(div1, "bottom", /*textItem*/ ctx[11].bottom * 100 + '%', false);
2322
2339
  this.first = div1;
2323
2340
  },
2324
2341
  m(target, anchor) {
@@ -2329,6 +2346,7 @@ function create_each_block$a(key_1, ctx) {
2329
2346
  },
2330
2347
  p(new_ctx, dirty) {
2331
2348
  ctx = new_ctx;
2349
+ if (dirty & /*getRuleDistanceText*/ 2 && t0_value !== (t0_value = /*getRuleDistanceText*/ ctx[1](/*textItem*/ ctx[11].distance) + "")) internal.set_data(t0, t0_value);
2332
2350
  },
2333
2351
  d(detaching) {
2334
2352
  if (detaching) internal.detach(div1);
@@ -2346,15 +2364,15 @@ function create_fragment$m(ctx) {
2346
2364
  let each_blocks = [];
2347
2365
  let each1_lookup = new Map();
2348
2366
  let div3_class_value;
2349
- let each_value_1 = /*rulerLabels*/ ctx[2];
2367
+ let each_value_1 = /*rulerLabels*/ ctx[3];
2350
2368
  let each_blocks_1 = [];
2351
2369
 
2352
2370
  for (let i = 0; i < each_value_1.length; i += 1) {
2353
2371
  each_blocks_1[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
2354
2372
  }
2355
2373
 
2356
- let each_value = /*rulerTexts*/ ctx[3];
2357
- const get_key = ctx => /*textItemIndex*/ ctx[12];
2374
+ let each_value = /*rulerTexts*/ ctx[4];
2375
+ const get_key = ctx => /*textItemIndex*/ ctx[13];
2358
2376
 
2359
2377
  for (let i = 0; i < each_value.length; i += 1) {
2360
2378
  let child_ctx = get_each_context$a(ctx, each_value, i);
@@ -2382,12 +2400,12 @@ function create_fragment$m(ctx) {
2382
2400
 
2383
2401
  internal.attr(div0, "class", "floorplan-plugin__rule-line svelte-xt7p1v");
2384
2402
  internal.attr(div1, "class", "floorplan-plugin__rule-scale-wrapper svelte-xt7p1v");
2385
- internal.toggle_class(div1, "is-row", /*isRow*/ ctx[1]);
2403
+ internal.toggle_class(div1, "is-row", /*isRow*/ ctx[2]);
2386
2404
  internal.attr(div2, "class", "floorplan-plugin__rule-text-wrapper svelte-xt7p1v");
2387
2405
  internal.attr(div3, "class", div3_class_value = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + /*type*/ ctx[0] + " svelte-xt7p1v");
2388
- internal.toggle_class(div3, "is-row", /*isRow*/ ctx[1]);
2389
- internal.set_style(div3, "width", /*isRow*/ ctx[1] ? '100%' : 1 / 16 + 'rem', false);
2390
- internal.set_style(div3, "height", !/*isRow*/ ctx[1] ? '100%' : 1 / 16 + 'rem', false);
2406
+ internal.toggle_class(div3, "is-row", /*isRow*/ ctx[2]);
2407
+ internal.set_style(div3, "width", /*isRow*/ ctx[2] ? '100%' : 1 / 16 + 'rem', false);
2408
+ internal.set_style(div3, "height", !/*isRow*/ ctx[2] ? '100%' : 1 / 16 + 'rem', false);
2391
2409
  },
2392
2410
  m(target, anchor) {
2393
2411
  internal.insert(target, div3, anchor);
@@ -2407,8 +2425,8 @@ function create_fragment$m(ctx) {
2407
2425
  }
2408
2426
  },
2409
2427
  p(ctx, [dirty]) {
2410
- if (dirty & /*rulerLabels*/ 4) {
2411
- each_value_1 = /*rulerLabels*/ ctx[2];
2428
+ if (dirty & /*rulerLabels*/ 8) {
2429
+ each_value_1 = /*rulerLabels*/ ctx[3];
2412
2430
  let i;
2413
2431
 
2414
2432
  for (i = 0; i < each_value_1.length; i += 1) {
@@ -2430,8 +2448,8 @@ function create_fragment$m(ctx) {
2430
2448
  each_blocks_1.length = each_value_1.length;
2431
2449
  }
2432
2450
 
2433
- if (dirty & /*rulerTexts, isRow*/ 10) {
2434
- each_value = /*rulerTexts*/ ctx[3];
2451
+ if (dirty & /*rulerTexts, isRow, getRuleDistanceText*/ 22) {
2452
+ each_value = /*rulerTexts*/ ctx[4];
2435
2453
  each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each1_lookup, div2, internal.destroy_block, create_each_block$a, null, get_each_context$a);
2436
2454
  }
2437
2455
 
@@ -2439,8 +2457,8 @@ function create_fragment$m(ctx) {
2439
2457
  internal.attr(div3, "class", div3_class_value);
2440
2458
  }
2441
2459
 
2442
- if (dirty & /*type, isRow*/ 3) {
2443
- internal.toggle_class(div3, "is-row", /*isRow*/ ctx[1]);
2460
+ if (dirty & /*type, isRow*/ 5) {
2461
+ internal.toggle_class(div3, "is-row", /*isRow*/ ctx[2]);
2444
2462
  }
2445
2463
  },
2446
2464
  i: internal.noop,
@@ -2463,6 +2481,7 @@ function instance$m($$self, $$props, $$invalidate) {
2463
2481
  let { type } = $$props;
2464
2482
  let { data } = $$props;
2465
2483
  let { bounding } = $$props;
2484
+ let { getRuleDistanceText } = $$props;
2466
2485
  const isRow = type === 'top' || type === 'bottom';
2467
2486
  const contentWidth = bounding.max.x - bounding.min.x - (padding$1 - exteriorWallOffset$1) * 2;
2468
2487
  const contentHeight = bounding.max.y - bounding.min.y - (padding$1 - exteriorWallOffset$1) * 2;
@@ -2508,17 +2527,32 @@ function instance$m($$self, $$props, $$invalidate) {
2508
2527
 
2509
2528
  $$self.$$set = $$props => {
2510
2529
  if ('type' in $$props) $$invalidate(0, type = $$props.type);
2511
- if ('data' in $$props) $$invalidate(4, data = $$props.data);
2512
- if ('bounding' in $$props) $$invalidate(5, bounding = $$props.bounding);
2530
+ if ('data' in $$props) $$invalidate(5, data = $$props.data);
2531
+ if ('bounding' in $$props) $$invalidate(6, bounding = $$props.bounding);
2532
+ if ('getRuleDistanceText' in $$props) $$invalidate(1, getRuleDistanceText = $$props.getRuleDistanceText);
2513
2533
  };
2514
2534
 
2515
- return [type, isRow, rulerLabels, rulerTexts, data, bounding];
2535
+ return [type, getRuleDistanceText, isRow, rulerLabels, rulerTexts, data, bounding];
2516
2536
  }
2517
2537
 
2518
2538
  class RuleItem extends internal.SvelteComponent {
2519
2539
  constructor(options) {
2520
2540
  super();
2521
- internal.init(this, options, instance$m, create_fragment$m, internal.safe_not_equal, { type: 0, data: 4, bounding: 5 }, add_css$h);
2541
+
2542
+ internal.init(
2543
+ this,
2544
+ options,
2545
+ instance$m,
2546
+ create_fragment$m,
2547
+ internal.safe_not_equal,
2548
+ {
2549
+ type: 0,
2550
+ data: 5,
2551
+ bounding: 6,
2552
+ getRuleDistanceText: 1
2553
+ },
2554
+ add_css$h
2555
+ );
2522
2556
  }
2523
2557
  }
2524
2558
 
@@ -2530,12 +2564,12 @@ function add_css$g(target) {
2530
2564
 
2531
2565
  function get_each_context$9(ctx, list, i) {
2532
2566
  const child_ctx = ctx.slice();
2533
- child_ctx[12] = list[i][0];
2534
- child_ctx[13] = list[i][1];
2567
+ child_ctx[13] = list[i][0];
2568
+ child_ctx[14] = list[i][1];
2535
2569
  return child_ctx;
2536
2570
  }
2537
2571
 
2538
- // (19:2) {#each ruleLabelArray as [type, data] (type)}
2572
+ // (20:2) {#each ruleLabelArray as [type, data] (type)}
2539
2573
  function create_each_block$9(key_1, ctx) {
2540
2574
  let first;
2541
2575
  let ruleitem;
@@ -2543,9 +2577,10 @@ function create_each_block$9(key_1, ctx) {
2543
2577
 
2544
2578
  const ruleitem_spread_levels = [
2545
2579
  {
2546
- type: /*type*/ ctx[12],
2547
- data: /*data*/ ctx[13],
2548
- bounding: /*bounding*/ ctx[0]
2580
+ type: /*type*/ ctx[13],
2581
+ data: /*data*/ ctx[14],
2582
+ bounding: /*bounding*/ ctx[1],
2583
+ getRuleDistanceText: /*getRuleDistanceText*/ ctx[0]
2549
2584
  }
2550
2585
  ];
2551
2586
 
@@ -2573,12 +2608,13 @@ function create_each_block$9(key_1, ctx) {
2573
2608
  p(new_ctx, dirty) {
2574
2609
  ctx = new_ctx;
2575
2610
 
2576
- const ruleitem_changes = (dirty & /*ruleLabelArray, bounding*/ 9)
2611
+ const ruleitem_changes = (dirty & /*ruleLabelArray, bounding, getRuleDistanceText*/ 19)
2577
2612
  ? internal.get_spread_update(ruleitem_spread_levels, [
2578
2613
  {
2579
- type: /*type*/ ctx[12],
2580
- data: /*data*/ ctx[13],
2581
- bounding: /*bounding*/ ctx[0]
2614
+ type: /*type*/ ctx[13],
2615
+ data: /*data*/ ctx[14],
2616
+ bounding: /*bounding*/ ctx[1],
2617
+ getRuleDistanceText: /*getRuleDistanceText*/ ctx[0]
2582
2618
  }
2583
2619
  ])
2584
2620
  : {};
@@ -2606,8 +2642,8 @@ function create_fragment$l(ctx) {
2606
2642
  let each_blocks = [];
2607
2643
  let each_1_lookup = new Map();
2608
2644
  let current;
2609
- let each_value = /*ruleLabelArray*/ ctx[3];
2610
- const get_key = ctx => /*type*/ ctx[12];
2645
+ let each_value = /*ruleLabelArray*/ ctx[4];
2646
+ const get_key = ctx => /*type*/ ctx[13];
2611
2647
 
2612
2648
  for (let i = 0; i < each_value.length; i += 1) {
2613
2649
  let child_ctx = get_each_context$9(ctx, each_value, i);
@@ -2624,8 +2660,8 @@ function create_fragment$l(ctx) {
2624
2660
  }
2625
2661
 
2626
2662
  internal.attr(div, "class", "floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3");
2627
- internal.set_style(div, "width", /*width*/ ctx[2], false);
2628
- internal.set_style(div, "height", /*height*/ ctx[1], false);
2663
+ internal.set_style(div, "width", /*width*/ ctx[3], false);
2664
+ internal.set_style(div, "height", /*height*/ ctx[2], false);
2629
2665
  },
2630
2666
  m(target, anchor) {
2631
2667
  internal.insert(target, div, anchor);
@@ -2637,19 +2673,19 @@ function create_fragment$l(ctx) {
2637
2673
  current = true;
2638
2674
  },
2639
2675
  p(ctx, [dirty]) {
2640
- if (dirty & /*ruleLabelArray, bounding*/ 9) {
2641
- each_value = /*ruleLabelArray*/ ctx[3];
2676
+ if (dirty & /*ruleLabelArray, bounding, getRuleDistanceText*/ 19) {
2677
+ each_value = /*ruleLabelArray*/ ctx[4];
2642
2678
  internal.group_outros();
2643
2679
  each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, internal.outro_and_destroy_block, create_each_block$9, null, get_each_context$9);
2644
2680
  internal.check_outros();
2645
2681
  }
2646
2682
 
2647
- if (dirty & /*width*/ 4) {
2648
- internal.set_style(div, "width", /*width*/ ctx[2], false);
2683
+ if (dirty & /*width*/ 8) {
2684
+ internal.set_style(div, "width", /*width*/ ctx[3], false);
2649
2685
  }
2650
2686
 
2651
- if (dirty & /*height*/ 2) {
2652
- internal.set_style(div, "height", /*height*/ ctx[1], false);
2687
+ if (dirty & /*height*/ 4) {
2688
+ internal.set_style(div, "height", /*height*/ ctx[2], false);
2653
2689
  }
2654
2690
  },
2655
2691
  i(local) {
@@ -2694,55 +2730,58 @@ function instance$l($$self, $$props, $$invalidate) {
2694
2730
  let height;
2695
2731
  let { floorIndex } = $$props;
2696
2732
  let { floorplanData } = $$props;
2733
+ let { getRuleDistanceText } = $$props;
2697
2734
 
2698
2735
  $$self.$$set = $$props => {
2699
- if ('floorIndex' in $$props) $$invalidate(4, floorIndex = $$props.floorIndex);
2700
- if ('floorplanData' in $$props) $$invalidate(5, floorplanData = $$props.floorplanData);
2736
+ if ('floorIndex' in $$props) $$invalidate(5, floorIndex = $$props.floorIndex);
2737
+ if ('floorplanData' in $$props) $$invalidate(6, floorplanData = $$props.floorplanData);
2738
+ if ('getRuleDistanceText' in $$props) $$invalidate(0, getRuleDistanceText = $$props.getRuleDistanceText);
2701
2739
  };
2702
2740
 
2703
2741
  $$self.$$.update = () => {
2704
- if ($$self.$$.dirty & /*floorplanData*/ 32) {
2705
- $$invalidate(0, bounding = floorplanData.bounding);
2742
+ if ($$self.$$.dirty & /*floorplanData*/ 64) {
2743
+ $$invalidate(1, bounding = floorplanData.bounding);
2706
2744
  }
2707
2745
 
2708
- if ($$self.$$.dirty & /*floorplanData, floorIndex*/ 48) {
2709
- $$invalidate(10, ruleLabelData = floorplanData.floorDatas[floorIndex].rules);
2746
+ if ($$self.$$.dirty & /*floorplanData, floorIndex*/ 96) {
2747
+ $$invalidate(11, ruleLabelData = floorplanData.floorDatas[floorIndex].rules);
2710
2748
  }
2711
2749
 
2712
- if ($$self.$$.dirty & /*ruleLabelData*/ 1024) {
2713
- $$invalidate(11, ruleLabelDataKeys = Object.keys(ruleLabelData));
2750
+ if ($$self.$$.dirty & /*ruleLabelData*/ 2048) {
2751
+ $$invalidate(12, ruleLabelDataKeys = Object.keys(ruleLabelData));
2714
2752
  }
2715
2753
 
2716
- if ($$self.$$.dirty & /*ruleLabelDataKeys, ruleLabelData*/ 3072) {
2717
- $$invalidate(3, ruleLabelArray = ruleLabelDataKeys.map(key => [key, ruleLabelData[key]]));
2754
+ if ($$self.$$.dirty & /*ruleLabelDataKeys, ruleLabelData*/ 6144) {
2755
+ $$invalidate(4, ruleLabelArray = ruleLabelDataKeys.map(key => [key, ruleLabelData[key]]));
2718
2756
  }
2719
2757
 
2720
- if ($$self.$$.dirty & /*bounding*/ 1) {
2721
- $$invalidate(8, boundingWidth = bounding.max.x - bounding.min.x);
2758
+ if ($$self.$$.dirty & /*bounding*/ 2) {
2759
+ $$invalidate(9, boundingWidth = bounding.max.x - bounding.min.x);
2722
2760
  }
2723
2761
 
2724
- if ($$self.$$.dirty & /*bounding*/ 1) {
2725
- $$invalidate(6, boundingHeight = bounding.max.y - bounding.min.y);
2762
+ if ($$self.$$.dirty & /*bounding*/ 2) {
2763
+ $$invalidate(7, boundingHeight = bounding.max.y - bounding.min.y);
2726
2764
  }
2727
2765
 
2728
- if ($$self.$$.dirty & /*bounding*/ 1) {
2729
- $$invalidate(9, contentWidth = bounding.max.x - bounding.min.x - (padding - exteriorWallOffset) * 2);
2766
+ if ($$self.$$.dirty & /*bounding*/ 2) {
2767
+ $$invalidate(10, contentWidth = bounding.max.x - bounding.min.x - (padding - exteriorWallOffset) * 2);
2730
2768
  }
2731
2769
 
2732
- if ($$self.$$.dirty & /*bounding*/ 1) {
2733
- $$invalidate(7, contentHeight = bounding.max.y - bounding.min.y - (padding - exteriorWallOffset) * 2);
2770
+ if ($$self.$$.dirty & /*bounding*/ 2) {
2771
+ $$invalidate(8, contentHeight = bounding.max.y - bounding.min.y - (padding - exteriorWallOffset) * 2);
2734
2772
  }
2735
2773
 
2736
- if ($$self.$$.dirty & /*contentWidth, boundingWidth*/ 768) {
2737
- $$invalidate(2, width = contentWidth / boundingWidth * 100 + '%');
2774
+ if ($$self.$$.dirty & /*contentWidth, boundingWidth*/ 1536) {
2775
+ $$invalidate(3, width = contentWidth / boundingWidth * 100 + '%');
2738
2776
  }
2739
2777
 
2740
- if ($$self.$$.dirty & /*contentHeight, boundingHeight*/ 192) {
2741
- $$invalidate(1, height = contentHeight / boundingHeight * 100 + '%');
2778
+ if ($$self.$$.dirty & /*contentHeight, boundingHeight*/ 384) {
2779
+ $$invalidate(2, height = contentHeight / boundingHeight * 100 + '%');
2742
2780
  }
2743
2781
  };
2744
2782
 
2745
2783
  return [
2784
+ getRuleDistanceText,
2746
2785
  bounding,
2747
2786
  height,
2748
2787
  width,
@@ -2761,7 +2800,20 @@ function instance$l($$self, $$props, $$invalidate) {
2761
2800
  class RuleLabels extends internal.SvelteComponent {
2762
2801
  constructor(options) {
2763
2802
  super();
2764
- internal.init(this, options, instance$l, create_fragment$l, internal.safe_not_equal, { floorIndex: 4, floorplanData: 5 }, add_css$g);
2803
+
2804
+ internal.init(
2805
+ this,
2806
+ options,
2807
+ instance$l,
2808
+ create_fragment$l,
2809
+ internal.safe_not_equal,
2810
+ {
2811
+ floorIndex: 5,
2812
+ floorplanData: 6,
2813
+ getRuleDistanceText: 0
2814
+ },
2815
+ add_css$g
2816
+ );
2765
2817
  }
2766
2818
  }
2767
2819
 
@@ -3672,7 +3724,7 @@ function add_css$c(target) {
3672
3724
  internal.append_styles(target, "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}");
3673
3725
  }
3674
3726
 
3675
- // (20:2) {#if hoverEnable}
3727
+ // (22:2) {#if hoverEnable}
3676
3728
  function create_if_block_2(ctx) {
3677
3729
  let roomhighlight;
3678
3730
  let current;
@@ -3681,7 +3733,7 @@ function create_if_block_2(ctx) {
3681
3733
  {
3682
3734
  floorIndex: /*floorIndex*/ ctx[1],
3683
3735
  floorplanData: /*floorplanData*/ ctx[5],
3684
- hoveredRoom: /*hoveredRoom*/ ctx[8]
3736
+ hoveredRoom: /*hoveredRoom*/ ctx[10]
3685
3737
  }
3686
3738
  ];
3687
3739
 
@@ -3702,12 +3754,12 @@ function create_if_block_2(ctx) {
3702
3754
  current = true;
3703
3755
  },
3704
3756
  p(ctx, dirty) {
3705
- const roomhighlight_changes = (dirty & /*floorIndex, floorplanData, hoveredRoom*/ 290)
3757
+ const roomhighlight_changes = (dirty & /*floorIndex, floorplanData, hoveredRoom*/ 1058)
3706
3758
  ? internal.get_spread_update(roomhighlight_spread_levels, [
3707
3759
  {
3708
3760
  floorIndex: /*floorIndex*/ ctx[1],
3709
3761
  floorplanData: /*floorplanData*/ ctx[5],
3710
- hoveredRoom: /*hoveredRoom*/ ctx[8]
3762
+ hoveredRoom: /*hoveredRoom*/ ctx[10]
3711
3763
  }
3712
3764
  ])
3713
3765
  : {};
@@ -3729,7 +3781,7 @@ function create_if_block_2(ctx) {
3729
3781
  };
3730
3782
  }
3731
3783
 
3732
- // (24:2) {#if roomLabelsEnable}
3784
+ // (26:2) {#if roomLabelsEnable}
3733
3785
  function create_if_block_1$3(ctx) {
3734
3786
  let roomlabels;
3735
3787
  let current;
@@ -3738,9 +3790,10 @@ function create_if_block_1$3(ctx) {
3738
3790
  {
3739
3791
  floorplanData: /*floorplanData*/ ctx[5],
3740
3792
  floorIndex: /*floorIndex*/ ctx[1],
3741
- getLabelElement: /*getLabelElement*/ ctx[6],
3742
- hoveredRoom: /*hoveredRoom*/ ctx[8],
3743
- adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[7]
3793
+ getRoomAreaText: /*getRoomAreaText*/ ctx[6],
3794
+ getLabelElement: /*getLabelElement*/ ctx[7],
3795
+ hoveredRoom: /*hoveredRoom*/ ctx[10],
3796
+ adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[9]
3744
3797
  }
3745
3798
  ];
3746
3799
 
@@ -3761,14 +3814,15 @@ function create_if_block_1$3(ctx) {
3761
3814
  current = true;
3762
3815
  },
3763
3816
  p(ctx, dirty) {
3764
- const roomlabels_changes = (dirty & /*floorplanData, floorIndex, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 482)
3817
+ const roomlabels_changes = (dirty & /*floorplanData, floorIndex, getRoomAreaText, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 1762)
3765
3818
  ? internal.get_spread_update(roomlabels_spread_levels, [
3766
3819
  {
3767
3820
  floorplanData: /*floorplanData*/ ctx[5],
3768
3821
  floorIndex: /*floorIndex*/ ctx[1],
3769
- getLabelElement: /*getLabelElement*/ ctx[6],
3770
- hoveredRoom: /*hoveredRoom*/ ctx[8],
3771
- adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[7]
3822
+ getRoomAreaText: /*getRoomAreaText*/ ctx[6],
3823
+ getLabelElement: /*getLabelElement*/ ctx[7],
3824
+ hoveredRoom: /*hoveredRoom*/ ctx[10],
3825
+ adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[9]
3772
3826
  }
3773
3827
  ])
3774
3828
  : {};
@@ -3790,7 +3844,7 @@ function create_if_block_1$3(ctx) {
3790
3844
  };
3791
3845
  }
3792
3846
 
3793
- // (27:2) {#if ruleLabelsEnable}
3847
+ // (38:2) {#if ruleLabelsEnable}
3794
3848
  function create_if_block$6(ctx) {
3795
3849
  let rulelabels;
3796
3850
  let current;
@@ -3798,7 +3852,8 @@ function create_if_block$6(ctx) {
3798
3852
  const rulelabels_spread_levels = [
3799
3853
  {
3800
3854
  floorplanData: /*floorplanData*/ ctx[5],
3801
- floorIndex: /*floorIndex*/ ctx[1]
3855
+ floorIndex: /*floorIndex*/ ctx[1],
3856
+ getRuleDistanceText: /*getRuleDistanceText*/ ctx[8]
3802
3857
  }
3803
3858
  ];
3804
3859
 
@@ -3819,11 +3874,12 @@ function create_if_block$6(ctx) {
3819
3874
  current = true;
3820
3875
  },
3821
3876
  p(ctx, dirty) {
3822
- const rulelabels_changes = (dirty & /*floorplanData, floorIndex*/ 34)
3877
+ const rulelabels_changes = (dirty & /*floorplanData, floorIndex, getRuleDistanceText*/ 290)
3823
3878
  ? internal.get_spread_update(rulelabels_spread_levels, [
3824
3879
  {
3825
3880
  floorplanData: /*floorplanData*/ ctx[5],
3826
- floorIndex: /*floorIndex*/ ctx[1]
3881
+ floorIndex: /*floorIndex*/ ctx[1],
3882
+ getRuleDistanceText: /*getRuleDistanceText*/ ctx[8]
3827
3883
  }
3828
3884
  ])
3829
3885
  : {};
@@ -4052,7 +4108,9 @@ function instance$e($$self, $$props, $$invalidate) {
4052
4108
  let { roomLabelsEnable } = $$props;
4053
4109
  let { ruleLabelsEnable } = $$props;
4054
4110
  let { floorplanData } = $$props;
4111
+ let { getRoomAreaText } = $$props;
4055
4112
  let { getLabelElement } = $$props;
4113
+ let { getRuleDistanceText } = $$props;
4056
4114
  let { adaptiveRoomLabelVisibleEnable } = $$props;
4057
4115
  const hoveredRoom = store.writable(undefined);
4058
4116
 
@@ -4063,8 +4121,10 @@ function instance$e($$self, $$props, $$invalidate) {
4063
4121
  if ('roomLabelsEnable' in $$props) $$invalidate(3, roomLabelsEnable = $$props.roomLabelsEnable);
4064
4122
  if ('ruleLabelsEnable' in $$props) $$invalidate(4, ruleLabelsEnable = $$props.ruleLabelsEnable);
4065
4123
  if ('floorplanData' in $$props) $$invalidate(5, floorplanData = $$props.floorplanData);
4066
- if ('getLabelElement' in $$props) $$invalidate(6, getLabelElement = $$props.getLabelElement);
4067
- if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(7, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
4124
+ if ('getRoomAreaText' in $$props) $$invalidate(6, getRoomAreaText = $$props.getRoomAreaText);
4125
+ if ('getLabelElement' in $$props) $$invalidate(7, getLabelElement = $$props.getLabelElement);
4126
+ if ('getRuleDistanceText' in $$props) $$invalidate(8, getRuleDistanceText = $$props.getRuleDistanceText);
4127
+ if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(9, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
4068
4128
  };
4069
4129
 
4070
4130
  return [
@@ -4074,7 +4134,9 @@ function instance$e($$self, $$props, $$invalidate) {
4074
4134
  roomLabelsEnable,
4075
4135
  ruleLabelsEnable,
4076
4136
  floorplanData,
4137
+ getRoomAreaText,
4077
4138
  getLabelElement,
4139
+ getRuleDistanceText,
4078
4140
  adaptiveRoomLabelVisibleEnable,
4079
4141
  hoveredRoom
4080
4142
  ];
@@ -4097,8 +4159,10 @@ class CurrentFloor$1 extends internal.SvelteComponent {
4097
4159
  roomLabelsEnable: 3,
4098
4160
  ruleLabelsEnable: 4,
4099
4161
  floorplanData: 5,
4100
- getLabelElement: 6,
4101
- adaptiveRoomLabelVisibleEnable: 7
4162
+ getRoomAreaText: 6,
4163
+ getLabelElement: 7,
4164
+ getRuleDistanceText: 8,
4165
+ adaptiveRoomLabelVisibleEnable: 9
4102
4166
  },
4103
4167
  add_css$c
4104
4168
  );
@@ -4113,11 +4177,11 @@ function add_css$b(target) {
4113
4177
 
4114
4178
  function get_each_context$6(ctx, list, i) {
4115
4179
  const child_ctx = ctx.slice();
4116
- child_ctx[14] = list[i];
4180
+ child_ctx[16] = list[i];
4117
4181
  return child_ctx;
4118
4182
  }
4119
4183
 
4120
- // (22:0) {#if visible}
4184
+ // (24:0) {#if visible}
4121
4185
  function create_if_block$5(ctx) {
4122
4186
  let div;
4123
4187
  let t0;
@@ -4184,7 +4248,7 @@ function create_if_block$5(ctx) {
4184
4248
  p(new_ctx, dirty) {
4185
4249
  ctx = new_ctx;
4186
4250
 
4187
- if (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/ 13232) {
4251
+ if (dirty & /*hoverEnable, floorplanData, getRoomAreaText, getLabelElement, getRuleDistanceText, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/ 62384) {
4188
4252
  each_value = /*floorplanData*/ ctx[9].floorDatas;
4189
4253
  let i;
4190
4254
 
@@ -4290,7 +4354,7 @@ function create_if_block$5(ctx) {
4290
4354
  };
4291
4355
  }
4292
4356
 
4293
- // (24:4) {#each floorplanData.floorDatas as floorData}
4357
+ // (26:4) {#each floorplanData.floorDatas as floorData}
4294
4358
  function create_each_block$6(ctx) {
4295
4359
  let currentfloor;
4296
4360
  let current;
@@ -4299,16 +4363,18 @@ function create_each_block$6(ctx) {
4299
4363
  {
4300
4364
  hoverEnable: /*hoverEnable*/ ctx[5],
4301
4365
  floorplanData: /*floorplanData*/ ctx[9],
4302
- getLabelElement: /*getLabelElement*/ ctx[12],
4366
+ getRoomAreaText: /*getRoomAreaText*/ ctx[12],
4367
+ getLabelElement: /*getLabelElement*/ ctx[13],
4368
+ getRuleDistanceText: /*getRuleDistanceText*/ ctx[14],
4303
4369
  roomLabelsEnable: /*roomLabelsEnable*/ ctx[7],
4304
4370
  ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8],
4305
- adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[13]
4371
+ adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[15]
4306
4372
  },
4307
4373
  {
4308
- floorIndex: /*floorData*/ ctx[14].floorIndex
4374
+ floorIndex: /*floorData*/ ctx[16].floorIndex
4309
4375
  },
4310
4376
  {
4311
- isCurrent: /*floorData*/ ctx[14].floorIndex === /*floorIndex*/ ctx[4]
4377
+ isCurrent: /*floorData*/ ctx[16].floorIndex === /*floorIndex*/ ctx[4]
4312
4378
  }
4313
4379
  ];
4314
4380
 
@@ -4329,21 +4395,23 @@ function create_each_block$6(ctx) {
4329
4395
  current = true;
4330
4396
  },
4331
4397
  p(ctx, dirty) {
4332
- const currentfloor_changes = (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/ 13232)
4398
+ const currentfloor_changes = (dirty & /*hoverEnable, floorplanData, getRoomAreaText, getLabelElement, getRuleDistanceText, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/ 62384)
4333
4399
  ? internal.get_spread_update(currentfloor_spread_levels, [
4334
- dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable*/ 13216 && {
4400
+ dirty & /*hoverEnable, floorplanData, getRoomAreaText, getLabelElement, getRuleDistanceText, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable*/ 62368 && {
4335
4401
  hoverEnable: /*hoverEnable*/ ctx[5],
4336
4402
  floorplanData: /*floorplanData*/ ctx[9],
4337
- getLabelElement: /*getLabelElement*/ ctx[12],
4403
+ getRoomAreaText: /*getRoomAreaText*/ ctx[12],
4404
+ getLabelElement: /*getLabelElement*/ ctx[13],
4405
+ getRuleDistanceText: /*getRuleDistanceText*/ ctx[14],
4338
4406
  roomLabelsEnable: /*roomLabelsEnable*/ ctx[7],
4339
4407
  ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8],
4340
- adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[13]
4408
+ adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[15]
4341
4409
  },
4342
4410
  dirty & /*floorplanData*/ 512 && {
4343
- floorIndex: /*floorData*/ ctx[14].floorIndex
4411
+ floorIndex: /*floorData*/ ctx[16].floorIndex
4344
4412
  },
4345
4413
  dirty & /*floorplanData, floorIndex*/ 528 && {
4346
- isCurrent: /*floorData*/ ctx[14].floorIndex === /*floorIndex*/ ctx[4]
4414
+ isCurrent: /*floorData*/ ctx[16].floorIndex === /*floorIndex*/ ctx[4]
4347
4415
  }
4348
4416
  ])
4349
4417
  : {};
@@ -4365,7 +4433,7 @@ function create_each_block$6(ctx) {
4365
4433
  };
4366
4434
  }
4367
4435
 
4368
- // (39:4) {#if compassEnable}
4436
+ // (43:4) {#if compassEnable}
4369
4437
  function create_if_block_1$2(ctx) {
4370
4438
  let compass;
4371
4439
  let current;
@@ -4474,7 +4542,9 @@ function instance$d($$self, $$props, $$invalidate) {
4474
4542
  let { floorplanData } = $$props;
4475
4543
  let { lastPanoramaLongitude } = $$props;
4476
4544
  let { cameraImageUrl } = $$props;
4545
+ let { getRoomAreaText } = $$props;
4477
4546
  let { getLabelElement } = $$props;
4547
+ let { getRuleDistanceText } = $$props;
4478
4548
  let { adaptiveRoomLabelVisibleEnable } = $$props;
4479
4549
 
4480
4550
  $$self.$$set = $$props => {
@@ -4490,8 +4560,10 @@ function instance$d($$self, $$props, $$invalidate) {
4490
4560
  if ('floorplanData' in $$props) $$invalidate(9, floorplanData = $$props.floorplanData);
4491
4561
  if ('lastPanoramaLongitude' in $$props) $$invalidate(10, lastPanoramaLongitude = $$props.lastPanoramaLongitude);
4492
4562
  if ('cameraImageUrl' in $$props) $$invalidate(11, cameraImageUrl = $$props.cameraImageUrl);
4493
- if ('getLabelElement' in $$props) $$invalidate(12, getLabelElement = $$props.getLabelElement);
4494
- if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(13, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
4563
+ if ('getRoomAreaText' in $$props) $$invalidate(12, getRoomAreaText = $$props.getRoomAreaText);
4564
+ if ('getLabelElement' in $$props) $$invalidate(13, getLabelElement = $$props.getLabelElement);
4565
+ if ('getRuleDistanceText' in $$props) $$invalidate(14, getRuleDistanceText = $$props.getRuleDistanceText);
4566
+ if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(15, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
4495
4567
  };
4496
4568
 
4497
4569
  return [
@@ -4507,7 +4579,9 @@ function instance$d($$self, $$props, $$invalidate) {
4507
4579
  floorplanData,
4508
4580
  lastPanoramaLongitude,
4509
4581
  cameraImageUrl,
4582
+ getRoomAreaText,
4510
4583
  getLabelElement,
4584
+ getRuleDistanceText,
4511
4585
  adaptiveRoomLabelVisibleEnable
4512
4586
  ];
4513
4587
  }
@@ -4535,8 +4609,10 @@ class Main$1 extends internal.SvelteComponent {
4535
4609
  floorplanData: 9,
4536
4610
  lastPanoramaLongitude: 10,
4537
4611
  cameraImageUrl: 11,
4538
- getLabelElement: 12,
4539
- adaptiveRoomLabelVisibleEnable: 13
4612
+ getRoomAreaText: 12,
4613
+ getLabelElement: 13,
4614
+ getRuleDistanceText: 14,
4615
+ adaptiveRoomLabelVisibleEnable: 15
4540
4616
  },
4541
4617
  add_css$b
4542
4618
  );
@@ -5400,10 +5476,12 @@ class Controller$5 extends Controller$6 {
5400
5476
  autoShowEnable: true,
5401
5477
  ruleLabelsEnable: true,
5402
5478
  roomLabelsEnable: true,
5479
+ adaptiveRoomLabelVisibleEnable: true,
5403
5480
  cameraImageUrl: CAMERA_IMAGE,
5404
5481
  attachedTo: exports.FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
5405
5482
  getLabelElement: undefined,
5406
- adaptiveRoomLabelVisibleEnable: true,
5483
+ getRoomAreaText: (size) => (size / 1000000).toFixed(1) + '㎡',
5484
+ getRuleDistanceText: (distance) => distance.toString()
5407
5485
  };
5408
5486
  const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
5409
5487
  const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
@@ -5476,12 +5554,10 @@ class Controller$5 extends Controller$6 {
5476
5554
  const options = { userAction };
5477
5555
  state.visible ? this._show(options) : this._hide(options);
5478
5556
  }
5557
+ this.render();
5479
5558
  }
5480
- changeConfigs(_config, userAction = true) {
5481
- const config = Object.assign(Object.assign({}, this.state.config), _config);
5559
+ changeConfigs(config, userAction = true) {
5482
5560
  this.updateState({ config }, userAction);
5483
- if (!this.container)
5484
- return;
5485
5561
  this.render();
5486
5562
  }
5487
5563
  async formatData(serverData) {
@@ -5489,7 +5565,8 @@ class Controller$5 extends Controller$6 {
5489
5565
  }
5490
5566
  updateState(state, userAction) {
5491
5567
  const prevState = this.state;
5492
- this.state = Object.assign(Object.assign({}, this.state), state);
5568
+ const config = state.config ? Object.assign(Object.assign({}, prevState.config), state.config) : prevState.config;
5569
+ this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), { config });
5493
5570
  if (equal(this.state, prevState, { deep: true }))
5494
5571
  return;
5495
5572
  this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
@@ -9041,11 +9118,28 @@ const PanoRulerPlugin = (five$1, params) => {
9041
9118
  state.enable = false;
9042
9119
  return true;
9043
9120
  };
9121
+ function changeConfigs(config) {
9122
+ if (config.distanceText && config.distanceText !== state.options.distanceText) {
9123
+ const distanceText = config.distanceText;
9124
+ state.options.distanceText = distanceText;
9125
+ Object.values(__rule).forEach((item) => {
9126
+ item.rules.forEach((rule) => {
9127
+ const [origin, vertical] = rule.rule;
9128
+ const distance = origin.distanceTo(vertical);
9129
+ const textEle = rule.$element.querySelector('.PanoRulerPlugin-rule-label-name');
9130
+ if (!textEle)
9131
+ return;
9132
+ textEle.innerText = distanceText(distance);
9133
+ });
9134
+ });
9135
+ }
9136
+ }
9044
9137
  return {
9045
9138
  enable,
9046
9139
  disable,
9047
9140
  load,
9048
9141
  state,
9142
+ changeConfigs,
9049
9143
  };
9050
9144
  };
9051
9145
 
@@ -10942,7 +11036,8 @@ function createDistanceItem(props) {
10942
11036
  if (userDistanceItem) {
10943
11037
  userDistanceItem.update({ line: line.toCompletelyJson(), polyline: line.getPolyline().toCompletelyJson() });
10944
11038
  }
10945
- const distanceString = startPoint.position.clone().distanceTo(endPoint.position).toFixed(2) + 'm';
11039
+ const distance = startPoint.position.clone().distanceTo(endPoint.position);
11040
+ const distanceString = props.line.model.params.getDistanceText(distance);
10946
11041
  contentDom.innerText !== distanceString && (contentDom.innerText = distanceString);
10947
11042
  }
10948
11043
  function appendTo(container) {
@@ -11281,6 +11376,12 @@ const preventDefault = (e) => e.preventDefault();
11281
11376
  class BaseController {
11282
11377
  constructor(params) {
11283
11378
  var _a, _b;
11379
+ Object.defineProperty(this, "model", {
11380
+ enumerable: true,
11381
+ configurable: true,
11382
+ writable: true,
11383
+ value: void 0
11384
+ });
11284
11385
  Object.defineProperty(this, "five", {
11285
11386
  enumerable: true,
11286
11387
  configurable: true,
@@ -11293,7 +11394,13 @@ class BaseController {
11293
11394
  writable: true,
11294
11395
  value: void 0
11295
11396
  });
11296
- Object.defineProperty(this, "model", {
11397
+ Object.defineProperty(this, "config", {
11398
+ enumerable: true,
11399
+ configurable: true,
11400
+ writable: true,
11401
+ value: void 0
11402
+ });
11403
+ Object.defineProperty(this, "dashed", {
11297
11404
  enumerable: true,
11298
11405
  configurable: true,
11299
11406
  writable: true,
@@ -11352,6 +11459,7 @@ class BaseController {
11352
11459
  configurable: true,
11353
11460
  writable: true,
11354
11461
  value: () => {
11462
+ this.dashed.distanceItem.update(this.five);
11355
11463
  this.model.lines.forEach((line) => line.distanceItem.update(this.five));
11356
11464
  }
11357
11465
  });
@@ -11359,6 +11467,7 @@ class BaseController {
11359
11467
  this.five = params.five;
11360
11468
  this.hook = params.hook;
11361
11469
  this.model = params.model;
11470
+ this.config = params.config;
11362
11471
  this.magnifier = params.magnifier;
11363
11472
  this.container = params.container;
11364
11473
  this.fiveHelper = params.fiveHelper;
@@ -11367,6 +11476,10 @@ class BaseController {
11367
11476
  // ==================== Groups ====================
11368
11477
  this.group = params.group;
11369
11478
  this.mouseGroup = params.mouseGroup;
11479
+ // ==================== 虚线 ====================
11480
+ this.dashed = new Line(new Point([0, 0, 0]), new Point([0, 0, 0]), this.model);
11481
+ this.dashed.mesh.setMaterial({ dashed: true, dashScale: 100 });
11482
+ this.dashed.mesh.name = 'dashLine';
11370
11483
  const fiveElement = this.five.getElement();
11371
11484
  if (fiveElement) {
11372
11485
  fiveElement.addEventListener('touchstart', preventDefault);
@@ -11442,12 +11555,6 @@ class EditController extends BaseController {
11442
11555
  writable: true,
11443
11556
  value: 'edit'
11444
11557
  });
11445
- Object.defineProperty(this, "model", {
11446
- enumerable: true,
11447
- configurable: true,
11448
- writable: true,
11449
- value: new Model({ userDistanceItemCreator: this.userDistanceItemCreator })
11450
- });
11451
11558
  Object.defineProperty(this, "pressPoint", {
11452
11559
  enumerable: true,
11453
11560
  configurable: true,
@@ -11479,13 +11586,6 @@ class EditController extends BaseController {
11479
11586
  writable: true,
11480
11587
  value: null
11481
11588
  });
11482
- /** 鼠标点到上一个端点连接的虚线 */
11483
- Object.defineProperty(this, "dashed", {
11484
- enumerable: true,
11485
- configurable: true,
11486
- writable: true,
11487
- value: void 0
11488
- });
11489
11589
  Object.defineProperty(this, "hammer", {
11490
11590
  enumerable: true,
11491
11591
  configurable: true,
@@ -11698,9 +11798,7 @@ class EditController extends BaseController {
11698
11798
  this.dashed.distanceItem.update(this.five);
11699
11799
  }
11700
11800
  });
11701
- // ==================== 虚线 ====================
11702
- this.dashed = new Line(new Point([0, 0, 0]), new Point([0, 0, 0]), this.model);
11703
- this.dashed.mesh.setMaterial({ dashed: true, dashScale: 100 });
11801
+ this.model = new Model(this.config);
11704
11802
  // ==================== 事件监听 ====================
11705
11803
  // five
11706
11804
  this.five.on('cameraUpdate', this.onCameraUpdate);
@@ -12534,7 +12632,7 @@ class MixedController extends BaseController {
12534
12632
  enumerable: true,
12535
12633
  configurable: true,
12536
12634
  writable: true,
12537
- value: new Model({ userDistanceItemCreator: this.userDistanceItemCreator })
12635
+ value: new Model(this.config)
12538
12636
  });
12539
12637
  Object.defineProperty(this, "hasAppendDashed", {
12540
12638
  enumerable: true,
@@ -12572,13 +12670,6 @@ class MixedController extends BaseController {
12572
12670
  writable: true,
12573
12671
  value: void 0
12574
12672
  });
12575
- /** 圆环点到上一个端点连接的虚线 */
12576
- Object.defineProperty(this, "dashed", {
12577
- enumerable: true,
12578
- configurable: true,
12579
- writable: true,
12580
- value: void 0
12581
- });
12582
12673
  /** 编辑线条发生改变时通知外部 */
12583
12674
  Object.defineProperty(this, "onLineChanged", {
12584
12675
  enumerable: true,
@@ -12781,10 +12872,6 @@ class MixedController extends BaseController {
12781
12872
  onClick: this.deleteDomClickCallback,
12782
12873
  cancelDelete: this.cancelDeleteClickCallback,
12783
12874
  }).appendTo(this.container);
12784
- // ==================== 虚线 ====================
12785
- this.dashed = new Line(new Point([0, 0, 0]), new Point([0, 0, 0]), this.model);
12786
- this.dashed.mesh.setMaterial({ dashed: true, dashScale: 100 });
12787
- this.dashed.mesh.name = 'dashLine';
12788
12875
  // ==================== 事件监听 ====================
12789
12876
  // five
12790
12877
  this.five.on('cameraUpdate', this.onCameraUpdate);
@@ -14158,6 +14245,12 @@ class MeasureController {
14158
14245
  writable: true,
14159
14246
  value: void 0
14160
14247
  });
14248
+ Object.defineProperty(this, "config", {
14249
+ enumerable: true,
14250
+ configurable: true,
14251
+ writable: true,
14252
+ value: void 0
14253
+ });
14161
14254
  Object.defineProperty(this, "fiveHelper", {
14162
14255
  enumerable: true,
14163
14256
  configurable: true,
@@ -14256,7 +14349,14 @@ class MeasureController {
14256
14349
  });
14257
14350
  this.five = five$1;
14258
14351
  this.params = params;
14259
- this.model = new Model({ userDistanceItemCreator: this.params.userDistanceItemCreator });
14352
+ const defaultConfig = {
14353
+ userDistanceItemCreator: undefined,
14354
+ getDistanceText(distance) {
14355
+ return distance.toFixed(2) + 'm';
14356
+ },
14357
+ };
14358
+ this.config = Object.assign(Object.assign({}, defaultConfig), omit(params, ['openParams', 'magnifierParams']));
14359
+ this.model = new Model(this.config);
14260
14360
  this.fiveHelper = new FiveHelper(five$1);
14261
14361
  // magnifier
14262
14362
  this.magnifier = new Magnifier(five$1, (_a = params.magnifierParams) !== null && _a !== void 0 ? _a : { width: 190, height: 190, scale: 2 });
@@ -14278,6 +14378,7 @@ class MeasureController {
14278
14378
  hook: this.hook,
14279
14379
  group: this.group,
14280
14380
  model: this.model,
14381
+ config: this.config,
14281
14382
  magnifier: this.magnifier,
14282
14383
  container: this.container,
14283
14384
  fiveHelper: this.fiveHelper,
@@ -14412,6 +14513,14 @@ class MeasureController {
14412
14513
  (_b = this.useUIController) === null || _b === void 0 ? void 0 : _b.dispose();
14413
14514
  this.useUIController = new UIController(this, this.controllerParams);
14414
14515
  }
14516
+ changeConfigs(config) {
14517
+ var _a;
14518
+ if (config.getDistanceText && config.getDistanceText !== this.config.getDistanceText) {
14519
+ const getDistanceText = config.getDistanceText;
14520
+ this.config.getDistanceText = getDistanceText;
14521
+ (_a = this.controller) === null || _a === void 0 ? void 0 : _a.updateDistanceUI();
14522
+ }
14523
+ }
14415
14524
  }
14416
14525
 
14417
14526
  const PanoMeasurePlugin = function PanoMeasurePlugin(five, params) {