@dcloudio/uni-app-x 0.7.14 → 0.7.16

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 (175) hide show
  1. package/options.d.ts +1 -1
  2. package/package.json +1 -1
  3. package/types/native/CSSStyleDeclaration.d.ts +0 -72
  4. package/types/native/CanvasRenderingContext2D.d.ts +1943 -0
  5. package/types/native/DOMRect.d.ts +0 -180
  6. package/types/native/DrawableContext.d.ts +161 -628
  7. package/types/native/IUniElement.d.ts +513 -1868
  8. package/types/native/IUniObjectElement.d.ts +124 -0
  9. package/types/native/Path2D.d.ts +241 -0
  10. package/types/native/SnapshotOptions.d.ts +1 -0
  11. package/types/native/UniApp.d.ts +110 -0
  12. package/types/native/UniCanvasElement.d.ts +9 -0
  13. package/types/native/UniNativePage.d.ts +48 -1
  14. package/types/native/UniPageManager.d.ts +4 -1
  15. package/types/native/UniProvider.d.ts +1 -0
  16. package/types/native/UniResizeObserver.d.ts +9 -99
  17. package/types/native/UniScrollEvent.d.ts +1 -1
  18. package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -1
  19. package/types/native/UniSwiperChangeEvent.d.ts +1 -1
  20. package/types/native/UniVideoElement.d.ts +5 -0
  21. package/types/native/global.d.ts +73 -15
  22. package/types/native/index.d.ts +4 -0
  23. package/types/shim-uts-basic.d.ts +4495 -0
  24. package/types/uni/env/index.d.ts +39 -0
  25. package/types/uni/uts-plugin-api/global.d.ts +20 -1
  26. package/types/uni/uts-plugin-api/index.d.ts +20 -1
  27. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +26 -0
  28. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -0
  29. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -0
  30. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -0
  31. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -0
  32. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -0
  33. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -0
  34. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -0
  35. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -0
  36. package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/global.d.ts +10 -0
  37. package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/index.d.ts +4 -0
  38. package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/interface.d.ts +24 -0
  39. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +20 -0
  40. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +9 -0
  41. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +268 -0
  42. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -0
  43. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -0
  44. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -0
  45. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -0
  46. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -0
  47. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -0
  48. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +20 -3
  49. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +24 -9
  50. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +13 -6
  51. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -0
  52. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -0
  53. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1335 -0
  54. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +28 -0
  55. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -1
  56. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -0
  57. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -0
  58. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -0
  59. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +8 -1
  60. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +20 -17
  61. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +28 -20
  62. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +201 -64
  63. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +180 -59
  64. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +10 -2
  65. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -0
  66. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -0
  67. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +47 -0
  68. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +10 -1
  69. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -0
  70. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -0
  71. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +564 -0
  72. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +2 -14
  73. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -6
  74. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -151
  75. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -0
  76. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -0
  77. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/interface.d.ts +1 -0
  78. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +8 -0
  79. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +4 -0
  80. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +114 -34
  81. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +7 -1
  82. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +8 -0
  83. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +4 -0
  84. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +304 -27
  85. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +500 -149
  86. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -112
  87. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +9 -6
  88. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +18 -2
  89. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
  90. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -0
  91. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -0
  92. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -1
  93. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/global.d.ts +9 -6
  94. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/index.d.ts +4 -2
  95. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/interface.d.ts +40 -61
  96. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +2 -0
  97. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
  98. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +327 -58
  99. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +24 -0
  100. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +12 -0
  101. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +213 -5
  102. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +280 -92
  103. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +20 -15
  104. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -0
  105. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -0
  106. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -0
  107. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +2 -0
  108. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +1 -0
  109. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +16 -6
  110. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +161 -11
  111. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -0
  112. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -0
  113. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -0
  114. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -0
  115. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -0
  116. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +3 -0
  117. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +120 -42
  118. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +2 -0
  119. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +1 -0
  120. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +16 -1
  121. package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/global.d.ts +12 -0
  122. package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/index.d.ts +5 -0
  123. package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/interface.d.ts +28 -0
  124. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +177 -32
  125. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +7 -2
  126. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -0
  127. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -0
  128. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -0
  129. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +112 -43
  130. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +16 -0
  131. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +8 -0
  132. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +78 -1
  133. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +199 -149
  134. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -0
  135. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -0
  136. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1068 -0
  137. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +170 -83
  138. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +11 -7
  139. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +33 -15
  140. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +4 -0
  141. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +2 -0
  142. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +777 -568
  143. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +10 -6
  144. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
  145. package/types/uni/uts-plugin-extend/global.d.ts +1 -1
  146. package/types/uni/uts-plugin-extend/index.d.ts +1 -3
  147. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4 -4
  148. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +1 -0
  149. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -0
  150. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -0
  151. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -0
  152. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  153. package/types/uni-cloud/interface.d.ts +57 -3
  154. package/types/uni-cloud/unicloud-db/index.ts +3 -3
  155. package/types/vue/CheckboxGroupChangeEvent.d.ts +9 -1
  156. package/types/vue/PickerViewChangeEvent.d.ts +8 -0
  157. package/types/vue/ProgressActiveendEvent.d.ts +4 -0
  158. package/types/vue/RadioGroupChangeEvent.d.ts +9 -1
  159. package/types/vue/SliderChangeEvent.d.ts +4 -0
  160. package/types/vue/SwitchChangeEvent.d.ts +5 -1
  161. package/types/vue/UniCanvasElement.d.ts +6 -1
  162. package/types/vue/UniCloudDBElement.d.ts +5 -0
  163. package/types/vue/UniFormElement.d.ts +6 -1
  164. package/types/vue/UniNavigatorElement.d.ts +5 -0
  165. package/types/vue/global.d.ts +10 -9
  166. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +0 -78
  167. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +0 -38
  168. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +0 -642
  169. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/global.d.ts +0 -21
  170. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/index.d.ts +0 -9
  171. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/interface.d.ts +0 -119
  172. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/global.d.ts +0 -21
  173. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/index.d.ts +0 -9
  174. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/interface.d.ts +0 -122
  175. package/types/uni-cloud/unicloud-db/index.d.ts +0 -81
