Skip to content

Commit cde010b

Browse files
authored
refactor(types): sync components types
1 parent e021832 commit cde010b

File tree

77 files changed

+312
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+312
-96
lines changed

docs/apis/ai/visionkit/VKCamera.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ sidebar_label: VKCamera
1313

1414
| 参数 | 类型 | 说明 |
1515
| --- | --- | --- |
16-
| viewMatrix | `Float32Array` | 视图矩阵 |
17-
| intrinsics | `Float32Array` | 相机内参,只有 v2 版本支持 |
16+
| viewMatrix | `Float32Array<ArrayBufferLike>` | 视图矩阵 |
17+
| intrinsics | `Float32Array<ArrayBufferLike>` | 相机内参,只有 v2 版本支持 |
1818

1919
### getProjectionMatrix
2020

@@ -25,7 +25,7 @@ sidebar_label: VKCamera
2525
> [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKCamera.getProjectionMatrix.html)
2626
2727
```tsx
28-
(near: number, far: number) => Float32Array
28+
(near: number, far: number) => Float32Array<ArrayBufferLike>
2929
```
3030

3131
| 参数 | 类型 | 说明 |

docs/apis/ai/visionkit/VKFrame.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ vision kit 会话对象
6060
> [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKFrame.getDisplayTransform.html)
6161
6262
```tsx
63-
() => Float32Array
63+
() => Float32Array<ArrayBufferLike>
6464
```
6565

6666
## 参数

docs/apis/ai/visionkit/VKMarkerAnchor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ marker anchor
1515
| --- | --- | --- |
1616
| id | `number` | 唯一标识 |
1717
| type | `1` | 类型 |
18-
| transform | `Float32Array` | 包含位置、旋转、放缩信息的矩阵,以列为主序 |
18+
| transform | `Float32Array<ArrayBufferLike>` | 包含位置、旋转、放缩信息的矩阵,以列为主序 |
1919
| markerId | `number` | marker id |
2020
| path | `string` | 图片路径 |
2121

docs/apis/ai/visionkit/VKPlaneAnchor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sidebar_label: VKPlaneAnchor
1515
| --- | --- | --- |
1616
| id | `number` | 唯一标识 |
1717
| type | `0` | 类型 |
18-
| transform | `Float32Array` | 包含位置、旋转、放缩信息的矩阵,以列为主序 |
18+
| transform | `Float32Array<ArrayBufferLike>` | 包含位置、旋转、放缩信息的矩阵,以列为主序 |
1919
| size | `ISize` | 尺寸 |
2020
| alignment | `number` | 方向 |
2121

docs/apis/ai/visionkit/VKSession.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ hitTest 检测结果
618618

619619
| 参数 | 类型 | 说明 |
620620
| --- | --- | --- |
621-
| transform | `Float32Array` | 包含位置、旋转、放缩信息的矩阵,以列为主序 |
621+
| transform | `Float32Array<ArrayBufferLike>` | 包含位置、旋转、放缩信息的矩阵,以列为主序 |
622622

623623
### IStartStatus
624624

docs/apis/base/system/getSystemInfo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ sidebar_label: getSystemInfo
7171
| enableDebug | `boolean` || 是否已打开调试。可通过右上角菜单或 [Taro.setEnableDebug](/docs/apis/base/debug/setEnableDebug) 打开调试。 |
7272
| deviceOrientation | `keyof DeviceOrientation` || 设备方向 |
7373
| environment | `string` || 小程序当前运行环境 |
74+
| screen | `{ width: number; height: number; }` || 仅支付宝小程序生效<br />screenHeight、screenWidth在 Android 上取值有误,建议使用 screen字段内的属性替代。<br />https://opendocs.alipay.com/mini/api/gawhvz?pathHash=270f3253<br />单位: px |
7475

7576
### Theme
7677

docs/apis/base/system/getSystemInfoAsync.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ sidebar_label: getSystemInfoAsync
7171
| enableDebug | `boolean` || 是否已打开调试。可通过右上角菜单或 [Taro.setEnableDebug](/docs/apis/base/debug/setEnableDebug) 打开调试。 |
7272
| deviceOrientation | `keyof DeviceOrientation` || 设备方向 |
7373
| environment | `string` || 小程序当前运行环境 |
74+
| screen | `{ width: number; height: number; }` || 仅支付宝小程序生效<br />screenHeight、screenWidth在 Android 上取值有误,建议使用 screen字段内的属性替代。<br />https://opendocs.alipay.com/mini/api/gawhvz?pathHash=270f3253<br />单位: px |
7475

7576
### Theme
7677

docs/apis/base/system/getSystemInfoSync.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ sidebar_label: getSystemInfoSync
5959
| enableDebug | `boolean` || 是否已打开调试。可通过右上角菜单或 [Taro.setEnableDebug](/docs/apis/base/debug/setEnableDebug) 打开调试。 |
6060
| deviceOrientation | `keyof DeviceOrientation` || 设备方向 |
6161
| environment | `string` || 小程序当前运行环境 |
62+
| screen | `{ width: number; height: number; }` || 仅支付宝小程序生效<br />screenHeight、screenWidth在 Android 上取值有误,建议使用 screen字段内的属性替代。<br />https://opendocs.alipay.com/mini/api/gawhvz?pathHash=270f3253<br />单位: px |
6263

6364
### Theme
6465

docs/apis/canvas/ImageData.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ImageData 对象
1515
| --- | --- | --- |
1616
| width | `number` | 使用像素描述 ImageData 的实际宽度 |
1717
| height | `number` | 使用像素描述 ImageData 的实际高度 |
18-
| data | `Uint8ClampedArray` | 一维数组,包含以 RGBA 顺序的数据,数据使用 0 至 255(包含)的整数表示 |
18+
| data | `Uint8ClampedArray<ArrayBufferLike>` | 一维数组,包含以 RGBA 顺序的数据,数据使用 0 至 255(包含)的整数表示 |
1919

2020
## API 支持度
2121

docs/apis/canvas/canvasGetImageData.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ sidebar_label: canvasGetImageData
3939

4040
| 参数 | 类型 | 说明 |
4141
| --- | --- | --- |
42-
| data | `Uint8ClampedArray` | 图像像素点数据,一维数组,每四项表示一个像素点的 rgba |
42+
| data | `Uint8ClampedArray<ArrayBufferLike>` | 图像像素点数据,一维数组,每四项表示一个像素点的 rgba |
4343
| height | `number` | 图像数据矩形的高度 |
4444
| width | `number` | 图像数据矩形的宽度 |
4545
| errMsg | `string` | 调用结果 |

0 commit comments

Comments
 (0)