1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-11-13 13:14:20 +03:00

Little improvement

This commit is contained in:
Alisa Mylnikova 2018-06-13 15:29:12 +07:00
parent 209ebb6f38
commit e4534de43c

View File

@ -1438,7 +1438,7 @@ open class SVGParser {
let finalSize = Size(w: absoluteBounds.w * respectiveBounds.w,
h: absoluteBounds.h * respectiveBounds.h)
let scale = ContentLayout.of(contentMode: .scaleToFill).layout(size: respectiveBounds.size(), into: finalSize)
let transform = Transform.identity.move(dx: absoluteBounds.x, dy: absoluteBounds.y).scale(sx: scale.m11, sy: scale.m22)
let transform = Transform.move(dx: absoluteBounds.x, dy: absoluteBounds.y).concat(with: scale)
return TransformedLocus(locus: userSpaceLocus.locus, transform: transform)
}
return userSpaceLocus.locus