@realsee/dnalogel 2.0.0-alpha.35 → 2.0.0-alpha.36

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 (211) hide show
  1. package/dist/ItemLabelPlugin/index.js +21 -41
  2. package/dist/ModelItemLabelPlugin/index.js +16 -36
  3. package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +1 -1
  4. package/dist/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +0 -4
  5. package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +0 -3
  6. package/dist/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +2 -0
  7. package/dist/PanoMeasurePlugin/Modules/UIController/{NewMainBtnController.d.ts → mobileMainBtnController.d.ts} +1 -1
  8. package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -3
  9. package/dist/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +1 -1
  10. package/dist/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +2 -0
  11. package/dist/PanoMeasurePlugin/index.js +298 -331
  12. package/dist/PanoMeasurePlugin/typings/data.d.ts +5 -0
  13. package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +6 -1
  14. package/dist/base/BasePlugin.d.ts +100 -0
  15. package/dist/base/BasePluginWithData.d.ts +34 -0
  16. package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +70 -78
  17. package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +5 -7
  18. package/dist/floorplan/ModelFloorplanPlugin/index.js +1059 -569
  19. package/dist/floorplan/ModelFloorplanPlugin/typing.d.ts +107 -0
  20. package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +23 -14
  21. package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +5 -6
  22. package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +489 -129
  23. package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
  24. package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +50 -58
  25. package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -3
  26. package/dist/floorplan/TopviewFloorplanPlugin/index.js +1031 -443
  27. package/dist/floorplan/TopviewFloorplanPlugin/typing.d.ts +86 -0
  28. package/{libs/floorplan/ModelFloorplanPlugin → dist/floorplan}/utils/constant.d.ts +10 -3
  29. package/{libs/floorplan/ModelFloorplanPlugin → dist/floorplan}/utils/correctFiveState.d.ts +2 -1
  30. package/dist/index.es.js +2184 -1411
  31. package/dist/index.js +2188 -1415
  32. package/dist/index.umd.js +2142 -1369
  33. package/dist/shared-utils/five/changeMode.d.ts +4 -1
  34. package/dist/shared-utils/getPxmm.d.ts +8 -0
  35. package/docs/assets/search.js +1 -1
  36. package/docs/classes/Magnifier.html +4 -4
  37. package/docs/classes/ModelRoomLabelController.html +4 -4
  38. package/docs/enums/CameraMovementEffect.html +2 -2
  39. package/docs/enums/DIRECTION.html +1 -1
  40. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  41. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  42. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  43. package/docs/enums/Rotation.html +2 -2
  44. package/docs/index.html +2 -2
  45. package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
  46. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  47. package/docs/interfaces/FloorplanBounding.html +4 -4
  48. package/docs/interfaces/FloorplanData.html +2 -2
  49. package/docs/interfaces/FloorplanEntrance.html +7 -7
  50. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  51. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  52. package/docs/interfaces/FloorplanFloorData.html +2 -2
  53. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  54. package/docs/interfaces/FloorplanObserver.html +2 -2
  55. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  56. package/docs/interfaces/FloorplanPosition.html +2 -2
  57. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  58. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  59. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  60. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  61. package/docs/interfaces/FloorplanServerData.html +2 -2
  62. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  63. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  64. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  65. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  66. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  67. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  68. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  69. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  70. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  71. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  72. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  73. package/docs/interfaces/LineJson.html +1 -1
  74. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  75. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  76. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  77. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  78. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  79. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  80. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  81. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  82. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  83. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  84. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  85. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  86. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  87. package/docs/interfaces/OpenParameter.html +2 -2
  88. package/docs/interfaces/PanoCompassPluginData.html +1 -1
  89. package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
  90. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  91. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  92. package/docs/interfaces/PanoMeasureParameterType.html +1 -1
  93. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  94. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  95. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  96. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  97. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  98. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  99. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  100. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  101. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  102. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  103. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  104. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  105. package/docs/interfaces/Point.html +1 -1
  106. package/docs/interfaces/PointJson.html +1 -1
  107. package/docs/interfaces/Room.html +1 -1
  108. package/docs/interfaces/RoomInfo.html +1 -1
  109. package/docs/interfaces/RoomLabel.html +7 -7
  110. package/docs/interfaces/RoomRules.html +1 -1
  111. package/docs/interfaces/Rooms.html +1 -1
  112. package/docs/modules.html +17 -27
  113. package/libs/ItemLabelPlugin/ItemLabelComponent.js +21 -41
  114. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +16 -36
  115. package/libs/PanoMeasurePlugin/Controller/index.js +4 -2
  116. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +1 -1
  117. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
  118. package/libs/PanoMeasurePlugin/Modules/GuideController.js +2 -2
  119. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +0 -4
  120. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +66 -55
  121. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +0 -3
  122. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +51 -73
  123. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +7 -4
  124. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +10 -12
  125. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +2 -0
  126. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +2 -2
  127. package/libs/PanoMeasurePlugin/Modules/UIController/{NewMainBtnController.d.ts → mobileMainBtnController.d.ts} +1 -1
  128. package/libs/PanoMeasurePlugin/Modules/UIController/{NewMainBtnController.js → mobileMainBtnController.js} +4 -4
  129. package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -3
  130. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +7 -24
  131. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +1 -1
  132. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +1 -1
  133. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +2 -0
  134. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -2
  135. package/libs/PanoMeasurePlugin/typings/data.d.ts +5 -0
  136. package/libs/PanoMeasurePlugin/utils/mouseGroup.d.ts +6 -1
  137. package/libs/PanoMeasurePlugin/utils/mouseGroup.js +55 -7
  138. package/libs/base/BasePlugin.d.ts +100 -0
  139. package/libs/base/BasePlugin.js +31 -0
  140. package/libs/base/BasePluginWithData.d.ts +34 -0
  141. package/libs/base/BasePluginWithData.js +4 -0
  142. package/libs/floorplan/Components/Compass.js +11 -11
  143. package/libs/floorplan/Components/CurrentFloor.js +24 -11
  144. package/libs/floorplan/Components/Main.js +21 -15
  145. package/libs/floorplan/Components/RoomHighlight/Room.js +44 -5
  146. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +29 -12
  147. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +164 -15
  148. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +68 -24
  149. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -0
  150. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +11 -9
  151. package/libs/floorplan/Components/RuleLabels/RuleItem.js +2 -2
  152. package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +70 -78
  153. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +434 -274
  154. package/libs/floorplan/ModelFloorplanPlugin/index.d.ts +5 -7
  155. package/libs/floorplan/ModelFloorplanPlugin/index.js +2 -2
  156. package/libs/floorplan/ModelFloorplanPlugin/typing.d.ts +107 -0
  157. package/libs/floorplan/ModelFloorplanPlugin/{typings/events.type.js → typing.js} +0 -0
  158. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +5 -5
  159. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +114 -53
  160. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +23 -14
  161. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +162 -52
  162. package/libs/floorplan/PanoFloorplanRadarPlugin/index.d.ts +5 -6
  163. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +2 -2
  164. package/libs/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
  165. package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
  166. package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +50 -58
  167. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +320 -174
  168. package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -3
  169. package/libs/floorplan/TopviewFloorplanPlugin/index.js +2 -2
  170. package/libs/floorplan/TopviewFloorplanPlugin/style.js +1 -1
  171. package/libs/floorplan/TopviewFloorplanPlugin/typing.d.ts +86 -0
  172. package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
  173. package/{dist/floorplan/ModelFloorplanPlugin → libs/floorplan}/utils/constant.d.ts +10 -3
  174. package/libs/floorplan/{ModelFloorplanPlugin/utils → utils}/constant.js +9 -2
  175. package/{dist/floorplan/ModelFloorplanPlugin → libs/floorplan}/utils/correctFiveState.d.ts +2 -1
  176. package/libs/floorplan/{ModelFloorplanPlugin/utils → utils}/correctFiveState.js +16 -16
  177. package/libs/shared-utils/five/changeMode.d.ts +4 -1
  178. package/libs/shared-utils/five/changeMode.js +34 -13
  179. package/libs/shared-utils/getPxmm.d.ts +8 -0
  180. package/libs/shared-utils/getPxmm.js +25 -20
  181. package/package.json +2 -2
  182. package/dist/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +0 -23
  183. package/docs/classes/PanoFloorplanRadarPluginController.html +0 -3
  184. package/docs/enums/ModelFloorplanErrorType.html +0 -1
  185. package/docs/interfaces/ModelFloorplanParameterType.html +0 -1
  186. package/docs/interfaces/ModelFloorplanViewEvent.html +0 -5
  187. package/docs/interfaces/PanoFloorplanRadarPluginControllerParameter.html +0 -1
  188. package/docs/interfaces/TopviewFloorplanPluginParameterType.html +0 -19
  189. package/libs/ModelSimulationPlugin/index.d.ts +0 -33
  190. package/libs/ModelSimulationPlugin/index.js +0 -166
  191. package/libs/ModelSimulationPlugin/shaders/fragment.d.ts +0 -2
  192. package/libs/ModelSimulationPlugin/shaders/fragment.js +0 -96
  193. package/libs/ModelSimulationPlugin/shaders/vertex.d.ts +0 -2
  194. package/libs/ModelSimulationPlugin/shaders/vertex.js +0 -23
  195. package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.d.ts +0 -1
  196. package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.js +0 -1
  197. package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.js +0 -120
  198. package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.js +0 -106
  199. package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.js +0 -463
  200. package/libs/floorplan/ModelFloorplanPlugin/Components/Main.js +0 -375
  201. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.js +0 -171
  202. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.js +0 -265
  203. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.js +0 -301
  204. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.js +0 -219
  205. package/libs/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +0 -23
  206. package/libs/shared-utils/five/useFivePlugin.d.ts +0 -1
  207. package/libs/shared-utils/five/useFivePlugin.js +0 -8
  208. package/libs/shared-utils/useDebounce.d.ts +0 -8
  209. package/libs/shared-utils/useDebounce.js +0 -22
  210. package/libs/shared-utils/useThrottle.d.ts +0 -8
  211. package/libs/shared-utils/useThrottle.js +0 -25
