FIxed various issues with parser not finding linked elements. Also added much better support for style attribute. Also added overal viewbox clipping and various other fixes.
39 lines
982 B
Objective-C
39 lines
982 B
Objective-C
//
|
|
// IJSVGTransform.h
|
|
// IconJar
|
|
//
|
|
// Created by Curtis Hard on 01/09/2014.
|
|
// Copyright (c) 2014 Curtis Hard. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "IJSVGUtils.h"
|
|
|
|
typedef NS_OPTIONS( NSInteger, IJSVGTransformCommand ) {
|
|
IJSVGTransformCommandMatrix,
|
|
IJSVGTransformCommandTranslate,
|
|
IJSVGTransformCommandScale,
|
|
IJSVGTransformCommandRotate,
|
|
IJSVGTransformCommandNotImplemented
|
|
};
|
|
|
|
@interface IJSVGTransform : NSObject {
|
|
|
|
IJSVGTransformCommand command;
|
|
CGFloat * parameters;
|
|
NSInteger parameterCount;
|
|
NSInteger sort;
|
|
|
|
}
|
|
|
|
@property ( nonatomic, assign ) IJSVGTransformCommand command;
|
|
@property ( nonatomic, assign ) CGFloat * parameters;
|
|
@property ( nonatomic, assign ) NSInteger parameterCount;
|
|
@property ( nonatomic, assign ) NSInteger sort;
|
|
|
|
+ (NSArray *)transformsForString:(NSString *)string;
|
|
+ (void)performTransform:(IJSVGTransform *)transform
|
|
inContext:(CGContextRef)context;
|
|
|
|
@end
|