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

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 (521) hide show
  1. package/README.md +3 -12
  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 +6 -11
  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 +1 -331
  207. package/libs/CSS3DRenderPlugin/Controller.js +1 -84
  208. package/libs/CSS3DRenderPlugin/index.js +1 -6
  209. package/libs/CSS3DRenderPlugin/typing.js +1 -0
  210. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +1 -67
  211. package/libs/CSS3DRenderPlugin/utils/centerPoint.js +1 -10
  212. package/libs/CSS3DRenderPlugin/utils/evenNumber.js +1 -7
  213. package/libs/CSS3DRenderPlugin/utils/index.js +1 -0
  214. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -7
  215. package/libs/CSS3DRenderPlugin/utils/random.js +1 -0
  216. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +1 -88
  217. package/libs/CameraMovementPlugin/index.js +1 -0
  218. package/libs/CameraMovementPlugin/typing.js +1 -5
  219. package/libs/CruisePlugin/Controller.js +1 -484
  220. package/libs/CruisePlugin/index.js +1 -8
  221. package/libs/CruisePlugin/utils/coordinatesAngle.js +1 -8
  222. package/libs/CruisePlugin/utils/coordinatesToVector.js +1 -12
  223. package/libs/CruisePlugin/utils/formatRad.js +1 -7
  224. package/libs/CruisePlugin/utils/linerValue.js +1 -7
  225. package/libs/CruisePlugin/utils/safeCall.js +1 -28
  226. package/libs/CruisePlugin/utils/sleep.js +1 -10
  227. package/libs/CruisePlugin/utils/vectorToCoordinates.js +1 -10
  228. package/libs/GuideLinePlugin/Controller.js +1 -144
  229. package/libs/GuideLinePlugin/index.js +1 -6
  230. package/libs/GuideLinePlugin/utils/getArrowMaterial.js +1 -13
  231. package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -64
  232. package/libs/ItemLabelPlugin/ItemLabelComponent.js +1 -271
  233. package/libs/ItemLabelPlugin/ItemLabelItem.js +2 -133
  234. package/libs/ItemLabelPlugin/Plugin.js +2 -76
  235. package/libs/ItemLabelPlugin/index.js +1 -12
  236. package/libs/ItemLabelPlugin/typings.js +1 -4
  237. package/libs/ItemLabelPlugin/utils/getLabelTransform.js +1 -4
  238. package/libs/ItemLabelPlugin/utils/getStrokeLength.js +1 -16
  239. package/libs/ItemLabelPlugin/utils/isImpacted.js +1 -10
  240. package/libs/ItemLabelPlugin/utils/parseData.js +1 -21
  241. package/libs/ItemLabelPlugin/utils/transform2RenderData.js +1 -21
  242. package/libs/ModelChassisCompassPlugin/Plugin.js +1 -71
  243. package/libs/ModelChassisCompassPlugin/index.js +1 -0
  244. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +1 -78
  245. package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
  246. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +1 -212
  247. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +2 -42
  248. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +2 -74
  249. package/libs/ModelItemLabelPlugin/events.type.js +1 -0
  250. package/libs/ModelItemLabelPlugin/index.js +1 -12
  251. package/libs/ModelItemLabelPlugin/typings.js +1 -4
  252. package/libs/ModelItemLabelPlugin/utils/parseData.js +1 -19
  253. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -4
  254. package/libs/ModelRoomLabelPlugin/Controller.js +1 -60
  255. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +1 -45
  256. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +1 -162
  257. package/libs/ModelRoomLabelPlugin/index.js +1 -10
  258. package/libs/ModelRoomLabelPlugin/utils/parseData.js +1 -16
  259. package/libs/ModelTVVideoPlugin/Plugin.js +1 -164
  260. package/libs/ModelTVVideoPlugin/index.js +1 -0
  261. package/libs/ModelTVVideoPlugin/typings.js +1 -4
  262. package/libs/ModelTVVideoPlugin/utils/parseData.js +1 -20
  263. package/libs/ModelViewPlugin/Plugin.js +1 -107
  264. package/libs/ModelViewPlugin/index.js +1 -0
  265. package/libs/Object3DHelperPlugin/Controller.js +1 -145
  266. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +1 -32
  267. package/libs/Object3DHelperPlugin/index.js +1 -10
  268. package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -4
  269. package/libs/PanoCompassPlugin/Controller.js +1 -224
  270. package/libs/PanoCompassPlugin/getRoomInfoInstance.js +1 -24
  271. package/libs/PanoCompassPlugin/index.js +1 -6
  272. package/libs/PanoCursorRaycasterPlugin/index.js +1 -59
  273. package/libs/PanoDoorLabelPlugin/BaseController.js +1 -59
  274. package/libs/PanoDoorLabelPlugin/Controller.js +1 -219
  275. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -65
  276. package/libs/PanoDoorLabelPlugin/index.js +1 -6
  277. package/libs/PanoDoorLabelPlugin/utils.js +1 -23
  278. package/libs/PanoMeasurePlugin/Controller/BaseController.js +1 -53
  279. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -102
  280. package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -125
  281. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +1 -33
  282. package/libs/PanoMeasurePlugin/Controller/ViewController.js +1 -90
  283. package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -154
  284. package/libs/PanoMeasurePlugin/Controller/index.js +1 -140
  285. package/libs/PanoMeasurePlugin/Model/index.js +1 -92
  286. package/libs/PanoMeasurePlugin/Model/line.js +1 -56
  287. package/libs/PanoMeasurePlugin/Model/point.js +1 -30
  288. package/libs/PanoMeasurePlugin/Model/polyline.js +1 -47
  289. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +2 -5
  290. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -4
  291. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -4
  292. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +3 -67
  293. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +1 -28
  294. package/libs/PanoMeasurePlugin/Modules/GuideController.js +1 -41
  295. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -103
  296. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +8 -12
  297. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +1 -50
  298. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +1 -36
  299. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -48
  300. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +3 -8
  301. package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +1 -39
  302. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +1 -62
  303. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +2 -7
  304. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -130
  305. package/libs/PanoMeasurePlugin/index.js +1 -11
  306. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -12
  307. package/libs/PanoMeasurePlugin/utils/constants.js +1 -36
  308. package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -62
  309. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +1 -13
  310. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +1 -15
  311. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +1 -9
  312. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +1 -8
  313. package/libs/PanoMeasurePlugin/utils/ironbox.js +1 -4
  314. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +1 -7
  315. package/libs/PanoMeasurePlugin/utils/line.js +1 -18
  316. package/libs/PanoMeasurePlugin/utils/math.js +1 -13
  317. package/libs/PanoMeasurePlugin/utils/mouseGroup.js +3 -33
  318. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +1 -8
  319. package/libs/PanoRulerPlugin/Plugin.js +2 -263
  320. package/libs/PanoRulerPlugin/index.js +1 -0
  321. package/libs/PanoRulerPlugin/style.js +2 -5
  322. package/libs/PanoRulerProPlugin/Controller.js +1 -93
  323. package/libs/PanoRulerProPlugin/RulerItem.js +1 -128
  324. package/libs/PanoRulerProPlugin/RulerItems.js +1 -180
  325. package/libs/PanoRulerProPlugin/index.js +1 -6
  326. package/libs/PanoSpatialTagPlugin/Components/origins.js +1 -81
  327. package/libs/PanoSpatialTagPlugin/Components/tag.js +1 -124
  328. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -247
  329. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  330. package/libs/PanoSpatialTagPlugin/store.js +1 -5
  331. package/libs/PanoSpatialTagPlugin/style.js +1 -11
  332. package/libs/PanoSpatialTagPlugin/typings.js +1 -0
  333. package/libs/PanoTagPlugin/Assets/Icon.js +1 -6
  334. package/libs/PanoTagPlugin/Components/Common/Arrow.js +1 -103
  335. package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -166
  336. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -93
  337. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -90
  338. package/libs/PanoTagPlugin/Components/Common/Media.js +1 -393
  339. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -139
  340. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +1 -170
  341. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +1 -51
  342. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +1 -51
  343. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +1 -166
  344. package/libs/PanoTagPlugin/Components/Common/Shadow.js +15 -124
  345. package/libs/PanoTagPlugin/Components/Common/Text.js +1 -131
  346. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +1 -134
  347. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +1 -73
  348. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -192
  349. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +1 -126
  350. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -258
  351. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +1 -87
  352. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +1 -122
  353. package/libs/PanoTagPlugin/Components/Tag/index.js +2 -289
  354. package/libs/PanoTagPlugin/Components/TagContainer.js +1 -156
  355. package/libs/PanoTagPlugin/Components/TagWrapper.js +1 -153
  356. package/libs/PanoTagPlugin/controller/TagCacheController.js +1 -31
  357. package/libs/PanoTagPlugin/controller/TagComputer.js +1 -264
  358. package/libs/PanoTagPlugin/controller/index.js +1 -377
  359. package/libs/PanoTagPlugin/index.js +1 -9
  360. package/libs/PanoTagPlugin/tag.config.js +1 -44
  361. package/libs/PanoTagPlugin/typings/controller.js +1 -0
  362. package/libs/PanoTagPlugin/typings/index.js +1 -0
  363. package/libs/PanoTagPlugin/typings/tag.js +1 -7
  364. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +1 -6
  365. package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -27
  366. package/libs/PanoTagPlugin/utils/checkRange.js +1 -10
  367. package/libs/PanoTagPlugin/utils/constants.js +1 -8
  368. package/libs/PanoTagPlugin/utils/debounce.js +1 -12
  369. package/libs/PanoTagPlugin/utils/doUtil.js +1 -12
  370. package/libs/PanoTagPlugin/utils/index.js +1 -0
  371. package/libs/PanoTagPlugin/utils/noTypecheck.js +1 -4
  372. package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +1 -13
  373. package/libs/PanoTagPlugin/utils/planeNormal.js +1 -11
  374. package/libs/PanoTagPlugin/utils/resizeObserver.js +1 -17
  375. package/libs/PanoTagPlugin/utils/search.js +1 -15
  376. package/libs/PanoTagPlugin/utils/tagPosition.js +1 -13
  377. package/libs/PanoTagPlugin/utils/throttle.js +1 -11
  378. package/libs/base/BasePlugin.js +1 -18
  379. package/libs/base/BasePluginWithData.js +1 -6
  380. package/libs/components/PaintBrush/Controller.js +1 -308
  381. package/libs/components/PaintBrush/Subscribe.js +1 -47
  382. package/libs/components/PaintBrush/index.js +1 -45
  383. package/libs/components/PaintBrush/style.js +2 -5
  384. package/libs/components/PaintBrush/tween.js +1 -11
  385. package/libs/components/PaintBrush/typings.js +1 -4
  386. package/libs/components/PaintBrush/utils.js +1 -45
  387. package/libs/components/index.js +1 -0
  388. package/libs/floorplan/Assets/camera.js +1 -4
  389. package/libs/floorplan/Assets/compass.js +1 -4
  390. package/libs/floorplan/Assets/floorplanExtraObject.js +1 -4
  391. package/libs/floorplan/Components/BaseImage.js +1 -103
  392. package/libs/floorplan/Components/Camera.js +1 -62
  393. package/libs/floorplan/Components/Compass.js +1 -60
  394. package/libs/floorplan/Components/CurrentFloor.js +1 -246
  395. package/libs/floorplan/Components/Main.js +1 -264
  396. package/libs/floorplan/Components/Normalmage.js +1 -37
  397. package/libs/floorplan/Components/RoomHighlight/Room.js +1 -61
  398. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +1 -121
  399. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -153
  400. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +1 -174
  401. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -196
  402. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -37
  403. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -39
  404. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -37
  405. package/libs/floorplan/Components/RuleLabels/RuleItem.js +1 -134
  406. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +1 -139
  407. package/libs/floorplan/Components/SvgImage.js +2 -39
  408. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -321
  409. package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -6
  410. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -316
  411. package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -6
  412. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -85
  413. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +1 -129
  414. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +1 -72
  415. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +1 -183
  416. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -164
  417. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -6
  418. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -273
  419. package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -6
  420. package/libs/floorplan/constant.js +1 -4
  421. package/libs/floorplan/index.js +1 -0
  422. package/libs/floorplan/typings/floorplanData.js +1 -0
  423. package/libs/floorplan/typings/floorplanServerData.js +1 -101
  424. package/libs/floorplan/utils/constant.js +1 -7
  425. package/libs/floorplan/utils/correctFiveState.js +1 -54
  426. package/libs/floorplan/utils/formatData.js +1 -104
  427. package/libs/floorplan/utils/formatPosition.js +1 -35
  428. package/libs/index.js +1 -92
  429. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -152
  430. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +1 -53
  431. package/libs/shared-utils/Object3DHelper/Constants/color.js +1 -21
  432. package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +1 -18
  433. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -66
  434. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +1 -109
  435. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +1 -134
  436. package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +1 -79
  437. package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -41
  438. package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -14
  439. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -30
  440. package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +1 -35
  441. package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +1 -2
  442. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +1 -137
  443. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +1 -136
  444. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
  445. package/libs/shared-utils/Object3DHelper/index.js +1 -169
  446. package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -0
  447. package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -0
  448. package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -0
  449. package/libs/shared-utils/Object3DHelper/typings/index.js +1 -0
  450. package/libs/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +1 -11
  451. package/libs/shared-utils/Object3DHelper/utils/direction.js +1 -22
  452. package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -0
  453. package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +1 -14
  454. package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -0
  455. package/libs/shared-utils/Object3DHelper/utils/index.js +1 -0
  456. package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -0
  457. package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -0
  458. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -191
  459. package/libs/shared-utils/Object3DHelper/utils/vectorIsEqual.js +1 -6
  460. package/libs/shared-utils/Subscribe.js +1 -50
  461. package/libs/shared-utils/animationFrame/BetterTween.js +1 -26
  462. package/libs/shared-utils/animationFrame/calculateProgress.js +1 -6
  463. package/libs/shared-utils/animationFrame/formatRad.js +1 -11
  464. package/libs/shared-utils/animationFrame/index.js +1 -31
  465. package/libs/shared-utils/animationFrame/tween.js +1 -30
  466. package/libs/shared-utils/changeModelCanvasOpacity.js +1 -12
  467. package/libs/shared-utils/createCanvasTextTexture.js +1 -11
  468. package/libs/shared-utils/createLine/index.js +1 -9
  469. package/libs/shared-utils/debounce.js +1 -11
  470. package/libs/shared-utils/equal.js +1 -54
  471. package/libs/shared-utils/filter.js +1 -10
  472. package/libs/shared-utils/five/changeMode.js +1 -39
  473. package/libs/shared-utils/getPxmm.js +1 -21
  474. package/libs/shared-utils/index.js +1 -31
  475. package/libs/shared-utils/isNil.js +1 -10
  476. package/libs/shared-utils/isTruelyObject.js +1 -6
  477. package/libs/shared-utils/math/Interval.js +1 -23
  478. package/libs/shared-utils/math/Rectangle.js +1 -23
  479. package/libs/shared-utils/math/index.js +1 -0
  480. package/libs/shared-utils/math/planimetry.js +1 -48
  481. package/libs/shared-utils/math/rad2Deg.js +1 -6
  482. package/libs/shared-utils/nearlyEqual.js +1 -6
  483. package/libs/shared-utils/nextFrame.js +1 -6
  484. package/libs/shared-utils/noop.js +1 -5
  485. package/libs/shared-utils/object3d2LocalMatrix.js +1 -19
  486. package/libs/shared-utils/removeArrayItem.js +1 -8
  487. package/libs/shared-utils/tap.js +1 -6
  488. package/libs/shared-utils/three/Assets/index.js +1 -4
  489. package/libs/shared-utils/three/FivePointSelector.js +1 -49
  490. package/libs/shared-utils/three/Magnifier.js +1 -104
  491. package/libs/shared-utils/three/PointDomHelper.js +1 -60
  492. package/libs/shared-utils/three/PointHelper.js +3 -60
  493. package/libs/shared-utils/three/getCoords.js +1 -13
  494. package/libs/shared-utils/three/getIntersect.js +1 -8
  495. package/libs/shared-utils/three/getRaycaster.js +1 -12
  496. package/libs/shared-utils/three/index.js +1 -0
  497. package/libs/shared-utils/three/loadTexture.js +1 -28
  498. package/libs/shared-utils/three/transformPositionToVector3.js +1 -5
  499. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +1 -24
  500. package/libs/shared-utils/throttle.js +1 -11
  501. package/libs/shared-utils/tinyEJSrender.js +14 -138
  502. package/libs/shared-utils/to.js +1 -29
  503. package/libs/shared-utils/uuid.js +1 -10
  504. package/libs/vendor/swiper/components-shared/get-changed-params.js +1 -0
  505. package/libs/vendor/swiper/components-shared/get-params.js +1 -0
  506. package/libs/vendor/swiper/components-shared/mount-swiper.js +1 -0
  507. package/libs/vendor/swiper/components-shared/params-list.js +1 -0
  508. package/libs/vendor/swiper/components-shared/update-swiper.js +1 -0
  509. package/libs/vendor/swiper/components-shared/utils.js +1 -0
  510. package/libs/vendor/swiper/svelte/swiper-slide.js +1 -0
  511. package/libs/vendor/swiper/svelte/swiper-svelte.js +1 -0
  512. package/libs/vendor/swiper/svelte/swiper.js +1 -0
  513. package/package.json +187 -17
  514. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/get-changed-params.js +0 -29
  515. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/get-params.js +0 -23
  516. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/mount-swiper.js +0 -14
  517. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/params-list.js +0 -120
  518. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/update-swiper.js +0 -36
  519. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/utils.js +0 -32
  520. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/svelte/swiper-slide.js +0 -182
  521. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/svelte/swiper.js +0 -254
