@dcloudio/uni-app-x 0.7.13 → 0.7.15

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 (187) hide show
  1. package/options.d.ts +1 -1
  2. package/package.json +1 -1
  3. package/types/app.d.ts +5 -6
  4. package/types/index.d.ts +1 -1
  5. package/types/native/CanvasRenderingContext2D.d.ts +378 -0
  6. package/types/native/IUniElement.d.ts +40 -12
  7. package/types/native/Path2D.d.ts +74 -0
  8. package/types/native/UniApp.d.ts +17 -1
  9. package/types/native/UniCanvasElement.d.ts +9 -0
  10. package/types/native/UniEvent.d.ts +30 -0
  11. package/types/native/UniNativePage.d.ts +31 -1
  12. package/types/native/UniPageManager.d.ts +4 -1
  13. package/types/native/UniProvider.d.ts +14 -0
  14. package/types/native/UniResizeObserver.d.ts +10 -10
  15. package/types/native/UniScrollEvent.d.ts +1 -1
  16. package/types/native/UniSwiperAnimationFinishEvent.d.ts +24 -2
  17. package/types/native/UniSwiperChangeEvent.d.ts +24 -2
  18. package/types/native/UniSwiperTransitionEvent.d.ts +2 -2
  19. package/types/native/UniWebViewErrorEvent.d.ts +3 -3
  20. package/types/native/UniWebViewLoadEvent.d.ts +2 -2
  21. package/types/native/UniWebViewLoadingEvent.d.ts +2 -2
  22. package/types/native/UniWebViewMessageEvent.d.ts +1 -1
  23. package/types/native/global.d.ts +40 -9
  24. package/types/native/index.d.ts +4 -0
  25. package/types/page.d.ts +85 -0
  26. package/types/shim-uts-basic.d.ts +4495 -0
  27. package/types/uni/env/index.d.ts +21 -0
  28. package/types/uni/global.d.ts +1 -0
  29. package/types/uni/index.d.ts +2 -1
  30. package/types/uni/uts-plugin-api/global.d.ts +14 -2
  31. package/types/uni/uts-plugin-api/index.d.ts +14 -2
  32. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -0
  33. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -0
  34. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -0
  35. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -0
  36. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -0
  37. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -0
  38. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -0
  39. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -0
  40. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -0
  41. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -0
  42. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -0
  43. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -0
  44. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +20 -3
  45. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +19 -8
  46. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +13 -6
  47. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +30 -2
  48. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +12 -3
  49. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +6 -0
  50. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +3 -0
  51. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +64 -8
  52. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +20 -17
  53. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +111 -27
  54. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +465 -45
  55. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +651 -115
  56. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +7 -1
  57. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +10 -1
  58. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -0
  59. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -0
  60. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +173 -0
  61. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +2 -14
  62. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -6
  63. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -151
  64. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -0
  65. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -0
  66. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/interface.d.ts +1 -0
  67. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +12 -5
  68. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +11 -5
  69. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +8 -0
  70. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +4 -0
  71. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +176 -72
  72. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1728 -59
  73. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -16
  74. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +9 -6
  75. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +18 -2
  76. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
  77. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -0
  78. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -0
  79. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -1
  80. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -0
  81. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -0
  82. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -0
  83. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +2 -0
  84. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
  85. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +459 -67
  86. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +34 -5
  87. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +909 -101
  88. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +20 -15
  89. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -0
  90. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -0
  91. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -0
  92. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +2 -0
  93. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +1 -0
  94. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +16 -6
  95. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +26 -16
  96. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -0
  97. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -0
  98. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -0
  99. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -0
  100. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -0
  101. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +3 -0
  102. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +120 -42
  103. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +2 -0
  104. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +1 -0
  105. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +16 -1
  106. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +251 -42
  107. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +7 -2
  108. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -0
  109. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -0
  110. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -0
  111. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +114 -45
  112. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +16 -0
  113. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +8 -0
  114. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +167 -7
  115. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -0
  116. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -0
  117. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +516 -0
  118. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +320 -83
  119. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +4 -4
  120. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +2 -2
  121. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +48 -39
  122. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +33 -15
  123. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +4 -0
  124. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +2 -0
  125. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +777 -394
  126. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +19 -15
  127. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
  128. package/types/uni/uts-plugin-extend/README.md +3 -0
  129. package/types/uni/uts-plugin-extend/global.d.ts +13 -0
  130. package/types/uni/uts-plugin-extend/index.d.ts +13 -0
  131. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -0
  132. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -0
  133. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -0
  134. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -0
  135. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -0
  136. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -0
  137. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -0
  138. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -0
  139. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -0
  140. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -0
  141. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -0
  142. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -0
  143. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -0
  144. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -0
  145. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -0
  146. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -0
  147. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -0
  148. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +486 -0
  149. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -0
  150. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -0
  151. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -0
  152. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -0
  153. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -0
  154. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -0
  155. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -0
  156. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -0
  157. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -0
  158. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -0
  159. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -0
  160. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -0
  161. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -0
  162. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -0
  163. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -0
  164. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -0
  165. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -0
  166. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -0
  167. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -0
  168. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -0
  169. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -0
  170. package/types/uni-cloud/index.d.ts +4 -0
  171. package/types/uni-cloud/interface.d.ts +163 -20
  172. package/types/vue/CheckboxGroupChangeEvent.d.ts +10 -13
  173. package/types/vue/LifeCycle.d.ts +32 -32
  174. package/types/vue/PickerViewChangeEvent.d.ts +10 -13
  175. package/types/vue/ProgressActiveendEvent.d.ts +9 -11
  176. package/types/vue/RadioGroupChangeEvent.d.ts +10 -13
  177. package/types/vue/SliderChangeEvent.d.ts +9 -10
  178. package/types/vue/SwitchChangeEvent.d.ts +11 -13
  179. package/types/vue/UniCloudDBElement.d.ts +72 -75
  180. package/types/vue/UniFormElement.d.ts +17 -19
  181. package/types/vue/UniNavigatorElement.d.ts +1 -2
  182. package/types/vue/global.d.ts +190 -0
  183. package/types/vue/index.d.ts +10 -11
  184. package/types/vue-global/index.d.ts +1 -0
  185. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +0 -78
  186. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +0 -38
  187. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +0 -643
