@realsee/dnalogel 2.2.6 → 2.2.7

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 (322) hide show
  1. package/docs/assets/main.js +1 -1
  2. package/docs/classes/CruisePluginController.html +24 -24
  3. package/docs/classes/Magnifier.html +16 -16
  4. package/docs/classes/ModelRoomLabelController.html +11 -11
  5. package/docs/classes/Object3DHelperController.html +24 -24
  6. package/docs/classes/PaintBrush.html +15 -15
  7. package/docs/classes/PanoTagPluginController.html +39 -39
  8. package/docs/classes/Util.BetterTween.html +8 -8
  9. package/docs/classes/Util.FivePointSelector.html +12 -12
  10. package/docs/classes/Util.Interval.html +12 -12
  11. package/docs/classes/Util.Magnifier.html +17 -17
  12. package/docs/classes/Util.PointDomHelper.html +11 -11
  13. package/docs/classes/Util.PointHelper.html +11 -11
  14. package/docs/classes/Util.Rectangle.html +13 -13
  15. package/docs/enums/CameraMovementEffect.html +7 -7
  16. package/docs/enums/ContentType.html +12 -12
  17. package/docs/enums/DIRECTION.html +9 -9
  18. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  19. package/docs/enums/DimensionType.html +7 -7
  20. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  21. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  22. package/docs/enums/LinkType.html +7 -7
  23. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  24. package/docs/enums/PointType.html +7 -7
  25. package/docs/enums/Rotation.html +8 -8
  26. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  27. package/docs/functions/CameraMovementPlugin.html +4 -4
  28. package/docs/functions/CruisePlugin.html +4 -4
  29. package/docs/functions/GuideLinePlugin.html +5 -5
  30. package/docs/functions/ItemLabelPlugin.html +4 -4
  31. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  32. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  33. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  34. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  35. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  36. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  37. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  38. package/docs/functions/ModelViewPlugin.html +4 -4
  39. package/docs/functions/Object3DHelperPlugin.html +4 -4
  40. package/docs/functions/PanoCompassPlugin.html +4 -4
  41. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  42. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  43. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  44. package/docs/functions/PanoMeasurePlugin.html +4 -4
  45. package/docs/functions/PanoRulerPlugin.html +4 -4
  46. package/docs/functions/PanoRulerProPlugin.html +4 -4
  47. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  48. package/docs/functions/PanoTagPlugin.html +4 -4
  49. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  50. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  51. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  52. package/docs/functions/Util.getFrameTime.html +5 -5
  53. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  54. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  55. package/docs/functions/Util.isNil.html +5 -5
  56. package/docs/functions/Util.nextFrame.html +5 -5
  57. package/docs/functions/Util.notNil.html +5 -5
  58. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  59. package/docs/functions/Util.tweenProgress.html +5 -5
  60. package/docs/functions/pluginFlag.html +5 -5
  61. package/docs/index.html +4 -4
  62. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  63. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  64. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  65. package/docs/interfaces/ContentTypeMap.html +12 -12
  66. package/docs/interfaces/FloorplanBounding.html +8 -8
  67. package/docs/interfaces/FloorplanData.html +10 -10
  68. package/docs/interfaces/FloorplanEntrance.html +11 -11
  69. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  70. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  71. package/docs/interfaces/FloorplanFloorData.html +9 -9
  72. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  73. package/docs/interfaces/FloorplanObserver.html +9 -9
  74. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  75. package/docs/interfaces/FloorplanPosition.html +7 -7
  76. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  77. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  78. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  79. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  80. package/docs/interfaces/FloorplanServerData.html +7 -7
  81. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  82. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  83. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  84. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  85. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  86. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  87. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  88. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  89. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  90. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  91. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  92. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  93. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  94. package/docs/interfaces/LineJson.html +7 -7
  95. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  96. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  97. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  98. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  99. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  100. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  101. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  102. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  103. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  104. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  105. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  106. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  107. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  108. package/docs/interfaces/Object3DHelperState.html +8 -8
  109. package/docs/interfaces/OpenParameter.html +7 -7
  110. package/docs/interfaces/PaintBrushAction.html +12 -12
  111. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  112. package/docs/interfaces/PaintBrushState.html +10 -10
  113. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  114. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  115. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  116. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  117. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  118. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  119. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  120. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  121. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  122. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  123. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  124. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  125. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  126. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  127. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  128. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  129. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  130. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  131. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  132. package/docs/interfaces/Point.html +8 -8
  133. package/docs/interfaces/PointJson.html +8 -8
  134. package/docs/interfaces/Room.html +9 -9
  135. package/docs/interfaces/RoomInfo.html +7 -7
  136. package/docs/interfaces/RoomLabel.html +14 -14
  137. package/docs/interfaces/RoomRules.html +5 -5
  138. package/docs/interfaces/Rooms.html +5 -5
  139. package/docs/interfaces/Scissor.html +9 -9
  140. package/docs/interfaces/TagConfig.html +10 -10
  141. package/docs/interfaces/Tags.html +9 -9
  142. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  143. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  144. package/docs/modules/Util.html +5 -5
  145. package/docs/modules.html +4 -4
  146. package/docs/types/ArrayPosition.html +5 -5
  147. package/docs/types/CSS3DRenderExportType.html +5 -5
  148. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  149. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  150. package/docs/types/Color.html +5 -5
  151. package/docs/types/ContentTypeConfigKey.html +5 -5
  152. package/docs/types/ContentTypeConfigKeyArray.html +5 -5
  153. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  154. package/docs/types/Create3DElementReturnType.html +5 -5
  155. package/docs/types/CruisePluginExportType.html +5 -5
  156. package/docs/types/Direction-1.html +5 -5
  157. package/docs/types/Direction4.html +5 -5
  158. package/docs/types/FloorplanRuleLabels.html +5 -5
  159. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  160. package/docs/types/GuideLinePluginExportType.html +5 -5
  161. package/docs/types/HelperEventMap.html +5 -5
  162. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  163. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  164. package/docs/types/MediaData.html +5 -5
  165. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  166. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  167. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  168. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  169. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  170. package/docs/types/MoveArgs.html +5 -5
  171. package/docs/types/MoveOpts.html +5 -5
  172. package/docs/types/Object3DHelperEventMap.html +5 -5
  173. package/docs/types/ObjectFit.html +5 -5
  174. package/docs/types/PaintBrushEventMap.html +5 -5
  175. package/docs/types/PanoCompassPluginData.html +5 -5
  176. package/docs/types/PanoCompassPluginExportType.html +5 -5
  177. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  178. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  179. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  180. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  181. package/docs/types/PanoMeasureReturnType.html +5 -5
  182. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  183. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  184. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  185. package/docs/types/PlaneTag.html +5 -5
  186. package/docs/types/PointTag.html +5 -5
  187. package/docs/types/Position.html +5 -5
  188. package/docs/types/RotateArgs.html +5 -5
  189. package/docs/types/RotateOpts.html +5 -5
  190. package/docs/types/RuleLabelsKey.html +5 -5
  191. package/docs/types/RuleLabelsValue.html +5 -5
  192. package/docs/types/Tag.html +5 -5
  193. package/docs/types/Tag2D.html +5 -5
  194. package/docs/types/Tag3D.html +5 -5
  195. package/docs/types/TagId.html +5 -5
  196. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  197. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  198. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  199. package/docs/variables/PLUGIN.html +5 -5
  200. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  201. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  202. package/docs/variables/VERSION.html +5 -5
  203. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  204. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  205. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  206. package/libs/CSS3DRenderPlugin/CSS3DRender.js +39 -33
  207. package/libs/CSS3DRenderPlugin/Controller.js +30 -22
  208. package/libs/CSS3DRenderPlugin/index.js +12 -3
  209. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +2 -1
  210. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +28 -25
  211. package/libs/CameraMovementPlugin/index.js +13 -0
  212. package/libs/CruisePlugin/Controller.js +52 -41
  213. package/libs/CruisePlugin/index.js +26 -3
  214. package/libs/CruisePlugin/typing.js +1 -0
  215. package/libs/GuideLinePlugin/Controller.js +14 -9
  216. package/libs/GuideLinePlugin/index.js +14 -3
  217. package/libs/GuideLinePlugin/typing.js +1 -0
  218. package/libs/ItemLabelPlugin/Plugin.js +33 -23
  219. package/libs/ItemLabelPlugin/events.type.js +1 -0
  220. package/libs/ItemLabelPlugin/index.js +16 -2
  221. package/libs/ModelChassisCompassPlugin/Plugin.js +2 -1
  222. package/libs/ModelChassisCompassPlugin/index.js +8 -0
  223. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +44 -39
  224. package/libs/ModelEntryDoorGuidePlugin/index.js +9 -0
  225. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +28 -22
  226. package/libs/ModelItemLabelPlugin/index.js +12 -2
  227. package/libs/ModelRoomLabelPlugin/Controller.js +6 -2
  228. package/libs/ModelRoomLabelPlugin/index.js +10 -3
  229. package/libs/ModelRoomLabelPlugin/typings.js +1 -0
  230. package/libs/ModelTVVideoPlugin/Plugin.js +35 -25
  231. package/libs/ModelTVVideoPlugin/index.js +17 -0
  232. package/libs/ModelViewPlugin/Plugin.js +2 -1
  233. package/libs/ModelViewPlugin/index.js +6 -0
  234. package/libs/Object3DHelperPlugin/Controller.js +48 -27
  235. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +13 -9
  236. package/libs/Object3DHelperPlugin/index.js +40 -3
  237. package/libs/Object3DHelperPlugin/typings.js +1 -0
  238. package/libs/PanoCompassPlugin/Controller.js +25 -13
  239. package/libs/PanoCompassPlugin/index.js +23 -3
  240. package/libs/PanoCompassPlugin/typings.js +1 -0
  241. package/libs/PanoCursorRaycasterPlugin/index.js +4 -2
  242. package/libs/PanoDoorLabelPlugin/BaseController.js +27 -26
  243. package/libs/PanoDoorLabelPlugin/Controller.js +7 -2
  244. package/libs/PanoDoorLabelPlugin/index.js +12 -2
  245. package/libs/PanoDoorLabelPlugin/typings.js +1 -0
  246. package/libs/PanoMeasurePlugin/index.js +56 -5
  247. package/libs/PanoRulerPlugin/Plugin.js +22 -17
  248. package/libs/PanoRulerPlugin/index.js +9 -0
  249. package/libs/PanoRulerPlugin/style.js +1 -1
  250. package/libs/PanoRulerPlugin/typings.js +1 -0
  251. package/libs/PanoRulerProPlugin/Controller.js +38 -27
  252. package/libs/PanoRulerProPlugin/index.js +16 -3
  253. package/libs/PanoRulerProPlugin/typings.js +1 -0
  254. package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -3
  255. package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
  256. package/libs/PanoSpatialTagPlugin/Plugin.js +74 -62
  257. package/libs/PanoSpatialTagPlugin/index.js +20 -0
  258. package/libs/PanoSpatialTagPlugin/store.js +1 -0
  259. package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
  260. package/libs/PanoTagPlugin/Components/Common/Audio.js +43 -43
  261. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +7 -7
  262. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +28 -29
  263. package/libs/PanoTagPlugin/Components/Common/Media.js +47 -55
  264. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
  265. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +59 -68
  266. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -7
  267. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +21 -23
  268. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +28 -31
  269. package/libs/PanoTagPlugin/Components/Common/Shadow.js +9 -10
  270. package/libs/PanoTagPlugin/Components/Common/Text.js +9 -9
  271. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +19 -27
  272. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
  273. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +97 -118
  274. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +6 -8
  275. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -5
  276. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -72
  277. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +54 -65
  278. package/libs/PanoTagPlugin/Components/Tag/index.js +74 -103
  279. package/libs/PanoTagPlugin/Components/TagContainer.js +65 -108
  280. package/libs/PanoTagPlugin/Components/TagWrapper.js +78 -116
  281. package/libs/PanoTagPlugin/controller/index.js +2 -2
  282. package/libs/PanoTagPlugin/index.js +82 -3
  283. package/libs/PanoTagPlugin/tag.config.js +2 -1
  284. package/libs/floorplan/Components/BaseImage.js +7 -7
  285. package/libs/floorplan/Components/Camera.js +10 -10
  286. package/libs/floorplan/Components/Compass.js +1 -1
  287. package/libs/floorplan/Components/CurrentFloor.js +47 -56
  288. package/libs/floorplan/Components/Main.js +80 -99
  289. package/libs/floorplan/Components/Normalmage.js +5 -5
  290. package/libs/floorplan/Components/RoomHighlight/Room.js +11 -11
  291. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +13 -14
  292. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -1
  293. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +47 -47
  294. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +23 -23
  295. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +14 -14
  296. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +13 -13
  297. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +13 -13
  298. package/libs/floorplan/Components/RuleLabels/RuleItem.js +6 -6
  299. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +14 -14
  300. package/libs/floorplan/Components/SvgImage.js +12 -12
  301. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +111 -81
  302. package/libs/floorplan/MapviewFloorplanPlugin/index.js +47 -3
  303. package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -0
  304. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +166 -135
  305. package/libs/floorplan/ModelFloorplanPlugin/index.js +47 -3
  306. package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
  307. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
  308. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +8 -12
  309. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
  310. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -83
  311. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +51 -36
  312. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +24 -3
  313. package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
  314. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +155 -126
  315. package/libs/floorplan/TopviewFloorplanPlugin/index.js +44 -3
  316. package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
  317. package/libs/floorplan/TopviewFloorplanPlugin/style.js +11 -0
  318. package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
  319. package/libs/floorplan/typings/index.js +1 -0
  320. package/libs/index.js +33 -33
  321. package/package.json +17 -17
  322. package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
