@realsee/dnalogel 2.1.2-alpha.9 → 2.2.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 (473) hide show
  1. package/README.md +45 -0
  2. package/dist/CSS3DRenderPlugin/CSS3DRender.d.ts +167 -0
  3. package/dist/CSS3DRenderPlugin/Controller.d.ts +81 -0
  4. package/dist/CSS3DRenderPlugin/index.d.ts +5 -0
  5. package/dist/CSS3DRenderPlugin/typing.d.ts +26 -0
  6. package/dist/CSS3DRenderPlugin/utils/CSS3DObjectPlus.d.ts +34 -0
  7. package/dist/CSS3DRenderPlugin/utils/centerPoint.d.ts +2 -0
  8. package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +3 -0
  9. package/dist/CSS3DRenderPlugin/utils/index.d.ts +4 -0
  10. package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +13 -0
  11. package/dist/CSS3DRenderPlugin/utils/random.d.ts +1 -0
  12. package/dist/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
  13. package/dist/CameraMovementPlugin/index.d.ts +5 -0
  14. package/dist/CameraMovementPlugin/typing.d.ts +68 -0
  15. package/dist/CruisePlugin/Controller.d.ts +172 -0
  16. package/dist/CruisePlugin/index.d.ts +6 -0
  17. package/dist/CruisePlugin/typing.d.ts +134 -0
  18. package/dist/CruisePlugin/utils/coordinatesAngle.d.ts +12 -0
  19. package/dist/CruisePlugin/utils/coordinatesToVector.d.ts +7 -0
  20. package/dist/CruisePlugin/utils/formatRad.d.ts +7 -0
  21. package/dist/CruisePlugin/utils/linerValue.d.ts +1 -0
  22. package/dist/CruisePlugin/utils/safeCall.d.ts +1 -0
  23. package/dist/CruisePlugin/utils/sleep.d.ts +1 -0
  24. package/dist/CruisePlugin/utils/vectorToCoordinates.d.ts +7 -0
  25. package/dist/GuideLinePlugin/Controller.d.ts +51 -0
  26. package/dist/GuideLinePlugin/index.d.ts +5 -0
  27. package/dist/GuideLinePlugin/typing.d.ts +34 -0
  28. package/dist/GuideLinePlugin/utils/getArrowMaterial.d.ts +4 -0
  29. package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
  30. package/dist/GuideLinePlugin/utils/polyline-normals.d.ts +3 -0
  31. package/dist/ItemLabelPlugin/Plugin.d.ts +4 -0
  32. package/dist/ItemLabelPlugin/events.type.d.ts +9 -0
  33. package/dist/ItemLabelPlugin/index.d.ts +9 -0
  34. package/dist/ItemLabelPlugin/typings.d.ts +65 -0
  35. package/dist/ItemLabelPlugin/utils/getLabelTransform.d.ts +1 -0
  36. package/dist/ItemLabelPlugin/utils/getStrokeLength.d.ts +5 -0
  37. package/dist/ItemLabelPlugin/utils/isImpacted.d.ts +8 -0
  38. package/dist/ItemLabelPlugin/utils/parseData.d.ts +3 -0
  39. package/dist/ItemLabelPlugin/utils/transform2RenderData.d.ts +3 -0
  40. package/dist/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
  41. package/dist/ModelChassisCompassPlugin/index.d.ts +4 -0
  42. package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
  43. package/dist/ModelEntryDoorGuidePlugin/index.d.ts +4 -0
  44. package/dist/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
  45. package/dist/ModelItemLabelPlugin/events.type.d.ts +9 -0
  46. package/dist/ModelItemLabelPlugin/index.d.ts +9 -0
  47. package/dist/ModelItemLabelPlugin/typings.d.ts +56 -0
  48. package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
  49. package/dist/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
  50. package/dist/ModelRoomLabelPlugin/Controller.d.ts +36 -0
  51. package/dist/ModelRoomLabelPlugin/index.d.ts +12 -0
  52. package/dist/ModelRoomLabelPlugin/typings.d.ts +35 -0
  53. package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
  54. package/dist/ModelTVVideoPlugin/Plugin.d.ts +4 -0
  55. package/dist/ModelTVVideoPlugin/index.d.ts +5 -0
  56. package/dist/ModelTVVideoPlugin/typings.d.ts +25 -0
  57. package/dist/ModelTVVideoPlugin/utils/parseData.d.ts +2 -0
  58. package/dist/ModelViewPlugin/Plugin.d.ts +28 -0
  59. package/dist/ModelViewPlugin/index.d.ts +4 -0
  60. package/dist/Object3DHelperPlugin/Controller.d.ts +65 -0
  61. package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +19 -0
  62. package/dist/Object3DHelperPlugin/index.d.ts +6 -0
  63. package/dist/Object3DHelperPlugin/typings.d.ts +24 -0
  64. package/dist/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
  65. package/dist/PanoCompassPlugin/Controller.d.ts +84 -0
  66. package/dist/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
  67. package/dist/PanoCompassPlugin/index.d.ts +7 -0
  68. package/dist/PanoCompassPlugin/typings.d.ts +57 -0
  69. package/dist/PanoCursorRaycasterPlugin/index.d.ts +48 -0
  70. package/dist/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
  71. package/dist/PanoDoorLabelPlugin/Controller.d.ts +37 -0
  72. package/dist/PanoDoorLabelPlugin/index.d.ts +7 -0
  73. package/dist/PanoDoorLabelPlugin/typings.d.ts +38 -0
  74. package/dist/PanoDoorLabelPlugin/utils.d.ts +5 -0
  75. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +43 -0
  76. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +48 -0
  77. package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +42 -0
  78. package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
  79. package/dist/PanoMeasurePlugin/Controller/ViewController.d.ts +16 -0
  80. package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +26 -0
  81. package/dist/PanoMeasurePlugin/Controller/index.d.ts +73 -0
  82. package/dist/PanoMeasurePlugin/Model/index.d.ts +35 -0
  83. package/dist/PanoMeasurePlugin/Model/line.d.ts +30 -0
  84. package/dist/PanoMeasurePlugin/Model/point.d.ts +16 -0
  85. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
  86. package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
  87. package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
  88. package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
  89. package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +25 -0
  90. package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
  91. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
  92. package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +59 -0
  93. package/dist/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +2 -0
  94. package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +15 -0
  95. package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +13 -0
  96. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +20 -0
  97. package/dist/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +4 -0
  98. package/dist/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +12 -0
  99. package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +16 -0
  100. package/dist/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +4 -0
  101. package/dist/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +44 -0
  102. package/dist/PanoMeasurePlugin/index.d.ts +10 -0
  103. package/dist/PanoMeasurePlugin/typings/data.d.ts +37 -0
  104. package/dist/PanoMeasurePlugin/typings/event.type.d.ts +37 -0
  105. package/dist/PanoMeasurePlugin/typings/index.d.ts +8 -0
  106. package/dist/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +10 -0
  107. package/dist/PanoMeasurePlugin/utils/constants.d.ts +4 -0
  108. package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
  109. package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
  110. package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
  111. package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
  112. package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
  113. package/dist/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
  114. package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
  115. package/dist/PanoMeasurePlugin/utils/line.d.ts +17 -0
  116. package/dist/PanoMeasurePlugin/utils/math.d.ts +17 -0
  117. package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +7 -0
  118. package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
  119. package/dist/PanoRulerPlugin/Plugin.d.ts +34 -0
  120. package/dist/PanoRulerPlugin/index.d.ts +5 -0
  121. package/dist/PanoRulerPlugin/style.d.ts +2 -0
  122. package/dist/PanoRulerPlugin/typings.d.ts +21 -0
  123. package/dist/PanoRulerProPlugin/Controller.d.ts +15 -0
  124. package/dist/PanoRulerProPlugin/index.d.ts +8 -0
  125. package/dist/PanoRulerProPlugin/typings.d.ts +46 -0
  126. package/dist/PanoSpatialTagPlugin/Plugin.d.ts +35 -0
  127. package/dist/PanoSpatialTagPlugin/index.d.ts +5 -0
  128. package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
  129. package/dist/PanoSpatialTagPlugin/style.d.ts +1 -0
  130. package/dist/PanoSpatialTagPlugin/typings.d.ts +40 -0
  131. package/dist/PanoTagPlugin/Assets/Icon.d.ts +3 -0
  132. package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +22 -0
  133. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +69 -0
  134. package/dist/PanoTagPlugin/controller/index.d.ts +144 -0
  135. package/dist/PanoTagPlugin/index.d.ts +8 -0
  136. package/dist/PanoTagPlugin/tag.config.d.ts +7 -0
  137. package/dist/PanoTagPlugin/typings/controller.d.ts +103 -0
  138. package/dist/PanoTagPlugin/typings/index.d.ts +2 -0
  139. package/dist/PanoTagPlugin/typings/tag.d.ts +247 -0
  140. package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +2 -0
  141. package/dist/PanoTagPlugin/utils/addDebugPoints.d.ts +3 -0
  142. package/dist/PanoTagPlugin/utils/checkRange.d.ts +4 -0
  143. package/dist/PanoTagPlugin/utils/constants.d.ts +3 -0
  144. package/dist/PanoTagPlugin/utils/debounce.d.ts +7 -0
  145. package/dist/PanoTagPlugin/utils/doUtil.d.ts +1 -0
  146. package/dist/PanoTagPlugin/utils/index.d.ts +12 -0
  147. package/dist/PanoTagPlugin/utils/noTypecheck.d.ts +1 -0
  148. package/dist/PanoTagPlugin/utils/normalPositionToPositions.d.ts +2 -0
  149. package/dist/PanoTagPlugin/utils/planeNormal.d.ts +4 -0
  150. package/dist/PanoTagPlugin/utils/resizeObserver.d.ts +4 -0
  151. package/dist/PanoTagPlugin/utils/search.d.ts +11 -0
  152. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -0
  153. package/dist/PanoTagPlugin/utils/throttle.d.ts +7 -0
  154. package/dist/base/BasePlugin.d.ts +106 -0
  155. package/dist/base/BasePluginWithData.d.ts +34 -0
  156. package/dist/components/PaintBrush/Controller.d.ts +43 -0
  157. package/dist/components/PaintBrush/Subscribe.d.ts +76 -0
  158. package/dist/components/PaintBrush/index.d.ts +27 -0
  159. package/dist/components/PaintBrush/style.d.ts +2 -0
  160. package/dist/components/PaintBrush/tween.d.ts +7 -0
  161. package/dist/components/PaintBrush/typings.d.ts +58 -0
  162. package/dist/components/PaintBrush/utils.d.ts +26 -0
  163. package/dist/components/index.d.ts +2 -0
  164. package/dist/env.d.ts +1 -0
  165. package/dist/floorplan/Assets/camera.d.ts +1 -0
  166. package/dist/floorplan/Assets/compass.d.ts +1 -0
  167. package/dist/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
  168. package/dist/floorplan/MapviewFloorplanPlugin/Controller.d.ts +97 -0
  169. package/dist/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
  170. package/dist/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -0
  171. package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +99 -0
  172. package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +7 -0
  173. package/dist/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -0
  174. package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +36 -0
  175. package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +7 -0
  176. package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
  177. package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +69 -0
  178. package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +7 -0
  179. package/dist/floorplan/TopviewFloorplanPlugin/typing.d.ts +11 -0
  180. package/dist/floorplan/constant.d.ts +5 -0
  181. package/dist/floorplan/index.d.ts +7 -0
  182. package/dist/floorplan/typings/floorplanData.d.ts +137 -0
  183. package/dist/floorplan/typings/floorplanServerData.d.ts +144 -0
  184. package/dist/floorplan/typings/index.d.ts +117 -0
  185. package/dist/floorplan/typings/utility.d.ts +2 -0
  186. package/dist/floorplan/utils/constant.d.ts +22 -0
  187. package/dist/floorplan/utils/correctFiveState.d.ts +15 -0
  188. package/dist/floorplan/utils/formatData.d.ts +5 -0
  189. package/dist/floorplan/utils/formatPosition.d.ts +36 -0
  190. package/dist/index.d.ts +23 -0
  191. package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +48 -0
  192. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +91 -0
  193. package/dist/shared-utils/Object3DHelper/Constants/color.d.ts +12 -0
  194. package/dist/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +6 -0
  195. package/dist/shared-utils/Object3DHelper/Controller/MoveController.d.ts +13 -0
  196. package/dist/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +37 -0
  197. package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +22 -0
  198. package/dist/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.d.ts +11 -0
  199. package/dist/shared-utils/Object3DHelper/Helper/HTML/tipsDom.d.ts +6 -0
  200. package/dist/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.d.ts +2 -0
  201. package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +13 -0
  202. package/dist/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.d.ts +17 -0
  203. package/dist/shared-utils/Object3DHelper/Helper/OutlineHelper.d.ts +11 -0
  204. package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +40 -0
  205. package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +55 -0
  206. package/dist/shared-utils/Object3DHelper/Helper/index.d.ts +5 -0
  207. package/dist/shared-utils/Object3DHelper/index.d.ts +71 -0
  208. package/dist/shared-utils/Object3DHelper/typings/Direction.d.ts +2 -0
  209. package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +45 -0
  210. package/dist/shared-utils/Object3DHelper/typings/Scissor.d.ts +17 -0
  211. package/dist/shared-utils/Object3DHelper/typings/index.d.ts +5 -0
  212. package/dist/shared-utils/Object3DHelper/utils/calculateThreeMouse.d.ts +14 -0
  213. package/dist/shared-utils/Object3DHelper/utils/direction.d.ts +14 -0
  214. package/dist/shared-utils/Object3DHelper/utils/filterNotColinearPoints.d.ts +2 -0
  215. package/dist/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +5 -0
  216. package/dist/shared-utils/Object3DHelper/utils/getPoint.d.ts +3 -0
  217. package/dist/shared-utils/Object3DHelper/utils/index.d.ts +8 -0
  218. package/dist/shared-utils/Object3DHelper/utils/normalPositionToPositions.d.ts +5 -0
  219. package/dist/shared-utils/Object3DHelper/utils/object3DBoundingPosition.d.ts +1 -0
  220. package/dist/shared-utils/Object3DHelper/utils/threex/domevents/index.d.ts +34 -0
  221. package/dist/shared-utils/Object3DHelper/utils/vectorIsEqual.d.ts +2 -0
  222. package/dist/shared-utils/Subscribe.d.ts +60 -0
  223. package/dist/shared-utils/animationFrame/BetterTween.d.ts +11 -0
  224. package/dist/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
  225. package/dist/shared-utils/animationFrame/formatRad.d.ts +15 -0
  226. package/dist/shared-utils/animationFrame/index.d.ts +16 -0
  227. package/dist/shared-utils/animationFrame/tween.d.ts +75 -0
  228. package/dist/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
  229. package/dist/shared-utils/createCanvasTextTexture.d.ts +8 -0
  230. package/dist/shared-utils/createLine/index.d.ts +3 -0
  231. package/dist/shared-utils/debounce.d.ts +6 -0
  232. package/dist/shared-utils/equal.d.ts +11 -0
  233. package/dist/shared-utils/filter.d.ts +27 -0
  234. package/dist/shared-utils/five/changeMode.d.ts +5 -0
  235. package/dist/shared-utils/getPxmm.d.ts +19 -0
  236. package/dist/shared-utils/index.d.ts +4 -0
  237. package/dist/shared-utils/isNil.d.ts +10 -0
  238. package/dist/shared-utils/isTruelyObject.d.ts +18 -0
  239. package/dist/shared-utils/math/Interval.d.ts +13 -0
  240. package/dist/shared-utils/math/Rectangle.d.ts +27 -0
  241. package/dist/shared-utils/math/index.d.ts +2 -0
  242. package/dist/shared-utils/math/planimetry.d.ts +116 -0
  243. package/dist/shared-utils/math/rad2Deg.d.ts +1 -0
  244. package/dist/shared-utils/nearlyEqual.d.ts +7 -0
  245. package/dist/shared-utils/nextFrame.d.ts +1 -0
  246. package/dist/shared-utils/noop.d.ts +5 -0
  247. package/dist/shared-utils/object3d2LocalMatrix.d.ts +12 -0
  248. package/dist/shared-utils/removeArrayItem.d.ts +7 -0
  249. package/dist/shared-utils/tap.d.ts +8 -0
  250. package/dist/shared-utils/three/Assets/index.d.ts +3 -0
  251. package/dist/shared-utils/three/FivePointSelector.d.ts +36 -0
  252. package/dist/shared-utils/three/Magnifier.d.ts +53 -0
  253. package/dist/shared-utils/three/PointDomHelper.d.ts +18 -0
  254. package/dist/shared-utils/three/PointHelper.d.ts +21 -0
  255. package/dist/shared-utils/three/getCoords.d.ts +9 -0
  256. package/dist/shared-utils/three/getIntersect.d.ts +6 -0
  257. package/dist/shared-utils/three/getRaycaster.d.ts +6 -0
  258. package/dist/shared-utils/three/index.d.ts +7 -0
  259. package/dist/shared-utils/three/loadTexture.d.ts +2 -0
  260. package/dist/shared-utils/three/transformPositionToVector3.d.ts +7 -0
  261. package/dist/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
  262. package/dist/shared-utils/throttle.d.ts +7 -0
  263. package/dist/shared-utils/tinyEJSrender.d.ts +5 -0
  264. package/dist/shared-utils/to.d.ts +8 -0
  265. package/dist/shared-utils/uuid.d.ts +5 -0
  266. package/dist/typings/math.type.d.ts +44 -0
  267. package/docs/assets/highlight.css +35 -0
  268. package/docs/classes/CruisePluginController.html +24 -24
  269. package/docs/classes/Magnifier.html +16 -16
  270. package/docs/classes/ModelRoomLabelController.html +11 -11
  271. package/docs/classes/Object3DHelperController.html +24 -24
  272. package/docs/classes/PaintBrush.html +15 -15
  273. package/docs/classes/PanoTagPluginController.html +39 -39
  274. package/docs/classes/Util.BetterTween.html +8 -8
  275. package/docs/classes/Util.FivePointSelector.html +12 -12
  276. package/docs/classes/Util.Interval.html +12 -12
  277. package/docs/classes/Util.Magnifier.html +17 -17
  278. package/docs/classes/Util.PointDomHelper.html +11 -11
  279. package/docs/classes/Util.PointHelper.html +11 -11
  280. package/docs/classes/Util.Rectangle.html +13 -13
  281. package/docs/enums/CameraMovementEffect.html +7 -7
  282. package/docs/enums/ContentType.html +12 -12
  283. package/docs/enums/DIRECTION.html +9 -9
  284. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  285. package/docs/enums/DimensionType.html +7 -7
  286. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  287. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  288. package/docs/enums/LinkType.html +7 -7
  289. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  290. package/docs/enums/PointType.html +7 -7
  291. package/docs/enums/Rotation.html +8 -8
  292. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  293. package/docs/functions/CameraMovementPlugin.html +4 -4
  294. package/docs/functions/CruisePlugin.html +4 -4
  295. package/docs/functions/GuideLinePlugin.html +5 -5
  296. package/docs/functions/ItemLabelPlugin.html +4 -4
  297. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  298. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  299. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  300. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  301. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  302. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  303. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  304. package/docs/functions/ModelViewPlugin.html +4 -4
  305. package/docs/functions/Object3DHelperPlugin.html +4 -4
  306. package/docs/functions/PanoCompassPlugin.html +4 -4
  307. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  308. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  309. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  310. package/docs/functions/PanoMeasurePlugin.html +4 -4
  311. package/docs/functions/PanoRulerPlugin.html +4 -4
  312. package/docs/functions/PanoRulerProPlugin.html +4 -4
  313. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  314. package/docs/functions/PanoTagPlugin.html +4 -4
  315. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  316. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  317. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  318. package/docs/functions/Util.getFrameTime.html +5 -5
  319. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  320. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  321. package/docs/functions/Util.isNil.html +5 -5
  322. package/docs/functions/Util.nextFrame.html +5 -5
  323. package/docs/functions/Util.notNil.html +5 -5
  324. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  325. package/docs/functions/Util.tweenProgress.html +5 -5
  326. package/docs/functions/pluginFlag.html +5 -5
  327. package/docs/index.html +25 -4
  328. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  329. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  330. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  331. package/docs/interfaces/ContentTypeMap.html +12 -12
  332. package/docs/interfaces/FloorplanBounding.html +8 -8
  333. package/docs/interfaces/FloorplanData.html +10 -10
  334. package/docs/interfaces/FloorplanEntrance.html +11 -11
  335. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  336. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  337. package/docs/interfaces/FloorplanFloorData.html +9 -9
  338. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  339. package/docs/interfaces/FloorplanObserver.html +9 -9
  340. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  341. package/docs/interfaces/FloorplanPosition.html +7 -7
  342. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  343. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  344. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  345. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  346. package/docs/interfaces/FloorplanServerData.html +7 -7
  347. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  348. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  349. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  350. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  351. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  352. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  353. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  354. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  355. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  356. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  357. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  358. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  359. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  360. package/docs/interfaces/LineJson.html +7 -7
  361. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  362. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  363. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  364. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  365. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  366. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  367. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  368. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  369. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  370. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  371. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  372. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  373. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  374. package/docs/interfaces/Object3DHelperState.html +8 -8
  375. package/docs/interfaces/OpenParameter.html +7 -7
  376. package/docs/interfaces/PaintBrushAction.html +12 -12
  377. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  378. package/docs/interfaces/PaintBrushState.html +10 -10
  379. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  380. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  381. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  382. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  383. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  384. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  385. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  386. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  387. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  388. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  389. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  390. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  391. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  392. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  393. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  394. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  395. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  396. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  397. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  398. package/docs/interfaces/Point.html +8 -8
  399. package/docs/interfaces/PointJson.html +8 -8
  400. package/docs/interfaces/Room.html +9 -9
  401. package/docs/interfaces/RoomInfo.html +7 -7
  402. package/docs/interfaces/RoomLabel.html +14 -14
  403. package/docs/interfaces/RoomRules.html +5 -5
  404. package/docs/interfaces/Rooms.html +5 -5
  405. package/docs/interfaces/Scissor.html +9 -9
  406. package/docs/interfaces/TagConfig.html +10 -10
  407. package/docs/interfaces/Tags.html +9 -9
  408. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  409. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  410. package/docs/modules/Util.html +5 -5
  411. package/docs/modules.html +4 -4
  412. package/docs/types/ArrayPosition.html +5 -5
  413. package/docs/types/CSS3DRenderExportType.html +5 -5
  414. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  415. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  416. package/docs/types/Color.html +5 -5
  417. package/docs/types/ContentTypeConfigKey.html +5 -5
  418. package/docs/types/ContentTypeConfigKeyArray.html +5 -5
  419. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  420. package/docs/types/Create3DElementReturnType.html +5 -5
  421. package/docs/types/CruisePluginExportType.html +5 -5
  422. package/docs/types/Direction-1.html +5 -5
  423. package/docs/types/Direction4.html +5 -5
  424. package/docs/types/FloorplanRuleLabels.html +5 -5
  425. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  426. package/docs/types/GuideLinePluginExportType.html +5 -5
  427. package/docs/types/HelperEventMap.html +5 -5
  428. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  429. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  430. package/docs/types/MediaData.html +5 -5
  431. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  432. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  433. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  434. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  435. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  436. package/docs/types/MoveArgs.html +5 -5
  437. package/docs/types/MoveOpts.html +5 -5
  438. package/docs/types/Object3DHelperEventMap.html +5 -5
  439. package/docs/types/ObjectFit.html +5 -5
  440. package/docs/types/PaintBrushEventMap.html +5 -5
  441. package/docs/types/PanoCompassPluginData.html +5 -5
  442. package/docs/types/PanoCompassPluginExportType.html +5 -5
  443. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  444. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  445. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  446. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  447. package/docs/types/PanoMeasureReturnType.html +5 -5
  448. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  449. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  450. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  451. package/docs/types/PlaneTag.html +5 -5
  452. package/docs/types/PointTag.html +5 -5
  453. package/docs/types/Position.html +5 -5
  454. package/docs/types/RotateArgs.html +5 -5
  455. package/docs/types/RotateOpts.html +5 -5
  456. package/docs/types/RuleLabelsKey.html +5 -5
  457. package/docs/types/RuleLabelsValue.html +5 -5
  458. package/docs/types/Tag.html +5 -5
  459. package/docs/types/Tag2D.html +5 -5
  460. package/docs/types/Tag3D.html +5 -5
  461. package/docs/types/TagId.html +5 -5
  462. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  463. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  464. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  465. package/docs/variables/PLUGIN.html +5 -5
  466. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  467. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  468. package/docs/variables/VERSION.html +5 -5
  469. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  470. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  471. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  472. package/package.json +4 -8
  473. package/dist/index.es.js +0 -16650
