@realsee/dnalogel 2.1.0-alpha.4 → 2.1.0-alpha.5

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 (358) hide show
  1. package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  2. package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  3. package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  4. package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  5. package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  6. package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  7. package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  8. package/dist/CameraMovementPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  9. package/dist/CameraMovementPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  10. package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  11. package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  12. package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  13. package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  14. package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  15. package/dist/CruisePlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  16. package/dist/CruisePlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  17. package/dist/CruisePlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  18. package/dist/CruisePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  19. package/dist/CruisePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  20. package/dist/CruisePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  21. package/dist/CruisePlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  22. package/dist/GuideLinePlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  23. package/dist/GuideLinePlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  24. package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  25. package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  26. package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  27. package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  28. package/dist/GuideLinePlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  29. package/dist/ItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  30. package/dist/ItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  31. package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  32. package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  33. package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  34. package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  35. package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  36. package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  37. package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  38. package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  39. package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  40. package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  41. package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  42. package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  43. package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  44. package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  45. package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  46. package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  47. package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  48. package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  49. package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  50. package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  51. package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  52. package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  53. package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  54. package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  55. package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  56. package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  57. package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  58. package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  59. package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  60. package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  61. package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  62. package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  63. package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  64. package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  65. package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  66. package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  67. package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  68. package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  69. package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  70. package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  71. package/dist/ModelViewPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  72. package/dist/ModelViewPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  73. package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  74. package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  75. package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  76. package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  77. package/dist/ModelViewPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  78. package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  79. package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  80. package/dist/Object3DHelperPlugin/index.js +32 -28
  81. package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  82. package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  83. package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  84. package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  85. package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  86. package/dist/PanoCompassPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  87. package/dist/PanoCompassPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  88. package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  89. package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  90. package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  91. package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  92. package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  93. package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  94. package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  95. package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  96. package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  97. package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  98. package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  99. package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  100. package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  101. package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  102. package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  103. package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  104. package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  105. package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  106. package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  107. package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  108. package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  109. package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  110. package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  111. package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  112. package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  113. package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  114. package/dist/PanoRulerPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  115. package/dist/PanoRulerPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  116. package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  117. package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  118. package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  119. package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  120. package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  121. package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  122. package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  123. package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  124. package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  125. package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  126. package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  127. package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  128. package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  129. package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  130. package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  131. package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  132. package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  133. package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  134. package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  135. package/dist/PanoTagPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  136. package/dist/PanoTagPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  137. package/dist/PanoTagPlugin/index.js +23 -17
  138. package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  139. package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  140. package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  141. package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  142. package/dist/PanoTagPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  143. package/dist/PanoTagPlugin/typings/controller.d.ts +1 -0
  144. package/dist/PanoTagPlugin/typings/tag.d.ts +1 -0
  145. package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  146. package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  147. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  148. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  149. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  150. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  151. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  152. package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  153. package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  154. package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  155. package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  156. package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  157. package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  158. package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  159. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  160. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  161. package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  162. package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  163. package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  164. package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  165. package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  166. package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
  167. package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
  168. package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  169. package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  170. package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  171. package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  172. package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  173. package/dist/index.es.js +55 -45
  174. package/dist/index.js +55 -45
  175. package/dist/index.umd.js +55 -45
  176. package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  177. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  178. package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  179. package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  180. package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  181. package/docs/assets/search.js +1 -1
  182. package/docs/classes/CruisePluginController.html +14 -14
  183. package/docs/classes/Magnifier.html +4 -4
  184. package/docs/classes/ModelRoomLabelController.html +4 -4
  185. package/docs/classes/Object3DHelperController.html +9 -9
  186. package/docs/classes/PanoTagPluginController.html +25 -25
  187. package/docs/enums/CameraMovementEffect.html +2 -2
  188. package/docs/enums/ContentType.html +7 -7
  189. package/docs/enums/DIRECTION.html +1 -1
  190. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  191. package/docs/enums/DimensionType.html +1 -1
  192. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  193. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  194. package/docs/enums/LinkType.html +1 -1
  195. package/docs/enums/PointType.html +1 -1
  196. package/docs/enums/Rotation.html +2 -2
  197. package/docs/index.html +1 -1
  198. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  199. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  200. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  201. package/docs/interfaces/FloorplanBounding.html +4 -4
  202. package/docs/interfaces/FloorplanData.html +2 -2
  203. package/docs/interfaces/FloorplanEntrance.html +7 -7
  204. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  205. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  206. package/docs/interfaces/FloorplanFloorData.html +2 -2
  207. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  208. package/docs/interfaces/FloorplanObserver.html +2 -2
  209. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  210. package/docs/interfaces/FloorplanPosition.html +2 -2
  211. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  212. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  213. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  214. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  215. package/docs/interfaces/FloorplanServerData.html +2 -2
  216. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  217. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  218. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  219. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  220. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  221. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  222. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  223. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  224. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  225. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  226. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  227. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  228. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  229. package/docs/interfaces/LineJson.html +1 -1
  230. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  231. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  232. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  233. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  234. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  235. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  236. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  237. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  238. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  239. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  240. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  241. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  242. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  243. package/docs/interfaces/Object3DHelperState.html +1 -1
  244. package/docs/interfaces/OpenParameter.html +2 -2
  245. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  246. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  247. package/docs/interfaces/PanoMeasureParameterType.html +1 -1
  248. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  249. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  250. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  251. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  252. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  253. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  254. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  255. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  256. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  257. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  258. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  259. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  260. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  261. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  262. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  263. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  264. package/docs/interfaces/Point.html +1 -1
  265. package/docs/interfaces/PointJson.html +1 -1
  266. package/docs/interfaces/Room.html +1 -1
  267. package/docs/interfaces/RoomInfo.html +1 -1
  268. package/docs/interfaces/RoomLabel.html +7 -7
  269. package/docs/interfaces/RoomRules.html +1 -1
  270. package/docs/interfaces/Rooms.html +1 -1
  271. package/docs/interfaces/Scissor.html +5 -5
  272. package/docs/interfaces/TagConfig.html +4 -4
  273. package/docs/interfaces/Tags.html +3 -3
  274. package/docs/modules.html +21 -21
  275. package/libs/ItemLabelPlugin/ItemLabelComponent.svelte +251 -0
  276. package/libs/ItemLabelPlugin/ItemLabelItem.svelte +183 -0
  277. package/libs/ItemLabelPlugin/Plugin.js +1 -1
  278. package/libs/ItemLabelPlugin/typings.d.ts +1 -1
  279. package/libs/ModelItemLabelPlugin/ItemLabelComponent.svelte +155 -0
  280. package/libs/ModelItemLabelPlugin/ItemLabelItem.svelte +100 -0
  281. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +1 -1
  282. package/libs/ModelItemLabelPlugin/typings.d.ts +1 -1
  283. package/libs/ModelRoomLabelPlugin/Controller.js +1 -1
  284. package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte +63 -0
  285. package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte +94 -0
  286. package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
  287. package/libs/PanoDoorLabelPlugin/DoorLabelItem.svelte +200 -0
  288. package/libs/PanoRulerProPlugin/Controller.js +1 -1
  289. package/libs/PanoRulerProPlugin/RulerItem.svelte +166 -0
  290. package/libs/PanoRulerProPlugin/RulerItems.svelte +212 -0
  291. package/libs/PanoSpatialTagPlugin/Components/origins.svelte +58 -0
  292. package/libs/PanoSpatialTagPlugin/Components/tag.svelte +292 -0
  293. package/libs/PanoSpatialTagPlugin/Plugin.js +2 -2
  294. package/libs/PanoTagPlugin/Components/Common/Arrow.svelte +56 -0
  295. package/libs/PanoTagPlugin/Components/Common/Audio.svelte +82 -0
  296. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.svelte +36 -0
  297. package/libs/PanoTagPlugin/Components/Common/Line/Straight.svelte +36 -0
  298. package/libs/PanoTagPlugin/Components/Common/Media.svelte +70 -0
  299. package/libs/PanoTagPlugin/Components/Common/MultiLineText.svelte +56 -0
  300. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.svelte +120 -0
  301. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.svelte +81 -0
  302. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.svelte +30 -0
  303. package/libs/PanoTagPlugin/Components/Common/Shadow.svelte +46 -0
  304. package/libs/PanoTagPlugin/Components/Common/Text.svelte +69 -0
  305. package/libs/PanoTagPlugin/Components/Common/TextItem.svelte +42 -0
  306. package/libs/PanoTagPlugin/Components/PointTag.js +3 -3
  307. package/libs/PanoTagPlugin/Components/PointTag.svelte +55 -0
  308. package/libs/PanoTagPlugin/Components/Tag/AudioTag.svelte +105 -0
  309. package/libs/PanoTagPlugin/Components/Tag/CustomTag.svelte +33 -0
  310. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.svelte +63 -0
  311. package/libs/PanoTagPlugin/Components/Tag/LinkTag.svelte +166 -0
  312. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.svelte +234 -0
  313. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.svelte +30 -0
  314. package/libs/PanoTagPlugin/Components/Tag/TextTag.svelte +63 -0
  315. package/libs/PanoTagPlugin/Components/Tag/index.js +16 -11
  316. package/libs/PanoTagPlugin/Components/Tag/index.svelte +145 -0
  317. package/libs/PanoTagPlugin/Components/TagWrapper.svelte +69 -0
  318. package/libs/PanoTagPlugin/controller/index.js +9 -9
  319. package/libs/PanoTagPlugin/tag.config.js +1 -0
  320. package/libs/PanoTagPlugin/typings/controller.d.ts +2 -1
  321. package/libs/PanoTagPlugin/typings/tag.d.ts +1 -0
  322. package/libs/floorplan/Components/BaseImage.svelte +26 -0
  323. package/libs/floorplan/Components/Camera.svelte +46 -0
  324. package/libs/floorplan/Components/Compass.svelte +51 -0
  325. package/libs/floorplan/Components/CurrentFloor.svelte +46 -0
  326. package/libs/floorplan/Components/Main.svelte +51 -0
  327. package/libs/floorplan/Components/Normalmage.svelte +11 -0
  328. package/libs/floorplan/Components/RoomHighlight/Room.svelte +27 -0
  329. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte +29 -0
  330. package/libs/floorplan/Components/RoomLabels/RoomLabel.svelte +119 -0
  331. package/libs/floorplan/Components/RoomLabels/RoomLabels.svelte +35 -0
  332. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte +42 -0
  333. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte +7 -0
  334. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte +24 -0
  335. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte +33 -0
  336. package/libs/floorplan/Components/RuleLabels/RuleItem.svelte +174 -0
  337. package/libs/floorplan/Components/RuleLabels/RuleLabels.svelte +32 -0
  338. package/libs/floorplan/Components/SvgImage.svelte +28 -0
  339. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
  340. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
  341. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte +85 -0
  342. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte +18 -0
  343. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte +40 -0
  344. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte +64 -0
  345. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  346. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
  347. package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
  348. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +9 -5
  349. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
  350. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +7 -4
  351. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +1 -1
  352. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
  353. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +6 -7
  354. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
  355. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +1 -1
  356. package/libs/shared-utils/Object3DHelper/index.js +8 -10
  357. package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
  358. package/package.json +1 -1