package/options.d.ts CHANGED
@@ -2,7 +2,7 @@ import app from '@/App.uvue'
2
2
 
3
3
  type App = typeof app
4
4
  declare global {
5
-
5
+ export interface JSExport {}
6
6
  export interface AppCreateVueAppComponentDefault extends App {
7
7
 
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.7.13",
3
+ "version": "0.7.15",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "author": "DCloud",
package/types/app.d.ts CHANGED
@@ -318,22 +318,21 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
318
318
  onHide?(): void;
319
319
  /**
320
320
  * 错误监听函数
321
- * 小程序发生脚本错误或 API 调用报错时触发
322
- * @param error 错误信息,包含堆栈
321
+ * 应用发生脚本错误或 API 调用报错时触发
322
+ * @param error 错误信息
323
323
  *
324
- * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
325
- * @autodoc false
324
+ * @tutorial [https://doc.dcloud.net.cn/uni-app-x/collocation/app.html](https://doc.dcloud.net.cn/uni-app-x/collocation/app.html)
326
325
  * @uniPlatform {
327
326
  * "app": {
328
327
  * "android": {
329
328
  * "osVer": "5.0",
330
329
  * "uniVer": "√",
331
- * "unixVer": "x"
330
+ * "unixVer": "4.21"
332
331
  * },
333
332
  * "ios": {
334
333
  * "osVer": "10.0",
335
334
  * "uniVer": "√",
336
- * "unixVer": "x"
335
+ * "unixVer": "4.21"
337
336
  * }
338
337
  * },
339
338
  * "mp": {
package/types/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference path='./native/global.d.ts' />
2
- /// <reference path='./vue/index.d.ts' />
2
+ /// <reference path='./vue/global.d.ts' />
3
3
  /// <reference path='./uni/global.d.ts' />
4
4
  /// <reference path='./uni-cloud/index.d.ts' />
5
5
  /// <reference path='./app.d.ts' />
@@ -0,0 +1,378 @@
1
+ /**
2
+ * @package io.dcloud.uniapp.runtime
3
+ */
4
+
5
+ import { Image } from "./IUniElement"
6
+ import { Path2D } from "./Path2D"
7
+
8
+ export interface TextMetrics {
9
+ readonly width: number
10
+ }
11
+
12
+ export interface CanvasPattern {
13
+
14
+ }
15
+
16
+ export interface CanvasGradient {
17
+ /**
18
+ * 添加颜色的渐变点。小于最小 stop 的部分会按最小 stop 的 color 来渲染,大于最大 stop 的部分会按最大 stop 的 color 来渲染
19
+ * @param {number} stop 表示渐变中开始与结束之间的位置,范围 0-1
20
+ * @param {string} color 渐变点的颜色
21
+ */
22
+ addColorStop(stop: number, color: string): void
23
+ }
24
+
25
+ export interface CanvasRenderingContext2D {
26
+
27
+ /**
28
+ * 是对与给定上下文关联的HTMLCanvasElement对象的只读引用
29
+ */
30
+ readonly canvas: UniCanvasElement
31
+
32
+ /**
33
+ * 设置字体大小
34
+ * @defaultValue 10px
35
+ */
36
+ font: string
37
+ /**
38
+ * 设置填充颜色
39
+ * @defaultValue #000 (黑色)
40
+ */
41
+ fillStyle: CanvasGradient | string
42
+
43
+ /**
44
+ * 用来描述在 canvas 上绘图之前,设置图形和图片透明度的属性。数值的范围从 0.0(完全透明)到 1.0(完全不透明)
45
+ * @defaultValue 1.0
46
+ */
47
+ globalAlpha: number
48
+
49
+ /**
50
+ * 在绘制新形状时应用的合成操作的类型,其中 type 是用于标识要使用的合成或混合模式操作的字符串
51
+ */
52
+ globalCompositeOperation: "" | "source-over" | "source-atop" | "source-in" | "source-out" | "destination-over" | "destination-atop" | "destination-in" | "destination-out" | "lighter" | "copy" | "xor"
53
+
54
+ /**
55
+ * 指定如何绘制每一条线条末端的属性,可选值:`butt`线段末端以方形结束;`round`线段末端以圆形结束;`square`线段末端以方形结束,但是会增加一个一半宽度的矩形区域。
56
+ * @defaultValue butt
57
+ */
58
+ lineCap: "" | "butt" | "round" | "square"
59
+
60
+ /**
61
+ * 设置虚线偏移量
62
+ */
63
+ lineDashOffset: number
64
+
65
+ /**
66
+ * 设置 2 个长度不为 0 的线条相连部分如何连接在一起的属性,可选值:`bevel`斜角;`round`圆角;`miter`尖角。
67
+ * @defaultValue miter
68
+ */
69
+ lineJoin: "" | "round" | "bevel" | "miter"
70
+
71
+ /**
72
+ * 设置线条的宽度
73
+ * @defaultValue 1px
74
+ */
75
+ lineWidth: number
76
+
77
+ /**
78
+ * 设置边框的颜色
79
+ * @defaultValue #000 (黑色)
80
+ */
81
+ strokeStyle: CanvasGradient | string
82
+
83
+ /**
84
+ * 设置文本的对齐方式,可取值:`left`左对齐;`center`居中对齐;`right`右对齐。
85
+ * @defaultValue left
86
+ */
87
+ textAlign: "" | "left" | "right" | "center" | "start" | "end"
88
+
89
+ /**
90
+ * 设置斜接面限制比例的属性。当获取属性值时,会返回当前的值(默认值是10.0 )。当给属性赋值时,0、负数、 Infinity 和 NaN 都会被忽略;除此之外都会被赋予一个新值。
91
+ */
92
+ miterLimit: number
93
+
94
+ /**
95
+ * 描述绘制文本时,当前文本基线的属性
96
+ */
97
+ textBaseline: "" | "top" | "hanging" | "middle" | "alphabetic" | "ideographic" | "bottom"
98
+
99
+ /**
100
+ * 绘制一段弧线
101
+ * @param {number} x 圆弧中心(圆心)的 x 轴坐标
102
+ * @param {number} y 圆弧中心(圆心)的 y 轴坐标
103
+ * @param {number} radius 圆弧的半径
104
+ * @param {number} startAngle 圆弧的起始点,x 轴方向开始计算,单位为弧度
105
+ * @param {number} endAngle 圆弧的终点,单位为弧度
106
+ * @param {number} [anticlockwise=true] 圆弧绘制方向,true:逆时针绘制,false:顺时针绘制。
107
+ */
108
+ arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise: boolean): void
109
+
110
+ /**
111
+ * 根据控制点和半径绘制圆弧路径,使用当前的描点 (前一个 moveTo 或 lineTo 等函数的止点)。根据当前描点与给定的控制点 1 连接的直线,和控制点 1 与控制点 2 连接的直线,作为使用指定半径的圆的切线,画出两条切线之间的弧线路径
112
+ * @param {number} x1 第一个控制点的 x 轴坐标
113
+ * @param {number} y1 第一个控制点的 y 轴坐标
114
+ * @param {number} x2 第二个控制点的 x 轴坐标
115
+ * @param {number} y2 第二个控制点的 y 轴坐标
116
+ * @param {number} radius 圆弧的半径
117
+ */
118
+ arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void
119
+
120
+ /**
121
+ * 开始创建一个路径。需要调用 fill 或者 stroke 才会使用路径进行填充或描边
122
+ */
123
+ beginPath(): void
124
+
125
+ /**
126
+ * 绘制三次贝赛尔曲线路径
127
+ * @param {number} cp1x 第一个控制点的 x 轴坐标
128
+ * @param {number} cp1y 第一个控制点的 y 轴坐标
129
+ * @param {number} cp2x 第二个控制点的 x 轴坐标
130
+ * @param {number} cp2y 第二个控制点的 y 轴坐标
131
+ * @param {number} x 结束点的 x 轴坐标
132
+ * @param {number} y 结束点的 y 轴坐标
133
+ */
134
+ bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void
135
+
136
+ /**
137
+ * 清除画布上在该矩形区域内的内容
138
+ * @param {number} x 矩形起点的 x 轴坐标
139
+ * @param {number} y 矩形起点的 y 轴坐标
140
+ * @param {number} width 矩形的宽度
141
+ * @param {number} height 矩形的高度
142
+ */
143
+ clearRect(x: number, y: number, width: number, height: number): void
144
+
145
+ /**
146
+ * 将当前创建的路径设置为当前剪切路径
147
+ */
148
+ clip(): void
149
+
150
+ /**
151
+ * 关闭一个路径
152
+ */
153
+ closePath(): void
154
+
155
+ /**
156
+ * 对指定的图像创建模式的方法,可在指定的方向上重复元图像
157
+ * @param {string} image 重复的图像源,支持代码包路径和本地临时路径 (本地路径)
158
+ * @param {string} repetition 如何重复图像
159
+ */
160
+ createPattern(image: Image, repetition: string): CanvasPattern
161
+
162
+ /**
163
+ * 创建一个线性的渐变颜色。返回的CanvasGradient对象需要使用 CanvasGradient.addColorStop() 来指定渐变点,至少要两个
164
+ * @param {number} x0 起点的 x 坐标
165
+ * @param {number} y0 起点的 y 坐标
166
+ * @param {number} x1 终点的 x 坐标
167
+ * @param {number} y1 终点的 y 坐标
168
+ */
169
+ createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient
170
+
171
+ /**
172
+ * 根据参数确定两个圆的坐标,绘制放射性渐变
173
+ * @param {number} x0 开始圆形的 x 轴坐标
174
+ * @param {number} y0 开始圆形的 y 轴坐标
175
+ * @param {number} r0 开始圆形的半径
176
+ * @param {number} x1 结束圆形的 x 轴坐标
177
+ * @param {number} y1 结束圆形的 y 轴坐标
178
+ * @param {number} r1 结束圆形的半径
179
+ */
180
+ createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r01: number): CanvasGradient
181
+
182
+ /**
183
+ * 将之前在绘图上下文中的描述(路径、变形、样式)画到 canvas 中
184
+ */
185
+ draw(): void
186
+
187
+ /**
188
+ * 绘制图像到画布
189
+ * @param {string} imageResource 所要绘制的图片资源
190
+ * @param {number} sx 需要绘制到画布中的,imageResource的矩形(裁剪)选择框的左上角 x 坐标
191
+ * @param {number} sy 需要绘制到画布中的,imageResource的矩形(裁剪)选择框的左上角 y 坐标
192
+ * @param {number} sWidth 需要绘制到画布中的,imageResource的矩形(裁剪)选择框的宽度
193
+ * @param {number} sHeight 需要绘制到画布中的,imageResource的矩形(裁剪)选择框的高度
194
+ * @param {number} dx imageResource的左上角在目标 canvas 上 x 轴的位置
195
+ * @param {number} dy imageResource的左上角在目标 canvas 上 y 轴的位置
196
+ * @param {number} dWidth 在目标画布上绘制imageResource的宽度,允许对绘制的imageResource进行缩放
197
+ * @param {number} dHeight 在目标画布上绘制imageResource的高度,允许对绘制的imageResource进行缩放
198
+ */
199
+ drawImage(imageResource: Image, sx: number, sy: number, sWidth: number, sHeight: number, dx: number, dy: number, dWidth: number, dHeight: number): void
200
+
201
+ /**
202
+ * 对当前路径中的内容进行填充
203
+ */
204
+ fill(): void
205
+
206
+ /**
207
+ * 对当前路径中的内容进行填充
208
+ * @param {string} fillRule 填充当前或已存在的路径的方法。采取非零环绕(nonzero)或者奇偶环绕(evenodd)规则
209
+ */
210
+ fill(fillRule: "nonzero" | "evenodd"): void
211
+
212
+ /**
213
+ * 对指定路径中的内容进行填充
214
+ * @param {string} path 填充路径
215
+ * @param {string} fillRule 填充当前或已存在的路径的方法。采取非零环绕(nonzero)或者奇偶环绕(evenodd)规则
216
+ */
217
+ fill(path: Path2D, fillRule: "nonzero" | "evenodd"): void
218
+
219
+ /**
220
+ *填充一个矩形。用 setFillStyle 设置矩形的填充色,如果没设置默认是黑色
221
+ * @param {number} x 矩形起点的 x 轴坐标
222
+ * @param {number} y 矩形起点的 y 轴坐标
223
+ * @param {number} width 矩形的宽度
224
+ * @param {number} height 矩形的高度
225
+ */
226
+ fillRect(x: number, y: number, width: number, height: number): void
227
+
228
+
229
+ /**
230
+ * 在填充线时使用虚线模式, 它使用一组值来指定描述模式的线和间隙的交替长度。
231
+ * @ret {segments} Array<number>一组描述交替绘制线段和间距(坐标空间单位)长度的数字
232
+ */
233
+ getLineDash(): Array<number>
234
+
235
+ /**
236
+ * 返回一个Boolean 标记上下文是否已经丢失
237
+ */
238
+ isContextLost(): Boolean
239
+
240
+ /**
241
+ * 在画布上绘制文本
242
+ * @param {string} text 要渲染的文本字符串
243
+ * @param {number} x 开始绘制文本的点的 X 轴坐标
244
+ * @param {number} y 开始绘制文本的点的 X 轴坐标
245
+ * @param {number} maxWidth 需要绘制的最大宽度
246
+ */
247
+ fillText(text: string, x: number, y: number, maxWidth: number): void
248
+
249
+ /**
250
+ * 增加一个新点,然后创建一条从上次指定点到目标点的线。用 stroke 方法来画线条
251
+ * @param {number} x 目标位置的 x 坐标
252
+ * @param {number} y 目标位置的 y 坐标
253
+ */
254
+ lineTo(x: number, y: number): void
255
+
256
+ /**
257
+ * 测量文本尺寸信息。目前仅返回文本宽度
258
+ * @param {number} text 要渲测量的文本字符串
259
+ */
260
+ measureText(text: string): TextMetrics
261
+
262
+ /**
263
+ * 把路径移动到画布中的指定点
264
+ * @param {number} x 目标位置的 x 坐标
265
+ * @param {number} y 目标位置的 y 坐标
266
+ */
267
+ moveTo(x: number, y: number): void
268
+
269
+ /**
270
+ * 创建二次贝塞尔曲线路径
271
+ * @param {number} cpx 贝塞尔控制点的 x 坐标
272
+ * @param {number} cpy 贝塞尔控制点的 y 坐标
273
+ * @param {number} x 结束点的 x 坐标
274
+ * @param {number} y 结束点的 y 坐标
275
+ */
276
+ quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void
277
+
278
+ /**
279
+ * 创建一个矩形路径
280
+ * @param {number} x 矩形路径起点的 x 轴坐标
281
+ * @param {number} y 矩形路径起点的 y 轴坐标
282
+ * @param {number} width 矩形路径的宽度
283
+ * @param {number} height 矩形路径的高度
284
+ */
285
+ rect(x: number, y: number, width: number, height: number): void
286
+
287
+ /**
288
+ * 恢复之前保存的绘图上下文
289
+ */
290
+ restore(): void
291
+
292
+ /**
293
+ * 以原点为中心顺时针旋转当前坐标轴
294
+ * @param {rotate} 旋转角度,以弧度计 degrees * Math.PI/180;degrees 范围为 0-360
295
+ */
296
+ rotate(rotate: number): void
297
+
298
+ /**
299
+ * 保存绘图上下文
300
+ */
301
+ save(): void
302
+
303
+ /**
304
+ * 缩放变换
305
+ * @param {x} 水平方向的缩放因子
306
+ * @param {y} 垂直方向的缩放因子
307
+ */
308
+ scale(x: number, y: number): void
309
+
310
+ /**
311
+ * 在填充线时使用虚线模式, 它使用一组值来指定描述模式的线和间隙的交替长度。
312
+ * @param {segments} Array<number>一组描述交替绘制线段和间距(坐标空间单位)长度的数字
313
+ */
314
+ setLineDash(segments: Array<number>): void
315
+
316
+ /**
317
+ * 画出当前路径的边框。默认颜色色为黑色
318
+ */
319
+ stroke(): void
320
+
321
+ /**
322
+ * 画出指定路径的边框。默认颜色色为黑色
323
+ * @param {path} Path2D
324
+ */
325
+ stroke(path: Path2D): void
326
+
327
+ /**
328
+ * 画一个矩形(非填充)
329
+ * @param {number} x 矩形起点的 x 轴坐标
330
+ * @param {number} y 矩形起点的 y 轴坐标
331
+ * @param {number} width 矩形的宽度
332
+ * @param {number} height 矩形的高度
333
+ */
334
+ strokeRect(x: number, y: number, width: number, height: number): void
335
+
336
+ /**
337
+ * 文本描边
338
+ * @param {string} text 要渲染的文本字符串
339
+ * @param {number} x 开始绘制文本的点的 X 轴坐标
340
+ * @param {number} y 开始绘制文本的点的 X 轴坐标
341
+ * @param {number} maxWidth 需要绘制的最大宽度
342
+ */
343
+ strokeText(text: string, x: number, y: number, maxWidth: number): void
344
+
345
+ /**
346
+ * 使用矩阵多次叠加当前变换,矩阵由方法的参数进行描述。可以缩放、旋转、移动和倾斜上下文
347
+ * @param {number} scaleX 水平缩放
348
+ * @param {number} skewY 垂直倾斜
349
+ * @param {number} skewX 水平倾斜
350
+ * @param {number} scaleY 垂直缩放
351
+ * @param {number} translateX 水平移动
352
+ * @param {number} translateY 垂直移动
353
+ */
354
+ transform(scaleX: Number, skewY: number, skewX: number, scaleY: number, translateX: number, translateY: number): void
355
+
356
+ /**
357
+ * 使用单位矩阵重新设置(覆盖)当前的变换并调用变换
358
+ * @param {number} scaleX 水平缩放
359
+ * @param {number} skewY 垂直倾斜
360
+ * @param {number} skewX 水平倾斜
361
+ * @param {number} scaleY 垂直缩放
362
+ * @param {number} translateX 水平移动
363
+ * @param {number} translateY 垂直移动
364
+ */
365
+ setTransform(scaleX: Number, skewY: Number, skewX: Number, scaleY: Number, translateX: Number, translateY: Number): void
366
+
367
+ /**
368
+ * 使用单位矩阵重新设置当前变换
369
+ */
370
+ resetTransform(): void
371
+
372
+ /**
373
+ * 当前网格添加平移变换
374
+ * @param {number} translateX 水平方向的移动距离
375
+ * @param {number} translateY 垂直方向的移动距离
376
+ */
377
+ translate(translateX: number, translateY: number): void
378
+ }
@@ -4,6 +4,7 @@ import { UniEvent } from "./UniEvent"
4
4
  import { CSSStyleDeclaration } from "./CSSStyleDeclaration"
