@realsee/dnalogel 3.20.6 → 3.21.0

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 (606) hide show
  1. package/dist/Object3DHelperPlugin/Controller.d.ts +25 -18
  2. package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -0
  3. package/dist/PanoMeasurePlugin/Model/area.d.ts +2 -1
  4. package/dist/PanoMeasurePlugin/Model/line.d.ts +1 -1
  5. package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +2 -55
  6. package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -1
  7. package/dist/Sculpt/Meshes/Area.d.ts +30 -0
  8. package/dist/Sculpt/Meshes/Box.d.ts +35 -0
  9. package/dist/Sculpt/Meshes/Circle.d.ts +26 -0
  10. package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +11 -0
  11. package/dist/Sculpt/Meshes/Cylinder.d.ts +34 -0
  12. package/dist/Sculpt/Meshes/Line.d.ts +27 -0
  13. package/dist/Sculpt/Meshes/LineWithDots.d.ts +30 -0
  14. package/dist/Sculpt/Meshes/Point.d.ts +22 -0
  15. package/dist/Sculpt/Meshes/Polygon.d.ts +31 -0
  16. package/dist/Sculpt/Meshes/Polyline.d.ts +34 -0
  17. package/dist/Sculpt/Meshes/Prism.d.ts +31 -0
  18. package/dist/Sculpt/Meshes/Rectangle.d.ts +24 -0
  19. package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +20 -0
  20. package/dist/Sculpt/Modules/Cursor.d.ts +13 -0
  21. package/dist/Sculpt/Modules/Global.d.ts +20 -0
  22. package/dist/Sculpt/Objects/Base/Editor.d.ts +21 -0
  23. package/dist/Sculpt/Objects/Base/index.d.ts +60 -0
  24. package/dist/Sculpt/Objects/Box/Editor.d.ts +5 -0
  25. package/dist/Sculpt/Objects/Box/index.d.ts +28 -0
  26. package/dist/Sculpt/Objects/Circle/Editor.d.ts +5 -0
  27. package/dist/Sculpt/Objects/Circle/index.d.ts +28 -0
  28. package/dist/Sculpt/Objects/Cylinder/Editor.d.ts +5 -0
  29. package/dist/Sculpt/Objects/Cylinder/index.d.ts +30 -0
  30. package/dist/Sculpt/Objects/Point/Editor.d.ts +8 -0
  31. package/dist/Sculpt/Objects/Point/index.d.ts +35 -0
  32. package/dist/Sculpt/Objects/Polygon/Editor.d.ts +8 -0
  33. package/dist/Sculpt/Objects/Polygon/index.d.ts +28 -0
  34. package/dist/Sculpt/Objects/Polyline/Editor.d.ts +25 -0
  35. package/dist/Sculpt/Objects/Polyline/index.d.ts +31 -0
  36. package/dist/Sculpt/Objects/Prism/Editor.d.ts +5 -0
  37. package/dist/Sculpt/Objects/Prism/index.d.ts +28 -0
  38. package/dist/Sculpt/Objects/Rectangle/Editor.d.ts +5 -0
  39. package/dist/Sculpt/Objects/Rectangle/index.d.ts +29 -0
  40. package/dist/Sculpt/index.d.ts +184 -0
  41. package/dist/Sculpt/typings/index.d.ts +16 -0
  42. package/dist/Sculpt/typings/utils.type.d.ts +12 -0
  43. package/dist/Sculpt/utils/color.d.ts +40 -0
  44. package/dist/Sculpt/utils/data.d.ts +7 -0
  45. package/dist/Sculpt/utils/getBetterNormal.d.ts +2 -0
  46. package/dist/Sculpt/utils/radiusToSegments.d.ts +1 -0
  47. package/dist/Sculpt/utils/three/ColoredMesh.d.ts +17 -0
  48. package/dist/Sculpt/utils/three/RectangleGeometry.d.ts +6 -0
  49. package/dist/Sculpt/utils/three/rayOnLine.d.ts +5 -0
  50. package/dist/index.cjs.js +70 -70
  51. package/dist/index.d.ts +1 -0
  52. package/dist/index.js +11554 -9325
  53. package/dist/index.umd.js +63 -63
  54. package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +13 -5
  55. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +17 -6
  56. package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
  57. package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +14 -7
  58. package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +4 -2
  59. package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
  60. package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +12 -3
  61. package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +1 -0
  62. package/dist/shared-utils/Object3DHelper/typings/index.d.ts +11 -0
  63. package/dist/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +2 -0
  64. package/dist/shared-utils/createLine/index.d.ts +2 -2
  65. package/dist/shared-utils/five/FiveDomEvents.d.ts +50 -13
  66. package/dist/shared-utils/five/FiveLine.d.ts +8 -0
  67. package/dist/shared-utils/five/getPosition.d.ts +14 -0
  68. package/dist/shared-utils/five/getRaycasterByNdcPosition.d.ts +6 -0
  69. package/dist/shared-utils/positionToVector3.d.ts +1 -0
  70. package/dist/shared-utils/three/IObject3D.d.ts +4 -0
  71. package/dist/shared-utils/three/Magnifier.d.ts +33 -19
  72. package/dist/shared-utils/three/PointSelector.d.ts +25 -11
  73. package/dist/shared-utils/three/PointSelectorHelper.d.ts +2 -0
  74. package/{libs/PanoMeasurePlugin/utils → dist/shared-utils/three}/geometryUtil.d.ts +1 -1
  75. package/dist/shared-utils/three/getIntersect.d.ts +16 -2
  76. package/dist/shared-utils/three/getNormal.d.ts +1 -1
  77. package/dist/shared-utils/three/recurveFindObject.d.ts +2 -0
  78. package/dist/shared-utils/three/vector3ToArray.d.ts +3 -0
  79. package/docs/assets/search.js +1 -1
  80. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +9 -4
  81. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +9 -4
  82. package/docs/classes/CSS3DRender.html +10 -5
  83. package/docs/classes/GuideLineItem.GuideLineItem.html +10 -5
  84. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +10 -5
  85. package/docs/classes/ModelRoomLabelController.html +10 -5
  86. package/docs/classes/MoveController.html +10 -5
  87. package/docs/classes/Object3DHelperController.html +26 -39
  88. package/docs/classes/PaintBrush.html +10 -5
  89. package/docs/classes/PanoMeasurePluginLine.html +12 -7
  90. package/docs/classes/PanoMeasurePluginModel.html +10 -5
  91. package/docs/classes/PanoMeasurePluginPoint.html +10 -5
  92. package/docs/classes/PanoMeasurePluginPolyline.html +10 -5
  93. package/docs/classes/PanoTagPluginController.html +10 -5
  94. package/docs/classes/Sculpt.html +847 -0
  95. package/docs/classes/Util.BetterTween.html +10 -5
  96. package/docs/classes/Util.Interval.html +10 -5
  97. package/docs/classes/Util.LineSegments.html +10 -5
  98. package/docs/classes/Util.Magnifier.html +82 -58
  99. package/docs/classes/Util.Object3D.html +10 -5
  100. package/docs/classes/Util.PointDomHelper.html +10 -5
  101. package/docs/classes/Util.PointHelper.html +10 -5
  102. package/docs/classes/Util.PointSelectorHelper.html +23 -18
  103. package/docs/classes/Util.Rectangle.html +10 -5
  104. package/docs/classes/WalkController.html +10 -5
  105. package/docs/enums/CameraMovementEffect.html +10 -5
  106. package/docs/enums/ContentType.html +10 -5
  107. package/docs/enums/DIRECTION.html +10 -5
  108. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -5
  109. package/docs/enums/DimensionType.html +10 -5
  110. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -5
  111. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -5
  112. package/docs/enums/PaintBrushTypeEnum.html +10 -5
  113. package/docs/enums/PointType.html +10 -5
  114. package/docs/enums/Rotation.html +10 -5
  115. package/docs/functions/AreaMakerPlugin.html +10 -5
  116. package/docs/functions/CSS3DRenderPlugin.html +10 -5
  117. package/docs/functions/CameraMovementPlugin.html +10 -5
  118. package/docs/functions/CruisePlugin.html +10 -5
  119. package/docs/functions/CurrentPanoImagePlugin.html +10 -5
  120. package/docs/functions/GuideLinePlugin.html +10 -5
  121. package/docs/functions/ItemLabelPlugin.html +10 -5
  122. package/docs/functions/MapviewFloorplanPlugin.html +10 -5
  123. package/docs/functions/ModelChassisCompassPlugin.html +10 -5
  124. package/docs/functions/ModelEntryDoorGuidePlugin.html +10 -5
  125. package/docs/functions/ModelFloorplanPlugin.html +10 -5
  126. package/docs/functions/ModelItemLabelPlugin.html +10 -5
  127. package/docs/functions/ModelRoomLabelPlugin.html +10 -5
  128. package/docs/functions/ModelTVVideoPlugin.html +10 -5
  129. package/docs/functions/ModelViewPlugin.html +10 -5
  130. package/docs/functions/MovePlugin.html +10 -5
  131. package/docs/functions/Object3DHelperPlugin.html +10 -5
  132. package/docs/functions/PanoCompassPlugin.html +10 -5
  133. package/docs/functions/PanoCursorRaycasterPlugin.html +10 -5
  134. package/docs/functions/PanoDoorLabelPlugin.html +10 -5
  135. package/docs/functions/PanoFloorplanRadarPlugin.html +10 -5
  136. package/docs/functions/PanoMeasurePlugin.html +10 -5
  137. package/docs/functions/PanoRulerPlugin.html +10 -5
  138. package/docs/functions/PanoRulerProPlugin.html +10 -5
  139. package/docs/functions/PanoSpatialTagPlugin.html +10 -5
  140. package/docs/functions/PanoTagPlugin.html +10 -5
  141. package/docs/functions/PanoVideoPlugin.html +10 -5
  142. package/docs/functions/PipelinePlugin.html +10 -5
  143. package/docs/functions/TopviewFloorplanPlugin.html +10 -5
  144. package/docs/functions/Util.absoluteUrl.html +10 -5
  145. package/docs/functions/Util.checkFiveModelLoaded.html +10 -5
  146. package/docs/functions/Util.equal.html +10 -5
  147. package/docs/functions/Util.getCoordsFromClient.html +10 -5
  148. package/docs/functions/Util.getCoordsFromElement.html +10 -5
  149. package/docs/functions/Util.getFrameTime.html +10 -5
  150. package/docs/functions/Util.getIntersectFromRelativePosition.html +17 -7
  151. package/docs/functions/Util.getRaycasterFromFivePointer.html +10 -5
  152. package/docs/functions/Util.isAbsoluteURL.html +10 -5
  153. package/docs/functions/Util.isModelLike.html +10 -5
  154. package/docs/functions/Util.isNil.html +10 -5
  155. package/docs/functions/Util.isPanoramaLike.html +10 -5
  156. package/docs/functions/Util.nextFrame.html +10 -5
  157. package/docs/functions/Util.notNil.html +10 -5
  158. package/docs/functions/Util.requestAnimationFrameInterval.html +10 -5
  159. package/docs/functions/Util.tweenProgress.html +10 -5
  160. package/docs/functions/Util.uuid.html +10 -5
  161. package/docs/functions/pluginFlag.html +10 -5
  162. package/docs/index.html +11 -6
  163. package/docs/interfaces/AddTagConfig.html +10 -5
  164. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +9 -4
  165. package/docs/interfaces/AreaMakerPluginType.Config.html +9 -4
  166. package/docs/interfaces/AreaMakerPluginType.EventMap.html +9 -4
  167. package/docs/interfaces/AreaMakerPluginType.Params.html +9 -4
  168. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +9 -4
  169. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +9 -4
  170. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +9 -4
  171. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +9 -4
  172. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +9 -4
  173. package/docs/interfaces/AreaMakerPluginType.State.html +9 -4
  174. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -5
  175. package/docs/interfaces/CSS3DRenderPluginState.html +10 -5
  176. package/docs/interfaces/CameraMovementPluginExportType.html +10 -5
  177. package/docs/interfaces/CruisePluginTypes.Config.html +9 -4
  178. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +9 -4
  179. package/docs/interfaces/CruisePluginTypes.EventMap.html +9 -4
  180. package/docs/interfaces/CruisePluginTypes.MoveAction.html +9 -4
  181. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -4
  182. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +9 -4
  183. package/docs/interfaces/CruisePluginTypes.PluginData.html +9 -4
  184. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +9 -4
  185. package/docs/interfaces/CruisePluginTypes.PluginState.html +9 -4
  186. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +10 -5
  187. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +10 -5
  188. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +10 -5
  189. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +10 -5
  190. package/docs/interfaces/CurrentPanoImagePluginType.State.html +10 -5
  191. package/docs/interfaces/EventMap.html +10 -5
  192. package/docs/interfaces/FloorplanBounding.html +10 -5
  193. package/docs/interfaces/FloorplanData.html +10 -5
  194. package/docs/interfaces/FloorplanEntrance.html +10 -5
  195. package/docs/interfaces/FloorplanExtraObject.html +10 -5
  196. package/docs/interfaces/FloorplanExtraObject3D.html +10 -5
  197. package/docs/interfaces/FloorplanFloorData.html +10 -5
  198. package/docs/interfaces/FloorplanImagePosition.html +10 -5
  199. package/docs/interfaces/FloorplanObserver.html +10 -5
  200. package/docs/interfaces/FloorplanOutlineItem.html +10 -5
  201. package/docs/interfaces/FloorplanPosition.html +10 -5
  202. package/docs/interfaces/FloorplanRoomItem.html +10 -5
  203. package/docs/interfaces/FloorplanRoomLabelItem.html +10 -5
  204. package/docs/interfaces/FloorplanServerBounding.html +10 -5
  205. package/docs/interfaces/FloorplanServerComputedData.html +10 -5
  206. package/docs/interfaces/FloorplanServerData.html +10 -5
  207. package/docs/interfaces/FloorplanServerDoorItem.html +10 -5
  208. package/docs/interfaces/FloorplanServerDoorPosition.html +10 -5
  209. package/docs/interfaces/FloorplanServerEntrance.html +10 -5
  210. package/docs/interfaces/FloorplanServerFloorData.html +10 -5
  211. package/docs/interfaces/FloorplanServerImagePosition.html +10 -5
  212. package/docs/interfaces/FloorplanServerObserver.html +10 -5
  213. package/docs/interfaces/FloorplanServerOutlineItem.html +10 -5
  214. package/docs/interfaces/FloorplanServerPosition.html +10 -5
  215. package/docs/interfaces/FloorplanServerRoomItem.html +10 -5
  216. package/docs/interfaces/FloorplanServerRoomLabelItem.html +10 -5
  217. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -5
  218. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -4
  219. package/docs/interfaces/GuideLinePluginType.EventMap.html +9 -4
  220. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -4
  221. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +9 -4
  222. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +9 -4
  223. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +9 -4
  224. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -4
  225. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +9 -4
  226. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -4
  227. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +9 -4
  228. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +9 -4
  229. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +9 -4
  230. package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -4
  231. package/docs/interfaces/GuideLinePluginType.Route.html +9 -4
  232. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -4
  233. package/docs/interfaces/HelperOffset.html +10 -5
  234. package/docs/interfaces/ImagePlaneGroup.html +10 -5
  235. package/docs/interfaces/ItemLabelPluginData.html +10 -5
  236. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -5
  237. package/docs/interfaces/ItemLabelPluginParametersType.html +10 -5
  238. package/docs/interfaces/MinMax.html +10 -5
  239. package/docs/interfaces/ModelChassisCompassPluginData.html +10 -5
  240. package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -5
  241. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +10 -5
  242. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -5
  243. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -5
  244. package/docs/interfaces/ModelItemLabelPluginData.html +10 -5
  245. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -5
  246. package/docs/interfaces/ModelItemLabelPluginParametersType.html +10 -5
  247. package/docs/interfaces/ModelRoomLabelPluginData.html +10 -5
  248. package/docs/interfaces/ModelTVVideoPluginData.html +10 -5
  249. package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -5
  250. package/docs/interfaces/ModelTVVideoPluginParameterType.html +10 -5
  251. package/docs/interfaces/ModelViewPluginExportType.html +10 -5
  252. package/docs/interfaces/Object3DHelperState.html +14 -9
  253. package/docs/interfaces/ObjectHelperControllers.html +16 -11
  254. package/docs/interfaces/PaintBrushAction.html +10 -5
  255. package/docs/interfaces/PaintBrushConfigs.html +10 -5
  256. package/docs/interfaces/PaintBrushState.html +10 -5
  257. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -5
  258. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +10 -5
  259. package/docs/interfaces/PanoMeasureParameterType.html +10 -5
  260. package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -5
  261. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +10 -5
  262. package/docs/interfaces/PanoMeasurePluginPointJson.html +10 -5
  263. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -5
  264. package/docs/interfaces/PanoRulerPluginExportType.html +10 -5
  265. package/docs/interfaces/PanoRulerPluginOptions.html +10 -5
  266. package/docs/interfaces/PanoRulerPluginParameterType.html +10 -5
  267. package/docs/interfaces/PanoRulerProPluginExportType.html +10 -5
  268. package/docs/interfaces/PanoRulerProPluginOptions.html +10 -5
  269. package/docs/interfaces/PanoRulerProPluginParameterType.html +10 -5
  270. package/docs/interfaces/PanoRulerProPluginState.html +10 -5
  271. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +10 -5
  272. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +10 -5
  273. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -5
  274. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -5
  275. package/docs/interfaces/PanoSpatialTagPluginExportType.html +10 -5
  276. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -5
  277. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +10 -5
  278. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -5
  279. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -5
  280. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +10 -5
  281. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -5
  282. package/docs/interfaces/PanoVideoPluginType.PluginData.html +10 -5
  283. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -5
  284. package/docs/interfaces/PanoVideoPluginType.PluginState.html +10 -5
  285. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -5
  286. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -5
  287. package/docs/interfaces/Point.html +10 -5
  288. package/docs/interfaces/Room.html +10 -5
  289. package/docs/interfaces/RoomInfo.html +10 -5
  290. package/docs/interfaces/RoomLabel.html +10 -5
  291. package/docs/interfaces/RoomRules.html +10 -5
  292. package/docs/interfaces/Rooms.html +10 -5
  293. package/docs/interfaces/Scissor.html +10 -5
  294. package/docs/interfaces/State.html +10 -5
  295. package/docs/interfaces/TagCacheInterface.html +10 -5
  296. package/docs/interfaces/TagConfig.html +12 -7
  297. package/docs/interfaces/TagGLTFObjectGroup.html +10 -5
  298. package/docs/interfaces/TagIconUrl.html +10 -5
  299. package/docs/interfaces/TagObjectGroup.html +10 -5
  300. package/docs/interfaces/TagStyle.html +10 -5
  301. package/docs/interfaces/Tags.html +10 -5
  302. package/docs/interfaces/TemporaryState.html +10 -5
  303. package/docs/interfaces/Util.MagnifierParameter.html +32 -22
  304. package/docs/interfaces/Util.MouseGroupParameter.html +10 -5
  305. package/docs/interfaces/Util.PointIntersection.html +19 -7
  306. package/docs/modules/AreaMakerPluginType.html +9 -4
  307. package/docs/modules/CruisePluginTypes.html +9 -4
  308. package/docs/modules/CurrentPanoImagePluginType.html +10 -5
  309. package/docs/modules/GuideLineItem.html +10 -5
  310. package/docs/modules/GuideLineModeItem.html +10 -5
  311. package/docs/modules/GuideLinePluginType.html +9 -4
  312. package/docs/modules/PanoVideoPluginType.html +10 -5
  313. package/docs/modules/Util.html +10 -5
  314. package/docs/modules.html +22 -9
  315. package/docs/types/AddObject3DHelperConfig.html +310 -0
  316. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +9 -4
  317. package/docs/types/AreaMakerPluginType.ItemRenderer.html +9 -4
  318. package/docs/types/AreaMakerPluginType.PluginData.html +9 -4
  319. package/docs/types/AreaMakerPluginType.ServerData.html +9 -4
  320. package/docs/types/ArrayPosition.html +10 -5
  321. package/docs/types/AudioAppearance.html +10 -5
  322. package/docs/types/AudioTagTypeConfigKey.html +10 -5
  323. package/docs/types/CSS3DRenderExportType.html +10 -5
  324. package/docs/types/CSS3DRenderPluginExportType.html +10 -5
  325. package/docs/types/CSS3DRenderPluginParameterType.html +10 -5
  326. package/docs/types/ClassFunctionParameters.html +10 -5
  327. package/docs/types/Color.html +10 -5
  328. package/docs/types/ContentTypeConfigKey.html +10 -5
  329. package/docs/types/ContentTypeConfigKeySplit.html +10 -5
  330. package/docs/types/ContentTypeMap.html +10 -5
  331. package/docs/types/Create3DDomContainerReturnType.html +10 -5
  332. package/docs/types/Create3DElementReturnType.html +10 -5
  333. package/docs/types/CruisePluginExportType.html +10 -5
  334. package/docs/types/CruisePluginTypes.CruiseData.html +9 -4
  335. package/docs/types/CruisePluginTypes.MoveEffect.html +9 -4
  336. package/docs/types/CurrentPanoImagePluginExportType.html +10 -5
  337. package/docs/types/DeprecatedMediaPlaneProperty.html +10 -5
  338. package/docs/types/DeprecatedTagProperty.html +10 -5
  339. package/docs/types/Direction-1.html +10 -5
  340. package/docs/types/Direction4.html +10 -5
  341. package/docs/types/ElementRenderer.html +10 -5
  342. package/docs/types/FloorplanRuleLabels.html +10 -5
  343. package/docs/types/FloorplanServerRuleLabels.html +10 -5
  344. package/docs/types/GuideLinePluginExportType.html +10 -5
  345. package/docs/types/GuideLinePluginType.GuideLineItem.html +9 -4
  346. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +9 -4
  347. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +9 -4
  348. package/docs/types/GuideLinePluginType.GuideLineStyle.html +9 -4
  349. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +9 -4
  350. package/docs/types/GuideLinePluginType.PathItem.html +9 -4
  351. package/docs/types/GuideLinePluginType.PluginData.html +9 -4
  352. package/docs/types/HelperEventMap.html +10 -5
  353. package/docs/types/InternalHelperEventMap.html +22 -9
  354. package/docs/types/LoadTagConfig.html +10 -5
  355. package/docs/types/MapviewFloorplanPluginParameterType.html +10 -5
  356. package/docs/types/MapviewFloorplanPluginReturnType.html +10 -5
  357. package/docs/types/MediaData.html +10 -5
  358. package/docs/types/MediaStore.html +10 -5
  359. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +10 -5
  360. package/docs/types/ModelFloorplanPluginParameterType.html +10 -5
  361. package/docs/types/ModelFloorplanPluginReturnType.html +10 -5
  362. package/docs/types/ModelId.html +10 -5
  363. package/docs/types/ModelRoomLabelPluginParameters.html +10 -5
  364. package/docs/types/ModelRoomLabelPluginReturnType.html +10 -5
  365. package/docs/types/MoveArgs.html +10 -5
  366. package/docs/types/MoveOpts.html +10 -5
  367. package/docs/types/Object3DHelperEventMap.html +11 -6
  368. package/docs/types/ObjectFit.html +10 -5
  369. package/docs/types/PaintBrushEventMap.html +10 -5
  370. package/docs/types/PanoCompassPluginData.html +10 -5
  371. package/docs/types/PanoCompassPluginExportType.html +10 -5
  372. package/docs/types/PanoCompassPluginParameterType.html +10 -5
  373. package/docs/types/PanoFloorplanRadarPluginParameterType.html +10 -5
  374. package/docs/types/PanoFloorplanRadarPluginReturnType.html +10 -5
  375. package/docs/types/PanoIndex.html +10 -5
  376. package/docs/types/PanoMeasurePluginEvent.html +10 -5
  377. package/docs/types/PanoMeasureReturnType.html +10 -5
  378. package/docs/types/PanoSpatialTagPluginId.html +10 -5
  379. package/docs/types/PanoTagPluginExportInterface.html +10 -5
  380. package/docs/types/PanoTagPluginParamsInterface.html +10 -5
  381. package/docs/types/PanoVideoPluginParameterType.html +10 -5
  382. package/docs/types/PanoVideoPluginReturnType.html +10 -5
  383. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +10 -5
  384. package/docs/types/PipelinePluginParameterType.html +10 -5
  385. package/docs/types/PipelinePluginReturnType.html +10 -5
  386. package/docs/types/PlaneTag.html +10 -5
  387. package/docs/types/Point2DTag.html +10 -5
  388. package/docs/types/Point3DTag.html +10 -5
  389. package/docs/types/PointTag.html +10 -5
  390. package/docs/types/PointTagInstance.html +10 -5
  391. package/docs/types/Position.html +10 -5
  392. package/docs/types/PositionFrom.html +297 -0
  393. package/docs/types/RotateArgs.html +10 -5
  394. package/docs/types/RotateOpts.html +10 -5
  395. package/docs/types/RuleLabelsKey.html +10 -5
  396. package/docs/types/RuleLabelsValue.html +10 -5
  397. package/docs/types/ScaleCallback.html +309 -0
  398. package/docs/types/ScalePosition.html +298 -0
  399. package/docs/types/StickType.html +10 -5
  400. package/docs/types/Tag.html +10 -5
  401. package/docs/types/Tag2D.html +10 -5
  402. package/docs/types/Tag3D.html +10 -5
  403. package/docs/types/TagConfigByKey.html +10 -5
  404. package/docs/types/TagContentType.html +10 -5
  405. package/docs/types/TagContentTypeMapping.html +10 -5
  406. package/docs/types/TagDimensionType.html +10 -5
  407. package/docs/types/TagElement.html +10 -5
  408. package/docs/types/TagEvents.html +10 -5
  409. package/docs/types/TagGLTFObject.html +10 -5
  410. package/docs/types/TagHooks.html +10 -5
  411. package/docs/types/TagId.html +10 -5
  412. package/docs/types/TagInstance.html +10 -5
  413. package/docs/types/TagPointType.html +10 -5
  414. package/docs/types/TagRendererMap.html +10 -5
  415. package/docs/types/TopviewFloorplanPluginParameterType.html +10 -5
  416. package/docs/types/TopviewFloorplanPluginReturnType.html +10 -5
  417. package/docs/types/WorkCode.html +10 -5
  418. package/docs/variables/FLOOR_TYPE_MAP.html +10 -5
  419. package/docs/variables/PLUGIN.html +11 -6
  420. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +10 -5
  421. package/docs/variables/ROOM_TYPE_MAP.html +10 -5
  422. package/docs/variables/defaultGlobalConfig.html +10 -5
  423. package/docs/variables/itemLabelPluginServerParams.html +10 -5
  424. package/docs/variables/modelItemLabelPluginServerParams.html +10 -5
  425. package/docs/variables/modelRoomLabelPluginServerParams.html +10 -5
  426. package/libs/GuideLinePlugin/Controller.js +15 -15
  427. package/libs/Object3DHelperPlugin/Controller.d.ts +25 -18
  428. package/libs/Object3DHelperPlugin/Controller.js +91 -91
  429. package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -0
  430. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +22 -18
  431. package/libs/Object3DHelperPlugin/index.js +8 -6
  432. package/libs/PanoCursorRaycasterPlugin/index.js +9 -8
  433. package/libs/PanoMeasurePlugin/Components/Controller0.js +5 -5
  434. package/libs/PanoMeasurePlugin/Components/Controller1.js +5 -5
  435. package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
  436. package/libs/PanoMeasurePlugin/Controller/EditController.js +6 -6
  437. package/libs/PanoMeasurePlugin/Controller/MixedController.js +10 -9
  438. package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
  439. package/libs/PanoMeasurePlugin/Controller/WatchController.js +5 -4
  440. package/libs/PanoMeasurePlugin/Controller/index.js +8 -7
  441. package/libs/PanoMeasurePlugin/Model/area.d.ts +2 -1
  442. package/libs/PanoMeasurePlugin/Model/area.js +16 -8
  443. package/libs/PanoMeasurePlugin/Model/index.js +3 -2
  444. package/libs/PanoMeasurePlugin/Model/line.d.ts +1 -1
  445. package/libs/PanoMeasurePlugin/Model/line.js +1 -0
  446. package/libs/PanoMeasurePlugin/Model/polygon.js +1 -1
  447. package/libs/PanoMeasurePlugin/Model/polyline.js +26 -25
  448. package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +2 -55
  449. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +22 -156
  450. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +5 -5
  451. package/libs/PanoMeasurePlugin/index.js +13 -13
  452. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +1 -1
  453. package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -1
  454. package/libs/PanoMeasurePlugin/utils/line.js +5 -4
  455. package/libs/PanoTagPlugin/controller/TagRender.js +18 -13
  456. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +20 -10
  457. package/libs/Sculpt/Meshes/Area.d.ts +30 -0
  458. package/libs/Sculpt/Meshes/Area.js +56 -0
  459. package/libs/Sculpt/Meshes/Box.d.ts +35 -0
  460. package/libs/Sculpt/Meshes/Box.js +88 -0
  461. package/libs/Sculpt/Meshes/Circle.d.ts +26 -0
  462. package/libs/Sculpt/Meshes/Circle.js +42 -0
  463. package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +11 -0
  464. package/libs/Sculpt/Meshes/CircleWithEdge.js +41 -0
  465. package/libs/Sculpt/Meshes/Cylinder.d.ts +34 -0
  466. package/libs/Sculpt/Meshes/Cylinder.js +88 -0
  467. package/libs/Sculpt/Meshes/Line.d.ts +27 -0
  468. package/libs/Sculpt/Meshes/Line.js +108 -0
  469. package/libs/Sculpt/Meshes/LineWithDots.d.ts +30 -0
  470. package/libs/Sculpt/Meshes/LineWithDots.js +70 -0
  471. package/libs/Sculpt/Meshes/Point.d.ts +22 -0
  472. package/libs/Sculpt/Meshes/Point.js +74 -0
  473. package/libs/Sculpt/Meshes/Polygon.d.ts +31 -0
  474. package/libs/Sculpt/Meshes/Polygon.js +52 -0
  475. package/libs/Sculpt/Meshes/Polyline.d.ts +34 -0
  476. package/libs/Sculpt/Meshes/Polyline.js +105 -0
  477. package/libs/Sculpt/Meshes/Prism.d.ts +31 -0
  478. package/libs/Sculpt/Meshes/Prism.js +78 -0
  479. package/libs/Sculpt/Meshes/Rectangle.d.ts +24 -0
  480. package/libs/Sculpt/Meshes/Rectangle.js +49 -0
  481. package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +20 -0
  482. package/libs/Sculpt/Meshes/RectangleWithEdge.js +49 -0
  483. package/libs/Sculpt/Modules/Cursor.d.ts +13 -0
  484. package/libs/Sculpt/Modules/Cursor.js +37 -0
  485. package/libs/Sculpt/Modules/Global.d.ts +20 -0
  486. package/libs/Sculpt/Modules/Global.js +45 -0
  487. package/libs/Sculpt/Objects/Base/Editor.d.ts +21 -0
  488. package/libs/Sculpt/Objects/Base/Editor.js +52 -0
  489. package/libs/Sculpt/Objects/Base/index.d.ts +60 -0
  490. package/libs/Sculpt/Objects/Base/index.js +77 -0
  491. package/libs/Sculpt/Objects/Box/Editor.d.ts +5 -0
  492. package/libs/Sculpt/Objects/Box/Editor.js +44 -0
  493. package/libs/Sculpt/Objects/Box/index.d.ts +28 -0
  494. package/libs/Sculpt/Objects/Box/index.js +107 -0
  495. package/libs/Sculpt/Objects/Circle/Editor.d.ts +5 -0
  496. package/libs/Sculpt/Objects/Circle/Editor.js +9 -0
  497. package/libs/Sculpt/Objects/Circle/index.d.ts +28 -0
  498. package/libs/Sculpt/Objects/Circle/index.js +114 -0
  499. package/libs/Sculpt/Objects/Cylinder/Editor.d.ts +5 -0
  500. package/libs/Sculpt/Objects/Cylinder/Editor.js +41 -0
  501. package/libs/Sculpt/Objects/Cylinder/index.d.ts +30 -0
  502. package/libs/Sculpt/Objects/Cylinder/index.js +100 -0
  503. package/libs/Sculpt/Objects/Point/Editor.d.ts +8 -0
  504. package/libs/Sculpt/Objects/Point/Editor.js +25 -0
  505. package/libs/Sculpt/Objects/Point/index.d.ts +35 -0
  506. package/libs/Sculpt/Objects/Point/index.js +92 -0
  507. package/libs/Sculpt/Objects/Polygon/Editor.d.ts +8 -0
  508. package/libs/Sculpt/Objects/Polygon/Editor.js +23 -0
  509. package/libs/Sculpt/Objects/Polygon/index.d.ts +28 -0
  510. package/libs/Sculpt/Objects/Polygon/index.js +113 -0
  511. package/libs/Sculpt/Objects/Polyline/Editor.d.ts +25 -0
  512. package/libs/Sculpt/Objects/Polyline/Editor.js +68 -0
  513. package/libs/Sculpt/Objects/Polyline/index.d.ts +31 -0
  514. package/libs/Sculpt/Objects/Polyline/index.js +96 -0
  515. package/libs/Sculpt/Objects/Prism/Editor.d.ts +5 -0
  516. package/libs/Sculpt/Objects/Prism/Editor.js +44 -0
  517. package/libs/Sculpt/Objects/Prism/index.d.ts +28 -0
  518. package/libs/Sculpt/Objects/Prism/index.js +105 -0
  519. package/libs/Sculpt/Objects/Rectangle/Editor.d.ts +5 -0
  520. package/libs/Sculpt/Objects/Rectangle/Editor.js +9 -0
  521. package/libs/Sculpt/Objects/Rectangle/index.d.ts +29 -0
  522. package/libs/Sculpt/Objects/Rectangle/index.js +105 -0
  523. package/libs/Sculpt/index.d.ts +184 -0
  524. package/libs/Sculpt/index.js +209 -0
  525. package/libs/Sculpt/typings/index.d.ts +16 -0
  526. package/libs/Sculpt/typings/utils.type.d.ts +12 -0
  527. package/libs/Sculpt/utils/color.d.ts +40 -0
  528. package/libs/Sculpt/utils/color.js +7 -0
  529. package/libs/Sculpt/utils/data.d.ts +7 -0
  530. package/libs/Sculpt/utils/getBetterNormal.d.ts +2 -0
  531. package/libs/Sculpt/utils/getBetterNormal.js +8 -0
  532. package/libs/Sculpt/utils/radiusToSegments.d.ts +1 -0
  533. package/libs/Sculpt/utils/radiusToSegments.js +6 -0
  534. package/libs/Sculpt/utils/three/ColoredMesh.d.ts +17 -0
  535. package/libs/Sculpt/utils/three/ColoredMesh.js +58 -0
  536. package/libs/Sculpt/utils/three/RectangleGeometry.d.ts +6 -0
  537. package/libs/Sculpt/utils/three/RectangleGeometry.js +19 -0
  538. package/libs/Sculpt/utils/three/rayOnLine.d.ts +5 -0
  539. package/libs/Sculpt/utils/three/rayOnLine.js +8 -0
  540. package/libs/base/BasePlugin.js +1 -1
  541. package/libs/index.d.ts +1 -0
  542. package/libs/index.js +173 -127
  543. package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +13 -5
  544. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +95 -80
  545. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +17 -6
  546. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +40 -35
  547. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +9 -9
  548. package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
  549. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +54 -53
  550. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +14 -7
  551. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +49 -15
  552. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +4 -2
  553. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +16 -12
  554. package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +8 -5
  555. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
  556. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +21 -12
  557. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +12 -3
  558. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +38 -5
  559. package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +1 -0
  560. package/libs/shared-utils/Object3DHelper/typings/index.d.ts +11 -0
  561. package/libs/shared-utils/Object3DHelper/utils/boundingBox.js +22 -21
  562. package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +2 -0
  563. package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.js +7 -0
  564. package/libs/shared-utils/Subscribe.js +1 -1
  565. package/libs/shared-utils/createLine/index.d.ts +2 -2
  566. package/libs/shared-utils/createLine/index.js +5 -5
  567. package/libs/shared-utils/five/FiveDomEvents.d.ts +50 -13
  568. package/libs/shared-utils/five/FiveDomEvents.js +135 -90
  569. package/libs/shared-utils/five/FiveLine.d.ts +8 -0
  570. package/libs/shared-utils/five/FiveLine.js +15 -0
  571. package/libs/shared-utils/five/getPosition.d.ts +14 -0
  572. package/libs/shared-utils/five/getPosition.js +45 -0
  573. package/libs/shared-utils/five/getRaycasterByNdcPosition.d.ts +6 -0
  574. package/libs/shared-utils/five/getRaycasterByNdcPosition.js +8 -0
  575. package/libs/shared-utils/logger.js +1 -1
  576. package/libs/shared-utils/positionToVector3.d.ts +1 -0
  577. package/libs/shared-utils/positionToVector3.js +7 -4
  578. package/libs/shared-utils/three/IObject3D.d.ts +4 -0
  579. package/libs/shared-utils/three/IObject3D.js +22 -9
  580. package/libs/shared-utils/three/Magnifier.d.ts +33 -19
  581. package/libs/shared-utils/three/Magnifier.js +112 -70
  582. package/libs/shared-utils/three/PointSelector.d.ts +25 -11
  583. package/libs/shared-utils/three/PointSelector.js +70 -78
  584. package/libs/shared-utils/three/PointSelectorHelper.d.ts +2 -0
  585. package/libs/shared-utils/three/PointSelectorHelper.js +14 -14
  586. package/libs/shared-utils/three/generatePolygonGeometry.js +15 -0
  587. package/{dist/PanoMeasurePlugin/utils → libs/shared-utils/three}/geometryUtil.d.ts +1 -1
  588. package/libs/shared-utils/three/geometryUtil.js +37 -0
  589. package/libs/shared-utils/three/getIntersect.d.ts +16 -2
  590. package/libs/shared-utils/three/getIntersect.js +20 -5
  591. package/libs/shared-utils/three/getNormal.d.ts +1 -1
  592. package/libs/shared-utils/three/getNormal.js +8 -7
  593. package/libs/shared-utils/three/recurveFindObject.d.ts +2 -0
  594. package/libs/shared-utils/three/recurveFindObject.js +6 -0
  595. package/libs/shared-utils/three/vector3ToArray.d.ts +3 -0
  596. package/libs/shared-utils/three/vector3ToArray.js +6 -0
  597. package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +372 -0
  598. package/package.json +4 -3
  599. package/dist/shared-utils/getIntersectionFromEvent.d.ts +0 -4
  600. package/docs/classes/Magnifier.html +0 -485
  601. package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.js +0 -13
  602. package/libs/PanoMeasurePlugin/utils/geometryUtil.js +0 -39
  603. package/libs/shared-utils/getIntersectionFromEvent.d.ts +0 -4
  604. package/libs/shared-utils/getIntersectionFromEvent.js +0 -9
  605. /package/dist/{PanoMeasurePlugin/utils → shared-utils/three}/generatePolygonGeometry.d.ts +0 -0
  606. /package/libs/{PanoMeasurePlugin/utils → shared-utils/three}/generatePolygonGeometry.d.ts +0 -0
