resize the image
This commit is contained in:
@@ -75,7 +75,7 @@ extension MathImage {
|
||||
intrinsicContentSize = intrinsicContentSize(displayList)
|
||||
displayList.textColor = textColor
|
||||
|
||||
let size = intrinsicContentSize
|
||||
let size = intrinsicContentSize.integral
|
||||
layoutImage(size: size, displayList: displayList)
|
||||
|
||||
#if os(iOS)
|
||||
@@ -107,3 +107,12 @@ private extension CGAffineTransform {
|
||||
return transform
|
||||
}
|
||||
}
|
||||
extension CGSize: Hashable {
|
||||
public func hash(into hasher: inout Hasher) {
|
||||
hasher.combine(width)
|
||||
hasher.combine(height)
|
||||
}
|
||||
var integral: CGSize {
|
||||
CGSize(width: ceil(width), height: ceil(height))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user