We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57469d9 commit 5db4ddeCopy full SHA for 5db4dde
cropper/src/main/java/com/smarttoolfactory/cropper/util/DrawScopeUtils.kt
@@ -107,7 +107,7 @@ fun Modifier.drawOutlineWithBlendModeAndChecker(
107
) = this.then(
108
Modifier.drawWithCache {
109
110
- val (left, top, outline) = buildOutline(
+ val (offset, outline) = buildOutline(
111
aspectRatio,
112
coefficient,
113
shape,
@@ -118,7 +118,7 @@ fun Modifier.drawOutlineWithBlendModeAndChecker(
118
119
onDrawWithContent {
120
drawBlockWithCheckerAndLayer(dstBitmap) {
121
- translate(left = left, top = top) {
+ translate(left = offset.x, top = offset.y) {
122
drawOutline(
123
outline = outline,
124
color = color,
0 commit comments