@realsee/dnalogel 0.1.7 → 2.0.0-alpha.11

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 (731) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +24 -68
  3. package/{plugins → dist}/CSS3DRenderPlugin/index.d.ts +1 -1
  4. package/dist/CSS3DRenderPlugin/index.js +231 -0
  5. package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
  6. package/{plugins → dist}/CameraMovementPlugin/index.d.ts +0 -0
  7. package/dist/CameraMovementPlugin/index.js +302 -0
  8. package/{plugins → dist}/CameraMovementPlugin/typing.d.ts +0 -0
  9. package/{plugins → dist}/ModelChassisCompassPlugin/index.d.ts +1 -1
  10. package/dist/ModelChassisCompassPlugin/index.js +142 -0
  11. package/{plugins → dist}/ModelEntryDoorGuidePlugin/index.d.ts +6 -2
  12. package/dist/ModelEntryDoorGuidePlugin/index.js +196 -0
  13. package/dist/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
  14. package/{plugins → dist}/ModelRoomLabelPlugin/Controller.d.ts +3 -2
  15. package/dist/ModelRoomLabelPlugin/index.d.ts +12 -0
  16. package/dist/ModelRoomLabelPlugin/index.js +463 -0
  17. package/{plugins → dist}/ModelRoomLabelPlugin/typings.d.ts +2 -2
  18. package/{plugins → dist}/ModelRoomLabelPlugin/utils/parseData.d.ts +0 -0
  19. package/{plugins → dist}/ModelViewPlugin/index.d.ts +0 -0
  20. package/dist/ModelViewPlugin/index.js +187 -0
  21. package/dist/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
  22. package/dist/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
  23. package/dist/PanoCompassPlugin/index.d.ts +51 -0
  24. package/dist/PanoCompassPlugin/index.js +521 -0
  25. package/{plugins → dist}/PanoCursorRaycasterPlugin/index.d.ts +2 -3
  26. package/dist/PanoCursorRaycasterPlugin/index.js +88 -0
  27. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
  28. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
  29. package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
  30. package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
  31. package/dist/PanoMeasurePlugin/Controller/index.d.ts +61 -0
  32. package/dist/PanoMeasurePlugin/Model/index.d.ts +38 -0
  33. package/dist/PanoMeasurePlugin/Model/line.d.ts +30 -0
  34. package/dist/PanoMeasurePlugin/Model/point.d.ts +16 -0
  35. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
  36. package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
  37. package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
  38. package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
  39. package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +22 -0
  40. package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
  41. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
  42. package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
  43. package/dist/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +6 -0
  44. package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
  45. package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +12 -0
  46. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
  47. package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
  48. package/dist/PanoMeasurePlugin/index.d.ts +7 -0
  49. package/dist/PanoMeasurePlugin/index.js +4789 -0
  50. package/dist/PanoMeasurePlugin/typings/data.d.ts +28 -0
  51. package/dist/PanoMeasurePlugin/typings/event.type.d.ts +28 -0
  52. package/dist/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
  53. package/dist/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
  54. package/dist/PanoMeasurePlugin/utils/constants.d.ts +4 -0
  55. package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
  56. package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
  57. package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
  58. package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
  59. package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
  60. package/dist/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
  61. package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
  62. package/dist/PanoMeasurePlugin/utils/line.d.ts +17 -0
  63. package/dist/PanoMeasurePlugin/utils/math.d.ts +17 -0
  64. package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -0
  65. package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
  66. package/{plugins → dist}/PanoRulerPlugin/index.d.ts +9 -5
  67. package/dist/PanoRulerPlugin/index.js +610 -0
  68. package/dist/PanoRulerPlugin/style.d.ts +2 -0
  69. package/{plugins → dist}/PanoRulerPlugin/typings.d.ts +0 -0
  70. package/dist/PanoSpatialTagPlugin/index.d.ts +33 -0
  71. package/dist/PanoSpatialTagPlugin/index.js +1259 -0
  72. package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
  73. package/{plugins/floorplan/TopviewFloorplanPlugin → dist/PanoSpatialTagPlugin}/style.d.ts +0 -0
  74. package/dist/PanoSpatialTagPlugin/typings.d.ts +40 -0
  75. package/dist/floorplan/Assets/camera.d.ts +1 -0
  76. package/dist/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
  77. package/dist/floorplan/ModelFloorplanPlugin/Assets/compass.d.ts +1 -0
  78. package/{plugins → dist}/floorplan/ModelFloorplanPlugin/Controller.d.ts +19 -14
  79. package/{plugins → dist}/floorplan/ModelFloorplanPlugin/index.d.ts +1 -1
  80. package/dist/floorplan/ModelFloorplanPlugin/index.js +3842 -0
  81. package/{plugins → dist}/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +0 -0
  82. package/{plugins → dist}/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +1 -1
  83. package/{plugins → dist}/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +0 -0
  84. package/{plugins → dist}/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +6 -11
  85. package/{plugins → dist}/floorplan/PanoFloorplanRadarPlugin/index.d.ts +0 -0
  86. package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +1673 -0
  87. package/{plugins → dist}/floorplan/TopviewFloorplanPlugin/Controller.d.ts +18 -11
  88. package/{plugins → dist}/floorplan/TopviewFloorplanPlugin/index.d.ts +0 -0
  89. package/dist/floorplan/TopviewFloorplanPlugin/index.js +3481 -0
  90. package/{plugins/floorplan/ModelFloorplanPlugin/controller.style.d.ts → dist/floorplan/TopviewFloorplanPlugin/style.d.ts} +0 -0
  91. package/dist/floorplan/constant.d.ts +5 -0
  92. package/{plugins → dist}/floorplan/typings/floorplanData.d.ts +6 -0
  93. package/{plugins → dist}/floorplan/typings/floorplanServerData.d.ts +8 -2
  94. package/dist/floorplan/typings/utility.d.ts +2 -0
  95. package/{plugins → dist}/floorplan/utils/formatData.d.ts +3 -3
  96. package/{plugins → dist}/floorplan/utils/formatPosition.d.ts +3 -4
  97. package/dist/index.d.ts +26 -0
  98. package/dist/index.es.js +12928 -0
  99. package/dist/index.js +12967 -0
  100. package/dist/index.umd.js +12961 -0
  101. package/{shared-utils → dist/shared-utils}/Preloader.d.ts +0 -0
  102. package/{shared-utils → dist/shared-utils}/Subscribe.d.ts +3 -3
  103. package/{shared-utils → dist/shared-utils}/animationFrame/BetterTween.d.ts +0 -0
  104. package/{shared-utils → dist/shared-utils}/animationFrame/calculateProgress.d.ts +0 -0
  105. package/{shared-utils → dist/shared-utils}/animationFrame/formatRad.d.ts +0 -0
  106. package/{shared-utils → dist/shared-utils}/animationFrame/index.d.ts +0 -0
  107. package/{shared-utils → dist/shared-utils}/animationFrame/tween.d.ts +0 -0
  108. package/dist/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
  109. package/{shared-utils → dist/shared-utils}/createCanvasTextTexture.d.ts +0 -0
  110. package/{shared-utils → dist/shared-utils}/createLine/index.d.ts +1 -1
  111. package/{shared-utils → dist/shared-utils}/debounce.d.ts +1 -1
  112. package/{shared-utils → dist/shared-utils}/equal.d.ts +0 -0
  113. package/{shared-utils → dist/shared-utils}/filter.d.ts +0 -0
  114. package/{shared-utils → dist/shared-utils}/five/changeMode.d.ts +0 -0
  115. package/{shared-utils → dist/shared-utils}/five/useFivePlugin.d.ts +0 -0
  116. package/{shared-utils → dist/shared-utils}/formatRad.d.ts +0 -0
  117. package/dist/shared-utils/getPxmm.d.ts +11 -0
  118. package/{shared-utils → dist/shared-utils}/getRandomColor.d.ts +0 -0
  119. package/{shared-utils → dist/shared-utils}/isNil.d.ts +0 -0
  120. package/{shared-utils → dist/shared-utils}/isTruelyObject.d.ts +0 -0
  121. package/dist/shared-utils/math/evenNumber.d.ts +3 -0
  122. package/{shared-utils → dist/shared-utils}/math/planimetry.d.ts +4 -4
  123. package/{shared-utils → dist/shared-utils}/math/rad2Deg.d.ts +0 -0
  124. package/{shared-utils → dist/shared-utils}/nearlyEqual.d.ts +0 -0
  125. package/{shared-utils → dist/shared-utils}/nextFrame.d.ts +0 -0
  126. package/{shared-utils → dist/shared-utils}/noop.d.ts +0 -0
  127. package/{shared-utils → dist/shared-utils}/object3d2LocalMatrix.d.ts +0 -0
  128. package/{shared-utils → dist/shared-utils}/px2rem.d.ts +0 -0
  129. package/dist/shared-utils/removeArrayItem.d.ts +7 -0
  130. package/{shared-utils → dist/shared-utils}/tap.d.ts +0 -0
  131. package/{shared-utils → dist/shared-utils}/three/centerPoint.d.ts +0 -0
  132. package/{shared-utils → dist/shared-utils}/three/getExtraModelLoader.d.ts +0 -0
  133. package/{shared-utils → dist/shared-utils}/three/getNormal.d.ts +0 -0
  134. package/{shared-utils → dist/shared-utils}/three/getTextureLoader.d.ts +0 -0
  135. package/{shared-utils → dist/shared-utils}/three/loadFbxObj.d.ts +0 -0
  136. package/dist/shared-utils/three/loadTexture.d.ts +2 -0
  137. package/{shared-utils → dist/shared-utils}/three/transformPositionToVector3.d.ts +0 -0
  138. package/{shared-utils → dist/shared-utils}/three/transfromToMeshBasicMaterial.d.ts +0 -0
  139. package/{shared-utils → dist/shared-utils}/throttle.d.ts +1 -1
  140. package/dist/shared-utils/tinyEJSrender.d.ts +5 -0
  141. package/{shared-utils → dist/shared-utils}/to.d.ts +0 -0
  142. package/{shared-utils → dist/shared-utils}/useDebounce.d.ts +0 -0
  143. package/{shared-utils → dist/shared-utils}/useThrottle.d.ts +0 -0
  144. package/{libs/gltf-viewer → dist/shared-utils}/uuid.d.ts +0 -0
  145. package/{shared-utils → dist/shared-utils}/vectorTocoordinates.d.ts +0 -0
  146. package/{typings → dist/typings}/math.type.d.ts +0 -0
  147. package/{typings → dist/typings}/utils.type.d.ts +0 -0
  148. package/docs/.nojekyll +1 -0
  149. package/docs/assets/highlight.css +78 -0
  150. package/docs/assets/icons.css +1043 -0
  151. package/docs/assets/icons.png +0 -0
  152. package/docs/assets/icons@2x.png +0 -0
  153. package/docs/assets/main.js +52 -0
  154. package/docs/assets/search.js +1 -0
  155. package/docs/assets/style.css +1413 -0
  156. package/docs/assets/widgets.png +0 -0
  157. package/docs/assets/widgets@2x.png +0 -0
  158. package/docs/classes/ModelRoomLabelController.html +20 -0
  159. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -0
  160. package/docs/enums/ModelFloorplanErrorType.html +1 -0
  161. package/docs/index.html +43 -0
  162. package/docs/interfaces/LineJson.html +1 -0
  163. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -0
  164. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -0
  165. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -0
  166. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -0
  167. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -0
  168. package/docs/interfaces/ModelFloorplanParameterType.html +1 -0
  169. package/docs/interfaces/ModelFloorplanViewEvent.html +5 -0
  170. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -0
  171. package/docs/interfaces/PanoCompassPluginData.html +1 -0
  172. package/docs/interfaces/PanoCompassPluginParameterType.html +1 -0
  173. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -0
  174. package/docs/interfaces/PanoRulerPluginExportType.html +1 -0
  175. package/docs/interfaces/PanoRulerPluginOptions.html +1 -0
  176. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -0
  177. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -0
  178. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -0
  179. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -0
  180. package/docs/interfaces/PointJson.html +1 -0
  181. package/docs/interfaces/RoomLabel.html +13 -0
  182. package/docs/interfaces/TopviewFloorplanPluginParameterType.html +1 -0
  183. package/docs/modules.html +28 -0
  184. package/libs/CSS3DRenderPlugin/index.d.ts +49 -0
  185. package/libs/CSS3DRenderPlugin/index.js +179 -0
  186. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
  187. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +18 -0
  188. package/libs/CameraMovementPlugin/index.d.ts +7 -0
  189. package/libs/CameraMovementPlugin/index.js +159 -0
  190. package/libs/CameraMovementPlugin/typing.d.ts +68 -0
  191. package/libs/CameraMovementPlugin/typing.js +17 -0
  192. package/libs/ModelChassisCompassPlugin/index.d.ts +19 -0
  193. package/libs/ModelChassisCompassPlugin/index.js +75 -0
  194. package/libs/ModelEntryDoorGuidePlugin/index.d.ts +26 -0
  195. package/libs/ModelEntryDoorGuidePlugin/index.js +137 -0
  196. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
  197. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -0
  198. package/libs/ModelRoomLabelPlugin/Controller.d.ts +36 -0
  199. package/libs/ModelRoomLabelPlugin/Controller.js +100 -0
  200. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +121 -0
  201. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +255 -0
  202. package/libs/ModelRoomLabelPlugin/index.d.ts +12 -0
  203. package/libs/ModelRoomLabelPlugin/index.js +9 -0
  204. package/libs/ModelRoomLabelPlugin/typings.d.ts +35 -0
  205. package/libs/ModelRoomLabelPlugin/typings.js +1 -0
  206. package/libs/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
  207. package/libs/ModelRoomLabelPlugin/utils/parseData.js +14 -0
  208. package/libs/ModelViewPlugin/index.d.ts +17 -0
  209. package/libs/ModelViewPlugin/index.js +160 -0
  210. package/libs/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
  211. package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -0
  212. package/libs/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
  213. package/libs/PanoCompassPlugin/getRoomInfoInstance.js +48 -0
  214. package/libs/PanoCompassPlugin/index.d.ts +51 -0
  215. package/libs/PanoCompassPlugin/index.js +171 -0
  216. package/libs/PanoCursorRaycasterPlugin/index.d.ts +48 -0
  217. package/libs/PanoCursorRaycasterPlugin/index.js +74 -0
  218. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
  219. package/libs/PanoMeasurePlugin/Controller/BaseController.js +69 -0
  220. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
  221. package/libs/PanoMeasurePlugin/Controller/EditController.js +216 -0
  222. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
  223. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +44 -0
  224. package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
  225. package/libs/PanoMeasurePlugin/Controller/WatchController.js +223 -0
  226. package/libs/PanoMeasurePlugin/Controller/index.d.ts +61 -0
  227. package/libs/PanoMeasurePlugin/Controller/index.js +176 -0
  228. package/libs/PanoMeasurePlugin/Model/index.d.ts +38 -0
  229. package/libs/PanoMeasurePlugin/Model/index.js +114 -0
  230. package/libs/PanoMeasurePlugin/Model/line.d.ts +30 -0
  231. package/libs/PanoMeasurePlugin/Model/line.js +64 -0
  232. package/libs/PanoMeasurePlugin/Model/point.d.ts +16 -0
  233. package/libs/PanoMeasurePlugin/Model/point.js +28 -0
  234. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
  235. package/libs/PanoMeasurePlugin/Model/polyline.js +48 -0
  236. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
  237. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +15 -0
  238. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
  239. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +2 -0
  240. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
  241. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +2 -0
  242. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +22 -0
  243. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +108 -0
  244. package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
  245. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +33 -0
  246. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
  247. package/libs/PanoMeasurePlugin/Modules/GuideController.js +75 -0
  248. package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
  249. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +103 -0
  250. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +6 -0
  251. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +117 -0
  252. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
  253. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +102 -0
  254. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +12 -0
  255. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +35 -0
  256. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
  257. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +69 -0
  258. package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
  259. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +78 -0
  260. package/libs/PanoMeasurePlugin/index.d.ts +7 -0
  261. package/libs/PanoMeasurePlugin/index.js +5 -0
  262. package/libs/PanoMeasurePlugin/typings/data.d.ts +28 -0
  263. package/libs/PanoMeasurePlugin/typings/data.js +1 -0
  264. package/libs/PanoMeasurePlugin/typings/event.type.d.ts +28 -0
  265. package/libs/PanoMeasurePlugin/typings/event.type.js +1 -0
  266. package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
  267. package/libs/PanoMeasurePlugin/typings/utils.type.js +1 -0
  268. package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
  269. package/libs/PanoMeasurePlugin/utils/clearGroup.js +3 -0
  270. package/libs/PanoMeasurePlugin/utils/constants.d.ts +4 -0
  271. package/libs/PanoMeasurePlugin/utils/constants.js +31 -0
  272. package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
  273. package/libs/PanoMeasurePlugin/utils/distanceDom.js +114 -0
  274. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
  275. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +21 -0
  276. package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
  277. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +27 -0
  278. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
  279. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +9 -0
  280. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
  281. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +14 -0
  282. package/libs/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
  283. package/libs/PanoMeasurePlugin/utils/ironbox.js +1 -0
  284. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
  285. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +6 -0
  286. package/libs/PanoMeasurePlugin/utils/line.d.ts +17 -0
  287. package/libs/PanoMeasurePlugin/utils/line.js +32 -0
  288. package/libs/PanoMeasurePlugin/utils/math.d.ts +17 -0
  289. package/libs/PanoMeasurePlugin/utils/math.js +44 -0
  290. package/libs/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -0
  291. package/libs/PanoMeasurePlugin/utils/mouseGroup.js +21 -0
  292. package/libs/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
  293. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +6 -0
  294. package/libs/PanoRulerPlugin/index.d.ts +31 -0
  295. package/libs/PanoRulerPlugin/index.js +398 -0
  296. package/libs/PanoRulerPlugin/style.d.ts +2 -0
  297. package/libs/PanoRulerPlugin/style.js +88 -0
  298. package/libs/PanoRulerPlugin/typings.d.ts +21 -0
  299. package/libs/PanoRulerPlugin/typings.js +1 -0
  300. package/libs/PanoSpatialTagPlugin/Components/origins.js +168 -0
  301. package/libs/PanoSpatialTagPlugin/Components/tag.js +302 -0
  302. package/libs/PanoSpatialTagPlugin/index.d.ts +33 -0
  303. package/libs/PanoSpatialTagPlugin/index.js +411 -0
  304. package/libs/PanoSpatialTagPlugin/store.d.ts +1 -0
  305. package/libs/PanoSpatialTagPlugin/store.js +2 -0
  306. package/libs/PanoSpatialTagPlugin/style.d.ts +1 -0
  307. package/libs/PanoSpatialTagPlugin/style.js +8 -0
  308. package/libs/PanoSpatialTagPlugin/typings.d.ts +40 -0
  309. package/libs/PanoSpatialTagPlugin/typings.js +1 -0
  310. package/libs/floorplan/Assets/camera.d.ts +1 -0
  311. package/libs/floorplan/Assets/camera.js +1 -0
  312. package/libs/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
  313. package/libs/floorplan/Assets/floorplanExtraObject.js +1 -0
  314. package/libs/floorplan/Components/BaseImage.js +217 -0
  315. package/libs/floorplan/Components/Normalmage.js +63 -0
  316. package/libs/floorplan/Components/RoomHighlight/Room.js +70 -0
  317. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +289 -0
  318. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +328 -0
  319. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +64 -0
  320. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +103 -0
  321. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +140 -0
  322. package/libs/floorplan/Components/SvgImage.js +83 -0
  323. package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.d.ts +1 -0
  324. package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.js +1 -0
  325. package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.js +120 -0
  326. package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.js +114 -0
  327. package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.js +463 -0
  328. package/libs/floorplan/ModelFloorplanPlugin/Components/Main.js +383 -0
  329. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.js +171 -0
  330. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.js +265 -0
  331. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.js +301 -0
  332. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.js +219 -0
  333. package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +105 -0
  334. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +359 -0
  335. package/libs/floorplan/ModelFloorplanPlugin/index.d.ts +9 -0
  336. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -0
  337. package/libs/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +23 -0
  338. package/libs/floorplan/ModelFloorplanPlugin/typings/events.type.js +1 -0
  339. package/libs/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +15 -0
  340. package/libs/floorplan/ModelFloorplanPlugin/utils/constant.js +16 -0
  341. package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +14 -0
  342. package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +46 -0
  343. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +152 -0
  344. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +248 -0
  345. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +154 -0
  346. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +312 -0
  347. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +28 -0
  348. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +88 -0
  349. package/libs/floorplan/PanoFloorplanRadarPlugin/index.d.ts +8 -0
  350. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -0
  351. package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +62 -0
  352. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +191 -0
  353. package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -0
  354. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -0
  355. package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
  356. package/libs/floorplan/TopviewFloorplanPlugin/style.js +8 -0
  357. package/libs/floorplan/constant.d.ts +5 -0
  358. package/libs/floorplan/constant.js +6 -0
  359. package/libs/floorplan/typings/floorplanData.d.ts +137 -0
  360. package/libs/floorplan/typings/floorplanData.js +6 -0
  361. package/libs/floorplan/typings/floorplanServerData.d.ts +131 -0
  362. package/libs/floorplan/typings/floorplanServerData.js +101 -0
  363. package/libs/floorplan/typings/utility.d.ts +2 -0
  364. package/libs/floorplan/typings/utility.js +1 -0
  365. package/libs/floorplan/utils/formatData.d.ts +5 -0
  366. package/libs/floorplan/utils/formatData.js +94 -0
  367. package/libs/floorplan/utils/formatPosition.d.ts +36 -0
  368. package/libs/floorplan/utils/formatPosition.js +50 -0
  369. package/libs/index.d.ts +26 -0
  370. package/libs/index.js +16 -0
  371. package/libs/shared-utils/Preloader.d.ts +6 -0
  372. package/libs/shared-utils/Preloader.js +38 -0
  373. package/libs/shared-utils/Subscribe.d.ts +45 -0
  374. package/libs/shared-utils/Subscribe.js +101 -0
  375. package/libs/shared-utils/animationFrame/BetterTween.d.ts +11 -0
  376. package/libs/shared-utils/animationFrame/BetterTween.js +30 -0
  377. package/libs/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
  378. package/libs/shared-utils/animationFrame/calculateProgress.js +23 -0
  379. package/libs/shared-utils/animationFrame/formatRad.d.ts +15 -0
  380. package/libs/shared-utils/animationFrame/formatRad.js +20 -0
  381. package/libs/shared-utils/animationFrame/index.d.ts +15 -0
  382. package/libs/shared-utils/animationFrame/index.js +48 -0
  383. package/libs/shared-utils/animationFrame/tween.d.ts +75 -0
  384. package/libs/shared-utils/animationFrame/tween.js +44 -0
  385. package/libs/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
  386. package/libs/shared-utils/changeModelCanvasOpacity.js +15 -0
  387. package/libs/shared-utils/createCanvasTextTexture.d.ts +8 -0
  388. package/libs/shared-utils/createCanvasTextTexture.js +19 -0
  389. package/libs/shared-utils/createLine/index.d.ts +3 -0
  390. package/libs/shared-utils/createLine/index.js +8 -0
  391. package/libs/shared-utils/debounce.d.ts +6 -0
  392. package/libs/shared-utils/debounce.js +14 -0
  393. package/libs/shared-utils/equal.d.ts +11 -0
  394. package/libs/shared-utils/equal.js +84 -0
  395. package/libs/shared-utils/filter.d.ts +27 -0
  396. package/libs/shared-utils/filter.js +53 -0
  397. package/libs/shared-utils/five/changeMode.d.ts +2 -0
  398. package/libs/shared-utils/five/changeMode.js +15 -0
  399. package/libs/shared-utils/five/useFivePlugin.d.ts +1 -0
  400. package/libs/shared-utils/five/useFivePlugin.js +8 -0
  401. package/libs/shared-utils/formatRad.d.ts +7 -0
  402. package/libs/shared-utils/formatRad.js +10 -0
  403. package/libs/shared-utils/getPxmm.d.ts +11 -0
  404. package/libs/shared-utils/getPxmm.js +34 -0
  405. package/libs/shared-utils/getRandomColor.d.ts +1 -0
  406. package/libs/shared-utils/getRandomColor.js +10 -0
  407. package/libs/shared-utils/isNil.d.ts +10 -0
  408. package/libs/shared-utils/isNil.js +14 -0
  409. package/libs/shared-utils/isTruelyObject.d.ts +18 -0
  410. package/libs/shared-utils/isTruelyObject.js +20 -0
  411. package/libs/shared-utils/math/evenNumber.d.ts +3 -0
  412. package/libs/shared-utils/math/evenNumber.js +4 -0
  413. package/libs/shared-utils/math/planimetry.d.ts +116 -0
  414. package/libs/shared-utils/math/planimetry.js +288 -0
  415. package/libs/shared-utils/math/rad2Deg.d.ts +1 -0
  416. package/libs/shared-utils/math/rad2Deg.js +3 -0
  417. package/libs/shared-utils/nearlyEqual.d.ts +7 -0
  418. package/libs/shared-utils/nearlyEqual.js +9 -0
  419. package/libs/shared-utils/nextFrame.d.ts +1 -0
  420. package/libs/shared-utils/nextFrame.js +6 -0
  421. package/libs/shared-utils/noop.d.ts +5 -0
  422. package/libs/shared-utils/noop.js +7 -0
  423. package/libs/shared-utils/object3d2LocalMatrix.d.ts +12 -0
  424. package/libs/shared-utils/object3d2LocalMatrix.js +29 -0
  425. package/libs/shared-utils/px2rem.d.ts +1 -0
  426. package/libs/shared-utils/px2rem.js +4 -0
  427. package/libs/shared-utils/removeArrayItem.d.ts +7 -0
  428. package/libs/shared-utils/removeArrayItem.js +12 -0
  429. package/libs/shared-utils/tap.d.ts +8 -0
  430. package/{shared-utils → libs/shared-utils}/tap.js +4 -13
  431. package/libs/shared-utils/three/centerPoint.d.ts +2 -0
  432. package/libs/shared-utils/three/centerPoint.js +4 -0
  433. package/libs/shared-utils/three/getExtraModelLoader.d.ts +6 -0
  434. package/libs/shared-utils/three/getExtraModelLoader.js +18 -0
  435. package/libs/shared-utils/three/getNormal.d.ts +2 -0
  436. package/libs/shared-utils/three/getNormal.js +6 -0
  437. package/libs/shared-utils/three/getTextureLoader.d.ts +6 -0
  438. package/libs/shared-utils/three/getTextureLoader.js +17 -0
  439. package/libs/shared-utils/three/loadFbxObj.d.ts +2 -0
  440. package/libs/shared-utils/three/loadFbxObj.js +13 -0
  441. package/libs/shared-utils/three/loadTexture.d.ts +2 -0
  442. package/libs/shared-utils/three/loadTexture.js +10 -0
  443. package/libs/shared-utils/three/transformPositionToVector3.d.ts +7 -0
  444. package/libs/shared-utils/three/transformPositionToVector3.js +3 -0
  445. package/libs/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
  446. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +14 -0
  447. package/libs/shared-utils/throttle.d.ts +7 -0
  448. package/libs/shared-utils/throttle.js +18 -0
  449. package/libs/shared-utils/tinyEJSrender.d.ts +5 -0
  450. package/libs/shared-utils/tinyEJSrender.js +180 -0
  451. package/libs/shared-utils/to.d.ts +8 -0
  452. package/libs/shared-utils/to.js +18 -0
  453. package/libs/shared-utils/useDebounce.d.ts +8 -0
  454. package/libs/shared-utils/useDebounce.js +22 -0
  455. package/libs/shared-utils/useThrottle.d.ts +8 -0
  456. package/libs/shared-utils/useThrottle.js +25 -0
  457. package/{shared-utils → libs/shared-utils}/uuid.d.ts +0 -0
  458. package/libs/shared-utils/uuid.js +11 -0
  459. package/libs/shared-utils/vectorTocoordinates.d.ts +7 -0
  460. package/libs/shared-utils/vectorTocoordinates.js +9 -0
  461. package/libs/typings/math.type.d.ts +44 -0
  462. package/libs/typings/math.type.js +1 -0
  463. package/libs/typings/utils.type.d.ts +2 -0
  464. package/libs/typings/utils.type.js +1 -0
  465. package/package.json +55 -17
  466. package/components/ARVideoFigure/ARVideoFigureMesh.d.ts +0 -44
  467. package/components/ARVideoFigure/ARVideoFigureMesh.js +0 -371
  468. package/components/ARVideoFigure/ARVideoFigureScene.d.ts +0 -11
  469. package/components/ARVideoFigure/ARVideoFigureScene.js +0 -85
  470. package/components/ARVideoFigure/ImgBgTransparent.d.ts +0 -16
  471. package/components/ARVideoFigure/ImgBgTransparent.js +0 -65
  472. package/components/ARVideoFigure/ImgBgTransparentMesh.d.ts +0 -30
  473. package/components/ARVideoFigure/ImgBgTransparentMesh.js +0 -183
  474. package/components/ARVideoFigure/fragmentShader.d.ts +0 -5
  475. package/components/ARVideoFigure/fragmentShader.js +0 -18
  476. package/components/ARVideoFigure/index.d.ts +0 -15
  477. package/components/ARVideoFigure/index.js +0 -80
  478. package/components/ARVideoFigure/vertexShader.d.ts +0 -1
  479. package/components/ARVideoFigure/vertexShader.js +0 -10
  480. package/components/GLTFView/index.d.ts +0 -72
  481. package/components/GLTFView/index.js +0 -149
  482. package/components/GlassFilters/index.d.ts +0 -32
  483. package/components/GlassFilters/index.js +0 -78
  484. package/components/ModelView/ModelViewController.d.ts +0 -18
  485. package/components/ModelView/ModelViewController.js +0 -157
  486. package/components/ModelView/index.d.ts +0 -10
  487. package/components/ModelView/index.js +0 -24
  488. package/components/PaintBrush/index.d.ts +0 -16
  489. package/components/PaintBrush/index.js +0 -47
  490. package/components/PanoTag/index.d.ts +0 -4
  491. package/components/PanoTag/index.js +0 -13
  492. package/custom.d.js +0 -3
  493. package/data/1aGKl9JmrlXMXx8d.d.ts +0 -104
  494. package/data/1aGKl9JmrlXMXx8d.js +0 -537
  495. package/data/54djM0oR6ky3Ey8e.d.ts +0 -55
  496. package/data/54djM0oR6ky3Ey8e.js +0 -350
  497. package/data/6gyq3v1verxD7JO1.d.ts +0 -104
  498. package/data/6gyq3v1verxD7JO1.js +0 -462
  499. package/data/8054djM0oR6ky3Ey8e.d.ts +0 -55
  500. package/data/8054djM0oR6ky3Ey8e.js +0 -350
  501. package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.d.ts +0 -84
  502. package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +0 -600
  503. package/data/PrXel3aqGbp34JQn.d.ts +0 -389
  504. package/data/PrXel3aqGbp34JQn.js +0 -4649
  505. package/data/XJ6NMLWnkAY3Rdx8.d.ts +0 -843
  506. package/data/XJ6NMLWnkAY3Rdx8.js +0 -7989
  507. package/data/YdoNP9K4rwQDwjJr.d.ts +0 -83
  508. package/data/YdoNP9K4rwQDwjJr.js +0 -1453
  509. package/data/ZLvK29zj4L29Jowd.d.ts +0 -55
  510. package/data/ZLvK29zj4L29Jowd.js +0 -372
  511. package/data/auto3d-njL5J99VwCmnjtQElOmXQr.d.ts +0 -86
  512. package/data/auto3d-njL5J99VwCmnjtQElOmXQr.js +0 -711
  513. package/data/extrude-walls/ZLvK29zj4L29Jowd.d.ts +0 -5
  514. package/data/extrude-walls/ZLvK29zj4L29Jowd.js +0 -14
  515. package/data/extrude-walls/lo024DEgzanMj5BE.d.ts +0 -5
  516. package/data/extrude-walls/lo024DEgzanMj5BE.js +0 -14
  517. package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.d.ts +0 -85
  518. package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.js +0 -511
  519. package/data/lo024DEgzanMj5BE.d.ts +0 -55
  520. package/data/lo024DEgzanMj5BE.js +0 -966
  521. package/data/oPzy3ApbjjpD8YdR.d.ts +0 -83
  522. package/data/oPzy3ApbjjpD8YdR.js +0 -283
  523. package/data/qjAxMG4XbPn96wKG.d.ts +0 -104
  524. package/data/qjAxMG4XbPn96wKG.js +0 -637
  525. package/data/rXel3aPQRRBD4JQn.d.ts +0 -86
  526. package/data/rXel3aPQRRBD4JQn.js +0 -622
  527. package/data/vLykj3NWrllMrG06.d.ts +0 -91
  528. package/data/vLykj3NWrllMrG06.js +0 -2729
  529. package/data/wz0QV9KA4ugyo9ME.d.ts +0 -39
  530. package/data/wz0QV9KA4ugyo9ME.js +0 -136
  531. package/data/zxMawr9raSg8LYjG.d.ts +0 -53
  532. package/data/zxMawr9raSg8LYjG.js +0 -590
  533. package/examples/FiveStateController/index.js +0 -134
  534. package/examples/VRHouse/Mobile.js +0 -36
  535. package/examples/VRHouse/PC.js +0 -36
  536. package/examples/VRHouse/index.js +0 -36
  537. package/index.d.ts +0 -15
  538. package/index.js +0 -45
  539. package/libs/gltf-viewer/Subscribe.d.ts +0 -76
  540. package/libs/gltf-viewer/Subscribe.js +0 -231
  541. package/libs/gltf-viewer/coordsMoveByOffset.d.ts +0 -13
  542. package/libs/gltf-viewer/coordsMoveByOffset.js +0 -22
  543. package/libs/gltf-viewer/coordsToDirection.d.ts +0 -5
  544. package/libs/gltf-viewer/coordsToDirection.js +0 -41
  545. package/libs/gltf-viewer/formatRad.d.ts +0 -1
  546. package/libs/gltf-viewer/formatRad.js +0 -13
  547. package/libs/gltf-viewer/getFrameTime.d.ts +0 -1
  548. package/libs/gltf-viewer/getFrameTime.js +0 -28
  549. package/libs/gltf-viewer/index.d.ts +0 -55
  550. package/libs/gltf-viewer/index.js +0 -650
  551. package/libs/gltf-viewer/mouseWheel.d.ts +0 -2
  552. package/libs/gltf-viewer/mouseWheel.js +0 -59
  553. package/libs/gltf-viewer/requestAnimationFrame.d.ts +0 -1
  554. package/libs/gltf-viewer/requestAnimationFrame.js +0 -18
  555. package/libs/gltf-viewer/requestAnimationFrameInterval.d.ts +0 -1
  556. package/libs/gltf-viewer/requestAnimationFrameInterval.js +0 -31
  557. package/libs/gltf-viewer/uuid.js +0 -28
  558. package/plugins/AutoPreloadPlugin/index.d.ts +0 -23
  559. package/plugins/AutoPreloadPlugin/index.js +0 -111
  560. package/plugins/CSS3DRenderPlugin/components/Marker/index.d.ts +0 -12
  561. package/plugins/CSS3DRenderPlugin/components/Marker/index.js +0 -121
  562. package/plugins/CSS3DRenderPlugin/index.js +0 -298
  563. package/plugins/CameraMovementPlugin/index.js +0 -362
  564. package/plugins/CameraMovementPlugin/typing.js +0 -37
  565. package/plugins/ModelChassisCompassPlugin/index.js +0 -157
  566. package/plugins/ModelEntryDoorGuidePlugin/index.js +0 -247
  567. package/plugins/ModelExtrudeWallsPlugin/index.d.ts +0 -16
  568. package/plugins/ModelExtrudeWallsPlugin/index.js +0 -252
  569. package/plugins/ModelRoomLabelPlugin/Controller.js +0 -153
  570. package/plugins/ModelRoomLabelPlugin/RoomLabelItem.d.ts +0 -8
  571. package/plugins/ModelRoomLabelPlugin/RoomLabelItem.js +0 -66
  572. package/plugins/ModelRoomLabelPlugin/RoomLabelItems.d.ts +0 -7
  573. package/plugins/ModelRoomLabelPlugin/RoomLabelItems.js +0 -159
  574. package/plugins/ModelRoomLabelPlugin/index.d.ts +0 -8
  575. package/plugins/ModelRoomLabelPlugin/index.js +0 -18
  576. package/plugins/ModelRoomLabelPlugin/typings.js +0 -7
  577. package/plugins/ModelRoomLabelPlugin/utils/parseData.js +0 -35
  578. package/plugins/ModelTVVideoPlugin/index.d.ts +0 -21
  579. package/plugins/ModelTVVideoPlugin/index.js +0 -397
  580. package/plugins/ModelViewPlugin/index.js +0 -223
  581. package/plugins/PanoCursorRaycasterPlugin/PanoCursorRaycasterPluginUsage.d.ts +0 -48
  582. package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.d.ts +0 -9
  583. package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.js +0 -117
  584. package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.d.ts +0 -11
  585. package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.js +0 -39
  586. package/plugins/PanoCursorRaycasterPlugin/index.js +0 -126
  587. package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.d.ts +0 -5
  588. package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.js +0 -27
  589. package/plugins/PanoCursorRaycasterPlugin/utils/createLine.d.ts +0 -3
  590. package/plugins/PanoCursorRaycasterPlugin/utils/createLine.js +0 -48
  591. package/plugins/PanoDoorLabelPlugin/index.d.ts +0 -4
  592. package/plugins/PanoDoorLabelPlugin/index.js +0 -14
  593. package/plugins/PanoIRobotPlugin/index.d.ts +0 -10
  594. package/plugins/PanoIRobotPlugin/index.js +0 -18
  595. package/plugins/PanoMaskSelectorPlugin/compare.d.ts +0 -1
  596. package/plugins/PanoMaskSelectorPlugin/compare.js +0 -17
  597. package/plugins/PanoMaskSelectorPlugin/createBox.d.ts +0 -7
  598. package/plugins/PanoMaskSelectorPlugin/createBox.js +0 -79
  599. package/plugins/PanoMaskSelectorPlugin/createTextures.d.ts +0 -3
  600. package/plugins/PanoMaskSelectorPlugin/createTextures.js +0 -45
  601. package/plugins/PanoMaskSelectorPlugin/fragmentShader.d.ts +0 -1
  602. package/plugins/PanoMaskSelectorPlugin/fragmentShader.js +0 -10
  603. package/plugins/PanoMaskSelectorPlugin/index.d.ts +0 -49
  604. package/plugins/PanoMaskSelectorPlugin/index.js +0 -348
  605. package/plugins/PanoMaskSelectorPlugin/vertexShader.d.ts +0 -1
  606. package/plugins/PanoMaskSelectorPlugin/vertexShader.js +0 -10
  607. package/plugins/PanoRulerPlugin/data/roomInfo.d.ts +0 -3
  608. package/plugins/PanoRulerPlugin/data/roomInfo.js +0 -51
  609. package/plugins/PanoRulerPlugin/data/roomRules.d.ts +0 -3
  610. package/plugins/PanoRulerPlugin/data/roomRules.js +0 -235
  611. package/plugins/PanoRulerPlugin/index.js +0 -637
  612. package/plugins/PanoRulerPlugin/typings.js +0 -7
  613. package/plugins/PanoTVVideoPlugin/index.d.ts +0 -26
  614. package/plugins/PanoTVVideoPlugin/index.js +0 -433
  615. package/plugins/TreasurePlugin/Controller.d.ts +0 -73
  616. package/plugins/TreasurePlugin/Controller.js +0 -250
  617. package/plugins/TreasurePlugin/TreasureFaceAnime.d.ts +0 -25
  618. package/plugins/TreasurePlugin/TreasureFaceAnime.js +0 -143
  619. package/plugins/TreasurePlugin/TreasureObject.d.ts +0 -53
  620. package/plugins/TreasurePlugin/TreasureObject.js +0 -406
  621. package/plugins/TreasurePlugin/TreasureOpenAnime.d.ts +0 -25
  622. package/plugins/TreasurePlugin/TreasureOpenAnime.js +0 -127
  623. package/plugins/TreasurePlugin/constants.d.ts +0 -33
  624. package/plugins/TreasurePlugin/constants.js +0 -67
  625. package/plugins/TreasurePlugin/index.d.ts +0 -11
  626. package/plugins/TreasurePlugin/index.js +0 -26
  627. package/plugins/TreasurePlugin/typings.d.ts +0 -2
  628. package/plugins/TreasurePlugin/typings.js +0 -7
  629. package/plugins/floorplan/Assets/floorplanExtraObject.d.ts +0 -1
  630. package/plugins/floorplan/Assets/floorplanExtraObject.js +0 -10
  631. package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +0 -626
  632. package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.d.ts +0 -13
  633. package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +0 -78
  634. package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.d.ts +0 -5
  635. package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +0 -84
  636. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.d.ts +0 -10
  637. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +0 -129
  638. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.d.ts +0 -13
  639. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +0 -118
  640. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +0 -13
  641. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +0 -62
  642. package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +0 -20
  643. package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +0 -88
  644. package/plugins/floorplan/ModelFloorplanPlugin/controller.style.js +0 -16
  645. package/plugins/floorplan/ModelFloorplanPlugin/index.js +0 -20
  646. package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.js +0 -7
  647. package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.js +0 -33
  648. package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +0 -154
  649. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.d.ts +0 -13
  650. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +0 -113
  651. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.d.ts +0 -3
  652. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +0 -39
  653. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.d.ts +0 -5
  654. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +0 -66
  655. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.d.ts +0 -9
  656. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.js +0 -126
  657. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.d.ts +0 -11
  658. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.js +0 -58
  659. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.d.ts +0 -17
  660. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.js +0 -85
  661. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.d.ts +0 -2
  662. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.js +0 -15
  663. package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +0 -211
  664. package/plugins/floorplan/PanoFloorplanRadarPlugin/index.js +0 -20
  665. package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +0 -262
  666. package/plugins/floorplan/TopviewFloorplanPlugin/index.js +0 -18
  667. package/plugins/floorplan/TopviewFloorplanPlugin/style.js +0 -16
  668. package/plugins/floorplan/components/FloorplanImage.d.ts +0 -7
  669. package/plugins/floorplan/components/FloorplanImage.js +0 -90
  670. package/plugins/floorplan/typings/floorplanData.js +0 -7
  671. package/plugins/floorplan/typings/floorplanServerData.js +0 -382
  672. package/plugins/floorplan/utils/formatData.js +0 -217
  673. package/plugins/floorplan/utils/formatPosition.js +0 -89
  674. package/shared-utils/Preloader.js +0 -57
  675. package/shared-utils/Subscribe.js +0 -230
  676. package/shared-utils/animationFrame/BetterTween.js +0 -103
  677. package/shared-utils/animationFrame/calculateProgress.js +0 -40
  678. package/shared-utils/animationFrame/formatRad.js +0 -36
  679. package/shared-utils/animationFrame/index.js +0 -81
  680. package/shared-utils/animationFrame/tween.js +0 -92
  681. package/shared-utils/changeModelCanvansOpacity.d.ts +0 -2
  682. package/shared-utils/changeModelCanvansOpacity.js +0 -38
  683. package/shared-utils/createCanvasTextTexture.js +0 -31
  684. package/shared-utils/createFiveContainer.d.ts +0 -10
  685. package/shared-utils/createFiveContainer.js +0 -171
  686. package/shared-utils/createLine/index.js +0 -43
  687. package/shared-utils/debounce.js +0 -30
  688. package/shared-utils/equal.js +0 -107
  689. package/shared-utils/filter.js +0 -127
  690. package/shared-utils/five/changeMode.js +0 -82
  691. package/shared-utils/five/useFivePlugin.js +0 -17
  692. package/shared-utils/formatRad.js +0 -18
  693. package/shared-utils/getPxmm.d.ts +0 -6
  694. package/shared-utils/getPxmm.js +0 -51
  695. package/shared-utils/getRandomColor.js +0 -23
  696. package/shared-utils/isNil.js +0 -26
  697. package/shared-utils/isTruelyObject.js +0 -31
  698. package/shared-utils/math/evenNumber.d.ts +0 -1
  699. package/shared-utils/math/evenNumber.js +0 -13
  700. package/shared-utils/math/planimetry.js +0 -352
  701. package/shared-utils/math/rad2Deg.js +0 -12
  702. package/shared-utils/nearlyEqual.js +0 -19
  703. package/shared-utils/nextFrame.js +0 -15
  704. package/shared-utils/noop.js +0 -19
  705. package/shared-utils/object3d2LocalMatrix.js +0 -79
  706. package/shared-utils/px2rem.js +0 -22
  707. package/shared-utils/three/centerPoint.js +0 -14
  708. package/shared-utils/three/getExtraModelLoader.js +0 -45
  709. package/shared-utils/three/getNormal.js +0 -17
  710. package/shared-utils/three/getTextureLoader.js +0 -50
  711. package/shared-utils/three/loadFbxObj.js +0 -54
  712. package/shared-utils/three/loadTexture.d.ts +0 -2
  713. package/shared-utils/three/loadTexture.js +0 -46
  714. package/shared-utils/three/transformPositionToVector3.js +0 -20
  715. package/shared-utils/three/transfromToMeshBasicMaterial.js +0 -33
  716. package/shared-utils/throttle.js +0 -29
  717. package/shared-utils/to.js +0 -67
  718. package/shared-utils/useDebounce.js +0 -49
  719. package/shared-utils/useThrottle.js +0 -47
  720. package/shared-utils/uuid.js +0 -28
  721. package/shared-utils/vectorTocoordinates.js +0 -18
  722. package/typedoc/components.d.ts +0 -6
  723. package/typedoc/components.js +0 -7
  724. package/typedoc/plugins.d.ts +0 -19
  725. package/typedoc/plugins.js +0 -165
  726. package/typedoc/shared-utils.d.ts +0 -3
  727. package/typedoc/shared-utils.js +0 -7
  728. package/typedoc/typings.d.ts +0 -3
  729. package/typedoc/typings.js +0 -7
  730. package/typings/math.type.js +0 -7
  731. package/typings/utils.type.js +0 -7