@@ -1,11 +1,18 @@
1
1
  import * as THREE from 'three';
2
2
  import { Subscribe } from '../../Subscribe';
3
- import type { HelperEventMap, HelperOffset, InternalHelperEventMap } from '../typings';
3
+ import type { HelperEventMap, HelperOffset, InternalHelperEventMap, ScaleCallback } from '../typings';
4
4
  import type { BaseHelper } from './BaseHelper';
5
5
  import DomEvents from '../../threex/domevents';
6
6
  export declare let originOpacity: {
7
7
  opacity: number;
8
8
  } | null;
9
+ type Config = {
10
+ offset?: HelperOffset;
11
+ yAxis?: THREE.Vector3;
12
+ xAxis?: THREE.Vector3;
13
+ zAxis?: THREE.Vector3;
14
+ scaleCallback?: ScaleCallback;
15
+ };
9
16
  export declare abstract class BaseController<T extends BaseHelper = BaseHelper, K extends THREE.Object3D = THREE.Object3D> {
10
17
  originObject3D: K;
11
18
  hooks: Subscribe<HelperEventMap>;
@@ -22,7 +29,7 @@ export declare abstract class BaseController<T extends BaseHelper = BaseHelper,
22
29
  protected enabled: boolean;
23
30
  protected name: string;
24
31
  protected boundingBox?: THREE.Box3;
25
- private offset?;
32
+ protected config?: Config;
26
33
  private onRender;
27
34
  constructor(params: {
28
35
  camera: THREE.Camera;
@@ -34,9 +41,7 @@ export declare abstract class BaseController<T extends BaseHelper = BaseHelper,
34
41
  onRender?: () => void;
35
42
  sharedHooks?: Subscribe<HelperEventMap>;
36
43
  sharedInternalHooks?: Subscribe<InternalHelperEventMap>;
37
- }, config?: {
38
- offset?: HelperOffset;
39
- });
44
+ }, config?: Config);
40
45
  initialHelperPosition(): void;
