@dcloudio/uni-app-x 0.7.19 → 0.7.21

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 (335) hide show
  1. package/.prettierrc +5 -5
  2. package/README.md +1 -1
  3. package/index.d.ts +1 -1
  4. package/options.d.ts +9 -9
  5. package/package.json +27 -27
  6. package/types/app.d.ts +1002 -842
  7. package/types/index.d.ts +7 -7
  8. package/types/native/AsyncApiResult.d.ts +7 -7
  9. package/types/native/CSSStyleDeclaration.d.ts +25 -25
  10. package/types/native/CanvasRenderingContext2D.d.ts +2048 -2047
  11. package/types/native/DOMRect.d.ts +56 -56
  12. package/types/native/DrawableContext.d.ts +162 -162
  13. package/types/native/INavigationBar.d.ts +22 -22
  14. package/types/native/IUniElement.d.ts +2859 -2859
  15. package/types/native/IUniError.d.ts +20 -20
  16. package/types/native/IUniForm.d.ts +9 -9
  17. package/types/native/IUniObjectElement.d.ts +124 -124
  18. package/types/native/NativeLoadFontFaceOptions.d.ts +11 -11
  19. package/types/native/NodeData.d.ts +22 -22
  20. package/types/native/PageNode.d.ts +6 -6
  21. package/types/native/Path2D.d.ts +240 -240
  22. package/types/native/SnapshotOptions.d.ts +63 -63
  23. package/types/native/SourceError.d.ts +46 -46
  24. package/types/native/UTSAndroidHookProxy.d.ts +14 -14
  25. package/types/native/UniAggregateError.d.ts +19 -19
  26. package/types/native/UniApp.d.ts +205 -205
  27. package/types/native/UniCallbackWrapper.d.ts +7 -7
  28. package/types/native/UniCanvasElement.d.ts +9 -9
  29. package/types/native/UniCustomEvent.d.ts +24 -24
  30. package/types/native/UniDocument.d.ts +83 -83
  31. package/types/native/UniElement.d.ts +79 -79
  32. package/types/native/UniError.d.ts +70 -70
  33. package/types/native/UniEvent.d.ts +92 -92
  34. package/types/native/UniFormControl.d.ts +8 -8
  35. package/types/native/UniFormControlElement.d.ts +14 -14
  36. package/types/native/UniImageErrorEvent.d.ts +33 -33
  37. package/types/native/UniImageLoadEvent.d.ts +37 -37
  38. package/types/native/UniInputBlurEvent.d.ts +36 -36
  39. package/types/native/UniInputConfirmEvent.d.ts +30 -30
  40. package/types/native/UniInputEvent.d.ts +38 -38
  41. package/types/native/UniInputFocusEvent.d.ts +53 -53
  42. package/types/native/UniNativePage.d.ts +270 -270
  43. package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
  44. package/types/native/UniPageEvent.d.ts +10 -10
  45. package/types/native/UniPageManager.d.ts +27 -20
  46. package/types/native/UniPageScrollEvent.d.ts +13 -13
  47. package/types/native/UniPointerEvent.d.ts +74 -74
  48. package/types/native/UniProvider.d.ts +15 -15
  49. package/types/native/UniRefresherEvent.d.ts +18 -18
  50. package/types/native/UniResizeEvent.d.ts +34 -34
  51. package/types/native/UniResizeObserver.d.ts +184 -184
  52. package/types/native/UniRichTextItemClickEvent.d.ts +41 -41
  53. package/types/native/UniScrollEvent.d.ts +42 -42
  54. package/types/native/UniScrollToLowerEvent.d.ts +23 -23
  55. package/types/native/UniScrollToUpperEvent.d.ts +23 -23
  56. package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
  57. package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
  58. package/types/native/UniSwiperAnimationFinishEvent.d.ts +44 -44
  59. package/types/native/UniSwiperChangeEvent.d.ts +44 -44
  60. package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
  61. package/types/native/UniTabTapEvent.d.ts +18 -18
  62. package/types/native/UniTabsElement.d.ts +59 -59
  63. package/types/native/UniTextElement.d.ts +34 -34
  64. package/types/native/UniTextareaFocusEvent.d.ts +54 -54
  65. package/types/native/UniTouchEvent.d.ts +64 -64
  66. package/types/native/UniVideoElement.d.ts +75 -75
  67. package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
  68. package/types/native/UniWebViewElement.d.ts +10 -10
  69. package/types/native/UniWebViewErrorEvent.d.ts +59 -59
  70. package/types/native/UniWebViewLoadEvent.d.ts +41 -41
  71. package/types/native/UniWebViewLoadingEvent.d.ts +41 -41
  72. package/types/native/UniWebViewMessageEvent.d.ts +36 -36
  73. package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
  74. package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
  75. package/types/native/WebViewStyles.d.ts +20 -20
  76. package/types/native/global.d.ts +598 -598
  77. package/types/native/index.d.ts +71 -71
  78. package/types/native-global/index.d.ts +1 -1
  79. package/types/page.d.ts +1682 -1682
  80. package/types/process.d.ts +5 -5
  81. package/types/uni/base/index.d.ts +3 -3
  82. package/types/uni/env/index.d.ts +103 -103
  83. package/types/uni/global.d.ts +6 -6
  84. package/types/uni/index.d.ts +4 -4
  85. package/types/uni/uts-plugin-api/global.d.ts +58 -57
  86. package/types/uni/uts-plugin-api/index.d.ts +58 -57
  87. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +26 -26
  88. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -12
  89. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -231
  90. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/global.d.ts +12 -12
  91. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/index.d.ts +5 -5
  92. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/interface.d.ts +50 -50
  93. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -10
  94. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -4
  95. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -77
  96. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +60 -0
  97. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +29 -0
  98. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +161 -0
  99. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -10
  100. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -4
  101. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -77
  102. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +20 -20
  103. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +9 -9
  104. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +264 -242
  105. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -40
  106. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -19
  107. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -203
  108. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +12 -12
  109. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +5 -5
  110. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1733 -1733
  111. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -20
  112. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -9
  113. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -152
  114. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
  115. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
  116. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -61
  117. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
  118. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
  119. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +464 -427
  120. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
  121. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
  122. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +137 -137
  123. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -28
  124. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -13
  125. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1336 -1336
  126. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +16 -16
  127. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +7 -7
  128. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +305 -305
  129. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
  130. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
  131. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +91 -91
  132. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -80
  133. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -39
  134. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -174
  135. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +142 -142
  136. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +70 -70
  137. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +1840 -1840
  138. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
  139. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
  140. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
  141. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
  142. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +329 -329
  143. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
  144. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
  145. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +818 -818
  146. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +12 -12
  147. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +5 -5
  148. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +297 -297
  149. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
  150. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
  151. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +657 -657
  152. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
  153. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
  154. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +81 -81
  155. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -12
  156. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -5
  157. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +155 -155
  158. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
  159. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
  160. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +159 -159
  161. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -24
  162. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -11
  163. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +563 -564
  164. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +8 -8
  165. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +4 -4
  166. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  167. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -8
  168. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -4
  169. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +32 -32
  170. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +15 -15
  171. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
  172. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
  173. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +163 -163
  174. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +30 -32
  175. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +14 -15
  176. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +375 -375
  177. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/global.d.ts +16 -16
  178. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +7 -7
  179. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +980 -980
  180. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +30 -30
  181. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +14 -14
  182. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +2131 -2131
  183. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
  184. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
  185. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +169 -169
  186. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
  187. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
  188. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
  189. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
  190. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +169 -169
  191. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -22
  192. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -10
  193. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -60
  194. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +26 -26
  195. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +12 -12
  196. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +564 -564
  197. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -24
  198. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -11
  199. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -100
  200. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +160 -160
  201. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +79 -79
  202. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1339 -1339
  203. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +68 -68
  204. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +33 -33
  205. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +1002 -1002
  206. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +72 -72
  207. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +35 -35
  208. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1493 -1493
  209. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
  210. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
  211. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -24
  212. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -11
  213. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -70
  214. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +26 -26
  215. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +12 -12
  216. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +153 -153
  217. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -32
  218. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -15
  219. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +240 -240
  220. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -8
  221. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -4
  222. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -8
  223. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -4
  224. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +78 -74
  225. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +38 -36
  226. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +193 -8
  227. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +28 -28
  228. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +13 -13
  229. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +189 -189
  230. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
  231. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
  232. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2165 -2165
  233. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
  234. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
  235. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +38 -38
  236. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -24
  237. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -11
  238. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -73
  239. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
  240. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
  241. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +600 -600
  242. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +148 -148
  243. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +73 -73
  244. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +1086 -1086
  245. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -42
  246. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -20
  247. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -112
  248. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -55
  249. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
  250. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
  251. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +844 -844
  252. package/types/uni/uts-plugin-biz/global.d.ts +4 -4
  253. package/types/uni/uts-plugin-biz/index.d.ts +4 -4
  254. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +36 -36
  255. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +17 -17
  256. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +141 -141
  257. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
  258. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
  259. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +160 -160
  260. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +60 -60
  261. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +29 -29
  262. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +808 -778
  263. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +46 -46
  264. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +22 -22
  265. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +207 -207
  266. package/types/uni/uts-plugin-component/global.d.ts +1 -1
  267. package/types/uni/uts-plugin-component/index.d.ts +1 -1
  268. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +64 -64
  269. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +31 -31
  270. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +522 -522
  271. package/types/uni/uts-plugin-extend/README.md +3 -3
  272. package/types/uni/uts-plugin-extend/global.d.ts +14 -14
  273. package/types/uni/uts-plugin-extend/index.d.ts +14 -14
  274. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -12
  275. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -1
  276. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -365
  277. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -23
  278. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -10
  279. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -710
  280. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -21
  281. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -9
  282. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -151
  283. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -25
  284. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -11
  285. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -363
  286. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -11
  287. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -4
  288. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -224
  289. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -53
  290. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -25
  291. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +487 -487
  292. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -13
  293. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -5
  294. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -126
  295. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -7
  296. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -1
  297. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -296
  298. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -15
  299. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -1
  300. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -229
  301. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -14
  302. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -1
  303. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -559
  304. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -9
  305. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -1
  306. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -163
  307. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -21
  308. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -9
  309. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -143
  310. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -7
  311. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -1
  312. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -106
  313. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -9
  314. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -1
  315. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -165
  316. package/types/uni-cloud/index.d.ts +67 -63
  317. package/types/uni-cloud/interface.d.ts +987 -991
  318. package/types/uni-cloud/unicloud-db/index.ts +314 -314
  319. package/types/uni-global/index.d.ts +1 -1
  320. package/types/vue/CheckboxGroupChangeEvent.d.ts +41 -41
  321. package/types/vue/LifeCycle.d.ts +55 -55
  322. package/types/vue/PickerViewChangeEvent.d.ts +41 -41
  323. package/types/vue/ProgressActiveendEvent.d.ts +32 -32
  324. package/types/vue/RadioGroupChangeEvent.d.ts +41 -41
  325. package/types/vue/SliderChangeEvent.d.ts +35 -35
  326. package/types/vue/SwitchChangeEvent.d.ts +32 -32
  327. package/types/vue/UniCanvasElement.d.ts +275 -275
  328. package/types/vue/UniCloudDBElement.d.ts +217 -217
  329. package/types/vue/UniFormElement.d.ts +54 -54
  330. package/types/vue/UniNavigatorElement.d.ts +11 -11
  331. package/types/vue/global.d.ts +191 -191
  332. package/types/vue/index.d.ts +10 -10
  333. package/types/vue-global/index.d.ts +1 -1
  334. package/uts-plugin.d.ts +27 -27
  335. package/types/shim-uts-basic.d.ts +0 -4495
