@@ -1216,11 +1216,11 @@ open class TextNode: ASDisplayNode, TextNodeProtocol {
12161216 public static let all : RenderContentTypes = [ . text, . emoji]
12171217 }
12181218
1219- final class DrawingParameters : NSObject {
1219+ public final class DrawingParameters : NSObject {
12201220 let cachedLayout : TextNodeLayout ?
12211221 let renderContentTypes : RenderContentTypes
12221222
1223- init ( cachedLayout: TextNodeLayout ? , renderContentTypes: RenderContentTypes ) {
1223+ public init ( cachedLayout: TextNodeLayout ? , renderContentTypes: RenderContentTypes ) {
12241224 self . cachedLayout = cachedLayout
12251225 self . renderContentTypes = renderContentTypes
12261226
@@ -1295,7 +1295,7 @@ open class TextNode: ASDisplayNode, TextNodeProtocol {
12951295 }
12961296 }
12971297
1298- private static func calculateLayoutV2(
1298+ public static func calculateLayoutV2(
12991299 attributedString: NSAttributedString ,
13001300 minimumNumberOfLines: Int ,
13011301 maximumNumberOfLines: Int ,
@@ -1685,7 +1685,7 @@ open class TextNode: ASDisplayNode, TextNodeProtocol {
16851685 )
16861686 }
16871687
1688- static func calculateLayout( attributedString: NSAttributedString ? , minimumNumberOfLines: Int , maximumNumberOfLines: Int , truncationType: CTLineTruncationType , backgroundColor: UIColor ? , constrainedSize: CGSize , alignment: NSTextAlignment , verticalAlignment: TextVerticalAlignment , lineSpacingFactor: CGFloat , cutout: TextNodeCutout ? , insets: UIEdgeInsets , lineColor: UIColor ? , textShadowColor: UIColor ? , textShadowBlur: CGFloat ? , textStroke: ( UIColor , CGFloat ) ? , displaySpoilers: Bool , displayEmbeddedItemsUnderSpoilers: Bool , customTruncationToken: NSAttributedString ? ) -> TextNodeLayout {
1688+ public static func calculateLayout( attributedString: NSAttributedString ? , minimumNumberOfLines: Int , maximumNumberOfLines: Int , truncationType: CTLineTruncationType , backgroundColor: UIColor ? , constrainedSize: CGSize , alignment: NSTextAlignment , verticalAlignment: TextVerticalAlignment , lineSpacingFactor: CGFloat , cutout: TextNodeCutout ? , insets: UIEdgeInsets , lineColor: UIColor ? , textShadowColor: UIColor ? , textShadowBlur: CGFloat ? , textStroke: ( UIColor , CGFloat ) ? , displaySpoilers: Bool , displayEmbeddedItemsUnderSpoilers: Bool , customTruncationToken: NSAttributedString ? ) -> TextNodeLayout {
16891689 guard let attributedString else {
16901690 return TextNodeLayout ( attributedString: attributedString, maximumNumberOfLines: maximumNumberOfLines, truncationType: truncationType, constrainedSize: constrainedSize, explicitAlignment: alignment, resolvedAlignment: alignment, verticalAlignment: verticalAlignment, lineSpacing: lineSpacingFactor, cutout: cutout, insets: insets, size: CGSize ( ) , rawTextSize: CGSize ( ) , truncated: false , firstLineOffset: 0.0 , lines: [ ] , blockQuotes: [ ] , backgroundColor: backgroundColor, lineColor: lineColor, textShadowColor: textShadowColor, textShadowBlur: textShadowBlur, textStroke: textStroke, displaySpoilers: displaySpoilers)
16911691 }
0 commit comments