mirror of
https://github.com/exyte/Macaw.git
synced 2024-11-13 13:14:20 +03:00
Little improvement
This commit is contained in:
parent
209ebb6f38
commit
e4534de43c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user