@@ -1,487 +1,487 @@
1
- export interface AsyncOptions {
2
- /**
3
- * 接口调用成功的回调函数
4
- */
5
- success?: (result: any) => void;
6
- /**
7
- * 接口调用失败的回调函数
8
- */
9
- fail?: (result: any) => void;
10
- /**
11
- * 接口调用结束的回调函数(调用成功、失败都会执行)
12
- */
13
- complete?: (result: any) => void;
14
- }
15
-
16
- export interface MapContext {
17
- /**
18
- * 获取当前地图中心的经纬度,返回的是 gcj02 坐标系,可以用于 uni.openLocation
19
- */
20
- getCenterLocation(options: MapContextGetCenterLocationOptions): void;
21
- /**
22
- * 将地图中心移动到当前定位点,需要配合map组件的show-location使用
23
- */
24
- moveToLocation(options: MapContextMoveToLocationOptions): void;
25
- /**
26
- * 平移marker,带动画
27
- */
28
- translateMarker(options: MapContextTranslateMarkerOptions): void;
29
- /**
30
- * 缩放视野展示所有经纬度
31
- */
32
- includePoints(options: MapContextIncludePointsOptions): void;
33
- /**
34
- * 获取当前地图的视野范围
35
- */
36
- getRegion(options: MapContextGetRegionOptions): void;
37
- /**
38
- * 获取当前地图的缩放级别
39
- */
40
- getScale(options: MapContextGetScaleOptions): void;
41
- /**
42
- * 添加个性化图层
43
- */
44
- addCustomLayer?: (options: MapContextAddCustomLayerOptions) => void;
45
- /**
46
- * 创建自定义图片图层,图片会随着地图缩放而缩放
47
- */
48
- addGroundOverlay(options: MapContextAddGroundOverlayOptions): void;
49
- /**
50
- * 添加 marker
51
- */
52
- addMarkers(options: MapContextAddMarkersOptions): void;
53
- /**
54
- * 获取屏幕上的点对应的经纬度,坐标原点为地图左上角
55
- */
56
- fromScreenLocation?: (options: MapContextFromScreenLocationOptions) => void;
57
- /**
58
- * 初始化点聚合的配置,未调用时采用默认配置
59
- */
60
- initMarkerCluster(options: MapContextInitMarkerClusterOptions): void;
61
- /**
62
- * 沿指定路径移动 marker,用于轨迹回放等场景。动画完成时触发回调事件,若动画进行中,对同一 marker 再次调用 moveAlong 方法,前一次的动画将被打断。
63
- */
64
- moveAlong(options: MapContextMoveAlongOptions): void;
65
- /**
66
- * 拉起地图APP选择导航。
67
- */
68
- openMapApp(options: MapContextOpenMapAppOptions): void;
69
- /**
70
- * 移除个性化图层
71
- */
72
- removeCustomLayer(options: MapContextRemoveCustomLayerOptions): void;
73
- /**
74
- * 移除自定义图片图层
75
- */
76
- removeGroundOverlay(options: MapContextRemoveGroundOverlayOptions): void;
77
- /**
78
- * 移除 marker
79
- */
80
- removeMarkers(options: MapContextRemoveMarkersOptions): void;
81
- /**
82
- * 设置地图中心点偏移,向后向下为增长,屏幕比例范围(0.25~0.75),默认偏移为[0.5, 0.5]
83
- */
84
- setCenterOffset?: (options: MapContextSetCenterOffsetOptions) => void;
85
- /**
86
- * 获取经纬度对应的屏幕坐标,坐标原点为地图左上角。
87
- */
88
- toScreenLocation?: (options: MapContextToScreenLocationOptions) => void;
89
- /**
90
- * 更新自定义图片图层。
91
- */
92
- updateGroundOverlay(options: MapContextUpdateGroundOverlayOptions): void;
93
- /**
94
- * 监听地图事件。
95
- */
96
- on(event: 'markerClusterCreate' | 'markerClusterClick', callback: (...args: any[]) => any): void;
97
- /**
98
- * @internal
99
- * 获取原生地图对象 plus.maps.Map
100
- */
101
- $getAppMap(): any;
102
- }
103
-
104
- export interface MapContextGetCenterLocationOptions extends AsyncOptions {
105
- /**
106
- * 接口调用成功的回调函数 ,res = { longitude: "经度", latitude: "纬度"}
107
- */
108
- success?: (result: LocationObject) => void;
109
- }
110
-
111
- export interface MapContextMoveToLocationOptions extends AsyncOptions {
112
- /**
113
- * 纬度,浮点数,范围为-90~90,负数表示南纬
114
- */
115
- latitude?: number;
116
- /**
117
- * 经度,范围为-180~180,负数表示西经
118
- */
119
- longitude?: number;
120
- }
121
-
122
- export interface LocationObject {
123
- /**
124
- * 纬度,浮点数,范围为-90~90,负数表示南纬
125
- */
126
- latitude: number;
127
- /**
128
- * 经度,范围为-180~180,负数表示西经
129
- */
130
- longitude: number;
131
- }
132
-
133
- export interface MapContextTranslateMarkerOptions extends AsyncOptions {
134
- /**
135
- * 指定marker
136
- */
137
- markerId: number;
138
- /**
139
- * 指定marker移动到的目标点
140
- */
141
- destination: LocationObject;
142
- /**
143
- * 移动过程中是否自动旋转marker
144
- */
145
- autoRotate?: boolean;
146
- /**
147
- * marker的旋转角度
148
- */
149
- rotate?: number;
150
- /**
151
- * 平移和旋转同时进行,默认值false(仅微信小程序2.13.0支持)
152
- */
153
- moveWithRotate?: boolean;
154
- /**
155
- * 动画持续时长,默认值1000ms,平移与旋转分别计算
156
- */
157
- duration?: number;
158
- /**
159
- * 动画结束回调函数
160
- */
161
- animationEnd?: (result: any) => void;
162
- }
163
-
164
- export interface MapContextIncludePointsOptions extends AsyncOptions {
165
- /**
166
- * 要显示在可视区域内的坐标点列表,[{latitude, longitude}]
167
- */
168
- points: LocationObject[];
169
- /**
170
- * 坐标点形成的矩形边缘到地图边缘的距离,单位像素。格式为[上,右,下,左],安卓上只能识别数组第一项,上下左右的padding一致。开发者工具暂不支持padding参数。
171
- */
172
- padding?: number[];
173
- }
174
-
175
- export interface MapContextGetRegionOptions extends AsyncOptions {
176
- /**
177
- * 接口调用成功的回调函数,res = {southwest, northeast},西南角与东北角的经纬度
178
- */
179
- success?: (result: MapContextGetRegionResult) => void;
180
- }
181
-
182
- export interface MapContextGetRegionResult {
183
- /**
184
- * 西南角的经纬度
185
- */
186
- southwest: LocationObject;
187
- /**
188
- * 东北角的经纬度
189
- */
190
- northeast: LocationObject;
191
- }
192
-
193
- export interface MapContextGetScaleOptions extends AsyncOptions {
194
- /**
195
- * 接口调用成功的回调函数,res = {scale}
196
- */
197
- success?: (result: MapContextGetScaleResult) => void;
198
- }
199
-
200
- export interface MapContextGetScaleResult {
201
- /**
202
- * 地图缩放级别
203
- */
204
- scale: number;
205
- }
206
-
207
- export interface MapContextAddCustomLayerOptions extends AsyncOptions {
208
- /**
209
- * 个性化图层id
210
- */
211
- layerId: string;
212
- }
213
-
214
- export interface MapContextAddGroundOverlayOptions extends AsyncOptions {
215
- /**
216
- * 图片图层 id
217
- */
218
- id: string;
219
- /**
220
- * 图片路径,支持网络图片、临时路径、代码包路径
221
- */
222
- src: string;
223
- /**
224
- * 图片覆盖的经纬度范围
225
- */
226
- bounds: Bounds;
227
- /**
228
- * 是否可见
229
- */
230
- visible?: boolean;
231
- /**
232
- * 图层绘制顺序
233
- */
234
- zIndex?: number;
235
- /**
236
- * 图层透明度
237
- */
238
- opacity?: number;
239
- }
240
-
241
- export interface Bounds {
242
- /**
243
- * 西南角的经纬度
244
- */
245
- southwest: LocationObject;
246
- /**
247
- * 东北角的经纬度
248
- */
249
- northeast: LocationObject;
250
- }
251
-
252
- export interface MapContextAddMarkersOptions extends AsyncOptions {
253
- /**
254
- * 同传入 map 组件的 marker 属性
255
- */
256
- markers: any[];
257
- /**
258
- * 是否先清空地图上所有 marker
259
- */
260
- clear: boolean;
261
- }
262
-
263
- export interface MapContextFromScreenLocationOptions extends AsyncOptions {
264
- /**
265
- * x 坐标值
266
- */
267
- x: number;
268
- /**
269
- * y 坐标值
270
- */
271
- y: number;
272
- /**
273
- * 接口调用成功的回调函数
274
- */
275
- success?: (result: LocationObject) => void;
276
- }
277
-
278
- export interface MapContextInitMarkerClusterOptions extends AsyncOptions {
279
- /**
280
- * 启用默认的聚合样式
281
- */
282
- enableDefaultStyle: boolean;
283
- /**
284
- * 点击已经聚合的标记点时是否实现聚合分离
285
- */
286
- zoomOnClick: boolean;
287
- /**
288
- * 聚合算法的可聚合距离,即距离小于该值的点会聚合至一起,以像素为单位
289
- */
290
- gridSize: number;
291
- }
292
-
293
- export interface MapContextMoveAlongOptions extends AsyncOptions {
294
- /**
295
- * 指定 marker
296
- */
297
- markerId: number;
298
- /**
299
- * 移动路径的坐标串,坐标点格式 {longitude, latitude}
300
- */
301
- path: LocationObject[];
302
- /**
303
- * 根据路径方向自动改变 marker 的旋转角度
304
- */
305
- autoRotate?: boolean;
306
- /**
307
- * 平滑移动的时间
308
- */
309
- duration: number;
310
- }
311
-
312
- export interface MapContextOpenMapAppOptions extends AsyncOptions {
313
- /**
314
- * 目的地名称
315
- */
316
- destination: string;
317
- /**
318
- * 目的地纬度
319
- */
320
- latitude: number;
321
- /**
322
- * 目的地经度
323
- */
324
- longitude: number;
325
- }
326
-
327
- export interface MapContextRemoveCustomLayerOptions extends AsyncOptions {
328
- /**
329
- * 个性化图层id
330
- */
331
- layerId: string;
332
- }
333
-
334
- export interface MapContextRemoveGroundOverlayOptions extends AsyncOptions {
335
- /**
336
- * 图片图层 id
337
- */
338
- id: string;
339
- }
340
-
341
- export interface MapContextRemoveMarkersOptions extends AsyncOptions {
342
- /**
343
- * 要被删除的marker的id属性组成的数组
344
- */
345
- markerIds: any[];
346
- }
347
-
348
- export interface MapContextSetCenterOffsetOptions {
349
- /**
350
- * 偏移量,两位数组
351
- */
352
- offset: number[];
353
- /**
354
- * 接口调用成功的回调函数
355
- */
356
- success?: (result: any) => void;
357
- /**
358
- * 接口调用失败的回调函数
359
- */
360
- fail?: (result: any) => void;
361
- /**
362
- * 接口调用结束的回调函数(调用成功、失败都会执行)
363
- */
364
- complete?: (result: any) => void;
365
- }
366
-
367
- export interface MapContextToScreenLocationOptions extends AsyncOptions {
368
- /**
369
- * 纬度
370
- */
371
- latitude: number;
372
- /**
373
- * 经度
374
- */
375
- longitude: number;
376
- }
377
-
378
- export interface MapContextUpdateGroundOverlayOptions extends AsyncOptions {
379
- /**
380
- * 图片图层 id
381
- */
382
- id: string;
383
- /**
384
- * 图片路径,支持网络图片、临时路径、代码包路径
385
- */
386
- src: string;
387
- /**
388
- * 图片路径,支持网络图片、临时路径、代码包路径
389
- */
390
- bounds: Bounds;
391
- /**
392
- * 是否可见
393
- */
394
- visible?: boolean;
395
- /**
396
- * 图层绘制顺序
397
- */
398
- zIndex?: number;
399
- /**
400
- * 图层透明度
401
- */
402
- opacity?: number;
403
- }
404
-
405
- export type CreateMapContext = (mapId: string, currentComponent?: ComponentPublicInstance) => MapContext
406
-
407
-
408
- export interface Uni {
409
- /**
410
- * 创建并返回 map 上下文 mapContext 对象
411
- *
412
- * @tutorial https://uniapp.dcloud.io/api/location/map.html#createmapcontext
413
- * @tutorial-uni-app https://uniapp.dcloud.io/api/location/map.html#createmapcontext
414
- * @uniPlatform {
415
- * "app": {
416
- * "android": {
417
- * "osVer": "5.0",
418
- * "uniVer": {
419
- * "vue": "√",
420
- * "nvue": "2.2.5"
421
- * },
422
- * "unixVer": "x"
423
- * },
424
- * "ios": {
425
- * "osVer": "12.0",
426
- * "uniVer": {
427
- * "vue": "√",
428
- * "nvue": "2.2.5"
429
- * },
430
- * "unixVer": "x"
431
- * },
432
- * "harmony": {
433
- * "osVer": "x",
434
- * "uniVer": "x",
435
- * "unixVer": "x"
436
- * }
437
- * },
438
- * "mp": {
439
- * "weixin": {
440
- * "hostVer": "√",
441
- * "uniVer": "√",
442
- * "unixVer": "x"
443
- * },
444
- * "alipay": {
445
- * "hostVer": "√",
446
- * "uniVer": "√",
447
- * "unixVer": "x"
448
- * },
449
- * "baidu": {
450
- * "hostVer": "√",
451
- * "uniVer": "√",
452
- * "unixVer": "x"
453
- * },
454
- * "toutiao": {
455
- * "hostVer": "√",
456
- * "uniVer": "√",
457
- * "unixVer": "x"
458
- * },
459
- * "lark": {
460
- * "hostVer": "√",
461
- * "uniVer": "√",
462
- * "unixVer": "x"
463
- * },
464
- * "qq": {
465
- * "hostVer": "1.9.0",
466
- * "uniVer": "√",
467
- * "unixVer": "x"
468
- * },
469
- * "kuaishou": {
470
- * "hostVer": "√",
471
- * "uniVer": "√",
472
- * "unixVer": "x"
473
- * },
474
- * "jd": {
475
- * "hostVer": "√",
476
- * "uniVer": "√",
477
- * "unixVer": "x"
478
- * }
479
- * },
480
- * "web": {
481
- * "uniVer": "√",
482
- * "unixVer": "4.0"
483
- * }
484
- * }
485
- */
486
- createMapContext(mapId: string, currentComponent?: ComponentPublicInstance): MapContext
487
- }
1
+ export interface AsyncOptions {
2
+ /**
3
+ * 接口调用成功的回调函数
4
+ */
5
+ success?: (result: any) => void;
6
+ /**
7
+ * 接口调用失败的回调函数
8
+ */
9
+ fail?: (result: any) => void;
10
+ /**
11
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
12
+ */
13
+ complete?: (result: any) => void;
14
+ }
15
+
16
+ export interface MapContext {
17
+ /**
18
+ * 获取当前地图中心的经纬度,返回的是 gcj02 坐标系,可以用于 uni.openLocation
19
+ */
20
+ getCenterLocation(options: MapContextGetCenterLocationOptions): void;
21
+ /**
22
+ * 将地图中心移动到当前定位点,需要配合map组件的show-location使用
23
+ */
24
+ moveToLocation(options: MapContextMoveToLocationOptions): void;
25
+ /**
26
+ * 平移marker,带动画
27
+ */
28
+ translateMarker(options: MapContextTranslateMarkerOptions): void;
29
+ /**
30
+ * 缩放视野展示所有经纬度
31
+ */
32
+ includePoints(options: MapContextIncludePointsOptions): void;
33
+ /**
34
+ * 获取当前地图的视野范围
35
+ */
36
+ getRegion(options: MapContextGetRegionOptions): void;
37
+ /**
38
+ * 获取当前地图的缩放级别
39
+ */
40
+ getScale(options: MapContextGetScaleOptions): void;
41
+ /**
42
+ * 添加个性化图层
43
+ */
44
+ addCustomLayer?: (options: MapContextAddCustomLayerOptions) => void;
45
+ /**
46
+ * 创建自定义图片图层,图片会随着地图缩放而缩放
47
+ */
48
+ addGroundOverlay(options: MapContextAddGroundOverlayOptions): void;
49
+ /**
50
+ * 添加 marker
51
+ */
52
+ addMarkers(options: MapContextAddMarkersOptions): void;
53
+ /**
54
+ * 获取屏幕上的点对应的经纬度,坐标原点为地图左上角
55
+ */
56
+ fromScreenLocation?: (options: MapContextFromScreenLocationOptions) => void;
57
+ /**
58
+ * 初始化点聚合的配置,未调用时采用默认配置
59
+ */
60
+ initMarkerCluster(options: MapContextInitMarkerClusterOptions): void;
61
+ /**
62
+ * 沿指定路径移动 marker,用于轨迹回放等场景。动画完成时触发回调事件,若动画进行中,对同一 marker 再次调用 moveAlong 方法,前一次的动画将被打断。
63
+ */
64
+ moveAlong(options: MapContextMoveAlongOptions): void;
65
+ /**
66
+ * 拉起地图APP选择导航。
67
+ */
68
+ openMapApp(options: MapContextOpenMapAppOptions): void;
69
+ /**
70
+ * 移除个性化图层
71
+ */
72
+ removeCustomLayer(options: MapContextRemoveCustomLayerOptions): void;
73
+ /**
74
+ * 移除自定义图片图层
75
+ */
76
+ removeGroundOverlay(options: MapContextRemoveGroundOverlayOptions): void;
77
+ /**
78
+ * 移除 marker
79
+ */
80
+ removeMarkers(options: MapContextRemoveMarkersOptions): void;
81
+ /**
82
+ * 设置地图中心点偏移,向后向下为增长,屏幕比例范围(0.25~0.75),默认偏移为[0.5, 0.5]
83
+ */
84
+ setCenterOffset?: (options: MapContextSetCenterOffsetOptions) => void;
85
+ /**
86
+ * 获取经纬度对应的屏幕坐标,坐标原点为地图左上角。
87
+ */
88
+ toScreenLocation?: (options: MapContextToScreenLocationOptions) => void;
89
+ /**
90
+ * 更新自定义图片图层。
91
+ */
92
+ updateGroundOverlay(options: MapContextUpdateGroundOverlayOptions): void;
93
+ /**
94
+ * 监听地图事件。
95
+ */
96
+ on(event: 'markerClusterCreate' | 'markerClusterClick', callback: (...args: any[]) => any): void;
97
+ /**
98
+ * @internal
99
+ * 获取原生地图对象 plus.maps.Map
100
+ */
101
+ $getAppMap(): any;
102
+ }
103
+
104
+ export interface MapContextGetCenterLocationOptions extends AsyncOptions {
105
+ /**
106
+ * 接口调用成功的回调函数 ,res = { longitude: "经度", latitude: "纬度"}
107
+ */
108
+ success?: (result: LocationObject) => void;
109
+ }
110
+
111
+ export interface MapContextMoveToLocationOptions extends AsyncOptions {
112
+ /**
113
+ * 纬度,浮点数,范围为-90~90,负数表示南纬
114
+ */
115
+ latitude?: number;
116
+ /**
117
+ * 经度,范围为-180~180,负数表示西经
118
+ */
119
+ longitude?: number;
120
+ }
121
+
122
+ export interface LocationObject {
123
+ /**
124
+ * 纬度,浮点数,范围为-90~90,负数表示南纬
125
+ */
126
+ latitude: number;
127
+ /**
128
+ * 经度,范围为-180~180,负数表示西经
129
+ */
130
+ longitude: number;
131
+ }
132
+
133
+ export interface MapContextTranslateMarkerOptions extends AsyncOptions {
134
+ /**
135
+ * 指定marker
136
+ */
137
+ markerId: number;
138
+ /**
139
+ * 指定marker移动到的目标点
140
+ */
141
+ destination: LocationObject;
142
+ /**
143
+ * 移动过程中是否自动旋转marker
144
+ */
145
+ autoRotate?: boolean;
146
+ /**
147
+ * marker的旋转角度
148
+ */
149
+ rotate?: number;
150
+ /**
151
+ * 平移和旋转同时进行,默认值false(仅微信小程序2.13.0支持)
152
+ */
153
+ moveWithRotate?: boolean;
154
+ /**
155
+ * 动画持续时长,默认值1000ms,平移与旋转分别计算
156
+ */
157
+ duration?: number;
158
+ /**
159
+ * 动画结束回调函数
160
+ */
161
+ animationEnd?: (result: any) => void;
162
+ }
163
+
164
+ export interface MapContextIncludePointsOptions extends AsyncOptions {
165
+ /**
166
+ * 要显示在可视区域内的坐标点列表,[{latitude, longitude}]
167
+ */
168
+ points: LocationObject[];
169
+ /**
170
+ * 坐标点形成的矩形边缘到地图边缘的距离,单位像素。格式为[上,右,下,左],安卓上只能识别数组第一项,上下左右的padding一致。开发者工具暂不支持padding参数。
171
+ */
172
+ padding?: number[];
173
+ }
174
+
175
+ export interface MapContextGetRegionOptions extends AsyncOptions {
176
+ /**
177
+ * 接口调用成功的回调函数,res = {southwest, northeast},西南角与东北角的经纬度
178
+ */
179
+ success?: (result: MapContextGetRegionResult) => void;
180
+ }
181
+
182
+ export interface MapContextGetRegionResult {
183
+ /**
184
+ * 西南角的经纬度
185
+ */
186
+ southwest: LocationObject;
187
+ /**
188
+ * 东北角的经纬度
189
+ */
190
+ northeast: LocationObject;
191
+ }
192
+
193
+ export interface MapContextGetScaleOptions extends AsyncOptions {
194
+ /**
195
+ * 接口调用成功的回调函数,res = {scale}
196
+ */
197
+ success?: (result: MapContextGetScaleResult) => void;
198
+ }
199
+
200
+ export interface MapContextGetScaleResult {
201
+ /**
202
+ * 地图缩放级别
203
+ */
204
+ scale: number;
205
+ }
206
+
207
+ export interface MapContextAddCustomLayerOptions extends AsyncOptions {
208
+ /**
209
+ * 个性化图层id
210
+ */
211
+ layerId: string;
212
+ }
213
+
214
+ export interface MapContextAddGroundOverlayOptions extends AsyncOptions {
215
+ /**
216
+ * 图片图层 id
217
+ */
218
+ id: string;
219
+ /**
220
+ * 图片路径,支持网络图片、临时路径、代码包路径
221
+ */
222
+ src: string;
223
+ /**
224
+ * 图片覆盖的经纬度范围
225
+ */
226
+ bounds: Bounds;
227
+ /**
228
+ * 是否可见
229
+ */
230
+ visible?: boolean;
231
+ /**
232
+ * 图层绘制顺序
233
+ */
234
+ zIndex?: number;
235
+ /**
236
+ * 图层透明度
237
+ */
238
+ opacity?: number;
239
+ }
240
+
241
+ export interface Bounds {
242
+ /**
243
+ * 西南角的经纬度
244
+ */
245
+ southwest: LocationObject;
246
+ /**
247
+ * 东北角的经纬度
248
+ */
249
+ northeast: LocationObject;
250
+ }
251
+
252
+ export interface MapContextAddMarkersOptions extends AsyncOptions {
253
+ /**
254
+ * 同传入 map 组件的 marker 属性
255
+ */
256
+ markers: any[];
257
+ /**
258
+ * 是否先清空地图上所有 marker
259
+ */
260
+ clear: boolean;
261
+ }
262
+
263
+ export interface MapContextFromScreenLocationOptions extends AsyncOptions {
264
+ /**
265
+ * x 坐标值
266
+ */
267
+ x: number;
268
+ /**
269
+ * y 坐标值
270
+ */
271
+ y: number;
272
+ /**
273
+ * 接口调用成功的回调函数
274
+ */
275
+ success?: (result: LocationObject) => void;
276
+ }
277
+
278
+ export interface MapContextInitMarkerClusterOptions extends AsyncOptions {
279
+ /**
280
+ * 启用默认的聚合样式
281
+ */
282
+ enableDefaultStyle: boolean;
283
+ /**
284
+ * 点击已经聚合的标记点时是否实现聚合分离
285
+ */
286
+ zoomOnClick: boolean;
287
+ /**
288
+ * 聚合算法的可聚合距离,即距离小于该值的点会聚合至一起,以像素为单位
289
+ */
290
+ gridSize: number;
291
+ }
292
+
293
+ export interface MapContextMoveAlongOptions extends AsyncOptions {
294
+ /**
295
+ * 指定 marker
296
+ */
297
+ markerId: number;
298
+ /**
299
+ * 移动路径的坐标串,坐标点格式 {longitude, latitude}
300
+ */
301
+ path: LocationObject[];
302
+ /**
303
+ * 根据路径方向自动改变 marker 的旋转角度
304
+ */
305
+ autoRotate?: boolean;
306
+ /**
307
+ * 平滑移动的时间
308
+ */
309
+ duration: number;
310
+ }
311
+
312
+ export interface MapContextOpenMapAppOptions extends AsyncOptions {
313
+ /**
314
+ * 目的地名称
315
+ */
316
+ destination: string;
317
+ /**
318
+ * 目的地纬度
319
+ */
320
+ latitude: number;
321
+ /**
322
+ * 目的地经度
323
+ */
324
+ longitude: number;
325
+ }
326
+
327
+ export interface MapContextRemoveCustomLayerOptions extends AsyncOptions {
328
+ /**
329
+ * 个性化图层id
330
+ */
331
+ layerId: string;
332
+ }
333
+
334
+ export interface MapContextRemoveGroundOverlayOptions extends AsyncOptions {
335
+ /**
336
+ * 图片图层 id
337
+ */
338
+ id: string;
339
+ }
340
+
341
+ export interface MapContextRemoveMarkersOptions extends AsyncOptions {
342
+ /**
343
+ * 要被删除的marker的id属性组成的数组
344
+ */
345
+ markerIds: any[];
346
+ }
347
+
348
+ export interface MapContextSetCenterOffsetOptions {
349
+ /**
350
+ * 偏移量,两位数组
351
+ */
352
+ offset: number[];
353
+ /**
354
+ * 接口调用成功的回调函数
355
+ */
356
+ success?: (result: any) => void;
357
+ /**
358
+ * 接口调用失败的回调函数
359
+ */
360
+ fail?: (result: any) => void;
361
+ /**
362
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
363
+ */
364
+ complete?: (result: any) => void;
365
+ }
366
+
367
+ export interface MapContextToScreenLocationOptions extends AsyncOptions {
368
+ /**
369
+ * 纬度
370
+ */
371
+ latitude: number;
372
+ /**
373
+ * 经度
374
+ */
375
+ longitude: number;
376
+ }
377
+
378
+ export interface MapContextUpdateGroundOverlayOptions extends AsyncOptions {
379
+ /**
380
+ * 图片图层 id
381
+ */
382
+ id: string;
383
+ /**
384
+ * 图片路径,支持网络图片、临时路径、代码包路径
385
+ */
386
+ src: string;
387
+ /**
388
+ * 图片路径,支持网络图片、临时路径、代码包路径
389
+ */
390
+ bounds: Bounds;
391
+ /**
392
+ * 是否可见
393
+ */
394
+ visible?: boolean;
395
+ /**
396
+ * 图层绘制顺序
397
+ */
398
+ zIndex?: number;
399
+ /**
400
+ * 图层透明度
401
+ */
402
+ opacity?: number;
403
+ }
404
+
405
+ export type CreateMapContext = (mapId: string, currentComponent?: ComponentPublicInstance) => MapContext
406
+
407
+
408
+ export interface Uni {
409
+ /**
410
+ * 创建并返回 map 上下文 mapContext 对象
411
+ *
412
+ * @tutorial https://uniapp.dcloud.io/api/location/map.html#createmapcontext
413
+ * @tutorial-uni-app https://uniapp.dcloud.io/api/location/map.html#createmapcontext
414
+ * @uniPlatform {
415
+ * "app": {
416
+ * "android": {
417
+ * "osVer": "5.0",
418
+ * "uniVer": {
419
+ * "vue": "√",
420
+ * "nvue": "2.2.5"
421
+ * },
422
+ * "unixVer": "x"
423
+ * },
424
+ * "ios": {
425
+ * "osVer": "12.0",
426
+ * "uniVer": {
427
+ * "vue": "√",
428
+ * "nvue": "2.2.5"
429
+ * },
430
+ * "unixVer": "x"
431
+ * },
432
+ * "harmony": {
433
+ * "osVer": "x",
434
+ * "uniVer": "x",
435
+ * "unixVer": "x"
436
+ * }
437
+ * },
438
+ * "mp": {
439
+ * "weixin": {
440
+ * "hostVer": "√",
441
+ * "uniVer": "√",
442
+ * "unixVer": "x"
443
+ * },
444
+ * "alipay": {
445
+ * "hostVer": "√",
446
+ * "uniVer": "√",
447
+ * "unixVer": "x"
448
+ * },
449
+ * "baidu": {
450
+ * "hostVer": "√",
451
+ * "uniVer": "√",
452
+ * "unixVer": "x"
453
+ * },
454
+ * "toutiao": {
455
+ * "hostVer": "√",
456
+ * "uniVer": "√",
457
+ * "unixVer": "x"
458
+ * },
459
+ * "lark": {
460
+ * "hostVer": "√",
461
+ * "uniVer": "√",
462
+ * "unixVer": "x"
463
+ * },
464
+ * "qq": {
465
+ * "hostVer": "1.9.0",
466
+ * "uniVer": "√",
467
+ * "unixVer": "x"
468
+ * },
469
+ * "kuaishou": {
470
+ * "hostVer": "√",
471
+ * "uniVer": "√",
472
+ * "unixVer": "x"
473
+ * },
474
+ * "jd": {
475
+ * "hostVer": "√",
476
+ * "uniVer": "√",
477
+ * "unixVer": "x"
478
+ * }
479
+ * },
480
+ * "web": {
481
+ * "uniVer": "√",
482
+ * "unixVer": "4.0"
483
+ * }
484
+ * }
485
+ */
486
+ createMapContext(mapId: string, currentComponent?: ComponentPublicInstance): MapContext
487
+ }