5
5
  import { DOMRect } from "./DOMRect"
6
6
  import { UniCallbackWrapper } from "./UniCallbackWrapper"
7
+ import { CanvasRenderingContext2D } from "./CanvasRenderingContext2D"
7
8
 
8
9
  /**
9
10
  * UVUE DOM 元素对象,描述了 UVUE DOM 元素所普通具有的属性和方法。
@@ -371,7 +372,7 @@ export interface UniSwiperItemElement extends UniElement {}
371
372
  * @package io.dcloud.uniapp.runtime
372
373
  */
373
374
  export interface UniImageElement extends UniElement {}
374
-
375
+ export type Image = UniImageElement
375
376
  /**
376
377
  * input元素对象
377
378
  * @package io.dcloud.uniapp.runtime
@@ -379,7 +380,6 @@ export interface UniImageElement extends UniElement {}
379
380
  export interface UniInputElement extends UniElement {
380
381
  /**
381
382
  * 表单的控件名称,作为键值对的一部分与表单(form组件)一同提交
382
- *
383
383
  * @uniPlatform {
384
384
  * "app": {
385
385
  * "android": {
@@ -398,7 +398,6 @@ export interface UniInputElement extends UniElement {
398
398
  name: string
399
399
  /**
400
400
  * input的类型
401
- *
402
401
  * @uniPlatform {
403
402
  * "app": {
404
403
  * "android": {
@@ -417,7 +416,6 @@ export interface UniInputElement extends UniElement {
417
416
  type: string
418
417
  /**
419
418
  * 是否禁用
420
- *
421
419
  * @uniPlatform {
422
420
  * "app": {
423
421
  * "android": {
@@ -436,7 +434,6 @@ export interface UniInputElement extends UniElement {
436
434
  disabled: boolean
437
435
  /**
438
436
  * 自动获取焦点
439
- *
440
437
  * @uniPlatform {
441
438
  * "app": {
442
439
  * "android": {
@@ -455,7 +452,6 @@ export interface UniInputElement extends UniElement {
455
452
  autofocus: boolean
456
453
  /**
457
454
  * 输入框的初始内容
458
- *
459
455
  * @uniPlatform {
460
456
  * "app": {
461
457
  * "android": {
@@ -481,7 +477,6 @@ export interface UniInputElement extends UniElement {
481
477
  export interface UniTextareaElement extends UniElement {
482
478
  /**
483
479
  * 表单的控件名称,作为键值对的一部分与表单(form组件)一同提交
484
- *
485
480
  * @uniPlatform {
486
481
  * "app": {
487
482
  * "android": {
@@ -500,7 +495,6 @@ export interface UniTextareaElement extends UniElement {
500
495
  name: string
501
496
  /**
502
497
  * input的类型
503
- *
504
498
  * @uniPlatform {
505
499
  * "app": {
506
500
  * "android": {
@@ -519,7 +513,6 @@ export interface UniTextareaElement extends UniElement {
519
513
  type: string
520
514
  /**
521
515
  * 是否禁用
522
- *
523
516
  * @uniPlatform {
524
517
  * "app": {
525
518
  * "android": {
@@ -538,7 +531,6 @@ export interface UniTextareaElement extends UniElement {
538
531
  disabled: boolean
539
532
  /**
540
533
  * 自动获取焦点
541
- *
542
534
  * @uniPlatform {
543
535
  * "app": {
544
536
  * "android": {
@@ -557,7 +549,6 @@ export interface UniTextareaElement extends UniElement {
557
549
  autofocus: boolean
558
550
  /**
559
551
  * 输入框的初始内容
560
- *
561
552
  * @uniPlatform {
562
553
  * "app": {
563
554
  * "android": {
@@ -745,7 +736,7 @@ export type IComment = UniCommentElement
745
736
  * button元素对象
746
737
  * @package io.dcloud.uniapp.runtime
747
738
  */
