@dcloudio/uni-app-x 0.7.32 → 0.7.33
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.
- package/package.json +1 -1
- package/types/app.d.ts +35 -1
- package/types/native/CSSStyleDeclaration.d.ts +72 -0
- package/types/native/DOMRect.d.ts +180 -0
- package/types/native/DrawableContext.d.ts +471 -4
- package/types/native/SnapshotOptions.d.ts +0 -1
- package/types/native/UniEvent.d.ts +23 -1
- package/types/page.d.ts +98 -83
- package/types/uni/uts-plugin-api/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/global.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/interface.d.ts +48 -0
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +781 -0
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -5
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +33 -33
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +3 -4
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +224 -5
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/global.d.ts +14 -8
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/index.d.ts +7 -4
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +1788 -183
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +686 -661
- package/types/uni-cloud/interface.d.ts +1 -1
|
@@ -1,49 +1,228 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @package io.dcloud.uniapp.runtime
|
|
1
|
+
/**
|
|
2
|
+
* @package io.dcloud.uniapp.runtime
|
|
3
|
+
* @uniPlatform {
|
|
4
|
+
* "app": {
|
|
5
|
+
* "android": {
|
|
6
|
+
* "osVer": "5.0",
|
|
7
|
+
* "uniVer": "x",
|
|
8
|
+
* "unixVer": "3.9"
|
|
9
|
+
* },
|
|
10
|
+
* "ios": {
|
|
11
|
+
* "osVer": "12.0",
|
|
12
|
+
* "uniVer": "x",
|
|
13
|
+
* "unixVer": "4.11"
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* "web": {
|
|
17
|
+
* "uniVer": "x",
|
|
18
|
+
* "unixVer": "x"
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
3
21
|
*/
|
|
4
|
-
|
|
5
22
|
export class DrawableContext {
|
|
6
23
|
/**
|
|
7
24
|
* 设置字体大小
|
|
8
25
|
* @defaultValue 10px
|
|
26
|
+
* @uniPlatform {
|
|
27
|
+
* "app": {
|
|
28
|
+
* "android": {
|
|
29
|
+
* "osVer": "5.0",
|
|
30
|
+
* "uniVer": "x",
|
|
31
|
+
* "unixVer": "3.9"
|
|
32
|
+
* },
|
|
33
|
+
* "ios": {
|
|
34
|
+
* "osVer": "12.0",
|
|
35
|
+
* "uniVer": "x",
|
|
36
|
+
* "unixVer": "4.11"
|
|
37
|
+
* }
|
|
38
|
+
* }
|
|
39
|
+
* "web": {
|
|
40
|
+
* "uniVer": "x",
|
|
41
|
+
* "unixVer": "x"
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
9
44
|
*/
|
|
10
45
|
font: string
|
|
11
46
|
/**
|
|
12
47
|
* 设置填充颜色
|
|
13
48
|
* @defaultValue #000 (黑色)
|
|
49
|
+
* @uniPlatform {
|
|
50
|
+
* "app": {
|
|
51
|
+
* "android": {
|
|
52
|
+
* "osVer": "5.0",
|
|
53
|
+
* "uniVer": "x",
|
|
54
|
+
* "unixVer": "3.9"
|
|
55
|
+
* },
|
|
56
|
+
* "ios": {
|
|
57
|
+
* "osVer": "12.0",
|
|
58
|
+
* "uniVer": "x",
|
|
59
|
+
* "unixVer": "4.11"
|
|
60
|
+
* }
|
|
61
|
+
* }
|
|
62
|
+
* "web": {
|
|
63
|
+
* "uniVer": "x",
|
|
64
|
+
* "unixVer": "x"
|
|
65
|
+
* }
|
|
66
|
+
* }
|
|
14
67
|
*/
|
|
15
68
|
fillStyle: string.ColorString
|
|
16
69
|
/**
|
|
17
70
|
* 指定如何绘制每一条线条末端的属性,可选值:`butt`线段末端以方形结束;`round`线段末端以圆形结束;`square`线段末端以方形结束,但是会增加一个一半宽度的矩形区域。
|
|
18
71
|
* @defaultValue butt
|
|
72
|
+
* @uniPlatform {
|
|
73
|
+
* "app": {
|
|
74
|
+
* "android": {
|
|
75
|
+
* "osVer": "5.0",
|
|
76
|
+
* "uniVer": "x",
|
|
77
|
+
* "unixVer": "3.9"
|
|
78
|
+
* },
|
|
79
|
+
* "ios": {
|
|
80
|
+
* "osVer": "12.0",
|
|
81
|
+
* "uniVer": "x",
|
|
82
|
+
* "unixVer": "4.11"
|
|
83
|
+
* }
|
|
84
|
+
* }
|
|
85
|
+
* "web": {
|
|
86
|
+
* "uniVer": "x",
|
|
87
|
+
* "unixVer": "x"
|
|
88
|
+
* }
|
|
89
|
+
* }
|
|
19
90
|
*/
|
|
20
91
|
lineCap: string
|
|
21
92
|
/**
|
|
22
93
|
* 设置虚线偏移量
|
|
94
|
+
* @uniPlatform {
|
|
95
|
+
* "app": {
|
|
96
|
+
* "android": {
|
|
97
|
+
* "osVer": "5.0",
|
|
98
|
+
* "uniVer": "x",
|
|
99
|
+
* "unixVer": "3.9"
|
|
100
|
+
* },
|
|
101
|
+
* "ios": {
|
|
102
|
+
* "osVer": "12.0",
|
|
103
|
+
* "uniVer": "x",
|
|
104
|
+
* "unixVer": "4.11"
|
|
105
|
+
* }
|
|
106
|
+
* }
|
|
107
|
+
* "web": {
|
|
108
|
+
* "uniVer": "x",
|
|
109
|
+
* "unixVer": "x"
|
|
110
|
+
* }
|
|
111
|
+
* }
|
|
23
112
|
*/
|
|
24
113
|
lineDashOffset: number
|
|
25
114
|
/**
|
|
26
115
|
* 设置 2 个长度不为 0 的线条相连部分如何连接在一起的属性,可选值:`bevel`斜角;`round`圆角;`miter`尖角。
|
|
27
116
|
* @defaultValue miter
|
|
117
|
+
* @uniPlatform {
|
|
118
|
+
* "app": {
|
|
119
|
+
* "android": {
|
|
120
|
+
* "osVer": "5.0",
|
|
121
|
+
* "uniVer": "x",
|
|
122
|
+
* "unixVer": "3.9"
|
|
123
|
+
* },
|
|
124
|
+
* "ios": {
|
|
125
|
+
* "osVer": "12.0",
|
|
126
|
+
* "uniVer": "x",
|
|
127
|
+
* "unixVer": "4.11"
|
|
128
|
+
* }
|
|
129
|
+
* }
|
|
130
|
+
* "web": {
|
|
131
|
+
* "uniVer": "x",
|
|
132
|
+
* "unixVer": "x"
|
|
133
|
+
* }
|
|
134
|
+
* }
|
|
28
135
|
*/
|
|
29
136
|
lineJoin: string
|
|
30
137
|
/**
|
|
31
138
|
* 设置线条的宽度
|
|
32
139
|
* @defaultValue 1px
|
|
140
|
+
* @uniPlatform {
|
|
141
|
+
* "app": {
|
|
142
|
+
* "android": {
|
|
143
|
+
* "osVer": "5.0",
|
|
144
|
+
* "uniVer": "x",
|
|
145
|
+
* "unixVer": "3.9"
|
|
146
|
+
* },
|
|
147
|
+
* "ios": {
|
|
148
|
+
* "osVer": "12.0",
|
|
149
|
+
* "uniVer": "x",
|
|
150
|
+
* "unixVer": "4.11"
|
|
151
|
+
* }
|
|
152
|
+
* }
|
|
153
|
+
* "web": {
|
|
154
|
+
* "uniVer": "x",
|
|
155
|
+
* "unixVer": "x"
|
|
156
|
+
* }
|
|
157
|
+
* }
|
|
33
158
|
*/
|
|
34
159
|
lineWidth: number
|
|
35
160
|
/**
|
|
36
161
|
* 设置边框的颜色
|
|
37
162
|
* @defaultValue #000 (黑色)
|
|
163
|
+
* @uniPlatform {
|
|
164
|
+
* "app": {
|
|
165
|
+
* "android": {
|
|
166
|
+
* "osVer": "5.0",
|
|
167
|
+
* "uniVer": "x",
|
|
168
|
+
* "unixVer": "3.9"
|
|
169
|
+
* },
|
|
170
|
+
* "ios": {
|
|
171
|
+
* "osVer": "12.0",
|
|
172
|
+
* "uniVer": "x",
|
|
173
|
+
* "unixVer": "4.11"
|
|
174
|
+
* }
|
|
175
|
+
* }
|
|
176
|
+
* "web": {
|
|
177
|
+
* "uniVer": "x",
|
|
178
|
+
* "unixVer": "x"
|
|
179
|
+
* }
|
|
180
|
+
* }
|
|
38
181
|
*/
|
|
39
182
|
strokeStyle: string.ColorString
|
|
40
183
|
/**
|
|
41
184
|
* 设置文本的对齐方式,可取值:`left`左对齐;`center`居中对齐;`right`右对齐。
|
|
42
185
|
* @defaultValue left
|
|
186
|
+
* @uniPlatform {
|
|
187
|
+
* "app": {
|
|
188
|
+
* "android": {
|
|
189
|
+
* "osVer": "5.0",
|
|
190
|
+
* "uniVer": "x",
|
|
191
|
+
* "unixVer": "3.9"
|
|
192
|
+
* },
|
|
193
|
+
* "ios": {
|
|
194
|
+
* "osVer": "12.0",
|
|
195
|
+
* "uniVer": "x",
|
|
196
|
+
* "unixVer": "4.11"
|
|
197
|
+
* }
|
|
198
|
+
* }
|
|
199
|
+
* "web": {
|
|
200
|
+
* "uniVer": "x",
|
|
201
|
+
* "unixVer": "x"
|
|
202
|
+
* }
|
|
203
|
+
* }
|
|
43
204
|
*/
|
|
44
205
|
textAlign: string
|
|
45
206
|
/**
|
|
46
207
|
* 创建一个新的空路径
|
|
208
|
+
* @uniPlatform {
|
|
209
|
+
* "app": {
|
|
210
|
+
* "android": {
|
|
211
|
+
* "osVer": "5.0",
|
|
212
|
+
* "uniVer": "x",
|
|
213
|
+
* "unixVer": "3.9"
|
|
214
|
+
* },
|
|
215
|
+
* "ios": {
|
|
216
|
+
* "osVer": "12.0",
|
|
217
|
+
* "uniVer": "x",
|
|
218
|
+
* "unixVer": "4.11"
|
|
219
|
+
* }
|
|
220
|
+
* }
|
|
221
|
+
* "web": {
|
|
222
|
+
* "uniVer": "x",
|
|
223
|
+
* "unixVer": "x"
|
|
224
|
+
* }
|
|
225
|
+
* }
|
|
47
226
|
*/
|
|
48
227
|
beginPath(): void
|
|
49
228
|
|
|
@@ -55,6 +234,24 @@ export class DrawableContext {
|
|
|
55
234
|
* @param {number} startAngle 圆弧的起始点,x 轴方向开始计算,单位为弧度
|
|
56
235
|
* @param {number} endAngle 圆弧的终点,单位为弧度
|
|
57
236
|
* @param {number} [anticlockwise=true] 圆弧绘制方向,true:逆时针绘制,false:顺时针绘制。
|
|
237
|
+
* @uniPlatform {
|
|
238
|
+
* "app": {
|
|
239
|
+
* "android": {
|
|
240
|
+
* "osVer": "5.0",
|
|
241
|
+
* "uniVer": "x",
|
|
242
|
+
* "unixVer": "3.9"
|
|
243
|
+
* },
|
|
244
|
+
* "ios": {
|
|
245
|
+
* "osVer": "12.0",
|
|
246
|
+
* "uniVer": "x",
|
|
247
|
+
* "unixVer": "4.11"
|
|
248
|
+
* }
|
|
249
|
+
* }
|
|
250
|
+
* "web": {
|
|
251
|
+
* "uniVer": "x",
|
|
252
|
+
* "unixVer": "x"
|
|
253
|
+
* }
|
|
254
|
+
* }
|
|
58
255
|
*/
|
|
59
256
|
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean | null): void
|
|
60
257
|
|
|
@@ -62,6 +259,24 @@ export class DrawableContext {
|
|
|
62
259
|
* 将一个新的路径的起始点移动到 (x,y) 坐标
|
|
63
260
|
* @param {number} x 点的X轴坐标
|
|
64
261
|
* @param {number} y 点的Y轴坐标
|
|
262
|
+
* @uniPlatform {
|
|
263
|
+
* "app": {
|
|
264
|
+
* "android": {
|
|
265
|
+
* "osVer": "5.0",
|
|
266
|
+
* "uniVer": "x",
|
|
267
|
+
* "unixVer": "3.9"
|
|
268
|
+
* },
|
|
269
|
+
* "ios": {
|
|
270
|
+
* "osVer": "12.0",
|
|
271
|
+
* "uniVer": "x",
|
|
272
|
+
* "unixVer": "4.11"
|
|
273
|
+
* }
|
|
274
|
+
* }
|
|
275
|
+
* "web": {
|
|
276
|
+
* "uniVer": "x",
|
|
277
|
+
* "unixVer": "x"
|
|
278
|
+
* }
|
|
279
|
+
* }
|
|
65
280
|
*/
|
|
66
281
|
moveTo(x: number, y: number): void
|
|
67
282
|
|
|
@@ -71,6 +286,24 @@ export class DrawableContext {
|
|
|
71
286
|
* @param {number} y 矩形起点的Y轴坐标
|
|
72
287
|
* @param {number} width 矩形宽度
|
|
73
288
|
* @param {number} height 矩形高度
|
|
289
|
+
* @uniPlatform {
|
|
290
|
+
* "app": {
|
|
291
|
+
* "android": {
|
|
292
|
+
* "osVer": "5.0",
|
|
293
|
+
* "uniVer": "x",
|
|
294
|
+
* "unixVer": "3.9"
|
|
295
|
+
* },
|
|
296
|
+
* "ios": {
|
|
297
|
+
* "osVer": "12.0",
|
|
298
|
+
* "uniVer": "x",
|
|
299
|
+
* "unixVer": "4.11"
|
|
300
|
+
* }
|
|
301
|
+
* }
|
|
302
|
+
* "web": {
|
|
303
|
+
* "uniVer": "x",
|
|
304
|
+
* "unixVer": "x"
|
|
305
|
+
* }
|
|
306
|
+
* }
|
|
74
307
|
*/
|
|
75
308
|
rect(x: number, y: number, width: number, height: number): void
|
|
76
309
|
|
|
@@ -78,14 +311,68 @@ export class DrawableContext {
|
|
|
78
311
|
* 将路径的最后一个点连接到 (x,y) 坐标
|
|
79
312
|
* @param {number} x 线终点的X轴坐标
|
|
80
313
|
* @param {number} y 线终点的Y轴坐标
|
|
314
|
+
* @uniPlatform {
|
|
315
|
+
* "app": {
|
|
316
|
+
* "android": {
|
|
317
|
+
* "osVer": "5.0",
|
|
318
|
+
* "uniVer": "x",
|
|
319
|
+
* "unixVer": "3.9"
|
|
320
|
+
* },
|
|
321
|
+
* "ios": {
|
|
322
|
+
* "osVer": "12.0",
|
|
323
|
+
* "uniVer": "x",
|
|
324
|
+
* "unixVer": "4.11"
|
|
325
|
+
* }
|
|
326
|
+
* }
|
|
327
|
+
* "web": {
|
|
328
|
+
* "uniVer": "x",
|
|
329
|
+
* "unixVer": "x"
|
|
330
|
+
* }
|
|
331
|
+
* }
|
|
81
332
|
*/
|
|
82
333
|
lineTo(x: number, y: number): void
|
|
83
334
|
/**
|
|
84
335
|
* 闭合路径,将最后一个点与起点连接起来。如果图形已经封闭,或者只有一个点,那么此方法不会产生任何效果。
|
|
336
|
+
* @uniPlatform {
|
|
337
|
+
* "app": {
|
|
338
|
+
* "android": {
|
|
339
|
+
* "osVer": "5.0",
|
|
340
|
+
* "uniVer": "x",
|
|
341
|
+
* "unixVer": "3.9"
|
|
342
|
+
* },
|
|
343
|
+
* "ios": {
|
|
344
|
+
* "osVer": "12.0",
|
|
345
|
+
* "uniVer": "x",
|
|
346
|
+
* "unixVer": "4.11"
|
|
347
|
+
* }
|
|
348
|
+
* }
|
|
349
|
+
* "web": {
|
|
350
|
+
* "uniVer": "x",
|
|
351
|
+
* "unixVer": "x"
|
|
352
|
+
* }
|
|
353
|
+
* }
|
|
85
354
|
*/
|
|
86
355
|
closePath(): void
|
|
87
356
|
/**
|
|
88
357
|
* 绘制当前或已经存在的路径的边框。
|
|
358
|
+
* @uniPlatform {
|
|
359
|
+
* "app": {
|
|
360
|
+
* "android": {
|
|
361
|
+
* "osVer": "5.0",
|
|
362
|
+
* "uniVer": "x",
|
|
363
|
+
* "unixVer": "3.9"
|
|
364
|
+
* },
|
|
365
|
+
* "ios": {
|
|
366
|
+
* "osVer": "12.0",
|
|
367
|
+
* "uniVer": "x",
|
|
368
|
+
* "unixVer": "4.11"
|
|
369
|
+
* }
|
|
370
|
+
* }
|
|
371
|
+
* "web": {
|
|
372
|
+
* "uniVer": "x",
|
|
373
|
+
* "unixVer": "x"
|
|
374
|
+
* }
|
|
375
|
+
* }
|
|
89
376
|
*/
|
|
90
377
|
stroke(): void
|
|
91
378
|
/**
|
|
@@ -94,6 +381,24 @@ export class DrawableContext {
|
|
|
94
381
|
* @param {number} y 矩形起点的Y轴坐标
|
|
95
382
|
* @param {number} width 矩形宽度
|
|
96
383
|
* @param {number} height 矩形高度
|
|
384
|
+
* @uniPlatform {
|
|
385
|
+
* "app": {
|
|
386
|
+
* "android": {
|
|
387
|
+
* "osVer": "5.0",
|
|
388
|
+
* "uniVer": "x",
|
|
389
|
+
* "unixVer": "3.9"
|
|
390
|
+
* },
|
|
391
|
+
* "ios": {
|
|
392
|
+
* "osVer": "12.0",
|
|
393
|
+
* "uniVer": "x",
|
|
394
|
+
* "unixVer": "4.11"
|
|
395
|
+
* }
|
|
396
|
+
* }
|
|
397
|
+
* "web": {
|
|
398
|
+
* "uniVer": "x",
|
|
399
|
+
* "unixVer": "x"
|
|
400
|
+
* }
|
|
401
|
+
* }
|
|
97
402
|
*/
|
|
98
403
|
strokeRect(x: number, y: number, width: number, height: number): void
|
|
99
404
|
/**
|
|
@@ -101,12 +406,48 @@ export class DrawableContext {
|
|
|
101
406
|
* @param {string} text 要绘制的字符
|
|
102
407
|
* @param {number} x 字符开始绘制的X轴坐标
|
|
103
408
|
* @param {number} y 字符开始绘制的Y轴坐标
|
|
409
|
+
* @uniPlatform {
|
|
410
|
+
* "app": {
|
|
411
|
+
* "android": {
|
|
412
|
+
* "osVer": "5.0",
|
|
413
|
+
* "uniVer": "x",
|
|
414
|
+
* "unixVer": "3.9"
|
|
415
|
+
* },
|
|
416
|
+
* "ios": {
|
|
417
|
+
* "osVer": "12.0",
|
|
418
|
+
* "uniVer": "x",
|
|
419
|
+
* "unixVer": "4.11"
|
|
420
|
+
* }
|
|
421
|
+
* }
|
|
422
|
+
* "web": {
|
|
423
|
+
* "uniVer": "x",
|
|
424
|
+
* "unixVer": "x"
|
|
425
|
+
* }
|
|
426
|
+
* }
|
|
104
427
|
*/
|
|
105
428
|
strokeText(text: string, x: number, y: number): void
|
|
106
429
|
|
|
107
430
|
/**
|
|
108
431
|
* 填充当前或已存在的路径
|
|
109
432
|
* @param {string} [fillRule=nonzero] 填充规则。可取值:`nonzero`非零环绕规则;`evenodd`奇偶环绕规则。
|
|
433
|
+
* @uniPlatform {
|
|
434
|
+
* "app": {
|
|
435
|
+
* "android": {
|
|
436
|
+
* "osVer": "5.0",
|
|
437
|
+
* "uniVer": "x",
|
|
438
|
+
* "unixVer": "3.9"
|
|
439
|
+
* },
|
|
440
|
+
* "ios": {
|
|
441
|
+
* "osVer": "12.0",
|
|
442
|
+
* "uniVer": "x",
|
|
443
|
+
* "unixVer": "4.11"
|
|
444
|
+
* }
|
|
445
|
+
* }
|
|
446
|
+
* "web": {
|
|
447
|
+
* "uniVer": "x",
|
|
448
|
+
* "unixVer": "x"
|
|
449
|
+
* }
|
|
450
|
+
* }
|
|
110
451
|
*/
|
|
111
452
|
fill(fillRule?: string | null): void
|
|
112
453
|
|
|
@@ -116,6 +457,24 @@ export class DrawableContext {
|
|
|
116
457
|
* @param {number} y 矩形起点的Y轴坐标
|
|
117
458
|
* @param {number} width 矩形宽度
|
|
118
459
|
* @param {number} height 矩形高度
|
|
460
|
+
* @uniPlatform {
|
|
461
|
+
* "app": {
|
|
462
|
+
* "android": {
|
|
463
|
+
* "osVer": "5.0",
|
|
464
|
+
* "uniVer": "x",
|
|
465
|
+
* "unixVer": "3.9"
|
|
466
|
+
* },
|
|
467
|
+
* "ios": {
|
|
468
|
+
* "osVer": "12.0",
|
|
469
|
+
* "uniVer": "x",
|
|
470
|
+
* "unixVer": "4.11"
|
|
471
|
+
* }
|
|
472
|
+
* }
|
|
473
|
+
* "web": {
|
|
474
|
+
* "uniVer": "x",
|
|
475
|
+
* "unixVer": "x"
|
|
476
|
+
* }
|
|
477
|
+
* }
|
|
119
478
|
*/
|
|
120
479
|
fillRect(x: number, y: number, width: number, height: number): void
|
|
121
480
|
|
|
@@ -124,19 +483,91 @@ export class DrawableContext {
|
|
|
124
483
|
* @param {string} text 要绘制的字符
|
|
125
484
|
* @param {number} x 字符开始绘制的X轴坐标
|
|
126
485
|
* @param {number} y 字符开始绘制的Y轴坐标
|
|
486
|
+
* @uniPlatform {
|
|
487
|
+
* "app": {
|
|
488
|
+
* "android": {
|
|
489
|
+
* "osVer": "5.0",
|
|
490
|
+
* "uniVer": "x",
|
|
491
|
+
* "unixVer": "3.9"
|
|
492
|
+
* },
|
|
493
|
+
* "ios": {
|
|
494
|
+
* "osVer": "12.0",
|
|
495
|
+
* "uniVer": "x",
|
|
496
|
+
* "unixVer": "4.11"
|
|
497
|
+
* }
|
|
498
|
+
* }
|
|
499
|
+
* "web": {
|
|
500
|
+
* "uniVer": "x",
|
|
501
|
+
* "unixVer": "x"
|
|
502
|
+
* }
|
|
503
|
+
* }
|
|
127
504
|
*/
|
|
128
505
|
fillText(text: string, x: number, y: number): void
|
|
129
506
|
/**
|
|
130
507
|
* 清空绘制数据
|
|
508
|
+
* @uniPlatform {
|
|
509
|
+
* "app": {
|
|
510
|
+
* "android": {
|
|
511
|
+
* "osVer": "5.0",
|
|
512
|
+
* "uniVer": "x",
|
|
513
|
+
* "unixVer": "3.9"
|
|
514
|
+
* },
|
|
515
|
+
* "ios": {
|
|
516
|
+
* "osVer": "12.0",
|
|
517
|
+
* "uniVer": "x",
|
|
518
|
+
* "unixVer": "4.11"
|
|
519
|
+
* }
|
|
520
|
+
* }
|
|
521
|
+
* "web": {
|
|
522
|
+
* "uniVer": "x",
|
|
523
|
+
* "unixVer": "x"
|
|
524
|
+
* }
|
|
525
|
+
* }
|
|
131
526
|
*/
|
|
132
527
|
reset(): void
|
|
133
528
|
/**
|
|
134
529
|
* 将所有绘制内容更新到画布上
|
|
530
|
+
* @uniPlatform {
|
|
531
|
+
* "app": {
|
|
532
|
+
* "android": {
|
|
533
|
+
* "osVer": "5.0",
|
|
534
|
+
* "uniVer": "x",
|
|
535
|
+
* "unixVer": "3.9"
|
|
536
|
+
* },
|
|
537
|
+
* "ios": {
|
|
538
|
+
* "osVer": "12.0",
|
|
539
|
+
* "uniVer": "x",
|
|
540
|
+
* "unixVer": "4.11"
|
|
541
|
+
* }
|
|
542
|
+
* }
|
|
543
|
+
* "web": {
|
|
544
|
+
* "uniVer": "x",
|
|
545
|
+
* "unixVer": "x"
|
|
546
|
+
* }
|
|
547
|
+
* }
|
|
135
548
|
*/
|
|
136
549
|
update(): void
|
|
137
550
|
/**
|
|
138
551
|
* 设置虚线样式
|
|
139
552
|
* @param {Array<number>} segments 一组描述交替绘制线段和间距长度的数字。
|
|
553
|
+
* @uniPlatform {
|
|
554
|
+
* "app": {
|
|
555
|
+
* "android": {
|
|
556
|
+
* "osVer": "5.0",
|
|
557
|
+
* "uniVer": "x",
|
|
558
|
+
* "unixVer": "3.9"
|
|
559
|
+
* },
|
|
560
|
+
* "ios": {
|
|
561
|
+
* "osVer": "12.0",
|
|
562
|
+
* "uniVer": "x",
|
|
563
|
+
* "unixVer": "4.11"
|
|
564
|
+
* }
|
|
565
|
+
* }
|
|
566
|
+
* "web": {
|
|
567
|
+
* "uniVer": "x",
|
|
568
|
+
* "unixVer": "x"
|
|
569
|
+
* }
|
|
570
|
+
* }
|
|
140
571
|
*/
|
|
141
572
|
setLineDash(segments: Array<number>): void
|
|
142
573
|
|
|
@@ -147,6 +578,24 @@ export class DrawableContext {
|
|
|
147
578
|
* @param {number} x2 第二个控制点的 x 轴坐标
|
|
148
579
|
* @param {number} y2 第二个控制点的 y 轴坐标
|
|
149
580
|
* @param {number} radius 圆弧的半径
|
|
581
|
+
* @uniPlatform {
|
|
582
|
+
* "app": {
|
|
583
|
+
* "android": {
|
|
584
|
+
* "osVer": "5.0",
|
|
585
|
+
* "uniVer": "x",
|
|
586
|
+
* "unixVer": "3.9"
|
|
587
|
+
* },
|
|
588
|
+
* "ios": {
|
|
589
|
+
* "osVer": "12.0",
|
|
590
|
+
* "uniVer": "x",
|
|
591
|
+
* "unixVer": "4.11"
|
|
592
|
+
* }
|
|
593
|
+
* }
|
|
594
|
+
* "web": {
|
|
595
|
+
* "uniVer": "x",
|
|
596
|
+
* "unixVer": "x"
|
|
597
|
+
* }
|
|
598
|
+
* }
|
|
150
599
|
*/
|
|
151
600
|
// arcTo(x1 : number, y1 : number, x2 : number, y2 : number, radius : number) : void
|
|
152
601
|
|
|
@@ -158,6 +607,24 @@ export class DrawableContext {
|
|
|
158
607
|
* @param {number} cp2y 第二个贝塞尔控制点的 y 坐标
|
|
159
608
|
* @param {number} x 结束点的 x 坐标
|
|
160
609
|
* @param {number} y 结束点的 y 坐标
|
|
610
|
+
* @uniPlatform {
|
|
611
|
+
* "app": {
|
|
612
|
+
* "android": {
|
|
613
|
+
* "osVer": "5.0",
|
|
614
|
+
* "uniVer": "x",
|
|
615
|
+
* "unixVer": "3.9"
|
|
616
|
+
* },
|
|
617
|
+
* "ios": {
|
|
618
|
+
* "osVer": "12.0",
|
|
619
|
+
* "uniVer": "x",
|
|
620
|
+
* "unixVer": "4.11"
|
|
621
|
+
* }
|
|
622
|
+
* }
|
|
623
|
+
* "web": {
|
|
624
|
+
* "uniVer": "x",
|
|
625
|
+
* "unixVer": "x"
|
|
626
|
+
* }
|
|
627
|
+
* }
|
|
161
628
|
*/
|
|
162
629
|
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void
|
|
163
|
-
}
|
|
630
|
+
}
|
|
@@ -91,9 +91,31 @@ export class UniThemeChangeEvent extends UniAppEvent {
|
|
|
91
91
|
readonly theme: string
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
/**
|
|
95
|
+
* app异常
|
|
96
|
+
* @package io.dcloud.uniapp.runtime
|
|
97
|
+
* @uniPlatform {
|
|
98
|
+
* "app": {
|
|
99
|
+
* "android": {
|
|
100
|
+
* "osVer": "5.0",
|
|
101
|
+
* "uniVer": "x",
|
|
102
|
+
* "unixVer": "4.31"
|
|
103
|
+
* },
|
|
104
|
+
* "ios": {
|
|
105
|
+
* "osVer": "12.0",
|
|
106
|
+
* "uniVer": "x",
|
|
107
|
+
* "unixVer": "x"
|
|
108
|
+
* }
|
|
109
|
+
* }
|
|
110
|
+
* "web": {
|
|
111
|
+
* "uniVer": "√",
|
|
112
|
+
* "unixVer": "4.0"
|
|
113
|
+
* }
|
|
114
|
+
* }
|
|
115
|
+
*/
|
|
94
116
|
export class UniAppErrorEvent extends UniAppEvent {
|
|
95
117
|
/**
|
|
96
118
|
* 错误日志堆栈
|
|
97
119
|
*/
|
|
98
|
-
readonly error:
|
|
120
|
+
readonly error: Throwable
|
|
99
121
|
}
|