@@ -1,316 +1 @@
1
- var E = Object.defineProperty, S = Object.defineProperties;
2
- var C = Object.getOwnPropertyDescriptors;
3
- var b = Object.getOwnPropertySymbols;
4
- var P = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
5
- var v = (h, o, e) => o in h ? E(h, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[o] = e, l = (h, o) => {
6
- for (var e in o || (o = {}))
7
- P.call(o, e) && v(h, e, o[e]);
8
- if (b)
9
- for (var e of b(o))
10
- I.call(o, e) && v(h, e, o[e]);
11
- return h;
12
- }, m = (h, o) => S(h, C(o));
13
- var s = (h, o, e) => (v(h, typeof o != "symbol" ? o + "" : o, e), e);
14
- var f = (h, o, e) => new Promise((t, i) => {
15
- var n = (a) => {
16
- try {
17
- r(e.next(a));
18
- } catch (u) {
19
- i(u);
20
- }
21
- }, d = (a) => {
22
- try {
23
- r(e.throw(a));
24
- } catch (u) {
25
- i(u);
26
- }
27
- }, r = (a) => a.done ? t(a.value) : Promise.resolve(a.value).then(n, d);
28
- r((e = e.apply(h, o)).next());
29
- });
30
- import { to as M } from "../../shared-utils/to.js";
31
- import x from "../../shared-utils/equal.js";
32
- import y from "../Components/Main.js";
33
- import g from "../utils/formatData.js";
34
- import { CAMERA_IMAGE as _ } from "../Assets/camera.js";
35
- import { omit as L } from "../../shared-utils/filter.js";
36
- import D from "../../shared-utils/getPxmm.js";
37
- import { FLOOR_PLAN_ATTACHED_TO as O } from "../constant.js";
38
- import { Controller as k } from "../../base/BasePluginWithData.js";
39
- import T, { checkShowState as B } from "../utils/correctFiveState.js";
40
- import F from "../../shared-utils/changeModelCanvasOpacity.js";
41
- import { FIVE_CAMERA_DEFAULT_FOV as G, FloorplanErrorType as c, SHOW_ANIME_DURATION as H } from "../utils/constant.js";
42
- function W(h) {
43
- const { latitude: o, longitude: e } = h, t = Math.abs(o - Math.PI / 2) > 5 * Math.PI / 180, i = e > 5 * (Math.PI / 180) && e < 355 * (Math.PI / 180);
44
- return t || i;
45
- }
46
- function R(h) {
47
- const { latitude: o, longitude: e } = h, t = Math.abs(o - Math.PI / 2) < 10 * Math.PI / 180, i = e < 30 * (Math.PI / 180) || e > 330 * (Math.PI / 180);
48
- return t && i;
49
- }
50
- class ee extends k {
51
- constructor(e, t) {
52
- var r;
53
- super(e);
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", () => {
71
- var e, t;
72
- this.removeEventListener(), (e = this.app) == null || e.$destroy(), this.app = void 0, (t = this.container) == null || t.remove(), this.data = void 0, this.wrapper = void 0, this.selector = void 0, this.hooks.emit("dispose");
73
- });
74
- s(this, "show", (...t) => f(this, [...t], function* (e = {}) {
75
- if (!this.state.enabled || !this.showPromise && this.state.visible)
76
- return;
77
- const i = e.userAction !== void 0 ? e.userAction : !0;
78
- this.updateState({ visible: !0 }, i), this._show(e);
79
- }));
80
- s(this, "hide", (...t) => f(this, [...t], function* (e = {}) {
81
- !this.state.enabled || (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
82
- }));
83
- s(this, "updateSize", () => {
84
- if (!this.data || !B(this.five, this.showState) || !this.container || !this.wrapper)
85
- return;
86
- const { min: e, max: t } = this.data.bounding, i = t.x - e.x, n = t.y - e.y, d = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, r = D(this.five, this.wrapper, this.floorIndex, d), a = Math.ceil(i * r), u = Math.ceil(n * r);
87
- this.size.width === a && this.size.height === u || (this.container.style.width = a + "px", this.container.style.height = u + "px", this.size = { width: a, height: u });
88
- });
89
- s(this, "_disable", (e) => {
90
- var i, n, d;
91
- const { userAction: t } = e;
92
- this.hooks.emit("disable", { userAction: t }), (i = this.showRejection) == null || i.call(this, c.BreakOffByDisable), this.showPromise = void 0, (n = this.app) == null || n.$destroy(), this.app = void 0, (d = this.container) == null || d.remove(), this.removeEventListener();
93
- });
94
- s(this, "_enable", (e) => {
95
- const { userAction: t } = e;
96
- this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: t }), this.state.visible && this._show({ userAction: t }));
97
- });
98
- s(this, "_show", (e) => f(this, null, function* () {
99
- var d;
100
- if (!this.state.enabled)
101
- return;
102
- if (!((d = this.five.model) != null && d.loaded))
103
- throw new Error(c.ModelNotLoaded);
104
- if (!this.data)
105
- throw new Error(c.DataNotLoaded);
106
- this.isHiddenByHideFunc = !1;
107
- const t = {
108
- floorIndex: this.floorIndex,
109
- modelOpacity: this.state.config.modelOpacity,
110
- immediately: !1,
111
- isAutoShow: !1,
112
- userAction: !0
113
- }, i = l(l({}, t), e), n = () => f(this, null, function* () {
114
- this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
115
- let r = !1, a;
116
- this.showRejection = (A) => {
117
- r = !0, a = A;
118
- };
119
- const [u] = yield M(T(this.five, this.showState, i.userAction));
120
- if (u)
121
- throw u;
122
- if (r)
123
- throw a ? new Error(a) : new Error(c.UnknownError);
124
- this.updateSize(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
125
- const p = i.modelOpacity, w = i.immediately ? 0 : H;
126
- F(this.five, p, w), this.render(w);
127
- });
128
- return this.showPromise = n().then(() => {
129
- this.hooks.emit("showAnimationEnded", {
130
- auto: i.isAutoShow,
131
- userAction: i.userAction
132
- });
133
- }).catch((r) => {
134
- if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && r instanceof Error)
135
- throw r;
136
- }).finally(() => {
137
- this.showPromise = void 0, this.showRejection = void 0;
138
- }), this.showPromise;
139
- }));
140
- s(this, "_hide", (e) => {
141
- var n;
142
- (n = this.showRejection) == null || n.call(this, c.BreakOffByHide), this.showPromise = void 0;
143
- const i = l(l({}, {
144
- userAction: !0,
145
- isAutoHide: !1
146
- }), e);
147
- F(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
148
- });
149
- s(this, "handleClick", () => {
150
- if (!this.state.visible)
151
- return;
152
- if (this.hooks.emit("click"))
153
- return !1;
154
- });
155
- s(this, "onFiveModelLoaded", () => {
156
- if (this.state.enabled === !1 || this.wrapper || !this.selector)
157
- return;
158
- const e = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
159
- if (!e)
160
- throw new Error("\u4E0D\u6B63\u786E\u7684\u7236\u5BB9\u5668\u9009\u62E9\u5668");
161
- this.wrapper = e, e.append(this.container);
162
- });
163
- s(this, "onFiveModeChange", (e) => {
164
- e !== this.showState.mode && (this.updateState({ visible: !1 }, !1), this._hide({ userAction: !1 }));
165
- });
166
- s(this, "onFiveInteriaPan", (e, t) => {
167
- if (!t || this.state.config.autoShowEnable === !1 || this.isHiddenByHideFunc)
168
- return;
169
- const i = this.five.getCurrentState();
170
- i.mode === "Floorplan" && (this.state.visible || R(i) && (this.updateState({ visible: !0 }, !0), this._show({ isAutoShow: !0 })));
171
- });
172
- s(this, "onFivePanoArrived", (e) => {
173
- var t;
174
- !((t = this.five) != null && t.work) || (this.panoIndex = e, this.floorIndex = this.five.work.observers[e].floorIndex);
175
- });
176
- s(this, "onFiveCameraUpdate", (e, t) => {
177
- if (!this.state.visible || this.showPromise)
178
- return;
179
- const i = this.five.getCurrentState();
180
- W(i) && (this.updateState({ visible: !1 }, t), this._hide({ userAction: t, isAutoHide: !0 }));
181
- });
182
- s(this, "onFiveWantsGesture", (e, t) => {
183
- if (!!this.state.visible && (t.length > 1 || e === "mouseWheel"))
184
- return !1;
185
- });
186
- s(this, "onFiveWantsPanGesture", (e, t) => {
187
- if (this.five.getCurrentState().mode === "Floorplan" && this.state.config.autoShowEnable !== !1 && t && this.state.visible)
188
- return this.five.updateCamera(this.showState, 0), !1;
189
- });
190
- s(this, "onFiveWantsTapGesture", () => this.handleClick());
191
- s(this, "onFiveWantsChangeMode", (e, t) => {
192
- t === "Panorama" && e === "Floorplan" && (this.lastPanoramaLongitude = this.five.getCurrentState().longitude);
193
- });
194
- s(this, "onModelShownFloorChange", (e) => {
195
- if (this.floorIndex !== e) {
196
- if (e === null) {
197
- const t = this.five.getCurrentState().panoIndex;
198
- this.floorIndex = this.five.work.observers[t].floorIndex;
199
- return;
200
- }
201
- this.floorIndex = e, this.updateSize(), this.render();
202
- }
203
- });
204
- t != null && t.selector && (this.selector = t.selector, console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5")), this.showState = {
205
- mode: "Floorplan",
206
- longitude: 0,
207
- latitude: Math.PI / 2,
208
- fov: G / ((r = t == null ? void 0 : t.scale) != null ? r : 1)
209
- };
210
- const i = {
211
- northDesc: "\u5317",
212
- modelOpacity: 1,
213
- hoverEnable: !0,
214
- compassEnable: !0,
215
- autoShowEnable: !0,
216
- ruleLabelsEnable: !0,
217
- roomLabelsEnable: !0,
218
- adaptiveRoomLabelVisibleEnable: !0,
219
- cameraImageUrl: _,
220
- attachedTo: O.BOUNDING_CENTER,
221
- getLabelElement: void 0,
222
- getRoomAreaText: (a) => (a / 1e6).toFixed(1) + "\u33A1",
223
- getRuleDistanceText: (a) => a.toString()
224
- }, n = t ? L(t, ["selector", "scale"]) : {}, d = l(l({}, i), n);
225
- this.state = {
226
- enabled: !0,
227
- visible: !1,
228
- config: d
229
- }, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
230
- }
231
- load(e, t, i = !0) {
232
- return f(this, null, function* () {
233
- function n(p) {
234
- return Object.prototype.hasOwnProperty.apply(p, ["version"]);
235
- }
236
- const d = e;
237
- d && !d.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");
238
- const r = JSON.parse(JSON.stringify(e)), a = n(r) ? r.data : r, u = this.data;
239
- this.data = yield g(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, u), t && this.updateState(t, i), this.render();
240
- });
241
- }
242
- appendTo(e) {
243
- if (this.wrapper = e, !!this.state.enabled)
244
- return e.appendChild(this.container), this.render(), this;
245
- }
246
- enable(e = {}) {
247
- if (this.state.enabled)
248
- return;
249
- const t = e.userAction !== void 0 ? e.userAction : !0;
250
- this.updateState({ enabled: !0 }, e.userAction || t), this._enable({ userAction: t });
251
- }
252
- disable(e = {}) {
253
- if (!this.state.enabled)
254
- return;
255
- const t = e.userAction !== void 0 ? e.userAction : !0;
256
- this.updateState({ enabled: !1 }, e.userAction || t), this._disable({ userAction: t });
257
- }
258
- setState(e, t = {}) {
259
- const i = this.state, n = t.userAction !== void 0 ? t.userAction : !0;
260
- if (this.updateState(e, n), e.enabled !== void 0 && i.enabled !== e.enabled && (e.enabled ? this._enable({ userAction: n }) : this._disable({ userAction: n })), e.visible !== void 0 && i.visible !== e.visible) {
261
- const d = { userAction: n };
262
- e.visible ? this._show(d) : this._hide(d);
263
- }
264
- this.render();
265
- }
266
- changeConfigs(e, t = !0) {
267
- this.updateState({ config: e }, t), this.render();
268
- }
269
- formatData(e) {
270
- return f(this, null, function* () {
271
- return yield g(e.data);
272
- });
273
- }
274
- updateState(e, t) {
275
- const i = this.state, n = e.config ? l(l({}, i.config), e.config) : i.config;
276
- this.state = m(l(l({}, this.state), e), { config: n }), !x(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: t });
277
- }
278
- initContainer() {
279
- this.container.classList.add("floorplan-plugin"), Object.assign(this.container.style, {
280
- position: "absolute",
281
- left: "50%",
282
- top: "50%",
283
- transform: "translate(-50%, -50%)",
284
- zIndex: 10,
285
- pointerEvents: "none"
286
- }), this.five.addExtraElement(this.container);
287
- }
288
- addEventListener() {
289
- if (!this.state.enabled || this.hasAddedEventListener)
290
- return;
291
- const e = this.five;
292
- e.on("modeChange", this.onFiveModeChange), e.on("interiaPan", this.onFiveInteriaPan), e.on("panoArrived", this.onFivePanoArrived), e.on("cameraUpdate", this.onFiveCameraUpdate), e.on("wantsGesture", this.onFiveWantsGesture), e.on("wantsPanGesture", this.onFiveWantsPanGesture), e.on("wantsTapGesture", this.onFiveWantsTapGesture), e.on("wantsChangeMode", this.onFiveWantsChangeMode), e.on("modelShownFloorChange", this.onModelShownFloorChange);
293
- }
294
- removeEventListener() {
295
- const e = this.five;
296
- this.hasAddedEventListener = !1, e.off("modelLoaded", this.onFiveModelLoaded), e.off("modeChange", this.onFiveModeChange), e.off("interiaPan", this.onFiveInteriaPan), e.off("panoArrived", this.onFivePanoArrived), e.off("cameraUpdate", this.onFiveCameraUpdate), e.off("wantsGesture", this.onFiveWantsGesture), e.off("wantsPanGesture", this.onFiveWantsPanGesture), e.off("wantsTapGesture", this.onFiveWantsTapGesture), e.off("wantsChangeMode", this.onFiveWantsChangeMode), e.off("modelShownFloorChange", this.onModelShownFloorChange);
297
- }
298
- render(e) {
299
- if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
300
- return;
301
- const t = m(l({}, this.state.config), {
302
- visible: this.state.visible,
303
- duration: e != null ? e : 0,
304
- panoIndex: this.panoIndex,
305
- floorIndex: this.floorIndex,
306
- floorplanData: this.data,
307
- lastPanoramaLongitude: this.lastPanoramaLongitude
308
- });
309
- if (this.app)
310
- return this.app.$set(t);
311
- this.app = new y({ target: this.container, intro: !0, props: t });
312
- }
313
- }
314
- export {
315
- ee as Controller
316
- };
1
+ "use strict";var S=Object.defineProperty,C=Object.defineProperties;var _=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var v=(h,o,e)=>o in h?S(h,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):h[o]=e,u=(h,o)=>{for(var e in o||(o={}))P.call(o,e)&&v(h,e,o[e]);if(g)for(var e of g(o))y.call(o,e)&&v(h,e,o[e]);return h},w=(h,o)=>C(h,_(o));var s=(h,o,e)=>(v(h,typeof o!="symbol"?o+"":o,e),e);var c=(h,o,e)=>new Promise((t,i)=>{var n=a=>{try{r(e.next(a))}catch(l){i(l)}},d=a=>{try{r(e.throw(a))}catch(l){i(l)}},r=a=>a.done?t(a.value):Promise.resolve(a.value).then(n,d);r((e=e.apply(h,o)).next())});const M=require("../../shared-utils/to.js"),I=require("../../shared-utils/equal.js"),x=require("../Components/Main.js"),b=require("../utils/formatData.js"),D=require("../Assets/camera.js"),L=require("../../shared-utils/filter.js"),O=require("../../shared-utils/getPxmm.js"),T=require("../constant.js"),j=require("../../base/BasePluginWithData.js"),F=require("../utils/correctFiveState.js"),A=require("../../shared-utils/changeModelCanvasOpacity.js"),f=require("../utils/constant.js");function k(h){const{latitude:o,longitude:e}=h,t=Math.abs(o-Math.PI/2)>5*Math.PI/180,i=e>5*(Math.PI/180)&&e<355*(Math.PI/180);return t||i}function B(h){const{latitude:o,longitude:e}=h,t=Math.abs(o-Math.PI/2)<10*Math.PI/180,i=e<30*(Math.PI/180)||e>330*(Math.PI/180);return t&&i}class W extends j.Controller{constructor(e,t){var r;super(e);s(this,"name","modelFloorplanPlugin");s(this,"state");s(this,"data");s(this,"showState");s(this,"showPromise");s(this,"app");s(this,"panoIndex",0);s(this,"floorIndex",0);s(this,"selector");s(this,"showRejection");s(this,"wrapper");s(this,"container",document.createElement("div"));s(this,"lastPanoramaLongitude",0);s(this,"size",{width:0,height:0});s(this,"hasAddedEventListener",!1);s(this,"isHiddenByHideFunc",!1);s(this,"dispose",()=>{var e,t;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(t=this.container)==null||t.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});s(this,"show",(...t)=>c(this,[...t],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const i=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},i),this._show(e)}));s(this,"hide",(...t)=>c(this,[...t],function*(e={}){!this.state.enabled||(this.isHiddenByHideFunc=!0,this.state.visible!==!1&&(this.updateState({visible:!1},e.userAction||!0),this._hide(e)))}));s(this,"updateSize",()=>{if(!this.data||!F.checkShowState(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:t}=this.data.bounding,i=t.x-e.x,n=t.y-e.y,d=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,r=O.getPxmm(this.five,this.wrapper,this.floorIndex,d),a=Math.ceil(i*r),l=Math.ceil(n*r);this.size.width===a&&this.size.height===l||(this.container.style.width=a+"px",this.container.style.height=l+"px",this.size={width:a,height:l})});s(this,"_disable",e=>{var i,n,d;const{userAction:t}=e;this.hooks.emit("disable",{userAction:t}),(i=this.showRejection)==null||i.call(this,f.FloorplanErrorType.BreakOffByDisable),this.showPromise=void 0,(n=this.app)==null||n.$destroy(),this.app=void 0,(d=this.container)==null||d.remove(),this.removeEventListener()});s(this,"_enable",e=>{const{userAction:t}=e;this.addEventListener(),this.wrapper&&(this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:t}),this.state.visible&&this._show({userAction:t}))});s(this,"_show",e=>c(this,null,function*(){var d;if(!this.state.enabled)return;if(!((d=this.five.model)!=null&&d.loaded))throw new Error(f.FloorplanErrorType.ModelNotLoaded);if(!this.data)throw new Error(f.FloorplanErrorType.DataNotLoaded);this.isHiddenByHideFunc=!1;const t={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},i=u(u({},t),e),n=()=>c(this,null,function*(){this.hooks.emit("show",{userAction:i.userAction,auto:i.isAutoShow});let r=!1,a;this.showRejection=E=>{r=!0,a=E};const[l]=yield M.to(F.correctFiveState(this.five,this.showState,i.userAction));if(l)throw l;if(r)throw a?new Error(a):new Error(f.FloorplanErrorType.UnknownError);this.updateSize(),this.floorIndex=i.floorIndex,this.five.model.show(this.floorIndex);const p=i.modelOpacity,m=i.immediately?0:f.SHOW_ANIME_DURATION;A.changeModelCanvasOpacity(this.five,p,m),this.render(m)});return this.showPromise=n().then(()=>{this.hooks.emit("showAnimationEnded",{auto:i.isAutoShow,userAction:i.userAction})}).catch(r=>{if(this.updateState({visible:!1},i.userAction),!i.isAutoShow&&r instanceof Error)throw r}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));s(this,"_hide",e=>{var n;(n=this.showRejection)==null||n.call(this,f.FloorplanErrorType.BreakOffByHide),this.showPromise=void 0;const i=u(u({},{userAction:!0,isAutoHide:!1}),e);A.changeModelCanvasOpacity(this.five,1,0),this.hooks.emit("hide",{auto:i.isAutoHide,userAction:i.userAction}),this.render()});s(this,"handleClick",()=>{if(!this.state.visible)return;if(this.hooks.emit("click"))return!1});s(this,"onFiveModelLoaded",()=>{if(this.state.enabled===!1||this.wrapper||!this.selector)return;const e=this.selector instanceof Element?this.selector:document.querySelector(this.selector);if(!e)throw new Error("\u4E0D\u6B63\u786E\u7684\u7236\u5BB9\u5668\u9009\u62E9\u5668");this.wrapper=e,e.append(this.container)});s(this,"onFiveModeChange",e=>{e!==this.showState.mode&&(this.updateState({visible:!1},!1),this._hide({userAction:!1}))});s(this,"onFiveInteriaPan",(e,t)=>{if(!t||this.state.config.autoShowEnable===!1||this.isHiddenByHideFunc)return;const i=this.five.getCurrentState();i.mode==="Floorplan"&&(this.state.visible||B(i)&&(this.updateState({visible:!0},!0),this._show({isAutoShow:!0})))});s(this,"onFivePanoArrived",e=>{var t;!((t=this.five)!=null&&t.work)||(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});s(this,"onFiveCameraUpdate",(e,t)=>{if(!this.state.visible||this.showPromise)return;const i=this.five.getCurrentState();k(i)&&(this.updateState({visible:!1},t),this._hide({userAction:t,isAutoHide:!0}))});s(this,"onFiveWantsGesture",(e,t)=>{if(!!this.state.visible&&(t.length>1||e==="mouseWheel"))return!1});s(this,"onFiveWantsPanGesture",(e,t)=>{if(this.five.getCurrentState().mode==="Floorplan"&&this.state.config.autoShowEnable!==!1&&t&&this.state.visible)return this.five.updateCamera(this.showState,0),!1});s(this,"onFiveWantsTapGesture",()=>this.handleClick());s(this,"onFiveWantsChangeMode",(e,t)=>{t==="Panorama"&&e==="Floorplan"&&(this.lastPanoramaLongitude=this.five.getCurrentState().longitude)});s(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const t=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[t].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});t!=null&&t.selector&&(this.selector=t.selector,console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5")),this.showState={mode:"Floorplan",longitude:0,latitude:Math.PI/2,fov:f.FIVE_CAMERA_DEFAULT_FOV/((r=t==null?void 0:t.scale)!=null?r:1)};const i={northDesc:"\u5317",modelOpacity:1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,adaptiveRoomLabelVisibleEnable:!0,cameraImageUrl:D.CAMERA_IMAGE,attachedTo:T.FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,getLabelElement:void 0,getRoomAreaText:a=>(a/1e6).toFixed(1)+"\u33A1",getRuleDistanceText:a=>a.toString()},n=t?L.omit(t,["selector","scale"]):{},d=u(u({},i),n);this.state={enabled:!0,visible:!1,config:d},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,t,i=!0){return c(this,null,function*(){function n(p){return Object.prototype.hasOwnProperty.apply(p,["version"])}const d=e;d&&!d.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");const r=JSON.parse(JSON.stringify(e)),a=n(r)?r.data:r,l=this.data;this.data=yield b.formatData(a),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,l),t&&this.updateState(t,i),this.render()})}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}enable(e={}){if(this.state.enabled)return;const t=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||t),this._enable({userAction:t})}disable(e={}){if(!this.state.enabled)return;const t=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||t),this._disable({userAction:t})}setState(e,t={}){const i=this.state,n=t.userAction!==void 0?t.userAction:!0;if(this.updateState(e,n),e.enabled!==void 0&&i.enabled!==e.enabled&&(e.enabled?this._enable({userAction:n}):this._disable({userAction:n})),e.visible!==void 0&&i.visible!==e.visible){const d={userAction:n};e.visible?this._show(d):this._hide(d)}this.render()}changeConfigs(e,t=!0){this.updateState({config:e},t),this.render()}formatData(e){return c(this,null,function*(){return yield b.formatData(e.data)})}updateState(e,t){const i=this.state,n=e.config?u(u({},i.config),e.config):i.config;this.state=w(u(u({},this.state),e),{config:n}),!I.equal(this.state,i,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:i,userAction:t})}initContainer(){this.container.classList.add("floorplan-plugin"),Object.assign(this.container.style,{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:10,pointerEvents:"none"}),this.five.addExtraElement(this.container)}addEventListener(){if(!this.state.enabled||this.hasAddedEventListener)return;const e=this.five;e.on("modeChange",this.onFiveModeChange),e.on("interiaPan",this.onFiveInteriaPan),e.on("panoArrived",this.onFivePanoArrived),e.on("cameraUpdate",this.onFiveCameraUpdate),e.on("wantsGesture",this.onFiveWantsGesture),e.on("wantsPanGesture",this.onFiveWantsPanGesture),e.on("wantsTapGesture",this.onFiveWantsTapGesture),e.on("wantsChangeMode",this.onFiveWantsChangeMode),e.on("modelShownFloorChange",this.onModelShownFloorChange)}removeEventListener(){const e=this.five;this.hasAddedEventListener=!1,e.off("modelLoaded",this.onFiveModelLoaded),e.off("modeChange",this.onFiveModeChange),e.off("interiaPan",this.onFiveInteriaPan),e.off("panoArrived",this.onFivePanoArrived),e.off("cameraUpdate",this.onFiveCameraUpdate),e.off("wantsGesture",this.onFiveWantsGesture),e.off("wantsPanGesture",this.onFiveWantsPanGesture),e.off("wantsTapGesture",this.onFiveWantsTapGesture),e.off("wantsChangeMode",this.onFiveWantsChangeMode),e.off("modelShownFloorChange",this.onModelShownFloorChange)}render(e){if(!this.state.enabled||!this.container||!this.data||this.size.width===0)return;const t=w(u({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude});if(this.app)return this.app.$set(t);this.app=new x.Main({target:this.container,intro:!0,props:t})}}exports.Controller=W;
@@ -1,6 +1 @@
1
- import { Controller as l } from "./Controller.js";
2
- const n = (o, r) => new l(o, r);
3
- export {
4
- n as ModelFloorplanPlugin,
5
- n as default
6
- };
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./Controller.js");require("../../shared-utils/to.js");require("../../shared-utils/equal.js");require("../../shared-utils/isTruelyObject.js");require("../Components/Main.js");require("svelte/internal");require("svelte/easing");require("svelte/transition");require("../Components/Camera.js");require("../Assets/camera.js");require("../../shared-utils/math/rad2Deg.js");require("../Components/Compass.js");require("../Assets/compass.js");require("../Components/CurrentFloor.js");require("svelte/store");require("../Components/BaseImage.js");require("../Components/Normalmage.js");require("../Components/SvgImage.js");require("../Components/RoomLabels/RoomLabels.js");require("../Components/RoomLabels/RoomLabel.js");require("svelte");require("../Components/RuleLabels/RuleLabels.js");require("../Components/RuleLabels/RuleItem.js");require("../Components/RoomMaterials/RoomMaterial.js");require("../utils/formatPosition.js");require("../Components/RoomMaterials/RoomMaterial_0.js");require("../Components/RoomMaterials/RoomMaterial_1.js");require("../Components/RoomMaterials/RoomMaterial_2.js");require("../Components/RoomHighlight/RoomHighlight.js");require("../Components/RoomHighlight/Room.js");require("../utils/formatData.js");require("../Assets/floorplanExtraObject.js");require("../../shared-utils/filter.js");require("../../shared-utils/tap.js");require("../../shared-utils/getPxmm.js");require("../constant.js");require("three");require("../../base/BasePluginWithData.js");require("../../base/BasePlugin.js");require("../../shared-utils/Subscribe.js");require("../utils/correctFiveState.js");require("../utils/constant.js");require("../../shared-utils/nearlyEqual.js");require("../../shared-utils/five/changeMode.js");require("../../shared-utils/changeModelCanvasOpacity.js");const e=(r,s)=>new o.Controller(r,s);exports.ModelFloorplanPlugin=e;exports.default=e;
@@ -1,85 +1 @@
1
- import { SvelteComponent as w, init as y, safe_not_equal as k, append_styles as T, element as p, attr as g, set_style as l, insert as W, append as x, noop as I, detach as P } from "svelte/internal";
2
- import { onMount as S } from "svelte";
3
- import { CAMERA_IMAGE as b } from "../../Assets/camera.js";
4
- import E from "../../../shared-utils/throttle.js";
5
- function F(n) {
6
- T(n, "svelte-1nqrlxd", ".plugin-radar__camera-wrapper.svelte-1nqrlxd{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-1nqrlxd{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-1nqrlxd{position:absolute;left:-0.9375rem;top:-0.9375rem;width:1.0625rem;height:1.0625rem;transform-origin:0.9375rem 0.9375rem;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}");
7
- }
8
- function R(n) {
9
- let a, t, o;
10
- return {
11
- c() {
12
- a = p("div"), t = p("div"), o = p("div"), g(o, "class", "plugin-radar__camera-rotate svelte-1nqrlxd"), l(o, "background-image", "url(" + (n[0] || b) + ")"), l(o, "transform", n[1], !1), g(t, "class", "plugin-radar__camera-position svelte-1nqrlxd"), l(t, "transform", n[2], !1), g(a, "class", "plugin-radar__camera-wrapper svelte-1nqrlxd");
13
- },
14
- m(i, r) {
15
- W(i, a, r), x(a, t), x(t, o);
16
- },
17
- p(i, [r]) {
18
- r & 1 && l(o, "background-image", "url(" + (i[0] || b) + ")"), r & 2 && l(o, "transform", i[1], !1), r & 4 && l(t, "transform", i[2], !1);
19
- },
20
- i: I,
21
- o: I,
22
- d(i) {
23
- i && P(a);
24
- }
25
- };
26
- }
27
- function z(n) {
28
- return `rotate(${Math.floor(n / Math.PI * 180) * -1 + 45}deg)`;
29
- }
30
- function G(n, a, t) {
31
- let o, i, { five: r } = a, { pxmm: m } = a, { floorplanData: f } = a, { cameraImageUrl: v } = a, c = r.getCurrentState().panoIndex, d = r.getCurrentState().longitude;
32
- function q(e, C) {
33
- const s = e.bounding, u = e.observers[C];
34
- if (!u)
35
- return "";
36
- const M = (s.max.x - s.min.x) * m, U = (s.max.y - s.min.y) * m, A = Math.floor(u.positionInImage.x * M), D = Math.floor(u.positionInImage.y * U);
37
- return `translate(${A}px, ${D}px)`;
38
- }
39
- function _(e) {
40
- t(6, c = e);
41
- }
42
- const h = E(
43
- (e) => {
44
- t(7, d = e.longitude);
45
- },
46
- 1e3 / 60
47
- );
48
- return S(() => (r.on("panoWillArrive", _), r.on("cameraDirectionUpdate", h), function() {
49
- r.off("panoWillArrive", _), r.off("cameraDirectionUpdate", h);
50
- })), n.$$set = (e) => {
51
- "five" in e && t(3, r = e.five), "pxmm" in e && t(4, m = e.pxmm), "floorplanData" in e && t(5, f = e.floorplanData), "cameraImageUrl" in e && t(0, v = e.cameraImageUrl);
52
- }, n.$$.update = () => {
53
- n.$$.dirty & 96 && t(2, o = q(f, c)), n.$$.dirty & 128 && t(1, i = z(d));
54
- }, [
55
- v,
56
- i,
57
- o,
58
- r,
59
- m,
60
- f,
61
- c,
62
- d
63
- ];
64
- }
65
- class J extends w {
66
- constructor(a) {
67
- super(), y(
68
- this,
69
- a,
70
- G,
71
- R,
72
- k,
73
- {
74
- five: 3,
75
- pxmm: 4,
76
- floorplanData: 5,
77
- cameraImageUrl: 0
78
- },
79
- F
80
- );
81
- }
82
- }
83
- export {
84
- J as default
85
- };
1
+ "use strict";const e=require("svelte/internal"),y=require("svelte"),v=require("../../Assets/camera.js"),C=require("../../../shared-utils/throttle.js");function M(a){e.append_styles(a,"svelte-1nqrlxd",".plugin-radar__camera-wrapper.svelte-1nqrlxd{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-1nqrlxd{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-1nqrlxd{position:absolute;left:-0.9375rem;top:-0.9375rem;width:1.0625rem;height:1.0625rem;transform-origin:0.9375rem 0.9375rem;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}")}function U(a){let o,r,i;return{c(){o=e.element("div"),r=e.element("div"),i=e.element("div"),e.attr(i,"class","plugin-radar__camera-rotate svelte-1nqrlxd"),e.set_style(i,"background-image","url("+(a[0]||v.CAMERA_IMAGE)+")"),e.set_style(i,"transform",a[1],!1),e.attr(r,"class","plugin-radar__camera-position svelte-1nqrlxd"),e.set_style(r,"transform",a[2],!1),e.attr(o,"class","plugin-radar__camera-wrapper svelte-1nqrlxd")},m(s,n){e.insert(s,o,n),e.append(o,r),e.append(r,i)},p(s,[n]){n&1&&e.set_style(i,"background-image","url("+(s[0]||v.CAMERA_IMAGE)+")"),n&2&&e.set_style(i,"transform",s[1],!1),n&4&&e.set_style(r,"transform",s[2],!1)},i:e.noop,o:e.noop,d(s){s&&e.detach(o)}}}function D(a){return`rotate(${Math.floor(a/Math.PI*180)*-1+45}deg)`}function w(a,o,r){let i,s,{five:n}=o,{pxmm:l}=o,{floorplanData:f}=o,{cameraImageUrl:p}=o,c=n.getCurrentState().panoIndex,u=n.getCurrentState().longitude;function h(t,x){const m=t.bounding,d=t.observers[x];if(!d)return"";const I=(m.max.x-m.min.x)*l,q=(m.max.y-m.min.y)*l,b=Math.floor(d.positionInImage.x*I),A=Math.floor(d.positionInImage.y*q);return`translate(${b}px, ${A}px)`}function g(t){r(6,c=t)}const _=C.throttle(t=>{r(7,u=t.longitude)},1e3/60);return y.onMount(()=>(n.on("panoWillArrive",g),n.on("cameraDirectionUpdate",_),function(){n.off("panoWillArrive",g),n.off("cameraDirectionUpdate",_)})),a.$$set=t=>{"five"in t&&r(3,n=t.five),"pxmm"in t&&r(4,l=t.pxmm),"floorplanData"in t&&r(5,f=t.floorplanData),"cameraImageUrl"in t&&r(0,p=t.cameraImageUrl)},a.$$.update=()=>{a.$$.dirty&96&&r(2,i=h(f,c)),a.$$.dirty&128&&r(1,s=D(u))},[p,s,i,n,l,f,c,u]}class k extends e.SvelteComponent{constructor(o){super(),e.init(this,o,w,U,e.safe_not_equal,{five:3,pxmm:4,floorplanData:5,cameraImageUrl:0},M)}}exports.Camera=k;
@@ -1,129 +1 @@
1
- import { SvelteComponent as E, init as O, safe_not_equal as C, assign as D, create_component as c, space as j, empty as H, mount_component as p, insert as h, get_spread_update as k, transition_in as g, group_outros as R, transition_out as _, check_outros as w, destroy_component as d, detach as b } from "svelte/internal";
2
- import F from "./ExtraObjects.js";
3
- import q from "../../../Components/BaseImage.js";
4
- import B from "../../../Components/RoomHighlight/RoomHighlight.js";
5
- function x(f) {
6
- let n, l;
7
- const i = [
8
- {
9
- five: f[0],
10
- pxmm: f[1],
11
- floorIndex: f[2],
12
- floorplanData: f[4],
13
- onRoomHeightClick: f[6]
14
- }
15
- ];
16
- let m = {};
17
- for (let t = 0; t < i.length; t += 1)
18
- m = D(m, i[t]);
19
- return n = new B({ props: m }), {
20
- c() {
21
- c(n.$$.fragment);
22
- },
23
- m(t, a) {
24
- p(n, t, a), l = !0;
25
- },
26
- p(t, a) {
27
- const s = a & 87 ? k(i, [
28
- {
29
- five: t[0],
30
- pxmm: t[1],
31
- floorIndex: t[2],
32
- floorplanData: t[4],
33
- onRoomHeightClick: t[6]
34
- }
35
- ]) : {};
36
- n.$set(s);
37
- },
38
- i(t) {
39
- l || (g(n.$$.fragment, t), l = !0);
40
- },
41
- o(t) {
42
- _(n.$$.fragment, t), l = !1;
43
- },
44
- d(t) {
45
- d(n, t);
46
- }
47
- };
48
- }
49
- function N(f) {
50
- let n, l, i, m, t, a;
51
- const s = [
52
- {
53
- floorIndex: f[2],
54
- floorplanData: f[4]
55
- }
56
- ];
57
- let u = {};
58
- for (let e = 0; e < s.length; e += 1)
59
- u = D(u, s[e]);
60
- n = new q({ props: u }), i = new F({
61
- props: {
62
- extraObjects: f[5]
63
- }
64
- });
65
- let r = f[3] && x(f);
66
- return {
67
- c() {
68
- c(n.$$.fragment), l = j(), c(i.$$.fragment), m = j(), r && r.c(), t = H();
69
- },
70
- m(e, o) {
71
- p(n, e, o), h(e, l, o), p(i, e, o), h(e, m, o), r && r.m(e, o), h(e, t, o), a = !0;
72
- },
73
- p(e, [o]) {
74
- const v = o & 20 ? k(s, [
75
- {
76
- floorIndex: e[2],
77
- floorplanData: e[4]
78
- }
79
- ]) : {};
80
- n.$set(v);
81
- const I = {};
82
- o & 32 && (I.extraObjects = e[5]), i.$set(I), e[3] ? r ? (r.p(e, o), o & 8 && g(r, 1)) : (r = x(e), r.c(), g(r, 1), r.m(t.parentNode, t)) : r && (R(), _(r, 1, 1, () => {
83
- r = null;
84
- }), w());
85
- },
86
- i(e) {
87
- a || (g(n.$$.fragment, e), g(i.$$.fragment, e), g(r), a = !0);
88
- },
89
- o(e) {
90
- _(n.$$.fragment, e), _(i.$$.fragment, e), _(r), a = !1;
91
- },
92
- d(e) {
93
- d(n, e), e && b(l), d(i, e), e && b(m), r && r.d(e), e && b(t);
94
- }
95
- };
96
- }
97
- function S(f, n, l) {
98
- let i, { five: m } = n, { pxmm: t } = n, { floorIndex: a } = n, { hoverEnable: s } = n, { floorplanData: u } = n, { extraObjects: r = [] } = n;
99
- const e = void 0;
100
- return f.$$set = (o) => {
101
- "five" in o && l(0, m = o.five), "pxmm" in o && l(1, t = o.pxmm), "floorIndex" in o && l(2, a = o.floorIndex), "hoverEnable" in o && l(3, s = o.hoverEnable), "floorplanData" in o && l(4, u = o.floorplanData), "extraObjects" in o && l(7, r = o.extraObjects);
102
- }, f.$$.update = () => {
103
- f.$$.dirty & 132 && l(5, i = r == null ? void 0 : r.filter((o) => o.floorIndex === a));
104
- }, [
105
- m,
106
- t,
107
- a,
108
- s,
109
- u,
110
- i,
111
- e,
112
- r
113
- ];
114
- }
115
- class J extends E {
116
- constructor(n) {
117
- super(), O(this, n, S, N, C, {
118
- five: 0,
119
- pxmm: 1,
120
- floorIndex: 2,
121
- hoverEnable: 3,
122
- floorplanData: 4,
123
- extraObjects: 7
124
- });
125
- }
126
- }
127
- export {
128
- J as default
129
- };
1
+ "use strict";const e=require("svelte/internal"),p=require("./ExtraObjects.js"),b=require("../../../Components/BaseImage.js"),d=require("../../../Components/RoomHighlight/RoomHighlight.js");function c(l){let r,a;const s=[{five:l[0],pxmm:l[1],floorIndex:l[2],floorplanData:l[4],onRoomHeightClick:l[6]}];let m={};for(let n=0;n<s.length;n+=1)m=e.assign(m,s[n]);return r=new d.RoomHighlight({props:m}),{c(){e.create_component(r.$$.fragment)},m(n,f){e.mount_component(r,n,f),a=!0},p(n,f){const _=f&87?e.get_spread_update(s,[{five:n[0],pxmm:n[1],floorIndex:n[2],floorplanData:n[4],onRoomHeightClick:n[6]}]):{};r.$set(_)},i(n){a||(e.transition_in(r.$$.fragment,n),a=!0)},o(n){e.transition_out(r.$$.fragment,n),a=!1},d(n){e.destroy_component(r,n)}}}function j(l){let r,a,s,m,n,f;const _=[{floorIndex:l[2],floorplanData:l[4]}];let u={};for(let t=0;t<_.length;t+=1)u=e.assign(u,_[t]);r=new b.BaseImage({props:u}),s=new p.ExtraObjects({props:{extraObjects:l[5]}});let i=l[3]&&c(l);return{c(){e.create_component(r.$$.fragment),a=e.space(),e.create_component(s.$$.fragment),m=e.space(),i&&i.c(),n=e.empty()},m(t,o){e.mount_component(r,t,o),e.insert(t,a,o),e.mount_component(s,t,o),e.insert(t,m,o),i&&i.m(t,o),e.insert(t,n,o),f=!0},p(t,[o]){const h=o&20?e.get_spread_update(_,[{floorIndex:t[2],floorplanData:t[4]}]):{};r.$set(h);const g={};o&32&&(g.extraObjects=t[5]),s.$set(g),t[3]?i?(i.p(t,o),o&8&&e.transition_in(i,1)):(i=c(t),i.c(),e.transition_in(i,1),i.m(n.parentNode,n)):i&&(e.group_outros(),e.transition_out(i,1,1,()=>{i=null}),e.check_outros())},i(t){f||(e.transition_in(r.$$.fragment,t),e.transition_in(s.$$.fragment,t),e.transition_in(i),f=!0)},o(t){e.transition_out(r.$$.fragment,t),e.transition_out(s.$$.fragment,t),e.transition_out(i),f=!1},d(t){e.destroy_component(r,t),t&&e.detach(a),e.destroy_component(s,t),t&&e.detach(m),i&&i.d(t),t&&e.detach(n)}}}function C(l,r,a){let s,{five:m}=r,{pxmm:n}=r,{floorIndex:f}=r,{hoverEnable:_}=r,{floorplanData:u}=r,{extraObjects:i=[]}=r;const t=void 0;return l.$$set=o=>{"five"in o&&a(0,m=o.five),"pxmm"in o&&a(1,n=o.pxmm),"floorIndex"in o&&a(2,f=o.floorIndex),"hoverEnable"in o&&a(3,_=o.hoverEnable),"floorplanData"in o&&a(4,u=o.floorplanData),"extraObjects"in o&&a(7,i=o.extraObjects)},l.$$.update=()=>{l.$$.dirty&132&&a(5,s=i==null?void 0:i.filter(o=>o.floorIndex===f))},[m,n,f,_,u,s,t,i]}class I extends e.SvelteComponent{constructor(r){super(),e.init(this,r,C,j,e.safe_not_equal,{five:0,pxmm:1,floorIndex:2,hoverEnable:3,floorplanData:4,extraObjects:7})}}exports.CurrentFloor=I;
@@ -1,72 +1 @@
1
- import { SvelteComponent as j, init as k, safe_not_equal as $, append_styles as w, element as h, attr as _, insert as b, update_keyed_each as y, destroy_block as I, noop as u, detach as v, space as z, set_style as r, append as g } from "svelte/internal";
2
- function x(a) {
3
- w(a, "svelte-1i87fz7", ".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}");
4
- }
5
- function d(a, t, e) {
6
- const i = a.slice();
7
- return i[1] = t[e], i;
8
- }
9
- function m(a, t) {
10
- let e, i, n = `${t[1].icon.width / 16}rem`, f = `${t[1].icon.height / 16}rem`, l, o = `${t[1].positionInImage.y * 100}%`, s = `${t[1].positionInImage.x * 100}%`;
11
- return {
12
- key: a,
13
- first: null,
14
- c() {
15
- e = h("div"), i = h("div"), l = z(), _(i, "class", "plugin-pano-floorplan__extra-object-item svelte-1i87fz7"), r(i, "background-image", `url(${t[1].icon.url})`), r(i, "width", n, !1), r(i, "height", f, !1), _(e, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"), r(e, "top", o, !1), r(e, "left", s, !1), this.first = e;
16
- },
17
- m(p, c) {
18
- b(p, e, c), g(e, i), g(e, l);
19
- },
20
- p(p, c) {
21
- t = p, c & 1 && r(i, "background-image", `url(${t[1].icon.url})`), c & 1 && n !== (n = `${t[1].icon.width / 16}rem`) && r(i, "width", n, !1), c & 1 && f !== (f = `${t[1].icon.height / 16}rem`) && r(i, "height", f, !1), c & 1 && o !== (o = `${t[1].positionInImage.y * 100}%`) && r(e, "top", o, !1), c & 1 && s !== (s = `${t[1].positionInImage.x * 100}%`) && r(e, "left", s, !1);
22
- },
23
- d(p) {
24
- p && v(e);
25
- }
26
- };
27
- }
28
- function O(a) {
29
- let t, e = [], i = /* @__PURE__ */ new Map(), n = a[0];
30
- const f = (l) => l[1].id;
31
- for (let l = 0; l < n.length; l += 1) {
32
- let o = d(a, n, l), s = f(o);
33
- i.set(s, e[l] = m(s, o));
34
- }
35
- return {
36
- c() {
37
- t = h("div");
38
- for (let l = 0; l < e.length; l += 1)
39
- e[l].c();
40
- _(t, "class", "plugin-pano-floorplan__extra-objects svelte-1i87fz7");
41
- },
42
- m(l, o) {
43
- b(l, t, o);
44
- for (let s = 0; s < e.length; s += 1)
45
- e[s].m(t, null);
46
- },
47
- p(l, [o]) {
48
- o & 1 && (n = l[0], e = y(e, o, f, 1, l, n, i, t, I, m, null, d));
49
- },
50
- i: u,
51
- o: u,
52
- d(l) {
53
- l && v(t);
54
- for (let o = 0; o < e.length; o += 1)
55
- e[o].d();
56
- }
57
- };
58
- }
59
- function q(a, t, e) {
60
- let { extraObjects: i = [] } = t;
61
- return a.$$set = (n) => {
62
- "extraObjects" in n && e(0, i = n.extraObjects);
63
- }, [i];
64
- }
65
- class E extends j {
66
- constructor(t) {
67
- super(), k(this, t, q, O, $, { extraObjects: 0 }, x);
68
- }
69
- }
70
- export {
71
- E as default
72
- };
1
+ "use strict";const e=require("svelte/internal");function u(a){e.append_styles(a,"svelte-1i87fz7",".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}")}function _(a,l,t){const n=a.slice();return n[1]=l[t],n}function h(a,l){let t,n,o=`${l[1].icon.width/16}rem`,c=`${l[1].icon.height/16}rem`,i,s=`${l[1].positionInImage.y*100}%`,r=`${l[1].positionInImage.x*100}%`;return{key:a,first:null,c(){t=e.element("div"),n=e.element("div"),i=e.space(),e.attr(n,"class","plugin-pano-floorplan__extra-object-item svelte-1i87fz7"),e.set_style(n,"background-image",`url(${l[1].icon.url})`),e.set_style(n,"width",o,!1),e.set_style(n,"height",c,!1),e.attr(t,"class","plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"),e.set_style(t,"top",s,!1),e.set_style(t,"left",r,!1),this.first=t},m(p,f){e.insert(p,t,f),e.append(t,n),e.append(t,i)},p(p,f){l=p,f&1&&e.set_style(n,"background-image",`url(${l[1].icon.url})`),f&1&&o!==(o=`${l[1].icon.width/16}rem`)&&e.set_style(n,"width",o,!1),f&1&&c!==(c=`${l[1].icon.height/16}rem`)&&e.set_style(n,"height",c,!1),f&1&&s!==(s=`${l[1].positionInImage.y*100}%`)&&e.set_style(t,"top",s,!1),f&1&&r!==(r=`${l[1].positionInImage.x*100}%`)&&e.set_style(t,"left",r,!1)},d(p){p&&e.detach(t)}}}function g(a){let l,t=[],n=new Map,o=a[0];const c=i=>i[1].id;for(let i=0;i<o.length;i+=1){let s=_(a,o,i),r=c(s);n.set(r,t[i]=h(r,s))}return{c(){l=e.element("div");for(let i=0;i<t.length;i+=1)t[i].c();e.attr(l,"class","plugin-pano-floorplan__extra-objects svelte-1i87fz7")},m(i,s){e.insert(i,l,s);for(let r=0;r<t.length;r+=1)t[r].m(l,null)},p(i,[s]){s&1&&(o=i[0],t=e.update_keyed_each(t,s,c,1,i,o,n,l,e.destroy_block,h,null,_))},i:e.noop,o:e.noop,d(i){i&&e.detach(l);for(let s=0;s<t.length;s+=1)t[s].d()}}}function d(a,l,t){let{extraObjects:n=[]}=l;return a.$$set=o=>{"extraObjects"in o&&t(0,n=o.extraObjects)},[n]}class m extends e.SvelteComponent{constructor(l){super(),e.init(this,l,d,g,e.safe_not_equal,{extraObjects:0},u)}}exports.ExtraObjects=m;