@@ -0,0 +1,1259 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var THREE = require('three');
6
+ var five = require('@realsee/five');
7
+ var CSS3DRenderer = require('three/examples/jsm/renderers/CSS3DRenderer');
8
+ var internal = require('svelte/internal');
9
+ var store = require('svelte/store');
10
+ var svelte = require('svelte');
11
+
12
+ function _interopNamespace(e) {
13
+ if (e && e.__esModule) return e;
14
+ var n = Object.create(null);
15
+ if (e) {
16
+ Object.keys(e).forEach(function (k) {
17
+ if (k !== 'default') {
18
+ var d = Object.getOwnPropertyDescriptor(e, k);
19
+ Object.defineProperty(n, k, d.get ? d : {
20
+ enumerable: true,
21
+ get: function () { return e[k]; }
22
+ });
23
+ }
24
+ });
25
+ }
26
+ n["default"] = e;
27
+ return Object.freeze(n);
28
+ }
29
+
30
+ var THREE__namespace = /*#__PURE__*/_interopNamespace(THREE);
31
+
32
+ function evenNumber(num, config) {
33
+ const roundNum = Math.round(num);
34
+ return roundNum % 2 === 0 ? roundNum : roundNum + Number(config?.smaller ? -1 : 1);
35
+ }
36
+
37
+ function centerPoint(point1, point2) {
38
+ return new THREE.Vector3((point1.x + point2.x) / 2, (point1.y + point2.y) / 2, (point1.z + point2.z) / 2);
39
+ }
40
+
41
+ const transformPositionToVector3 = ({ x, y, z }) => new THREE.Vector3(x, y, z);
42
+
43
+ /**
44
+ * @description: 究极简陋的 ResizeObserver polyfill
45
+ */
46
+ function createResizeObserver(func, element) {
47
+ if (!element || typeof ResizeObserver === 'undefined') {
48
+ return {
49
+ observe: () => window.addEventListener('resize', func),
50
+ unobserve: () => window.removeEventListener('resize', func),
51
+ };
52
+ }
53
+ else {
54
+ const observer = new ResizeObserver(func);
55
+ return {
56
+ observe: () => observer.observe(element),
57
+ unobserve: () => observer.unobserve(element),
58
+ };
59
+ }
60
+ }
61
+
62
+ /**
63
+ * **CSS3DRenderPlugin** 提供矩形区域(三维空间四个坐标点),你可以在此矩形区域中渲染 DOM 内容。
64
+ * 实现原理参考[CSS3DRenderer](https://threejs.org/docs/index.html?q=CSS3D#examples/en/renderers/CSS3DRenderer)。
65
+ *
66
+ * @returns
67
+ */
68
+ const CSS3DRenderPlugin = (five) => {
69
+ const state = { disposeCallbacks: [] };
70
+ const create3DDomContainer = (...params) => {
71
+ const points = params[0].map((point) => (point instanceof THREE.Vector3 ? point : transformPositionToVector3(point)));
72
+ const config = params[1];
73
+ if (points?.length < 4)
74
+ return console.error('points must be equal or greater than than 4');
75
+ if (!five?.model?.loaded)
76
+ return console.error('five.model.loaded is: ', five?.model?.loaded);
77
+ const fiveElement = five.getElement();
78
+ if (!fiveElement)
79
+ return console.error('five.getElement() is ' + fiveElement);
80
+ const disposers = [];
81
+ const ratio = config?.ratio || 0.00216;
82
+ if (ratio <= 0.00215)
83
+ console.warn('if you need click css3DElement on safari, ratio must be greater than 0.00215');
84
+ const dpr = config?.dpr || 1;
85
+ const mode = config?.mode || 'front';
86
+ const autoRender = config?.autoRender ?? true;
87
+ const behindFiveContainer = config?.behindFiveContainer || fiveElement.parentElement || document.body;
88
+ const container = config?.container || document.createElement('div');
89
+ container.classList.add('__Dnalogel-plugin--CSS3DRenderPlugin');
90
+ // 获取css3DObject, 如果mode为behind的话,一起获取mesh
91
+ const { css3DObject, mesh } = createObject(points, { ratio, dpr, container, mode });
92
+ // ======= INIT START =======
93
+ let resizeObserver;
94
+ const frontModeUnInited = mode === 'front' && !state.frontMode;
95
+ const behindModeUnInited = mode === 'behind' && !state.behindMode;
96
+ const inited = !(frontModeUnInited || behindModeUnInited);
97
+ if (behindModeUnInited) {
98
+ state.behindMode = { scene: new THREE.Scene(), css3DRenderer: new CSS3DRenderer.CSS3DRenderer() };
99
+ }
100
+ if (frontModeUnInited) {
101
+ state.frontMode = { scene: new THREE.Scene(), css3DRenderer: new CSS3DRenderer.CSS3DRenderer() };
102
+ }
103
+ const stateMode = mode === 'behind' ? state.behindMode : state.frontMode;
104
+ const { scene, css3DRenderer } = stateMode;
105
+ const render = (() => {
106
+ if (!inited) {
107
+ const css3DRendererSetSize = () => {
108
+ // 这里evenNumber策略是遇到奇数会加1,不知道为啥会触发滚动条显示,导致fiveElement变小,fiveElement变小又触发了这里的resize,宽高变小,滚动条消失,然后又触发resize。。。无限循环
109
+ // 为了规避上面这种情况,evenNumber设置了一个参数,遇到奇数可选择减一
110
+ const rendererWidth = evenNumber(fiveElement.clientWidth, { smaller: true });
111
+ const rendererHeight = evenNumber(fiveElement.clientHeight, { smaller: true });
112
+ css3DRenderer.setSize(rendererWidth, rendererHeight);
113
+ };
114
+ css3DRendererSetSize();
115
+ resizeObserver = createResizeObserver(css3DRendererSetSize, fiveElement);
116
+ css3DRenderer.domElement.style.position = 'absolute';
117
+ css3DRenderer.domElement.style.top = '0';
118
+ css3DRenderer.domElement.style.userSelect = 'none';
119
+ css3DRenderer.domElement.style.pointerEvents = 'none';
120
+ const renderEveryFrame = () => {
121
+ const requestAnimationFrameId = requestAnimationFrame(renderEveryFrame);
122
+ stateMode.requestAnimationFrameId = requestAnimationFrameId;
123
+ css3DRenderer.render(scene, five.camera);
124
+ };
125
+ return () => {
126
+ scene.add(css3DObject);
127
+ resizeObserver?.observe?.();
128
+ renderEveryFrame();
129
+ if (mode === 'behind' && mesh) {
130
+ five.scene.add(mesh);
131
+ disposers.push(() => mesh && five.scene.remove(mesh));
132
+ }
133
+ };
134
+ }
135
+ else {
136
+ return () => {
137
+ scene.add(css3DObject);
138
+ };
139
+ }
140
+ })();
141
+ if (frontModeUnInited) {
142
+ const wrapper = fiveElement.parentElement || document.body;
143
+ wrapper.appendChild(css3DRenderer.domElement);
144
+ }
145
+ if (behindModeUnInited) {
146
+ const wrapper = behindFiveContainer;
147
+ wrapper.appendChild(css3DRenderer.domElement);
148
+ }
149
+ // ======= INIT END =======
150
+ const dispose = () => {
151
+ disposers.forEach((d) => d?.());
152
+ scene.remove(css3DObject);
153
+ if (scene.children.length === 0) {
154
+ if (typeof stateMode.requestAnimationFrameId === 'number') {
155
+ cancelAnimationFrame(stateMode.requestAnimationFrameId);
156
+ }
157
+ css3DRenderer.domElement.remove();
158
+ if (mode === 'front')
159
+ state.frontMode = undefined;
160
+ if (mode === 'behind')
161
+ state.behindMode = undefined;
162
+ if (!state.behindMode && !state.frontMode) {
163
+ resizeObserver?.unobserve?.();
164
+ }
165
+ }
166
+ return true;
167
+ };
168
+ const idx = state.disposeCallbacks.findIndex((item) => item === dispose);
169
+ if (idx !== -1) {
170
+ state.disposeCallbacks.splice(idx, 1);
171
+ }
172
+ else {
173
+ state.disposeCallbacks.push(dispose);
174
+ }
175
+ if (autoRender)
176
+ render();
177
+ return { container, dispose, css3DObject, render: autoRender ? undefined : render };
178
+ };
179
+ const createObject = (points, config) => {
180
+ const { ratio, dpr, container: element, mode } = config;
181
+ const planeWidth = points[0].distanceTo(points[1]);
182
+ const planeHeight = points[1].distanceTo(points[2]);
183
+ const domWidthPx = evenNumber((planeWidth / ratio) * dpr);
184
+ const domHeightPx = evenNumber((planeHeight / ratio) * dpr);
185
+ const css3DObject = new CSS3DRenderer.CSS3DObject(element);
186
+ css3DObject.scale.set(ratio, ratio, ratio);
187
+ element.style.width = domWidthPx + 'px';
188
+ element.style.height = domHeightPx + 'px';
189
+ element.style.pointerEvents = 'none';
190
+ const centerPosition = centerPoint(points[0], points[2]);
191
+ const vector01 = points[1].clone().sub(points[0]); // 点0 -> 点1 的向量
192
+ const vector12 = points[2].clone().sub(points[1]); // 点1 -> 点2 的向量
193
+ // 旋转
194
+ const rotateXAngle = new THREE.Vector3(0, 1, 0).angleTo(new THREE.Vector3(0, vector12.y, vector12.z));
195
+ const rotateYAngle = new THREE.Vector3(1, 0, 0).angleTo(new THREE.Vector3(vector01.x, 0, vector01.z));
196
+ const rotateZAngle = vector01.angleTo(new THREE.Vector3(vector01.x, 0, vector01.z));
197
+ /**
198
+ * [0,1,0] => [0,0,1] 为rotate Worldx正方向
199
+ * [0,0,1] => [0,1,0] 为rotate Worldy正方向
200
+ * [0,1,1] => [-1,0,0] 为rotate Worldz正方向
201
+ */
202
+ const rotateX = (vector12.z > 0 ? -1 : 1) * rotateXAngle;
203
+ const rotateY = (vector01.z < 0 ? 1 : -1) * rotateYAngle;
204
+ const rotateZ = ((vector01.x > 0 && vector01.y < 0) || (vector01.x < 0 && vector01.y > 0) ? -1 : 1) * rotateZAngle;
205
+ css3DObject.rotateOnWorldAxis(new THREE.Vector3(1, 0, 0), rotateX); // x
206
+ css3DObject.rotateOnWorldAxis(new THREE.Vector3(0, 1, 0), rotateY); // y
207
+ css3DObject.rotateOnWorldAxis(new THREE.Vector3(0, 0, 1), rotateZ); // z
208
+ css3DObject.position.set(centerPosition.x, centerPosition.y, centerPosition.z);
209
+ let mesh;
210
+ if (mode === 'behind') {
211
+ const material = new THREE__namespace.MeshBasicMaterial({
212
+ opacity: 0,
213
+ transparent: false,
214
+ side: THREE__namespace.DoubleSide,
215
+ });
216
+ const geometry = new THREE__namespace.PlaneGeometry(domWidthPx, domHeightPx);
217
+ mesh = new THREE__namespace.Mesh(geometry, material);
218
+ mesh.name = 'CSS3DRenderPlugin-mesh';
219
+ mesh.position.copy(css3DObject.position);
220
+ mesh.rotation.copy(css3DObject.rotation);
221
+ mesh.scale.copy(css3DObject.scale);
222
+ }
223
+ return { css3DObject, mesh };
224
+ };
225
+ return {
226
+ create3DDomContainer,
227
+ disposeAll: () => {
228
+ state.disposeCallbacks.forEach((d) => d?.());
229
+ state.disposeCallbacks = [];
230
+ },
231
+ };
232
+ };
233
+
234
+ const currentTarget = store.writable(null);
235
+
236
+ /* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.47.0 */
237
+
238
+ function add_css$1(target) {
239
+ internal.append_styles(target, "svelte-scnx9u", ".PanoSpatialTagPlugin__tag-origin.svelte-scnx9u{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;animation:svelte-scnx9u-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-scnx9u:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-scnx9u{transform:translate(-50%, -50%) scale(0.6);animation:svelte-scnx9u-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@keyframes svelte-scnx9u-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-scnx9u-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}}");
240
+ }
241
+
242
+ function get_each_context(ctx, list, i) {
243
+ const child_ctx = ctx.slice();
244
+ child_ctx[3] = list[i];
245
+ return child_ctx;
246
+ }
247
+
248
+ // (8:0) {#each origins as origin}
249
+ function create_each_block(ctx) {
250
+ let i;
251
+ let style_top = `${/*origin*/ ctx[3].top}%`;
252
+ let style_left = `${/*origin*/ ctx[3].left}%`;
253
+ let mounted;
254
+ let dispose;
255
+
256
+ function click_handler() {
257
+ return /*click_handler*/ ctx[2](/*origin*/ ctx[3]);
258
+ }
259
+
260
+ return {
261
+ c() {
262
+ i = internal.element("i");
263
+ internal.attr(i, "class", "svelte-scnx9u");
264
+ internal.toggle_class(i, "PanoSpatialTagPlugin__tag-origin", true);
265
+ internal.toggle_class(i, "PanoSpatialTagPlugin__tag-origin-destroy", /*origin*/ ctx[3].destroying);
266
+ internal.set_style(i, "top", style_top, false);
267
+ internal.set_style(i, "left", style_left, false);
268
+ internal.set_style(i, "visibility", /*origin*/ ctx[3].front ? 'visible' : 'hidden', false);
269
+ },
270
+ m(target, anchor) {
271
+ internal.insert(target, i, anchor);
272
+
273
+ if (!mounted) {
274
+ dispose = internal.listen(i, "click", click_handler);
275
+ mounted = true;
276
+ }
277
+ },
278
+ p(new_ctx, dirty) {
279
+ ctx = new_ctx;
280
+
281
+ if (dirty & /*origins*/ 1) {
282
+ internal.toggle_class(i, "PanoSpatialTagPlugin__tag-origin-destroy", /*origin*/ ctx[3].destroying);
283
+ }
284
+
285
+ if (dirty & /*origins*/ 1 && style_top !== (style_top = `${/*origin*/ ctx[3].top}%`)) {
286
+ internal.set_style(i, "top", style_top, false);
287
+ }
288
+
289
+ if (dirty & /*origins*/ 1 && style_left !== (style_left = `${/*origin*/ ctx[3].left}%`)) {
290
+ internal.set_style(i, "left", style_left, false);
291
+ }
292
+
293
+ if (dirty & /*origins*/ 1) {
294
+ internal.set_style(i, "visibility", /*origin*/ ctx[3].front ? 'visible' : 'hidden', false);
295
+ }
296
+ },
297
+ d(detaching) {
298
+ if (detaching) internal.detach(i);
299
+ mounted = false;
300
+ dispose();
301
+ }
302
+ };
303
+ }
304
+
305
+ function create_fragment$1(ctx) {
306
+ let each_1_anchor;
307
+ let each_value = /*origins*/ ctx[0];
308
+ let each_blocks = [];
309
+
310
+ for (let i = 0; i < each_value.length; i += 1) {
311
+ each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
312
+ }
313
+
314
+ return {
315
+ c() {
316
+ for (let i = 0; i < each_blocks.length; i += 1) {
317
+ each_blocks[i].c();
318
+ }
319
+
320
+ each_1_anchor = internal.empty();
321
+ },
322
+ m(target, anchor) {
323
+ for (let i = 0; i < each_blocks.length; i += 1) {
324
+ each_blocks[i].m(target, anchor);
325
+ }
326
+
327
+ internal.insert(target, each_1_anchor, anchor);
328
+ },
329
+ p(ctx, [dirty]) {
330
+ if (dirty & /*origins, handleClick*/ 3) {
331
+ each_value = /*origins*/ ctx[0];
332
+ let i;
333
+
334
+ for (i = 0; i < each_value.length; i += 1) {
335
+ const child_ctx = get_each_context(ctx, each_value, i);
336
+
337
+ if (each_blocks[i]) {
338
+ each_blocks[i].p(child_ctx, dirty);
339
+ } else {
340
+ each_blocks[i] = create_each_block(child_ctx);
341
+ each_blocks[i].c();
342
+ each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
343
+ }
344
+ }
345
+
346
+ for (; i < each_blocks.length; i += 1) {
347
+ each_blocks[i].d(1);
348
+ }
349
+
350
+ each_blocks.length = each_value.length;
351
+ }
352
+ },
353
+ i: internal.noop,
354
+ o: internal.noop,
355
+ d(detaching) {
356
+ internal.destroy_each(each_blocks, detaching);
357
+ if (detaching) internal.detach(each_1_anchor);
358
+ }
359
+ };
360
+ }
361
+
362
+ function instance$1($$self, $$props, $$invalidate) {
363
+ let { origins } = $$props;
364
+
365
+ const handleClick = id => {
366
+ currentTarget.update(() => `${id}-PanoSpatialTagPlugin-${Date.now()}`);
367
+ };
368
+
369
+ const click_handler = origin => handleClick(origin.id);
370
+
371
+ $$self.$$set = $$props => {
372
+ if ('origins' in $$props) $$invalidate(0, origins = $$props.origins);
373
+ };
374
+
375
+ return [origins, handleClick, click_handler];
376
+ }
377
+
378
+ class Origins extends internal.SvelteComponent {
379
+ constructor(options) {
380
+ super();
381
+ internal.init(this, options, instance$1, create_fragment$1, internal.safe_not_equal, { origins: 0 }, add_css$1);
382
+ }
383
+ }
384
+
385
+ /* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.47.0 */
386
+
387
+ function add_css(target) {
388
+ internal.append_styles(target, "svelte-1xmyxaa", ".PanoSpatialTagPlugin__tag-x.svelte-1xmyxaa.svelte-1xmyxaa{position:relative;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-1xmyxaa.svelte-1xmyxaa{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-1xmyxaa.svelte-1xmyxaa{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1xmyxaa.svelte-1xmyxaa{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-1xmyxaa.svelte-1xmyxaa{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-1xmyxaa.svelte-1xmyxaa{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-1xmyxaa .PanoSpatialTagPlugin__tag-line1.svelte-1xmyxaa{animation:svelte-1xmyxaa-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-line2.svelte-1xmyxaa{animation:svelte-1xmyxaa-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1xmyxaa.svelte-1xmyxaa{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-line.svelte-1xmyxaa{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1xmyxaa.svelte-1xmyxaa{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-animate.svelte-1xmyxaa{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1xmyxaa.svelte-1xmyxaa{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-1xmyxaa .PanoSpatialTagPlugin__tag-content.svelte-1xmyxaa{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-flagpole.svelte-1xmyxaa{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-shadow.svelte-1xmyxaa{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-shadow.svelte-1xmyxaa{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-content.svelte-1xmyxaa{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-flagpole.svelte-1xmyxaa{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-shadow.svelte-1xmyxaa{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-content.svelte-1xmyxaa{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-content .svelte-1xmyxaa{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-line1.svelte-1xmyxaa{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-1xmyxaa-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1xmyxaa .PanoSpatialTagPlugin__tag-line2.svelte-1xmyxaa{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-1xmyxaa-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@keyframes svelte-1xmyxaa-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-1xmyxaa-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-1xmyxaa-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-1xmyxaa-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)}}");
389
+ }
390
+
391
+ function create_fragment(ctx) {
392
+ let div4;
393
+ let div0;
394
+ let t0;
395
+ let div1;
396
+ let i0;
397
+ let t1;
398
+ let i1;
399
+ let t2;
400
+ let i2;
401
+ let t3;
402
+ let div3;
403
+ let div2;
404
+ let div4_id_value;
405
+ let mounted;
406
+ let dispose;
407
+
408
+ return {
409
+ c() {
410
+ div4 = internal.element("div");
411
+ div0 = internal.element("div");
412
+ t0 = internal.space();
413
+ div1 = internal.element("div");
414
+ i0 = internal.element("i");
415
+ t1 = internal.space();
416
+ i1 = internal.element("i");
417
+ t2 = internal.space();
418
+ i2 = internal.element("i");
419
+ t3 = internal.space();
420
+ div3 = internal.element("div");
421
+ div2 = internal.element("div");
422
+ internal.attr(div0, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1xmyxaa");
423
+ internal.set_style(div0, "transform", "translate(" + /*contentWidth*/ ctx[7] / 2 * /*contentZoom*/ ctx[3] * 3 + "px, " + /*contentHeight*/ ctx[8] / 2 * (/*upsideDown*/ ctx[1] ? -1 : 1) * /*contentZoom*/ ctx[3] * 3 + "px)");
424
+ internal.attr(i0, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1xmyxaa");
425
+ internal.set_style(i0, "width", /*lineWidthZoom*/ ctx[4] + "rem");
426
+ internal.attr(i1, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1xmyxaa");
427
+ internal.attr(i2, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1xmyxaa");
428
+ internal.attr(div1, "class", "PanoSpatialTagPlugin__tag-line svelte-1xmyxaa");
429
+ internal.attr(div2, "class", "PanoSpatialTagPlugin__tag-content svelte-1xmyxaa");
430
+ internal.attr(div3, "class", "PanoSpatialTagPlugin__tag-animate svelte-1xmyxaa");
431
+ internal.set_style(div3, "transform", "scale(" + /*contentZoom*/ ctx[3] * 3 + ")");
432
+ internal.attr(div4, "id", div4_id_value = 'PanoSpatialTagPlugin__' + /*id*/ ctx[0]);
433
+ internal.set_style(div4, "height", 20 * /*lineHeightZoom*/ ctx[5] + "rem");
434
+ internal.attr(div4, "class", "svelte-1xmyxaa");
435
+ internal.toggle_class(div4, "PanoSpatialTagPlugin__tag-x", true);
436
+ internal.toggle_class(div4, "PanoSpatialTagPlugin__tag-upside-down", /*upsideDown*/ ctx[1]);
437
+ internal.toggle_class(div4, "PanoSpatialTagPlugin__tag-show", /*show*/ ctx[10]);
438
+ internal.toggle_class(div4, "PanoSpatialTagPlugin__tag-hide", /*show*/ ctx[10] === false || /*destroying*/ ctx[6]);
439
+ },
440
+ m(target, anchor) {
441
+ internal.insert(target, div4, anchor);
442
+ internal.append(div4, div0);
443
+ internal.append(div4, t0);
444
+ internal.append(div4, div1);
445
+ internal.append(div1, i0);
446
+ internal.append(div1, t1);
447
+ internal.append(div1, i1);
448
+ internal.append(div1, t2);
449
+ internal.append(div1, i2);
450
+ internal.append(div4, t3);
451
+ internal.append(div4, div3);
452
+ internal.append(div3, div2);
453
+ div2.innerHTML = /*content*/ ctx[2];
454
+ /*div2_binding*/ ctx[16](div2);
455
+
456
+ if (!mounted) {
457
+ dispose = internal.listen(div2, "click", /*handleClickContent*/ ctx[11]);
458
+ mounted = true;
459
+ }
460
+ },
461
+ p(ctx, [dirty]) {
462
+ if (dirty & /*contentWidth, contentZoom, contentHeight, upsideDown*/ 394) {
463
+ internal.set_style(div0, "transform", "translate(" + /*contentWidth*/ ctx[7] / 2 * /*contentZoom*/ ctx[3] * 3 + "px, " + /*contentHeight*/ ctx[8] / 2 * (/*upsideDown*/ ctx[1] ? -1 : 1) * /*contentZoom*/ ctx[3] * 3 + "px)");
464
+ }
465
+
466
+ if (dirty & /*lineWidthZoom*/ 16) {
467
+ internal.set_style(i0, "width", /*lineWidthZoom*/ ctx[4] + "rem");
468
+ }
469
+
470
+ if (dirty & /*content*/ 4) div2.innerHTML = /*content*/ ctx[2];
471
+ if (dirty & /*contentZoom*/ 8) {
472
+ internal.set_style(div3, "transform", "scale(" + /*contentZoom*/ ctx[3] * 3 + ")");
473
+ }
474
+
475
+ if (dirty & /*id*/ 1 && div4_id_value !== (div4_id_value = 'PanoSpatialTagPlugin__' + /*id*/ ctx[0])) {
476
+ internal.attr(div4, "id", div4_id_value);
477
+ }
478
+
479
+ if (dirty & /*lineHeightZoom*/ 32) {
480
+ internal.set_style(div4, "height", 20 * /*lineHeightZoom*/ ctx[5] + "rem");
481
+ }
482
+
483
+ if (dirty & /*upsideDown*/ 2) {
484
+ internal.toggle_class(div4, "PanoSpatialTagPlugin__tag-upside-down", /*upsideDown*/ ctx[1]);
485
+ }
486
+
487
+ if (dirty & /*show*/ 1024) {
488
+ internal.toggle_class(div4, "PanoSpatialTagPlugin__tag-show", /*show*/ ctx[10]);
489
+ }
490
+
491
+ if (dirty & /*show, destroying*/ 1088) {
492
+ internal.toggle_class(div4, "PanoSpatialTagPlugin__tag-hide", /*show*/ ctx[10] === false || /*destroying*/ ctx[6]);
493
+ }
494
+ },
495
+ i: internal.noop,
496
+ o: internal.noop,
497
+ d(detaching) {
498
+ if (detaching) internal.detach(div4);
499
+ /*div2_binding*/ ctx[16](null);
500
+ mounted = false;
501
+ dispose();
502
+ }
503
+ };
504
+ }
505
+
506
+ function instance($$self, $$props, $$invalidate) {
507
+ let { id } = $$props;
508
+ let { upsideDown } = $$props;
509
+ let { content } = $$props;
510
+ let { contentZoom } = $$props;
511
+ let { lineWidthZoom } = $$props;
512
+ let { lineHeightZoom } = $$props;
513
+ let { destroying = false } = $$props;
514
+ let { folded } = $$props;
515
+ let { dispose } = $$props;
516
+ let { events } = $$props;
517
+ let { hooks } = $$props;
518
+ let contentWidth = 0;
519
+ let contentHeight = 0;
520
+ let contentDom;
521
+ let show;
522
+
523
+ let timeoutId = setTimeout(
524
+ () => {
525
+ if (!folded) $$invalidate(10, show = true);
526
+ timeoutId = undefined;
527
+ },
528
+ 100
529
+ );
530
+
531
+ const handleClickContent = event => {
532
+ const eventsName = Object.keys(events);
533
+ let node = event.target;
534
+
535
+ while (node) {
536
+ const classNames = node.getAttribute('class');
537
+
538
+ if (!classNames) {
539
+ node = node.parentNode;
540
+ continue;
541
+ }
542
+
543
+ if (classNames.includes('PanoSpatialTagPlugin__tag-content')) {
544
+ node = null;
545
+ break;
546
+ }
547
+
548
+ eventsName.forEach(key => {
549
+ if (classNames.includes(key)) events[key](id);
550
+ });
551
+
552
+ node = node.parentNode;
553
+ }
554
+ };
555
+
556
+ svelte.onMount(() => {
557
+ hooks.emit('initTag', { id });
558
+ });
559
+
560
+ const unsubscribe = currentTarget.subscribe(str => {
561
+ if (str === null) return;
562
+ const [currentId, date] = str.split('-PanoSpatialTagPlugin-');
563
+
564
+ if (id === currentId) {
565
+ hooks.emit('clickOrigin', { id, show });
566
+
567
+ if (!timeoutId) {
568
+ $$invalidate(10, show = folded);
569
+ $$invalidate(12, folded = !folded);
570
+
571
+ timeoutId = setTimeout(
572
+ () => {
573
+ timeoutId = undefined;
574
+ },
575
+ 1500
576
+ );
577
+ }
578
+ }
579
+ });
580
+
581
+ svelte.afterUpdate(() => {
582
+ $$invalidate(7, contentWidth = contentDom.offsetWidth);
583
+ $$invalidate(8, contentHeight = contentDom.offsetHeight);
584
+ if (timeoutId) return;
585
+ $$invalidate(10, show = !folded);
586
+ });
587
+
588
+ svelte.onDestroy(() => {
589
+ hooks.emit('destroyTag', { id });
590
+ unsubscribe();
591
+ dispose();
592
+ });
593
+
594
+ function div2_binding($$value) {
595
+ internal.binding_callbacks[$$value ? 'unshift' : 'push'](() => {
596
+ contentDom = $$value;
597
+ $$invalidate(9, contentDom);
598
+ });
599
+ }
600
+
601
+ $$self.$$set = $$props => {
602
+ if ('id' in $$props) $$invalidate(0, id = $$props.id);
603
+ if ('upsideDown' in $$props) $$invalidate(1, upsideDown = $$props.upsideDown);
604
+ if ('content' in $$props) $$invalidate(2, content = $$props.content);
605
+ if ('contentZoom' in $$props) $$invalidate(3, contentZoom = $$props.contentZoom);
606
+ if ('lineWidthZoom' in $$props) $$invalidate(4, lineWidthZoom = $$props.lineWidthZoom);
607
+ if ('lineHeightZoom' in $$props) $$invalidate(5, lineHeightZoom = $$props.lineHeightZoom);
608
+ if ('destroying' in $$props) $$invalidate(6, destroying = $$props.destroying);
609
+ if ('folded' in $$props) $$invalidate(12, folded = $$props.folded);
610
+ if ('dispose' in $$props) $$invalidate(13, dispose = $$props.dispose);
611
+ if ('events' in $$props) $$invalidate(14, events = $$props.events);
612
+ if ('hooks' in $$props) $$invalidate(15, hooks = $$props.hooks);
613
+ };
614
+
615
+ return [
616
+ id,
617
+ upsideDown,
618
+ content,
619
+ contentZoom,
620
+ lineWidthZoom,
621
+ lineHeightZoom,
622
+ destroying,
623
+ contentWidth,
624
+ contentHeight,
625
+ contentDom,
626
+ show,
627
+ handleClickContent,
628
+ folded,
629
+ dispose,
630
+ events,
631
+ hooks,
632
+ div2_binding
633
+ ];
634
+ }
635
+
636
+ class Tag extends internal.SvelteComponent {
637
+ constructor(options) {
638
+ super();
639
+
640
+ internal.init(
641
+ this,
642
+ options,
643
+ instance,
644
+ create_fragment,
645
+ internal.safe_not_equal,
646
+ {
647
+ id: 0,
648
+ upsideDown: 1,
649
+ content: 2,
650
+ contentZoom: 3,
651
+ lineWidthZoom: 4,
652
+ lineHeightZoom: 5,
653
+ destroying: 6,
654
+ folded: 12,
655
+ dispose: 13,
656
+ events: 14,
657
+ hooks: 15
658
+ },
659
+ add_css
660
+ );
661
+ }
662
+ }
663
+
664
+ const pluginStyle = {
665
+ position: 'absolute',
666
+ top: '0px',
667
+ left: '0px',
668
+ width: '100%',
669
+ height: '100%',
670
+ pointerEvents: 'none',
671
+ };
672
+
673
+ const DEFAULT_OPEN_DELIMITER = '<';
674
+ const DEFAULT_CLOSE_DELIMITER = '>';
675
+ const DEFAULT_DELIMITER = '%';
676
+ const DEFAULT_LOCALS_NAME = 'locals';
677
+ const REGEX_STRING = '(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)';
678
+ const ENCODE_HTML_RULES = {
679
+ '&': '&amp',
680
+ '<': '&lt',
681
+ '>': '&gt',
682
+ '"': '&#34',
683
+ "'": '&#39'
684
+ };
685
+ const TEMPLATE_MODES = {
686
+ EVAL: 'eval',
687
+ ESCAPED: 'escaped',
688
+ RAW: 'raw',
689
+ COMMENT: 'comment',
690
+ LITERAL: 'literal',
691
+ };
692
+ function stripSemi(str) {
693
+ return str.replace(/;(\s*$)/, '$1');
694
+ }
695
+ function render(template, data) {
696
+ const templ = new Template(template);
697
+ return templ.compileFunction()(data);
698
+ }
699
+ class Template {
700
+ templateText;
701
+ mode = null;
702
+ truncate = false;
703
+ currentLine = 1;
704
+ source = '';
705
+ regex = new RegExp(REGEX_STRING);
706
+ constructor(text) {
707
+ this.templateText = text;
708
+ }
709
+ compileFunction() {
710
+ let src;
711
+ const prepended = ' var __output = "";\n' +
712
+ ' function __append(s) { if (s !== undefined && s !== null) __output += s }\n' +
713
+ ' with (' + DEFAULT_LOCALS_NAME + ' || {}) {' + '\n';
714
+ const appended = ' }' + '\n return __output;' + '\n';
715
+ const escapeFn = function (markup) {
716
+ return markup == undefined
717
+ ? ''
718
+ : String(markup)
719
+ .replace(/[&<>'"]/g, function (c) {
720
+ return ENCODE_HTML_RULES[c] || c;
721
+ });
722
+ };
723
+ this._generateSource();
724
+ this.source = prepended + this.source + appended;
725
+ src = this.source;
726
+ src = 'escapeFn = escapeFn || ' + escapeFn.toString() + ';' + '\n' + src;
727
+ return new Function(DEFAULT_LOCALS_NAME + ', escapeFn', src);
728
+ }
729
+ _generateSource() {
730
+ this.templateText =
731
+ this.templateText.replace(/[ \t]*<%_/gm, '<%_').replace(/_%>[ \t]*/gm, '_%>');
732
+ const matches = this._parseTemplateText();
733
+ const d = DEFAULT_DELIMITER;
734
+ const o = DEFAULT_OPEN_DELIMITER;
735
+ const c = DEFAULT_CLOSE_DELIMITER;
736
+ if (matches && matches.length) {
737
+ matches.forEach((line, index) => {
738
+ let closing;
739
+ if (line.indexOf(o + d) === 0
740
+ && line.indexOf(o + d + d) !== 0) {
741
+ closing = matches[index + 2];
742
+ if (!(closing == d + c || closing == '-' + d + c || closing == '_' + d + c)) {
743
+ throw new Error('Could not find matching close tag for "' + line + '".');
744
+ }
745
+ }
746
+ this._scanLine(line);
747
+ });
748
+ }
749
+ }
750
+ _parseTemplateText() {
751
+ let str = this.templateText;
752
+ const pat = this.regex;
753
+ let result = pat.exec(str);
754
+ const arr = [];
755
+ let firstPos;
756
+ while (result) {
757
+ firstPos = result.index;
758
+ if (firstPos !== 0) {
759
+ arr.push(str.substring(0, firstPos));
760
+ str = str.slice(firstPos);
761
+ }
762
+ arr.push(result[0]);
763
+ str = str.slice(result[0].length);
764
+ result = pat.exec(str);
765
+ }
766
+ if (str) {
767
+ arr.push(str);
768
+ }
769
+ return arr;
770
+ }
771
+ _addOutput(line) {
772
+ if (this.truncate) {
773
+ line = line.replace(/^(?:\r\n|\r|\n)/, '');
774
+ this.truncate = false;
775
+ }
776
+ if (!line)
777
+ return line;
778
+ line = line.replace(/\\/g, '\\\\');
779
+ line = line.replace(/\n/g, '\\n');
780
+ line = line.replace(/\r/g, '\\r');
781
+ line = line.replace(/"/g, '\\"');
782
+ this.source += ' ; __append("' + line + '")' + '\n';
783
+ }
784
+ _scanLine(line) {
785
+ const d = DEFAULT_DELIMITER;
786
+ const o = DEFAULT_OPEN_DELIMITER;
787
+ const c = DEFAULT_CLOSE_DELIMITER;
788
+ line.split('\n').length - 1;
789
+ switch (line) {
790
+ case o + d:
791
+ case o + d + '_':
792
+ this.mode = TEMPLATE_MODES.EVAL;
793
+ break;
794
+ case o + d + '=':
795
+ this.mode = TEMPLATE_MODES.ESCAPED;
796
+ break;
797
+ case o + d + '-':
798
+ this.mode = TEMPLATE_MODES.RAW;
799
+ break;
800
+ case o + d + '#':
801
+ this.mode = TEMPLATE_MODES.COMMENT;
802
+ break;
803
+ case o + d + d:
804
+ this.mode = TEMPLATE_MODES.LITERAL;
805
+ this.source += ' ; __append("' + line.replace(o + d + d, o + d) + '")' + '\n';
806
+ break;
807
+ case d + d + c:
808
+ this.mode = TEMPLATE_MODES.LITERAL;
809
+ this.source += ' ; __append("' + line.replace(d + d + c, d + c) + '")' + '\n';
810
+ break;
811
+ case d + c:
812
+ case '-' + d + c:
813
+ case '_' + d + c:
814
+ if (this.mode == TEMPLATE_MODES.LITERAL) {
815
+ this._addOutput(line);
816
+ }
817
+ this.mode = null;
818
+ this.truncate = line.indexOf('-') === 0 || line.indexOf('_') === 0;
819
+ break;
820
+ default:
821
+ if (this.mode) {
822
+ switch (this.mode) {
823
+ case TEMPLATE_MODES.EVAL:
824
+ case TEMPLATE_MODES.ESCAPED:
825
+ case TEMPLATE_MODES.RAW:
826
+ if (line.lastIndexOf('//') > line.lastIndexOf('\n')) {
827
+ line += '\n';
828
+ }
829
+ }
830
+ switch (this.mode) {
831
+ case TEMPLATE_MODES.EVAL:
832
+ this.source += ' ; ' + line + '\n';
833
+ break;
834
+ case TEMPLATE_MODES.ESCAPED:
835
+ this.source += ' ; __append(escapeFn(' + stripSemi(line) + '))' + '\n';
836
+ break;
837
+ case TEMPLATE_MODES.RAW:
838
+ this.source += ' ; __append(' + stripSemi(line) + ')' + '\n';
839
+ break;
840
+ case TEMPLATE_MODES.COMMENT:
841
+ break;
842
+ case TEMPLATE_MODES.LITERAL:
843
+ this._addOutput(line);
844
+ break;
845
+ }
846
+ }
847
+ else {
848
+ this._addOutput(line);
849
+ }
850
+ }
851
+ }
852
+ }
853
+
854
+ const MESH_SIZE = 0.001;
855
+ const RAY_ORIGIN_Y = 1.4;
856
+ const RAY_TOLERANT_DISTANCE = 0.01;
857
+ const BLUR_IMAGE_URL = 'https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png';
858
+ const MIN_DISTANCE = 1.2;
859
+ const MAX_DISTANCE = 3.5;
860
+ /**
861
+ * 空间游走标签插件
862
+ */
863
+ const PanoSpatialTagPlugin = (five$1, params) => {
864
+ let wrapper = params?.container;
865
+ const wait = params?.wait ?? 200;
866
+ const maxNumberOnScreen = params?.maxNumberOnScreen ?? 3;
867
+ const minRad = params?.minRad ?? Math.PI / 4;
868
+ const nearTolerance = params?.nearTolerance ?? 100;
869
+ const upsideHeight = params?.upsideHeight ?? 1.6;
870
+ // const foldPercent = params?.foldPercent ?? 20
871
+ const css3DRender = CSS3DRenderPlugin(five$1);
872
+ const container = document.createElement('div');
873
+ container.classList.add('PanoSpatialTagPlugin');
874
+ Object.assign(container.style, pluginStyle);
875
+ const hooks = new five.Subscribe();
876
+ let blurImage = new Image();
877
+ blurImage.src = BLUR_IMAGE_URL;
878
+ const state = {
879
+ points: [],
880
+ origins: [],
881
+ tags: [],
882
+ template: '',
883
+ events: {},
884
+ render,
885
+ folded: false,
886
+ enabled: true,
887
+ forbidden: true,
888
+ };
889
+ const origins = new Origins({
890
+ target: container,
891
+ props: { origins: state.origins },
892
+ });
893
+ const onCameraUpdate = (pose, userAction) => {
894
+ updateOrigins();
895
+ if (userAction) {
896
+ updateTags();
897
+ // state.tags.forEach(tag => {
898
+ // const mouse = tag.position.clone().project(five.camera)
899
+ // const top = ( - mouse.y + 1 ) / 2 * 100
900
+ // })
901
+ }
902
+ };
903
+ const onPanoArrived = () => {
904
+ if (state.forbidden) {
905
+ state.forbidden = false;
906
+ updateTags();
907
+ }
908
+ };
909
+ const onPanoWillArrive = (pano, pose) => {
910
+ if (state.tags.length === 0)
911
+ return;
912
+ const rotateRad = pose.longitude - five$1.state.longitude;
913
+ const camera = five$1.camera.clone();
914
+ camera.position.copy(pose.offset);
915
+ camera.rotateOnWorldAxis(new THREE__namespace.Vector3(0, 1, 0), rotateRad);
916
+ camera.updateProjectionMatrix();
917
+ camera.updateMatrixWorld(true);
918
+ const frustum = new THREE__namespace.Frustum();
919
+ const projScreenMatrix = new THREE__namespace.Matrix4();
920
+ projScreenMatrix.multiplyMatrices(camera.projectionMatrix, camera.matrixWorldInverse);
921
+ frustum.setFromProjectionMatrix(projScreenMatrix);
922
+ state.tags.forEach(tag => {
923
+ const distance = camera.position.clone().setY(RAY_ORIGIN_Y).distanceTo(tag.position);
924
+ if (distance < MIN_DISTANCE || distance > MAX_DISTANCE)
925
+ return tag.destroying = true;
926
+ if (!frustum.containsPoint(tag.position))
927
+ return tag.destroying = true;
928
+ const v = tag.position.clone().sub(camera.position).setY(0);
929
+ if (v.angleTo(tag.normal) > Math.PI / 2 - minRad &&
930
+ v.angleTo(tag.normal) < Math.PI / 2 + minRad)
931
+ return tag.destroying = true;
932
+ });
933
+ state.tags.forEach(tag => {
934
+ if (tag.destroying) {
935
+ tag.app.$set({
936
+ contentZoom: 0.1 + camera.position.distanceTo(tag.position) / MAX_DISTANCE,
937
+ lineWidthZoom: 0.38 * (0.01 + camera.position.distanceTo(tag.position) / MAX_DISTANCE),
938
+ destroying: tag.destroying,
939
+ });
940
+ }
941
+ else {
942
+ tag.app.$set({
943
+ lineWidthZoom: 0.38 * (0.01 + camera.position.distanceTo(tag.position) / MAX_DISTANCE),
944
+ lineHeightZoom: 0.4 + (camera.position.distanceTo(tag.position) - MIN_DISTANCE) / MAX_DISTANCE * 0.6,
945
+ contentZoom: 0.1 + camera.position.distanceTo(tag.position) / MAX_DISTANCE,
946
+ });
947
+ }
948
+ });
949
+ setTimeout(() => {
950
+ state.tags.forEach(tag => {
951
+ if (tag.destroying) {
952
+ tag.app.$destroy();
953
+ tag = null;
954
+ }
955
+ });
956
+ state.tags = state.tags.filter(tag => !tag.destroying);
957
+ updateOrigins();
958
+ }, 1900);
959
+ };
960
+ const onModeChange = (mode) => {
961
+ if (mode !== five.Five.Mode.Panorama && !state.forbidden) {
962
+ origins.$set({ origins: [] });
963
+ state.tags.forEach(tag => {
964
+ tag.app.$destroy();
965
+ tag = null;
966
+ });
967
+ state.origins = [];
968
+ state.tags = [];
969
+ state.forbidden = true;
970
+ }
971
+ };
972
+ const updateOrigins = () => {
973
+ if (state.forbidden || !state.enabled)
974
+ return;
975
+ const camera = five$1.camera;
976
+ const direction = camera.getWorldDirection(new THREE__namespace.Vector3());
977
+ state.origins = state.tags.map(tag => {
978
+ const mouse = tag.position.clone().project(camera);
979
+ const front = tag.position.clone().sub(camera.position).setY(0)
980
+ .angleTo(direction.setY(0)) < Math.PI / 2;
981
+ return {
982
+ id: tag.id,
983
+ front,
984
+ left: (mouse.x + 1) / 2 * 100,
985
+ top: (-mouse.y + 1) / 2 * 100,
986
+ destroying: tag.destroying,
987
+ };
988
+ });
989
+ origins.$set({ origins: state.origins });
990
+ };
991
+ const updateTags = () => {
992
+ if (state.forbidden || !state.enabled)
993
+ return;
994
+ if (state.timeoutId)
995
+ clearTimeout(state.timeoutId);
996
+ state.timeoutId = setTimeout(() => {
997
+ state.timeoutId = undefined;
998
+ const newTags = getNewTags();
999
+ if (newTags.length) {
1000
+ state.tags = state.tags.concat(newTags);
1001
+ updateOrigins();
1002
+ }
1003
+ }, wait);
1004
+ };
1005
+ const getNewTags = () => {
1006
+ const { clientWidth, clientHeight } = five$1.getElement();
1007
+ const newTags = [];
1008
+ const camera = five$1.camera;
1009
+ const frustum = new THREE__namespace.Frustum();
1010
+ const projScreenMatrix = new THREE__namespace.Matrix4();
1011
+ const direction = camera.getWorldDirection(new THREE__namespace.Vector3());
1012
+ projScreenMatrix.multiplyMatrices(camera.projectionMatrix, camera.matrixWorldInverse);
1013
+ frustum.setFromProjectionMatrix(projScreenMatrix);
1014
+ const frontTagLength = state.tags.filter(tag => frustum.containsPoint(tag.position) && !tag.destroying).length;
1015
+ const points = state.points.reduce((result, point) => {
1016
+ if (state.tags.find(tag => point.id === tag.id && !tag.destroying))
1017
+ return result;
1018
+ const distance = camera.position.clone().setY(RAY_ORIGIN_Y).distanceTo(point.position);
1019
+ if (distance < MIN_DISTANCE || distance > MAX_DISTANCE)
1020
+ return result;
1021
+ if (!frustum.containsPoint(point.position))
1022
+ return result;
1023
+ const v = point.position.clone().sub(camera.position).setY(0);
1024
+ if (v.angleTo(point.normal) > Math.PI / 2 - minRad &&
1025
+ v.angleTo(point.normal) < Math.PI / 2 + minRad)
1026
+ return result;
1027
+ const mouse = point.position.clone().project(camera);
1028
+ if (!state.tags.every(tag => {
1029
+ if (tag.position.clone().sub(camera.position).setY(0)
1030
+ .angleTo(direction.setY(0)) > Math.PI / 2)
1031
+ return true;
1032
+ const _mouse = tag.position.clone().project(camera);
1033
+ return Math.sqrt(Math.pow((mouse.x - _mouse.x) / 2 * clientWidth, 2) +
1034
+ Math.pow((mouse.y - _mouse.y) / 2 * clientHeight, 2)) > nearTolerance;
1035
+ }))
1036
+ return result;
1037
+ const newPoint = {
1038
+ id: point.id,
1039
+ position: point.position,
1040
+ normal: point.normal,
1041
+ replacement: point.replacement,
1042
+ weight: point.weight,
1043
+ distance,
1044
+ };
1045
+ let index;
1046
+ for (let i = 0, l = result.length; i < l; i++) {
1047
+ const anotherPoint = result[i];
1048
+ if (newPoint.weight > anotherPoint.weight) {
1049
+ index = i;
1050
+ break;
1051
+ }
1052
+ if (newPoint.distance < anotherPoint.distance) {
1053
+ index = i;
1054
+ break;
1055
+ }
1056
+ }
1057
+ if (index !== undefined)
1058
+ result.splice(index, 0, newPoint);
1059
+ else
1060
+ result.push(newPoint);
1061
+ return result;
1062
+ }, []);
1063
+ for (let i = 0, l = points.length; i < l; i++) {
1064
+ if (frontTagLength + newTags.length >= maxNumberOnScreen)
1065
+ break;
1066
+ const point = points[i];
1067
+ if (newTags.find(tag => point.id === tag.id))
1068
+ continue;
1069
+ const mouse = point.position.clone().project(camera);
1070
+ if (!state.tags.concat(newTags).every(tag => {
1071
+ if (tag.position.clone().sub(camera.position).setY(0)
1072
+ .angleTo(direction.setY(0)) > Math.PI / 2)
1073
+ return true;
1074
+ const _mouse = tag.position.clone().project(camera);
1075
+ return Math.sqrt(Math.pow((mouse.x - _mouse.x) / 2 * clientWidth, 2) +
1076
+ Math.pow((mouse.y - _mouse.y) / 2 * clientHeight, 2)) > nearTolerance;
1077
+ }))
1078
+ continue;
1079
+ const raycaster = new THREE__namespace.Raycaster(camera.position.clone().setY(RAY_ORIGIN_Y), point.position.clone().sub(camera.position.clone().setY(RAY_ORIGIN_Y)).normalize(), 0, point.distance + RAY_TOLERANT_DISTANCE);
1080
+ const [intersect] = five$1.model.intersectRaycaster(raycaster);
1081
+ if (!intersect)
1082
+ continue;
1083
+ if (point.distance - intersect.distance < RAY_TOLERANT_DISTANCE) {
1084
+ const { position, normal, id, replacement } = point;
1085
+ const plane = new THREE__namespace.Plane().setFromNormalAndCoplanarPoint(normal, position);
1086
+ const right = position.clone().sub(camera.position)
1087
+ .cross(new THREE__namespace.Vector3(0, 1, 0)).setLength(MESH_SIZE);
1088
+ const square = [
1089
+ position.clone(),
1090
+ position.clone().add(right),
1091
+ position.clone().add(new THREE__namespace.Vector3(0, MESH_SIZE, 0)).add(right),
1092
+ position.clone().add(new THREE__namespace.Vector3(0, MESH_SIZE, 0)),
1093
+ ].map(v => plane.projectPoint(v, new THREE__namespace.Vector3()));
1094
+ const { container, dispose } = css3DRender.create3DDomContainer(square) || {};
1095
+ const app = new Tag({
1096
+ target: container,
1097
+ props: {
1098
+ id,
1099
+ content: state.render(state.template, replacement),
1100
+ lineWidthZoom: 0.38 * (0.01 + camera.position.distanceTo(position) / MAX_DISTANCE),
1101
+ lineHeightZoom: 0.4 + (camera.position.distanceTo(position) - MIN_DISTANCE) / MAX_DISTANCE * 0.6,
1102
+ contentZoom: 0.1 + camera.position.distanceTo(position) / MAX_DISTANCE,
1103
+ upsideDown: position.y > upsideHeight,
1104
+ folded: state.folded,
1105
+ events: state.events,
1106
+ hooks,
1107
+ dispose,
1108
+ },
1109
+ });
1110
+ newTags.push({
1111
+ position,
1112
+ normal,
1113
+ id,
1114
+ app,
1115
+ });
1116
+ }
1117
+ }
1118
+ return newTags;
1119
+ };
1120
+ /** 标签数据加载
1121
+ * @param data.points {Array} 标签数据
1122
+ * @param data.enabled {Boolean} 插件是否启用
1123
+ * @param data.folded {Boolean} 标签是否默认展开
1124
+ */
1125
+ const load = (data) => {
1126
+ state.points = data.points.map(point => {
1127
+ return {
1128
+ id: point.id,
1129
+ position: new THREE__namespace.Vector3().fromArray(point.position),
1130
+ normal: new THREE__namespace.Vector3().fromArray(point.normal),
1131
+ replacement: point.replacement ?? {},
1132
+ weight: point.weight ?? -1,
1133
+ };
1134
+ });
1135
+ if (data.render)
1136
+ state.render = data.render;
1137
+ if (data.template)
1138
+ state.template = data.template;
1139
+ if (data.events)
1140
+ state.events = data.events;
1141
+ if (data.enabled === false)
1142
+ state.enabled = data.enabled;
1143
+ if (data.folded === true)
1144
+ state.folded = data.folded;
1145
+ };
1146
+ /** 标签启用
1147
+ * 启用插件并重新计算展示标签
1148
+ */
1149
+ const enable = () => {
1150
+ state.enabled = true;
1151
+ updateTags();
1152
+ };
1153
+ /** 插件禁用
1154
+ * 1. 禁用同时会清除已展示的标签
1155
+ * 2. 再次启用时会重新计算展示标签
1156
+ */
1157
+ const disable = () => {
1158
+ state.enabled = false;
1159
+ origins.$set({ origins: [] });
1160
+ state.tags.forEach(tag => {
1161
+ tag.app.$destroy();
1162
+ tag = null;
1163
+ });
1164
+ state.origins = [];
1165
+ state.tags = [];
1166
+ };
1167
+ /** 展开所有标签
1168
+ * 1. 展开所有收起的标签
1169
+ * 2. 新标签会默认展开
1170
+ */
1171
+ const unfoldAll = () => {
1172
+ state.folded = false;
1173
+ state.tags.forEach(tag => {
1174
+ tag.app.$set({ folded: state.folded });
1175
+ });
1176
+ };
1177
+ /** 收起所有标签
1178
+ * 1. 收起所有展开的标签
1179
+ * 2. 新标签会默认收起
1180
+ */
1181
+ const foldAll = () => {
1182
+ state.folded = true;
1183
+ state.tags.forEach(tag => {
1184
+ tag.app.$set({ folded: state.folded });
1185
+ });
1186
+ };
1187
+ /** 展开单个标签
1188
+ * @param id {Number | String} 标签ID
1189
+ */
1190
+ const unfold = (id) => {
1191
+ state.tags.forEach(tag => {
1192
+ if (tag.id === id)
1193
+ tag.app.$set({ folded: false });
1194
+ });
1195
+ };
1196
+ /** 收起单个标签
1197
+ * @param id {Number | String} 标签ID
1198
+ */
1199
+ const fold = (id) => {
1200
+ state.tags.forEach(tag => {
1201
+ if (tag.id === id)
1202
+ tag.app.$set({ folded: true });
1203
+ });
1204
+ };
1205
+ const dispose = () => {
1206
+ blurImage = null;
1207
+ css3DRender.disposeAll();
1208
+ origins.$destroy();
1209
+ state.tags.forEach(tag => {
1210
+ tag.app.$destroy();
1211
+ tag = null;
1212
+ });
1213
+ state.origins = [];
1214
+ state.tags = [];
1215
+ five$1.off('panoWillArrive', onPanoWillArrive);
1216
+ five$1.off('panoArrived', onPanoArrived);
1217
+ five$1.off('modeChange', onModeChange);
1218
+ five$1.off('cameraUpdate', onCameraUpdate);
1219
+ };
1220
+ if (five$1?.model?.loaded) {
1221
+ if (!wrapper)
1222
+ wrapper = five$1.getElement().parentElement;
1223
+ wrapper.appendChild(container);
1224
+ state.forbidden = false;
1225
+ updateTags();
1226
+ five$1.on('panoWillArrive', onPanoWillArrive);
1227
+ five$1.on('panoArrived', onPanoArrived);
1228
+ five$1.on('modeChange', onModeChange);
1229
+ five$1.on('cameraUpdate', onCameraUpdate);
1230
+ }
1231
+ else {
1232
+ five$1.once('modelBvhLoaded', () => {
1233
+ if (!wrapper)
1234
+ wrapper = five$1.getElement().parentElement;
1235
+ wrapper.appendChild(container);
1236
+ state.forbidden = false;
1237
+ updateTags();
1238
+ five$1.on('panoWillArrive', onPanoWillArrive);
1239
+ five$1.on('panoArrived', onPanoArrived);
1240
+ five$1.on('modeChange', onModeChange);
1241
+ five$1.on('cameraUpdate', onCameraUpdate);
1242
+ });
1243
+ }
1244
+ five$1.on('dispose', dispose);
1245
+ return {
1246
+ load,
1247
+ unfoldAll,
1248
+ foldAll,
1249
+ unfold,
1250
+ fold,
1251
+ enable,
1252
+ disable,
1253
+ hooks,
1254
+ dispose,
1255
+ };
1256
+ };
1257
+
1258
+ exports.PanoSpatialTagPlugin = PanoSpatialTagPlugin;
1259
+ exports["default"] = PanoSpatialTagPlugin;