Compare commits

..

No commits in common. "ad18fe60b227ac1e2ddd0aeb2e05aef2829dfa0d" and "fa59e2b9ac5dd573b24b4dd91a5a7355854d6fbc" have entirely different histories.

3 changed files with 2 additions and 7 deletions

View File

@ -1,6 +1,3 @@
## 3.1.0-rc.2
- 修复宽高不等svg图片显示有毛边
## 3.1.0-rc.1
- ImageKnifeAnimatorComponent新增开始、结束、暂停的回调事件
- 文件缓存数量负数和超过INT最大值时默认为INT最大值

View File

@ -14,7 +14,7 @@
"main": "index.ets",
"repository": "https://gitee.com/openharmony-tpc/ImageKnife",
"type": "module",
"version": "3.1.0-rc.2",
"version": "3.1.0-rc.1",
"dependencies": {
"@ohos/gpu_transform": "^1.0.2"
},

View File

@ -626,12 +626,10 @@ async function requestJob(request: RequestJobRequest, requestList?: List<ImageKn
};
}
} else if(typeValue == "svg") {
let size = (await imageSource.getImageInfo()).size
let scale = size.height / size.width
let hValue = Math.round(request.componentHeight);
let wValue = Math.round(request.componentWidth);
let defaultSize: image.Size = {
height: vp2px(wValue) * scale,
height: vp2px(hValue),
width: vp2px(wValue)
};
let opts: image.DecodingOptions = {