Merge pull request #1245 from rcancro/exposeCurrentScale

Exposing currentScaleFactor
This commit is contained in:
appleguy
2016-02-18 16:46:08 -08:00
2 changed files with 6 additions and 2 deletions

View File

@@ -15,4 +15,9 @@
*/
@property (nonatomic, copy) NSArray *pointSizeScaleFactors;
/**
@abstract The currently applied scale factor, or 0 if the text node is not being scaled.
*/
@property (nonatomic, assign, readonly) CGFloat currentScaleFactor;
@end

View File

@@ -79,7 +79,6 @@ static NSString *ASTextNodeTruncationTokenAttributeName = @"ASTextNodeTruncation
CGSize _constrainedSize;
ASTextKitRenderer *_renderer;
CGFloat _currentScaleFactor;
UILongPressGestureRecognizer *_longPressGestureRecognizer;
}
@@ -245,7 +244,7 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
.maximumNumberOfLines = _maximumNumberOfLines,
.exclusionPaths = _exclusionPaths,
.pointSizeScaleFactors = _pointSizeScaleFactors,
.currentScaleFactor = _currentScaleFactor,
.currentScaleFactor = self.currentScaleFactor,
};
}