@realsee/dnalogel 2.0.0-alpha.44 → 2.0.0-alpha.45

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 (652) hide show
  1. package/dist/CSS3DRenderPlugin/ItemLabelPlugin/typings.d.ts +2 -1
  2. package/dist/CSS3DRenderPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  3. package/dist/CSS3DRenderPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  4. package/dist/CSS3DRenderPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  5. package/dist/CSS3DRenderPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  6. package/dist/CSS3DRenderPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  7. package/dist/CSS3DRenderPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  8. package/dist/CameraMovementPlugin/ItemLabelPlugin/typings.d.ts +2 -1
  9. package/dist/CameraMovementPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  10. package/dist/CameraMovementPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  11. package/dist/CameraMovementPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  12. package/dist/CameraMovementPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  13. package/dist/CameraMovementPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  14. package/dist/CameraMovementPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  15. package/dist/ItemLabelPlugin/ItemLabelPlugin/typings.d.ts +2 -1
  16. package/dist/ItemLabelPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  17. package/dist/ItemLabelPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  18. package/dist/ItemLabelPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  19. package/dist/ItemLabelPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  20. package/dist/ItemLabelPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  21. package/dist/ItemLabelPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  22. package/dist/ItemLabelPlugin/index.js +77 -35
  23. package/dist/ItemLabelPlugin/typings.d.ts +2 -1
  24. package/dist/ModelChassisCompassPlugin/ItemLabelPlugin/typings.d.ts +2 -1
  25. package/dist/ModelChassisCompassPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  26. package/dist/ModelChassisCompassPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  27. package/dist/ModelChassisCompassPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  28. package/dist/ModelChassisCompassPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  29. package/dist/ModelChassisCompassPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  30. package/dist/ModelChassisCompassPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  31. package/dist/ModelEntryDoorGuidePlugin/ItemLabelPlugin/typings.d.ts +2 -1
  32. package/dist/ModelEntryDoorGuidePlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  33. package/dist/ModelEntryDoorGuidePlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  34. package/dist/ModelEntryDoorGuidePlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  35. package/dist/ModelEntryDoorGuidePlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  36. package/dist/ModelEntryDoorGuidePlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  37. package/dist/ModelEntryDoorGuidePlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  38. package/dist/ModelItemLabelPlugin/ItemLabelPlugin/typings.d.ts +2 -1
  39. package/dist/ModelItemLabelPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  40. package/dist/ModelItemLabelPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  41. package/dist/ModelItemLabelPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  42. package/dist/ModelItemLabelPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  43. package/dist/ModelItemLabelPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  44. package/dist/ModelItemLabelPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  45. package/dist/ModelRoomLabelPlugin/ItemLabelPlugin/typings.d.ts +2 -1
  46. package/dist/ModelRoomLabelPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  47. package/dist/ModelRoomLabelPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  48. package/dist/ModelRoomLabelPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  49. package/dist/ModelRoomLabelPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  50. package/dist/ModelRoomLabelPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  51. package/dist/ModelRoomLabelPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  52. package/dist/ModelTVVideoPlugin/ItemLabelPlugin/typings.d.ts +2 -1
  53. package/dist/ModelTVVideoPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  54. package/dist/ModelTVVideoPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  55. package/dist/ModelTVVideoPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  56. package/dist/ModelTVVideoPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  57. package/dist/ModelTVVideoPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  58. package/dist/ModelTVVideoPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  59. package/dist/ModelViewPlugin/ItemLabelPlugin/typings.d.ts +2 -1
  60. package/dist/ModelViewPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  61. package/dist/ModelViewPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  62. package/dist/ModelViewPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  63. package/dist/ModelViewPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  64. package/dist/ModelViewPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  65. package/dist/ModelViewPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  66. package/dist/PanoCompassPlugin/{controller.d.ts → Controller.d.ts} +0 -0
  67. package/dist/PanoCompassPlugin/ItemLabelPlugin/typings.d.ts +2 -1
  68. package/dist/PanoCompassPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  69. package/dist/PanoCompassPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  70. package/dist/PanoCompassPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  71. package/dist/PanoCompassPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  72. package/dist/PanoCompassPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  73. package/dist/PanoCompassPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  74. package/dist/PanoCursorRaycasterPlugin/ItemLabelPlugin/typings.d.ts +2 -1
  75. package/dist/PanoCursorRaycasterPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  76. package/dist/PanoCursorRaycasterPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  77. package/dist/PanoCursorRaycasterPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  78. package/dist/PanoCursorRaycasterPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  79. package/dist/PanoCursorRaycasterPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  80. package/dist/PanoCursorRaycasterPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  81. package/dist/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  82. package/{libs/src → dist/PanoDoorLabelPlugin}/CSS3DRenderPlugin/Plugin.d.ts +0 -0
  83. package/{libs/src → dist/PanoDoorLabelPlugin}/CSS3DRenderPlugin/index.d.ts +0 -0
  84. package/{libs/src → dist/PanoDoorLabelPlugin}/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -0
  85. package/{libs/src → dist/PanoDoorLabelPlugin}/CameraMovementPlugin/CameraMovementPlugin.d.ts +0 -0
  86. package/{libs/src → dist/PanoDoorLabelPlugin}/CameraMovementPlugin/index.d.ts +0 -0
  87. package/{libs/src → dist/PanoDoorLabelPlugin}/CameraMovementPlugin/typing.d.ts +0 -0
  88. package/dist/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  89. package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/Plugin.d.ts +0 -0
  90. package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/events.type.d.ts +0 -0
  91. package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/index.d.ts +0 -0
  92. package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/typings.d.ts +7 -1
  93. package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/utils/getLabelTransform.d.ts +0 -0
  94. package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/utils/getStrokeLength.d.ts +0 -0
  95. package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/utils/isImpacted.d.ts +0 -0
  96. package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/utils/parseData.d.ts +0 -0
  97. package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/utils/transform2RenderData.d.ts +0 -0
  98. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelChassisCompassPlugin/Plugin.d.ts +0 -0
  99. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelChassisCompassPlugin/index.d.ts +0 -0
  100. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelEntryDoorGuidePlugin/Plugin.d.ts +0 -0
  101. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelEntryDoorGuidePlugin/index.d.ts +0 -0
  102. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +0 -0
  103. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelItemLabelPlugin/events.type.d.ts +0 -0
  104. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelItemLabelPlugin/index.d.ts +0 -0
  105. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelItemLabelPlugin/typings.d.ts +1 -1
  106. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelItemLabelPlugin/utils/parseData.d.ts +0 -0
  107. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +0 -0
  108. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelRoomLabelPlugin/Controller.d.ts +0 -0
  109. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelRoomLabelPlugin/index.d.ts +0 -0
  110. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelRoomLabelPlugin/typings.d.ts +0 -0
  111. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelRoomLabelPlugin/utils/parseData.d.ts +0 -0
  112. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelTVVideoPlugin/Plugin.d.ts +0 -0
  113. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelTVVideoPlugin/index.d.ts +0 -0
  114. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelTVVideoPlugin/typings.d.ts +0 -0
  115. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelTVVideoPlugin/utils/parseData.d.ts +0 -0
  116. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelViewPlugin/Plugin.d.ts +0 -0
  117. package/{libs/src → dist/PanoDoorLabelPlugin}/ModelViewPlugin/index.d.ts +0 -0
  118. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +0 -0
  119. package/{libs/PanoCompassPlugin/controller.d.ts → dist/PanoDoorLabelPlugin/PanoCompassPlugin/Controller.d.ts} +0 -0
  120. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoCompassPlugin/getRoomInfoInstance.d.ts +0 -0
  121. package/dist/PanoDoorLabelPlugin/PanoCompassPlugin/index.d.ts +7 -0
  122. package/dist/PanoDoorLabelPlugin/PanoCompassPlugin/typings.d.ts +57 -0
  123. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoCursorRaycasterPlugin/index.d.ts +0 -0
  124. package/dist/PanoDoorLabelPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  125. package/dist/PanoDoorLabelPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  126. package/dist/PanoDoorLabelPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  127. package/dist/PanoDoorLabelPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  128. package/dist/PanoDoorLabelPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  129. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Controller/BaseController.d.ts +0 -0
  130. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Controller/EditController.d.ts +0 -0
  131. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -0
  132. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +0 -0
  133. package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/Controller/ViewController.d.ts +16 -0
  134. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Controller/WatchController.d.ts +0 -0
  135. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Controller/index.d.ts +1 -1
  136. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Model/index.d.ts +0 -0
  137. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Model/line.d.ts +0 -0
  138. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Model/point.d.ts +0 -0
  139. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Model/polyline.d.ts +0 -0
  140. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +0 -0
  141. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +0 -0
  142. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +0 -0
  143. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +0 -0
  144. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/FiveHelper.d.ts +0 -0
  145. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/GuideController.d.ts +0 -0
  146. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/Magnifier.d.ts +0 -0
  147. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +0 -0
  148. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +0 -0
  149. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +0 -0
  150. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/UIController/index.d.ts +0 -0
  151. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +0 -0
  152. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +0 -0
  153. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -0
  154. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +0 -0
  155. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +0 -0
  156. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/index.d.ts +0 -0
  157. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/typings/data.d.ts +0 -0
  158. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/typings/event.type.d.ts +0 -0
  159. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/typings/utils.type.d.ts +0 -0
  160. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +0 -0
  161. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -0
  162. package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/utils/constants.d.ts +4 -0
  163. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
  164. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +0 -0
  165. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/findClosestPoint.d.ts +0 -0
  166. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +0 -0
  167. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +0 -0
  168. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/ironbox.d.ts +0 -0
  169. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +0 -0
  170. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/line.d.ts +3 -3
  171. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/math.d.ts +0 -0
  172. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/mouseGroup.d.ts +0 -0
  173. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/ndc2Screen.d.ts +0 -0
  174. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoRulerPlugin/Plugin.d.ts +0 -0
  175. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoRulerPlugin/index.d.ts +0 -0
  176. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoRulerPlugin/style.d.ts +0 -0
  177. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoRulerPlugin/typings.d.ts +0 -0
  178. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoRulerProPlugin/Controller.d.ts +0 -0
  179. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoRulerProPlugin/index.d.ts +0 -0
  180. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoRulerProPlugin/typings.d.ts +0 -0
  181. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoSpatialTagPlugin/Plugin.d.ts +0 -0
  182. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoSpatialTagPlugin/index.d.ts +0 -0
  183. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoSpatialTagPlugin/store.d.ts +0 -0
  184. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoSpatialTagPlugin/style.d.ts +0 -0
  185. package/{libs/src → dist/PanoDoorLabelPlugin}/PanoSpatialTagPlugin/typings.d.ts +0 -0
  186. package/{libs/src → dist/PanoDoorLabelPlugin}/base/BasePlugin.d.ts +0 -4
  187. package/{libs/src → dist/PanoDoorLabelPlugin}/base/BasePluginWithData.d.ts +0 -0
  188. package/{libs/src → dist/PanoDoorLabelPlugin}/components/PaintBrush/Controller.d.ts +0 -0
  189. package/{libs/src → dist/PanoDoorLabelPlugin}/components/PaintBrush/Subscribe.d.ts +0 -0
  190. package/{libs/src → dist/PanoDoorLabelPlugin}/components/PaintBrush/index.d.ts +0 -0
  191. package/{libs/src → dist/PanoDoorLabelPlugin}/components/PaintBrush/style.d.ts +0 -0
  192. package/{libs/src → dist/PanoDoorLabelPlugin}/components/PaintBrush/tween.d.ts +0 -0
  193. package/{libs/src → dist/PanoDoorLabelPlugin}/components/PaintBrush/typings.d.ts +0 -0
  194. package/{libs/src → dist/PanoDoorLabelPlugin}/components/PaintBrush/utils.d.ts +0 -0
  195. package/{libs/src → dist/PanoDoorLabelPlugin}/components/index.d.ts +0 -0
  196. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/Assets/camera.d.ts +0 -0
  197. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/Assets/compass.d.ts +0 -0
  198. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/Assets/floorplanExtraObject.d.ts +0 -0
  199. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/ModelFloorplanPlugin/Controller.d.ts +0 -0
  200. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/ModelFloorplanPlugin/index.d.ts +0 -0
  201. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/ModelFloorplanPlugin/typing.d.ts +0 -0
  202. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +0 -0
  203. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/PanoFloorplanRadarPlugin/index.d.ts +0 -0
  204. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +0 -0
  205. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/TopviewFloorplanPlugin/Controller.d.ts +0 -0
  206. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/TopviewFloorplanPlugin/index.d.ts +0 -0
  207. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/TopviewFloorplanPlugin/style.d.ts +0 -0
  208. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/TopviewFloorplanPlugin/typing.d.ts +0 -0
  209. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/constant.d.ts +0 -0
  210. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/index.d.ts +0 -0
  211. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/typings/floorplanData.d.ts +0 -0
  212. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/typings/floorplanServerData.d.ts +13 -0
  213. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/typings/utility.d.ts +0 -0
  214. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/utils/constant.d.ts +0 -0
  215. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/utils/correctFiveState.d.ts +0 -0
  216. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/utils/formatData.d.ts +0 -0
  217. package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/utils/formatPosition.d.ts +0 -0
  218. package/dist/PanoDoorLabelPlugin/index.d.ts +7 -0
  219. package/dist/PanoDoorLabelPlugin/index.js +775 -0
  220. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/Preloader.d.ts +0 -0
  221. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/Subscribe.d.ts +0 -0
  222. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/animationFrame/BetterTween.d.ts +0 -0
  223. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/animationFrame/calculateProgress.d.ts +0 -0
  224. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/animationFrame/formatRad.d.ts +0 -0
  225. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/animationFrame/index.d.ts +0 -0
  226. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/animationFrame/tween.d.ts +0 -0
  227. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/changeModelCanvasOpacity.d.ts +0 -0
  228. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/createCanvasTextTexture.d.ts +0 -0
  229. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/createLine/index.d.ts +0 -0
  230. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/debounce.d.ts +0 -0
  231. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/equal.d.ts +0 -0
  232. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/filter.d.ts +0 -0
  233. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/five/changeMode.d.ts +0 -0
  234. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/formatRad.d.ts +0 -0
  235. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/getPxmm.d.ts +0 -0
  236. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/getRandomColor.d.ts +0 -0
  237. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/index.d.ts +0 -0
  238. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/isNil.d.ts +0 -0
  239. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/isTruelyObject.d.ts +0 -0
  240. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/logger.d.ts +0 -0
  241. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/math/Interval.d.ts +0 -0
  242. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/math/Rectangle.d.ts +0 -0
  243. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/math/evenNumber.d.ts +0 -0
  244. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/math/index.d.ts +0 -0
  245. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/math/planimetry.d.ts +0 -0
  246. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/math/rad2Deg.d.ts +0 -0
  247. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/nearlyEqual.d.ts +0 -0
  248. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/nextFrame.d.ts +0 -0
  249. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/noop.d.ts +0 -0
  250. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/object3d2LocalMatrix.d.ts +0 -0
  251. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/px2rem.d.ts +0 -0
  252. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/removeArrayItem.d.ts +0 -0
  253. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/tap.d.ts +0 -0
  254. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/three/centerPoint.d.ts +0 -0
  255. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/three/getExtraModelLoader.d.ts +0 -0
  256. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/three/getNormal.d.ts +0 -0
  257. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/three/getTextureLoader.d.ts +0 -0
  258. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/three/loadFbxObj.d.ts +0 -0
  259. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/three/loadTexture.d.ts +0 -0
  260. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/three/transformPositionToVector3.d.ts +0 -0
  261. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/three/transfromToMeshBasicMaterial.d.ts +0 -0
  262. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/throttle.d.ts +0 -0
  263. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/tinyEJSrender.d.ts +0 -0
  264. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/to.d.ts +0 -0
  265. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/uuid.d.ts +0 -0
  266. package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/vectorTocoordinates.d.ts +0 -0
  267. package/{libs/src → dist/PanoDoorLabelPlugin}/typings/math.type.d.ts +0 -0
  268. package/{libs/src → dist/PanoDoorLabelPlugin}/typings/utils.type.d.ts +0 -0
  269. package/dist/PanoDoorLabelPlugin/typings.d.ts +33 -0
  270. package/dist/PanoDoorLabelPlugin/utils.d.ts +5 -0
  271. package/dist/PanoMeasurePlugin/ItemLabelPlugin/typings.d.ts +2 -1
  272. package/dist/PanoMeasurePlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  273. package/dist/PanoMeasurePlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  274. package/dist/PanoMeasurePlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  275. package/dist/PanoMeasurePlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  276. package/dist/PanoMeasurePlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  277. package/dist/PanoMeasurePlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  278. package/dist/PanoRulerPlugin/ItemLabelPlugin/typings.d.ts +2 -1
  279. package/dist/PanoRulerPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  280. package/dist/PanoRulerPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  281. package/dist/PanoRulerPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  282. package/dist/PanoRulerPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  283. package/dist/PanoRulerPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  284. package/dist/PanoRulerPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  285. package/dist/PanoRulerProPlugin/ItemLabelPlugin/typings.d.ts +2 -1
  286. package/dist/PanoRulerProPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  287. package/dist/PanoRulerProPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  288. package/dist/PanoRulerProPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  289. package/dist/PanoRulerProPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  290. package/dist/PanoRulerProPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  291. package/dist/PanoRulerProPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  292. package/dist/PanoSpatialTagPlugin/ItemLabelPlugin/typings.d.ts +2 -1
  293. package/dist/PanoSpatialTagPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  294. package/dist/PanoSpatialTagPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  295. package/dist/PanoSpatialTagPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  296. package/dist/PanoSpatialTagPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  297. package/dist/PanoSpatialTagPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  298. package/dist/PanoSpatialTagPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  299. package/dist/floorplan/ModelFloorplanPlugin/ItemLabelPlugin/typings.d.ts +2 -1
  300. package/dist/floorplan/ModelFloorplanPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  301. package/dist/floorplan/ModelFloorplanPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  302. package/dist/floorplan/ModelFloorplanPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  303. package/dist/floorplan/ModelFloorplanPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  304. package/dist/floorplan/ModelFloorplanPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  305. package/dist/floorplan/ModelFloorplanPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  306. package/dist/floorplan/PanoFloorplanRadarPlugin/ItemLabelPlugin/typings.d.ts +2 -1
  307. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  308. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  309. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  310. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  311. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  312. package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  313. package/dist/floorplan/TopviewFloorplanPlugin/ItemLabelPlugin/typings.d.ts +2 -1
  314. package/dist/floorplan/TopviewFloorplanPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  315. package/dist/floorplan/TopviewFloorplanPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  316. package/dist/floorplan/TopviewFloorplanPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
  317. package/dist/floorplan/TopviewFloorplanPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
  318. package/dist/floorplan/TopviewFloorplanPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
  319. package/dist/floorplan/TopviewFloorplanPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
  320. package/dist/floorplan/typings/floorplanServerData.d.ts +13 -0
  321. package/dist/index.d.ts +2 -1
  322. package/dist/index.es.js +962 -190
  323. package/dist/index.js +961 -188
  324. package/dist/index.umd.js +961 -188
  325. package/docs/assets/search.js +1 -1
  326. package/docs/classes/Magnifier.html +4 -4
  327. package/docs/classes/ModelRoomLabelController.html +4 -4
  328. package/docs/enums/CameraMovementEffect.html +2 -2
  329. package/docs/enums/DIRECTION.html +1 -1
  330. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  331. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  332. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  333. package/docs/enums/Rotation.html +2 -2
  334. package/docs/index.html +2 -2
  335. package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
  336. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  337. package/docs/interfaces/FloorplanBounding.html +4 -4
  338. package/docs/interfaces/FloorplanData.html +2 -2
  339. package/docs/interfaces/FloorplanEntrance.html +7 -7
  340. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  341. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  342. package/docs/interfaces/FloorplanFloorData.html +2 -2
  343. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  344. package/docs/interfaces/FloorplanObserver.html +2 -2
  345. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  346. package/docs/interfaces/FloorplanPosition.html +2 -2
  347. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  348. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  349. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  350. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  351. package/docs/interfaces/FloorplanServerData.html +2 -2
  352. package/docs/interfaces/FloorplanServerDoorItem.html +1 -0
  353. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -0
  354. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  355. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  356. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  357. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  358. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  359. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  360. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  361. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  362. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  363. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  364. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  365. package/docs/interfaces/LineJson.html +1 -1
  366. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  367. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  368. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  369. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  370. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  371. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  372. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  373. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  374. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  375. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  376. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  377. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  378. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  379. package/docs/interfaces/OpenParameter.html +2 -2
  380. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  381. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  382. package/docs/interfaces/PanoMeasureParameterType.html +1 -1
  383. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  384. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  385. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  386. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  387. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  388. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  389. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  390. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  391. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  392. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  393. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  394. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  395. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  396. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  397. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  398. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  399. package/docs/interfaces/Point.html +1 -1
  400. package/docs/interfaces/PointJson.html +1 -1
  401. package/docs/interfaces/Room.html +1 -1
  402. package/docs/interfaces/RoomInfo.html +1 -1
  403. package/docs/interfaces/RoomLabel.html +7 -7
  404. package/docs/interfaces/RoomRules.html +1 -1
  405. package/docs/interfaces/Rooms.html +1 -1
  406. package/docs/modules.html +18 -18
  407. package/libs/ItemLabelPlugin/ItemLabelItem.js +76 -36
  408. package/libs/ItemLabelPlugin/Plugin.js +1 -1
  409. package/libs/ItemLabelPlugin/typings.d.ts +1 -1
  410. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +1 -1
  411. package/libs/ModelItemLabelPlugin/typings.d.ts +1 -1
  412. package/libs/ModelRoomLabelPlugin/Controller.js +1 -1
  413. package/libs/PanoCompassPlugin/Controller.d.ts +84 -0
  414. package/libs/PanoCompassPlugin/{controller.js → Controller.js} +0 -0
  415. package/libs/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  416. package/libs/PanoDoorLabelPlugin/BaseController.js +103 -0
  417. package/libs/PanoDoorLabelPlugin/Controller.d.ts +36 -0
  418. package/libs/PanoDoorLabelPlugin/Controller.js +434 -0
  419. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +159 -0
  420. package/libs/PanoDoorLabelPlugin/index.d.ts +7 -0
  421. package/libs/PanoDoorLabelPlugin/index.js +6 -0
  422. package/libs/PanoDoorLabelPlugin/typings.d.ts +33 -0
  423. package/libs/{src/ModelRoomLabelPlugin → PanoDoorLabelPlugin}/typings.js +0 -0
  424. package/libs/PanoDoorLabelPlugin/utils.d.ts +5 -0
  425. package/libs/PanoDoorLabelPlugin/utils.js +55 -0
  426. package/libs/PanoRulerProPlugin/Controller.js +1 -1
  427. package/libs/PanoSpatialTagPlugin/Plugin.js +2 -2
  428. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
  429. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  430. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
  431. package/libs/floorplan/typings/floorplanServerData.d.ts +13 -0
  432. package/libs/index.d.ts +2 -1
  433. package/libs/index.js +3 -1
  434. package/package.json +1 -1
  435. package/dist/PanoCompassPlugin/Plugin.d.ts +0 -47
  436. package/libs/ItemLabelPlugin/ItemLabelComponent.svelte +0 -251
  437. package/libs/ItemLabelPlugin/ItemLabelItem.svelte +0 -180
  438. package/libs/ModelItemLabelPlugin/ItemLabelComponent.svelte +0 -155
  439. package/libs/ModelItemLabelPlugin/ItemLabelItem.svelte +0 -100
  440. package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte +0 -63
  441. package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte +0 -94
  442. package/libs/PanoCompassPlugin/Plugin.d.ts +0 -47
  443. package/libs/PanoCompassPlugin/Plugin.js +0 -267
  444. package/libs/PanoCompassPlugin/typeings.d.ts +0 -0
  445. package/libs/PanoCompassPlugin/typeings.js +0 -0
  446. package/libs/PanoRulerProPlugin/RulerItem.svelte +0 -166
  447. package/libs/PanoRulerProPlugin/RulerItems.svelte +0 -212
  448. package/libs/PanoSpatialTagPlugin/Components/origins.svelte +0 -58
  449. package/libs/PanoSpatialTagPlugin/Components/tag.svelte +0 -292
  450. package/libs/floorplan/Components/BaseImage.svelte +0 -26
  451. package/libs/floorplan/Components/Camera.svelte +0 -46
  452. package/libs/floorplan/Components/Compass.svelte +0 -51
  453. package/libs/floorplan/Components/CurrentFloor.svelte +0 -46
  454. package/libs/floorplan/Components/Main.svelte +0 -51
  455. package/libs/floorplan/Components/Normalmage.svelte +0 -11
  456. package/libs/floorplan/Components/RoomHighlight/Room.svelte +0 -27
  457. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte +0 -29
  458. package/libs/floorplan/Components/RoomLabels/RoomLabel.svelte +0 -119
  459. package/libs/floorplan/Components/RoomLabels/RoomLabels.svelte +0 -35
  460. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte +0 -42
  461. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte +0 -7
  462. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte +0 -24
  463. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte +0 -33
  464. package/libs/floorplan/Components/RuleLabels/RuleItem.svelte +0 -174
  465. package/libs/floorplan/Components/RuleLabels/RuleLabels.svelte +0 -32
  466. package/libs/floorplan/Components/SvgImage.svelte +0 -28
  467. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte +0 -85
  468. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte +0 -18
  469. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte +0 -40
  470. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte +0 -64
  471. package/libs/package.json +0 -68
  472. package/libs/src/CSS3DRenderPlugin/Plugin.js +0 -182
  473. package/libs/src/CSS3DRenderPlugin/index.js +0 -3
  474. package/libs/src/CSS3DRenderPlugin/utils/createResizeObserver.js +0 -18
  475. package/libs/src/CameraMovementPlugin/CameraMovementPlugin.js +0 -159
  476. package/libs/src/CameraMovementPlugin/index.js +0 -4
  477. package/libs/src/CameraMovementPlugin/typing.js +0 -17
  478. package/libs/src/ItemLabelPlugin/Plugin.js +0 -120
  479. package/libs/src/ItemLabelPlugin/events.type.js +0 -1
  480. package/libs/src/ItemLabelPlugin/index.js +0 -8
  481. package/libs/src/ItemLabelPlugin/typings.js +0 -7
  482. package/libs/src/ItemLabelPlugin/utils/getLabelTransform.js +0 -3
  483. package/libs/src/ItemLabelPlugin/utils/getStrokeLength.js +0 -16
  484. package/libs/src/ItemLabelPlugin/utils/isImpacted.js +0 -13
  485. package/libs/src/ItemLabelPlugin/utils/parseData.js +0 -4
  486. package/libs/src/ItemLabelPlugin/utils/transform2RenderData.js +0 -4
  487. package/libs/src/ModelChassisCompassPlugin/Plugin.js +0 -77
  488. package/libs/src/ModelChassisCompassPlugin/index.js +0 -3
  489. package/libs/src/ModelEntryDoorGuidePlugin/Plugin.js +0 -140
  490. package/libs/src/ModelEntryDoorGuidePlugin/index.js +0 -3
  491. package/libs/src/ModelItemLabelPlugin/ModelItemLabelPlugin.js +0 -120
  492. package/libs/src/ModelItemLabelPlugin/events.type.js +0 -1
  493. package/libs/src/ModelItemLabelPlugin/index.js +0 -8
  494. package/libs/src/ModelItemLabelPlugin/typings.js +0 -7
  495. package/libs/src/ModelItemLabelPlugin/utils/parseData.js +0 -4
  496. package/libs/src/ModelRoomLabelPlugin/Assets/roomLabelBg.js +0 -1
  497. package/libs/src/ModelRoomLabelPlugin/Controller.js +0 -142
  498. package/libs/src/ModelRoomLabelPlugin/index.js +0 -9
  499. package/libs/src/ModelRoomLabelPlugin/utils/parseData.js +0 -14
  500. package/libs/src/ModelTVVideoPlugin/Plugin.js +0 -254
  501. package/libs/src/ModelTVVideoPlugin/index.js +0 -4
  502. package/libs/src/ModelTVVideoPlugin/typings.js +0 -8
  503. package/libs/src/ModelTVVideoPlugin/utils/parseData.js +0 -13
  504. package/libs/src/ModelViewPlugin/Plugin.js +0 -159
  505. package/libs/src/ModelViewPlugin/index.js +0 -3
  506. package/libs/src/PanoCompassPlugin/Assets/roomInfoIcon.js +0 -1
  507. package/libs/src/PanoCompassPlugin/Plugin.d.ts +0 -47
  508. package/libs/src/PanoCompassPlugin/Plugin.js +0 -249
  509. package/libs/src/PanoCompassPlugin/getRoomInfoInstance.js +0 -48
  510. package/libs/src/PanoCompassPlugin/index.d.ts +0 -8
  511. package/libs/src/PanoCompassPlugin/index.js +0 -7
  512. package/libs/src/PanoCursorRaycasterPlugin/index.js +0 -76
  513. package/libs/src/PanoMeasurePlugin/Controller/BaseController.js +0 -132
  514. package/libs/src/PanoMeasurePlugin/Controller/EditController.js +0 -329
  515. package/libs/src/PanoMeasurePlugin/Controller/MixedController.js +0 -337
  516. package/libs/src/PanoMeasurePlugin/Controller/ShortcutKeyController.js +0 -64
  517. package/libs/src/PanoMeasurePlugin/Controller/WatchController.js +0 -316
  518. package/libs/src/PanoMeasurePlugin/Controller/index.js +0 -306
  519. package/libs/src/PanoMeasurePlugin/Model/index.js +0 -139
  520. package/libs/src/PanoMeasurePlugin/Model/line.js +0 -114
  521. package/libs/src/PanoMeasurePlugin/Model/point.js +0 -48
  522. package/libs/src/PanoMeasurePlugin/Model/polyline.js +0 -65
  523. package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +0 -12
  524. package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +0 -2
  525. package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +0 -2
  526. package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/index.js +0 -190
  527. package/libs/src/PanoMeasurePlugin/Modules/FiveHelper.js +0 -48
  528. package/libs/src/PanoMeasurePlugin/Modules/GuideController.js +0 -110
  529. package/libs/src/PanoMeasurePlugin/Modules/Magnifier.js +0 -278
  530. package/libs/src/PanoMeasurePlugin/Modules/UIController/HTML.js +0 -128
  531. package/libs/src/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +0 -126
  532. package/libs/src/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +0 -73
  533. package/libs/src/PanoMeasurePlugin/Modules/UIController/index.js +0 -117
  534. package/libs/src/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +0 -80
  535. package/libs/src/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +0 -98
  536. package/libs/src/PanoMeasurePlugin/Modules/UIController/style.js +0 -71
  537. package/libs/src/PanoMeasurePlugin/Modules/rangePiece/html.js +0 -64
  538. package/libs/src/PanoMeasurePlugin/Modules/rangePiece/index.js +0 -264
  539. package/libs/src/PanoMeasurePlugin/index.js +0 -7
  540. package/libs/src/PanoMeasurePlugin/typings/data.js +0 -1
  541. package/libs/src/PanoMeasurePlugin/typings/event.type.js +0 -1
  542. package/libs/src/PanoMeasurePlugin/typings/utils.type.js +0 -1
  543. package/libs/src/PanoMeasurePlugin/utils/calculateThreeMouse.js +0 -15
  544. package/libs/src/PanoMeasurePlugin/utils/clearGroup.js +0 -3
  545. package/libs/src/PanoMeasurePlugin/utils/constants.d.ts +0 -4
  546. package/libs/src/PanoMeasurePlugin/utils/constants.js +0 -31
  547. package/libs/src/PanoMeasurePlugin/utils/distanceDom.js +0 -120
  548. package/libs/src/PanoMeasurePlugin/utils/findAssociatedLines.js +0 -21
  549. package/libs/src/PanoMeasurePlugin/utils/findClosestPoint.js +0 -27
  550. package/libs/src/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +0 -9
  551. package/libs/src/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +0 -14
  552. package/libs/src/PanoMeasurePlugin/utils/ironbox.js +0 -1
  553. package/libs/src/PanoMeasurePlugin/utils/isNDCPointInScreen.js +0 -6
  554. package/libs/src/PanoMeasurePlugin/utils/line.js +0 -33
  555. package/libs/src/PanoMeasurePlugin/utils/math.js +0 -44
  556. package/libs/src/PanoMeasurePlugin/utils/mouseGroup.js +0 -69
  557. package/libs/src/PanoMeasurePlugin/utils/ndc2Screen.js +0 -6
  558. package/libs/src/PanoRulerPlugin/Plugin.js +0 -403
  559. package/libs/src/PanoRulerPlugin/index.js +0 -3
  560. package/libs/src/PanoRulerPlugin/style.js +0 -88
  561. package/libs/src/PanoRulerPlugin/typings.js +0 -1
  562. package/libs/src/PanoRulerProPlugin/Controller.js +0 -110
  563. package/libs/src/PanoRulerProPlugin/index.js +0 -8
  564. package/libs/src/PanoRulerProPlugin/typings.js +0 -1
  565. package/libs/src/PanoSpatialTagPlugin/Plugin.js +0 -426
  566. package/libs/src/PanoSpatialTagPlugin/index.js +0 -5
  567. package/libs/src/PanoSpatialTagPlugin/store.js +0 -2
  568. package/libs/src/PanoSpatialTagPlugin/style.js +0 -8
  569. package/libs/src/PanoSpatialTagPlugin/typings.js +0 -1
  570. package/libs/src/base/BasePlugin.js +0 -41
  571. package/libs/src/base/BasePluginWithData.js +0 -4
  572. package/libs/src/components/PaintBrush/Controller.js +0 -575
  573. package/libs/src/components/PaintBrush/Subscribe.js +0 -121
  574. package/libs/src/components/PaintBrush/index.js +0 -57
  575. package/libs/src/components/PaintBrush/style.js +0 -102
  576. package/libs/src/components/PaintBrush/tween.js +0 -15
  577. package/libs/src/components/PaintBrush/typings.js +0 -6
  578. package/libs/src/components/PaintBrush/utils.js +0 -51
  579. package/libs/src/components/index.js +0 -3
  580. package/libs/src/floorplan/Assets/camera.js +0 -1
  581. package/libs/src/floorplan/Assets/compass.js +0 -1
  582. package/libs/src/floorplan/Assets/floorplanExtraObject.js +0 -1
  583. package/libs/src/floorplan/ModelFloorplanPlugin/Controller.js +0 -701
  584. package/libs/src/floorplan/ModelFloorplanPlugin/index.js +0 -5
  585. package/libs/src/floorplan/ModelFloorplanPlugin/typing.js +0 -1
  586. package/libs/src/floorplan/PanoFloorplanRadarPlugin/Controller.js +0 -240
  587. package/libs/src/floorplan/PanoFloorplanRadarPlugin/index.js +0 -5
  588. package/libs/src/floorplan/PanoFloorplanRadarPlugin/typing.js +0 -1
  589. package/libs/src/floorplan/TopviewFloorplanPlugin/Controller.js +0 -486
  590. package/libs/src/floorplan/TopviewFloorplanPlugin/index.js +0 -5
  591. package/libs/src/floorplan/TopviewFloorplanPlugin/style.js +0 -8
  592. package/libs/src/floorplan/TopviewFloorplanPlugin/typing.js +0 -1
  593. package/libs/src/floorplan/constant.js +0 -6
  594. package/libs/src/floorplan/index.js +0 -7
  595. package/libs/src/floorplan/typings/floorplanData.js +0 -6
  596. package/libs/src/floorplan/typings/floorplanServerData.js +0 -101
  597. package/libs/src/floorplan/typings/utility.js +0 -1
  598. package/libs/src/floorplan/utils/constant.js +0 -23
  599. package/libs/src/floorplan/utils/correctFiveState.js +0 -46
  600. package/libs/src/floorplan/utils/formatData.js +0 -94
  601. package/libs/src/floorplan/utils/formatPosition.js +0 -50
  602. package/libs/src/index.d.ts +0 -16
  603. package/libs/src/index.js +0 -28
  604. package/libs/src/shared-utils/Preloader.js +0 -38
  605. package/libs/src/shared-utils/Subscribe.js +0 -108
  606. package/libs/src/shared-utils/animationFrame/BetterTween.js +0 -59
  607. package/libs/src/shared-utils/animationFrame/calculateProgress.js +0 -23
  608. package/libs/src/shared-utils/animationFrame/formatRad.js +0 -20
  609. package/libs/src/shared-utils/animationFrame/index.js +0 -48
  610. package/libs/src/shared-utils/animationFrame/tween.js +0 -44
  611. package/libs/src/shared-utils/changeModelCanvasOpacity.js +0 -15
  612. package/libs/src/shared-utils/createCanvasTextTexture.js +0 -20
  613. package/libs/src/shared-utils/createLine/index.js +0 -8
  614. package/libs/src/shared-utils/debounce.js +0 -14
  615. package/libs/src/shared-utils/equal.js +0 -84
  616. package/libs/src/shared-utils/filter.js +0 -53
  617. package/libs/src/shared-utils/five/changeMode.js +0 -36
  618. package/libs/src/shared-utils/formatRad.js +0 -10
  619. package/libs/src/shared-utils/getPxmm.js +0 -39
  620. package/libs/src/shared-utils/getRandomColor.js +0 -10
  621. package/libs/src/shared-utils/index.js +0 -1
  622. package/libs/src/shared-utils/isNil.js +0 -14
  623. package/libs/src/shared-utils/isTruelyObject.js +0 -20
  624. package/libs/src/shared-utils/logger.js +0 -47
  625. package/libs/src/shared-utils/math/Interval.js +0 -40
  626. package/libs/src/shared-utils/math/Rectangle.js +0 -50
  627. package/libs/src/shared-utils/math/evenNumber.js +0 -4
  628. package/libs/src/shared-utils/math/index.js +0 -2
  629. package/libs/src/shared-utils/math/planimetry.js +0 -288
  630. package/libs/src/shared-utils/math/rad2Deg.js +0 -3
  631. package/libs/src/shared-utils/nearlyEqual.js +0 -9
  632. package/libs/src/shared-utils/nextFrame.js +0 -6
  633. package/libs/src/shared-utils/noop.js +0 -7
  634. package/libs/src/shared-utils/object3d2LocalMatrix.js +0 -29
  635. package/libs/src/shared-utils/px2rem.js +0 -4
  636. package/libs/src/shared-utils/removeArrayItem.js +0 -12
  637. package/libs/src/shared-utils/tap.js +0 -12
  638. package/libs/src/shared-utils/three/centerPoint.js +0 -4
  639. package/libs/src/shared-utils/three/getExtraModelLoader.js +0 -18
  640. package/libs/src/shared-utils/three/getNormal.js +0 -6
  641. package/libs/src/shared-utils/three/getTextureLoader.js +0 -17
  642. package/libs/src/shared-utils/three/loadFbxObj.js +0 -13
  643. package/libs/src/shared-utils/three/loadTexture.js +0 -10
  644. package/libs/src/shared-utils/three/transformPositionToVector3.js +0 -3
  645. package/libs/src/shared-utils/three/transfromToMeshBasicMaterial.js +0 -15
  646. package/libs/src/shared-utils/throttle.js +0 -18
  647. package/libs/src/shared-utils/tinyEJSrender.js +0 -210
  648. package/libs/src/shared-utils/to.js +0 -18
  649. package/libs/src/shared-utils/uuid.js +0 -12
  650. package/libs/src/shared-utils/vectorTocoordinates.js +0 -9
  651. package/libs/src/typings/math.type.js +0 -1
  652. package/libs/src/typings/utils.type.js +0 -1
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as THREE from 'three';
2
- import { Vector3 as Vector3$1, Scene, Group, Raycaster as Raycaster$1, MeshBasicMaterial, CanvasTexture, AnimationMixer, Color, TextureLoader, Vector2 as Vector2$1, PlaneGeometry, sRGBEncoding, Mesh, CurvePath, LineCurve3, TubeGeometry, ShaderMaterial, SphereGeometry, DoubleSide, RingGeometry } from 'three';
2
+ import { Vector3 as Vector3$1, Scene, Group, Raycaster as Raycaster$1, MeshBasicMaterial, CanvasTexture, AnimationMixer, Color, TextureLoader, Vector2 as Vector2$1, PlaneGeometry, sRGBEncoding, Mesh, CurvePath, LineCurve3, TubeGeometry, ShaderMaterial, SphereGeometry, DoubleSide, RingGeometry, Quaternion, Euler } from 'three';
3
3
  import { CSS3DRenderer, CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer';
4
4
  import { Line as Line$1 } from '@realsee/five/line';
5
5
  import { SvelteComponent, init, safe_not_equal, append_styles, element, text, space, attr, set_style, toggle_class, insert, append, listen, set_data, noop as noop$1, detach, add_render_callback, add_resize_listener, group_outros, update_keyed_each, outro_and_destroy_block, check_outros, transition_in, transition_out, globals, empty, create_component, mount_component, destroy_component, src_url_equal, HtmlTag, binding_callbacks, assign, get_spread_update, destroy_block, destroy_each, svg_element, run_all, null_to_empty, create_in_transition } from 'svelte/internal';
@@ -462,11 +462,11 @@ const ROOM_LABEL_BG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAY
462
462
 
463
463
  /* src/ModelRoomLabelPlugin/RoomLabelItem.svelte generated by Svelte v3.49.0 */
464
464
 
465
- function add_css$p(target) {
465
+ function add_css$q(target) {
466
466
  append_styles(target, "svelte-877671", ".room-label-item.svelte-877671{position:absolute;font-size:0.41667rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.room-label-item__text.svelte-877671{position:absolute;left:0;top:-3.33333rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.04167rem;min-width:1.66667rem;padding:0 0.3125rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-877671{position:absolute;top:-2.29167rem;height:2.5rem;width:1px;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-877671{font-size:0.52083rem}");
467
467
  }
468
468
 
469
- function create_fragment$u(ctx) {
469
+ function create_fragment$v(ctx) {
470
470
  let div1;
471
471
  let span;
472
472
  let t0_value = /*roomLabel*/ ctx[0].name + "";
@@ -533,7 +533,7 @@ function create_fragment$u(ctx) {
533
533
  };
534
534
  }
535
535
 
536
- function instance$u($$self, $$props, $$invalidate) {
536
+ function instance$v($$self, $$props, $$invalidate) {
537
537
  let { five } = $$props;
538
538
  let { roomLabel } = $$props;
539
539
 
@@ -556,7 +556,7 @@ function instance$u($$self, $$props, $$invalidate) {
556
556
  class RoomLabelItem extends SvelteComponent {
557
557
  constructor(options) {
558
558
  super();
559
- init(this, options, instance$u, create_fragment$u, safe_not_equal, { five: 2, roomLabel: 0 }, add_css$p);
559
+ init(this, options, instance$v, create_fragment$v, safe_not_equal, { five: 2, roomLabel: 0 }, add_css$q);
560
560
  }
561
561
  }
562
562
 
@@ -564,7 +564,7 @@ class RoomLabelItem extends SvelteComponent {
564
564
 
565
565
  const { Map: Map_1 } = globals;
566
566
 
567
- function add_css$o(target) {
567
+ function add_css$p(target) {
568
568
  append_styles(target, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
569
569
  }
570
570
 
@@ -623,7 +623,7 @@ function create_each_block$c(key_1, ctx) {
623
623
  };
624
624
  }
625
625
 
626
- function create_fragment$t(ctx) {
626
+ function create_fragment$u(ctx) {
627
627
  let div;
628
628
  let each_blocks = [];
629
629
  let each_1_lookup = new Map_1();
@@ -695,7 +695,7 @@ function create_fragment$t(ctx) {
695
695
  };
696
696
  }
697
697
 
698
- function instance$t($$self, $$props, $$invalidate) {
698
+ function instance$u($$self, $$props, $$invalidate) {
699
699
  let rendererSize;
700
700
  let { five } = $$props;
701
701
  let { roomLabels } = $$props;
@@ -820,7 +820,7 @@ function instance$t($$self, $$props, $$invalidate) {
820
820
  class RoomLabelItems extends SvelteComponent {
821
821
  constructor(options) {
822
822
  super();
823
- init(this, options, instance$t, create_fragment$t, safe_not_equal, { five: 1, roomLabels: 0 }, add_css$o);
823
+ init(this, options, instance$u, create_fragment$u, safe_not_equal, { five: 1, roomLabels: 0 }, add_css$p);
824
824
  }
825
825
  }
826
826
 
@@ -1108,11 +1108,11 @@ function rad2Deg$1(rad) {
1108
1108
 
1109
1109
  /* src/floorplan/Components/Camera.svelte generated by Svelte v3.49.0 */
1110
1110
 
1111
- function add_css$n(target) {
1111
+ function add_css$o(target) {
1112
1112
  append_styles(target, "svelte-17cl35n", ".floorplan__camera-position.svelte-17cl35n{position:absolute;width:0;height:0}.floorplan__camera-rotate.svelte-17cl35n{position:absolute;background-repeat:no-repeat;background-size:100%}");
1113
1113
  }
1114
1114
 
1115
- function create_fragment$s(ctx) {
1115
+ function create_fragment$t(ctx) {
1116
1116
  let div1;
1117
1117
  let div0;
1118
1118
 
@@ -1149,7 +1149,7 @@ function create_fragment$s(ctx) {
1149
1149
  };
1150
1150
  }
1151
1151
 
1152
- function instance$s($$self, $$props, $$invalidate) {
1152
+ function instance$t($$self, $$props, $$invalidate) {
1153
1153
  let { panoIndex } = $$props;
1154
1154
  let { floorplanData } = $$props;
1155
1155
  let { lastPanoramaLongitude } = $$props;
@@ -1195,8 +1195,8 @@ class Camera$1 extends SvelteComponent {
1195
1195
  init(
1196
1196
  this,
1197
1197
  options,
1198
- instance$s,
1199
- create_fragment$s,
1198
+ instance$t,
1199
+ create_fragment$t,
1200
1200
  safe_not_equal,
1201
1201
  {
1202
1202
  panoIndex: 5,
@@ -1204,7 +1204,7 @@ class Camera$1 extends SvelteComponent {
1204
1204
  lastPanoramaLongitude: 7,
1205
1205
  cameraImageUrl: 0
1206
1206
  },
1207
- add_css$n
1207
+ add_css$o
1208
1208
  );
1209
1209
  }
1210
1210
  }
@@ -1213,7 +1213,7 @@ const COMPASS_IMAGE = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArUAAAB7CAM
1213
1213
 
1214
1214
  /* src/floorplan/Components/Compass.svelte generated by Svelte v3.49.0 */
1215
1215
 
1216
- function add_css$m(target) {
1216
+ function add_css$n(target) {
1217
1217
  append_styles(target, "svelte-z9kwkx", ".floorplan-plugin__compass.svelte-z9kwkx{position:absolute;left:50%;top:-2.39583rem;width:12.03125rem;height:2.13542rem;will-change:opacity;transform-origin:center 9.58333rem}.floorplan-plugin__compass-image.svelte-z9kwkx{width:100%;height:100%;position:absolute;left:0;top:0;opacity:0.1;background-repeat:no-repeat;background-size:100% 100%}.floorplan-plugin__compass-text.svelte-z9kwkx{position:absolute;left:50%;top:0.78125rem;transform:translateX(-50%);opacity:0.2;font-weight:bold;font-size:0.52083rem;color:#fff}");
1218
1218
  }
1219
1219
 
@@ -1254,7 +1254,7 @@ function create_if_block$b(ctx) {
1254
1254
  };
1255
1255
  }
1256
1256
 
1257
- function create_fragment$r(ctx) {
1257
+ function create_fragment$s(ctx) {
1258
1258
  let if_block_anchor;
1259
1259
  let if_block = /*canCompassShow*/ ctx[1] && create_if_block$b(ctx);
1260
1260
 
@@ -1283,7 +1283,7 @@ function rad2Deg(rad) {
1283
1283
  return rad / Math.PI * 180;
1284
1284
  }
1285
1285
 
1286
- function instance$r($$self, $$props, $$invalidate) {
1286
+ function instance$s($$self, $$props, $$invalidate) {
1287
1287
  var _a;
1288
1288
  let { floorplanData } = $$props;
1289
1289
  let { northDesc } = $$props;
@@ -1307,17 +1307,17 @@ function instance$r($$self, $$props, $$invalidate) {
1307
1307
  class Compass extends SvelteComponent {
1308
1308
  constructor(options) {
1309
1309
  super();
1310
- init(this, options, instance$r, create_fragment$r, safe_not_equal, { floorplanData: 3, northDesc: 0 }, add_css$m);
1310
+ init(this, options, instance$s, create_fragment$s, safe_not_equal, { floorplanData: 3, northDesc: 0 }, add_css$n);
1311
1311
  }
1312
1312
  }
1313
1313
 
1314
1314
  /* src/floorplan/Components/Normalmage.svelte generated by Svelte v3.49.0 */
1315
1315
 
1316
- function add_css$l(target) {
1316
+ function add_css$m(target) {
1317
1317
  append_styles(target, "svelte-1gfoniz", "img.svelte-1gfoniz{width:100%;height:100%}");
1318
1318
  }
1319
1319
 
1320
- function create_fragment$q(ctx) {
1320
+ function create_fragment$r(ctx) {
1321
1321
  let img;
1322
1322
  let img_src_value;
1323
1323
 
@@ -1344,7 +1344,7 @@ function create_fragment$q(ctx) {
1344
1344
  };
1345
1345
  }
1346
1346
 
1347
- function instance$q($$self, $$props, $$invalidate) {
1347
+ function instance$r($$self, $$props, $$invalidate) {
1348
1348
  let { url } = $$props;
1349
1349
 
1350
1350
  $$self.$$set = $$props => {
@@ -1357,17 +1357,17 @@ function instance$q($$self, $$props, $$invalidate) {
1357
1357
  class Normalmage extends SvelteComponent {
1358
1358
  constructor(options) {
1359
1359
  super();
1360
- init(this, options, instance$q, create_fragment$q, safe_not_equal, { url: 0 }, add_css$l);
1360
+ init(this, options, instance$r, create_fragment$r, safe_not_equal, { url: 0 }, add_css$m);
1361
1361
  }
1362
1362
  }
1363
1363
 
1364
1364
  /* src/floorplan/Components/SvgImage.svelte generated by Svelte v3.49.0 */
1365
1365
 
1366
- function add_css$k(target) {
1366
+ function add_css$l(target) {
1367
1367
  append_styles(target, "svelte-ub47ya", ".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}");
1368
1368
  }
1369
1369
 
1370
- function create_fragment$p(ctx) {
1370
+ function create_fragment$q(ctx) {
1371
1371
  let div;
1372
1372
  let html_tag;
1373
1373
  let t;
@@ -1400,7 +1400,7 @@ function create_fragment$p(ctx) {
1400
1400
  };
1401
1401
  }
1402
1402
 
1403
- function instance$p($$self, $$props, $$invalidate) {
1403
+ function instance$q($$self, $$props, $$invalidate) {
1404
1404
  let { content } = $$props;
1405
1405
 
1406
1406
  const svgStyle = `
@@ -1424,13 +1424,13 @@ function instance$p($$self, $$props, $$invalidate) {
1424
1424
  class SvgImage extends SvelteComponent {
1425
1425
  constructor(options) {
1426
1426
  super();
1427
- init(this, options, instance$p, create_fragment$p, safe_not_equal, { content: 0 }, add_css$k);
1427
+ init(this, options, instance$q, create_fragment$q, safe_not_equal, { content: 0 }, add_css$l);
1428
1428
  }
1429
1429
  }
1430
1430
 
1431
1431
  /* src/floorplan/Components/BaseImage.svelte generated by Svelte v3.49.0 */
1432
1432
 
1433
- function add_css$j(target) {
1433
+ function add_css$k(target) {
1434
1434
  append_styles(target, "svelte-ozpg4a", ".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}");
1435
1435
  }
1436
1436
 
@@ -1505,7 +1505,7 @@ function create_if_block$a(ctx) {
1505
1505
  };
1506
1506
  }
1507
1507
 
1508
- function create_fragment$o(ctx) {
1508
+ function create_fragment$p(ctx) {
1509
1509
  let div;
1510
1510
  let current_block_type_index;
1511
1511
  let if_block;
@@ -1593,7 +1593,7 @@ function create_fragment$o(ctx) {
1593
1593
  };
1594
1594
  }
1595
1595
 
1596
- function instance$o($$self, $$props, $$invalidate) {
1596
+ function instance$p($$self, $$props, $$invalidate) {
1597
1597
  let imageData;
1598
1598
  let svgContent;
1599
1599
  var _a, _b;
@@ -1625,13 +1625,13 @@ function instance$o($$self, $$props, $$invalidate) {
1625
1625
  class BaseImage extends SvelteComponent {
1626
1626
  constructor(options) {
1627
1627
  super();
1628
- init(this, options, instance$o, create_fragment$o, safe_not_equal, { floorIndex: 2, floorplanData: 3 }, add_css$j);
1628
+ init(this, options, instance$p, create_fragment$p, safe_not_equal, { floorIndex: 2, floorplanData: 3 }, add_css$k);
1629
1629
  }
1630
1630
  }
1631
1631
 
1632
1632
  /* src/floorplan/Components/RoomLabels/RoomLabel.svelte generated by Svelte v3.49.0 */
1633
1633
 
1634
- function add_css$i(target) {
1634
+ function add_css$j(target) {
1635
1635
  append_styles(target, "svelte-12pzct5", ".floorplan-plugin__room-label-item.svelte-12pzct5{position:absolute;display:flex;flex-flow:column;align-items:center;line-height:1;color:#fff;transform:translate(-50%, -50%);white-space:nowrap;will-change:opacity;transition:opacity 300ms}.floorplan-plugin__room-size.svelte-12pzct5{opacity:0.45}");
1636
1636
  }
1637
1637
 
@@ -1696,7 +1696,7 @@ function create_if_block$9(ctx) {
1696
1696
  };
1697
1697
  }
1698
1698
 
1699
- function create_fragment$n(ctx) {
1699
+ function create_fragment$o(ctx) {
1700
1700
  let div;
1701
1701
 
1702
1702
  function select_block_type(ctx, dirty) {
@@ -1770,7 +1770,7 @@ function isPointInPolygon(point, polygon) {
1770
1770
  return inside;
1771
1771
  }
1772
1772
 
1773
- function instance$n($$self, $$props, $$invalidate) {
1773
+ function instance$o($$self, $$props, $$invalidate) {
1774
1774
  let isLabelInRoom;
1775
1775
  let userConfigElement;
1776
1776
  let labelVisible;
@@ -1914,8 +1914,8 @@ class RoomLabel extends SvelteComponent {
1914
1914
  init(
1915
1915
  this,
1916
1916
  options,
1917
- instance$n,
1918
- create_fragment$n,
1917
+ instance$o,
1918
+ create_fragment$o,
1919
1919
  safe_not_equal,
1920
1920
  {
1921
1921
  pxmm: 9,
@@ -1924,14 +1924,14 @@ class RoomLabel extends SvelteComponent {
1924
1924
  getLabelElement: 1,
1925
1925
  adaptiveRoomLabelVisibleEnable: 11
1926
1926
  },
1927
- add_css$i
1927
+ add_css$j
1928
1928
  );
1929
1929
  }
1930
1930
  }
1931
1931
 
1932
1932
  /* src/floorplan/Components/RoomLabels/RoomLabels.svelte generated by Svelte v3.49.0 */
1933
1933
 
1934
- function add_css$h(target) {
1934
+ function add_css$i(target) {
1935
1935
  append_styles(target, "svelte-13xux0b", ".floorplan-plugin__room-labels.svelte-13xux0b{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20;pointer-events:none}");
1936
1936
  }
1937
1937
 
@@ -2084,7 +2084,7 @@ function create_each_block$b(key_1, ctx) {
2084
2084
  };
2085
2085
  }
2086
2086
 
2087
- function create_fragment$m(ctx) {
2087
+ function create_fragment$n(ctx) {
2088
2088
  let if_block_anchor;
2089
2089
  let current;
2090
2090
  let if_block = /*rooms*/ ctx[5] && create_if_block$8(ctx);
@@ -2139,7 +2139,7 @@ function create_fragment$m(ctx) {
2139
2139
  };
2140
2140
  }
2141
2141
 
2142
- function instance$m($$self, $$props, $$invalidate) {
2142
+ function instance$n($$self, $$props, $$invalidate) {
2143
2143
  let rooms;
2144
2144
  let { floorIndex } = $$props;
2145
2145
  let { floorplanData } = $$props;
@@ -2196,8 +2196,8 @@ class RoomLabels extends SvelteComponent {
2196
2196
  init(
2197
2197
  this,
2198
2198
  options,
2199
- instance$m,
2200
- create_fragment$m,
2199
+ instance$n,
2200
+ create_fragment$n,
2201
2201
  safe_not_equal,
2202
2202
  {
2203
2203
  floorIndex: 6,
@@ -2206,14 +2206,14 @@ class RoomLabels extends SvelteComponent {
2206
2206
  getLabelElement: 1,
2207
2207
  adaptiveRoomLabelVisibleEnable: 2
2208
2208
  },
2209
- add_css$h
2209
+ add_css$i
2210
2210
  );
2211
2211
  }
2212
2212
  }
2213
2213
 
2214
2214
  /* src/floorplan/Components/RuleLabels/RuleItem.svelte generated by Svelte v3.49.0 */
2215
2215
 
2216
- function add_css$g(target) {
2216
+ function add_css$h(target) {
2217
2217
  append_styles(target, "svelte-xt7p1v", ".floorplan-plugin__rule-labels.svelte-xt7p1v.svelte-xt7p1v{position:absolute;display:flex}.floorplan-plugin__rule-labels--top.svelte-xt7p1v.svelte-xt7p1v{left:0;top:-1.25rem}.floorplan-plugin__rule-labels--bottom.svelte-xt7p1v.svelte-xt7p1v{left:0;bottom:-1.25rem}.floorplan-plugin__rule-labels--left.svelte-xt7p1v.svelte-xt7p1v{top:0;left:-1.25rem}.floorplan-plugin__rule-labels--right.svelte-xt7p1v.svelte-xt7p1v{top:0;right:-1.25rem}.floorplan-plugin__rule-line.svelte-xt7p1v.svelte-xt7p1v{background:#fff;opacity:0.05;width:100%;height:100%}.floorplan-plugin__rule-scale-wrapper.svelte-xt7p1v.svelte-xt7p1v{position:absolute;width:0.3125rem;height:100%;left:50%;top:0;transform:translateX(-50%)}.floorplan-plugin__rule-labels.is-row.svelte-xt7p1v .floorplan-plugin__rule-scale-wrapper.svelte-xt7p1v{width:100%;height:0.3125rem;top:50%;left:0;transform:translateY(-50%)}.floorplan-plugin__rule-scale.svelte-xt7p1v.svelte-xt7p1v{position:absolute;background:#fff;opacity:0.05;width:100%;height:0.0625rem}.floorplan-plugin__rule-labels.is-row.svelte-xt7p1v .floorplan-plugin__rule-scale.svelte-xt7p1v{width:0.0625rem;height:100%}.floorplan-plugin__rule-text-wrapper.svelte-xt7p1v.svelte-xt7p1v{position:absolute}.floorplan-plugin__rule-labels--top.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:100%;height:0;top:0.625rem}.floorplan-plugin__rule-labels--bottom.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:100%;height:0;bottom:0.625rem}.floorplan-plugin__rule-labels--left.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:0;height:100%;left:0.625rem}.floorplan-plugin__rule-labels--right.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:0;height:100%;right:0.625rem}.floorplan-plugin__rule-text-item.svelte-xt7p1v.svelte-xt7p1v{width:0;height:0;position:absolute;transform:rotate(90deg)}.floorplan-plugin__rule-labels.is-row.svelte-xt7p1v .floorplan-plugin__rule-text-item.svelte-xt7p1v{transform:rotate(0)}.floorplan-plugin__rule-text.svelte-xt7p1v.svelte-xt7p1v{width:-webkit-max-content;width:-moz-max-content;width:max-content;transform:translate(-50%, -50%);font-size:0.625rem;color:#fff;opacity:0.2}");
2218
2218
  }
2219
2219
 
@@ -2289,7 +2289,7 @@ function create_each_block$a(key_1, ctx) {
2289
2289
  };
2290
2290
  }
2291
2291
 
2292
- function create_fragment$l(ctx) {
2292
+ function create_fragment$m(ctx) {
2293
2293
  let div3;
2294
2294
  let div0;
2295
2295
  let t0;
@@ -2412,7 +2412,7 @@ function create_fragment$l(ctx) {
2412
2412
  const padding$1 = 1000;
2413
2413
  const exteriorWallOffset$1 = 180;
2414
2414
 
2415
- function instance$l($$self, $$props, $$invalidate) {
2415
+ function instance$m($$self, $$props, $$invalidate) {
2416
2416
  let { type } = $$props;
2417
2417
  let { data } = $$props;
2418
2418
  let { bounding } = $$props;
@@ -2471,13 +2471,13 @@ function instance$l($$self, $$props, $$invalidate) {
2471
2471
  class RuleItem extends SvelteComponent {
2472
2472
  constructor(options) {
2473
2473
  super();
2474
- init(this, options, instance$l, create_fragment$l, safe_not_equal, { type: 0, data: 4, bounding: 5 }, add_css$g);
2474
+ init(this, options, instance$m, create_fragment$m, safe_not_equal, { type: 0, data: 4, bounding: 5 }, add_css$h);
2475
2475
  }
2476
2476
  }
2477
2477
 
2478
2478
  /* src/floorplan/Components/RuleLabels/RuleLabels.svelte generated by Svelte v3.49.0 */
2479
2479
 
2480
- function add_css$f(target) {
2480
+ function add_css$g(target) {
2481
2481
  append_styles(target, "svelte-1mzj9p3", ".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}");
2482
2482
  }
2483
2483
 
@@ -2554,7 +2554,7 @@ function create_each_block$9(key_1, ctx) {
2554
2554
  };
2555
2555
  }
2556
2556
 
2557
- function create_fragment$k(ctx) {
2557
+ function create_fragment$l(ctx) {
2558
2558
  let div;
2559
2559
  let each_blocks = [];
2560
2560
  let each_1_lookup = new Map();
@@ -2634,7 +2634,7 @@ function create_fragment$k(ctx) {
2634
2634
  const padding = 1000;
2635
2635
  const exteriorWallOffset = 180;
2636
2636
 
2637
- function instance$k($$self, $$props, $$invalidate) {
2637
+ function instance$l($$self, $$props, $$invalidate) {
2638
2638
  let bounding;
2639
2639
  let ruleLabelData;
2640
2640
  let ruleLabelDataKeys;
@@ -2714,7 +2714,7 @@ function instance$k($$self, $$props, $$invalidate) {
2714
2714
  class RuleLabels extends SvelteComponent {
2715
2715
  constructor(options) {
2716
2716
  super();
2717
- init(this, options, instance$k, create_fragment$k, safe_not_equal, { floorIndex: 4, floorplanData: 5 }, add_css$f);
2717
+ init(this, options, instance$l, create_fragment$l, safe_not_equal, { floorIndex: 4, floorplanData: 5 }, add_css$g);
2718
2718
  }
2719
2719
  }
2720
2720
 
@@ -2771,7 +2771,7 @@ function getFloorIndexFromModelPosition(position, five) {
2771
2771
 
2772
2772
  /* src/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte generated by Svelte v3.49.0 */
2773
2773
 
2774
- function create_fragment$j(ctx) {
2774
+ function create_fragment$k(ctx) {
2775
2775
  let path_1;
2776
2776
 
2777
2777
  return {
@@ -2796,7 +2796,7 @@ function create_fragment$j(ctx) {
2796
2796
  };
2797
2797
  }
2798
2798
 
2799
- function instance$j($$self, $$props, $$invalidate) {
2799
+ function instance$k($$self, $$props, $$invalidate) {
2800
2800
  let d;
2801
2801
  let { path } = $$props;
2802
2802
 
@@ -2816,13 +2816,13 @@ function instance$j($$self, $$props, $$invalidate) {
2816
2816
  class RoomMaterial_0 extends SvelteComponent {
2817
2817
  constructor(options) {
2818
2818
  super();
2819
- init(this, options, instance$j, create_fragment$j, safe_not_equal, { path: 1 });
2819
+ init(this, options, instance$k, create_fragment$k, safe_not_equal, { path: 1 });
2820
2820
  }
2821
2821
  }
2822
2822
 
2823
2823
  /* src/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte generated by Svelte v3.49.0 */
2824
2824
 
2825
- function create_fragment$i(ctx) {
2825
+ function create_fragment$j(ctx) {
2826
2826
  let defs;
2827
2827
  let pattern;
2828
2828
  let rect;
@@ -2883,7 +2883,7 @@ function create_fragment$i(ctx) {
2883
2883
 
2884
2884
  const halfWidth = 6;
2885
2885
 
2886
- function instance$i($$self, $$props, $$invalidate) {
2886
+ function instance$j($$self, $$props, $$invalidate) {
2887
2887
  let d;
2888
2888
  let { path } = $$props;
2889
2889
  const width = halfWidth * 2;
@@ -2905,13 +2905,13 @@ function instance$i($$self, $$props, $$invalidate) {
2905
2905
  class RoomMaterial_1 extends SvelteComponent {
2906
2906
  constructor(options) {
2907
2907
  super();
2908
- init(this, options, instance$i, create_fragment$i, safe_not_equal, { path: 3 });
2908
+ init(this, options, instance$j, create_fragment$j, safe_not_equal, { path: 3 });
2909
2909
  }
2910
2910
  }
2911
2911
 
2912
2912
  /* src/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte generated by Svelte v3.49.0 */
2913
2913
 
2914
- function create_fragment$h(ctx) {
2914
+ function create_fragment$i(ctx) {
2915
2915
  let defs;
2916
2916
  let pattern0;
2917
2917
  let rect0;
@@ -3012,7 +3012,7 @@ function create_fragment$h(ctx) {
3012
3012
  };
3013
3013
  }
3014
3014
 
3015
- function instance$h($$self, $$props, $$invalidate) {
3015
+ function instance$i($$self, $$props, $$invalidate) {
3016
3016
  let d;
3017
3017
  let { path } = $$props;
3018
3018
 
@@ -3032,13 +3032,13 @@ function instance$h($$self, $$props, $$invalidate) {
3032
3032
  class RoomMaterial_2 extends SvelteComponent {
3033
3033
  constructor(options) {
3034
3034
  super();
3035
- init(this, options, instance$h, create_fragment$h, safe_not_equal, { path: 1 });
3035
+ init(this, options, instance$i, create_fragment$i, safe_not_equal, { path: 1 });
3036
3036
  }
3037
3037
  }
3038
3038
 
3039
3039
  /* src/floorplan/Components/RoomMaterials/RoomMaterial.svelte generated by Svelte v3.49.0 */
3040
3040
 
3041
- function add_css$e(target) {
3041
+ function add_css$f(target) {
3042
3042
  append_styles(target, "svelte-1dykexu", ".floorplan-plugin__room-material.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%}svg.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}");
3043
3043
  }
3044
3044
 
@@ -3225,7 +3225,7 @@ function create_each_block$8(ctx) {
3225
3225
  };
3226
3226
  }
3227
3227
 
3228
- function create_fragment$g(ctx) {
3228
+ function create_fragment$h(ctx) {
3229
3229
  let div;
3230
3230
  let current;
3231
3231
  let each_value = /*rooms*/ ctx[0];
@@ -3311,7 +3311,7 @@ function create_fragment$g(ctx) {
3311
3311
  };
3312
3312
  }
3313
3313
 
3314
- function instance$g($$self, $$props, $$invalidate) {
3314
+ function instance$h($$self, $$props, $$invalidate) {
3315
3315
  let rooms;
3316
3316
  let { floorIndex } = $$props;
3317
3317
  let { floorplanData } = $$props;
@@ -3337,17 +3337,17 @@ function instance$g($$self, $$props, $$invalidate) {
3337
3337
  class RoomMaterial extends SvelteComponent {
3338
3338
  constructor(options) {
3339
3339
  super();
3340
- init(this, options, instance$g, create_fragment$g, safe_not_equal, { floorIndex: 3, floorplanData: 4 }, add_css$e);
3340
+ init(this, options, instance$h, create_fragment$h, safe_not_equal, { floorIndex: 3, floorplanData: 4 }, add_css$f);
3341
3341
  }
3342
3342
  }
3343
3343
 
3344
3344
  /* src/floorplan/Components/RoomHighlight/Room.svelte generated by Svelte v3.49.0 */
3345
3345
 
3346
- function add_css$d(target) {
3346
+ function add_css$e(target) {
3347
3347
  append_styles(target, "svelte-19uvvss", "path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}");
3348
3348
  }
3349
3349
 
3350
- function create_fragment$f(ctx) {
3350
+ function create_fragment$g(ctx) {
3351
3351
  let path;
3352
3352
  let mounted;
3353
3353
  let dispose;
@@ -3382,7 +3382,7 @@ function create_fragment$f(ctx) {
3382
3382
  };
3383
3383
  }
3384
3384
 
3385
- function instance$f($$self, $$props, $$invalidate) {
3385
+ function instance$g($$self, $$props, $$invalidate) {
3386
3386
  let { room } = $$props;
3387
3387
  let { floorplanData } = $$props;
3388
3388
  let { hoveredRoom } = $$props;
@@ -3418,22 +3418,22 @@ class Room extends SvelteComponent {
3418
3418
  init(
3419
3419
  this,
3420
3420
  options,
3421
- instance$f,
3422
- create_fragment$f,
3421
+ instance$g,
3422
+ create_fragment$g,
3423
3423
  safe_not_equal,
3424
3424
  {
3425
3425
  room: 3,
3426
3426
  floorplanData: 4,
3427
3427
  hoveredRoom: 5
3428
3428
  },
3429
- add_css$d
3429
+ add_css$e
3430
3430
  );
3431
3431
  }
3432
3432
  }
3433
3433
 
3434
3434
  /* src/floorplan/Components/RoomHighlight/RoomHighlight.svelte generated by Svelte v3.49.0 */
3435
3435
 
3436
- function add_css$c(target) {
3436
+ function add_css$d(target) {
3437
3437
  append_styles(target, "svelte-1kqo6e4", ".floorplan-plugin__room-highlight.svelte-1kqo6e4{position:absolute;width:100%;height:100%}svg.svelte-1kqo6e4{width:100%;height:100%;overflow:visible}");
3438
3438
  }
3439
3439
 
@@ -3509,7 +3509,7 @@ function create_each_block$7(key_1, ctx) {
3509
3509
  };
3510
3510
  }
3511
3511
 
3512
- function create_fragment$e(ctx) {
3512
+ function create_fragment$f(ctx) {
3513
3513
  let div;
3514
3514
  let svg;
3515
3515
  let each_blocks = [];
@@ -3583,7 +3583,7 @@ function create_fragment$e(ctx) {
3583
3583
  };
3584
3584
  }
3585
3585
 
3586
- function instance$e($$self, $$props, $$invalidate) {
3586
+ function instance$f($$self, $$props, $$invalidate) {
3587
3587
  let { floorIndex } = $$props;
3588
3588
  let { floorplanData } = $$props;
3589
3589
  let { hoveredRoom } = $$props;
@@ -3606,22 +3606,22 @@ class RoomHighlight extends SvelteComponent {
3606
3606
  init(
3607
3607
  this,
3608
3608
  options,
3609
- instance$e,
3610
- create_fragment$e,
3609
+ instance$f,
3610
+ create_fragment$f,
3611
3611
  safe_not_equal,
3612
3612
  {
3613
3613
  floorIndex: 0,
3614
3614
  floorplanData: 1,
3615
3615
  hoveredRoom: 2
3616
3616
  },
3617
- add_css$c
3617
+ add_css$d
3618
3618
  );
3619
3619
  }
3620
3620
  }
3621
3621
 
3622
3622
  /* src/floorplan/Components/CurrentFloor.svelte generated by Svelte v3.49.0 */
3623
3623
 
3624
- function add_css$b(target) {
3624
+ function add_css$c(target) {
3625
3625
  append_styles(target, "svelte-bl8zrz", ".floorplan-plugin__floor.svelte-bl8zrz{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;pointer-events:none}.floorplan-plugin__floor--is-current.svelte-bl8zrz{opacity:1;pointer-events:auto}");
3626
3626
  }
3627
3627
 
@@ -3798,7 +3798,7 @@ function create_if_block$6(ctx) {
3798
3798
  };
3799
3799
  }
3800
3800
 
3801
- function create_fragment$d(ctx) {
3801
+ function create_fragment$e(ctx) {
3802
3802
  let div;
3803
3803
  let roommaterial;
3804
3804
  let t0;
@@ -3998,7 +3998,7 @@ function create_fragment$d(ctx) {
3998
3998
  };
3999
3999
  }
4000
4000
 
4001
- function instance$d($$self, $$props, $$invalidate) {
4001
+ function instance$e($$self, $$props, $$invalidate) {
4002
4002
  let { isCurrent } = $$props;
4003
4003
  let { floorIndex } = $$props;
4004
4004
  let { hoverEnable } = $$props;
@@ -4040,8 +4040,8 @@ class CurrentFloor$1 extends SvelteComponent {
4040
4040
  init(
4041
4041
  this,
4042
4042
  options,
4043
- instance$d,
4044
- create_fragment$d,
4043
+ instance$e,
4044
+ create_fragment$e,
4045
4045
  safe_not_equal,
4046
4046
  {
4047
4047
  isCurrent: 0,
@@ -4053,14 +4053,14 @@ class CurrentFloor$1 extends SvelteComponent {
4053
4053
  getLabelElement: 6,
4054
4054
  adaptiveRoomLabelVisibleEnable: 7
4055
4055
  },
4056
- add_css$b
4056
+ add_css$c
4057
4057
  );
4058
4058
  }
4059
4059
  }
4060
4060
 
4061
4061
  /* src/floorplan/Components/Main.svelte generated by Svelte v3.49.0 */
4062
4062
 
4063
- function add_css$a(target) {
4063
+ function add_css$b(target) {
4064
4064
  append_styles(target, "svelte-86bqav", ".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}");
4065
4065
  }
4066
4066
 
@@ -4359,7 +4359,7 @@ function create_if_block_1$2(ctx) {
4359
4359
  };
4360
4360
  }
4361
4361
 
4362
- function create_fragment$c(ctx) {
4362
+ function create_fragment$d(ctx) {
4363
4363
  let if_block_anchor;
4364
4364
  let current;
4365
4365
  let if_block = /*visible*/ ctx[1] && create_if_block$5(ctx);
@@ -4414,7 +4414,7 @@ function create_fragment$c(ctx) {
4414
4414
  };
4415
4415
  }
4416
4416
 
4417
- function instance$c($$self, $$props, $$invalidate) {
4417
+ function instance$d($$self, $$props, $$invalidate) {
4418
4418
  let { duration = 0 } = $$props;
4419
4419
  let { visible } = $$props;
4420
4420
  let { northDesc } = $$props;
@@ -4472,8 +4472,8 @@ class Main$1 extends SvelteComponent {
4472
4472
  init(
4473
4473
  this,
4474
4474
  options,
4475
- instance$c,
4476
- create_fragment$c,
4475
+ instance$d,
4476
+ create_fragment$d,
4477
4477
  safe_not_equal,
4478
4478
  {
4479
4479
  duration: 0,
@@ -4491,7 +4491,7 @@ class Main$1 extends SvelteComponent {
4491
4491
  getLabelElement: 12,
4492
4492
  adaptiveRoomLabelVisibleEnable: 13
4493
4493
  },
4494
- add_css$a
4494
+ add_css$b
4495
4495
  );
4496
4496
  }
4497
4497
  }
@@ -5254,11 +5254,11 @@ function throttle(func, wait = 200) {
5254
5254
 
5255
5255
  /* src/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte generated by Svelte v3.49.0 */
5256
5256
 
5257
- function add_css$9(target) {
5257
+ function add_css$a(target) {
5258
5258
  append_styles(target, "svelte-1ty3s4p", ".plugin-radar__camera-wrapper.svelte-1ty3s4p{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-1ty3s4p{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-1ty3s4p{position:absolute;left:-0.78125rem;top:-0.78125rem;width:0.88542rem;height:0.88542rem;transform-origin:0.78125rem 0.78125rem;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}");
5259
5259
  }
5260
5260
 
5261
- function create_fragment$b(ctx) {
5261
+ function create_fragment$c(ctx) {
5262
5262
  let div2;
5263
5263
  let div1;
5264
5264
  let div0;
@@ -5308,7 +5308,7 @@ function getCameraRotateTransform(longitude) {
5308
5308
  return `rotate(${rotate}deg)`;
5309
5309
  }
5310
5310
 
5311
- function instance$b($$self, $$props, $$invalidate) {
5311
+ function instance$c($$self, $$props, $$invalidate) {
5312
5312
  let positionTransform;
5313
5313
  let rotateTransform;
5314
5314
  let { five } = $$props;
@@ -5388,8 +5388,8 @@ class Camera extends SvelteComponent {
5388
5388
  init(
5389
5389
  this,
5390
5390
  options,
5391
- instance$b,
5392
- create_fragment$b,
5391
+ instance$c,
5392
+ create_fragment$c,
5393
5393
  safe_not_equal,
5394
5394
  {
5395
5395
  five: 3,
@@ -5397,14 +5397,14 @@ class Camera extends SvelteComponent {
5397
5397
  floorplanData: 5,
5398
5398
  cameraImageUrl: 0
5399
5399
  },
5400
- add_css$9
5400
+ add_css$a
5401
5401
  );
5402
5402
  }
5403
5403
  }
5404
5404
 
5405
5405
  /* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte generated by Svelte v3.49.0 */
5406
5406
 
5407
- function add_css$8(target) {
5407
+ function add_css$9(target) {
5408
5408
  append_styles(target, "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%)}");
5409
5409
  }
5410
5410
 
@@ -5474,7 +5474,7 @@ function create_each_block$5(key_1, ctx) {
5474
5474
  };
5475
5475
  }
5476
5476
 
5477
- function create_fragment$a(ctx) {
5477
+ function create_fragment$b(ctx) {
5478
5478
  let div;
5479
5479
  let each_blocks = [];
5480
5480
  let each_1_lookup = new Map();
@@ -5522,7 +5522,7 @@ function create_fragment$a(ctx) {
5522
5522
  };
5523
5523
  }
5524
5524
 
5525
- function instance$a($$self, $$props, $$invalidate) {
5525
+ function instance$b($$self, $$props, $$invalidate) {
5526
5526
  let { extraObjects = [] } = $$props;
5527
5527
 
5528
5528
  $$self.$$set = $$props => {
@@ -5535,7 +5535,7 @@ function instance$a($$self, $$props, $$invalidate) {
5535
5535
  class ExtraObjects extends SvelteComponent {
5536
5536
  constructor(options) {
5537
5537
  super();
5538
- init(this, options, instance$a, create_fragment$a, safe_not_equal, { extraObjects: 0 }, add_css$8);
5538
+ init(this, options, instance$b, create_fragment$b, safe_not_equal, { extraObjects: 0 }, add_css$9);
5539
5539
  }
5540
5540
  }
5541
5541
 
@@ -5601,7 +5601,7 @@ function create_if_block$4(ctx) {
5601
5601
  };
5602
5602
  }
5603
5603
 
5604
- function create_fragment$9(ctx) {
5604
+ function create_fragment$a(ctx) {
5605
5605
  let baseimage;
5606
5606
  let t0;
5607
5607
  let extraobjects;
@@ -5712,7 +5712,7 @@ function create_fragment$9(ctx) {
5712
5712
  };
5713
5713
  }
5714
5714
 
5715
- function instance$9($$self, $$props, $$invalidate) {
5715
+ function instance$a($$self, $$props, $$invalidate) {
5716
5716
  let currentFloorExtraObjects;
5717
5717
  let { five } = $$props;
5718
5718
  let { pxmm } = $$props;
@@ -5755,7 +5755,7 @@ class CurrentFloor extends SvelteComponent {
5755
5755
  constructor(options) {
5756
5756
  super();
5757
5757
 
5758
- init(this, options, instance$9, create_fragment$9, safe_not_equal, {
5758
+ init(this, options, instance$a, create_fragment$a, safe_not_equal, {
5759
5759
  five: 0,
5760
5760
  pxmm: 1,
5761
5761
  floorIndex: 2,
@@ -5768,7 +5768,7 @@ class CurrentFloor extends SvelteComponent {
5768
5768
 
5769
5769
  /* src/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte generated by Svelte v3.49.0 */
5770
5770
 
5771
- function add_css$7(target) {
5771
+ function add_css$8(target) {
5772
5772
  append_styles(target, "svelte-1mvqyqq", ".plugin-floorplan-radar.svelte-1mvqyqq{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-1mvqyqq{position:relative}");
5773
5773
  }
5774
5774
 
@@ -5952,7 +5952,7 @@ function create_if_block_1$1(ctx) {
5952
5952
  };
5953
5953
  }
5954
5954
 
5955
- function create_fragment$8(ctx) {
5955
+ function create_fragment$9(ctx) {
5956
5956
  let if_block_anchor;
5957
5957
  let current;
5958
5958
  let if_block = /*visible*/ ctx[1] && create_if_block$3(ctx);
@@ -6007,7 +6007,7 @@ function create_fragment$8(ctx) {
6007
6007
  };
6008
6008
  }
6009
6009
 
6010
- function instance$8($$self, $$props, $$invalidate) {
6010
+ function instance$9($$self, $$props, $$invalidate) {
6011
6011
  let { five } = $$props;
6012
6012
  let { visible } = $$props;
6013
6013
  let { hoverEnable } = $$props;
@@ -6093,8 +6093,8 @@ class Main extends SvelteComponent {
6093
6093
  init(
6094
6094
  this,
6095
6095
  options,
6096
- instance$8,
6097
- create_fragment$8,
6096
+ instance$9,
6097
+ create_fragment$9,
6098
6098
  safe_not_equal,
6099
6099
  {
6100
6100
  five: 0,
@@ -6104,7 +6104,7 @@ class Main extends SvelteComponent {
6104
6104
  cameraImageUrl: 4,
6105
6105
  extraObjects: 5
6106
6106
  },
6107
- add_css$7
6107
+ add_css$8
6108
6108
  );
6109
6109
  }
6110
6110
  }
@@ -7962,7 +7962,7 @@ const PanoRulerStyle = `<style type="text/css">
7962
7962
  </style>
7963
7963
  `;
7964
7964
 
7965
- const getDistance = (p1, p2) => {
7965
+ const getDistance$1 = (p1, p2) => {
7966
7966
  return Math.sqrt(Math.pow(p1.z - p2.z, 2) + Math.pow(p1.x - p2.x, 2));
7967
7967
  };
7968
7968
  const getRoomHeightInfo = (roomInfo, five) => {
@@ -8069,7 +8069,7 @@ const PanoRulerPlugin = (five, params) => {
8069
8069
  y: position.y,
8070
8070
  z: position.z,
8071
8071
  };
8072
- const distance = getDistance({ x, z }, observerPoint);
8072
+ const distance = getDistance$1({ x, z }, observerPoint);
8073
8073
  if (medianFloorHeight) {
8074
8074
  // 取最近点时排除高度与房间平均高度差大于0.3米的点
8075
8075
  if (distance < minDistance && Math.abs(observerPoint.y - medianFloorHeight) < 0.3) {
@@ -8351,7 +8351,7 @@ const PanoRulerPlugin = (five, params) => {
8351
8351
 
8352
8352
  /* src/PanoRulerProPlugin/RulerItem.svelte generated by Svelte v3.49.0 */
8353
8353
 
8354
- function add_css$6(target) {
8354
+ function add_css$7(target) {
8355
8355
  append_styles(target, "svelte-qy4ud2", ".PanoRulerPlugin-rule-line.svelte-qy4ud2.svelte-qy4ud2{position:absolute;transform-origin:left 0.0625rem;width:0;height:0.125rem;pointer-events:none}.PanoRulerPlugin-rule-line.svelte-qy4ud2.svelte-qy4ud2::after{content:'';position:absolute;left:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;-webkit-animation:svelte-qy4ud2-viewport-rule-point 0.1s 1s;animation:svelte-qy4ud2-viewport-rule-point 0.1s 1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-qy4ud2.svelte-qy4ud2::before{content:'';position:absolute;right:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;-webkit-animation:svelte-qy4ud2-viewport-rule-point 0.1s 1.5s;animation:svelte-qy4ud2-viewport-rule-point 0.1s 1.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-qy4ud2 em.svelte-qy4ud2{display:block;height:0.0625rem;-webkit-animation:svelte-qy4ud2-viewport-rule-line 0.5s ease 1s;animation:svelte-qy4ud2-viewport-rule-line 0.5s ease 1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;box-shadow:0 0 0.25rem rgb(0 0 0 / 40%);position:relative}.rule-mixed-line.svelte-qy4ud2.svelte-qy4ud2{display:flex;height:0.0625rem;-webkit-animation:svelte-qy4ud2-viewport-rule-line 0.5s ease 1s;animation:svelte-qy4ud2-viewport-rule-line 0.5s ease 1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;align-items:center}.em-solid.svelte-qy4ud2.svelte-qy4ud2{height:100%;background:#ffffff}.em-dotted.svelte-qy4ud2.svelte-qy4ud2{height:0.125rem;background:var(--background-image);background-position:center;background-repeat:repeat}.PanoRulerPlugin-rule-label.svelte-qy4ud2.svelte-qy4ud2{position:absolute;width:0;height:0;top:0.0625rem;pointer-events:none}.PanoRulerPlugin-rule-label-name.svelte-qy4ud2.svelte-qy4ud2{position:absolute;padding:0.1875rem 0.375rem;background:rgba(195, 195, 195, 0.3);backdrop-filter:blur(0.25rem);-webkit-backdrop-filter:blur(0.25rem);border-radius:6.25rem;border:0.0625rem solid rgba(255, 255, 255, 0.6);white-space:nowrap;overflow:hidden;color:#ffffff;font-weight:500;font-size:0.75rem;line-height:1;-webkit-animation:svelte-qy4ud2-viewport-rule-label 0.25s ease 1s;animation:svelte-qy4ud2-viewport-rule-label 0.25s ease 1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;box-shadow:inset 0 0 0.625rem 0 rgba(255, 255, 255, 0.3)}@-webkit-keyframes svelte-qy4ud2-viewport-rule-line{0%{width:0%}100%{width:100%}}@keyframes svelte-qy4ud2-viewport-rule-line{0%{width:0%}100%{width:100%}}@-webkit-keyframes svelte-qy4ud2-viewport-rule-label{0%{opacity:0;transform:scaleX(0)}100%{opacity:1;transform:translate(-50%, -50%) scaleX(1)}}@keyframes svelte-qy4ud2-viewport-rule-label{0%{opacity:0;transform:scaleX(0)}100%{opacity:1;transform:translate(-50%, -50%) scaleX(1)}}@-webkit-keyframes svelte-qy4ud2-viewport-rule-point{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}@keyframes svelte-qy4ud2-viewport-rule-point{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}");
8356
8356
  }
8357
8357
 
@@ -8489,7 +8489,7 @@ function create_each_block$4(ctx) {
8489
8489
  };
8490
8490
  }
8491
8491
 
8492
- function create_fragment$7(ctx) {
8492
+ function create_fragment$8(ctx) {
8493
8493
  let div2;
8494
8494
  let t0;
8495
8495
  let div1;
@@ -8603,7 +8603,7 @@ function create_fragment$7(ctx) {
8603
8603
  };
8604
8604
  }
8605
8605
 
8606
- function instance$7($$self, $$props, $$invalidate) {
8606
+ function instance$8($$self, $$props, $$invalidate) {
8607
8607
  let vars;
8608
8608
  let { rulerItemProp } = $$props;
8609
8609
  let _visible = true;
@@ -8638,7 +8638,7 @@ function instance$7($$self, $$props, $$invalidate) {
8638
8638
  class RulerItem extends SvelteComponent {
8639
8639
  constructor(options) {
8640
8640
  super();
8641
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { rulerItemProp: 0 }, add_css$6);
8641
+ init(this, options, instance$8, create_fragment$8, safe_not_equal, { rulerItemProp: 0 }, add_css$7);
8642
8642
  }
8643
8643
  }
8644
8644
 
@@ -8687,7 +8687,7 @@ function create_each_block$3(ctx) {
8687
8687
  };
8688
8688
  }
8689
8689
 
8690
- function create_fragment$6(ctx) {
8690
+ function create_fragment$7(ctx) {
8691
8691
  let div;
8692
8692
  let current;
8693
8693
  let each_value = /*rulerItemProp*/ ctx[0];
@@ -8771,7 +8771,7 @@ function create_fragment$6(ctx) {
8771
8771
  };
8772
8772
  }
8773
8773
 
8774
- function instance$6($$self, $$props, $$invalidate) {
8774
+ function instance$7($$self, $$props, $$invalidate) {
8775
8775
  var _a, _b, _c, _d;
8776
8776
  let { five } = $$props;
8777
8777
  let { rulerDatas } = $$props;
@@ -8989,7 +8989,7 @@ function instance$6($$self, $$props, $$invalidate) {
8989
8989
  class RulerItems extends SvelteComponent {
8990
8990
  constructor(options) {
8991
8991
  super();
8992
- init(this, options, instance$6, create_fragment$6, safe_not_equal, { five: 1, rulerDatas: 2, options: 3 });
8992
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, { five: 1, rulerDatas: 2, options: 3 });
8993
8993
  }
8994
8994
  }
8995
8995
 
@@ -9228,7 +9228,7 @@ function tweenProgress(duration, easing = TWEEN__default.Easing.Linear.None) {
9228
9228
  return tween;
9229
9229
  }
9230
9230
 
9231
- const defaultBaseOptions = { userAction: true };
9231
+ const defaultBaseOptions$1 = { userAction: true };
9232
9232
  class PanoCompassController extends Controller$4 {
9233
9233
  constructor(five, config) {
9234
9234
  super(five);
@@ -9515,7 +9515,7 @@ class PanoCompassController extends Controller$4 {
9515
9515
  * 启用插件,响应用户操作并展示UI
9516
9516
  * @param options
9517
9517
  */
9518
- enable(options = defaultBaseOptions) {
9518
+ enable(options = defaultBaseOptions$1) {
9519
9519
  this.setState({
9520
9520
  enabled: true,
9521
9521
  }, options);
@@ -9524,7 +9524,7 @@ class PanoCompassController extends Controller$4 {
9524
9524
  * 禁用插件,禁止响应用户操作并隐藏UI
9525
9525
  * @param options
9526
9526
  */
9527
- disable(options = defaultBaseOptions) {
9527
+ disable(options = defaultBaseOptions$1) {
9528
9528
  this.setState({
9529
9529
  enabled: false,
9530
9530
  }, options);
@@ -9535,7 +9535,7 @@ class PanoCompassController extends Controller$4 {
9535
9535
  * @returns
9536
9536
  * @todo 需要考虑动画
9537
9537
  */
9538
- show(options = defaultBaseOptions) {
9538
+ show(options = defaultBaseOptions$1) {
9539
9539
  if (!this.state.enabled)
9540
9540
  return;
9541
9541
  this.setState({
@@ -9549,7 +9549,7 @@ class PanoCompassController extends Controller$4 {
9549
9549
  * @returns
9550
9550
  * @todo 需要考虑动画
9551
9551
  */
9552
- hide(options = defaultBaseOptions) {
9552
+ hide(options = defaultBaseOptions$1) {
9553
9553
  if (!this.state.enabled)
9554
9554
  return;
9555
9555
  this.setState({
@@ -13722,7 +13722,7 @@ const currentTarget = writable(null);
13722
13722
 
13723
13723
  /* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.49.0 */
13724
13724
 
13725
- function add_css$5(target) {
13725
+ function add_css$6(target) {
13726
13726
  append_styles(target, "svelte-1kuu68s", ".PanoSpatialTagPlugin__tag-origin.svelte-1kuu68s{position:absolute;width:0.5rem;height:0.5rem;border-radius:50%;background:#fff;box-shadow:0 0 .6rem #fff;transform:translate(-50%, -50%) scale(1);transform-origin:center center;-webkit-animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin 1.2s forwards;animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-1kuu68s:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-1kuu68s{transform:translate(-50%, -50%) scale(0.6);-webkit-animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s;animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@-webkit-keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@-webkit-keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}@keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}");
13727
13727
  }
13728
13728
 
@@ -13789,7 +13789,7 @@ function create_each_block$2(ctx) {
13789
13789
  };
13790
13790
  }
13791
13791
 
13792
- function create_fragment$5(ctx) {
13792
+ function create_fragment$6(ctx) {
13793
13793
  let each_1_anchor;
13794
13794
  let each_value = /*origins*/ ctx[0];
13795
13795
  let each_blocks = [];
@@ -13846,7 +13846,7 @@ function create_fragment$5(ctx) {
13846
13846
  };
13847
13847
  }
13848
13848
 
13849
- function instance$5($$self, $$props, $$invalidate) {
13849
+ function instance$6($$self, $$props, $$invalidate) {
13850
13850
  let { origins } = $$props;
13851
13851
 
13852
13852
  const handleClick = id => {
@@ -13865,17 +13865,17 @@ function instance$5($$self, $$props, $$invalidate) {
13865
13865
  class Origins extends SvelteComponent {
13866
13866
  constructor(options) {
13867
13867
  super();
13868
- init(this, options, instance$5, create_fragment$5, safe_not_equal, { origins: 0 }, add_css$5);
13868
+ init(this, options, instance$6, create_fragment$6, safe_not_equal, { origins: 0 }, add_css$6);
13869
13869
  }
13870
13870
  }
13871
13871
 
13872
13872
  /* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.49.0 */
13873
13873
 
13874
- function add_css$4(target) {
13874
+ function add_css$5(target) {
13875
13875
  append_styles(target, "svelte-eb8bdm", ".PanoSpatialTagPlugin__tag-x.svelte-eb8bdm.svelte-eb8bdm{position:absolute;top:0;left:0;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-eb8bdm.svelte-eb8bdm{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-eb8bdm.svelte-eb8bdm{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-eb8bdm.svelte-eb8bdm{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-eb8bdm.svelte-eb8bdm{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-eb8bdm.svelte-eb8bdm{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line1.svelte-eb8bdm{-webkit-animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s;animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line2.svelte-eb8bdm{-webkit-animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s;animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm.svelte-eb8bdm{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line.svelte-eb8bdm{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-eb8bdm.svelte-eb8bdm{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm .PanoSpatialTagPlugin__tag-animate.svelte-eb8bdm{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-eb8bdm.svelte-eb8bdm{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm .PanoSpatialTagPlugin__tag-content.svelte-eb8bdm{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-flagpole.svelte-eb8bdm{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm .PanoSpatialTagPlugin__tag-shadow.svelte-eb8bdm{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-shadow.svelte-eb8bdm{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-content.svelte-eb8bdm{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-flagpole.svelte-eb8bdm{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-shadow.svelte-eb8bdm{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-content.svelte-eb8bdm{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-content .svelte-eb8bdm{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line1.svelte-eb8bdm{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);-webkit-animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s;animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line2.svelte-eb8bdm{opacity:0.5;transform:translate(-50%, 0) scaleY(0);-webkit-animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s;animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@-webkit-keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@-webkit-keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@-webkit-keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@-webkit-keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
13876
13876
  }
13877
13877
 
13878
- function create_fragment$4(ctx) {
13878
+ function create_fragment$5(ctx) {
13879
13879
  let div4;
13880
13880
  let div0;
13881
13881
  let t0;
@@ -13990,7 +13990,7 @@ function create_fragment$4(ctx) {
13990
13990
  };
13991
13991
  }
13992
13992
 
13993
- function instance$4($$self, $$props, $$invalidate) {
13993
+ function instance$5($$self, $$props, $$invalidate) {
13994
13994
  let { id } = $$props;
13995
13995
  let { upsideDown } = $$props;
13996
13996
  let { content } = $$props;
@@ -14127,8 +14127,8 @@ class Tag extends SvelteComponent {
14127
14127
  init(
14128
14128
  this,
14129
14129
  options,
14130
- instance$4,
14131
- create_fragment$4,
14130
+ instance$5,
14131
+ create_fragment$5,
14132
14132
  safe_not_equal,
14133
14133
  {
14134
14134
  id: 0,
@@ -14143,7 +14143,7 @@ class Tag extends SvelteComponent {
14143
14143
  events: 14,
14144
14144
  hooks: 15
14145
14145
  },
14146
- add_css$4
14146
+ add_css$5
14147
14147
  );
14148
14148
  }
14149
14149
  }
@@ -14797,11 +14797,11 @@ var DISPLAY_STRATEGY_TYPE;
14797
14797
 
14798
14798
  /* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.49.0 */
14799
14799
 
14800
- function add_css$3(target) {
14800
+ function add_css$4(target) {
14801
14801
  append_styles(target, "svelte-n1c1kg", ".item-label-item.svelte-n1c1kg{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-n1c1kg{opacity:1;-webkit-animation:svelte-n1c1kg-fadeIn .3s ease-in;animation:svelte-n1c1kg-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-n1c1kg::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(0.83333rem);z-index:-1}.item-label-item__text-wrap.svelte-n1c1kg{padding:0.3125rem 0.3125rem 0;position:absolute;height:1.04167rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.52083rem;font-size:0.57292rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-n1c1kg{padding-bottom:0.20833rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:1px solid;-o-border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5;border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5}.item-label-item__bar.svelte-n1c1kg{position:absolute;bottom:0;width:1px;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@-webkit-keyframes svelte-n1c1kg-fadeIn{from{opacity:0\n }to{opacity:1\n }}@keyframes svelte-n1c1kg-fadeIn{from{opacity:0\n }to{opacity:1\n }}");
14802
14802
  }
14803
14803
 
14804
- function create_fragment$3(ctx) {
14804
+ function create_fragment$4(ctx) {
14805
14805
  let div2;
14806
14806
  let div0;
14807
14807
  let span;
@@ -14882,7 +14882,7 @@ function create_fragment$3(ctx) {
14882
14882
  };
14883
14883
  }
14884
14884
 
14885
- function instance$3($$self, $$props, $$invalidate) {
14885
+ function instance$4($$self, $$props, $$invalidate) {
14886
14886
  let { itemLabel } = $$props;
14887
14887
  let { hooks } = $$props;
14888
14888
 
@@ -14902,7 +14902,7 @@ function instance$3($$self, $$props, $$invalidate) {
14902
14902
  class ItemLabelItem$1 extends SvelteComponent {
14903
14903
  constructor(options) {
14904
14904
  super();
14905
- init(this, options, instance$3, create_fragment$3, safe_not_equal, { itemLabel: 0, hooks: 2 }, add_css$3);
14905
+ init(this, options, instance$4, create_fragment$4, safe_not_equal, { itemLabel: 0, hooks: 2 }, add_css$4);
14906
14906
  }
14907
14907
  }
14908
14908
 
@@ -14923,7 +14923,7 @@ function debounce(func, wait = 200) {
14923
14923
 
14924
14924
  /* src/ModelItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.49.0 */
14925
14925
 
14926
- function add_css$2(target) {
14926
+ function add_css$3(target) {
14927
14927
  append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
14928
14928
  }
14929
14929
 
@@ -14982,7 +14982,7 @@ function create_each_block$1(key_1, ctx) {
14982
14982
  };
14983
14983
  }
14984
14984
 
14985
- function create_fragment$2(ctx) {
14985
+ function create_fragment$3(ctx) {
14986
14986
  let div;
14987
14987
  let each_blocks = [];
14988
14988
  let each_1_lookup = new Map();
@@ -15062,7 +15062,7 @@ function create_fragment$2(ctx) {
15062
15062
  let cssHeight = 26;
15063
15063
  let basicWidth$1 = 11;
15064
15064
 
15065
- function instance$2($$self, $$props, $$invalidate) {
15065
+ function instance$3($$self, $$props, $$invalidate) {
15066
15066
  const { Raycaster, Vector3 } = THREE;
15067
15067
  let { five } = $$props;
15068
15068
  let { modelOcclusionEnable } = $$props;
@@ -15264,8 +15264,8 @@ class ItemLabelComponent$1 extends SvelteComponent {
15264
15264
  init(
15265
15265
  this,
15266
15266
  options,
15267
- instance$2,
15268
- create_fragment$2,
15267
+ instance$3,
15268
+ create_fragment$3,
15269
15269
  safe_not_equal,
15270
15270
  {
15271
15271
  five: 5,
@@ -15274,7 +15274,7 @@ class ItemLabelComponent$1 extends SvelteComponent {
15274
15274
  hooks: 0,
15275
15275
  displayStrategyType: 8
15276
15276
  },
15277
- add_css$2
15277
+ add_css$3
15278
15278
  );
15279
15279
  }
15280
15280
  }
@@ -15688,11 +15688,11 @@ var ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE;
15688
15688
 
15689
15689
  /* src/ItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.49.0 */
15690
15690
 
15691
- function add_css$1(target) {
15692
- append_styles(target, "svelte-fxbyy", ".item-label-item.svelte-fxbyy.svelte-fxbyy{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-animation:svelte-fxbyy-fadeIn 0.3s ease-in;animation:svelte-fxbyy-fadeIn 0.3s ease-in}.item-label-item.fold.svelte-fxbyy>.item-label-item__text-wrap.svelte-fxbyy{visibility:hidden}.item-label-item.fold.svelte-fxbyy>.item-label-item__bar.anchor.svelte-fxbyy{visibility:hidden}.item-label-item.fold.svelte-fxbyy>.item-label-item__bar.anchor.svelte-fxbyy:after{visibility:visible}.item-label-item__text-wrap.svelte-fxbyy.svelte-fxbyy{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:0.625rem 1.04167rem 0.625rem 0.625rem;position:absolute;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:24.63542rem;min-height:4.79167rem;background-image:linear-gradient(\n 269deg,\n rgba(0, 0, 0, 0.5) 0%,\n rgba(0, 0, 0, 0.6) 49%,\n rgba(31, 38, 46, 0.7) 100%\n );border:1.5px solid rgba(255, 255, 255, 0.65);border-radius:0.15625rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.icon-wrap.svelte-fxbyy.svelte-fxbyy{width:3.54167rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-fxbyy.svelte-fxbyy{width:3.54167rem;height:3.54167rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-fxbyy.svelte-fxbyy{margin-left:0.625rem;padding-left:0.625rem;min-height:3.54167rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, 0.2) 1px;border-top:solid rgba(255, 255, 255, 0.2) 0;border-right:solid rgba(255, 255, 255, 0.2) 0;border-bottom:solid rgba(255, 255, 255, 0.2) 0;pointer-events:auto}.item-model.svelte-fxbyy.svelte-fxbyy{white-space:nowrap;font-size:1.14583rem;font-weight:bold;line-height:1.5625rem}.item-name.svelte-fxbyy.svelte-fxbyy{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.04167rem;line-height:1.45833rem}.item-label-item__bar.svelte-fxbyy.svelte-fxbyy{position:absolute;bottom:0;width:0.15625rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 2px 0.41667rem 0 rgba(0, 0, 0, 0.2);pointer-events:none}.item-label-item__bar.anchor.svelte-fxbyy.svelte-fxbyy:after{content:'';position:absolute;bottom:0;width:1.25rem;height:1.25rem;background-image:url('//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png ');background-position:center;background-size:contain;transform:translate(-0.54688rem, 50%)}@-webkit-keyframes svelte-fxbyy-fadeIn{from{opacity:0}to{opacity:1}}@keyframes svelte-fxbyy-fadeIn{from{opacity:0}to{opacity:1}}");
15691
+ function add_css$2(target) {
15692
+ append_styles(target, "svelte-6b32dy", ".item-label-item.svelte-6b32dy.svelte-6b32dy{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-animation:svelte-6b32dy-fadeIn .3s ease-in;animation:svelte-6b32dy-fadeIn .3s ease-in}.item-label-item.fold.svelte-6b32dy>.item-label-item__text-wrap.svelte-6b32dy{visibility:hidden}.item-label-item.fold.svelte-6b32dy>.item-label-item__bar.anchor.svelte-6b32dy{visibility:hidden}.item-label-item.fold.svelte-6b32dy>.item-label-item__bar.anchor.svelte-6b32dy:after{visibility:visible}.item-label-item__text-wrap.svelte-6b32dy.svelte-6b32dy{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:0.625rem 1.04167rem 0.625rem 0.625rem;position:absolute;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:24.63542rem;min-height:4.79167rem;background-image:linear-gradient(269deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 49%, rgba(31, 38, 46, 0.70) 100%);border:1.5px solid rgba(255, 255, 255, .65);border-radius:0.15625rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.item-label-item__custom.svelte-6b32dy.svelte-6b32dy{padding:0.625rem;max-width:unset;min-height:unset}.icon-wrap.svelte-6b32dy.svelte-6b32dy{width:3.54167rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-6b32dy.svelte-6b32dy{width:3.54167rem;height:3.54167rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-6b32dy.svelte-6b32dy{margin-left:0.625rem;padding-left:0.625rem;min-height:3.54167rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 1px;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-6b32dy.svelte-6b32dy{white-space:nowrap;font-size:1.14583rem;font-weight:bold;line-height:1.5625rem}.item-name.svelte-6b32dy.svelte-6b32dy{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.04167rem;line-height:1.45833rem}.item-label-item__bar.svelte-6b32dy.svelte-6b32dy{position:absolute;bottom:0;width:0.15625rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 2px 0.41667rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-6b32dy.svelte-6b32dy:after{content:'';position:absolute;bottom:0;width:1.25rem;height:1.25rem;background-image:url(\"//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png \");background-position:center;background-size:contain;transform:translate(-0.54688rem, 50%)}@-webkit-keyframes svelte-6b32dy-fadeIn{from{opacity:0\n }to{opacity:1\n }}@keyframes svelte-6b32dy-fadeIn{from{opacity:0\n }to{opacity:1\n }}");
15693
15693
  }
15694
15694
 
15695
- // (25:4) {:else}
15695
+ // (34:8) {:else}
15696
15696
  function create_else_block(ctx) {
15697
15697
  let t0;
15698
15698
  let div;
@@ -15715,9 +15715,9 @@ function create_else_block(ctx) {
15715
15715
  t2 = space();
15716
15716
  span1 = element("span");
15717
15717
  t3 = text(t3_value);
15718
- attr(span0, "class", "item-model svelte-fxbyy");
15719
- attr(span1, "class", "item-name svelte-fxbyy");
15720
- attr(div, "class", "item-label-text svelte-fxbyy");
15718
+ attr(span0, "class", "item-model svelte-6b32dy");
15719
+ attr(span1, "class", "item-name svelte-6b32dy");
15720
+ attr(div, "class", "item-label-text svelte-6b32dy");
15721
15721
  },
15722
15722
  m(target, anchor) {
15723
15723
  if (if_block) if_block.m(target, anchor);
@@ -15754,33 +15754,27 @@ function create_else_block(ctx) {
15754
15754
  };
15755
15755
  }
15756
15756
 
15757
- // (23:4) {#if itemLabel.customElement}
15757
+ // (32:8) {#if Boolean(typeof itemLabel.render === 'function')}
15758
15758
  function create_if_block$1(ctx) {
15759
- let html_tag;
15760
- let raw_value = /*itemLabel*/ ctx[0].customElement + "";
15761
- let html_anchor;
15759
+ let div;
15762
15760
 
15763
15761
  return {
15764
15762
  c() {
15765
- html_tag = new HtmlTag(false);
15766
- html_anchor = empty();
15767
- html_tag.a = html_anchor;
15763
+ div = element("div");
15768
15764
  },
15769
15765
  m(target, anchor) {
15770
- html_tag.m(raw_value, target, anchor);
15771
- insert(target, html_anchor, anchor);
15772
- },
15773
- p(ctx, dirty) {
15774
- if (dirty & /*itemLabel*/ 1 && raw_value !== (raw_value = /*itemLabel*/ ctx[0].customElement + "")) html_tag.p(raw_value);
15766
+ insert(target, div, anchor);
15767
+ /*div_binding*/ ctx[6](div);
15775
15768
  },
15769
+ p: noop$1,
15776
15770
  d(detaching) {
15777
- if (detaching) detach(html_anchor);
15778
- if (detaching) html_tag.d();
15771
+ if (detaching) detach(div);
15772
+ /*div_binding*/ ctx[6](null);
15779
15773
  }
15780
15774
  };
15781
15775
  }
15782
15776
 
15783
- // (26:6) {#if itemLabel.icon}
15777
+ // (35:12) {#if itemLabel.icon}
15784
15778
  function create_if_block_1(ctx) {
15785
15779
  let div1;
15786
15780
  let div0;
@@ -15792,16 +15786,16 @@ function create_if_block_1(ctx) {
15792
15786
  c() {
15793
15787
  div1 = element("div");
15794
15788
  div0 = element("div");
15795
- attr(div0, "class", "icon svelte-fxbyy");
15789
+ attr(div0, "class", "icon svelte-6b32dy");
15796
15790
  attr(div0, "style", div0_style_value = `background-image: url(${/*itemLabel*/ ctx[0].icon})`);
15797
- attr(div1, "class", "icon-wrap svelte-fxbyy");
15791
+ attr(div1, "class", "icon-wrap svelte-6b32dy");
15798
15792
  },
15799
15793
  m(target, anchor) {
15800
15794
  insert(target, div1, anchor);
15801
15795
  append(div1, div0);
15802
15796
 
15803
15797
  if (!mounted) {
15804
- dispose = listen(div1, "click", /*click_handler*/ ctx[5]);
15798
+ dispose = listen(div1, "click", /*click_handler*/ ctx[7]);
15805
15799
  mounted = true;
15806
15800
  }
15807
15801
  },
@@ -15818,9 +15812,11 @@ function create_if_block_1(ctx) {
15818
15812
  };
15819
15813
  }
15820
15814
 
15821
- function create_fragment$1(ctx) {
15815
+ function create_fragment$2(ctx) {
15822
15816
  let div2;
15823
15817
  let div0;
15818
+ let show_if;
15819
+ let div0_class_value;
15824
15820
  let t;
15825
15821
  let div1;
15826
15822
  let div1_class_value;
@@ -15829,11 +15825,13 @@ function create_fragment$1(ctx) {
15829
15825
  let dispose;
15830
15826
 
15831
15827
  function select_block_type(ctx, dirty) {
15832
- if (/*itemLabel*/ ctx[0].customElement) return create_if_block$1;
15828
+ if (dirty & /*itemLabel*/ 1) show_if = null;
15829
+ if (show_if == null) show_if = !!Boolean(typeof /*itemLabel*/ ctx[0].render === 'function');
15830
+ if (show_if) return create_if_block$1;
15833
15831
  return create_else_block;
15834
15832
  }
15835
15833
 
15836
- let current_block_type = select_block_type(ctx);
15834
+ let current_block_type = select_block_type(ctx, -1);
15837
15835
  let if_block = current_block_type(ctx);
15838
15836
 
15839
15837
  return {
@@ -15843,11 +15841,15 @@ function create_fragment$1(ctx) {
15843
15841
  if_block.c();
15844
15842
  t = space();
15845
15843
  div1 = element("div");
15846
- attr(div0, "class", "" + (null_to_empty(classNames('item-label-item__text-wrap')) + " svelte-fxbyy"));
15844
+
15845
+ attr(div0, "class", div0_class_value = "" + (null_to_empty(classNames("item-label-item__text-wrap", {
15846
+ 'item-label-item__custom': Boolean(typeof /*itemLabel*/ ctx[0].render === 'function')
15847
+ })) + " svelte-6b32dy"));
15848
+
15847
15849
  set_style(div0, "bottom", `${/*itemLabel*/ ctx[0].strokeLength}px`);
15848
- attr(div1, "class", div1_class_value = "" + (null_to_empty(classNames('item-label-item__bar', { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-fxbyy"));
15850
+ attr(div1, "class", div1_class_value = "" + (null_to_empty(classNames("item-label-item__bar", { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-6b32dy"));
15849
15851
  set_style(div1, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
15850
- attr(div2, "class", div2_class_value = "" + (null_to_empty(classNames('item-label-item', { fold: /*itemLabel*/ ctx[0].isFold })) + " svelte-fxbyy"));
15852
+ attr(div2, "class", div2_class_value = "" + (null_to_empty(classNames("item-label-item", { fold: /*itemLabel*/ ctx[0].isFold })) + " svelte-6b32dy"));
15851
15853
  set_style(div2, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
15852
15854
  set_style(div2, "transform", /*itemLabel*/ ctx[0].transform, false);
15853
15855
  },
@@ -15859,12 +15861,12 @@ function create_fragment$1(ctx) {
15859
15861
  append(div2, div1);
15860
15862
 
15861
15863
  if (!mounted) {
15862
- dispose = listen(div0, "click", /*onClick*/ ctx[3]);
15864
+ dispose = listen(div0, "click", /*onClick*/ ctx[4]);
15863
15865
  mounted = true;
15864
15866
  }
15865
15867
  },
15866
15868
  p(ctx, [dirty]) {
15867
- if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
15869
+ if (current_block_type === (current_block_type = select_block_type(ctx, dirty)) && if_block) {
15868
15870
  if_block.p(ctx, dirty);
15869
15871
  } else {
15870
15872
  if_block.d(1);
@@ -15876,11 +15878,17 @@ function create_fragment$1(ctx) {
15876
15878
  }
15877
15879
  }
15878
15880
 
15881
+ if (dirty & /*itemLabel*/ 1 && div0_class_value !== (div0_class_value = "" + (null_to_empty(classNames("item-label-item__text-wrap", {
15882
+ 'item-label-item__custom': Boolean(typeof /*itemLabel*/ ctx[0].render === 'function')
15883
+ })) + " svelte-6b32dy"))) {
15884
+ attr(div0, "class", div0_class_value);
15885
+ }
15886
+
15879
15887
  if (dirty & /*itemLabel*/ 1) {
15880
15888
  set_style(div0, "bottom", `${/*itemLabel*/ ctx[0].strokeLength}px`);
15881
15889
  }
15882
15890
 
15883
- if (dirty & /*anchorEnabled*/ 2 && div1_class_value !== (div1_class_value = "" + (null_to_empty(classNames('item-label-item__bar', { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-fxbyy"))) {
15891
+ if (dirty & /*anchorEnabled*/ 2 && div1_class_value !== (div1_class_value = "" + (null_to_empty(classNames("item-label-item__bar", { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-6b32dy"))) {
15884
15892
  attr(div1, "class", div1_class_value);
15885
15893
  }
15886
15894
 
@@ -15888,7 +15896,7 @@ function create_fragment$1(ctx) {
15888
15896
  set_style(div1, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
15889
15897
  }
15890
15898
 
15891
- if (dirty & /*itemLabel*/ 1 && div2_class_value !== (div2_class_value = "" + (null_to_empty(classNames('item-label-item', { fold: /*itemLabel*/ ctx[0].isFold })) + " svelte-fxbyy"))) {
15899
+ if (dirty & /*itemLabel*/ 1 && div2_class_value !== (div2_class_value = "" + (null_to_empty(classNames("item-label-item", { fold: /*itemLabel*/ ctx[0].isFold })) + " svelte-6b32dy"))) {
15892
15900
  attr(div2, "class", div2_class_value);
15893
15901
  }
15894
15902
 
@@ -15911,7 +15919,7 @@ function create_fragment$1(ctx) {
15911
15919
  };
15912
15920
  }
15913
15921
 
15914
- function instance$1($$self, $$props, $$invalidate) {
15922
+ function instance$2($$self, $$props, $$invalidate) {
15915
15923
  let { itemLabel } = $$props;
15916
15924
  let { hooks } = $$props;
15917
15925
  let { anchorEnabled } = $$props;
@@ -15922,16 +15930,50 @@ function instance$1($$self, $$props, $$invalidate) {
15922
15930
  hooks.emit('onLabelClick', itemLabel);
15923
15931
  }
15924
15932
 
15933
+ let customElement;
15934
+
15935
+ function div_binding($$value) {
15936
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
15937
+ customElement = $$value;
15938
+ $$invalidate(3, customElement);
15939
+ });
15940
+ }
15941
+
15925
15942
  const click_handler = e => onIconClick(itemLabel);
15926
15943
 
15927
15944
  $$self.$$set = $$props => {
15928
15945
  if ('itemLabel' in $$props) $$invalidate(0, itemLabel = $$props.itemLabel);
15929
- if ('hooks' in $$props) $$invalidate(4, hooks = $$props.hooks);
15946
+ if ('hooks' in $$props) $$invalidate(5, hooks = $$props.hooks);
15930
15947
  if ('anchorEnabled' in $$props) $$invalidate(1, anchorEnabled = $$props.anchorEnabled);
15931
15948
  if ('onIconClick' in $$props) $$invalidate(2, onIconClick = $$props.onIconClick);
15932
15949
  };
15933
15950
 
15934
- return [itemLabel, anchorEnabled, onIconClick, onClick, hooks, click_handler];
15951
+ $$self.$$.update = () => {
15952
+ if ($$self.$$.dirty & /*itemLabel, customElement*/ 9) {
15953
+ {
15954
+ if (typeof itemLabel.render === 'function' && customElement) {
15955
+ if (customElement.children.length === 0) {
15956
+ const child = itemLabel.render(itemLabel);
15957
+
15958
+ if (child) {
15959
+ customElement.appendChild(child);
15960
+ }
15961
+ }
15962
+ }
15963
+ }
15964
+ }
15965
+ };
15966
+
15967
+ return [
15968
+ itemLabel,
15969
+ anchorEnabled,
15970
+ onIconClick,
15971
+ customElement,
15972
+ onClick,
15973
+ hooks,
15974
+ div_binding,
15975
+ click_handler
15976
+ ];
15935
15977
  }
15936
15978
 
15937
15979
  class ItemLabelItem extends SvelteComponent {
@@ -15941,16 +15983,16 @@ class ItemLabelItem extends SvelteComponent {
15941
15983
  init(
15942
15984
  this,
15943
15985
  options,
15944
- instance$1,
15945
- create_fragment$1,
15986
+ instance$2,
15987
+ create_fragment$2,
15946
15988
  safe_not_equal,
15947
15989
  {
15948
15990
  itemLabel: 0,
15949
- hooks: 4,
15991
+ hooks: 5,
15950
15992
  anchorEnabled: 1,
15951
15993
  onIconClick: 2
15952
15994
  },
15953
- add_css$1
15995
+ add_css$2
15954
15996
  );
15955
15997
  }
15956
15998
  }
@@ -15995,7 +16037,7 @@ function transform2RenderData(data) {
15995
16037
 
15996
16038
  /* src/ItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.49.0 */
15997
16039
 
15998
- function add_css(target) {
16040
+ function add_css$1(target) {
15999
16041
  append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
16000
16042
  }
16001
16043
 
@@ -16114,7 +16156,7 @@ function create_each_block(key_1, ctx) {
16114
16156
  };
16115
16157
  }
16116
16158
 
16117
- function create_fragment(ctx) {
16159
+ function create_fragment$1(ctx) {
16118
16160
  let div;
16119
16161
  let each_blocks = [];
16120
16162
  let each_1_lookup = new Map();
@@ -16192,7 +16234,7 @@ function create_fragment(ctx) {
16192
16234
  }
16193
16235
  let basicWidth = 11;
16194
16236
 
16195
- function instance($$self, $$props, $$invalidate) {
16237
+ function instance$1($$self, $$props, $$invalidate) {
16196
16238
  const { Raycaster, Vector3 } = THREE;
16197
16239
  let { five } = $$props;
16198
16240
  let { modelOcclusionEnable } = $$props;
@@ -16485,8 +16527,8 @@ class ItemLabelComponent extends SvelteComponent {
16485
16527
  init(
16486
16528
  this,
16487
16529
  options,
16488
- instance,
16489
- create_fragment,
16530
+ instance$1,
16531
+ create_fragment$1,
16490
16532
  safe_not_equal,
16491
16533
  {
16492
16534
  five: 7,
@@ -16497,7 +16539,7 @@ class ItemLabelComponent extends SvelteComponent {
16497
16539
  displayStrategyType: 11,
16498
16540
  maxVisibleDistance: 12
16499
16541
  },
16500
- add_css,
16542
+ add_css$1,
16501
16543
  [-1, -1]
16502
16544
  );
16503
16545
  }
@@ -16635,6 +16677,736 @@ const itemLabelPluginServerParams = {
16635
16677
  version: 0,
16636
16678
  };
16637
16679
 
16638
- const DnalogelVersion = '2.0.0-alpha.38';
16680
+ /**
16681
+ * pano plugin controller 基类
16682
+ * @author kyleju
16683
+ */
16684
+ class BasePanoPluginController extends Controller$5 {
16685
+ constructor(five) {
16686
+ super(five);
16687
+ Object.defineProperty(this, "state", {
16688
+ enumerable: true,
16689
+ configurable: true,
16690
+ writable: true,
16691
+ value: void 0
16692
+ });
16693
+ Object.defineProperty(this, "container", {
16694
+ enumerable: true,
16695
+ configurable: true,
16696
+ writable: true,
16697
+ value: void 0
16698
+ });
16699
+ Object.defineProperty(this, "enabled", {
16700
+ enumerable: true,
16701
+ configurable: true,
16702
+ writable: true,
16703
+ value: void 0
16704
+ });
16705
+ this.five = five;
16706
+ this.five.once('dispose', this.dispose);
16707
+ this.enabled = true;
16708
+ this.state = this.initState();
16709
+ console.log('base controller');
16710
+ }
16711
+ /**
16712
+ * 启用组件
16713
+ * @param options
16714
+ */
16715
+ enable(options) {
16716
+ this.enabled = true;
16717
+ this.updateState(Object.assign(Object.assign({}, options), { userAction: true }));
16718
+ }
16719
+ /**
16720
+ * 禁用组件
16721
+ * @param options
16722
+ */
16723
+ disable(options) {
16724
+ this.enabled = false;
16725
+ this.updateState(Object.assign(Object.assign({}, options), { userAction: true }));
16726
+ }
16727
+ /**
16728
+ * 显示 UI
16729
+ * @param options
16730
+ * @returns
16731
+ */
16732
+ show(options) {
16733
+ if (!this.state.enabled)
16734
+ return;
16735
+ this.setState(Object.assign(Object.assign({}, this.state), { visible: true }), options);
16736
+ return Promise.resolve();
16737
+ }
16738
+ /**
16739
+ * 隐藏 UI
16740
+ * @param options
16741
+ * @returns
16742
+ */
16743
+ hide(options) {
16744
+ if (!this.state.enabled)
16745
+ return;
16746
+ this.setState(Object.assign(Object.assign({}, this.state), { visible: false }), options);
16747
+ return Promise.resolve();
16748
+ }
16749
+ /**
16750
+ * 销毁对象
16751
+ */
16752
+ dispose() {
16753
+ this.container.remove();
16754
+ }
16755
+ /**
16756
+ * 设置状态
16757
+ * @param state @T 状态
16758
+ * @param options @BaseOptions 可选配置
16759
+ * @returns
16760
+ */
16761
+ setState(state, options) {
16762
+ if (!this.enabled)
16763
+ return;
16764
+ const prevState = Object.assign({}, this.state);
16765
+ this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), options);
16766
+ this.stateChangedCallback(prevState, options);
16767
+ }
16768
+ get visible() {
16769
+ return this.five.state.mode === Five.Mode.Panorama;
16770
+ }
16771
+ appendTo(container) {
16772
+ if (!this.enabled)
16773
+ return;
16774
+ this.container = container;
16775
+ this.render();
16776
+ }
16777
+ updateState(options) {
16778
+ this.setState(Object.assign(Object.assign({}, this.state), { enabled: this.enabled, visible: this.visible }), options);
16779
+ }
16780
+ }
16781
+
16782
+ /* src/PanoDoorLabelPlugin/DoorLabelItem.svelte generated by Svelte v3.49.0 */
16783
+
16784
+ function add_css(target) {
16785
+ append_styles(target, "svelte-6rn4em", ".plugin-DoorLabelPlugin-item.svelte-6rn4em.svelte-6rn4em{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;transition:opacity 0.3s ease}.plugin-DoorLabelPlugin-cnt.svelte-6rn4em.svelte-6rn4em{position:absolute;top:50%;left:50%;border-radius:0.125rem;background:rgba(0, 0, 0, 0.35);line-height:0.625rem;padding:0.3125rem;white-space:nowrap;font-size:0.625rem;font-style:normal;color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform ease 1s, background ease 0.3s, color ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-6rn4em.svelte-6rn4em::after{content:\"\";display:block;position:absolute;top:-1px;left:-1px;bottom:-1px;right:-1px;border-radius:0.125rem;border:1px solid rgba(0, 0, 0, 0);-o-border-image:url(\"//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png\") 4;border-image:url(\"//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png\") 4;transition:opacity ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-6rn4em.svelte-6rn4em:active,.plugin-DoorLabelPlugin-cnt.svelte-6rn4em.svelte-6rn4em:focus{background:rgba(0, 0, 0, 0.5);color:rgba(255, 255, 255, 0.5)}.plugin-DoorLabelPlugin-icon.svelte-6rn4em.svelte-6rn4em{background:url(\"//vrlab-image4.ljcdn.com/release/web/DoorLabel-icon.de1304ae.svg\") no-repeat;background-size:100%;display:inline-block;width:0.52083rem;height:0.52083rem;margin-left:0.20833rem;transform-origin:center}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].left.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-6rn4em .plugin-DoorLabelPlugin-txt.svelte-6rn4em{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{transform:rotate(-90deg);margin-left:0;margin-right:0.20833rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].forward.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-6rn4em .plugin-DoorLabelPlugin-txt.svelte-6rn4em{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{transform:rotate(-90deg);margin-left:0;margin-right:0.20833rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].back.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-6rn4em .plugin-DoorLabelPlugin-txt.svelte-6rn4em{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{transform:rotate(-90deg);margin-left:0;margin-right:0.20833rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].right.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-6rn4em .plugin-DoorLabelPlugin-txt.svelte-6rn4em{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{transform:rotate(-90deg);margin-left:0;margin-right:0.20833rem;order:0}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-6rn4em.svelte-6rn4em{color:#f9eac1}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{background:url(\"//vrlab-image4.ljcdn.com/release/web/arrow.6e8ec00e.svg\") no-repeat}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-6rn4em.svelte-6rn4em:active,.plugin-DoorLabelPlugin-cnt--customBrand.svelte-6rn4em.svelte-6rn4em:focus{background:rgba(0, 0, 0, 0.5);color:rgba(249, 234, 193, 0.5)}");
16786
+ }
16787
+
16788
+ function create_fragment(ctx) {
16789
+ let div1;
16790
+ let div0;
16791
+ let span;
16792
+ let t1;
16793
+ let i;
16794
+ let div0_class_value;
16795
+ let mounted;
16796
+ let dispose;
16797
+
16798
+ return {
16799
+ c() {
16800
+ div1 = element("div");
16801
+ div0 = element("div");
16802
+ span = element("span");
16803
+ span.textContent = `${/*name*/ ctx[8]}`;
16804
+ t1 = space();
16805
+ i = element("i");
16806
+ attr(span, "class", "plugin-DoorLabelPlugin-txt svelte-6rn4em");
16807
+ attr(i, "class", "plugin-DoorLabelPlugin-icon svelte-6rn4em");
16808
+ attr(div0, "class", div0_class_value = "" + (null_to_empty(classNames('plugin-DoorLabelPlugin-cnt', /*props*/ ctx[0].toward)) + " svelte-6rn4em"));
16809
+ attr(div0, "style", `transform: ${/*transform*/ ctx[6] || 'initial'};pointerEvents: ${/*inSight*/ ctx[5] ? 'auto' : 'none'};opacity: ${/*inSight*/ ctx[5] ? 1 : 0}`);
16810
+ attr(div0, "data-camera-toward", /*cameraToward*/ ctx[7]);
16811
+ attr(div1, "style", `left: ${/*left*/ ctx[3] || 0}%;top: ${/*top*/ ctx[4] || 0}%;opacity: ${/*inSight*/ ctx[5] ? 1 : 0}`);
16812
+ attr(div1, "class", "plugin-DoorLabelPlugin-item svelte-6rn4em");
16813
+ },
16814
+ m(target, anchor) {
16815
+ insert(target, div1, anchor);
16816
+ append(div1, div0);
16817
+ append(div0, span);
16818
+ append(div0, t1);
16819
+ append(div0, i);
16820
+ /*div1_binding*/ ctx[10](div1);
16821
+
16822
+ if (!mounted) {
16823
+ dispose = listen(div0, "click", /*click_handler*/ ctx[9]);
16824
+ mounted = true;
16825
+ }
16826
+ },
16827
+ p(ctx, [dirty]) {
16828
+ if (dirty & /*props*/ 1 && div0_class_value !== (div0_class_value = "" + (null_to_empty(classNames('plugin-DoorLabelPlugin-cnt', /*props*/ ctx[0].toward)) + " svelte-6rn4em"))) {
16829
+ attr(div0, "class", div0_class_value);
16830
+ }
16831
+ },
16832
+ i: noop$1,
16833
+ o: noop$1,
16834
+ d(detaching) {
16835
+ if (detaching) detach(div1);
16836
+ /*div1_binding*/ ctx[10](null);
16837
+ mounted = false;
16838
+ dispose();
16839
+ }
16840
+ };
16841
+ }
16842
+
16843
+ function instance($$self, $$props, $$invalidate) {
16844
+ let { props } = $$props;
16845
+ let { onClick } = $$props;
16846
+ let divElement;
16847
+ let { left, top, inSight, transform, panoIndex, cameraToward, name } = props;
16848
+ let prevPanoIndexRef = 0;
16849
+
16850
+ const initPanoIndex = () => {
16851
+ if (!left || !top || !inSight) {
16852
+ return;
16853
+ }
16854
+
16855
+ if (!divElement) return;
16856
+ const _width = divElement.current.clientWidth / window.innerWidth * 100;
16857
+ const _height = divElement.current.clientHeight / window.innerHeight * 100;
16858
+
16859
+ if (left <= _width / 2 || left >= 100 - _width / 2) {
16860
+ return;
16861
+ }
16862
+
16863
+ if (top <= _height / 2 || top >= 100 - _height / 2) {
16864
+ return;
16865
+ }
16866
+
16867
+ const prevPanoIndex = prevPanoIndexRef;
16868
+
16869
+ if (panoIndex !== prevPanoIndex) {
16870
+ // 触发埋点
16871
+ console.log('panoDoorLabelPlugin', panoIndex, '触发埋点');
16872
+
16873
+ // 这里触发曝光埋点
16874
+ prevPanoIndexRef = panoIndex;
16875
+ }
16876
+ };
16877
+
16878
+ const click_handler = e => {
16879
+ if (onClick) onClick();
16880
+ };
16881
+
16882
+ function div1_binding($$value) {
16883
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
16884
+ divElement = $$value;
16885
+ $$invalidate(2, divElement);
16886
+ });
16887
+ }
16888
+
16889
+ $$self.$$set = $$props => {
16890
+ if ('props' in $$props) $$invalidate(0, props = $$props.props);
16891
+ if ('onClick' in $$props) $$invalidate(1, onClick = $$props.onClick);
16892
+ };
16893
+
16894
+ {
16895
+ initPanoIndex();
16896
+ }
16897
+
16898
+ return [
16899
+ props,
16900
+ onClick,
16901
+ divElement,
16902
+ left,
16903
+ top,
16904
+ inSight,
16905
+ transform,
16906
+ cameraToward,
16907
+ name,
16908
+ click_handler,
16909
+ div1_binding
16910
+ ];
16911
+ }
16912
+
16913
+ class DoorLabelItem extends SvelteComponent {
16914
+ constructor(options) {
16915
+ super();
16916
+ init(this, options, instance, create_fragment, safe_not_equal, { props: 0, onClick: 1 }, add_css);
16917
+ }
16918
+ }
16919
+
16920
+ function isTwoRectOverlaped(rect1, rect2) {
16921
+ // 两矩形的中心点水平及垂直距离
16922
+ const verticalDistance = Math.abs(rect1.top + rect1.height / 2 - rect2.top - rect2.height / 2);
16923
+ const horizontalDistance = Math.abs(rect1.left + rect1.width / 2 - rect2.left - rect2.width / 2);
16924
+ const verticalThreshold = (rect1.height + rect2.height) / 2;
16925
+ const horizontalThroshold = (rect1.width + rect2.width) / 2;
16926
+ if (verticalDistance > verticalThreshold && horizontalDistance > horizontalThroshold) {
16927
+ return false;
16928
+ }
16929
+ return true;
16930
+ }
16931
+ function getCameraToward(five) {
16932
+ const { camera } = five;
16933
+ const cameraDirection = camera.getWorldDirection(new Vector3$1());
16934
+ let angel = (Math.atan(cameraDirection.z / cameraDirection.x) * 180) / Math.PI;
16935
+ let toward = '';
16936
+ if (cameraDirection.x < 0)
16937
+ angel += 180;
16938
+ if (angel < 0)
16939
+ angel += 360;
16940
+ if (angel > 315 || angel <= 45) {
16941
+ toward = 'right';
16942
+ }
16943
+ else if (angel > 45 && angel <= 135) {
16944
+ toward = 'back';
16945
+ }
16946
+ else if (angel > 135 && angel <= 225) {
16947
+ toward = 'left';
16948
+ }
16949
+ else if (angel > 225 && angel <= 315) {
16950
+ toward = 'forward';
16951
+ }
16952
+ return toward;
16953
+ }
16954
+ function getDistance(p1, p2) {
16955
+ return Math.sqrt(Math.pow(p1.z - p2.z, 2) + Math.pow(p1.x - p2.x, 2));
16956
+ }
16957
+ // left、right、forward、back 是 roomLabel 的朝向
16958
+ function getToward(rad) {
16959
+ const pi_4 = Math.PI / 4;
16960
+ if (rad > -pi_4 && rad <= pi_4) {
16961
+ return 'left';
16962
+ }
16963
+ else if (rad > pi_4 * 3 || rad <= -pi_4 * 3) {
16964
+ return 'right';
16965
+ }
16966
+ else if (rad > -pi_4 * 3 && rad <= -pi_4) {
16967
+ return 'forward';
16968
+ }
16969
+ else if (rad > pi_4 && rad <= pi_4 * 3) {
16970
+ return 'back';
16971
+ }
16972
+ return '';
16973
+ }
16974
+
16975
+ const defaultBaseOptions = { userAction: true };
16976
+ /**
16977
+ * 分间标签插件
16978
+ * @author kyleju
16979
+ */
16980
+ class PanoDoorLabelPluginController extends BasePanoPluginController {
16981
+ constructor(five) {
16982
+ super(five);
16983
+ Object.defineProperty(this, "MinVisibledistance", {
16984
+ enumerable: true,
16985
+ configurable: true,
16986
+ writable: true,
16987
+ value: 1.8
16988
+ });
16989
+ Object.defineProperty(this, "MaxVisibledistance", {
16990
+ enumerable: true,
16991
+ configurable: true,
16992
+ writable: true,
16993
+ value: 6
16994
+ });
16995
+ Object.defineProperty(this, "OffsetHeight", {
16996
+ enumerable: true,
16997
+ configurable: true,
16998
+ writable: true,
16999
+ value: -1.3
17000
+ }); // 标签页面高度偏移值
17001
+ Object.defineProperty(this, "rooms", {
17002
+ enumerable: true,
17003
+ configurable: true,
17004
+ writable: true,
17005
+ value: void 0
17006
+ });
17007
+ Object.defineProperty(this, "floorplanServerData", {
17008
+ enumerable: true,
17009
+ configurable: true,
17010
+ writable: true,
17011
+ value: void 0
17012
+ });
17013
+ /** 标签项 */
17014
+ Object.defineProperty(this, "doorLabelItems", {
17015
+ enumerable: true,
17016
+ configurable: true,
17017
+ writable: true,
17018
+ value: void 0
17019
+ });
17020
+ /** 每个点位 visible 标签的缓存 */
17021
+ Object.defineProperty(this, "visibleLabelMap", {
17022
+ enumerable: true,
17023
+ configurable: true,
17024
+ writable: true,
17025
+ value: new Map()
17026
+ });
17027
+ /** 标签项Prop值 */
17028
+ Object.defineProperty(this, "labelItems", {
17029
+ enumerable: true,
17030
+ configurable: true,
17031
+ writable: true,
17032
+ value: []
17033
+ });
17034
+ /** 数据 */
17035
+ Object.defineProperty(this, "doorLabels", {
17036
+ enumerable: true,
17037
+ configurable: true,
17038
+ writable: true,
17039
+ value: void 0
17040
+ });
17041
+ Object.defineProperty(this, "roomObservers", {
17042
+ enumerable: true,
17043
+ configurable: true,
17044
+ writable: true,
17045
+ value: void 0
17046
+ });
17047
+ Object.defineProperty(this, "loadData", {
17048
+ enumerable: true,
17049
+ configurable: true,
17050
+ writable: true,
17051
+ value: (floorplanServerData) => {
17052
+ if (this.doorLabelItems && this.doorLabelItems.length > 0) {
17053
+ this.doorLabelItems.forEach((doorItem) => {
17054
+ doorItem.$destroy();
17055
+ });
17056
+ }
17057
+ this.labelItems = [];
17058
+ this.doorLabels = [];
17059
+ this.doorLabelItems = [];
17060
+ this.floorplanServerData = floorplanServerData;
17061
+ this.five.once('panoArrived', () => {
17062
+ console.log('doorplugin', 'panoArrived');
17063
+ this.initData();
17064
+ });
17065
+ }
17066
+ });
17067
+ Object.defineProperty(this, "initRoomObservers", {
17068
+ enumerable: true,
17069
+ configurable: true,
17070
+ writable: true,
17071
+ value: () => {
17072
+ var _a, _b;
17073
+ const floorDatas = this.floorplanServerData.computed_data.floor_datas || [];
17074
+ const observers = ((_b = (_a = this.five) === null || _a === void 0 ? void 0 : _a.work) === null || _b === void 0 ? void 0 : _b.observers) || [];
17075
+ const roomObservers = observers
17076
+ // eslint-disable-next-line array-callback-return
17077
+ .map((ob) => {
17078
+ const panoIndex = ob.panoIndex;
17079
+ const floorIndex = ob.floorIndex;
17080
+ const floor = floorDatas === null || floorDatas === void 0 ? void 0 : floorDatas.find((d) => d.floor_index === floorIndex);
17081
+ if (floor) {
17082
+ const room = floor.rooms.find((r) => r.observer_indexs.includes(panoIndex));
17083
+ if (room) {
17084
+ return { panoIndex, floorIndex, name: room.name };
17085
+ }
17086
+ }
17087
+ })
17088
+ .filter(Boolean);
17089
+ this.roomObservers = roomObservers;
17090
+ }
17091
+ });
17092
+ Object.defineProperty(this, "hideAllLabels", {
17093
+ enumerable: true,
17094
+ configurable: true,
17095
+ writable: true,
17096
+ value: () => {
17097
+ this.labelItems.forEach((item) => {
17098
+ item.visible = false;
17099
+ item.inSight = false;
17100
+ });
17101
+ this.render();
17102
+ }
17103
+ });
17104
+ Object.defineProperty(this, "fixDoorVisibleAndPosition", {
17105
+ enumerable: true,
17106
+ configurable: true,
17107
+ writable: true,
17108
+ value: () => {
17109
+ this.initRoomObservers();
17110
+ const { panoIndex } = this.five;
17111
+ if (!this.visible)
17112
+ return;
17113
+ if (this.five.model.empty)
17114
+ return;
17115
+ if (panoIndex === null)
17116
+ return;
17117
+ if (!this.roomObservers.find((item) => item.panoIndex === panoIndex))
17118
+ return;
17119
+ const roomObserver = this.roomObservers.find((item) => {
17120
+ return item.panoIndex === panoIndex;
17121
+ });
17122
+ const position = this.five.work.observers.find((item) => item.panoIndex === panoIndex).position;
17123
+ const targetPoint = position.clone();
17124
+ const visibleLabelIds = (() => {
17125
+ if (this.visibleLabelMap.has(panoIndex)) {
17126
+ /** 使用缓存 */
17127
+ return this.visibleLabelMap.get(panoIndex);
17128
+ }
17129
+ else {
17130
+ const visibleDoorIds = [];
17131
+ this.doorLabels.forEach((doorLabelItem, index) => {
17132
+ // step1 校验分间
17133
+ if (doorLabelItem.roomName === roomObserver.name)
17134
+ return;
17135
+ // step2 校验最大最小值
17136
+ const doorPosition = doorLabelItem.position.clone();
17137
+ const distance = doorPosition.distanceTo(targetPoint);
17138
+ if (distance < this.MinVisibledistance || distance > this.MaxVisibledistance)
17139
+ return;
17140
+ // step3 碰撞检测是否有遮挡
17141
+ const raycaster = new Raycaster$1();
17142
+ const direction = doorPosition.clone().sub(targetPoint).normalize();
17143
+ raycaster.set(targetPoint, direction);
17144
+ const [intersection] = this.five.model.intersectRaycaster(raycaster);
17145
+ if (intersection && intersection.distance + 0.1 < distance)
17146
+ return;
17147
+ // 🥳 最终剩下的就是当前点位可见的标签
17148
+ visibleDoorIds.push(index);
17149
+ });
17150
+ this.visibleLabelMap.set(panoIndex, visibleDoorIds);
17151
+ return visibleDoorIds;
17152
+ }
17153
+ })();
17154
+ this.labelItems.forEach((data, index) => {
17155
+ data.visible = visibleLabelIds.includes(index);
17156
+ });
17157
+ this.fixDoorPosition();
17158
+ }
17159
+ });
17160
+ Object.defineProperty(this, "fixDoorPosition", {
17161
+ enumerable: true,
17162
+ configurable: true,
17163
+ writable: true,
17164
+ value: () => {
17165
+ const { panoIndex, camera } = this.five;
17166
+ if (panoIndex === null)
17167
+ return;
17168
+ if (this.five.currentMode !== 'Panorama')
17169
+ return this.hideAllLabels();
17170
+ const fiveElement = this.five.getElement();
17171
+ const canvasWidth = fiveElement.clientWidth;
17172
+ const canvasHeight = fiveElement.clientHeight;
17173
+ const cameraDirection = camera.getWorldDirection(new Vector3$1());
17174
+ const neverOverlapLabels = [];
17175
+ const labelItems = [...this.labelItems];
17176
+ labelItems.forEach((doorLabel, index) => {
17177
+ if (doorLabel.visible) {
17178
+ const disFromCameraToLabel = camera.position.distanceTo(doorLabel.position);
17179
+ const labelPosition = doorLabel.position.clone().add(new Vector3$1(0, this.OffsetHeight, 0));
17180
+ const direction = labelPosition.clone().sub(camera.position).normalize();
17181
+ const angle = direction.angleTo(cameraDirection);
17182
+ const mouse = labelPosition.clone().project(camera);
17183
+ const left = ((mouse.x + 1) / 2.2) * 100;
17184
+ const top = ((-mouse.y + 1) / 2.2) * 100;
17185
+ const visible = left >= 0 &&
17186
+ left <= 100 &&
17187
+ top >= 0 &&
17188
+ top <= 100 &&
17189
+ disFromCameraToLabel > this.MinVisibledistance &&
17190
+ disFromCameraToLabel <= this.MaxVisibledistance;
17191
+ doorLabel.left = left;
17192
+ doorLabel.top = top;
17193
+ doorLabel.inSight = visible && angle < Math.PI / 2;
17194
+ doorLabel.cameraToward = getCameraToward(this.five);
17195
+ if (visible)
17196
+ neverOverlapLabels.push({ disFromCameraToLabel, left, top, index });
17197
+ else
17198
+ doorLabel.transform = 'translate(-50%, -50%)';
17199
+ }
17200
+ else {
17201
+ doorLabel.inSight = false;
17202
+ }
17203
+ });
17204
+ // 视线内多标签防重叠单独处理
17205
+ if (neverOverlapLabels.length > 1) {
17206
+ let heightLevel = 0;
17207
+ neverOverlapLabels.sort((a, b) => b.disFromCameraToLabel - a.disFromCameraToLabel);
17208
+ for (let i = 1; i < neverOverlapLabels.length; i++) {
17209
+ const { index: idx1, left: l1, top: t1 } = neverOverlapLabels[i - 1];
17210
+ const { index: idx2, left: l2, top: t2 } = neverOverlapLabels[i];
17211
+ const rectDom1 = this.container.children[idx1];
17212
+ const rectDom2 = this.container.children[idx2];
17213
+ if (!rectDom1 || !rectDom2)
17214
+ return;
17215
+ const rect1 = {
17216
+ left: (canvasWidth * l1) / 100,
17217
+ top: (canvasHeight * t1) / 100,
17218
+ width: rectDom1.children[0].clientWidth,
17219
+ height: rectDom1.children[0].clientHeight,
17220
+ };
17221
+ const rect2 = {
17222
+ left: (canvasWidth * l2) / 100,
17223
+ top: (canvasHeight * t2) / 100,
17224
+ width: rectDom2.children[0].clientWidth,
17225
+ height: rectDom2.children[0].clientHeight,
17226
+ };
17227
+ if (isTwoRectOverlaped(rect1, rect2)) {
17228
+ heightLevel++;
17229
+ labelItems[idx1].transform = `translate(-50%, ${(heightLevel - 1) * 100 - 50}%)`;
17230
+ labelItems[idx2].transform = `translate(-50%, ${heightLevel * 100 - 50}%)`;
17231
+ }
17232
+ }
17233
+ }
17234
+ this.labelItems = labelItems;
17235
+ this.render();
17236
+ }
17237
+ });
17238
+ Object.defineProperty(this, "onClick", {
17239
+ enumerable: true,
17240
+ configurable: true,
17241
+ writable: true,
17242
+ value: (roomName, position) => {
17243
+ if (!this.rooms)
17244
+ return;
17245
+ const { work } = this.five;
17246
+ let nearestIndex;
17247
+ let nearestVector;
17248
+ let minDistance = Infinity;
17249
+ for (let index = 0; index < work.observers.length; index++) {
17250
+ if (this.rooms[index].name !== roomName)
17251
+ continue;
17252
+ const observer = work.observers[index];
17253
+ const observerPoint = observer.standingPosition;
17254
+ const distance = position.distanceTo(observerPoint);
17255
+ if (distance < minDistance) {
17256
+ nearestIndex = index;
17257
+ nearestVector = observerPoint.clone().sub(position).normalize();
17258
+ minDistance = distance;
17259
+ }
17260
+ }
17261
+ if (nearestVector !== null && nearestIndex !== null) {
17262
+ const options = {};
17263
+ if (minDistance > 0) {
17264
+ const fromVector = new Vector3$1(0, 0, -1);
17265
+ const toVector = nearestVector.clone();
17266
+ const quaternion = new Quaternion();
17267
+ quaternion.setFromUnitVectors(fromVector, toVector);
17268
+ const euler = new Euler();
17269
+ euler.setFromQuaternion(quaternion, 'YXZ');
17270
+ options.longitude = euler.y;
17271
+ }
17272
+ const canceled = this.five.emit('wantsToMoveToPano', nearestIndex, {}, true);
17273
+ if (!canceled) {
17274
+ this.five.moveToPano(nearestIndex, { longitude: options.longitude });
17275
+ }
17276
+ }
17277
+ }
17278
+ });
17279
+ Object.defineProperty(this, "initData", {
17280
+ enumerable: true,
17281
+ configurable: true,
17282
+ writable: true,
17283
+ value: () => {
17284
+ var _a;
17285
+ this.doorLabels = [];
17286
+ const pano_index = this.five.panoIndex;
17287
+ const floor_index = this.floorplanServerData.computed_data.observers[pano_index].floor_index;
17288
+ const rooms = floor_index !== undefined &&
17289
+ ((_a = this.floorplanServerData.computed_data.floor_datas[floor_index]) === null || _a === void 0 ? void 0 : _a.rooms);
17290
+ this.rooms = rooms;
17291
+ if (this.rooms && this.rooms.length > 0) {
17292
+ this.rooms.forEach((room) => {
17293
+ var _a;
17294
+ const doors = (_a = this.floorplanServerData.computed_data.doors) === null || _a === void 0 ? void 0 : _a.filter((doorItem) => {
17295
+ if (doorItem && doorItem.name === room.name) {
17296
+ return true;
17297
+ }
17298
+ return false;
17299
+ });
17300
+ const observersInRoom = this.five.work.observers.filter((observer, index) => {
17301
+ if (room.observer_indexs.find((item) => item === index))
17302
+ return true;
17303
+ return false;
17304
+ });
17305
+ if (doors) {
17306
+ doors.forEach((door) => {
17307
+ const doorPoint = door.position;
17308
+ let minDistance = Infinity;
17309
+ let nearestPoint;
17310
+ // 遍历门所在房间所有的点,找到离门最近的点
17311
+ observersInRoom.forEach((observer) => {
17312
+ const position = observer.standingPosition;
17313
+ const observerPoint = {
17314
+ x: position.x,
17315
+ y: position.y,
17316
+ z: position.z,
17317
+ };
17318
+ const distance = getDistance(doorPoint, observerPoint);
17319
+ if (distance < minDistance) {
17320
+ minDistance = distance;
17321
+ nearestPoint = observerPoint;
17322
+ }
17323
+ });
17324
+ if (nearestPoint)
17325
+ doorPoint.y = nearestPoint.y + 0.01;
17326
+ const position = new Vector3$1(doorPoint.x, doorPoint.y, doorPoint.z);
17327
+ position.add(new Vector3$1(-0.2, 1.8, 0).applyEuler(new Euler(0, door.rad, 0)));
17328
+ this.doorLabels.push({
17329
+ roomName: room.name,
17330
+ name: door.name,
17331
+ position,
17332
+ toward: getToward(door.rad),
17333
+ });
17334
+ });
17335
+ }
17336
+ });
17337
+ }
17338
+ this.labelItems = this.doorLabels.map((data) => (Object.assign(Object.assign({}, data), { left: 0, top: 0, visible: false, inSight: false, transform: '', cameraToward: '' })));
17339
+ console.log('doorplugin', 'labelItems', this.labelItems);
17340
+ this.five.on('wantsToMoveToPano', this.hideAllLabels);
17341
+ this.five.on('modelLoaded', this.fixDoorVisibleAndPosition);
17342
+ this.five.on('panoArrived', this.fixDoorVisibleAndPosition);
17343
+ this.five.on('initAnimationEnded', this.fixDoorPosition);
17344
+ this.five.on('cameraUpdate', this.fixDoorPosition);
17345
+ this.five.on('mouseWheel', this.fixDoorPosition);
17346
+ this.five.on('pinchGesture', this.fixDoorPosition);
17347
+ this.fixDoorVisibleAndPosition();
17348
+ }
17349
+ });
17350
+ }
17351
+ stateChangedCallback(prevState, options) {
17352
+ if (this.hooks.hasListener('stateChange')) {
17353
+ const optionParams = {
17354
+ state: this.state,
17355
+ prevState,
17356
+ userAction: options ? options.userAction : defaultBaseOptions.userAction,
17357
+ };
17358
+ this.hooks.emit('stateChange', optionParams);
17359
+ }
17360
+ }
17361
+ render() {
17362
+ if (!this.enabled) {
17363
+ this.doorLabelItems &&
17364
+ this.doorLabelItems.length > 0 &&
17365
+ this.doorLabelItems.forEach((item) => {
17366
+ item === null || item === void 0 ? void 0 : item.$destroy();
17367
+ });
17368
+ this.doorLabels = undefined;
17369
+ return;
17370
+ }
17371
+ if (this.doorLabelItems) {
17372
+ this.doorLabelItems.forEach((item) => {
17373
+ item.$destroy();
17374
+ });
17375
+ }
17376
+ this.doorLabelItems = [];
17377
+ this.labelItems.forEach((item) => {
17378
+ this.doorLabelItems.push(new DoorLabelItem({
17379
+ target: this.container,
17380
+ props: {
17381
+ props: item,
17382
+ onClick: () => {
17383
+ this.onClick(item.name, item.position);
17384
+ },
17385
+ },
17386
+ }));
17387
+ });
17388
+ }
17389
+ initState() {
17390
+ return { enabled: true, visible: true };
17391
+ }
17392
+ dispose() {
17393
+ if (this.five) {
17394
+ this.five.off('wantsToMoveToPano', this.hideAllLabels);
17395
+ this.five.off('modelLoaded', this.fixDoorVisibleAndPosition);
17396
+ this.five.off('panoArrived', this.fixDoorVisibleAndPosition);
17397
+ this.five.off('initAnimationEnded', this.fixDoorPosition);
17398
+ this.five.off('cameraUpdate', this.fixDoorPosition);
17399
+ this.five.off('mouseWheel', this.fixDoorPosition);
17400
+ this.five.off('pinchGesture', this.fixDoorPosition);
17401
+ super.dispose();
17402
+ }
17403
+ }
17404
+ }
17405
+
17406
+ const PanoDoorLabelPlugin = (five) => {
17407
+ return new PanoDoorLabelPluginController(five);
17408
+ };
17409
+
17410
+ const DnalogelVersion = '2.0.0-alpha.43';
16639
17411
 
16640
- export { CSS3DRenderPlugin, CameraMovementEffect, CameraMovementPlugin, DIRECTION, DISPLAY_STRATEGY_TYPE, DnalogelVersion, FLOOR_PLAN_ATTACHED_TO, FLOOR_TYPE_MAP, ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE, Plugin as ItemLabelPlugin, Magnifier, ModelChassisCompassPlugin, ModelEntryDoorGuidePlugin, ModelFloorplanPlugin, ModelItemLabelPlugin, ModelRoomLabelPlugin, ModelTVVideoPlugin, ModelViewPlugin, PanoCompassPlugin, PanoCursorRaycasterPlugin, PanoFloorplanRadarPlugin, PanoMeasurePlugin, PanoRulerPlugin, PanoRulerProPlugin, PanoSpatialTagPlugin, ROOM_FETILE_TYPE_MAP, ROOM_TYPE_MAP, Rotation, TopviewFloorplanPlugin, itemLabelPluginServerParams, modelItemLabelPluginServerParams, modelRoomLabelPluginServerParams };
17412
+ export { CSS3DRenderPlugin, CameraMovementEffect, CameraMovementPlugin, DIRECTION, DISPLAY_STRATEGY_TYPE, DnalogelVersion, FLOOR_PLAN_ATTACHED_TO, FLOOR_TYPE_MAP, ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE, Plugin as ItemLabelPlugin, Magnifier, ModelChassisCompassPlugin, ModelEntryDoorGuidePlugin, ModelFloorplanPlugin, ModelItemLabelPlugin, ModelRoomLabelPlugin, ModelTVVideoPlugin, ModelViewPlugin, PanoCompassPlugin, PanoCursorRaycasterPlugin, PanoDoorLabelPlugin, PanoFloorplanRadarPlugin, PanoMeasurePlugin, PanoRulerPlugin, PanoRulerProPlugin, PanoSpatialTagPlugin, ROOM_FETILE_TYPE_MAP, ROOM_TYPE_MAP, Rotation, TopviewFloorplanPlugin, itemLabelPluginServerParams, modelItemLabelPluginServerParams, modelRoomLabelPluginServerParams };