mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
28 lines
747 B
Objective-C
28 lines
747 B
Objective-C
#import "SVGUseElement.h"
|
|
#import "SVGUseElement_Mutable.h"
|
|
|
|
@implementation SVGUseElement
|
|
|
|
@synthesize x;
|
|
@synthesize y;
|
|
@synthesize width;
|
|
@synthesize height;
|
|
@synthesize instanceRoot;
|
|
@synthesize animatedInstanceRoot;
|
|
|
|
@synthesize transform; // each SVGElement subclass that conforms to protocol "SVGTransformable" has to re-synthesize this to work around bugs in Apple's Objective-C 2.0 design that don't allow @properties to be extended by categories / protocols
|
|
|
|
|
|
-(CALayer *)newLayer
|
|
{
|
|
return [CALayer layer];
|
|
}
|
|
|
|
-(void)layoutLayer:(CALayer *)layer
|
|
{
|
|
if( [instanceRoot.correspondingElement respondsToSelector:@selector(layoutLayer:)])
|
|
[((SVGElement<ConverterSVGToCALayer>*)instanceRoot.correspondingElement) layoutLayer:layer];
|
|
}
|
|
|
|
@end
|