SVGTextPositioningElement.m 660 B

12345678910111213141516171819202122
  1. #import "SVGTextPositioningElement.h"
  2. #import "SVGTextPositioningElement_Mutable.h"
  3. #import "SVGElement_ForParser.h" // because we do post-processing of the SVG x,y,dx,dy,rotate attributes
  4. @implementation SVGTextPositioningElement
  5. @synthesize x,y,dx,dy,rotate;
  6. - (void)postProcessAttributesAddingErrorsTo:(SVGKParseResult *)parseResult
  7. {
  8. [super postProcessAttributesAddingErrorsTo:parseResult];
  9. self.x = [self getAttributeAsSVGLength:@"x"];
  10. self.y = [self getAttributeAsSVGLength:@"y"];
  11. self.dx = [self getAttributeAsSVGLength:@"dx"];
  12. self.dy = [self getAttributeAsSVGLength:@"dy"];
  13. self.rotate = [self getAttributeAsSVGLength:@"rotate"];
  14. }
  15. @end