@papyrus-sdk/engine-native 0.2.22-beta.3 → 0.2.22-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
NSUInteger currentGeneration = [self generationForDocument:document];
|
|
103
103
|
if (lease.generation != currentGeneration) return NO;
|
|
104
104
|
PapyrusPageRotationRecord *record =
|
|
105
|
-
[self
|
|
105
|
+
[[self recordsForDocument:document create:NO] objectForKey:@(pageIndex)];
|
|
106
106
|
if (!record || record.generation != currentGeneration) return NO;
|
|
107
107
|
return [record.leaseTokens containsObject:lease.token];
|
|
108
108
|
}
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
PapyrusPageRotationRecord *record =
|
|
146
|
-
[self
|
|
146
|
+
[[self recordsForDocument:document create:NO] objectForKey:@(pageIndex)];
|
|
147
147
|
NSInteger effectiveRotation =
|
|
148
148
|
[self normalizeRotation:record.originalRotation + viewerRotation];
|
|
149
149
|
page.rotation = (int)effectiveRotation;
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
NSAssert(NSThread.isMainThread, @"PDF page rotations must be changed on the main thread");
|
|
165
165
|
@synchronized (self) {
|
|
166
166
|
NSDictionary<NSNumber *, PapyrusPageRotationRecord *> *records =
|
|
167
|
-
[[self
|
|
167
|
+
[[self recordsForDocument:document create:NO] copy];
|
|
168
168
|
[records enumerateKeysAndObjectsUsingBlock:^(NSNumber *pageIndex,
|
|
169
169
|
PapyrusPageRotationRecord *record,
|
|
170
170
|
__unused BOOL *stop) {
|
|
@@ -11,7 +11,6 @@ static NSUInteger const PapyrusMaximumTextSearchHighlights = 2000;
|
|
|
11
11
|
@property (nonatomic, assign) CFAbsoluteTime lastOffsetEventTime;
|
|
12
12
|
@property (nonatomic, assign) BOOL hasLoadedDocument;
|
|
13
13
|
@property (nonatomic, assign) BOOL suppressOffsetEvents;
|
|
14
|
-
@property (nonatomic, copy) NSString *defineSelectionMode;
|
|
15
14
|
@end
|
|
16
15
|
|
|
17
16
|
@implementation PapyrusTextDocumentView
|