@realsee/dnalogel 2.0.0-alpha.48 → 2.0.0-alpha.50

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 (411) hide show
  1. package/dist/CSS3DRenderPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  2. package/dist/CSS3DRenderPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  3. package/dist/CSS3DRenderPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  4. package/dist/CSS3DRenderPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  5. package/dist/CSS3DRenderPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  6. package/dist/CSS3DRenderPlugin/floorplan/index.d.ts +2 -1
  7. package/dist/CameraMovementPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  8. package/dist/CameraMovementPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  9. package/dist/CameraMovementPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  10. package/dist/CameraMovementPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  11. package/dist/CameraMovementPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  12. package/dist/CameraMovementPlugin/floorplan/index.d.ts +2 -1
  13. package/dist/ItemLabelPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  14. package/dist/ItemLabelPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  15. package/dist/ItemLabelPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  16. package/dist/ItemLabelPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  17. package/dist/ItemLabelPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  18. package/dist/ItemLabelPlugin/floorplan/index.d.ts +2 -1
  19. package/dist/ModelChassisCompassPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  20. package/dist/ModelChassisCompassPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  21. package/dist/ModelChassisCompassPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  22. package/dist/ModelChassisCompassPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  23. package/dist/ModelChassisCompassPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  24. package/dist/ModelChassisCompassPlugin/floorplan/index.d.ts +2 -1
  25. package/dist/ModelEntryDoorGuidePlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  26. package/dist/ModelEntryDoorGuidePlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  27. package/dist/ModelEntryDoorGuidePlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  28. package/dist/ModelEntryDoorGuidePlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  29. package/dist/ModelEntryDoorGuidePlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  30. package/dist/ModelEntryDoorGuidePlugin/floorplan/index.d.ts +2 -1
  31. package/dist/ModelItemLabelPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  32. package/dist/ModelItemLabelPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  33. package/dist/ModelItemLabelPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  34. package/dist/ModelItemLabelPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  35. package/dist/ModelItemLabelPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  36. package/dist/ModelItemLabelPlugin/floorplan/index.d.ts +2 -1
  37. package/dist/ModelRoomLabelPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  38. package/dist/ModelRoomLabelPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  39. package/dist/ModelRoomLabelPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  40. package/dist/ModelRoomLabelPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  41. package/dist/ModelRoomLabelPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  42. package/dist/ModelRoomLabelPlugin/floorplan/index.d.ts +2 -1
  43. package/dist/ModelTVVideoPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  44. package/dist/ModelTVVideoPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  45. package/dist/ModelTVVideoPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  46. package/dist/ModelTVVideoPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  47. package/dist/ModelTVVideoPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  48. package/dist/ModelTVVideoPlugin/floorplan/index.d.ts +2 -1
  49. package/dist/ModelTVVideoPlugin/index.js +2 -2
  50. package/dist/ModelViewPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  51. package/dist/ModelViewPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  52. package/dist/ModelViewPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  53. package/dist/ModelViewPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  54. package/dist/ModelViewPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  55. package/dist/ModelViewPlugin/floorplan/index.d.ts +2 -1
  56. package/dist/PanoCompassPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  57. package/dist/PanoCompassPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  58. package/dist/PanoCompassPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  59. package/dist/PanoCompassPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  60. package/dist/PanoCompassPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  61. package/dist/PanoCompassPlugin/floorplan/index.d.ts +2 -1
  62. package/dist/PanoCursorRaycasterPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  63. package/dist/PanoCursorRaycasterPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  64. package/dist/PanoCursorRaycasterPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  65. package/dist/PanoCursorRaycasterPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  66. package/dist/PanoCursorRaycasterPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  67. package/dist/PanoCursorRaycasterPlugin/floorplan/index.d.ts +2 -1
  68. package/dist/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  69. package/dist/PanoDoorLabelPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  70. package/dist/PanoDoorLabelPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  71. package/dist/PanoDoorLabelPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  72. package/dist/PanoDoorLabelPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  73. package/dist/PanoDoorLabelPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  74. package/dist/PanoDoorLabelPlugin/floorplan/index.d.ts +2 -1
  75. package/dist/PanoDoorLabelPlugin/index.js +7 -2
  76. package/dist/PanoDoorLabelPlugin/typings.d.ts +5 -0
  77. package/dist/PanoMeasurePlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  78. package/dist/PanoMeasurePlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  79. package/dist/PanoMeasurePlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  80. package/dist/PanoMeasurePlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  81. package/dist/PanoMeasurePlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  82. package/dist/PanoMeasurePlugin/floorplan/index.d.ts +2 -1
  83. package/dist/PanoRulerPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  84. package/dist/PanoRulerPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  85. package/dist/PanoRulerPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  86. package/dist/PanoRulerPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  87. package/dist/PanoRulerPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  88. package/dist/PanoRulerPlugin/floorplan/index.d.ts +2 -1
  89. package/dist/PanoRulerProPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  90. package/dist/PanoRulerProPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  91. package/dist/PanoRulerProPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  92. package/dist/PanoRulerProPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  93. package/dist/PanoRulerProPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  94. package/dist/PanoRulerProPlugin/floorplan/index.d.ts +2 -1
  95. package/dist/PanoSpatialTagPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  96. package/dist/PanoSpatialTagPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  97. package/dist/PanoSpatialTagPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  98. package/dist/PanoSpatialTagPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  99. package/dist/PanoSpatialTagPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  100. package/dist/PanoSpatialTagPlugin/floorplan/index.d.ts +2 -1
  101. package/dist/floorplan/MapviewFloorplanPlugin/CSS3DRenderPlugin/Plugin.d.ts +49 -0
  102. package/dist/floorplan/MapviewFloorplanPlugin/CSS3DRenderPlugin/index.d.ts +4 -0
  103. package/dist/floorplan/MapviewFloorplanPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
  104. package/dist/floorplan/MapviewFloorplanPlugin/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
  105. package/dist/floorplan/MapviewFloorplanPlugin/CameraMovementPlugin/index.d.ts +5 -0
  106. package/dist/floorplan/MapviewFloorplanPlugin/CameraMovementPlugin/typing.d.ts +68 -0
  107. package/dist/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  108. package/dist/floorplan/MapviewFloorplanPlugin/ItemLabelPlugin/Plugin.d.ts +4 -0
  109. package/dist/floorplan/MapviewFloorplanPlugin/ItemLabelPlugin/events.type.d.ts +9 -0
  110. package/dist/floorplan/MapviewFloorplanPlugin/ItemLabelPlugin/index.d.ts +9 -0
  111. package/dist/floorplan/MapviewFloorplanPlugin/ItemLabelPlugin/typings.d.ts +65 -0
  112. package/dist/floorplan/MapviewFloorplanPlugin/ItemLabelPlugin/utils/getLabelTransform.d.ts +1 -0
  113. package/dist/floorplan/MapviewFloorplanPlugin/ItemLabelPlugin/utils/getStrokeLength.d.ts +5 -0
  114. package/dist/floorplan/MapviewFloorplanPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +6 -0
  115. package/dist/floorplan/MapviewFloorplanPlugin/ItemLabelPlugin/utils/parseData.d.ts +3 -0
  116. package/dist/floorplan/MapviewFloorplanPlugin/ItemLabelPlugin/utils/transform2RenderData.d.ts +3 -0
  117. package/dist/floorplan/MapviewFloorplanPlugin/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
  118. package/dist/floorplan/MapviewFloorplanPlugin/ModelChassisCompassPlugin/index.d.ts +4 -0
  119. package/dist/floorplan/MapviewFloorplanPlugin/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
  120. package/dist/floorplan/MapviewFloorplanPlugin/ModelEntryDoorGuidePlugin/index.d.ts +4 -0
  121. package/dist/floorplan/MapviewFloorplanPlugin/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
  122. package/dist/floorplan/MapviewFloorplanPlugin/ModelItemLabelPlugin/events.type.d.ts +9 -0
  123. package/dist/floorplan/MapviewFloorplanPlugin/ModelItemLabelPlugin/index.d.ts +9 -0
  124. package/dist/floorplan/MapviewFloorplanPlugin/ModelItemLabelPlugin/typings.d.ts +56 -0
  125. package/dist/floorplan/MapviewFloorplanPlugin/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
  126. package/dist/floorplan/MapviewFloorplanPlugin/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
  127. package/dist/floorplan/MapviewFloorplanPlugin/ModelRoomLabelPlugin/Controller.d.ts +36 -0
  128. package/dist/floorplan/MapviewFloorplanPlugin/ModelRoomLabelPlugin/index.d.ts +12 -0
  129. package/dist/floorplan/MapviewFloorplanPlugin/ModelRoomLabelPlugin/typings.d.ts +35 -0
  130. package/dist/floorplan/MapviewFloorplanPlugin/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
  131. package/dist/floorplan/MapviewFloorplanPlugin/ModelTVVideoPlugin/Plugin.d.ts +4 -0
  132. package/dist/floorplan/MapviewFloorplanPlugin/ModelTVVideoPlugin/index.d.ts +5 -0
  133. package/dist/floorplan/MapviewFloorplanPlugin/ModelTVVideoPlugin/typings.d.ts +25 -0
  134. package/dist/floorplan/MapviewFloorplanPlugin/ModelTVVideoPlugin/utils/parseData.d.ts +2 -0
  135. package/dist/floorplan/MapviewFloorplanPlugin/ModelViewPlugin/Plugin.d.ts +17 -0
  136. package/dist/floorplan/MapviewFloorplanPlugin/ModelViewPlugin/index.d.ts +4 -0
  137. package/dist/floorplan/MapviewFloorplanPlugin/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
  138. package/dist/floorplan/MapviewFloorplanPlugin/PanoCompassPlugin/Controller.d.ts +84 -0
  139. package/dist/floorplan/MapviewFloorplanPlugin/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
  140. package/dist/floorplan/MapviewFloorplanPlugin/PanoCompassPlugin/index.d.ts +7 -0
  141. package/dist/floorplan/MapviewFloorplanPlugin/PanoCompassPlugin/typings.d.ts +57 -0
  142. package/dist/floorplan/MapviewFloorplanPlugin/PanoCursorRaycasterPlugin/index.d.ts +48 -0
  143. package/dist/floorplan/MapviewFloorplanPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  144. package/dist/floorplan/MapviewFloorplanPlugin/PanoDoorLabelPlugin/Controller.d.ts +37 -0
  145. package/dist/floorplan/MapviewFloorplanPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  146. package/dist/floorplan/MapviewFloorplanPlugin/PanoDoorLabelPlugin/typings.d.ts +38 -0
  147. package/dist/floorplan/MapviewFloorplanPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  148. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +39 -0
  149. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
  150. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +44 -0
  151. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
  152. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Controller/ViewController.d.ts +16 -0
  153. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Controller/WatchController.d.ts +26 -0
  154. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Controller/index.d.ts +70 -0
  155. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Model/index.d.ts +38 -0
  156. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Model/line.d.ts +30 -0
  157. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Model/point.d.ts +16 -0
  158. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
  159. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
  160. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
  161. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
  162. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +25 -0
  163. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
  164. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
  165. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Modules/Magnifier.d.ts +59 -0
  166. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +2 -0
  167. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +15 -0
  168. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +13 -0
  169. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Modules/UIController/index.d.ts +20 -0
  170. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +4 -0
  171. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +12 -0
  172. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Modules/UIController/style.d.ts +16 -0
  173. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +4 -0
  174. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +44 -0
  175. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/index.d.ts +10 -0
  176. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/typings/data.d.ts +37 -0
  177. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/typings/event.type.d.ts +37 -0
  178. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
  179. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +10 -0
  180. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
  181. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/utils/constants.d.ts +4 -0
  182. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
  183. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
  184. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
  185. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
  186. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
  187. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
  188. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
  189. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/utils/line.d.ts +17 -0
  190. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/utils/math.d.ts +17 -0
  191. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/utils/mouseGroup.d.ts +7 -0
  192. package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
  193. package/dist/floorplan/MapviewFloorplanPlugin/PanoRulerPlugin/Plugin.d.ts +31 -0
  194. package/dist/floorplan/MapviewFloorplanPlugin/PanoRulerPlugin/index.d.ts +5 -0
  195. package/dist/floorplan/MapviewFloorplanPlugin/PanoRulerPlugin/style.d.ts +2 -0
  196. package/dist/floorplan/MapviewFloorplanPlugin/PanoRulerPlugin/typings.d.ts +21 -0
  197. package/dist/floorplan/MapviewFloorplanPlugin/PanoRulerProPlugin/Controller.d.ts +15 -0
  198. package/dist/floorplan/MapviewFloorplanPlugin/PanoRulerProPlugin/index.d.ts +8 -0
  199. package/dist/floorplan/MapviewFloorplanPlugin/PanoRulerProPlugin/typings.d.ts +46 -0
  200. package/dist/floorplan/MapviewFloorplanPlugin/PanoSpatialTagPlugin/Plugin.d.ts +35 -0
  201. package/dist/floorplan/MapviewFloorplanPlugin/PanoSpatialTagPlugin/index.d.ts +5 -0
  202. package/dist/floorplan/MapviewFloorplanPlugin/PanoSpatialTagPlugin/store.d.ts +1 -0
  203. package/dist/floorplan/MapviewFloorplanPlugin/PanoSpatialTagPlugin/style.d.ts +1 -0
  204. package/dist/floorplan/MapviewFloorplanPlugin/PanoSpatialTagPlugin/typings.d.ts +40 -0
  205. package/dist/floorplan/MapviewFloorplanPlugin/base/BasePlugin.d.ts +100 -0
  206. package/dist/floorplan/MapviewFloorplanPlugin/base/BasePluginWithData.d.ts +34 -0
  207. package/dist/floorplan/MapviewFloorplanPlugin/components/PaintBrush/Controller.d.ts +43 -0
  208. package/dist/floorplan/MapviewFloorplanPlugin/components/PaintBrush/Subscribe.d.ts +76 -0
  209. package/dist/floorplan/MapviewFloorplanPlugin/components/PaintBrush/index.d.ts +27 -0
  210. package/dist/floorplan/MapviewFloorplanPlugin/components/PaintBrush/style.d.ts +2 -0
  211. package/dist/floorplan/MapviewFloorplanPlugin/components/PaintBrush/tween.d.ts +62 -0
  212. package/dist/floorplan/MapviewFloorplanPlugin/components/PaintBrush/typings.d.ts +58 -0
  213. package/dist/floorplan/MapviewFloorplanPlugin/components/PaintBrush/utils.d.ts +26 -0
  214. package/dist/floorplan/MapviewFloorplanPlugin/components/index.d.ts +2 -0
  215. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/Assets/camera.d.ts +1 -0
  216. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/Assets/compass.d.ts +1 -0
  217. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
  218. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  219. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  220. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  221. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +98 -0
  222. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/index.d.ts +7 -0
  223. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +107 -0
  224. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +36 -0
  225. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/PanoFloorplanRadarPlugin/index.d.ts +7 -0
  226. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
  227. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +67 -0
  228. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/TopviewFloorplanPlugin/index.d.ts +7 -0
  229. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
  230. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +86 -0
  231. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/constant.d.ts +5 -0
  232. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/index.d.ts +7 -0
  233. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/typings/floorplanData.d.ts +137 -0
  234. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/typings/floorplanServerData.d.ts +144 -0
  235. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/typings/utility.d.ts +2 -0
  236. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/utils/constant.d.ts +22 -0
  237. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/utils/correctFiveState.d.ts +15 -0
  238. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/utils/formatData.d.ts +5 -0
  239. package/dist/floorplan/MapviewFloorplanPlugin/floorplan/utils/formatPosition.d.ts +36 -0
  240. package/dist/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  241. package/dist/floorplan/MapviewFloorplanPlugin/index.js +4510 -0
  242. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Preloader.d.ts +6 -0
  243. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Subscribe.d.ts +45 -0
  244. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/animationFrame/BetterTween.d.ts +11 -0
  245. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
  246. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/animationFrame/formatRad.d.ts +15 -0
  247. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/animationFrame/index.d.ts +15 -0
  248. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/animationFrame/tween.d.ts +75 -0
  249. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
  250. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/createCanvasTextTexture.d.ts +8 -0
  251. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/createLine/index.d.ts +3 -0
  252. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/debounce.d.ts +6 -0
  253. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/equal.d.ts +11 -0
  254. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/filter.d.ts +27 -0
  255. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/five/changeMode.d.ts +5 -0
  256. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/formatRad.d.ts +7 -0
  257. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/getPxmm.d.ts +19 -0
  258. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/getRandomColor.d.ts +1 -0
  259. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/index.d.ts +1 -0
  260. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/isNil.d.ts +10 -0
  261. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/isTruelyObject.d.ts +18 -0
  262. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/logger.d.ts +16 -0
  263. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/math/Interval.d.ts +13 -0
  264. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/math/Rectangle.d.ts +27 -0
  265. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/math/evenNumber.d.ts +3 -0
  266. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/math/index.d.ts +2 -0
  267. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/math/planimetry.d.ts +116 -0
  268. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/math/rad2Deg.d.ts +1 -0
  269. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/nearlyEqual.d.ts +7 -0
  270. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/nextFrame.d.ts +1 -0
  271. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/noop.d.ts +5 -0
  272. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/object3d2LocalMatrix.d.ts +12 -0
  273. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/px2rem.d.ts +1 -0
  274. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/removeArrayItem.d.ts +7 -0
  275. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/tap.d.ts +8 -0
  276. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/three/centerPoint.d.ts +2 -0
  277. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/three/getExtraModelLoader.d.ts +6 -0
  278. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/three/getNormal.d.ts +2 -0
  279. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/three/getTextureLoader.d.ts +6 -0
  280. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/three/loadFbxObj.d.ts +2 -0
  281. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/three/loadTexture.d.ts +2 -0
  282. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/three/transformPositionToVector3.d.ts +7 -0
  283. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
  284. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/throttle.d.ts +7 -0
  285. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/tinyEJSrender.d.ts +5 -0
  286. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/to.d.ts +8 -0
  287. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/uuid.d.ts +5 -0
  288. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/vectorTocoordinates.d.ts +7 -0
  289. package/dist/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  290. package/dist/floorplan/MapviewFloorplanPlugin/typings/math.type.d.ts +44 -0
  291. package/dist/floorplan/MapviewFloorplanPlugin/typings/utils.type.d.ts +2 -0
  292. package/dist/floorplan/ModelFloorplanPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  293. package/dist/floorplan/ModelFloorplanPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  294. package/dist/floorplan/ModelFloorplanPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  295. package/dist/floorplan/ModelFloorplanPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  296. package/dist/floorplan/ModelFloorplanPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  297. package/dist/floorplan/ModelFloorplanPlugin/floorplan/index.d.ts +2 -1
  298. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  299. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  300. package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  301. package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  302. package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  303. package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/index.d.ts +2 -1
  304. package/dist/floorplan/TopviewFloorplanPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  305. package/dist/floorplan/TopviewFloorplanPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
  306. package/dist/floorplan/TopviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  307. package/dist/floorplan/TopviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  308. package/dist/floorplan/TopviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  309. package/dist/floorplan/TopviewFloorplanPlugin/floorplan/index.d.ts +2 -1
  310. package/dist/floorplan/index.d.ts +2 -1
  311. package/dist/index.d.ts +1 -1
  312. package/dist/index.es.js +2400 -1721
  313. package/dist/index.js +2400 -1720
  314. package/dist/index.umd.js +2400 -1720
  315. package/docs/assets/search.js +1 -1
  316. package/docs/classes/Magnifier.html +4 -4
  317. package/docs/classes/ModelRoomLabelController.html +4 -4
  318. package/docs/enums/CameraMovementEffect.html +2 -2
  319. package/docs/enums/DIRECTION.html +1 -1
  320. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  321. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  322. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  323. package/docs/enums/Rotation.html +2 -2
  324. package/docs/index.html +2 -2
  325. package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
  326. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  327. package/docs/interfaces/FloorplanBounding.html +4 -4
  328. package/docs/interfaces/FloorplanData.html +2 -2
  329. package/docs/interfaces/FloorplanEntrance.html +7 -7
  330. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  331. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  332. package/docs/interfaces/FloorplanFloorData.html +2 -2
  333. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  334. package/docs/interfaces/FloorplanObserver.html +2 -2
  335. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  336. package/docs/interfaces/FloorplanPosition.html +2 -2
  337. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  338. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  339. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  340. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  341. package/docs/interfaces/FloorplanServerData.html +2 -2
  342. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  343. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  344. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  345. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  346. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  347. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  348. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  349. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  350. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  351. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  352. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  353. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  354. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  355. package/docs/interfaces/LineJson.html +1 -1
  356. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  357. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  358. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  359. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  360. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  361. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  362. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  363. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  364. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  365. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  366. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  367. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  368. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  369. package/docs/interfaces/OpenParameter.html +2 -2
  370. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  371. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  372. package/docs/interfaces/PanoMeasureParameterType.html +1 -1
  373. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  374. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  375. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  376. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  377. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  378. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  379. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  380. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  381. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  382. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  383. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  384. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  385. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  386. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  387. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  388. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  389. package/docs/interfaces/Point.html +1 -1
  390. package/docs/interfaces/PointJson.html +1 -1
  391. package/docs/interfaces/Room.html +1 -1
  392. package/docs/interfaces/RoomInfo.html +1 -1
  393. package/docs/interfaces/RoomLabel.html +7 -7
  394. package/docs/interfaces/RoomRules.html +1 -1
  395. package/docs/interfaces/Rooms.html +1 -1
  396. package/docs/modules.html +18 -18
  397. package/libs/ModelTVVideoPlugin/Plugin.js +2 -2
  398. package/libs/PanoDoorLabelPlugin/Controller.d.ts +2 -1
  399. package/libs/PanoDoorLabelPlugin/Controller.js +7 -2
  400. package/libs/PanoDoorLabelPlugin/typings.d.ts +5 -0
  401. package/libs/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
  402. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +682 -0
  403. package/libs/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  404. package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -0
  405. package/libs/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
  406. package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -0
  407. package/libs/floorplan/index.d.ts +2 -1
  408. package/libs/floorplan/index.js +2 -1
  409. package/libs/index.d.ts +1 -1
  410. package/libs/index.js +1 -1
  411. package/package.json +1 -1
