@dcloudio/uni-app-x 0.7.38 → 0.7.39

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 (104) hide show
  1. package/package.json +1 -1
  2. package/types/UniPage.d.ts +4 -0
  3. package/types/native/CanvasRenderingContext2D.d.ts +1 -1
  4. package/types/native/IUniElement.d.ts +105 -44
  5. package/types/native/global.d.ts +14 -8
  6. package/types/page.d.ts +45 -3
  7. package/types/uni/env/index.d.ts +81 -81
  8. package/types/uni/uni-map-tencent-map.d.ts +7 -7
  9. package/types/uni/uts-plugin-api/global.d.ts +0 -2
  10. package/types/uni/uts-plugin-api/index.d.ts +0 -2
  11. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1 -1
  12. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +73 -73
  13. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +331 -331
  14. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +73 -73
  15. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +628 -628
  16. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +414 -153
  17. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +2 -2
  18. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1218 -1987
  19. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +1 -1
  20. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +6 -6
  21. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +156 -81
  22. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +315 -315
  23. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +5 -5
  24. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +2530 -2126
  25. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +490 -490
  26. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2138 -2005
  27. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +4 -0
  28. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +2 -0
  29. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +663 -113
  30. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +20 -20
  31. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +3 -3
  32. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +217 -217
  33. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +2 -2
  34. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +809 -809
  35. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +274 -274
  36. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
  37. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +969 -969
  38. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +106 -106
  39. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +23 -23
  40. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +2 -2
  41. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +1 -1
  42. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +41 -41
  43. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +88 -88
  44. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1680 -1528
  45. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +16 -16
  46. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3620 -3618
  47. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +12 -12
  48. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +1 -1
  49. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +3 -3
  50. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +621 -621
  51. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +22 -22
  52. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2602 -2391
  53. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +2 -2
  54. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +26 -26
  55. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +77 -77
  56. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
  57. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +857 -857
  58. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +17 -17
  59. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +8 -0
  60. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +4 -0
  61. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1057 -516
  62. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1660 -1660
  63. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1746 -1746
  64. package/types/uni/uts-plugin-biz/global.d.ts +1 -0
  65. package/types/uni/uts-plugin-biz/index.d.ts +1 -0
  66. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +84 -0
  67. package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/interface.d.ts +46 -46
  68. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +72 -20
  69. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +126 -0
  70. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +2 -0
  71. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +1 -0
  72. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +63 -12
  73. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +308 -308
  74. package/types/uni/uts-plugin-extend/global.d.ts +1 -0
  75. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -0
  76. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/index.d.ts +0 -0
  77. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -0
  78. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +4 -4
  79. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +5 -5
  80. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1 -1
  81. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +77 -77
  82. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +11 -11
  83. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  84. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +6 -6
  85. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +2 -2
  86. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +1 -1
  87. package/types/uni-cloud/interface.d.ts +13 -13
  88. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +0 -24
  89. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +0 -11
  90. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +0 -217
  91. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +0 -21
  92. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +0 -9
  93. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +0 -151
  94. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +0 -11
  95. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +0 -4
  96. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +0 -224
  97. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +0 -53
  98. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +0 -25
  99. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +0 -487
  100. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +0 -9
  101. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +0 -1
  102. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +0 -165
  103. /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/global.d.ts +0 -0
  104. /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/index.d.ts +0 -0
