@realsee/dnalogel 2.0.0-alpha.1 → 2.0.0-alpha.12

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 (388) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +45 -5
  3. package/TERMS.txt +56 -0
  4. package/dist/CSS3DRenderPlugin/index.d.ts +49 -0
  5. package/dist/CSS3DRenderPlugin/index.js +231 -0
  6. package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
  7. package/dist/CameraMovementPlugin/index.d.ts +7 -0
  8. package/dist/CameraMovementPlugin/index.js +302 -0
  9. package/dist/CameraMovementPlugin/typing.d.ts +68 -0
  10. package/dist/ModelChassisCompassPlugin/index.d.ts +19 -0
  11. package/dist/ModelChassisCompassPlugin/index.js +142 -0
  12. package/dist/ModelEntryDoorGuidePlugin/index.d.ts +26 -0
  13. package/dist/ModelEntryDoorGuidePlugin/index.js +196 -0
  14. package/dist/ModelItemLabelPlugin/events.type.d.ts +9 -0
  15. package/dist/ModelItemLabelPlugin/index.d.ts +4 -0
  16. package/dist/ModelItemLabelPlugin/index.js +678 -0
  17. package/dist/ModelItemLabelPlugin/typings.d.ts +55 -0
  18. package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
  19. package/dist/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
  20. package/dist/ModelRoomLabelPlugin/Controller.d.ts +36 -0
  21. package/dist/ModelRoomLabelPlugin/index.d.ts +12 -0
  22. package/dist/ModelRoomLabelPlugin/index.js +463 -0
  23. package/dist/ModelRoomLabelPlugin/typings.d.ts +35 -0
  24. package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
  25. package/dist/ModelViewPlugin/index.d.ts +17 -0
  26. package/dist/ModelViewPlugin/index.js +187 -0
  27. package/dist/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
  28. package/dist/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
  29. package/dist/PanoCompassPlugin/index.d.ts +51 -0
  30. package/dist/PanoCompassPlugin/index.js +521 -0
  31. package/dist/PanoCursorRaycasterPlugin/index.d.ts +48 -0
  32. package/dist/PanoCursorRaycasterPlugin/index.js +88 -0
  33. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
  34. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
  35. package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
  36. package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
  37. package/dist/PanoMeasurePlugin/Controller/index.d.ts +61 -0
  38. package/dist/PanoMeasurePlugin/Model/index.d.ts +38 -0
  39. package/dist/PanoMeasurePlugin/Model/line.d.ts +30 -0
  40. package/dist/PanoMeasurePlugin/Model/point.d.ts +16 -0
  41. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
  42. package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
  43. package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
  44. package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
  45. package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +22 -0
  46. package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
  47. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
  48. package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
  49. package/dist/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +6 -0
  50. package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
  51. package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +12 -0
  52. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
  53. package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
  54. package/dist/PanoMeasurePlugin/index.d.ts +7 -0
  55. package/dist/PanoMeasurePlugin/index.js +4789 -0
  56. package/dist/PanoMeasurePlugin/typings/data.d.ts +28 -0
  57. package/dist/PanoMeasurePlugin/typings/event.type.d.ts +28 -0
  58. package/dist/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
  59. package/dist/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
  60. package/dist/PanoMeasurePlugin/utils/constants.d.ts +4 -0
  61. package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
  62. package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
  63. package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
  64. package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
  65. package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
  66. package/dist/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
  67. package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
  68. package/dist/PanoMeasurePlugin/utils/line.d.ts +17 -0
  69. package/dist/PanoMeasurePlugin/utils/math.d.ts +17 -0
  70. package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -0
  71. package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
  72. package/dist/PanoRulerPlugin/index.d.ts +31 -0
  73. package/dist/PanoRulerPlugin/index.js +610 -0
  74. package/dist/PanoRulerPlugin/style.d.ts +2 -0
  75. package/dist/PanoRulerPlugin/typings.d.ts +21 -0
  76. package/dist/PanoSpatialTagPlugin/index.d.ts +33 -0
  77. package/dist/PanoSpatialTagPlugin/index.js +1259 -0
  78. package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
  79. package/dist/PanoSpatialTagPlugin/style.d.ts +1 -0
  80. package/dist/PanoSpatialTagPlugin/typings.d.ts +40 -0
  81. package/dist/floorplan/Assets/camera.d.ts +1 -0
  82. package/dist/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
  83. package/dist/floorplan/ModelFloorplanPlugin/Assets/compass.d.ts +1 -0
  84. package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +105 -0
  85. package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +9 -0
  86. package/dist/floorplan/ModelFloorplanPlugin/index.js +3842 -0
  87. package/dist/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +23 -0
  88. package/dist/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +15 -0
  89. package/dist/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +14 -0
  90. package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +28 -0
  91. package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +8 -0
  92. package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +1673 -0
  93. package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +62 -0
  94. package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -0
  95. package/dist/floorplan/TopviewFloorplanPlugin/index.js +3481 -0
  96. package/dist/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
  97. package/dist/floorplan/constant.d.ts +5 -0
  98. package/dist/floorplan/typings/floorplanData.d.ts +137 -0
  99. package/dist/floorplan/typings/floorplanServerData.d.ts +131 -0
  100. package/dist/floorplan/typings/utility.d.ts +2 -0
  101. package/dist/floorplan/utils/formatData.d.ts +5 -0
  102. package/dist/floorplan/utils/formatPosition.d.ts +36 -0
  103. package/dist/index.d.ts +27 -0
  104. package/dist/index.es.js +13572 -0
  105. package/dist/index.js +13613 -0
  106. package/dist/index.umd.js +13606 -0
  107. package/dist/shared-utils/Preloader.d.ts +6 -0
  108. package/dist/shared-utils/Subscribe.d.ts +45 -0
  109. package/dist/shared-utils/animationFrame/BetterTween.d.ts +11 -0
  110. package/dist/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
  111. package/dist/shared-utils/animationFrame/formatRad.d.ts +15 -0
  112. package/dist/shared-utils/animationFrame/index.d.ts +15 -0
  113. package/dist/shared-utils/animationFrame/tween.d.ts +75 -0
  114. package/dist/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
  115. package/dist/shared-utils/createCanvasTextTexture.d.ts +8 -0
  116. package/dist/shared-utils/createLine/index.d.ts +3 -0
  117. package/dist/shared-utils/debounce.d.ts +6 -0
  118. package/dist/shared-utils/equal.d.ts +11 -0
  119. package/dist/shared-utils/filter.d.ts +27 -0
  120. package/dist/shared-utils/five/changeMode.d.ts +2 -0
  121. package/dist/shared-utils/five/useFivePlugin.d.ts +1 -0
  122. package/dist/shared-utils/formatRad.d.ts +7 -0
  123. package/dist/shared-utils/getPxmm.d.ts +11 -0
  124. package/dist/shared-utils/getRandomColor.d.ts +1 -0
  125. package/dist/shared-utils/isNil.d.ts +10 -0
  126. package/dist/shared-utils/isTruelyObject.d.ts +18 -0
  127. package/dist/shared-utils/math/evenNumber.d.ts +3 -0
  128. package/dist/shared-utils/math/planimetry.d.ts +116 -0
  129. package/dist/shared-utils/math/rad2Deg.d.ts +1 -0
  130. package/dist/shared-utils/nearlyEqual.d.ts +7 -0
  131. package/dist/shared-utils/nextFrame.d.ts +1 -0
  132. package/dist/shared-utils/noop.d.ts +5 -0
  133. package/dist/shared-utils/object3d2LocalMatrix.d.ts +12 -0
  134. package/dist/shared-utils/px2rem.d.ts +1 -0
  135. package/dist/shared-utils/removeArrayItem.d.ts +7 -0
  136. package/dist/shared-utils/tap.d.ts +8 -0
  137. package/dist/shared-utils/three/centerPoint.d.ts +2 -0
  138. package/dist/shared-utils/three/getExtraModelLoader.d.ts +6 -0
  139. package/dist/shared-utils/three/getNormal.d.ts +2 -0
  140. package/dist/shared-utils/three/getTextureLoader.d.ts +6 -0
  141. package/dist/shared-utils/three/loadFbxObj.d.ts +2 -0
  142. package/dist/shared-utils/three/loadTexture.d.ts +2 -0
  143. package/dist/shared-utils/three/transformPositionToVector3.d.ts +7 -0
  144. package/dist/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
  145. package/dist/shared-utils/throttle.d.ts +7 -0
  146. package/dist/shared-utils/tinyEJSrender.d.ts +5 -0
  147. package/dist/shared-utils/to.d.ts +8 -0
  148. package/dist/shared-utils/useDebounce.d.ts +8 -0
  149. package/dist/shared-utils/useThrottle.d.ts +8 -0
  150. package/dist/shared-utils/uuid.d.ts +4 -0
  151. package/dist/shared-utils/vectorTocoordinates.d.ts +7 -0
  152. package/dist/typings/math.type.d.ts +44 -0
  153. package/dist/typings/utils.type.d.ts +2 -0
  154. package/docs/.nojekyll +1 -0
  155. package/docs/assets/highlight.css +78 -0
  156. package/docs/assets/icons.css +1043 -0
  157. package/docs/assets/icons.png +0 -0
  158. package/docs/assets/icons@2x.png +0 -0
  159. package/docs/assets/main.js +52 -0
  160. package/docs/assets/search.js +1 -0
  161. package/docs/assets/style.css +1413 -0
  162. package/docs/assets/widgets.png +0 -0
  163. package/docs/assets/widgets@2x.png +0 -0
  164. package/docs/classes/ModelRoomLabelController.html +20 -0
  165. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -0
  166. package/docs/enums/ModelFloorplanErrorType.html +1 -0
  167. package/docs/index.html +43 -0
  168. package/docs/interfaces/LineJson.html +1 -0
  169. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -0
  170. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -0
  171. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -0
  172. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -0
  173. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -0
  174. package/docs/interfaces/ModelFloorplanParameterType.html +1 -0
  175. package/docs/interfaces/ModelFloorplanViewEvent.html +5 -0
  176. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -0
  177. package/docs/interfaces/PanoCompassPluginData.html +1 -0
  178. package/docs/interfaces/PanoCompassPluginParameterType.html +1 -0
  179. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -0
  180. package/docs/interfaces/PanoRulerPluginExportType.html +1 -0
  181. package/docs/interfaces/PanoRulerPluginOptions.html +1 -0
  182. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -0
  183. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -0
  184. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -0
  185. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -0
  186. package/docs/interfaces/PointJson.html +1 -0
  187. package/docs/interfaces/RoomLabel.html +13 -0
  188. package/docs/interfaces/TopviewFloorplanPluginParameterType.html +1 -0
  189. package/docs/modules.html +28 -0
  190. package/libs/CSS3DRenderPlugin/index.js +11 -13
  191. package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
  192. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +420 -0
  193. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +133 -0
  194. package/libs/ModelItemLabelPlugin/events.type.d.ts +9 -0
  195. package/libs/ModelItemLabelPlugin/events.type.js +1 -0
  196. package/libs/ModelItemLabelPlugin/index.d.ts +4 -0
  197. package/libs/ModelItemLabelPlugin/index.js +170 -0
  198. package/libs/ModelItemLabelPlugin/typings.d.ts +55 -0
  199. package/libs/ModelItemLabelPlugin/typings.js +6 -0
  200. package/libs/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
  201. package/libs/ModelItemLabelPlugin/utils/parseData.js +7 -0
  202. package/libs/ModelRoomLabelPlugin/Controller.js +2 -2
  203. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +121 -0
  204. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +255 -0
  205. package/libs/ModelViewPlugin/index.js +6 -6
  206. package/libs/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
  207. package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -0
  208. package/libs/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
  209. package/libs/PanoCompassPlugin/getRoomInfoInstance.js +48 -0
  210. package/libs/PanoCompassPlugin/index.d.ts +51 -0
  211. package/libs/PanoCompassPlugin/index.js +171 -0
  212. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
  213. package/libs/PanoMeasurePlugin/Controller/BaseController.js +69 -0
  214. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
  215. package/libs/PanoMeasurePlugin/Controller/EditController.js +216 -0
  216. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
  217. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +44 -0
  218. package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
  219. package/libs/PanoMeasurePlugin/Controller/WatchController.js +223 -0
  220. package/libs/PanoMeasurePlugin/Controller/index.d.ts +61 -0
  221. package/libs/PanoMeasurePlugin/Controller/index.js +176 -0
  222. package/libs/PanoMeasurePlugin/Model/index.d.ts +38 -0
  223. package/libs/PanoMeasurePlugin/Model/index.js +114 -0
  224. package/libs/PanoMeasurePlugin/Model/line.d.ts +30 -0
  225. package/libs/PanoMeasurePlugin/Model/line.js +64 -0
  226. package/libs/PanoMeasurePlugin/Model/point.d.ts +16 -0
  227. package/libs/PanoMeasurePlugin/Model/point.js +28 -0
  228. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
  229. package/libs/PanoMeasurePlugin/Model/polyline.js +48 -0
  230. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
  231. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +15 -0
  232. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
  233. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +2 -0
  234. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
  235. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +2 -0
  236. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +22 -0
  237. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +108 -0
  238. package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
  239. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +33 -0
  240. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
  241. package/libs/PanoMeasurePlugin/Modules/GuideController.js +75 -0
  242. package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
  243. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +103 -0
  244. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +6 -0
  245. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +117 -0
  246. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
  247. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +102 -0
  248. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +12 -0
  249. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +35 -0
  250. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
  251. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +69 -0
  252. package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
  253. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +78 -0
  254. package/libs/PanoMeasurePlugin/index.d.ts +7 -0
  255. package/libs/PanoMeasurePlugin/index.js +5 -0
  256. package/libs/PanoMeasurePlugin/typings/data.d.ts +28 -0
  257. package/libs/PanoMeasurePlugin/typings/data.js +1 -0
  258. package/libs/PanoMeasurePlugin/typings/event.type.d.ts +28 -0
  259. package/libs/PanoMeasurePlugin/typings/event.type.js +1 -0
  260. package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
  261. package/libs/PanoMeasurePlugin/typings/utils.type.js +1 -0
  262. package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
  263. package/libs/PanoMeasurePlugin/utils/clearGroup.js +3 -0
  264. package/libs/PanoMeasurePlugin/utils/constants.d.ts +4 -0
  265. package/libs/PanoMeasurePlugin/utils/constants.js +31 -0
  266. package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
  267. package/libs/PanoMeasurePlugin/utils/distanceDom.js +114 -0
  268. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
  269. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +21 -0
  270. package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
  271. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +27 -0
  272. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
  273. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +9 -0
  274. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
  275. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +14 -0
  276. package/libs/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
  277. package/libs/PanoMeasurePlugin/utils/ironbox.js +1 -0
  278. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
  279. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +6 -0
  280. package/libs/PanoMeasurePlugin/utils/line.d.ts +17 -0
  281. package/libs/PanoMeasurePlugin/utils/line.js +32 -0
  282. package/libs/PanoMeasurePlugin/utils/math.d.ts +17 -0
  283. package/libs/PanoMeasurePlugin/utils/math.js +44 -0
  284. package/libs/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -0
  285. package/libs/PanoMeasurePlugin/utils/mouseGroup.js +21 -0
  286. package/libs/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
  287. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +6 -0
  288. package/libs/PanoRulerPlugin/index.d.ts +31 -0
  289. package/libs/PanoRulerPlugin/index.js +398 -0
  290. package/libs/PanoRulerPlugin/style.d.ts +2 -0
  291. package/libs/PanoRulerPlugin/style.js +88 -0
  292. package/libs/PanoRulerPlugin/typings.d.ts +21 -0
  293. package/libs/PanoRulerPlugin/typings.js +1 -0
  294. package/libs/PanoSpatialTagPlugin/Components/origins.js +168 -0
  295. package/libs/PanoSpatialTagPlugin/Components/tag.js +302 -0
  296. package/libs/PanoSpatialTagPlugin/index.d.ts +33 -0
  297. package/libs/PanoSpatialTagPlugin/index.js +411 -0
  298. package/libs/PanoSpatialTagPlugin/store.d.ts +1 -0
  299. package/libs/PanoSpatialTagPlugin/store.js +2 -0
  300. package/libs/PanoSpatialTagPlugin/style.d.ts +1 -0
  301. package/libs/PanoSpatialTagPlugin/style.js +8 -0
  302. package/libs/PanoSpatialTagPlugin/typings.d.ts +40 -0
  303. package/libs/PanoSpatialTagPlugin/typings.js +1 -0
  304. package/libs/floorplan/Components/BaseImage.js +217 -0
  305. package/libs/floorplan/Components/Normalmage.js +63 -0
  306. package/libs/floorplan/Components/RoomHighlight/Room.js +70 -0
  307. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +289 -0
  308. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +328 -0
  309. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +64 -0
  310. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +103 -0
  311. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +140 -0
  312. package/libs/floorplan/Components/SvgImage.js +83 -0
  313. package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.js +120 -0
  314. package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.js +114 -0
  315. package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.js +463 -0
  316. package/libs/floorplan/ModelFloorplanPlugin/Components/Main.js +383 -0
  317. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.js +171 -0
  318. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.js +265 -0
  319. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.js +301 -0
  320. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.js +219 -0
  321. package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -0
  322. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +6 -4
  323. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +152 -0
  324. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +248 -0
  325. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +154 -0
  326. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +312 -0
  327. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  328. package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +3 -0
  329. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +7 -5
  330. package/libs/floorplan/constant.d.ts +5 -0
  331. package/libs/floorplan/constant.js +6 -0
  332. package/libs/floorplan/typings/floorplanServerData.d.ts +4 -0
  333. package/libs/index.d.ts +19 -9
  334. package/libs/index.js +11 -3
  335. package/libs/shared-utils/getPxmm.d.ts +6 -1
  336. package/libs/shared-utils/getPxmm.js +26 -12
  337. package/libs/shared-utils/tinyEJSrender.d.ts +5 -0
  338. package/libs/shared-utils/tinyEJSrender.js +180 -0
  339. package/package.json +23 -13
  340. package/dist/dnalogel.es.js +0 -37145
  341. package/dist/dnalogel.umd.js +0 -2
  342. package/dist/style.css +0 -1
  343. package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte +0 -63
  344. package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte.map +0 -1
  345. package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte +0 -80
  346. package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte.map +0 -1
  347. package/libs/floorplan/Components/BaseImage.svelte +0 -25
  348. package/libs/floorplan/Components/BaseImage.svelte.map +0 -1
  349. package/libs/floorplan/Components/Normalmage.svelte +0 -11
  350. package/libs/floorplan/Components/Normalmage.svelte.map +0 -1
  351. package/libs/floorplan/Components/RoomHighlight/Room.svelte +0 -21
  352. package/libs/floorplan/Components/RoomHighlight/Room.svelte.map +0 -1
  353. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte +0 -60
  354. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte.map +0 -1
  355. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte +0 -35
  356. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte.map +0 -1
  357. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte +0 -7
  358. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte.map +0 -1
  359. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte +0 -16
  360. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte.map +0 -1
  361. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte +0 -17
  362. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte.map +0 -1
  363. package/libs/floorplan/Components/SvgImage.svelte +0 -25
  364. package/libs/floorplan/Components/SvgImage.svelte.map +0 -1
  365. package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte +0 -46
  366. package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte.map +0 -1
  367. package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte +0 -48
  368. package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte.map +0 -1
  369. package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte +0 -37
  370. package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +0 -1
  371. package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte +0 -50
  372. package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte.map +0 -1
  373. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte +0 -41
  374. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte.map +0 -1
  375. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte +0 -25
  376. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte.map +0 -1
  377. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte +0 -148
  378. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte.map +0 -1
  379. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte +0 -15
  380. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte.map +0 -1
  381. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte +0 -84
  382. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte.map +0 -1
  383. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte +0 -18
  384. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +0 -1
  385. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte +0 -40
  386. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte.map +0 -1
  387. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte +0 -61
  388. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte.map +0 -1