@@ -0,0 +1,71 @@
1
+ import type { OutlineHelper } from './Helper';
2
+ import type { Object3DHelperEventMap, Object3DHelperState } from './typings';
3
+ import type { MoveController } from './Controller/MoveController';
4
+ import type { RotateController } from './Controller/RotateController';
5
+ import type { BaseController } from './Base/BaseController';
6
+ import { Subscribe } from '../Subscribe';
7
+ interface Controllers {
8
+ moveController?: MoveController;
9
+ rotateController?: RotateController;
10
+ scaleController?: BaseController;
11
+ }
12
+ interface Helpers {
13
+ outlineHelper?: OutlineHelper;
14
+ }
15
+ export declare class Object3DHelper {
16
+ controllers: Controllers;
17
+ state: Object3DHelperState;
18
+ hooks: Subscribe<Object3DHelperEventMap>;
19
+ private helpers;
20
+ private eventListener;
21
+ constructor(controllers?: Controllers, helpers?: Helpers);
22
+ /**
23
+ * @description Show guide line
24
+ */
25
+ show(options?: {
26
+ userAction?: boolean;
27
+ }): Promise<void>;
28
+ /**
29
+ * @description Hide guide line
30
+ */
31
+ hide(options?: {
32
+ userAction?: boolean;
33
+ }): Promise<void>;
34
+ /**
35
+ * @description Enable
36
+ */
37
+ enable(options?: {
38
+ userAction?: boolean;
39
+ }): void;
40
+ /**
41
+ * @description Disable
42
+ */
43
+ disable(options?: {
44
+ userAction?: boolean;
45
+ }): void;
46
+ /**
47
+ * @description Dispose
48
+ */
49
+ dispose(): void;
50
+ setState(state: Partial<Object3DHelperState>, options?: {
51
+ userAction?: boolean;
52
+ } & Record<string, any>): void;
53
+ addControllers(controllers: Controllers): void;
54
+ addHelpers(helpers: Partial<{
55
+ [K in keyof Helpers]: Helpers[K];
56
+ }>): void;
57
+ getCurrentState(): Object3DHelperState;
58
+ private addEventListener;
59
+ private handleEnd;
60
+ private handleStart;
61
+ private setOtherHelpersVisible;
62
+ private handlePositionUpdate;
63
+ private handleScaleUpdate;
64
+ private handleRotateUpdate;
65
+ private handleEnable;
66
+ private handleVisible;
67
+ private everyControllerDo;
68
+ private handleDispose;
69
+ private actionIfStateIsEnabled;
70
+ }
71
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare type Direction = 'x' | 'y' | 'z';
2
+ export declare type Direction4 = 'nesw' | 'nwse' | 'ns' | 'ew';
@@ -0,0 +1,45 @@
1
+ import type * as THREE from 'three';
2
+ export declare type HelperEventMap = {
3
+ moveStart: () => void;
4
+ rotateStart: () => void;
5
+ scaleStart: () => void;
6
+ positionUpdate: (position: {
7
+ matrix4?: THREE.Matrix4;
8
+ } | undefined) => void;
9
+ rotateUpdate: (rotate: {
10
+ quaternion?: THREE.Quaternion;
11
+ origin: THREE.Vector3;
12
+ } | undefined) => void;
13
+ scaleUpdate: (scale: {
14
+ matrix4?: THREE.Matrix4;
15
+ origin?: THREE.Vector3;
16
+ helperOrigin: THREE.Vector3;
17
+ } | undefined) => void;
18
+ moveEnd: () => void;
19
+ rotateEnd: () => void;
20
+ scaleEnd: () => void;
21
+ };
22
+ export interface Object3DHelperState {
23
+ enabled: boolean;
24
+ visible: boolean;
25
+ disposed: boolean;
26
+ }
27
+ export declare type Object3DHelperEventMap = {
28
+ show: (options?: {
29
+ userAction?: boolean;
30
+ }) => void;
31
+ hide: (options?: {
32
+ userAction?: boolean;
33
+ }) => void;
34
+ enable: (options?: {
35
+ userAction?: boolean;
36
+ }) => void;
37
+ disable: (options?: {
38
+ userAction?: boolean;
39
+ }) => void;
40
+ dispose: () => void;
41
+ stateChange: (params: {
42
+ state: Object3DHelperState;
43
+ prevState?: Object3DHelperState;
44
+ }) => void;
45
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * 显示区域裁剪参数
3
+ * @description
4
+ * 可通过初始化,或者 setScissor 方式设置
5
+ * `scissor` 是将屏幕中的内容渲染到 `renderer` 的指定区域。
6
+ * 页面整体长宽均为 `1`。通过类似 css 的 `left` `bottom` `width` `height` 来确定区域。
7
+ */
8
+ export interface Scissor {
9
+ /** 距离左侧 */
10
+ left: number;
11
+ /** 距离下侧 */
12
+ bottom: number;
13
+ /** 宽度 */
14
+ width: number;
15
+ /** 高度 */
16
+ height: number;
17
+ }
@@ -0,0 +1,5 @@
1
+ import type * as THREE from 'three';
2
+ export * from './Scissor';
3
+ export * from './Direction';
4
+ export * from './Hooks';
5
+ export declare type Color = THREE.Color | string | number;
@@ -0,0 +1,14 @@
1
+ import * as THREE from 'three';
2
+ /**
3
+ * 计算 three 中的 mouse 的值
4
+ * @param mouseXY - 鼠标相对屏幕位置
5
+ * @param element - canvas元素(three的展示元素)
6
+ * @param scissor - 屏幕剪裁
7
+ */
8
+ export declare function calculateThreeMouse(originMouse: {
9
+ x: number;
10
+ y: number;
11
+ }, element: HTMLElement): THREE.Vector2 & {
12
+ x: number;
13
+ y: number;
14
+ };
@@ -0,0 +1,14 @@
1
+ import type { Direction } from '../typings';
2
+ import * as THREE from 'three';
3
+ export declare class DirectionGroup extends THREE.Group {
4
+ direction: Direction;
5
+ constructor(direction?: Direction);
6
+ }
7
+ export declare class DirectionLine<T extends THREE.Geometry, K extends THREE.Material> extends THREE.Line<T, K> {
8
+ direction: Direction;
9
+ constructor(geometry?: T, material?: K, direction?: Direction);
10
+ }
11
+ export declare class DirectionMesh<T extends THREE.Geometry, K extends THREE.Material> extends THREE.Mesh<T, K> {
12
+ direction: Direction;
13
+ constructor(geometry?: T, material?: K, direction?: Direction);
14
+ }
@@ -0,0 +1,2 @@
1
+ import type { Vector3 } from 'three';
2
+ export declare function filterNotColinearPoints(positions: Vector3[]): [Vector3, Vector3, Vector3] | void;
@@ -0,0 +1,5 @@
1
+ import * as THREE from 'three';
2
+ export declare function getMouseRaycaster(camera: THREE.Camera, mouse: {
3
+ x: number;
4
+ y: number;
5
+ }, element: HTMLElement): THREE.Raycaster;
@@ -0,0 +1,3 @@
1
+ import * as THREE from 'three';
2
+ export default function getPoint(position?: THREE.Vector3, colorIndex?: number): THREE.Mesh<THREE.SphereGeometry, THREE.MeshBasicMaterial>;
3
+ export declare function getAllMesh(): any[];
@@ -0,0 +1,8 @@
1
+ export * from '../../../CSS3DRenderPlugin/utils';
2
+ export * from './direction';
3
+ export * from './calculateThreeMouse';
4
+ export * from './normalPositionToPositions';
5
+ export * from './object3DBoundingPosition';
6
+ export * from './getMouseRaycaster';
7
+ export * from './filterNotColinearPoints';
8
+ export * from './vectorIsEqual';
@@ -0,0 +1,5 @@
1
+ import type { Vector3 } from 'three';
2
+ export declare function normalPositionToPositions(cameraPosition: Vector3, position: Vector3, normal: Vector3, config?: {
3
+ width?: number;
4
+ height?: number;
5
+ }): [Vector3, Vector3, Vector3, Vector3];
@@ -0,0 +1 @@
1
+ export declare function object3DBoundingPosition(): void;
@@ -0,0 +1,34 @@
1
+ import type * as THREE from 'three'
2
+
3
+ type EventName =
4
+ | 'click'
5
+ | 'dblclick'
6
+ | 'mouseover'
7
+ | 'mouseout'
8
+ | 'mousemove'
9
+ | 'mousedown'
10
+ | 'mouseup'
11
+ | 'contextmenu'
12
+ | 'touchstart'
13
+ | 'touchend'
14
+
15
+ declare class DomEvents {
16
+ public constructor(camera: THREE.Camera, domElement: HTMLElement)
17
+
18
+ public addEventListener<T extends EventName, K extends THREE.Object3D>(
19
+ object: K,
20
+ eventName: T,
21
+ callback: (params: {
22
+ type: T
23
+ target: K
24
+ origDomEvent: Event
25
+ intersect: THREE.Intersection & { object: K }
26
+ stopPropagation: () => void
27
+ }) => void,
28
+ useCapture?: boolean,
29
+ ): void
30
+
31
+ public removeEventListener(object: THREE.Object3D, eventName: EventName, callback: (params: any) => void, useCapture?: boolean): void
32
+ }
33
+
34
+ export default DomEvents
@@ -0,0 +1,2 @@
1
+ import type * as THREE from 'three';
2
+ export declare function vectorIsEqual(vector1: THREE.Vector3, vector2: THREE.Vector3): boolean;
@@ -0,0 +1,60 @@
1
+ interface EventMap {
2
+ [name: string]: (...args: any[]) => void | boolean;
3
+ }
4
+ /**
5
+ * 监听者模式
6
+ * @template T - 预设的监听回调类型
7
+ * @example
8
+ * ```
9
+ * new Subscribe<{
10
+ * "foo": [arg1: number, arg2: string],
11
+ * "bar": [arg: boolean],
12
+ * }>()
13
+ * ```
14
+ */
15
+ declare class Subscribe<T extends EventMap> {
16
+ /**
17
+ * 判断是否注册了事件
18
+ * @param name - 事件类型
19
+ */
20
+ hasListener(name: keyof T): boolean;
21
+ /**
22
+ * 注册事件
23
+ * @param name - 事件类型
24
+ * @param callback - 事件回调函数
25
+ * @param once - 是否只执行一次
26
+ * @returns 解除事件
27
+ * @template K - 预设的监听事件名称
28
+ * @template C - 回调函数函数上下文
29
+ */
30
+ on<K extends keyof T>(name: K, callback: (...args: Parameters<T[K]>) => ReturnType<T[K]>, once?: boolean): () => void;
31
+ /**
32
+ * 注册事件(是否只执行一次)
33
+ * @param name - 事件类型
34
+ * @param callback - 事件回调函数
35
+ * @returns 解除事件
36
+ * @template K - 预设的监听事件名称
37
+ * @template C - 回调函数函数上下文
38
+ */
39
+ once<K extends keyof T>(name: K, callback: (...args: Parameters<T[K]>) => ReturnType<T[K]>): () => void;
40
+ /**
41
+ * 解除事件
42
+ *
43
+ * 如果 name 不传的话解除对应所有事件
44
+ * 如果 name, callback 不传的话解除所有name的所有事件
45
+ * @param name - 事件类型
46
+ * @param callback - 事件回调函数
47
+ * @template K - 预设的监听事件名称
48
+ */
49
+ off<K extends keyof T>(name?: K, callback?: (...args: Parameters<T[K]>) => ReturnType<T[K]>): void;
50
+ /**
51
+ * 触发事件
52
+ * @param name - 事件类型
53
+ * @param data - 触发事件的数据
54
+ * @returns canceled 是否被触发取消
55
+ * @template K - 预设的监听事件名称
56
+ */
57
+ emit<K extends keyof T>(name: K, ...data: Parameters<T[K]>): boolean;
58
+ }
59
+ export { Subscribe };
60
+ export type { EventMap as SubscribeEventMap };
@@ -0,0 +1,11 @@
1
+ import TWEEN from '@tweenjs/tween.js';
2
+ export declare class BetterTween<G> extends TWEEN.Tween<G> {
3
+ private disposeMethods;
4
+ private animationFrameDisposer?;
5
+ onDispose: (callback: () => void) => this;
6
+ play: () => this;
7
+ dispose: () => void;
8
+ }
9
+ export declare function tweenProgress(duration?: number, easing?: (amount: number) => number): BetterTween<{
10
+ progress: number;
11
+ }>;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 线性过程插值
3
+ */
4
+ export declare function progressNumber(from: number, to: number, pst: number): number;
5
+ /**
6
+ * 弧度过程插值值,会取锐角进行插值
7
+ */
8
+ export declare function progressRad(from: number, to: number, pst: number): number;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 把一个任意角度的弧度值转换为一个 [0, 2PI] 的弧度值
3
+ * @param rad 弧度值
4
+ */
5
+ export declare function formatLongitude(rad: number): number;
6
+ /**
7
+ * 把一个任意角度的弧度值转换为一个 [-2PI, 2PI] 的弧度值
8
+ * @param rad 弧度值
9
+ */
10
+ export declare function formatLatitude(rad: number): number;
11
+ /**
12
+ * 把一个任意角度的弧度值转换为一个 [0, 2PI] 的弧度值
13
+ * @param rad 弧度值
14
+ */
15
+ export declare const formatRad: typeof formatLongitude;
@@ -0,0 +1,16 @@
1
+ declare const _requestAnimationFrame: ((callback: FrameRequestCallback) => number) & typeof requestAnimationFrame;
2
+ export default _requestAnimationFrame;
3
+ export declare function nextFrame(fn: FrameRequestCallback, delay?: number): void;
4
+ /**
5
+ * 在每个 AnimationFrame 中调用传入的函数
6
+ * @param callback 每次 AnimationFrame 中调用的函数
7
+ * @param frame 每秒运行多少次
8
+ * @returns 返回一个函数,调用可以停止 AnimationFrameLoop
9
+ */
10
+ export declare function requestAnimationFrameInterval(callback?: (time: number) => any, frame?: number): () => void;
11
+ /**
12
+ * 获取两个 AnimationFrame 间隔的时间
13
+ * @returns 返回一个 Promise,resolve 的结果是两个 AnimationFrame 间隔的时间
14
+ */
15
+ export declare function getFrameTime(): Promise<unknown>;
16
+ export * from './BetterTween';
@@ -0,0 +1,75 @@
1
+ import * as TWEEN from '@tweenjs/tween.js';
2
+ export declare const Easing: {
3
+ Linear: {
4
+ None: (amount: number) => number;
5
+ };
6
+ Quadratic: {
7
+ In: (amount: number) => number;
8
+ Out: (amount: number) => number;
9
+ InOut: (amount: number) => number;
10
+ };
11
+ Cubic: {
12
+ In: (amount: number) => number;
13
+ Out: (amount: number) => number;
14
+ InOut: (amount: number) => number;
15
+ };
16
+ Quartic: {
17
+ In: (amount: number) => number;
18
+ Out: (amount: number) => number;
19
+ InOut: (amount: number) => number;
20
+ };
21
+ Quintic: {
22
+ In: (amount: number) => number;
23
+ Out: (amount: number) => number;
24
+ InOut: (amount: number) => number;
25
+ };
26
+ Sinusoidal: {
27
+ In: (amount: number) => number;
28
+ Out: (amount: number) => number;
29
+ InOut: (amount: number) => number;
30
+ };
31
+ Exponential: {
32
+ In: (amount: number) => number;
33
+ Out: (amount: number) => number;
34
+ InOut: (amount: number) => number;
35
+ };
36
+ Circular: {
37
+ In: (amount: number) => number;
38
+ Out: (amount: number) => number;
39
+ InOut: (amount: number) => number;
40
+ };
41
+ Elastic: {
42
+ In: (amount: number) => number;
43
+ Out: (amount: number) => number;
44
+ InOut: (amount: number) => number;
45
+ };
46
+ Back: {
47
+ In: (amount: number) => number;
48
+ Out: (amount: number) => number;
49
+ InOut: (amount: number) => number;
50
+ };
51
+ Bounce: {
52
+ In: (amount: number) => number;
53
+ Out: (amount: number) => number;
54
+ InOut: (amount: number) => number;
55
+ };
56
+ };
57
+ interface ITween<T> extends TWEEN.Tween<T> {
58
+ onDestroy: (fn: () => void) => TWEEN.Tween<T>;
59
+ destroy: () => void;
60
+ }
61
+ /**
62
+ * 对象变化的补间动画
63
+ * 1. 应用 requestAnimationFrameInterval 做 update
64
+ * 2. 在原生 tween 上新增 destroy 方法和 onDestroy 监听
65
+ * DOC: https://github.com/tweenjs/tween.js
66
+ * @param from 对象起始状态
67
+ * @param to 对象末尾状态
68
+ * @param duration 经历时间(s)
69
+ * @param easing 过程动画,默认是 Easing.Linear.None
70
+ */
71
+ export default function tween<T>(from: T, to: T, duration: number, easing?: (amount: number) => number): ITween<T>;
72
+ export declare function tweenProgress(duration: number, easing: typeof Easing.Linear.None): ITween<{
73
+ progress: number;
74
+ }>;
75
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { Five } from '@realsee/five';
2
+ export default function changeModelCanvasOpacity(five: Five, opacity: number, duration?: number): void;
@@ -0,0 +1,8 @@
1
+ import { CanvasTexture } from 'three';
2
+ export default function createCanvasTextTexture(text: string, config?: {
3
+ size?: number;
4
+ fontSize?: number;
5
+ backgroundColor?: string;
6
+ fontColor?: string;
7
+ textAlign?: CanvasTextAlign;
8
+ }): CanvasTexture;
@@ -0,0 +1,3 @@
1
+ import { Line } from '@realsee/five/line';
2
+ import { Vector3 } from 'three';
3
+ export default function createLine(point1: Vector3, point2: Vector3, color?: Vector3, dashed?: boolean): Line;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 创建一个防抖动函数,该函数会在 wait 毫秒后调用 func 方法
3
+ * @param func - 要防抖动的函数
4
+ * @param [wait=0] - 需要延迟的毫秒数
5
+ */
6
+ export default function debounce<T extends (...args: any[]) => any>(func: T, wait?: number): (...args: Parameters<T>) => void;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 对象比较
3
+ * @param {*} value 第一个比较的值
4
+ * @param {*} other 第二个比较的值
5
+ * @param {Object} options 可选参数,可选项包括:<br />
6
+ * deep {Boolean} 是否深比较<br />
7
+ * @returns {boolean} 是否相等
8
+ */
9
+ export default function equal(value: any, other: any, opt?: {
10
+ deep: boolean;
11
+ }): boolean;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * 对象属性筛选函数。
3
+ * 基于已有对象生成一个满足条件(属性)新的对象。
4
+ * @param {object} object
5
+ * @param {Function} check
6
+ */
7
+ export declare function filter<T, K extends keyof T>(object: T, check: (key: K, value: T[K]) => boolean): Record<K, T[K]>;
8
+ /**
9
+ * 对象镜子函数。
10
+ * 生成一个"镜子"对象:对象的属性名与其值相同。
11
+ * @param {string[]} strings 对象属性
12
+ */
13
+ export declare function mirror(strings: string[]): Record<string, string>;
14
+ /**
15
+ * 过滤掉不需要的对象字段函数:实现从一个对象中排除某些指定属性后生成的新对象。
16
+ * @param object
17
+ * @param props 排除的属性
18
+ * @return
19
+ */
20
+ export declare function omit<T, K extends keyof T>(object: T, props: Extract<K[], string[]>): Omit<T, K>;
21
+ /**
22
+ * 筛选需要的对象字段:实现从一个对象中选择某些指定属性生成新的对象(与`omit()`功能相反)。
23
+ * @param {object} object
24
+ * @param {string[]} props
25
+ * @return {object}
26
+ */
27
+ export declare function pick<T, K extends keyof T>(object: T, props: K[]): Pick<T, K>;
@@ -0,0 +1,5 @@
1
+ import type { Five } from '@realsee/five';
2
+ /** 等待 five changeMode 结束
3
+ * @description Promise 的状态只代表 mode 与预期是否一致,不保证参数的一致性
4
+ */
5
+ export default function changeMode(five: Five, changeModeParams: Parameters<Five['changeMode']>): Promise<void>;
@@ -0,0 +1,19 @@
1
+ import type { Five } from '@realsee/five';
2
+ import { FLOOR_PLAN_ATTACHED_TO } from '../floorplan/constant';
3
+ interface GetPxmmOption {
4
+ attachedTo: FLOOR_PLAN_ATTACHED_TO;
5
+ }
6
+ /** 获取当前楼层地面的 Y 值 */
7
+ export declare function getFloorY(five: Five, floorIndex: number): number;
8
+ /** 获取当前吸附类型的 Y 值
9
+ * * FLOOR_PLAN_ATTACHED_TO.FLOOR:当前楼层地板的 Y
10
+ * * FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER:当前模型中心的 Y
11
+ * * FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER:当前楼层天花板的 Y
12
+ */
13
+ export declare function getAttachedY(five: Five, floorIndex: number, attachedTo?: FLOOR_PLAN_ATTACHED_TO): number;
14
+ /**
15
+ * 获取「在俯视图」状态下,模型 mm 与屏幕像素 px 的对应关系,即每 mm 对应多少 px
16
+ * @param five five
17
+ */
18
+ export default function getPxmm(five: Five, container: Element, floorIndex: number, options?: GetPxmmOption): number;
19
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from './math';
2
+ export * from './three';
3
+ export * from './isNil';
4
+ export * from './animationFrame';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 判断对象是否为`null`或`undefined`。
3
+ * @param
4
+ * @return
5
+ */
6
+ export declare function isNil<T>(value: T): value is Extract<T, undefined | null>;
7
+ /**
8
+ * 判断对象不为`null`或`undefined`。
9
+ */
10
+ export declare function notNil<T>(value: T | null | undefined): value is T;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * 检查一个值是否是狭义上的对象
3
+ * @param {any} value 要检查的值
4
+ *
5
+ * isTruelyObject({})
6
+ * // => true
7
+ *
8
+ * isObjectLike([1, 2, 3])
9
+ * // => false
10
+ *
11
+ * isObjectLike(Function)
12
+ * // => false
13
+ *
14
+ * isObjectLike(null)
15
+ * // => false
16
+ *
17
+ */
18
+ export default function isTruelyObject(value: any): boolean;
@@ -0,0 +1,13 @@
1
+ /** 一维区间 */
2
+ declare class Interval {
3
+ min: number;
4
+ max: number;
5
+ isInterval: boolean;
6
+ constructor(min?: number, max?: number);
7
+ fromArray(array: number[]): Interval;
8
+ /** 两个区间是否重叠 */
9
+ isOverlap(target: Interval): boolean;
10
+ /** 是否包含区间 */
11
+ contains(target: Interval): boolean;
12
+ }
13
+ export { Interval };
@@ -0,0 +1,27 @@
1
+ import { Interval } from './';
2
+ /** 矩形的数学方法合集 */
3
+ declare class Rectangle {
4
+ min: {
5
+ x: number;
6
+ y: number;
7
+ };
8
+ max: {
9
+ x: number;
10
+ y: number;
11
+ };
12
+ xInterval: Interval;
13
+ yInterval: Interval;
14
+ isRectangle: boolean;
15
+ constructor(min: {
16
+ x: number;
17
+ y: number;
18
+ }, max: {
19
+ x: number;
20
+ y: number;
21
+ });
22
+ /** 是否与矩形是否重叠 */
23
+ isOverlapWithRectangle(target: Rectangle): boolean;
24
+ /** 是否包含目标矩形 */
25
+ containsRect(target: Rectangle): boolean;
26
+ }
27
+ export { Rectangle };
@@ -0,0 +1,2 @@
1
+ export * from './Interval';
2
+ export * from './Rectangle';