rename enum name ScaleType.Tile.

This commit is contained in:
吴尚昆
2022-03-18 19:37:41 +08:00
committed by osborn
parent 55ff312312
commit ed9475b72a
10 changed files with 17 additions and 15 deletions

View File

@@ -85,7 +85,6 @@ @interface DoricImageNode ()
@property(nonatomic, strong) UIVisualEffectView *blurEffectView;
@property(nonatomic, strong) NSDictionary *stretchInsetDic;
@property(nonatomic, assign) CGFloat imageScale;
@property(nonatomic, strong) NSDictionary *props;
@property(nonatomic, assign) NSInteger scaleType;
@end
@@ -125,7 +124,6 @@ - (void)blend:(NSDictionary *)props {
[props[@"loadCallback"] also:^(NSString *it) {
self.loadCallbackId = it;
}];
self.props = props;
[super blend:props];
}
@@ -284,7 +282,7 @@ - (void)blendView:(UIImageView *)view forPropName:(NSString *)name propValue:(id
[self callJSResponse:self.loadCallbackId, nil];
}
}
[self afterBlended:self.props];
[self resizingImageIfNeeded];
}];
}];
[asyncResult setExceptionCallback:^(NSException *e) {
@@ -335,7 +333,7 @@ - (void)blendView:(UIImageView *)view forPropName:(NSString *)name propValue:(id
if (async && self.needReload) {
[self.superNode subNodeContentChanged:self];
}
[self afterBlended:self.props];
[self resizingImageIfNeeded];
}
}];
});
@@ -375,7 +373,7 @@ - (void)blendView:(UIImageView *)view forPropName:(NSString *)name propValue:(id
[self.superNode subNodeContentChanged:self];
}
}
[self afterBlended:self.props];
[self resizingImageIfNeeded];
}];
#else
DoricLog(@"Do not support load image url");
@@ -672,6 +670,10 @@ - (UIImage *)imageFromData:(NSData *)imgData {
}
- (void)afterBlended:(NSDictionary *)props {
[self resizingImageIfNeeded];
}
- (void)resizingImageIfNeeded {
if (CGSizeEqualToSize(self.view.image.size, CGSizeZero)) {
return;
}