@dcloudio/uni-app-x 0.7.78 → 0.7.80
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 +3 -2
- package/types/dom2/UniCSSProperty.d.ts +0 -1
- package/types/dom2/UniCSSTransform.d.ts +1 -1
- package/types/dom2/UniCSSTransition.d.ts +30 -6
- package/types/dom2/UniElement.d.ts +5 -0
- package/types/dom2/UniNativeBaseView.d.ts +16 -18
- package/types/dom2/UniNativeDefines.d.ts +12 -54
- package/types/dom2/UniNativeViewElement.d.ts +60 -0
- package/types/dom2/UniPage.d.ts +36 -3
- package/types/dom2/UniTextElement.d.ts +12 -0
- package/types/dom2/UniTextLayout.d.ts +7 -0
- package/types/dom2/global.d.ts +24 -13
- package/types/dom2/sharedData.d.ts +23 -6
- package/types/dom2-internal/UniElement.d.ts +15 -0
- package/types/native/UniPage.d.ts +105 -0
- package/types/uni/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +7 -6
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +4 -3
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +2 -1
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +7 -6
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +4 -3
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +69 -23
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +7 -40
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +4 -20
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +66 -495
- package/types/uni/uts-plugin-biz/global.d.ts +1 -0
- package/types/uni/uts-plugin-biz/index.d.ts +1 -0
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +9 -8
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +5 -4
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +29 -28
- package/types/uni/uts-plugin-biz/lib/uni-map-amap/utssdk/global.d.ts +14 -0
- package/types/uni/uts-plugin-biz/lib/uni-map-amap/utssdk/index.d.ts +7 -0
- package/types/uni/uts-plugin-biz/lib/uni-map-amap/utssdk/interface.d.ts +101 -0
- package/types/uni/uts-plugin-component/global.d.ts +5 -0
- package/types/uni/uts-plugin-component/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-camera-global/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-component/lib/uni-camera-global/utssdk/index.d.ts +12 -0
- package/types/uni/uts-plugin-component/lib/uni-camera-global/utssdk/interface.d.ts +38 -0
- package/types/uni/{uni-map-tencent-global.d.ts → uts-plugin-component/lib/uni-map-tencent-global/utssdk/global.d.ts} +22 -20
- package/types/uni/uts-plugin-component/lib/uni-map-tencent-global/utssdk/index.d.ts +20 -0
- package/types/uni/uts-plugin-component/lib/uni-map-tencent-global/utssdk/interface.d.ts +56 -0
- package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/global.d.ts +39 -0
- package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/index.d.ts +20 -0
- package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/interface.d.ts +94 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/global.d.ts +29 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/index.d.ts +14 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +431 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view-global/utssdk/global.d.ts +31 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view-global/utssdk/index.d.ts +16 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view-global/utssdk/interface.d.ts +51 -0
- package/types/uni/uni-camera-global.d.ts +0 -23
- package/types/uni/uni-camera.d.ts +0 -35
- package/types/uni/uni-map-tencent-map.d.ts +0 -63
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
export type OnAppCrashCallback = () => void
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* 监听应用崩溃
|
|
7
|
+
* 监听应用崩溃
|
|
8
8
|
* @internal
|
|
9
9
|
*/
|
|
10
10
|
export type OnAppCrash = (callback : OnAppCrashCallback) => void
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* 取消监听应用崩溃
|
|
13
|
+
* 取消监听应用崩溃
|
|
14
14
|
* @internal
|
|
15
15
|
*/
|
|
16
16
|
export type OffAppCrash = () => void
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
/**
|
|
19
19
|
* @internal
|
|
20
20
|
*/
|
|
@@ -24,7 +24,7 @@ export type AppCrashInfo = {
|
|
|
24
24
|
*/
|
|
25
25
|
id : string,
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* 崩溃的日志路径
|
|
28
28
|
*/
|
|
29
29
|
file : string,
|
|
30
30
|
/**
|
|
@@ -34,7 +34,7 @@ export type AppCrashInfo = {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
* 获取所有的崩溃信息
|
|
37
|
+
* 获取所有的崩溃信息
|
|
38
38
|
* @internal
|
|
39
39
|
*/
|
|
40
40
|
|
|
@@ -43,40 +43,41 @@ export type GetAppCrashInfo = () => Array<AppCrashInfo> | null
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* 删除指定的崩溃信息,id为空则删除所有的崩溃信息
|
|
46
|
+
* 删除指定的崩溃信息,id为空则删除所有的崩溃信息
|
|
47
47
|
* @internal
|
|
48
48
|
*/
|
|
49
49
|
export type DeleteAppCrashInfo = (id : string | null) => void
|
|
50
50
|
|
|
51
|
-
export type
|
|
51
|
+
export type CreateAppCrash = () => void
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
export interface Uni {
|
|
55
|
-
/**
|
|
56
|
-
* 监听异常崩溃发生(iOS不支持)
|
|
57
|
-
* @internal
|
|
54
|
+
export interface Uni {
|
|
55
|
+
/**
|
|
56
|
+
* 监听异常崩溃发生(iOS不支持)
|
|
57
|
+
* @internal
|
|
58
58
|
*/
|
|
59
|
-
__onAppCrash(callback : OnAppCrashCallback | null) : void,
|
|
60
|
-
/**
|
|
61
|
-
* 取消异常崩溃发生(iOS不支持)
|
|
62
|
-
* @internal
|
|
59
|
+
__onAppCrash(callback : OnAppCrashCallback | null) : void,
|
|
60
|
+
/**
|
|
61
|
+
* 取消异常崩溃发生(iOS不支持)
|
|
62
|
+
* @internal
|
|
63
63
|
*/
|
|
64
|
-
__offAppCrash() : void,
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* 获取异常崩溃数据
|
|
68
|
-
* @internal
|
|
64
|
+
__offAppCrash() : void,
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* 获取异常崩溃数据
|
|
68
|
+
* @internal
|
|
69
69
|
*/
|
|
70
70
|
|
|
71
71
|
__getAppCrashInfo() : Array<AppCrashInfo> | null,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
*
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* 删除本地对应Crash数据
|
|
75
|
+
* @internal
|
|
75
76
|
*/
|
|
76
|
-
__deleteAppCrashInfo(id : string | null) : void,
|
|
77
|
-
/**
|
|
78
|
-
* 触发crash
|
|
79
|
-
* @internal
|
|
77
|
+
__deleteAppCrashInfo(id : string | null) : void,
|
|
78
|
+
/**
|
|
79
|
+
* 触发crash
|
|
80
|
+
* @internal
|
|
80
81
|
*/
|
|
81
82
|
__createAppCrash() : void
|
|
82
|
-
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
AmapAnchor as AmapAnchorOrigin,
|
|
4
|
+
AmapMapMarkerCallout as AmapMapMarkerCalloutOrigin,
|
|
5
|
+
AmapMapMarkerLabel as AmapMapMarkerLabelOrigin,
|
|
6
|
+
AmapMarker as AmapMarkerOrigin,
|
|
7
|
+
} from './interface'
|
|
8
|
+
|
|
9
|
+
declare global {
|
|
10
|
+
type AmapAnchor = AmapAnchorOrigin
|
|
11
|
+
type AmapMapMarkerCallout = AmapMapMarkerCalloutOrigin
|
|
12
|
+
type AmapMapMarkerLabel = AmapMapMarkerLabelOrigin
|
|
13
|
+
type AmapMarker = AmapMarkerOrigin
|
|
14
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export type AmapAnchor = {
|
|
2
|
+
x : number;
|
|
3
|
+
y : number;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export type AmapMapMarkerCallout = {
|
|
7
|
+
content : string;
|
|
8
|
+
color ?: string | null;
|
|
9
|
+
fontSize ?: number | null;
|
|
10
|
+
borderRadius ?: number | null;
|
|
11
|
+
borderWidth ?: number | null;
|
|
12
|
+
borderColor ?: string | null;
|
|
13
|
+
bgColor ?: string | null;
|
|
14
|
+
padding ?: number | null;
|
|
15
|
+
display ?: string | null;
|
|
16
|
+
textAlign ?: string | null;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type AmapMapMarkerLabel = {
|
|
20
|
+
content : string;
|
|
21
|
+
color ?: string | null;
|
|
22
|
+
fontSize ?: number | null;
|
|
23
|
+
x ?: number | null;
|
|
24
|
+
y ?: number | null;
|
|
25
|
+
borderWidth ?: number | null;
|
|
26
|
+
borderColor ?: string | null;
|
|
27
|
+
bgColor ?: string | null;
|
|
28
|
+
borderRadius ?: number | null;
|
|
29
|
+
padding ?: number | null;
|
|
30
|
+
textAlign ?: string | null;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type AmapMarker = {
|
|
34
|
+
/**
|
|
35
|
+
* 标记点id,marker点击事件回调会返回此id。建议为每个marker设置上Number类型id,保证更新marker时有更好的性能。最大限制9位数
|
|
36
|
+
*/
|
|
37
|
+
id : number;
|
|
38
|
+
/**
|
|
39
|
+
* 纬度,浮点数,范围 -90 ~ 90
|
|
40
|
+
*/
|
|
41
|
+
latitude : number;
|
|
42
|
+
/**
|
|
43
|
+
* 经度,浮点数,范围 -180 ~ 180
|
|
44
|
+
*/
|
|
45
|
+
longitude : number;
|
|
46
|
+
/**
|
|
47
|
+
* 显示的图标,项目目录下的图片路径,支持相对路径写法,以'/'开头则表示相对小程序根目录;也支持临时路径
|
|
48
|
+
*/
|
|
49
|
+
iconPath : string;
|
|
50
|
+
/**
|
|
51
|
+
* 标注点名,点击时显示,callout存在时将被忽略
|
|
52
|
+
* @defaultValue null
|
|
53
|
+
*/
|
|
54
|
+
title ?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* 旋转角度,顺时针旋转的角度,范围 0 ~ 360
|
|
57
|
+
* @defaultValue 0
|
|
58
|
+
*/
|
|
59
|
+
rotate ?: number | null;
|
|
60
|
+
/**
|
|
61
|
+
* 标注的透明度,范围 0 ~ 1
|
|
62
|
+
* @defaultValue 1
|
|
63
|
+
*/
|
|
64
|
+
alpha ?: number | null;
|
|
65
|
+
/**
|
|
66
|
+
* 标注图标宽度
|
|
67
|
+
* @defaultValue 默认为图片实际宽度
|
|
68
|
+
*/
|
|
69
|
+
width ?: number | null;
|
|
70
|
+
/**
|
|
71
|
+
* 标注图标高度
|
|
72
|
+
* @defaultValue 默认为图片实际高度
|
|
73
|
+
*/
|
|
74
|
+
height ?: number | null;
|
|
75
|
+
/**
|
|
76
|
+
* 无障碍访问,(属性)元素的额外描述
|
|
77
|
+
* @defaultValue null
|
|
78
|
+
*/
|
|
79
|
+
ariaLabel ?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* 经纬度在标注图标的锚点,默认底边中点 {x, y},x表示横向(0-1),y表示竖向(0-1)。{x: .5, y: 1} 表示底边中点
|
|
82
|
+
* @defaultValue [0.5, 1]
|
|
83
|
+
*/
|
|
84
|
+
anchor ?: AmapAnchor | null;
|
|
85
|
+
/**
|
|
86
|
+
* 自定义标记点上方的气泡窗口
|
|
87
|
+
* @defaultValue null
|
|
88
|
+
*/
|
|
89
|
+
callout ?: AmapMapMarkerCallout | null;
|
|
90
|
+
/**
|
|
91
|
+
* 为标记点旁边增加标签
|
|
92
|
+
* @defaultValue null
|
|
93
|
+
*/
|
|
94
|
+
label ?: AmapMapMarkerLabel | null;
|
|
95
|
+
/**
|
|
96
|
+
* 自定义点聚合簇效果时使用
|
|
97
|
+
* @defaultValue null
|
|
98
|
+
*/
|
|
99
|
+
clusterId ?: number | null;
|
|
100
|
+
};
|
|
101
|
+
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
/// <reference path='./lib/uni-web-view-global/utssdk/global.d.ts' />
|
|
2
|
+
/// <reference path='./lib/uni-video-global/utssdk/global.d.ts' />
|
|
3
|
+
/// <reference path='./lib/uni-camera-global/utssdk/global.d.ts' />
|
|
4
|
+
/// <reference path='./lib/uni-map-tencent-global/utssdk/global.d.ts' />
|
|
1
5
|
/// <reference path='./lib/uni-camera/utssdk/global.d.ts' />
|
|
2
6
|
/// <reference path='./lib/uni-canvas/utssdk/global.d.ts' />
|
|
3
7
|
/// <reference path='./lib/uni-input/utssdk/global.d.ts' />
|
|
4
8
|
/// <reference path='./lib/uni-video/utssdk/global.d.ts' />
|
|
9
|
+
/// <reference path='./lib/uni-web-view/utssdk/global.d.ts' />
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
export * from './lib/uni-web-view-global/utssdk'
|
|
2
|
+
export * from './lib/uni-video-global/utssdk'
|
|
3
|
+
export * from './lib/uni-camera-global/utssdk'
|
|
4
|
+
export * from './lib/uni-map-tencent-global/utssdk'
|
|
1
5
|
export * from './lib/uni-camera/utssdk'
|
|
2
6
|
export * from './lib/uni-canvas/utssdk'
|
|
3
7
|
export * from './lib/uni-input/utssdk'
|
|
4
8
|
export * from './lib/uni-video/utssdk'
|
|
9
|
+
export * from './lib/uni-web-view/utssdk'
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
UniCameraStopEventDetail as UniCameraStopEventDetailOrigin,
|
|
4
|
+
UniCameraStopEvent as UniCameraStopEventOrigin,
|
|
5
|
+
UniCameraErrorEventDetail as UniCameraErrorEventDetailOrigin,
|
|
6
|
+
UniCameraErrorEvent as UniCameraErrorEventOrigin,
|
|
7
|
+
UniCameraInitDoneEventDetail as UniCameraInitDoneEventDetailOrigin,
|
|
8
|
+
UniCameraInitDoneEvent as UniCameraInitDoneEventOrigin,
|
|
9
|
+
UniCameraScanCodeEventDetail as UniCameraScanCodeEventDetailOrigin,
|
|
10
|
+
UniCameraScanCodeEvent as UniCameraScanCodeEventOrigin,
|
|
11
|
+
} from './interface'
|
|
12
|
+
|
|
13
|
+
declare global {
|
|
14
|
+
type UniCameraStopEventDetail = UniCameraStopEventDetailOrigin
|
|
15
|
+
type UniCameraStopEvent = UniCameraStopEventOrigin
|
|
16
|
+
type UniCameraErrorEventDetail = UniCameraErrorEventDetailOrigin
|
|
17
|
+
type UniCameraErrorEvent = UniCameraErrorEventOrigin
|
|
18
|
+
type UniCameraInitDoneEventDetail = UniCameraInitDoneEventDetailOrigin
|
|
19
|
+
type UniCameraInitDoneEvent = UniCameraInitDoneEventOrigin
|
|
20
|
+
type UniCameraScanCodeEventDetail = UniCameraScanCodeEventDetailOrigin
|
|
21
|
+
type UniCameraScanCodeEvent = UniCameraScanCodeEventOrigin
|
|
22
|
+
}
|
|
23
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
export {
|
|
3
|
+
UniCameraStopEventDetail,
|
|
4
|
+
UniCameraStopEvent,
|
|
5
|
+
UniCameraErrorEventDetail,
|
|
6
|
+
UniCameraErrorEvent,
|
|
7
|
+
UniCameraInitDoneEventDetail,
|
|
8
|
+
UniCameraInitDoneEvent,
|
|
9
|
+
UniCameraScanCodeEventDetail,
|
|
10
|
+
UniCameraScanCodeEvent,
|
|
11
|
+
} from './interface'
|
|
12
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type UniCameraStopEventDetail = {
|
|
2
|
+
errorCause?: string;
|
|
3
|
+
errSubject?: string;
|
|
4
|
+
errCode?: number;
|
|
5
|
+
errMsg?: string;
|
|
6
|
+
data?: Object;
|
|
7
|
+
cause?: Object;
|
|
8
|
+
};
|
|
9
|
+
export class UniCameraStopEvent extends UniCustomEvent<UniCameraStopEventDetail> {
|
|
10
|
+
constructor(type: string, detail: UniCameraStopEventDetail);
|
|
11
|
+
}
|
|
12
|
+
export type UniCameraErrorEventDetail = {
|
|
13
|
+
msg?: string;
|
|
14
|
+
errSubject?: string;
|
|
15
|
+
errCode?: number;
|
|
16
|
+
errMsg?: string;
|
|
17
|
+
data?: Object;
|
|
18
|
+
cause?: Object;
|
|
19
|
+
};
|
|
20
|
+
export class UniCameraErrorEvent extends UniCustomEvent<UniCameraErrorEventDetail> {
|
|
21
|
+
constructor(type: string, detail: UniCameraErrorEventDetail);
|
|
22
|
+
}
|
|
23
|
+
export type UniCameraInitDoneEventDetail = {
|
|
24
|
+
maxZoom?: number;
|
|
25
|
+
};
|
|
26
|
+
export class UniCameraInitDoneEvent extends UniCustomEvent<UniCameraInitDoneEventDetail> {
|
|
27
|
+
constructor(type: string, detail: UniCameraInitDoneEventDetail);
|
|
28
|
+
}
|
|
29
|
+
export type UniCameraScanCodeEventDetail = {
|
|
30
|
+
type?: string;
|
|
31
|
+
result?: string;
|
|
32
|
+
rawData?: string;
|
|
33
|
+
charSet?: string;
|
|
34
|
+
scanArea?: Array<number>;
|
|
35
|
+
};
|
|
36
|
+
export class UniCameraScanCodeEvent extends UniCustomEvent<UniCameraScanCodeEventDetail> {
|
|
37
|
+
constructor(type: string, detail: UniCameraScanCodeEventDetail);
|
|
38
|
+
}
|
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
UniMapUpdatedEventDetail as UniMapUpdatedEventDetailOrigin,
|
|
2
4
|
UniMapUpdatedEvent as UniMapUpdatedEventOrigin,
|
|
5
|
+
UniMapTapEventDetail as UniMapTapEventDetailOrigin,
|
|
3
6
|
UniMapTapEvent as UniMapTapEventOrigin,
|
|
7
|
+
UniMapRegionChangeEventDetail as UniMapRegionChangeEventDetailOrigin,
|
|
4
8
|
UniMapRegionChangeEvent as UniMapRegionChangeEventOrigin,
|
|
9
|
+
UniMapMarkerTapEventDetail as UniMapMarkerTapEventDetailOrigin,
|
|
5
10
|
UniMapMarkerTapEvent as UniMapMarkerTapEventOrigin,
|
|
11
|
+
UniMapControlTapEventDetail as UniMapControlTapEventDetailOrigin,
|
|
6
12
|
UniMapControlTapEvent as UniMapControlTapEventOrigin,
|
|
13
|
+
UniMapAnchorPointTapEventDetail as UniMapAnchorPointTapEventDetailOrigin,
|
|
7
14
|
UniMapAnchorPointTapEvent as UniMapAnchorPointTapEventOrigin,
|
|
15
|
+
UniMapPoiTapEventDetail as UniMapPoiTapEventDetailOrigin,
|
|
8
16
|
UniMapPoiTapEvent as UniMapPoiTapEventOrigin,
|
|
17
|
+
UniMapCalloutTapEventDetail as UniMapCalloutTapEventDetailOrigin,
|
|
9
18
|
UniMapCalloutTapEvent as UniMapCalloutTapEventOrigin,
|
|
10
|
-
|
|
11
|
-
UniMapTapEventDetail as UniMapTapEventDetailOrigin,
|
|
12
|
-
UniMapRegionChangeEventDetail as UniMapRegionChangeEventDetailOrigin,
|
|
13
|
-
UniMapMarkerTapEventDetail as UniMapMarkerTapEventDetailOrigin,
|
|
14
|
-
UniMapControlTapEventDetail as UniMapControlTapEventDetailOrigin,
|
|
15
|
-
UniMapAnchorPointTapEventDetail as UniMapAnchorPointTapEventDetailOrigin,
|
|
16
|
-
UniMapPoiTapEventDetail as UniMapPoiTapEventDetailOrigin,
|
|
17
|
-
UniMapCalloutTapEventDetail as UniMapCalloutTapEventDetailOrigin
|
|
18
|
-
} from "./uni-map-tencent-map"
|
|
19
|
+
} from './interface'
|
|
19
20
|
|
|
20
|
-
declare global {
|
|
21
|
+
declare global {
|
|
22
|
+
type UniMapUpdatedEventDetail = UniMapUpdatedEventDetailOrigin
|
|
21
23
|
type UniMapUpdatedEvent = UniMapUpdatedEventOrigin
|
|
22
|
-
type UniMapTapEvent = UniMapTapEventOrigin
|
|
23
|
-
type UniMapRegionChangeEvent = UniMapRegionChangeEventOrigin
|
|
24
|
-
type UniMapMarkerTapEvent = UniMapMarkerTapEventOrigin
|
|
25
|
-
type UniMapControlTapEvent = UniMapControlTapEventOrigin
|
|
26
|
-
type UniMapAnchorPointTapEvent = UniMapAnchorPointTapEventOrigin
|
|
27
|
-
type UniMapPoiTapEvent = UniMapPoiTapEventOrigin
|
|
28
|
-
type UniMapCalloutTapEvent = UniMapCalloutTapEventOrigin
|
|
29
|
-
type UniMapUpdatedEventDetail = UniMapUpdatedEventDetailOrigin
|
|
30
24
|
type UniMapTapEventDetail = UniMapTapEventDetailOrigin
|
|
25
|
+
type UniMapTapEvent = UniMapTapEventOrigin
|
|
31
26
|
type UniMapRegionChangeEventDetail = UniMapRegionChangeEventDetailOrigin
|
|
27
|
+
type UniMapRegionChangeEvent = UniMapRegionChangeEventOrigin
|
|
32
28
|
type UniMapMarkerTapEventDetail = UniMapMarkerTapEventDetailOrigin
|
|
29
|
+
type UniMapMarkerTapEvent = UniMapMarkerTapEventOrigin
|
|
33
30
|
type UniMapControlTapEventDetail = UniMapControlTapEventDetailOrigin
|
|
31
|
+
type UniMapControlTapEvent = UniMapControlTapEventOrigin
|
|
34
32
|
type UniMapAnchorPointTapEventDetail = UniMapAnchorPointTapEventDetailOrigin
|
|
33
|
+
type UniMapAnchorPointTapEvent = UniMapAnchorPointTapEventOrigin
|
|
35
34
|
type UniMapPoiTapEventDetail = UniMapPoiTapEventDetailOrigin
|
|
35
|
+
type UniMapPoiTapEvent = UniMapPoiTapEventOrigin
|
|
36
36
|
type UniMapCalloutTapEventDetail = UniMapCalloutTapEventDetailOrigin
|
|
37
|
-
|
|
37
|
+
type UniMapCalloutTapEvent = UniMapCalloutTapEventOrigin
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
export {
|
|
3
|
+
UniMapUpdatedEventDetail,
|
|
4
|
+
UniMapUpdatedEvent,
|
|
5
|
+
UniMapTapEventDetail,
|
|
6
|
+
UniMapTapEvent,
|
|
7
|
+
UniMapRegionChangeEventDetail,
|
|
8
|
+
UniMapRegionChangeEvent,
|
|
9
|
+
UniMapMarkerTapEventDetail,
|
|
10
|
+
UniMapMarkerTapEvent,
|
|
11
|
+
UniMapControlTapEventDetail,
|
|
12
|
+
UniMapControlTapEvent,
|
|
13
|
+
UniMapAnchorPointTapEventDetail,
|
|
14
|
+
UniMapAnchorPointTapEvent,
|
|
15
|
+
UniMapPoiTapEventDetail,
|
|
16
|
+
UniMapPoiTapEvent,
|
|
17
|
+
UniMapCalloutTapEventDetail,
|
|
18
|
+
UniMapCalloutTapEvent,
|
|
19
|
+
} from './interface'
|
|
20
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export type UniMapUpdatedEventDetail = {};
|
|
2
|
+
export class UniMapUpdatedEvent extends UniCustomEvent<UniMapUpdatedEventDetail> {
|
|
3
|
+
constructor(type: string, detail: UniMapUpdatedEventDetail);
|
|
4
|
+
}
|
|
5
|
+
export type UniMapTapEventDetail = {
|
|
6
|
+
latitude: number | null;
|
|
7
|
+
longitude: number | null;
|
|
8
|
+
};
|
|
9
|
+
export class UniMapTapEvent extends UniPointerEvent {
|
|
10
|
+
detail?: UniMapTapEventDetail;
|
|
11
|
+
constructor(type: string, x: number, y: number, clientX: number, clientY: number, pageX: number, pageY: number, screenX: number, screenY: number);
|
|
12
|
+
}
|
|
13
|
+
export type UniMapRegionChangeEventDetail = {
|
|
14
|
+
skew: number | null;
|
|
15
|
+
rotate: number | null;
|
|
16
|
+
};
|
|
17
|
+
export class UniMapRegionChangeEvent extends UniCustomEvent<UniMapRegionChangeEventDetail | null> {
|
|
18
|
+
causedBy?: string | null;
|
|
19
|
+
constructor(type: string, detail: UniMapRegionChangeEventDetail | null);
|
|
20
|
+
}
|
|
21
|
+
export type UniMapMarkerTapEventDetail = {
|
|
22
|
+
markerId: number | null;
|
|
23
|
+
};
|
|
24
|
+
export class UniMapMarkerTapEvent extends UniPointerEvent {
|
|
25
|
+
detail?: UniMapMarkerTapEventDetail;
|
|
26
|
+
constructor(type: string, x: number, y: number, clientX: number, clientY: number, pageX: number, pageY: number, screenX: number, screenY: number);
|
|
27
|
+
}
|
|
28
|
+
export type UniMapControlTapEventDetail = {
|
|
29
|
+
controlId: number | null;
|
|
30
|
+
};
|
|
31
|
+
export class UniMapControlTapEvent extends UniCustomEvent<UniMapControlTapEventDetail> {
|
|
32
|
+
constructor(type: string, detail: UniMapControlTapEventDetail);
|
|
33
|
+
}
|
|
34
|
+
export type UniMapAnchorPointTapEventDetail = {
|
|
35
|
+
latitude: number | null;
|
|
36
|
+
longitude: number | null;
|
|
37
|
+
};
|
|
38
|
+
export class UniMapAnchorPointTapEvent extends UniPointerEvent {
|
|
39
|
+
detail?: UniMapAnchorPointTapEventDetail;
|
|
40
|
+
constructor(type: string, x: number, y: number, clientX: number, clientY: number, pageX: number, pageY: number, screenX: number, screenY: number);
|
|
41
|
+
}
|
|
42
|
+
export type UniMapPoiTapEventDetail = {
|
|
43
|
+
latitude: number | null;
|
|
44
|
+
longitude: number | null;
|
|
45
|
+
name: string | null;
|
|
46
|
+
};
|
|
47
|
+
export class UniMapPoiTapEvent extends UniPointerEvent {
|
|
48
|
+
detail?: UniMapPoiTapEventDetail;
|
|
49
|
+
constructor(type: string, x: number, y: number, clientX: number, clientY: number, pageX: number, pageY: number, screenX: number, screenY: number);
|
|
50
|
+
}
|
|
51
|
+
export type UniMapCalloutTapEventDetail = {
|
|
52
|
+
markerId: number | null;
|
|
53
|
+
};
|
|
54
|
+
export class UniMapCalloutTapEvent extends UniCustomEvent<UniMapCalloutTapEventDetail> {
|
|
55
|
+
constructor(type: string, detail: UniMapCalloutTapEventDetail);
|
|
56
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
UniVideoEventDetail as UniVideoEventDetailOrigin,
|
|
4
|
+
UniVideoEvent as UniVideoEventOrigin,
|
|
5
|
+
UniVideoControlsToggleEventDetail as UniVideoControlsToggleEventDetailOrigin,
|
|
6
|
+
UniVideoControlsToggleEvent as UniVideoControlsToggleEventOrigin,
|
|
7
|
+
VideoErrorCode as VideoErrorCodeOrigin,
|
|
8
|
+
UniWebViewErrorEventDetail as UniWebViewErrorEventDetailOrigin,
|
|
9
|
+
UniVideoErrorEvent as UniVideoErrorEventOrigin,
|
|
10
|
+
UniVideoFullScreenDirection as UniVideoFullScreenDirectionOrigin,
|
|
11
|
+
UniVideoFullScreenChangeEventDetail as UniVideoFullScreenChangeEventDetailOrigin,
|
|
12
|
+
UniVideoFullScreenChangeEvent as UniVideoFullScreenChangeEventOrigin,
|
|
13
|
+
UniVideoFullScreenClickEventDetail as UniVideoFullScreenClickEventDetailOrigin,
|
|
14
|
+
UniVideoFullScreenClickEvent as UniVideoFullScreenClickEventOrigin,
|
|
15
|
+
UniVideoProgressEventDetail as UniVideoProgressEventDetailOrigin,
|
|
16
|
+
UniVideoProgressEvent as UniVideoProgressEventOrigin,
|
|
17
|
+
UniVideoTimeUpdateEventDetail as UniVideoTimeUpdateEventDetailOrigin,
|
|
18
|
+
UniVideoTimeUpdateEvent as UniVideoTimeUpdateEventOrigin,
|
|
19
|
+
} from './interface'
|
|
20
|
+
|
|
21
|
+
declare global {
|
|
22
|
+
type UniVideoEventDetail = UniVideoEventDetailOrigin
|
|
23
|
+
type UniVideoEvent<T> = UniVideoEventOrigin<T>
|
|
24
|
+
type UniVideoControlsToggleEventDetail = UniVideoControlsToggleEventDetailOrigin
|
|
25
|
+
type UniVideoControlsToggleEvent = UniVideoControlsToggleEventOrigin
|
|
26
|
+
type VideoErrorCode = VideoErrorCodeOrigin
|
|
27
|
+
type UniWebViewErrorEventDetail = UniWebViewErrorEventDetailOrigin
|
|
28
|
+
type UniVideoErrorEvent = UniVideoErrorEventOrigin
|
|
29
|
+
type UniVideoFullScreenDirection = UniVideoFullScreenDirectionOrigin
|
|
30
|
+
type UniVideoFullScreenChangeEventDetail = UniVideoFullScreenChangeEventDetailOrigin
|
|
31
|
+
type UniVideoFullScreenChangeEvent = UniVideoFullScreenChangeEventOrigin
|
|
32
|
+
type UniVideoFullScreenClickEventDetail = UniVideoFullScreenClickEventDetailOrigin
|
|
33
|
+
type UniVideoFullScreenClickEvent = UniVideoFullScreenClickEventOrigin
|
|
34
|
+
type UniVideoProgressEventDetail = UniVideoProgressEventDetailOrigin
|
|
35
|
+
type UniVideoProgressEvent = UniVideoProgressEventOrigin
|
|
36
|
+
type UniVideoTimeUpdateEventDetail = UniVideoTimeUpdateEventDetailOrigin
|
|
37
|
+
type UniVideoTimeUpdateEvent = UniVideoTimeUpdateEventOrigin
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
export {
|
|
3
|
+
UniVideoEventDetail,
|
|
4
|
+
UniVideoEvent,
|
|
5
|
+
UniVideoControlsToggleEventDetail,
|
|
6
|
+
UniVideoControlsToggleEvent,
|
|
7
|
+
VideoErrorCode,
|
|
8
|
+
UniWebViewErrorEventDetail,
|
|
9
|
+
UniVideoErrorEvent,
|
|
10
|
+
UniVideoFullScreenDirection,
|
|
11
|
+
UniVideoFullScreenChangeEventDetail,
|
|
12
|
+
UniVideoFullScreenChangeEvent,
|
|
13
|
+
UniVideoFullScreenClickEventDetail,
|
|
14
|
+
UniVideoFullScreenClickEvent,
|
|
15
|
+
UniVideoProgressEventDetail,
|
|
16
|
+
UniVideoProgressEvent,
|
|
17
|
+
UniVideoTimeUpdateEventDetail,
|
|
18
|
+
UniVideoTimeUpdateEvent,
|
|
19
|
+
} from './interface'
|
|
20
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export type UniVideoEventDetail = {};
|
|
2
|
+
export class UniVideoEvent<T = UniVideoEventDetail> extends UniCustomEvent<T> {
|
|
3
|
+
constructor(target: UniElement, type: string, detail?: T);
|
|
4
|
+
}
|
|
5
|
+
export type UniVideoControlsToggleEventDetail = {
|
|
6
|
+
/**
|
|
7
|
+
* 是否显示
|
|
8
|
+
*/
|
|
9
|
+
show: boolean;
|
|
10
|
+
};
|
|
11
|
+
export class UniVideoControlsToggleEvent extends UniVideoEvent<UniVideoControlsToggleEventDetail> {
|
|
12
|
+
constructor(target: UniElement, show: boolean);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 统一错误码
|
|
16
|
+
*/
|
|
17
|
+
export type VideoErrorCode =
|
|
18
|
+
/**
|
|
19
|
+
* 网络错误
|
|
20
|
+
*/
|
|
21
|
+
100001 |
|
|
22
|
+
/**
|
|
23
|
+
* 内部错误
|
|
24
|
+
*/
|
|
25
|
+
200001 |
|
|
26
|
+
/**
|
|
27
|
+
* SDK错误
|
|
28
|
+
*/
|
|
29
|
+
300001;
|
|
30
|
+
export type UniWebViewErrorEventDetail = {
|
|
31
|
+
errSubject: string;
|
|
32
|
+
errCode: VideoErrorCode;
|
|
33
|
+
errMsg: string;
|
|
34
|
+
};
|
|
35
|
+
export class UniVideoErrorEvent extends UniVideoEvent<UniWebViewErrorEventDetail> {
|
|
36
|
+
constructor(target: UniElement, detail: UniWebViewErrorEventDetail);
|
|
37
|
+
}
|
|
38
|
+
export type UniVideoFullScreenDirection = 'vertical' | 'horizontal';
|
|
39
|
+
export type UniVideoFullScreenChangeEventDetail = {
|
|
40
|
+
/**
|
|
41
|
+
* 是否全屏
|
|
42
|
+
*/
|
|
43
|
+
fullScreen: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* 横竖屏
|
|
46
|
+
*/
|
|
47
|
+
direction: UniVideoFullScreenDirection;
|
|
48
|
+
};
|
|
49
|
+
export class UniVideoFullScreenChangeEvent extends UniVideoEvent<UniVideoFullScreenChangeEventDetail> {
|
|
50
|
+
constructor(target: UniElement, fullScreen: boolean, direction?: UniVideoFullScreenDirection);
|
|
51
|
+
}
|
|
52
|
+
export type UniVideoFullScreenClickEventDetail = {
|
|
53
|
+
/**
|
|
54
|
+
* 点击点相对于屏幕左侧边缘的 X 轴坐标
|
|
55
|
+
*/
|
|
56
|
+
screenX: number;
|
|
57
|
+
/**
|
|
58
|
+
* 点击点相对于屏幕顶部边缘的 Y 轴坐标
|
|
59
|
+
*/
|
|
60
|
+
screenY: number;
|
|
61
|
+
/**
|
|
62
|
+
* 屏幕总宽度
|
|
63
|
+
*/
|
|
64
|
+
screenWidth: number;
|
|
65
|
+
/**
|
|
66
|
+
* 屏幕总高度
|
|
67
|
+
*/
|
|
68
|
+
screenHeight: number;
|
|
69
|
+
};
|
|
70
|
+
export class UniVideoFullScreenClickEvent extends UniVideoEvent<UniVideoFullScreenClickEventDetail> {
|
|
71
|
+
constructor(target: UniElement, screenX: number, screenY: number, screenWidth: number, screenHeight: number);
|
|
72
|
+
}
|
|
73
|
+
export type UniVideoProgressEventDetail = {
|
|
74
|
+
/**
|
|
75
|
+
* 加载进度百分比
|
|
76
|
+
*/
|
|
77
|
+
buffered: number;
|
|
78
|
+
};
|
|
79
|
+
export class UniVideoProgressEvent extends UniVideoEvent<UniVideoProgressEventDetail> {
|
|
80
|
+
constructor(target: UniElement, buffered: number);
|
|
81
|
+
}
|
|
82
|
+
export type UniVideoTimeUpdateEventDetail = {
|
|
83
|
+
/**
|
|
84
|
+
* 当前进度
|
|
85
|
+
*/
|
|
86
|
+
currentTime: number;
|
|
87
|
+
/**
|
|
88
|
+
* 总进度
|
|
89
|
+
*/
|
|
90
|
+
duration: number;
|
|
91
|
+
};
|
|
92
|
+
export class UniVideoTimeUpdateEvent extends UniVideoEvent<UniVideoTimeUpdateEventDetail> {
|
|
93
|
+
constructor(target: UniElement, currentTime: number, duration: number);
|
|
94
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
WebViewProgressStyles as WebViewProgressStylesOrigin,
|
|
4
|
+
WebViewStyles as WebViewStylesOrigin,
|
|
5
|
+
UniWebviewContextLoadDataOptions as UniWebviewContextLoadDataOptionsOrigin,
|
|
6
|
+
UniWebViewContextLoadDataOptions as UniWebViewContextLoadDataOptionsOrigin,
|
|
7
|
+
UniWebViewElementLoadDataOptions as UniWebViewElementLoadDataOptionsOrigin,
|
|
8
|
+
WebviewContext as WebviewContextOrigin,
|
|
9
|
+
WebViewContext as WebViewContextOrigin,
|
|
10
|
+
WebViewContext as WebViewContextOrigin,
|
|
11
|
+
CreateWebviewContext as CreateWebviewContextOrigin,
|
|
12
|
+
CreateWebViewContext as CreateWebViewContextOrigin,
|
|
13
|
+
Uni as UniOrigin
|
|
14
|
+
} from './interface'
|
|
15
|
+
|
|
16
|
+
declare global {
|
|
17
|
+
type WebViewProgressStyles = WebViewProgressStylesOrigin
|
|
18
|
+
type WebViewStyles = WebViewStylesOrigin
|
|
19
|
+
type UniWebviewContextLoadDataOptions = UniWebviewContextLoadDataOptionsOrigin
|
|
20
|
+
type UniWebViewContextLoadDataOptions = UniWebViewContextLoadDataOptionsOrigin
|
|
21
|
+
type UniWebViewElementLoadDataOptions = UniWebViewElementLoadDataOptionsOrigin
|
|
22
|
+
type WebviewContext = WebviewContextOrigin
|
|
23
|
+
type WebViewContext = WebViewContextOrigin
|
|
24
|
+
type WebViewContext = WebViewContextOrigin
|
|
25
|
+
type CreateWebviewContext = CreateWebviewContextOrigin
|
|
26
|
+
type CreateWebViewContext = CreateWebViewContextOrigin
|
|
27
|
+
interface Uni extends UniOrigin { }
|
|
28
|
+
}
|
|
29
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
export {
|
|
3
|
+
WebViewProgressStyles,
|
|
4
|
+
WebViewStyles,
|
|
5
|
+
UniWebviewContextLoadDataOptions,
|
|
6
|
+
UniWebViewContextLoadDataOptions,
|
|
7
|
+
UniWebViewElementLoadDataOptions,
|
|
8
|
+
WebviewContext,
|
|
9
|
+
WebViewContext,
|
|
10
|
+
WebViewContext,
|
|
11
|
+
CreateWebviewContext,
|
|
12
|
+
CreateWebViewContext,
|
|
13
|
+
} from './interface'
|
|
14
|
+
|