@@ -1,25 +0,0 @@
1
- export {
2
- CreateMapContext,
3
- MapContext,
4
- MapContextSetCenterOffsetOptions,
5
- MapContextToScreenLocationOptions,
6
- MapContextUpdateGroundOverlayOptions,
7
- MapContextAddCustomLayerOptions,
8
- MapContextRemoveCustomLayerOptions,
9
- MapContextRemoveGroundOverlayOptions,
10
- MapContextRemoveMarkersOptions,
11
- MapContextAddGroundOverlayOptions,
12
- MapContextAddMarkersOptions,
13
- MapContextFromScreenLocationOptions,
14
- MapContextInitMarkerClusterOptions,
15
- MapContextMoveAlongOptions,
16
- MapContextOpenMapAppOptions,
17
- MapContextGetRegionOptions,
18
- MapContextGetScaleOptions,
19
- MapContextGetCenterLocationOptions,
20
- MapContextGetRegionResult,
21
- MapContextGetScaleResult,
22
- MapContextIncludePointsOptions,
23
- MapContextMoveToLocationOptions,
24
- MapContextTranslateMarkerOptions,
25
- } from './interface'
@@ -1,487 +0,0 @@
1
- export interface AsyncOptions {
2
- /**
3
- * 接口调用成功的回调函数
4
- */
5
- success?: (result: any) => void;
6
- /**
7
- * 接口调用失败的回调函数
8
- */
9
- fail?: (result: any) => void;
10
- /**
11
- * 接口调用结束的回调函数(调用成功、失败都会执行)
12
- */
13
- complete?: (result: any) => void;
14
- }
15
-
16
- export interface MapContext {
17
- /**
18
- * 获取当前地图中心的经纬度,返回的是 gcj02 坐标系,可以用于 uni.openLocation
19
- */
20
- getCenterLocation(options: MapContextGetCenterLocationOptions): void;
21
- /**
22
- * 将地图中心移动到当前定位点,需要配合map组件的show-location使用
23
- */
24
- moveToLocation(options: MapContextMoveToLocationOptions): void;
25
- /**
26
- * 平移marker,带动画
27
- */
28
- translateMarker(options: MapContextTranslateMarkerOptions): void;
29
- /**
30
- * 缩放视野展示所有经纬度
31
- */
32
- includePoints(options: MapContextIncludePointsOptions): void;
33
- /**
34
- * 获取当前地图的视野范围
35
- */
36
- getRegion(options: MapContextGetRegionOptions): void;
37
- /**
38
- * 获取当前地图的缩放级别
39
- */
40
- getScale(options: MapContextGetScaleOptions): void;
41
- /**
42
- * 添加个性化图层
43
- */
44
- addCustomLayer?: (options: MapContextAddCustomLayerOptions) => void;
45
- /**
46
- * 创建自定义图片图层,图片会随着地图缩放而缩放
47
- */
48
- addGroundOverlay(options: MapContextAddGroundOverlayOptions): void;
49
- /**
50
- * 添加 marker
51
- */
52
- addMarkers(options: MapContextAddMarkersOptions): void;
53
- /**
54
- * 获取屏幕上的点对应的经纬度,坐标原点为地图左上角
55
- */
56
- fromScreenLocation?: (options: MapContextFromScreenLocationOptions) => void;
57
- /**
58
- * 初始化点聚合的配置,未调用时采用默认配置
59
- */
60
- initMarkerCluster(options: MapContextInitMarkerClusterOptions): void;
61
- /**
62
- * 沿指定路径移动 marker,用于轨迹回放等场景。动画完成时触发回调事件,若动画进行中,对同一 marker 再次调用 moveAlong 方法,前一次的动画将被打断。
63
- */
64
- moveAlong(options: MapContextMoveAlongOptions): void;
65
- /**
66
- * 拉起地图APP选择导航。
67
- */
68
- openMapApp(options: MapContextOpenMapAppOptions): void;
69
- /**
70
- * 移除个性化图层
71
- */
72
- removeCustomLayer(options: MapContextRemoveCustomLayerOptions): void;
73
- /**
74
- * 移除自定义图片图层
75
- */
76
- removeGroundOverlay(options: MapContextRemoveGroundOverlayOptions): void;
77
- /**
78
- * 移除 marker
79
- */
80
- removeMarkers(options: MapContextRemoveMarkersOptions): void;
81
- /**
82
- * 设置地图中心点偏移,向后向下为增长,屏幕比例范围(0.25~0.75),默认偏移为[0.5, 0.5]
83
- */
84
- setCenterOffset?: (options: MapContextSetCenterOffsetOptions) => void;
85
- /**
86
- * 获取经纬度对应的屏幕坐标,坐标原点为地图左上角。
87
- */
88
- toScreenLocation?: (options: MapContextToScreenLocationOptions) => void;
89
- /**
90
- * 更新自定义图片图层。
91
- */
92
- updateGroundOverlay(options: MapContextUpdateGroundOverlayOptions): void;
93
- /**
94
- * 监听地图事件。
95
- */
96
- on(event: 'markerClusterCreate' | 'markerClusterClick', callback: (...args: any[]) => any): void;
97
- /**
98
- * @internal
99
- * 获取原生地图对象 plus.maps.Map
100
- */
101
- $getAppMap(): any;
102
- }
103
-
104
- export interface MapContextGetCenterLocationOptions extends AsyncOptions {
105
- /**
106
- * 接口调用成功的回调函数 ,res = { longitude: "经度", latitude: "纬度"}
107
- */
108
- success?: (result: LocationObject) => void;
109
- }
110
-
111
- export interface MapContextMoveToLocationOptions extends AsyncOptions {
112
- /**
113
- * 纬度,浮点数,范围为-90~90,负数表示南纬
114
- */
115
- latitude?: number;
116
- /**
117
- * 经度,范围为-180~180,负数表示西经
118
- */
119
- longitude?: number;
120
- }
121
-
122
- export interface LocationObject {
123
- /**
124
- * 纬度,浮点数,范围为-90~90,负数表示南纬
125
- */
126
- latitude: number;
127
- /**
128
- * 经度,范围为-180~180,负数表示西经
129
- */
130
- longitude: number;
131
- }
132
-
133
- export interface MapContextTranslateMarkerOptions extends AsyncOptions {
134
- /**
135
- * 指定marker
136
- */
137
- markerId: number;
138
- /**
139
- * 指定marker移动到的目标点
140
- */
141
- destination: LocationObject;
142
- /**
143
- * 移动过程中是否自动旋转marker
144
- */
145
- autoRotate?: boolean;
146
- /**
147
- * marker的旋转角度
148
- */
149
- rotate?: number;
150
- /**
151
- * 平移和旋转同时进行,默认值false(仅微信小程序2.13.0支持)
152
- */
153
- moveWithRotate?: boolean;
154
- /**
155
- * 动画持续时长,默认值1000ms,平移与旋转分别计算
156
- */
157
- duration?: number;
158
- /**
159
- * 动画结束回调函数
160
- */
161
- animationEnd?: (result: any) => void;
162
- }
163
-
164
- export interface MapContextIncludePointsOptions extends AsyncOptions {
165
- /**
166
- * 要显示在可视区域内的坐标点列表,[{latitude, longitude}]
167
- */
168
- points: LocationObject[];
169
- /**
170
- * 坐标点形成的矩形边缘到地图边缘的距离,单位像素。格式为[上,右,下,左],安卓上只能识别数组第一项,上下左右的padding一致。开发者工具暂不支持padding参数。
171
- */
172
- padding?: number[];
173
- }
174
-
175
- export interface MapContextGetRegionOptions extends AsyncOptions {
176
- /**
177
- * 接口调用成功的回调函数,res = {southwest, northeast},西南角与东北角的经纬度
178
- */
179
- success?: (result: MapContextGetRegionResult) => void;
180
- }
181
-
182
- export interface MapContextGetRegionResult {
183
- /**
184
- * 西南角的经纬度
185
- */
186
- southwest: LocationObject;
187
- /**
188
- * 东北角的经纬度
189
- */
190
- northeast: LocationObject;
191
- }
192
-
193
- export interface MapContextGetScaleOptions extends AsyncOptions {
194
- /**
195
- * 接口调用成功的回调函数,res = {scale}
196
- */
197
- success?: (result: MapContextGetScaleResult) => void;
198
- }
199
-
200
- export interface MapContextGetScaleResult {
201
- /**
202
- * 地图缩放级别
203
- */
204
- scale: number;
205
- }
206
-
207
- export interface MapContextAddCustomLayerOptions extends AsyncOptions {
208
- /**
209
- * 个性化图层id
210
- */
211
- layerId: string;
212
- }
213
-
214
- export interface MapContextAddGroundOverlayOptions extends AsyncOptions {
215
- /**
216
- * 图片图层 id
217
- */
218
- id: string;
219
- /**
220
- * 图片路径,支持网络图片、临时路径、代码包路径
221
- */
222
- src: string;
223
- /**
224
- * 图片覆盖的经纬度范围
225
- */
226
- bounds: Bounds;
227
- /**
228
- * 是否可见
229
- */
230
- visible?: boolean;
231
- /**
232
- * 图层绘制顺序
233
- */
234
- zIndex?: number;
235
- /**
236
- * 图层透明度
237
- */
238
- opacity?: number;
239
- }
240
-
241
- export interface Bounds {
242
- /**
243
- * 西南角的经纬度
244
- */
245
- southwest: LocationObject;
246
- /**
247
- * 东北角的经纬度
248
- */
249
- northeast: LocationObject;
250
- }
251
-
252
- export interface MapContextAddMarkersOptions extends AsyncOptions {
253
- /**
254
- * 同传入 map 组件的 marker 属性
255
- */
256
- markers: any[];
257
- /**
258
- * 是否先清空地图上所有 marker
259
- */
260
- clear: boolean;
261
- }
262
-
263
- export interface MapContextFromScreenLocationOptions extends AsyncOptions {
264
- /**
265
- * x 坐标值
266
- */
267
- x: number;
268
- /**
269
- * y 坐标值
270
- */
271
- y: number;
272
- /**
273
- * 接口调用成功的回调函数
274
- */
275
- success?: (result: LocationObject) => void;
276
- }
277
-
278
- export interface MapContextInitMarkerClusterOptions extends AsyncOptions {
279
- /**
280
- * 启用默认的聚合样式
281
- */
282
- enableDefaultStyle: boolean;
283
- /**
284
- * 点击已经聚合的标记点时是否实现聚合分离
285
- */
286
- zoomOnClick: boolean;
287
- /**
288
- * 聚合算法的可聚合距离,即距离小于该值的点会聚合至一起,以像素为单位
289
- */
290
- gridSize: number;
291
- }
292
-
293
- export interface MapContextMoveAlongOptions extends AsyncOptions {
294
- /**
295
- * 指定 marker
296
- */
297
- markerId: number;
298
- /**
299
- * 移动路径的坐标串,坐标点格式 {longitude, latitude}
300
- */
301
- path: LocationObject[];
302
- /**
303
- * 根据路径方向自动改变 marker 的旋转角度
304
- */
305
- autoRotate?: boolean;
306
- /**
307
- * 平滑移动的时间
308
- */
309
- duration: number;
310
- }
311
-
312
- export interface MapContextOpenMapAppOptions extends AsyncOptions {
313
- /**
314
- * 目的地名称
315
- */
316
- destination: string;
317
- /**
318
- * 目的地纬度
319
- */
320
- latitude: number;
321
- /**
322
- * 目的地经度
323
- */
324
- longitude: number;
325
- }
326
-
327
- export interface MapContextRemoveCustomLayerOptions extends AsyncOptions {
328
- /**
329
- * 个性化图层id
330
- */
331
- layerId: string;
332
- }
333
-
334
- export interface MapContextRemoveGroundOverlayOptions extends AsyncOptions {
335
- /**
336
- * 图片图层 id
337
- */
338
- id: string;
339
- }
340
-
341
- export interface MapContextRemoveMarkersOptions extends AsyncOptions {
342
- /**
343
- * 要被删除的marker的id属性组成的数组
344
- */
345
- markerIds: any[];
346
- }
347
-
348
- export interface MapContextSetCenterOffsetOptions {
349
- /**
350
- * 偏移量,两位数组
351
- */
352
- offset: number[];
353
- /**
354
- * 接口调用成功的回调函数
355
- */
356
- success?: (result: any) => void;
357
- /**
358
- * 接口调用失败的回调函数
359
- */
360
- fail?: (result: any) => void;
361
- /**
362
- * 接口调用结束的回调函数(调用成功、失败都会执行)
363
- */
364
- complete?: (result: any) => void;
365
- }
366
-
367
- export interface MapContextToScreenLocationOptions extends AsyncOptions {
368
- /**
369
- * 纬度
370
- */
371
- latitude: number;
372
- /**
373
- * 经度
374
- */
375
- longitude: number;
376
- }
377
-
378
- export interface MapContextUpdateGroundOverlayOptions extends AsyncOptions {
379
- /**
380
- * 图片图层 id
381
- */
382
- id: string;
383
- /**
384
- * 图片路径,支持网络图片、临时路径、代码包路径
385
- */
386
- src: string;
387
- /**
388
- * 图片路径,支持网络图片、临时路径、代码包路径
389
- */
390
- bounds: Bounds;
391
- /**
392
- * 是否可见
393
- */
394
- visible?: boolean;
395
- /**
396
- * 图层绘制顺序
397
- */
398
- zIndex?: number;
399
- /**
400
- * 图层透明度
401
- */
402
- opacity?: number;
403
- }
404
-
405
- export type CreateMapContext = (mapId: string, currentComponent?: ComponentPublicInstance) => MapContext
406
-
407
-
408
- export interface Uni {
409
- /**
410
- * 创建并返回 map 上下文 mapContext 对象
411
- *
412
- * @tutorial https://uniapp.dcloud.io/api/location/map.html#createmapcontext
413
- * @tutorial-uni-app https://uniapp.dcloud.io/api/location/map.html#createmapcontext
414
- * @uniPlatform {
415
- * "app": {
416
- * "android": {
417
- * "osVer": "5.0",
418
- * "uniVer": {
419
- * "vue": "√",
420
- * "nvue": "2.2.5"
421
- * },
422
- * "unixVer": "x"
423
- * },
424
- * "ios": {
425
- * "osVer": "12.0",
426
- * "uniVer": {
427
- * "vue": "√",
428
- * "nvue": "2.2.5"
429
- * },
430
- * "unixVer": "x"
431
- * },
432
- * "harmony": {
433
- * "osVer": "3,0",
434
- * "uniVer": "4.25",
435
- * "unixVer": "x"
436
- * }
437
- * },
438
- * "mp": {
439
- * "weixin": {
440
- * "hostVer": "√",
441
- * "uniVer": "√",
442
- * "unixVer": "4.35"
443
- * },
444
- * "alipay": {
445
- * "hostVer": "√",
446
- * "uniVer": "√",
447
- * "unixVer": "x"
448
- * },
449
- * "baidu": {
450
- * "hostVer": "√",
451
- * "uniVer": "√",
452
- * "unixVer": "x"
453
- * },
454
- * "toutiao": {
455
- * "hostVer": "√",
456
- * "uniVer": "√",
457
- * "unixVer": "x"
458
- * },
459
- * "lark": {
460
- * "hostVer": "√",
461
- * "uniVer": "√",
462
- * "unixVer": "x"
463
- * },
464
- * "qq": {
465
- * "hostVer": "1.9.0",
466
- * "uniVer": "√",
467
- * "unixVer": "x"
468
- * },
469
- * "kuaishou": {
470
- * "hostVer": "√",
471
- * "uniVer": "√",
472
- * "unixVer": "x"
473
- * },
474
- * "jd": {
475
- * "hostVer": "√",
476
- * "uniVer": "√",
477
- * "unixVer": "x"
478
- * }
479
- * },
480
- * "web": {
481
- * "uniVer": "√",
482
- * "unixVer": "4.0"
483
- * }
484
- * }
485
- */
486
- createMapContext(mapId: string, currentComponent?: ComponentPublicInstance): MapContext
487
- }
@@ -1,9 +0,0 @@
1
- import { OnThemeChangeCallback as OnThemeChangeCallbackOrigin, OnThemeChange as OnThemeChangeOrigin, OffThemeChangeCallback as OffThemeChangeCallbackOrigin, OffThemeChange as OffThemeChangeOrigin, Uni as UniOrigin } from "./interface"
2
-
3
- declare global {
4
- type OnThemeChangeCallback = OnThemeChangeCallbackOrigin
5
- type OnThemeChange = OnThemeChangeOrigin
6
- type OffThemeChangeCallback = OffThemeChangeCallbackOrigin
7
- type OffThemeChange = OffThemeChangeOrigin
8
- interface Uni extends UniOrigin { }
9
- }
@@ -1 +0,0 @@
1
- export { OnThemeChangeCallback, OnThemeChange, OffThemeChangeCallback, OffThemeChange } from './interface'
@@ -1,165 +0,0 @@
1
- export interface Uni {
2
- /**
3
- * 监听系统主题状态变化。
4
- *
5
- * @tutorial https://uniapp.dcloud.io/api/system/theme.html#onthemechange
6
- * @tutorial-uni-app https://uniapp.dcloud.io/api/system/theme.html#onthemechange
7
- * @uniPlatform {
8
- * "app": {
9
- * "android": {
10
- * "osVer": "5.0",
11
- * "uniVer": "3.6.9",
12
- * "unixVer": "x"
13
- * },
14
- * "ios": {
15
- * "osVer": "9.0",
16
- * "uniVer": "2.6.5",
17
- * "unixVer": "x"
18
- * },
19
- * "harmony": {
20
- * "osVer": "x",
21
- * "uniVer": "x",
22
- * "unixVer": "x"
23
- * }
24
- * },
25
- * "mp": {
26
- * "weixin": {
27
- * "hostVer": "√",
28
- * "uniVer": "2.11.0",
29
- * "unixVer": "4.35"
30
- * },
31
- * "alipay": {
32
- * "hostVer": "x",
33
- * "uniVer": "x",
34
- * "unixVer": "x"
35
- * },
36
- * "baidu": {
37
- * "hostVer": "x",
38
- * "uniVer": "x",
39
- * "unixVer": "x"
40
- * },
41
- * "toutiao": {
42
- * "hostVer": "x",
43
- * "uniVer": "x",
44
- * "unixVer": "x"
45
- * },
46
- * "lark": {
47
- * "hostVer": "√",
48
- * "uniVer": "5.3.0",
49
- * "unixVer": "x"
50
- * },
51
- * "qq": {
52
- * "hostVer": "x",
53
- * "uniVer": "x",
54
- * "unixVer": "x"
55
- * },
56
- * "kuaishou": {
57
- * "hostVer": "x",
58
- * "uniVer": "x",
59
- * "unixVer": "x"
60
- * },
61
- * "jd": {
62
- * "hostVer": "x",
63
- * "uniVer": "x",
64
- * "unixVer": "x"
65
- * }
66
- * },
67
- * "web": {
68
- * "uniVer": "3.6.9",
69
- * "unixVer": "x"
70
- * }
71
- * }
72
- */
73
- onThemeChange(callback: OnThemeChangeCallback): void;
74
- /**
75
- * 取消监听系统主题状态变化。
76
- *
77
- * @tutorial https://uniapp.dcloud.io/api/system/theme.html#offthemechange
78
- * @tutorial-uni-app https://uniapp.dcloud.io/api/system/theme.html#offthemechange
79
- * @uniPlatform {
80
- * "app": {
81
- * "android": {
82
- * "osVer": "5.0",
83
- * "uniVer": "3.6.9",
84
- * "unixVer": "x"
85
- * },
86
- * "ios": {
87
- * "osVer": "9.0",
88
- * "uniVer": "2.6.5",
89
- * "unixVer": "x"
90
- * },
91
- * "harmony": {
92
- * "osVer": "x",
93
- * "uniVer": "x",
94
- * "unixVer": "x"
95
- * }
96
- * },
97
- * "mp": {
98
- * "weixin": {
99
- * "hostVer": "√",
100
- * "uniVer": "2.11.0",
101
- * "unixVer": "4.35"
102
- * },
103
- * "alipay": {
104
- * "hostVer": "x",
105
- * "uniVer": "x",
106
- * "unixVer": "x"
107
- * },
108
- * "baidu": {
109
- * "hostVer": "x",
110
- * "uniVer": "x",
111
- * "unixVer": "x"
112
- * },
113
- * "toutiao": {
114
- * "hostVer": "x",
115
- * "uniVer": "x",
116
- * "unixVer": "x"
117
- * },
118
- * "lark": {
119
- * "hostVer": "√",
120
- * "uniVer": "5.3.0",
121
- * "unixVer": "x"
122
- * },
123
- * "qq": {
124
- * "hostVer": "x",
125
- * "uniVer": "x",
126
- * "unixVer": "x"
127
- * },
128
- * "kuaishou": {
129
- * "hostVer": "x",
130
- * "uniVer": "x",
131
- * "unixVer": "x"
132
- * },
133
- * "jd": {
134
- * "hostVer": "x",
135
- * "uniVer": "x",
136
- * "unixVer": "x"
137
- * }
138
- * },
139
- * "web": {
140
- * "uniVer": "3.6.9",
141
- * "unixVer": "x"
142
- * }
143
- * }
144
- */
145
- offThemeChange(callback: OffThemeChangeCallback): void;
146
- }
147
-
148
- export type OnThemeChange = (callback: OnThemeChangeCallback) => void;
149
- export type OnThemeChangeCallbackResult = {
150
- /**
151
- * 主题名称
152
- * @type 'dark' | 'light'
153
- */
154
- theme: string
155
- };
156
- export type OnThemeChangeCallback = (result: OnThemeChangeCallbackResult) => void;
157
- export type OffThemeChange = (callback: OffThemeChangeCallback) => void;
158
- export type OffThemeChangeCallbackResult = {
159
- /**
160
- * 主题名称
161
- * @type 'dark' | 'light'
162
- */
163
- theme: string
164
- };
165
- export type OffThemeChangeCallback = (result: OffThemeChangeCallbackResult) => void;