- Also added IJSVGUnit so that graidents know if to work out from the current bounds or not when creating the angle points - Added IJSVGImage which is a wrapper around loading base64 encoded images - Added IJSVGPattern which is based on IJSVGGroup and will draw a pattern inside a nodes clipped path
20 lines
393 B
Objective-C
20 lines
393 B
Objective-C
//
|
|
// IJSVGUnits.h
|
|
// IJSVGExample
|
|
//
|
|
// Created by Curtis Hard on 27/05/2016.
|
|
// Copyright © 2016 Curtis Hard. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@class IJSVGPath;
|
|
|
|
typedef struct {
|
|
CGFloat value;
|
|
BOOL isPercentage;
|
|
} IJSVGUnit;
|
|
|
|
IJSVGUnit IJSVGUnitFromString(NSString * string);
|
|
CGFloat IJSVGFloatFromUnit(IJSVGUnit unit, IJSVGPath * path, BOOL width);
|