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

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 (332) hide show
  1. package/dist/CSS3DRenderPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  2. package/dist/CSS3DRenderPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  3. package/dist/CSS3DRenderPlugin/PanoTagPlugin/index.d.ts +1 -0
  4. package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  5. package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  6. package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  7. package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  8. package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  9. package/dist/CameraMovementPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  10. package/dist/CameraMovementPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  11. package/dist/CameraMovementPlugin/PanoTagPlugin/index.d.ts +1 -0
  12. package/dist/CameraMovementPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  13. package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  14. package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  15. package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  16. package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  17. package/dist/CruisePlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  18. package/dist/CruisePlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  19. package/dist/CruisePlugin/PanoTagPlugin/index.d.ts +1 -0
  20. package/dist/CruisePlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  21. package/dist/CruisePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  22. package/dist/CruisePlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  23. package/dist/CruisePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  24. package/dist/CruisePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  25. package/dist/GuideLinePlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  26. package/dist/GuideLinePlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  27. package/dist/GuideLinePlugin/PanoTagPlugin/index.d.ts +1 -0
  28. package/dist/GuideLinePlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  29. package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  30. package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  31. package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  32. package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  33. package/dist/ItemLabelPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  34. package/dist/ItemLabelPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  35. package/dist/ItemLabelPlugin/PanoTagPlugin/index.d.ts +1 -0
  36. package/dist/ItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  37. package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  38. package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  39. package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  40. package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  41. package/dist/ModelChassisCompassPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  42. package/dist/ModelChassisCompassPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  43. package/dist/ModelChassisCompassPlugin/PanoTagPlugin/index.d.ts +1 -0
  44. package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  45. package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  46. package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  47. package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  48. package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  49. package/dist/ModelEntryDoorGuidePlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  50. package/dist/ModelEntryDoorGuidePlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  51. package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/index.d.ts +1 -0
  52. package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  53. package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  54. package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  55. package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  56. package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  57. package/dist/ModelItemLabelPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  58. package/dist/ModelItemLabelPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  59. package/dist/ModelItemLabelPlugin/PanoTagPlugin/index.d.ts +1 -0
  60. package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  61. package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  62. package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  63. package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  64. package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  65. package/dist/ModelRoomLabelPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  66. package/dist/ModelRoomLabelPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  67. package/dist/ModelRoomLabelPlugin/PanoTagPlugin/index.d.ts +1 -0
  68. package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  69. package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  70. package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  71. package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  72. package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  73. package/dist/ModelTVVideoPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  74. package/dist/ModelTVVideoPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  75. package/dist/ModelTVVideoPlugin/PanoTagPlugin/index.d.ts +1 -0
  76. package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  77. package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  78. package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  79. package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  80. package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  81. package/dist/ModelViewPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  82. package/dist/ModelViewPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  83. package/dist/ModelViewPlugin/PanoTagPlugin/index.d.ts +1 -0
  84. package/dist/ModelViewPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  85. package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  86. package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  87. package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  88. package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  89. package/dist/Object3DHelperPlugin/Controller.d.ts +44 -4
  90. package/dist/Object3DHelperPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  91. package/dist/Object3DHelperPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  92. package/dist/Object3DHelperPlugin/PanoTagPlugin/index.d.ts +1 -0
  93. package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  94. package/dist/Object3DHelperPlugin/index.js +224 -60
  95. package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  96. package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  97. package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  98. package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  99. package/dist/Object3DHelperPlugin/typings.d.ts +24 -0
  100. package/dist/PanoCompassPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  101. package/dist/PanoCompassPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  102. package/dist/PanoCompassPlugin/PanoTagPlugin/index.d.ts +1 -0
  103. package/dist/PanoCompassPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  104. package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  105. package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  106. package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  107. package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  108. package/dist/PanoCursorRaycasterPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  109. package/dist/PanoCursorRaycasterPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  110. package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/index.d.ts +1 -0
  111. package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  112. package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  113. package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  114. package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  115. package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  116. package/dist/PanoDoorLabelPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  117. package/dist/PanoDoorLabelPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  118. package/dist/PanoDoorLabelPlugin/PanoTagPlugin/index.d.ts +1 -0
  119. package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  120. package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  121. package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  122. package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  123. package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  124. package/dist/PanoMeasurePlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  125. package/dist/PanoMeasurePlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  126. package/dist/PanoMeasurePlugin/PanoTagPlugin/index.d.ts +1 -0
  127. package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  128. package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  129. package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  130. package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  131. package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  132. package/dist/PanoRulerPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  133. package/dist/PanoRulerPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  134. package/dist/PanoRulerPlugin/PanoTagPlugin/index.d.ts +1 -0
  135. package/dist/PanoRulerPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  136. package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  137. package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  138. package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  139. package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  140. package/dist/PanoRulerProPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  141. package/dist/PanoRulerProPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  142. package/dist/PanoRulerProPlugin/PanoTagPlugin/index.d.ts +1 -0
  143. package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  144. package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  145. package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  146. package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  147. package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  148. package/dist/PanoSpatialTagPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  149. package/dist/PanoSpatialTagPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  150. package/dist/PanoSpatialTagPlugin/PanoTagPlugin/index.d.ts +1 -0
  151. package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  152. package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  153. package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  154. package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  155. package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  156. package/dist/PanoTagPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  157. package/dist/PanoTagPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  158. package/dist/PanoTagPlugin/PanoTagPlugin/index.d.ts +1 -0
  159. package/dist/PanoTagPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  160. package/dist/PanoTagPlugin/index.d.ts +1 -0
  161. package/dist/PanoTagPlugin/index.js +97 -78
  162. package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  163. package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  164. package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  165. package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  166. package/dist/PanoTagPlugin/typings/tag.d.ts +6 -3
  167. package/dist/floorplan/MapviewFloorplanPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  168. package/dist/floorplan/MapviewFloorplanPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  169. package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/index.d.ts +1 -0
  170. package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  171. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  172. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  173. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  174. package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  175. package/dist/floorplan/ModelFloorplanPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  176. package/dist/floorplan/ModelFloorplanPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  177. package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/index.d.ts +1 -0
  178. package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  179. package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  180. package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  181. package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  182. package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  183. package/dist/floorplan/PanoFloorplanRadarPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  184. package/dist/floorplan/PanoFloorplanRadarPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  185. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/index.d.ts +1 -0
  186. package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  187. package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  188. package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  189. package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  190. package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  191. package/dist/floorplan/TopviewFloorplanPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
  192. package/dist/floorplan/TopviewFloorplanPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
  193. package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/index.d.ts +1 -0
  194. package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +6 -3
  195. package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  196. package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  197. package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  198. package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  199. package/dist/index.es.js +262 -110
  200. package/dist/index.js +297 -145
  201. package/dist/index.umd.js +297 -145
  202. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  203. package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  204. package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  205. package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  206. package/docs/assets/search.js +1 -1
  207. package/docs/classes/CruisePluginController.html +14 -14
  208. package/docs/classes/Magnifier.html +4 -4
  209. package/docs/classes/ModelRoomLabelController.html +4 -4
  210. package/docs/classes/Object3DHelperController.html +14 -7
  211. package/docs/classes/PanoTagPluginController.html +43 -43
  212. package/docs/enums/CameraMovementEffect.html +2 -2
  213. package/docs/enums/ContentType.html +15 -0
  214. package/docs/enums/DIRECTION.html +1 -1
  215. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  216. package/docs/enums/DimensionType.html +1 -0
  217. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  218. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  219. package/docs/enums/LinkType.html +1 -0
  220. package/docs/enums/PointType.html +1 -0
  221. package/docs/enums/Rotation.html +2 -2
  222. package/docs/index.html +2 -2
  223. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  224. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  225. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  226. package/docs/interfaces/FloorplanBounding.html +4 -4
  227. package/docs/interfaces/FloorplanData.html +2 -2
  228. package/docs/interfaces/FloorplanEntrance.html +7 -7
  229. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  230. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  231. package/docs/interfaces/FloorplanFloorData.html +2 -2
  232. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  233. package/docs/interfaces/FloorplanObserver.html +2 -2
  234. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  235. package/docs/interfaces/FloorplanPosition.html +2 -2
  236. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  237. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  238. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  239. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  240. package/docs/interfaces/FloorplanServerData.html +2 -2
  241. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  242. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  243. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  244. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  245. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  246. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  247. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  248. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  249. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  250. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  251. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  252. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  253. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  254. package/docs/interfaces/LineJson.html +1 -1
  255. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  256. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  257. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  258. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  259. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  260. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  261. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  262. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  263. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  264. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  265. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  266. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  267. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  268. package/docs/interfaces/Object3DHelperState.html +1 -1
  269. package/docs/interfaces/OpenParameter.html +2 -2
  270. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  271. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  272. package/docs/interfaces/PanoMeasureParameterType.html +1 -1
  273. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  274. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  275. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  276. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  277. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  278. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  279. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  280. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  281. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  282. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  283. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  284. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  285. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  286. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  287. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  288. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  289. package/docs/interfaces/Point.html +1 -1
  290. package/docs/interfaces/PointJson.html +1 -1
  291. package/docs/interfaces/Room.html +1 -1
  292. package/docs/interfaces/RoomInfo.html +1 -1
  293. package/docs/interfaces/RoomLabel.html +7 -7
  294. package/docs/interfaces/RoomRules.html +1 -1
  295. package/docs/interfaces/Rooms.html +1 -1
  296. package/docs/interfaces/Scissor.html +5 -5
  297. package/docs/interfaces/TagConfig.html +11 -0
  298. package/docs/interfaces/Tags.html +5 -0
  299. package/docs/modules.html +25 -17
  300. package/libs/Object3DHelperPlugin/Controller.d.ts +44 -4
  301. package/libs/Object3DHelperPlugin/Controller.js +136 -7
  302. package/libs/Object3DHelperPlugin/typings.d.ts +24 -0
  303. package/libs/Object3DHelperPlugin/typings.js +1 -0
  304. package/libs/PanoTagPlugin/Components/Common/Arrow.js +1 -2
  305. package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -2
  306. package/libs/PanoTagPlugin/Components/Common/Shadow.js +2 -2
  307. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +9 -9
  308. package/libs/PanoTagPlugin/Components/Tag/MediaPanel.js +1 -1
  309. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +172 -0
  310. package/libs/PanoTagPlugin/Components/Tag/index.js +12 -12
  311. package/libs/PanoTagPlugin/Components/TagWrapper.js +9 -1
  312. package/libs/PanoTagPlugin/controller/index.js +1 -1
  313. package/libs/PanoTagPlugin/index.d.ts +1 -0
  314. package/libs/PanoTagPlugin/index.js +1 -0
  315. package/libs/PanoTagPlugin/mocks/mock1.js +1 -1
  316. package/libs/PanoTagPlugin/mocks/mock6.js +1 -1
  317. package/libs/PanoTagPlugin/tag.config.js +1 -1
  318. package/libs/PanoTagPlugin/typings/tag.d.ts +6 -3
  319. package/libs/PanoTagPlugin/typings/tag.js +1 -1
  320. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +4 -3
  321. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
  322. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +17 -1
  323. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -1
  324. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +1 -1
  325. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
  326. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +9 -22
  327. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
  328. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +3 -0
  329. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  330. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +17 -17
  331. package/libs/shared-utils/Object3DHelper/index.js +0 -2
  332. package/package.json +1 -1
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var five = require('@realsee/five');
5
6
  var THREE = require('three');