@@ -0,0 +1,682 @@
1
+ import * as THREE from 'three';
2
+ import to from '../../shared-utils/to';
3
+ import equal from '../../shared-utils/equal';
4
+ import Main from '../Components/Main';
5
+ import formatData from '../utils/formatData';
6
+ import { CAMERA_IMAGE } from '../Assets/camera';
7
+ import { omit } from '../../shared-utils/filter';
8
+ import { FLOOR_PLAN_ATTACHED_TO } from '../constant';
9
+ import * as BasePlugin from '../../base/BasePluginWithData';
10
+ import getPxmm, { getAttachedY } from '../../shared-utils/getPxmm';
11
+ import correctFiveState, { checkShowState } from '../utils/correctFiveState';
12
+ import changeModelCanvasOpacity from '../../shared-utils/changeModelCanvasOpacity';
13
+ import { FloorplanErrorType, SHOW_ANIME_DURATION } from '../utils/constant';
14
+ /** 当前 five 的相机视角是否满足户型图自动隐藏条件
15
+ *
16
+ * @description 水平旋转角大于正负 5 度 || 俯仰角度大于 5 度
17
+ *
18
+ */
19
+ function shouldFloorplanHideWithPose(pose) {
20
+ const { latitude, longitude } = pose;
21
+ const latitudeHide = Math.abs(latitude - Math.PI / 2) > (5 * Math.PI) / 180;
22
+ const longitudeHide = longitude > 5 * (Math.PI / 180) && longitude < 355 * (Math.PI / 180);
23
+ return latitudeHide || longitudeHide;
24
+ }
25
+ /** 当前 five 的相机视角是否满足户型图自动展示隐藏条件
26
+ *
27
+ * @description 水平旋转角正负 30 度 && 俯仰角度小于 10 度
28
+ *
29
+ */
30
+ function shouldFloorplanShowWithPose(pose) {
31
+ const { latitude, longitude } = pose;
32
+ const latitudeVisible = Math.abs(latitude - Math.PI / 2) < (10 * Math.PI) / 180;
33
+ const longitudeVisible = longitude < 30 * (Math.PI / 180) || longitude > 330 * (Math.PI / 180);
34
+ return latitudeVisible && longitudeVisible;
35
+ }
36
+ export class Controller extends BasePlugin.Controller {
37
+ constructor(five, params) {
38
+ super(five);
39
+ // =============== public properties =================
40
+ Object.defineProperty(this, "name", {
41
+ enumerable: true,
42
+ configurable: true,
43
+ writable: true,
44
+ value: 'modelFloorplanPlugin'
45
+ });
46
+ Object.defineProperty(this, "state", {
47
+ enumerable: true,
48
+ configurable: true,
49
+ writable: true,
50
+ value: void 0
51
+ });
52
+ // =============== private properties =================
53
+ Object.defineProperty(this, "data", {
54
+ enumerable: true,
55
+ configurable: true,
56
+ writable: true,
57
+ value: void 0
58
+ });
59
+ /** 展示户型图时,需要正确的状态 */
60
+ Object.defineProperty(this, "showState", {
61
+ enumerable: true,
62
+ configurable: true,
63
+ writable: true,
64
+ value: void 0
65
+ });
66
+ /** show 动画的公共 Promise */
67
+ Object.defineProperty(this, "showPromise", {
68
+ enumerable: true,
69
+ configurable: true,
70
+ writable: true,
71
+ value: void 0
72
+ });
73
+ Object.defineProperty(this, "app", {
74
+ enumerable: true,
75
+ configurable: true,
76
+ writable: true,
77
+ value: undefined
78
+ });
79
+ Object.defineProperty(this, "panoIndex", {
80
+ enumerable: true,
81
+ configurable: true,
82
+ writable: true,
83
+ value: 0
84
+ });
85
+ Object.defineProperty(this, "floorIndex", {
86
+ enumerable: true,
87
+ configurable: true,
88
+ writable: true,
89
+ value: 0
90
+ });
91
+ Object.defineProperty(this, "selector", {
92
+ enumerable: true,
93
+ configurable: true,
94
+ writable: true,
95
+ value: void 0
96
+ });
97
+ /** 公共 Promise 的 reject 方法 */
98
+ Object.defineProperty(this, "showRejection", {
99
+ enumerable: true,
100
+ configurable: true,
101
+ writable: true,
102
+ value: void 0
103
+ });
104
+ /** 户型图父容器 */
105
+ Object.defineProperty(this, "wrapper", {
106
+ enumerable: true,
107
+ configurable: true,
108
+ writable: true,
109
+ value: void 0
110
+ });
111
+ /** 户型图主容器 */
112
+ Object.defineProperty(this, "container", {
113
+ enumerable: true,
114
+ configurable: true,
115
+ writable: true,
116
+ value: document.createElement('div')
117
+ });
118
+ /** 展示户型图图前,Five 的 Panorama Longitude */
119
+ Object.defineProperty(this, "lastPanoramaLongitude", {
120
+ enumerable: true,
121
+ configurable: true,
122
+ writable: true,
123
+ value: 0
124
+ });
125
+ /** 户型图大小 */
126
+ Object.defineProperty(this, "size", {
127
+ enumerable: true,
128
+ configurable: true,
129
+ writable: true,
130
+ value: { width: 0, height: 0 }
131
+ });
132
+ /** 是否已经执行过事件监听 */
133
+ Object.defineProperty(this, "hasAddedEventListener", {
134
+ enumerable: true,
135
+ configurable: true,
136
+ writable: true,
137
+ value: false
138
+ });
139
+ /** 上一次隐藏是否是用户调用了 hide 导致的 */
140
+ Object.defineProperty(this, "isHiddenByHideFunc", {
141
+ enumerable: true,
142
+ configurable: true,
143
+ writable: true,
144
+ value: false
145
+ });
146
+ /** 销毁插件 */
147
+ Object.defineProperty(this, "dispose", {
148
+ enumerable: true,
149
+ configurable: true,
150
+ writable: true,
151
+ value: () => {
152
+ var _a, _b;
153
+ this.removeEventListener();
154
+ (_a = this.app) === null || _a === void 0 ? void 0 : _a.$destroy();
155
+ this.app = undefined;
156
+ (_b = this.container) === null || _b === void 0 ? void 0 : _b.remove();
157
+ this.data = undefined;
158
+ this.wrapper = undefined;
159
+ this.selector = undefined;
160
+ this.hooks.emit('dispose');
161
+ }
162
+ });
163
+ /** 展示户型图
164
+ * 1. show 函数大部分情况下需要耗时
165
+ * 2. 如果当前已经在展示中,将不会触发任何事件
166
+ * 3. 如果展示过程被中断,将抛出错误
167
+ * 4. 多次调用 show 方法,只会触发一次 showAnimationEnded 事件,但是展示结果会取决于最后一次调用参数
168
+ * 5. 如果多次调用 show 方法,参数与上次参数不一致时,上次 show Promise 会被 reject
169
+ * @param opts.floorIndex 楼层
170
+ * @param opts.modelOpacity 模型透明度
171
+ * @param opts.immediately 是否立即展示
172
+ * @param opts.isAutoShow 是否是自动展示
173
+ * @param opts.userAction 是否是用户行为
174
+ */
175
+ Object.defineProperty(this, "show", {
176
+ enumerable: true,
177
+ configurable: true,
178
+ writable: true,
179
+ value: async (options = {}) => {
180
+ if (!this.state.enabled)
181
+ return;
182
+ // 已经展示完成了,不做任何操作
183
+ if (!this.showPromise && this.state.visible)
184
+ return;
185
+ const userAction = options.userAction !== undefined ? options.userAction : true;
186
+ this.updateState({ visible: true }, userAction);
187
+ this._show(options);
188
+ }
189
+ });
190
+ /** 隐藏户型图 */
191
+ Object.defineProperty(this, "hide", {
192
+ enumerable: true,
193
+ configurable: true,
194
+ writable: true,
195
+ value: async (options = {}) => {
196
+ if (!this.state.enabled)
197
+ return;
198
+ this.isHiddenByHideFunc = true;
199
+ if (this.state.visible === false)
200
+ return;
201
+ this.updateState({ visible: false }, options.userAction || true);
202
+ this._hide(options);
203
+ }
204
+ });
205
+ /** 更新户型图大小 */
206
+ Object.defineProperty(this, "updateSize", {
207
+ enumerable: true,
208
+ configurable: true,
209
+ writable: true,
210
+ value: () => {
211
+ if (!this.data)
212
+ return;
213
+ if (!checkShowState(this.five, this.showState))
214
+ return;
215
+ if (!this.container || !this.wrapper)
216
+ return;
217
+ // 计算户型图展示大小
218
+ const { min, max } = this.data.bounding;
219
+ const width = max.x - min.x;
220
+ const height = max.y - min.y;
221
+ // 每毫米对应的 px 值
222
+ const options = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : undefined;
223
+ const pxmm = getPxmm(this.five, this.wrapper, this.floorIndex, options);
224
+ const _width = Math.ceil(width * pxmm);
225
+ const _height = Math.ceil(height * pxmm);
226
+ if (this.size.width === _width && this.size.height === _height)
227
+ return;
228
+ this.container.style.width = _width + 'px';
229
+ this.container.style.height = _height + 'px';
230
+ this.size = { width: _width, height: _height };
231
+ }
232
+ });
233
+ Object.defineProperty(this, "_disable", {
234
+ enumerable: true,
235
+ configurable: true,
236
+ writable: true,
237
+ value: (options) => {
238
+ var _a, _b, _c;
239
+ const { userAction } = options;
240
+ this.hooks.emit('disable', { userAction });
241
+ // ===== 处理展示过程中 disable =====
242
+ (_a = this.showRejection) === null || _a === void 0 ? void 0 : _a.call(this, FloorplanErrorType.BreakOffByDisable);
243
+ this.showPromise = undefined;
244
+ (_b = this.app) === null || _b === void 0 ? void 0 : _b.$destroy();
245
+ this.app = undefined;
246
+ (_c = this.container) === null || _c === void 0 ? void 0 : _c.remove();
247
+ this.removeEventListener();
248
+ }
249
+ });
250
+ Object.defineProperty(this, "_enable", {
251
+ enumerable: true,
252
+ configurable: true,
253
+ writable: true,
254
+ value: (options) => {
255
+ const { userAction } = options;
256
+ this.addEventListener();
257
+ if (!this.wrapper)
258
+ return;
259
+ this.wrapper.append(this.container);
260
+ this.hooks.emit('enable', { userAction });
261
+ if (this.state.visible)
262
+ this._show({ userAction });
263
+ }
264
+ });
265
+ Object.defineProperty(this, "_show", {
266
+ enumerable: true,
267
+ configurable: true,
268
+ writable: true,
269
+ value: async (options) => {
270
+ var _a;
271
+ if (!this.state.enabled)
272
+ return;
273
+ if (!((_a = this.five.model) === null || _a === void 0 ? void 0 : _a.loaded))
274
+ throw new Error(FloorplanErrorType.ModelNotLoaded);
275
+ if (!this.data)
276
+ throw new Error(FloorplanErrorType.DataNotLoaded);
277
+ this.isHiddenByHideFunc = false;
278
+ // ===== 参数合并 =====
279
+ const baseShowOpts = {
280
+ floorIndex: this.floorIndex,
281
+ modelOpacity: this.state.config.modelOpacity,
282
+ immediately: false,
283
+ isAutoShow: false,
284
+ userAction: true,
285
+ };
286
+ const mergedOptions = Object.assign(Object.assign({}, baseShowOpts), options);
287
+ const getShowPromise = async () => {
288
+ this.hooks.emit('show', { userAction: mergedOptions.userAction, auto: mergedOptions.isAutoShow });
289
+ let hasRejected = false;
290
+ let externalErrorMsg;
291
+ this.showRejection = (errorMsg) => {
292
+ hasRejected = true;
293
+ externalErrorMsg = errorMsg;
294
+ };
295
+ const [correctError] = await to(correctFiveState(this.five, this.showState, mergedOptions.userAction));
296
+ if (correctError)
297
+ throw correctError;
298
+ // 异步结束要判断当前是不是被中断了
299
+ if (hasRejected)
300
+ throw externalErrorMsg ? new Error(externalErrorMsg) : new Error(FloorplanErrorType.UnknownError);
301
+ // 更新户型图大小
302
+ this.updateSize();
303
+ this.updatePosition();
304
+ // 高亮当前楼层,有两个目的
305
+ // 1. 点击模型时,可以跳转到当前楼层的点位上
306
+ // 2. 当前楼层比较小时,户型图也比较小,如果展示全部楼层,会展示户型图外有一圈模型
307
+ this.floorIndex = mergedOptions.floorIndex;
308
+ this.five.model.show(this.floorIndex);
309
+ // 模型消失, 渲染户型图
310
+ const modelOpacity = mergedOptions.modelOpacity;
311
+ const renderDuration = mergedOptions.immediately ? 0 : SHOW_ANIME_DURATION;
312
+ changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
313
+ this.render(renderDuration);
314
+ };
315
+ this.showPromise = getShowPromise()
316
+ .then(() => {
317
+ this.hooks.emit('showAnimationEnded', {
318
+ auto: mergedOptions.isAutoShow,
319
+ userAction: mergedOptions.userAction,
320
+ });
321
+ })
322
+ .catch((error) => {
323
+ this.updateState({ visible: false }, mergedOptions.userAction);
324
+ // 自动展示的报错内部处理
325
+ if (mergedOptions.isAutoShow)
326
+ return;
327
+ // 非自动展示的报错继续向外抛出
328
+ if (error instanceof Error)
329
+ throw error;
330
+ })
331
+ .finally(() => {
332
+ this.showPromise = undefined;
333
+ this.showRejection = undefined;
334
+ });
335
+ return this.showPromise;
336
+ }
337
+ });
338
+ Object.defineProperty(this, "_hide", {
339
+ enumerable: true,
340
+ configurable: true,
341
+ writable: true,
342
+ value: (options) => {
343
+ var _a;
344
+ // ===== 处理展示过程中 hide =====
345
+ (_a = this.showRejection) === null || _a === void 0 ? void 0 : _a.call(this, FloorplanErrorType.BreakOffByHide);
346
+ this.showPromise = undefined;
347
+ // ===== 合并参数 =====
348
+ const baseOptions = {
349
+ userAction: true,
350
+ isAutoHide: false,
351
+ };
352
+ const mergedOptions = Object.assign(Object.assign({}, baseOptions), options);
353
+ changeModelCanvasOpacity(this.five, 1, 0);
354
+ this.hooks.emit('hide', { auto: mergedOptions.isAutoHide, userAction: mergedOptions.userAction });
355
+ this.render();
356
+ }
357
+ });
358
+ Object.defineProperty(this, "handleClick", {
359
+ enumerable: true,
360
+ configurable: true,
361
+ writable: true,
362
+ value: () => {
363
+ if (!this.state.visible)
364
+ return;
365
+ const preventDefault = this.hooks.emit('click');
366
+ if (preventDefault)
367
+ return false;
368
+ }
369
+ });
370
+ /** modelLoaded 之后自动执行 append container 操作 */
371
+ Object.defineProperty(this, "onFiveModelLoaded", {
372
+ enumerable: true,
373
+ configurable: true,
374
+ writable: true,
375
+ value: () => {
376
+ if (this.state.enabled === false)
377
+ return;
378
+ if (this.wrapper)
379
+ return;
380
+ if (!this.selector)
381
+ return;
382
+ const wrapper = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
383
+ if (!wrapper)
384
+ throw new Error('不正确的父容器选择器');
385
+ this.wrapper = wrapper;
386
+ wrapper.append(this.container);
387
+ }
388
+ });
389
+ /** 更改模型时,自动隐藏户型图 */
390
+ Object.defineProperty(this, "onFiveModeChange", {
391
+ enumerable: true,
392
+ configurable: true,
393
+ writable: true,
394
+ value: (mode) => {
395
+ // 目前 Five modeChange 事件没有暴露 userAction,先拿 false 苟着
396
+ if (mode !== this.showState.mode) {
397
+ this.updateState({ visible: false }, false);
398
+ this._hide({ userAction: false });
399
+ }
400
+ }
401
+ });
402
+ /** panoIndex 改变时,更新 floorIndex */
403
+ Object.defineProperty(this, "onFivePanoArrived", {
404
+ enumerable: true,
405
+ configurable: true,
406
+ writable: true,
407
+ value: (index) => {
408
+ var _a;
409
+ if (!((_a = this.five) === null || _a === void 0 ? void 0 : _a.work))
410
+ return;
411
+ this.panoIndex = index;
412
+ this.floorIndex = this.five.work.observers[index].floorIndex;
413
+ }
414
+ });
415
+ /** cameraUpdate 时判断户型图是否应该自动隐藏 */
416
+ Object.defineProperty(this, "onFiveCameraUpdate", {
417
+ enumerable: true,
418
+ configurable: true,
419
+ writable: true,
420
+ value: (_, userAction) => {
421
+ if (!this.state.visible)
422
+ return;
423
+ // 展示过程中不处理自动隐藏逻辑
424
+ if (this.showPromise)
425
+ return;
426
+ const fiveCurrentState = this.five.getCurrentState();
427
+ this.updatePosition();
428
+ this.updateSize();
429
+ if (shouldFloorplanHideWithPose(fiveCurrentState)) {
430
+ this.updateState({ visible: false }, userAction);
431
+ this._hide({ userAction });
432
+ }
433
+ }
434
+ });
435
+ /** 户型图展示中,转动三维模型,结束时应该自动修复模型状态 */
436
+ Object.defineProperty(this, "onFiveWantsPanGesture", {
437
+ enumerable: true,
438
+ configurable: true,
439
+ writable: true,
440
+ value: (_, isFinal) => {
441
+ if (this.five.getCurrentState().mode !== this.showState.mode)
442
+ return;
443
+ if (this.state.config.autoShowEnable === false)
444
+ return;
445
+ if (isFinal && this.state.visible) {
446
+ this.five.updateCamera(this.showState, 0);
447
+ // 禁用掉 isFinal 的 panGesture 行为
448
+ // 因为 panGesture 中包含对相机的处理,会跟回调事件中的处理逻辑冲突
449
+ // 此行为也会禁用 pan 结束后的惯性处理
450
+ return false;
451
+ }
452
+ // 自动展示户型图
453
+ // Five 没有惯性滚动,所以把自动展示的逻辑做在 WantsPanGesture 了
454
+ if (isFinal && !this.state.visible) {
455
+ // 如果用户调用 hide 方法手动隐藏户型图,则不允许自动展示
456
+ if (this.isHiddenByHideFunc)
457
+ return;
458
+ const fiveCurrentState = this.five.getCurrentState();
459
+ if (fiveCurrentState.mode !== this.showState.mode)
460
+ return;
461
+ if (this.state.visible)
462
+ return;
463
+ if (shouldFloorplanShowWithPose(fiveCurrentState)) {
464
+ this.updateState({ visible: true }, true);
465
+ this._show({ isAutoShow: true });
466
+ }
467
+ return false;
468
+ }
469
+ }
470
+ });
471
+ /** 阻止点击分间走点 */
472
+ Object.defineProperty(this, "onFiveWantsTapGesture", {
473
+ enumerable: true,
474
+ configurable: true,
475
+ writable: true,
476
+ value: () => this.handleClick()
477
+ });
478
+ /** 从 Panorama 切换到其他模态时,记录当前的相机水平视角 */
479
+ Object.defineProperty(this, "onFiveWantsChangeMode", {
480
+ enumerable: true,
481
+ configurable: true,
482
+ writable: true,
483
+ value: (mode, prevMode) => {
484
+ if (prevMode === 'Panorama' && mode === this.showState.mode) {
485
+ this.lastPanoramaLongitude = this.five.getCurrentState().longitude;
486
+ }
487
+ }
488
+ });
489
+ /** 模型楼层高亮改变时,自动进行楼层切换 */
490
+ Object.defineProperty(this, "onModelShownFloorChange", {
491
+ enumerable: true,
492
+ configurable: true,
493
+ writable: true,
494
+ value: (shownFloor) => {
495
+ if (this.floorIndex === shownFloor)
496
+ return;
497
+ if (shownFloor === null) {
498
+ const panoIndex = this.five.getCurrentState().panoIndex;
499
+ this.floorIndex = this.five.work.observers[panoIndex].floorIndex;
500
+ return;
501
+ }
502
+ this.floorIndex = shownFloor;
503
+ this.updateSize();
504
+ this.render();
505
+ }
506
+ });
507
+ if (params === null || params === void 0 ? void 0 : params.selector) {
508
+ this.selector = params.selector;
509
+ console.warn('不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法');
510
+ }
511
+ // =============== init Show State ===============
512
+ this.showState = {
513
+ mode: 'Mapview',
514
+ longitude: 0,
515
+ latitude: Math.PI / 2,
516
+ fov: 90,
517
+ };
518
+ // =============== init State ===============
519
+ const baseConfig = {
520
+ northDesc: '北',
521
+ modelOpacity: 1,
522
+ hoverEnable: true,
523
+ compassEnable: true,
524
+ autoShowEnable: true,
525
+ ruleLabelsEnable: true,
526
+ roomLabelsEnable: true,
527
+ cameraImageUrl: CAMERA_IMAGE,
528
+ attachedTo: FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
529
+ getLabelElement: undefined,
530
+ adaptiveRoomLabelVisibleEnable: true,
531
+ };
532
+ const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
533
+ const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
534
+ this.state = {
535
+ enabled: true,
536
+ visible: false,
537
+ config,
538
+ };
539
+ // =============== init Container ===============
540
+ this.initContainer();
541
+ // =============== init Listener ===============
542
+ // 注意插件声明周期内只监听一次的事件不放在 addEventListener 里面
543
+ // 如果初始化的时候模型已经加载完毕了,就不用再等 modelLoaded
544
+ five.model.loaded ? this.onFiveModelLoaded() : five.once('modelLoaded', this.onFiveModelLoaded);
545
+ five.once('dispose', this.dispose);
546
+ this.addEventListener();
547
+ }
548
+ async load(serverData, state, userAction = true) {
549
+ function isPluginServerData(serverData) {
550
+ return Object.prototype.hasOwnProperty.apply(serverData, ['version']);
551
+ }
552
+ const _data = serverData;
553
+ if (_data && !_data.version)
554
+ console.warn('传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数');
555
+ const copyData = JSON.parse(JSON.stringify(serverData));
556
+ const _serverData = isPluginServerData(copyData) ? copyData.data : copyData;
557
+ const prevData = this.data;
558
+ this.data = await formatData(_serverData);
559
+ this.hooks.emit('dataLoaded', this.data);
560
+ this.hooks.emit('dataChange', this.data, prevData);
561
+ if (state)
562
+ this.updateState(state, userAction);
563
+ this.render();
564
+ }
565
+ /** 把插件的渲染DOM插入到对应的容器中去 */
566
+ appendTo(wrapper) {
567
+ this.wrapper = wrapper;
568
+ // 插件 disabled 时,只是不执行副作用,但是 wrapper 还是要赋值的,不然 enable 的时候找不到父容器
569
+ if (!this.state.enabled)
570
+ return;
571
+ wrapper.appendChild(this.container);
572
+ this.render();
573
+ return this;
574
+ }
575
+ /** 启用插件 */
576
+ enable(options = {}) {
577
+ if (this.state.enabled)
578
+ return;
579
+ const userAction = options.userAction !== undefined ? options.userAction : true;
580
+ this.updateState({ enabled: true }, options.userAction || userAction);
581
+ this._enable({ userAction });
582
+ }
583
+ /** 禁用插件 */
584
+ disable(options = {}) {
585
+ if (!this.state.enabled)
586
+ return;
587
+ const userAction = options.userAction !== undefined ? options.userAction : true;
588
+ this.updateState({ enabled: false }, options.userAction || userAction);
589
+ this._disable({ userAction });
590
+ }
591
+ /** 更改插件 State */
592
+ setState(state, options = {}) {
593
+ const prevState = this.state;
594
+ const userAction = options.userAction !== undefined ? options.userAction : true;
595
+ this.updateState(state, userAction);
596
+ if (state.enabled !== undefined && prevState.enabled !== state.enabled) {
597
+ state.enabled ? this._enable({ userAction }) : this._disable({ userAction });
598
+ }
599
+ if (state.visible !== undefined && prevState.visible !== state.visible) {
600
+ const options = { userAction };
601
+ state.visible ? this._show(options) : this._hide(options);
602
+ }
603
+ }
604
+ /** 更新户型图位置 */
605
+ updatePosition() {
606
+ var _a;
607
+ const y = getAttachedY(this.five, this.floorIndex, this.state.config.attachedTo);
608
+ const modelPosition = (_a = this.five.model) === null || _a === void 0 ? void 0 : _a.bounding.getCenter(new THREE.Vector3()).setY(y);
609
+ if (!modelPosition)
610
+ return;
611
+ const ndcPosition = modelPosition.clone().project(this.five.camera);
612
+ const left = (ndcPosition.x + 1) / 2;
613
+ const top = -(ndcPosition.y - 1) / 2;
614
+ this.container.style.left = left * 100 + '%';
615
+ this.container.style.top = top * 100 + '%';
616
+ }
617
+ async formatData(serverData) {
618
+ return await formatData(serverData.data);
619
+ }
620
+ updateState(state, userAction) {
621
+ const prevState = this.state;
622
+ this.state = Object.assign(Object.assign({}, this.state), state);
623
+ if (equal(this.state, prevState, { deep: true }))
624
+ return;
625
+ this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
626
+ }
627
+ /** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
628
+ *
629
+ * - TODO: 等 selector 功能下掉之后删除这个逻辑
630
+ */
631
+ initContainer() {
632
+ this.container.classList.add('floorplan-plugin');
633
+ Object.assign(this.container.style, {
634
+ position: 'absolute',
635
+ left: '50%',
636
+ top: '50%',
637
+ transform: 'translate(-50%, -50%)',
638
+ zIndex: 10,
639
+ pointerEvents: 'none',
640
+ });
641
+ this.five.addExtraElement(this.container);
642
+ }
643
+ addEventListener() {
644
+ if (!this.state.enabled)
645
+ return;
646
+ if (this.hasAddedEventListener)
647
+ return;
648
+ const five = this.five;
649
+ five.on('modeChange', this.onFiveModeChange);
650
+ five.on('panoArrived', this.onFivePanoArrived);
651
+ five.on('cameraUpdate', this.onFiveCameraUpdate);
652
+ five.on('wantsPanGesture', this.onFiveWantsPanGesture);
653
+ five.on('wantsTapGesture', this.onFiveWantsTapGesture);
654
+ five.on('wantsChangeMode', this.onFiveWantsChangeMode);
655
+ five.on('modelShownFloorChange', this.onModelShownFloorChange);
656
+ }
657
+ removeEventListener() {
658
+ const five = this.five;
659
+ this.hasAddedEventListener = false;
660
+ // 注意这里并没有消除 dispose 的监听
661
+ five.off('modelLoaded', this.onFiveModelLoaded);
662
+ five.off('modeChange', this.onFiveModeChange);
663
+ five.off('panoArrived', this.onFivePanoArrived);
664
+ five.off('cameraUpdate', this.onFiveCameraUpdate);
665
+ five.off('wantsPanGesture', this.onFiveWantsPanGesture);
666
+ five.off('wantsTapGesture', this.onFiveWantsTapGesture);
667
+ five.off('wantsChangeMode', this.onFiveWantsChangeMode);
668
+ five.off('modelShownFloorChange', this.onModelShownFloorChange);
669
+ }
670
+ render(duration) {
671
+ if (!this.state.enabled)
672
+ return;
673
+ if (!this.container || !this.data)
674
+ return;
675
+ if (this.size.width === 0)
676
+ return;
677
+ const props = Object.assign(Object.assign({}, this.state.config), { visible: this.state.visible, duration: duration !== null && duration !== void 0 ? duration : 0, panoIndex: this.panoIndex, floorIndex: this.floorIndex, floorplanData: this.data, lastPanoramaLongitude: this.lastPanoramaLongitude });
678
+ if (this.app)
679
+ return this.app.$set(props);
680
+ this.app = new Main({ target: this.container, intro: true, props });
681
+ }
682
+ }
@@ -0,0 +1,7 @@
1
+ import type { Parameters } from './typing';
2
+ import type { FivePlugin } from '@realsee/five';
3
+ import { Controller } from './Controller';
4
+ export declare const MapviewFloorplanPlugin: FivePlugin<undefined | Parameters, Controller>;
5
+ export declare type MapviewFloorplanPluginParameterType = Parameters | undefined;
6
+ export declare type MapviewFloorplanPluginReturnType = InstanceType<typeof Controller>;
7
+ export default MapviewFloorplanPlugin;