@@ -0,0 +1,20 @@
1
+ // 本文件为自动构建生成
2
+ import {
3
+ CreateCanvasContextAsyncSuccessCallback as CreateCanvasContextAsyncSuccessCallbackOrigin,
4
+ CreateCanvasContextAsyncFailCallback as CreateCanvasContextAsyncFailCallbackOrigin,
5
+ CreateCanvasContextAsyncCompleteCallback as CreateCanvasContextAsyncCompleteCallbackOrigin,
6
+ CanvasContextToBlobCallback as CanvasContextToBlobCallbackOrigin,
7
+ CanvasContext as CanvasContextOrigin,
8
+ CreateCanvasContextAsyncOptions as CreateCanvasContextAsyncOptionsOrigin,
9
+ Uni as UniOrigin
10
+ } from './interface'
11
+
12
+ declare global {
13
+ type CreateCanvasContextAsyncSuccessCallback = CreateCanvasContextAsyncSuccessCallbackOrigin
14
+ type CreateCanvasContextAsyncFailCallback = CreateCanvasContextAsyncFailCallbackOrigin
15
+ type CreateCanvasContextAsyncCompleteCallback = CreateCanvasContextAsyncCompleteCallbackOrigin
16
+ type CanvasContextToBlobCallback = CanvasContextToBlobCallbackOrigin
17
+ type CanvasContext = CanvasContextOrigin
18
+ type CreateCanvasContextAsyncOptions = CreateCanvasContextAsyncOptionsOrigin
19
+ interface Uni extends UniOrigin { }
20
+ }
@@ -0,0 +1,9 @@
1
+ // 本文件为自动构建生成
2
+ export {
3
+ CreateCanvasContextAsyncSuccessCallback,
4
+ CreateCanvasContextAsyncFailCallback,
5
+ CreateCanvasContextAsyncCompleteCallback,
6
+ CanvasContextToBlobCallback,
7
+ CanvasContext,
8
+ CreateCanvasContextAsyncOptions,
9
+ } from './interface'
@@ -0,0 +1,268 @@
1
+ export type CreateCanvasContextAsyncSuccessCallback = (context: CanvasContext) => void
2
+ export type CreateCanvasContextAsyncFailCallback = (error: UniError) => void
3
+ export type CreateCanvasContextAsyncCompleteCallback = () => void
4
+
5
+ // #ifdef WEB
6
+ export type CanvasContextToBlobCallback = (blob: Blob) => void
7
+ // #endif
8
+
9
+ export interface CanvasContext {
10
+ getContext(type: string): CanvasRenderingContext2D | null
11
+
12
+ // #ifdef WEB
13
+ /**
14
+ * 创造 Blob 对象
15
+ * @uniPlatform {
16
+ * "app": {
17
+ * "android": {
18
+ * "osVer": "5.0",
19
+ * "uniVer": "x",
20
+ * "unixVer": "x"
21
+ * },
22
+ * "ios": {
23
+ * "osVer": "10.0",
24
+ * "uniVer": "x",
25
+ * "unixVer": "x"
26
+ * }
27
+ * },
28
+ * "web": {
29
+ * "uniVer": "x",
30
+ * "unixVer": "4.25"
31
+ * }
32
+ * }
33
+ */
34
+ toBlob(callback: CanvasContextToBlobCallback): void
35
+
36
+ /**
37
+ * 创造 Blob 对象
38
+ * @uniPlatform {
39
+ * "app": {
40
+ * "android": {
41
+ * "osVer": "5.0",
42
+ * "uniVer": "x",
43
+ * "unixVer": "x"
44
+ * },
45
+ * "ios": {
46
+ * "osVer": "10.0",
47
+ * "uniVer": "x",
48
+ * "unixVer": "x"
49
+ * }
50
+ * },
51
+ * "web": {
52
+ * "uniVer": "x",
53
+ * "unixVer": "4.25"
54
+ * }
55
+ * }
56
+ */
57
+ toBlob(callback: CanvasContextToBlobCallback, type: string): void
58
+
59
+ /**
60
+ * 创造 Blob 对象
61
+ * @uniPlatform {
62
+ * "app": {
63
+ * "android": {
64
+ * "osVer": "5.0",
65
+ * "uniVer": "x",
66
+ * "unixVer": "x"
67
+ * },
68
+ * "ios": {
69
+ * "osVer": "10.0",
70
+ * "uniVer": "x",
71
+ * "unixVer": "x"
72
+ * }
73
+ * },
74
+ * "web": {
75
+ * "uniVer": "x",
76
+ * "unixVer": "4.25"
77
+ * }
78
+ * }
79
+ */
80
+ toBlob(callback: CanvasContextToBlobCallback, type: string, quality: number): void
81
+
82
+ /**
83
+ * 返回一个包含图片展示的 data URI
84
+ * @uniPlatform {
85
+ * "app": {
86
+ * "android": {
87
+ * "osVer": "5.0",
88
+ * "uniVer": "x",
89
+ * "unixVer": "x"
90
+ * },
91
+ * "ios": {
92
+ * "osVer": "10.0",
93
+ * "uniVer": "x",
94
+ * "unixVer": "x"
95
+ * }
96
+ * },
97
+ * "web": {
98
+ * "uniVer": "x",
99
+ * "unixVer": "4.25"
100
+ * }
101
+ * }
102
+ */
103
+ toDataUrl(): string
104
+
105
+ /**
106
+ * 返回一个包含图片展示的 data URI
107
+ * @uniPlatform {
108
+ * "app": {
109
+ * "android": {
110
+ * "osVer": "5.0",
111
+ * "uniVer": "x",
112
+ * "unixVer": "x"
113
+ * },
114
+ * "ios": {
115
+ * "osVer": "10.0",
116
+ * "uniVer": "x",
117
+ * "unixVer": "x"
118
+ * }
119
+ * },
120
+ * "web": {
121
+ * "uniVer": "x",
122
+ * "unixVer": "4.25"
123
+ * }
124
+ * }
125
+ */
126
+ toDataUrl(type: string, encoderOptions?: string): string
127
+ // #endif
128
+ }
129
+
130
+ export type CreateCanvasContextAsyncOptions = {
131
+ /**
132
+ * canvas 元素的 id 属性
133
+ * @uniPlatform {
134
+ * "app": {
135
+ * "android": {
136
+ * "osVer": "5.0",
137
+ * "uniVer": "x",
138
+ * "unixVer": "4.25"
139
+ * },
140
+ * "ios": {
141
+ * "osVer": "10.0",
142
+ * "uniVer": "x",
143
+ * "unixVer": "4.25"
144
+ * }
145
+ * },
146
+ * "web": {
147
+ * "uniVer": "x",
148
+ * "unixVer": "4.25"
149
+ * }
150
+ * }
151
+ */
152
+ id: string.IDString
153
+ /**
154
+ * 组件或页面实例
155
+ * @uniPlatform {
156
+ * "app": {
157
+ * "android": {
158
+ * "osVer": "5.0",
159
+ * "uniVer": "x",
160
+ * "unixVer": "4.25"
161
+ * },
162
+ * "ios": {
163
+ * "osVer": "10.0",
164
+ * "uniVer": "x",
165
+ * "unixVer": "4.25"
166
+ * }
167
+ * },
168
+ * "web": {
169
+ * "uniVer": "x",
170
+ * "unixVer": "4.25"
171
+ * }
172
+ * }
173
+ */
174
+ component?: ComponentPublicInstance
175
+ /**
176
+ * 接口调用成功的回调函数
177
+ * @uniPlatform {
178
+ * "app": {
179
+ * "android": {
180
+ * "osVer": "5.0",
181
+ * "uniVer": "x",
182
+ * "unixVer": "4.25"
183
+ * },
184
+ * "ios": {
185
+ * "osVer": "10.0",
186
+ * "uniVer": "x",
187
+ * "unixVer": "4.25"
188
+ * }
189
+ * },
190
+ * "web": {
191
+ * "uniVer": "x",
192
+ * "unixVer": "4.25"
193
+ * }
194
+ * }
195
+ */
196
+ success?: CreateCanvasContextAsyncSuccessCallback
197
+ /**
198
+ * 接口调用失败的回调函数
199
+ * @uniPlatform {
200
+ * "app": {
201
+ * "android": {
202
+ * "osVer": "5.0",
203
+ * "uniVer": "x",
204
+ * "unixVer": "4.25"
205
+ * },
206
+ * "ios": {
207
+ * "osVer": "10.0",
208
+ * "uniVer": "x",
209
+ * "unixVer": "4.25"
210
+ * }
211
+ * },
212
+ * "web": {
213
+ * "uniVer": "x",
214
+ * "unixVer": "4.25"
215
+ * }
216
+ * }
217
+ */
218
+ fail?: CreateCanvasContextAsyncFailCallback
219
+ /**
220
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
221
+ * @uniPlatform {
222
+ * "app": {
223
+ * "android": {
224
+ * "osVer": "5.0",
225
+ * "uniVer": "x",
226
+ * "unixVer": "4.25"
227
+ * },
228
+ * "ios": {
229
+ * "osVer": "10.0",
230
+ * "uniVer": "x",
231
+ * "unixVer": "4.25"
232
+ * }
233
+ * },
234
+ * "web": {
235
+ * "uniVer": "√",
236
+ * "unixVer": "4.25"
237
+ * }
238
+ * }
239
+ */
240
+ complete?: CreateCanvasContextAsyncCompleteCallback
241
+ }
242
+
243
+ export interface Uni {
244
+ /**
245
+ * 获取CanvasContext对象实例
246
+ *
247
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/createCanvasContextAsync.html
248
+ * @uniPlatform {
249
+ * "app": {
250
+ * "android": {
251
+ * "osVer": "5.0",
252
+ * "uniVer": "x",
253
+ * "unixVer": "4.25"
254
+ * },
255
+ * "ios": {
256
+ * "osVer": "12.0",
257
+ * "uniVer": "x",
258
+ * "unixVer": "4.25"
259
+ * }
260
+ * },
261
+ * "web": {
262
+ * "uniVer": "x",
263
+ * "unixVer": "4.25"
264
+ * }
265
+ * }
266
+ */
267
+ createCanvasContextAsync(options: CreateCanvasContextAsyncOptions): void
268
+ }
@@ -0,0 +1,40 @@
1
+ // 本文件为自动构建生成
2
+ import {
3
+ SetClipboardData as SetClipboardDataOrigin,
4
+ SetClipboardDataSuccess as SetClipboardDataSuccessOrigin,
5
+ SetClipboardDataSuccessCallback as SetClipboardDataSuccessCallbackOrigin,
6
+ SetClipboardDataFail as SetClipboardDataFailOrigin,
7
+ SetClipboardDataFailCallback as SetClipboardDataFailCallbackOrigin,
8
+ SetClipboardDataComplete as SetClipboardDataCompleteOrigin,
9
+ SetClipboardDataCompleteCallback as SetClipboardDataCompleteCallbackOrigin,
10
+ SetClipboardDataOptions as SetClipboardDataOptionsOrigin,
11
+ GetClipboardData as GetClipboardDataOrigin,
12
+ GetClipboardDataSuccess as GetClipboardDataSuccessOrigin,
13
+ GetClipboardDataSuccessCallback as GetClipboardDataSuccessCallbackOrigin,
14
+ GetClipboardDataFail as GetClipboardDataFailOrigin,
15
+ GetClipboardDataFailCallback as GetClipboardDataFailCallbackOrigin,
16
+ GetClipboardDataComplete as GetClipboardDataCompleteOrigin,
17
+ GetClipboardDataCompleteCallback as GetClipboardDataCompleteCallbackOrigin,
18
+ GetClipboardDataOptions as GetClipboardDataOptionsOrigin,
19
+ Uni as UniOrigin
20
+ } from './interface'
21
+
22
+ declare global {
23
+ type SetClipboardData = SetClipboardDataOrigin
24
+ type SetClipboardDataSuccess = SetClipboardDataSuccessOrigin
25
+ type SetClipboardDataSuccessCallback = SetClipboardDataSuccessCallbackOrigin
26
+ type SetClipboardDataFail = SetClipboardDataFailOrigin
27
+ type SetClipboardDataFailCallback = SetClipboardDataFailCallbackOrigin
28
+ type SetClipboardDataComplete = SetClipboardDataCompleteOrigin
29
+ type SetClipboardDataCompleteCallback = SetClipboardDataCompleteCallbackOrigin
30
+ type SetClipboardDataOptions = SetClipboardDataOptionsOrigin
31
+ type GetClipboardData = GetClipboardDataOrigin
32
+ type GetClipboardDataSuccess = GetClipboardDataSuccessOrigin
33
+ type GetClipboardDataSuccessCallback = GetClipboardDataSuccessCallbackOrigin
34
+ type GetClipboardDataFail = GetClipboardDataFailOrigin
35
+ type GetClipboardDataFailCallback = GetClipboardDataFailCallbackOrigin
36
+ type GetClipboardDataComplete = GetClipboardDataCompleteOrigin
37
+ type GetClipboardDataCompleteCallback = GetClipboardDataCompleteCallbackOrigin
38
+ type GetClipboardDataOptions = GetClipboardDataOptionsOrigin
39
+ interface Uni extends UniOrigin { }
40
+ }
@@ -0,0 +1,19 @@
1
+ // 本文件为自动构建生成
2
+ export {
3
+ SetClipboardData,
4
+ SetClipboardDataSuccess,
5
+ SetClipboardDataSuccessCallback,
6
+ SetClipboardDataFail,
7
+ SetClipboardDataFailCallback,
8
+ SetClipboardDataComplete,
9
+ SetClipboardDataCompleteCallback,
10
+ SetClipboardDataOptions,
11
+ GetClipboardData,
12
+ GetClipboardDataSuccess,
13
+ GetClipboardDataSuccessCallback,
14
+ GetClipboardDataFail,
15
+ GetClipboardDataFailCallback,
16
+ GetClipboardDataComplete,
17
+ GetClipboardDataCompleteCallback,
18
+ GetClipboardDataOptions,
19
+ } from './interface'
@@ -0,0 +1,203 @@
1
+ export interface Uni {
2
+ /**
3
+ * 设置系统剪贴板的内容
4
+ *
5
+ * @tutorial https://uniapp.dcloud.net.cn/api/system/clipboard.html#setclipboarddata
6
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/clipboard.html#setclipboarddata
7
+ * @uniPlatform {
8
+ * "app": {
9
+ * "android": {
10
+ * "osVer": "5.0",
11
+ * "uniVer": "√",
12
+ * "unixVer": "x"
13
+ * },
14
+ * "ios": {
15
+ * "osVer": "12.0",
16
+ * "uniVer": "√",
17
+ * "unixVer": "x"
18
+ * },
19
+ * "harmony": {
20
+ * "osVer": "3.0",
21
+ * "uniVer": "4.23",
22
+ * "unixVer": "x"
23
+ * }
24
+ * },
25
+ * "mp": {
26
+ * "weixin": {
27
+ * "hostVer": "√",
28
+ * "uniVer": "√",
29
+ * "unixVer": "x"
30
+ * },
31
+ * "alipay": {
32
+ * "hostVer": "√",
33
+ * "uniVer": "√",
34
+ * "unixVer": "x"
35
+ * },
36
+ * "baidu": {
37
+ * "hostVer": "√",
38
+ * "uniVer": "√",
39
+ * "unixVer": "x"
40
+ * },
41
+ * "toutiao": {
42
+ * "hostVer": "√",
43
+ * "uniVer": "√",
44
+ * "unixVer": "x"
45
+ * },
46
+ * "lark": {
47
+ * "hostVer": "√",
48
+ * "uniVer": "√",
49
+ * "unixVer": "x"
50
+ * },
51
+ * "qq": {
52
+ * "hostVer": "√",
53
+ * "uniVer": "√",
54
+ * "unixVer": "x"
55
+ * },
56
+ * "kuaishou": {
57
+ * "hostVer": "√",
58
+ * "uniVer": "√",
59
+ * "unixVer": "x"
60
+ * },
61
+ * "jd": {
62
+ * "hostVer": "√",
63
+ * "uniVer": "√",
64
+ * "unixVer": "x"
65
+ * }
66
+ * },
67
+ * "web": {
68
+ * "uniVer": "√",
69
+ * "unixVer": "4.0"
70
+ * }
71
+ * }
72
+ */
73
+ setClipboardData: SetClipboardData;
74
+ /**
75
+ * 获得系统剪贴板的内容
76
+ *
77
+ * @tutorial https://uniapp.dcloud.net.cn/api/system/clipboard.html#getclipboarddata
78
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/clipboard.html#getclipboarddata
79
+ * @uniPlatform {
80
+ * "app": {
81
+ * "android": {
82
+ * "osVer": "5.0",
83
+ * "uniVer": "√",
84
+ * "unixVer": "x"
85
+ * },
86
+ * "ios": {
87
+ * "osVer": "12.0",
88
+ * "uniVer": "√",
89
+ * "unixVer": "x"
90
+ * },
91
+ * "harmony": {
92
+ * "osVer": "3.0",
93
+ * "uniVer": "4.23",
94
+ * "unixVer": "x"
95
+ * }
96
+ * },
97
+ * "mp": {
98
+ * "weixin": {
99
+ * "hostVer": "√",
100
+ * "uniVer": "√",
101
+ * "unixVer": "x"
102
+ * },
103
+ * "alipay": {
104
+ * "hostVer": "√",
105
+ * "uniVer": "√",
106
+ * "unixVer": "x"
107
+ * },
108
+ * "baidu": {
109
+ * "hostVer": "√",
110
+ * "uniVer": "√",
111
+ * "unixVer": "x"
112
+ * },
113
+ * "toutiao": {
114
+ * "hostVer": "√",
115
+ * "uniVer": "√",
116
+ * "unixVer": "x"
117
+ * },
118
+ * "lark": {
119
+ * "hostVer": "√",
120
+ * "uniVer": "√",
121
+ * "unixVer": "√"
122
+ * },
123
+ * "qq": {
124
+ * "hostVer": "√",
125
+ * "uniVer": "√",
126
+ * "unixVer": "x"
127
+ * },
128
+ * "kuaishou": {
129
+ * "hostVer": "√",
130
+ * "uniVer": "√",
131
+ * "unixVer": "x"
132
+ * },
133
+ * "jd": {
134
+ * "hostVer": "√",
135
+ * "uniVer": "√",
136
+ * "unixVer": "x"
137
+ * }
138
+ * },
139
+ * "web": {
140
+ * "uniVer": "√",
141
+ * "unixVer": "4.0"
142
+ * }
143
+ * }
144
+ */
145
+ getClipboardData: GetClipboardData;
146
+ }
147
+
148
+ export type SetClipboardData = (options: SetClipboardDataOptions) => void;
149
+ export type SetClipboardDataSuccess = {};
150
+ export type SetClipboardDataSuccessCallback = (result: SetClipboardDataSuccess) => void;
151
+ export type SetClipboardDataFail = UniError;
152
+ export type SetClipboardDataFailCallback = (result: SetClipboardDataFail) => void;
153
+ export type SetClipboardDataComplete = any;
154
+ export type SetClipboardDataCompleteCallback = (result: SetClipboardDataComplete) => void;
155
+ export type SetClipboardDataOptions = {
156
+ /**
157
+ * 需要设置的内容
158
+ */
159
+ data: string,
160
+ /**
161
+ * 是否弹出提示,默认弹出提示
162
+ * @type boolean
163
+ */
164
+ showToast?: boolean | null,
165
+ /**
166
+ * 成功返回的回调函数
167
+ */
168
+ success?: SetClipboardDataSuccessCallback | null,
169
+ /**
170
+ * 失败的回调函数
171
+ */
172
+ fail?: SetClipboardDataFailCallback | null,
173
+ /**
174
+ * 结束的回调函数(调用成功、失败都会执行)
175
+ */
176
+ complete?: SetClipboardDataCompleteCallback | null
177
+ };
178
+ export type GetClipboardData = (options: GetClipboardDataOptions) => void;
179
+ export type GetClipboardDataSuccess = {
180
+ /**
181
+ * 剪贴板的内容
182
+ */
183
+ data: string
184
+ };
185
+ export type GetClipboardDataSuccessCallback = (result: GetClipboardDataSuccess) => void;
186
+ export type GetClipboardDataFail = UniError;
187
+ export type GetClipboardDataFailCallback = (result: GetClipboardDataFail) => void;
188
+ export type GetClipboardDataComplete = any;
189
+ export type GetClipboardDataCompleteCallback = (result: GetClipboardDataComplete) => void;
190
+ export type GetClipboardDataOptions = {
191
+ /**
192
+ * 成功返回的回调函数
193
+ */
194
+ success?: GetClipboardDataSuccessCallback | null,
195
+ /**
196
+ * 失败的回调函数
197
+ */
198
+ fail?: GetClipboardDataFailCallback | null,
199
+ /**
200
+ * 结束的回调函数(调用成功、失败都会执行)
201
+ */
202
+ complete?: GetClipboardDataCompleteCallback | null
203
+ };
@@ -0,0 +1,20 @@
1
+ // 本文件为自动构建生成
2
+ import {
3
+ CreateIntersectionObserver as CreateIntersectionObserverOrigin,
4
+ CreateIntersectionObserverOptions as CreateIntersectionObserverOptionsOrigin,
5
+ ObserveNodeRect as ObserveNodeRectOrigin,
6
+ ObserveResult as ObserveResultOrigin,
7
+ ObserveCallback as ObserveCallbackOrigin,
8
+ IntersectionObserver as IntersectionObserverOrigin,
9
+ Uni as UniOrigin
10
+ } from './interface'
11
+
12
+ declare global {
13
+ type CreateIntersectionObserver = CreateIntersectionObserverOrigin
14
+ type CreateIntersectionObserverOptions = CreateIntersectionObserverOptionsOrigin
15
+ type ObserveNodeRect = ObserveNodeRectOrigin
16
+ type ObserveResult = ObserveResultOrigin
17
+ type ObserveCallback = ObserveCallbackOrigin
18
+ type IntersectionObserver = IntersectionObserverOrigin
19
+ interface Uni extends UniOrigin { }
20
+ }
@@ -0,0 +1,9 @@
1
+ // 本文件为自动构建生成
2
+ export {
3
+ CreateIntersectionObserver,
4
+ CreateIntersectionObserverOptions,
5
+ ObserveNodeRect,
6
+ ObserveResult,
7
+ ObserveCallback,
8
+ IntersectionObserver,
9
+ } from './interface'