Inherits from GSElement : GSShape : NSObject
Conforms to GSUserDataProtocol
Declared in GSTransformableElement.h

Properties

angle

The angle.

@property (nonatomic) CGFloat angle

scale

The scale.

@property (nonatomic) NSPoint scale

slantHorizontal

The slantHorizontal.

@property (nonatomic) CGFloat slantHorizontal

slantVertical

The slantVertical.

@property (nonatomic) CGFloat slantVertical

tempData

a dictionary that stores data. It will not be written to disk.

@property (nonatomic, strong, nullable) NSDictionary *tempData

transformStruct

The transformation of the component.

@property (assign, nonatomic) NSAffineTransformStruct transformStruct

Discussion

The values of the struct are: {m11, m12, m21, m22, tX, tY} this is equivalent to the glif attributes {xScale, xyScale, yxScale, yScale, xOffset, yOffset} in the same order. The initial value is {1,0,0,1,0,0}.

Instance Methods

setTempData:forKey:

Adds key/value to tempData. Pass nil as value to remove previous set data

- (void)setTempData:(nullable id)value forKey:(nonnull NSString *)key

Parameters

value

and object or nil

key

the key

tempDataForKey:

return value for key in tempData

- (nullable id)tempDataForKey:(nonnull NSString *)key

Parameters

key

the key

Return Value

a value or nil