@@ -0,0 +1,88 @@
1
+ const PanoRulerStyle = `<style type="text/css">
2
+ .PanoRulerPlugin-rule-line {
3
+ position: absolute;
4
+ transform-origin: left center;
5
+ width: 0;
6
+ height: 0.0625rem;
7
+ }
8
+
9
+ .PanoRulerPlugin-rule-line::after {
10
+ content: '';
11
+ position: absolute;
12
+ left: -0.125rem;
13
+ top: -0.1rem;
14
+ width: 0.25rem;
15
+ height: 0.25rem;
16
+ border-radius: 50%;
17
+ background: #FFFFFF;
18
+ z-index: 1;
19
+ animation: viewport-rule-point 0.1s 1s;
20
+ animation-fill-mode: both;
21
+ }
22
+
23
+ .PanoRulerPlugin-rule-line::before {
24
+ content: '';
25
+ position: absolute;
26
+ right: -0.125rem;
27
+ top: -0.1rem;
28
+ width: 0.25rem;
29
+ height: 0.25rem;
30
+ border-radius: 50%;
31
+ background: #FFFFFF;
32
+ animation: viewport-rule-point 0.1s 1.5s;
33
+ animation-fill-mode: both;
34
+ }
35
+
36
+ .PanoRulerPlugin-rule-line em {
37
+ background: #fff;
38
+ display: block;
39
+ height: 100%;
40
+ animation: viewport-rule-line 0.5s ease 1s;
41
+ animation-fill-mode: both;
42
+ box-shadow: 0 0 0.25rem rgb(0 0 0 / 40%);
43
+ }
44
+
45
+ .PanoRulerPlugin-rule-label {
46
+ position: absolute;
47
+ width: 0;
48
+ height: 0;
49
+ top: 0.0625rem;
50
+ }
51
+
52
+ .PanoRulerPlugin-rule-label-name {
53
+ position: absolute;
54
+ padding: 0.1875rem 0.375rem;
55
+ background: rgba(195,195,195,0.30);
56
+ backdrop-filter: blur(0.25rem);
57
+ -webkit-backdrop-filter: blur(0.25rem);
58
+ border-radius: 6.25rem;
59
+ border: 0.0625rem solid rgba(255,255,255,0.6);
60
+ white-space: nowrap;
61
+ overflow: hidden;
62
+ color: #FFFFFF;
63
+ font-weight: 500;
64
+ font-size: 0.75rem;
65
+ line-height: 1;
66
+ -webkit-animation: viewport-rule-label 0.25s ease 1s;
67
+ animation: viewport-rule-label 0.25s ease 1s;
68
+ animation-fill-mode: both;
69
+ box-shadow: inset 0 0 0.625rem 0 rgba(255,255,255,0.30);
70
+ }
71
+
72
+ @keyframes viewport-rule-line {
73
+ 0% { width: 0% }
74
+ 100% { width: 100% }
75
+ }
76
+
77
+ @keyframes viewport-rule-label {
78
+ 0% { opacity: 0; transform: scaleX(0); }
79
+ 100% { opacity: 1; transform: translate(-50%, -50%) scaleX(1); }
80
+ }
81
+
82
+ @keyframes viewport-rule-point {
83
+ 0% { transform: scaleX(0); }
84
+ 100% { transform: scaleX(1); }
85
+ }
86
+ </style>
87
+ `;
88
+ export default PanoRulerStyle;
@@ -0,0 +1,21 @@
1
+ export interface Room {
2
+ id: string;
3
+ name: string;
4
+ localName: string;
5
+ area: number;
6
+ }
7
+ export interface Rooms {
8
+ [key: string]: Room;
9
+ }
10
+ export declare type RoomObservers = string[];
11
+ export interface RoomInfo {
12
+ rooms: Rooms;
13
+ observers: RoomObservers;
14
+ }
15
+ export interface RoomRules {
16
+ [key: string]: {
17
+ x: number;
18
+ z: number;
19
+ observers: number[];
20
+ }[];
21
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,168 @@
1
+ /* generated by Svelte v3.47.0 */
2
+ import {
3
+ SvelteComponent,
4
+ append_styles,
5
+ attr,
6
+ destroy_each,
7
+ detach,
8
+ element,
9
+ empty,
10
+ init,
11
+ insert,
12
+ listen,
13
+ noop,
14
+ safe_not_equal,
15
+ set_style,
16
+ toggle_class
17
+ } from "svelte/internal";
18
+
19
+ import { currentTarget } from '../store';
20
+
21
+ function add_css(target) {
22
+ 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}}");
23
+ }
24
+
25
+ function get_each_context(ctx, list, i) {
26
+ const child_ctx = ctx.slice();
27
+ child_ctx[3] = list[i];
28
+ return child_ctx;
29
+ }
30
+
31
+ // (8:0) {#each origins as origin}
32
+ function create_each_block(ctx) {
33
+ let i;
34
+ let style_top = `${/*origin*/ ctx[3].top}%`;
35
+ let style_left = `${/*origin*/ ctx[3].left}%`;
36
+ let mounted;
37
+ let dispose;
38
+
39
+ function click_handler() {
40
+ return /*click_handler*/ ctx[2](/*origin*/ ctx[3]);
41
+ }
42
+
43
+ return {
44
+ c() {
45
+ i = element("i");
46
+ attr(i, "class", "svelte-scnx9u");
47
+ toggle_class(i, "PanoSpatialTagPlugin__tag-origin", true);
48
+ toggle_class(i, "PanoSpatialTagPlugin__tag-origin-destroy", /*origin*/ ctx[3].destroying);
49
+ set_style(i, "top", style_top, false);
50
+ set_style(i, "left", style_left, false);
51
+ set_style(i, "visibility", /*origin*/ ctx[3].front ? 'visible' : 'hidden', false);
52
+ },
53
+ m(target, anchor) {
54
+ insert(target, i, anchor);
55
+
56
+ if (!mounted) {
57
+ dispose = listen(i, "click", click_handler);
58
+ mounted = true;
59
+ }
60
+ },
61
+ p(new_ctx, dirty) {
62
+ ctx = new_ctx;
63
+
64
+ if (dirty & /*origins*/ 1) {
65
+ toggle_class(i, "PanoSpatialTagPlugin__tag-origin-destroy", /*origin*/ ctx[3].destroying);
66
+ }
67
+
68
+ if (dirty & /*origins*/ 1 && style_top !== (style_top = `${/*origin*/ ctx[3].top}%`)) {
69
+ set_style(i, "top", style_top, false);
70
+ }
71
+
72
+ if (dirty & /*origins*/ 1 && style_left !== (style_left = `${/*origin*/ ctx[3].left}%`)) {
73
+ set_style(i, "left", style_left, false);
74
+ }
75
+
76
+ if (dirty & /*origins*/ 1) {
77
+ set_style(i, "visibility", /*origin*/ ctx[3].front ? 'visible' : 'hidden', false);
78
+ }
79
+ },
80
+ d(detaching) {
81
+ if (detaching) detach(i);
82
+ mounted = false;
83
+ dispose();
84
+ }
85
+ };
86
+ }
87
+
88
+ function create_fragment(ctx) {
89
+ let each_1_anchor;
90
+ let each_value = /*origins*/ ctx[0];
91
+ let each_blocks = [];
92
+
93
+ for (let i = 0; i < each_value.length; i += 1) {
94
+ each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
95
+ }
96
+
97
+ return {
98
+ c() {
99
+ for (let i = 0; i < each_blocks.length; i += 1) {
100
+ each_blocks[i].c();
101
+ }
102
+
103
+ each_1_anchor = empty();
104
+ },
105
+ m(target, anchor) {
106
+ for (let i = 0; i < each_blocks.length; i += 1) {
107
+ each_blocks[i].m(target, anchor);
108
+ }
109
+
110
+ insert(target, each_1_anchor, anchor);
111
+ },
112
+ p(ctx, [dirty]) {
113
+ if (dirty & /*origins, handleClick*/ 3) {
114
+ each_value = /*origins*/ ctx[0];
115
+ let i;
116
+
117
+ for (i = 0; i < each_value.length; i += 1) {
118
+ const child_ctx = get_each_context(ctx, each_value, i);
119
+
120
+ if (each_blocks[i]) {
121
+ each_blocks[i].p(child_ctx, dirty);
122
+ } else {
123
+ each_blocks[i] = create_each_block(child_ctx);
124
+ each_blocks[i].c();
125
+ each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
126
+ }
127
+ }
128
+
129
+ for (; i < each_blocks.length; i += 1) {
130
+ each_blocks[i].d(1);
131
+ }
132
+
133
+ each_blocks.length = each_value.length;
134
+ }
135
+ },
136
+ i: noop,
137
+ o: noop,
138
+ d(detaching) {
139
+ destroy_each(each_blocks, detaching);
140
+ if (detaching) detach(each_1_anchor);
141
+ }
142
+ };
143
+ }
144
+
145
+ function instance($$self, $$props, $$invalidate) {
146
+ let { origins } = $$props;
147
+
148
+ const handleClick = id => {
149
+ currentTarget.update(() => `${id}-PanoSpatialTagPlugin-${Date.now()}`);
150
+ };
151
+
152
+ const click_handler = origin => handleClick(origin.id);
153
+
154
+ $$self.$$set = $$props => {
155
+ if ('origins' in $$props) $$invalidate(0, origins = $$props.origins);
156
+ };
157
+
158
+ return [origins, handleClick, click_handler];
159
+ }
160
+
161
+ class Component extends SvelteComponent {
162
+ constructor(options) {
163
+ super();
164
+ init(this, options, instance, create_fragment, safe_not_equal, { origins: 0 }, add_css);
165
+ }
166
+ }
167
+
168
+ export default Component;
@@ -0,0 +1,302 @@
1
+ /* generated by Svelte v3.47.0 */
2
+ import {
3
+ SvelteComponent,
4
+ append,
5
+ append_styles,
6
+ attr,
7
+ binding_callbacks,
8
+ detach,
9
+ element,
10
+ init,
11
+ insert,
12
+ listen,
13
+ noop,
14
+ safe_not_equal,
15
+ set_style,
16
+ space,
17
+ toggle_class
18
+ } from "svelte/internal";
19
+
20
+ import { onMount, onDestroy, afterUpdate } from 'svelte';
21
+ import '../typings';
22
+ import { currentTarget } from '../store';
23
+
24
+ function add_css(target) {
25
+ append_styles(target, "svelte-1c0xhg0", ".PanoSpatialTagPlugin__tag-x.svelte-1c0xhg0.svelte-1c0xhg0{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-1c0xhg0.svelte-1c0xhg0{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-1c0xhg0.svelte-1c0xhg0{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1c0xhg0.svelte-1c0xhg0{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-1c0xhg0.svelte-1c0xhg0{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-1c0xhg0.svelte-1c0xhg0{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-1c0xhg0 .PanoSpatialTagPlugin__tag-line1.svelte-1c0xhg0{animation:svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-line2.svelte-1c0xhg0{animation:svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1c0xhg0.svelte-1c0xhg0{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-line.svelte-1c0xhg0{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1c0xhg0.svelte-1c0xhg0{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-animate.svelte-1c0xhg0{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1c0xhg0.svelte-1c0xhg0{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-1c0xhg0 .PanoSpatialTagPlugin__tag-content.svelte-1c0xhg0{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-flagpole.svelte-1c0xhg0{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-shadow.svelte-1c0xhg0{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-shadow.svelte-1c0xhg0{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-content.svelte-1c0xhg0{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-flagpole.svelte-1c0xhg0{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-shadow.svelte-1c0xhg0{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-content.svelte-1c0xhg0{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-content .svelte-1c0xhg0{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-line1.svelte-1c0xhg0{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-line2.svelte-1c0xhg0{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@keyframes svelte-1c0xhg0-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-1c0xhg0-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-1c0xhg0-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-1c0xhg0-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)}}");
26
+ }
27
+
28
+ function create_fragment(ctx) {
29
+ let div4;
30
+ let div0;
31
+ let t0;
32
+ let div1;
33
+ let i0;
34
+ let t1;
35
+ let i1;
36
+ let t2;
37
+ let i2;
38
+ let t3;
39
+ let div3;
40
+ let div2;
41
+ let div4_id_value;
42
+ let mounted;
43
+ let dispose;
44
+
45
+ return {
46
+ c() {
47
+ div4 = element("div");
48
+ div0 = element("div");
49
+ t0 = space();
50
+ div1 = element("div");
51
+ i0 = element("i");
52
+ t1 = space();
53
+ i1 = element("i");
54
+ t2 = space();
55
+ i2 = element("i");
56
+ t3 = space();
57
+ div3 = element("div");
58
+ div2 = element("div");
59
+ attr(div0, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1c0xhg0");
60
+ 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)");
61
+ attr(i0, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1c0xhg0");
62
+ set_style(i0, "width", /*lineWidthZoom*/ ctx[4] + "rem");
63
+ attr(i1, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1c0xhg0");
64
+ attr(i2, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1c0xhg0");
65
+ attr(div1, "class", "PanoSpatialTagPlugin__tag-line svelte-1c0xhg0");
66
+ attr(div2, "class", "PanoSpatialTagPlugin__tag-content svelte-1c0xhg0");
67
+ attr(div3, "class", "PanoSpatialTagPlugin__tag-animate svelte-1c0xhg0");
68
+ set_style(div3, "transform", "scale(" + /*contentZoom*/ ctx[3] * 3 + ")");
69
+ attr(div4, "id", div4_id_value = 'PanoSpatialTagPlugin__' + /*id*/ ctx[0]);
70
+ set_style(div4, "height", 20 * /*lineHeightZoom*/ ctx[5] + "rem");
71
+ attr(div4, "class", "svelte-1c0xhg0");
72
+ toggle_class(div4, "PanoSpatialTagPlugin__tag-x", true);
73
+ toggle_class(div4, "PanoSpatialTagPlugin__tag-upside-down", /*upsideDown*/ ctx[1]);
74
+ toggle_class(div4, "PanoSpatialTagPlugin__tag-show", /*show*/ ctx[10]);
75
+ toggle_class(div4, "PanoSpatialTagPlugin__tag-hide", /*show*/ ctx[10] === false || /*destroying*/ ctx[6]);
76
+ },
77
+ m(target, anchor) {
78
+ insert(target, div4, anchor);
79
+ append(div4, div0);
80
+ append(div4, t0);
81
+ append(div4, div1);
82
+ append(div1, i0);
83
+ append(div1, t1);
84
+ append(div1, i1);
85
+ append(div1, t2);
86
+ append(div1, i2);
87
+ append(div4, t3);
88
+ append(div4, div3);
89
+ append(div3, div2);
90
+ div2.innerHTML = /*content*/ ctx[2];
91
+ /*div2_binding*/ ctx[16](div2);
92
+
93
+ if (!mounted) {
94
+ dispose = listen(div2, "click", /*handleClickContent*/ ctx[11]);
95
+ mounted = true;
96
+ }
97
+ },
98
+ p(ctx, [dirty]) {
99
+ if (dirty & /*contentWidth, contentZoom, contentHeight, upsideDown*/ 394) {
100
+ 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)");
101
+ }
102
+
103
+ if (dirty & /*lineWidthZoom*/ 16) {
104
+ set_style(i0, "width", /*lineWidthZoom*/ ctx[4] + "rem");
105
+ }
106
+
107
+ if (dirty & /*content*/ 4) div2.innerHTML = /*content*/ ctx[2];;
108
+
109
+ if (dirty & /*contentZoom*/ 8) {
110
+ set_style(div3, "transform", "scale(" + /*contentZoom*/ ctx[3] * 3 + ")");
111
+ }
112
+
113
+ if (dirty & /*id*/ 1 && div4_id_value !== (div4_id_value = 'PanoSpatialTagPlugin__' + /*id*/ ctx[0])) {
114
+ attr(div4, "id", div4_id_value);
115
+ }
116
+
117
+ if (dirty & /*lineHeightZoom*/ 32) {
118
+ set_style(div4, "height", 20 * /*lineHeightZoom*/ ctx[5] + "rem");
119
+ }
120
+
121
+ if (dirty & /*upsideDown*/ 2) {
122
+ toggle_class(div4, "PanoSpatialTagPlugin__tag-upside-down", /*upsideDown*/ ctx[1]);
123
+ }
124
+
125
+ if (dirty & /*show*/ 1024) {
126
+ toggle_class(div4, "PanoSpatialTagPlugin__tag-show", /*show*/ ctx[10]);
127
+ }
128
+
129
+ if (dirty & /*show, destroying*/ 1088) {
130
+ toggle_class(div4, "PanoSpatialTagPlugin__tag-hide", /*show*/ ctx[10] === false || /*destroying*/ ctx[6]);
131
+ }
132
+ },
133
+ i: noop,
134
+ o: noop,
135
+ d(detaching) {
136
+ if (detaching) detach(div4);
137
+ /*div2_binding*/ ctx[16](null);
138
+ mounted = false;
139
+ dispose();
140
+ }
141
+ };
142
+ }
143
+
144
+ function instance($$self, $$props, $$invalidate) {
145
+ let { id } = $$props;
146
+ let { upsideDown } = $$props;
147
+ let { content } = $$props;
148
+ let { contentZoom } = $$props;
149
+ let { lineWidthZoom } = $$props;
150
+ let { lineHeightZoom } = $$props;
151
+ let { destroying = false } = $$props;
152
+ let { folded } = $$props;
153
+ let { dispose } = $$props;
154
+ let { events } = $$props;
155
+ let { hooks } = $$props;
156
+ let contentWidth = 0;
157
+ let contentHeight = 0;
158
+ let contentDom;
159
+ let show;
160
+
161
+ let timeoutId = setTimeout(
162
+ () => {
163
+ if (!folded) $$invalidate(10, show = true);
164
+ timeoutId = undefined;
165
+ },
166
+ 100
167
+ );
168
+
169
+ const handleClickContent = event => {
170
+ const eventsName = Object.keys(events);
171
+ let node = event.target;
172
+
173
+ while (node) {
174
+ const classNames = node.getAttribute('class');
175
+
176
+ if (!classNames) {
177
+ node = node.parentNode;
178
+ continue;
179
+ }
180
+
181
+ if (classNames.includes('PanoSpatialTagPlugin__tag-content')) {
182
+ node = null;
183
+ break;
184
+ }
185
+
186
+ eventsName.forEach(key => {
187
+ if (classNames.includes(key)) events[key](id);
188
+ });
189
+
190
+ node = node.parentNode;
191
+ }
192
+ };
193
+
194
+ onMount(() => {
195
+ hooks.emit('initTag', { id });
196
+ });
197
+
198
+ const unsubscribe = currentTarget.subscribe(str => {
199
+ if (str === null) return;
200
+ const [currentId, date] = str.split('-PanoSpatialTagPlugin-');
201
+
202
+ if (id === currentId) {
203
+ hooks.emit('clickOrigin', { id, show });
204
+
205
+ if (!timeoutId) {
206
+ $$invalidate(10, show = folded);
207
+ $$invalidate(12, folded = !folded);
208
+
209
+ timeoutId = setTimeout(
210
+ () => {
211
+ timeoutId = undefined;
212
+ },
213
+ 1500
214
+ );
215
+ }
216
+ }
217
+ });
218
+
219
+ afterUpdate(() => {
220
+ $$invalidate(7, contentWidth = contentDom.offsetWidth);
221
+ $$invalidate(8, contentHeight = contentDom.offsetHeight);
222
+ if (timeoutId) return;
223
+ $$invalidate(10, show = !folded);
224
+ });
225
+
226
+ onDestroy(() => {
227
+ hooks.emit('destroyTag', { id });
228
+ unsubscribe();
229
+ dispose();
230
+ });
231
+
232
+ function div2_binding($$value) {
233
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
234
+ contentDom = $$value;
235
+ $$invalidate(9, contentDom);
236
+ });
237
+ }
238
+
239
+ $$self.$$set = $$props => {
240
+ if ('id' in $$props) $$invalidate(0, id = $$props.id);
241
+ if ('upsideDown' in $$props) $$invalidate(1, upsideDown = $$props.upsideDown);
242
+ if ('content' in $$props) $$invalidate(2, content = $$props.content);
243
+ if ('contentZoom' in $$props) $$invalidate(3, contentZoom = $$props.contentZoom);
244
+ if ('lineWidthZoom' in $$props) $$invalidate(4, lineWidthZoom = $$props.lineWidthZoom);
245
+ if ('lineHeightZoom' in $$props) $$invalidate(5, lineHeightZoom = $$props.lineHeightZoom);
246
+ if ('destroying' in $$props) $$invalidate(6, destroying = $$props.destroying);
247
+ if ('folded' in $$props) $$invalidate(12, folded = $$props.folded);
248
+ if ('dispose' in $$props) $$invalidate(13, dispose = $$props.dispose);
249
+ if ('events' in $$props) $$invalidate(14, events = $$props.events);
250
+ if ('hooks' in $$props) $$invalidate(15, hooks = $$props.hooks);
251
+ };
252
+
253
+ return [
254
+ id,
255
+ upsideDown,
256
+ content,
257
+ contentZoom,
258
+ lineWidthZoom,
259
+ lineHeightZoom,
260
+ destroying,
261
+ contentWidth,
262
+ contentHeight,
263
+ contentDom,
264
+ show,
265
+ handleClickContent,
266
+ folded,
267
+ dispose,
268
+ events,
269
+ hooks,
270
+ div2_binding
271
+ ];
272
+ }
273
+
274
+ class Component extends SvelteComponent {
275
+ constructor(options) {
276
+ super();
277
+
278
+ init(
279
+ this,
280
+ options,
281
+ instance,
282
+ create_fragment,
283
+ safe_not_equal,
284
+ {
285
+ id: 0,
286
+ upsideDown: 1,
287
+ content: 2,
288
+ contentZoom: 3,
289
+ lineWidthZoom: 4,
290
+ lineHeightZoom: 5,
291
+ destroying: 6,
292
+ folded: 12,
293
+ dispose: 13,
294
+ events: 14,
295
+ hooks: 15
296
+ },
297
+ add_css
298
+ );
299
+ }
300
+ }
301
+
302
+ export default Component;
@@ -0,0 +1,33 @@
1
+ import type { FivePlugin } from '@realsee/five';
2
+ import type { PanoSpatialTagPluginId, PanoSpatialTagPluginDataElement, PanoSpatialTagPluginContentReplacement, PanoSpatialTagPluginContentEvent } from './typings';
3
+ export interface PanoSpatialTagPluginData {
4
+ folded?: boolean;
5
+ enabled?: boolean;
6
+ points: Array<PanoSpatialTagPluginDataElement>;
7
+ template: string;
8
+ events?: PanoSpatialTagPluginContentEvent;
9
+ render?: (template: string, replacement: PanoSpatialTagPluginContentReplacement) => string;
10
+ }
11
+ export interface PanoSpatialTagPluginParameterType {
12
+ container?: Element;
13
+ wait?: number;
14
+ maxNumberOnScreen?: number;
15
+ minRad?: number;
16
+ nearTolerance?: number;
17
+ upsideHeight?: number;
18
+ }
19
+ export interface PanoSpatialTagPluginExportType {
20
+ load: (data: PanoSpatialTagPluginData) => void;
21
+ unfoldAll: () => void;
22
+ foldAll: () => void;
23
+ unfold: (id: PanoSpatialTagPluginId) => void;
24
+ fold: (id: PanoSpatialTagPluginId) => void;
25
+ enable: () => void;
26
+ disable: () => void;
27
+ dispose: () => void;
28
+ }
29
+ /**
30
+ * 空间游走标签插件
31
+ */
32
+ export declare const PanoSpatialTagPlugin: FivePlugin<PanoSpatialTagPluginParameterType, PanoSpatialTagPluginExportType>;
33
+ export default PanoSpatialTagPlugin;