@realsee/dnalogel 2.0.0-alpha.18 → 2.0.0-alpha.20

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 (177) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/CSS3DRenderPlugin/index.d.ts +2 -2
  3. package/dist/CameraMovementPlugin/index.js +15 -40
  4. package/dist/CameraMovementPlugin/typing.d.ts +1 -1
  5. package/dist/ModelChassisCompassPlugin/index.js +3 -28
  6. package/dist/ModelEntryDoorGuidePlugin/index.d.ts +1 -1
  7. package/dist/ModelEntryDoorGuidePlugin/index.js +8 -33
  8. package/dist/ModelItemLabelPlugin/events.type.d.ts +2 -2
  9. package/dist/ModelItemLabelPlugin/typings.d.ts +2 -2
  10. package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +1 -1
  11. package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
  12. package/dist/ModelTVVideoPlugin/index.d.ts +1 -1
  13. package/dist/ModelTVVideoPlugin/index.js +3 -28
  14. package/dist/PanoCompassPlugin/index.js +53 -86
  15. package/dist/PanoCursorRaycasterPlugin/index.d.ts +1 -1
  16. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -8
  17. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
  18. package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +2 -2
  19. package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
  20. package/dist/PanoMeasurePlugin/Controller/index.d.ts +3 -3
  21. package/dist/PanoMeasurePlugin/Model/index.d.ts +2 -2
  22. package/dist/PanoMeasurePlugin/Model/line.d.ts +5 -5
  23. package/dist/PanoMeasurePlugin/Model/point.d.ts +2 -2
  24. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +3 -3
  25. package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +2 -2
  26. package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +1 -1
  27. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
  28. package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
  29. package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
  30. package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +2 -1
  31. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -1
  32. package/dist/PanoMeasurePlugin/index.d.ts +1 -1
  33. package/dist/PanoMeasurePlugin/index.js +2 -0
  34. package/dist/PanoMeasurePlugin/typings/event.type.d.ts +4 -4
  35. package/dist/PanoMeasurePlugin/utils/clearGroup.d.ts +1 -1
  36. package/dist/PanoMeasurePlugin/utils/constants.d.ts +1 -1
  37. package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +3 -3
  38. package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +1 -1
  39. package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +3 -3
  40. package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +2 -2
  41. package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +1 -1
  42. package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -1
  43. package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -1
  44. package/dist/PanoRulerPlugin/index.d.ts +1 -1
  45. package/dist/PanoRulerPlugin/index.js +3 -28
  46. package/dist/PanoSpatialTagPlugin/typings.d.ts +1 -1
  47. package/dist/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.d.ts +0 -0
  48. package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +2 -2
  49. package/dist/floorplan/ModelFloorplanPlugin/index.js +1253 -1284
  50. package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +61 -183
  51. package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +28 -15
  52. package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +1 -1
  53. package/dist/floorplan/TopviewFloorplanPlugin/index.js +1243 -1235
  54. package/dist/floorplan/utils/formatPosition.d.ts +1 -1
  55. package/dist/index.es.js +1431 -1435
  56. package/dist/index.js +1430 -1434
  57. package/dist/index.umd.js +1430 -1434
  58. package/dist/shared-utils/three/getExtraModelLoader.d.ts +1 -1
  59. package/dist/shared-utils/three/getNormal.d.ts +1 -1
  60. package/dist/shared-utils/three/getTextureLoader.d.ts +1 -1
  61. package/dist/shared-utils/three/loadFbxObj.d.ts +1 -1
  62. package/dist/shared-utils/vectorTocoordinates.d.ts +1 -1
  63. package/docs/assets/search.js +1 -1
  64. package/docs/classes/ModelRoomLabelController.html +6 -6
  65. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  66. package/docs/enums/ModelFloorplanErrorType.html +1 -1
  67. package/docs/interfaces/LineJson.html +1 -1
  68. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  69. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  70. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  71. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  72. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  73. package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
  74. package/docs/interfaces/ModelFloorplanViewEvent.html +2 -2
  75. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  76. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  77. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  78. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  79. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  80. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  81. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  82. package/docs/interfaces/PanoCompassPluginData.html +1 -1
  83. package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
  84. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  85. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  86. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  87. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  88. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  89. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  90. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  91. package/docs/interfaces/PointJson.html +1 -1
  92. package/docs/interfaces/RoomLabel.html +7 -7
  93. package/docs/interfaces/TopviewFloorplanPluginParameterType.html +19 -1
  94. package/docs/modules.html +12 -12
  95. package/libs/CSS3DRenderPlugin/index.d.ts +2 -2
  96. package/libs/CameraMovementPlugin/index.js +15 -24
  97. package/libs/CameraMovementPlugin/typing.d.ts +1 -1
  98. package/libs/ModelChassisCompassPlugin/index.js +3 -12
  99. package/libs/ModelEntryDoorGuidePlugin/index.d.ts +1 -1
  100. package/libs/ModelEntryDoorGuidePlugin/index.js +8 -17
  101. package/libs/ModelItemLabelPlugin/events.type.d.ts +2 -2
  102. package/libs/ModelItemLabelPlugin/typings.d.ts +2 -2
  103. package/libs/ModelItemLabelPlugin/utils/parseData.d.ts +1 -1
  104. package/libs/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
  105. package/libs/ModelTVVideoPlugin/index.d.ts +1 -1
  106. package/libs/ModelTVVideoPlugin/index.js +3 -12
  107. package/libs/ModelTVVideoPlugin/typings.js +1 -0
  108. package/libs/PanoCompassPlugin/index.js +49 -64
  109. package/libs/PanoCursorRaycasterPlugin/index.d.ts +1 -1
  110. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -8
  111. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
  112. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +2 -2
  113. package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
  114. package/libs/PanoMeasurePlugin/Controller/index.d.ts +3 -3
  115. package/libs/PanoMeasurePlugin/Model/index.d.ts +2 -2
  116. package/libs/PanoMeasurePlugin/Model/line.d.ts +5 -5
  117. package/libs/PanoMeasurePlugin/Model/line.js +1 -1
  118. package/libs/PanoMeasurePlugin/Model/point.d.ts +2 -2
  119. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +3 -3
  120. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +2 -2
  121. package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +1 -1
  122. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
  123. package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
  124. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
  125. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +2 -1
  126. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -1
  127. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +2 -0
  128. package/libs/PanoMeasurePlugin/index.d.ts +1 -1
  129. package/libs/PanoMeasurePlugin/typings/event.type.d.ts +4 -4
  130. package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +1 -1
  131. package/libs/PanoMeasurePlugin/utils/constants.d.ts +1 -1
  132. package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +3 -3
  133. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +1 -1
  134. package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +3 -3
  135. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +2 -2
  136. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +1 -1
  137. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -1
  138. package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -1
  139. package/libs/PanoMeasurePlugin/utils/mouseGroup.js +1 -0
  140. package/libs/PanoRulerPlugin/index.d.ts +1 -1
  141. package/libs/PanoRulerPlugin/index.js +3 -12
  142. package/libs/PanoSpatialTagPlugin/typings.d.ts +1 -1
  143. package/libs/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.d.ts +0 -0
  144. package/libs/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.js +0 -0
  145. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Camera.js +2 -2
  146. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Compass.js +0 -0
  147. package/libs/floorplan/{ModelFloorplanPlugin/Components/CurrentFloor → Components}/CurrentFloor.js +73 -80
  148. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Main.js +186 -105
  149. package/libs/floorplan/Components/RoomHighlight/Room.js +5 -7
  150. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +24 -116
  151. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RoomLabels/RoomLabel.js +0 -0
  152. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RoomLabels/RoomLabels.js +2 -2
  153. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +26 -22
  154. package/libs/floorplan/Components/RuleLabels/RuleItem.js +284 -0
  155. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RuleLabels/RuleLabels.js +82 -32
  156. package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +2 -2
  157. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +34 -43
  158. package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +22 -33
  159. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -12
  160. package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +28 -15
  161. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +80 -54
  162. package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +1 -1
  163. package/libs/floorplan/TopviewFloorplanPlugin/style.js +0 -1
  164. package/libs/floorplan/utils/formatData.js +28 -43
  165. package/libs/floorplan/utils/formatPosition.d.ts +1 -1
  166. package/libs/floorplan/utils/formatPosition.js +2 -2
  167. package/libs/shared-utils/five/changeMode.js +12 -23
  168. package/libs/shared-utils/three/getExtraModelLoader.d.ts +1 -1
  169. package/libs/shared-utils/three/getNormal.d.ts +1 -1
  170. package/libs/shared-utils/three/getTextureLoader.d.ts +1 -1
  171. package/libs/shared-utils/three/loadFbxObj.d.ts +1 -1
  172. package/libs/shared-utils/three/loadFbxObj.js +9 -20
  173. package/libs/shared-utils/three/loadTexture.js +6 -17
  174. package/libs/shared-utils/to.js +10 -21
  175. package/libs/shared-utils/vectorTocoordinates.d.ts +1 -1
  176. package/package.json +2 -2
  177. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.js +0 -301
