commit
59d80e5c55
|
@ -1,6 +1,7 @@
|
||||||
## 2.1.2-rc.6
|
## 2.1.2-rc.6
|
||||||
- 修复手机调节显示大小时图片消失
|
- 修复手机调节显示大小时图片消失
|
||||||
- pngWorker线程改为taskpool
|
- pngWorker线程改为taskpool
|
||||||
|
- 修复正方形裁剪有些图片裁剪创建pixelMap失败
|
||||||
|
|
||||||
## 2.1.2-rc.5
|
## 2.1.2-rc.5
|
||||||
- moduleContext新增缓存策略,缓存上限5,缓存策略Lru
|
- moduleContext新增缓存策略,缓存上限5,缓存策略Lru
|
||||||
|
|
|
@ -60,8 +60,8 @@ export class CropSquareTransformation implements BaseTransform<PixelMap> {
|
||||||
editable: true,
|
editable: true,
|
||||||
rotate: 0,
|
rotate: 0,
|
||||||
desiredSize: {
|
desiredSize: {
|
||||||
width: outWidth,
|
width: pw,
|
||||||
height: outHeight
|
height: ph
|
||||||
},
|
},
|
||||||
desiredRegion: { size: { width: targetSize, height: targetSize },
|
desiredRegion: { size: { width: targetSize, height: targetSize },
|
||||||
x: pw / 2 - targetSize / 2,
|
x: pw / 2 - targetSize / 2,
|
||||||
|
|
Loading…
Reference in New Issue