@@ -0,0 +1,212 @@
1
+ <script>var _a, _b, _c, _d;
2
+ import { Five } from '@realsee/five';
3
+ import { nextFrame } from '../shared-utils/animationFrame';
4
+ import equal from '../shared-utils/equal';
5
+ import { intersectionOfLine } from '../shared-utils/math/planimetry';
6
+ import throttle from '../shared-utils/throttle';
7
+ import { onDestroy, onMount } from 'svelte';
8
+ import { Vector3 } from 'three';
9
+ import RulerItem from './RulerItem.svelte';
10
+ export let five;
11
+ export let rulerDatas;
12
+ export let options;
13
+ let rulerItemProp = [];
14
+ const canvasWidth = ((_b = (_a = five.getElement()) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.clientWidth) || 0;
15
+ const canvasHeight = ((_d = (_c = five.getElement()) === null || _c === void 0 ? void 0 : _c.parentElement) === null || _d === void 0 ? void 0 : _d.clientHeight) || 0;
16
+ const getRuleScreenIntr = (startPoint, endPoint) => {
17
+ const screenLines = [
18
+ [
19
+ { x: 0, y: 0 },
20
+ { x: canvasWidth, y: 0 },
21
+ ],
22
+ [
23
+ { x: 0, y: 0 },
24
+ { x: 0, y: canvasHeight },
25
+ ],
26
+ [
27
+ { x: canvasWidth, y: 0 },
28
+ { x: canvasWidth, y: canvasHeight },
29
+ ],
30
+ [
31
+ { x: 0, y: canvasHeight },
32
+ { x: canvasWidth, y: canvasHeight },
33
+ ],
34
+ ];
35
+ const intr = [];
36
+ for (let i = 0; i < screenLines.length; i++) {
37
+ const result = intersectionOfLine([startPoint, endPoint], [screenLines[i][0], screenLines[i][1]], true);
38
+ if (result)
39
+ intr.push(result);
40
+ }
41
+ if (intr.length === 0)
42
+ return false;
43
+ else {
44
+ return intr;
45
+ }
46
+ };
47
+ const getPosition = (start, end) => {
48
+ const startPoint = start.clone().project(five.camera);
49
+ const startLeft = ((startPoint.x + 1) / 2) * canvasWidth;
50
+ const startTop = ((-startPoint.y + 1) / 2) * canvasHeight;
51
+ const endPoint = end.clone().project(five.camera);
52
+ const endLeft = ((endPoint.x + 1) / 2) * canvasWidth;
53
+ const endTop = ((-endPoint.y + 1) / 2) * canvasHeight;
54
+ const distance = Math.sqrt(Math.pow(endLeft - startLeft, 2) + Math.pow(endTop - startTop, 2));
55
+ return {
56
+ startLeft,
57
+ startTop,
58
+ endLeft,
59
+ endTop,
60
+ distance,
61
+ };
62
+ };
63
+ const getPositionAndVisible = (start, end, visibleOrigin) => {
64
+ const cameraPosition = five.camera.position;
65
+ const cameraDirection = five.camera.getWorldDirection(new Vector3());
66
+ const startAngle = start.clone().sub(cameraPosition).normalize().angleTo(cameraDirection);
67
+ const endAngle = end.clone().sub(cameraPosition).normalize().angleTo(cameraDirection);
68
+ const ruleLength = start.distanceTo(end);
69
+ const midPoint = end.clone().sub(end.clone().sub(start).divide(new Vector3(2, 2, 2)));
70
+ const disFromCameraToMid = midPoint.distanceTo(cameraPosition);
71
+ const { startLeft, startTop, endLeft, endTop, distance } = getPosition(start, end);
72
+ const rad = Math.PI / 2 - Math.atan2(endLeft - startLeft, startTop - endTop);
73
+ const deg = -(rad / Math.PI) * 180;
74
+ let visible = true;
75
+ if (!visibleOrigin)
76
+ visible = false;
77
+ // 只显示拐点相连的线
78
+ if (!equal(start, visibleOrigin) && !equal(end, visibleOrigin)) {
79
+ visible = false;
80
+ }
81
+ // 线小于0.3m隐藏
82
+ if (ruleLength < 0.3) {
83
+ visible = false;
84
+ }
85
+ if (startAngle > Math.PI / 2) {
86
+ visible = false;
87
+ }
88
+ if (endAngle > Math.PI / 2) {
89
+ visible = false;
90
+ }
91
+ if (disFromCameraToMid / ruleLength > 8) {
92
+ visible = false;
93
+ }
94
+ let labelOffset = 50;
95
+ let visibleLength = distance;
96
+ const intr = getRuleScreenIntr({ x: ~~startLeft, y: ~~startTop }, { x: ~~endLeft, y: ~~endTop });
97
+ if (intr && intr.length === 1) {
98
+ if (equal(start, visibleOrigin)) {
99
+ visibleLength = Math.sqrt(Math.pow(intr[0].x - startLeft, 2) + Math.pow(intr[0].y - startTop, 2));
100
+ labelOffset = (visibleLength / distance) * 50;
101
+ }
102
+ else if (equal(end, visibleOrigin)) {
103
+ visibleLength = Math.sqrt(Math.pow(intr[0].x - endLeft, 2) + Math.pow(intr[0].y - endTop, 2));
104
+ labelOffset = 100 - (visibleLength / distance) * 50;
105
+ }
106
+ }
107
+ if (intr && intr.length === 2) {
108
+ const middlePoint = {
109
+ x: (intr[0].x + intr[1].x) / 2,
110
+ y: (intr[0].y + intr[1].y) / 2,
111
+ };
112
+ const distanceFromStart = Math.sqrt(Math.pow(middlePoint.x - startLeft, 2) + Math.pow(middlePoint.y - startTop, 2));
113
+ labelOffset = (distanceFromStart / distance) * 100;
114
+ }
115
+ return {
116
+ startLeft,
117
+ startTop,
118
+ distance,
119
+ deg,
120
+ visible,
121
+ labelOffset,
122
+ ruleLength,
123
+ };
124
+ };
125
+ const updatePanoRulerData = () => {
126
+ const panoIndex = five.panoIndex;
127
+ const rulerData = rulerDatas.find((data) => data.panoIndex === panoIndex);
128
+ if (!rulerData)
129
+ return (rulerItemProp = []);
130
+ // 非全景模式下隐藏所有标尺
131
+ if (five.currentMode !== Five.Mode.Panorama)
132
+ return (rulerItemProp = []);
133
+ const cameraPosition = five.camera.position;
134
+ const cameraDirection = five.camera.getWorldDirection(new Vector3());
135
+ const startPoints = rulerData.lines.map((v) => new Vector3(v.start[0], -v.start[1], -v.start[2]));
136
+ const endPoints = rulerData.lines.map((v) => new Vector3(v.end[0], -v.end[1], -v.end[2]));
137
+ // 可以看到的角度最小的拐点
138
+ const [visibleOrigin] = startPoints.concat(endPoints).sort((pointA, pointB) => {
139
+ const angleA = pointA
140
+ .clone()
141
+ .setY(0)
142
+ .sub(cameraPosition)
143
+ .normalize()
144
+ .angleTo(cameraDirection.clone().setY(0));
145
+ const angleB = pointB
146
+ .clone()
147
+ .setY(0)
148
+ .sub(cameraPosition)
149
+ .normalize()
150
+ .angleTo(cameraDirection.clone().setY(0));
151
+ return angleA - angleB;
152
+ });
153
+ const data = rulerData.lines.map((line) => {
154
+ var _a, _b;
155
+ const start = line.start;
156
+ const end = line.end;
157
+ const { startLeft, startTop, distance, deg, visible, labelOffset, ruleLength } = getPositionAndVisible(new Vector3(start[0], -start[1], -start[2]), new Vector3(end[0], -end[1], -end[2]), visibleOrigin);
158
+ const children = [];
159
+ if (line.children && ((_a = line.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
160
+ (_b = line.children) === null || _b === void 0 ? void 0 : _b.forEach((l) => {
161
+ const start = l.start;
162
+ const end = l.end;
163
+ const { distance } = getPosition(new Vector3(start[0], -start[1], -start[2]), new Vector3(end[0], -end[1], -end[2]));
164
+ children.push({
165
+ width: distance,
166
+ state: l.state,
167
+ });
168
+ });
169
+ }
170
+ return {
171
+ width: distance,
172
+ left: startLeft,
173
+ top: startTop,
174
+ rotateDeg: deg,
175
+ state: line.state,
176
+ children,
177
+ labelOffset,
178
+ visible,
179
+ labelElement: options.distanceText(ruleLength),
180
+ };
181
+ });
182
+ rulerItemProp = data;
183
+ };
184
+ const nextFrameFreshRule = () => nextFrame(updatePanoRulerData);
185
+ const throttleFreshRule = throttle(updatePanoRulerData, 80);
186
+ onMount(() => {
187
+ updatePanoRulerData();
188
+ five.on('panoArrived', updatePanoRulerData);
189
+ five.on('modeChange', updatePanoRulerData);
190
+ five.on('cameraDirectionUpdate', nextFrameFreshRule);
191
+ five.on('movingToPano', nextFrameFreshRule);
192
+ five.on('mouseWheel', () => throttleFreshRule());
193
+ five.on('pinchGesture', () => throttleFreshRule());
194
+ });
195
+ onDestroy(() => {
196
+ five.off('panoArrived', updatePanoRulerData);
197
+ five.off('modeChange', updatePanoRulerData);
198
+ five.off('cameraDirectionUpdate', nextFrameFreshRule);
199
+ five.off('movingToPano', nextFrameFreshRule);
200
+ five.off('mouseWheel', () => throttleFreshRule());
201
+ five.off('pinchGesture', () => throttleFreshRule());
202
+ });
203
+ </script>
204
+
205
+ <div>
206
+ {#each rulerItemProp as itemData}
207
+ <RulerItem rulerItemProp="{itemData}" />
208
+ {/each}
209
+ </div>
210
+
211
+ <style>
212
+ </style>
@@ -0,0 +1,58 @@
1
+ <script>import { currentTarget } from '../store';
2
+ export let origins;
3
+ const handleClick = (id) => {
4
+ currentTarget.update(() => `${id}-PanoSpatialTagPlugin-${Date.now()}`);
5
+ };
6
+ </script>
7
+
8
+ {#each origins as origin}
9
+ <i
10
+ class:PanoSpatialTagPlugin__tag-origin={true}
11
+ class:PanoSpatialTagPlugin__tag-origin-destroy={origin.destroying}
12
+ style:top="{origin.top}%"
13
+ style:left="{origin.left}%"
14
+ style:visibility="{origin.front ? 'visible' : 'hidden'}"
15
+ on:click="{() => handleClick(origin.id)}"
16
+ />
17
+ {/each}
18
+
19
+ <style>
20
+ .PanoSpatialTagPlugin__tag-origin {
21
+ position: absolute;
22
+ width: 0.5rem;
23
+ height: 0.5rem;
24
+ border-radius: 50%;
25
+ background: #fff;
26
+ box-shadow: 0 0 .6rem #fff;
27
+ transform: translate(-50%, -50%) scale(1);
28
+ transform-origin: center center;
29
+ animation: PanoSpatialTagPlugin__tag-origin 1.2s forwards;
30
+ pointer-events: auto;
31
+ }
32
+
33
+ .PanoSpatialTagPlugin__tag-origin:after {
34
+ content: '';
35
+ position: absolute;
36
+ top: 50%;
37
+ height: 50%;
38
+ width: 2rem;
39
+ height: 2rem;
40
+ transform: translate(-50%, -50%);
41
+ }
42
+
43
+ .PanoSpatialTagPlugin__tag-origin-destroy {
44
+ transform: translate(-50%, -50%) scale(0.6);
45
+ animation: PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s;
46
+ }
47
+
48
+ @keyframes PanoSpatialTagPlugin__tag-origin {
49
+ 0% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
50
+ 100% { transform: translate(-50%, -50%) scale(0.6); opacity: 1 }
51
+ }
52
+
53
+ @keyframes PanoSpatialTagPlugin__tag-origin-destroy {
54
+ 0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
55
+ 10% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
56
+ 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
57
+ }
58
+ </style>
@@ -0,0 +1,292 @@
1
+ <script>import { onMount, onDestroy, afterUpdate } from 'svelte';
2
+ import '../typings';
3
+ import { currentTarget } from '../store';
4
+ export let id;
5
+ export let upsideDown;
6
+ export let content;
7
+ export let contentZoom;
8
+ export let lineWidthZoom;
9
+ export let lineHeightZoom;
10
+ export let destroying = false;
11
+ export let folded;
12
+ export let dispose;
13
+ export let events;
14
+ export let hooks;
15
+ let contentWidth = 0;
16
+ let contentHeight = 0;
17
+ let contentDom;
18
+ let show;
19
+ let timeoutId = setTimeout(() => {
20
+ if (!folded)
21
+ show = true;
22
+ timeoutId = undefined;
23
+ }, 100);
24
+ const handleClickContent = event => {
25
+ const eventsName = Object.keys(events);
26
+ let node = event.target;
27
+ while (node) {
28
+ const classNames = node.getAttribute('class');
29
+ if (!classNames) {
30
+ node = node.parentNode;
31
+ continue;
32
+ }
33
+ if (classNames.includes('PanoSpatialTagPlugin__tag-content')) {
34
+ node = null;
35
+ break;
36
+ }
37
+ eventsName.forEach(key => {
38
+ if (classNames.includes(key))
39
+ events[key](id);
40
+ });
41
+ node = node.parentNode;
42
+ }
43
+ };
44
+ onMount(() => {
45
+ hooks.emit('initTag', { id });
46
+ });
47
+ const unsubscribe = currentTarget.subscribe((str) => {
48
+ if (str === null)
49
+ return;
50
+ const [currentId, date] = str.split('-PanoSpatialTagPlugin-');
51
+ if (id === currentId) {
52
+ hooks.emit('clickOrigin', { id, show });
53
+ if (!timeoutId) {
54
+ show = folded;
55
+ folded = !folded;
56
+ timeoutId = setTimeout(() => {
57
+ timeoutId = undefined;
58
+ }, 1500);
59
+ }
60
+ }
61
+ });
62
+ afterUpdate(() => {
63
+ contentWidth = contentDom.offsetWidth;
64
+ contentHeight = contentDom.offsetHeight;
65
+ if (timeoutId)
66
+ return;
67
+ show = !folded;
68
+ });
69
+ onDestroy(() => {
70
+ hooks.emit('destroyTag', { id });
71
+ unsubscribe();
72
+ dispose();
73
+ });
74
+ </script>
75
+
76
+ <div
77
+ class:PanoSpatialTagPlugin__tag-x={true}
78
+ class:PanoSpatialTagPlugin__tag-upside-down={upsideDown}
79
+ class:PanoSpatialTagPlugin__tag-show={show}
80
+ class:PanoSpatialTagPlugin__tag-hide={show === false || destroying}
81
+ id={'PanoSpatialTagPlugin__' + id}
82
+ style="height: {20 * lineHeightZoom}rem"
83
+ >
84
+ <div class="PanoSpatialTagPlugin__tag-shadow"
85
+ style="transform: translate({contentWidth / 2 * contentZoom * 3}px, {
86
+ contentHeight / 2 * (upsideDown ? -1 : 1) * contentZoom * 3
87
+ }px) scale({1 / contentZoom})"
88
+ />
89
+ <div class="PanoSpatialTagPlugin__tag-line">
90
+ <i class="PanoSpatialTagPlugin__tag-flagpole"
91
+ style="width: {lineWidthZoom}rem;"
92
+ />
93
+ <i class="PanoSpatialTagPlugin__tag-line1"/>
94
+ <i class="PanoSpatialTagPlugin__tag-line2"/>
95
+ </div>
96
+ <div class="PanoSpatialTagPlugin__tag-animate" style="transform: scale({contentZoom * 3})">
97
+ <div class="PanoSpatialTagPlugin__tag-content" on:click="{handleClickContent}" bind:this={contentDom}>
98
+ {@html content}
99
+ </div>
100
+ </div>
101
+ </div>
102
+
103
+ <style>
104
+ .PanoSpatialTagPlugin__tag-x {
105
+ position: absolute;
106
+ top: 0;
107
+ left: 0;
108
+ display: block;
109
+ white-space: nowrap;
110
+ box-sizing: border-box;
111
+ width: 25rem;
112
+ height: 14rem;
113
+ color: #FFF;
114
+ transform: translate(0, -100%);
115
+ transition: height .5s linear;
116
+ }
117
+
118
+ .PanoSpatialTagPlugin__tag-shadow {
119
+ content: '';
120
+ position: absolute;
121
+ width: 30rem;
122
+ height: 30rem;
123
+ top: -15rem;
124
+ left: -15rem;
125
+ z-index: -1;
126
+ opacity: 0;
127
+ transition: opacity .8s .6s;
128
+ background: url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');
129
+ background-size: 30rem 30rem;
130
+ }
131
+
132
+ .PanoSpatialTagPlugin__tag-line {
133
+ position: absolute;
134
+ left: -1rem;
135
+ width: 2rem;
136
+ height: 100%;
137
+ overflow: hidden;
138
+ }
139
+
140
+ .PanoSpatialTagPlugin__tag-flagpole {
141
+ position: absolute;
142
+ top: 0;
143
+ left: 1rem;
144
+ height: calc(100% - 1.5rem);
145
+ width: .15rem;
146
+ background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));
147
+ box-shadow: 0 .1rem .5rem rgba(0, 0, 0, .2);
148
+ opacity: 0;
149
+ transform: translate(-50%, 60%) scaleY(0);
150
+ transition: transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;
151
+ transform-origin: center bottom;
152
+ }
153
+
154
+ .PanoSpatialTagPlugin__tag-line1 {
155
+ position: absolute;
156
+ top: 0;
157
+ left: 0.3rem;
158
+ height: 1.8rem;
159
+ width: .1rem;
160
+ background: #fff;
161
+ opacity: 0;
162
+ transform: translate(-50%, 200%) scaleY(0);
163
+ transform-origin: center top;
164
+ }
165
+
166
+ .PanoSpatialTagPlugin__tag-line2 {
167
+ position: absolute;
168
+ top: 0;
169
+ left: 0.5rem;
170
+ height: 1.8rem;
171
+ width: .1rem;
172
+ background: #fff;
173
+ opacity: 0;
174
+ transform: translate(-50%, 200%) scaleY(0);
175
+ transform-origin: center top;
176
+ }
177
+
178
+ .PanoSpatialTagPlugin__tag-show .PanoSpatialTagPlugin__tag-line1 {
179
+ animation: PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s;
180
+ }
181
+
182
+ .PanoSpatialTagPlugin__tag-show .PanoSpatialTagPlugin__tag-line2 {
183
+ animation: PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s;
184
+ }
185
+
186
+ .PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down {
187
+ transform: translate(0, 0);
188
+ }
189
+
190
+ .PanoSpatialTagPlugin__tag-upside-down .PanoSpatialTagPlugin__tag-line {
191
+ transform: scaleY(-1);
192
+ }
193
+
194
+ .PanoSpatialTagPlugin__tag-animate {
195
+ position: relative;
196
+ height: 100%;
197
+ overflow: hidden;
198
+ transform-origin: left top;
199
+ transition: transform .5s linear;
200
+ }
201
+
202
+ .PanoSpatialTagPlugin__tag-upside-down .PanoSpatialTagPlugin__tag-animate{
203
+ transform-origin: left bottom;
204
+ }
205
+
206
+ .PanoSpatialTagPlugin__tag-content {
207
+ position: absolute;
208
+ display: inline-block;
209
+ transform: translate(-100%, 0);
210
+ transition: transform .9s cubic-bezier(0,.65,.16,1.08) .6s;
211
+ padding-left: .5rem;
212
+ font-size: 1rem;
213
+ }
214
+
215
+ .PanoSpatialTagPlugin__tag-upside-down .PanoSpatialTagPlugin__tag-content{
216
+ bottom: 0;
217
+ }
218
+
219
+ .PanoSpatialTagPlugin__tag-show .PanoSpatialTagPlugin__tag-flagpole {
220
+ opacity: 1;
221
+ transform: translate(-50%, 0) scaleY(1);
222
+ }
223
+
224
+ .PanoSpatialTagPlugin__tag-upside-down .PanoSpatialTagPlugin__tag-shadow {
225
+ top: unset;
226
+ bottom: -15rem;
227
+ }
228
+
229
+ .PanoSpatialTagPlugin__tag-show .PanoSpatialTagPlugin__tag-shadow {
230
+ opacity: .32;
231
+ }
232
+
233
+ .PanoSpatialTagPlugin__tag-show .PanoSpatialTagPlugin__tag-content {
234
+ transform: translate(0, 0);
235
+ }
236
+
237
+ .PanoSpatialTagPlugin__tag-hide .PanoSpatialTagPlugin__tag-flagpole {
238
+ opacity: 0;
239
+ transform: translate(-50%, 60%) scaleY(0);
240
+ transition: transform .5s .55s, opacity .4s .55s;
241
+ }
242
+
243
+ .PanoSpatialTagPlugin__tag-hide .PanoSpatialTagPlugin__tag-shadow {
244
+ opacity: 0;
245
+ transition: opacity .8s;
246
+ }
247
+
248
+ .PanoSpatialTagPlugin__tag-hide .PanoSpatialTagPlugin__tag-content {
249
+ transform: translate(-100%, 0);
250
+ transition: transform .6s cubic-bezier(.53,.06,.88,.59);
251
+ }
252
+
253
+ .PanoSpatialTagPlugin__tag-hide .PanoSpatialTagPlugin__tag-content * {
254
+ pointer-events: none;
255
+ }
256
+
257
+ .PanoSpatialTagPlugin__tag-hide .PanoSpatialTagPlugin__tag-line1 {
258
+ opacity: 0.5;
259
+ transform: translate(-50%, 10%) scaleY(0);
260
+ animation: PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s;
261
+ }
262
+
263
+ .PanoSpatialTagPlugin__tag-hide .PanoSpatialTagPlugin__tag-line2 {
264
+ opacity: 0.5;
265
+ transform: translate(-50%, 0) scaleY(0);
266
+ animation: PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s;
267
+ }
268
+
269
+ @keyframes PanoSpatialTagPlugin__tag-line1 {
270
+ 0% { opacity: 0; transform: translate(-50%, 250%) scaleY(1); }
271
+ 50% { opacity: 0.5; transform: translate(-50%, 135%) scaleY(1); }
272
+ 100% { opacity: 0.5; transform: translate(-50%, 20%) scaleY(0); }
273
+ }
274
+
275
+ @keyframes PanoSpatialTagPlugin__tag-line2 {
276
+ 0% { opacity: 0; transform: translate(-50%, 250%) scaleY(1); }
277
+ 50% { opacity: 0.5; transform: translate(-50%, 125%) scaleY(1); }
278
+ 100% { opacity: 0.5; transform: translate(-50%, 0) scaleY(0); }
279
+ }
280
+
281
+ @keyframes PanoSpatialTagPlugin__tag-line1-hide {
282
+ 0% { opacity: 0.5; transform: translate(-50%, 10%) scaleY(0); }
283
+ 50% { opacity: 0.2; transform: translate(-50%, 105%) scaleY(1); }
284
+ 100% { opacity: 0; transform: translate(-50%, 200%) scaleY(0); }
285
+ }
286
+
287
+ @keyframes PanoSpatialTagPlugin__tag-line2-hide {
288
+ 0% { opacity: 0.5; transform: translate(-50%, 0) scaleY(0); }
289
+ 50% { opacity: 0.2; transform: translate(-50%, 100%) scaleY(1); }
290
+ 100% { opacity: 0; transform: translate(-50%, 200%) scaleY(0); }
291
+ }
292
+ </style>
@@ -1,8 +1,8 @@
1
1
  import * as THREE from 'three';
2
2
  import { Five, Subscribe } from '@realsee/five';
3
3
  import CSS3DRenderPlugin from '../CSS3DRenderPlugin';
4
- import Origins from './Components/origins';
5
- import Tag from './Components/tag';
4
+ import Origins from './Components/origins.svelte';
5
+ import Tag from './Components/tag.svelte';
6
6
  import { pluginStyle } from './style';
7
7
  import render from '../shared-utils/tinyEJSrender';
8
8
  const MESH_SIZE = 0.001;
@@ -0,0 +1,56 @@
1
+ <script>import { fade } from 'svelte/transition';
2
+ import { Image_Arrow } from '../../Assets/Icon';
3
+ import { cubicInOut } from 'svelte/easing';
4
+ import Shadow from './Shadow.svelte';
5
+ export let direction = 'right';
6
+ export let visible = true;
7
+ export let duration = 0;
8
+ export let inDelay = 0;
9
+ export let outDelay = 0;
10
+ </script>
11
+
12
+ {#if visible}
13
+ <div class="arrow-wrapper">
14
+ <Shadow center blurRadius={9} spreadRadius={3} />
15
+ <div
16
+ on:click
17
+ in:fade|local={{ duration, delay: inDelay, easing: cubicInOut }}
18
+ out:fade|local={{ duration, delay: outDelay, easing: cubicInOut }}
19
+ class="arrow {direction}"
20
+ style="background-image: url({Image_Arrow});"
21
+ />
22
+ </div>
23
+ {/if}
24
+
25
+ <style>
26
+ .arrow {
27
+ width: 100%;
28
+ height: 100%;
29
+ background-size: 100%;
30
+ transition: transform 400ms ease-in-out;
31
+ cursor: pointer;
32
+ pointer-events: auto;
33
+ }
34
+
35
+ .arrow-wrapper {
36
+ position: relative;
37
+ width: 100%;
38
+ height: 100%;
39
+ }
40
+
41
+ .arrow.left {
42
+ transform: rotate(0deg);
43
+ }
44
+
45
+ .arrow.right {
46
+ transform: rotate(-180deg);
47
+ }
48
+
49
+ .arrow.top {
50
+ transform: rotate(90deg);
51
+ }
52
+
53
+ .arrow.bottom {
54
+ transform: rotate(-90deg);
55
+ }
56
+ </style>