@@ -0,0 +1,100 @@
1
+ import { Five, Subscribe } from '@realsee/five';
2
+ /**
3
+ * 基本属性字段
4
+ */
5
+ interface State {
6
+ /**
7
+ * 插件是否启用
8
+ */
9
+ enabled: boolean;
10
+ /**
11
+ * 插件UI是否展示
12
+ */
13
+ visible?: boolean;
14
+ /**
15
+ * 插件的配置项
16
+ */
17
+ config?: unknown;
18
+ }
19
+ interface BaseOptions {
20
+ /** 是否是用户行为 */
21
+ userAction?: boolean;
22
+ }
23
+ /**
24
+ * 插件基本事件
25
+ */
26
+ declare type EventMap<PluginState> = {
27
+ /**
28
+ * 插件被销毁
29
+ */
30
+ dispose: () => void;
31
+ /**
32
+ * 插件状态变化
33
+ * @param params.state 最新的State
34
+ * @param params.prevState 上一个State
35
+ * @param params.userAction 是否是用户触发
36
+ */
37
+ stateChange: (params: {
38
+ state: PluginState;
39
+ prevState?: PluginState;
40
+ userAction: boolean;
41
+ }) => void;
42
+ };
43
+ /**
44
+ * plugin 的基本控制器
45
+ */
46
+ declare abstract class Controller<PluginState extends State, PluginEventMap extends EventMap<PluginState>> {
47
+ five: Five;
48
+ /**
49
+ * 插件事件钩子
50
+ */
51
+ hooks: Subscribe<PluginEventMap>;
52
+ /**
53
+ * 当前状态
54
+ * @description
55
+ * ```text
56
+ * 可以通过 plugin.state 和 plugin.setState 来获取和设置。
57
+ * 通过 state 设置后,plugin 会通过合适的动画运动来达到设置的效果。
58
+ * 来迎合一些通过数据驱动的场景。
59
+ * ```
60
+ */
61
+ abstract state: PluginState;
62
+ constructor(five: Five);
63
+ /**
64
+ * 获取当前的插件状态,如果当初插件内存在需要通过动画变更的 state 值,则通过此方法可以得到中间状态
65
+ */
66
+ getCurrentState(): PluginState;
67
+ /**
68
+ * 插件自身DOM添加到父容器
69
+ * @param wrapper
70
+ */
71
+ appendTo?(wrapper: Element): void;
72
+ /**
73
+ * 展示UI
74
+ */
75
+ show?(options?: BaseOptions): Promise<void>;
76
+ /**
77
+ * 隐藏UI
78
+ */
79
+ hide?(options?: BaseOptions): Promise<void>;
80
+ /**
81
+ * 启用插件,让插件能够响应交互
82
+ */
83
+ abstract enable(options?: BaseOptions): void;
84
+ /**
85
+ * 禁用插件,让插件停止响应交互
86
+ */
87
+ abstract disable(options?: BaseOptions): void;
88
+ /**
89
+ * 插件进行销毁
90
+ */
91
+ abstract dispose(): void;
92
+ /**
93
+ * 设置state
94
+ * @param state 插件的目标状态
95
+ * @param options 配置项
96
+ */
97
+ abstract setState(state: Partial<PluginState>, options?: BaseOptions): void;
98
+ }
99
+ export type { State, EventMap, BaseOptions };
100
+ export { Controller };
@@ -0,0 +1,31 @@
1
+ import { Subscribe } from '@realsee/five';
2
+ /**
3
+ * plugin 的基本控制器
4
+ */
5
+ class Controller {
6
+ constructor(five) {
7
+ Object.defineProperty(this, "five", {
8
+ enumerable: true,
9
+ configurable: true,
10
+ writable: true,
11
+ value: void 0
12
+ });
13
+ /**
14
+ * 插件事件钩子
15
+ */
16
+ Object.defineProperty(this, "hooks", {
17
+ enumerable: true,
18
+ configurable: true,
19
+ writable: true,
20
+ value: new Subscribe()
21
+ });
22
+ this.five = five;
23
+ }
24
+ /**
25
+ * 获取当前的插件状态,如果当初插件内存在需要通过动画变更的 state 值,则通过此方法可以得到中间状态
26
+ */
27
+ getCurrentState() {
28
+ return this.state;
29
+ }
30
+ }
31
+ export { Controller };
@@ -0,0 +1,34 @@
1
+ import * as BasePlugin from './BasePlugin';
2
+ declare type State = BasePlugin.State;
3
+ interface EventMap<PluginState, PluginData> extends BasePlugin.EventMap<PluginState> {
4
+ /** 数据变更 */
5
+ dataChange: (data: PluginData, prevData?: PluginData) => void;
6
+ /** 数据加载完成 */
7
+ dataLoaded: (data: PluginData) => void;
8
+ }
9
+ /**
10
+ * 插件的基础数据
11
+ */
12
+ interface ServerData {
13
+ /**
14
+ * 数据版本
15
+ */
16
+ version: number;
17
+ /**
18
+ * 数据
19
+ */
20
+ data?: unknown;
21
+ }
22
+ declare abstract class Controller<PluginState extends State, PluginEventMap extends EventMap<PluginState, PluginData>, PluginServerData extends ServerData, PluginData> extends BasePlugin.Controller<PluginState, PluginEventMap> {
23
+ protected abstract data?: PluginData;
24
+ /**
25
+ * 加载插件依赖数据
26
+ * @param serverData 插件数据
27
+ * @param state 插件 State
28
+ */
29
+ abstract load(serverData: PluginServerData, state?: PluginState, userAction?: boolean): Promise<void>;
30
+ /** 把原始数据转化为插件数据 */
31
+ protected abstract formatData?(serverData: PluginServerData): Promise<PluginData>;
32
+ }
33
+ export type { State, EventMap, ServerData };
34
+ export { Controller };
@@ -0,0 +1,4 @@
1
+ import * as BasePlugin from './BasePlugin';
2
+ class Controller extends BasePlugin.Controller {
3
+ }
4
+ export { Controller };
@@ -20,10 +20,10 @@ import {
20
20
  import { COMPASS_IMAGE } from '../Assets/compass';
21
21
 
22
22
  function add_css(target) {
23
- append_styles(target, "svelte-5l80pv", ".floorplan-plugin__compass.svelte-5l80pv{position:absolute;left:50%;top:-46px;width:231px;height:41px;will-change:opacity;transform-origin:center 184px}.floorplan-plugin__compass-image.svelte-5l80pv{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-5l80pv{position:absolute;left:50%;top:15px;transform:translateX(-50%);opacity:0.2;font-weight:bold;font-size:10px;color:#fff}");
23
+ append_styles(target, "svelte-p7yk9v", ".floorplan-plugin__compass.svelte-p7yk9v{position:absolute;left:50%;top:-46px;width:231px;height:41px;will-change:opacity;transform-origin:center 184px}.floorplan-plugin__compass-image.svelte-p7yk9v{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-p7yk9v{position:absolute;left:50%;top:15px;transform:translateX(-50%);opacity:0.2;font-weight:bold;font-size:10px;color:#fff}");
24
24
  }
25
25
 
26
- // (14:0) {#if canShowCompass}
26
+ // (14:0) {#if canCompassShow}
27
27
  function create_if_block(ctx) {
28
28
  let div1;
29
29
  let div0;
@@ -38,11 +38,11 @@ function create_if_block(ctx) {
38
38
  t0 = space();
39
39
  span = element("span");
40
40
  t1 = text(/*northDesc*/ ctx[0]);
41
- attr(div0, "class", "floorplan-plugin__compass-image svelte-5l80pv");
41
+ attr(div0, "class", "floorplan-plugin__compass-image svelte-p7yk9v");
42
42
  set_style(div0, "background-image", `url(${COMPASS_IMAGE})`);
43
- attr(span, "class", "floorplan-plugin__compass-text svelte-5l80pv");
44
- attr(div1, "class", "floorplan-plugin__compass svelte-5l80pv");
45
- set_style(div1, "transform", /*compassTransformStyle*/ ctx[1], false);
43
+ attr(span, "class", "floorplan-plugin__compass-text svelte-p7yk9v");
44
+ attr(div1, "class", "floorplan-plugin__compass svelte-p7yk9v");
45
+ set_style(div1, "transform", /*compassTransformStyle*/ ctx[2], false);
46
46
  },
47
47
  m(target, anchor) {
48
48
  insert(target, div1, anchor);
@@ -62,7 +62,7 @@ function create_if_block(ctx) {
62
62
 
63
63
  function create_fragment(ctx) {
64
64
  let if_block_anchor;
65
- let if_block = /*canShowCompass*/ ctx[2] && create_if_block(ctx);
65
+ let if_block = /*canCompassShow*/ ctx[1] && create_if_block(ctx);
66
66
 
67
67
  return {
68
68
  c() {
@@ -74,7 +74,7 @@ function create_fragment(ctx) {
74
74
  insert(target, if_block_anchor, anchor);
75
75
  },
76
76
  p(ctx, [dirty]) {
77
- if (/*canShowCompass*/ ctx[2]) if_block.p(ctx, dirty);
77
+ if (/*canCompassShow*/ ctx[1]) if_block.p(ctx, dirty);
78
78
  },
79
79
  i: noop,
80
80
  o: noop,
@@ -98,16 +98,16 @@ function instance($$self, $$props, $$invalidate) {
98
98
  ? void 0
99
99
  : _a.northRad;
100
100
 
101
- const rotate = typeof northRad !== 'number' ? 0 : rad2Deg(northRad);
101
+ const canCompassShow = typeof northRad === 'number';
102
+ const rotate = !northRad ? 0 : rad2Deg(northRad);
102
103
  const compassTransformStyle = `translateX(-50%) translateZ(10px) rotate(${-rotate + 90}deg)`;
103
- const canShowCompass = typeof northRad === 'number';
104
104
 
105
105
  $$self.$$set = $$props => {
106
106
  if ('floorplanData' in $$props) $$invalidate(3, floorplanData = $$props.floorplanData);
107
107
  if ('northDesc' in $$props) $$invalidate(0, northDesc = $$props.northDesc);
108
108
  };
109
109
 
110
- return [northDesc, compassTransformStyle, canShowCompass, floorplanData];
110
+ return [northDesc, canCompassShow, compassTransformStyle, floorplanData];
111
111
  }
112
112
 
113
113
  class Component extends SvelteComponent {
@@ -22,6 +22,7 @@ import {
22
22
  transition_out
23
23
  } from "svelte/internal";
24
24
 
25
+ import { writable } from 'svelte/store';
25
26
  import BaseImage from './BaseImage';
26
27
  import RoomLabels from './RoomLabels/RoomLabels';
27
28
  import RuleLabels from './RuleLabels/RuleLabels';
@@ -32,7 +33,7 @@ function add_css(target) {
32
33
  append_styles(target, "svelte-1oamigj", ".floorplan-plugin__floor.svelte-1oamigj{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;pointer-events:none}.floorplan-plugin__floor--is-current.svelte-1oamigj{opacity:1;pointer-events:auto}");
33
34
  }
34
35
 
35
- // (17:2) {#if hoverEnable}
36
+ // (20:2) {#if hoverEnable}
36
37
  function create_if_block_2(ctx) {
37
38
  let roomhighlight;
38
39
  let current;
@@ -40,7 +41,8 @@ function create_if_block_2(ctx) {
40
41
  const roomhighlight_spread_levels = [
41
42
  {
42
43
  floorIndex: /*floorIndex*/ ctx[1],
43
- floorplanData: /*floorplanData*/ ctx[5]
44
+ floorplanData: /*floorplanData*/ ctx[5],
45
+ hoveredRoom: /*hoveredRoom*/ ctx[8]
44
46
  }
45
47
  ];
46
48
 
@@ -61,11 +63,12 @@ function create_if_block_2(ctx) {
61
63
  current = true;
62
64
  },
63
65
  p(ctx, dirty) {
64
- const roomhighlight_changes = (dirty & /*floorIndex, floorplanData*/ 34)
66
+ const roomhighlight_changes = (dirty & /*floorIndex, floorplanData, hoveredRoom*/ 290)
65
67
  ? get_spread_update(roomhighlight_spread_levels, [
66
68
  {
67
69
  floorIndex: /*floorIndex*/ ctx[1],
68
- floorplanData: /*floorplanData*/ ctx[5]
70
+ floorplanData: /*floorplanData*/ ctx[5],
71
+ hoveredRoom: /*hoveredRoom*/ ctx[8]
69
72
  }
70
73
  ])
71
74
  : {};
@@ -87,7 +90,7 @@ function create_if_block_2(ctx) {
87
90
  };
88
91
  }
89
92
 
90
- // (21:2) {#if roomLabelsEnable}
93
+ // (24:2) {#if roomLabelsEnable}
91
94
  function create_if_block_1(ctx) {
92
95
  let roomlabels;
93
96
  let current;
@@ -96,7 +99,9 @@ function create_if_block_1(ctx) {
96
99
  {
97
100
  floorplanData: /*floorplanData*/ ctx[5],
98
101
  floorIndex: /*floorIndex*/ ctx[1],
99
- getLabelElement: /*getLabelElement*/ ctx[6]
102
+ getLabelElement: /*getLabelElement*/ ctx[6],
103
+ hoveredRoom: /*hoveredRoom*/ ctx[8],
104
+ adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[7]
100
105
  }
101
106
  ];
102
107
 
@@ -117,12 +122,14 @@ function create_if_block_1(ctx) {
117
122
  current = true;
118
123
  },
119
124
  p(ctx, dirty) {
120
- const roomlabels_changes = (dirty & /*floorplanData, floorIndex, getLabelElement*/ 98)
125
+ const roomlabels_changes = (dirty & /*floorplanData, floorIndex, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 482)
121
126
  ? get_spread_update(roomlabels_spread_levels, [
122
127
  {
123
128
  floorplanData: /*floorplanData*/ ctx[5],
124
129
  floorIndex: /*floorIndex*/ ctx[1],
125
- getLabelElement: /*getLabelElement*/ ctx[6]
130
+ getLabelElement: /*getLabelElement*/ ctx[6],
131
+ hoveredRoom: /*hoveredRoom*/ ctx[8],
132
+ adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[7]
126
133
  }
127
134
  ])
128
135
  : {};
@@ -144,7 +151,7 @@ function create_if_block_1(ctx) {
144
151
  };
145
152
  }
146
153
 
147
- // (24:2) {#if ruleLabelsEnable}
154
+ // (27:2) {#if ruleLabelsEnable}
148
155
  function create_if_block(ctx) {
149
156
  let rulelabels;
150
157
  let current;
@@ -407,6 +414,8 @@ function instance($$self, $$props, $$invalidate) {
407
414
  let { ruleLabelsEnable } = $$props;
408
415
  let { floorplanData } = $$props;
409
416
  let { getLabelElement } = $$props;
417
+ let { adaptiveRoomLabelVisibleEnable } = $$props;
418
+ const hoveredRoom = writable(undefined);
410
419
 
411
420
  $$self.$$set = $$props => {
412
421
  if ('isCurrent' in $$props) $$invalidate(0, isCurrent = $$props.isCurrent);
@@ -416,6 +425,7 @@ function instance($$self, $$props, $$invalidate) {
416
425
  if ('ruleLabelsEnable' in $$props) $$invalidate(4, ruleLabelsEnable = $$props.ruleLabelsEnable);
417
426
  if ('floorplanData' in $$props) $$invalidate(5, floorplanData = $$props.floorplanData);
418
427
  if ('getLabelElement' in $$props) $$invalidate(6, getLabelElement = $$props.getLabelElement);
428
+ if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(7, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
419
429
  };
420
430
 
421
431
  return [
@@ -425,7 +435,9 @@ function instance($$self, $$props, $$invalidate) {
425
435
  roomLabelsEnable,
426
436
  ruleLabelsEnable,
427
437
  floorplanData,
428
- getLabelElement
438
+ getLabelElement,
439
+ adaptiveRoomLabelVisibleEnable,
440
+ hoveredRoom
429
441
  ];
430
442
  }
431
443
 
@@ -446,7 +458,8 @@ class Component extends SvelteComponent {
446
458
  roomLabelsEnable: 3,
447
459
  ruleLabelsEnable: 4,
448
460
  floorplanData: 5,
449
- getLabelElement: 6
461
+ getLabelElement: 6,
462
+ adaptiveRoomLabelVisibleEnable: 7
450
463
  },
451
464
  add_css
452
465
  );
@@ -37,11 +37,11 @@ function add_css(target) {
37
37
 
38
38
  function get_each_context(ctx, list, i) {
39
39
  const child_ctx = ctx.slice();
40
- child_ctx[13] = list[i];
40
+ child_ctx[14] = list[i];
41
41
  return child_ctx;
42
42
  }
43
43
 
44
- // (21:0) {#if visible}
44
+ // (22:0) {#if visible}
45
45
  function create_if_block(ctx) {
46
46
  let div;
47
47
  let t0;
@@ -108,7 +108,7 @@ function create_if_block(ctx) {
108
108
  p(new_ctx, dirty) {
109
109
  ctx = new_ctx;
110
110
 
111
- if (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, floorIndex*/ 5040) {
111
+ if (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/ 13232) {
112
112
  each_value = /*floorplanData*/ ctx[9].floorDatas;
113
113
  let i;
114
114
 
@@ -214,7 +214,7 @@ function create_if_block(ctx) {
214
214
  };
215
215
  }
216
216
 
217
- // (23:4) {#each floorplanData.floorDatas as floorData}
217
+ // (24:4) {#each floorplanData.floorDatas as floorData}
218
218
  function create_each_block(ctx) {
219
219
  let currentfloor;
220
220
  let current;
@@ -225,13 +225,14 @@ function create_each_block(ctx) {
225
225
  floorplanData: /*floorplanData*/ ctx[9],
226
226
  getLabelElement: /*getLabelElement*/ ctx[12],
227
227
  roomLabelsEnable: /*roomLabelsEnable*/ ctx[7],
228
- ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8]
228
+ ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8],
229
+ adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[13]
229
230
  },
230
231
  {
231
- floorIndex: /*floorData*/ ctx[13].floorIndex
232
+ floorIndex: /*floorData*/ ctx[14].floorIndex
232
233
  },
233
234
  {
234
- isCurrent: /*floorData*/ ctx[13].floorIndex === /*floorIndex*/ ctx[4]
235
+ isCurrent: /*floorData*/ ctx[14].floorIndex === /*floorIndex*/ ctx[4]
235
236
  }
236
237
  ];
237
238
 
@@ -252,20 +253,21 @@ function create_each_block(ctx) {
252
253
  current = true;
253
254
  },
254
255
  p(ctx, dirty) {
255
- const currentfloor_changes = (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, floorIndex*/ 5040)
256
+ const currentfloor_changes = (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/ 13232)
256
257
  ? get_spread_update(currentfloor_spread_levels, [
257
- dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable*/ 5024 && {
258
+ dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable*/ 13216 && {
258
259
  hoverEnable: /*hoverEnable*/ ctx[5],
259
260
  floorplanData: /*floorplanData*/ ctx[9],
260
261
  getLabelElement: /*getLabelElement*/ ctx[12],
261
262
  roomLabelsEnable: /*roomLabelsEnable*/ ctx[7],
262
- ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8]
263
+ ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8],
264
+ adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[13]
263
265
  },
264
266
  dirty & /*floorplanData*/ 512 && {
265
- floorIndex: /*floorData*/ ctx[13].floorIndex
267
+ floorIndex: /*floorData*/ ctx[14].floorIndex
266
268
  },
267
269
  dirty & /*floorplanData, floorIndex*/ 528 && {
268
- isCurrent: /*floorData*/ ctx[13].floorIndex === /*floorIndex*/ ctx[4]
270
+ isCurrent: /*floorData*/ ctx[14].floorIndex === /*floorIndex*/ ctx[4]
269
271
  }
270
272
  ])
271
273
  : {};
@@ -287,7 +289,7 @@ function create_each_block(ctx) {
287
289
  };
288
290
  }
289
291
 
290
- // (37:4) {#if compassEnable}
292
+ // (39:4) {#if compassEnable}
291
293
  function create_if_block_1(ctx) {
292
294
  let compass;
293
295
  let current;
@@ -397,6 +399,7 @@ function instance($$self, $$props, $$invalidate) {
397
399
  let { lastPanoramaLongitude } = $$props;
398
400
  let { cameraImageUrl } = $$props;
399
401
  let { getLabelElement } = $$props;
402
+ let { adaptiveRoomLabelVisibleEnable } = $$props;
400
403
 
401
404
  $$self.$$set = $$props => {
402
405
  if ('duration' in $$props) $$invalidate(0, duration = $$props.duration);
@@ -412,6 +415,7 @@ function instance($$self, $$props, $$invalidate) {
412
415
  if ('lastPanoramaLongitude' in $$props) $$invalidate(10, lastPanoramaLongitude = $$props.lastPanoramaLongitude);
413
416
  if ('cameraImageUrl' in $$props) $$invalidate(11, cameraImageUrl = $$props.cameraImageUrl);
414
417
  if ('getLabelElement' in $$props) $$invalidate(12, getLabelElement = $$props.getLabelElement);
418
+ if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(13, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
415
419
  };
416
420
 
417
421
  return [
@@ -427,7 +431,8 @@ function instance($$self, $$props, $$invalidate) {
427
431
  floorplanData,
428
432
  lastPanoramaLongitude,
429
433
  cameraImageUrl,
430
- getLabelElement
434
+ getLabelElement,
435
+ adaptiveRoomLabelVisibleEnable
431
436
  ];
432
437
  }
433
438
 
@@ -454,7 +459,8 @@ class Component extends SvelteComponent {
454
459
  floorplanData: 9,
455
460
  lastPanoramaLongitude: 10,
456
461
  cameraImageUrl: 11,
457
- getLabelElement: 12
462
+ getLabelElement: 12,
463
+ adaptiveRoomLabelVisibleEnable: 13
458
464
  },
459
465
  add_css
460
466
  );
@@ -6,7 +6,9 @@ import {
6
6
  detach,
7
7
  init,
8
8
  insert,
9
+ listen,
9
10
  noop,
11
+ run_all,
10
12
  safe_not_equal,
11
13
  svg_element
12
14
  } from "svelte/internal";
@@ -20,22 +22,35 @@ function add_css(target) {
20
22
  function create_fragment(ctx) {
21
23
  let path;
22
24
  let path_fill_value;
25
+ let mounted;
26
+ let dispose;
23
27
 
24
28
  return {
25
29
  c() {
26
30
  path = svg_element("path");
27
- attr(path, "d", /*_pathD*/ ctx[0]);
31
+ attr(path, "d", /*_pathD*/ ctx[2]);
28
32
  attr(path, "fill", path_fill_value = `#fff`);
29
33
  attr(path, "class", "svelte-11takew");
30
34
  },
31
35
  m(target, anchor) {
32
36
  insert(target, path, anchor);
37
+
38
+ if (!mounted) {
39
+ dispose = [
40
+ listen(path, "mouseenter", /*onMouseEnter*/ ctx[0]),
41
+ listen(path, "mouseleave", /*onMouseLeave*/ ctx[1])
42
+ ];
43
+
44
+ mounted = true;
45
+ }
33
46
  },
34
47
  p: noop,
35
48
  i: noop,
36
49
  o: noop,
37
50
  d(detaching) {
38
51
  if (detaching) detach(path);
52
+ mounted = false;
53
+ run_all(dispose);
39
54
  }
40
55
  };
41
56
  }
@@ -43,6 +58,16 @@ function create_fragment(ctx) {
43
58
  function instance($$self, $$props, $$invalidate) {
44
59
  let { room } = $$props;
45
60
  let { floorplanData } = $$props;
61
+ let { hoveredRoom } = $$props;
62
+
63
+ function onMouseEnter() {
64
+ hoveredRoom.set(room);
65
+ }
66
+
67
+ function onMouseLeave() {
68
+ hoveredRoom.set(undefined);
69
+ }
70
+
46
71
  const { bounding } = floorplanData;
47
72
 
48
73
  const _pathD = pathD(room.path, {
@@ -51,17 +76,31 @@ function instance($$self, $$props, $$invalidate) {
51
76
  });
52
77
 
53
78
  $$self.$$set = $$props => {
54
- if ('room' in $$props) $$invalidate(1, room = $$props.room);
55
- if ('floorplanData' in $$props) $$invalidate(2, floorplanData = $$props.floorplanData);
79
+ if ('room' in $$props) $$invalidate(3, room = $$props.room);
80
+ if ('floorplanData' in $$props) $$invalidate(4, floorplanData = $$props.floorplanData);
81
+ if ('hoveredRoom' in $$props) $$invalidate(5, hoveredRoom = $$props.hoveredRoom);
56
82
  };
57
83
 
58
- return [_pathD, room, floorplanData];
84
+ return [onMouseEnter, onMouseLeave, _pathD, room, floorplanData, hoveredRoom];
59
85
  }
60
86
 
61
87
  class Component extends SvelteComponent {
62
88
  constructor(options) {
63
89
  super();
64
- init(this, options, instance, create_fragment, safe_not_equal, { room: 1, floorplanData: 2 }, add_css);
90
+
91
+ init(
92
+ this,
93
+ options,
94
+ instance,
95
+ create_fragment,
96
+ safe_not_equal,
97
+ {
98
+ room: 3,
99
+ floorplanData: 4,
100
+ hoveredRoom: 5
101
+ },
102
+ add_css
103
+ );
65
104
  }
66
105
  }
67
106
 
@@ -32,11 +32,11 @@ function add_css(target) {
32
32
 
33
33
  function get_each_context(ctx, list, i) {
34
34
  const child_ctx = ctx.slice();
35
- child_ctx[4] = list[i];
35
+ child_ctx[5] = list[i];
36
36
  return child_ctx;
37
37
  }
38
38
 
39
- // (10:4) {#each floorplanData.floorDatas[floorIndex].rooms as room (room.id)}
39
+ // (11:4) {#each floorplanData.floorDatas[floorIndex].rooms as room (room.id)}
40
40
  function create_each_block(key_1, ctx) {
41
41
  let first;
42
42
  let room;
@@ -44,8 +44,9 @@ function create_each_block(key_1, ctx) {
44
44
 
45
45
  const room_spread_levels = [
46
46
  {
47
- room: /*room*/ ctx[4],
48
- floorplanData: /*floorplanData*/ ctx[1]
47
+ room: /*room*/ ctx[5],
48
+ floorplanData: /*floorplanData*/ ctx[1],
49
+ hoveredRoom: /*hoveredRoom*/ ctx[2]
49
50
  }
50
51
  ];
51
52
 
@@ -73,11 +74,12 @@ function create_each_block(key_1, ctx) {
73
74
  p(new_ctx, dirty) {
74
75
  ctx = new_ctx;
75
76
 
76
- const room_changes = (dirty & /*floorplanData, floorIndex*/ 3)
77
+ const room_changes = (dirty & /*floorplanData, floorIndex, hoveredRoom*/ 7)
77
78
  ? get_spread_update(room_spread_levels, [
78
79
  {
79
- room: /*room*/ ctx[4],
80
- floorplanData: /*floorplanData*/ ctx[1]
80
+ room: /*room*/ ctx[5],
81
+ floorplanData: /*floorplanData*/ ctx[1],
82
+ hoveredRoom: /*hoveredRoom*/ ctx[2]
81
83
  }
82
84
  ])
83
85
  : {};
@@ -108,7 +110,7 @@ function create_fragment(ctx) {
108
110
  let svg_viewBox_value;
109
111
  let current;
110
112
  let each_value = /*floorplanData*/ ctx[1].floorDatas[/*floorIndex*/ ctx[0]].rooms;
111
- const get_key = ctx => /*room*/ ctx[4].id;
113
+ const get_key = ctx => /*room*/ ctx[5].id;
112
114
 
113
115
  for (let i = 0; i < each_value.length; i += 1) {
114
116
  let child_ctx = get_each_context(ctx, each_value, i);
@@ -127,7 +129,7 @@ function create_fragment(ctx) {
127
129
 
128
130
  attr(svg, "width", "100%");
129
131
  attr(svg, "height", "100%");
130
- attr(svg, "viewBox", svg_viewBox_value = `0 0 ${/*boundingWidth*/ ctx[2]} ${/*boundingHeight*/ ctx[3]}`);
132
+ attr(svg, "viewBox", svg_viewBox_value = `0 0 ${/*boundingWidth*/ ctx[3]} ${/*boundingHeight*/ ctx[4]}`);
131
133
  attr(svg, "class", "svelte-1tk06jk");
132
134
  attr(div, "class", "floorplan-plugin__room-highlight svelte-1tk06jk");
133
135
  },
@@ -142,7 +144,7 @@ function create_fragment(ctx) {
142
144
  current = true;
143
145
  },
144
146
  p(ctx, [dirty]) {
145
- if (dirty & /*floorplanData, floorIndex*/ 3) {
147
+ if (dirty & /*floorplanData, floorIndex, hoveredRoom*/ 7) {
146
148
  each_value = /*floorplanData*/ ctx[1].floorDatas[/*floorIndex*/ ctx[0]].rooms;
147
149
  group_outros();
148
150
  each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, svg, outro_and_destroy_block, create_each_block, null, get_each_context);
@@ -178,21 +180,36 @@ function create_fragment(ctx) {
178
180
  function instance($$self, $$props, $$invalidate) {
179
181
  let { floorIndex } = $$props;
180
182
  let { floorplanData } = $$props;
183
+ let { hoveredRoom } = $$props;
181
184
  const boundingWidth = floorplanData.bounding.max.x - floorplanData.bounding.min.x;
182
185
  const boundingHeight = floorplanData.bounding.max.y - floorplanData.bounding.min.y;
183
186
 
184
187
  $$self.$$set = $$props => {
185
188
  if ('floorIndex' in $$props) $$invalidate(0, floorIndex = $$props.floorIndex);
186
189
  if ('floorplanData' in $$props) $$invalidate(1, floorplanData = $$props.floorplanData);
190
+ if ('hoveredRoom' in $$props) $$invalidate(2, hoveredRoom = $$props.hoveredRoom);
187
191
  };
188
192
 
189
- return [floorIndex, floorplanData, boundingWidth, boundingHeight];
193
+ return [floorIndex, floorplanData, hoveredRoom, boundingWidth, boundingHeight];
190
194
  }
191
195
 
192
196
  class Component extends SvelteComponent {
193
197
  constructor(options) {
194
198
  super();
195
- init(this, options, instance, create_fragment, safe_not_equal, { floorIndex: 0, floorplanData: 1 }, add_css);
199
+
200
+ init(
201
+ this,
202
+ options,
203
+ instance,
204
+ create_fragment,
205
+ safe_not_equal,
206
+ {
207
+ floorIndex: 0,
208
+ floorplanData: 1,
209
+ hoveredRoom: 2
210
+ },
211
+ add_css
212
+ );
196
213
  }
197
214
  }
198
215