6
7
  var CSS3DRenderer = require('three/examples/jsm/renderers/CSS3DRenderer');
7
8
 
@@ -25,8 +26,39 @@ function _interopNamespace(e) {
25
26
 
26
27
  var THREE__namespace = /*#__PURE__*/_interopNamespace(THREE);
27
28
 
29
+ /**
30
+ * plugin 的基本控制器
31
+ */
32
+ class Controller {
33
+ constructor(five$1) {
34
+ Object.defineProperty(this, "five", {
35
+ enumerable: true,
36
+ configurable: true,
37
+ writable: true,
38
+ value: void 0
39
+ });
40
+ /**
41
+ * 插件事件钩子
42
+ */
43
+ Object.defineProperty(this, "hooks", {
44
+ enumerable: true,
45
+ configurable: true,
46
+ writable: true,
47
+ value: new five.Subscribe()
48
+ });
49
+ this.five = five$1;
50
+ }
51
+ /**
52
+ * 获取当前的插件状态,如果当初插件内存在需要通过动画变更的 state 值,则通过此方法可以得到中间状态
53
+ */
54
+ getCurrentState() {
55
+ return this.state;
56
+ }
57
+ }
58
+
28
59
  class BaseHelper extends THREE.Object3D {
29
- constructor(originObject3D) {
60
+ constructor(originObject3D, config) {
61
+ var _a;
30
62
  super();
31
63
  Object.defineProperty(this, "originObject3D", {
32
64
  enumerable: true,
@@ -34,11 +66,26 @@ class BaseHelper extends THREE.Object3D {
34
66
  writable: true,
35
67
  value: void 0
36
68
  });
69
+ Object.defineProperty(this, "needsRender", {
70
+ enumerable: true,
71
+ configurable: true,
72
+ writable: true,
73
+ value: void 0
74
+ });
37
75
  this.originObject3D = originObject3D;
76
+ this.needsRender = (_a = config === null || config === void 0 ? void 0 : config.needsRender) !== null && _a !== void 0 ? _a : (() => { });
38
77
  }
39
78
  get helperObject() {
40
79
  return this;
41
80
  }
81
+ show() {
82
+ this.visible = true;
83
+ this.needsRender();
84
+ }
85
+ hide() {
86
+ this.visible = false;
87
+ this.needsRender();
88
+ }
42
89
  updatePosition() {
43
90
  this.position.copy(this.originObject3D.position);
44
91
  }
@@ -261,29 +308,16 @@ class MoveHelper extends MoveHelperAbstract {
261
308
  this.add(this.yArrow);
262
309
  this.add(this.zArrow);
263
310
  }
264
- hide(...directions) {
265
- if (directions.length === 0) {
266
- this.xArrow.visible = false;
267
- this.yArrow.visible = false;
268
- this.zArrow.visible = false;
269
- }
270
- else {
271
- directions.forEach((direction) => {
272
- const arrow = [this.xArrow, this.yArrow, this.zArrow].find((arrow) => arrow.direction === direction);
273
- arrow && (arrow.visible = false);
274
- });
275
- }
311
+ show() {
312
+ super.show();
313
+ this.xArrow.visible = true;
314
+ this.yArrow.visible = true;
315
+ this.zArrow.visible = true;
276
316
  }
277
- show(direction) {
278
- if (!direction) {
279
- this.xArrow.visible = true;
280
- this.yArrow.visible = true;
281
- this.zArrow.visible = true;
282
- }
283
- else {
284
- const arrow = [this.xArrow, this.yArrow, this.zArrow].find((arrow) => arrow.direction === direction);
285
- arrow && (arrow.visible = true);
286
- }
317
+ showDraggingHelper(directions) {
318
+ this.xArrow.visible = directions.includes('x');
319
+ this.yArrow.visible = directions.includes('y');
320
+ this.zArrow.visible = directions.includes('z');
287
321
  }
288
322
  dispose() {
289
323
  this.remove(this.xArrow, this.yArrow, this.zArrow);
@@ -421,21 +455,21 @@ class RotateHelper extends RotateHelperAbstract {
421
455
  this.zAngleHelper.baseAxes.applyQuaternion(quaternion);
422
456
  }
423
457
  hide() {
458
+ // 改为remove而不是设置visible,是因为会影响其他helper的碰撞检测
424
459
  this.remove(this.yzCircle, this.xzCircle, this.xyCircle, this.xRingHelper, this.yRingHelper, this.zRingHelper, this.xAngleHelper, this.yAngleHelper, this.zAngleHelper);
425
460
  }
426
- show(direction) {
427
- var _a, _b;
428
- if (direction) {
429
- this.hide();
430
- this.add(...this.filterRingHelper(direction));
431
- this.add(...this.filterAngleHelper(direction));
432
- (_a = this.angleTips) === null || _a === void 0 ? void 0 : _a.show();
433
- }
434
- else {
435
- this.add(this.xyCircle, this.xzCircle, this.yzCircle);
436
- this.remove(this.xRingHelper, this.yRingHelper, this.zRingHelper, this.xAngleHelper, this.yAngleHelper, this.zAngleHelper);
437
- (_b = this.angleTips) === null || _b === void 0 ? void 0 : _b.hide();
438
- }
461
+ show() {
462
+ var _a;
463
+ this.add(this.xyCircle, this.xzCircle, this.yzCircle);
464
+ this.remove(this.xRingHelper, this.yRingHelper, this.zRingHelper, this.xAngleHelper, this.yAngleHelper, this.zAngleHelper);
465
+ (_a = this.angleTips) === null || _a === void 0 ? void 0 : _a.hide();
466
+ }
467
+ showDraggingHelper(directions) {
468
+ var _a;
469
+ this.hide();
470
+ this.add(...this.filterRingHelper(directions));
471
+ this.add(...this.filterAngleHelper(directions));
472
+ (_a = this.angleTips) === null || _a === void 0 ? void 0 : _a.show();
439
473
  }
440
474
  dispose() {
441
475
  var _a, _b;
@@ -443,11 +477,11 @@ class RotateHelper extends RotateHelperAbstract {
443
477
  if ((_a = this.angleTips) === null || _a === void 0 ? void 0 : _a.element)
444
478
  (_b = this.container) === null || _b === void 0 ? void 0 : _b.removeChild(this.angleTips.element);
445
479
  }
446
- filterRingHelper(direction) {
447
- return [this.xRingHelper, this.yRingHelper, this.zRingHelper].filter((helper) => helper.direction === direction);
480
+ filterRingHelper(directions) {
481
+ return [this.xRingHelper, this.yRingHelper, this.zRingHelper].filter((helper) => directions.includes(helper.direction));
448
482
  }
449
- filterAngleHelper(direction) {
450
- return [this.xAngleHelper, this.yAngleHelper, this.zAngleHelper].filter((helper) => helper.direction === direction);
483
+ filterAngleHelper(directions) {
484
+ return [this.xAngleHelper, this.yAngleHelper, this.zAngleHelper].filter((helper) => directions.includes(helper.direction));
451
485
  }
452
486
  }
453
487
  class Circle extends THREE__namespace.Mesh {
@@ -1423,6 +1457,9 @@ class RectangleScaleHelper extends RectangleScaleHelperAbstract {
1423
1457
  (_b = this.plane) === null || _b === void 0 ? void 0 : _b.applyMatrix4(matrix);
1424
1458
  this.cornerPositions.forEach((cornerPosition) => cornerPosition.applyMatrix4(matrix));
1425
1459
  }
1460
+ showDraggingHelper() {
1461
+ // nothing to do
1462
+ }
1426
1463
  setHelperScaleMatrix4(matrix, params) {
1427
1464
  var _a, _b;
1428
1465
  (_a = this.css3DInstance) === null || _a === void 0 ? void 0 : _a.css3DObject.scale.applyMatrix4(matrix);
@@ -2067,16 +2104,17 @@ class BaseController {
2067
2104
  this.needsRender();
2068
2105
  }
2069
2106
  show() {
2070
- this.helperObject3D.visible = true;
2107
+ this.helperObject3D.show();
2071
2108
  this.needsRender();
2072
2109
  }
2073
2110
  hide() {
2074
- this.helperObject3D.visible = false;
2111
+ this.helperObject3D.hide();
2075
2112
  this.needsRender();
2076
2113
  }
2077
2114
  dispose() {
2078
- this.scene.remove(this.helperObject3D);
2079
2115
  this.helperObject3D.dispose();
2116
+ this.scene.remove(this.helperObject3D);
2117
+ this.needsRender();
2080
2118
  }
2081
2119
  updateHelperPosition() {
2082
2120
  this.helperObject3D.updatePosition();
@@ -2233,7 +2271,7 @@ class MoveController extends BaseController {
2233
2271
  plane.setFromNormalAndCoplanarPoint(planeNormal, startIntersect);
2234
2272
  this.startInfo = { startVectorProject: startIntersect.clone().projectOnVector(directionVector), directionVector, plane };
2235
2273
  // 隐藏其他箭头
2236
- this.helperObject3D.hide(...['x', 'y', 'z'].filter((direction) => direction !== draggingDirection));
2274
+ this.helperObject3D.showDraggingHelper([draggingDirection]);
2237
2275
  this.hooks.emit('moveStart');
2238
2276
  this.isDragging = true;
2239
2277
  console.log('%c MoveController dragStart', 'color: #e5af2e');
@@ -2338,13 +2376,13 @@ class ControllerWrapper {
2338
2376
  const VERSION$1 = 'v1.0.0';
2339
2377
  const NAME = 'Object3DHelper';
2340
2378
  const NAMEVERSION = `${NAME}@${VERSION$1}`;
2341
- const disposedErrorLog = () => {
2379
+ const disposedErrorLog$1 = () => {
2342
2380
  console.error(`${NAMEVERSION} is disposed`);
2343
2381
  };
2344
- const disableWarnLog = () => {
2382
+ const disableWarnLog$1 = () => {
2345
2383
  console.warn(`${NAMEVERSION} is disabled`);
2346
2384
  };
2347
- const disableErrorLog = () => {
2385
+ const disableErrorLog$1 = () => {
2348
2386
  console.error(`${NAMEVERSION} is disabled`);
2349
2387
  };
2350
2388
  class Object3DHelper {
@@ -2479,11 +2517,11 @@ class Object3DHelper {
2479
2517
  }
2480
2518
  setState(state, options) {
2481
2519
  if (this.state.disposed)
2482
- return disposedErrorLog();
2520
+ return disposedErrorLog$1();
2483
2521
  if (!this.state.enabled) {
2484
2522
  // when plugin is disabled, only can change enabled or disposed to true
2485
2523
  if (state.enabled !== true && state.disposed !== true)
2486
- return disableErrorLog();
2524
+ return disableErrorLog$1();
2487
2525
  }
2488
2526
  const prevState = Object.assign({}, this.state);
2489
2527
  this.state = Object.assign(Object.assign({}, this.state), state);
@@ -2571,7 +2609,6 @@ class Object3DHelper {
2571
2609
  }
2572
2610
  }
2573
2611
  handleEnable(enabled, userAction = true) {
2574
- console.log({ enabled });
2575
2612
  if (enabled) {
2576
2613
  this.everyControllerDo((controller) => controller.enable());
2577
2614
  this.hooks.emit('enable', { userAction });
@@ -2583,7 +2620,6 @@ class Object3DHelper {
2583
2620
  this.state.enabled = enabled;
2584
2621
  }
2585
2622
  handleVisible(visible, userAction = true) {
2586
- console.log({ visible });
2587
2623
  if (visible) {
2588
2624
  this.everyControllerDo((controller) => controller.show());
2589
2625
  this.actionIfStateIsEnabled(() => this.hooks.emit('show', { userAction }));
@@ -2610,7 +2646,7 @@ class Object3DHelper {
2610
2646
  return func();
2611
2647
  else {
2612
2648
  if (options === null || options === void 0 ? void 0 : options.warnLog)
2613
- disableWarnLog();
2649
+ disableWarnLog$1();
2614
2650
  }
2615
2651
  }
2616
2652
  }
@@ -2713,7 +2749,7 @@ class RotateController extends BaseController {
2713
2749
  // this.a = new THREE.PlaneHelper(plane, 10, 0xffff00)
2714
2750
  // this.scene.add(this.a)
2715
2751
  this.startInfo = { direction, startVector, staticStartVector, plane, angleHelper };
2716
- this.helperObject3D.show(direction);
2752
+ this.helperObject3D.showDraggingHelper([direction]);
2717
2753
  this.hooks.emit('rotateStart');
2718
2754
  this.isDragging = true;
2719
2755
  console.log(`%c RotateController dragStart ${direction}`, 'color: #e5af2e');
@@ -3087,9 +3123,18 @@ class CSS3DScaleController extends RectangleScaleController {
3087
3123
  const VERSION = 'v1.0.0';
3088
3124
  const PLUGIN_NAME = 'Object3DHelperPlugin';
3089
3125
  const PLUGIN = `${PLUGIN_NAME}@${VERSION}`;
3090
- class Object3DHelperController extends Object3DHelper {
3126
+ const disposedErrorLog = () => {
3127
+ console.error(`${PLUGIN} is disposed`);
3128
+ };
3129
+ const disableWarnLog = () => {
3130
+ console.warn(`${PLUGIN} is disabled`);
3131
+ };
3132
+ const disableErrorLog = () => {
3133
+ console.error(`${PLUGIN} is disabled`);
3134
+ };
3135
+ class Object3DHelperController extends Controller {
3091
3136
  constructor(five) {
3092
- super();
3137
+ super(five);
3093
3138
  Object.defineProperty(this, "version", {
3094
3139
  enumerable: true,
3095
3140
  configurable: true,
@@ -3102,15 +3147,80 @@ class Object3DHelperController extends Object3DHelper {
3102
3147
  writable: true,
3103
3148
  value: PLUGIN_NAME
3104
3149
  });
3105
- Object.defineProperty(this, "five", {
3150
+ Object.defineProperty(this, "state", {
3106
3151
  enumerable: true,
3107
3152
  configurable: true,
3108
3153
  writable: true,
3109
- value: void 0
3154
+ value: {
3155
+ visible: true,
3156
+ enabled: true,
3157
+ disposed: false,
3158
+ }
3159
+ });
3160
+ Object.defineProperty(this, "objectHelperMap", {
3161
+ enumerable: true,
3162
+ configurable: true,
3163
+ writable: true,
3164
+ value: new Map()
3110
3165
  });
3111
3166
  this.five = five;
3112
3167
  Object.assign(window, { [`__${PLUGIN_NAME.toUpperCase()}_DEBUG__`]: this });
3113
3168
  }
3169
+ /**
3170
+ * @description Show guide line
3171
+ */
3172
+ async show(options) {
3173
+ this.setState({ visible: true }, options);
3174
+ }
3175
+ /**
3176
+ * @description Hide guide line
3177
+ */
3178
+ async hide(options) {
3179
+ this.setState({ visible: false }, options);
3180
+ }
3181
+ /**
3182
+ * @description Enable
3183
+ */
3184
+ enable(options) {
3185
+ this.setState({ enabled: true }, options);
3186
+ }
3187
+ /**
3188
+ * @description Disable
3189
+ */
3190
+ disable(options) {
3191
+ this.setState({ enabled: false }, options);
3192
+ }
3193
+ /**
3194
+ * @description Dispose
3195
+ */
3196
+ dispose() {
3197
+ this.setState({ disposed: true });
3198
+ }
3199
+ setState(state, options) {
3200
+ if (this.state.disposed)
3201
+ return disposedErrorLog();
3202
+ if (!this.state.enabled) {
3203
+ // when plugin is disabled, only can change enabled or disposed to true
3204
+ if (state.enabled !== true && state.disposed !== true)
3205
+ return disableErrorLog();
3206
+ }
3207
+ const prevState = Object.assign({}, this.state);
3208
+ this.state = Object.assign(Object.assign({}, this.state), state);
3209
+ if (state.disposed !== undefined && state.disposed !== prevState.disposed) {
3210
+ if (state.disposed)
3211
+ this.handleDispose();
3212
+ }
3213
+ if (state.visible !== undefined && state.visible !== prevState.visible) {
3214
+ this.handleVisible(state.visible);
3215
+ }
3216
+ if (state.enabled !== undefined && state.enabled !== prevState.enabled) {
3217
+ this.handleEnable(state.enabled);
3218
+ }
3219
+ this.hooks.emit('stateChange', { state: this.state, prevState });
3220
+ }
3221
+ getObject3DHelper(object3D) {
3222
+ return this.objectHelperMap.get(object3D);
3223
+ }
3114
3224
  /**
3115
3225
  * @description 添加 helper
3116
3226
  * @param { THREE.Object3D } object3D 要添加helper的物体
@@ -3120,6 +3230,12 @@ class Object3DHelperController extends Object3DHelper {
3120
3230
  */
3121
3231
  addObject3DHelper(object3D, config = {}) {
3122
3232
  var _a;
3233
+ if (this.objectHelperMap.has(object3D)) {
3234
+ console.warn(`Object3DHelperPlugin: object3D ${object3D.name} already has helper`);
3235
+ return;
3236
+ }
3237
+ const helper = new Object3DHelper();
3238
+ this.objectHelperMap.set(object3D, helper);
3123
3239
  const container = (_a = this.five.getElement()) === null || _a === void 0 ? void 0 : _a.parentElement;
3124
3240
  const camera = this.five.camera;
3125
3241
  // 创建空的helperGroup
@@ -3129,7 +3245,7 @@ class Object3DHelperController extends Object3DHelper {
3129
3245
  if (moveHelper) {
3130
3246
  const moveHelper = new MoveHelper(object3D);
3131
3247
  const controllerWrapper = new ControllerWrapper(this.five, MoveController, object3D, moveHelper);
3132
- this.addControllers({ moveController: controllerWrapper.helperController });
3248
+ helper.addControllers({ moveController: controllerWrapper.helperController });
3133
3249
  }
3134
3250
  if (rotateHelper) {
3135
3251
  let angleTipsParams;
@@ -3137,13 +3253,13 @@ class Object3DHelperController extends Object3DHelper {
3137
3253
  angleTipsParams = { container };
3138
3254
  const rotateHelper = new RotateHelper(object3D, angleTipsParams);
3139
3255
  const controllerWrapper = new ControllerWrapper(this.five, RotateController, object3D, rotateHelper);
3140
- this.addControllers({ rotateController: controllerWrapper.helperController });
3256
+ helper.addControllers({ rotateController: controllerWrapper.helperController });
3141
3257
  }
3142
3258
  if (scaleHelper) {
3143
3259
  if (container) {
3144
3260
  const scaleHelper = new RectangleScaleHelper(object3D, container, camera, this.five.scene);
3145
3261
  const controllerWrapper = new ControllerWrapper(this.five, CSS3DScaleController, object3D, scaleHelper);
3146
- this.addControllers({ scaleController: controllerWrapper.helperController });
3262
+ helper.addControllers({ scaleController: controllerWrapper.helperController });
3147
3263
  }
3148
3264
  }
3149
3265
  // if (mergeConfig.outlineHelper) {
@@ -3153,6 +3269,54 @@ class Object3DHelperController extends Object3DHelper {
3153
3269
  // }
3154
3270
  // this.five.scene.add(helperGroup)
3155
3271
  }
3272
+ removeObject3DHelper(object3D) {
3273
+ const helper = this.objectHelperMap.get(object3D);
3274
+ if (!helper)
3275
+ return;
3276
+ this.objectHelperMap.delete(object3D);
3277
+ helper.dispose();
3278
+ }
3279
+ handleEnable(enabled, userAction = true) {
3280
+ console.log({ enabled });
3281
+ if (enabled) {
3282
+ this.everyHelperDo((helper) => helper.enable());
3283
+ this.hooks.emit('enable', { userAction });
3284
+ }
3285
+ else {
3286
+ this.everyHelperDo((helper) => helper.disable());
3287
+ this.hooks.emit('disable', { userAction });
3288
+ }
3289
+ this.state.enabled = enabled;
3290
+ }
3291
+ handleVisible(visible, userAction = true) {
3292
+ console.log({ visible });
3293
+ if (visible) {
3294
+ this.everyHelperDo((helper) => helper.show());
3295
+ this.actionIfStateIsEnabled(() => this.hooks.emit('show', { userAction }));
3296
+ }
3297
+ else {
3298
+ this.everyHelperDo((helper) => helper.hide());
3299
+ this.actionIfStateIsEnabled(() => this.hooks.emit('hide', { userAction }));
3300
+ }
3301
+ this.state.visible = visible;
3302
+ }
3303
+ handleDispose() {
3304
+ this.everyHelperDo((helper) => helper.dispose());
3305
+ }
3306
+ everyHelperDo(func) {
3307
+ this.objectHelperMap.forEach((helper) => {
3308
+ if (helper)
3309
+ func(helper);
3310
+ });
3311
+ }
3312
+ actionIfStateIsEnabled(func, options) {
3313
+ if (this.state.enabled)
3314
+ return func();
3315
+ else {
3316
+ if (options === null || options === void 0 ? void 0 : options.warnLog)
3317
+ disableWarnLog();
3318
+ }
3319
+ }
3156
3320
  }
3157
3321
 
3158
3322
  const Object3DHelperPlugin = (five) => new Object3DHelperController(five);
@@ -5,8 +5,13 @@ import type { Direction, Direction4 } from '../typings';
5
5
  import type { tipsDom } from '../Helper/HTML/tipsDom';
6
6
  export declare abstract class BaseHelper<OriginObject3D extends Object3D = Object3D> extends Object3D {
7
7
  protected originObject3D: OriginObject3D;
8
+ protected needsRender: () => any;
8
9
  get helperObject(): Object3D;
9
- constructor(originObject3D: OriginObject3D);
10
+ constructor(originObject3D: OriginObject3D, config?: {
11
+ needsRender?: () => any;
12
+ });
13
+ show(): void;
14
+ hide(): void;
10
15
  updatePosition(): void;
11
16
  setPosition(position: Vector3): void;
12
17
  updateMatrix4(matrix: THREE.Matrix4, origin?: THREE.Vector3): void;
@@ -15,8 +20,7 @@ export declare abstract class BaseHelper<OriginObject3D extends Object3D = Objec
15
20
  helperOrigin?: THREE.Vector3;
16
21
  }): void;
17
22
  updateQuaternion(quaternion: THREE.Quaternion, origin?: THREE.Vector3): void;
18
- abstract hide(...args: any[]): void;
19
- abstract show(...args: any[]): void;
23
+ abstract showDraggingHelper(directions?: Direction[]): void;
20
24
  abstract dispose(): void;
21
25
  }
22
26
  export declare abstract class MoveHelperAbstract<OriginObject3D extends Object3D = Object3D> extends BaseHelper<OriginObject3D> {
@@ -35,8 +39,6 @@ export declare abstract class MoveHelperAbstract<OriginObject3D extends Object3D
35
39
  line?: Object3D;
36
40
  direction: Direction;
37
41
  };
38
- abstract hide(...directions: Direction[]): void;
39
- abstract show(...directions: Direction[]): void;
40
42
  }
41
43
  export declare abstract class RotateHelperAbstract<OriginObject3D extends Object3D = Object3D> extends BaseHelper<OriginObject3D> {
42
44
  abstract xyCircle: Mesh & {
@@ -64,8 +66,7 @@ export declare abstract class RotateHelperAbstract<OriginObject3D extends Object
64
66
  direction: Direction;
65
67
  };
66
68
  abstract angleTips?: ReturnType<typeof tipsDom>;
67
- abstract hide(): void;
68
- abstract show(direction?: Direction): void;
69
+ abstract showDraggingHelper(directions: Direction[]): void;
69
70
  abstract updateAngleHelperQuaternion(): void;
70
71
  }
71
72
  export declare abstract class ScaleHelperAbstract<OriginObject3D extends Object3D = Object3D> extends BaseHelper<OriginObject3D> {
@@ -7,7 +7,7 @@ export declare class MoveHelper extends MoveHelperAbstract {
7
7
  yArrow: ArrowGroup;
8
8
  zArrow: ArrowGroup;
9
9
  constructor(originObject3D: Object3D);
10
- hide(...directions: Direction[]): void;
11
- show(direction?: Direction): void;
10
+ show(): void;
11
+ showDraggingHelper(directions: Direction[]): void;
12
12
  dispose(): void;
13
13
  }
@@ -21,6 +21,7 @@ export declare class RectangleScaleHelper<T extends OriginObjectType = OriginObj
21
21
  updatePosition(): void;
22
22
  setPosition(position: Vector3): void;
23
23
  updateMatrix4(matrix: THREE.Matrix4): void;
24
+ showDraggingHelper(): void;
24
25
  setHelperScaleMatrix4(matrix: THREE.Matrix4, params?: {
25
26
  origin?: Vector3;
26
27
  helperOrigin?: Vector3;
@@ -21,7 +21,8 @@ export declare class RotateHelper extends RotateHelperAbstract {
21
21
  updateAngleHelperQuaternion(): void;
22
22
  updateQuaternion(quaternion: THREE.Quaternion, origin?: THREE.Vector3): void;
23
23
  hide(): void;
24
- show(direction?: Direction): void;
24
+ show(): void;
25
+ showDraggingHelper(directions: Direction[]): void;
25
26
  dispose(): void;
26
27
  private filterRingHelper;
27
28
  private filterAngleHelper;
@@ -0,0 +1,24 @@
1
+ export interface Object3DHelperPluginState {
2
+ enabled: boolean;
3
+ visible: boolean;
4
+ disposed: boolean;
5
+ }
6
+ export declare type Object3DHelperPluginEventMap = {
7
+ show: (options?: {
8
+ userAction?: boolean;
9
+ }) => void;
10
+ hide: (options?: {
11
+ userAction?: boolean;
12
+ }) => void;
13
+ enable: (options?: {
14
+ userAction?: boolean;
15
+ }) => void;
16
+ disable: (options?: {
17
+ userAction?: boolean;
18
+ }) => void;
19
+ dispose: () => void;
20
+ stateChange: (params: {
21
+ state: Object3DHelperPluginState;
22
+ prevState?: Object3DHelperPluginState;
23
+ }) => void;
24
+ };
@@ -1,15 +1,49 @@
1
1
  import type { Five } from '@realsee/five';
2
- import type * as BasePlugin from '../base/BasePlugin';
2
+ import * as BasePlugin from '../base/BasePlugin';
3
3
  import type * as THREE from 'three';
4
4
  import { Object3DHelper } from '../shared-utils/Object3DHelper';
5
- import type { Object3DHelperState, Object3DHelperEventMap } from '../shared-utils/Object3DHelper/typings';
5
+ import type { Object3DHelperState } from '../shared-utils/Object3DHelper/typings';
6
+ import type { Object3DHelperPluginEventMap, Object3DHelperPluginState } from './typings';
6
7
  export declare const VERSION = "v1.0.0";
7
8
  export declare const PLUGIN: string;
8
- export declare class Object3DHelperController extends Object3DHelper implements BasePlugin.Controller<Object3DHelperState, Object3DHelperEventMap> {
9
+ export declare class Object3DHelperController extends BasePlugin.Controller<Object3DHelperPluginState, Object3DHelperPluginEventMap> {
9
10
  version: string;
10
11
  name: string;
11
- five: Five;
12
+ state: Object3DHelperState;
13
+ objectHelperMap: Map<THREE.Object3D, Object3DHelper>;
12
14
  constructor(five: Five);
15
+ /**
16
+ * @description Show guide line
17
+ */
18
+ show(options?: {
19
+ userAction?: boolean;
20
+ }): Promise<void>;
21
+ /**
22
+ * @description Hide guide line
23
+ */
24
+ hide(options?: {
25
+ userAction?: boolean;
26
+ }): Promise<void>;
27
+ /**
28
+ * @description Enable
29
+ */
30
+ enable(options?: {
31
+ userAction?: boolean;
32
+ }): void;
33
+ /**
34
+ * @description Disable
35
+ */
36
+ disable(options?: {
37
+ userAction?: boolean;
38
+ }): void;
39
+ /**
40
+ * @description Dispose
41
+ */
42
+ dispose(): void;
43
+ setState(state: Partial<Object3DHelperState>, options?: {
44
+ userAction?: boolean;
45
+ } & Record<string, any>): void;
46
+ getObject3DHelper(object3D: THREE.Object3D): Object3DHelper;
13
47
  /**
14
48
  * @description 添加 helper
15
49
  * @param { THREE.Object3D } object3D 要添加helper的物体
@@ -22,4 +56,10 @@ export declare class Object3DHelperController extends Object3DHelper implements
22
56
  rotateHelper?: boolean;
23
57
  scaleHelper?: boolean;
24
58
  }): void;
59
+ removeObject3DHelper(object3D: THREE.Object3D): void;
60
+ private handleEnable;
61
+ private handleVisible;
62
+ private handleDispose;
63
+ private everyHelperDo;
64
+ private actionIfStateIsEnabled;
25
65
  }
@@ -0,0 +1,24 @@
1
+ export interface Object3DHelperPluginState {
2
+ enabled: boolean;
3
+ visible: boolean;
4
+ disposed: boolean;
5
+ }
6
+ export declare type Object3DHelperPluginEventMap = {
7
+ show: (options?: {
8
+ userAction?: boolean;
9
+ }) => void;
10
+ hide: (options?: {
11
+ userAction?: boolean;
12
+ }) => void;
13
+ enable: (options?: {
14
+ userAction?: boolean;
15
+ }) => void;
16
+ disable: (options?: {
17
+ userAction?: boolean;
18
+ }) => void;
19
+ dispose: () => void;
20
+ stateChange: (params: {
21
+ state: Object3DHelperPluginState;
22
+ prevState?: Object3DHelperPluginState;
23
+ }) => void;
24
+ };
@@ -1,6 +1,7 @@
1
1
  import type { FivePlugin } from '@realsee/five';
2
2
  import PanoTagPluginController from './controller';
3
3
  export * from './controller';
4
+ export * from './typings/tag';
4
5
  export declare type PanoTagPluginExportInterface = InstanceType<typeof PanoTagPluginController>;
5
6
  export declare type PanoTagPluginParamsInterface = ConstructorParameters<typeof PanoTagPluginController>[1];
6
7
  export declare const PanoTagPlugin: FivePlugin<PanoTagPluginParamsInterface, PanoTagPluginExportInterface>;