Swiftgram/submodules/Svg/Sources/SVGKit/Source/DOM classes/SVG-DOM/SVGAnimatedPreserveAspectRatio.m
2019-12-26 15:55:27 +04:00

29 lines
651 B
Objective-C

#import "SVGAnimatedPreserveAspectRatio.h"
@implementation SVGAnimatedPreserveAspectRatio
- (id)init
{
self = [super init];
if (self) {
self.baseVal = [SVGPreserveAspectRatio new];
}
return self;
}
/** TODO: Current implementation (animation not supported anywhere in SVGKit yet) simply returns
a copy of self.baseVal --- NOTE: spec REQUIRES you return a copy! It is explicit on this!
*/
-(SVGPreserveAspectRatio *)animVal
{
SVGPreserveAspectRatio* cloneOfBase = [SVGPreserveAspectRatio new];
cloneOfBase.align = self.baseVal.align;
cloneOfBase.meetOrSlice = self.baseVal.meetOrSlice;
return cloneOfBase;
}
@end