@@ -1,5 +1,5 @@
1
- import { SvelteComponent as I, init as j, safe_not_equal as L, append_styles as z, element as W, attr as H, set_style as _, insert as k, update_keyed_each as O, check_outros as q, transition_in as R, transition_out as w, detach as T, assign as A, empty as C, create_component as K, mount_component as M, get_spread_update as S, destroy_component as B, group_outros as E, outro_and_destroy_block as F } from "../../../vendor/svelte/internal/index.js";
2
- import G from "./RuleItem.js";
1
+ import { SvelteComponent as I, init as j, safe_not_equal as L, append_styles as z, element as W, attr as H, set_style as _, insert as k, group_outros as O, update_keyed_each as q, outro_and_destroy_block as A, check_outros as C, transition_in as R, transition_out as w, detach as T, assign as K, empty as M, create_component as S, mount_component as B, get_spread_update as E, destroy_component as F } from "../../../vendor/svelte/internal/index.js";
2
+ import { RuleItem as G } from "./RuleItem.js";
3
3
  function J(o) {
4
4
  z(o, "svelte-1mzj9p3", ".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}");
5
5
  }
@@ -19,19 +19,19 @@ function b(o, l) {
19
19
  ];
20
20
  let s = {};
21
21
  for (let e = 0; e < a.length; e += 1)
