Skip to content

Commit

Permalink
fix(types): canvas drawImage方法类型检查错误 (#4481)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gengar-666 authored and luckyadam committed Sep 19, 2019
1 parent 68d5801 commit 5e79fde
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/taro/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10776,6 +10776,28 @@ declare namespace Taro {
})
```
* ![] */
drawImage(
/** 所要绘制的图片资源 */
imageResource: string,
/** 图像的左上角在目标 canvas 上 x 轴的位置 */
dx: number,
/** 图像的左上角在目标 canvas 上 y 轴的位置 */
dy: number
): void

drawImage(
/** 所要绘制的图片资源 */
imageResource: string,
/** 图像的左上角在目标 canvas 上 x 轴的位置 */
dx: number,
/** 图像的左上角在目标 canvas 上 y 轴的位置 */
dy: number,
/** 在目标画布上绘制图像的宽度,允许对绘制的图像进行缩放 */
dWidth: number,
/** 在目标画布上绘制图像的高度,允许对绘制的图像进行缩放 */
dHeight: number
): void

drawImage(
/** 所要绘制的图片资源 */
imageResource: string,
Expand Down

0 comments on commit 5e79fde

Please sign in to comment.