@dcloudio/uni-app-x 0.7.22 → 0.7.23
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 +16 -16
- package/types/native/CanvasRenderingContext2D.d.ts +1697 -111
- package/types/native/IUniElement.d.ts +73 -4
- package/types/native/Path2D.d.ts +41 -13
- package/types/native/UniProvider.d.ts +17 -0
- package/types/native/UniVideoElement.d.ts +13 -5
- package/types/native/global.d.ts +18 -0
- package/types/uni/uts-plugin-api/global.d.ts +1 -1
- package/types/uni/uts-plugin-api/index.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +14 -4
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +78 -14
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +9 -3
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +56 -15
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +191 -65
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +7 -7
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +614 -169
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +12 -6
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +6 -3
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +249 -103
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +9 -2
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +49 -11
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +33 -16
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +80 -33
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +63 -17
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +307 -20
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +213 -21
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +554 -24
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +120 -0
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +28 -8
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +766 -364
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +14 -4
- package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/global.d.ts +0 -12
- package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/index.d.ts +0 -5
- package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/interface.d.ts +0 -50
|
@@ -1569,9 +1569,78 @@ export interface UniImageElement extends UniElement {
|
|
|
1569
1569
|
* }
|
|
1570
1570
|
* }
|
|
1571
1571
|
*/
|
|
1572
|
-
onload
|
|
1572
|
+
onload(): void | null
|
|
1573
|
+
}
|
|
1574
|
+
/**
|
|
1575
|
+
* image对象, 用于 canvas 绘制
|
|
1576
|
+
* @package io.dcloud.uniapp.runtime
|
|
1577
|
+
* @uniPlatform {
|
|
1578
|
+
* "app": {
|
|
1579
|
+
* "android": {
|
|
1580
|
+
* "osVer": "5.0",
|
|
1581
|
+
* "uniVer": "x",
|
|
1582
|
+
* "unixVer": "4.25"
|
|
1583
|
+
* },
|
|
1584
|
+
* "ios": {
|
|
1585
|
+
* "osVer": "12.0",
|
|
1586
|
+
* "uniVer": "x",
|
|
1587
|
+
* "unixVer": "4.25"
|
|
1588
|
+
* }
|
|
1589
|
+
* },
|
|
1590
|
+
* "web": {
|
|
1591
|
+
* "uniVer": "√",
|
|
1592
|
+
* "unixVer": "4.0"
|
|
1593
|
+
* }
|
|
1594
|
+
* }
|
|
1595
|
+
*/
|
|
1596
|
+
export interface Image extends UniElement {
|
|
1597
|
+
/**
|
|
1598
|
+
* 图片url
|
|
1599
|
+
* @uniPlatform {
|
|
1600
|
+
* "app": {
|
|
1601
|
+
* "android": {
|
|
1602
|
+
* "osVer": "5.0",
|
|
1603
|
+
* "uniVer": "x",
|
|
1604
|
+
* "unixVer": "4.25"
|
|
1605
|
+
* },
|
|
1606
|
+
* "ios": {
|
|
1607
|
+
* "osVer": "12.0",
|
|
1608
|
+
* "uniVer": "x",
|
|
1609
|
+
* "unixVer": "4.25"
|
|
1610
|
+
* "unixUtsPlugin": "x"
|
|
1611
|
+
* }
|
|
1612
|
+
* },
|
|
1613
|
+
* "web": {
|
|
1614
|
+
* "uniVer": "√",
|
|
1615
|
+
* "unixVer": "4.0"
|
|
1616
|
+
* }
|
|
1617
|
+
* }
|
|
1618
|
+
*/
|
|
1619
|
+
src: string
|
|
1620
|
+
/**
|
|
1621
|
+
* 图片加载完成事件
|
|
1622
|
+
* @uniPlatform {
|
|
1623
|
+
* "app": {
|
|
1624
|
+
* "android": {
|
|
1625
|
+
* "osVer": "5.0",
|
|
1626
|
+
* "uniVer": "x",
|
|
1627
|
+
* "unixVer": "4.25"
|
|
1628
|
+
* },
|
|
1629
|
+
* "ios": {
|
|
1630
|
+
* "osVer": "12.0",
|
|
1631
|
+
* "uniVer": "x",
|
|
1632
|
+
* "unixVer": "4.25"
|
|
1633
|
+
* "unixUtsPlugin": "x"
|
|
1634
|
+
* }
|
|
1635
|
+
* },
|
|
1636
|
+
* "web": {
|
|
1637
|
+
* "uniVer": "√",
|
|
1638
|
+
* "unixVer": "4.0"
|
|
1639
|
+
* }
|
|
1640
|
+
* }
|
|
1641
|
+
*/
|
|
1642
|
+
onload(): void | null
|
|
1573
1643
|
}
|
|
1574
|
-
export type Image = UniImageElement
|
|
1575
1644
|
/**
|
|
1576
1645
|
* input元素对象
|
|
1577
1646
|
* @package io.dcloud.uniapp.runtime
|
|
@@ -2736,7 +2805,7 @@ export interface UniCanvasElement extends UniElement {
|
|
|
2736
2805
|
* },
|
|
2737
2806
|
* "web": {
|
|
2738
2807
|
* "uniVer": "√",
|
|
2739
|
-
* "unixVer": "4.
|
|
2808
|
+
* "unixVer": "4.21"
|
|
2740
2809
|
* }
|
|
2741
2810
|
* }
|
|
2742
2811
|
*/
|
|
@@ -2761,7 +2830,7 @@ export interface UniCanvasElement extends UniElement {
|
|
|
2761
2830
|
* },
|
|
2762
2831
|
* "web": {
|
|
2763
2832
|
* "uniVer": "√",
|
|
2764
|
-
* "unixVer": "4.
|
|
2833
|
+
* "unixVer": "4.21"
|
|
2765
2834
|
* }
|
|
2766
2835
|
* }
|
|
2767
2836
|
*/
|
package/types/native/Path2D.d.ts
CHANGED
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @package io.dcloud.uniapp.runtime
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Path2D用来声明路径,用来在canvas中根据需要创建可以保留并重用的路径, 此路径会被CanvasRenderingContext2D对象使用
|
|
6
|
+
* @uniPlatform {
|
|
7
|
+
* "app": {
|
|
8
|
+
* "android": {
|
|
9
|
+
* "osVer": "5.0",
|
|
10
|
+
* "uniVer": "x",
|
|
11
|
+
* "unixVer": "4.25"
|
|
12
|
+
* },
|
|
13
|
+
* "ios": {
|
|
14
|
+
* "osVer": "12.0",
|
|
15
|
+
* "uniVer": "x",
|
|
16
|
+
* "unixVer": "4.25"
|
|
17
|
+
* }
|
|
18
|
+
* }
|
|
19
|
+
* "web": {
|
|
20
|
+
* "uniVer": "√",
|
|
21
|
+
* "unixVer": "4.0"
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
*/
|
|
5
25
|
export class Path2D {
|
|
6
26
|
/**
|
|
7
27
|
* 闭合路径,将最后一个点与起点连接起来。如果图形已经封闭,或者只有一个点,那么此方法不会产生任何效果。
|
|
@@ -20,7 +40,7 @@ export class Path2D {
|
|
|
20
40
|
* }
|
|
21
41
|
* "web": {
|
|
22
42
|
* "uniVer": "√",
|
|
23
|
-
* "unixVer": "4.
|
|
43
|
+
* "unixVer": "4.0"
|
|
24
44
|
* }
|
|
25
45
|
* }
|
|
26
46
|
*/
|
|
@@ -45,7 +65,7 @@ export class Path2D {
|
|
|
45
65
|
* }
|
|
46
66
|
* "web": {
|
|
47
67
|
* "uniVer": "√",
|
|
48
|
-
* "unixVer": "4.
|
|
68
|
+
* "unixVer": "4.0"
|
|
49
69
|
* }
|
|
50
70
|
* }
|
|
51
71
|
*/
|
|
@@ -70,7 +90,7 @@ export class Path2D {
|
|
|
70
90
|
* }
|
|
71
91
|
* "web": {
|
|
72
92
|
* "uniVer": "√",
|
|
73
|
-
* "unixVer": "4.
|
|
93
|
+
* "unixVer": "4.0"
|
|
74
94
|
* }
|
|
75
95
|
* }
|
|
76
96
|
*/
|
|
@@ -99,7 +119,7 @@ export class Path2D {
|
|
|
99
119
|
* }
|
|
100
120
|
* "web": {
|
|
101
121
|
* "uniVer": "√",
|
|
102
|
-
* "unixVer": "4.
|
|
122
|
+
* "unixVer": "4.0"
|
|
103
123
|
* }
|
|
104
124
|
* }
|
|
105
125
|
*/
|
|
@@ -108,7 +128,7 @@ export class Path2D {
|
|
|
108
128
|
/**
|
|
109
129
|
* 创建二次贝塞尔曲线路径
|
|
110
130
|
* @param {number} cpx 贝塞尔控制点的 x 坐标
|
|
111
|
-
* @param {number} cpy 贝塞尔控制点的 y 坐标
|
|
131
|
+
* @param {number} cpy 贝塞尔控制点的 y 坐标
|
|
112
132
|
* @param {number} x 结束点的 x 坐标
|
|
113
133
|
* @param {number} y 结束点的 y 坐标
|
|
114
134
|
* @uniPlatform {
|
|
@@ -126,7 +146,7 @@ export class Path2D {
|
|
|
126
146
|
* }
|
|
127
147
|
* "web": {
|
|
128
148
|
* "uniVer": "√",
|
|
129
|
-
* "unixVer": "4.
|
|
149
|
+
* "unixVer": "4.0"
|
|
130
150
|
* }
|
|
131
151
|
* }
|
|
132
152
|
*/
|
|
@@ -155,7 +175,7 @@ export class Path2D {
|
|
|
155
175
|
* }
|
|
156
176
|
* "web": {
|
|
157
177
|
* "uniVer": "√",
|
|
158
|
-
* "unixVer": "4.
|
|
178
|
+
* "unixVer": "4.0"
|
|
159
179
|
* }
|
|
160
180
|
* }
|
|
161
181
|
*/
|
|
@@ -183,14 +203,22 @@ export class Path2D {
|
|
|
183
203
|
* }
|
|
184
204
|
* "web": {
|
|
185
205
|
* "uniVer": "√",
|
|
186
|
-
* "unixVer": "4.
|
|
206
|
+
* "unixVer": "4.0"
|
|
187
207
|
* }
|
|
188
208
|
* }
|
|
189
209
|
*/
|
|
190
210
|
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void
|
|
191
|
-
|
|
211
|
+
|
|
192
212
|
/**
|
|
193
213
|
* 添加椭圆路径。椭圆的圆心在(x,y)位置,半径分别是radiusX 和 radiusY,按照anticlockwise(默认顺时针)指定的方向,从 startAngle 开始绘制,到 endAngle 结束
|
|
214
|
+
* @param {number} x 椭圆圆心的 x 轴(水平)坐标
|
|
215
|
+
* @param {number} y 椭圆圆心的 y 轴(垂直)坐标
|
|
216
|
+
* @param {number} radiusX 椭圆长轴的半径。必须为非负数
|
|
217
|
+
* @param {number} radiusY 椭圆短轴的半径。必须为非负数。
|
|
218
|
+
* @param {number} rotation 椭圆的旋转角度,以弧度表示。
|
|
219
|
+
* @param {number} startAngle 椭圆弧的起始偏心角,从正 x 轴沿顺时针测量,用弧度表示。
|
|
220
|
+
* @param {number} endAngle 椭圆弧的结束偏心角,从正 x 轴沿顺时针测量,用弧度表示。
|
|
221
|
+
* @param {number} anticlockwise 一个可选的布尔值,如果为 true,则逆时针绘制椭圆弧。默认值为 false(顺时针)。
|
|
194
222
|
* @uniPlatform {
|
|
195
223
|
* "app": {
|
|
196
224
|
* "android": {
|
|
@@ -206,7 +234,7 @@ export class Path2D {
|
|
|
206
234
|
* }
|
|
207
235
|
* "web": {
|
|
208
236
|
* "uniVer": "√",
|
|
209
|
-
* "unixVer": "4.
|
|
237
|
+
* "unixVer": "4.0"
|
|
210
238
|
* }
|
|
211
239
|
* }
|
|
212
240
|
*/
|
|
@@ -233,9 +261,9 @@ export class Path2D {
|
|
|
233
261
|
* }
|
|
234
262
|
* "web": {
|
|
235
263
|
* "uniVer": "√",
|
|
236
|
-
* "unixVer": "4.
|
|
264
|
+
* "unixVer": "4.0"
|
|
237
265
|
* }
|
|
238
266
|
* }
|
|
239
267
|
*/
|
|
240
268
|
rect(x: number, y: number, width: number, height: number): void
|
|
241
|
-
}
|
|
269
|
+
}
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 服务供应商
|
|
3
|
+
* @uniPlatform {
|
|
4
|
+
* "app": {
|
|
5
|
+
* "android": {
|
|
6
|
+
* "osVer": "5.0",
|
|
7
|
+
* "uniVer": "x",
|
|
8
|
+
* "unixVer": "4.18"
|
|
9
|
+
* },
|
|
10
|
+
* "ios": {
|
|
11
|
+
* "osVer": "12.0",
|
|
12
|
+
* "uniVer": "x",
|
|
13
|
+
* "unixVer": "4.18"
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
1
18
|
export interface UniProvider {
|
|
2
19
|
/**
|
|
3
20
|
* 服务供应商标识
|
|
@@ -3,7 +3,6 @@ import { UniElement } from "./IUniElement"
|
|
|
3
3
|
/**
|
|
4
4
|
* video元素对象
|
|
5
5
|
* @package io.dcloud.uniapp.runtime
|
|
6
|
-
* @autodoc false
|
|
7
6
|
*/
|
|
8
7
|
export interface UniVideoElement extends UniElement {
|
|
9
8
|
/**
|
|
@@ -67,9 +66,18 @@ export type Danmu = {
|
|
|
67
66
|
export type RequestFullScreenOptions = {
|
|
68
67
|
/**
|
|
69
68
|
* direction
|
|
70
|
-
* - 0: 正常竖向
|
|
71
|
-
* - 90: 屏幕逆时针90度
|
|
72
|
-
* - -90: 屏幕顺时针90度
|
|
73
69
|
*/
|
|
74
|
-
direction?:
|
|
70
|
+
direction?:
|
|
71
|
+
/**
|
|
72
|
+
* 正常竖向
|
|
73
|
+
*/
|
|
74
|
+
0 |
|
|
75
|
+
/**
|
|
76
|
+
* 屏幕逆时针90度
|
|
77
|
+
*/
|
|
78
|
+
90 |
|
|
79
|
+
/**
|
|
80
|
+
* 屏幕顺时针90度
|
|
81
|
+
*/
|
|
82
|
+
-90 | null
|
|
75
83
|
}
|
package/types/native/global.d.ts
CHANGED
|
@@ -204,6 +204,15 @@ import {
|
|
|
204
204
|
DrawableContext as DrawableContextOrigin,
|
|
205
205
|
DOMRect as DOMRectOrigin,
|
|
206
206
|
TextMetrics as TextMetricsOrigin,
|
|
207
|
+
CanvasDirection as CanvasDirectionOrigin,
|
|
208
|
+
CanvasLineCap as CanvasLineCapOrigin,
|
|
209
|
+
CanvasFontStretch as CanvasFontStretchOrigin,
|
|
210
|
+
CanvasGlobalCompositeOperation as CanvasGlobalCompositeOperationOrigin,
|
|
211
|
+
CanvasSmoothingQuality as CanvasSmoothingQualityOrigin,
|
|
212
|
+
CanvasLineJoin as CanvasLineJoinOrigin,
|
|
213
|
+
CanvasTextAlign as CanvasTextAlignOrigin,
|
|
214
|
+
CanvasTextBaseline as CanvasTextBaselineOrigin,
|
|
215
|
+
CanvasTextRendering as CanvasTextRenderingOrigin,
|
|
207
216
|
ImageData as ImageDataOrigin,
|
|
208
217
|
CanvasPattern as CanvasPatternOrigin,
|
|
209
218
|
CanvasGradient as CanvasGradientOrigin,
|
|
@@ -588,6 +597,15 @@ declare global {
|
|
|
588
597
|
const DOMRect: typeof DOMRectOrigin
|
|
589
598
|
type DOMRect = DOMRectOrigin
|
|
590
599
|
type TextMetrics = TextMetricsOrigin
|
|
600
|
+
type CanvasDirection = CanvasDirectionOrigin
|
|
601
|
+
type CanvasLineCap = CanvasLineCapOrigin
|
|
602
|
+
type CanvasFontStretch = CanvasFontStretchOrigin
|
|
603
|
+
type CanvasGlobalCompositeOperation = CanvasGlobalCompositeOperationOrigin
|
|
604
|
+
type CanvasSmoothingQuality = CanvasSmoothingQualityOrigin
|
|
605
|
+
type CanvasLineJoin = CanvasLineJoinOrigin
|
|
606
|
+
type CanvasTextAlign = CanvasTextAlignOrigin
|
|
607
|
+
type CanvasTextBaseline = CanvasTextBaselineOrigin
|
|
608
|
+
type CanvasTextRendering = CanvasTextRenderingOrigin
|
|
591
609
|
type ImageData = ImageDataOrigin
|
|
592
610
|
type CanvasPattern = CanvasPatternOrigin
|
|
593
611
|
type CanvasGradient = CanvasGradientOrigin
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/// <reference path='./lib/uni-theme/utssdk/global.d.ts' />
|
|
4
4
|
/// <reference path='./lib/uni-tabBar/utssdk/global.d.ts' />
|
|
5
5
|
/// <reference path='./lib/uni-storage/utssdk/global.d.ts' />
|
|
6
|
+
/// <reference path='./lib/uni-shareWithSystem/utssdk/global.d.ts' />
|
|
6
7
|
/// <reference path='./lib/uni-scanCode/utssdk/global.d.ts' />
|
|
7
8
|
/// <reference path='./lib/uni-rpx2px/utssdk/global.d.ts' />
|
|
8
9
|
/// <reference path='./lib/uni-route/utssdk/global.d.ts' />
|
|
@@ -54,5 +55,4 @@
|
|
|
54
55
|
/// <reference path='./lib/uni-base64ToArrayBuffer/utssdk/global.d.ts' />
|
|
55
56
|
/// <reference path='./lib/uni-authentication/utssdk/global.d.ts' />
|
|
56
57
|
/// <reference path='./lib/uni-arrayBufferToBase64/utssdk/global.d.ts' />
|
|
57
|
-
/// <reference path='./lib/uni-animationFrame/utssdk/global.d.ts' />
|
|
58
58
|
/// <reference path='./lib/uni-addPhoneContact/utssdk/global.d.ts' />
|
|
@@ -3,6 +3,7 @@ export * from './lib/uni-virtualPayment/utssdk'
|
|
|
3
3
|
export * from './lib/uni-theme/utssdk'
|
|
4
4
|
export * from './lib/uni-tabBar/utssdk'
|
|
5
5
|
export * from './lib/uni-storage/utssdk'
|
|
6
|
+
export * from './lib/uni-shareWithSystem/utssdk'
|
|
6
7
|
export * from './lib/uni-scanCode/utssdk'
|
|
7
8
|
export * from './lib/uni-rpx2px/utssdk'
|
|
8
9
|
export * from './lib/uni-route/utssdk'
|
|
@@ -54,5 +55,4 @@ export * from './lib/uni-canvas/utssdk'
|
|
|
54
55
|
export * from './lib/uni-base64ToArrayBuffer/utssdk'
|
|
55
56
|
export * from './lib/uni-authentication/utssdk'
|
|
56
57
|
export * from './lib/uni-arrayBufferToBase64/utssdk'
|
|
57
|
-
export * from './lib/uni-animationFrame/utssdk'
|
|
58
58
|
export * from './lib/uni-addPhoneContact/utssdk'
|
|
@@ -23,11 +23,21 @@ export interface Uni {
|
|
|
23
23
|
export type StartSoterAuthentication = (options: StartSoterAuthenticationOptions) => void;
|
|
24
24
|
/**
|
|
25
25
|
* 生物认证方式
|
|
26
|
-
* - fingerPrint: 指纹识别
|
|
27
|
-
* - facial: 人脸识别(暂未支持)
|
|
28
|
-
* - speech: 声纹识别(暂未支持)
|
|
29
26
|
*/
|
|
30
|
-
export type SoterAuthMode =
|
|
27
|
+
export type SoterAuthMode =
|
|
28
|
+
/**
|
|
29
|
+
* 指纹识别
|
|
30
|
+
*/
|
|
31
|
+
'fingerPrint' |
|
|
32
|
+
/**
|
|
33
|
+
* 人脸识别(暂未支持)
|
|
34
|
+
*/
|
|
35
|
+
'facial' |
|
|
36
|
+
/**
|
|
37
|
+
* 声纹识别(暂未支持)
|
|
38
|
+
*/
|
|
39
|
+
'speech';
|
|
40
|
+
|
|
31
41
|
export type StartSoterAuthenticationSuccess = {
|
|
32
42
|
/**
|
|
33
43
|
* 错误码
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
CreateCanvasContextAsyncSuccessCallback as CreateCanvasContextAsyncSuccessCallbackOrigin,
|
|
4
4
|
CreateCanvasContextAsyncFailCallback as CreateCanvasContextAsyncFailCallbackOrigin,
|
|
5
5
|
CreateCanvasContextAsyncCompleteCallback as CreateCanvasContextAsyncCompleteCallbackOrigin,
|
|
6
|
-
|
|
6
|
+
RequestAnimationFrameCallback as RequestAnimationFrameCallbackOrigin,
|
|
7
7
|
CanvasContextToBlobCallback as CanvasContextToBlobCallbackOrigin,
|
|
8
8
|
CanvasContext as CanvasContextOrigin,
|
|
9
9
|
CreateCanvasContextAsyncOptions as CreateCanvasContextAsyncOptionsOrigin,
|
|
@@ -14,7 +14,7 @@ declare global {
|
|
|
14
14
|
type CreateCanvasContextAsyncSuccessCallback = CreateCanvasContextAsyncSuccessCallbackOrigin
|
|
15
15
|
type CreateCanvasContextAsyncFailCallback = CreateCanvasContextAsyncFailCallbackOrigin
|
|
16
16
|
type CreateCanvasContextAsyncCompleteCallback = CreateCanvasContextAsyncCompleteCallbackOrigin
|
|
17
|
-
type
|
|
17
|
+
type RequestAnimationFrameCallback = RequestAnimationFrameCallbackOrigin
|
|
18
18
|
type CanvasContextToBlobCallback = CanvasContextToBlobCallbackOrigin
|
|
19
19
|
type CanvasContext = CanvasContextOrigin
|
|
20
20
|
type CreateCanvasContextAsyncOptions = CreateCanvasContextAsyncOptionsOrigin
|
|
@@ -3,7 +3,7 @@ export {
|
|
|
3
3
|
CreateCanvasContextAsyncSuccessCallback,
|
|
4
4
|
CreateCanvasContextAsyncFailCallback,
|
|
5
5
|
CreateCanvasContextAsyncCompleteCallback,
|
|
6
|
-
|
|
6
|
+
RequestAnimationFrameCallback,
|
|
7
7
|
CanvasContextToBlobCallback,
|
|
8
8
|
CanvasContext,
|
|
9
9
|
CreateCanvasContextAsyncOptions,
|
|
@@ -2,7 +2,7 @@ export type CreateCanvasContextAsyncSuccessCallback = (context: CanvasContext) =
|
|
|
2
2
|
export type CreateCanvasContextAsyncFailCallback = (error: UniError) => void
|
|
3
3
|
export type CreateCanvasContextAsyncCompleteCallback = () => void
|
|
4
4
|
|
|
5
|
-
export type
|
|
5
|
+
export type RequestAnimationFrameCallback = (time: number) => void
|
|
6
6
|
|
|
7
7
|
// #ifdef WEB
|
|
8
8
|
export type CanvasContextToBlobCallback = (blob: Blob) => void
|
|
@@ -166,7 +166,7 @@ export interface CanvasContext {
|
|
|
166
166
|
* }
|
|
167
167
|
* }
|
|
168
168
|
*/
|
|
169
|
-
requestAnimationFrame(callback:
|
|
169
|
+
requestAnimationFrame(callback: RequestAnimationFrameCallback): number;
|
|
170
170
|
/**
|
|
171
171
|
* 取消一个先前通过调用 uni.requestAnimationFrame() 方法添加到计划中的动画帧请求
|
|
172
172
|
* @uniPlatform {
|
|
@@ -95,17 +95,9 @@ export type OpenDialogPageOptions = {
|
|
|
95
95
|
url: string | string.PageURIString
|
|
96
96
|
/**
|
|
97
97
|
* 窗口显示的动画类型
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* - slide-in-left: 左侧横向滑动效果
|
|
102
|
-
* - slide-in-top: 从上侧竖向滑动效果
|
|
103
|
-
* - slide-in-bottom: 从下侧竖向滑动效果
|
|
104
|
-
* - fade-in: 从透明到不透明逐渐显示效果
|
|
105
|
-
* - zoom-out: 从小到大逐渐放大显示效果
|
|
106
|
-
* - zoom-fade-out: 从小到大逐渐放大并且从透明到不透明逐渐显示效果
|
|
107
|
-
* - UnionType => 'auto' | 'none' | 'slide-in-right' | 'slide-in-left' | 'slide-in-top' | 'slide-in-bottom' | 'fade-in' | 'zoom-out' | 'zoom-fade-out'
|
|
108
|
-
* "app": {
|
|
98
|
+
*
|
|
99
|
+
* @uniPlatform {
|
|
100
|
+
* "app": {
|
|
109
101
|
* "android": {
|
|
110
102
|
* "osVer": "5.0",
|
|
111
103
|
* "uniVer": "x",
|
|
@@ -165,7 +157,43 @@ export type OpenDialogPageOptions = {
|
|
|
165
157
|
* }
|
|
166
158
|
* }
|
|
167
159
|
*/
|
|
168
|
-
animationType?:
|
|
160
|
+
animationType?:
|
|
161
|
+
/**
|
|
162
|
+
* 自动选择动画效果
|
|
163
|
+
*/
|
|
164
|
+
'auto' |
|
|
165
|
+
/**
|
|
166
|
+
* 无动画效果
|
|
167
|
+
*/
|
|
168
|
+
'none' |
|
|
169
|
+
/**
|
|
170
|
+
* 从右侧横向滑动效果
|
|
171
|
+
*/
|
|
172
|
+
'slide-in-right' |
|
|
173
|
+
/**
|
|
174
|
+
* 左侧横向滑动效果
|
|
175
|
+
*/
|
|
176
|
+
'slide-in-left' |
|
|
177
|
+
/**
|
|
178
|
+
* 从上侧竖向滑动效果
|
|
179
|
+
*/
|
|
180
|
+
'slide-in-top' |
|
|
181
|
+
/**
|
|
182
|
+
* 从下侧竖向滑动效果
|
|
183
|
+
*/
|
|
184
|
+
'slide-in-bottom' |
|
|
185
|
+
/**
|
|
186
|
+
* 从透明到不透明逐渐显示效果
|
|
187
|
+
*/
|
|
188
|
+
'fade-in' |
|
|
189
|
+
/**
|
|
190
|
+
* 从小到大逐渐放大显示效果
|
|
191
|
+
*/
|
|
192
|
+
'zoom-out' |
|
|
193
|
+
/**
|
|
194
|
+
* 从小到大逐渐放大并且从透明到不透明逐渐显示效果
|
|
195
|
+
*/
|
|
196
|
+
'zoom-fade-out' | null
|
|
169
197
|
/**
|
|
170
198
|
* 窗口关闭动画的持续时间,单位为 ms
|
|
171
199
|
* @uniPlatform {
|
|
@@ -789,7 +817,7 @@ export type CloseDialogPageOptions = {
|
|
|
789
817
|
* - fade-out: 从不透明到透明逐渐隐藏动画
|
|
790
818
|
* - zoom-in: 从大逐渐缩小关闭动画
|
|
791
819
|
* - zoom-fade-in: 从大逐渐缩小并且从不透明到透明逐渐隐藏关闭动画
|
|
792
|
-
*
|
|
820
|
+
*
|
|
793
821
|
* @uniPlatform {
|
|
794
822
|
* "app": {
|
|
795
823
|
* "android": {
|
|
@@ -851,7 +879,43 @@ export type CloseDialogPageOptions = {
|
|
|
851
879
|
* }
|
|
852
880
|
* }
|
|
853
881
|
*/
|
|
854
|
-
animationType?:
|
|
882
|
+
animationType?:
|
|
883
|
+
/**
|
|
884
|
+
* 自动选择动画效果
|
|
885
|
+
*/
|
|
886
|
+
'auto' |
|
|
887
|
+
/**
|
|
888
|
+
* 无动画效果
|
|
889
|
+
*/
|
|
890
|
+
'none' |
|
|
891
|
+
/**
|
|
892
|
+
* 横向向右侧滑出屏幕动画
|
|
893
|
+
*/
|
|
894
|
+
'slide-out-right' |
|
|
895
|
+
/**
|
|
896
|
+
* 横向向左侧滑出屏幕动画
|
|
897
|
+
*/
|
|
898
|
+
'slide-out-left' |
|
|
899
|
+
/**
|
|
900
|
+
* 竖向向上侧滑出屏幕动画
|
|
901
|
+
*/
|
|
902
|
+
'slide-out-top' |
|
|
903
|
+
/**
|
|
904
|
+
* 竖向向下侧滑出屏幕动画
|
|
905
|
+
*/
|
|
906
|
+
'slide-out-bottom' |
|
|
907
|
+
/**
|
|
908
|
+
* 从不透明到透明逐渐隐藏动画
|
|
909
|
+
*/
|
|
910
|
+
'fade-out' |
|
|
911
|
+
/**
|
|
912
|
+
* 从大逐渐缩小关闭动画
|
|
913
|
+
*/
|
|
914
|
+
'zoom-in' |
|
|
915
|
+
/**
|
|
916
|
+
* 从大逐渐缩小并且从不透明到透明逐渐隐藏关闭动画
|
|
917
|
+
*/
|
|
918
|
+
'zoom-fade-in' | null
|
|
855
919
|
/**
|
|
856
920
|
* 窗口关闭动画的持续时间,单位为 ms
|
|
857
921
|
* @uniPlatform {
|
|
@@ -7,10 +7,16 @@ export type ExitSuccess = {
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* 错误码
|
|
10
|
-
* - 12001: 系统不支持
|
|
11
|
-
* - 12002: 未知错误
|
|
12
10
|
*/
|
|
13
|
-
export type ExitErrorCode =
|
|
11
|
+
export type ExitErrorCode =
|
|
12
|
+
/**
|
|
13
|
+
* 系统不支持
|
|
14
|
+
*/
|
|
15
|
+
12001 |
|
|
16
|
+
/**
|
|
17
|
+
* 未知错误
|
|
18
|
+
*/
|
|
19
|
+
12002
|
|
14
20
|
|
|
15
21
|
/**
|
|
16
22
|
* uni.exit失败回调参数
|
|
@@ -343,7 +343,7 @@ export type SaveFileOptions = {
|
|
|
343
343
|
/**
|
|
344
344
|
* 要存储的文件路径 (本地路径)
|
|
345
345
|
*/
|
|
346
|
-
filePath
|
|
346
|
+
filePath ?: string.URIString | null,
|
|
347
347
|
|
|
348
348
|
/**
|
|
349
349
|
* 接口调用的回调函数
|
|
@@ -1351,6 +1351,7 @@ export interface FileSystemManager {
|
|
|
1351
1351
|
* "uniVer": "x",
|
|
1352
1352
|
* "unixVer": "x"
|
|
1353
1353
|
* }
|
|
1354
|
+
*
|
|
1354
1355
|
* }
|
|
1355
1356
|
*/
|
|
1356
1357
|
saveFile(options : SaveFileOptions) : void;
|
|
@@ -1819,21 +1820,61 @@ export interface Uni {
|
|
|
1819
1820
|
|
|
1820
1821
|
/**
|
|
1821
1822
|
* 错误码
|
|
1822
|
-
* - 1200002 类型错误。仅支持 base64 / utf-8
|
|
1823
|
-
* - 1300002 未找到文件
|
|
1824
|
-
* - 1300013 无权限
|
|
1825
|
-
* - 1300021 是目录
|
|
1826
|
-
* - 1300022 参数无效
|
|
1827
|
-
* - 1300066 目录非空
|
|
1828
|
-
* - 1301003 对目录的非法操作
|
|
1829
|
-
* - 1301005 文件已存在
|
|
1830
|
-
* - 1300201 系统错误
|
|
1831
|
-
* - 1300202 超出文件存储限制的最大尺寸
|
|
1832
|
-
* - 1301111 brotli解压失败
|
|
1833
|
-
* - 1302003 标志无效
|
|
1834
|
-
* - 1300009 文件描述符错误
|
|
1835
1823
|
*/
|
|
1836
|
-
export type FileSystemManagerErrorCode =
|
|
1824
|
+
export type FileSystemManagerErrorCode =
|
|
1825
|
+
/**
|
|
1826
|
+
* 类型错误。仅支持 base64 / utf-8
|
|
1827
|
+
*/
|
|
1828
|
+
1200002 |
|
|
1829
|
+
/**
|
|
1830
|
+
* 未找到文件
|
|
1831
|
+
*/
|
|
1832
|
+
1300002 |
|
|
1833
|
+
/**
|
|
1834
|
+
* 无权限
|
|
1835
|
+
*/
|
|
1836
|
+
1300013 |
|
|
1837
|
+
/**
|
|
1838
|
+
* 是目录
|
|
1839
|
+
*/
|
|
1840
|
+
1300021 |
|
|
1841
|
+
/**
|
|
1842
|
+
* 参数无效
|
|
1843
|
+
*/
|
|
1844
|
+
1300022 |
|
|
1845
|
+
/**
|
|
1846
|
+
* 目录非空
|
|
1847
|
+
*/
|
|
1848
|
+
1300066 |
|
|
1849
|
+
/**
|
|
1850
|
+
* 对目录的非法操作
|
|
1851
|
+
*/
|
|
1852
|
+
1301003 |
|
|
1853
|
+
/**
|
|
1854
|
+
* 文件已存在
|
|
1855
|
+
*/
|
|
1856
|
+
1301005 |
|
|
1857
|
+
/**
|
|
1858
|
+
* 系统错误
|
|
1859
|
+
*/
|
|
1860
|
+
1300201 |
|
|
1861
|
+
/**
|
|
1862
|
+
* 超出文件存储限制的最大尺寸
|
|
1863
|
+
*/
|
|
1864
|
+
1300202 |
|
|
1865
|
+
/**
|
|
1866
|
+
* brotli解压失败
|
|
1867
|
+
*/
|
|
1868
|
+
1301111 |
|
|
1869
|
+
/**
|
|
1870
|
+
* 标志无效
|
|
1871
|
+
*/
|
|
1872
|
+
1302003 |
|
|
1873
|
+
/**
|
|
1874
|
+
* 文件描述符错误
|
|
1875
|
+
*/
|
|
1876
|
+
1300009;
|
|
1877
|
+
|
|
1837
1878
|
export type FileSystemManagerFail = IFileSystemManagerFail;
|
|
1838
1879
|
export interface IFileSystemManagerFail extends IUniError {
|
|
1839
1880
|
errCode : FileSystemManagerErrorCode
|