@@ -10,6 +10,7 @@ import {
10
10
  create_component,
11
11
  create_in_transition,
12
12
  destroy_component,
13
+ destroy_each,
13
14
  detach,
14
15
  element,
15
16
  empty,
@@ -24,54 +25,47 @@ import {
24
25
  transition_out
25
26
  } from "svelte/internal";
26
27
 
27
- import Camera from './Camera';
28
- import Compass from './Compass';
29
- import CurrentFloor from './CurrentFloor/CurrentFloor';
30
28
  import { linear } from 'svelte/easing';
31
29
  import { fade } from 'svelte/transition';
30
+ import Camera from './Camera';
31
+ import Compass from './Compass';
32
+ import CurrentFloor from './CurrentFloor';
32
33
 
33
34
  function add_css(target) {
34
35
  append_styles(target, "svelte-177x2q7", ".floorplan-main.svelte-177x2q7{width:100%;height:100%}");
35
36
  }
36
37
 
37
- // (24:0) {#if visible}
38
+ function get_each_context(ctx, list, i) {
39
+ const child_ctx = ctx.slice();
40
+ child_ctx[13] = list[i];
41
+ return child_ctx;
42
+ }
43
+
44
+ // (21:0) {#if visible}
38
45
  function create_if_block(ctx) {
39
46
  let div;
40
- let currentfloor;
41
47
  let t0;
42
48
  let camera;
43
49
  let t1;
44
50
  let div_intro;
45
51
  let current;
52
+ let each_value = /*floorplanData*/ ctx[9].floorDatas;
53
+ let each_blocks = [];
46
54
 
47
- const currentfloor_spread_levels = [
48
- {
49
- five: /*five*/ ctx[2],
50
- pxmm: /*pxmm*/ ctx[1],
51
- floorIndex: /*floorIndex*/ ctx[6],
52
- hoverEnable: /*hoverEnable*/ ctx[7],
53
- floorplanData: /*floorplanData*/ ctx[11],
54
- getLabelElement: /*getLabelElement*/ ctx[15],
55
- roomLabelsEnable: /*roomLabelsEnable*/ ctx[9],
56
- ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[10],
57
- onRoomHeightClick: /*onRoomHeightClick*/ ctx[14]
58
- }
59
- ];
60
-
61
- let currentfloor_props = {};
62
-
63
- for (let i = 0; i < currentfloor_spread_levels.length; i += 1) {
64
- currentfloor_props = assign(currentfloor_props, currentfloor_spread_levels[i]);
55
+ for (let i = 0; i < each_value.length; i += 1) {
56
+ each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
65
57
  }
66
58
 
67
- currentfloor = new CurrentFloor({ props: currentfloor_props });
59
+ const out = i => transition_out(each_blocks[i], 1, 1, () => {
60
+ each_blocks[i] = null;
61
+ });
68
62
 
69
63
  const camera_spread_levels = [
70
64
  {
71
- panoIndex: /*panoIndex*/ ctx[5],
72
- floorplanData: /*floorplanData*/ ctx[11],
73
- lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[12],
74
- cameraImageUrl: /*cameraImageUrl*/ ctx[13]
65
+ panoIndex: /*panoIndex*/ ctx[3],
66
+ floorplanData: /*floorplanData*/ ctx[9],
67
+ lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[10],
68
+ cameraImageUrl: /*cameraImageUrl*/ ctx[11]
75
69
  }
76
70
  ];
77
71
 
@@ -82,12 +76,16 @@ function create_if_block(ctx) {
82
76
  }
83
77
 
84
78
  camera = new Camera({ props: camera_props });
85
- let if_block = /*compassEnable*/ ctx[8] && create_if_block_1(ctx);
79
+ let if_block = /*compassEnable*/ ctx[6] && create_if_block_1(ctx);
86
80
 
87
81
  return {
88
82
  c() {
89
83
  div = element("div");
90
- create_component(currentfloor.$$.fragment);
84
+
85
+ for (let i = 0; i < each_blocks.length; i += 1) {
86
+ each_blocks[i].c();
87
+ }
88
+
91
89
  t0 = space();
92
90
  create_component(camera.$$.fragment);
93
91
  t1 = space();
@@ -96,7 +94,11 @@ function create_if_block(ctx) {
96
94
  },
97
95
  m(target, anchor) {
98
96
  insert(target, div, anchor);
99
- mount_component(currentfloor, div, null);
97
+
98
+ for (let i = 0; i < each_blocks.length; i += 1) {
99
+ each_blocks[i].m(div, null);
100
+ }
101
+
100
102
  append(div, t0);
101
103
  mount_component(camera, div, null);
102
104
  append(div, t1);
@@ -106,42 +108,51 @@ function create_if_block(ctx) {
106
108
  p(new_ctx, dirty) {
107
109
  ctx = new_ctx;
108
110
 
109
- const currentfloor_changes = (dirty & /*five, pxmm, floorIndex, hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, onRoomHeightClick*/ 52934)
110
- ? get_spread_update(currentfloor_spread_levels, [
111
- {
112
- five: /*five*/ ctx[2],
113
- pxmm: /*pxmm*/ ctx[1],
114
- floorIndex: /*floorIndex*/ ctx[6],
115
- hoverEnable: /*hoverEnable*/ ctx[7],
116
- floorplanData: /*floorplanData*/ ctx[11],
117
- getLabelElement: /*getLabelElement*/ ctx[15],
118
- roomLabelsEnable: /*roomLabelsEnable*/ ctx[9],
119
- ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[10],
120
- onRoomHeightClick: /*onRoomHeightClick*/ ctx[14]
111
+ if (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, floorIndex*/ 5040) {
112
+ each_value = /*floorplanData*/ ctx[9].floorDatas;
113
+ let i;
114
+
115
+ for (i = 0; i < each_value.length; i += 1) {
116
+ const child_ctx = get_each_context(ctx, each_value, i);
117
+
118
+ if (each_blocks[i]) {
119
+ each_blocks[i].p(child_ctx, dirty);
120
+ transition_in(each_blocks[i], 1);
121
+ } else {
122
+ each_blocks[i] = create_each_block(child_ctx);
123
+ each_blocks[i].c();
124
+ transition_in(each_blocks[i], 1);
125
+ each_blocks[i].m(div, t0);
121
126
  }
122
- ])
123
- : {};
127
+ }
124
128
 
125
- currentfloor.$set(currentfloor_changes);
129
+ group_outros();
126
130
 
127
- const camera_changes = (dirty & /*panoIndex, floorplanData, lastPanoramaLongitude, cameraImageUrl*/ 14368)
131
+ for (i = each_value.length; i < each_blocks.length; i += 1) {
132
+ out(i);
133
+ }
134
+
135
+ check_outros();
136
+ }
137
+
138
+ const camera_changes = (dirty & /*panoIndex, floorplanData, lastPanoramaLongitude, cameraImageUrl*/ 3592)
128
139
  ? get_spread_update(camera_spread_levels, [
129
140
  {
130
- panoIndex: /*panoIndex*/ ctx[5],
131
- floorplanData: /*floorplanData*/ ctx[11],
132
- lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[12],
133
- cameraImageUrl: /*cameraImageUrl*/ ctx[13]
141
+ panoIndex: /*panoIndex*/ ctx[3],
142
+ floorplanData: /*floorplanData*/ ctx[9],
143
+ lastPanoramaLongitude: /*lastPanoramaLongitude*/ ctx[10],
144
+ cameraImageUrl: /*cameraImageUrl*/ ctx[11]
134
145
  }
135
146
  ])
136
147
  : {};
137
148
 
138
149
  camera.$set(camera_changes);
139
150
 
140
- if (/*compassEnable*/ ctx[8]) {
151
+ if (/*compassEnable*/ ctx[6]) {
141
152
  if (if_block) {
142
153
  if_block.p(ctx, dirty);
143
154
 
144
- if (dirty & /*compassEnable*/ 256) {
155
+ if (dirty & /*compassEnable*/ 64) {
145
156
  transition_in(if_block, 1);
146
157
  }
147
158
  } else {
@@ -162,14 +173,18 @@ function create_if_block(ctx) {
162
173
  },
163
174
  i(local) {
164
175
  if (current) return;
165
- transition_in(currentfloor.$$.fragment, local);
176
+
177
+ for (let i = 0; i < each_value.length; i += 1) {
178
+ transition_in(each_blocks[i]);
179
+ }
180
+
166
181
  transition_in(camera.$$.fragment, local);
167
182
  transition_in(if_block);
168
183
 
169
184
  if (!div_intro) {
170
185
  add_render_callback(() => {
171
186
  div_intro = create_in_transition(div, fade, {
172
- duration: /*duration*/ ctx[3],
187
+ duration: /*duration*/ ctx[0],
173
188
  easing: linear
174
189
  });
175
190
 
@@ -180,29 +195,107 @@ function create_if_block(ctx) {
180
195
  current = true;
181
196
  },
182
197
  o(local) {
183
- transition_out(currentfloor.$$.fragment, local);
198
+ each_blocks = each_blocks.filter(Boolean);
199
+
200
+ for (let i = 0; i < each_blocks.length; i += 1) {
201
+ transition_out(each_blocks[i]);
202
+ }
203
+
184
204
  transition_out(camera.$$.fragment, local);
185
205
  transition_out(if_block);
186
206
  current = false;
187
207
  },
188
208
  d(detaching) {
189
209
  if (detaching) detach(div);
190
- destroy_component(currentfloor);
210
+ destroy_each(each_blocks, detaching);
191
211
  destroy_component(camera);
192
212
  if (if_block) if_block.d();
193
213
  }
194
214
  };
195
215
  }
196
216
 
197
- // (40:4) {#if compassEnable}
217
+ // (23:4) {#each floorplanData.floorDatas as floorData}
218
+ function create_each_block(ctx) {
219
+ let currentfloor;
220
+ let current;
221
+
222
+ const currentfloor_spread_levels = [
223
+ {
224
+ hoverEnable: /*hoverEnable*/ ctx[5],
225
+ floorplanData: /*floorplanData*/ ctx[9],
226
+ getLabelElement: /*getLabelElement*/ ctx[12],
227
+ roomLabelsEnable: /*roomLabelsEnable*/ ctx[7],
228
+ ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8]
229
+ },
230
+ {
231
+ floorIndex: /*floorData*/ ctx[13].floorIndex
232
+ },
233
+ {
234
+ isCurrent: /*floorData*/ ctx[13].floorIndex === /*floorIndex*/ ctx[4]
235
+ }
236
+ ];
237
+
238
+ let currentfloor_props = {};
239
+
240
+ for (let i = 0; i < currentfloor_spread_levels.length; i += 1) {
241
+ currentfloor_props = assign(currentfloor_props, currentfloor_spread_levels[i]);
242
+ }
243
+
244
+ currentfloor = new CurrentFloor({ props: currentfloor_props });
245
+
246
+ return {
247
+ c() {
248
+ create_component(currentfloor.$$.fragment);
249
+ },
250
+ m(target, anchor) {
251
+ mount_component(currentfloor, target, anchor);
252
+ current = true;
253
+ },
254
+ p(ctx, dirty) {
255
+ const currentfloor_changes = (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, floorIndex*/ 5040)
256
+ ? get_spread_update(currentfloor_spread_levels, [
257
+ dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable*/ 5024 && {
258
+ hoverEnable: /*hoverEnable*/ ctx[5],
259
+ floorplanData: /*floorplanData*/ ctx[9],
260
+ getLabelElement: /*getLabelElement*/ ctx[12],
261
+ roomLabelsEnable: /*roomLabelsEnable*/ ctx[7],
262
+ ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8]
263
+ },
264
+ dirty & /*floorplanData*/ 512 && {
265
+ floorIndex: /*floorData*/ ctx[13].floorIndex
266
+ },
267
+ dirty & /*floorplanData, floorIndex*/ 528 && {
268
+ isCurrent: /*floorData*/ ctx[13].floorIndex === /*floorIndex*/ ctx[4]
269
+ }
270
+ ])
271
+ : {};
272
+
273
+ currentfloor.$set(currentfloor_changes);
274
+ },
275
+ i(local) {
276
+ if (current) return;
277
+ transition_in(currentfloor.$$.fragment, local);
278
+ current = true;
279
+ },
280
+ o(local) {
281
+ transition_out(currentfloor.$$.fragment, local);
282
+ current = false;
283
+ },
284
+ d(detaching) {
285
+ destroy_component(currentfloor, detaching);
286
+ }
287
+ };
288
+ }
289
+
290
+ // (37:4) {#if compassEnable}
198
291
  function create_if_block_1(ctx) {
199
292
  let compass;
200
293
  let current;
201
294
 
202
295
  compass = new Compass({
203
296
  props: {
204
- floorplanData: /*floorplanData*/ ctx[11],
205
- northDesc: /*northDesc*/ ctx[0]
297
+ floorplanData: /*floorplanData*/ ctx[9],
298
+ northDesc: /*northDesc*/ ctx[2]
206
299
  }
207
300
  });
208
301
 
@@ -216,8 +309,8 @@ function create_if_block_1(ctx) {
216
309
  },
217
310
  p(ctx, dirty) {
218
311
  const compass_changes = {};
219
- if (dirty & /*floorplanData*/ 2048) compass_changes.floorplanData = /*floorplanData*/ ctx[11];
220
- if (dirty & /*northDesc*/ 1) compass_changes.northDesc = /*northDesc*/ ctx[0];
312
+ if (dirty & /*floorplanData*/ 512) compass_changes.floorplanData = /*floorplanData*/ ctx[9];
313
+ if (dirty & /*northDesc*/ 4) compass_changes.northDesc = /*northDesc*/ ctx[2];
221
314
  compass.$set(compass_changes);
222
315
  },
223
316
  i(local) {
@@ -238,7 +331,7 @@ function create_if_block_1(ctx) {
238
331
  function create_fragment(ctx) {
239
332
  let if_block_anchor;
240
333
  let current;
241
- let if_block = /*visible*/ ctx[4] && create_if_block(ctx);
334
+ let if_block = /*visible*/ ctx[1] && create_if_block(ctx);
242
335
 
243
336
  return {
244
337
  c() {
@@ -251,11 +344,11 @@ function create_fragment(ctx) {
251
344
  current = true;
252
345
  },
253
346
  p(ctx, [dirty]) {
254
- if (/*visible*/ ctx[4]) {
347
+ if (/*visible*/ ctx[1]) {
255
348
  if (if_block) {
256
349
  if_block.p(ctx, dirty);
257
350
 
258
- if (dirty & /*visible*/ 16) {
351
+ if (dirty & /*visible*/ 2) {
259
352
  transition_in(if_block, 1);
260
353
  }
261
354
  } else {
@@ -291,11 +384,9 @@ function create_fragment(ctx) {
291
384
  }
292
385
 
293
386
  function instance($$self, $$props, $$invalidate) {
294
- let { northDesc } = $$props;
295
- let { pxmm } = $$props;
296
- let { five } = $$props;
297
387
  let { duration = 0 } = $$props;
298
388
  let { visible } = $$props;
389
+ let { northDesc } = $$props;
299
390
  let { panoIndex } = $$props;
300
391
  let { floorIndex } = $$props;
301
392
  let { hoverEnable } = $$props;
@@ -305,34 +396,28 @@ function instance($$self, $$props, $$invalidate) {
305
396
  let { floorplanData } = $$props;
306
397
  let { lastPanoramaLongitude } = $$props;
307
398
  let { cameraImageUrl } = $$props;
308
- let { onRoomHeightClick } = $$props;
309
399
  let { getLabelElement } = $$props;
310
400
 
311
401
  $$self.$$set = $$props => {
312
- if ('northDesc' in $$props) $$invalidate(0, northDesc = $$props.northDesc);
313
- if ('pxmm' in $$props) $$invalidate(1, pxmm = $$props.pxmm);
314
- if ('five' in $$props) $$invalidate(2, five = $$props.five);
315
- if ('duration' in $$props) $$invalidate(3, duration = $$props.duration);
316
- if ('visible' in $$props) $$invalidate(4, visible = $$props.visible);
317
- if ('panoIndex' in $$props) $$invalidate(5, panoIndex = $$props.panoIndex);
318
- if ('floorIndex' in $$props) $$invalidate(6, floorIndex = $$props.floorIndex);
319
- if ('hoverEnable' in $$props) $$invalidate(7, hoverEnable = $$props.hoverEnable);
320
- if ('compassEnable' in $$props) $$invalidate(8, compassEnable = $$props.compassEnable);
321
- if ('roomLabelsEnable' in $$props) $$invalidate(9, roomLabelsEnable = $$props.roomLabelsEnable);
322
- if ('ruleLabelsEnable' in $$props) $$invalidate(10, ruleLabelsEnable = $$props.ruleLabelsEnable);
323
- if ('floorplanData' in $$props) $$invalidate(11, floorplanData = $$props.floorplanData);
324
- if ('lastPanoramaLongitude' in $$props) $$invalidate(12, lastPanoramaLongitude = $$props.lastPanoramaLongitude);
325
- if ('cameraImageUrl' in $$props) $$invalidate(13, cameraImageUrl = $$props.cameraImageUrl);
326
- if ('onRoomHeightClick' in $$props) $$invalidate(14, onRoomHeightClick = $$props.onRoomHeightClick);
327
- if ('getLabelElement' in $$props) $$invalidate(15, getLabelElement = $$props.getLabelElement);
402
+ if ('duration' in $$props) $$invalidate(0, duration = $$props.duration);
403
+ if ('visible' in $$props) $$invalidate(1, visible = $$props.visible);
404
+ if ('northDesc' in $$props) $$invalidate(2, northDesc = $$props.northDesc);
405
+ if ('panoIndex' in $$props) $$invalidate(3, panoIndex = $$props.panoIndex);
406
+ if ('floorIndex' in $$props) $$invalidate(4, floorIndex = $$props.floorIndex);
407
+ if ('hoverEnable' in $$props) $$invalidate(5, hoverEnable = $$props.hoverEnable);
408
+ if ('compassEnable' in $$props) $$invalidate(6, compassEnable = $$props.compassEnable);
409
+ if ('roomLabelsEnable' in $$props) $$invalidate(7, roomLabelsEnable = $$props.roomLabelsEnable);
410
+ if ('ruleLabelsEnable' in $$props) $$invalidate(8, ruleLabelsEnable = $$props.ruleLabelsEnable);
411
+ if ('floorplanData' in $$props) $$invalidate(9, floorplanData = $$props.floorplanData);
412
+ if ('lastPanoramaLongitude' in $$props) $$invalidate(10, lastPanoramaLongitude = $$props.lastPanoramaLongitude);
413
+ if ('cameraImageUrl' in $$props) $$invalidate(11, cameraImageUrl = $$props.cameraImageUrl);
414
+ if ('getLabelElement' in $$props) $$invalidate(12, getLabelElement = $$props.getLabelElement);
328
415
  };
329
416
 
330
417
  return [
331
- northDesc,
332
- pxmm,
333
- five,
334
418
  duration,
335
419
  visible,
420
+ northDesc,
336
421
  panoIndex,
337
422
  floorIndex,
338
423
  hoverEnable,
@@ -342,7 +427,6 @@ function instance($$self, $$props, $$invalidate) {
342
427
  floorplanData,
343
428
  lastPanoramaLongitude,
344
429
  cameraImageUrl,
345
- onRoomHeightClick,
346
430
  getLabelElement
347
431
  ];
348
432
  }
@@ -358,22 +442,19 @@ class Component extends SvelteComponent {
358
442
  create_fragment,
359
443
  safe_not_equal,
360
444
  {
361
- northDesc: 0,
362
- pxmm: 1,
363
- five: 2,
364
- duration: 3,
365
- visible: 4,
366
- panoIndex: 5,
367
- floorIndex: 6,
368
- hoverEnable: 7,
369
- compassEnable: 8,
370
- roomLabelsEnable: 9,
371
- ruleLabelsEnable: 10,
372
- floorplanData: 11,
373
- lastPanoramaLongitude: 12,
374
- cameraImageUrl: 13,
375
- onRoomHeightClick: 14,
376
- getLabelElement: 15
445
+ duration: 0,
446
+ visible: 1,
447
+ northDesc: 2,
448
+ panoIndex: 3,
449
+ floorIndex: 4,
450
+ hoverEnable: 5,
451
+ compassEnable: 6,
452
+ roomLabelsEnable: 7,
453
+ ruleLabelsEnable: 8,
454
+ floorplanData: 9,
455
+ lastPanoramaLongitude: 10,
456
+ cameraImageUrl: 11,
457
+ getLabelElement: 12
377
458
  },
378
459
  add_css
379
460
  );
@@ -41,29 +41,27 @@ function create_fragment(ctx) {
41
41
  }
42
42
 
43
43
  function instance($$self, $$props, $$invalidate) {
44
- let { pxmm } = $$props;
45
44
  let { room } = $$props;
46
45
  let { floorplanData } = $$props;
47
46
  const { bounding } = floorplanData;
48
47
 
49
48
  const _pathD = pathD(room.path, {
50
49
  needZ: true,
51
- format: vector => formatFloorplanPoint(vector, pxmm, bounding)
50
+ format: vector => formatFloorplanPoint(vector, bounding)
52
51
  });
53
52
 
54
53
  $$self.$$set = $$props => {
55
- if ('pxmm' in $$props) $$invalidate(1, pxmm = $$props.pxmm);
56
- if ('room' in $$props) $$invalidate(2, room = $$props.room);
57
- if ('floorplanData' in $$props) $$invalidate(3, floorplanData = $$props.floorplanData);
54
+ if ('room' in $$props) $$invalidate(1, room = $$props.room);
55
+ if ('floorplanData' in $$props) $$invalidate(2, floorplanData = $$props.floorplanData);
58
56
  };
59
57
 
60
- return [_pathD, pxmm, room, floorplanData];
58
+ return [_pathD, room, floorplanData];
61
59
  }
62
60
 
63
61
  class Component extends SvelteComponent {
64
62
  constructor(options) {
65
63
  super();
66
- init(this, options, instance, create_fragment, safe_not_equal, { pxmm: 1, room: 2, floorplanData: 3 }, add_css);
64
+ init(this, options, instance, create_fragment, safe_not_equal, { room: 1, floorplanData: 2 }, add_css);
67
65
  }
68
66
  }
69
67