mirror of
https://github.com/exyte/Macaw.git
synced 2024-11-11 01:42:35 +03:00
Fix for ellipse locus converting to cgPath
This commit is contained in:
parent
27d07e17a9
commit
cdc7d361b2
@ -152,7 +152,10 @@ class RenderUtils {
|
|||||||
let path = toBezierPath(transformedLocus.locus)
|
let path = toBezierPath(transformedLocus.locus)
|
||||||
path.apply(transformedLocus.transform.toCG())
|
path.apply(transformedLocus.transform.toCG())
|
||||||
return path
|
return path
|
||||||
|
} else if let ellipse = locus as? Ellipse {
|
||||||
|
return MBezierPath(ovalIn: ellipse.bounds().toCG())
|
||||||
}
|
}
|
||||||
|
|
||||||
fatalError("Unsupported locus: \(locus)")
|
fatalError("Unsupported locus: \(locus)")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user