748
- interface UniButtonElement extends UniElement {}
739
+ export interface UniButtonElement extends UniElement {}
749
740
 
750
741
  /**
751
742
  * 嵌套 scroll-view 场景中属于外层 scroll-view 的节点
@@ -758,3 +749,40 @@ export interface UniNestedScrollHeaderElement extends UniElement {}
758
749
  * @package io.dcloud.uniapp.runtime
759
750
  */
760
751
  export interface UniNestedScrollBodyElement extends UniElement {}
752
+
753
+ /**
754
+ * canvas元素对象
755
+ * @package io.dcloud.uniapp.runtime
756
+ * @uniPlatform {
757
+ * "app": {
758
+ * "android": {
759
+ * "osVer": "5.0",
760
+ * "uniVer": "x",
761
+ * "unixVer": "x"
762
+ * },
763
+ * "ios": {
764
+ * "osVer": "12.0",
765
+ * "uniVer": "x",
766
+ * "unixVer": "x"
767
+ * }
768
+ * },
769
+ * "web": {
770
+ * "uniVer": "x",
771
+ * "unixVer": "4.21"
772
+ * }
773
+ * }
774
+ */
775
+ export interface UniCanvasElement extends UniElement {
776
+ /**
777
+ * Canvas宽度
778
+ */
779
+ width : number
780
+ /**
781
+ * Canvas高度
782
+ */
783
+ height : number
784
+ /**
785
+ * 返回 Canvas 的绘图上下文
786
+ */
787
+ getContext(contentType:string): CanvasRenderingContext2D|null
788
+ }
@@ -0,0 +1,74 @@
1
+ /**
2
+ * @package io.dcloud.uniapp.runtime
3
+ */
4
+
5
+ export class Path2D {
6
+ /**
7
+ * 闭合路径,将最后一个点与起点连接起来。如果图形已经封闭,或者只有一个点,那么此方法不会产生任何效果。
8
+ */
9
+ closePath(): void
10
+
11
+ /**
12
+ * 将一个新的路径的起始点移动到 (x,y) 坐标
13
+ * @param {number} x 点的X轴坐标
14
+ * @param {number} y 点的Y轴坐标
15
+ */
16
+ moveTo(x: number, y: number): void
17
+
18
+ /**
19
+ * 将路径的最后一个点连接到 (x,y) 坐标
20
+ * @param {number} x 线终点的X轴坐标
21
+ * @param {number} y 线终点的Y轴坐标
22
+ */
23
+ lineTo(x: number, y: number): void
24
+
25
+ /**
26
+ * 创建三次方贝塞尔曲线路径
27
+ * @param {number} cp1x 第一个贝塞尔控制点的 x 坐标
28
+ * @param {number} cp1y 第一个贝塞尔控制点的 y 坐标
29
+ * @param {number} cp2x 第二个贝塞尔控制点的 x 坐标
30
+ * @param {number} cp2y 第二个贝塞尔控制点的 y 坐标
31
+ * @param {number} x 结束点的 x 坐标
32
+ * @param {number} y 结束点的 y 坐标
33
+ */
34
+ bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void
35
+
36
+ /**
37
+ * 创建二次贝塞尔曲线路径
38
+ * @param {number} cpx 贝塞尔控制点的 x 坐标
39
+ * @param {number} cpy 贝塞尔控制点的 y 坐标
40
+ * @param {number} x 结束点的 x 坐标
41
+ * @param {number} y 结束点的 y 坐标
42
+ */
43
+ quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void
44
+
45
+ /**
46
+ * 绘制一段弧线
47
+ * @param {number} x 圆弧中心(圆心)的 x 轴坐标
48
+ * @param {number} y 圆弧中心(圆心)的 y 轴坐标
49
+ * @param {number} radius 圆弧的半径
50
+ * @param {number} startAngle 圆弧的起始点,x 轴方向开始计算,单位为弧度
51
+ * @param {number} endAngle 圆弧的终点,单位为弧度
52
+ * @param {number} [anticlockwise=true] 圆弧绘制方向,true:逆时针绘制,false:顺时针绘制。
53
+ */
54
+ arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise: boolean): void
55
+
56
+ /**
57
+ * 根据控制点和半径绘制圆弧路径,使用当前的描点 (前一个 moveTo 或 lineTo 等函数的止点)。根据当前描点与给定的控制点 1 连接的直线,和控制点 1 与控制点 2 连接的直线,作为使用指定半径的圆的切线,画出两条切线之间的弧线路径
58
+ * @param {number} x1 第一个控制点的 x 轴坐标
59
+ * @param {number} y1 第一个控制点的 y 轴坐标
60
+ * @param {number} x2 第二个控制点的 x 轴坐标
61
+ * @param {number} y2 第二个控制点的 y 轴坐标
62
+ * @param {number} radius 圆弧的半径
63
+ */
64
+ arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void
65
+
66
+ /**
67
+ * 创建一个矩形路径
68
+ * @param {number} x 矩形路径起点的 x 轴坐标
69
+ * @param {number} y 矩形路径起点的 y 轴坐标
70
+ * @param {number} width 矩形路径的宽度
71
+ * @param {number} height 矩形路径的高度
72
+ */
73
+ rect(x: number, y: number, width: number, height: number): void
74
+ }
@@ -18,6 +18,12 @@ export interface UniApp {
18
18
  */
19
19
  readonly pageManager: UniPageManager
20
20
 
21
+ /**
22
+ * app主题 值域为 dark | light | auto
23
+ * @internal
24
+ */
25
+ appTheme: string
26
+
21
27
  /**
22
28
  * 接收框架触发的event
23
29
  * @autodoc false
@@ -27,7 +33,7 @@ export interface UniApp {
27
33
  /**
28
34
  * 监听app事件
29
35
  */
30
- addEventListener<T>(event: "onShow" | "onHide" | "onExit", callback: (event: T) => void): UniCallbackWrapper
36
+ addEventListener<T>(event: "onShow" | "onHide" | "onExit" | "onThemeChange", callback: (event: T) => void): UniCallbackWrapper
31
37
 
32
38
  /**
33
39
  * 注销app监听
@@ -74,6 +80,16 @@ export interface UniApp {
74
80
  * @autodoc false
75
81
  */
76
82
  getRedirectInfo(): Map<string, any | null>
83
+
84
+ connectResizeObserver(observerId: string, callback?: (res: any) => void): void
85
+
86
+ observeResizeObserver(observerId: string, pageId: string, elemId: string): void
87
+
88
+ unobserveResizeObserver(observerId: string, pageId: string, elemId: string): void
89
+
90
+ disconnectResizeObserver(observerId: string): void
91
+
92
+ getLaunchOptionsSync(): { appScheme: string; appLink: string }
77
93
  }
78
94
 
79
95
  export type IApp = UniApp