22
- s = A(s, a[e]);
22
+ s = K(s, a[e]);
23
23
  return r = new G({ props: s }), {
24
24
  key: o,
25
25
  first: null,
26
26
  c() {
27
- t = C(), K(r.$$.fragment), this.first = t;
27
+ t = M(), S(r.$$.fragment), this.first = t;
28
28
  },
29
29
  m(e, n) {
30
- k(e, t, n), M(r, e, n), i = !0;
30
+ k(e, t, n), B(r, e, n), i = !0;
31
31
  },
32
32
  p(e, n) {
33
33
  l = e;
34
- const u = n & 19 ? S(a, [
34
+ const u = n & 19 ? E(a, [
35
35
  {
36
36
  type: l[13],
37
37
  data: l[14],
@@ -48,7 +48,7 @@ function b(o, l) {
48
48
  w(r.$$.fragment, e), i = !1;
49
49
  },
50
50
  d(e) {
51
- e && T(t), B(r, e);
51
+ e && T(t), F(r, e);
52
52
  }
53
53
  };
54
54
  }
@@ -73,7 +73,7 @@ function N(o) {
73
73
  i = !0;
74
74
  },
75
75
  p(e, [n]) {
76
- n & 19 && (a = e[4], E(), t = O(t, n, s, 1, e, a, r, l, F, b, null, y), q()), n & 8 && _(l, "width", e[3]), n & 4 && _(l, "height", e[2]);
76
+ n & 19 && (a = e[4], O(), t = q(t, n, s, 1, e, a, r, l, A, b, null, y), C()), n & 8 && _(l, "width", e[3]), n & 4 && _(l, "height", e[2]);
77
77
  },
78
78
  i(e) {
79
79
  if (!i) {
@@ -96,18 +96,18 @@ function N(o) {
96
96
  }
97
97
  const D = 1e3, x = 180;
98
98
  function P(o, l, t) {
99
- let r, i, a, s, e, n, u, m, g, p, { floorIndex: d } = l, { floorplanData: c } = l, { getRuleDistanceText: h } = l;
99
+ let r, i, a, s, e, n, u, m, d, p, { floorIndex: g } = l, { floorplanData: c } = l, { getRuleDistanceText: h } = l;
100
100
  return o.$$set = (f) => {
101
- "floorIndex" in f && t(5, d = f.floorIndex), "floorplanData" in f && t(6, c = f.floorplanData), "getRuleDistanceText" in f && t(0, h = f.getRuleDistanceText);
101
+ "floorIndex" in f && t(5, g = f.floorIndex), "floorplanData" in f && t(6, c = f.floorplanData), "getRuleDistanceText" in f && t(0, h = f.getRuleDistanceText);
102
102
  }, o.$$.update = () => {
103
- o.$$.dirty & 64 && t(1, r = c.bounding), o.$$.dirty & 96 && t(11, i = c.floorDatas[d].rules), o.$$.dirty & 2048 && t(12, a = Object.keys(i)), o.$$.dirty & 6144 && t(4, s = a.map((f) => [f, i[f]])), o.$$.dirty & 2 && t(9, e = r.max.x - r.min.x), o.$$.dirty & 2 && t(7, n = r.max.y - r.min.y), o.$$.dirty & 2 && t(10, u = r.max.x - r.min.x - (D - x) * 2), o.$$.dirty & 2 && t(8, m = r.max.y - r.min.y - (D - x) * 2), o.$$.dirty & 1536 && t(3, g = u / e * 100 + "%"), o.$$.dirty & 384 && t(2, p = m / n * 100 + "%");
103
+ o.$$.dirty & 64 && t(1, r = c.bounding), o.$$.dirty & 96 && t(11, i = c.floorDatas[g].rules), o.$$.dirty & 2048 && t(12, a = Object.keys(i)), o.$$.dirty & 6144 && t(4, s = a.map((f) => [f, i[f]])), o.$$.dirty & 2 && t(9, e = r.max.x - r.min.x), o.$$.dirty & 2 && t(7, n = r.max.y - r.min.y), o.$$.dirty & 2 && t(10, u = r.max.x - r.min.x - (D - x) * 2), o.$$.dirty & 2 && t(8, m = r.max.y - r.min.y - (D - x) * 2), o.$$.dirty & 1536 && t(3, d = u / e * 100 + "%"), o.$$.dirty & 384 && t(2, p = m / n * 100 + "%");
104
104
  }, [
105
105
  h,
106
106
  r,
107
107
  p,
108
- g,
109
- s,
110
108
  d,
109
+ s,
110
+ g,
111
111
  c,
112
112
  n,
113
113
  m,
@@ -135,5 +135,5 @@ class V extends I {
135
135
  }
136
136
  }
137
137
  export {
138
- V as default
138
+ V as RuleLabels
139
139
  };
@@ -1,29 +1,29 @@
1
- import { SvelteComponent as p, init as r, safe_not_equal as g, append_styles as c, element as u, space as m, attr as _, insert as d, append as v, noop as o, detach as y, HtmlTag as i } from "../../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as p, init as r, safe_not_equal as g, append_styles as c, element as u, HtmlTag as o, space as m, attr as _, insert as d, append as v, noop as i, detach as y } from "../../vendor/svelte/internal/index.js";
2
2
  function h(n) {
3
3
  c(n, "svelte-ub47ya", ".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}");
4
4
  }
5
5
  function b(n) {
6
- let e, f, l, a;
6
+ let e, a, l, f;
7
7
  return {
8
8
  c() {
9
- e = u("div"), f = new i(!1), l = m(), a = new i(!1), f.a = l, a.a = null, _(e, "class", "floorplan-plugin__base-image svelte-ub47ya");
9
+ e = u("div"), a = new o(!1), l = m(), f = new o(!1), a.a = l, f.a = null, _(e, "class", "floorplan-plugin__base-image svelte-ub47ya");
10
10
  },
11
11
  m(t, s) {
12
- d(t, e, s), f.m(n[1], e), v(e, l), a.m(n[0], e);
12
+ d(t, e, s), a.m(n[1], e), v(e, l), f.m(n[0], e);
13
13
  },
14
14
  p(t, [s]) {
15
- s & 1 && a.p(t[0]);
15
+ s & 1 && f.p(t[0]);
16
16
  },
17
- i: o,
18
- o,
17
+ i,
18
+ o: i,
19
19
  d(t) {
20
20
  t && y(e);
21
21
  }
22
22
  };
23
23
  }
24
- function w(n, e, f) {
24
+ function w(n, e, a) {
25
25
  let { content: l } = e;
26
- const a = `
26
+ const f = `
27
27
  <style>
28
28
  svg [type='lineGroup'] path {
29
29
  fill: #ffffff;
@@ -34,8 +34,8 @@ function w(n, e, f) {
34
34
  }</style>
35
35
  `;
36
36
  return n.$$set = (t) => {
37
- "content" in t && f(0, l = t.content);
38
- }, [l, a];
37
+ "content" in t && a(0, l = t.content);
38
+ }, [l, f];
39
39
  }
40
40
  class k extends p {
41
41
  constructor(e) {
@@ -43,5 +43,5 @@ class k extends p {
43
43
  }
44
44
  }
45
45
  export {
46
- k as default
46
+ k as SvgImage
47
47
  };
@@ -2,35 +2,35 @@ var E = Object.defineProperty, F = Object.defineProperties;
2
2
  var C = Object.getOwnPropertyDescriptors;
3
3
  var b = Object.getOwnPropertySymbols;
4
4
  var P = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
5
- var v = (h, n, t) => n in h ? E(h, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[n] = t, l = (h, n) => {
5
+ var m = (h, n, t) => n in h ? E(h, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[n] = t, l = (h, n) => {
6
6
  for (var t in n || (n = {}))
7
- P.call(n, t) && v(h, t, n[t]);
7
+ P.call(n, t) && m(h, t, n[t]);
8
8
  if (b)
9
9
  for (var t of b(n))
10
- y.call(n, t) && v(h, t, n[t]);
10
+ y.call(n, t) && m(h, t, n[t]);
11
11
  return h;
12
- }, m = (h, n) => F(h, C(n));
13
- var s = (h, n, t) => (v(h, typeof n != "symbol" ? n + "" : n, t), t);
12
+ }, v = (h, n) => F(h, C(n));
13
+ var o = (h, n, t) => (m(h, typeof n != "symbol" ? n + "" : n, t), t);
14
14
  var c = (h, n, t) => new Promise((e, i) => {
15
- var o = (d) => {
15
+ var s = (d) => {
16
16
  try {
17
- a(t.next(d));
17
+ r(t.next(d));
18
18
  } catch (u) {
19
19
  i(u);
20
20
  }
21
- }, r = (d) => {
21
+ }, a = (d) => {
22
22
  try {
23
- a(t.throw(d));
23
+ r(t.throw(d));
24
24
  } catch (u) {
25
25
  i(u);
26
26
  }
27
- }, a = (d) => d.done ? e(d.value) : Promise.resolve(d.value).then(o, r);
28
- a((t = t.apply(h, n)).next());
27
+ }, r = (d) => d.done ? e(d.value) : Promise.resolve(d.value).then(s, a);
28
+ r((t = t.apply(h, n)).next());
29
29
  });
30
30
  import * as x from "three";
31
31
  import { to as I } from "../../shared-utils/to.js";
32
32
  import { equal as M } from "../../shared-utils/equal.js";
33
- import L from "../Components/Main.js";
33
+ import { Main as L } from "../Components/Main.js";
34
34
  import { formatData as g } from "../utils/formatData.js";
35
35
  import { CAMERA_IMAGE as _ } from "../Assets/camera.js";
36
36
  import { omit as D } from "../../shared-utils/filter.js";
@@ -40,6 +40,36 @@ import { getPxmm as k, getAttachedY as B } from "../../shared-utils/getPxmm.js";
40
40
  import { checkShowState as H, correctFiveState as R } from "../utils/correctFiveState.js";
41
41
  import { changeModelCanvasOpacity as S } from "../../shared-utils/changeModelCanvasOpacity.js";
42
42
  import { FloorplanErrorType as f, SHOW_ANIME_DURATION as G } from "../utils/constant.js";
43
+ import "../../shared-utils/isTruelyObject.js";
44
+ import "../../vendor/svelte/internal/index.js";
45
+ import "../../vendor/svelte/transition/index.js";
46
+ import "../../vendor/svelte/easing/index.js";
47
+ import "../Components/Camera.js";
48
+ import "../../shared-utils/math/rad2Deg.js";
49
+ import "../Components/Compass.js";
50
+ import "../Assets/compass.js";
51
+ import "../Components/CurrentFloor.js";
52
+ import "../../vendor/svelte/store/index.js";
53
+ import "../Components/BaseImage.js";
54
+ import "../Components/Normalmage.js";
55
+ import "../Components/SvgImage.js";
56
+ import "../Components/RoomLabels/RoomLabels.js";
57
+ import "../Components/RoomLabels/RoomLabel.js";
58
+ import "../Components/RuleLabels/RuleLabels.js";
59
+ import "../Components/RuleLabels/RuleItem.js";
60
+ import "../Components/RoomMaterials/RoomMaterial.js";
61
+ import "../utils/formatPosition.js";
62
+ import "../Components/RoomMaterials/RoomMaterial_0.js";
63
+ import "../Components/RoomMaterials/RoomMaterial_1.js";
64
+ import "../Components/RoomMaterials/RoomMaterial_2.js";
65
+ import "../Components/RoomHighlight/RoomHighlight.js";
66
+ import "../Components/RoomHighlight/Room.js";
67
+ import "../Assets/floorplanExtraObject.js";
68
+ import "../../shared-utils/tap.js";
69
+ import "../../base/BasePlugin.js";
70
+ import "../../shared-utils/Subscribe.js";
71
+ import "../../shared-utils/nearlyEqual.js";
72
+ import "../../shared-utils/five/changeMode.js";
43
73
  function W(h) {
44
74
  const { latitude: n, longitude: t } = h, e = Math.abs(n - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
45
75
  return e || i;
@@ -48,58 +78,58 @@ function z(h) {
48
78
  const { latitude: n, longitude: t } = h, e = Math.abs(n - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
49
79
  return e && i;
50
80
  }
51
- class et extends T {
81
+ class _t extends T {
52
82
  constructor(t, e) {
53
83
  super(t);
54
- s(this, "name", "modelFloorplanPlugin");
55
- s(this, "state");
56
- s(this, "data");
57
- s(this, "showState");
58
- s(this, "showPromise");
59
- s(this, "app");
60
- s(this, "panoIndex", 0);
61
- s(this, "floorIndex", 0);
62
- s(this, "selector");
63
- s(this, "showRejection");
64
- s(this, "wrapper");
65
- s(this, "container", document.createElement("div"));
66
- s(this, "lastPanoramaLongitude", 0);
67
- s(this, "size", { width: 0, height: 0 });
68
- s(this, "hasAddedEventListener", !1);
69
- s(this, "isHiddenByHideFunc", !1);
70
- s(this, "dispose", () => {
84
+ o(this, "name", "modelFloorplanPlugin");
85
+ o(this, "state");
86
+ o(this, "data");
87
+ o(this, "showState");
88
+ o(this, "showPromise");
89
+ o(this, "app");
90
+ o(this, "panoIndex", 0);
91
+ o(this, "floorIndex", 0);
92
+ o(this, "selector");
93
+ o(this, "showRejection");
94
+ o(this, "wrapper");
95
+ o(this, "container", document.createElement("div"));
96
+ o(this, "lastPanoramaLongitude", 0);
97
+ o(this, "size", { width: 0, height: 0 });
98
+ o(this, "hasAddedEventListener", !1);
99
+ o(this, "isHiddenByHideFunc", !1);
100
+ o(this, "dispose", () => {
71
101
  var t, e;
72
102
  this.removeEventListener(), (t = this.app) == null || t.$destroy(), this.app = void 0, (e = this.container) == null || e.remove(), this.data = void 0, this.wrapper = void 0, this.selector = void 0, this.hooks.emit("dispose");
73
103
  });
74
- s(this, "show", (...e) => c(this, [...e], function* (t = {}) {
104
+ o(this, "show", (...e) => c(this, [...e], function* (t = {}) {
75
105
  if (!this.state.enabled || !this.showPromise && this.state.visible)
76
106
  return;
77
107
  const i = t.userAction !== void 0 ? t.userAction : !0;
78
108
  this.updateState({ visible: !0 }, i), this._show(t);
79
109
  }));
80
- s(this, "hide", (...e) => c(this, [...e], function* (t = {}) {
110
+ o(this, "hide", (...e) => c(this, [...e], function* (t = {}) {
81
111
  !this.state.enabled || (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, t.userAction || !0), this._hide(t)));
82
112
  }));
83
- s(this, "updateSize", () => {
113
+ o(this, "updateSize", () => {
84
114
  if (!this.data || !H(this.five, this.showState) || !this.container || !this.wrapper)
85
115
  return;
86
- const { min: t, max: e } = this.data.bounding, i = e.x - t.x, o = e.y - t.y, r = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = k(this.five, this.wrapper, this.floorIndex, r), d = Math.ceil(i * a), u = Math.ceil(o * a);
116
+ const { min: t, max: e } = this.data.bounding, i = e.x - t.x, s = e.y - t.y, a = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, r = k(this.five, this.wrapper, this.floorIndex, a), d = Math.ceil(i * r), u = Math.ceil(s * r);
87
117
  this.size.width === d && this.size.height === u || (this.container.style.width = d + "px", this.container.style.height = u + "px", this.size = { width: d, height: u });
88
118
  });
89
- s(this, "_disable", (t) => {
90
- var i, o, r;
119
+ o(this, "_disable", (t) => {
120
+ var i, s, a;
91
121
  const { userAction: e } = t;
92
- this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (o = this.app) == null || o.$destroy(), this.app = void 0, (r = this.container) == null || r.remove(), this.removeEventListener();
122
+ this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (a = this.container) == null || a.remove(), this.removeEventListener();
93
123
  });
94
- s(this, "_enable", (t) => {
124
+ o(this, "_enable", (t) => {
95
125
  const { userAction: e } = t;
96
126
  this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e }));
97
127
  });
98
- s(this, "_show", (t) => c(this, null, function* () {
99
- var r;
128
+ o(this, "_show", (t) => c(this, null, function* () {
129
+ var a;
100
130
  if (!this.state.enabled)
101
131
  return;
102
- if (!((r = this.five.model) != null && r.loaded))
132
+ if (!((a = this.five.model) != null && a.loaded))
103
133
  throw new Error(f.ModelNotLoaded);
104
134
  if (!this.data)
105
135
  throw new Error(f.DataNotLoaded);
@@ -110,49 +140,49 @@ class et extends T {
110
140
  immediately: !1,
111
141
  isAutoShow: !1,
112
142
  userAction: !0
113
- }, i = l(l({}, e), t), o = () => c(this, null, function* () {
143
+ }, i = l(l({}, e), t), s = () => c(this, null, function* () {
114
144
  this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
115
- let a = !1, d;
145
+ let r = !1, d;
116
146
  this.showRejection = (A) => {
117
- a = !0, d = A;
147
+ r = !0, d = A;
118
148
  };
119
149
  const [u] = yield I(R(this.five, this.showState, i.userAction));
120
150
  if (u)
121
151
  throw u;
122
- if (a)
152
+ if (r)
123
153
  throw d ? new Error(d) : new Error(f.UnknownError);
124
154
  this.updateSize(), this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
125
155
  const p = i.modelOpacity, w = i.immediately ? 0 : G;
126
156
  S(this.five, p, w), this.render(w);
127
157
  });
128
- return this.showPromise = o().then(() => {
158
+ return this.showPromise = s().then(() => {
129
159
  this.hooks.emit("showAnimationEnded", {
130
160
  auto: i.isAutoShow,
131
161
  userAction: i.userAction
132
162
  });
133
- }).catch((a) => {
134
- if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && a instanceof Error)
135
- throw a;
163
+ }).catch((r) => {
164
+ if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && r instanceof Error)
165
+ throw r;
136
166
  }).finally(() => {
137
167
  this.showPromise = void 0, this.showRejection = void 0;
138
168
  }), this.showPromise;
139
169
  }));
140
- s(this, "_hide", (t) => {
141
- var o;
142
- (o = this.showRejection) == null || o.call(this, f.BreakOffByHide), this.showPromise = void 0;
170
+ o(this, "_hide", (t) => {
171
+ var s;
172
+ (s = this.showRejection) == null || s.call(this, f.BreakOffByHide), this.showPromise = void 0;
143
173
  const i = l(l({}, {
144
174
  userAction: !0,
145
175
  isAutoHide: !1
146
176
  }), t);
147
177
  S(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
148
178
  });
149
- s(this, "handleClick", () => {
179
+ o(this, "handleClick", () => {
150
180
  if (!this.state.visible)
151
181
  return;
152
182
  if (this.hooks.emit("click"))
153
183
  return !1;
154
184
  });
155
- s(this, "onFiveModelLoaded", () => {
185
+ o(this, "onFiveModelLoaded", () => {
156
186
  if (this.state.enabled === !1 || this.wrapper || !this.selector)
157
187
  return;
158
188
  const t = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
@@ -160,20 +190,20 @@ class et extends T {
160
190
  throw new Error("\u4E0D\u6B63\u786E\u7684\u7236\u5BB9\u5668\u9009\u62E9\u5668");
161
191
  this.wrapper = t, t.append(this.container);
162
192
  });
163
- s(this, "onFiveModeChange", (t) => {
193
+ o(this, "onFiveModeChange", (t) => {
164
194
  t !== this.showState.mode && (this.updateState({ visible: !1 }, !1), this._hide({ userAction: !1 }));
165
195
  });
166
- s(this, "onFivePanoArrived", (t) => {
196
+ o(this, "onFivePanoArrived", (t) => {
167
197
  var e;
168
198
  !((e = this.five) != null && e.work) || (this.panoIndex = t, this.floorIndex = this.five.work.observers[t].floorIndex);
169
199
  });
170
- s(this, "onFiveCameraUpdate", (t, e) => {
200
+ o(this, "onFiveCameraUpdate", (t, e) => {
171
201
  if (!this.state.visible || this.showPromise)
172
202
  return;
173
203
  const i = this.five.getCurrentState();
174
204
  this.updatePosition(), this.updateSize(), W(i) && (this.updateState({ visible: !1 }, e), this._hide({ userAction: e }));
175
205
  });
176
- s(this, "onFiveWantsPanGesture", (t, e) => {
206
+ o(this, "onFiveWantsPanGesture", (t, e) => {
177
207
  if (this.five.getCurrentState().mode === this.showState.mode && this.state.config.autoShowEnable !== !1) {
178
208
  if (e && this.state.visible)
179
209
  return this.five.updateCamera(this.showState, 0), !1;
@@ -185,11 +215,11 @@ class et extends T {
185
215
  }
186
216
  }
187
217
  });
188
- s(this, "onFiveWantsTapGesture", () => this.handleClick());
189
- s(this, "onFiveWantsChangeMode", (t, e) => {
218
+ o(this, "onFiveWantsTapGesture", () => this.handleClick());
219
+ o(this, "onFiveWantsChangeMode", (t, e) => {
190
220
  e === "Panorama" && t === this.showState.mode && (this.lastPanoramaLongitude = this.five.getCurrentState().longitude);
191
221
  });
192
- s(this, "onModelShownFloorChange", (t) => {
222
+ o(this, "onModelShownFloorChange", (t) => {
193
223
  if (this.floorIndex !== t) {
194
224
  if (t === null) {
195
225
  const e = this.five.getCurrentState().panoIndex;
@@ -217,23 +247,23 @@ class et extends T {
217
247
  attachedTo: O.BOUNDING_CENTER,
218
248
  getLabelElement: void 0,
219
249
  adaptiveRoomLabelVisibleEnable: !0,
220
- getRoomAreaText: (a) => (a / 1e6).toFixed(1) + "\u33A1",
221
- getRuleDistanceText: (a) => a.toString()
222
- }, o = e ? D(e, ["selector", "scale"]) : {}, r = l(l({}, i), o);
250
+ getRoomAreaText: (r) => (r / 1e6).toFixed(1) + "\u33A1",
251
+ getRuleDistanceText: (r) => r.toString()
252
+ }, s = e ? D(e, ["selector", "scale"]) : {}, a = l(l({}, i), s);
223
253
  this.state = {
224
254
  enabled: !0,
225
255
  visible: !1,
226
- config: r
256
+ config: a
227
257
  }, this.initContainer(), t.model.loaded ? this.onFiveModelLoaded() : t.once("modelLoaded", this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
228
258
  }
229
259
  load(t, e, i = !0) {
230
260
  return c(this, null, function* () {
231
- function o(p) {
261
+ function s(p) {
232
262
  return Object.prototype.hasOwnProperty.apply(p, ["version"]);
233
263
  }
234
- const r = t;
235
- r && !r.version && console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");
236
- const a = JSON.parse(JSON.stringify(t)), d = o(a) ? a.data : a, u = this.data;
264
+ const a = t;
265
+ a && !a.version && console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");
266
+ const r = JSON.parse(JSON.stringify(t)), d = s(r) ? r.data : r, u = this.data;
237
267
  this.data = yield g(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, u), e && this.updateState(e, i), this.render();
238
268
  });
239
269
  }
@@ -254,22 +284,22 @@ class et extends T {
254
284
  this.updateState({ enabled: !1 }, t.userAction || e), this._disable({ userAction: e });
255
285
  }
256
286
  setState(t, e = {}) {
257
- const i = this.state, o = e.userAction !== void 0 ? e.userAction : !0;
258
- if (this.updateState(t, o), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: o }) : this._disable({ userAction: o })), t.visible !== void 0 && i.visible !== t.visible) {
259
- const r = { userAction: o };
260
- t.visible ? this._show(r) : this._hide(r);
287
+ const i = this.state, s = e.userAction !== void 0 ? e.userAction : !0;
288
+ if (this.updateState(t, s), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: s }) : this._disable({ userAction: s })), t.visible !== void 0 && i.visible !== t.visible) {
289
+ const a = { userAction: s };
290
+ t.visible ? this._show(a) : this._hide(a);
261
291
  }
262
292
  }
263
293
  changeConfigs(t, e = !0) {
264
294
  this.updateState({ config: t }, e), this.render();
265
295
  }
266
296
  updatePosition() {
267
- var a;
268
- const t = B(this.five, this.floorIndex, this.state.config.attachedTo), e = (a = this.five.model) == null ? void 0 : a.bounding.getCenter(new x.Vector3()).setY(t);
297
+ var r;
298
+ const t = B(this.five, this.floorIndex, this.state.config.attachedTo), e = (r = this.five.model) == null ? void 0 : r.bounding.getCenter(new x.Vector3()).setY(t);
269
299
  if (!e)
270
300
  return;
271
- const i = e.clone().project(this.five.camera), o = (i.x + 1) / 2, r = -(i.y - 1) / 2;
272
- this.container.style.left = o * 100 + "%", this.container.style.top = r * 100 + "%";
301
+ const i = e.clone().project(this.five.camera), s = (i.x + 1) / 2, a = -(i.y - 1) / 2;
302
+ this.container.style.left = s * 100 + "%", this.container.style.top = a * 100 + "%";
273
303
  }
274
304
  formatData(t) {
275
305
  return c(this, null, function* () {
@@ -277,8 +307,8 @@ class et extends T {
277
307
  });
278
308
  }
279
309
  updateState(t, e) {
280
- const i = this.state, o = t.config ? l(l({}, i.config), t.config) : i.config;
281
- this.state = m(l(l({}, this.state), t), { config: o }), !M(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
310
+ const i = this.state, s = t.config ? l(l({}, i.config), t.config) : i.config;
311
+ this.state = v(l(l({}, this.state), t), { config: s }), !M(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
282
312
  }
283
313
  initContainer() {
284
314
  this.container.classList.add("floorplan-plugin"), Object.assign(this.container.style, {
@@ -303,7 +333,7 @@ class et extends T {
303
333
  render(t) {
304
334
  if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
305
335
  return;
306
- const e = m(l({}, this.state.config), {
336
+ const e = v(l({}, this.state.config), {
307
337
  visible: this.state.visible,
308
338
  duration: t != null ? t : 0,
309
339
  panoIndex: this.panoIndex,
@@ -317,5 +347,5 @@ class et extends T {
317
347
  }
318
348
  }
319
349
  export {
320
- et as Controller
350
+ _t as Controller
321
351
  };
@@ -1,5 +1,49 @@
1
- import { Controller as n } from "./Controller.js";
2
- const l = (o, r) => new n(o, r);
1
+ import { Controller as t } from "./Controller.js";
2
+ import "three";
3
+ import "../../shared-utils/to.js";
4
+ import "../../shared-utils/equal.js";
5
+ import "../../shared-utils/isTruelyObject.js";
6
+ import "../Components/Main.js";
7
+ import "../../vendor/svelte/internal/index.js";
8
+ import "../../vendor/svelte/transition/index.js";
9
+ import "../../vendor/svelte/easing/index.js";
10
+ import "../Components/Camera.js";
11
+ import "../Assets/camera.js";
12
+ import "../../shared-utils/math/rad2Deg.js";
13
+ import "../Components/Compass.js";
14
+ import "../Assets/compass.js";
15
+ import "../Components/CurrentFloor.js";
16
+ import "../../vendor/svelte/store/index.js";
17
+ import "../Components/BaseImage.js";
18
+ import "../Components/Normalmage.js";
19
+ import "../Components/SvgImage.js";
20
+ import "../Components/RoomLabels/RoomLabels.js";
21
+ import "../Components/RoomLabels/RoomLabel.js";
22
+ import "../Components/RuleLabels/RuleLabels.js";
23
+ import "../Components/RuleLabels/RuleItem.js";
24
+ import "../Components/RoomMaterials/RoomMaterial.js";
25
+ import "../utils/formatPosition.js";
26
+ import "../Components/RoomMaterials/RoomMaterial_0.js";
27
+ import "../Components/RoomMaterials/RoomMaterial_1.js";
28
+ import "../Components/RoomMaterials/RoomMaterial_2.js";
29
+ import "../Components/RoomHighlight/RoomHighlight.js";
30
+ import "../Components/RoomHighlight/Room.js";
31
+ import "../utils/formatData.js";
32
+ import "../Assets/floorplanExtraObject.js";
33
+ import "../../shared-utils/filter.js";
34
+ import "../../shared-utils/tap.js";
35
+ import "../constant.js";
36
+ import "../../base/BasePluginWithData.js";
37
+ import "../../base/BasePlugin.js";
38
+ import "../../shared-utils/Subscribe.js";
39
+ import "../../shared-utils/getPxmm.js";
40
+ import "../utils/correctFiveState.js";
41
+ import "../utils/constant.js";
42
+ import "../../shared-utils/nearlyEqual.js";
43
+ import "../../shared-utils/five/changeMode.js";
44
+ import "../../shared-utils/changeModelCanvasOpacity.js";
45
+ const V = (o, r) => new t(o, r);
3
46
  export {
4
- l as MapviewFloorplanPlugin
47
+ V as MapviewFloorplanPlugin,
48
+ V as default
5
49
  };