41
46
  initialHelperQuaternion(): void;
42
47
  enable(): void;
@@ -62,6 +67,7 @@ export declare abstract class BaseController<T extends BaseHelper = BaseHelper,
62
67
  */
63
68
  applyHelperScaleMatrix4(matrix: THREE.Matrix4, origin?: THREE.Vector3): void;
64
69
  onWantsTapGesture: (raycaster: THREE.Raycaster) => false | void;
70
+ onWantsUpdateCameraDistance: () => void;
65
71
  onWantsGesture(type: 'press' | 'pan' | string, pointers: {
66
72
  x: number;
67
73
  y: number;
@@ -99,5 +105,7 @@ export declare abstract class BaseController<T extends BaseHelper = BaseHelper,
99
105
  protected updateOffsetByScale(scale: THREE.Vector3): void;
100
106
  protected hoverListener(object3D: THREE.Object3D | undefined | THREE.Group | (THREE.Object3D | undefined | THREE.Group)[], hoverColor?: THREE.Color | string | number, hoverOpacity?: number): () => void;
101
107
  private getIntersectObject;
108
+ private getBox;
102
109
  private calculateOffset;
103
110
  }
111
+ export {};
@@ -2,24 +2,32 @@ import type { Create3DElementReturnType } from '../../../CSS3DRenderPlugin';
2
2
  import type * as THREE from 'three';
3
3
  import type { Group, Mesh, Object3D } from 'three';
4
4
  import { Vector3 } from 'three';
5
- import type { Direction, Direction4 } from '../typings';
5
+ import type { Direction, Direction4, PositionFrom, ScalePosition } from '../typings';
6
6
  import type { tipsDom } from '../Helper/HTML/tipsDom';
7
7
  import { IObject3D } from '../../three/IObject3D';
8
8
  type NonVoid<T> = T extends void ? never : T;
9
+ export interface BaseHelperConfig {
10
+ onRender?: () => any;
11
+ /**
12
+ * @description: helper 初始位置来源
13
+ * @default 'objectPosition'
14
+ */
15
+ positionFrom?: PositionFrom;
16
+ }
9
17
  export declare abstract class BaseHelper<OriginObject3D extends Object3D = Object3D> extends IObject3D {
10
18
  protected originObject3D: OriginObject3D;
11
19
  protected onRender: () => any;
20
+ private positionFrom;
12
21
  get helperObject(): Object3D;
13
- constructor(originObject3D: OriginObject3D, config?: {
14
- onRender?: () => any;
15
- });
22
+ constructor(originObject3D: OriginObject3D, config?: BaseHelperConfig);
16
23
  render(): void;
17
24
  enable(): void;
18
25
  disable(): void;
19
26
  show(): void;
20
27
  hide(): void;
21
28
  raycasterIntersectObject(raycaster: THREE.Raycaster, intersection?: THREE.Intersection[]): THREE.Intersection[];
22
- initialPosition(): void;
29
+ initialPosition(offset?: THREE.Vector3): void;
30
+ setScaleByCamera(camera: THREE.PerspectiveCamera): void;
23
31
  initQuaternion(): void;
24
32
  applyHelperScaleMatrix4(matrix: THREE.Matrix4, origin?: Vector3): void;
25
33
  setHelperQuaternion(quaternion: THREE.Quaternion, origin?: Vector3): void;
@@ -62,8 +70,11 @@ export declare abstract class RotateHelperAbstract<OriginObject3D extends Object
62
70
  abstract showDraggingHelper(directions: Direction[]): void;
63
71
  }
64
72
  export declare abstract class ScaleHelperAbstract<OriginObject3D extends Object3D = Object3D> extends BaseHelper<OriginObject3D> {
73
+ abstract scaleMeshes: Array<Mesh & {
74
+ scalePosition: ScalePosition;
75
+ }>;
65
76
  }
66
- export declare abstract class RectangleScaleHelperAbstract<OriginObject3D extends Object3D, PointType extends Object3D | HTMLElement> extends ScaleHelperAbstract<OriginObject3D> {
77
+ export declare abstract class RectangleScaleHelperAbstract<OriginObject3D extends Object3D, PointType extends Object3D | HTMLElement> extends BaseHelper<OriginObject3D> {
67
78
  abstract points: PointType extends Object3D ? {
68
79
  point: PointType;
69
80
  direction: Direction4;
@@ -7,7 +7,6 @@ export declare class RotateController<T extends RotateHelperAbstract = RotateHel
7
7
  private startInfo?;
8
8
  private removeListener;
9
9
  constructor(...params: ConstructorParameters<typeof BaseController<T>>);
10
- initialHelperQuaternion(): void;
11
10
  setRotateAngle(angle: {
12
11
  x?: number;
13
12
  y?: number;
@@ -1,12 +1,19 @@
1
1
  import { BaseController } from '../Base/BaseController';
2
2
  import type { ScaleHelperAbstract } from '../Helper';
3
3
  import * as THREE from 'three';
4
- export declare class ScaleController<OriginObject3D extends THREE.Object3D = THREE.Object3D> extends BaseController<ScaleHelperAbstract<OriginObject3D>> {
4
+ export declare class ScaleController<T extends ScaleHelperAbstract = ScaleHelperAbstract> extends BaseController<T> {
5
5
  protected name: string;
6
- constructor(...params: ConstructorParameters<typeof BaseController<ScaleHelperAbstract<OriginObject3D>>>);
7
- setScale(scale: number | {
8
- x?: number;
9
- y?: number;
10
- z?: number;
11
- }): void;
6
+ private startInfo?;
7
+ constructor(...params: ConstructorParameters<typeof BaseController<T>>);
8
+ initialHelperQuaternion(): void;
9
+ initialHelperPosition(): void;
10
+ dragStart: (params: {
11
+ intersect: THREE.Intersection;
12
+ }) => void;
13
+ dragging: (point: {
14
+ x: number;
15
+ y: number;
16
+ }) => false | void;
17
+ scale: (raycaster: THREE.Raycaster) => void;
18
+ dragEnd: () => void;
12
19
  }
@@ -1,7 +1,8 @@
1
1
  import type { Object3D } from 'three';
2
2
  import type { Direction } from '../typings';
3
- import { MoveHelperAbstract } from '.';
3
+ import { MoveHelperAbstract, type BaseHelperConfig } from '.';
4
4
  import { ArrowGroup } from './Objects/ArrowGroup';
5
+ import type * as THREE from 'three';
5
6
  export declare class MoveHelper extends MoveHelperAbstract {
6
7
  xArrow?: ArrowGroup;
7
8
  yArrow?: ArrowGroup;
@@ -10,8 +11,9 @@ export declare class MoveHelper extends MoveHelperAbstract {
10
11
  xArrowEnable?: boolean;
11
12
  yArrowEnable?: boolean;
12
13
  zArrowEnable?: boolean;
13
- });
14
+ } & BaseHelperConfig);
14
15
  show(): void;
16
+ setScaleByCamera(camera: THREE.PerspectiveCamera): void;
15
17
  showDraggingHelper(directions: Direction[]): void;
16
18
  dispose(): void;
17
19
  }
@@ -1,6 +1,6 @@
1
1
  import * as THREE from 'three';
2
2
  import type { Object3D } from 'three';
3
- import { RotateHelperAbstract } from '../Base/BaseHelper';
3
+ import { RotateHelperAbstract, type BaseHelperConfig } from '../Base/BaseHelper';
4
4
  import type { Color, Direction } from '../typings';
5
5
  import { tipsDom } from './HTML/tipsDom';
6
6
  export declare class RotateHelper extends RotateHelperAbstract {
@@ -16,9 +16,10 @@ export declare class RotateHelper extends RotateHelperAbstract {
16
16
  xzCircleEnable?: boolean;
17
17
  xyCircleEnable?: boolean;
18
18
  angleTipsEnable?: boolean;
19
- });
19
+ } & BaseHelperConfig);
20
20
  hide(): void;
21
21
  show(): void;
22
+ setScaleByCamera(camera: THREE.PerspectiveCamera): void;
22
23
  showDraggingHelper(directions: Direction[]): void;
23
24
  dispose(): void;
24
25
  }
@@ -1,5 +1,14 @@
1
- import type * as THREE from 'three';
2
- import { ScaleHelperAbstract } from '../Base/BaseHelper';
1
+ import * as THREE from 'three';
2
+ import { ScaleHelperAbstract, type BaseHelperConfig } from '../Base/BaseHelper';
3
+ import type { ScalePosition } from '../typings';
3
4
  export declare class ScaleHelper<T extends THREE.Object3D = THREE.Object3D> extends ScaleHelperAbstract<T> {
4
- constructor(originObject3D: T);
5
+ scaleMeshes: Array<THREE.Mesh & {
6
+ scalePosition: ScalePosition;
7
+ }>;
8
+ private positions;
9
+ constructor(originObject3D: T, config?: {
10
+ positions?: Array<ScalePosition> | (() => Array<ScalePosition>);
11
+ } & BaseHelperConfig);
12
+ initialPosition(offset?: THREE.Vector3): void;
13
+ setScaleByCamera(camera: THREE.PerspectiveCamera): void;
5
14
  }
@@ -16,6 +16,7 @@ export type HelperEventMap = {
16
16
  moveByMouseDisable: () => void;
17
17
  };
18
18
  export type InternalHelperEventMap = {
19
+ initialHelperPosition: () => void;
19
20
  setObjectPosition: (position: THREE.Vector3) => void;
20
21
  setObjectRotate: (quaternion: THREE.Quaternion, origin?: THREE.Vector3) => void;
21
22
  setObjectScale: (scale: THREE.Vector3) => void;
@@ -19,9 +19,20 @@ export interface HelperOffset {
19
19
  }
20
20
  export type Color = THREE.Color | string | number;
21
21
  export type ClassFunctionParameters<C extends new (...params: any[]) => any, F extends keyof InstanceType<C>> = Parameters<InstanceType<C>[F]>;
22
+ export type PositionFrom = 'objectPosition' | 'boundingBox' | THREE.Vector3 | (() => THREE.Vector3);
22
23
  export interface ObjectHelperControllers {
23
24
  moveController?: MoveController;
24
25
  rotateController?: RotateController;
25
26
  scaleController?: ScaleController;
26
27
  boundingBoxController?: BoundingBoxController;
27
28
  }
29
+ export type ScaleCallback = (params: {
30
+ ratio: number;
31
+ intersectPoint: THREE.Vector3;
32
+ scalePosition: ScalePosition;
33
+ }) => any;
34
+ export type ScalePosition = {
35
+ id?: string;
36
+ handlePosition: THREE.Vector3;
37
+ basePosition: THREE.Vector3;
38
+ };
@@ -0,0 +1,2 @@
1
+ import type * as THREE from 'three';
2
+ export default function calculateScaleByCamera(camera: THREE.PerspectiveCamera, position: THREE.Vector3): number;
@@ -1,3 +1,3 @@
1
- import { Line } from '@realsee/five/line';
2
1
  import { Vector3 } from 'three';
3
- export default function createLine(point1: Vector3, point2: Vector3, color?: Vector3, dashed?: boolean): Line;
2
+ import { FiveLine } from '../five/FiveLine';
3
+ export default function createLine(point1: Vector3, point2: Vector3, color?: Vector3, dashed?: boolean): FiveLine;
@@ -8,44 +8,76 @@
8
8
  */
9
9
  import type { Five } from '@realsee/five';
10
10
  import * as THREE from 'three';
11
- interface EventMap {
11
+ export interface FiveDomEventMap {
12
12
  /**
13
13
  * @description 点击事件
14
14
  * @return {PreventFiveEvent} 返回 false 可以不阻止 five 的 tap 事件; default: true
15
15
  */
16
- click: (event: CallbackEvent) => PreventFiveEvent | void;
16
+ click: (event: FiveDomEvent) => PreventFiveEvent | void;
17
+ /**
18
+ * @description 双击事件
19
+ */
20
+ dblclick: (event: FiveDomEvent) => void;
21
+ /**
22
+ * @description 鼠标按下事件
23
+ */
24
+ mousedown: (event: FiveDomEvent) => void;
25
+ /**
26
+ * @description 鼠标抬起事件
27
+ */
28
+ mouseup: (event: FiveDomEvent) => void;
17
29
  /**
18
30
  * @description 鼠标移入事件
19
31
  */
20
- hover: (event: CallbackEvent) => void;
32
+ hover: (event: FiveDomEvent) => void;
21
33
  /**
22
34
  * @description 鼠标移出事件
23
35
  */
24
- unHover: (event: CallbackEvent) => void;
36
+ unHover: (event: FiveDomEvent) => void;
37
+ /**
38
+ * @description: 拖动开始
39
+ */
40
+ dragstart: (event: FiveDomEvent) => void;
41
+ /**
42
+ * @description: 拖动中
43
+ */
44
+ drag: (event: FiveDomEvent) => void;
45
+ /**
46
+ * @description: 拖动结束
47
+ */
48
+ dragend: (event: FiveDomEvent) => void;
25
49
  }
26
- type EventName = keyof EventMap;
50
+ type EventName = keyof FiveDomEventMap;
27
51
  type PreventFiveEvent = boolean;
28
52
  interface EventHandlerConfig {
29
53
  /**
30
- * @default true
54
+ * @default false
31
55
  */
32
- checkVisible?: boolean;
56
+ noEmitWhenHide?: boolean;
33
57
  }
34
- interface CallbackEvent {
58
+ export interface FiveDomEvent {
35
59
  type: EventName;
36
60
  target: THREE.Object3D;
37
61
  origDomEvent?: Event;
38
- intersect: THREE.Raycaster;
62
+ raycaster: THREE.Raycaster;
63
+ intersects?: THREE.Intersection[];
39
64
  stopPropagation: () => void;
40
65
  }
41
66
  type Object3DWithEvent = THREE.Object3D & {
42
67
  _domEvent?: {
43
- [key in `${EventName}Handler`]?: Array<[EventMap[EventName], EventHandlerConfig]>;
68
+ [key in `${EventName}Handler`]?: Array<[FiveDomEventMap[EventName], EventHandlerConfig]>;
44
69
  };
45
70
  _hovered?: boolean;
71
+ _dragging?: boolean;
72
+ draggable?: boolean;
46
73
  };
47
74
  export declare class FiveDomEvents {
48
75
  private five;
76
+ /**
77
+ * @description: 拖动中
78
+ */
79
+ private dragging;
80
+ private get haveDragEventObject();
49
81
  private boundObject;
50
82
  constructor(five: Five);
51
83
  /**
@@ -53,7 +85,7 @@ export declare class FiveDomEvents {
53
85
  * @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
54
86
  * @todo: added 和 removed 还是不太智能
55
87
  */
56
- addAutoBindEventListener<T extends EventName>(object: Object3DWithEvent, event: T, callback: EventMap[T], config?: EventHandlerConfig): () => void;
88
+ addAutoBindEventListener<T extends EventName = EventName>(object: Object3DWithEvent, event: T, callback: FiveDomEventMap[T], config?: EventHandlerConfig): () => void;
57
89
  /**
58
90
  * @description: add event listener
59
91
  * @param params.object: object
@@ -61,11 +93,16 @@ export declare class FiveDomEvents {
61
93
  * @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
62
94
  * @return {void}
63
95
  */
64
- addEventListener<T extends EventName>(object: Object3DWithEvent, event: T, callback: EventMap[T], config?: EventHandlerConfig): void;
65
- removeEventListener(object: Object3DWithEvent, event: EventName, callback: (e: CallbackEvent) => any, ...args: any[]): void;
96
+ addEventListener<T extends EventName = EventName>(object: Object3DWithEvent, event: T, callback: FiveDomEventMap[T], config?: EventHandlerConfig): void;
97
+ removeEventListener(object: Object3DWithEvent, event: EventName, callback: (e: FiveDomEvent) => any, ...args: any[]): void;
66
98
  dispose(): void;
67
99
  private getRaycaster;
68
100
  private handleWantsGesture;
101
+ private handleDomEvent;
102
+ private handleMouseEvent;
103
+ private handleMousedown;
104
+ private handleMouseup;
105
+ private handleMousemove;
69
106
  private onDomEvent;
70
107
  private objectIsBound;
71
108
  private notify;
@@ -0,0 +1,8 @@
1
+ import { Line } from '@realsee/five/line';
2
+ export declare class FiveLine extends Line {
3
+ constructor(...args: ConstructorParameters<typeof Line>);
4
+ toJSON(): {
5
+ type: string;
6
+ points: any;
7
+ };
8
+ }
@@ -0,0 +1,14 @@
1
+ import * as THREE from 'three';
2
+ import type { Five } from '@realsee/five';
3
+ interface IIntersection extends THREE.Intersection {
4
+ raycaster: THREE.Raycaster;
5
+ isVirtual: boolean;
6
+ }
7
+ export declare function getIntersectByNdcPosition(five: Five, position: {
8
+ x: number;
9
+ y: number;
10
+ }): IIntersection;
11
+ export declare function getIntersectByRaycaster(five: Five, raycaster: THREE.Raycaster): IIntersection;
12
+ export declare function getVirtualIntersectByRaycaster(raycaster: THREE.Raycaster): IIntersection;
13
+ export declare function getRealIntersectByRaycaster(five: Five, raycaster: THREE.Raycaster): IIntersection;
14
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { Five } from '@realsee/five';
2
+ import * as THREE from 'three';
3
+ export declare function getRaycasterByNdcPosition(five: Five, position: {
4
+ x: number;
5
+ y: number;
6
+ }): THREE.Raycaster;
@@ -4,6 +4,7 @@ export type AnyPosition = Vector3 | number[] | {
4
4
  y: number;
5
5
  z: number;
6
6
  };
7
+ export type AnyPositions = Array<AnyPosition>;
7
8
  export declare const positionToVector3: ({ x, y, z }: {
8
9
  x: number;
9
10
  y: number;
@@ -1,7 +1,11 @@
1
1
  import { Object3D } from 'three';
2
2
  export declare class IObject3D extends Object3D {
3
+ name: string;
4
+ needsRender: boolean;
3
5
  constructor();
6
+ removeChildren(): this;
4
7
  add(...objects: Object3D[]): this;
8
+ addIfNotExists(...objects: Object3D[]): this;
5
9
  remove(...objects: Object3D[]): this;
6
10
  removeFromParent(): this;
7
11
  }
@@ -2,23 +2,25 @@ import type { Five, SubscribeEventMap } from '@realsee/five';
2
2
  import Hammer from 'hammerjs';
3
3
  import * as THREE from 'three';
4
4
  import { Subscribe } from '@realsee/five';
5
+ interface MagnifierConfig {
6
+ /** 允许拖动放大镜 */
7
+ dragEnabled: boolean;
8
+ /** renderWithPoint 时,是否应该自动更新放大镜的位置 */
9
+ autoFixPCPosition: boolean;
10
+ /** 放大镜初始位置应该设置在容器的哪个位置 */
11
+ initialPosition: {
12
+ left: string;
13
+ top: string;
14
+ };
15
+ }
5
16
  interface MagnifierEvent extends SubscribeEventMap {
6
17
  wantsPanGesture: (event: (typeof Hammer)['Input']) => boolean;
7
18
  }
8
19
  /** 放大镜配置参数 */
9
- export interface MagnifierParameter {
20
+ export interface MagnifierParameter extends Partial<MagnifierConfig> {
10
21
  width?: number;
11
22
  height?: number;
12
23
  scale?: number;
13
- /** 允许拖动放大镜 */
14
- dragEnabled?: boolean;
15
- /** renderWithPoint 时,是否应该自动更新放大镜的位置 */
16
- autoFixPCPosition?: boolean;
17
- /** 放大镜初始位置应该设置在容器的哪个位置 */
18
- initialPosition?: {
19
- left: string;
20
- top: string;
21
- };
22
24
  }
23
25
  export declare class Magnifier {
24
26
  width: number;
@@ -26,33 +28,45 @@ export declare class Magnifier {
26
28
  containerDom?: Element;
27
29
  hooks: Subscribe<MagnifierEvent>;
28
30
  canvas: HTMLCanvasElement;
31
+ config: MagnifierConfig;
32
+ state: {
33
+ enabled: boolean;
34
+ };
29
35
  private five;
30
36
  private scale;
31
- private config;
32
37
  private offset;
33
38
  private context;
34
39
  private renderCenter;
35
40
  private hammer?;
36
- private state;
41
+ private offsetRange?;
42
+ private isPanning;
37
43
  constructor(five: Five, options: MagnifierParameter);
38
- getCurrentState(): {
39
- enabled: boolean;
40
- };
41
- dispose(): void;
42
- show(): this;
43
- hide(): this;
44
44
  enable(): this;
45
45
  disable(): this;
46
+ dispose(): void;
46
47
  /** 把放大镜放到某一个容器中 */
47
48
  appendTo(element: Element): this;
48
49
  /** 清除放大镜渲染内容 */
49
50
  clear(): this;
50
51
  /** 放大传入点位周围的内容 */
51
52
  renderWithPoint(point: THREE.Vector3): void;
53
+ /** 放大传入点位周围的内容 */
54
+ renderWithScreenPoint(point: {
55
+ x: number;
56
+ y: number;
57
+ }): void;
58
+ resetOffset(): void;
59
+ protected getRenderCenter(): THREE.Vector3 | {
60
+ x: number;
61
+ y: number;
62
+ };
63
+ private _appendTo;
52
64
  private autoFixPCPosition;
53
65
  private render;
54
66
  private initStyle;
67
+ private getPanOffset;
68
+ private onPanstart;
55
69
  private onPan;
56
- private onPanEnd;
70
+ private onPanend;
57
71
  }
58
72
  export {};
@@ -1,7 +1,7 @@
1
- import type { Five, SubscribeEventMap } from '@realsee/five';
2
- import { Subscribe } from '@realsee/five';
1
+ import type { Five } from '@realsee/five';
3
2
  import { PointSelectorHelper, type PointIntersection } from './PointSelectorHelper';
4
- import { Vector3 } from 'three';
3
+ import type { Vector3 } from 'three';
4
+ import { Subscribe } from '../Subscribe';
5
5
  interface Config {
6
6
  /**
7
7
  * @description: 选点的两种模式, 'fixed' 为固定选点为屏幕中心点,拖动five画布来更新点,'cursor' 为跟随鼠标移动来更新点, 'auto' 则根据设备类型自动选择
@@ -10,7 +10,7 @@ interface Config {
10
10
  mode: 'fixed' | 'cursor' | 'auto';
11
11
  pointSelectorHelperParams: ConstructorParameters<typeof PointSelectorHelper>[1];
12
12
  }
13
- interface EventMap extends SubscribeEventMap {
13
+ type EventMap = {
14
14
  /**
15
15
  * @description: 与模型交点更新时触发,移出监听范围时为null
16
16
  * @param isAdhered 是否为吸附的点
@@ -20,23 +20,35 @@ interface EventMap extends SubscribeEventMap {
20
20
  * @description: 试图打点,返回false则不打点
21
21
  */
22
22
  wantsSelect: (intersection: PointIntersection) => boolean | void;
23
+ /**
24
+ * @description: 打点成功
25
+ */
23
26
  select: (intersection: PointIntersection) => void;
24
- }
27
+ /**
28
+ * @description: 功能开启
29
+ */
30
+ enable: () => void;
31
+ /**
32
+ * @description: 功能关闭
33
+ */
34
+ disable: () => void;
35
+ };
25
36
  /**
26
37
  * @description: 在屏幕上选点
27
38
  */
28
- export declare class PointSelector {
29
- hook: Subscribe<EventMap>;
39
+ export declare class PointSelector extends Subscribe<EventMap> {
30
40
  get position(): PointIntersection;
31
41
  /**
32
42
  * @description: 不在 five canvas 上时为 true
33
43
  */
34
44
  outOfFive: boolean;
45
+ enabled: boolean;
46
+ pointSelectorHelper: PointSelectorHelper;
47
+ /** @deprecated directly use `pointSelector.on/off` instead */
48
+ hook: this;
35
49
  private five;
36
50
  private hammer?;
37
51
  private mode;
38
- private pointSelectorHelper;
39
- private enabled;
40
52
  /** 长按屏幕的动作触发后为true,手指抬起后为false */
41
53
  private pressDown;
42
54
  /** 一组吸附的点,光标靠近这些点时,会将helper以及放大镜的位置设置为这些点 */
@@ -44,11 +56,13 @@ export declare class PointSelector {
44
56
  /** 吸附点的半径 */
45
57
  private adherePointsRadius;
46
58
  private lastFiveHelperVisible?;
59
+ private mousePosition;
60
+ private get mouseNdcPosition();
47
61
  constructor(five: Five, config?: Partial<Config>);
48
62
  enable(): void;
49
63
  disable(): void;
50
64
  dispose(): void;
51
- setAdherePoints(points: Vector3[] | Vector3 | null, radius?: number): void;
65
+ setAdherePoints(points: Vector3[] | ((intersection: PointIntersection) => Vector3[]) | null, radius?: number): void;
52
66
  /**
53
67
  * @description: 主动触发一次选点
54
68
  * @return: select 是否成功
@@ -76,7 +90,6 @@ export declare class PointSelector {
76
90
  * @description: 手指抬起后,重置pressDown状态
77
91
  */
78
92
  private onPanEnd;
79
- private intersectionOnModelUpdate;
80
93
  private updateByMousePosition;
81
94
  /**
82
95
  * @description: 根据鼠标位置更新helper位置
@@ -86,6 +99,7 @@ export declare class PointSelector {
86
99
  * @description: 更新 pointSelectorHelper 的焦点位置
87
100
  */
88
101
  private updatePointSelectorHelperIntersect;
102
+ private mousePositionToNdcPosition;
89
103
  private onFiveWantsPanGesture;
90
104
  private renderScreenCenter;
91
105
  private emitIntersectionUpdate;
@@ -1,3 +1,4 @@
1
+ import * as THREE from 'three';
1
2
  import type { Five } from '@realsee/five';
2
3
  import { Subscribe } from '@realsee/five';
3
4
  import { Magnifier, PointHelper, PointDomHelper } from '.';
@@ -18,6 +19,7 @@ type EventMap = {
18
19
  };
19
20
  export interface PointIntersection extends Intersection {
20
21
  isVirtual?: boolean;
22
+ raycaster?: THREE.Raycaster;
21
23
  }
22
24
  export declare class PointSelectorHelper {
23
25
  five: Five;
@@ -4,4 +4,4 @@ export declare function getGeometryArea(geometry: THREE.BufferGeometry): number;
4
4
  export declare function getGeometryInfo(geometry: THREE.BufferGeometry): {
5
5
  center: Vector3;
6
6
  area: number;
7
- } | void;
7
+ } | undefined;
@@ -1,5 +1,19 @@
1
- import type { Five, Intersection } from '@realsee/five';
1
+ import * as THREE from 'three';
2
+ import type { Five } from '@realsee/five';
2
3
  export declare function getIntersectFromRelativePosition(five: Five, position: {
3
4
  x: number;
4
5
  y: number;
5
- }): Intersection;
6
+ }): {
7
+ raycaster: THREE.Raycaster;
8
+ isVirtual: boolean;
9
+ floor: number;
10
+ distance: number;
11
+ distanceToRay?: number;
12
+ point: THREE.Vector3;
13
+ index?: number;
14
+ face?: THREE.Face3;
15
+ faceIndex?: number;
16
+ object: THREE.Object3D;
17
+ uv?: THREE.Vector2;
18
+ instanceId?: number;
19
+ };
@@ -1,2 +1,2 @@
1
- import { Vector3 } from 'three';
1
+ import type { Vector3 } from 'three';
2
2
  export default function getNormal(points: Vector3[], length?: number): Vector3;
@@ -0,0 +1,2 @@
1
+ import type * as THREE from 'three';
2
+ export default function recurveFindObject(object: THREE.Object3D, end: (obj: THREE.Object3D & {}) => boolean): any;
@@ -0,0 +1,3 @@
1
+ import type * as THREE from 'three';
2
+ import type { ReplaceDeep } from '../../Sculpt/typings/utils.type';
3
+ export default function vector3ToArray<V extends THREE.Vector3 | THREE.Vector3[]>(vector3: V): ReplaceDeep<V, THREE.Vector3, [number, number, number]>;